swagger-client 3.33.2 → 3.34.0
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.
- package/dist/swagger-client.browser.js +4289 -2294
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/es/execute/index.js +1 -2
- package/es/execute/oas3/style-serializer.js +1 -2
- package/lib/execute/index.js +1 -2
- package/lib/execute/oas3/style-serializer.js +1 -2
- package/package.json +11 -11
|
@@ -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={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,f=d?s(e.length,String):[],m=f.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,m))||f.push(y);return f}},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]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,m,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,j=(w=w==p?d:w)==d,O=x==w;if(O&&l(e)){if(!l(t))return!1;v=!0,E=!1}if(O&&!E)return g||(g=new s),v||u(e)?n(e,t,r,m,y,g):i(e,t,x,r,m,y,g);if(!(1&r)){var S=E&&f.call(e,"__wrapped__"),P=j&&f.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new s),y(A,$,r,m,g)}}return!!O&&(g||(g=new s),o(e,t,r,m,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 f=-1,m=!0,y=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++f<u;){var g=e[f],v=t[f];if(o)var b=l?o(v,g,f,t,e,c):o(g,v,f,e,t,c);if(void 0!==b){if(b)continue;m=!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)}))){m=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){m=!1;break}}return c.delete(e),c.delete(t),m}},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 f=1&s;if(d||(d=c),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==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),f=a.get(t);if(d&&f)return d==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var 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)){m=!1;break}y||(y="constructor"==h)}if(m&&!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||(m=!1)}return a.delete(e),a.delete(t),m}},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]",f="[object DataView]",m=l(s),y=l(n),g=l(i),v=l(o),b=l(a),x=c;(s&&x(new s(new ArrayBuffer(1)))!=f||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 m:return f;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),f=r(866),m=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:f,KeyValuePair:m}},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]))}))}}},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 f(){}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=f,s.addListener=f,s.once=f,s.off=f,s.removeListener=f,s.removeAllListeners=f,s.emit=f,s.prependListener=f,s.prependOnceListener=f,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}},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),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:()=>f});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const s=`_${e}_dict_ranges`,n=this._dict_ranges[s];Object.keys(n).forEach((e=>{const s=e;for(this.dictRange=n[s],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-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",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,s;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",s=0;s<e;s+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),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=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)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=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`${i.substring(0,n)}${r}${i.substring(n)}${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=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*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=parseInt(r.substring(r.length-1),16);return new Date(1e3*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.2.0";const{dictionary:r,shuffle:s,length:n,counter:i}=t;return 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 ${this.dictLength} and counter set to ${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),this}};c(h,"default",h);var d,f=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,f,m,y,g,v,b,x,w=e.target,E=e.global,j=e.stat,O=e.proto,S=E?s:j?s[w]:s[w]&&s[w].prototype,P=E?l:l[w]||p(l,w,{})[w],A=P.prototype;for(m in t)n=!(r=c(E?m:w+(j?".":"#")+m,e.forced))&&S&&h(S,m),g=P[m],n&&(v=e.dontCallGetSet?(x=a(S,m))&&x.value:S[m]),y=n&&v?v:t[m],(r||O||typeof g!=typeof y)&&(b=e.bind&&n?u(y,s):e.wrap&&n?d(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,m,b),O&&(h(l,f=w+"Prototype")||p(l,f,{}),p(l[f],m,y),e.real&&A&&(r||!A[m])&&p(A,m,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: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")()},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),f="Object already initialized",m=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 m(f);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 m(f);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 m("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,f=function(e,t){this.stopped=e,this.result=t},m=f.prototype;e.exports=function(e,t,r){var y,g,v,b,x,w,E,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=s(t,j),k=function(e){return y&&h(y,"normal",e),new f(!0,e)},T=function(e){return O?(i(e),A?$(e[0],e[1],k):$(e[0],e[1])):A?$(e,k):$(e)};if(S)y=e.iterator;else if(P)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(m,x))return x;return new f(!1)}y=u(e,g)}for(w=S?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(m,x))return x}return new f(!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),f=r(6264),m=r(3742),y=r(5116),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,f,y,P){c(r,t,o);var A,$,k,T=function(e){if(e===f&&M)return M;if(!x&&e&&e in I)return I[e];switch(e){case E:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",_=!1,I=e.prototype,F=I[w]||I["@@iterator"]||f&&I[f],M=!x&&F||T(f),R="Array"===t&&I.entries||F;if(R&&(A=l(R.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[w])||d(A,w,S)),p(A,C,!0,!0),i&&(m[C]=S)),g&&f===j&&F&&F.name!==j&&(!i&&v?h(I,"name",j):(_=!0,M=function(){return n(F,this)})),f)if($={values:T(j),keys:y?M:T(E),entries:T(O)},P)for(k in $)(x||_||!(k in I))&&d(I,k,$[k]);else s({target:t,proto:!0,forced:x||_},$);return i&&!P||I[w]===M||d(I,w,M,{name:f}),m[t]=M,$}},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),f=h("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):m=!0),!c(s)||o((function(){var e={};return s[f].call(e)!==e}))?s={}:d&&(s=l(s)),a(s[f])||p(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:m}},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"),f=function(){},m=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(m("")),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(m("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?(f[p]=n(e),r=new f,f[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.39.0",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.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..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),f=r(9447),m=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(!m&&n(E,"cause")&&delete E.cause,!r)return w;var j=s("Error"),O=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,O,s.stack,2),this&&o(E,this)&&u(s,this,O),arguments.length>v&&h(s,arguments[v]),s}));if(O.prototype=E,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):f&&g in w&&(l(O,w,g),l(O,w,"prepareStackTrace")),c(O,w),!m)try{E.name!==x&&i(E,"name",x),E.constructor=O}catch(e){}return O}}},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),f=r(2096),m=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,m,"Error")),void 0!==t&&l(r,"message",f(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,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,f=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=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(r,!1);case"values":return l(t[r],!1)}return l([r,t[r]],!1)}),"values");var m=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==m.name)try{a(m,"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:()=>rO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>ur,_areEquals:()=>xr,applyOperation:()=>mr,applyPatch:()=>yr,applyReducer:()=>gr,deepClone:()=>pr,getValueByPointer:()=>fr,validate:()=>br,validator:()=>vr});var t={};r.r(t),r.d(t,{compare:()=>$r,generate:()=>Pr,observe:()=>Sr,unobserve:()=>Or});var n={};r.r(n),r.d(n,{bJ:()=>hi,uQ:()=>oi,Zd:()=>ui,q$:()=>ci,hd:()=>di,aj:()=>fi,z9:()=>pi,zj:()=>mi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>ka,includesClasses:()=>Ca,includesSymbols:()=>Ta,isAnnotationElement:()=>Oa,isArrayElement:()=>xa,isBooleanElement:()=>va,isCommentElement:()=>Sa,isElement:()=>fa,isLinkElement:()=>Ea,isMemberElement:()=>wa,isNullElement:()=>ga,isNumberElement:()=>ya,isObjectElement:()=>ba,isParseResultElement:()=>Pa,isPrimitiveElement:()=>$a,isRefElement:()=>ja,isSourceMapElement:()=>Aa,isStringElement:()=>ma});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Yp,isJSONSchemaElement:()=>Kp,isLinkDescriptionElement:()=>Qp,isMediaElement:()=>Xp});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>$d,isCallbackElement:()=>cd,isComponentsElement:()=>ld,isContactElement:()=>ud,isExampleElement:()=>pd,isExternalDocumentationElement:()=>hd,isHeaderElement:()=>dd,isInfoElement:()=>fd,isLicenseElement:()=>md,isLinkElement:()=>yd,isMediaTypeElement:()=>Id,isOpenApi3_0Element:()=>vd,isOpenapiElement:()=>gd,isOperationElement:()=>bd,isParameterElement:()=>xd,isPathItemElement:()=>wd,isPathsElement:()=>Ed,isReferenceElement:()=>jd,isRequestBodyElement:()=>Od,isResponseElement:()=>Sd,isResponsesElement:()=>Pd,isSchemaElement:()=>Ad,isSecurityRequirementElement:()=>kd,isSecuritySchemeElement:()=>Td,isServerElement:()=>Cd,isServerVariableElement:()=>_d,isServersElement:()=>Fd});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>ob,isCallbackElement:()=>Dv,isComponentsElement:()=>Lv,isContactElement:()=>Nv,isExampleElement:()=>qv,isExternalDocumentationElement:()=>Bv,isHeaderElement:()=>Uv,isInfoElement:()=>Vv,isJsonSchemaDialectElement:()=>Hv,isLicenseElement:()=>zv,isLinkElement:()=>Gv,isMediaTypeElement:()=>pb,isOpenApi3_1Element:()=>Wv,isOpenapiElement:()=>Jv,isOperationElement:()=>Kv,isParameterElement:()=>Yv,isPathItemElement:()=>Xv,isPathItemElementExternal:()=>Qv,isPathsElement:()=>Zv,isReferenceElement:()=>eb,isReferenceElementExternal:()=>tb,isRequestBodyElement:()=>rb,isResponseElement:()=>sb,isResponsesElement:()=>nb,isSchemaElement:()=>ib,isSecurityRequirementElement:()=>ab,isSecuritySchemeElement:()=>cb,isServerElement:()=>lb,isServerVariableElement:()=>ub});var l={};r.r(l),r.d(l,{cookie:()=>Rj,header:()=>Mj,path:()=>_j,query:()=>Ij});const u="application/json, application/yaml",p="https://swagger.io",h=Object.freeze({url:"/"}),{fetch:d,Response:f,Headers:m,Request:y,FormData:g,File:v,Blob:b}=globalThis;function x(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 w(e,t){return Array.isArray(e)&&e.some((e=>x(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=d),void 0===globalThis.Headers&&(globalThis.Headers=m),void 0===globalThis.Request&&(globalThis.Request=y),void 0===globalThis.Response&&(globalThis.Response=f),void 0===globalThis.FormData&&(globalThis.FormData=g),void 0===globalThis.File&&(globalThis.File=v),void 0===globalThis.Blob&&(globalThis.Blob=b);class E extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const j=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,O=e=>/^[a-z0-9\-._~]+$/i.test(e);function S(e,t="reserved"){return[...e].map((e=>{if(O(e))return e;if(j(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 P(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=>A(e,n))).join(",");if("label"===r)return`.${t.map((e=>A(e,n))).join(".")}`;if("matrix"===r)return t.map((e=>A(e,n))).reduce(((t,r)=>!t||s?`${t||""};${e}=${r}`:`${t},${r}`),"");if("form"===r){const r=s?`&${e}=`:",";return t.map((e=>A(e,n))).join(r)}if("spaceDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>A(e,n))).join(` ${r}`)}if("pipeDelimited"===r){const r=s?`${e}=`:"";return t.map((e=>A(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=A(t[r],n);return`${e?`${e},`:""}${r}${s?"=":","}${i}`}),"");if("label"===r)return i.reduce(((e,r)=>{const i=A(t[r],n);return`${e?`${e}.`:"."}${r}${s?"=":"."}${i}`}),"");if("matrix"===r&&s)return i.reduce(((e,r)=>`${e?`${e};`:";"}${r}=${A(t[r],n)}`),"");if("matrix"===r)return i.reduce(((r,s)=>{const i=A(t[s],n);return`${r?`${r},`:`;${e}=`}${s},${i}`}),"");if("form"===r)return i.reduce(((e,r)=>{const i=A(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 A(t,s);if("label"===r)return`.${A(t,s)}`;if("matrix"===r)return`;${e}=${A(t,s)}`;if("form"===r)return A(t,s);if("deepObject"===r)return A(t,s);return}(e)}function A(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?S(e,t):e??""}const $={form:",",spaceDelimited:"%20",pipeDelimited:"|"},k={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};function T(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(x(a)||w(a))return[[l,a]];if(i)return C(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 C(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 E(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new E(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(k[s||"csv"])]]:[[l,""]]}function C(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=>A(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($[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 _(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 T(r,e[r]))t[s]=n instanceof E?n.valueOf():n;return t}),{}),{encode:!1})}function I(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return x(t)||w(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(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=_(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,_(r));e.url=s+o,delete e.query}return e}function F(e){return null==e}var M={isNothing:F,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:F(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 R(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 D(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=R(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}D.prototype=Object.create(Error.prototype),D.prototype.constructor=D,D.prototype.toString=function(e){return this.name+": "+R(this,e)};var L=D;function N(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 q(e,t){return M.repeat(" ",t-e.length)+e}var B=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=N(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=M.repeat(" ",t.indent)+q((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=N(e.buffer,n[o],i[o],e.position,p),l+=M.repeat(" ",t.indent)+q((e.line+1).toString(),u)+" | "+c.str+"\n",l+=M.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=N(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=M.repeat(" ",t.indent)+q((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},U=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],V=["scalar","sequence","mapping"];var H=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===U.indexOf(t))throw new L('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===V.indexOf(this.kind))throw new L('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function z(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 G(e){return this.extend(e)}G.prototype.extend=function(e){var t=[],r=[];if(e instanceof H)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 L("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 H))throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new L("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 L("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 H))throw new L("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(G.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=z(s,"implicit"),s.compiledExplicit=z(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 J=G,W=new H("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),K=new H("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),Y=new H("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),X=new J({explicit:[W,K,Y]});var Q=new H("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 Z=new H("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 ee(e){return 48<=e&&e<=55}function te(e){return 48<=e&&e<=57}var re=new H("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(!ee(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!te(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&&!M.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"]}}),se=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var ne=/^[-+]?[0-9]+e/;var ie=new H("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!se.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||M.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(M.isNegativeZero(e))return"-0.0";return r=e.toString(10),ne.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),oe=X.extend({implicit:[Q,Z,re,ie]}),ae=oe,ce=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),le=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 ue=new H("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==ce.exec(e)||null!==le.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=ce.exec(e))&&(t=le.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 pe=new H("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),he="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var de=new H("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=he;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=he,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=he;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}}),fe=Object.prototype.hasOwnProperty,me=Object.prototype.toString;var ye=new H("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]"!==me.call(s))return!1;for(n in s)if(fe.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:[]}}),ge=Object.prototype.toString;var ve=new H("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]"!==ge.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}}),be=Object.prototype.hasOwnProperty;var xe=new H("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(be.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),we=ae.extend({implicit:[ue,pe],explicit:[de,ye,ve,xe]}),Ee=Object.prototype.hasOwnProperty,je=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,Oe=/[\x85\u2028\u2029]/,Se=/[,\[\]\{\}]/,Pe=/^(?:!|!!|![a-z\-]+!)$/i,Ae=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function $e(e){return Object.prototype.toString.call(e)}function ke(e){return 10===e||13===e}function Te(e){return 9===e||32===e}function Ce(e){return 9===e||32===e||10===e||13===e}function _e(e){return 44===e||91===e||93===e||123===e||125===e}function Ie(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Fe(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 Me(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Re=new Array(256),De=new Array(256),Le=0;Le<256;Le++)Re[Le]=Fe(Le)?1:0,De[Le]=Fe(Le);function Ne(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||we,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 qe(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=B(r),new L(t,r)}function Be(e,t){throw qe(e,t)}function Ue(e,t){e.onWarning&&e.onWarning.call(null,qe(e,t))}var Ve={YAML:function(e,t,r){var s,n,i;null!==e.version&&Be(e,"duplication of %YAML directive"),1!==r.length&&Be(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Be(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&Be(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ue(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&Be(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Pe.test(s)||Be(e,"ill-formed tag handle (first argument) of the TAG directive"),Ee.call(e.tagMap,s)&&Be(e,'there is a previously declared suffix for "'+s+'" tag handle'),Ae.test(n)||Be(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){Be(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function He(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||Be(e,"expected valid JSON character");else je.test(a)&&Be(e,"the stream contains non-printable characters");e.result+=a}}function ze(e,t,r,s){var n,i,o,a;for(M.isObject(r)||Be(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],Ee.call(t,i)||(t[i]=r[i],s[i]=!0)}function Ge(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])&&Be(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===$e(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===$e(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)ze(e,t,i[l],r);else ze(e,t,i,r);else e.json||Ee.call(r,n)||!Ee.call(t,n)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Be(e,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[n]=i,delete r[n];return t}function Je(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Be(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function We(e,t,r){for(var s=0,n=e.input.charCodeAt(e.position);0!==n;){for(;Te(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(!ke(n))break;for(Je(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&&Ue(e,"deficient indentation"),s}function Ke(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))&&!Ce(t)))}function Ye(e,t){1===t?e.result+=" ":t>1&&(e.result+=M.repeat("\n",t-1))}function Xe(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,Be(e,"tab characters must not be used in indentation")),45===s)&&Ce(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,We(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,et(e,t,3,!1,!0),o.push(e.result),We(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)Be(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 Qe(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Be(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)):Be(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Ce(n);)33===n&&(o?Be(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Pe.test(r)||Be(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),Se.test(s)&&Be(e,"tag suffix cannot contain flow indicator characters")}s&&!Ae.test(s)&&Be(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){Be(e,"tag name is malformed: "+s)}return i?e.tag=s:Ee.call(e.tagMap,r)?e.tag=e.tagMap[r]+s:"!"===r?e.tag="!"+s:"!!"===r?e.tag="tag:yaml.org,2002:"+s:Be(e,'undeclared tag handle "'+r+'"'),!0}function Ze(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Be(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Ce(r)&&!_e(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Be(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function et(e,t,r,s,n){var i,o,a,c,l,u,p,h,d,f=1,m=!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&&We(e,!0,-1)&&(m=!0,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)),1===f)for(;Qe(e)||Ze(e);)We(e,!0,-1)?(m=!0,a=i,e.lineIndent>t?f=1:e.lineIndent===t?f=0:e.lineIndent<t&&(f=-1)):a=!1;if(a&&(a=m||n),1!==f&&4!==r||(h=1===r||2===r?t:t+1,d=e.position-e.lineStart,1===f?a&&(Xe(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),f=null,m=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,Be(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Ce(s)){if(o=e.line,a=e.lineStart,c=e.position,!et(e,r,2,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);Te(l);)l=e.input.charCodeAt(++e.position);if(58===l)Ce(l=e.input.charCodeAt(++e.position))||Be(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Ge(e,h,d,f,m,null,o,a,c),f=m=y=null),v=!0,g=!1,n=!1,f=e.tag,m=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Be(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Be(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Ge(e,h,d,f,m,null,o,a,c),f=m=y=null),v=!0,g=!0,n=!0):g?(g=!1,n=!0):Be(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),et(e,t,4,!0,n)&&(g?m=e.result:y=e.result),g||(Ge(e,h,d,f,m,y,o,a,c),f=m=y=null),We(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Be(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Ge(e,h,d,f,m,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,f=!0,m=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(We(e,!0,t),(d=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=m,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;f?44===d&&Be(e,"expected the node content, but found ','"):Be(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Ce(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,We(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,et(e,t,1,!1,!0),p=e.tag,u=e.result,We(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),We(e,!0,t),et(e,t,1,!1,!0),h=e.result),l?Ge(e,i,g,p,u,h,r,s,n):a?i.push(Ge(e,null,g,p,u,h,r,s,n)):i.push(u),We(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(f=!0,d=e.input.charCodeAt(++e.position)):f=!1}Be(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:Be(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?Be(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Be(e,"repeat of an indentation width identifier"):(u=t+n-1,l=!0)}if(Te(i)){do{i=e.input.charCodeAt(++e.position)}while(Te(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!ke(i)&&0!==i)}for(;0!==i;){for(Je(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),ke(i))p++;else{if(e.lineIndent<u){3===a?e.result+=M.repeat("\n",c?1+p:p):1===a&&c&&(e.result+="\n");break}for(s?Te(i)?(h=!0,e.result+=M.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=M.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=M.repeat("\n",p):e.result+=M.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!ke(i)&&0!==i;)i=e.input.charCodeAt(++e.position);He(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(He(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else ke(r)?(He(e,s,n,!0),Ye(e,We(e,!1,t)),s=n=e.position):e.position===e.lineStart&&Ke(e)?Be(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);Be(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 He(e,r,e.position,!0),e.position++,!0;if(92===a){if(He(e,r,e.position,!0),ke(a=e.input.charCodeAt(++e.position)))We(e,!1,t);else if(a<256&&Re[a])e.result+=De[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=Ie(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Be(e,"expected hexadecimal character");e.result+=Me(i),e.position++}else Be(e,"unknown escape sequence");r=s=e.position}else ke(a)?(He(e,r,s,!0),Ye(e,We(e,!1,t)),r=s=e.position):e.position===e.lineStart&&Ke(e)?Be(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}Be(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&&!Ce(s)&&!_e(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&Be(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Ee.call(e.anchorMap,r)||Be(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],We(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(Ce(u=e.input.charCodeAt(e.position))||_e(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)&&(Ce(s=e.input.charCodeAt(e.position+1))||r&&_e(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(Ce(s=e.input.charCodeAt(e.position+1))||r&&_e(s))break}else if(35===u){if(Ce(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ke(e)||r&&_e(u))break;if(ke(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,We(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&&(He(e,n,i,!1),Ye(e,e.line-a),n=i=e.position,o=!1),Te(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return He(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||Be(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===f&&(y=a&&Xe(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&&Be(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(Ee.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||Be(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Be(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)):Be(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 tt(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))&&(We(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&&!Ce(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&Be(e,"directive name must not be less than one character in length");0!==n;){for(;Te(n);)n=e.input.charCodeAt(++e.position);if(35===n){do{n=e.input.charCodeAt(++e.position)}while(0!==n&&!ke(n));break}if(ke(n))break;for(t=e.position;0!==n&&!Ce(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&Je(e),Ee.call(Ve,r)?Ve[r](e,r,s):Ue(e,'unknown document directive "'+r+'"')}We(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,We(e,!0,-1)):o&&Be(e,"directives end mark is expected"),et(e,e.lineIndent-1,4,!1,!0),We(e,!0,-1),e.checkLineBreaks&&Oe.test(e.input.slice(i,e.position))&&Ue(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ke(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,We(e,!0,-1)):e.position<e.length-1&&Be(e,"end of the stream or a document separator is expected")}function rt(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 Ne(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,Be(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;)tt(r);return r.documents}var st={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=rt(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=rt(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new L("expected a single document in the stream, but found more")}}},nt=Object.prototype.toString,it=Object.prototype.hasOwnProperty,ot=65279,at={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"},ct=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],lt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function ut(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 L("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+M.repeat("0",s-t.length)+t}function pt(e){this.schema=e.schema||we,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=M.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])&&it.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 ht(e,t){for(var r,s=M.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 dt(e,t){return"\n"+M.repeat(" ",e.indent*t)}function ft(e){return 32===e||9===e}function mt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==ot||65536<=e&&e<=1114111}function yt(e){return mt(e)&&e!==ot&&13!==e&&10!==e}function gt(e,t,r){var s=yt(e),n=s&&!ft(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||yt(t)&&!ft(t)&&35===e||58===t&&n}function vt(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 bt(e){return/^\n* /.test(e)}function xt(e,t,r,s,n,i,o,a){var c,l,u=0,p=null,h=!1,d=!1,f=-1!==s,m=-1,y=mt(l=vt(e,0))&&l!==ot&&!ft(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!ft(e)&&58!==e}(vt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!mt(u=vt(e,c)))return 5;y=y&>(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=vt(e,c)))h=!0,f&&(d=d||c-m-1>s&&" "!==e[m+1],m=c);else if(!mt(u))return 5;y=y&>(u,p,a),p=u}d=d||f&&c-m-1>s&&" "!==e[m+1]}return h||d?r>9&&bt(e)?5:o?2===i?5:2:d?4:3:!y||o||n(e)?2===i?5:2:1}function wt(e,t,r,s,n){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ct.indexOf(t)||lt.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(xt(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"|"+Et(t,e.indent)+jt(ht(t,i));case 4:return">"+Et(t,e.indent)+jt(ht(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,Ot(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")+Ot(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=vt(e,n),!(t=at[s])&&mt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||ut(s);return r}(t)+'"';default:throw new L("impossible error: invalid scalar style")}}()}function Et(e,t){var r=bt(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function jt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Ot(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 St(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)),(At(e,t+1,o,!0,!0,!1,!0)||void 0===o&&At(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=dt(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Pt(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]"===nt.call(a.represent))s=a.represent(t,c);else{if(!it.call(a.represent,c))throw new L("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function At(e,t,r,s,n,i,o){e.tag=null,e.dump=r,Pt(e,r,!1)||Pt(e,r,!0);var a,c=nt.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 L("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=dt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),At(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+=dt(e,t)),At(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)),At(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),At(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?St(e,t-1,e.dump,n):St(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)),(At(e,t,i,!1,!1)||void 0===i&&At(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 L("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&wt(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 $t(e,t){var r,s,n=[],i=[];for(kt(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function kt(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)kt(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)kt(e[s[n]],t,r)}function Tt(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 Ct=H,_t=J,It=X,Ft=oe,Mt=ae,Rt=we,Dt=st.load,Lt=st.loadAll,Nt={dump:function(e,t){var r=new pt(t=t||{});r.noRefs||$t(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),At(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,qt=L,Bt={binary:de,float:ie,map:Y,null:Q,pairs:ve,set:xe,timestamp:ue,bool:Z,int:re,merge:pe,omap:ye,seq:K,str:W},Ut=Tt("safeLoad","load"),Vt=Tt("safeLoadAll","loadAll"),Ht=Tt("safeDump","dump");const zt={Type:Ct,Schema:_t,FAILSAFE_SCHEMA:It,JSON_SCHEMA:Ft,CORE_SCHEMA:Mt,DEFAULT_SCHEMA:Rt,load:Dt,loadAll:Lt,dump:Nt,YAMLException:qt,types:Bt,safeLoad:Ut,safeLoadAll:Vt,safeDump:Ht};function Gt(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 Jt(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Gt(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){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):zt.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function Wt(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=I(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 Jt(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 Kt(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:u},credentials:n}).then((e=>e.body))}const Yt=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},Xt=e=>{const{fetch:t,http:r}=e;return t||r||Wt};var Qt,Zt=(Qt=function(e,t){return Qt=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])},Qt(e,t)},function(e,t){function r(){this.constructor=e}Qt(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),er=Object.prototype.hasOwnProperty;function tr(e,t){return er.call(e,t)}function rr(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)tr(e,n)&&s.push(n);return s}function sr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function nr(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 ir(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function or(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function ar(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(ar(e[t]))return!0}else if("object"==typeof e)for(var s=rr(e),n=s.length,i=0;i<n;i++)if(ar(e[s[i]]))return!0;return!1}function cr(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 lr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,cr(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=cr(t,{name:r,index:s,operation:n,tree:i}),a}return Zt(t,e),t}(Error),ur=lr,pr=sr,hr={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=fr(r,this.path);s&&(s=sr(s));var n=mr(r,{op:"remove",path:this.from}).removed;return mr(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=fr(r,this.from);return mr(r,{op:"add",path:this.path,value:sr(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:xr(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},dr={add:function(e,t,r){return nr(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:hr.move,copy:hr.copy,test:hr.test,_get:hr._get};function fr(e,t){if(""==t)return e;var r={op:"_get",path:t};return mr(e,r),r.value}function mr(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):vr(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=fr(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=xr(e,t.value),!1===o.test)throw new ur("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 ur("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=sr(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:vr;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=or(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&&!nr(h))throw new ur("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);nr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new ur("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=dr[t.op].call(t,c,h,e)).test)throw new ur("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=hr[t.op].call(t,c,h,e)).test)throw new ur("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new ur("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function yr(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new ur("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=sr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=mr(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function gr(e,t,r){var s=mr(e,t);if(!1===s.test)throw new ur("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function vr(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new ur("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!hr[e.op])throw new ur("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 ur("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new ur('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 ur("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 ur("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)&&ar(e.value))throw new ur("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 ur("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 ur("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=br([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new ur("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function br(e,t,r){try{if(!Array.isArray(e))throw new ur("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)yr(sr(t),sr(e),r||!0);else{r=r||vr;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof ur)return e;throw e}}function xr(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(!xr(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(!xr(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var wr=new WeakMap,Er=function(e){this.observers=new Map,this.obj=e},jr=function(e,t){this.callback=e,this.observer=t};function Or(e,t){t.unobserve()}function Sr(e,t){var r,s=function(e){return wr.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new Er(e),wr.set(e,s);if(r)return r;if(r={},s.value=sr(e),t){r.callback=t,r.next=null;var i=function(){Pr(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(){Pr(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 jr(t,r)),r}function Pr(e,t){void 0===t&&(t=!1);var r=wr.get(e.object);Ar(r.value,e.object,e.patches,"",t),e.patches.length&&yr(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Ar(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=rr(t),o=rr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!tr(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+"/"+ir(p),value:sr(l)}),r.push({op:"remove",path:s+"/"+ir(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)?Ar(l,u,r,s+"/"+ir(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+ir(p),value:sr(l)}),r.push({op:"replace",path:s+"/"+ir(p),value:sr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;tr(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+ir(p),value:sr(t[p])})}}}function $r(e,t,r){void 0===r&&(r=!1);var s=[];return Ar(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:lr,deepClone:sr,escapePathComponent:ir,unescapePathComponent:or});var kr=r(4744),Tr=r.n(kr);const Cr={add:function(e,t){return{op:"add",path:e,value:t}},replace:Ir,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&&_r(t.path)}).op){const r=Gr(e,t.path);Object.assign(r,t.value),yr(e,[Ir(t.path,r)])}else if("mergeDeep"===t.op){const r=Gr(e,t.path),s=Tr()(r,t.value);e=yr(e,[Ir(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&qr(t.value)){yr(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${_r(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&Hr(t)&&(Array.isArray(t.value)||qr(t.value))&&(s={...s,...t.meta}),e=s}else if(yr(e,[t]),r.allowMetaPatches&&t.meta&&Hr(t)&&(Array.isArray(t.value)||qr(t.value))){const r={...Gr(e,t.path),...t.meta};yr(e,[Ir(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:Lr,fullyNormalizeArray:function(e){return Nr(Lr(Dr(e)))},normalizeArray:Dr,isPromise:function(e){return qr(e)&&Br(e.then)},forEachNew:function(e,t){try{return Fr(e,Rr,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Fr(e,Mr,t)}catch(e){return e}},isJsonPatch:Ur,isContextPatch:function(e){return zr(e)&&"context"===e.type},isPatch:zr,isMutation:Vr,isAdditiveMutation:Hr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Br,isObject:qr,isError:function(e){return e instanceof Error}};function _r(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Ir(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Fr(e,t,r){return Nr(Lr(e.filter(Hr).map((e=>t(e.value,r,e.path)))||[]))}function Mr(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>Mr(e,t,r.concat(s)))):qr(e)?Object.keys(e).map((s=>Mr(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function Rr(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)=>Rr(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(qr(e)){const n=Object.keys(e).map((s=>Rr(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Lr(s),s}function Dr(e){return Array.isArray(e)?e:[e]}function Lr(e){return[].concat(...e.map((e=>Array.isArray(e)?Lr(e):e)))}function Nr(e){return e.filter((e=>void 0!==e))}function qr(e){return e&&"object"==typeof e}function Br(e){return e&&"function"==typeof e}function Ur(e){if(zr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Vr(e){return Ur(e)||zr(e)&&"mutation"===e.type}function Hr(e){return Vr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function zr(e){return e&&"object"==typeof e}function Gr(e,t){try{return fr(e,t)}catch(e){return console.error(e),{}}}var Jr=r(8675);const Wr=class extends Jr{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 Kr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Wr,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 Yr=Kr;const Xr=class extends Yr{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var Qr=r(5606);function Zr(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function es(e){return function t(r){return 0===arguments.length||Zr(r)?t:e.apply(this,arguments)}}function ts(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return Zr(r)?t:es((function(t){return e(r,t)}));default:return Zr(r)&&Zr(s)?t:Zr(r)?es((function(t){return e(t,s)})):Zr(s)?es((function(t){return e(r,t)})):e(r,s)}}}function rs(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return Zr(r)?t:ts((function(t,s){return e(r,t,s)}));case 2:return Zr(r)&&Zr(s)?t:Zr(r)?ts((function(t,r){return e(t,s,r)})):Zr(s)?ts((function(t,s){return e(r,t,s)})):es((function(t){return e(r,s,t)}));default:return Zr(r)&&Zr(s)&&Zr(n)?t:Zr(r)&&Zr(s)?ts((function(t,r){return e(t,r,n)})):Zr(r)&&Zr(n)?ts((function(t,r){return e(t,s,r)})):Zr(s)&&Zr(n)?ts((function(t,s){return e(r,t,s)})):Zr(r)?es((function(t){return e(t,s,n)})):Zr(s)?es((function(t){return e(r,t,n)})):Zr(n)?es((function(t){return e(r,s,t)})):e(r,s,n)}}}const ss=Number.isInteger||function(e){return(e|0)===e};function ns(e){return"[object String]"===Object.prototype.toString.call(e)}function is(e,t){var r=e<0?t.length+e:e;return ns(t)?t.charAt(r):t[r]}function os(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=ss(n)?is(n,r):r[n]}return r}const as=rs((function(e,t,r){return e(os(t,r))}));function cs(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 ls(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function us(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function ps(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const hs="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ds=Object.prototype.toString;const fs=function(){return"[object Arguments]"===ds.call(arguments)?function(e){return"[object Arguments]"===ds.call(e)}:function(e){return ps("callee",e)}}();var ms=!{toString:null}.propertyIsEnumerable("toString"),ys=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],gs=function(){return arguments.propertyIsEnumerable("length")}(),vs=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},bs="function"!=typeof Object.keys||gs?es((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=gs&&fs(e);for(t in e)!ps(t,e)||n&&"length"===t||(s[s.length]=t);if(ms)for(r=ys.length-1;r>=0;)ps(t=ys[r],e)&&!vs(s,t)&&(s[s.length]=t),r-=1;return s})):es((function(e){return Object(e)!==e?[]:Object.keys(e)}));const xs=bs;const ws=es((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Es(e,t,r,s){var n=ls(e);function i(e,t){return js(e,t,r.slice(),s.slice())}return!us((function(e,t){return!us(i,t,e)}),ls(t),n)}function js(e,t,r,s){if(hs(e,t))return!0;var n,i,o=ws(e);if(o!==ws(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||!hs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!hs(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&&Es(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Es(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=xs(e);if(c.length!==xs(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(!ps(p,t)||!js(t[p],e[p],l,u))return!1;a-=1}return!0}const Os=ts((function(e,t){return js(e,t,[],[])}));function Ss(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(Os(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Ps(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function As(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 $s=function(e){return(e<10?"0":"")+e};const ks="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+$s(e.getUTCMonth()+1)+"-"+$s(e.getUTCDate())+"T"+$s(e.getUTCHours())+":"+$s(e.getUTCMinutes())+":"+$s(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ts(e){return function(){return!e.apply(this,arguments)}}function Cs(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const _s=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Is(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!_s(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 Fs(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ms=function(){return this.xf["@@transducer/init"]()},Rs=function(e){return this.xf["@@transducer/result"](e)};var Ds=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ms,e.prototype["@@transducer/result"]=Rs,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ls(e){return function(t){return new Ds(e,t)}}const Ns=ts(Is(["fantasy-land/filter","filter"],Ls,(function(e,t){return Fs(t)?Cs((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},xs(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 qs=ts((function(e,t){return Ns(Ts(e),t)}));function Bs(e,t){var r=function(r){var s=t.concat([e]);return Ss(r,s)?"<Circular>":Bs(r,s)},s=function(e,t){return Ps((function(t){return As(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ps(r,e).join(", ")+"))";case"[object Array]":return"["+Ps(r,e).concat(s(e,qs((function(e){return/^\d+$/.test(e)}),xs(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):As(ks(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())+")":As(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,xs(e)).join(", ")+"}"}}const Us=es((function(e){return Bs(e,[])}));var Vs=ts((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 "+Us(e));var r;return cs(e).test(t)}));const Hs=Vs;function zs(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 Gs(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Js=es((function(e){return!!_s(e)||!!e&&("object"==typeof e&&(!ns(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Ws="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ks(e,t,r){return function(s,n,i){if(Js(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[Ws])return r(s,n,i[Ws]());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 Ys(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 Xs=ts((function(e,t){return zs(e.length,(function(){return e.apply(t,arguments)}))}));function Qs(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 Zs(e,t,r,s){return e["@@transducer/result"](r[s](Xs(e["@@transducer/step"],e),t))}const en=Ks(Ys,Zs,Qs);var tn=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 rn(e){return new tn(e)}const sn=rs((function(e,t,r){return en("function"==typeof e?rn(e):e,t,r)}));function nn(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return _s(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const on=rs(nn("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const an=es(nn("tail",on(1,1/0)));function cn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return zs(arguments[0].length,sn(Gs,arguments[0],an(arguments)))}const ln=ts((function(e,t){return null==t||t!=t?e:t}));const un=ts((function(e,t){if(null!=t)return ss(e)?is(e,t):t[e]}));const pn=rs((function(e,t,r){return ln(e,un(t,r))}));const hn=es((function(e){return is(-1,e)}));function dn(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&&(!Zr(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,Zr(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):zs(Math.max(0,i),dn(e,s,r))}}const fn=ts((function(e,t){return 1===e?es(t):zs(e,dn(e,[],t))}));const mn=es((function(e){return fn(e.length,e)}));function yn(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const gn=ts((function(e,t){return fn(e+1,(function(){var r=arguments[e];if(null!=r&&yn(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Us(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 on(0,r+1,t)}var xn=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Ms,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=en(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=ts(Is([],wn,bn));const jn=gn(1,"join");const On=es((function(e){return fn(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(ts(Ss));const Sn=mn((function(e,t){return cn(vn(""),En(On(e)),jn(""))(t)}));function Pn(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function An(e,t,r,s){return r[s](e,t)}const $n=Ks(Cs,An,Pn);var kn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ms,e.prototype["@@transducer/result"]=Rs,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Tn=ts(Is(["fantasy-land/map","map"],(function(e){return function(t){return new kn(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return fn(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Cs((function(r,s){return r[s]=e(t[s]),r}),{},xs(t));default:return Ps(e,t)}})));const Cn=ts((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))}:$n((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 _n=ts((function(e,t){var r=fn(e,t);return fn(e,(function(){return Cs(Cn,Tn(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const In=es((function(e){return _n(e.length,e)}));const Fn=In(es((function(e){return!e})));const Mn=es((function(e){return function(){return e}}));const Rn=Mn(void 0);const Dn=Os(Rn());const Ln=Fn(Dn);const Nn=ts((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=Us(e),o=r(i,Us(t));return void 0!==o&&o===i?e:t}));const qn=ts((function(e,t){return Tn(un(e),t)}));const Bn=es((function(e){return fn(sn(Nn,0,qn("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:hs(e,r)};default:return hs(e,t)}};const Vn=Un;const Hn=fn(1,cn(ws,Vn("GeneratorFunction")));const zn=fn(1,cn(ws,Vn("AsyncFunction")));const Gn=Bn([cn(ws,Vn("Function")),Hn,zn]);var Jn=rs((function(e,t,r){return r.replace(e,t)}));const Wn=Jn;const Kn=fn(1,cn(ws,Vn("RegExp")));const Yn=rs((function(e,t,r){return e(r)?t(r):r}));const Xn=fn(1,cn(ws,Vn("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=fn(3,ei),ri=gn(2,"replaceAll");const si=Gn(String.prototype.replaceAll)?ri:ti,ni=()=>as(Hs(/^win/),["platform"],Qr),ii=e=>{try{const t=new URL(e);return Sn(":",t.protocol)}catch{return}},oi=(cn(ii,Ln),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),ai=e=>{if(Qr.browser)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=pn(!1,"keepFileProtocol",t),n=pn(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=()=>{if(Qr.browser)return pi(globalThis.location.href);const e=Qr.cwd(),t=hn(e);return["/","\\"].includes(t)?e:e+(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()},fi=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,"]")}},mi=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)},ji=function(e,t,r){return Ei(e,t,"read from private field"),r?r.call(e):t.get(e)},Oi=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)},Si=function(e,t,r,s){return Ei(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},Pi=function(e){return Object.prototype.toString.call(e)},Ai=function(e){return ArrayBuffer.isView(e)&&!vi(e,DataView)},$i=Array.isArray,ki=Object.getOwnPropertyDescriptor,Ti=Object.prototype.propertyIsEnumerable,Ci=Object.getOwnPropertySymbols,_i=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 Fi(e,t){var r;return!(null===(r=ki(e,t))||void 0===r?void 0:r.writable)}function Mi(e,t){if("object"===(void 0===e?"undefined":xi(e))&&null!==e){var r;if($i(e))r=[];else if("[object Date]"===Pi(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===Pi(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===Pi(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===Pi(e)}(e)||function(e){return"[object Number]"===Pi(e)}(e)||function(e){return"[object String]"===Pi(e)}(e))r=Object(e);else{if(Ai(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,Li={includeSymbols:!1,immutable:!1};function Ni(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Li,s=[],n=[],i=!0,o=r.includeSymbols?Ii:Object.keys,a=!!r.immutable;return function e(c){var l=a?Mi(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){$i(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 f=t.call(h,h.node);if(void 0!==f&&h.update&&h.update(f),u.before&&u.before.call(h,h.node),!p)return h;if("object"===xi(h.node)&&null!==h.node&&!h.circular){var m;n.push(h),d();var y=!0,g=!1,v=void 0;try{for(var b,x=Object.entries(null!==(m=h.keys)&&void 0!==m?m:[])[Symbol.iterator]();!(y=(b=x.next()).done);y=!0){var w,E=bi(b.value,2),j=E[0],O=E[1];s.push(O),u.pre&&u.pre.call(h,h.node[O],O);var S=e(h.node[O]);a&&_i.call(h.node,O)&&!Fi(h.node,O)&&(h.node[O]=S.node),S.isLast=!!(null===(w=h.keys)||void 0===w?void 0:w.length)&&+j==h.keys.length-1,S.isFirst=0==+j,u.post&&u.post.call(h,S),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 qi=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Li;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Oi(this,Ri),Oi(this,Di),Si(this,Ri,t),Si(this,Di,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=ji(this,Ri),r=0;t&&r<e.length;r++){var s=e[r];if(!_i.call(t,s)||!ji(this,Di).includeSymbols&&"symbol"===(void 0===s?"undefined":xi(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=ji(this,Ri),r=0;t&&r<e.length;r++){var s=e[r];if(!_i.call(t,s)||!ji(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=ji(this,Ri),s=0;for(s=0;s<e.length-1;s++){var n=e[s];_i.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Ni(ji(this,Ri),e,{immutable:!0,includeSymbols:!!ji(this,Di).includeSymbols})}},{key:"forEach",value:function(e){return Si(this,Ri,Ni(ji(this,Ri),e,ji(this,Di))),ji(this,Ri)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?ji(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=ji(this,Di);return Ai(ji(this,Ri))?ji(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=Mi(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}(ji(this,Ri))}}],r&&gi(t.prototype,r),s&&gi(t,s),e}();Ri=new WeakMap,Di=new WeakMap;var Bi=function(e,t){return new qi(e,t)};Bi.get=function(e,t,r){return new qi(e,r).get(t)},Bi.set=function(e,t,r,s){return new qi(e,s).set(t,r)},Bi.has=function(e,t,r){return new qi(e,r).has(t)},Bi.map=function(e,t,r){return new qi(e,r).map(t)},Bi.forEach=function(e,t,r){return new qi(e,r).forEach(t)},Bi.reduce=function(e,t,r,s){return new qi(e,s).reduce(t,r)},Bi.paths=function(e,t){return new qi(e,t).paths()},Bi.nodes=function(e,t){return new qi(e,t).nodes()},Bi.clone=function(e,t){return new qi(e,t).clone()};var Ui=Bi;const Vi=["properties"],Hi=["properties"],zi=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Gi=["schema/example","items/example"];function Ji(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Vi.indexOf(t)>-1&&-1===Hi.indexOf(r)||zi.indexOf(s)>-1||Gi.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(p,n),t=di(e,i).replace(p,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Ki=/^([a-z]+:\/\/|\/\/)/i;class Yi extends Xr{}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(Ji(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&&fo(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${po(e)}`,n[l]&&n[l].some((e=>fo(e,o)||fo(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:Cr.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[Cr.remove(r),p];const d=Wi(e,u),f=Cr.replace(i,p,{$$ref:d});if(u&&u!==o)return[f,Cr.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 Cr.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>s(e[t]))))}}(s.state,f)||n.useCircularStructures)return f}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:u},loadSpec:!0}).then((e=>e.text())).then((e=>zt.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&&!Cr.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?Cr.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=Cr.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 fo(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 mo={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(Ji(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={...Cr.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 Cr.replace(r,t)}return Cr.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 Cr.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),Cr,{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(Cr.isFunction),this.patches.push(Cr.add([],this.spec)),this.patches.push(Cr.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]):Cr.isFunction(e)?s=e:Cr.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(Cr.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(Cr.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),f=Cr.isObject(u),m=s.$$ref;if(d||f&&(n.allowMetaPatches&&m&&(i[m]=!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:Cr.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){Cr.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Cr.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Cr.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Cr.isContextPatch(e))return void this.setContext(e.path,e.value);Cr.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=Cr.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 Cr.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=Cr.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const jo={refs:ro,allOf:mo,parameters:yo,properties:go};async function Oo(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=Yt(e),d=Xt(e),f=p.find((e=>e.match(t)));return async function(e){h&&(jo.refs.docCache[h]=e);jo.refs.fetchJSON=Kt(d,{requestInterceptor:a,responseInterceptor:c});const t=[jo.refs];"function"==typeof o&&t.push(jo.parameters);"function"==typeof i&&t.push(jo.properties);"strict"!==r&&t.push(jo.allOf);const p=await(m={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Eo(m).dispatch());var m;l||(p.spec=f.normalize(p.spec));return p}(t)}const So=e=>e.replace(/\W/gi,"_");function Po(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?So(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()}${So(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function Ao(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=Po(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(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const $o={name:"generic",match:()=>!0,normalize(e){const{spec:t}=Ao({spec:e});return t},resolve:async e=>Oo(e)};const ko=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},To=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Co=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},_o=e=>To(e)||Co(e),Io={name:"openapi-2",match:e=>ko(e),normalize(e){const{spec:t}=Ao({spec:e});return t},resolve:async e=>async function(e){return Oo(e)}(e)};const Fo={name:"openapi-3-0",match:e=>To(e),normalize(e){const{spec:t}=Ao({spec:e});return t},resolve:async e=>async function(e){return Oo(e)}(e)},Mo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=Yt(e),i=Xt(e),o=t||await Kt(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),Ro=Mo({strategies:[Fo,Io,$o]}),Do=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 Ro({spec:h,...p,allowMetaPatches:!0,skipNormalization:!Co(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});Do({strategies:[Fo,Io,$o]});const Lo=ts((function(e,t){return e&&t}));const No=ts((function(e,t){return yn(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:In(Lo)(e,t)}));const qo=Os(null);const Bo=Fn(qo);function Uo(e){return Uo="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},Uo(e)}const Vo=function(e){return"object"===Uo(e)};const Ho=fn(1,No(Bo,Vo));var zo=cn(ws,Vn("Object")),Go=cn(Us,Os(Us(Object))),Jo=as(No(Gn,Go),["constructor"]);const Wo=fn(1,(function(e){if(!Ho(e)||!zo(e))return!1;var t=Object.getPrototypeOf(e);return!!qo(t)||Jo(t)}));var Ko=r(4035);function Yo(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Xo=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Ms,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=Yo(this.xf["@@transducer/step"](e,!1))),e},e}();function Qo(e){return function(t){return new Xo(e,t)}}const Zo=ts(Is(["all"],Qo,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class ea extends Ko.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 ta=ea;class ra extends Ko.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const sa=ra;class na extends Ko.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 ia=na;class oa extends Ko.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new Ko.wE([e.start.row,e.start.column,e.start.char]),r=new Ko.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}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 Ko.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}),fa=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ko.Hg||e(r)&&t(void 0,r))),ma=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ko.Om||e(r)&&t("string",r))),ya=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ko.kT||e(r)&&t("number",r))),ga=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ko.Os||e(r)&&t("null",r))),va=da((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Ko.bd||e(r)&&t("boolean",r))),ba=da((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Ko.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 Ko.wE&&!(s instanceof Ko.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 Ko.Pr||e(s)&&t("member",s)&&r(void 0,s))),Ea=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ko.Ft||e(s)&&t("link",s)&&r(void 0,s))),ja=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ko.sI||e(s)&&t("ref",s)&&r(void 0,s))),Oa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ta||e(s)&&t("annotation",s)&&r("array",s))),Sa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sa||e(s)&&t("comment",s)&&r("string",s))),Pa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ia||e(s)&&t("parseResult",s)&&r("array",s))),Aa=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aa||e(s)&&t("sourceMap",s)&&r("array",s))),$a=e=>ha("object",e)||ha("array",e)||ha("boolean",e)||ha("number",e)||ha("string",e)||ha("null",e)||ha("member",e),ka=e=>Aa(e.meta.get("sourceMap")),Ta=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!xa(r)&&Zo(On(r.toValue()),e)},Ca=(e,t)=>0===e.length||Zo(On(t.classes.toValue()),e);const _a=function(){return!0};const Ia=function(){return!1},Fa=(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={},Ra=e=>null==e?void 0:e.type,Da=e=>"string"==typeof Ra(e),La=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Na=(e,{visitFnGetter:t=Fa,nodeTypeGetter:r=Ra,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,f){let m=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=a.call(e[l],m,u,p,h,d,g);if("function"==typeof(null==t?void 0:t.then))throw new Xr("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=m;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},leave(n,o,l,u,p,h){let d=n;const f={...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,f);if("function"==typeof(null==t?void 0:t.then))throw new Xr("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=Fa,nodeTypeGetter:r=Ra,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,f){let m=l,y=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),m=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],r(m),!1);if("function"==typeof a){const t=await a.call(e[l],m,u,p,h,d,g);if(t===i)c[l]=m;else if(t===s)c[l]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;m=t,y=!0}}}}return y?m:void 0},async leave(n,o,l,u,p,h){let d=n;const f={...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,f);if(t===s)c[n]=s;else if(void 0!==t&&t!==i)return t}}else c[n]===d&&(c[n]=a)}}};const qa=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=Ma,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Fa,nodeTypeGetter:c=Ra,nodePredicate:l=Da,nodeCloneFn:u=La,detectCycles:p=!0}={})=>{const h=r||{};let d,f,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],w=[];do{g+=1;const e=g===y.length;let r;const O=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=f,f=w.pop(),O)if(m){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=d.index,y=d.keys,v=d.edits,m=d.inArray,d=d.prev}else if(f!==i&&void 0!==f){if(r=m?g:y[g],b=f[r],b===i||void 0===b)continue;x.push(r)}let S;if(!Array.isArray(b)){var E;if(!l(b))throw new Xr(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,f,x,w):f&&(f[r]=t),e||(b=t)}};S=i.call(t,b,r,f,x,w,n)}if("function"==typeof(null===(E=S)||void 0===E?void 0:E.then))throw new Xr("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(S===n)break;if(S===o){if(!e){x.pop();continue}}else if(void 0!==S&&(v.push([r,S]),!e)){if(!l(S)){x.pop();continue}b=S}}var j;if(void 0===S&&O&&v.push([r,b]),!e)d={inArray:m,index:g,keys:y,edits:v,prev:d},m=Array.isArray(b),y=m?b:null!==(j=h[c(b)])&&void 0!==j?j:[],g=-1,v=[],f!==i&&void 0!==f&&w.push(f),f=b}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};qa[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=Fa,nodeTypeGetter:c=Ra,nodePredicate:l=Da,nodeCloneFn:u=La,detectCycles:p=!0}={})=>{const h=r||{};let d,f,m=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],w=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===w.length?void 0:x.pop(),b=f,f=w.pop(),j)if(m){b=b.slice();let e=0;for(const[t,r]of v){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=d.index,y=d.keys,v=d.edits,m=d.inArray,d=d.prev}else if(f!==i&&void 0!==f){if(r=m?g:y[g],b=f[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new Xr(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,f,x,w):f&&(f[r]=t),e||(b=t)}};O=await i.call(t,b,r,f,x,w,n)}if(O===n)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var E;if(void 0===O&&j&&v.push([r,b]),!e)d={inArray:m,index:g,keys:y,edits:v,prev:d},m=Array.isArray(b),y=m?b:null!==(E=h[c(b)])&&void 0!==E?E:[],g=-1,v=[],f!==i&&void 0!==f&&w.push(f),f=b}while(void 0!==d);return 0!==v.length?v[v.length-1][1]:e};const Ba=class extends Xr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ua=class extends Ba{};const Va=class extends Ba{},Ha=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Ko.KeyValuePair){const{key:t,value:n}=e,i=fa(t)?Ha(t,s):t,o=fa(n)?Ha(n,s):n,a=new Ko.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Ko.ot){const t=e=>Ha(e,s),n=[...e].map(t),i=new Ko.ot(n);return r.set(e,i),i}if(e instanceof Ko.G6){const t=e=>Ha(e,s),n=[...e].map(t),i=new Ko.G6(n);return r.set(e,i),i}if(fa(e)){const t=Ja(e);if(r.set(e,t),e.content)if(fa(e.content))t.content=Ha(e.content,s);else if(e.content instanceof Ko.KeyValuePair)t.content=Ha(e.content,s);else if(Array.isArray(e.content)){const r=e=>Ha(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ua("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ha.safe=e=>{try{return Ha(e)}catch{return e}};const za=e=>{const{key:t,value:r}=e;return new Ko.KeyValuePair(t,r)},Ga=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ha(e.meta)),e.attributes.length>0&&(t._attributes=Ha(e.attributes)),fa(e.content)){const r=e.content;t.content=Ga(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Ko.KeyValuePair?t.content=za(e.content):t.content=e.content;return t},Ja=e=>{if(e instanceof Ko.KeyValuePair)return za(e);if(e instanceof Ko.ot)return(e=>{const t=[...e];return new Ko.ot(t)})(e);if(e instanceof Ko.G6)return(e=>{const t=[...e];return new Ko.G6(t)})(e);if(fa(e))return Ga(e);throw new Va("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ja.safe=e=>{try{return Ja(e)}catch{return e}};const Wa=e=>ba(e)?"ObjectElement":xa(e)?"ArrayElement":wa(e)?"MemberElement":ma(e)?"StringElement":va(e)?"BooleanElement":ya(e)?"NumberElement":ga(e)?"NullElement":Ea(e)?"LinkElement":ja(e)?"RefElement":void 0,Ka=e=>fa(e)?Ja(e):La(e),Ya=cn(Wa,Xn),Xa={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Qa{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Ia,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 Za=(e,t,{keyMap:r=Xa,...s}={})=>qa(e,t,{keyMap:r,nodeTypeGetter:Wa,nodePredicate:Ya,nodeCloneFn:Ka,...s});Za[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Xa,...s}={})=>qa[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Wa,nodePredicate:Ya,nodeCloneFn:Ka,...s});const ec=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Wa(e),tc={EphemeralObject:["content"],EphemeralArray:["content"],...Xa},rc=(e,t,{keyMap:r=tc,...s}={})=>Za(e,t,{keyMap:r,nodeTypeGetter:ec,nodePredicate:_a,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});rc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=tc,...r}={})=>Za[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ec,nodePredicate:_a,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const sc=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 nc=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 ic{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new nc(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 sc(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 ma(e.href)?e.href.toValue():""}}const oc=e=>fa(e)?ma(e)||ya(e)||va(e)||ga(e)?e.toValue():rc(e,new ic):e;const ac=rs((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})ps(s,t)&&(n[s]=ps(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)ps(s,r)&&!ps(s,n)&&(n[s]=r[s]);return n}));const cc=rs((function e(t,r,s){return ac((function(r,s,n){return Fs(s)&&Fs(n)?e(t,s,n):t(r,s,n)}),r,s)}));const lc=ts((function(e,t){return cc((function(e,t,r){return r}),e,t)}));const uc=ts(os);const pc=on(0,-1);const hc=ts((function(e,t){return e.apply(this,t)}));const dc=Fn(Gn);var fc=es((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():_s(e)?[]:ns(e)?"":Fs(e)?{}:fs(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 mc=fc;const yc=es((function(e){return null!=e&&Os(e,mc(e))}));const gc=fn(1,Gn(Array.isArray)?Array.isArray:cn(ws,Vn("Array")));const vc=No(gc,yc);var bc=fn(3,(function(e,t,r){var s=uc(e,r),n=uc(pc(e),r);if(!dc(s)&&!vc(e)){var i=Xs(s,n);return hc(i,t)}}));const xc=bc;class wc extends Ko.g${constructor(){super(),this.register("annotation",ta),this.register("comment",sa),this.register("parseResult",ia),this.register("sourceMap",aa)}}const Ec=new wc,jc=e=>{const t=new wc;return Wo(e)&&t.use(e),t},Oc=Ec,Sc=()=>({predicates:{...i},namespace:Oc}),Pc={toolboxCreator:Sc,visitorOptions:{nodeTypeGetter:Wa,exposeEdits:!0}},Ac=(e,t,r={})=>{if(0===t.length)return e;const s=lc(Pc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Na(a.map(pn({},"visitor")),{...i});a.forEach(xc(["pre"],[]));const l=Za(e,c,i);return a.forEach(xc(["post"],[])),l};Ac[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=lc(Pc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Na[Symbol.for("nodejs.util.promisify.custom")],l=Za[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(pn({},"visitor")),{...i});await Promise.allSettled(a.map(xc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(xc(["post"],[]))),p};const $c=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return fa(e)&&(e.meta.length>0&&(s.meta=Ha(e.meta)),e.attributes.length>0&&(s.attributes=Ha(e.attributes))),Ac(s,r,{toolboxCreator:Sc,visitorOptions:{nodeTypeGetter:Wa}})},kc=e=>(t,r={})=>$c(t,{...r,Type:e});Ko.Sh.refract=kc(Ko.Sh),Ko.wE.refract=kc(Ko.wE),Ko.Om.refract=kc(Ko.Om),Ko.bd.refract=kc(Ko.bd),Ko.Os.refract=kc(Ko.Os),Ko.kT.refract=kc(Ko.kT),Ko.Ft.refract=kc(Ko.Ft),Ko.sI.refract=kc(Ko.sI),ta.refract=kc(ta),sa.refract=kc(sa),ia.refract=kc(ia),aa.refract=kc(aa);const Tc=(e,t=new WeakMap)=>(wa(e)?(t.set(e.key,e),Tc(e.key,t),t.set(e.value,e),Tc(e.value,t)):e.children.forEach((r=>{t.set(r,e),Tc(r,t)})),t);const Cc=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:Tc(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)}},_c=cn(Wn(/~/g,"~0"),Wn(/\//g,"~1"),encodeURIComponent);const Ic=class extends Xr{};const Fc=class extends Ic{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Mc=e=>{try{return 0===e.length?"":`/${e.map(_c).join("/")}`}catch(t){throw new Fc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var Rc=ts((function(e,t){return fn(sn(Nn,0,qn("length",t)),(function(){var r=arguments,s=this;return e.apply(s,Ps((function(e){return e.apply(s,r)}),t))}))}));const Dc=Rc;function Lc(e){return e}const Nc=es(Lc);var qc=No(fn(1,cn(ws,Vn("Number"))),isFinite);var Bc=fn(1,qc);var Uc=No(Gn(Number.isFinite)?fn(1,Xs(Number.isFinite,Number)):Bc,Dc(Os,[Math.floor,Nc]));var Vc=fn(1,Uc);const Hc=Gn(Number.isInteger)?fn(1,Xs(Number.isInteger,Number)):Vc;var zc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Ms,e.prototype["@@transducer/result"]=Rs,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?Yo(r):r},e}();function Gc(e){return function(t){return new zc(e,t)}}const Jc=ts(Is(["take"],Gc,(function(e,t){return on(0,e<0?1/0:e,t)})));const Wc=ts((function(e,t){return Os(Jc(e.length,t),e)}));const Kc=Os("");var Yc=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ms,e.prototype["@@transducer/result"]=Rs,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 Xc(e){return function(t){return new Yc(e,t)}}const Qc=ts(Is(["dropWhile"],Xc,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return on(r,1/0,t)})));const Zc=mn((function(e,t){return cn(vn(""),Qc(On(e)),jn(""))(t)})),el=cn(Wn(/~1/g,"/"),Wn(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const tl=class extends Ic{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},rl=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return Zc("#",t)},sl=e=>{if(Kc(e))return[];if(!Wc("/",e))throw new tl(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=cn(vn("/"),Tn(el))(e);return an(t)}catch(t){throw new tl(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const nl=class extends Ic{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},il=(e,t)=>{let r;try{r=sl(e)}catch(r){throw new nl(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Ha(t),cause:r})}return r.reduce(((t,s,n)=>{if(ba(t)){if(!t.hasKey(s))throw new nl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Ha(t)});return t.get(s)}if(xa(t)){if(!(s in t.content)||!Hc(Number(s)))throw new nl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Ha(t)});return t.get(Number(s))}throw new nl(`JSON Pointer evaluation failed while evaluating token "${s}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Ha(t)})}),t)};class ol extends Ko.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const al=ol;class cl extends Ko.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 ll=cl;class ul extends Ko.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 pl=ul;class hl extends Ko.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 dl=hl;class fl extends Ko.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 ml=fl;class yl extends Ko.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 gl=yl;class vl extends Ko.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 bl=vl;class xl extends Ko.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ko.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ko.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(xl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const wl=xl;class El extends Ko.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 jl=El;class Ol extends Ko.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 Sl=Ol;class Pl extends Ko.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 ma(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):ma(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 Al=Pl;class $l extends Ko.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 kl=$l;class Tl extends Ko.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 Cl=Tl;class _l extends Ko.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 Il=_l;class Fl extends Ko.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ml=Fl;class Rl extends Ko.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 Dl=Rl;class Ll extends Ko.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 Ko.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 Nl=Ll;class ql extends Ko.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 Ko.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ko.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(ql.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Bl=ql;class Ul extends Ko.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 Vl=Ul;class Hl extends Ko.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const zl=Hl;class Gl extends Ko.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 Jl=Gl;class Wl extends Ko.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 Ko.bd(!1)}set required(e){this.set("required",e)}}const Kl=Wl;class Yl extends Ko.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 Xl=Yl;class Ql extends Ko.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 Zl=Ql;const eu=class extends Yr{};class tu extends Ko.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 ru=tu;class su extends Ko.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 nu=su;class iu extends Ko.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 ou=iu;class au extends Ko.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 cu=au;const lu=ts((function(e,t){return Cs((function(r,s){return r[s]=e(t[s],s,t),r}),{},xs(t))}));const uu=es((function(e){return null==e}));var pu=ts((function(e,t){if(0===e.length||uu(t))return!1;for(var r=t,s=0;s<e.length;){if(uu(r)||!ps(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const hu=pu;var du=ts((function(e,t){return hu([e],t)}));const fu=du;const mu=rs((function(e,t,r){return e(un(t,r))})),yu=(e,t)=>{const r=ln(e,t);return lu((e=>{if(Wo(e)&&fu("$ref",e)&&mu(Xn,"$ref",e)){const t=uc(["$ref"],e),s=Zc("#/",t);return uc(s.split("/"),r)}return Wo(e)?yu(e,r):e}),e)},gu=e=>{const t=e.meta.length>0?Ha(e.meta):void 0,r=e.attributes.length>0?Ha(e.attributes):void 0;return new e.constructor(void 0,t,r)},vu=(e,t)=>t.clone&&t.isMergeableElement(e)?xu(gu(e),e,t):e,bu={clone:!0,isMergeableElement:e=>ba(e)||xa(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>vu(e,r))),objectElementMerge:(e,t,r)=>{const s=ba(e)?gu(e):gu(t);return ba(e)&&e.forEach(((e,t,n)=>{const i=Ja(n);i.value=vu(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=oc(n);let a;if(ba(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=Ja(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return xu;const r=t.customMerge(e,t);return"function"==typeof r?r:xu})(n,r)(s,t)}else a=Ja(i),a.value=vu(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},xu=(e,t,r)=>{var s,n,i;const o={...bu,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:bu.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:bu.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:bu.objectElementMerge;const a=xa(t);if(!(a===xa(e)))return vu(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=>Ha(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Ha(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};xu.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Ko.Sh:e.reduce(((e,r)=>xu(e,r,t)),gu(e[0]))};const wu=xu;const Eu=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=wu(t.meta,e.meta),ka(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=wu(t.attributes,e.attributes))}};const ju=class extends Eu{enter(e){return this.element=Ha(e),Ma}},Ou=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Su=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Su(r,[...t,r])},Pu=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Su(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=Su(n);for(let t of e){let e=Su(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(Ou(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Au=e=>e.filter(((t,r)=>e.indexOf(t)==r)),$u=(e,t)=>{const r=t.map((e=>Su(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++}},ku=(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($u(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==$u(s,e)||void 0!==t[s],get:(r,s)=>($u(s,e)||t)[s],set(t,r,s){const n=$u(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)))))}),Tu=null,Cu="copy",_u="copy",Iu="deep",Fu=new WeakMap,Mu=e=>Fu.get(e),Ru=(e,t)=>{var r,s;const n=Au([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Au([...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},Du=(e,t)=>{var r,s,n,i;return{property:Ru(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:Ru(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Lu=(e,t)=>{var r,s,n,i,o,a;return{class:Au([...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:Du(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:Du(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Nu=new Map,qu=(...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=[...Su(e.prototype).map((e=>e.constructor)),...null!==(t=Mu(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=>Nu.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Lu(e,t)))},Bu=e=>{let t=Nu.get(e);return t||(t={},Nu.set(e,t)),t};function Uu(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Tu;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)Ou(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===_u?Pu(n,o):(a=n,c=o,ku([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Cu?Pu(e,null,["prototype"]):ku(e,Function.prototype));let l=o;if("none"!==Iu){const n="deep"===Iu?qu(...e):((...e)=>{const t=e.map((e=>Bu(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Lu(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)}Vu(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Vu(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Fu.set(u,p),l}const Vu=(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 Hu=ts((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 zu=class extends Eu{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Hu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=uc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return as(Gn,["visitors",...e],this.specObj)?uc(["visitors",...e],this.specObj):uc(["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 ju&&(null==s?void 0:s.constructor)===ju?Ha(t):(Za(t,s,r),s.element)}};const Gu=class extends zu{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(ma(s)&&r.includes(oc(s))&&!this.ignoredFields.includes(oc(s))){const r=this.toRefractedElement([...t,"fixedFields",oc(s)],e),i=new Ko.Pr(Ha(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(oc(s))||this.element.content.push(Ha(n))})),this.copyMetaAndAttributes(e,this.element),Ma}};class Ju extends(Uu(Gu,ju)){constructor(e){super(e),this.element=new ru,this.specPath=Mn(["document","objects","JSONSchema"])}}const Wu=Ju;const Ku=class{parent;constructor({parent:e}){this.parent=e}},Yu=e=>ba(e)&&e.hasKey("$ref");class Xu extends(Uu(zu,Ku,ju)){ObjectElement(e){const t=Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),Ma}ArrayElement(e){return this.element=new Ko.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Qu=Xu;const Zu=class extends ju{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const ep=es((function(e){return fn(sn(Nn,0,qn("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 tp=es((function(e){return!yc(e)}));const rp=ts((function(e,t){return e||t}));var sp=Fn(fn(1,No(Bo,ts((function(e,t){return yn(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:In(rp)(e,t)}))(Vo,Gn))));const np=ep([Xn,sp,tp]);const ip=class extends zu{specPath;ignoredFields;fieldPatternPredicate=Ia;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(oc(t))&&this.fieldPatternPredicate(oc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Ko.Pr(Ha(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oc(t))||this.element.content.push(Ha(r))})),this.copyMetaAndAttributes(e,this.element),Ma}};const op=class extends ip{constructor(e){super(e),this.fieldPatternPredicate=np}};class ap extends(Uu(op,Ku,ju)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const cp=ap;class lp extends(Uu(op,Ku,ju)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const up=lp;class pp extends(Uu(op,Ku,ju)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const hp=pp;const dp=class extends ju{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const fp=class extends ju{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 mp extends(Uu(zu,Ku,ju)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const yp=mp;class gp extends(Uu(zu,Ku,ju)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const vp=gp;class bp extends(Uu(zu,Ku,ju)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const xp=bp;class wp extends(Uu(op,Ku,ju)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Yu(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ep=wp;class jp extends(Uu(zu,Ku,ju)){constructor(e){super(e),this.element=new Ko.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 Op=jp;class Sp extends(Uu(Gu,ju)){constructor(e){super(e),this.element=new nu,this.specPath=Mn(["document","objects","JSONReference"])}ObjectElement(e){const t=Gu.prototype.ObjectElement.call(this,e);return ma(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Pp=Sp;const Ap=class extends ju{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const $p=rs((function(e,t,r){return fn(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const kp=es((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Tp=ts((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Cp=Tp;const _p=es((function(e){return is(0,e)}));const Ip=es(Yo);const Fp=Fn(uu);const Mp=No(gc,tp);function Rp(e){return function(e){if(Array.isArray(e))return Dp(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 Dp(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)?Dp(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 Dp(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 Lp=cn(Cp(kp((function(e,t){return e.length>t.length}))),_p,un("length")),Np=mn((function(e,t,r){var s=r.apply(void 0,Rp(e));return Fp(s)?Ip(s):t}));const qp=$p(Mp,(function(e){var t=Lp(e);return fn(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return sn(Np(r),void 0,e)}))}),Rn);const Bp=class extends zu{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>$p(e,Mn(t),Rn))),r=qp(t)(e);return this.element=this.toRefractedElement(r,e),Ma}};const Up=class extends Bp{constructor(e){super(e),this.alternator=[{predicate:Yu,specPath:["document","objects","JSONReference"]},{predicate:_a,specPath:["document","objects","JSONSchema"]}]}};class Vp extends(Uu(Gu,ju)){constructor(e){super(e),this.element=new ou,this.specPath=Mn(["document","objects","Media"])}}const Hp=Vp;class zp extends(Uu(Gu,ju)){constructor(e){super(e),this.element=new cu,this.specPath=Mn(["document","objects","LinkDescription"])}}const Gp={visitors:{value:ju,JSONSchemaOrJSONReferenceVisitor:Up,document:{objects:{JSONSchema:{$visitor:Wu,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:Up,items:Qu,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Zu,properties:cp,additionalProperties:Up,patternProperties:up,dependencies:hp,enum:dp,type:fp,allOf:yp,anyOf:vp,oneOf:xp,not:Up,definitions:Ep,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Op,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Pp,fixedFields:{$ref:Ap}},Media:{$visitor:Hp,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:zp,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Up,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Up}}}}}},Jp=e=>{if(fa(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Wp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Xa},Kp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ru||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),Yp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nu||e(s)&&t("JSONReference",s)&&r("object",s))),Xp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ou||e(s)&&t("media",s)&&r("object",s))),Qp=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cu||e(s)&&t("linkDescription",s)&&r("object",s))),Zp={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ru),t.register("jSONReference",nu),t.register("media",ou),t.register("linkDescription",cu),t}},eh=()=>{const e=jc(Zp);return{predicates:{...o,isStringElement:ma},namespace:e}},th=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Gp}={})=>{const n=(0,Ko.e)(e),i=yu(s),o=new(uc(t,i))({specObj:i});return Za(n,o),Ac(o.element,r,{toolboxCreator:eh,visitorOptions:{keyMap:Wp,nodeTypeGetter:Jp}})},rh=e=>(t,r={})=>th(t,{specPath:e,...r});ru.refract=rh(["visitors","document","objects","JSONSchema","$visitor"]),nu.refract=rh(["visitors","document","objects","JSONReference","$visitor"]),ou.refract=rh(["visitors","document","objects","Media","$visitor"]),cu.refract=rh(["visitors","document","objects","LinkDescription","$visitor"]);const sh=class extends ru{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 nh extends Ko.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const ih=nh;class oh extends Ko.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 ch extends Ko.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 lh=ch;class uh extends Ko.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 ph=uh;class hh extends Ko.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 dh=hh;class fh extends Ko.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=fh;const yh=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=wu(t.meta,e.meta),ka(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=wu(t.attributes,e.attributes))}};const gh=class extends yh{enter(e){return this.element=Ha(e),Ma}};const vh=class extends yh{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 Hu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=uc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return as(Gn,["visitors",...e],this.specObj)?uc(["visitors",...e],this.specObj):uc(["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 gh&&(null==s?void 0:s.constructor)===gh?Ha(t):(Za(t,s,r),s.element)}},bh=e=>ba(e)&&e.hasKey("$ref"),xh=ba,wh=ba,Eh=e=>ma(e.key)&&Wc("x-",oc(e.key));const jh=class extends vh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Eh;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(ma(s)&&r.includes(oc(s))&&!this.ignoredFields.includes(oc(s))){const r=this.toRefractedElement([...t,"fixedFields",oc(s)],e),i=new Ko.Pr(Ha(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(oc(s))||this.element.content.push(Ha(n))})),this.copyMetaAndAttributes(e,this.element),Ma}};class Oh extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Dl,this.specPath=Mn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return jh.prototype.ObjectElement.call(this,e)}}const Sh=Oh;class Ph extends(Uu(vh,gh)){StringElement(e){const t=new Ml(oc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ma}}const Ah=Ph;const $h=class extends vh{MemberElement(e){return this.element=Ha(e),this.element.classes.push("specification-extension"),Ma}};class kh extends(Uu(jh,gh)){constructor(e){super(e),this.element=new jl,this.specPath=Mn(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Th=kh;const Ch=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class _h extends(Uu(jh,gh)){constructor(e){super(e),this.element=new pl,this.specPath=Mn(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ih=_h;class Fh extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Sl,this.specPath=Mn(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Mh=Fh;class Rh extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Al,this.specPath=Mn(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return(ma(this.element.operationId)||ma(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Dh=Rh;const Lh=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Nh=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const qh=class extends vh{specPath;ignoredFields;fieldPatternPredicate=Ia;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Eh;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(oc(t))&&this.fieldPatternPredicate(oc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Ko.Pr(Ha(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(oc(t))||this.element.content.push(Ha(r))})),this.copyMetaAndAttributes(e,this.element),Ma}};const Bh=class extends qh{constructor(e){super(e),this.fieldPatternPredicate=np}};class Uh extends Ko.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Uh.primaryClass)}}const Vh=Uh;class Hh extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Vh,this.specPath=Mn(["value"])}}const zh=Hh;class Gh extends(Uu(jh,gh)){constructor(e){super(e),this.element=new lh,this.specPath=Mn(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Jh=Gh;const Wh=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Kh extends Ko.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Kh.primaryClass)}}const Yh=Kh;class Xh extends(Uu(vh,gh)){constructor(e){super(e),this.element=new Yh}ArrayElement(e){return e.forEach((e=>{const t=xh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Qh=Xh;class Zh extends(Uu(jh,gh)){constructor(e){super(e),this.element=new ph,this.specPath=Mn(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const ed=Zh;class td extends Ko.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(td.primaryClass)}}const rd=td;class sd extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new rd,this.specPath=Mn(["document","objects","ServerVariable"])}}const nd=sd;class id extends(Uu(jh,gh)){constructor(e){super(e),this.element=new kl,this.specPath=Mn(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const od=id;const ad=class extends vh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>$p(e,Mn(t),Rn))),r=qp(t)(e);return this.element=this.toRefractedElement(r,e),Ma}},cd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof al||e(s)&&t("callback",s)&&r("object",s))),ld=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ll||e(s)&&t("components",s)&&r("object",s))),ud=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pl||e(s)&&t("contact",s)&&r("object",s))),pd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gl||e(s)&&t("example",s)&&r("object",s))),hd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bl||e(s)&&t("externalDocumentation",s)&&r("object",s))),dd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wl||e(s)&&t("header",s)&&r("object",s))),fd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jl||e(s)&&t("info",s)&&r("object",s))),md=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sl||e(s)&&t("license",s)&&r("object",s))),yd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Al||e(s)&&t("link",s)&&r("object",s))),gd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ml||e(s)&&t("openapi",s)&&r("string",s))),vd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Dl||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),bd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nl||e(s)&&t("operation",s)&&r("object",s))),xd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bl||e(s)&&t("parameter",s)&&r("object",s))),wd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vl||e(s)&&t("pathItem",s)&&r("object",s))),Ed=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zl||e(s)&&t("paths",s)&&r("object",s))),jd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jl||e(s)&&t("reference",s)&&r("object",s))),Od=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kl||e(s)&&t("requestBody",s)&&r("object",s))),Sd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xl||e(s)&&t("response",s)&&r("object",s))),Pd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zl||e(s)&&t("responses",s)&&r("object",s))),Ad=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sh||e(s)&&t("schema",s)&&r("object",s))),$d=e=>va(e)&&e.classes.includes("boolean-json-schema"),kd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ih||e(s)&&t("securityRequirement",s)&&r("object",s))),Td=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ah||e(s)&&t("securityScheme",s)&&r("object",s))),Cd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lh||e(s)&&t("server",s)&&r("object",s))),_d=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ph||e(s)&&t("serverVariable",s)&&r("object",s))),Id=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kl||e(s)&&t("mediaType",s)&&r("object",s))),Fd=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Yh||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Md extends(Uu(ad,gh)){constructor(e){super(e),this.alternator=[{predicate:bh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ad.prototype.enter.call(this,e);return jd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Rd=Md;class Dd extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("examples"),this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Ld=Dd;class Nd extends Ko.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Nd.primaryClass),this.classes.push("examples")}}const qd=Nd;const Bd=class extends Ld{constructor(e){super(e),this.element=new qd}};class Ud extends Ko.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Ud.primaryClass)}}const Vd=Ud;class Hd extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Vd,this.specPath=Mn(["document","objects","Encoding"])}}const zd=Hd;class Gd extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new ih,this.specPath=Mn(["value"])}}const Jd=Gd;class Wd extends Ko.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Wd.primaryClass)}}const Kd=Wd;class Yd extends(Uu(vh,gh)){constructor(e){super(e),this.element=new Kd}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(Ha(e))})),this.copyMetaAndAttributes(e,this.element),Ma}}const Xd=Yd;class Qd extends(Uu(jh,gh)){constructor(e){super(e),this.element=new ll,this.specPath=Mn(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Zd=Qd;class ef extends(Uu(jh,gh)){constructor(e){super(e),this.element=new dh,this.specPath=Mn(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const tf=ef;class rf extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Jl,this.specPath=Mn(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return ma(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const sf=rf;const nf=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class of extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Bl,this.specPath=Mn(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return ba(this.element.contentProp)&&this.element.contentProp.filter(Id).forEach(((e,t)=>{e.setMetaProperty("media-type",oc(t))})),t}}const af=of;class cf extends(Uu(ad,gh)){constructor(e){super(e),this.alternator=[{predicate:bh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ad.prototype.enter.call(this,e);return jd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const lf=cf;class uf extends(Uu(jh,gh)){constructor(e){super(e),this.element=new wl,this.specPath=Mn(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const pf=uf;class hf extends(Uu(ad,gh)){constructor(e){super(e),this.alternator=[{predicate:bh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ad.prototype.enter.call(this,e);return jd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const df=hf;class ff extends Ko.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ff.primaryClass),this.classes.push("examples")}}const mf=ff;const yf=class extends Ld{constructor(e){super(e),this.element=new mf}};class gf extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("content"),this.specPath=Mn(["document","objects","MediaType"])}}const vf=gf;class bf extends Ko.Sh{static primaryClass="header-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 vf{constructor(e){super(e),this.element=new xf}};class Ef extends(Uu(jh,gh)){constructor(e){super(e),this.element=new sh,this.specPath=Mn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const jf=Ef,Of=Gp.visitors.document.objects.JSONSchema.fixedFields.allOf;const Sf=class extends Of{ArrayElement(e){const t=Of.prototype.ArrayElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Pf=Gp.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Af=class extends Pf{ArrayElement(e){const t=Pf.prototype.ArrayElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},$f=Gp.visitors.document.objects.JSONSchema.fixedFields.oneOf;const kf=class extends $f{ArrayElement(e){const t=$f.prototype.ArrayElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Tf=Gp.visitors.document.objects.JSONSchema.fixedFields.items;const Cf=class extends Tf{ObjectElement(e){const t=Tf.prototype.ObjectElement.call(this,e);return jd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},_f=Gp.visitors.document.objects.JSONSchema.fixedFields.properties;const If=class extends _f{ObjectElement(e){const t=_f.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Ff=Gp.visitors.document.objects.JSONSchema.fixedFields.type;const Mf=class extends Ff{ArrayElement(e){return this.enter(e)}},Rf=Gp.visitors.JSONSchemaOrJSONReferenceVisitor;const Df=class extends Rf{ObjectElement(e){const t=Rf.prototype.enter.call(this,e);return jd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Lf extends(Uu(jh,gh)){constructor(e){super(e),this.element=new dl,this.specPath=Mn(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Nf=Lf;class qf extends Ko.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(qf.primaryClass)}}const Bf=qf;class Uf extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Bf,this.specPath=Mn(["value"])}}const Vf=Uf;class Hf extends(Uu(jh,gh)){constructor(e){super(e),this.element=new mh,this.specPath=Mn(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const zf=Hf;class Gf extends Ko.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Gf.primaryClass),this.classes.push("examples")}}const Jf=Gf;const Wf=class extends Ld{constructor(e){super(e),this.element=new Jf}};class Kf extends Ko.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Kf.primaryClass),this.classes.push("content")}}const Yf=Kf;const Xf=class extends vf{constructor(e){super(e),this.element=new Yf}};class Qf extends Ko.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Qf.primaryClass)}}const Zf=Qf;class em extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Zf,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const tm=em;class rm extends Ko.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(rm.primaryClass)}}const sm=rm;class nm extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new sm,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sd).forEach(((e,t)=>{e.setMetaProperty("http-status-code",oc(t))})),t}}const im=nm;class om extends Ko.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(om.primaryClass),this.classes.push("parameters")}}const am=om;class cm extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new am,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const lm=cm;class um extends Ko.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(um.primaryClass),this.classes.push("examples")}}const pm=um;class hm extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new pm,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const dm=hm;class fm extends Ko.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(fm.primaryClass)}}const mm=fm;class ym extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new mm,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const gm=ym;class vm extends Ko.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(vm.primaryClass)}}const bm=vm;class xm extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new bm,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(dd).forEach(((e,t)=>{e.setMetaProperty("header-name",oc(t))})),t}}const wm=xm;class Em extends Ko.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Em.primaryClass)}}const jm=Em;class Om extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new jm,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Sm=Om;class Pm extends Ko.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Pm.primaryClass)}}const Am=Pm;class $m extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Am,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const km=$m;class Tm extends Ko.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Tm.primaryClass)}}const Cm=Tm;class _m extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Cm,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Im=_m;class Fm extends(Uu(jh,gh)){constructor(e){super(e),this.element=new gl,this.specPath=Mn(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return ma(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Mm=Fm;const Rm=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Dm extends(Uu(jh,gh)){constructor(e){super(e),this.element=new bl,this.specPath=Mn(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Lm=Dm;class Nm extends(Uu(jh,gh)){constructor(e){super(e),this.element=new ml,this.specPath=Mn(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return ba(this.element.headers)&&this.element.headers.filter(dd).forEach(((e,t)=>{e.setMetaProperty("header-name",oc(t))})),t}}const qm=Nm;class Bm extends Ko.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Bm.primaryClass)}}const Um=Bm;class Vm extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Um,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!dd(e))return;const r=oc(t);e.setMetaProperty("headerName",r)})),t}}const Hm=Vm;class zm extends(Uu(qh,gh)){constructor(e){super(e),this.element=new zl,this.specPath=Mn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=_a}ObjectElement(e){const t=qh.prototype.ObjectElement.call(this,e);return this.element.filter(wd).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Ha(t))})),t}}const Gm=zm;class Jm extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Kl,this.specPath=Mn(["document","objects","RequestBody"])}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return ba(this.element.contentProp)&&this.element.contentProp.filter(Id).forEach(((e,t)=>{e.setMetaProperty("media-type",oc(t))})),t}}const Wm=Jm;class Km extends Ko.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Km.primaryClass),this.classes.push("content")}}const Ym=Km;const Xm=class extends vf{constructor(e){super(e),this.element=new Ym}};class Qm extends(Uu(qh,gh)){constructor(e){super(e),this.element=new al,this.specPath=Mn(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(wd).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",oc(t))})),t}}const Zm=Qm;class ey extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Xl,this.specPath=Mn(["document","objects","Response"])}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return ba(this.element.contentProp)&&this.element.contentProp.filter(Id).forEach(((e,t)=>{e.setMetaProperty("media-type",oc(t))})),ba(this.element.headers)&&this.element.headers.filter(dd).forEach(((e,t)=>{e.setMetaProperty("header-name",oc(t))})),t}}const ty=ey;class ry extends Ko.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ry.primaryClass)}}const sy=ry;class ny extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new sy,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!dd(e))return;const r=oc(t);e.setMetaProperty("header-name",r)})),t}}const iy=ny;class oy extends Ko.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(oy.primaryClass),this.classes.push("content")}}const ay=oy;const cy=class extends vf{constructor(e){super(e),this.element=new ay}};class ly extends Ko.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ly.primaryClass)}}const uy=ly;class py extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new uy,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const hy=py;function dy(e){return"[object Number]"===Object.prototype.toString.call(e)}var fy=ts((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 my=fy;function yy(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?!!Ss(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?!!Ss(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const gy=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!yy(e,!0,this)},e.prototype.has=function(e){return yy(e,!1,this)},e}();var vy=ts((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new gy,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 by=vy;class xy extends(Uu(jh,qh)){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,...by(e.keys(),t)],jh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,qh.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return Ma}}const wy=xy;class Ey extends(Uu(wy,gh)){constructor(e){super(e),this.element=new Zl,this.specPathFixedFields=Mn(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>bh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${my(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=wy.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sd).forEach(((e,t)=>{const r=Ha(t);this.fieldPatternPredicate(oc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const jy=Ey;class Oy extends(Uu(ad,gh)){constructor(e){super(e),this.alternator=[{predicate:bh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ad.prototype.enter.call(this,e);return jd(this.element)?this.element.setMetaProperty("referenced-element","response"):Sd(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Sy=Oy;class Py extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Nl,this.specPath=Mn(["document","objects","Operation"])}}const Ay=Py;class $y extends Ko.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push($y.primaryClass)}}const ky=$y;const Ty=class extends gh{constructor(e){super(e),this.element=new ky}ArrayElement(e){return this.element=this.element.concat(Ha(e)),Ma}};class Cy extends Ko.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Cy.primaryClass),this.classes.push("parameters")}}const _y=Cy;class Iy extends(Uu(vh,gh)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=bh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);jd(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const Fy=Iy;const My=class extends Fy{constructor(e){super(e),this.element=new _y}};const Ry=class extends ad{constructor(e){super(e),this.alternator=[{predicate:bh,specPath:["document","objects","Reference"]},{predicate:_a,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=ad.prototype.enter.call(this,e);return jd(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Dy extends Ko.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Dy.primaryClass)}}const Ly=Dy;class Ny extends(Uu(Bh,gh)){specPath;constructor(e){super(e),this.element=new Ly,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const qy=Ny;class By extends Ko.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(By.primaryClass),this.classes.push("security")}}const Uy=By;class Vy extends(Uu(vh,gh)){constructor(e){super(e),this.element=new Uy}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 Hy=Vy;class zy extends Ko.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(zy.primaryClass),this.classes.push("servers")}}const Gy=zy;const Jy=class extends Qh{constructor(e){super(e),this.element=new Gy}};class Wy extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Vl,this.specPath=Mn(["document","objects","PathItem"])}ObjectElement(e){const t=jh.prototype.ObjectElement.call(this,e);return this.element.filter(bd).forEach(((e,t)=>{const r=Ha(t);r.content=oc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),ma(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Ky=Wy;const Yy=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Xy extends Ko.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Xy.primaryClass),this.classes.push("servers")}}const Qy=Xy;const Zy=class extends Qh{constructor(e){super(e),this.element=new Qy}};class eg extends Ko.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(eg.primaryClass),this.classes.push("parameters")}}const tg=eg;const rg=class extends Fy{constructor(e){super(e),this.element=new tg}};class sg extends(Uu(jh,gh)){constructor(e){super(e),this.element=new ah,this.specPath=Mn(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const ng=sg;class ig extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Il,this.specPath=Mn(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const og=ig;class ag extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Cl,this.specPath=Mn(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const cg=ag;class lg extends Ko.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(lg.primaryClass)}}const ug=lg;class pg extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new ug,this.specPath=Mn(["value"])}}const hg=pg;class dg extends Ko.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(dg.primaryClass)}}const fg=dg;class mg extends(Uu(vh,gh)){constructor(e){super(e),this.element=new fg}ArrayElement(e){return e.forEach((e=>{const t=wh(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),Ma}}const yg=mg,{fixedFields:gg}=Gp.visitors.document.objects.JSONSchema,vg={visitors:{value:gh,document:{objects:{OpenApi:{$visitor:Sh,fixedFields:{openapi:Ah,info:{$ref:"#/visitors/document/objects/Info"},servers:Qh,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Xd,tags:yg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Th,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:Ch}},Contact:{$visitor:Ih,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Mh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Jh,fixedFields:{url:Wh,description:{$ref:"#/visitors/value"},variables:nd}},ServerVariable:{$visitor:ed,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Zd,fixedFields:{schemas:tm,responses:im,parameters:lm,examples:dm,requestBodies:gm,headers:wm,securitySchemes:Sm,links:km,callbacks:Im}},Paths:{$visitor:Gm},PathItem:{$visitor:Ky,fixedFields:{$ref:Yy,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:Zy,parameters:rg}},Operation:{$visitor:Ay,fixedFields:{tags:Ty,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:My,requestBody:Ry,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qy,deprecated:{$ref:"#/visitors/value"},security:Hy,servers:Jy}},ExternalDocumentation:{$visitor:Lm,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:af,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:lf,example:{$ref:"#/visitors/value"},examples:Wf,content:Xf}},RequestBody:{$visitor:Wm,fixedFields:{description:{$ref:"#/visitors/value"},content:Xm,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:od,fixedFields:{schema:Rd,example:{$ref:"#/visitors/value"},examples:Bd,encoding:zd}},Encoding:{$visitor:qm,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Hm,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:jy,fixedFields:{default:Sy}},Response:{$visitor:ty,fixedFields:{description:{$ref:"#/visitors/value"},headers:iy,content:cy,links:hy}},Callback:{$visitor:Zm},Example:{$visitor:Mm,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Rm}},Link:{$visitor:Dh,fixedFields:{operationRef:Lh,operationId:Nh,parameters:zh,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pf,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:df,example:{$ref:"#/visitors/value"},examples:yf,content:wf}},Tag:{$visitor:tf,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:sf,fixedFields:{$ref:nf}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:jf,fixedFields:{title:gg.title,multipleOf:gg.multipleOf,maximum:gg.maximum,exclusiveMaximum:gg.exclusiveMaximum,minimum:gg.minimum,exclusiveMinimum:gg.exclusiveMinimum,maxLength:gg.maxLength,minLength:gg.minLength,pattern:gg.pattern,maxItems:gg.maxItems,minItems:gg.minItems,uniqueItems:gg.uniqueItems,maxProperties:gg.maxProperties,minProperties:gg.minProperties,required:gg.required,enum:gg.enum,type:Mf,allOf:Sf,anyOf:Af,oneOf:kf,not:Df,items:Cf,properties:If,additionalProperties:Df,description:gg.description,format:gg.format,default:gg.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:Vf}},XML:{$visitor:zf,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:ng,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:og,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:cg,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:hg}},SecurityRequirement:{$visitor:Jd}},extension:{$visitor:$h}}}},bg=e=>{if(fa(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xg={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"],...Xa},wg={namespace:e=>{const{base:t}=e;return t.register("callback",al),t.register("components",ll),t.register("contact",pl),t.register("discriminator",dl),t.register("encoding",ml),t.register("example",gl),t.register("externalDocumentation",bl),t.register("header",wl),t.register("info",jl),t.register("license",Sl),t.register("link",Al),t.register("mediaType",kl),t.register("oAuthFlow",Cl),t.register("oAuthFlows",Il),t.register("openapi",Ml),t.register("openApi3_0",Dl),t.register("operation",Nl),t.register("parameter",Bl),t.register("pathItem",Vl),t.register("paths",zl),t.register("reference",Jl),t.register("requestBody",Kl),t.register("response",Xl),t.register("responses",Zl),t.register("schema",sh),t.register("securityRequirement",ih),t.register("securityScheme",ah),t.register("server",lh),t.register("serverVariable",ph),t.register("tag",dh),t.register("xml",mh),t}},Eg=()=>{const e=jc(wg);return{predicates:{...a,isElement:fa,isStringElement:ma,isArrayElement:xa,isObjectElement:ba,isMemberElement:wa,includesClasses:Ca,hasElementSourceMap:ka},namespace:e}},jg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Ko.e)(e),n=yu(vg),i=new(uc(t,n))({specObj:n});return Za(s,i),Ac(i.element,r,{toolboxCreator:Eg,visitorOptions:{keyMap:xg,nodeTypeGetter:bg}})},Og=e=>(t,r={})=>jg(t,{specPath:e,...r});al.refract=Og(["visitors","document","objects","Callback","$visitor"]),ll.refract=Og(["visitors","document","objects","Components","$visitor"]),pl.refract=Og(["visitors","document","objects","Contact","$visitor"]),gl.refract=Og(["visitors","document","objects","Example","$visitor"]),dl.refract=Og(["visitors","document","objects","Discriminator","$visitor"]),ml.refract=Og(["visitors","document","objects","Encoding","$visitor"]),bl.refract=Og(["visitors","document","objects","ExternalDocumentation","$visitor"]),wl.refract=Og(["visitors","document","objects","Header","$visitor"]),jl.refract=Og(["visitors","document","objects","Info","$visitor"]),Sl.refract=Og(["visitors","document","objects","License","$visitor"]),Al.refract=Og(["visitors","document","objects","Link","$visitor"]),kl.refract=Og(["visitors","document","objects","MediaType","$visitor"]),Cl.refract=Og(["visitors","document","objects","OAuthFlow","$visitor"]),Il.refract=Og(["visitors","document","objects","OAuthFlows","$visitor"]),Ml.refract=Og(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Dl.refract=Og(["visitors","document","objects","OpenApi","$visitor"]),Nl.refract=Og(["visitors","document","objects","Operation","$visitor"]),Bl.refract=Og(["visitors","document","objects","Parameter","$visitor"]),Vl.refract=Og(["visitors","document","objects","PathItem","$visitor"]),zl.refract=Og(["visitors","document","objects","Paths","$visitor"]),Jl.refract=Og(["visitors","document","objects","Reference","$visitor"]),Kl.refract=Og(["visitors","document","objects","RequestBody","$visitor"]),Xl.refract=Og(["visitors","document","objects","Response","$visitor"]),Zl.refract=Og(["visitors","document","objects","Responses","$visitor"]),sh.refract=Og(["visitors","document","objects","Schema","$visitor"]),ih.refract=Og(["visitors","document","objects","SecurityRequirement","$visitor"]),ah.refract=Og(["visitors","document","objects","SecurityScheme","$visitor"]),lh.refract=Og(["visitors","document","objects","Server","$visitor"]),ph.refract=Og(["visitors","document","objects","ServerVariable","$visitor"]),dh.refract=Og(["visitors","document","objects","Tag","$visitor"]),mh.refract=Og(["visitors","document","objects","XML","$visitor"]);const Sg=class extends al{};const Pg=class extends ll{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Ag=class extends pl{};const $g=class extends dl{};const kg=class extends ml{};const Tg=class extends gl{};const Cg=class extends bl{};const _g=class extends wl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ig=class extends jl{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 Fg extends Ko.Om{static default=new Fg("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Mg=Fg;const Rg=class extends Sl{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Dg=class extends Al{};const Lg=class extends kl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ng=class extends Cl{};const qg=class extends Il{};const Bg=class extends Ml{};class Ug extends Ko.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 Vg=Ug;const Hg=class extends Nl{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const zg=class extends Bl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Gg=class extends Vl{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 Jg=class extends zl{};class Wg extends Jl{}Object.defineProperty(Wg.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Wg.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Kg=Wg;const Yg=class extends Kl{};const Xg=class extends Xl{};const Qg=class extends Zl{};class Zg extends Ko.Sh{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",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 $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",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 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 prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}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 properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",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 type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",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 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 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 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",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 deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",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 contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}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 ev=Zg;const tv=class extends ih{};const rv=class extends ah{};const sv=class extends lh{};const nv=class extends ph{};const iv=class extends dh{};const ov=class extends mh{};class av extends(Uu(jh,gh)){constructor(e){super(e),this.element=new Vg,this.specPath=Mn(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,jh.prototype.ObjectElement.call(this,e)}}const cv=av,lv=vg.visitors.document.objects.Info.$visitor;const uv=class extends lv{constructor(e){super(e),this.element=new Ig}},pv=vg.visitors.document.objects.Contact.$visitor;const hv=class extends pv{constructor(e){super(e),this.element=new Ag}},dv=vg.visitors.document.objects.License.$visitor;const fv=class extends dv{constructor(e){super(e),this.element=new Rg}},mv=vg.visitors.document.objects.Link.$visitor;const yv=class extends mv{constructor(e){super(e),this.element=new Dg}};class gv extends(Uu(vh,gh)){StringElement(e){const t=new Mg(oc(e));return this.copyMetaAndAttributes(e,t),this.element=t,Ma}}const vv=gv,bv=vg.visitors.document.objects.Server.$visitor;const xv=class extends bv{constructor(e){super(e),this.element=new sv}},wv=vg.visitors.document.objects.ServerVariable.$visitor;const Ev=class extends wv{constructor(e){super(e),this.element=new nv}},jv=vg.visitors.document.objects.MediaType.$visitor;const Ov=class extends jv{constructor(e){super(e),this.element=new Lg}},Sv=vg.visitors.document.objects.SecurityRequirement.$visitor;const Pv=class extends Sv{constructor(e){super(e),this.element=new tv}},Av=vg.visitors.document.objects.Components.$visitor;const $v=class extends Av{constructor(e){super(e),this.element=new Pg}},kv=vg.visitors.document.objects.Tag.$visitor;const Tv=class extends kv{constructor(e){super(e),this.element=new iv}},Cv=vg.visitors.document.objects.Reference.$visitor;const _v=class extends Cv{constructor(e){super(e),this.element=new Kg}},Iv=vg.visitors.document.objects.Parameter.$visitor;const Fv=class extends Iv{constructor(e){super(e),this.element=new zg}},Mv=vg.visitors.document.objects.Header.$visitor;const Rv=class extends Mv{constructor(e){super(e),this.element=new _g}},Dv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sg||e(s)&&t("callback",s)&&r("object",s))),Lv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pg||e(s)&&t("components",s)&&r("object",s))),Nv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ag||e(s)&&t("contact",s)&&r("object",s))),qv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tg||e(s)&&t("example",s)&&r("object",s))),Bv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cg||e(s)&&t("externalDocumentation",s)&&r("object",s))),Uv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _g||e(s)&&t("header",s)&&r("object",s))),Vv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ig||e(s)&&t("info",s)&&r("object",s))),Hv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mg||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),zv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rg||e(s)&&t("license",s)&&r("object",s))),Gv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dg||e(s)&&t("link",s)&&r("object",s))),Jv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bg||e(s)&&t("openapi",s)&&r("string",s))),Wv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Vg||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),Kv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hg||e(s)&&t("operation",s)&&r("object",s))),Yv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zg||e(s)&&t("parameter",s)&&r("object",s))),Xv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gg||e(s)&&t("pathItem",s)&&r("object",s))),Qv=e=>{if(!Xv(e))return!1;if(!ma(e.$ref))return!1;const t=oc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Zv=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jg||e(s)&&t("paths",s)&&r("object",s))),eb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kg||e(s)&&t("reference",s)&&r("object",s))),tb=e=>{if(!eb(e))return!1;if(!ma(e.$ref))return!1;const t=oc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},rb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yg||e(s)&&t("requestBody",s)&&r("object",s))),sb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xg||e(s)&&t("response",s)&&r("object",s))),nb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qg||e(s)&&t("responses",s)&&r("object",s))),ib=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ev||e(s)&&t("schema",s)&&r("object",s))),ob=e=>va(e)&&e.classes.includes("boolean-json-schema"),ab=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tv||e(s)&&t("securityRequirement",s)&&r("object",s))),cb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rv||e(s)&&t("securityScheme",s)&&r("object",s))),lb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sv||e(s)&&t("server",s)&&r("object",s))),ub=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nv||e(s)&&t("serverVariable",s)&&r("object",s))),pb=da((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lg||e(s)&&t("mediaType",s)&&r("object",s)));const hb=class{parent;constructor({parent:e}){this.parent=e}};class db extends(Uu(jh,hb,gh)){constructor(e){super(e),this.element=new ev,this.specPath=Mn(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Mg.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=jh.prototype.ObjectElement.call(this,e);return ma(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){const t=super.enter(e);return this.element.classes.push("boolean-json-schema"),t}getJsonSchemaDialect(){let e;return e=void 0!==this.openApiSemanticElement&&Hv(this.openApiSemanticElement.jsonSchemaDialect)?oc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&ma(this.openApiGenericElement.get("jsonSchemaDialect"))?oc(this.openApiGenericElement.get("jsonSchemaDialect")):oc(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(Dn(this.parent)&&!ma(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(ib(this.parent)&&!ma(e.get("$schema"))){const e=ln(oc(this.parent.meta.get("inherited$schema")),oc(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?Ha(this.parent.getMetaProperty("inherited$id",[])):new Ko.wE,r=oc(e.get("$id"));np(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)}}const fb=db;const mb=class extends gh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const yb=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class gb extends(Uu(Bh,hb,gh)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=Mn(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const vb=gb;class bb extends(Uu(vh,hb,gh)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(ba(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ha(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ma}}const xb=bb;class wb extends(Uu(vh,hb,gh)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(ba(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ha(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ma}}const Eb=wb;class jb extends(Uu(vh,hb,gh)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(ba(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ha(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ma}}const Ob=jb;class Sb extends(Uu(Bh,hb,gh)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Mn(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Pb=Sb;class Ab extends(Uu(vh,hb,gh)){constructor(e){super(e),this.element=new Ko.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(ba(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Ha(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),Ma}}const $b=Ab;class kb extends(Uu(Bh,hb,gh)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-properties"),this.specPath=Mn(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Tb=kb;class Cb extends(Uu(Bh,hb,gh)){constructor(e){super(e),this.element=new Ko.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=Mn(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const _b=Cb;const Ib=class extends gh{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}};const Fb=class extends gh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Mb=class extends gh{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Rb=class extends gh{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},Db=vg.visitors.document.objects.Discriminator.$visitor;const Lb=class extends Db{constructor(e){super(e),this.element=new $g,this.canSupportSpecificationExtensions=!0}},Nb=vg.visitors.document.objects.XML.$visitor;const qb=class extends Nb{constructor(e){super(e),this.element=new ov}};class Bb extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Zf,this.specPath=Mn(["document","objects","Schema"])}}const Ub=Bb;class Vb extends Ko.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(Vb.primaryClass)}}const Hb=Vb;class zb extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new Hb,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(eb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Gb=zb,Jb=vg.visitors.document.objects.Example.$visitor;const Wb=class extends Jb{constructor(e){super(e),this.element=new Tg}},Kb=vg.visitors.document.objects.ExternalDocumentation.$visitor;const Yb=class extends Kb{constructor(e){super(e),this.element=new Cg}},Xb=vg.visitors.document.objects.Encoding.$visitor;const Qb=class extends Xb{constructor(e){super(e),this.element=new kg}},Zb=vg.visitors.document.objects.Paths.$visitor;const ex=class extends Zb{constructor(e){super(e),this.element=new Jg}},tx=vg.visitors.document.objects.RequestBody.$visitor;const rx=class extends tx{constructor(e){super(e),this.element=new Yg}},sx=vg.visitors.document.objects.Callback.$visitor;const nx=class extends sx{constructor(e){super(e),this.element=new Sg,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=sx.prototype.ObjectElement.call(this,e);return this.element.filter(eb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},ix=vg.visitors.document.objects.Response.$visitor;const ox=class extends ix{constructor(e){super(e),this.element=new Xg}},ax=vg.visitors.document.objects.Responses.$visitor;const cx=class extends ax{constructor(e){super(e),this.element=new Qg}},lx=vg.visitors.document.objects.Operation.$visitor;const ux=class extends lx{constructor(e){super(e),this.element=new Hg}},px=vg.visitors.document.objects.PathItem.$visitor;const hx=class extends px{constructor(e){super(e),this.element=new Gg}},dx=vg.visitors.document.objects.SecurityScheme.$visitor;const fx=class extends dx{constructor(e){super(e),this.element=new rv}},mx=vg.visitors.document.objects.OAuthFlows.$visitor;const yx=class extends mx{constructor(e){super(e),this.element=new qg}},gx=vg.visitors.document.objects.OAuthFlow.$visitor;const vx=class extends gx{constructor(e){super(e),this.element=new Ng}};class bx extends Ko.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(bx.primaryClass)}}const xx=bx;class wx extends(Uu(Bh,gh)){constructor(e){super(e),this.element=new xx,this.specPath=e=>bh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Bh.prototype.ObjectElement.call(this,e);return this.element.filter(eb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Xv).forEach(((e,t)=>{e.setMetaProperty("webhook-name",oc(t))})),t}}const Ex=wx,jx={visitors:{value:vg.visitors.value,document:{objects:{OpenApi:{$visitor:cv,fixedFields:{openapi:vg.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:vv,servers:vg.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Ex,components:{$ref:"#/visitors/document/objects/Components"},security:vg.visitors.document.objects.OpenApi.fixedFields.security,tags:vg.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:uv,fixedFields:{title:vg.visitors.document.objects.Info.fixedFields.title,description:vg.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:vg.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:vg.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:hv,fixedFields:{name:vg.visitors.document.objects.Contact.fixedFields.name,url:vg.visitors.document.objects.Contact.fixedFields.url,email:vg.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:fv,fixedFields:{name:vg.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:vg.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:xv,fixedFields:{url:vg.visitors.document.objects.Server.fixedFields.url,description:vg.visitors.document.objects.Server.fixedFields.description,variables:vg.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Ev,fixedFields:{enum:vg.visitors.document.objects.ServerVariable.fixedFields.enum,default:vg.visitors.document.objects.ServerVariable.fixedFields.default,description:vg.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:$v,fixedFields:{schemas:Ub,responses:vg.visitors.document.objects.Components.fixedFields.responses,parameters:vg.visitors.document.objects.Components.fixedFields.parameters,examples:vg.visitors.document.objects.Components.fixedFields.examples,requestBodies:vg.visitors.document.objects.Components.fixedFields.requestBodies,headers:vg.visitors.document.objects.Components.fixedFields.headers,securitySchemes:vg.visitors.document.objects.Components.fixedFields.securitySchemes,links:vg.visitors.document.objects.Components.fixedFields.links,callbacks:vg.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Gb}},Paths:{$visitor:ex},PathItem:{$visitor:hx,fixedFields:{$ref:vg.visitors.document.objects.PathItem.fixedFields.$ref,summary:vg.visitors.document.objects.PathItem.fixedFields.summary,description:vg.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:vg.visitors.document.objects.PathItem.fixedFields.servers,parameters:vg.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:ux,fixedFields:{tags:vg.visitors.document.objects.Operation.fixedFields.tags,summary:vg.visitors.document.objects.Operation.fixedFields.summary,description:vg.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:vg.visitors.document.objects.Operation.fixedFields.operationId,parameters:vg.visitors.document.objects.Operation.fixedFields.parameters,requestBody:vg.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:vg.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:vg.visitors.document.objects.Operation.fixedFields.deprecated,security:vg.visitors.document.objects.Operation.fixedFields.security,servers:vg.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Yb,fixedFields:{description:vg.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:vg.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Fv,fixedFields:{name:vg.visitors.document.objects.Parameter.fixedFields.name,in:vg.visitors.document.objects.Parameter.fixedFields.in,description:vg.visitors.document.objects.Parameter.fixedFields.description,required:vg.visitors.document.objects.Parameter.fixedFields.required,deprecated:vg.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:vg.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:vg.visitors.document.objects.Parameter.fixedFields.style,explode:vg.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:vg.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:vg.visitors.document.objects.Parameter.fixedFields.example,examples:vg.visitors.document.objects.Parameter.fixedFields.examples,content:vg.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:rx,fixedFields:{description:vg.visitors.document.objects.RequestBody.fixedFields.description,content:vg.visitors.document.objects.RequestBody.fixedFields.content,required:vg.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Ov,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:vg.visitors.document.objects.MediaType.fixedFields.example,examples:vg.visitors.document.objects.MediaType.fixedFields.examples,encoding:vg.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Qb,fixedFields:{contentType:vg.visitors.document.objects.Encoding.fixedFields.contentType,headers:vg.visitors.document.objects.Encoding.fixedFields.headers,style:vg.visitors.document.objects.Encoding.fixedFields.style,explode:vg.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:vg.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:cx,fixedFields:{default:vg.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:ox,fixedFields:{description:vg.visitors.document.objects.Response.fixedFields.description,headers:vg.visitors.document.objects.Response.fixedFields.headers,content:vg.visitors.document.objects.Response.fixedFields.content,links:vg.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:nx},Example:{$visitor:Wb,fixedFields:{summary:vg.visitors.document.objects.Example.fixedFields.summary,description:vg.visitors.document.objects.Example.fixedFields.description,value:vg.visitors.document.objects.Example.fixedFields.value,externalValue:vg.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:yv,fixedFields:{operationRef:vg.visitors.document.objects.Link.fixedFields.operationRef,operationId:vg.visitors.document.objects.Link.fixedFields.operationId,parameters:vg.visitors.document.objects.Link.fixedFields.parameters,requestBody:vg.visitors.document.objects.Link.fixedFields.requestBody,description:vg.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Rv,fixedFields:{description:vg.visitors.document.objects.Header.fixedFields.description,required:vg.visitors.document.objects.Header.fixedFields.required,deprecated:vg.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:vg.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:vg.visitors.document.objects.Header.fixedFields.style,explode:vg.visitors.document.objects.Header.fixedFields.explode,allowReserved:vg.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:vg.visitors.document.objects.Header.fixedFields.example,examples:vg.visitors.document.objects.Header.fixedFields.examples,content:vg.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Tv,fixedFields:{name:vg.visitors.document.objects.Tag.fixedFields.name,description:vg.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:_v,fixedFields:{$ref:vg.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:fb,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:mb,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:yb,$defs:vb,$comment:{$ref:"#/visitors/value"},allOf:xb,anyOf:Eb,oneOf:Ob,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:Pb,prefixItems:$b,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Tb,patternProperties:_b,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:Ib,enum:Fb,const:{$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"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:Mb,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:Rb,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},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:Lb,fixedFields:{propertyName:vg.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:vg.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:qb,fixedFields:{name:vg.visitors.document.objects.XML.fixedFields.name,namespace:vg.visitors.document.objects.XML.fixedFields.namespace,prefix:vg.visitors.document.objects.XML.fixedFields.prefix,attribute:vg.visitors.document.objects.XML.fixedFields.attribute,wrapped:vg.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:fx,fixedFields:{type:vg.visitors.document.objects.SecurityScheme.fixedFields.type,description:vg.visitors.document.objects.SecurityScheme.fixedFields.description,name:vg.visitors.document.objects.SecurityScheme.fixedFields.name,in:vg.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:vg.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:vg.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:vg.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:yx,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:vx,fixedFields:{authorizationUrl:vg.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:vg.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:vg.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:vg.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Pv}},extension:{$visitor:vg.visitors.document.extension.$visitor}}}},Ox=e=>{if(fa(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Sx={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"],...Xa},Px={namespace:e=>{const{base:t}=e;return t.register("callback",Sg),t.register("components",Pg),t.register("contact",Ag),t.register("discriminator",$g),t.register("encoding",kg),t.register("example",Tg),t.register("externalDocumentation",Cg),t.register("header",_g),t.register("info",Ig),t.register("jsonSchemaDialect",Mg),t.register("license",Rg),t.register("link",Dg),t.register("mediaType",Lg),t.register("oAuthFlow",Ng),t.register("oAuthFlows",qg),t.register("openapi",Bg),t.register("openApi3_1",Vg),t.register("operation",Hg),t.register("parameter",zg),t.register("pathItem",Gg),t.register("paths",Jg),t.register("reference",Kg),t.register("requestBody",Yg),t.register("response",Xg),t.register("responses",Qg),t.register("schema",ev),t.register("securityRequirement",tv),t.register("securityScheme",rv),t.register("server",sv),t.register("serverVariable",nv),t.register("tag",iv),t.register("xml",ov),t}},Ax=e=>{const t=e.reduce(((t,r,s)=>{if(wa(r)){const e=String(oc(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 Mc(t)},$x=()=>{const e=jc(Px);return{predicates:{...c,isElement:fa,isStringElement:ma,isArrayElement:xa,isObjectElement:ba,isMemberElement:wa,isServersElement:Fd,includesClasses:Ca,hasElementSourceMap:ka},ancestorLineageToJSONPointer:Ax,namespace:e}},kx=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Ko.e)(e),n=yu(jx),i=new(uc(t,n))({specObj:n});return Za(s,i),Ac(i.element,r,{toolboxCreator:$x,visitorOptions:{keyMap:Sx,nodeTypeGetter:Ox}})},Tx=e=>(t,r={})=>kx(t,{specPath:e,...r});Sg.refract=Tx(["visitors","document","objects","Callback","$visitor"]),Pg.refract=Tx(["visitors","document","objects","Components","$visitor"]),Ag.refract=Tx(["visitors","document","objects","Contact","$visitor"]),Tg.refract=Tx(["visitors","document","objects","Example","$visitor"]),$g.refract=Tx(["visitors","document","objects","Discriminator","$visitor"]),kg.refract=Tx(["visitors","document","objects","Encoding","$visitor"]),Cg.refract=Tx(["visitors","document","objects","ExternalDocumentation","$visitor"]),_g.refract=Tx(["visitors","document","objects","Header","$visitor"]),Ig.refract=Tx(["visitors","document","objects","Info","$visitor"]),Mg.refract=Tx(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Rg.refract=Tx(["visitors","document","objects","License","$visitor"]),Dg.refract=Tx(["visitors","document","objects","Link","$visitor"]),Lg.refract=Tx(["visitors","document","objects","MediaType","$visitor"]),Ng.refract=Tx(["visitors","document","objects","OAuthFlow","$visitor"]),qg.refract=Tx(["visitors","document","objects","OAuthFlows","$visitor"]),Bg.refract=Tx(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Vg.refract=Tx(["visitors","document","objects","OpenApi","$visitor"]),Hg.refract=Tx(["visitors","document","objects","Operation","$visitor"]),zg.refract=Tx(["visitors","document","objects","Parameter","$visitor"]),Gg.refract=Tx(["visitors","document","objects","PathItem","$visitor"]),Jg.refract=Tx(["visitors","document","objects","Paths","$visitor"]),Kg.refract=Tx(["visitors","document","objects","Reference","$visitor"]),Yg.refract=Tx(["visitors","document","objects","RequestBody","$visitor"]),Xg.refract=Tx(["visitors","document","objects","Response","$visitor"]),Qg.refract=Tx(["visitors","document","objects","Responses","$visitor"]),ev.refract=Tx(["visitors","document","objects","Schema","$visitor"]),tv.refract=Tx(["visitors","document","objects","SecurityRequirement","$visitor"]),rv.refract=Tx(["visitors","document","objects","SecurityScheme","$visitor"]),sv.refract=Tx(["visitors","document","objects","Server","$visitor"]),nv.refract=Tx(["visitors","document","objects","ServerVariable","$visitor"]),iv.refract=Tx(["visitors","document","objects","Tag","$visitor"]),ov.refract=Tx(["visitors","document","objects","XML","$visitor"]);const Cx=class extends eu{};const _x=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Cx("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Cx("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Cx("latest method in MediaTypes class is not yet implemented.")}};class Ix extends _x{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 hn(this.filterByFormat(e))}}const Fx=new Ix("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 Mx=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 Rx=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 Ln(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}},Dx={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:Nc,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const Lx=ts((function(e,t){return function(r){return function(s){return Tn((function(e){return t(e,s)}),r(e(s)))}}}));var Nx=rs((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!uu(s)&&ps(n,s)&&"object"==typeof s[n]?s[n]:ss(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(ss(e)&&_s(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 qx=Nx;var Bx=function(e){return{value:e,map:function(t){return Bx(t(e))}}},Ux=rs((function(e,t,r){return e((function(e){return Bx(t(e))}))(r).value}));const Vx=Ux,Hx=Lx(uc(["resolve","baseURI"]),qx(["resolve","baseURI"])),zx=e=>Kc(e)?hi():e,Gx=(e,t)=>{const r=lc(e,t);return Vx(Hx,zx,r)};const Jx=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(ws(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const Wx=class extends Yr{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},Kx=async(e,t,r)=>{const s=await Promise.all(r.map(xc([e],t)));return r.filter(((e,t)=>s[t]))},Yx=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 Wx("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const Xx=class extends Yr{};const Qx=class extends Xx{},Zx=async(e,t)=>{let r=e,s=!1;if(!Pa(e)){const t=Ja(e);t.classes.push("result"),r=new ia([t]),s=!0}const n=new Jx({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await Kx("canDereference",[n,t],t.dereference.strategies);if(yc(i))throw new Qx(n.uri);try{const{result:e}=await Yx("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new Xx(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const ew=class extends Yr{};const tw=class extends ew{};const rw=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 sw=class extends rw{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 ia;if(0!==r.length){const e=new Ko.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}};const nw=class{name;constructor({name:e}){this.name=e}};const iw=class extends nw{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 Qx('"openapi-3-1" dereference strategy is not available.');const s=new Rx,n=Gx(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const ow=class{name;constructor({name:e}){this.name=e}};const aw=class extends ow{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 cw=class extends Yr{};const lw=class extends cw{},{AbortController:uw,AbortSignal:pw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=uw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=pw);const hw=class extends aw{swaggerHTTPClient=Wt;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Wt,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 lw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},dw=(e,t=Oc)=>{if(Xn(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Wo(e)&&fu("element",e)?t.fromRefract(e):t.toElement(e)};const fw=class extends rw{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 tw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new ia,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=dw(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}};const mw=class extends rw{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 zt.load(e.toString(),{schema:Ft}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new tw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new ia,r=e.toString();try{const e=zt.load(r,{schema:Ft});if(this.allowEmpty&&void 0===e)return t;const s=dw(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}};const yw=class extends rw{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new Ix(...Fx.filterByFormat("generic"),...Fx.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 tw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new ia,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=Vg.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}};const gw=class extends rw{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 Ix(...Fx.filterByFormat("generic"),...Fx.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 zt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new tw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new ia,r=e.toString();try{const e=zt.load(r,{schema:Ft});if(this.allowEmpty&&void 0===e)return t;const s=Vg.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}};const vw=rs((function(e,t,r){return Os(e,un(t,r))}));const bw=class{name;constructor({name:e}){this.name=e}};const xw=ts((function(e,t){return Zo(Ts(e),t)}));var ww=r(8068);const Ew=class extends Xr{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class jw{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new ww({length:e}),this.identityMap=new WeakMap}identify(e){if(!fa(e))throw new Ew("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&ma(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 Ko.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 jw;const Ow=rs((function(e,t,r){return ln(e,os(t,r))})),Sw=(e,t)=>{const r=new Qa({predicate:e,returnOnTrue:Ma});return Za(t,r),Ow(void 0,[0],r.result)};const Pw=class extends Yr{};const Aw=class extends Pw{};const $w=class extends Pw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},kw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Tw=e=>{const t=ui(e);return Zc("#",t)},Cw=(e,t)=>{const r=(e=>{if(!kw(e))throw new $w(e);return e})(e),s=Sw((e=>ib(e)&&oc(e.$anchor)===r),t);if(Dn(s))throw new Aw(`Evaluation failed on token: "${r}"`);return s},_w=(e,t)=>{const r=new Qa({predicate:e});return Za(t,r),new Ko.G6(r.result)};const Iw=class extends Yr{};const Fw=class extends Iw{},Mw=(e,t)=>{if(void 0===t.$ref)return;const r=ui(oc(t.$ref)),s=oc(t.meta.get("inherited$id"));return`${sn(((e,t)=>di(e,fi(pi(t)))),e,[...s,oc(t.$ref)])}${"#"===r?"":r}`},Rw=e=>{if(Rw.cache.has(e))return Rw.cache.get(e);const t=ev.refract(e);return Rw.cache.set(e,t),t};Rw.cache=new WeakMap;const Dw=e=>$a(e)?Rw(e):e,Lw=(e,t)=>{const{cache:r}=Lw,s=pi(e),n=e=>ib(e)&&void 0!==e.$id;if(!r.has(t)){const e=_w(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=oc(t.meta.get("inherited$id"));return sn(((e,t)=>di(e,fi(pi(t)))),e,[...r,oc(t.$id)])})(s,e)===s));if(Dn(i))throw new Fw(`Evaluation failed on URI: "${e}"`);let o,a;return kw(Tw(e))?(o=Cw,a=Tw(e)):(o=il,a=rl(e)),o(a,i)};Lw.cache=new WeakMap;const Nw=class extends Xx{};const qw=class extends cw{};const Bw=class extends lw{},Uw=async(e,t)=>{const r=new Jx({uri:fi(pi(e)),mediaType:t.parse.mediaType}),s=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),s=await Kx("canRead",[e,t],r);if(yc(s))throw new Bw(e.uri);try{const{result:t}=await Yx("read",[e],s);return t}catch(t){throw new cw(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),s=await Kx("canParse",[e,t],r);if(yc(s))throw new Bw(e.uri);try{const{plugin:r,result:n}=await Yx("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new ew(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new ew(`Error while parsing file "${e.uri}"`,{cause:t})}})(new Jx({...r,data:s}),t)};class Vw 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(fa(r)&&e(r))return r}}const Hw=Za[Symbol.for("nodejs.util.promisify.custom")],zw=new jw,Gw=(e,t,r,s)=>{wa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class Jw{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new Vw,refractCache:i=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new Vw(...n),this.refractCache=i}toBaseURI(e){return di(this.reference.uri,fi(pi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new qw(`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(vw(t,"uri"));const s=await Uw(mi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new Mx({uri:t,value:Ha(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new Mx({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(fa));return[new Vw(...this.ancestors,t),t]}async ReferenceElement(e,t,r,s,n,i){if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(oc(e.$ref)),l=pi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(oc(e.$ref)),h=di(c,oc(e.$ref));this.indirections.push(e);const d=rl(h);let f=il(d,p.value.result);if(f.id=zw.identify(f),$a(f)){const t=oc(e.meta.get("referenced-element")),r=`${t}-${oc(zw.identify(f))}`;if(this.refractCache.has(r))f=this.refractCache.get(r);else if(bh(f))f=Kg.refract(f),f.setMetaProperty("referenced-element",t),this.refractCache.set(r,f);else{f=this.namespace.getElementClass(t).refract(f),this.refractCache.set(r,f)}}if(e===f)throw new Yr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Nw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Yr("Circular reference detected");if("replace"===this.options.dereference.circular){var m,y;const t=new Ko.sI(f.id,{type:"reference",uri:p.uri,$ref:oc(e.$ref)}),s=(null!==(m=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gw),!r&&s}}const g=pi(p.refSet.rootRef.uri)!==p.uri,v=["error","replace"].includes(this.options.dereference.circular);if((u||g||eb(f)||v)&&!o.includesCycle(f)){a.add(e);const t=new Jw({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await Hw(f,t,{keyMap:Sx,nodeTypeGetter:Ox}),a.delete(e)}this.indirections.pop();const b=Ja(f);return b.setMetaProperty("id",zw.generateId()),b.setMetaProperty("ref-fields",{$ref:oc(e.$ref),description:oc(e.description),summary:oc(e.summary)}),b.setMetaProperty("ref-origin",p.uri),b.setMetaProperty("ref-referencing-element-id",Ha(zw.identify(e))),ba(f)&&ba(b)&&(e.hasKey("description")&&"description"in f&&(b.remove("description"),b.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in f&&(b.remove("summary"),b.set("summary",e.get("summary")))),i.replaceWith(b,Gw),!r&&b}async PathItemElement(e,t,r,s,n,i){if(!ma(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(oc(e.$ref)),l=pi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(oc(e.$ref)),h=di(c,oc(e.$ref));this.indirections.push(e);const d=rl(h);let f=il(d,p.value.result);if(f.id=zw.identify(f),$a(f)){const e=`path-item-${oc(zw.identify(f))}`;this.refractCache.has(e)?f=this.refractCache.get(e):(f=Gg.refract(f),this.refractCache.set(e,f))}if(e===f)throw new Yr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Nw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Yr("Circular reference detected");if("replace"===this.options.dereference.circular){var m,y;const t=new Ko.sI(f.id,{type:"path-item",uri:p.uri,$ref:oc(e.$ref)}),s=(null!==(m=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==m?m:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gw),!r&&s}}const g=pi(p.refSet.rootRef.uri)!==p.uri,v=["error","replace"].includes(this.options.dereference.circular);if((u||g||Xv(f)&&ma(f.$ref)||v)&&!o.includesCycle(f)){a.add(e);const t=new Jw({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await Hw(f,t,{keyMap:Sx,nodeTypeGetter:Ox}),a.delete(e)}if(this.indirections.pop(),Xv(f)){const t=new Gg([...f.content],Ha(f.meta),Ha(f.attributes));t.setMetaProperty("id",zw.generateId()),e.forEach(((e,r,s)=>{t.remove(oc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Ha(zw.identify(e))),f=t}return i.replaceWith(f,Gw),r?void 0:f}async LinkElement(e,t,r,s,n,i){if(!ma(e.operationRef)&&!ma(e.operationId))return;if(ma(e.operationRef)&&ma(e.operationId))throw new Yr("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ma(e.operationRef)){var a;const t=rl(oc(e.operationRef)),s=this.toBaseURI(oc(e.operationRef)),n=pi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(oc(e.operationRef));if(o=il(t,l.value.result),$a(o)){const e=`operation-${oc(zw.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=Hg.refract(o),this.refractCache.set(e,o))}o=Ja(o),o.setMetaProperty("ref-origin",l.uri);const u=Ja(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,Gw),r?void 0:u}if(ma(e.operationId)){var c;const t=oc(e.operationId),s=await this.toReference(mi(this.reference.uri));if(o=Sw((e=>Kv(e)&&fa(e.operationId)&&e.operationId.equals(t)),s.value.result),Dn(o))throw new Yr(`OperationElement(operationId=${t}) not found.`);const n=Ja(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,Gw),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!ma(e.externalValue))return;if(e.hasKey("value")&&ma(e.externalValue))throw new Yr("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(oc(e.externalValue)),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(oc(e.externalValue)),u=Ja(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=Ja(e);return p.value=u,i.replaceWith(p,Gw),r?void 0:p}async SchemaElement(e,t,r,s,n,i){if(!ma(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]);let c=await this.toReference(mi(this.reference.uri)),{uri:l}=c;const u=Mw(l,e),p=pi(u),h=new Jx({uri:p}),d=xw((e=>e.canRead(h)),this.options.resolve.resolvers),f=!d;let m,y=pi(this.reference.uri)===u,g=!y;this.indirections.push(e);try{if(d||f){l=this.toBaseURI(u);const e=u,t=Dw(c.value.result);if(m=Lw(e,t),m=Dw(m),m.id=zw.identify(m),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return}else{if(l=this.toBaseURI(u),y=pi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(mi(u));const e=rl(u),t=Dw(c.value.result);m=il(e,t),m=Dw(m),m.id=zw.identify(m)}}catch(e){if(!(f&&e instanceof Fw))throw e;if(kw(Tw(u))){if(y=pi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(mi(u));const e=Tw(u),t=Dw(c.value.result);m=Cw(e,t),m=Dw(m),m.id=zw.identify(m)}else{if(l=this.toBaseURI(u),y=pi(this.reference.uri)===l,g=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&g)return;c=await this.toReference(mi(u));const e=rl(u),t=Dw(c.value.result);m=il(e,t),m=Dw(m),m.id=zw.identify(m)}}if(e===m)throw new Yr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Nw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(c.refSet.circular=!0,"error"===this.options.dereference.circular)throw new Yr("Circular reference detected");if("replace"===this.options.dereference.circular){var v,b;const t=new Ko.sI(m.id,{type:"json-schema",uri:c.uri,$ref:oc(e.$ref)}),s=(null!==(v=null===(b=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===b?void 0:b.circularReplacer)&&void 0!==v?v:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,Gw),!r&&s}}const x=pi(c.refSet.rootRef.uri)!==c.uri,w=["error","replace"].includes(this.options.dereference.circular);if((g||x||ib(m)&&ma(m.$ref)||w)&&!o.includesCycle(m)){a.add(e);const t=new Jw({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await Hw(m,t,{keyMap:Sx,nodeTypeGetter:Ox}),a.delete(e)}if(this.indirections.pop(),ob(m)){const t=Ha(m);return t.setMetaProperty("id",zw.generateId()),t.setMetaProperty("ref-fields",{$ref:oc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Ha(zw.identify(e))),i.replaceWith(t,Gw),!r&&t}if(ib(m)){const t=new ev([...m.content],Ha(m.meta),Ha(m.attributes));t.setMetaProperty("id",zw.generateId()),e.forEach(((e,r,s)=>{t.remove(oc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Ha(zw.identify(e))),m=t}return i.replaceWith(m,Gw),r?void 0:m}}const Ww=Jw,Kw=Za[Symbol.for("nodejs.util.promisify.custom")];const Yw=class extends bw{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?Fx.includes(e.mediaType):Wv(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=jc(Px),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Rx,i=new Rx;let o,a=n;n.has(e.uri)?o=n.find(vw(e.uri,"uri")):(o=new Mx({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new Mx({...e,value:Ha(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new Ww({reference:o,namespace:s,options:t}),l=await Kw(a.rootRef.value,c,{keyMap:Sx,nodeTypeGetter:Ox});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new Mx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},Xw=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(wa(r)){const t=String(oc(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 Qw=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(oc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...Xw([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const Zw=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=[...Xw([...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(ib)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...Xw([...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=wu.all([...t.content,e]);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 eE=class{parameterMacro;options;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#e?oc(this.#e):null,o=oc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=Xw([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},tE=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const rE=class extends Xr{},{wrapError:sE}=ro,nE=Za[Symbol.for("nodejs.util.promisify.custom")],iE=new jw,oE=(e,t,r,s)=>{wa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class aE extends Ww{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(oc(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(oc(e.$ref)),u=di(o,oc(e.$ref));this.indirections.push(e);const p=rl(u);let h=il(p,l.value.result);if(h.id=iE.identify(h),$a(h)){const t=oc(e.meta.get("referenced-element")),r=`${t}-${oc(iE.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(bh(h))h=Kg.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 Yr("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Nw(`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 Yr("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ko.sI(h.id,{type:"reference",uri:l.uri,$ref:oc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,oE),!r&&s}}const d=pi(l.refSet.rootRef.uri)!==l.uri,f=["error","replace"].includes(this.options.dereference.circular);if((c||d||eb(h)||f)&&!t.includesCycle(h)){s.add(e);const i=new aE({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??[...Xw([...n,r,e]),"$ref"]});h=await nE(h,i,{keyMap:Sx,nodeTypeGetter:Ox}),s.delete(e)}this.indirections.pop();const m=Ja(h);if(m.setMetaProperty("ref-fields",{$ref:oc(e.$ref),description:oc(e.description),summary:oc(e.summary)}),m.setMetaProperty("ref-origin",l.uri),m.setMetaProperty("ref-referencing-element-id",Ha(iE.identify(e))),ba(h)&&(e.hasKey("description")&&"description"in h&&(m.remove("description"),m.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in h&&(m.remove("summary"),m.set("summary",e.get("summary")))),this.allowMetaPatches&&ba(m)&&!m.hasKey("$$ref")){const e=di(o,u);m.set("$$ref",e)}return i.replaceWith(m,oE),!r&&m}catch(t){const s=tE(t),i=sE(s,{baseDoc:this.reference.uri,$ref:oc(e.$ref),pointer:rl(oc(e.$ref)),fullPath:this.basePath??[...Xw([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async PathItemElement(e,t,r,s,n,i){try{if(!ma(e.$ref))return;if(this.indirections.includes(e))return!1;if(Ca(["cycle"],e.$ref))return!1;const[t,s]=this.toAncestorLineage([...n,r]),o=this.toBaseURI(oc(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(oc(e.$ref)),u=di(o,oc(e.$ref));this.indirections.push(e);const p=rl(u);let h=il(p,l.value.result);if(h.id=iE.identify(h),$a(h)){const e=`path-item-${oc(iE.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=Gg.refract(h),this.refractCache.set(e,h))}if(e===h)throw new Yr("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Nw(`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 Yr("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ko.sI(h.id,{type:"path-item",uri:l.uri,$ref:oc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,oE),!r&&s}}const d=pi(l.refSet.rootRef.uri)!==l.uri,f=["error","replace"].includes(this.options.dereference.circular);if((c||d||Xv(h)&&ma(h.$ref)||f)&&!t.includesCycle(h)){s.add(e);const i=new aE({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...Xw([...n,r,e]),"$ref"]});h=await nE(h,i,{keyMap:Sx,nodeTypeGetter:Ox}),s.delete(e)}if(this.indirections.pop(),Xv(h)){const t=new Gg([...h.content],Ha(h.meta),Ha(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(oc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Ha(iE.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=di(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,oE),r?void 0:h}catch(t){const s=tE(t),i=sE(s,{baseDoc:this.reference.uri,$ref:oc(e.$ref),pointer:rl(oc(e.$ref)),fullPath:this.basePath??[...Xw([...n,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}async SchemaElement(e,t,r,s,n,i){try{if(!ma(e.$ref))return;if(this.indirections.includes(e))return!1;const[t,s]=this.toAncestorLineage([...n,r]);let o=await this.toReference(mi(this.reference.uri)),{uri:a}=o;const c=Mw(a,e),l=pi(c),u=new Jx({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,f=pi(this.reference.uri)===c,m=!f;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=Dw(o.value.result);if(d=Lw(e,t),d=Dw(d),d.id=iE.identify(d),!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return}else{if(a=this.toBaseURI(c),f=pi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(mi(c));const e=rl(c),t=Dw(o.value.result);d=il(e,t),d=Dw(d),d.id=iE.identify(d)}}catch(e){if(!(h&&e instanceof Fw))throw e;if(kw(Tw(c))){if(f=pi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(mi(c));const e=Tw(c),t=Dw(o.value.result);d=Cw(e,t),d=Dw(d),d.id=iE.identify(d)}else{if(a=this.toBaseURI(oc(c)),f=pi(this.reference.uri)===a,m=!f,!this.options.resolve.internal&&f)return;if(!this.options.resolve.external&&m)return;o=await this.toReference(mi(c));const e=rl(c),t=Dw(o.value.result);d=il(e,t),d=Dw(d),d.id=iE.identify(d)}}if(e===d)throw new Yr("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Nw(`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 Yr("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Ko.sI(d.id,{type:"json-schema",uri:o.uri,$ref:oc(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,oE),!r&&s}}const y=pi(o.refSet.rootRef.uri)!==o.uri,g=["error","replace"].includes(this.options.dereference.circular);if((m||y||ib(d)&&ma(d.$ref)||g)&&!t.includesCycle(d)){s.add(e);const i=new aE({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...Xw([...n,r,e]),"$ref"]});d=await nE(d,i,{keyMap:Sx,nodeTypeGetter:Ox}),s.delete(e)}if(this.indirections.pop(),ob(d)){const t=Ha(d);return t.setMetaProperty("ref-fields",{$ref:oc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Ha(iE.identify(e))),i.replaceWith(t,oE),!r&&t}if(ib(d)){const t=new ev([...d.content],Ha(d.meta),Ha(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(oc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:oc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Ha(iE.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=di(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,oE),r?void 0:d}catch(t){const s=tE(t),i=new rE(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:oc(e.$ref),fullPath:this.basePath??[...Xw([...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=tE(t),i=sE(s,{baseDoc:this.reference.uri,externalValue:oc(e.externalValue),fullPath:this.basePath??[...Xw([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const cE=aE,lE=Na[Symbol.for("nodejs.util.promisify.custom")];const uE=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new cE({...n,options:s})),"function"==typeof t&&i.push(new Qw({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new Zw({options:s})),"function"==typeof e&&i.push(new eE({parameterMacro:e,options:s}));const o=lE(i,{nodeTypeGetter:Ox});Object.assign(this,o)}},pE=Za[Symbol.for("nodejs.util.promisify.custom")];const hE=class extends Yw{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=jc(Px),s=t.dereference.refSet??new Rx,n=new Rx;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new Mx({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new Mx({...e,value:Ha(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new uE({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await pE(o.rootRef.value,a,{keyMap:Sx,nodeTypeGetter:Ox});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new Mx({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},dE=e=>{const t=oc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Ko.Sh({$ref:t},Ha(r.meta),Ha(r.attributes))},fE=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:h=null,mode:d="non-strict",strategies:f}=e;try{const{cache:m}=fE,y=f.find((e=>e.match(t))),g=ci(hi())?hi():p,v=Yt(e),b=di(g,v);let x;m.has(t)?x=m.get(t):(x=Vg.refract(t),x.classes.push("result"),m.set(t,x));const w=new ia([x]),E=Mc(o),j=""===E?"":`#${E}`,O=il(E,x),S=new Mx({uri:b,value:w}),P=new Rx({refs:[S]});""!==E&&(P.rootRef=void 0);const A=[new Set([O])],$=[],k=await(async(e,t={})=>{const r=Gx(Dx,t);return Zx(e,r)})(O,{resolve:{baseURI:`${b}${j}`,resolvers:[new hw({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new iw]},parse:{mediaType:Fx.latest(),parsers:[new yw({allowEmpty:!1,sourceMap:!1}),new gw({allowEmpty:!1,sourceMap:!1}),new fw({allowEmpty:!1,sourceMap:!1}),new mw({allowEmpty:!1,sourceMap:!1}),new sw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new hE({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:h,mode:d,ancestors:A})],refSet:P,dereferenceOpts:{errors:$},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?Dx.dereference.circularReplacer:dE}}),T=((e,t,r)=>new Cc({element:r}).transclude(e,t))(O,k,x),C=l?T:y.normalize(T);return{spec:oc(C),errors:$}}catch(e){if(e instanceof tl||e instanceof nl)return{spec:t,errors:[]};throw e}};fE.cache=new WeakMap;const mE=fE;function yE(e,t,r){if(r||(r=new gE),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?yE(e[i],!0,r):e[i]);return s};switch(ws(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 cs(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 gE=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}(),vE=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"]=Ms,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(ps(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,yE(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function bE(e,t,r){return function(s){return new vE(e,t,r,s)}}const xE=ts(nn("groupBy",dn(4,[],Is([],bE,(function(e,t,r,s){var n=rn((function(s,n){var i=r(n),o=e(ps(i,s)?s[i]:yE(t,!1),n);return o&&o["@@transducer/reduced"]?Yo(s):(s[i]=o,s)}));return en(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const wE=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 Ko.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);xa(t)||(t=new Ko.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)}},EE=e=>e.replace(/\s/g,""),jE=e=>e.replace(/\W/gi,"_"),OE=(e,t,r)=>{const s=EE(e);return s.length>0?jE(s):((e,t)=>`${jE(EE(t.toLowerCase()))}${jE(EE(e))}`)(t,r)},SE=({storageField:e="x-normalized",operationIdNormalizer:t=OE}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new wE(t,e,"operation-ids")},leave(){const e=xE((e=>oc(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(oc(e.operationId)),r=a.find((e=>oc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Ha.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=ln("path",oc(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(oc(e.operationId)),d=hn(o),f=ln("method",oc(e.meta.get("http-method"))),m=t(h,d,f);h!==m&&(e.operationId=new i.elements.String(m),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)}}}}};var PE=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Ms,e.prototype["@@transducer/result"]=Rs,e.prototype["@@transducer/step"]=function(e,t){return us(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function AE(e){return function(t){return new PE(e,t)}}const $E=ts(Is([],AE,(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)us(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}))),kE=({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)&&(oc(e.name)===oc(t.name)&&oc(e.in)===oc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new wE(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=hn(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=Ow([],["parameters","content"],e),h=$E(n,[...p,...l]);e.parameters=new _y(h),o.append(u)}}}}},TE=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new wE(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 Uy(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},CE=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new wE(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=>Ha.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",[Ha(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Ha(e.example)),n.append(u)))}}}}}},_E=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new wE(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=>Ha.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",[Ha(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Ha(e.example)),n.append(u)))}}}}}},IE=e=>{if(!ba(e))return e;const t=[SE({operationIdNormalizer:(e,t,r)=>Po({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),kE(),TE(),CE(),_E()];return Ac(e,t,{toolboxCreator:$x,visitorOptions:{keyMap:Sx,nodeTypeGetter:Ox}})},FE={name:"openapi-3-1-apidom",match:e=>Co(e),normalize(e){if(!fa(e)&&Wo(e)&&!e.$$normalized){const r=(t=IE,e=>{const r=Vg.refract(e);r.classes.push("result");const s=t(r),n=oc(s);return mE.cache.set(n,s),oc(s)})(e);return r.$$normalized=!0,r}var t;return fa(e)?IE(e):e},resolve:async e=>mE(e)};function ME(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 RE=()=>null,DE={mapTagOperations:function({spec:e,cb:t=RE,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return ME(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=Po(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 LE=function(){const e=BE,t=qE,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,f=0,m=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,f=0,m=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 j=v.toLowerCase();let O;for(const e in n)if(n.hasOwnProperty(e)&&j===n[e].lower){O=n[e].index;break}if(void 0===O)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:O}],b(0,0),o=void 0;let S=!1;switch(y.state){case e.ACTIVE:throw new Error(`${E}final state should never be 'ACTIVE'`);case e.NOMATCH:S=!1;break;case e.EMPTY:case e.MATCH:S=y.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:S,state:y.state,stateName:e.idName(y.state),length:a.length,matched:y.phraseLength,maxMatched:m,maxTreeDepth:d,nodeHits:f}};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,f;const m=o[t],g=i[m.index];y.UdtIndex=g.index,p||(f=r.ast&&r.ast.udtDefined(m.index),f&&(d=n.length+m.index,h=r.ast.getLength(),r.ast.down(d,g.name)));const v=a.length-c;l[m.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||f&&(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(f+=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],f=n[d.index],m=c[f.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))),m){const t=a.length-s;m(y,a,s,u),g(f,y,t,!0),y.state===e.ACTIVE&&(h=o,o=f.opcodes,b(0,s),o=h,m(y,a,s,u),g(f,y,t,!1))}else h=o,o=f.opcodes,b(0,s,y),o=h;p||l&&(y.state===e.NOMATCH?r.ast.setLength(i):r.ast.up(d.index,f.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>m&&(m=i+y.phraseLength),r.stats&&r.stats.collect(x,y),r.trace&&r.trace.up(x,y.state,i,y.phraseLength),h-=1}},NE=function(){const e=BE,t=qE,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}},qE={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)}},BE={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 BE.ALT:return"ALT";case BE.CAT:return"CAT";case BE.REP:return"REP";case BE.RNM:return"RNM";case BE.TRG:return"TRG";case BE.TBS:return"TBS";case BE.TLS:return"TLS";case BE.UDT:return"UDT";case BE.AND:return"AND";case BE.NOT:return"NOT";case BE.ACTIVE:return"ACTIVE";case BE.EMPTY:return"EMPTY";case BE.MATCH:return"MATCH";case BE.NOMATCH:return"NOMATCH";case BE.SEM_PRE:return"SEM_PRE";case BE.SEM_POST:return"SEM_POST";case BE.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const UE=(e,t,r,s,n)=>{if(e===BE.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",qE.charsToString(t,r,s)])}return BE.SEM_OK},VE=(e,t,r,s,n)=>{if(e===BE.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",qE.charsToString(t,r,s)])}return BE.SEM_OK},HE=(e,t,r,s,n)=>{if(e===BE.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",qE.charsToString(t,r,s)])}return BE.SEM_OK},zE=(e,t,r,s,n)=>{if(e===BE.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",qE.charsToString(t,r,s)])}return BE.SEM_OK},GE=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'}},JE=e=>{const t=new LE;t.ast=new NE,t.ast.callbacks["server-url-template"]=UE,t.ast.callbacks["server-variable"]=VE,t.ast.callbacks["server-variable-name"]=HE,t.ast.callbacks.literals=zE;return{result:t.parse(GE,"server-url-template",e),ast:t.ast}},WE=(e,{strict:t=!1}={})=>{try{const r=JE(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}},KE=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),YE=["literals","server-variable-name"],XE=(e,t,r={})=>{const s={...{encoder:KE},...r},n=JE(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>YE.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};function QE(){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, DQUOTE, 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, DQUOTE, 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 QE;const ZE=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)},ej=new LE,tj=new QE,rj=e=>{const t=String(e),r=t.length>=2&&t.startsWith('"')&&t.endsWith('"'),s=r?t.slice(1,-1):t;let n="";for(const e of s)n+=ej.parse(tj,"cookie-octet",e).success?e:ZE(e);return r?`"${n}"`:n},sj=new LE,nj=new QE,ij=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return sj.parse(nj,r,e).success}catch{return!1}},oj=e=>{if(!ij(e))throw new TypeError(`Invalid cookie name: ${e}`)},aj=new LE,cj=new QE,lj=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-value":"lenient-cookie-value";return aj.parse(cj,r,e).success}catch{return!1}},uj=e=>{if(!lj(e))throw new TypeError(`Invalid cookie value: ${e}`)},pj={encoders:{name:e=>e,value:rj},validators:{name:oj,value:uj}},hj=(e,t,r={})=>{const s={...pj,...r,encoders:{...pj.encoders,...r.encoders},validators:{...pj.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},dj=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map((([e,r])=>hj(e,r,t))).join("; "),fj=new LE,mj=new QE,yj=e=>{const t=String(e),r=t.length>=2&&t.startsWith('"')&&t.endsWith('"'),s=r?t.slice(1,-1):t,n=r?"lenient-quoted-char":"lenient-cookie-octet";let i="";for(const e of s)i+=fj.parse(mj,n,e).success?e:ZE(e);return r?`"${i}"`:i},gj=e=>{if(!ij(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},vj=e=>{if(!lj(e,{strict:!1}))throw new TypeError(`Invalid cookie value: ${e}`)};const bj=(e,t,r,s,n)=>(e===BE.SEM_PRE?n.push(["slash",qE.charsToString(t,r,s)]):BE.SEM_POST,BE.SEM_OK),xj=(e,t,r,s,n)=>{if(e===BE.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",qE.charsToString(t,r,s)])}return BE.SEM_OK},wj=(e,t,r,s,n)=>(e===BE.SEM_PRE?n.push(["path-literal",qE.charsToString(t,r,s)]):BE.SEM_POST,BE.SEM_OK),Ej=(e,t,r,s,n)=>(e===BE.SEM_PRE?n.push(["template-expression",qE.charsToString(t,r,s)]):BE.SEM_POST,BE.SEM_OK),jj=(e,t,r,s,n)=>(e===BE.SEM_PRE?n.push(["template-expression-param-name",qE.charsToString(t,r,s)]):BE.SEM_POST,BE.SEM_OK),Oj=new function(){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'}},Sj=e=>{const t=new LE;t.ast=new NE,t.ast.callbacks["path-template"]=xj,t.ast.callbacks.slash=bj,t.ast.callbacks["path-literal"]=wj,t.ast.callbacks["template-expression"]=Ej,t.ast.callbacks["template-expression-param-name"]=jj;return{result:t.parse(Oj,"path-template",e),ast:t.ast}},Pj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),Aj=["slash","path-literal","template-expression-param-name"],$j=(e,t,r={})=>{const s={...{encoder:Pj},...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])=>"template-expression-param-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")},kj={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=$j(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 Tj(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)}const Cj=e=>rj(e).replace(/[=&]/gu,(e=>"="===e?"%3D":"%26"));function _j({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=$j(c,{[n]:t},{encoder:t=>S(Tj(t,e))})}else l=$j(c,{[n]:t},{encoder:e=>P({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function Ij({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=Tj(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 Fj=["accept","authorization","content-type"];function Mj({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Fj.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=Tj(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=P({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function Rj({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=Tj(r,Object.keys(t.content)[0]);e.headers.Cookie=dj({[s]:n},{encoders:{value:Cj}})}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n=P({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=dj({[s]:i},{encoders:{value:Cj}})}}const Dj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Lj}=Dj,Nj=Lj;function qj(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=Nj(`${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&&Wo(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 Bj(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=Nj(`${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 Uj(e,t){return`${t.toLowerCase()}-${e}`}function Vj(e,t){return e&&e.paths?function(e,t){return ME(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[Po(s,e,r),Uj(e,r),n].some((e=>e&&e===t))})):null}const Hj=e=>Array.isArray(e)?e:[],zj=e=>{try{return new URL(e)}catch{const t=new URL(e,p),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 Gj extends Xr{}const Jj={buildRequest:Wj};function Wj(e){const{spec:t,operationId:r,responseContentType:s,scheme:n,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:u,serverVariables:p,http:h,signal:d,serverVariableEncoder:f}=e;let{parameters:m,parameterBuilders:y,baseURL:g}=e;const v=_o(t);y||(y=v?l:kj);let b={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};d&&(b.signal=d),i&&(b.requestInterceptor=i),o&&(b.responseInterceptor=o),c&&(b.userFetch=c);const x=Vj(t,r);if(!x)throw new Gj(`Operation ${r} not found`);const{operation:w={},method:E,pathName:j}=x;if(g=g??Yj({spec:t,scheme:n,contextUrl:a,server:u,serverVariables:p,pathName:j,method:E,serverVariableEncoder:f}),b.url+=g,!r)return delete b.cookies,b;b.url+=j,b.method=`${E}`.toUpperCase(),m=m||{};const O=t.paths[j]||{};s&&(b.headers.accept=s);const S=(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(Hj(w.parameters)).concat(Hj(O.parameters)));S.forEach((e=>{const r=y[e.in];let s;if("body"===e.in&&e.schema&&e.schema.properties&&(s=m),s=e&&e.name&&m[e.name],void 0===s?s=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,S).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`);if(v&&e.schema&&"object"===e.schema.type&&"string"==typeof s)try{s=JSON.parse(s)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:b,parameter:e,value:s,operation:w,spec:t,baseURL:g})}}));const P={...e,operation:w};if(b=v?qj(P,b):Bj(P,b),b.cookies&&Object.keys(b.cookies).length){const e=dj(b.cookies,{encoders:{value:yj},validators:{name:gj,value:vj}});np(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,I(b)}const Kj=e=>e?e.replace(/\W/g,""):null;function Yj(e){return _o(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,d=e?.servers;c=Xj(u)?u:Xj(p)?p:Xj(d)?d:[h],s&&(a=c.find((e=>e.url===s)),a&&(l=s));l||([a]=c,l=a.url);if(WE(l,{strict:!0})){const e=Object.entries({...a.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});l=XE(l,{...e,...i},{encoder:"function"==typeof o?o:Nc})}return function(e="",t=""){const r=zj(e&&t?di(t,e):e),s=zj(t),n=Kj(r.protocol)||Kj(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=zj(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||Kj(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 Xj=e=>Array.isArray(e)&&e.length>0;const{q$:Qj}=n,Zj=Qj;function eO(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof eO))return new eO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,eO.makeApisTagOperation(this)),this)));return r.client=this,r}eO.http=Wt,eO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=I(s),s=t(s),r(e(s)))}.bind(null,eO.http),eO.resolveStrategies={"openapi-3-1-apidom":FE,"openapi-3-0":Fo,"openapi-2-0":Io,generic:$o},eO.resolve=Mo({strategies:[eO.resolveStrategies["openapi-3-1-apidom"],eO.resolveStrategies["openapi-3-0"],eO.resolveStrategies["openapi-2-0"],eO.resolveStrategies.generic]}),eO.resolveSubtree=Do({strategies:[eO.resolveStrategies["openapi-3-1-apidom"],eO.resolveStrategies["openapi-3-0"],eO.resolveStrategies["openapi-2-0"],eO.resolveStrategies.generic]}),eO.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||Wt;n&&i&&!s&&(s=Uj(n,i));const u=Jj.buildRequest({spec:r,operationId:s,parameters:o,securities:a,http:l,...c});return u.body&&(Wo(u.body)||Array.isArray(u.body))&&(u.body=JSON.stringify(u.body)),l(u)},eO.serializeRes=Jt,eO.serializeHeaders=Gt,eO.clearCache=function(){jo.refs.clearCache()},eO.makeApisTagOperation=function(e={}){const t=DE.makeExecute(e);return{apis:DE.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},eO.buildRequest=Wj,eO.helpers={opId:Po},eO.getBaseUrl=Yj,eO.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:hw}},parse:{parsers:{JsonParser:fw,YamlParser:mw,OpenApiJson3_1Parser:yw,OpenApiYaml3_1Parser:gw}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:hE}}},eO.prototype={http:Wt,execute(e){return this.applyDefaults(),eO.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 eO.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)))}},eO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(ko(e)&&Zj(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(_o(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[h])}};const{helpers:tO}=eO,rO=eO})(),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,v){var g=c(e),b=c(t),x=g?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;g=!0,E=!1}if(j&&!E)return v||(v=new s),g||u(e)?n(e,t,r,f,y,v):i(e,t,x,r,f,y,v);if(!(1&r)){var O=E&&m.call(e,"__wrapped__"),P=S&&m.call(t,"__wrapped__");if(O||P){var A=O?e.value():e,k=P?t.value():t;return v||(v=new s),y(A,k,r,f,v)}}return!!j&&(v||(v=new s),o(e,t,r,f,y,v))}},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 v=e[m],g=t[m];if(o)var b=l?o(g,v,m,t,e,c):o(v,g,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)&&(v===e||a(v,e,r,o,c)))return y.push(t)}))){f=!1;break}}else if(v!==g&&!a(v,g,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 v=e[h=l[p]],g=t[h];if(i)var b=c?i(g,v,h,t,e,a):i(v,g,h,e,t,a);if(!(void 0===b?v===g||o(v,g,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),v=l(i),g=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 v:return p;case g: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]))}))}}},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}},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),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];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"_normalizeDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const s=`_${e}_dict_ranges`,n=this._dict_ranges[s];Object.keys(n).forEach((e=>{const s=e;for(this.dictRange=n[s],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-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",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,s;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",s=0;s<e;s+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),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=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)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=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`${i.substring(0,n)}${r}${i.substring(n)}${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=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*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const s=parseInt(r.substring(r.length-1),16);return new Date(1e3*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.2.0";const{dictionary:r,shuffle:s,length:n,counter:i}=t;return 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 ${this.dictLength} and counter set to ${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),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,v,g,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,P=E?l:l[w]||p(l,w,{})[w],A=P.prototype;for(f in t)n=!(r=c(E?f:w+(S?".":"#")+f,e.forced))&&O&&h(O,f),v=P[f],n&&(g=e.dontCallGetSet?(x=a(O,f))&&x.value:O[f]),y=n&&g?g:t[f],(r||j||typeof v!=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||v&&v.sham)&&p(b,"sham",!0),p(P,f,b),j&&(h(l,m=w+"Prototype")||p(l,m,{}),p(l[m],f,y),e.real&&A&&(r||!A[f])&&p(A,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: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")()},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 v=p.state||(p.state=new y);v.get=v.get,v.has=v.has,v.set=v.set,s=function(e,t){if(v.has(e))throw new f(m);return t.facade=e,v.set(e,t),t},n=function(e){return v.get(e)||{}},i=function(e){return v.has(e)}}else{var g=h("state");d[g]=!0,s=function(e,t){if(u(e,g))throw new f(m);return t.facade=e,l(e,g,t),t},n=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}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,v,g,b,x,w,E,S=r&&r.that,j=!(!r||!r.AS_ENTRIES),O=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),k=s(t,S),$=function(e){return y&&h(y,"normal",e),new m(!0,e)},T=function(e){return j?(i(e),A?k(e[0],e[1],$):k(e[0],e[1])):A?k(e,$):k(e)};if(O)y=e.iterator;else if(P)y=e;else{if(!(v=p(e)))throw new d(o(e)+" is not iterable");if(a(v)){for(g=0,b=c(e);b>g;g++)if((x=T(e[g]))&&l(f,x))return x;return new m(!1)}y=u(e,v)}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),v=o.PROPER,g=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,P){c(r,t,o);var A,k,$,T=function(e){if(e===m&&M)return M;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)}},F=t+" Iterator",C=!1,I=e.prototype,_=I[w]||I["@@iterator"]||m&&I[m],M=!x&&_||T(m),R="Array"===t&&I.entries||_;if(R&&(A=l(R.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[w])||d(A,w,O)),p(A,F,!0,!0),i&&(f[F]=O)),v&&m===S&&_&&_.name!==S&&(!i&&g?h(I,"name",S):(C=!0,M=function(){return n(_,this)})),m)if(k={values:T(S),keys:y?M:T(E),entries:T(j)},P)for($ in k)(x||C||!($ in I))&&d(I,$,k[$]);else s({target:t,proto:!0,forced:x||C},k);return i&&!P||I[w]===M||d(I,w,M,{name:m}),f[t]=M,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},v=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;v="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 v[p][o[n]];return v()};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=v(),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.39.0",mode:s?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.39.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..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 v="stackTraceLimit",g=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>g&&h(s,arguments[g]),s}));if(j.prototype=E,"Error"!==x?a?a(j,S):c(j,S,{name:!0}):m&&v in w&&(l(j,w,v),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,v=[].push,g=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,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return d(e,v,{that:a}),l(r,"errors",a),r};o?o(g,y):a(g,y,{name:!0});var b=g.prototype=c(y.prototype,{constructor:u(1,g),message:u(1,""),name:u(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},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:()=>fO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>mr,_areEquals:()=>jr,applyOperation:()=>br,applyPatch:()=>xr,applyReducer:()=>wr,deepClone:()=>fr,getValueByPointer:()=>gr,validate:()=>Sr,validator:()=>Er});var t={};r.r(t),r.d(t,{compare:()=>Cr,generate:()=>Tr,observe:()=>$r,unobserve:()=>kr});var n={};r.r(n),r.d(n,{bJ:()=>yi,uQ:()=>ui,Zd:()=>mi,q$:()=>hi,hd:()=>vi,aj:()=>gi,z9:()=>fi,zj:()=>bi});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Ia,includesClasses:()=>Ma,includesSymbols:()=>_a,isAnnotationElement:()=>ka,isArrayElement:()=>ja,isBooleanElement:()=>Ea,isCommentElement:()=>$a,isElement:()=>ga,isLinkElement:()=>Pa,isMemberElement:()=>Oa,isNullElement:()=>wa,isNumberElement:()=>xa,isObjectElement:()=>Sa,isParseResultElement:()=>Ta,isPrimitiveElement:()=>Ca,isRefElement:()=>Aa,isSourceMapElement:()=>Fa,isStringElement:()=>ba});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>np,isJSONSchemaElement:()=>sp,isLinkDescriptionElement:()=>op,isMediaElement:()=>ip});var a={};r.r(a),r.d(a,{isBooleanJsonSchemaElement:()=>Id,isCallbackElement:()=>dd,isComponentsElement:()=>md,isContactElement:()=>fd,isExampleElement:()=>yd,isExternalDocumentationElement:()=>vd,isHeaderElement:()=>gd,isInfoElement:()=>bd,isLicenseElement:()=>xd,isLinkElement:()=>wd,isMediaTypeElement:()=>Nd,isOpenApi3_0Element:()=>Sd,isOpenapiElement:()=>Ed,isOperationElement:()=>jd,isParameterElement:()=>Od,isPathItemElement:()=>Pd,isPathsElement:()=>Ad,isReferenceElement:()=>kd,isRequestBodyElement:()=>$d,isResponseElement:()=>Td,isResponsesElement:()=>Fd,isSchemaElement:()=>Cd,isSecurityRequirementElement:()=>_d,isSecuritySchemeElement:()=>Md,isServerElement:()=>Rd,isServerVariableElement:()=>Dd,isServersElement:()=>Ld});var c={};r.r(c),r.d(c,{isJSONReferenceElement:()=>np,isJSONSchemaElement:()=>bg,isLinkDescriptionElement:()=>xg,isMediaElement:()=>ip});var l={};r.r(l),r.d(l,{isJSONReferenceElement:()=>np,isJSONSchemaElement:()=>Fg,isLinkDescriptionElement:()=>Cg});var u={};r.r(u),r.d(u,{isJSONSchemaElement:()=>cb,isLinkDescriptionElement:()=>lb});var p={};r.r(p),r.d(p,{isJSONSchemaElement:()=>Eb,isLinkDescriptionElement:()=>Sb});var h={};r.r(h),r.d(h,{isBooleanJsonSchemaElement:()=>_x,isCallbackElement:()=>px,isComponentsElement:()=>hx,isContactElement:()=>dx,isExampleElement:()=>mx,isExternalDocumentationElement:()=>fx,isHeaderElement:()=>yx,isInfoElement:()=>vx,isJsonSchemaDialectElement:()=>gx,isLicenseElement:()=>bx,isLinkElement:()=>xx,isMediaTypeElement:()=>Lx,isOpenApi3_1Element:()=>Ex,isOpenapiElement:()=>wx,isOperationElement:()=>Sx,isParameterElement:()=>jx,isPathItemElement:()=>Ox,isPathItemElementExternal:()=>Px,isPathsElement:()=>Ax,isReferenceElement:()=>kx,isReferenceElementExternal:()=>$x,isRequestBodyElement:()=>Tx,isResponseElement:()=>Fx,isResponsesElement:()=>Cx,isSchemaElement:()=>Ix,isSecurityRequirementElement:()=>Mx,isSecuritySchemeElement:()=>Rx,isServerElement:()=>Dx,isServerVariableElement:()=>Nx});var d={};r.r(d),r.d(d,{cookie:()=>Kj,header:()=>Wj,path:()=>Hj,query:()=>zj});const m="application/json, application/yaml",f="https://swagger.io",y=Object.freeze({url:"/"}),{fetch:v,Response:g,Headers:b,Request:x,FormData:w,File:E,Blob:S}=globalThis;function j(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 O(e,t){return Array.isArray(e)&&e.some((e=>j(e,t)))}void 0===globalThis.fetch&&(globalThis.fetch=v),void 0===globalThis.Headers&&(globalThis.Headers=b),void 0===globalThis.Request&&(globalThis.Request=x),void 0===globalThis.Response&&(globalThis.Response=g),void 0===globalThis.FormData&&(globalThis.FormData=w),void 0===globalThis.File&&(globalThis.File=E),void 0===globalThis.Blob&&(globalThis.Blob=S);class P extends File{constructor(e,t="",r={}){super([e],t,r),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}const A=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,k=e=>/^[a-z0-9\-._~]+$/i.test(e);function $(e,t="reserved"){return[...e].map((e=>{if(k(e))return e;if(A(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 T(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?$(e,t):e??""}const C={form:",",spaceDelimited:"%20",pipeDelimited:"|"},I={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(j(a)||O(a))return[[l,a]];if(i)return M(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 M(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(I[s||"csv"])]]:[[l,""]]}function M(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(C[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 R(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 D(e={}){const{url:t="",query:r,form:s}=e;if(s){const t=Object.keys(s).some((e=>{const{value:t}=s[e];return j(t)||O(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=R(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,R(r));e.url=s+o,delete e.query}return e}function N(e){return null==e}var L={isNothing:N,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:N(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 B(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||""}B.prototype=Object.create(Error.prototype),B.prototype.constructor=B,B.prototype.toString=function(e){return this.name+": "+q(this,e)};var U=B;function J(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 V(e,t){return L.repeat(" ",t-e.length)+e}var H=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=J(e.buffer,n[o-a],i[o-a],e.position-(n[o]-n[o-a]),p),l=L.repeat(" ",t.indent)+V((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=J(e.buffer,n[o],i[o],e.position,p),l+=L.repeat(" ",t.indent)+V((e.line+1).toString(),u)+" | "+c.str+"\n",l+=L.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=J(e.buffer,n[o+a],i[o+a],e.position-(n[o]-n[o+a]),p),l+=L.repeat(" ",t.indent)+V((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},z=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],G=["scalar","sequence","mapping"];var W=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===z.indexOf(t))throw new U('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===G.indexOf(this.kind))throw new U('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function K(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 Y(e){return this.extend(e)}Y.prototype.extend=function(e){var t=[],r=[];if(e instanceof W)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 U("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 W))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new U("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 U("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 W))throw new U("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var s=Object.create(Y.prototype);return s.implicit=(this.implicit||[]).concat(t),s.explicit=(this.explicit||[]).concat(r),s.compiledImplicit=K(s,"implicit"),s.compiledExplicit=K(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 X=Y,Q=new W("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),Z=new W("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),ee=new W("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),te=new X({explicit:[Q,Z,ee]});var re=new W("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 se=new W("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 ne(e){return 48<=e&&e<=55}function ie(e){return 48<=e&&e<=57}var oe=new W("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(!ne(e.charCodeAt(n)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;n<s;n++)if("_"!==(t=e[n])){if(!ie(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&&!L.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"]}}),ae=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var ce=/^[-+]?[0-9]+e/;var le=new W("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!ae.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||L.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(L.isNegativeZero(e))return"-0.0";return r=e.toString(10),ce.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),ue=te.extend({implicit:[re,se,oe,le]}),pe=ue,he=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),de=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 me=new W("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==he.exec(e)||null!==de.exec(e))},construct:function(e){var t,r,s,n,i,o,a,c,l=0,u=null;if(null===(t=he.exec(e))&&(t=de.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 fe=new W("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),ye="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var ve=new W("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,s=0,n=e.length,i=ye;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=ye,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=ye;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}}),ge=Object.prototype.hasOwnProperty,be=Object.prototype.toString;var xe=new W("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]"!==be.call(s))return!1;for(n in s)if(ge.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:[]}}),we=Object.prototype.toString;var Ee=new W("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]"!==we.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}}),Se=Object.prototype.hasOwnProperty;var je=new W("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(Se.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),Oe=pe.extend({implicit:[me,fe],explicit:[ve,xe,Ee,je]}),Pe=Object.prototype.hasOwnProperty,Ae=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,ke=/[\x85\u2028\u2029]/,$e=/[,\[\]\{\}]/,Te=/^(?:!|!!|![a-z\-]+!)$/i,Fe=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function Ce(e){return Object.prototype.toString.call(e)}function Ie(e){return 10===e||13===e}function _e(e){return 9===e||32===e}function Me(e){return 9===e||32===e||10===e||13===e}function Re(e){return 44===e||91===e||93===e||123===e||125===e}function De(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Ne(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 Le(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var qe=new Array(256),Be=new Array(256),Ue=0;Ue<256;Ue++)qe[Ue]=Ne(Ue)?1:0,Be[Ue]=Ne(Ue);function Je(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||Oe,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 Ve(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=H(r),new U(t,r)}function He(e,t){throw Ve(e,t)}function ze(e,t){e.onWarning&&e.onWarning.call(null,Ve(e,t))}var Ge={YAML:function(e,t,r){var s,n,i;null!==e.version&&He(e,"duplication of %YAML directive"),1!==r.length&&He(e,"YAML directive accepts exactly one argument"),null===(s=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&He(e,"ill-formed argument of the YAML directive"),n=parseInt(s[1],10),i=parseInt(s[2],10),1!==n&&He(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&ze(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var s,n;2!==r.length&&He(e,"TAG directive accepts exactly two arguments"),s=r[0],n=r[1],Te.test(s)||He(e,"ill-formed tag handle (first argument) of the TAG directive"),Pe.call(e.tagMap,s)&&He(e,'there is a previously declared suffix for "'+s+'" tag handle'),Fe.test(n)||He(e,"ill-formed tag prefix (second argument) of the TAG directive");try{n=decodeURIComponent(n)}catch(t){He(e,"tag prefix is malformed: "+n)}e.tagMap[s]=n}};function We(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||He(e,"expected valid JSON character");else Ae.test(a)&&He(e,"the stream contains non-printable characters");e.result+=a}}function Ke(e,t,r,s){var n,i,o,a;for(L.isObject(r)||He(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)||(t[i]=r[i],s[i]=!0)}function Ye(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])&&He(e,"nested arrays are not supported inside keys"),"object"==typeof n&&"[object Object]"===Ce(n[l])&&(n[l]="[object Object]");if("object"==typeof n&&"[object Object]"===Ce(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)Ke(e,t,i[l],r);else Ke(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,He(e,"duplicated mapping key")),"__proto__"===n?Object.defineProperty(t,n,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[n]=i,delete r[n];return t}function Xe(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):He(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function Qe(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(!Ie(n))break;for(Xe(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&&ze(e,"deficient indentation"),s}function Ze(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))&&!Me(t)))}function et(e,t){1===t?e.result+=" ":t>1&&(e.result+=L.repeat("\n",t-1))}function tt(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,He(e,"tab characters must not be used in indentation")),45===s)&&Me(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,Qe(e,!0,-1)&&e.lineIndent<=t)o.push(null),s=e.input.charCodeAt(e.position);else if(r=e.line,nt(e,t,3,!1,!0),o.push(e.result),Qe(e,!0,-1),s=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==s)He(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 rt(e){var t,r,s,n,i=!1,o=!1;if(33!==(n=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&He(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)):He(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==n&&!Me(n);)33===n&&(o?He(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),Te.test(r)||He(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),$e.test(s)&&He(e,"tag suffix cannot contain flow indicator characters")}s&&!Fe.test(s)&&He(e,"tag name cannot contain such characters: "+s);try{s=decodeURIComponent(s)}catch(t){He(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:He(e,'undeclared tag handle "'+r+'"'),!0}function st(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&He(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Me(r)&&!Re(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&He(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function nt(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&&Qe(e,!0,-1)&&(f=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;rt(e)||st(e);)Qe(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&&(tt(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,v=!1,g=!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(v||-1===e.firstTabInLine||(e.position=e.firstTabInLine,He(e,"tab characters must not be used in indentation")),s=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Me(s)){if(o=e.line,a=e.lineStart,c=e.position,!nt(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)Me(l=e.input.charCodeAt(++e.position))||He(e,"a whitespace character is expected after the key-value separator within a block mapping"),v&&(Ye(e,h,d,m,f,null,o,a,c),m=f=y=null),g=!0,v=!1,n=!1,m=e.tag,f=e.result;else{if(!g)return e.tag=u,e.anchor=p,!0;He(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!g)return e.tag=u,e.anchor=p,!0;He(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(v&&(Ye(e,h,d,m,f,null,o,a,c),m=f=y=null),g=!0,v=!0,n=!0):v?(v=!1,n=!0):He(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)&&(v&&(o=e.line,a=e.lineStart,c=e.position),nt(e,t,4,!0,n)&&(v?f=e.result:y=e.result),v||(Ye(e,h,d,m,f,y,o,a,c),m=f=y=null),Qe(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)He(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return v&&Ye(e,h,d,m,f,null,o,a,c),g&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),g}(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,v=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(Qe(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&&He(e,"expected the node content, but found ','"):He(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===d&&Me(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,Qe(e,!0,t)),r=e.line,s=e.lineStart,n=e.position,nt(e,t,1,!1,!0),p=e.tag,u=e.result,Qe(e,!0,t),d=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==d||(a=!0,d=e.input.charCodeAt(++e.position),Qe(e,!0,t),nt(e,t,1,!1,!0),h=e.result),l?Ye(e,i,v,p,u,h,r,s,n):a?i.push(Ye(e,null,v,p,u,h,r,s,n)):i.push(u),Qe(e,!0,t),44===(d=e.input.charCodeAt(e.position))?(m=!0,d=e.input.charCodeAt(++e.position)):m=!1}He(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:He(e,"repeat of a chomping mode identifier");else{if(!((n=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===n?He(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?He(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(!Ie(i)&&0!==i)}for(;0!==i;){for(Xe(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),Ie(i))p++;else{if(e.lineIndent<u){3===a?e.result+=L.repeat("\n",c?1+p:p):1===a&&c&&(e.result+="\n");break}for(s?_e(i)?(h=!0,e.result+=L.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=L.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=L.repeat("\n",p):e.result+=L.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!Ie(i)&&0!==i;)i=e.input.charCodeAt(++e.position);We(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(We(e,s,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;s=e.position,e.position++,n=e.position}else Ie(r)?(We(e,s,n,!0),et(e,Qe(e,!1,t)),s=n=e.position):e.position===e.lineStart&&Ze(e)?He(e,"unexpected end of the document within a single quoted scalar"):(e.position++,n=e.position);He(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 We(e,r,e.position,!0),e.position++,!0;if(92===a){if(We(e,r,e.position,!0),Ie(a=e.input.charCodeAt(++e.position)))Qe(e,!1,t);else if(a<256&&qe[a])e.result+=Be[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=De(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:He(e,"expected hexadecimal character");e.result+=Le(i),e.position++}else He(e,"unknown escape sequence");r=s=e.position}else Ie(a)?(We(e,r,s,!0),et(e,Qe(e,!1,t)),r=s=e.position):e.position===e.lineStart&&Ze(e)?He(e,"unexpected end of the document within a double quoted scalar"):(e.position++,s=e.position)}He(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&&!Me(s)&&!Re(s);)s=e.input.charCodeAt(++e.position);return e.position===t&&He(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Pe.call(e.anchorMap,r)||He(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],Qe(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(Me(u=e.input.charCodeAt(e.position))||Re(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)&&(Me(s=e.input.charCodeAt(e.position+1))||r&&Re(s)))return!1;for(e.kind="scalar",e.result="",n=i=e.position,o=!1;0!==u;){if(58===u){if(Me(s=e.input.charCodeAt(e.position+1))||r&&Re(s))break}else if(35===u){if(Me(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Ze(e)||r&&Re(u))break;if(Ie(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,Qe(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&&(We(e,n,i,!1),et(e,e.line-a),n=i=e.position,o=!1),_e(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return We(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||He(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&tt(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&&He(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||He(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&He(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)):He(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 it(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))&&(Qe(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&&!Me(n);)n=e.input.charCodeAt(++e.position);for(s=[],(r=e.input.slice(t,e.position)).length<1&&He(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&&!Ie(n));break}if(Ie(n))break;for(t=e.position;0!==n&&!Me(n);)n=e.input.charCodeAt(++e.position);s.push(e.input.slice(t,e.position))}0!==n&&Xe(e),Pe.call(Ge,r)?Ge[r](e,r,s):ze(e,'unknown document directive "'+r+'"')}Qe(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,Qe(e,!0,-1)):o&&He(e,"directives end mark is expected"),nt(e,e.lineIndent-1,4,!1,!0),Qe(e,!0,-1),e.checkLineBreaks&&ke.test(e.input.slice(i,e.position))&&ze(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ze(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,Qe(e,!0,-1)):e.position<e.length-1&&He(e,"end of the stream or a document separator is expected")}function ot(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 Je(e,t),s=e.indexOf("\0");for(-1!==s&&(r.position=s,He(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;)it(r);return r.documents}var at={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var s=ot(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=ot(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new U("expected a single document in the stream, but found more")}}},ct=Object.prototype.toString,lt=Object.prototype.hasOwnProperty,ut=65279,pt={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"},ht=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],dt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function mt(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 U("code point within a string may not be greater than 0xFFFFFFFF");r="U",s=8}return"\\"+r+L.repeat("0",s-t.length)+t}function ft(e){this.schema=e.schema||Oe,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=L.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])&<.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 yt(e,t){for(var r,s=L.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 vt(e,t){return"\n"+L.repeat(" ",e.indent*t)}function gt(e){return 32===e||9===e}function bt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==ut||65536<=e&&e<=1114111}function xt(e){return bt(e)&&e!==ut&&13!==e&&10!==e}function wt(e,t,r){var s=xt(e),n=s&&!gt(e);return(r?s:s&&44!==e&&91!==e&&93!==e&&123!==e&&125!==e)&&35!==e&&!(58===t&&!n)||xt(t)&&!gt(t)&&35===e||58===t&&n}function Et(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 St(e){return/^\n* /.test(e)}function jt(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=bt(l=Et(e,0))&&l!==ut&&!gt(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!gt(e)&&58!==e}(Et(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!bt(u=Et(e,c)))return 5;y=y&&wt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if(10===(u=Et(e,c)))h=!0,m&&(d=d||c-f-1>s&&" "!==e[f+1],f=c);else if(!bt(u))return 5;y=y&&wt(u,p,a),p=u}d=d||m&&c-f-1>s&&" "!==e[f+1]}return h||d?r>9&&St(e)?5:o?2===i?5:2:d?4:3:!y||o||n(e)?2===i?5:2:1}function Ot(e,t,r,s,n){e.dump=function(){if(0===t.length)return 2===e.quotingType?'""':"''";if(!e.noCompatMode&&(-1!==ht.indexOf(t)||dt.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(jt(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"|"+Pt(t,e.indent)+At(yt(t,i));case 4:return">"+Pt(t,e.indent)+At(yt(function(e,t){var r,s,n=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,n.lastIndex=a,kt(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")+kt(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=Et(e,n),!(t=pt[s])&&bt(s)?(r+=e[n],s>=65536&&(r+=e[n+1])):r+=t||mt(s);return r}(t)+'"';default:throw new U("impossible error: invalid scalar style")}}()}function Pt(e,t){var r=St(e)?String(t):"",s="\n"===e[e.length-1];return r+(s&&("\n"===e[e.length-2]||"\n"===e)?"+":s?"":"-")+"\n"}function At(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function kt(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 $t(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)),(Ft(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Ft(e,t+1,null,!0,!0,!1,!0))&&(s&&""===a||(a+=vt(e,t)),e.dump&&10===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Tt(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]"===ct.call(a.represent))s=a.represent(t,c);else{if(!lt.call(a.represent,c))throw new U("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');s=a.represent[c](t,c)}e.dump=s}return!0}return!1}function Ft(e,t,r,s,n,i,o){e.tag=null,e.dump=r,Tt(e,r,!1)||Tt(e,r,!0);var a,c=ct.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 U("sortKeys must be a boolean or a function");for(n=0,i=h.length;n<i;n+=1)l="",s&&""===u||(l+=vt(e,t)),a=r[o=h[n]],e.replacer&&(a=e.replacer.call(r,o,a)),Ft(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+=vt(e,t)),Ft(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)),Ft(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ft(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?$t(e,t-1,e.dump,n):$t(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)),(Ft(e,t,i,!1,!1)||void 0===i&&Ft(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 U("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Ot(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 Ct(e,t){var r,s,n=[],i=[];for(It(e,n,i),r=0,s=i.length;r<s;r+=1)t.duplicates.push(n[i[r]]);t.usedDuplicates=new Array(s)}function It(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)It(e[n],t,r);else for(n=0,i=(s=Object.keys(e)).length;n<i;n+=1)It(e[s[n]],t,r)}function _t(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 Mt=W,Rt=X,Dt=te,Nt=ue,Lt=pe,qt=Oe,Bt=at.load,Ut=at.loadAll,Jt={dump:function(e,t){var r=new ft(t=t||{});r.noRefs||Ct(e,r);var s=e;return r.replacer&&(s=r.replacer.call({"":s},"",s)),Ft(r,0,s,!0,!0)?r.dump+"\n":""}}.dump,Vt=U,Ht={binary:ve,float:le,map:ee,null:re,pairs:Ee,set:je,timestamp:me,bool:se,int:oe,merge:fe,omap:xe,seq:Z,str:Q},zt=_t("safeLoad","load"),Gt=_t("safeLoadAll","loadAll"),Wt=_t("safeDump","dump");const Kt={Type:Mt,Schema:Rt,FAILSAFE_SCHEMA:Dt,JSON_SCHEMA:Nt,CORE_SCHEMA:Lt,DEFAULT_SCHEMA:qt,load:Bt,loadAll:Ut,dump:Jt,YAMLException:Vt,types:Ht,safeLoad:zt,safeLoadAll:Gt,safeDump:Wt};function Yt(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 Xt(e,t,{loadSpec:r=!1}={}){const s={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Yt(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){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):Kt.load(e)}(e,n);s.body=t,s.obj=t}catch(e){s.parseError=e}return s}))}async function Qt(e,t={}){"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=D(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 Xt(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 Zt(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 er=e=>{const{baseDoc:t,url:r}=e,s=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(s,globalThis.document.baseURI)):s},tr=e=>{const{fetch:t,http:r}=e;return t||r||Qt};var rr,sr=(rr=function(e,t){return rr=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])},rr(e,t)},function(e,t){function r(){this.constructor=e}rr(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),nr=Object.prototype.hasOwnProperty;function ir(e,t){return nr.call(e,t)}function or(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)ir(e,n)&&s.push(n);return s}function ar(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function cr(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 lr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function ur(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function pr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(pr(e[t]))return!0}else if("object"==typeof e)for(var s=or(e),n=s.length,i=0;i<n;i++)if(pr(e[s[i]]))return!0;return!1}function hr(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 dr=function(e){function t(t,r,s,n,i){var o=this.constructor,a=e.call(this,hr(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=hr(t,{name:r,index:s,operation:n,tree:i}),a}return sr(t,e),t}(Error),mr=dr,fr=ar,yr={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=gr(r,this.path);s&&(s=ar(s));var n=br(r,{op:"remove",path:this.from}).removed;return br(r,{op:"add",path:this.path,value:n}),{newDocument:r,removed:s}},copy:function(e,t,r){var s=gr(r,this.from);return br(r,{op:"add",path:this.path,value:ar(s)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:jr(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},vr={add:function(e,t,r){return cr(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:yr.move,copy:yr.copy,test:yr.test,_get:yr._get};function gr(e,t){if(""==t)return e;var r={op:"_get",path:t};return br(e,r),r.value}function br(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):Er(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=gr(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=jr(e,t.value),!1===o.test)throw new mr("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 mr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}s||(e=ar(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:Er;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=ur(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&&!cr(h))throw new mr("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);cr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new mr("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=vr[t.op].call(t,c,h,e)).test)throw new mr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=yr[t.op].call(t,c,h,e)).test)throw new mr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new mr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function xr(e,t,r,s,n){if(void 0===s&&(s=!0),void 0===n&&(n=!0),r&&!Array.isArray(t))throw new mr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");s||(e=ar(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=br(e,t[o],r,!0,n,o),e=i[o].newDocument;return i.newDocument=e,i}function wr(e,t,r){var s=br(e,t);if(!1===s.test)throw new mr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return s.newDocument}function Er(e,t,r,s){if("object"!=typeof e||null===e||Array.isArray(e))throw new mr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!yr[e.op])throw new mr("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 mr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new mr('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 mr("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 mr("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)&&pr(e.value))throw new mr("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 mr("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 mr("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=Sr([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new mr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Sr(e,t,r){try{if(!Array.isArray(e))throw new mr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)xr(ar(t),ar(e),r||!0);else{r=r||Er;for(var s=0;s<e.length;s++)r(e[s],s,t,void 0)}}catch(e){if(e instanceof mr)return e;throw e}}function jr(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(!jr(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(!jr(e[n=a[r]],t[n]))return!1;return!0}return e!=e&&t!=t}var Or=new WeakMap,Pr=function(e){this.observers=new Map,this.obj=e},Ar=function(e,t){this.callback=e,this.observer=t};function kr(e,t){t.unobserve()}function $r(e,t){var r,s=function(e){return Or.get(e)}(e);if(s){var n=function(e,t){return e.observers.get(t)}(s,t);r=n&&n.observer}else s=new Pr(e),Or.set(e,s);if(r)return r;if(r={},s.value=ar(e),t){r.callback=t,r.next=null;var i=function(){Tr(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(){Tr(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 Ar(t,r)),r}function Tr(e,t){void 0===t&&(t=!1);var r=Or.get(e.object);Fr(r.value,e.object,e.patches,"",t),e.patches.length&&xr(r.value,e.patches);var s=e.patches;return s.length>0&&(e.patches=[],e.callback&&e.callback(s)),s}function Fr(e,t,r,s,n){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=or(t),o=or(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!ir(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+"/"+lr(p),value:ar(l)}),r.push({op:"remove",path:s+"/"+lr(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)?Fr(l,u,r,s+"/"+lr(p),n):l!==u&&(n&&r.push({op:"test",path:s+"/"+lr(p),value:ar(l)}),r.push({op:"replace",path:s+"/"+lr(p),value:ar(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;ir(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:s+"/"+lr(p),value:ar(t[p])})}}}function Cr(e,t,r){void 0===r&&(r=!1);var s=[];return Fr(e,t,s,"",r),s}Object.assign({},e,t,{JsonPatchError:dr,deepClone:ar,escapePathComponent:lr,unescapePathComponent:ur});var Ir=r(4744),_r=r.n(Ir);const Mr={add:function(e,t){return{op:"add",path:e,value:t}},replace:Dr,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&&Rr(t.path)}).op){const r=Yr(e,t.path);Object.assign(r,t.value),xr(e,[Dr(t.path,r)])}else if("mergeDeep"===t.op){const r=Yr(e,t.path),s=_r()(r,t.value);e=xr(e,[Dr(t.path,s)]).newDocument}else if("add"===t.op&&""===t.path&&Vr(t.value)){xr(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${Rr(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:s}=t;r.allowMetaPatches&&t.meta&&Wr(t)&&(Array.isArray(t.value)||Vr(t.value))&&(s={...s,...t.meta}),e=s}else if(xr(e,[t]),r.allowMetaPatches&&t.meta&&Wr(t)&&(Array.isArray(t.value)||Vr(t.value))){const r={...Yr(e,t.path),...t.meta};xr(e,[Dr(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:Ur,fullyNormalizeArray:function(e){return Jr(Ur(Br(e)))},normalizeArray:Br,isPromise:function(e){return Vr(e)&&Hr(e.then)},forEachNew:function(e,t){try{return Nr(e,qr,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return Nr(e,Lr,t)}catch(e){return e}},isJsonPatch:zr,isContextPatch:function(e){return Kr(e)&&"context"===e.type},isPatch:Kr,isMutation:Gr,isAdditiveMutation:Wr,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Hr,isObject:Vr,isError:function(e){return e instanceof Error}};function Rr(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function Dr(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function Nr(e,t,r){return Jr(Ur(e.filter(Wr).map((e=>t(e.value,r,e.path)))||[]))}function Lr(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,s)=>Lr(e,t,r.concat(s)))):Vr(e)?Object.keys(e).map((s=>Lr(e[s],t,r.concat(s)))):t(e,r[r.length-1],r)}function qr(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)=>qr(e,t,r.concat(s))));n&&(s=s.concat(n))}else if(Vr(e)){const n=Object.keys(e).map((s=>qr(e[s],t,r.concat(s))));n&&(s=s.concat(n))}return s=Ur(s),s}function Br(e){return Array.isArray(e)?e:[e]}function Ur(e){return[].concat(...e.map((e=>Array.isArray(e)?Ur(e):e)))}function Jr(e){return e.filter((e=>void 0!==e))}function Vr(e){return e&&"object"==typeof e}function Hr(e){return e&&"function"==typeof e}function zr(e){if(Kr(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Gr(e){return zr(e)||Kr(e)&&"mutation"===e.type}function Wr(e){return Gr(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Kr(e){return e&&"object"==typeof e}function Yr(e,t){try{return gr(e,t)}catch(e){return console.error(e),{}}}var Xr=r(8675);const Qr=class extends Xr{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 Zr extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Qr,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 es=Zr;const ts=class extends es{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};var rs=r(5606);function ss(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function ns(e){return function t(r){return 0===arguments.length||ss(r)?t:e.apply(this,arguments)}}function is(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return ss(r)?t:ns((function(t){return e(r,t)}));default:return ss(r)&&ss(s)?t:ss(r)?ns((function(t){return e(t,s)})):ss(s)?ns((function(t){return e(r,t)})):e(r,s)}}}function os(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return ss(r)?t:is((function(t,s){return e(r,t,s)}));case 2:return ss(r)&&ss(s)?t:ss(r)?is((function(t,r){return e(t,s,r)})):ss(s)?is((function(t,s){return e(r,t,s)})):ns((function(t){return e(r,s,t)}));default:return ss(r)&&ss(s)&&ss(n)?t:ss(r)&&ss(s)?is((function(t,r){return e(t,r,n)})):ss(r)&&ss(n)?is((function(t,r){return e(t,s,r)})):ss(s)&&ss(n)?is((function(t,s){return e(r,t,s)})):ss(r)?ns((function(t){return e(t,s,n)})):ss(s)?ns((function(t){return e(r,t,n)})):ss(n)?ns((function(t){return e(r,s,t)})):e(r,s,n)}}}const as=Number.isInteger||function(e){return(e|0)===e};function cs(e){return"[object String]"===Object.prototype.toString.call(e)}function ls(e,t){var r=e<0?t.length+e:e;return cs(t)?t.charAt(r):t[r]}function us(e,t){for(var r=t,s=0;s<e.length;s+=1){if(null==r)return;var n=e[s];r=as(n)?ls(n,r):r[n]}return r}const ps=os((function(e,t,r){return e(us(t,r))}));function hs(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 ds(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ms(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function fs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ys="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var vs=Object.prototype.toString;const gs=function(){return"[object Arguments]"===vs.call(arguments)?function(e){return"[object Arguments]"===vs.call(e)}:function(e){return fs("callee",e)}}();var bs=!{toString:null}.propertyIsEnumerable("toString"),xs=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],ws=function(){return arguments.propertyIsEnumerable("length")}(),Es=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Ss="function"!=typeof Object.keys||ws?ns((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=ws&&gs(e);for(t in e)!fs(t,e)||n&&"length"===t||(s[s.length]=t);if(bs)for(r=xs.length-1;r>=0;)fs(t=xs[r],e)&&!Es(s,t)&&(s[s.length]=t),r-=1;return s})):ns((function(e){return Object(e)!==e?[]:Object.keys(e)}));const js=Ss;const Os=ns((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Ps(e,t,r,s){var n=ds(e);function i(e,t){return As(e,t,r.slice(),s.slice())}return!ms((function(e,t){return!ms(i,t,e)}),ds(t),n)}function As(e,t,r,s){if(ys(e,t))return!0;var n,i,o=Os(e);if(o!==Os(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||!ys(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ys(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&&Ps(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Ps(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=js(e);if(c.length!==js(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(!fs(p,t)||!As(t[p],e[p],l,u))return!1;a-=1}return!0}const ks=is((function(e,t){return As(e,t,[],[])}));function $s(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(ks(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function Ts(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function Fs(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 Cs=function(e){return(e<10?"0":"")+e};const Is="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Cs(e.getUTCMonth()+1)+"-"+Cs(e.getUTCDate())+"T"+Cs(e.getUTCHours())+":"+Cs(e.getUTCMinutes())+":"+Cs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _s(e){return function(){return!e.apply(this,arguments)}}function Ms(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const Rs=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function Ds(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!Rs(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 Ns(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ls=function(){return this.xf["@@transducer/init"]()},qs=function(e){return this.xf["@@transducer/result"](e)};var Bs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ls,e.prototype["@@transducer/result"]=qs,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Us(e){return function(t){return new Bs(e,t)}}const Js=is(Ds(["fantasy-land/filter","filter"],Us,(function(e,t){return Ns(t)?Ms((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},js(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 Vs=is((function(e,t){return Js(_s(e),t)}));function Hs(e,t){var r=function(r){var s=t.concat([e]);return $s(r,s)?"<Circular>":Hs(r,s)},s=function(e,t){return Ts((function(t){return Fs(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ts(r,e).join(", ")+"))";case"[object Array]":return"["+Ts(r,e).concat(s(e,Vs((function(e){return/^\d+$/.test(e)}),js(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):Fs(Is(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())+")":Fs(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,js(e)).join(", ")+"}"}}const zs=ns((function(e){return Hs(e,[])}));var Gs=is((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 "+zs(e));var r;return hs(e).test(t)}));const Ws=Gs;function Ks(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 Ys(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Xs=ns((function(e){return!!Rs(e)||!!e&&("object"==typeof e&&(!cs(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var Qs="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Zs(e,t,r){return function(s,n,i){if(Xs(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[Qs])return r(s,n,i[Qs]());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 en(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 tn=is((function(e,t){return Ks(e.length,(function(){return e.apply(t,arguments)}))}));function rn(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 sn(e,t,r,s){return e["@@transducer/result"](r[s](tn(e["@@transducer/step"],e),t))}const nn=Zs(en,sn,rn);var on=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 an(e){return new on(e)}const cn=os((function(e,t,r){return nn("function"==typeof e?an(e):e,t,r)}));function ln(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return Rs(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const un=os(ln("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const pn=ns(ln("tail",un(1,1/0)));function hn(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Ks(arguments[0].length,cn(Ys,arguments[0],pn(arguments)))}const dn=is((function(e,t){return null==t||t!=t?e:t}));const mn=is((function(e,t){if(null!=t)return as(e)?ls(e,t):t[e]}));const fn=os((function(e,t,r){return dn(e,mn(t,r))}));const yn=ns((function(e){return ls(-1,e)}));function vn(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&&(!ss(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,ss(c)?a=!0:i-=1,o+=1}return!a&&i<=0?r.apply(this,s):Ks(Math.max(0,i),vn(e,s,r))}}const gn=is((function(e,t){return 1===e?ns(t):Ks(e,vn(e,[],t))}));const bn=ns((function(e){return gn(e.length,e)}));function xn(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const wn=is((function(e,t){return gn(e+1,(function(){var r=arguments[e];if(null!=r&&xn(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(zs(r)+' does not have a method named "'+t+'"')}))}));const En=wn(1,"split");function Sn(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return un(0,r+1,t)}var jn=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Ls,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=nn(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 On(e){return function(t){return new jn(e,t)}}const Pn=is(Ds([],On,Sn));const An=wn(1,"join");const kn=ns((function(e){return gn(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(is($s));const $n=bn((function(e,t){return hn(En(""),Pn(kn(e)),An(""))(t)}));function Tn(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function Fn(e,t,r,s){return r[s](e,t)}const Cn=Zs(Ms,Fn,Tn);var In=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ls,e.prototype["@@transducer/result"]=qs,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const _n=is(Ds(["fantasy-land/map","map"],(function(e){return function(t){return new In(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return gn(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Ms((function(r,s){return r[s]=e(t[s]),r}),{},js(t));default:return Ts(e,t)}})));const Mn=is((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))}:Cn((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,_n(r,t))}),[],e)}));const Rn=is((function(e,t){var r=gn(e,t);return gn(e,(function(){return Ms(Mn,_n(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Dn=ns((function(e){return Rn(e.length,e)}));const Nn=Dn(ns((function(e){return!e})));const Ln=ns((function(e){return function(){return e}}));const qn=Ln(void 0);const Bn=ks(qn());const Un=Nn(Bn);const Jn=is((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=zs(e),o=r(i,zs(t));return void 0!==o&&o===i?e:t}));const Vn=is((function(e,t){return _n(mn(e),t)}));const Hn=ns((function(e){return gn(cn(Jn,0,Vn("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 zn=function(e,t){switch(arguments.length){case 0:return zn;case 1:return function t(r){return 0===arguments.length?t:ys(e,r)};default:return ys(e,t)}};const Gn=zn;const Wn=gn(1,hn(Os,Gn("GeneratorFunction")));const Kn=gn(1,hn(Os,Gn("AsyncFunction")));const Yn=Hn([hn(Os,Gn("Function")),Wn,Kn]);var Xn=os((function(e,t,r){return r.replace(e,t)}));const Qn=Xn;const Zn=gn(1,hn(Os,Gn("RegExp")));const ei=os((function(e,t,r){return e(r)?t(r):r}));const ti=gn(1,hn(Os,Gn("String")));const ri=ei(ti,Qn(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var si=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const ni=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),si(r,"str"),si(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(Zn(e)?e:ri(e),"g");return Qn(s,t,r)};var ii=gn(3,ni),oi=wn(2,"replaceAll");const ai=Yn(String.prototype.replaceAll)?oi:ii,ci=()=>ps(Ws(/^win/),["platform"],rs),li=e=>{try{const t=new URL(e);return $n(":",t.protocol)}catch{return}},ui=(hn(li,Un),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),pi=e=>{if(rs.browser)return!1;const t=li(e);return Bn(t)||"file"===t||/^[a-zA-Z]$/.test(t)},hi=e=>{const t=li(e);return"http"===t||"https"===t},di=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],s=fn(!1,"keepFileProtocol",t),n=fn(ci,"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=ai("/","\\",i),":\\"===i.substring(1,3)&&(i=i[0].toUpperCase()+i.substring(1))),i},mi=e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"},fi=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},yi=()=>{if(rs.browser)return fi(globalThis.location.href);const e=rs.cwd(),t=yn(e);return["/","\\"].includes(t)?e:e+(ci()?"\\":"/")},vi=(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()},gi=e=>{if(pi(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;ci()&&(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})(di(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},bi=e=>pi(e)?di(e):decodeURI(e);function xi(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 wi(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 Ei(e,t){return null!=t&&"undefined"!=typeof Symbol&&t[Symbol.hasInstance]?!!t[Symbol.hasInstance](e):e instanceof t}function Si(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 xi(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 xi(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 ji(e){return e&&"undefined"!=typeof Symbol&&e.constructor===Symbol?"symbol":typeof e}var Oi=function(e){throw TypeError(e)},Pi=function(e,t,r){return t.has(e)||Oi("Cannot "+r)},Ai=function(e,t,r){return Pi(e,t,"read from private field"),r?r.call(e):t.get(e)},ki=function(e,t,r){return t.has(e)?Oi("Cannot add the same private member more than once"):Ei(t,WeakSet)?t.add(e):t.set(e,r)},$i=function(e,t,r,s){return Pi(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r},Ti=function(e){return Object.prototype.toString.call(e)},Fi=function(e){return ArrayBuffer.isView(e)&&!Ei(e,DataView)},Ci=Array.isArray,Ii=Object.getOwnPropertyDescriptor,_i=Object.prototype.propertyIsEnumerable,Mi=Object.getOwnPropertySymbols,Ri=Object.prototype.hasOwnProperty;function Di(e){for(var t=Object.keys(e),r=Mi(e),s=0;s<r.length;s++)_i.call(e,r[s])&&t.push(r[s]);return t}function Ni(e,t){var r;return!(null===(r=Ii(e,t))||void 0===r?void 0:r.writable)}function Li(e,t){if("object"===(void 0===e?"undefined":ji(e))&&null!==e){var r;if(Ci(e))r=[];else if("[object Date]"===Ti(e))r=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===Ti(e)}(e))r=new RegExp(e);else if(function(e){return"[object Error]"===Ti(e)}(e))r={message:e.message};else if(function(e){return"[object Boolean]"===Ti(e)}(e)||function(e){return"[object Number]"===Ti(e)}(e)||function(e){return"[object String]"===Ti(e)}(e))r=Object(e);else{if(Fi(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var s=t.includeSymbols?Di: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 qi,Bi,Ui={includeSymbols:!1,immutable:!1};function Ji(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Ui,s=[],n=[],i=!0,o=r.includeSymbols?Di:Object.keys,a=!!r.immutable;return function e(c){var l=a?Li(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){Ci(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"===ji(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"===ji(h.node)&&null!==h.node&&!h.circular){var f;n.push(h),d();var y=!0,v=!1,g=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=Si(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&&Ri.call(h.node,j)&&!Ni(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){v=!0,g=e}finally{try{y||null==x.return||x.return()}finally{if(v)throw g}}n.pop()}return u.after&&u.after.call(h,h.node),h}(e).node}var Vi=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ui;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),ki(this,qi),ki(this,Bi),$i(this,qi,t),$i(this,Bi,r)}var t,r,s;return t=e,r=[{key:"get",value:function(e){for(var t=Ai(this,qi),r=0;t&&r<e.length;r++){var s=e[r];if(!Ri.call(t,s)||!Ai(this,Bi).includeSymbols&&"symbol"===(void 0===s?"undefined":ji(s)))return;t=t[s]}return t}},{key:"has",value:function(e){for(var t=Ai(this,qi),r=0;t&&r<e.length;r++){var s=e[r];if(!Ri.call(t,s)||!Ai(this,Bi).includeSymbols&&"symbol"===(void 0===s?"undefined":ji(s)))return!1;t=t[s]}return!0}},{key:"set",value:function(e,t){var r=Ai(this,qi),s=0;for(s=0;s<e.length-1;s++){var n=e[s];Ri.call(r,n)||(r[n]={}),r=r[n]}return r[e[s]]=t,t}},{key:"map",value:function(e){return Ji(Ai(this,qi),e,{immutable:!0,includeSymbols:!!Ai(this,Bi).includeSymbols})}},{key:"forEach",value:function(e){return $i(this,qi,Ji(Ai(this,qi),e,Ai(this,Bi))),Ai(this,qi)}},{key:"reduce",value:function(e,t){var r=1===arguments.length,s=r?Ai(this,qi):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=Ai(this,Bi);return Fi(Ai(this,qi))?Ai(this,qi).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":ji(n))&&null!==n){var o=Li(n,r);e.push(n),t.push(o);var a=r.includeSymbols?Di: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}(Ai(this,qi))}}],r&&wi(t.prototype,r),s&&wi(t,s),e}();qi=new WeakMap,Bi=new WeakMap;var Hi=function(e,t){return new Vi(e,t)};Hi.get=function(e,t,r){return new Vi(e,r).get(t)},Hi.set=function(e,t,r,s){return new Vi(e,s).set(t,r)},Hi.has=function(e,t,r){return new Vi(e,r).has(t)},Hi.map=function(e,t,r){return new Vi(e,r).map(t)},Hi.forEach=function(e,t,r){return new Vi(e,r).forEach(t)},Hi.reduce=function(e,t,r,s){return new Vi(e,s).reduce(t,r)},Hi.paths=function(e,t){return new Vi(e,t).paths()},Hi.nodes=function(e,t){return new Vi(e,t).nodes()},Hi.clone=function(e,t){return new Vi(e,t).clone()};var zi=Hi;const Gi=["properties"],Wi=["properties"],Ki=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Yi=["schema/example","items/example"];function Xi(e){const t=e[e.length-1],r=e[e.length-2],s=e.join("/");return Gi.indexOf(t)>-1&&-1===Wi.indexOf(r)||Ki.indexOf(s)>-1||Yi.some((e=>s.indexOf(e)>-1))}function Qi(e,t){const[r,s]=e.split("#"),n=t??"",i=r??"";let o;if(hi(n))o=vi(n,i);else{const e=vi(f,n),t=vi(e,i).replace(f,"");o=i.startsWith("/")?t:t.substring(1)}return s?`${o}#${s}`:o}const Zi=/^([a-z]+:\/\/|\/\/)/i;class eo extends ts{}const to={},ro=new WeakMap,so=[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]],no={key:"$ref",plugin:(e,t,r,s)=>{const n=s.getInstance(),i=r.slice(0,-1);if(Xi(i)||(e=>so.some((t=>t(e))))(i))return;const{baseDoc:o}=s.getContext(r);if("string"!=typeof e)return new eo("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=lo(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?ao(c,o):null}catch(t){return co(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,s){let n=ro.get(s);n||(n={},ro.set(s,n));const i=function(e){if(0===e.length)return"";return`/${e.map(yo).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=s.contextTree.get([]).baseDoc;if(t===c&&go(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${yo(e)}`,n[l]&&n[l].some((e=>go(e,o)||go(o,e))))));if(u)return!0;return void(n[a]=(n[a]||[]).concat(o))}(l,u,i,s)&&!n.useCircularStructures){const t=Qi(e,u);return e===t?null:Mr.replace(r,t)}if(null==u?(h=mo(l),p=s.get(h),void 0===p&&(p=new eo(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=uo(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw co(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[Mr.remove(r),p];const d=Qi(e,u),m=Mr.replace(i,p,{$$ref:d});if(u&&u!==o)return[m,Mr.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 Mr.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}}},io=Object.assign(no,{docCache:to,absoluteify:ao,clearCache:function(e){void 0!==e?delete to[e]:Object.keys(to).forEach((e=>{delete to[e]}))},JSONRefError:eo,wrapError:co,getDoc:po,split:lo,extractFromDoc:uo,fetchJSON:function(e){return fetch(e,{headers:{Accept:m},loadSpec:!0}).then((e=>e.text())).then((e=>Kt.load(e)))},extract:ho,jsonPointerToArray:mo,unescapeJsonPointerToken:fo}),oo=io;function ao(e,t){if(!Zi.test(e)){if(!t)throw new eo(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return vi(t,e)}return e}function co(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new eo(`Could not resolve reference: ${r}`,{...t,cause:e})}function lo(e){return(e+"").split("#")}function uo(e,t){const r=to[e];if(r&&!Mr.isPromise(r))try{const e=ho(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return po(e).then((e=>ho(t,e)))}function po(e){const t=to[e];return t?Mr.isPromise(t)?t:Promise.resolve(t):(to[e]=io.fetchJSON(e).then((t=>(to[e]=t,t))),to[e])}function ho(e,t){const r=mo(e);if(r.length<1)return t;const s=Mr.getIn(t,r);if(void 0===s)throw new eo(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return s}function mo(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(fo)}function fo(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function yo(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const vo=e=>!e||"/"===e||"#"===e;function go(e,t){if(vo(t))return!0;const r=e.charAt(t.length),s=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==s}const bo={key:"allOf",plugin:(e,t,r,s,n)=>{if(n.meta&&n.meta.$$ref)return;const i=r.slice(0,-1);if(Xi(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 zi(e).forEach((function(){if(n.includes(this.key)&&"string"==typeof this.node){const e=this.path,n=t.concat(this.path),o=Qi(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}},xo={key:"parameters",plugin:(e,t,r,s)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),n=r.slice(0,-1),i={...Mr.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 Mr.replace(r,t)}return Mr.replace(r,e)}},wo={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 Mr.replace(r,n)}};class Eo{constructor(e){this.root=So(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void jo(this.root,t,null);const s=e[e.length-1],{children:n}=r;n[s]?jo(n[s],t,r):n[s]=So(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]=So(null,e)),s[r]}),this.root)}}function So(e,t){return jo({children:{}},e,t)}function jo(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]=jo(r,r.value,e)})),e}const Oo=()=>{};class Po{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 Eo,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),Mr,{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(Mr.isFunction),this.patches.push(Mr.add([],this.spec)),this.patches.push(Mr.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]):Mr.isFunction(e)?s=e:Mr.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(Mr.isAdditiveMutation).entries()){if(!(e<3e3))return;yield*o(t.value,t.path,t)}function*o(s,a,c){if(Mr.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=Mr.isObject(u),f=s.$$ref;if(d||m&&(n.allowMetaPatches&&f&&(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:Mr.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){Mr.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!Mr.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),Mr.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(Mr.isContextPatch(e))return void this.setContext(e.path,e.value);Mr.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=Mr.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 Mr.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(Oo,Oo)))).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=Mr.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Ao={refs:oo,allOf:bo,parameters:xo,properties:wo};async function ko(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=er(e),d=tr(e),m=p.find((e=>e.match(t)));return async function(e){h&&(Ao.refs.docCache[h]=e);Ao.refs.fetchJSON=Zt(d,{requestInterceptor:a,responseInterceptor:c});const t=[Ao.refs];"function"==typeof o&&t.push(Ao.parameters);"function"==typeof i&&t.push(Ao.properties);"strict"!==r&&t.push(Ao.allOf);const p=await(f={spec:e,context:{baseDoc:h},plugins:t,allowMetaPatches:s,pathDiscriminator:n,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Po(f).dispatch());var f;l||(p.spec=m.normalize(p.spec));return p}(t)}const $o=e=>e.replace(/\W/gi,"_");function To(e,t,r="",{v2OperationIdCompatibilityMode:s}={}){if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?$o(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()}${$o(e)}`}(t,r,{v2OperationIdCompatibilityMode:s})}function Fo(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=To(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(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}const Co={name:"generic",match:()=>!0,normalize(e){const{spec:t}=Fo({spec:e});return t},resolve:async e=>ko(e)};const Io=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},_o=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Mo=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Ro=e=>_o(e)||Mo(e),Do={name:"openapi-2",match:e=>Io(e),normalize(e){const{spec:t}=Fo({spec:e});return t},resolve:async e=>async function(e){return ko(e)}(e)};const No={name:"openapi-3-0",match:e=>_o(e),normalize(e){const{spec:t}=Fo({spec:e});return t},resolve:async e=>async function(e){return ko(e)}(e)},Lo=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:s}=e,n=er(e),i=tr(e),o=t||await Zt(i,{requestInterceptor:r,responseInterceptor:s})(n),a={...e,spec:o};return e.strategies.find((e=>e.match(o))).resolve(a)})({...e,...t}),qo=Lo({strategies:[No,Do,Co]}),Bo=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 qo({spec:h,...p,allowMetaPatches:!0,skipNormalization:!Mo(e)});return!s&&Array.isArray(t)&&t.length&&(d.spec=t.reduce(((e,t)=>e?.[t]),d.spec)||null),d})(t,r,{...e,...s});Bo({strategies:[No,Do,Co]});const Uo=is((function(e,t){return e&&t}));const Jo=is((function(e,t){return xn(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Dn(Uo)(e,t)}));const Vo=ks(null);const Ho=Nn(Vo);function zo(e){return zo="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},zo(e)}const Go=function(e){return"object"===zo(e)};const Wo=gn(1,Jo(Ho,Go));var Ko=hn(Os,Gn("Object")),Yo=hn(zs,ks(zs(Object))),Xo=ps(Jo(Yn,Yo),["constructor"]);const Qo=gn(1,(function(e){if(!Wo(e)||!Ko(e))return!1;var t=Object.getPrototypeOf(e);return!!Vo(t)||Xo(t)}));var Zo=r(4035);function ea(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var ta=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Ls,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=ea(this.xf["@@transducer/step"](e,!1))),e},e}();function ra(e){return function(t){return new ta(e,t)}}const sa=is(Ds(["all"],ra,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class na extends Zo.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 ia=na;class oa extends Zo.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const aa=oa;class ca extends Zo.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(Bn(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const la=ca;class ua extends Zo.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new Zo.wE([e.start.row,e.start.column,e.start.char]),r=new Zo.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}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 Zo.wE)&&t.classes.includes(e),ya=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,va=e=>e({hasMethod:ha,hasBasicElementProps:da,primitiveEq:ma,isElementType:ya,hasClass:fa}),ga=va((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.Hg||e(r)&&t(void 0,r))),ba=va((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.Om||e(r)&&t("string",r))),xa=va((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.kT||e(r)&&t("number",r))),wa=va((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.Os||e(r)&&t("null",r))),Ea=va((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Zo.bd||e(r)&&t("boolean",r))),Sa=va((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Zo.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),ja=va((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Zo.wE&&!(s instanceof Zo.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Oa=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo.Pr||e(s)&&t("member",s)&&r(void 0,s))),Pa=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo.Ft||e(s)&&t("link",s)&&r(void 0,s))),Aa=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo.sI||e(s)&&t("ref",s)&&r(void 0,s))),ka=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ia||e(s)&&t("annotation",s)&&r("array",s))),$a=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof aa||e(s)&&t("comment",s)&&r("string",s))),Ta=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof la||e(s)&&t("parseResult",s)&&r("array",s))),Fa=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pa||e(s)&&t("sourceMap",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),Ia=e=>Fa(e.meta.get("sourceMap")),_a=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!ja(r)&&sa(kn(r.toValue()),e)},Ma=(e,t)=>0===e.length||sa(kn(t.classes.toValue()),e);const Ra=function(){return!0};const Da=function(){return!1},Na=(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},La={},qa=e=>null==e?void 0:e.type,Ba=e=>"string"==typeof qa(e),Ua=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ja=(e,{visitFnGetter:t=Na,nodeTypeGetter:r=qa,breakSymbol:s=La,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 v={...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,v);if("function"==typeof(null==t?void 0:t.then))throw new ts("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 ts("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)}}};Ja[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=Na,nodeTypeGetter:r=qa,breakSymbol:s=La,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 v={...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,v);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 Va=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=La,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Na,nodeTypeGetter:c=qa,nodePredicate:l=Ba,nodeCloneFn:u=Ua,detectCycles:p=!0}={})=>{const h=r||{};let d,m,f=Array.isArray(e),y=[e],v=-1,g=[],b=e;const x=[],w=[];do{v+=1;const e=v===y.length;let r;const j=e&&0!==g.length;if(e){if(r=0===w.length?void 0:x.pop(),b=m,m=w.pop(),j)if(f){b=b.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of g)b[e]=t}v=d.index,y=d.keys,g=d.edits,f=d.inArray,d=d.prev}else if(m!==i&&void 0!==m){if(r=f?v:y[v],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){var E;if(!l(b))throw new ts(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,m,x,w):m&&(m[r]=t),e||(b=t)}};O=i.call(t,b,r,m,x,w,n)}if("function"==typeof(null===(E=O)||void 0===E?void 0:E.then))throw new ts("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(g.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var S;if(void 0===O&&j&&g.push([r,b]),!e)d={inArray:f,index:v,keys:y,edits:g,prev:d},f=Array.isArray(b),y=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],v=-1,g=[],m!==i&&void 0!==m&&w.push(m),m=b}while(void 0!==d);return 0!==g.length?g[g.length-1][1]:e};Va[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=La,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Na,nodeTypeGetter:c=qa,nodePredicate:l=Ba,nodeCloneFn:u=Ua,detectCycles:p=!0}={})=>{const h=r||{};let d,m,f=Array.isArray(e),y=[e],v=-1,g=[],b=e;const x=[],w=[];do{v+=1;const e=v===y.length;let r;const S=e&&0!==g.length;if(e){if(r=0===w.length?void 0:x.pop(),b=m,m=w.pop(),S)if(f){b=b.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(b.splice(s,1),e+=1):b[s]=r}}else{b=u(b);for(const[e,t]of g)b[e]=t}v=d.index,y=d.keys,g=d.edits,f=d.inArray,d=d.prev}else if(m!==i&&void 0!==m){if(r=f?v:y[v],b=m[r],b===i||void 0===b)continue;x.push(r)}let j;if(!Array.isArray(b)){if(!l(b))throw new ts(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;const n={replaceWith(t,s){"function"==typeof s?s(t,b,r,m,x,w):m&&(m[r]=t),e||(b=t)}};j=await i.call(t,b,r,m,x,w,n)}if(j===n)break;if(j===o){if(!e){x.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!l(j)){x.pop();continue}b=j}}var E;if(void 0===j&&S&&g.push([r,b]),!e)d={inArray:f,index:v,keys:y,edits:g,prev:d},f=Array.isArray(b),y=f?b:null!==(E=h[c(b)])&&void 0!==E?E:[],v=-1,g=[],m!==i&&void 0!==m&&w.push(m),m=b}while(void 0!==d);return 0!==g.length?g[g.length-1][1]:e};const Ha=class extends ts{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const za=class extends Ha{};const Ga=class extends Ha{},Wa=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Zo.KeyValuePair){const{key:t,value:n}=e,i=ga(t)?Wa(t,s):t,o=ga(n)?Wa(n,s):n,a=new Zo.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof Zo.ot){const t=e=>Wa(e,s),n=[...e].map(t),i=new Zo.ot(n);return r.set(e,i),i}if(e instanceof Zo.G6){const t=e=>Wa(e,s),n=[...e].map(t),i=new Zo.G6(n);return r.set(e,i),i}if(ga(e)){const t=Xa(e);if(r.set(e,t),e.content)if(ga(e.content))t.content=Wa(e.content,s);else if(e.content instanceof Zo.KeyValuePair)t.content=Wa(e.content,s);else if(Array.isArray(e.content)){const r=e=>Wa(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new za("Value provided to cloneDeep function couldn't be cloned",{value:e})};Wa.safe=e=>{try{return Wa(e)}catch{return e}};const Ka=e=>{const{key:t,value:r}=e;return new Zo.KeyValuePair(t,r)},Ya=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Wa(e.meta)),e.attributes.length>0&&(t._attributes=Wa(e.attributes)),ga(e.content)){const r=e.content;t.content=Ya(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Zo.KeyValuePair?t.content=Ka(e.content):t.content=e.content;return t},Xa=e=>{if(e instanceof Zo.KeyValuePair)return Ka(e);if(e instanceof Zo.ot)return(e=>{const t=[...e];return new Zo.ot(t)})(e);if(e instanceof Zo.G6)return(e=>{const t=[...e];return new Zo.G6(t)})(e);if(ga(e))return Ya(e);throw new Ga("Value provided to cloneShallow function couldn't be cloned",{value:e})};Xa.safe=e=>{try{return Xa(e)}catch{return e}};const Qa=e=>Sa(e)?"ObjectElement":ja(e)?"ArrayElement":Oa(e)?"MemberElement":ba(e)?"StringElement":Ea(e)?"BooleanElement":xa(e)?"NumberElement":wa(e)?"NullElement":Pa(e)?"LinkElement":Aa(e)?"RefElement":void 0,Za=e=>ga(e)?Xa(e):Ua(e),ec=hn(Qa,ti),tc={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class rc{result;predicate;returnOnTrue;returnOnFalse;constructor({predicate:e=Da,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 sc=(e,t,{keyMap:r=tc,...s}={})=>Va(e,t,{keyMap:r,nodeTypeGetter:Qa,nodePredicate:ec,nodeCloneFn:Za,...s});sc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=tc,...s}={})=>Va[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Qa,nodePredicate:ec,nodeCloneFn:Za,...s});const nc=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Qa(e),ic={EphemeralObject:["content"],EphemeralArray:["content"],...tc},oc=(e,t,{keyMap:r=ic,...s}={})=>sc(e,t,{keyMap:r,nodeTypeGetter:nc,nodePredicate:Ra,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});oc[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ic,...r}={})=>sc[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:nc,nodePredicate:Ra,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const ac=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 cc=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 lc{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new cc(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 ac(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 uc=e=>ga(e)?ba(e)||xa(e)||Ea(e)||wa(e)?e.toValue():oc(e,new lc):e;const pc=os((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})fs(s,t)&&(n[s]=fs(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)fs(s,r)&&!fs(s,n)&&(n[s]=r[s]);return n}));const hc=os((function e(t,r,s){return pc((function(r,s,n){return Ns(s)&&Ns(n)?e(t,s,n):t(r,s,n)}),r,s)}));const dc=is((function(e,t){return hc((function(e,t,r){return r}),e,t)}));const mc=is(us);const fc=un(0,-1);const yc=is((function(e,t){return e.apply(this,t)}));const vc=Nn(Yn);var gc=ns((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():Rs(e)?[]:cs(e)?"":Ns(e)?{}:gs(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 bc=gc;const xc=ns((function(e){return null!=e&&ks(e,bc(e))}));const wc=gn(1,Yn(Array.isArray)?Array.isArray:hn(Os,Gn("Array")));const Ec=Jo(wc,xc);var Sc=gn(3,(function(e,t,r){var s=mc(e,r),n=mc(fc(e),r);if(!vc(s)&&!Ec(e)){var i=tn(s,n);return yc(i,t)}}));const jc=Sc;class Oc extends Zo.g${constructor(){super(),this.register("annotation",ia),this.register("comment",aa),this.register("parseResult",la),this.register("sourceMap",pa)}}const Pc=new Oc,Ac=e=>{const t=new Oc;return Qo(e)&&t.use(e),t},kc=Pc,$c=()=>({predicates:{...i},namespace:kc}),Tc={toolboxCreator:$c,visitorOptions:{nodeTypeGetter:Qa,exposeEdits:!0}},Fc=(e,t,r={})=>{if(0===t.length)return e;const s=dc(Tc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ja(a.map(fn({},"visitor")),{...i});a.forEach(jc(["pre"],[]));const l=sc(e,c,i);return a.forEach(jc(["post"],[])),l};Fc[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const s=dc(Tc,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=Ja[Symbol.for("nodejs.util.promisify.custom")],l=sc[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(fn({},"visitor")),{...i});await Promise.allSettled(a.map(jc(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(a.map(jc(["post"],[]))),p};const Cc=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return ga(e)&&(e.meta.length>0&&(s.meta=Wa(e.meta)),e.attributes.length>0&&(s.attributes=Wa(e.attributes))),Fc(s,r,{toolboxCreator:$c,visitorOptions:{nodeTypeGetter:Qa}})},Ic=e=>(t,r={})=>Cc(t,{...r,Type:e});Zo.Sh.refract=Ic(Zo.Sh),Zo.wE.refract=Ic(Zo.wE),Zo.Om.refract=Ic(Zo.Om),Zo.bd.refract=Ic(Zo.bd),Zo.Os.refract=Ic(Zo.Os),Zo.kT.refract=Ic(Zo.kT),Zo.Ft.refract=Ic(Zo.Ft),Zo.sI.refract=Ic(Zo.sI),ia.refract=Ic(ia),aa.refract=Ic(aa),la.refract=Ic(la),pa.refract=Ic(pa);const _c=(e,t=new WeakMap)=>(Oa(e)?(t.set(e.key,e),_c(e.key,t),t.set(e.value,e),_c(e.value,t)):e.children.forEach((r=>{t.set(r,e),_c(r,t)})),t);const Mc=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:_c(this.element);const s=this.edges.get(e);return Bn(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)}},Rc=hn(Qn(/~/g,"~0"),Qn(/\//g,"~1"),encodeURIComponent);const Dc=class extends ts{};const Nc=class extends Dc{tokens;constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},Lc=e=>{try{return 0===e.length?"":`/${e.map(Rc).join("/")}`}catch(t){throw new Nc("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var qc=is((function(e,t){return gn(cn(Jn,0,Vn("length",t)),(function(){var r=arguments,s=this;return e.apply(s,Ts((function(e){return e.apply(s,r)}),t))}))}));const Bc=qc;function Uc(e){return e}const Jc=ns(Uc);var Vc=Jo(gn(1,hn(Os,Gn("Number"))),isFinite);var Hc=gn(1,Vc);var zc=Jo(Yn(Number.isFinite)?gn(1,tn(Number.isFinite,Number)):Hc,Bc(ks,[Math.floor,Jc]));var Gc=gn(1,zc);const Wc=Yn(Number.isInteger)?gn(1,tn(Number.isInteger,Number)):Gc;var Kc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Ls,e.prototype["@@transducer/result"]=qs,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?ea(r):r},e}();function Yc(e){return function(t){return new Kc(e,t)}}const Xc=is(Ds(["take"],Yc,(function(e,t){return un(0,e<0?1/0:e,t)})));const Qc=is((function(e,t){return ks(Xc(e.length,t),e)}));const Zc=ks("");var el=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ls,e.prototype["@@transducer/result"]=qs,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 tl(e){return function(t){return new el(e,t)}}const rl=is(Ds(["dropWhile"],tl,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return un(r,1/0,t)})));const sl=bn((function(e,t){return hn(En(""),rl(kn(e)),An(""))(t)})),nl=hn(Qn(/~1/g,"/"),Qn(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const il=class extends Dc{pointer;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},ol=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return sl("#",t)},al=e=>{if(Zc(e))return[];if(!Qc("/",e))throw new il(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=hn(En("/"),_n(nl))(e);return pn(t)}catch(t){throw new il(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const cl=class extends Dc{pointer;tokens;failedToken;failedTokenPosition;element;constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},ll=(e,t)=>{let r;try{r=al(e)}catch(r){throw new cl(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Wa(t),cause:r})}return r.reduce(((t,s,n)=>{if(Sa(t)){if(!t.hasKey(s))throw new cl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Wa(t)});return t.get(s)}if(ja(t)){if(!(s in t.content)||!Wc(Number(s)))throw new cl(`JSON Pointer evaluation failed while evaluating token "${s}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Wa(t)});return t.get(Number(s))}throw new cl(`JSON Pointer evaluation failed while evaluating token "${s}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:s,failedTokenPosition:n,element:Wa(t)})}),t)};class ul extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const pl=ul;class hl extends Zo.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 dl=hl;class ml extends Zo.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 fl=ml;class yl extends Zo.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 vl=yl;class gl extends Zo.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 bl=gl;class xl extends Zo.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 wl=xl;class El extends Zo.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 Sl=El;class jl extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Zo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Zo.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(jl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ol=jl;class Pl extends Zo.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 Al=Pl;class kl extends Zo.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 $l=kl;class Tl extends Zo.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 Fl=Tl;class Cl extends Zo.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 Il=Cl;class _l extends Zo.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 Ml=_l;class Rl extends Zo.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 Dl=Rl;class Nl extends Zo.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ll=Nl;class ql extends Zo.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 Bl=ql;class Ul extends Zo.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 Zo.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 Jl=Ul;class Vl extends Zo.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 Zo.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Zo.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(Vl.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Hl=Vl;class zl extends Zo.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 Gl=zl;class Wl extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Kl=Wl;class Yl extends Zo.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 Xl=Yl;class Ql extends Zo.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 Zo.bd(!1)}set required(e){this.set("required",e)}}const Zl=Ql;class eu extends Zo.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 tu=eu;class ru extends Zo.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 su=ru;const nu=class extends es{};class iu extends Zo.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 ou=iu;class au extends Zo.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 cu=au;class lu extends Zo.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 uu=lu;class pu extends Zo.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 hu=pu;const du=is((function(e,t){return Ms((function(r,s){return r[s]=e(t[s],s,t),r}),{},js(t))}));const mu=ns((function(e){return null==e}));var fu=is((function(e,t){if(0===e.length||mu(t))return!1;for(var r=t,s=0;s<e.length;){if(mu(r)||!fs(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const yu=fu;var vu=is((function(e,t){return yu([e],t)}));const gu=vu;const bu=os((function(e,t,r){return e(mn(t,r))})),xu=(e,t)=>{const r=dn(e,t);return du((e=>{if(Qo(e)&&gu("$ref",e)&&bu(ti,"$ref",e)){const t=mc(["$ref"],e),s=sl("#/",t);return mc(s.split("/"),r)}return Qo(e)?xu(e,r):e}),e)},wu=e=>{const t=e.meta.length>0?Wa(e.meta):void 0,r=e.attributes.length>0?Wa(e.attributes):void 0;return new e.constructor(void 0,t,r)},Eu=(e,t)=>t.clone&&t.isMergeableElement(e)?ju(wu(e),e,t):e,Su={clone:!0,isMergeableElement:e=>Sa(e)||ja(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>Eu(e,r))),objectElementMerge:(e,t,r)=>{const s=Sa(e)?wu(e):wu(t);return Sa(e)&&e.forEach(((e,t,n)=>{const i=Xa(n);i.value=Eu(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=uc(n);let a;if(Sa(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=Xa(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ju;const r=t.customMerge(e,t);return"function"==typeof r?r:ju})(n,r)(s,t)}else a=Xa(i),a.value=Eu(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ju=(e,t,r)=>{var s,n,i;const o={...Su,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:Su.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:Su.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Su.objectElementMerge;const a=ja(t);if(!(a===ja(e)))return Eu(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=>Wa(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Wa(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};ju.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new Zo.Sh:e.reduce(((e,r)=>ju(e,r,t)),wu(e[0]))};const Ou=ju;const Pu=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ou(t.meta,e.meta),Ia(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ou(t.attributes,e.attributes))}};const Au=class extends Pu{enter(e){return this.element=Wa(e),La}},ku=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},$u=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:$u(r,[...t,r])},Tu=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>$u(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=$u(n);for(let t of e){let e=$u(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(ku(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Fu=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Cu=(e,t)=>{const r=t.map((e=>$u(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++}},Iu=(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(Cu(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Cu(s,e)||void 0!==t[s],get:(r,s)=>(Cu(s,e)||t)[s],set(t,r,s){const n=Cu(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)))))}),_u=null,Mu="copy",Ru="copy",Du="deep",Nu=new WeakMap,Lu=e=>Nu.get(e),qu=(e,t)=>{var r,s;const n=Fu([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Fu([...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},Bu=(e,t)=>{var r,s,n,i;return{property:qu(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:qu(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Uu=(e,t)=>{var r,s,n,i,o,a;return{class:Fu([...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:Bu(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:Bu(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ju=new Map,Vu=(...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=[...$u(e.prototype).map((e=>e.constructor)),...null!==(t=Lu(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=>Ju.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Uu(e,t)))},Hu=e=>{let t=Ju.get(e);return t||(t={},Ju.set(e,t)),t};function zu(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=_u;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)ku(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Ru?Tu(n,o):(a=n,c=o,Iu([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Mu?Tu(e,null,["prototype"]):Iu(e,Function.prototype));let l=o;if("none"!==Du){const n="deep"===Du?Vu(...e):((...e)=>{const t=e.map((e=>Hu(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Uu(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)}Gu(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},l),Gu(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},l.prototype)}var u,p;return u=l,p=e,Nu.set(u,p),l}const Gu=(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 Wu=ns((function(e){return gn(cn(Jn,0,Vn("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 Ku=ns((function(e){return!xc(e)}));const Yu=is((function(e,t){return e||t}));var Xu=Nn(gn(1,Jo(Ho,is((function(e,t){return xn(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Dn(Yu)(e,t)}))(Go,Yn))));const Qu=Wu([ti,Xu,Ku]);const Zu=is((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 ep=class extends Pu{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Zu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=mc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ps(Yn,["visitors",...e],this.specObj)?mc(["visitors",...e],this.specObj):mc(["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 Au&&(null==s?void 0:s.constructor)===Au?Wa(t):(sc(t,s,r),s.element)}};const tp=class extends ep{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(uc(s))&&!this.ignoredFields.includes(uc(s))){const r=this.toRefractedElement([...t,"fixedFields",uc(s)],e),i=new Zo.Pr(Wa(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(uc(s))||this.element.content.push(Wa(n))})),this.copyMetaAndAttributes(e,this.element),La}};const rp=class{parent;constructor({parent:e}){this.parent=e}},sp=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ou||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),np=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cu||e(s)&&t("JSONReference",s)&&r("object",s))),ip=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uu||e(s)&&t("media",s)&&r("object",s))),op=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hu||e(s)&&t("linkDescription",s)&&r("object",s)));class ap extends(zu(tp,rp,Au)){constructor(e){super(e),this.element=new ou,this.specPath=Ln(["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,tp.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Bn(this.parent)&&!ba(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(sp(this.parent)&&!ba(e.get("$schema"))){const e=dn(uc(this.parent.meta.get("inheritedDialectIdentifier")),uc(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?Wa(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new Zo.wE,s=uc(e.get(t));Qu(s)&&r.push(s),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const cp=ap,lp=e=>Sa(e)&&e.hasKey("$ref");class up extends(zu(ep,rp,Au)){ObjectElement(e){const t=lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),La}ArrayElement(e){return this.element=new Zo.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const pp=up;const hp=class extends Au{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const dp=class extends ep{specPath;ignoredFields;fieldPatternPredicate=Da;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(uc(t))&&this.fieldPatternPredicate(uc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Zo.Pr(Wa(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(uc(t))||this.element.content.push(Wa(r))})),this.copyMetaAndAttributes(e,this.element),La}};const mp=class extends dp{constructor(e){super(e),this.fieldPatternPredicate=Qu}};class fp extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const yp=fp;class vp extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const gp=vp;class bp extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const xp=bp;const wp=class extends Au{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Ep=class extends Au{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 Sp extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const jp=Sp;class Op extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const Pp=Op;class Ap extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const kp=Ap;class $p extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Tp=$p;class Fp extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.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),La}}const Cp=Fp;class Ip extends(zu(tp,Au)){constructor(e){super(e),this.element=new cu,this.specPath=Ln(["document","objects","JSONReference"])}ObjectElement(e){const t=tp.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const _p=Ip;const Mp=class extends Au{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Rp=os((function(e,t,r){return gn(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const Dp=ns((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var Np=is((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Lp=Np;const qp=ns((function(e){return ls(0,e)}));const Bp=ns(ea);const Up=Nn(mu);const Jp=Jo(wc,Ku);function Vp(e){return function(e){if(Array.isArray(e))return Hp(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 Hp(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)?Hp(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 Hp(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 zp=hn(Lp(Dp((function(e,t){return e.length>t.length}))),qp,mn("length")),Gp=bn((function(e,t,r){var s=r.apply(void 0,Vp(e));return Up(s)?Bp(s):t}));const Wp=Rp(Jp,(function(e){var t=zp(e);return gn(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return cn(Gp(r),void 0,e)}))}),qn);const Kp=class extends ep{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Rp(e,Ln(t),qn))),r=Wp(t)(e);return this.element=this.toRefractedElement(r,e),La}};const Yp=class extends Kp{constructor(e){super(e),this.alternator=[{predicate:lp,specPath:["document","objects","JSONReference"]},{predicate:Ra,specPath:["document","objects","JSONSchema"]}]}};class Xp extends(zu(tp,Au)){constructor(e){super(e),this.element=new uu,this.specPath=Ln(["document","objects","Media"])}}const Qp=Xp;class Zp extends(zu(tp,Au)){constructor(e){super(e),this.element=new hu,this.specPath=Ln(["document","objects","LinkDescription"])}}const eh=Zp,th={visitors:{value:Au,JSONSchemaOrJSONReferenceVisitor:Yp,document:{objects:{JSONSchema:{$visitor:cp,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:Yp,items:pp,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:hp,properties:yp,additionalProperties:Yp,patternProperties:gp,dependencies:xp,enum:wp,type:Ep,allOf:jp,anyOf:Pp,oneOf:kp,not:Yp,definitions:Tp,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Cp,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:_p,fixedFields:{$ref:Mp}},Media:{$visitor:Qp,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:eh,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Yp,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Yp}}}}}},rh=e=>{if(ga(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sh={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...tc},nh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ou),t.register("jSONReference",cu),t.register("media",uu),t.register("linkDescription",hu),t}},ih=()=>{const e=Ac(nh);return{predicates:{...o,isStringElement:ba},namespace:e}},oh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=th}={})=>{const n=(0,Zo.e)(e),i=xu(s),o=new(mc(t,i))({specObj:i});return sc(n,o),Fc(o.element,r,{toolboxCreator:ih,visitorOptions:{keyMap:sh,nodeTypeGetter:rh}})},ah=e=>(t,r={})=>oh(t,{specPath:e,...r});ou.refract=ah(["visitors","document","objects","JSONSchema","$visitor"]),cu.refract=ah(["visitors","document","objects","JSONReference","$visitor"]),uu.refract=ah(["visitors","document","objects","Media","$visitor"]),hu.refract=ah(["visitors","document","objects","LinkDescription","$visitor"]);const ch=class extends ou{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new nu("idProp getter in Schema class is not not supported.")}set idProp(e){throw new nu("idProp setter in Schema class is not not supported.")}get $schema(){throw new nu("$schema getter in Schema class is not not supported.")}set $schema(e){throw new nu("$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 nu("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new nu("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new nu("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new nu("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 nu("definitions getter in Schema class is not not supported.")}set definitions(e){throw new nu("definitions setter in Schema class is not not supported.")}get base(){throw new nu("base getter in Schema class is not not supported.")}set base(e){throw new nu("base setter in Schema class is not not supported.")}get links(){throw new nu("links getter in Schema class is not not supported.")}set links(e){throw new nu("links setter in Schema class is not not supported.")}get media(){throw new nu("media getter in Schema class is not not supported.")}set media(e){throw new nu("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 lh extends Zo.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const uh=lh;class ph extends Zo.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 hh=ph;class dh extends Zo.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 mh=dh;class fh extends Zo.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 yh=fh;class vh extends Zo.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 gh=vh;class bh extends Zo.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 xh=bh;const wh=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ou(t.meta,e.meta),Ia(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ou(t.attributes,e.attributes))}};const Eh=class extends wh{enter(e){return this.element=Wa(e),La}};const Sh=class extends wh{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 Zu(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=mc(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ps(Yn,["visitors",...e],this.specObj)?mc(["visitors",...e],this.specObj):mc(["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 Eh&&(null==s?void 0:s.constructor)===Eh?Wa(t):(sc(t,s,r),s.element)}},jh=e=>Sa(e)&&e.hasKey("$ref"),Oh=Sa,Ph=Sa,Ah=e=>ba(e.key)&&Qc("x-",uc(e.key));const kh=class extends Sh{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Ah;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(uc(s))&&!this.ignoredFields.includes(uc(s))){const r=this.toRefractedElement([...t,"fixedFields",uc(s)],e),i=new Zo.Pr(Wa(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(uc(s))||this.element.content.push(Wa(n))})),this.copyMetaAndAttributes(e,this.element),La}};class $h extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Bl,this.specPath=Ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return kh.prototype.ObjectElement.call(this,e)}}const Th=$h;class Fh extends(zu(Sh,Eh)){StringElement(e){const t=new Ll(uc(e));return this.copyMetaAndAttributes(e,t),this.element=t,La}}const Ch=Fh;const Ih=class extends Sh{MemberElement(e){return this.element=Wa(e),this.element.classes.push("specification-extension"),La}};class _h extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Al,this.specPath=Ln(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Mh=_h;const Rh=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Dh extends(zu(kh,Eh)){constructor(e){super(e),this.element=new fl,this.specPath=Ln(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Nh=Dh;class Lh extends(zu(kh,Eh)){constructor(e){super(e),this.element=new $l,this.specPath=Ln(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const qh=Lh;class Bh extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Fl,this.specPath=Ln(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return(ba(this.element.operationId)||ba(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Uh=Bh;const Jh=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Vh=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Hh=class extends Sh{specPath;ignoredFields;fieldPatternPredicate=Da;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Ah;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(uc(t))&&this.fieldPatternPredicate(uc(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new Zo.Pr(Wa(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(uc(t))||this.element.content.push(Wa(r))})),this.copyMetaAndAttributes(e,this.element),La}};const zh=class extends Hh{constructor(e){super(e),this.fieldPatternPredicate=Qu}};class Gh extends Zo.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Gh.primaryClass)}}const Wh=Gh;class Kh extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Wh,this.specPath=Ln(["value"])}}const Yh=Kh;class Xh extends(zu(kh,Eh)){constructor(e){super(e),this.element=new mh,this.specPath=Ln(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Qh=Xh;const Zh=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class ed extends Zo.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(ed.primaryClass)}}const td=ed;class rd extends(zu(Sh,Eh)){constructor(e){super(e),this.element=new td}ArrayElement(e){return e.forEach((e=>{const t=Oh(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const sd=rd;class nd extends(zu(kh,Eh)){constructor(e){super(e),this.element=new yh,this.specPath=Ln(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const id=nd;class od extends Zo.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(od.primaryClass)}}const ad=od;class cd extends(zu(zh,Eh)){constructor(e){super(e),this.element=new ad,this.specPath=Ln(["document","objects","ServerVariable"])}}const ld=cd;class ud extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Il,this.specPath=Ln(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const pd=ud;const hd=class extends Sh{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Rp(e,Ln(t),qn))),r=Wp(t)(e);return this.element=this.toRefractedElement(r,e),La}},dd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pl||e(s)&&t("callback",s)&&r("object",s))),md=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dl||e(s)&&t("components",s)&&r("object",s))),fd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fl||e(s)&&t("contact",s)&&r("object",s))),yd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wl||e(s)&&t("example",s)&&r("object",s))),vd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Sl||e(s)&&t("externalDocumentation",s)&&r("object",s))),gd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ol||e(s)&&t("header",s)&&r("object",s))),bd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Al||e(s)&&t("info",s)&&r("object",s))),xd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $l||e(s)&&t("license",s)&&r("object",s))),wd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fl||e(s)&&t("link",s)&&r("object",s))),Ed=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ll||e(s)&&t("openapi",s)&&r("string",s))),Sd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Bl||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),jd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jl||e(s)&&t("operation",s)&&r("object",s))),Od=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hl||e(s)&&t("parameter",s)&&r("object",s))),Pd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gl||e(s)&&t("pathItem",s)&&r("object",s))),Ad=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kl||e(s)&&t("paths",s)&&r("object",s))),kd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xl||e(s)&&t("reference",s)&&r("object",s))),$d=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zl||e(s)&&t("requestBody",s)&&r("object",s))),Td=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tu||e(s)&&t("response",s)&&r("object",s))),Fd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof su||e(s)&&t("responses",s)&&r("object",s))),Cd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ch||e(s)&&t("schema",s)&&r("object",s))),Id=e=>Ea(e)&&e.classes.includes("boolean-json-schema"),_d=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uh||e(s)&&t("securityRequirement",s)&&r("object",s))),Md=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hh||e(s)&&t("securityScheme",s)&&r("object",s))),Rd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mh||e(s)&&t("server",s)&&r("object",s))),Dd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yh||e(s)&&t("serverVariable",s)&&r("object",s))),Nd=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Il||e(s)&&t("mediaType",s)&&r("object",s))),Ld=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof td||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class qd extends(zu(hd,Eh)){constructor(e){super(e),this.alternator=[{predicate:jh,specPath:["document","objects","Reference"]},{predicate:Ra,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=hd.prototype.enter.call(this,e);return kd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Bd=qd;class Ud extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("examples"),this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Jd=Ud;class Vd extends Zo.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Vd.primaryClass),this.classes.push("examples")}}const Hd=Vd;const zd=class extends Jd{constructor(e){super(e),this.element=new Hd}};class Gd extends Zo.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Gd.primaryClass)}}const Wd=Gd;class Kd extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Wd,this.specPath=Ln(["document","objects","Encoding"])}}const Yd=Kd;class Xd extends(zu(zh,Eh)){constructor(e){super(e),this.element=new uh,this.specPath=Ln(["value"])}}const Qd=Xd;class Zd extends Zo.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Zd.primaryClass)}}const em=Zd;class tm extends(zu(Sh,Eh)){constructor(e){super(e),this.element=new em}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(Wa(e))})),this.copyMetaAndAttributes(e,this.element),La}}const rm=tm;class sm extends(zu(kh,Eh)){constructor(e){super(e),this.element=new dl,this.specPath=Ln(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const nm=sm;class im extends(zu(kh,Eh)){constructor(e){super(e),this.element=new gh,this.specPath=Ln(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const om=im;class am extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Xl,this.specPath=Ln(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const cm=am;const lm=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class um extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Hl,this.specPath=Ln(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return Sa(this.element.contentProp)&&this.element.contentProp.filter(Nd).forEach(((e,t)=>{e.setMetaProperty("media-type",uc(t))})),t}}const pm=um;class hm extends(zu(hd,Eh)){constructor(e){super(e),this.alternator=[{predicate:jh,specPath:["document","objects","Reference"]},{predicate:Ra,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=hd.prototype.enter.call(this,e);return kd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const dm=hm;class mm extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Ol,this.specPath=Ln(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const fm=mm;class ym extends(zu(hd,Eh)){constructor(e){super(e),this.alternator=[{predicate:jh,specPath:["document","objects","Reference"]},{predicate:Ra,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=hd.prototype.enter.call(this,e);return kd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const vm=ym;class gm extends Zo.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(gm.primaryClass),this.classes.push("examples")}}const bm=gm;const xm=class extends Jd{constructor(e){super(e),this.element=new bm}};class wm extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("content"),this.specPath=Ln(["document","objects","MediaType"])}}const Em=wm;class Sm extends Zo.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(Sm.primaryClass),this.classes.push("content")}}const jm=Sm;const Om=class extends Em{constructor(e){super(e),this.element=new jm}};class Pm extends(zu(kh,Eh)){constructor(e){super(e),this.element=new ch,this.specPath=Ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Am=Pm,km=th.visitors.document.objects.JSONSchema.fixedFields.allOf;const $m=class extends km{ArrayElement(e){const t=km.prototype.ArrayElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Tm=th.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Fm=class extends Tm{ArrayElement(e){const t=Tm.prototype.ArrayElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Cm=th.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Im=class extends Cm{ArrayElement(e){const t=Cm.prototype.ArrayElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},_m=th.visitors.document.objects.JSONSchema.fixedFields.items;const Mm=class extends _m{ObjectElement(e){const t=_m.prototype.ObjectElement.call(this,e);return kd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},Rm=th.visitors.document.objects.JSONSchema.fixedFields.properties;const Dm=class extends Rm{ObjectElement(e){const t=Rm.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Nm=th.visitors.document.objects.JSONSchema.fixedFields.type;const Lm=class extends Nm{ArrayElement(e){return this.enter(e)}},qm=th.visitors.JSONSchemaOrJSONReferenceVisitor;const Bm=class extends qm{ObjectElement(e){const t=qm.prototype.enter.call(this,e);return kd(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Um extends(zu(kh,Eh)){constructor(e){super(e),this.element=new vl,this.specPath=Ln(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Jm=Um;class Vm extends Zo.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Vm.primaryClass)}}const Hm=Vm;class zm extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Hm,this.specPath=Ln(["value"])}}const Gm=zm;class Wm extends(zu(kh,Eh)){constructor(e){super(e),this.element=new xh,this.specPath=Ln(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Km=Wm;class Ym extends Zo.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ym.primaryClass),this.classes.push("examples")}}const Xm=Ym;const Qm=class extends Jd{constructor(e){super(e),this.element=new Xm}};class Zm extends Zo.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Zm.primaryClass),this.classes.push("content")}}const ef=Zm;const tf=class extends Em{constructor(e){super(e),this.element=new ef}};class rf extends Zo.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(rf.primaryClass)}}const sf=rf;class nf extends(zu(zh,Eh)){constructor(e){super(e),this.element=new sf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const of=nf;class af extends Zo.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(af.primaryClass)}}const cf=af;class lf extends(zu(zh,Eh)){constructor(e){super(e),this.element=new cf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Td).forEach(((e,t)=>{e.setMetaProperty("http-status-code",uc(t))})),t}}const uf=lf;class pf extends Zo.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(pf.primaryClass),this.classes.push("parameters")}}const hf=pf;class df extends(zu(zh,Eh)){constructor(e){super(e),this.element=new hf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const mf=df;class ff extends Zo.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ff.primaryClass),this.classes.push("examples")}}const yf=ff;class vf extends(zu(zh,Eh)){constructor(e){super(e),this.element=new yf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const gf=vf;class bf extends Zo.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(bf.primaryClass)}}const xf=bf;class wf extends(zu(zh,Eh)){constructor(e){super(e),this.element=new xf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Ef=wf;class Sf extends Zo.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Sf.primaryClass)}}const jf=Sf;class Of extends(zu(zh,Eh)){constructor(e){super(e),this.element=new jf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(gd).forEach(((e,t)=>{e.setMetaProperty("header-name",uc(t))})),t}}const Pf=Of;class Af extends Zo.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(Af.primaryClass)}}const kf=Af;class $f extends(zu(zh,Eh)){constructor(e){super(e),this.element=new kf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Tf=$f;class Ff extends Zo.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Ff.primaryClass)}}const Cf=Ff;class If extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Cf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const _f=If;class Mf extends Zo.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Mf.primaryClass)}}const Rf=Mf;class Df extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Rf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Nf=Df;class Lf extends(zu(kh,Eh)){constructor(e){super(e),this.element=new wl,this.specPath=Ln(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return ba(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const qf=Lf;const Bf=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Uf extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Sl,this.specPath=Ln(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Jf=Uf;class Vf extends(zu(kh,Eh)){constructor(e){super(e),this.element=new bl,this.specPath=Ln(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return Sa(this.element.headers)&&this.element.headers.filter(gd).forEach(((e,t)=>{e.setMetaProperty("header-name",uc(t))})),t}}const Hf=Vf;class zf extends Zo.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(zf.primaryClass)}}const Gf=zf;class Wf extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Gf,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!gd(e))return;const r=uc(t);e.setMetaProperty("headerName",r)})),t}}const Kf=Wf;class Yf extends(zu(Hh,Eh)){constructor(e){super(e),this.element=new Kl,this.specPath=Ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ra}ObjectElement(e){const t=Hh.prototype.ObjectElement.call(this,e);return this.element.filter(Pd).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Wa(t))})),t}}const Xf=Yf;class Qf extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Zl,this.specPath=Ln(["document","objects","RequestBody"])}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return Sa(this.element.contentProp)&&this.element.contentProp.filter(Nd).forEach(((e,t)=>{e.setMetaProperty("media-type",uc(t))})),t}}const Zf=Qf;class ey extends Zo.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(ey.primaryClass),this.classes.push("content")}}const ty=ey;const ry=class extends Em{constructor(e){super(e),this.element=new ty}};class sy extends(zu(Hh,Eh)){constructor(e){super(e),this.element=new pl,this.specPath=Ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(Pd).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",uc(t))})),t}}const ny=sy;class iy extends(zu(kh,Eh)){constructor(e){super(e),this.element=new tu,this.specPath=Ln(["document","objects","Response"])}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return Sa(this.element.contentProp)&&this.element.contentProp.filter(Nd).forEach(((e,t)=>{e.setMetaProperty("media-type",uc(t))})),Sa(this.element.headers)&&this.element.headers.filter(gd).forEach(((e,t)=>{e.setMetaProperty("header-name",uc(t))})),t}}const oy=iy;class ay extends Zo.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ay.primaryClass)}}const cy=ay;class ly extends(zu(zh,Eh)){constructor(e){super(e),this.element=new cy,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!gd(e))return;const r=uc(t);e.setMetaProperty("header-name",r)})),t}}const uy=ly;class py extends Zo.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(py.primaryClass),this.classes.push("content")}}const hy=py;const dy=class extends Em{constructor(e){super(e),this.element=new hy}};class my extends Zo.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(my.primaryClass)}}const fy=my;class yy extends(zu(zh,Eh)){constructor(e){super(e),this.element=new fy,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const vy=yy;function gy(e){return"[object Number]"===Object.prototype.toString.call(e)}var by=is((function(e,t){if(!gy(e)||!gy(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 xy=by;function wy(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?!!$s(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?!!$s(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const Ey=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!wy(e,!0,this)},e.prototype.has=function(e){return wy(e,!1,this)},e}();var Sy=is((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new Ey,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=Sy;class Oy extends(zu(kh,Hh)){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)],kh.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Hh.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return La}}const Py=Oy;class Ay extends(zu(Py,Eh)){constructor(e){super(e),this.element=new su,this.specPathFixedFields=Ln(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>jh(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${xy(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Py.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Td).forEach(((e,t)=>{const r=Wa(t);this.fieldPatternPredicate(uc(r))&&e.setMetaProperty("http-status-code",r)})),t}}const ky=Ay;class $y extends(zu(hd,Eh)){constructor(e){super(e),this.alternator=[{predicate:jh,specPath:["document","objects","Reference"]},{predicate:Ra,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=hd.prototype.enter.call(this,e);return kd(this.element)?this.element.setMetaProperty("referenced-element","response"):Td(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Ty=$y;class Fy extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Jl,this.specPath=Ln(["document","objects","Operation"])}}const Cy=Fy;class Iy extends Zo.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Iy.primaryClass)}}const _y=Iy;const My=class extends Eh{constructor(e){super(e),this.element=new _y}ArrayElement(e){return this.element=this.element.concat(Wa(e)),La}};class Ry extends Zo.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ry.primaryClass),this.classes.push("parameters")}}const Dy=Ry;class Ny extends(zu(Sh,Eh)){constructor(e){super(e),this.element=new Zo.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=jh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);kd(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const Ly=Ny;const qy=class extends Ly{constructor(e){super(e),this.element=new Dy}};const By=class extends hd{constructor(e){super(e),this.alternator=[{predicate:jh,specPath:["document","objects","Reference"]},{predicate:Ra,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=hd.prototype.enter.call(this,e);return kd(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Uy extends Zo.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Uy.primaryClass)}}const Jy=Uy;class Vy extends(zu(zh,Eh)){specPath;constructor(e){super(e),this.element=new Jy,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kd).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Hy=Vy;class zy extends Zo.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(zy.primaryClass),this.classes.push("security")}}const Gy=zy;class Wy extends(zu(Sh,Eh)){constructor(e){super(e),this.element=new Gy}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),La}}const Ky=Wy;class Yy extends Zo.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Yy.primaryClass),this.classes.push("servers")}}const Xy=Yy;const Qy=class extends sd{constructor(e){super(e),this.element=new Xy}};class Zy extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Gl,this.specPath=Ln(["document","objects","PathItem"])}ObjectElement(e){const t=kh.prototype.ObjectElement.call(this,e);return this.element.filter(jd).forEach(((e,t)=>{const r=Wa(t);r.content=uc(r).toUpperCase(),e.setMetaProperty("http-method",r)})),ba(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ev=Zy;const tv=class extends Eh{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class rv extends Zo.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(rv.primaryClass),this.classes.push("servers")}}const sv=rv;const nv=class extends sd{constructor(e){super(e),this.element=new sv}};class iv extends Zo.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(iv.primaryClass),this.classes.push("parameters")}}const ov=iv;const av=class extends Ly{constructor(e){super(e),this.element=new ov}};class cv extends(zu(kh,Eh)){constructor(e){super(e),this.element=new hh,this.specPath=Ln(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const lv=cv;class uv extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Dl,this.specPath=Ln(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const pv=uv;class hv extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Ml,this.specPath=Ln(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const dv=hv;class mv extends Zo.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(mv.primaryClass)}}const fv=mv;class yv extends(zu(zh,Eh)){constructor(e){super(e),this.element=new fv,this.specPath=Ln(["value"])}}const vv=yv;class gv extends Zo.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(gv.primaryClass)}}const bv=gv;class xv extends(zu(Sh,Eh)){constructor(e){super(e),this.element=new bv}ArrayElement(e){return e.forEach((e=>{const t=Ph(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),La}}const wv=xv,{fixedFields:Ev}=th.visitors.document.objects.JSONSchema,Sv={visitors:{value:Eh,document:{objects:{OpenApi:{$visitor:Th,fixedFields:{openapi:Ch,info:{$ref:"#/visitors/document/objects/Info"},servers:sd,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:rm,tags:wv,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Mh,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:Rh}},Contact:{$visitor:Nh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:qh,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Qh,fixedFields:{url:Zh,description:{$ref:"#/visitors/value"},variables:ld}},ServerVariable:{$visitor:id,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:nm,fixedFields:{schemas:of,responses:uf,parameters:mf,examples:gf,requestBodies:Ef,headers:Pf,securitySchemes:Tf,links:_f,callbacks:Nf}},Paths:{$visitor:Xf},PathItem:{$visitor:ev,fixedFields:{$ref:tv,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:nv,parameters:av}},Operation:{$visitor:Cy,fixedFields:{tags:My,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:qy,requestBody:By,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Hy,deprecated:{$ref:"#/visitors/value"},security:Ky,servers:Qy}},ExternalDocumentation:{$visitor:Jf,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:pm,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:dm,example:{$ref:"#/visitors/value"},examples:Qm,content:tf}},RequestBody:{$visitor:Zf,fixedFields:{description:{$ref:"#/visitors/value"},content:ry,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:pd,fixedFields:{schema:Bd,example:{$ref:"#/visitors/value"},examples:zd,encoding:Yd}},Encoding:{$visitor:Hf,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Kf,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:ky,fixedFields:{default:Ty}},Response:{$visitor:oy,fixedFields:{description:{$ref:"#/visitors/value"},headers:uy,content:dy,links:vy}},Callback:{$visitor:ny},Example:{$visitor:qf,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Bf}},Link:{$visitor:Uh,fixedFields:{operationRef:Jh,operationId:Vh,parameters:Yh,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:fm,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:vm,example:{$ref:"#/visitors/value"},examples:xm,content:Om}},Tag:{$visitor:om,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:cm,fixedFields:{$ref:lm}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Am,fixedFields:{title:Ev.title,multipleOf:Ev.multipleOf,maximum:Ev.maximum,exclusiveMaximum:Ev.exclusiveMaximum,minimum:Ev.minimum,exclusiveMinimum:Ev.exclusiveMinimum,maxLength:Ev.maxLength,minLength:Ev.minLength,pattern:Ev.pattern,maxItems:Ev.maxItems,minItems:Ev.minItems,uniqueItems:Ev.uniqueItems,maxProperties:Ev.maxProperties,minProperties:Ev.minProperties,required:Ev.required,enum:Ev.enum,type:Lm,allOf:$m,anyOf:Fm,oneOf:Im,not:Bm,items:Mm,properties:Dm,additionalProperties:Bm,description:Ev.description,format:Ev.format,default:Ev.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:Jm,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Gm}},XML:{$visitor:Km,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:lv,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:pv,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:dv,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:vv}},SecurityRequirement:{$visitor:Qd}},extension:{$visitor:Ih}}}},jv=e=>{if(ga(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ov={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"],...tc},Pv={namespace:e=>{const{base:t}=e;return t.register("callback",pl),t.register("components",dl),t.register("contact",fl),t.register("discriminator",vl),t.register("encoding",bl),t.register("example",wl),t.register("externalDocumentation",Sl),t.register("header",Ol),t.register("info",Al),t.register("license",$l),t.register("link",Fl),t.register("mediaType",Il),t.register("oAuthFlow",Ml),t.register("oAuthFlows",Dl),t.register("openapi",Ll),t.register("openApi3_0",Bl),t.register("operation",Jl),t.register("parameter",Hl),t.register("pathItem",Gl),t.register("paths",Kl),t.register("reference",Xl),t.register("requestBody",Zl),t.register("response",tu),t.register("responses",su),t.register("schema",ch),t.register("securityRequirement",uh),t.register("securityScheme",hh),t.register("server",mh),t.register("serverVariable",yh),t.register("tag",gh),t.register("xml",xh),t}},Av=()=>{const e=Ac(Pv);return{predicates:{...a,isElement:ga,isStringElement:ba,isArrayElement:ja,isObjectElement:Sa,isMemberElement:Oa,includesClasses:Ma,hasElementSourceMap:Ia},namespace:e}},kv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Zo.e)(e),n=xu(Sv),i=new(mc(t,n))({specObj:n});return sc(s,i),Fc(i.element,r,{toolboxCreator:Av,visitorOptions:{keyMap:Ov,nodeTypeGetter:jv}})},$v=e=>(t,r={})=>kv(t,{specPath:e,...r});pl.refract=$v(["visitors","document","objects","Callback","$visitor"]),dl.refract=$v(["visitors","document","objects","Components","$visitor"]),fl.refract=$v(["visitors","document","objects","Contact","$visitor"]),wl.refract=$v(["visitors","document","objects","Example","$visitor"]),vl.refract=$v(["visitors","document","objects","Discriminator","$visitor"]),bl.refract=$v(["visitors","document","objects","Encoding","$visitor"]),Sl.refract=$v(["visitors","document","objects","ExternalDocumentation","$visitor"]),Ol.refract=$v(["visitors","document","objects","Header","$visitor"]),Al.refract=$v(["visitors","document","objects","Info","$visitor"]),$l.refract=$v(["visitors","document","objects","License","$visitor"]),Fl.refract=$v(["visitors","document","objects","Link","$visitor"]),Il.refract=$v(["visitors","document","objects","MediaType","$visitor"]),Ml.refract=$v(["visitors","document","objects","OAuthFlow","$visitor"]),Dl.refract=$v(["visitors","document","objects","OAuthFlows","$visitor"]),Ll.refract=$v(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Bl.refract=$v(["visitors","document","objects","OpenApi","$visitor"]),Jl.refract=$v(["visitors","document","objects","Operation","$visitor"]),Hl.refract=$v(["visitors","document","objects","Parameter","$visitor"]),Gl.refract=$v(["visitors","document","objects","PathItem","$visitor"]),Kl.refract=$v(["visitors","document","objects","Paths","$visitor"]),Xl.refract=$v(["visitors","document","objects","Reference","$visitor"]),Zl.refract=$v(["visitors","document","objects","RequestBody","$visitor"]),tu.refract=$v(["visitors","document","objects","Response","$visitor"]),su.refract=$v(["visitors","document","objects","Responses","$visitor"]),ch.refract=$v(["visitors","document","objects","Schema","$visitor"]),uh.refract=$v(["visitors","document","objects","SecurityRequirement","$visitor"]),hh.refract=$v(["visitors","document","objects","SecurityScheme","$visitor"]),mh.refract=$v(["visitors","document","objects","Server","$visitor"]),yh.refract=$v(["visitors","document","objects","ServerVariable","$visitor"]),gh.refract=$v(["visitors","document","objects","Tag","$visitor"]),xh.refract=$v(["visitors","document","objects","XML","$visitor"]);const Tv=class extends pl{};const Fv=class extends dl{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Cv=class extends fl{};const Iv=class extends vl{};const _v=class extends bl{};const Mv=class extends wl{};const Rv=class extends Sl{};const Dv=class extends Ol{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Nv=class extends Al{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 Lv extends Zo.Om{static default=new Lv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const qv=Lv;const Bv=class extends $l{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Uv=class extends Fl{};const Jv=class extends Il{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Vv=class extends Ml{};const Hv=class extends Dl{};const zv=class extends Ll{};class Gv extends Zo.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 Wv=Gv;const Kv=class extends Jl{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Yv=class extends Hl{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Xv=class extends Gl{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 Qv=class extends Kl{};class Zv extends Xl{}Object.defineProperty(Zv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Zv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const eg=Zv;const tg=class extends Zl{};const rg=class extends tu{};const sg=class extends su{};const ng=class extends ou{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft6"}get idProp(){throw new nu("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new nu("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 ig=class extends hu{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 nu("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new nu("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 nu("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new nu("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new nu("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new nu("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 og=os((function e(t,r,s){if(0===t.length)return r;var n=t[0];if(t.length>1){var i=!mu(s)&&fs(n,s)&&"object"==typeof s[n]?s[n]:as(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(as(e)&&Rs(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 ag=og;const cg=os((function(e,t,r){var s=Array.prototype.slice.call(r,0);return s.splice(e,t),s}));var lg=os((function(e,t,r){return ag([e],t,r)}));const ug=lg;var pg=is((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(as(e)&&Rs(t))return cg(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(as(e)&&Rs(t))return[].concat(t);var r={};for(var s in t)r[s]=t[s];return r}(s,r):ug(s,e(n,r[s]),r)}}));const hg=pg;const dg=class extends cp{constructor(e){super(e),this.element=new ng}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 mg=class extends pp{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),La}};const fg=class extends Au{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const yg=class extends eh{constructor(e){super(e),this.element=new ig}},vg=hn(ag(["visitors","document","objects","JSONSchema","$visitor"],dg),hg(["visitors","document","objects","JSONSchema","fixedFields","id"]),ag(["visitors","document","objects","JSONSchema","fixedFields","$id"],th.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","contains"],th.visitors.JSONSchemaOrJSONReferenceVisitor),ag(["visitors","document","objects","JSONSchema","fixedFields","items"],mg),ag(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],th.visitors.JSONSchemaOrJSONReferenceVisitor),ag(["visitors","document","objects","JSONSchema","fixedFields","const"],th.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","examples"],fg),ag(["visitors","document","objects","LinkDescription","$visitor"],yg),ag(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],th.visitors.JSONSchemaOrJSONReferenceVisitor),hg(["visitors","document","objects","LinkDescription","fixedFields","schema"]),ag(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],th.visitors.JSONSchemaOrJSONReferenceVisitor),hg(["visitors","document","objects","LinkDescription","fixedFields","method"]),hg(["visitors","document","objects","LinkDescription","fixedFields","encType"]),ag(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],th.visitors.value))(th),gg={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...tc},bg=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ng||e(s)&&t("JSONSchemaDraft6",s)&&r("object",s))),xg=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ig||e(s)&&t("linkDescription",s)&&r("object",s))),wg={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",ng),t.register("jSONReference",cu),t.register("media",uu),t.register("linkDescription",ig),t}},Eg=()=>{const e=Ac(wg);return{predicates:{...c,isStringElement:ba},namespace:e}},Sg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=vg}={})=>{const n=(0,Zo.e)(e),i=xu(s),o=new(mc(t,i))({specObj:i});return sc(n,o),Fc(o.element,r,{toolboxCreator:Eg,visitorOptions:{keyMap:gg,nodeTypeGetter:rh}})},jg=e=>(t,r={})=>Sg(t,{specPath:e,...r});ng.refract=jg(["visitors","document","objects","JSONSchema","$visitor"]),ig.refract=jg(["visitors","document","objects","LinkDescription","$visitor"]);const Og=class extends ng{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 nu('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new nu('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 Pg=class extends ig{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 nu("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new nu("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 nu("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new nu("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 Ag=class extends dg{constructor(e){super(e),this.element=new Og}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const kg=class extends yg{constructor(e){super(e),this.element=new Pg}},$g=hn(ag(["visitors","document","objects","JSONSchema","$visitor"],Ag),ag(["visitors","document","objects","JSONSchema","fixedFields","$comment"],vg.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","if"],vg.visitors.JSONSchemaOrJSONReferenceVisitor),ag(["visitors","document","objects","JSONSchema","fixedFields","then"],vg.visitors.JSONSchemaOrJSONReferenceVisitor),ag(["visitors","document","objects","JSONSchema","fixedFields","else"],vg.visitors.JSONSchemaOrJSONReferenceVisitor),hg(["visitors","document","objects","JSONSchema","fixedFields","media"]),ag(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],vg.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],vg.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],vg.visitors.value),ag(["visitors","document","objects","LinkDescription","$visitor"],kg),ag(["visitors","document","objects","LinkDescription","fixedFields","anchor"],vg.visitors.value),ag(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],vg.visitors.value),hg(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),ag(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],vg.visitors.value),ag(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],vg.visitors.value),ag(["visitors","document","objects","LinkDescription","fixedFields","description"],vg.visitors.value),ag(["visitors","document","objects","LinkDescription","fixedFields","$comment"],vg.visitors.value),ag(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],vg.visitors.JSONSchemaOrJSONReferenceVisitor),hg(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),ag(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],vg.visitors.value))(vg),Tg={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...tc},Fg=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Og||e(s)&&t("JSONSchemaDraft7",s)&&r("object",s))),Cg=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pg||e(s)&&t("linkDescription",s)&&r("object",s))),Ig={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",Og),t.register("jSONReference",cu),t.register("linkDescription",Pg),t}},_g=()=>{const e=Ac(Ig);return{predicates:{...l,isStringElement:ba},namespace:e}},Mg=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=$g}={})=>{const n=(0,Zo.e)(e),i=xu(s),o=new(mc(t,i))({specObj:i});return sc(n,o),Fc(o.element,r,{toolboxCreator:_g,visitorOptions:{keyMap:Tg,nodeTypeGetter:rh}})},Rg=e=>(t,r={})=>Mg(t,{specPath:e,...r});Og.refract=Rg(["visitors","document","objects","JSONSchema","$visitor"]),Pg.refract=Rg(["visitors","document","objects","LinkDescription","$visitor"]);const Dg=class extends Og{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 nu("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new nu("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 nu("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new nu("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 Ng=class extends Pg{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 Lg=class extends Ag{constructor(e){super(e),this.element=new Dg}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=tp.prototype.ObjectElement.call(this,e);return ba(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const qg=class extends Au{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Bg=class extends Au{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ug extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=Ln(["document","objects","JSONSchema"])}}const Jg=Ug;class Vg extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.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),La}}const Hg=Vg;class zg extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.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),La}}const Gg=zg;class Wg extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.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),La}}const Kg=Wg;class Yg extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Ln(["document","objects","JSONSchema"])}}const Xg=Yg;class Qg extends(zu(ep,rp,Au)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),La}ArrayElement(e){return this.element=new Zo.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),La}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),La}}const Zg=Qg;class eb extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-properties"),this.specPath=Ln(["document","objects","JSONSchema"])}}const tb=eb;class rb extends(zu(mp,rp,Au)){constructor(e){super(e),this.element=new Zo.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=Ln(["document","objects","JSONSchema"])}}const sb=rb;const nb=class extends Au{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const ib=class extends kg{constructor(e){super(e),this.element=new Ng}},ob=hn(ag(["visitors","document","objects","JSONSchema","$visitor"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],qg),ag(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],$g.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],$g.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],$g.visitors.value),hg(["visitors","document","objects","JSONReference","$visitor"]),ag(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Bg),hg(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),ag(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Jg),ag(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Hg),ag(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Gg),ag(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Kg),ag(["visitors","document","objects","JSONSchema","fixedFields","not"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","if"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","then"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","else"],Lg),hg(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),ag(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Xg),ag(["visitors","document","objects","JSONSchema","fixedFields","items"],Zg),ag(["visitors","document","objects","JSONSchema","fixedFields","contains"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","properties"],tb),ag(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],sb),ag(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Lg),ag(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],$g.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","minContains"],$g.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],nb),ag(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],$g.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Lg),ag(["visitors","document","objects","LinkDescription","$visitor"],ib),ag(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Lg),ag(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Lg),ag(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Lg),ag(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Lg))($g),ab={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...tc},cb=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dg||e(s)&&t("JSONSchema201909",s)&&r("object",s))),lb=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ng||e(s)&&t("linkDescription",s)&&r("object",s))),ub={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Dg),t.register("linkDescription",Ng),t}},pb=()=>{const e=Ac(ub);return{predicates:{...u,isStringElement:ba},namespace:e}},hb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=ob}={})=>{const n=(0,Zo.e)(e),i=xu(s),o=new(mc(t,i))({specObj:i});return sc(n,o),Fc(o.element,r,{toolboxCreator:pb,visitorOptions:{keyMap:ab,nodeTypeGetter:rh}})},db=e=>(t,r={})=>hb(t,{specPath:e,...r});Dg.refract=db(["visitors","document","objects","JSONSchema","$visitor"]),Ng.refract=db(["visitors","document","objects","LinkDescription","$visitor"]);const mb=class extends Dg{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 nu("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new nu("$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 nu("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new nu("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const fb=class extends Ng{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 yb=class extends Lg{constructor(e){super(e),this.element=new mb}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class vb extends(zu(ep,rp,Au)){constructor(e){super(e),this.element=new Zo.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),La}}const gb=vb;const bb=class extends ib{constructor(e){super(e),this.element=new fb}},xb=hn(ag(["visitors","document","objects","JSONSchema","$visitor"],yb),hg(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),ag(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],ob.visitors.value),hg(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),ag(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],ob.visitors.value),ag(["visitors","document","objects","JSONSchema","fixedFields","not"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","if"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","then"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","else"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],gb),ag(["visitors","document","objects","JSONSchema","fixedFields","items"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","contains"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],yb),hg(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),ag(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],yb),ag(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],yb),ag(["visitors","document","objects","LinkDescription","$visitor"],bb),ag(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],yb),ag(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],yb),ag(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],yb),ag(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],yb))(ob),wb={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...tc},Eb=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mb||e(s)&&t("JSONSchema202012",s)&&r("object",s))),Sb=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fb||e(s)&&t("linkDescription",s)&&r("object",s))),jb={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",mb),t.register("linkDescription",fb),t}},Ob=()=>{const e=Ac(jb);return{predicates:{...p,isStringElement:ba},namespace:e}},Pb=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=xb}={})=>{const n=(0,Zo.e)(e),i=xu(s),o=new(mc(t,i))({specObj:i});return sc(n,o),Fc(o.element,r,{toolboxCreator:Ob,visitorOptions:{keyMap:wb,nodeTypeGetter:rh}})},Ab=e=>(t,r={})=>Pb(t,{specPath:e,...r});mb.refract=Ab(["visitors","document","objects","JSONSchema","$visitor"]),fb.refract=Ab(["visitors","document","objects","LinkDescription","$visitor"]);const kb=class extends mb{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 $b=class extends uh{};const Tb=class extends hh{};const Fb=class extends mh{};const Cb=class extends yh{};const Ib=class extends gh{};const _b=class extends xh{};class Mb extends(zu(kh,Eh)){constructor(e){super(e),this.element=new Wv,this.specPath=Ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,kh.prototype.ObjectElement.call(this,e)}}const Rb=Mb,Db=Sv.visitors.document.objects.Info.$visitor;const Nb=class extends Db{constructor(e){super(e),this.element=new Nv}},Lb=Sv.visitors.document.objects.Contact.$visitor;const qb=class extends Lb{constructor(e){super(e),this.element=new Cv}},Bb=Sv.visitors.document.objects.License.$visitor;const Ub=class extends Bb{constructor(e){super(e),this.element=new Bv}},Jb=Sv.visitors.document.objects.Link.$visitor;const Vb=class extends Jb{constructor(e){super(e),this.element=new Uv}};class Hb extends(zu(Sh,Eh)){StringElement(e){const t=new qv(uc(e));return this.copyMetaAndAttributes(e,t),this.element=t,La}}const zb=Hb,Gb=Sv.visitors.document.objects.Server.$visitor;const Wb=class extends Gb{constructor(e){super(e),this.element=new Fb}},Kb=Sv.visitors.document.objects.ServerVariable.$visitor;const Yb=class extends Kb{constructor(e){super(e),this.element=new Cb}},Xb=Sv.visitors.document.objects.MediaType.$visitor;const Qb=class extends Xb{constructor(e){super(e),this.element=new Jv}},Zb=Sv.visitors.document.objects.SecurityRequirement.$visitor;const ex=class extends Zb{constructor(e){super(e),this.element=new $b}},tx=Sv.visitors.document.objects.Components.$visitor;const rx=class extends tx{constructor(e){super(e),this.element=new Fv}},sx=Sv.visitors.document.objects.Tag.$visitor;const nx=class extends sx{constructor(e){super(e),this.element=new Ib}},ix=Sv.visitors.document.objects.Reference.$visitor;const ox=class extends ix{constructor(e){super(e),this.element=new eg}},ax=Sv.visitors.document.objects.Parameter.$visitor;const cx=class extends ax{constructor(e){super(e),this.element=new Yv}},lx=Sv.visitors.document.objects.Header.$visitor;const ux=class extends lx{constructor(e){super(e),this.element=new Dv}},px=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tv||e(s)&&t("callback",s)&&r("object",s))),hx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fv||e(s)&&t("components",s)&&r("object",s))),dx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cv||e(s)&&t("contact",s)&&r("object",s))),mx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mv||e(s)&&t("example",s)&&r("object",s))),fx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rv||e(s)&&t("externalDocumentation",s)&&r("object",s))),yx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dv||e(s)&&t("header",s)&&r("object",s))),vx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Nv||e(s)&&t("info",s)&&r("object",s))),gx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qv||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),bx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bv||e(s)&&t("license",s)&&r("object",s))),xx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Uv||e(s)&&t("link",s)&&r("object",s))),wx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zv||e(s)&&t("openapi",s)&&r("string",s))),Ex=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Wv||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),Sx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Kv||e(s)&&t("operation",s)&&r("object",s))),jx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Yv||e(s)&&t("parameter",s)&&r("object",s))),Ox=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xv||e(s)&&t("pathItem",s)&&r("object",s))),Px=e=>{if(!Ox(e))return!1;if(!ba(e.$ref))return!1;const t=uc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Ax=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qv||e(s)&&t("paths",s)&&r("object",s))),kx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof eg||e(s)&&t("reference",s)&&r("object",s))),$x=e=>{if(!kx(e))return!1;if(!ba(e.$ref))return!1;const t=uc(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Tx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tg||e(s)&&t("requestBody",s)&&r("object",s))),Fx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rg||e(s)&&t("response",s)&&r("object",s))),Cx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sg||e(s)&&t("responses",s)&&r("object",s))),Ix=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kb||e(s)&&t("schema",s)&&r("object",s))),_x=e=>Ea(e)&&e.classes.includes("boolean-json-schema"),Mx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $b||e(s)&&t("securityRequirement",s)&&r("object",s))),Rx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tb||e(s)&&t("securityScheme",s)&&r("object",s))),Dx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Fb||e(s)&&t("server",s)&&r("object",s))),Nx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cb||e(s)&&t("serverVariable",s)&&r("object",s))),Lx=va((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jv||e(s)&&t("mediaType",s)&&r("object",s)));class qx extends(zu(kh,rp,Eh)){constructor(e){super(e),this.element=new kb,this.specPath=Ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=qv.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=kh.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 yb.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&gx(this.openApiSemanticElement.jsonSchemaDialect)?uc(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&ba(this.openApiGenericElement.get("jsonSchemaDialect"))?uc(this.openApiGenericElement.get("jsonSchemaDialect")):uc(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return yb.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return yb.prototype.handleSchemaIdentifier.call(this,e)}}const Bx=qx;const Ux=class extends Jg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Jx=class extends Hg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Vx=class extends Gg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Hx=class extends Kg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const zx=class extends Xg{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Gx=class extends gb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Wx=class extends tb{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Kx=class extends sb{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Yx=Sv.visitors.document.objects.Discriminator.$visitor;const Xx=class extends Yx{constructor(e){super(e),this.element=new Iv,this.canSupportSpecificationExtensions=!0}},Qx=Sv.visitors.document.objects.XML.$visitor;const Zx=class extends Qx{constructor(e){super(e),this.element=new _b}};class ew extends(zu(zh,Eh)){constructor(e){super(e),this.element=new sf,this.specPath=Ln(["document","objects","Schema"])}}const tw=ew;class rw extends Zo.Sh{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(rw.primaryClass)}}const sw=rw;class nw extends(zu(zh,Eh)){constructor(e){super(e),this.element=new sw,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const iw=nw,ow=Sv.visitors.document.objects.Example.$visitor;const aw=class extends ow{constructor(e){super(e),this.element=new Mv}},cw=Sv.visitors.document.objects.ExternalDocumentation.$visitor;const lw=class extends cw{constructor(e){super(e),this.element=new Rv}},uw=Sv.visitors.document.objects.Encoding.$visitor;const pw=class extends uw{constructor(e){super(e),this.element=new _v}},hw=Sv.visitors.document.objects.Paths.$visitor;const dw=class extends hw{constructor(e){super(e),this.element=new Qv}},mw=Sv.visitors.document.objects.RequestBody.$visitor;const fw=class extends mw{constructor(e){super(e),this.element=new tg}},yw=Sv.visitors.document.objects.Callback.$visitor;const vw=class extends yw{constructor(e){super(e),this.element=new Tv,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=yw.prototype.ObjectElement.call(this,e);return this.element.filter(kx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},gw=Sv.visitors.document.objects.Response.$visitor;const bw=class extends gw{constructor(e){super(e),this.element=new rg}},xw=Sv.visitors.document.objects.Responses.$visitor;const ww=class extends xw{constructor(e){super(e),this.element=new sg}},Ew=Sv.visitors.document.objects.Operation.$visitor;const Sw=class extends Ew{constructor(e){super(e),this.element=new Kv}},jw=Sv.visitors.document.objects.PathItem.$visitor;const Ow=class extends jw{constructor(e){super(e),this.element=new Xv}},Pw=Sv.visitors.document.objects.SecurityScheme.$visitor;const Aw=class extends Pw{constructor(e){super(e),this.element=new Tb}},kw=Sv.visitors.document.objects.OAuthFlows.$visitor;const $w=class extends kw{constructor(e){super(e),this.element=new Hv}},Tw=Sv.visitors.document.objects.OAuthFlow.$visitor;const Fw=class extends Tw{constructor(e){super(e),this.element=new Vv}};class Cw extends Zo.Sh{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(Cw.primaryClass)}}const Iw=Cw;class _w extends(zu(zh,Eh)){constructor(e){super(e),this.element=new Iw,this.specPath=e=>jh(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=zh.prototype.ObjectElement.call(this,e);return this.element.filter(kx).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Ox).forEach(((e,t)=>{e.setMetaProperty("webhook-name",uc(t))})),t}}const Mw=_w,{JSONSchema:Rw,LinkDescription:Dw}=xb.visitors.document.objects,Nw={visitors:{value:Sv.visitors.value,document:{objects:{OpenApi:{$visitor:Rb,fixedFields:{openapi:Sv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:zb,servers:Sv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Mw,components:{$ref:"#/visitors/document/objects/Components"},security:Sv.visitors.document.objects.OpenApi.fixedFields.security,tags:Sv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Nb,fixedFields:{title:Sv.visitors.document.objects.Info.fixedFields.title,description:Sv.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Sv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Sv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:qb,fixedFields:{name:Sv.visitors.document.objects.Contact.fixedFields.name,url:Sv.visitors.document.objects.Contact.fixedFields.url,email:Sv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Ub,fixedFields:{name:Sv.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Sv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Wb,fixedFields:{url:Sv.visitors.document.objects.Server.fixedFields.url,description:Sv.visitors.document.objects.Server.fixedFields.description,variables:Sv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Yb,fixedFields:{enum:Sv.visitors.document.objects.ServerVariable.fixedFields.enum,default:Sv.visitors.document.objects.ServerVariable.fixedFields.default,description:Sv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:rx,fixedFields:{schemas:tw,responses:Sv.visitors.document.objects.Components.fixedFields.responses,parameters:Sv.visitors.document.objects.Components.fixedFields.parameters,examples:Sv.visitors.document.objects.Components.fixedFields.examples,requestBodies:Sv.visitors.document.objects.Components.fixedFields.requestBodies,headers:Sv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Sv.visitors.document.objects.Components.fixedFields.securitySchemes,links:Sv.visitors.document.objects.Components.fixedFields.links,callbacks:Sv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:iw}},Paths:{$visitor:dw},PathItem:{$visitor:Ow,fixedFields:{$ref:Sv.visitors.document.objects.PathItem.fixedFields.$ref,summary:Sv.visitors.document.objects.PathItem.fixedFields.summary,description:Sv.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:Sv.visitors.document.objects.PathItem.fixedFields.servers,parameters:Sv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Sw,fixedFields:{tags:Sv.visitors.document.objects.Operation.fixedFields.tags,summary:Sv.visitors.document.objects.Operation.fixedFields.summary,description:Sv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Sv.visitors.document.objects.Operation.fixedFields.operationId,parameters:Sv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Sv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Sv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Sv.visitors.document.objects.Operation.fixedFields.deprecated,security:Sv.visitors.document.objects.Operation.fixedFields.security,servers:Sv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:lw,fixedFields:{description:Sv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Sv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:cx,fixedFields:{name:Sv.visitors.document.objects.Parameter.fixedFields.name,in:Sv.visitors.document.objects.Parameter.fixedFields.in,description:Sv.visitors.document.objects.Parameter.fixedFields.description,required:Sv.visitors.document.objects.Parameter.fixedFields.required,deprecated:Sv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Sv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Sv.visitors.document.objects.Parameter.fixedFields.style,explode:Sv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Sv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Sv.visitors.document.objects.Parameter.fixedFields.example,examples:Sv.visitors.document.objects.Parameter.fixedFields.examples,content:Sv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:fw,fixedFields:{description:Sv.visitors.document.objects.RequestBody.fixedFields.description,content:Sv.visitors.document.objects.RequestBody.fixedFields.content,required:Sv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Qb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Sv.visitors.document.objects.MediaType.fixedFields.example,examples:Sv.visitors.document.objects.MediaType.fixedFields.examples,encoding:Sv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:pw,fixedFields:{contentType:Sv.visitors.document.objects.Encoding.fixedFields.contentType,headers:Sv.visitors.document.objects.Encoding.fixedFields.headers,style:Sv.visitors.document.objects.Encoding.fixedFields.style,explode:Sv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Sv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:ww,fixedFields:{default:Sv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:bw,fixedFields:{description:Sv.visitors.document.objects.Response.fixedFields.description,headers:Sv.visitors.document.objects.Response.fixedFields.headers,content:Sv.visitors.document.objects.Response.fixedFields.content,links:Sv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:vw},Example:{$visitor:aw,fixedFields:{summary:Sv.visitors.document.objects.Example.fixedFields.summary,description:Sv.visitors.document.objects.Example.fixedFields.description,value:Sv.visitors.document.objects.Example.fixedFields.value,externalValue:Sv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Vb,fixedFields:{operationRef:Sv.visitors.document.objects.Link.fixedFields.operationRef,operationId:Sv.visitors.document.objects.Link.fixedFields.operationId,parameters:Sv.visitors.document.objects.Link.fixedFields.parameters,requestBody:Sv.visitors.document.objects.Link.fixedFields.requestBody,description:Sv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ux,fixedFields:{description:Sv.visitors.document.objects.Header.fixedFields.description,required:Sv.visitors.document.objects.Header.fixedFields.required,deprecated:Sv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Sv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Sv.visitors.document.objects.Header.fixedFields.style,explode:Sv.visitors.document.objects.Header.fixedFields.explode,allowReserved:Sv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Sv.visitors.document.objects.Header.fixedFields.example,examples:Sv.visitors.document.objects.Header.fixedFields.examples,content:Sv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:nx,fixedFields:{name:Sv.visitors.document.objects.Tag.fixedFields.name,description:Sv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ox,fixedFields:{$ref:Sv.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Dw},Schema:{$visitor:Bx,fixedFields:{...Rw.fixedFields,$defs:Ux,allOf:Jx,anyOf:Vx,oneOf:Hx,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:zx,prefixItems:Gx,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Wx,patternProperties:Kx,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:Xx,fixedFields:{propertyName:Sv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Sv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Zx,fixedFields:{name:Sv.visitors.document.objects.XML.fixedFields.name,namespace:Sv.visitors.document.objects.XML.fixedFields.namespace,prefix:Sv.visitors.document.objects.XML.fixedFields.prefix,attribute:Sv.visitors.document.objects.XML.fixedFields.attribute,wrapped:Sv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Aw,fixedFields:{type:Sv.visitors.document.objects.SecurityScheme.fixedFields.type,description:Sv.visitors.document.objects.SecurityScheme.fixedFields.description,name:Sv.visitors.document.objects.SecurityScheme.fixedFields.name,in:Sv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Sv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Sv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Sv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:$w,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:Fw,fixedFields:{authorizationUrl:Sv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Sv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Sv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Sv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:ex}},extension:{$visitor:Sv.visitors.document.extension.$visitor}}}},Lw=e=>{if(ga(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},qw={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"],...tc},Bw={namespace:e=>{const{base:t}=e;return t.register("callback",Tv),t.register("components",Fv),t.register("contact",Cv),t.register("discriminator",Iv),t.register("encoding",_v),t.register("example",Mv),t.register("externalDocumentation",Rv),t.register("header",Dv),t.register("info",Nv),t.register("jsonSchemaDialect",qv),t.register("license",Bv),t.register("link",Uv),t.register("mediaType",Jv),t.register("oAuthFlow",Vv),t.register("oAuthFlows",Hv),t.register("openapi",zv),t.register("openApi3_1",Wv),t.register("operation",Kv),t.register("parameter",Yv),t.register("pathItem",Xv),t.register("paths",Qv),t.register("reference",eg),t.register("requestBody",tg),t.register("response",rg),t.register("responses",sg),t.register("schema",kb),t.register("securityRequirement",$b),t.register("securityScheme",Tb),t.register("server",Fb),t.register("serverVariable",Cb),t.register("tag",Ib),t.register("xml",_b),t}},Uw=e=>{const t=e.reduce(((t,r,s)=>{if(Oa(r)){const e=String(uc(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 Lc(t)},Jw=()=>{const e=Ac(Bw);return{predicates:{...h,isElement:ga,isStringElement:ba,isArrayElement:ja,isObjectElement:Sa,isMemberElement:Oa,isServersElement:Ld,includesClasses:Ma,hasElementSourceMap:Ia},ancestorLineageToJSONPointer:Uw,namespace:e}},Vw=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Zo.e)(e),n=xu(Nw),i=new(mc(t,n))({specObj:n});return sc(s,i),Fc(i.element,r,{toolboxCreator:Jw,visitorOptions:{keyMap:qw,nodeTypeGetter:Lw}})},Hw=e=>(t,r={})=>Vw(t,{specPath:e,...r});Tv.refract=Hw(["visitors","document","objects","Callback","$visitor"]),Fv.refract=Hw(["visitors","document","objects","Components","$visitor"]),Cv.refract=Hw(["visitors","document","objects","Contact","$visitor"]),Mv.refract=Hw(["visitors","document","objects","Example","$visitor"]),Iv.refract=Hw(["visitors","document","objects","Discriminator","$visitor"]),_v.refract=Hw(["visitors","document","objects","Encoding","$visitor"]),Rv.refract=Hw(["visitors","document","objects","ExternalDocumentation","$visitor"]),Dv.refract=Hw(["visitors","document","objects","Header","$visitor"]),Nv.refract=Hw(["visitors","document","objects","Info","$visitor"]),qv.refract=Hw(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Bv.refract=Hw(["visitors","document","objects","License","$visitor"]),Uv.refract=Hw(["visitors","document","objects","Link","$visitor"]),Jv.refract=Hw(["visitors","document","objects","MediaType","$visitor"]),Vv.refract=Hw(["visitors","document","objects","OAuthFlow","$visitor"]),Hv.refract=Hw(["visitors","document","objects","OAuthFlows","$visitor"]),zv.refract=Hw(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Wv.refract=Hw(["visitors","document","objects","OpenApi","$visitor"]),Kv.refract=Hw(["visitors","document","objects","Operation","$visitor"]),Yv.refract=Hw(["visitors","document","objects","Parameter","$visitor"]),Xv.refract=Hw(["visitors","document","objects","PathItem","$visitor"]),Qv.refract=Hw(["visitors","document","objects","Paths","$visitor"]),eg.refract=Hw(["visitors","document","objects","Reference","$visitor"]),tg.refract=Hw(["visitors","document","objects","RequestBody","$visitor"]),rg.refract=Hw(["visitors","document","objects","Response","$visitor"]),sg.refract=Hw(["visitors","document","objects","Responses","$visitor"]),kb.refract=Hw(["visitors","document","objects","Schema","$visitor"]),$b.refract=Hw(["visitors","document","objects","SecurityRequirement","$visitor"]),Tb.refract=Hw(["visitors","document","objects","SecurityScheme","$visitor"]),Fb.refract=Hw(["visitors","document","objects","Server","$visitor"]),Cb.refract=Hw(["visitors","document","objects","ServerVariable","$visitor"]),Ib.refract=Hw(["visitors","document","objects","Tag","$visitor"]),_b.refract=Hw(["visitors","document","objects","XML","$visitor"]);const zw=class extends nu{};const Gw=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new zw("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new zw("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new zw("latest method in MediaTypes class is not yet implemented.")}};class Ww extends Gw{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 yn(this.filterByFormat(e))}}const Kw=new Ww("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 Yw=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 Xw=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=ti(e)?e:e.uri;return Un(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}},Qw={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:Jc,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}};const Zw=is((function(e,t){return function(r){return function(s){return _n((function(e){return t(e,s)}),r(e(s)))}}}));var eE=function(e){return{value:e,map:function(t){return eE(t(e))}}},tE=os((function(e,t,r){return e((function(e){return eE(t(e))}))(r).value}));const rE=tE,sE=Zw(mc(["resolve","baseURI"]),ag(["resolve","baseURI"])),nE=e=>Zc(e)?yi():e,iE=(e,t)=>{const r=dc(e,t);return rE(sE,nE,r)};const oE=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 ti(this.uri)?ui(this.uri):""}toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(Os(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}};const aE=class extends es{plugin;constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},cE=async(e,t,r)=>{const s=await Promise.all(r.map(jc([e],t)));return r.filter(((e,t)=>s[t]))},lE=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 aE("Error while running plugin",{cause:e,plugin:n})}return Promise.reject(s)};const uE=class extends es{};const pE=class extends uE{},hE=async(e,t)=>{let r=e,s=!1;if(!Ta(e)){const t=Xa(e);t.classes.push("result"),r=new la([t]),s=!0}const n=new oE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await cE("canDereference",[n,t],t.dereference.strategies);if(xc(i))throw new pE(n.uri);try{const{result:e}=await lE("dereference",[n,t],i);return s?e.get(0):e}catch(e){throw new uE(`Error while dereferencing file "${n.uri}"`,{cause:e})}};const dE=class extends es{};const mE=class extends dE{};const fE=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 yE=class extends fE{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 la;if(0!==r.length){const e=new Zo.Om(r);e.classes.push("result"),s.push(e)}return s}catch(t){throw new mE(`Error parsing "${e.uri}"`,{cause:t})}}};const vE=class{name;constructor({name:e}){this.name=e}};const gE=class extends vE{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 pE('"openapi-3-1" dereference strategy is not available.');const s=new Xw,n=iE(t,{resolve:{internal:!1},dereference:{refSet:s}});return await r.dereference(e,n),s}};const bE=class{name;constructor({name:e}){this.name=e}};const xE=class extends bE{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 hi(e.uri)}};const wE=class extends es{};const EE=class extends wE{},{AbortController:SE,AbortSignal:jE}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=SE),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=jE);const OE=class extends xE{swaggerHTTPClient=Qt;swaggerHTTPClientConfig;constructor({swaggerHTTPClient:e=Qt,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 EE(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(n)}}},PE=(e,t=kc)=>{if(ti(e))try{return t.fromRefract(JSON.parse(e))}catch{}return Qo(e)&&gu("element",e)?t.fromRefract(e):t.toElement(e)};const AE=class extends fE{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 mE("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=PE(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new mE(`Error parsing "${e.uri}"`,{cause:t})}}};const kE=class extends fE{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 Kt.load(e.toString(),{schema:Nt}),!0}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new mE("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();try{const e=Kt.load(r,{schema:Nt});if(this.allowEmpty&&void 0===e)return t;const s=PE(e);return s.classes.push("result"),t.push(s),t}catch(t){throw new mE(`Error parsing "${e.uri}"`,{cause:t})}}};const $E=class extends fE{detectionRegExp=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/;constructor(e={}){super({name:"openapi-json-3-1-swagger-client",mediaTypes:new Ww(...Kw.filterByFormat("generic"),...Kw.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 mE("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),s=Wv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new mE(`Error parsing "${e.uri}"`,{cause:t})}}};const TE=class extends fE{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 Ww(...Kw.filterByFormat("generic"),...Kw.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 Kt.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1}async parse(e){if(this.sourceMap)throw new mE("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new la,r=e.toString();try{const e=Kt.load(r,{schema:Nt});if(this.allowEmpty&&void 0===e)return t;const s=Wv.refract(e,this.refractorOpts);return s.classes.push("result"),t.push(s),t}catch(t){throw new mE(`Error parsing "${e.uri}"`,{cause:t})}}};const FE=os((function(e,t,r){return ks(e,mn(t,r))}));const CE=class{name;constructor({name:e}){this.name=e}};const IE=is((function(e,t){return sa(_s(e),t)}));var _E=r(8068);const ME=class extends ts{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};class RE{uuid;identityMap;constructor({length:e=6}={}){this.uuid=new _E({length:e}),this.identityMap=new WeakMap}identify(e){if(!ga(e))throw new ME("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 Zo.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 RE;const DE=os((function(e,t,r){return dn(e,us(t,r))})),NE=(e,t)=>{const r=new rc({predicate:e,returnOnTrue:La});return sc(t,r),DE(void 0,[0],r.result)};const LE=class extends es{};const qE=class extends LE{};const BE=class extends LE{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},UE=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),JE=e=>{const t=mi(e);return sl("#",t)},VE=(e,t)=>{const r=(e=>{if(!UE(e))throw new BE(e);return e})(e),s=NE((e=>Ix(e)&&uc(e.$anchor)===r),t);if(Bn(s))throw new qE(`Evaluation failed on token: "${r}"`);return s},HE=(e,t)=>{const r=new rc({predicate:e});return sc(t,r),new Zo.G6(r.result)};const zE=class extends es{};const GE=class extends zE{},WE=(e,t)=>{if(void 0===t.$ref)return;const r=mi(uc(t.$ref)),s=uc(t.meta.get("ancestorsSchemaIdentifiers"));return`${cn(((e,t)=>vi(e,gi(fi(t)))),e,[...s,uc(t.$ref)])}${"#"===r?"":r}`},KE=e=>{if(KE.cache.has(e))return KE.cache.get(e);const t=kb.refract(e);return KE.cache.set(e,t),t};KE.cache=new WeakMap;const YE=e=>Ca(e)?KE(e):e,XE=(e,t)=>{const{cache:r}=XE,s=fi(e),n=e=>Ix(e)&&void 0!==e.$id;if(!r.has(t)){const e=HE(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=uc(t.meta.get("ancestorsSchemaIdentifiers"));return cn(((e,t)=>vi(e,gi(fi(t)))),e,[...r,uc(t.$id)])})(s,e)===s));if(Bn(i))throw new GE(`Evaluation failed on URI: "${e}"`);let o,a;return UE(JE(e))?(o=VE,a=JE(e)):(o=ll,a=ol(e)),o(a,i)};XE.cache=new WeakMap;const QE=class extends uE{};const ZE=class extends wE{};const eS=class extends EE{},tS=async(e,t)=>{const r=new oE({uri:gi(fi(e)),mediaType:t.parse.mediaType}),s=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),s=await cE("canRead",[e,t],r);if(xc(s))throw new eS(e.uri);try{const{result:t}=await lE("read",[e],s);return t}catch(t){throw new wE(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),s=await cE("canParse",[e,t],r);if(xc(s))throw new eS(e.uri);try{const{plugin:r,result:n}=await lE("parse",[e,t],s);return!r.allowEmpty&&n.isEmpty?Promise.reject(new dE(`Error while parsing file "${e.uri}". File is empty.`)):n}catch(t){throw new dE(`Error while parsing file "${e.uri}"`,{cause:t})}})(new oE({...r,data:s}),t)};class rS 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(ga(r)&&e(r))return r}}const sS=sc[Symbol.for("nodejs.util.promisify.custom")],nS=new RE,iS=(e,t,r,s)=>{Oa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class oS{indirections;namespace;reference;options;ancestors;refractCache;constructor({reference:e,namespace:t,options:r,indirections:s=[],ancestors:n=new rS,refractCache:i=new Map}){this.indirections=s,this.namespace=t,this.reference=e,this.options=r,this.ancestors=new rS(...n),this.refractCache=i}toBaseURI(e){return vi(this.reference.uri,gi(fi(e)))}async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new ZE(`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(FE(t,"uri"));const s=await tS(bi(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=new Yw({uri:t,value:Wa(s),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const e=new Yw({uri:`immutable://${t}`,value:s,depth:this.reference.depth+1});r.add(e)}return n}toAncestorLineage(e){const t=new Set(e.filter(ga));return[new rS(...this.ancestors,t),t]}async ReferenceElement(e,t,r,s,n,i){if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(uc(e.$ref)),l=fi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return!1;if(!this.options.resolve.external&&u)return!1;const p=await this.toReference(uc(e.$ref)),h=vi(c,uc(e.$ref));this.indirections.push(e);const d=ol(h);let m=ll(d,p.value.result);if(m.id=nS.identify(m),Ca(m)){const t=uc(e.meta.get("referenced-element")),r=`${t}-${uc(nS.identify(m))}`;if(this.refractCache.has(r))m=this.refractCache.get(r);else if(jh(m))m=eg.refract(m),m.setMetaProperty("referenced-element",t),this.refractCache.set(r,m);else{m=this.namespace.getElementClass(t).refract(m),this.refractCache.set(r,m)}}if(e===m)throw new es("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new QE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new es("Circular reference detected");if("replace"===this.options.dereference.circular){var f,y;const t=new Zo.sI(m.id,{type:"reference",uri:p.uri,$ref:uc(e.$ref)}),s=(null!==(f=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==f?f:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,iS),!r&&s}}const v=fi(p.refSet.rootRef.uri)!==p.uri,g=["error","replace"].includes(this.options.dereference.circular);if((u||v||kx(m)||g)&&!o.includesCycle(m)){a.add(e);const t=new oS({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await sS(m,t,{keyMap:qw,nodeTypeGetter:Lw}),a.delete(e)}this.indirections.pop();const b=Xa(m);return b.setMetaProperty("id",nS.generateId()),b.setMetaProperty("ref-fields",{$ref:uc(e.$ref),description:uc(e.description),summary:uc(e.summary)}),b.setMetaProperty("ref-origin",p.uri),b.setMetaProperty("ref-referencing-element-id",Wa(nS.identify(e))),Sa(m)&&Sa(b)&&(e.hasKey("description")&&"description"in m&&(b.remove("description"),b.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in m&&(b.remove("summary"),b.set("summary",e.get("summary")))),i.replaceWith(b,iS),!r&&b}async PathItemElement(e,t,r,s,n,i){if(!ba(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]),c=this.toBaseURI(uc(e.$ref)),l=fi(this.reference.uri)===c,u=!l;if(!this.options.resolve.internal&&l)return;if(!this.options.resolve.external&&u)return;const p=await this.toReference(uc(e.$ref)),h=vi(c,uc(e.$ref));this.indirections.push(e);const d=ol(h);let m=ll(d,p.value.result);if(m.id=nS.identify(m),Ca(m)){const e=`path-item-${uc(nS.identify(m))}`;this.refractCache.has(e)?m=this.refractCache.get(e):(m=Xv.refract(m),this.refractCache.set(e,m))}if(e===m)throw new es("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new QE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(m)){if(p.refSet.circular=!0,"error"===this.options.dereference.circular)throw new es("Circular reference detected");if("replace"===this.options.dereference.circular){var f,y;const t=new Zo.sI(m.id,{type:"path-item",uri:p.uri,$ref:uc(e.$ref)}),s=(null!==(f=null===(y=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===y?void 0:y.circularReplacer)&&void 0!==f?f:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,iS),!r&&s}}const v=fi(p.refSet.rootRef.uri)!==p.uri,g=["error","replace"].includes(this.options.dereference.circular);if((u||v||Ox(m)&&ba(m.$ref)||g)&&!o.includesCycle(m)){a.add(e);const t=new oS({reference:p,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});m=await sS(m,t,{keyMap:qw,nodeTypeGetter:Lw}),a.delete(e)}if(this.indirections.pop(),Ox(m)){const t=new Xv([...m.content],Wa(m.meta),Wa(m.attributes));t.setMetaProperty("id",nS.generateId()),e.forEach(((e,r,s)=>{t.remove(uc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:uc(e.$ref)}),t.setMetaProperty("ref-origin",p.uri),t.setMetaProperty("ref-referencing-element-id",Wa(nS.identify(e))),m=t}return i.replaceWith(m,iS),r?void 0:m}async LinkElement(e,t,r,s,n,i){if(!ba(e.operationRef)&&!ba(e.operationId))return;if(ba(e.operationRef)&&ba(e.operationId))throw new es("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(ba(e.operationRef)){var a;const t=ol(uc(e.operationRef)),s=this.toBaseURI(uc(e.operationRef)),n=fi(this.reference.uri)===s,c=!n;if(!this.options.resolve.internal&&n)return;if(!this.options.resolve.external&&c)return;const l=await this.toReference(uc(e.operationRef));if(o=ll(t,l.value.result),Ca(o)){const e=`operation-${uc(nS.identify(o))}`;this.refractCache.has(e)?o=this.refractCache.get(e):(o=Kv.refract(o),this.refractCache.set(e,o))}o=Xa(o),o.setMetaProperty("ref-origin",l.uri);const u=Xa(e);return null===(a=u.operationRef)||void 0===a||a.meta.set("operation",o),i.replaceWith(u,iS),r?void 0:u}if(ba(e.operationId)){var c;const t=uc(e.operationId),s=await this.toReference(bi(this.reference.uri));if(o=NE((e=>Sx(e)&&ga(e.operationId)&&e.operationId.equals(t)),s.value.result),Bn(o))throw new es(`OperationElement(operationId=${t}) not found.`);const n=Xa(e);return null===(c=n.operationId)||void 0===c||c.meta.set("operation",o),i.replaceWith(n,iS),r?void 0:n}}async ExampleElement(e,t,r,s,n,i){if(!ba(e.externalValue))return;if(e.hasKey("value")&&ba(e.externalValue))throw new es("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(uc(e.externalValue)),a=fi(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(uc(e.externalValue)),u=Xa(l.value.result);u.setMetaProperty("ref-origin",l.uri);const p=Xa(e);return p.value=u,i.replaceWith(p,iS),r?void 0:p}async SchemaElement(e,t,r,s,n,i){if(!ba(e.$ref))return;if(this.indirections.includes(e))return!1;const[o,a]=this.toAncestorLineage([...n,r]);let c=await this.toReference(bi(this.reference.uri)),{uri:l}=c;const u=WE(l,e),p=fi(u),h=new oE({uri:p}),d=IE((e=>e.canRead(h)),this.options.resolve.resolvers),m=!d;let f,y=fi(this.reference.uri)===u,v=!y;this.indirections.push(e);try{if(d||m){l=this.toBaseURI(u);const e=u,t=YE(c.value.result);if(f=XE(e,t),f=YE(f),f.id=nS.identify(f),!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return}else{if(l=this.toBaseURI(u),y=fi(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;c=await this.toReference(bi(u));const e=ol(u),t=YE(c.value.result);f=ll(e,t),f=YE(f),f.id=nS.identify(f)}}catch(e){if(!(m&&e instanceof GE))throw e;if(UE(JE(u))){if(y=fi(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;c=await this.toReference(bi(u));const e=JE(u),t=YE(c.value.result);f=VE(e,t),f=YE(f),f.id=nS.identify(f)}else{if(l=this.toBaseURI(u),y=fi(this.reference.uri)===l,v=!y,!this.options.resolve.internal&&y)return;if(!this.options.resolve.external&&v)return;c=await this.toReference(bi(u));const e=ol(u),t=YE(c.value.result);f=ll(e,t),f=YE(f),f.id=nS.identify(f)}}if(e===f)throw new es("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new QE(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(o.includes(f)){if(c.refSet.circular=!0,"error"===this.options.dereference.circular)throw new es("Circular reference detected");if("replace"===this.options.dereference.circular){var g,b;const t=new Zo.sI(f.id,{type:"json-schema",uri:c.uri,$ref:uc(e.$ref)}),s=(null!==(g=null===(b=this.options.dereference.strategyOpts["openapi-3-1"])||void 0===b?void 0:b.circularReplacer)&&void 0!==g?g:this.options.dereference.circularReplacer)(t);return i.replaceWith(s,iS),!r&&s}}const x=fi(c.refSet.rootRef.uri)!==c.uri,w=["error","replace"].includes(this.options.dereference.circular);if((v||x||Ix(f)&&ba(f.$ref)||w)&&!o.includesCycle(f)){a.add(e);const t=new oS({reference:c,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:o});f=await sS(f,t,{keyMap:qw,nodeTypeGetter:Lw}),a.delete(e)}if(this.indirections.pop(),_x(f)){const t=Wa(f);return t.setMetaProperty("id",nS.generateId()),t.setMetaProperty("ref-fields",{$ref:uc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Wa(nS.identify(e))),i.replaceWith(t,iS),!r&&t}if(Ix(f)){const t=new kb([...f.content],Wa(f.meta),Wa(f.attributes));t.setMetaProperty("id",nS.generateId()),e.forEach(((e,r,s)=>{t.remove(uc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:uc(e.$ref)}),t.setMetaProperty("ref-origin",c.uri),t.setMetaProperty("ref-referencing-element-id",Wa(nS.identify(e))),f=t}return i.replaceWith(f,iS),r?void 0:f}}const aS=oS,cS=sc[Symbol.for("nodejs.util.promisify.custom")];const lS=class extends CE{constructor(e){super({...null!=e?e:{},name:"openapi-3-1"})}canDereference(e){var t;return"text/plain"!==e.mediaType?Kw.includes(e.mediaType):Ex(null===(t=e.parseResult)||void 0===t?void 0:t.result)}async dereference(e,t){var r;const s=Ac(Bw),n=null!==(r=t.dereference.refSet)&&void 0!==r?r:new Xw,i=new Xw;let o,a=n;n.has(e.uri)?o=n.find(FE(e.uri,"uri")):(o=new Yw({uri:e.uri,value:e.parseResult}),n.add(o)),t.dereference.immutable&&(n.refs.map((e=>new Yw({...e,value:Wa(e.value)}))).forEach((e=>i.add(e))),o=i.find((t=>t.uri===e.uri)),a=i);const c=new aS({reference:o,namespace:s,options:t}),l=await cS(a.rootRef.value,c,{keyMap:qw,nodeTypeGetter:Lw});return t.dereference.immutable&&i.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new Yw({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>n.add(e))),null===t.dereference.refSet&&n.clean(),i.clean(),l}},uS=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,s)=>{if(Oa(r)){const t=String(uc(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 pS=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(uc(t));t.set("default",e)}catch(t){const s=new Error(t,{cause:t});s.fullPath=[...uS([...n,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(s)}}))}};constructor({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t}};const hS=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=[...uS([...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(Ix)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...uS([...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=Ou.all([...t.content,e]);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;#e;OperationElement={enter:e=>{this.#e=e},leave:()=>{this.#e=void 0}};ParameterElement={leave:(e,t,r,s,n)=>{const i=this.#e?uc(this.#e):null,o=uc(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=uS([...n,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}};constructor({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t}},mS=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t};const fS=class extends ts{},{wrapError:yS}=oo,vS=sc[Symbol.for("nodejs.util.promisify.custom")],gS=new RE,bS=(e,t,r,s)=>{Oa(s)?s.value=e:Array.isArray(s)&&(s[r]=e)};class xS extends aS{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(uc(e.$ref)),a=fi(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(uc(e.$ref)),u=vi(o,uc(e.$ref));this.indirections.push(e);const p=ol(u);let h=ll(p,l.value.result);if(h.id=gS.identify(h),Ca(h)){const t=uc(e.meta.get("referenced-element")),r=`${t}-${uc(gS.identify(h))}`;if(this.refractCache.has(r))h=this.refractCache.get(r);else if(jh(h))h=eg.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 es("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new QE(`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 es("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(h.id,{type:"reference",uri:l.uri,$ref:uc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,bS),!r&&s}}const d=fi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||kx(h)||m)&&!t.includesCycle(h)){s.add(e);const i=new xS({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??[...uS([...n,r,e]),"$ref"]});h=await vS(h,i,{keyMap:qw,nodeTypeGetter:Lw}),s.delete(e)}this.indirections.pop();const f=Xa(h);if(f.setMetaProperty("ref-fields",{$ref:uc(e.$ref),description:uc(e.description),summary:uc(e.summary)}),f.setMetaProperty("ref-origin",l.uri),f.setMetaProperty("ref-referencing-element-id",Wa(gS.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=vi(o,u);f.set("$$ref",e)}return i.replaceWith(f,bS),!r&&f}catch(t){const s=mS(t),i=yS(s,{baseDoc:this.reference.uri,$ref:uc(e.$ref),pointer:ol(uc(e.$ref)),fullPath:this.basePath??[...uS([...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(uc(e.$ref)),a=fi(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(uc(e.$ref)),u=vi(o,uc(e.$ref));this.indirections.push(e);const p=ol(u);let h=ll(p,l.value.result);if(h.id=gS.identify(h),Ca(h)){const e=`path-item-${uc(gS.identify(h))}`;this.refractCache.has(e)?h=this.refractCache.get(e):(h=Xv.refract(h),this.refractCache.set(e,h))}if(e===h)throw new es("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new QE(`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 es("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(h.id,{type:"path-item",uri:l.uri,$ref:uc(e.$ref),baseURI:u,referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(t,bS),!r&&s}}const d=fi(l.refSet.rootRef.uri)!==l.uri,m=["error","replace"].includes(this.options.dereference.circular);if((c||d||Ox(h)&&ba(h.$ref)||m)&&!t.includesCycle(h)){s.add(e);const i=new xS({reference:l,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:t,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...uS([...n,r,e]),"$ref"]});h=await vS(h,i,{keyMap:qw,nodeTypeGetter:Lw}),s.delete(e)}if(this.indirections.pop(),Ox(h)){const t=new Xv([...h.content],Wa(h.meta),Wa(h.attributes));if(e.forEach(((e,r,s)=>{t.remove(uc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:uc(e.$ref)}),t.setMetaProperty("ref-origin",l.uri),t.setMetaProperty("ref-referencing-element-id",Wa(gS.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=vi(o,u);t.set("$$ref",e)}h=t}return i.replaceWith(h,bS),r?void 0:h}catch(t){const s=mS(t),i=yS(s,{baseDoc:this.reference.uri,$ref:uc(e.$ref),pointer:ol(uc(e.$ref)),fullPath:this.basePath??[...uS([...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(bi(this.reference.uri)),{uri:a}=o;const c=WE(a,e),l=fi(c),u=new oE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p;let d,m=fi(this.reference.uri)===c,f=!m;this.indirections.push(e);try{if(p||h){a=this.toBaseURI(c);const e=c,t=YE(o.value.result);if(d=XE(e,t),d=YE(d),d.id=gS.identify(d),!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return}else{if(a=this.toBaseURI(c),m=fi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(bi(c));const e=ol(c),t=YE(o.value.result);d=ll(e,t),d=YE(d),d.id=gS.identify(d)}}catch(e){if(!(h&&e instanceof GE))throw e;if(UE(JE(c))){if(m=fi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(bi(c));const e=JE(c),t=YE(o.value.result);d=VE(e,t),d=YE(d),d.id=gS.identify(d)}else{if(a=this.toBaseURI(uc(c)),m=fi(this.reference.uri)===a,f=!m,!this.options.resolve.internal&&m)return;if(!this.options.resolve.external&&f)return;o=await this.toReference(bi(c));const e=ol(c),t=YE(o.value.result);d=ll(e,t),d=YE(d),d.id=gS.identify(d)}}if(e===d)throw new es("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new QE(`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 es("Circular reference detected");if("replace"===this.options.dereference.circular){const t=new Zo.sI(d.id,{type:"json-schema",uri:o.uri,$ref:uc(e.$ref),baseURI:vi(a,c),referencingElement:e}),s=(this.options.dereference.strategyOpts["openapi-3-1"]?.circularReplacer??this.options.dereference.circularReplacer)(t);return i.replaceWith(s,bS),!r&&s}}const y=fi(o.refSet.rootRef.uri)!==o.uri,v=["error","replace"].includes(this.options.dereference.circular);if((f||y||Ix(d)&&ba(d.$ref)||v)&&!t.includesCycle(d)){s.add(e);const i=new xS({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:t,basePath:this.basePath??[...uS([...n,r,e]),"$ref"]});d=await vS(d,i,{keyMap:qw,nodeTypeGetter:Lw}),s.delete(e)}if(this.indirections.pop(),_x(d)){const t=Wa(d);return t.setMetaProperty("ref-fields",{$ref:uc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Wa(gS.identify(e))),i.replaceWith(t,bS),!r&&t}if(Ix(d)){const t=new kb([...d.content],Wa(d.meta),Wa(d.attributes));if(e.forEach(((e,r,s)=>{t.remove(uc(r)),t.content.push(s)})),t.remove("$ref"),t.setMetaProperty("ref-fields",{$ref:uc(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",Wa(gS.identify(e))),this.allowMetaPatches&&void 0===t.get("$$ref")){const e=vi(a,c);t.set("$$ref",e)}d=t}return i.replaceWith(d,bS),r?void 0:d}catch(t){const s=mS(t),i=new fS(`Could not resolve reference: ${s.message}`,{baseDoc:this.reference.uri,$ref:uc(e.$ref),fullPath:this.basePath??[...uS([...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=mS(t),i=yS(s,{baseDoc:this.reference.uri,externalValue:uc(e.externalValue),fullPath:this.basePath??[...uS([...n,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}const wS=xS,ES=Ja[Symbol.for("nodejs.util.promisify.custom")];const SS=class{constructor({parameterMacro:e,modelPropertyMacro:t,mode:r,options:s,...n}){const i=[];i.push(new wS({...n,options:s})),"function"==typeof t&&i.push(new pS({modelPropertyMacro:t,options:s})),"strict"!==r&&i.push(new hS({options:s})),"function"==typeof e&&i.push(new dS({parameterMacro:e,options:s}));const o=ES(i,{nodeTypeGetter:Lw});Object.assign(this,o)}},jS=sc[Symbol.for("nodejs.util.promisify.custom")];const OS=class extends lS{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=Ac(Bw),s=t.dereference.refSet??new Xw,n=new Xw;let i,o=s;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=new Yw({uri:e.uri,value:e.parseResult}),s.add(i)),t.dereference.immutable&&(s.refs.map((e=>new Yw({...e,value:Wa(e.value)}))).forEach((e=>n.add(e))),i=n.find((t=>t.uri===e.uri)),o=n);const a=new SS({reference:i,namespace:r,options:t,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors,modelPropertyMacro:this.modelPropertyMacro,mode:this.mode,parameterMacro:this.parameterMacro}),c=await jS(o.rootRef.value,a,{keyMap:qw,nodeTypeGetter:Lw});return t.dereference.immutable&&n.refs.filter((e=>e.uri.startsWith("immutable://"))).map((e=>new Yw({...e,uri:e.uri.replace(/^immutable:\/\//,"")}))).forEach((e=>s.add(e))),null===t.dereference.refSet&&s.clean(),n.clean(),c}},PS=e=>{const t=uc(e.meta.get("baseURI")),r=e.meta.get("referencingElement");return new Zo.Sh({$ref:t},Wa(r.meta),Wa(r.attributes))},AS=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}=AS,y=d.find((e=>e.match(t))),v=hi(yi())?yi():f,g=er(e),b=vi(v,g);let x;m.has(t)?x=m.get(t):(x=Wv.refract(t),x.classes.push("result"),m.set(t,x));const w=new la([x]),E=Lc(o),S=""===E?"":`#${E}`,j=ll(E,x),O=new Yw({uri:b,value:w}),P=new Xw({refs:[O]});""!==E&&(P.rootRef=void 0);const A=[new Set([j])],k=[],$=await(async(e,t={})=>{const r=iE(Qw,t);return hE(e,r)})(j,{resolve:{baseURI:`${b}${S}`,resolvers:[new OE({timeout:r||1e4,redirects:s||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:i}},strategies:[new gE]},parse:{mediaType:Kw.latest(),parsers:[new $E({allowEmpty:!1,sourceMap:!1}),new TE({allowEmpty:!1,sourceMap:!1}),new AE({allowEmpty:!1,sourceMap:!1}),new kE({allowEmpty:!1,sourceMap:!1}),new yE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[new OS({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:h,ancestors:A})],refSet:P,dereferenceOpts:{errors:k},immutable:!1,circular:c?"ignore":"replace",circularReplacer:c?Qw.dereference.circularReplacer:PS}}),T=((e,t,r)=>new Mc({element:r}).transclude(e,t))(j,$,x),F=l?T:y.normalize(T);return{spec:uc(F),errors:k}}catch(e){if(e instanceof il||e instanceof cl)return{spec:t,errors:[]};throw e}};AS.cache=new WeakMap;const kS=AS;function $S(e,t,r){if(r||(r=new TS),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?$S(e[i],!0,r):e[i]);return s};switch(Os(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 hs(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 TS=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}(),FS=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"]=Ls,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(fs(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,$S(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function CS(e,t,r){return function(s){return new FS(e,t,r,s)}}const IS=is(ln("groupBy",vn(4,[],Ds([],CS,(function(e,t,r,s){var n=an((function(s,n){var i=r(n),o=e(fs(i,s)?s[i]:$S(t,!1),n);return o&&o["@@transducer/reduced"]?ea(s):(s[i]=o,s)}));return nn(n,{},s)})))((function(e,t){return e.push(t),e}),[])));const _S=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 Zo.Sh,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);ja(t)||(t=new Zo.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)}},MS=e=>e.replace(/\s/g,""),RS=e=>e.replace(/\W/gi,"_"),DS=(e,t,r)=>{const s=MS(e);return s.length>0?RS(s):((e,t)=>`${RS(MS(t.toLowerCase()))}${RS(MS(e))}`)(t,r)},NS=({storageField:e="x-normalized",operationIdNormalizer:t=DS}={})=>r=>{const{predicates:s,ancestorLineageToJSONPointer:n,namespace:i}=r,o=[],a=[],c=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){l=new _S(t,e,"operation-ids")},leave(){const e=IS((e=>uc(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(uc(e.operationId)),r=a.find((e=>uc(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Wa.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=dn("path",uc(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(uc(e.operationId)),d=yn(o),m=dn("method",uc(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)}}}}};var LS=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Ls,e.prototype["@@transducer/result"]=qs,e.prototype["@@transducer/step"]=function(e,t){return ms(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function qS(e){return function(t){return new LS(e,t)}}const BS=is(Ds([],qS,(function(e,t){for(var r,s=0,n=t.length,i=[];s<n;)ms(e,r=t[s],i)||(i[i.length]=r),s+=1;return i}))),US=({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)&&(uc(e.name)===uc(t.name)&&uc(e.in)===uc(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){o=new _S(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=yn(i);if(!Array.isArray(l)||0===l.length)return;const u=s([...c,r,e]);if(o.includes(u))return;const p=DE([],["parameters","content"],e),h=BS(n,[...p,...l]);e.parameters=new Dy(h),o.append(u)}}}}},JS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n,i;return{visitor:{OpenApi3_1Element:{enter(t){i=new _S(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 Gy(null===(u=n)||void 0===u?void 0:u.content),i.append(l))}}}}},VS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new _S(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=>Wa.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",[Wa(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Wa(e.example)),n.append(u)))}}}}}},HS=({storageField:e="x-normalized"}={})=>t=>{const{predicates:r,ancestorLineageToJSONPointer:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){n=new _S(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=>Wa.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",[Wa(e.example)]),n.append(u)),void 0!==e.schema.example&&(e.schema.set("example",Wa(e.example)),n.append(u)))}}}}}},zS=e=>{if(!Sa(e))return e;const t=[NS({operationIdNormalizer:(e,t,r)=>To({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),US(),JS(),VS(),HS()];return Fc(e,t,{toolboxCreator:Jw,visitorOptions:{keyMap:qw,nodeTypeGetter:Lw}})},GS={name:"openapi-3-1-apidom",match:e=>Mo(e),normalize(e){if(!ga(e)&&Qo(e)&&!e.$$normalized){const r=(t=zS,e=>{const r=Wv.refract(e);r.classes.push("result");const s=t(r),n=uc(s);return kS.cache.set(n,s),uc(s)})(e);return r.$$normalized=!0,r}var t;return ga(e)?zS(e):e},resolve:async e=>kS(e)};function WS(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 KS=()=>null,YS={mapTagOperations:function({spec:e,cb:t=KS,defaultTag:r="default",v2OperationIdCompatibilityMode:s}){const n={},i={};return WS(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=To(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 XS=function(){const e=ej,t=ZS,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=(v,g,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=v.rules,i=v.udts;const S=g.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 v=(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}`)}},g=(t,c)=>{let h,d,m;const f=o[t],v=i[f.index];y.UdtIndex=v.index,p||(m=r.ast&&r.ast.udtDefined(f.index),m&&(d=n.length+f.index,h=r.ast.getLength(),r.ast.down(d,v.name)));const g=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}`)}})(v,y,g),p||m&&(y.state===e.NOMATCH?r.ast.setLength(h):r.ast.up(d,v.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),v(m,y,t,!0),y.state===e.ACTIVE&&(h=o,o=m.opcodes,b(0,s),o=h,f(y,a,s,u),v(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:g(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}},QS=function(){const e=ej,t=ZS,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}},ZS={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)}},ej={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 ej.ALT:return"ALT";case ej.CAT:return"CAT";case ej.REP:return"REP";case ej.RNM:return"RNM";case ej.TRG:return"TRG";case ej.TBS:return"TBS";case ej.TLS:return"TLS";case ej.UDT:return"UDT";case ej.AND:return"AND";case ej.NOT:return"NOT";case ej.ACTIVE:return"ACTIVE";case ej.EMPTY:return"EMPTY";case ej.MATCH:return"MATCH";case ej.NOMATCH:return"NOMATCH";case ej.SEM_PRE:return"SEM_PRE";case ej.SEM_POST:return"SEM_POST";case ej.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};const tj=(e,t,r,s,n)=>{if(e===ej.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-url-template",ZS.charsToString(t,r,s)])}return ej.SEM_OK},rj=(e,t,r,s,n)=>{if(e===ej.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable",ZS.charsToString(t,r,s)])}return ej.SEM_OK},sj=(e,t,r,s,n)=>{if(e===ej.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["server-variable-name",ZS.charsToString(t,r,s)])}return ej.SEM_OK},nj=(e,t,r,s,n)=>{if(e===ej.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["literals",ZS.charsToString(t,r,s)])}return ej.SEM_OK},ij=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'}},oj=e=>{const t=new XS;t.ast=new QS,t.ast.callbacks["server-url-template"]=tj,t.ast.callbacks["server-variable"]=rj,t.ast.callbacks["server-variable-name"]=sj,t.ast.callbacks.literals=nj;return{result:t.parse(ij,"server-url-template",e),ast:t.ast}},aj=(e,{strict:t=!1}={})=>{try{const r=oj(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}},cj=e=>(e=>{try{return"string"==typeof e&&decodeURIComponent(e)!==e}catch{return!1}})(e)?e:encodeURIComponent(e).replace(/%5B/g,"[").replace(/%5D/g,"]"),lj=["literals","server-variable-name"],uj=(e,t,r={})=>{const s={...{encoder:cj},...r},n=oj(e);if(!n.result.success)return e;const i=[];n.ast.translate(i);const o=i.filter((([e])=>lj.includes(e))).map((([e,r])=>"server-variable-name"===e?Object.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")};function pj(){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, DQUOTE, 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, DQUOTE, 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 pj;const hj=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)},dj=new XS,mj=new pj,fj=e=>{const t=String(e),r=t.length>=2&&t.startsWith('"')&&t.endsWith('"'),s=r?t.slice(1,-1):t;let n="";for(const e of s)n+=dj.parse(mj,"cookie-octet",e).success?e:hj(e);return r?`"${n}"`:n},yj=new XS,vj=new pj,gj=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-name":"lenient-cookie-name";return yj.parse(vj,r,e).success}catch{return!1}},bj=e=>{if(!gj(e))throw new TypeError(`Invalid cookie name: ${e}`)},xj=new XS,wj=new pj,Ej=(e,{strict:t=!0}={})=>{try{const r=t?"cookie-value":"lenient-cookie-value";return xj.parse(wj,r,e).success}catch{return!1}},Sj=e=>{if(!Ej(e))throw new TypeError(`Invalid cookie value: ${e}`)},jj={encoders:{name:e=>e,value:fj},validators:{name:bj,value:Sj}},Oj=(e,t,r={})=>{const s={...jj,...r,encoders:{...jj.encoders,...r.encoders},validators:{...jj.validators,...r.validators}},n=s.encoders.name(e),i=s.encoders.value(t);return s.validators.name(n),s.validators.value(i),`${n}=${i}`},Pj=(e,t={})=>(Array.isArray(e)?e:"object"==typeof e&&null!==e?Object.entries(e):[]).map((([e,r])=>Oj(e,r,t))).join("; "),Aj=new XS,kj=new pj,$j=e=>{const t=String(e),r=t.length>=2&&t.startsWith('"')&&t.endsWith('"'),s=r?t.slice(1,-1):t,n=r?"lenient-quoted-char":"lenient-cookie-octet";let i="";for(const e of s)i+=Aj.parse(kj,n,e).success?e:hj(e);return r?`"${i}"`:i},Tj=e=>{if(!gj(e,{strict:!1}))throw new TypeError(`Invalid cookie name: ${e}`)},Fj=e=>{if(!Ej(e,{strict:!1}))throw new TypeError(`Invalid cookie value: ${e}`)};const Cj=(e,t,r,s,n)=>(e===ej.SEM_PRE?n.push(["slash",ZS.charsToString(t,r,s)]):ej.SEM_POST,ej.SEM_OK),Ij=(e,t,r,s,n)=>{if(e===ej.SEM_PRE){if(!1===Array.isArray(n))throw new Error("parser's user data must be an array");n.push(["path-template",ZS.charsToString(t,r,s)])}return ej.SEM_OK},_j=(e,t,r,s,n)=>(e===ej.SEM_PRE?n.push(["path-literal",ZS.charsToString(t,r,s)]):ej.SEM_POST,ej.SEM_OK),Mj=(e,t,r,s,n)=>(e===ej.SEM_PRE?n.push(["template-expression",ZS.charsToString(t,r,s)]):ej.SEM_POST,ej.SEM_OK),Rj=(e,t,r,s,n)=>(e===ej.SEM_PRE?n.push(["template-expression-param-name",ZS.charsToString(t,r,s)]):ej.SEM_POST,ej.SEM_OK),Dj=new function(){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'}},Nj=e=>{const t=new XS;t.ast=new QS,t.ast.callbacks["path-template"]=Ij,t.ast.callbacks.slash=Cj,t.ast.callbacks["path-literal"]=_j,t.ast.callbacks["template-expression"]=Mj,t.ast.callbacks["template-expression-param-name"]=Rj;return{result:t.parse(Dj,"path-template",e),ast:t.ast}},Lj=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"],Bj=(e,t,r={})=>{const s={...{encoder:Lj},...r},n=Nj(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.hasOwn(t,r)?s.encoder(t[r],r):`{${r}}`:r));return o.join("")},Uj={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=Bj(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 Jj(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)}const Vj=e=>fj(e).replace(/[=&]/gu,(e=>"="===e?"%3D":"%26"));function Hj({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=Bj(c,{[n]:t},{encoder:t=>$(Jj(t,e))})}else l=Bj(c,{[n]:t},{encoder:e=>T({key:r.name,value:e,style:i||"simple",explode:o??!1,escape:"reserved"})});e.url=s+l}function zj({req:e,value:t,parameter:r}){if(e.query=e.query||{},void 0!==t&&r.content){const s=Jj(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 Gj=["accept","authorization","content-type"];function Wj({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(Gj.indexOf(t.name.toLowerCase())>-1))if(void 0!==r&&t.content){const s=Object.keys(t.content)[0];e.headers[t.name]=Jj(r,s)}else void 0===r||Array.isArray(r)&&0===r.length||(e.headers[t.name]=T({key:t.name,value:r,style:t.style||"simple",explode:void 0!==t.explode&&t.explode,escape:!1}))}function Kj({req:e,parameter:t,value:r}){const{name:s}=t;if(e.headers=e.headers||{},void 0!==r&&t.content){const n=Jj(r,Object.keys(t.content)[0]);e.headers.Cookie=Pj({[s]:n},{encoders:{value:Vj}})}else if(void 0!==r&&(!Array.isArray(r)||0!==r.length)){const n=T({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=Pj({[s]:i},{encoders:{value:Vj}})}}const Yj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Xj}=Yj,Qj=Xj;function Zj(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=Qj(`${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 eO(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=Qj(`${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 tO(e,t){return`${t.toLowerCase()}-${e}`}function rO(e,t){return e&&e.paths?function(e,t){return WS(e,t,!0)||null}(e,(({pathName:e,method:r,operation:s})=>{if(!s||"object"!=typeof s)return!1;const n=s.operationId;return[To(s,e,r),tO(e,r),n].some((e=>e&&e===t))})):null}const sO=e=>Array.isArray(e)?e:[],nO=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 iO extends ts{}const oO={buildRequest:aO};function aO(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:v}=e;const g=Ro(t);y||(y=g?d:Uj);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=rO(t,r);if(!x)throw new iO(`Operation ${r} not found`);const{operation:w={},method:E,pathName:S}=x;if(v=v??lO({spec:t,scheme:n,contextUrl:a,server:l,serverVariables:u,pathName:S,method:E,serverVariableEncoder:m}),b.url+=v,!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(sO(w.parameters)).concat(sO(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`);if(g&&e.schema&&"object"===e.schema.type&&"string"==typeof s)try{s=JSON.parse(s)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:b,parameter:e,value:s,operation:w,spec:t,baseURL:v})}}));const P={...e,operation:w};if(b=g?Zj(P,b):eO(P,b),b.cookies&&Object.keys(b.cookies).length){const e=Pj(b.cookies,{encoders:{value:$j},validators:{name:Tj,value:Fj}});Qu(b.headers.Cookie)?b.headers.Cookie+=`; ${e}`:b.headers.Cookie=e}return b.cookies&&delete b.cookies,D(b)}const cO=e=>e?e.replace(/\W/g,""):null;function lO(e){return Ro(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=uO(u)?u:uO(p)?p:uO(h)?h:[y],s&&(a=c.find((e=>e.url===s)),a&&(l=s));l||([a]=c,l=a.url);if(aj(l,{strict:!0})){const e=Object.entries({...a.variables}).reduce(((e,[t,r])=>(e[t]=r.default,e)),{});l=uj(l,{...e,...i},{encoder:"function"==typeof o?o:Jc})}return function(e="",t=""){const r=nO(e&&t?vi(t,e):e),s=nO(t),n=cO(r.protocol)||cO(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=nO(r),n=Array.isArray(e.schemes)?e.schemes[0]:null,i=t||n||cO(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 uO=e=>Array.isArray(e)&&e.length>0;const{q$:pO}=n,hO=pO;function dO(e,t={}){if("string"==typeof e?t.url=e:t=e,!(this instanceof dO))return new dO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,dO.makeApisTagOperation(this)),this)));return r.client=this,r}dO.http=Qt,dO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),s=>("string"==typeof s&&(s={url:s}),s=D(s),s=t(s),r(e(s)))}.bind(null,dO.http),dO.resolveStrategies={"openapi-3-1-apidom":GS,"openapi-3-0":No,"openapi-2-0":Do,generic:Co},dO.resolve=Lo({strategies:[dO.resolveStrategies["openapi-3-1-apidom"],dO.resolveStrategies["openapi-3-0"],dO.resolveStrategies["openapi-2-0"],dO.resolveStrategies.generic]}),dO.resolveSubtree=Bo({strategies:[dO.resolveStrategies["openapi-3-1-apidom"],dO.resolveStrategies["openapi-3-0"],dO.resolveStrategies["openapi-2-0"],dO.resolveStrategies.generic]}),dO.execute=function({http:e,fetch:t,spec:r,operationId:s,pathName:n,method:i,parameters:o,securities:a,...c}){const l=e||t||Qt;n&&i&&!s&&(s=tO(n,i));const u=oO.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)},dO.serializeRes=Xt,dO.serializeHeaders=Yt,dO.clearCache=function(){Ao.refs.clearCache()},dO.makeApisTagOperation=function(e={}){const t=YS.makeExecute(e);return{apis:YS.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},dO.buildRequest=aO,dO.helpers={opId:To},dO.getBaseUrl=lO,dO.apidom={resolve:{resolvers:{HTTPResolverSwaggerClient:OE}},parse:{parsers:{JsonParser:AE,YamlParser:kE,OpenApiJson3_1Parser:$E,OpenApiYaml3_1Parser:TE}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:OS}}},dO.prototype={http:Qt,execute(e){return this.applyDefaults(),dO.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 dO.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)))}},dO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(Io(e)&&hO(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(Ro(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[y])}};const{helpers:mO}=dO,fO=dO})(),s=s.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|