@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 0.97.0 → 0.99.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.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var e={3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),c=s(5071);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),c=s(3964);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),c=s(9068);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),c=s(7462),a=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=c,l.prototype.set=a,e.exports=l},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),c=s(9632),a=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),p=!s&&!u&&o(e),m=!s&&!u&&!p&&a(e),h=s||u||p||m,d=h?r(e.length,String):[],f=d.length;for(var y in e)!t&&!l.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||m&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,f))||d.push(y);return d}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},7379:(e,t,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.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)}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,c){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,c))}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),c=s(8486),a=s(3142),l=s(5853),u=s(8666),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,f,y,g){var _=a(e),v=a(t),b=_?m:c(e),x=v?m:c(t),E=(b=b==p?h:b)==h,w=(x=x==p?h:x)==h,j=b==x;if(j&&l(e)){if(!l(t))return!1;_=!0,E=!1}if(j&&!E)return g||(g=new r),_||u(e)?n(e,t,s,f,y,g):i(e,t,b,s,f,y,g);if(!(1&s)){var S=E&&d.call(e,"__wrapped__"),P=w&&d.call(t,"__wrapped__");if(S||P){var O=S?e.value():e,A=P?t.value():t;return g||(g=new r),y(O,A,s,f,g)}}return!!j&&(g||(g=new r),o(e,t,s,f,y,g))}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:c).test(o(e))}},674:(e,t,s)=>{var r=s(7379),n=s(5387),i=s(547),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[r(e)]}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,c,a){var l=1&s,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var d=-1,f=!0,y=2&s?new r:void 0;for(a.set(e,t),a.set(t,e);++d<u;){var g=e[d],_=t[d];if(o)var v=l?o(_,g,d,t,e,a):o(g,_,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(g===e||c(g,e,s,o,a)))return y.push(t)}))){f=!1;break}}else if(g!==_&&!c(g,_,s,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),c=s(5894),a=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,p,m){switch(s){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 h=c;case"[object Set]":var d=1&r;if(h||(h=a),e.size!=t.size&&!d)return!1;var f=m.get(e);if(f)return f==t;r|=2,m.set(e,t);var y=o(h(e),h(t),r,l,p,m);return m.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,c){var a=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!a)return!1;for(var p=u;p--;){var m=l[p];if(!(a?m in t:n.call(t,m)))return!1}var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<u;){var g=e[m=l[p]],_=t[m];if(i)var v=a?i(_,g,m,t,e,c):i(g,_,m,e,t,c);if(!(void 0===v?g===_||o(g,_,s,i,c):v)){f=!1;break}y||(y="constructor"==m)}if(f&&!y){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(f=!1)}return c.delete(e),c.delete(t),f}},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,n)}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),s=e[c];try{e[c]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[c]=s:delete e[c]),n}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=c},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),c=s(9270),a=s(7379),l=s(4066),u="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=l(r),y=l(n),g=l(i),_=l(o),v=l(c),b=a;(r&&b(new r(new ArrayBuffer(1)))!=d||n&&b(new n)!=u||i&&b(i.resolve())!=p||o&&b(new o)!=m||c&&b(new c)!=h)&&(b=function(e){var t=a(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case f:return d;case y:return u;case g:return p;case _:return m;case v:return h}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},4103:(e,t,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},4066: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""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?r.Buffer:void 0,a=(c?c.isBuffer:void 0)||n;e.exports=a},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,c=o?n(o):r;e.exports=c},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1517: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)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,s)=>{const r=s(1517);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 s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}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(r(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},2322: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},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),c=s(1580),a=s(394),l=s(7547);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(r,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(c,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,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(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 a(this)}}a.prototype.Namespace=u,e.exports=u},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),c=s(2555),a=s(9796),l=s(7309),u=s(5642),p=s(9620),m=s(593),h=s(4123),d=s(3311),f=s(2322);function y(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new n;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=y,h.prototype.refract=y,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:m,refract:y,ArraySlice:h,ObjectSlice:d,KeyValuePair:f}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),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)}}},593:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),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,s(394),s(3148)},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),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 s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}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 s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,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},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),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 s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(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},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,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)}}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),c=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),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((s=>s.key.toValue()!==e||(t=s,!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 s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,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((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{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 s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}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(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.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),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}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,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},394: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 s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),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 s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),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,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},8357:e=>{!function(){"use strict";var t,s,r,n,i,o="properties",c="deepProperties",a="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",g="initializers",_="methods",v="composers",b="compose";function x(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var w=E.bind(0,(function(e,t){if(t)for(var s=x(t),r=0;r<s.length;r+=1)Object.defineProperty(e,s[r],Object.getOwnPropertyDescriptor(t,s[r]));return e}));function j(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||j(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var O=E.bind(0,(function e(s,r){if(r===t)return s;if(Array.isArray(r))return(Array.isArray(s)?s:[]).concat(r);if(!P(r))return r;for(var n,i,o=x(r),c=0;c<o.length;)n=o[c++],(i=Object.getOwnPropertyDescriptor(r,n)).hasOwnProperty("value")?i.value!==t&&(s[n]=e(P(s[n])||Array.isArray(r[n])?s[n]:{},r[n])):Object.defineProperty(s,n,i);return s}));function A(){return(s=Array.prototype.concat.apply([],arguments).filter((function(e,t,s){return j(e)&&s.indexOf(e)===t}))).length?s:t}function $(e,t){function r(s,r){S(t[s])&&(S(e[s])||(e[s]={}),(r||w)(e[s],t[s]))}function n(r){(s=A(e[r],t[r]))&&(e[r]=s)}return t&&S(t=t[b]||t)&&(r(_),r(o),r(c,O),r(a),r(l),r(u,O),r(p),r(m),r(h,O),n(g),n(v)),e}function k(){return function(e){return s=function e(s){var r,n,i=e[b]||{},l={__proto__:i[_]},u=i[g],p=Array.prototype.slice.apply(arguments),m=i[c];if(m&&O(l,m),(m=i[o])&&w(l,m),(m=i[a])&&Object.defineProperties(l,m),!u||!u.length)return l;for(s===t&&(s={}),i=0;i<u.length;)j(r=u[i++])&&(l=(n=r.call(l,s,{instance:l,stamp:e,args:p}))===t?l:n);return l},(r=e[u])&&O(s,r),(r=e[l])&&w(s,r),(r=e[p])&&Object.defineProperties(s,r),r=j(s[b])?s[b]:k,w(s[b]=function(){return r.apply(this,arguments)},e),s}(Array.prototype.concat.apply([this],arguments).reduce($,{}))}function F(e){return j(e)&&j(e[b])}var M={};function T(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((s=this)&&s[b]||r).call(s,n)}}M[_]=T(_,w),M[o]=M.props=T(o,w),M[g]=M.init=T(g,A),M[v]=T(v,A),M[c]=M[d]=T(c,O),M[l]=M.statics=T(l,w),M[u]=M[f]=T(u,O),M[m]=M.conf=T(m,w),M[h]=M[y]=T(h,O),M[a]=T(a,w),M[p]=T(p,w),r=M[b]=w((function(){for(var e,x,E=0,j=[],P=arguments,$=this;E<P.length;)S(e=P[E++])&&j.push(F(e)?e:((n={})[_]=(x=e)[_]||t,r=x.props,n[o]=S((s=x[o])||r)?w({},r,s):t,n[g]=A(x.init,x[g]),n[v]=A(x[v]),r=x[d],n[c]=S((s=x[c])||r)?O({},r,s):t,n[a]=x[a],r=x.statics,n[l]=S((s=x[l])||r)?w({},r,s):t,r=x[f],n[u]=S((s=x[u])||r)?O({},r,s):t,s=x[p],n[p]=S((r=x.name&&{name:{value:x.name}})||s)?w({},s,r):t,r=x.conf,n[m]=S((s=x[m])||r)?w({},r,s):t,r=x[y],n[h]=S((s=x[h])||r)?O({},r,s):t,n));if(e=k.apply($||i,j),$&&j.unshift($),Array.isArray(P=e[b][v]))for(E=0;E<P.length;)e=F($=P[E++]({stamp:e,composables:j}))?$:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(n={})[l]=M,i=k(n),r[b]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const c=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function a(e,t=!1){return e.replace(c,(function(e,s,c,a,l,u,p,m,h){if(void 0!==s)return"\\";if(void 0!==c)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(c);if(void 0!==a)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(a);if(void 0!==l)return i(l,u);if(void 0!==p)return i(p);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==h)return d=h,o.get(d)||d;var d;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=a},3833:(e,t,s)=>{var r=void 0!==r?r:{},n=function(){var t,n="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,c={};for(o in r)r.hasOwnProperty(o)&&(c[o]=r[o]);var a,l,u,p,m=[],h="./this.program",d=function(e,t){throw t};u="object"==typeof window,p="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,l=!u&&!a&&!p;var f,y,g,_,v,b="";a?(b=p?s(4142).dirname(b)+"/":"//",f=function(e,t){return _||(_=s(3078)),v||(v=s(4142)),e=v.normalize(e),_.readFileSync(e,t?null:"utf8")},g=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),e.exports=r,d=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(f=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(u||p)&&(p?b=self.location.href:void 0!==n&&n.currentScript&&(b=n.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),y=function(e,t,s){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):s()},r.onerror=s,r.send(null)}),r.print||console.log.bind(console);var x=r.printErr||console.warn.bind(console);for(o in c)c.hasOwnProperty(o)&&(r[o]=c[o]);c=null,r.arguments&&(m=r.arguments),r.thisProgram&&(h=r.thisProgram),r.quit&&(d=r.quit);var E,w=16,j=[];function S(e,t){if(!E){E=new WeakMap;for(var s=0;s<Y.length;s++){var r=Y.get(s);r&&E.set(r,s)}}if(E.has(e))return E.get(e);var n=function(){if(j.length)return j.pop();try{Y.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(n,e)}catch(s){if(!(s instanceof TypeError))throw s;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var s={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[s[t[0]]]},n=1;n<t.length;++n)r.parameters.push(s[t[n]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),c=t.slice(1),a={i:127,j:126,f:125,d:124};for(i.push(c.length),n=0;n<c.length;++n)i.push(a[c[n]]);"v"==o?i.push(0):i=i.concat([1,a[o]]),i[1]=i.length-2;var l=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),u=new WebAssembly.Module(l);return new WebAssembly.Instance(u,{e:{f:e}}).exports.f}(e,t);Y.set(n,i)}return E.set(e,n),n}var P,O=r.dynamicLibraries||[];r.wasmBinary&&(P=r.wasmBinary);var A,$=r.noExitRuntime||!0;function k(e,t,s,r){switch("*"===(s=s||"i8").charAt(s.length-1)&&(s="i32"),s){case"i1":case"i8":N[e>>0]=t;break;case"i16":R[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":ue=[t>>>0,(le=t,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[e>>2]=ue[0],q[e+4>>2]=ue[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ce("invalid type for setValue: "+s)}}function F(e,t,s){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return N[e>>0];case"i16":return R[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ce("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ce("no native wasm support detected");var M=!1;function T(e,t){e||ce("Assertion failed: "+t)}var I,N,C,R,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,s){for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.subarray&&B)return B.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var c=63&e[t++];if(192!=(224&o)){var a=63&e[t++];if((o=224==(240&o)?(15&o)<<12|c<<6|a:(7&o)<<18|c<<12|a<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|c)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(C,e,t):""}function z(e,t,s,r){if(!(r>0))return 0;for(var n=s,i=s+r-1,o=0;o<e.length;++o){var c=e.charCodeAt(o);if(c>=55296&&c<=57343&&(c=65536+((1023&c)<<10)|1023&e.charCodeAt(++o)),c<=127){if(s>=i)break;t[s++]=c}else if(c<=2047){if(s+1>=i)break;t[s++]=192|c>>6,t[s++]=128|63&c}else if(c<=65535){if(s+2>=i)break;t[s++]=224|c>>12,t[s++]=128|c>>6&63,t[s++]=128|63&c}else{if(s+3>=i)break;t[s++]=240|c>>18,t[s++]=128|c>>12&63,t[s++]=128|c>>6&63,t[s++]=128|63&c}}return t[s]=0,s-n}function G(e,t,s){return z(e,C,t,s)}function K(e){for(var t=0,s=0;s<e.length;++s){var r=e.charCodeAt(s);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++s)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function H(e){var t=K(e)+1,s=Ue(t);return z(e,N,s,t),s}function W(e){I=e,r.HEAP8=N=new Int8Array(e),r.HEAP16=R=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=C=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var J=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:J/65536,maximum:32768}))&&(I=A.buffer),J=I.byteLength,W(I);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Z=[],X=[],Q=[],ee=[],te=!1,se=0,re=null,ne=null;function ie(e){se++,r.monitorRunDependencies&&r.monitorRunDependencies(se)}function oe(e){if(se--,r.monitorRunDependencies&&r.monitorRunDependencies(se),0==se&&(null!==re&&(clearInterval(re),re=null),ne)){var t=ne;ne=null,t()}}function ce(e){throw r.onAbort&&r.onAbort(e),x(e+=""),M=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ae,le,ue;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function me(e){return e.startsWith("file://")}function he(e){try{if(e==ae&&P)return new Uint8Array(P);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ce(e)}}pe(ae="tree-sitter.wasm")||(ae=function(e){return r.locateFile?r.locateFile(e,b):b+e}(ae));var de={},fe={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function ye(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var s=t.func;"number"==typeof s?void 0===t.arg?Y.get(s)():Y.get(s)(t.arg):s(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function s(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,s(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var n={};n.memorySize=s(),n.memoryAlign=s(),n.tableSize=s(),n.tableAlign=s();var i=s();n.neededDynlibs=[];for(var o=0;o<i;++o){var c=s(),a=e.subarray(t,t+c);t+=c;var l=V(a,0);n.neededDynlibs.push(l)}return n}var _e=0;function ve(){return $||_e>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function xe(e,t){for(var s in e)if(e.hasOwnProperty(s)){qe.hasOwnProperty(s)||(qe[s]=e[s]);var n=be(s);r.hasOwnProperty(n)||(r[n]=e[s])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var we=5250880;function je(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Se(e,t){var s={};for(var r in e){var n=e[r];"object"==typeof n&&(n=n.value),"number"==typeof n&&(n+=t),s[r]=n}return function(e){for(var t in e)if(!je(t)){var s=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],s=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(s||0==de[t].value)&&("function"==typeof r?de[t].value=S(r):"number"==typeof r?de[t].value=r:x("unhandled export type for `"+t+"`: "+typeof r))}}(s),s}function Pe(e,t){var s,n;return t&&(s=qe["orig$"+e]),s||(s=qe[e]),s||(s=r[be(e)]),!s&&e.startsWith("invoke_")&&(n=e.split("_")[1],s=function(){var e=Be();try{return function(e,t,s){return e.includes("j")?function(e,t,s){var n=r["dynCall_"+e];return s&&s.length?n.apply(null,[t].concat(s)):n.call(null,t)}(e,t,s):Y.get(t).apply(null,s)}(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),s}function Oe(e,t){var s=ge(e);function r(){var r=Math.pow(2,s.memoryAlign);r=Math.max(r,w);var n,i,o,c=(n=function(e){if(te)return De(e);var t=we,s=t+e+15&-16;return we=s,de.__heap_base.value=s,t}(s.memorySize+r),(i=r)||(i=w),Math.ceil(n/i)*i),a=Y.length;Y.grow(s.tableSize);for(var l=c;l<c+s.memorySize;l++)N[l]=0;for(l=a;l<a+s.tableSize;l++)Y.set(l,null);var u=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return c;case"__table_base":return a}return t in qe?qe[t]:(t in e||(e[t]=function(){return s||(s=function(e){var t=Pe(e,!1);return t||(t=o[e]),t}(t)),s.apply(null,arguments)}),e[t]);var s}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:u,wasi_snapshot_preview1:u};function m(e){for(var r=0;r<s.tableSize;r++){var n=Y.get(a+r);n&&E.set(n,a+r)}o=Se(e.exports,c),t.allowUndefined||$e();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(m(h))}return WebAssembly.instantiate(e,p).then((function(e){return m(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return m(h=new WebAssembly.Instance(d,p))}return t.loadAsync?s.neededDynlibs.reduce((function(e,s){return e.then((function(){return Ae(s,t)}))}),Promise.resolve()).then((function(){return r()})):(s.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var s,n=Ee.loadedLibNames[e];if(n)return s=Ee.loadedLibs[n],t.global&&!s.global&&(s.global=!0,"loading"!==s.module&&xe(s.module)),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,t.loadAsync?Promise.resolve(n):n;function i(e){if(t.fs){var s=t.fs.readFile(e,{encoding:"binary"});return s instanceof Uint8Array||(s=new Uint8Array(s)),t.loadAsync?Promise.resolve(s):s}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var s=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(s):s}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function c(e){s.global&&xe(e),s.module=e}return n=Ee.nextHandle++,s={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=n,Ee.loadedLibs[n]=s,t.loadAsync?o().then((function(e){return c(e),n})):(c(o()),n)}function $e(){for(var e in de)if(0==de[e].value){var t=Pe(e,!0);"function"==typeof t?de[e].value=S(t,t.sig):"number"==typeof t?de[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=we;var ke,Fe=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Me(){ce()}r._abort=Me,Me.sig="v",ke=a?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var s;if(0===e)s=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;s=ke()}return q[t>>2]=s/1e3|0,q[t+4>>2]=s%1e3*1e3*1e3|0,0}function Ie(e){try{return A.grow(e-I.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Ne(e){We(e)}function Ce(e){}Te.sig="iii",Ne.sig="vi",Ce.sig="vi";var Re,qe={__heap_base:we,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:Fe,__table_base:1,abort:Me,clock_gettime:Te,emscripten_memcpy_big:function(e,t,s){C.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=C.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var n=s*(1+.2/r);if(n=Math.min(n,e+100663296),Ie(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ne,memory:A,setTempRet0:Ce,tree_sitter_log_callback:function(e,t){if(lt){const s=U(t);lt(s,0!==e)}},tree_sitter_parse_callback:function(e,t,s,r,n){var i=at(t,{row:s,column:r});"string"==typeof i?(k(n,i.length,"i32"),function(e,t,s){if(void 0===s&&(s=2147483647),s<2)return 0;for(var r=(s-=2)<2*e.length?s/2:e.length,n=0;n<r;++n){var i=e.charCodeAt(n);R[t>>1]=i,t+=2}R[t>>1]=0}(i,e,10240)):k(n,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,fe),"GOT.func":new Proxy(qe,fe)};function t(e,t){var s=e.exports;s=Se(s,1024),r.asm=s;var n,i=ge(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),xe(s),n=r.asm.__wasm_call_ctors,X.unshift(n),oe()}function s(e){t(e.instance,e.module)}function n(t){return function(){if(!P&&(u||p)){if("function"==typeof fetch&&!me(ae))return fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return he(ae)}));if(y)return new Promise((function(e,t){y(ae,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ae)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){x("failed to asynchronously prepare wasm: "+e),ce(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return x("Module.instantiateWasm callback failed with error: "+e),!1}P||"function"!=typeof WebAssembly.instantiateStreaming||pe(ae)||me(ae)||"function"!=typeof fetch?n(s):fetch(ae,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return x("wasm streaming compile failed: "+e),x("falling back to ArrayBuffer instantiation"),n(s)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Be=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Be=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Ve=r.stackRestore=function(){return(Ve=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var s;return s=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?C.set(e,s):C.set(new Uint8Array(e),s),s},ne=function e(){Re||He(),Re||(ne=e)};var Ke=!1;function He(e){function t(){Re||(Re=!0,r.calledRun=!0,M||(te=!0,ye(X),ye(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Je&&function(e){var t=r._main;if(t){var s=(e=e||[]).length+1,n=Ue(4*(s+1));q[n>>2]=H(h);for(var i=1;i<s;i++)q[(n>>2)+i]=H(e[i-1]);q[(n>>2)+s]=0;try{We(t(s,n),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),x("exception thrown: "+o),d(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;ye(ee)}()))}e=e||m,se>0||!Ke&&(function(){if(O.length){if(!g)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),$e()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),$e()}else $e()}(),Ke=!0,se>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Z.unshift(e);var e;ye(Z)}(),se>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function We(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),M=!0),d(e,new Ge(e)))}if(r.run=He,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Je=!0;r.noInitialRun&&(Je=!1),He();const Ye=r,Ze={},Xe=4,Qe=5*Xe,et=2*Xe,tt=2*Xe+2*et,st={row:0,column:0},rt=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,ct,at,lt;class ut{static init(){ct=Ye._ts_init(),it=F(ct,"i32"),ot=F(ct+Xe,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=F(ct,"i32"),this[1]=F(ct+Xe,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const s=Ye._ts_language_version(t);if(s<ot||it<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ye._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)at=(t,s,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");at=e}this.logCallback?(lt=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(lt=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s&&s.includedRanges){r=s.includedRanges.length;let e=n=Ye._calloc(r,tt);for(let t=0;t<r;t++)Pt(e,s.includedRanges[t]),e+=tt}const i=Ye._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw at=null,lt=null,new Error("Parsing failed");const o=new pt(Ze,i,this.language,at);return at=null,lt=null,o}reset(){Ye._ts_parser_reset(this[0])}setTimeoutMicros(e){Ye._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ye._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,s,r){_t(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=Ye._ts_tree_copy(this[0]);return new pt(Ze,e,this.language,this.textCallback)}delete(){Ye._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=ct;jt(t,e.startPosition),jt(t+=et,e.oldEndPosition),jt(t+=et,e.newEndPosition),k(t+=et,e.startIndex,"i32"),k(t+=Xe,e.oldEndIndex,"i32"),k(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ye._ts_tree_edit_wasm(this[0])}get rootNode(){return Ye._ts_tree_root_node_wasm(this[0]),xt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ye._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=F(ct,"i32"),s=F(ct+Xe,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=Ot(e),e+=tt;Ye._free(s)}return r}}class mt{constructor(e,t){_t(e),this.tree=t}get typeId(){return bt(this),Ye._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ye._ts_node_end_point_wasm(this.tree[0]),St(ct)}get endIndex(){return bt(this),Ye._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ye._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ye._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ye._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ye._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ye._ts_node_child_wasm(this.tree[0],e),xt(this.tree)}namedChild(e){return bt(this),Ye._ts_node_named_child_wasm(this.tree[0],e),xt(this.tree)}childForFieldId(e){return bt(this),Ye._ts_node_child_by_field_id_wasm(this.tree[0],e),xt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ye._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ye._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){bt(this),Ye._ts_node_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Xe,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=xt(this.tree,s),s+=Qe;Ye._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ye._ts_node_named_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=xt(this.tree,s),s+=Qe;Ye._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=st),s||(s=st);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=Ye._malloc(Xe*r.length);for(let e=0,t=r.length;e<t;e++)k(i+e*Xe,r[e],"i32");bt(this),Ye._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=F(ct,"i32"),c=F(ct+Xe,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=xt(this.tree,e),e+=Qe}return Ye._free(c),Ye._free(i),a}get nextSibling(){return bt(this),Ye._ts_node_next_sibling_wasm(this.tree[0]),xt(this.tree)}get previousSibling(){return bt(this),Ye._ts_node_prev_sibling_wasm(this.tree[0]),xt(this.tree)}get nextNamedSibling(){return bt(this),Ye._ts_node_next_named_sibling_wasm(this.tree[0]),xt(this.tree)}get previousNamedSibling(){return bt(this),Ye._ts_node_prev_named_sibling_wasm(this.tree[0]),xt(this.tree)}get parent(){return bt(this),Ye._ts_node_parent_wasm(this.tree[0]),xt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let s=ct+Qe;return k(s,e,"i32"),k(s+Xe,t,"i32"),Ye._ts_node_descendant_for_index_wasm(this.tree[0]),xt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let s=ct+Qe;return k(s,e,"i32"),k(s+Xe,t,"i32"),Ye._ts_node_named_descendant_for_index_wasm(this.tree[0]),xt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let s=ct+Qe;return jt(s,e),jt(s+et,t),Ye._ts_node_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let s=ct+Qe;return jt(s,e),jt(s+et,t),Ye._ts_node_named_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}walk(){return bt(this),Ye._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Ze,this.tree)}toString(){bt(this);const e=Ye._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var s=C[e++>>0];if(!s)return t;t+=String.fromCharCode(s)}}(e);return Ye._free(e),t}}class ht{constructor(e,t){_t(e),this.tree=t,wt(this)}delete(){Et(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,ct+Qe),Ye._ts_tree_cursor_reset_wasm(this.tree[0]),wt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return Et(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),St(ct)}get endPosition(){return Et(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),St(ct)}get startIndex(){return Et(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),xt(this.tree)}currentFieldId(){return Et(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return wt(this),1===e}gotoNextSibling(){Et(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return wt(this),1===e}gotoParent(){Et(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return wt(this),1===e}}class dt{constructor(e,t){_t(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ye._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ye._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ye._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ye._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ye._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=K(e),r=Ye._malloc(s+1);G(e,r,s+1);const n=Ye._ts_language_symbol_for_name(this[0],r,s,t);return Ye._free(r),n||null}get nodeTypeCount(){return Ye._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ye._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ye._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ye._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=K(e),s=Ye._malloc(t+1);G(e,s,t+1);const r=Ye._ts_query_new(this[0],s,t,ct,ct+Xe);if(!r){const t=F(ct+Xe,"i32"),r=U(s,F(ct,"i32")).length,n=e.substr(r,100).split("\n")[0];let i,o=n.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${n}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${n}'...`),o=""}throw i.index=r,i.length=o.length,Ye._free(s),i}const n=Ye._ts_query_string_count(r),i=Ye._ts_query_capture_count(r),o=Ye._ts_query_pattern_count(r),c=new Array(i),a=new Array(n);for(let e=0;e<i;e++){const t=Ye._ts_query_capture_name_for_id(r,e,ct),s=F(ct,"i32");c[e]=U(t,s)}for(let e=0;e<n;e++){const t=Ye._ts_query_string_value_for_id(r,e,ct),s=F(ct,"i32");a[e]=U(t,s)}const l=new Array(o),u=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ye._ts_query_predicates_for_pattern(r,e,ct),s=F(ct,"i32");m[e]=[],h[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=F(i,"i32"),s=F(i+=Xe,"i32");if(i+=Xe,1===t)n.push({type:"capture",name:c[s]});else if(2===t)n.push({type:"string",value:a[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s=!0;switch(t){case"not-eq?":s=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${n[1].value}"`);if("capture"===n[2].type){const t=n[1].name,r=n[2].name;h[e].push((function(e){let n,i;for(const s of e)s.name===t&&(n=s.node),s.name===r&&(i=s.node);return void 0===n||void 0===i||n.text===i.text===s}))}else{const t=n[1].name,r=n[2].value;h[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===r===s;return!0}))}break;case"not-match?":s=!1;case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${n[2].value}.`);const r=n[1].name,i=new RegExp(n[2].value);h[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===s;return!0}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?u:p;o[e]||(o[e]={}),o[e][n[1].value]=n[2]?n[2].value:null;break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(p[e])}return Ye._free(s),new ft(Ze,r,c,h,m,Object.freeze(l),Object.freeze(u),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=s(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>nt.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new dt(Ze,r)}))}}class ft{constructor(e,t,s,r,n,i,o,c){_t(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=c,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,s,r){t||(t=st),s||(s=st),r||(r={});let n=r.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,n);const i=F(ct,"i32"),o=F(ct+Xe,"i32"),c=F(ct+2*Xe,"i32"),a=new Array(i);this.exceededMatchLimit=!!c;let l=0,u=o;for(let t=0;t<i;t++){const s=F(u,"i32"),r=F(u+=Xe,"i32");u+=Xe;const n=new Array(r);if(u=gt(this,e.tree,u,n),this.textPredicates[s].every((e=>e(n)))){a[l++]={pattern:s,captures:n};const e=this.setProperties[s];e&&(a[t].setProperties=e);const r=this.assertedProperties[s];r&&(a[t].assertedProperties=r);const i=this.refutedProperties[s];i&&(a[t].refutedProperties=i)}}return a.length=l,Ye._free(o),a}captures(e,t,s,r){t||(t=st),s||(s=st),r||(r={});let n=r.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,n);const i=F(ct,"i32"),o=F(ct+Xe,"i32"),c=F(ct+2*Xe,"i32"),a=[];this.exceededMatchLimit=!!c;const l=[];let u=o;for(let t=0;t<i;t++){const t=F(u,"i32"),s=F(u+=Xe,"i32"),r=F(u+=Xe,"i32");if(u+=Xe,l.length=s,u=gt(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),a.push(e)}}return Ye._free(o),a}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function yt(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function gt(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=F(s,"i32"),o=xt(t,s+=Xe);s+=Qe,r[n]={name:e.captureNames[i],node:o}}return s}function _t(e){if(e!==Ze)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=ct;k(t,e.id,"i32"),k(t+=Xe,e.startIndex,"i32"),k(t+=Xe,e.startPosition.row,"i32"),k(t+=Xe,e.startPosition.column,"i32"),k(t+=Xe,e[0],"i32")}function xt(e,t=ct){const s=F(t,"i32");if(0===s)return null;const r=F(t+=Xe,"i32"),n=F(t+=Xe,"i32"),i=F(t+=Xe,"i32"),o=F(t+=Xe,"i32"),c=new mt(Ze,e);return c.id=s,c.startIndex=r,c.startPosition={row:n,column:i},c[0]=o,c}function Et(e,t=ct){k(t+0*Xe,e[0],"i32"),k(t+1*Xe,e[1],"i32"),k(t+2*Xe,e[2],"i32")}function wt(e){e[0]=F(ct+0*Xe,"i32"),e[1]=F(ct+1*Xe,"i32"),e[2]=F(ct+2*Xe,"i32")}function jt(e,t){k(e,t.row,"i32"),k(e+Xe,t.column,"i32")}function St(e){return{row:F(e,"i32"),column:F(e+Xe,"i32")}}function Pt(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),k(e+=et,t.startIndex,"i32"),k(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=St(e),e+=et,t.endPosition=St(e),e+=et,t.startIndex=F(e,"i32"),e+=Xe,t.endIndex=F(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ut.prototype))Object.defineProperty(i.prototype,e,{value:ut.prototype[e],enumerable:!1,writable:!1});i.Language=dt,r.onRuntimeInitialized=()=>{ut.init(),t()}})))}}return i}();e.exports=n},3078:()=>{},4142:()=>{},1212:(e,t,s)=>{e.exports=s(8411)},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var c,a=r(t),l=i(a),u=n(o,l);if(e&&s!=s){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?s:a?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var c=n(t),a=o.f,l=i.f,u=0;u<c.length;u++){var p=c[u];r(e,p)||s&&r(s,p)||a(e,p,l(t,p))}}},2871:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},7525:(e,t,s)=>{"use strict";var r=s(1063),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,s)=>{"use strict";var r=s(1063),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100: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}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,s)=>{"use strict";var r,n,i=s(1063),o=s(7868),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,c){i&&(o?o(e,t):r(e,"stack",n(s,c)))}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,s)=>{"use strict";var r=s(1063),n=s(7013),i=s(9344),o=s(2769),c=s(4543).f,a=s(8696),l=s(8099),u=s(4572),p=s(3999),m=s(701),h=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,d,f,y,g,_,v,b,x=e.target,E=e.global,w=e.stat,j=e.proto,S=E?r:w?r[x]:r[x]&&r[x].prototype,P=E?l:l[x]||p(l,x,{})[x],O=P.prototype;for(f in t)n=!(s=a(E?f:x+(w?".":"#")+f,e.forced))&&S&&m(S,f),g=P[f],n&&(_=e.dontCallGetSet?(b=c(S,f))&&b.value:S[f]),y=n&&_?_:t[f],(s||j||typeof g!=typeof y)&&(v=e.bind&&n?u(y,r):e.wrap&&n?h(y):j&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(v,"sham",!0),p(P,f,v),j&&(m(l,d=x+"Prototype")||p(l,d,{}),p(l[d],f,y),e.real&&O&&(s||!O[f])&&p(O,f,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,c=n(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(1063),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),c=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,c)||n(e,"@@iterator")||o[r(e)]}},1613:(e,t,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),c=s(967),a=TypeError;e.exports=function(e,t){var s=arguments.length<2?c(e):t;if(n(s))return i(r(s,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},1063:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,c=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,c;return i&&r(o=t.constructor)&&o!==s&&n(c=o.prototype)&&c!==s.prototype&&i(e,c),e}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),c=s(1063),a=s(262),l=s(3999),u=s(701),p=s(3753),m=s(4275),h=s(5241),d="Object already initialized",f=c.TypeError,y=c.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,r=function(e,t){if(g.has(e))throw new f(d);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 _=m("state");h[_]=!0,r=function(e,t){if(u(e,_))throw new f(d);return t.facade=e,l(e,_,t),t},n=function(e){return u(e,_)?e[_]:{}},i=function(e){return u(e,_)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!a(t)||(s=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return s}}}},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2769: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}},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=a[c(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,c(e))}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),c=s(2877),a=s(8130),l=s(4317),u=s(1613),p=s(967),m=s(1743),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;e.exports=function(e,t,s){var y,g,_,v,b,x,E,w=s&&s.that,j=!(!s||!s.AS_ENTRIES),S=!(!s||!s.IS_RECORD),P=!(!s||!s.IS_ITERATOR),O=!(!s||!s.INTERRUPTED),A=r(t,w),$=function(e){return y&&m(y,"normal",e),new d(!0,e)},k=function(e){return j?(i(e),O?A(e[0],e[1],$):A(e[0],e[1])):O?A(e,$):A(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw new h(o(e)+" is not iterable");if(c(g)){for(_=0,v=a(e);v>_;_++)if((b=k(e[_]))&&l(f,b))return b;return new d(!1)}y=u(e,g)}for(x=S?e.next:y.next;!(E=n(x,y)).done;){try{b=k(E.value)}catch(e){m(y,"throw",e)}if("object"==typeof b&&b&&l(f,b))return b}return new d(!1)}},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,c;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw s;if(c)throw o;return n(o),s}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),c=s(6625),a=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),c[u]=a,e}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),c=s(2769),a=s(1926),l=s(3671),u=s(3491),p=s(1811),m=s(3999),h=s(3508),d=s(8655),f=s(6625),y=s(2621),g=o.PROPER,_=o.CONFIGURABLE,v=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),E="keys",w="values",j="entries",S=function(){return this};e.exports=function(e,t,s,o,d,y,P){a(s,t,o);var O,A,$,k=function(e){if(e===d&&N)return N;if(!b&&e&&e in T)return T[e];switch(e){case E:case w:case j:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",M=!1,T=e.prototype,I=T[x]||T["@@iterator"]||d&&T[d],N=!b&&I||k(d),C="Array"===t&&T.entries||I;if(C&&(O=l(C.call(new e)))!==Object.prototype&&O.next&&(i||l(O)===v||(u?u(O,v):c(O[x])||h(O,x,S)),p(O,F,!0,!0),i&&(f[F]=S)),g&&d===w&&I&&I.name!==w&&(!i&&_?m(T,"name",w):(M=!0,N=function(){return n(I,this)})),d)if(A={values:k(w),keys:y?N:k(E),entries:k(j)},P)for($ in A)(b||M||!($ in T))&&h(T,$,A[$]);else r({target:t,proto:!0,forced:b||M},A);return i&&!P||T[x]===N||h(T,x,N,{name:d}),f[t]=N,A}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),c=s(2769),a=s(262),l=s(5780),u=s(3671),p=s(3508),m=s(8655),h=s(4871),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):f=!0),!a(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:h&&(r=l(r)),c(r[d])||p(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},6625:e=>{"use strict";e.exports={}},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),c=s(5241),a=s(3489),l=s(9619),u=s(4275),p="prototype",m="script",h=u("IE_PROTO"),d=function(){},f=function(e){return"<"+m+">"+e+"</"+m+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?y(r):(t=l("iframe"),s="java"+m+":",t.style.display="none",a.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(r);for(var n=o.length;n--;)delete g[p][o[n]];return g()};c[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(d[p]=n(e),s=new d,d[p]=null,s[h]=e):s=g(),void 0===t?s:i.f(s,t)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),c=s(3273),a=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=c(t),n=a(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),c=s(5341),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",h="writable";t.f=r?i?function(e,t,s){if(o(e),t=c(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&h in s&&!s[h]){var r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:p in s?s[p]:r[p],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=c(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(e[t]=s.value),e}},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),c=s(3273),a=s(5341),l=s(701),u=s(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=a(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),c=s(2871),a=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=i(e);if(r(t,a))return t[a];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,c=s(5241),a=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(c,s)&&n(r,s)&&a(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||a(u,s));return u}},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(7235),i=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return n(s),i(r),t?e(s,r):s.__proto__=r,s}}():void 0)},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,c;if("string"===t&&n(s=e.toString)&&!i(c=r(s,e)))return c;if(n(s=e.valueOf)&&!i(c=r(s,e)))return c;if("string"!==t&&n(s=e.toString)&&!i(c=r(s,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),c=s(7235),a=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),s=o.f;return s?a(t,s(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5426:(e,t,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),c=s(9559),a=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,a)||n(u,a,{configurable:!0,value:t}),l&&!r&&i(u,"toString",c))}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,s)=>{"use strict";var r=s(1063),n=s(7525),i="__core-js_shared__",o=r[i]||n(i,{});e.exports=o},8141:(e,t,s)=>{"use strict";var r=s(4871),n=s(3753);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),c=r("".charAt),a=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,p=i(o(t)),m=n(s),h=p.length;return m<0||m>=h?e?"":void 0:(r=a(p,m))<55296||r>56319||m+1===h||(u=a(p,m+1))<56320||u>57343?e?c(p,m):r:e?l(p,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},4603:(e,t,s)=>{"use strict";var r=s(4432),n=s(1203),i=s(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),c=s(9258),a=s(8655),l=TypeError,u=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,a=o(e,u);if(a){if(void 0===t&&(t="default"),s=r(a,e,t),!n(s)||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,s)=>{"use strict";var r=s(1063),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,s)=>{"use strict";var r=s(1063),n=s(8141),i=s(701),o=s(1268),c=s(4603),a=s(7460),l=r.Symbol,u=n("wks"),p=a?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=c&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),c=s(3491),a=s(7464),l=s(5516),u=s(3507),p=s(4879),m=s(8148),h=s(4279),d=s(5024),f=s(4871);e.exports=function(e,t,s,y){var g="stackTraceLimit",_=y?2:1,v=e.split("."),b=v[v.length-1],x=r.apply(null,v);if(x){var E=x.prototype;if(!f&&n(E,"cause")&&delete E.cause,!s)return x;var w=r("Error"),j=t((function(e,t){var s=p(y?t:e,void 0),r=y?new x(e):new x;return void 0!==s&&i(r,"message",s),h(r,j,r.stack,2),this&&o(E,this)&&u(r,this,j),arguments.length>_&&m(r,arguments[_]),r}));if(j.prototype=E,"Error"!==b?c?c(j,w):a(j,w,{name:!0}):d&&g in x&&(l(j,x,g),l(j,x,"prepareStackTrace")),a(j,x),!f)try{E.name!==b&&i(E,"name",b),E.constructor=j}catch(e){}return j}}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),c=s(6453),a="AggregateError",l=n(a),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],a,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:c(a,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},3085:(e,t,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),c=s(7464),a=s(5780),l=s(3999),u=s(480),p=s(8148),m=s(4279),h=s(208),d=s(4879),f=s(8655)("toStringTag"),y=Error,g=[].push,_=function(e,t){var s,r=n(v,this);o?s=o(new y,r?i(this):v):(s=r?this:a(v),l(s,f,"Error")),void 0!==t&&l(s,"message",d(t)),m(s,_,s.stack,1),arguments.length>2&&p(s,arguments[2]);var c=[];return h(e,g,{that:c}),l(s,"errors",c),s};o?o(_,y):c(_,y,{name:!0});var v=_.prototype=a(y.prototype,{constructor:u(1,_),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:_})},5695:(e,t,s)=>{"use strict";s(3085)},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),c=s(9989).f,a=s(164),l=s(877),u=s(4871),p=s(5024),m="Array Iterator",h=o.set,d=o.getterFor(m);e.exports=a(Array,"Array",(function(e,t){h(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},484:(e,t,s)=>{"use strict";var r=s(9098),n=s(1063),i=s(7013),o=s(6453),c="WebAssembly",a=n[c],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},p=function(e,t){if(a&&a[e]){var s={};s[e]=o(c+"."+e,t,l),r({target:c,stat:!0,constructor:!0,arity:1,forced:l},s)}};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)}}))},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),c=s(877),a="String Iterator",l=i.set,u=i.getterFor(a);o(String,"String",(function(e){l(this,{type:a,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?c(void 0,!0):(e=r(s,n),t.index+=e.length,c(e,!1))}))},5442:(e,t,s)=>{"use strict";s(5695)},85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(1063),i=s(1811),o=s(6625);for(var c in r)i(n[c],c),o[c]=o.Array},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})();var r={};return(()=>{"use strict";s.r(r),s.d(r,{detect:()=>Uy,detectionRegExp:()=>Vy,mediaTypes:()=>By,namespace:()=>Gy,parse:()=>zy});var e={};s.r(e),s.d(e,{hasElementSourceMap:()=>cn,includesClasses:()=>ln,includesSymbols:()=>an,isAnnotationElement:()=>tn,isArrayElement:()=>Zr,isBooleanElement:()=>Jr,isCommentElement:()=>sn,isElement:()=>Gr,isLinkElement:()=>Qr,isMemberElement:()=>Xr,isNullElement:()=>Wr,isNumberElement:()=>Hr,isObjectElement:()=>Yr,isParseResultElement:()=>rn,isPrimitiveElement:()=>on,isRefElement:()=>en,isSourceMapElement:()=>nn,isStringElement:()=>Kr});var t={};s.r(t),s.d(t,{isJSONReferenceElement:()=>Ic,isJSONSchemaElement:()=>Tc,isLinkDescriptionElement:()=>Cc,isMediaElement:()=>Nc});var n={};s.r(n),s.d(n,{isBooleanJsonSchemaElement:()=>Cl,isCallbackElement:()=>yl,isComponentsElement:()=>gl,isContactElement:()=>_l,isExampleElement:()=>vl,isExternalDocumentationElement:()=>bl,isHeaderElement:()=>xl,isInfoElement:()=>El,isLicenseElement:()=>wl,isLinkElement:()=>jl,isMediaTypeElement:()=>Bl,isOpenApi3_0Element:()=>Pl,isOpenapiElement:()=>Sl,isOperationElement:()=>Ol,isParameterElement:()=>Al,isPathItemElement:()=>$l,isPathsElement:()=>kl,isReferenceElement:()=>Fl,isRequestBodyElement:()=>Ml,isResponseElement:()=>Tl,isResponsesElement:()=>Il,isSchemaElement:()=>Nl,isSecurityRequirementElement:()=>Rl,isSecuritySchemeElement:()=>ql,isServerElement:()=>Dl,isServerVariableElement:()=>Ll,isServersElement:()=>Vl});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(s){return 0===arguments.length||o(s)?t:e.apply(this,arguments)}}function a(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return o(s)?t:c((function(t){return e(s,t)}));default:return o(s)&&o(r)?t:o(s)?c((function(t){return e(t,r)})):o(r)?c((function(t){return e(s,t)})):e(s,r)}}}function l(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return o(s)?t:a((function(t,r){return e(s,t,r)}));case 2:return o(s)&&o(r)?t:o(s)?a((function(t,s){return e(t,r,s)})):o(r)?a((function(t,r){return e(s,t,r)})):c((function(t){return e(s,r,t)}));default:return o(s)&&o(r)&&o(n)?t:o(s)&&o(r)?a((function(t,s){return e(t,s,n)})):o(s)&&o(n)?a((function(t,s){return e(t,r,s)})):o(r)&&o(n)?a((function(t,r){return e(s,t,r)})):o(s)?c((function(t){return e(t,r,n)})):o(r)?c((function(t){return e(s,t,n)})):o(n)?c((function(t){return e(s,r,t)})):e(s,r,n)}}}s.r(i),s.d(i,{isBooleanJsonSchemaElement:()=>mf,isCallbackElement:()=>Vd,isComponentsElement:()=>Ud,isContactElement:()=>zd,isExampleElement:()=>Gd,isExternalDocumentationElement:()=>Kd,isHeaderElement:()=>Hd,isInfoElement:()=>Wd,isJsonSchemaDialectElement:()=>Jd,isLicenseElement:()=>Yd,isLinkElement:()=>Zd,isMediaTypeElement:()=>gf,isOpenApi3_1Element:()=>Qd,isOpenapiElement:()=>Xd,isOperationElement:()=>ef,isParameterElement:()=>tf,isPathItemElement:()=>sf,isPathItemElementExternal:()=>rf,isPathsElement:()=>nf,isReferenceElement:()=>of,isReferenceElementExternal:()=>cf,isRequestBodyElement:()=>af,isResponseElement:()=>lf,isResponsesElement:()=>uf,isSchemaElement:()=>pf,isSecurityRequirementElement:()=>hf,isSecuritySchemeElement:()=>df,isServerElement:()=>ff,isServerVariableElement:()=>yf});const u=a((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function m(e){return"[object String]"===Object.prototype.toString.call(e)}const h=a((function(e,t){var s=e<0?t.length+e:e;return m(t)?t.charAt(s):t[s]}));const d=a((function(e,t){if(null!=t)return p(e)?h(e,t):t[e]}));const f=l((function(e,t,s){return u(e,d(t,s))}));var y=a((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const g=y;function _(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=c((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!m(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,s){return function(r,n,i){if(b(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function j(e,t,s,r){return s[r](e,t)}const S=E(_,j,w);function P(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!v(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function O(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const A=function(){return this.xf["@@transducer/init"]()},$=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const F=function(e){return function(t){return new k(e,t)}};function M(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,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,c,a,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 T(e,t,s){return function(){for(var r=[],n=0,i=e,c=0,a=!1;c<t.length||n<arguments.length;){var l;c<t.length&&(!o(t[c])||n>=arguments.length)?l=t[c]:(l=arguments[n],n+=1),r[c]=l,o(l)?a=!0:i-=1,c+=1}return!a&&i<=0?s.apply(this,r):M(Math.max(0,i),T(e,r,s))}}const I=a((function(e,t){return 1===e?c(t):M(e,T(e,[],t))}));function N(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const R=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return N("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},V="function"!=typeof Object.keys||L?c((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=L&&R(e);for(t in e)!N(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=D.length-1;s>=0;)N(t=D[s],e)&&!B(r,t)&&(r[r.length]=t),s-=1;return r})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=V;const z=a(P(["fantasy-land/map","map"],F,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return I(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _((function(s,r){return s[r]=e(t[r]),s}),{},U(t));default:return O(e,t)}})));const G=a((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(s){return e(s)(t(s))}:S((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,z(s,t))}),[],e)}));const K=a((function(e,t){var s=I(e,t);return I(e,(function(){return _(G,z(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const H=c((function(e){return K(e.length,e)}));const W=H(c((function(e){return!e})));function J(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Y(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,s,r){var n=J(e);function i(e,t){return ee(e,t,s.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),J(t),n)}function ee(e,t,s,r){if(Z(e,t))return!0;var n,i,o=X(e);if(o!==X(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||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(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 c=s.length-1;c>=0;){if(s[c]===e)return r[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),s.concat([e]),r.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 a=U(e);if(a.length!==U(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!N(p,t)||!ee(t[p],e[p],l,u))return!1;c-=1}return!0}const te=a((function(e,t){return ee(e,t,[],[])}));const se=c((function(e){return function(){return e}}));const re=se(void 0);const ne=te(re());const ie=W(ne);var oe=s(8326);function ce(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ae(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const le=a((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function ue(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function pe(e,t,s,r){return e["@@transducer/result"](s[r](le(e["@@transducer/step"],e),t))}const me=E(ae,pe,ue);var he=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 de(e){return new he(e)}const fe=l((function(e,t,s){return me("function"==typeof e?de(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ge=l(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const _e=c(ye("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,fe(ce,arguments[0],_e(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(s){return 0===arguments.length?t:Z(e,s)};default:return Z(e,t)}};const xe=be;function Ee(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(te(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function we(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 je=function(e){return(e<10?"0":"")+e};const Se="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+je(e.getUTCMonth()+1)+"-"+je(e.getUTCDate())+"T"+je(e.getUTCHours())+":"+je(e.getUTCMinutes())+":"+je(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Pe(e){return"[object Object]"===Object.prototype.toString.call(e)}var Oe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Oe(e,t)}}const $e=a(P(["fantasy-land/filter","filter"],Ae,(function(e,t){return Pe(t)?_((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},U(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const ke=a((function(e,t){return $e((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Fe(e,t){var s=function(s){var r=t.concat([e]);return Ee(s,r)?"<Circular>":Fe(s,r)},r=function(e,t){return O((function(t){return we(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(s,e).join(", ")+"))";case"[object Array]":return"["+O(s,e).concat(r(e,ke((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):we(Se(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,U(e)).join(", ")+"}"}}const Me=c((function(e){return Fe(e,[])}));const Te=a((function(e,t){return e.map((function(e){for(var s,r=t,n=0;n<e.length;){if(null==r)return;s=e[n],r=p(s)?h(s,r):r[s],n+=1}return r}))}));const Ie=a((function(e,t){return Te([e],t)[0]}));const Ne=l((function(e,t,s){return e(Ie(t,s))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Re=a((function(e,t){return e&&t}));const qe=a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:H(Re)(e,t)}));const De=te(null);const Le=W(De);function Be(e){return Be="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},Be(e)}const Ve=function(e){return"object"===Be(e)};const Ue=I(1,qe(Le,Ve));const ze=a((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Me(e),o=s(i,Me(t));return void 0!==o&&o===i?e:t}));const Ge=a((function(e,t){return z(d(e),t)}));const Ke=c((function(e){return I(fe(ze,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const He=I(1,ve(X,xe("GeneratorFunction")));const We=I(1,ve(X,xe("AsyncFunction")));const Je=Ke([ve(X,xe("Function")),He,We]);var Ye=ve(X,xe("Object")),Ze=ve(Me,te(Me(Object))),Xe=Ne(qe(Je,Ze),["constructor"]);const Qe=I(1,(function(e){if(!Ue(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Xe(t)}));class et extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class st extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const rt=st;class nt extends oe.wE{constructor(e,t,s){super(e,t,s),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(ne(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const it=nt;class ot extends oe.wE{constructor(e,t,s){super(e,t,s),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 oe.wE([e.start.row,e.start.column,e.start.char]),s=new oe.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const ct=ot;class at extends oe.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",ct)}}const lt=new at,ut=e=>{const t=new at;return Qe(e)&&t.use(e),t},pt=lt;const mt=I(1,ve(X,xe("String"))),ht=s.p+"23aac571c96605dc25219087ad291441.wasm",dt=globalThis.fetch;Je(dt)&&(globalThis.fetch=(...e)=>mt(e[0])&&e[0].endsWith("tree-sitter.wasm")?dt.apply(globalThis,[ht,_e(e)]):dt.apply(globalThis,e));var ft=s(3833),yt=s(1212);const gt=class extends yt{constructor(e,t,s){if(super(e,t,s),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!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,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 vt=_t,bt=s.p+"d396281e11774e0afa7a40d620779b6d.wasm";let xt=null,Et=null;const wt=async e=>{if(null===xt&&null===Et)Et=ft.init().then((()=>ft.Language.load(bt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{Et=null})),xt=await Et;else if(null===xt&&null!==Et)xt=await Et;else if(null===xt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return xt.parse(e)};function jt(e,t,s){if(s||(s=new St),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r,n=function(r){var n=s.get(e);if(n)return n;for(var i in s.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?jt(e[i],!0,s):e[i]);return r};switch(X(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return r=e,new RegExp(r.source,r.flags?r.flags:(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.sticky?"y":"")+(r.unicode?"u":"")+(r.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var St=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const s=this.hash(e);let r=this.map[s];r||(this.map[s]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const s=this.map[t];for(let t=0;t<s.length;t+=1){const r=s[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),s=this.map[t];if(s)for(let t=0;t<s.length;t+=1){const r=s[t];if(r[0]===e)return r[1]}},e}();const Pt=c((function(e){return null!=e&&"function"==typeof e.clone?e.clone():jt(e,!0)}));const Ot=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const At=class extends Ot{};const $t=class extends At{};const kt=class extends $t{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Ft=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};let Mt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Tt=class extends Ft{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const It=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Nt=class extends It{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Mt.Mapping}};const Ct=class extends It{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Mt.Sequence}};const Rt=class extends It{static uri="tag:yaml.org,2002:str"};const qt=l((function(e,t,s){return u(e,Ie(t,s))}));const Dt=c((function(e){return I(e.length,e)}));var Lt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Bt=c("function"==typeof String.prototype.trim&&!Lt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Lt+"]["+Lt+"]*"),s=new RegExp("["+Lt+"]["+Lt+"]*$");return e.replace(t,"").replace(s,"")});const Vt=a((function(e,t){return I(e+1,(function(){var s=arguments[e];if(null!=s&&Ce(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(s)+' does not have a method named "'+t+'"')}))}));const Ut=Vt(1,"split");const zt=Vt(1,"join");const Gt=c((function(e){return m(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Gt(arguments))}const Ht=I(4,(function(e,t,s,r){return me(e("function"==typeof t?de(t):t),s,r)}));const Wt=a((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Me(t)+" is not an array")}if(m(e)){if(m(t))return e+t;throw new TypeError(Me(t)+" is not a string")}if(null!=e&&Ce(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Ce(e.concat))return e.concat(t);throw new TypeError(Me(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Jt=te("");const Yt=a((function(e,t){return I(fe(ze,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,O((function(e){return e.apply(r,s)}),t))}))}));function Zt(e){return e}const Xt=c(Zt);const Qt=I(1,ve(X,xe("Number")));var es=qe(Qt,isFinite);var ts=I(1,es);const ss=Je(Number.isFinite)?I(1,le(Number.isFinite,Number)):ts;var rs=qe(ss,Yt(te,[Math.floor,Xt]));var ns=I(1,rs);const is=Je(Number.isInteger)?I(1,le(Number.isInteger,Number)):ns;const os=c((function(e){return I(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const cs=W(ss);const as=I(1,qe(Qt,a((function(e,t){return e>t}))(0)));var ls=Dt((function(e,t){var s=Number(t);if(s!==t&&(s=0),as(s))throw new RangeError("repeat count must be non-negative");if(cs(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),us=os(Vt(1,"repeat"));const ps=Je(String.prototype.repeat)?us:ls;const ms=l((function(e,t,s){return s.replace(e,t)}));var hs=ms(/[\s\uFEFF\xA0]+$/,""),ds=Vt(0,"trimEnd");const fs=Je(String.prototype.trimEnd)?ds:hs;var ys=ms(/^[\s\uFEFF\xA0]+/,""),gs=Vt(0,"trimStart");const _s=Je(String.prototype.trimStart)?gs:ys;var vs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,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 bs(e){return function(t){return new vs(e,t)}}const xs=a(P(["dropWhile"],bs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ge(s,1/0,t)})));const Es=os(a(Ee));const ws=Dt((function(e,t){return ve(Ut(""),xs(Es(e)),zt(""))(t)}));const js=os(Wt);var Ss=s(6850);const Ps=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Os=e=>{const t=(e=>{const t=e.match(Ps),s=qt("",["groups","indentation"],t);return Jt(s)?void 0:parseInt(s,10)})(e);if(is(t))return ps(" ",t);const s=qt("",[1],e.split("\n")),r=qt(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return ps(" ",r)},As=e=>{const t=e.match(Ps),s=qt("",["groups","chomping"],t);return Jt(s)?void 0:s},$s=(e,t)=>ne(e)?`${fs(t)}\n`:"-"===e?fs(t):t,ks=e=>e.replace(/\r\n/g,"\n"),Fs=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Ms=Dt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Ts=ve(ks,Bt,Fs,Ut("\n"),z(_s),zt("\n")),Is=ve(ks,Bt,Fs,Ut("\n"),z(_s),zt("\n"),Ms("'")),Ns=ve(ks,Bt,(e=>e.replace(/\\\n\s*/g,"")),Fs,Ss.MH,Ut("\n"),z(_s),zt("\n"),Ms('"'));let Cs=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rs=function(e){return e.Flow="Flow",e.Block="Block",e}({});const qs=class{static test(e){return e.tag.kind===Mt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Cs.Plain?t=Ts(e.content):e.style===Cs.SingleQuoted?t=Is(e.content):e.style===Cs.DoubleQuoted?t=Ns(e.content):e.style===Cs.Literal?t=(e=>{const t=Os(e),s=As(e),r=ks(e),n=_e(r.split("\n")),i=Kt(z(ws(t)),z(js("\n"))),o=Ht(i,Wt,"",n);return $s(s,o)})(e.content):e.style===Cs.Folded&&(t=(e=>{const t=Os(e),s=As(e),r=ks(e),n=_e(r.split("\n")),i=Kt(z(ws(t)),z(js("\n"))),o=Ht(i,Wt,"",n),c=Fs(o);return $s(s,c)})(e.content)),s.content=t,s}static resolve(e){return e}};const Ds=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Nt),this.registerTag(new Ct),this.registerTag(new Rt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Mt.Scalar?t=Rt.uri:e.tag.kind===Mt.Sequence?t=Ct.uri:e.tag.kind===Mt.Mapping&&(t=Nt.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;qs.test(e)&&(s=qs.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new kt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),node:e.clone()});if(!r.test(s))throw new kt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Ls=class extends It{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const Bs=class extends It{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const Vs=class extends It{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const Us=class extends It{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const zs=class extends Ds{constructor(){super(),this.registerTag(new Ls,!0),this.registerTag(new Bs,!0),this.registerTag(new Vs,!0),this.registerTag(new Us,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Mt.Sequence)t=Ct.uri;else if(e.tag.kind===Mt.Mapping)t=Nt.uri;else if(e.tag.kind===Mt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Gs=class extends Ft{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Ks=class extends Gs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Hs=class extends At{},Ws=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Js=e=>Ws("mapping",e),Ys=e=>Ws("sequence",e),Zs=e=>Ws("keyValuePair",e),Xs=e=>Ws("scalar",e),Qs=e=>Ws("alias",e);const er=class{addAnchor(e){if(!(e=>Ws("anchor",e))(e.anchor))throw new Hs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Ks({content:e.content,style:Cs.Plain,styleGroup:Rs.Flow})}},tr=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},sr={},rr=e=>null==e?void 0:e.type,nr=e=>"string"==typeof rr(e),ir=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),or=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=tr,nodeTypeGetter:a=rr,nodePredicate:l=nr,nodeCloneFn:u=ir,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],g=-1,_=[],v=e;const b=[],x=[];do{g+=1;const e=g===y.length;let s;const w=e&&0!==_.length;if(e){if(s=0===x.length?void 0:b.pop(),v=d,d=x.pop(),w)if(f){v=v.slice();let e=0;for(const[t,s]of _){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of _)v[e]=t}g=h.index,y=h.keys,_=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?g:y[g],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!l(v))throw new Ot(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&x.includes(v)){b.pop();continue}const i=c(t,a(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;j=i.call(t,v,s,d,b,x)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(_.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var E;if(void 0===j&&w&&_.push([s,v]),!e)h={inArray:f,index:g,keys:y,edits:_,prev:h},f=Array.isArray(v),y=f?v:null!==(E=m[a(v)])&&void 0!==E?E:[],g=-1,_=[],d!==i&&void 0!==d&&x.push(d),d=v}while(void 0!==h);return 0!==_.length?_[_.length-1][1]:e};or[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=tr,nodeTypeGetter:a=rr,nodePredicate:l=nr,nodeCloneFn:u=ir,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],g=-1,_=[],v=e;const b=[],x=[];do{g+=1;const e=g===y.length;let s;const w=e&&0!==_.length;if(e){if(s=0===x.length?void 0:b.pop(),v=d,d=x.pop(),w)if(f){v=v.slice();let e=0;for(const[t,s]of _){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of _)v[e]=t}g=h.index,y=h.keys,_=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?g:y[g],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!l(v))throw new Ot(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&x.includes(v)){b.pop();continue}const i=c(t,a(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;j=await i.call(t,v,s,d,b,x)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(_.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var E;if(void 0===j&&w&&_.push([s,v]),!e)h={inArray:f,index:g,keys:y,edits:_,prev:h},f=Array.isArray(v),y=f?v:null!==(E=m[a(v)])&&void 0!==E?E:[],g=-1,_=[],d!==i&&void 0!==d&&x.push(d),d=v}while(void 0!==h);return 0!==_.length?_[_.length-1][1]:e};class cr{static type="point";type=cr.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class ar{static type="position";type=ar.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const lr=ar;const ur=class extends Ft{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class pr extends Ft{static type="stream"}Object.defineProperty(pr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Ws("document",e))(e)||(e=>Ws("comment",e))(e))):[]},enumerable:!0});const mr=pr;const hr=h(0);const dr=class extends Ft{static type="parseResult";get rootNode(){return hr(this.children)}};const fr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)N(i,n)&&(t[i]=n[i]);s+=1}return t};const yr=a((function(e,t){return fr({},e,t)}));const gr=class extends Ft{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=yr({version:void 0,handle:void 0,prefix:void 0},t)}};const _r=class extends Ft{static type="document"};const vr=class extends Gs{};class br extends vr{static type="mapping"}Object.defineProperty(br.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Zs):[]},enumerable:!0});const xr=br;class Er extends Ft{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Er.prototype,{key:{get(){return this.children.filter((e=>Xs(e)||Js(e)||Ys(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Xs(e)||Js(e)||Ys(e)||Qs(e))(t)))[0]},enumerable:!0}});const wr=Er;class jr extends vr{static type="sequence"}Object.defineProperty(jr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Ys(e)||Js(e)||Xs(e)||Qs(e))):[]},enumerable:!0});const Sr=jr;const Pr=class extends Ft{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Or=class extends Ft{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ar=class extends Ft{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const $r=class extends Ft{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const kr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Fr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Mr=e=>Array.isArray(e)||nr(e);class Tr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new cr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new cr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new lr({start:t,end:s})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new ur({name:t.text,position:Tr.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Mt.Mapping:e.type.endsWith("sequence")?Mt.Sequence:Mt.Scalar,n=t?Tr.toPosition(t):void 0;return new Tt({explicitName:s,kind:r,position:n})}schema;referenceManager;stream={enter:e=>{const t=Tr.toPosition(e);return new mr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new dr({children:[e]})};yaml_directive={enter:e=>{var t;const s=Tr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new gr({position:s,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Tr.toPosition(e),s=e.children[0],r=e.children[1],n=new gr({position:t,name:"%TAG",parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(n),n}};reserved_directive={enter:e=>{const t=Tr.toPosition(e),s=e.children[0],r=e.children[1],n=e.children[2];return new gr({position:t,name:null==s?void 0:s.text,parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}})}};document={enter:e=>{const t=Tr.toPosition(e);return new _r({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Tr.isScalar(t)||Tr.isMapping(t)||Tr.isSequence(t))return e.children;const s=new cr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Ks({content:"",anchor:Tr.kindNodeToYamlAnchor(t),tag:Tr.kindNodeToYamlTag(t),position:new lr({start:s,end:s}),styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new xr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Cs.NextLine,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};block_mapping_pair={enter:e=>{const t=Tr.toPosition(e),s=[...e.children];if(Tr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Tr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new wr({children:s,position:t,styleGroup:Rs.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new xr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Cs.Explicit,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};flow_pair={enter:e=>{const t=Tr.toPosition(e),s=[...e.children];if(Tr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Tr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new wr({children:s,position:t,styleGroup:Rs.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new Sr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Cs.NextLine});return this.registerAnchor(n),this.schema.resolve(n)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new cr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Ks({content:"",tag:new Tt({explicitName:"?",kind:Mt.Scalar}),position:new lr({start:t,end:t}),styleGroup:Rs.Flow,style:Cs.Plain})]}};flow_sequence={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new Sr({children:e.children.flat(),position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Cs.Explicit});return this.registerAnchor(n),this.schema.resolve(n)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(n),this.schema.resolve(n)}};single_quote_scalar={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Cs.SingleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};double_quote_scalar={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Cs.DoubleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};block_scalar={enter:e=>{const t=Tr.toPosition(e),s=Tr.kindNodeToYamlTag(e),r=Tr.kindNodeToYamlAnchor(e),n=e.text.startsWith("|")?Cs.Literal:e.text.startsWith(">")?Cs.Folded:Cs.Plain,i=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Block,style:n});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Pr({content:e.text})};alias={enter:e=>{const t=new Or({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof kr&&!e.isNamed){const t=Tr.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Ar({value:s,position:t,isMissing:r})}}ERROR(e,t,s,r){const n=Tr.toPosition(e),i=new $r({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new dr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new cr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Tr.isKind("tag")),i=r.find(Tr.isKind("anchor")),o=new Tt(void 0!==n?{explicitName:n.text,kind:Mt.Scalar,position:Tr.toPosition(n)}:{explicitName:"?",kind:Mt.Scalar}),c=void 0!==i?new ur({name:i.text,position:Tr.toPosition(i)}):void 0,a=new Ks({content:"",position:new lr({start:t,end:t}),tag:o,anchor:c,styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const t=new cr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Tr.isKind("tag")),i=r.find(Tr.isKind("anchor")),o=new Tt(void 0!==n?{explicitName:n.text,kind:Mt.Scalar,position:Tr.toPosition(n)}:{explicitName:"?",kind:Mt.Scalar}),c=void 0!==i?new ur({name:i.text,position:Tr.toPosition(i)}):void 0,a=new Ks({content:"",position:new lr({start:t,end:t}),tag:o,anchor:c,styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(a),a}}const Ir=Tr;function Nr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Cr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,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=Nr(this.xf["@@transducer/step"](e,!1))),e},e}();function Rr(e){return function(t){return new Cr(e,t)}}const qr=a(P(["all"],Rr,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Dr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Lr=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Br=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Vr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Ur=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,zr=e=>e({hasMethod:Dr,hasBasicElementProps:Lr,primitiveEq:Br,isElementType:Ur,hasClass:Vr}),Gr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Hg||e(s)&&t(void 0,s))),Kr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Om||e(s)&&t("string",s))),Hr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.kT||e(s)&&t("number",s))),Wr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Os||e(s)&&t("null",s))),Jr=zr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.bd||e(s)&&t("boolean",s))),Yr=zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof oe.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),Zr=zr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof oe.wE&&!(r instanceof oe.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),Xr=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&s(void 0,r))),Qr=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&s(void 0,r))),en=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&s(void 0,r))),tn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&s("array",r))),sn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rt||e(r)&&t("comment",r)&&s("string",r))),rn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&s("array",r))),nn=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ct||e(r)&&t("sourceMap",r)&&s("array",r))),on=e=>Ur("object",e)||Ur("array",e)||Ur("boolean",e)||Ur("number",e)||Ur("string",e)||Ur("null",e)||Ur("member",e),cn=e=>nn(e.meta.get("sourceMap")),an=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Zr(s)&&qr(Es(s.toValue()),e)},ln=(e,t)=>0===e.length||qr(Es(t.classes.toValue()),e);const un=class extends Ot{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pn=class extends un{};const mn=class extends un{},hn=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:n}=e,i=Gr(t)?hn(t,r):t,o=Gr(n)?hn(n,r):n,c=new oe.KeyValuePair(i,o);return s.set(e,c),c}if(e instanceof oe.ot){const t=e=>hn(e,r),n=[...e].map(t),i=new oe.ot(n);return s.set(e,i),i}if(e instanceof oe.G6){const t=e=>hn(e,r),n=[...e].map(t),i=new oe.G6(n);return s.set(e,i),i}if(Gr(e)){const t=yn(e);if(s.set(e,t),e.content)if(Gr(e.content))t.content=hn(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=hn(e.content,r);else if(Array.isArray(e.content)){const s=e=>hn(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new pn("Value provided to cloneDeep function couldn't be cloned",{value:e})};hn.safe=e=>{try{return hn(e)}catch{return e}};const dn=e=>{const{key:t,value:s}=e;return new oe.KeyValuePair(t,s)},fn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=hn(e.meta)),e.attributes.length>0&&(t._attributes=hn(e.attributes)),Gr(e.content)){const s=e.content;t.content=fn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=dn(e.content):t.content=e.content;return t},yn=e=>{if(e instanceof oe.KeyValuePair)return dn(e);if(e instanceof oe.ot)return(e=>{const t=[...e];return new oe.ot(t)})(e);if(e instanceof oe.G6)return(e=>{const t=[...e];return new oe.G6(t)})(e);if(Gr(e))return fn(e);throw new mn("Value provided to cloneShallow function couldn't be cloned",{value:e})};yn.safe=e=>{try{return yn(e)}catch{return e}};const gn=e=>Yr(e)?"ObjectElement":Zr(e)?"ArrayElement":Xr(e)?"MemberElement":Kr(e)?"StringElement":Jr(e)?"BooleanElement":Hr(e)?"NumberElement":Wr(e)?"NullElement":Qr(e)?"LinkElement":en(e)?"RefElement":void 0,_n=e=>Gr(e)?yn(e):ir(e),vn=ve(gn,mt),bn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xn=(e,t,{keyMap:s=bn,...r}={})=>or(e,t,{keyMap:s,nodeTypeGetter:gn,nodePredicate:vn,nodeCloneFn:_n,...r});xn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=bn,...r}={})=>or[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:gn,nodePredicate:vn,nodeCloneFn:_n,...r});const En=l((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})N(r,t)&&(n[r]=N(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)N(r,s)&&!N(r,n)&&(n[r]=s[r]);return n}));const wn=l((function e(t,s,r){return En((function(s,r,n){return Pe(r)&&Pe(n)?e(t,r,n):t(s,r,n)}),s,r)}));const jn=a((function(e,t){return wn((function(e,t,s){return s}),e,t)}));const Sn=ge(0,-1);const Pn=a((function(e,t){return e.apply(this,t)}));const On=W(Je);var An=c((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():v(e)?[]:m(e)?"":Pe(e)?{}:R(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 $n=An;const kn=c((function(e){return null!=e&&te(e,$n(e))}));const Fn=I(1,Je(Array.isArray)?Array.isArray:ve(X,xe("Array")));const Mn=qe(Fn,kn);const Tn=I(3,(function(e,t,s){var r=Ie(e,s),n=Ie(Sn(e),s);if(!On(r)&&!Mn(e)){var i=le(r,n);return Pn(i,t)}})),In=()=>({predicates:{...e},namespace:pt}),Nn={toolboxCreator:In,visitorOptions:{nodeTypeGetter:gn,exposeEdits:!0}},Cn=(e,t,s={})=>{if(0===t.length)return e;const r=jn(Nn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),c=t.map((e=>e(o))),a=((e,{visitFnGetter:t=tr,nodeTypeGetter:s=rr,breakSymbol:r=sr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l,...u){let p=l,m=!1;for(let h=0;h<e.length;h+=1)if(a[h]===c){const c=t(e[h],s(p),!1);if("function"==typeof c){const t=c.call(e[h],p,...u);if(t===i)a[h]=l;else if(t===r)a[h]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,m=!0}}}}return m?p:void 0},leave(n,...o){for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],s(n),!0);if("function"==typeof c){const t=c.call(e[l],n,...o);if(t===r)a[l]=r;else if(void 0!==t&&t!==i)return t}}else a[l]===n&&(a[l]=c)}}})(c.map(f({},"visitor")),{...i});c.forEach(Tn(["pre"],[]));const l=xn(e,a,i);return c.forEach(Tn(["post"],[])),l},Rn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Gr(e)&&(e.meta.length>0&&(r.meta=hn(e.meta)),e.attributes.length>0&&(r.attributes=hn(e.attributes))),Cn(r,s,{toolboxCreator:In,visitorOptions:{nodeTypeGetter:gn}})},qn=e=>(t,s={})=>Rn(t,{...s,Type:e});oe.Sh.refract=qn(oe.Sh),oe.wE.refract=qn(oe.wE),oe.Om.refract=qn(oe.Om),oe.bd.refract=qn(oe.bd),oe.Os.refract=qn(oe.Os),oe.kT.refract=qn(oe.kT),oe.Ft.refract=qn(oe.Ft),oe.sI.refract=qn(oe.sI),tt.refract=qn(tt),rt.refract=qn(rt),it.refract=qn(it),ct.refract=qn(ct);const Dn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...bn},Ln=e=>Gr(e)?gn(e):rr(e),Bn=e=>Gr(e)||nr(e)||Array.isArray(e);const Vn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new it;t._content=e.children.flat(1);const s=t.findElements(on);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ut()}comment(e){if(0===this.processedDocumentCount){const t=new rt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new tt("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new oe.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Cs.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new tt(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new tt(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ct;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}};class Un{cursor;constructor(e){this.cursor=e}stream(){return new kr(this.cursor)}yaml_directive(){return new kr(this.cursor)}tag_directive(){return new kr(this.cursor)}reserved_directive(){return new kr(this.cursor)}document(){return new kr(this.cursor)}block_node(){return new kr(this.cursor).setFieldName(this.cursor)}flow_node(){return new kr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new kr(this.cursor)}block_mapping_pair(){return new kr(this.cursor)}flow_mapping(){return new kr(this.cursor)}flow_pair(){return new kr(this.cursor)}block_sequence(){return new kr(this.cursor)}block_sequence_item(){return new kr(this.cursor)}flow_sequence(){return new kr(this.cursor)}plain_scalar(){return new kr(this.cursor)}single_quote_scalar(){return new kr(this.cursor)}double_quote_scalar(){return new kr(this.cursor)}block_scalar(){return new kr(this.cursor)}ERROR(){return new kr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new kr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Un(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Un(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const zn=Un,Gn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new zn(s),[n]=Array.from(r),i=new Ir,o=new Vn,c=new zs,a=new er,l=or(n,i,{keyMap:Fr,nodePredicate:Mr,state:{schema:c,sourceMap:t,referenceManager:a}});return or(l.rootNode,o,{keyMap:Dn,nodeTypeGetter:Ln,nodePredicate:Bn,state:{sourceMap:t}})};class Kn extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Hn=Kn;class Wn extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Jn=Wn;class Yn extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Zn=Yn;class Xn extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Qn=Xn;class ei extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ti=ei;class si extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ri=si;class ni extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ii=ni;class oi extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new oe.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.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(oi.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ci=oi;class ai extends oe.Sh{constructor(e,t,s){super(e,t,s),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 li=ai;class ui extends oe.Sh{constructor(e,t,s){super(e,t,s),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 pi=ui;class mi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Kr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Kr(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 hi=mi;class di extends oe.Sh{constructor(e,t,s){super(e,t,s),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 fi=di;class yi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 gi=yi;class _i extends oe.Sh{constructor(e,t,s){super(e,t,s),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 vi=_i;class bi extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const xi=bi;class Ei extends oe.Sh{constructor(e,t,s){super(e,t,s),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 wi=Ei;class ji extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oe.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 Si=ji;class Pi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oe.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.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(Pi.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Oi=Pi;class Ai extends oe.Sh{constructor(e,t,s){super(e,t,s),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 $i=Ai;class ki extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Fi=ki;class Mi extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ti=Mi;class Ii extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oe.bd(!1)}set required(e){this.set("required",e)}}const Ni=Ii;class Ci extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Ri=Ci;class qi extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Di=qi;const Li=class extends vt{};class Bi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Vi=Bi;class Ui extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const zi=Ui;class Gi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Ki=Gi;class Hi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Wi=Hi;const Ji=a((function(e,t){return _((function(s,r){return s[r]=e(t[r],r,t),s}),{},U(t))}));const Yi=c((function(e){return null==e}));const Zi=a((function(e,t){if(0===e.length||Yi(t))return!1;for(var s=t,r=0;r<e.length;){if(Yi(s)||!N(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));var Xi=a((function(e,t){return Zi([e],t)}));const Qi=Xi;const eo=l((function(e,t,s){return e(d(t,s))})),to=(e,t)=>{const s=u(e,t);return Ji((e=>{if(Qe(e)&&Qi("$ref",e)&&eo(mt,"$ref",e)){const t=Ie(["$ref"],e),r=ws("#/",t);return Ie(r.split("/"),s)}return Qe(e)?to(e,s):e}),e)};var so=s(8357);const ro=function(){return!0},no=e=>"string"==typeof(null==e?void 0:e.type)?e.type:gn(e),io={EphemeralObject:["content"],EphemeralArray:["content"],...bn},oo=(e,t,{keyMap:s=io,...r}={})=>xn(e,t,{keyMap:s,nodeTypeGetter:no,nodePredicate:ro,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});oo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=io,...s}={})=>xn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:no,nodePredicate:ro,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const co=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 ao=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 lo{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ao(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 co(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 s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Kr(e.href)?e.href.toValue():""}}const uo=e=>Gr(e)?Kr(e)||Hr(e)||Jr(e)||Wr(e)?e.toValue():oo(e,new lo):e,po=e=>{const t=e.meta.length>0?hn(e.meta):void 0,s=e.attributes.length>0?hn(e.attributes):void 0;return new e.constructor(void 0,t,s)},mo=(e,t)=>t.clone&&t.isMergeableElement(e)?go(po(e),e,t):e,ho=e=>"function"!=typeof e.customMetaMerge?e=>hn(e):e.customMetaMerge,fo=e=>"function"!=typeof e.customAttributesMerge?e=>hn(e):e.customAttributesMerge,yo={clone:!0,isMergeableElement:e=>Yr(e)||Zr(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>mo(e,s))),objectElementMerge:(e,t,s)=>{const r=Yr(e)?po(e):po(t);return Yr(e)&&e.forEach(((e,t,n)=>{const i=yn(n);i.value=mo(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=uo(n);let c;if(Yr(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);c=yn(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return go;const s=t.customMerge(e,t);return"function"==typeof s?s:go})(n,s)(r,t)}else c=yn(i),c.value=mo(t,s);r.remove(o),r.content.push(c)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function go(e,t,s){var r,n,i;const o={...yo,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:yo.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:yo.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:yo.objectElementMerge;const c=Zr(t);if(!(c===Zr(e)))return mo(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=ho(o)(e.meta,t.meta),a.attributes=fo(o)(e.attributes,t.attributes),a}go.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new oe.Sh:e.reduce(((e,s)=>go(e,s,t)),po(e[0]))};const _o=so({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=go(t.meta,e.meta),cn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=go(t.attributes,e.attributes))}}}),vo=so(_o,{methods:{enter(e){return this.element=hn(e),sr}}});const bo=se(re());const xo=a((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s})),Eo=so(_o,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return xo(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})},toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s),n=Object.getPrototypeOf(r);return ne(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?hn(t):(xn(t,r,s),r.element)}}}),wo=so(Eo,{props:{specPath:bo,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Kr(r)&&s.includes(uo(r))&&!this.ignoredFields.includes(uo(r))){const s=this.toRefractedElement([...t,"fixedFields",uo(r)],e),i=new oe.Pr(hn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(uo(r))||this.element.content.push(hn(n))})),this.copyMetaAndAttributes(e,this.element),sr}}}),jo=so(wo,vo,{props:{specPath:se(["document","objects","JSONSchema"])},init(){this.element=new Vi}}),So=vo,Po=vo,Oo=vo,Ao=vo,$o=vo,ko=vo,Fo=vo,Mo=vo,To=vo,Io=vo,No=so({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Co=e=>Yr(e)&&e.hasKey("$ref"),Ro=so(Eo,No,vo,{methods:{ObjectElement(e){const t=Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sr},ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),qo=vo,Do=vo,Lo=vo,Bo=vo,Vo=vo,Uo=so(vo,{methods:{ArrayElement(e){return this.element=hn(e),this.element.classes.push("json-schema-required"),sr}}});const zo=c((function(e){return I(fe(ze,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Go=a((function(e,t){return e||t}));const Ko=W(I(1,qe(Le,a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:H(Go)(e,t)}))(Ve,Je))));const Ho=W(kn);const Wo=zo([mt,Ko,Ho]);const Jo=function(){return!1},Yo=so(Eo,{props:{fieldPatternPredicate:Jo,specPath:bo,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(uo(t))&&this.fieldPatternPredicate(uo(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(hn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(uo(t))||this.element.content.push(hn(s))})),this.copyMetaAndAttributes(e,this.element),sr}}}),Zo=so(Yo,{props:{fieldPatternPredicate:Wo}}),Xo=so(Zo,No,vo,{props:{specPath:e=>Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-properties")}}),Qo=so(Zo,No,vo,{props:{specPath:e=>Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties")}}),ec=so(Zo,No,vo,{props:{specPath:e=>Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies")}}),tc=so(vo,{methods:{ArrayElement(e){return this.element=hn(e),this.element.classes.push("json-schema-enum"),sr}}}),sc=so(vo,{methods:{StringElement(e){return this.element=hn(e),this.element.classes.push("json-schema-type"),sr},ArrayElement(e){return this.element=hn(e),this.element.classes.push("json-schema-type"),sr}}}),rc=so(Eo,No,vo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),nc=so(Eo,No,vo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),ic=so(Eo,No,vo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),oc=so(Zo,No,vo,{props:{specPath:e=>Co(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-definitions")}}),cc=vo,ac=vo,lc=vo,uc=vo,pc=vo,mc=so(Eo,No,vo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}}),hc=vo,dc=so(wo,vo,{props:{specPath:se(["document","objects","JSONReference"])},init(){this.element=new zi},methods:{ObjectElement(e){const t=wo.compose.methods.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),fc=so(vo,{methods:{StringElement(e){return this.element=hn(e),this.element.classes.push("reference-value"),sr}}});const yc=l((function(e,t,s){return I(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const gc=c((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var _c=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const vc=_c;const bc=c(Nr);const xc=W(Yi);const Ec=qe(Fn,Ho);function wc(e){return function(e){if(Array.isArray(e))return jc(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)return;if("string"==typeof e)return jc(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);"Object"===s&&e.constructor&&(s=e.constructor.name);if("Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return jc(e,t)}(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 jc(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}var Sc=ve(vc(gc((function(e,t){return e.length>t.length}))),hr,d("length")),Pc=Dt((function(e,t,s){var r=s.apply(void 0,wc(e));return xc(r)?bc(r):t}));const Oc=yc(Ec,(function(e){var t=Sc(e);return I(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return fe(Pc(s),void 0,e)}))}),re),Ac=so(Eo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>yc(e,se(t),re))),s=Oc(t)(e);return this.element=this.toRefractedElement(s,e),sr}}}),$c=so(Ac,{props:{alternator:[{predicate:Co,specPath:["document","objects","JSONReference"]},{predicate:ro,specPath:["document","objects","JSONSchema"]}]}}),kc={visitors:{value:vo,JSONSchemaOrJSONReferenceVisitor:$c,document:{objects:{JSONSchema:{$visitor:jo,fixedFields:{id:So,$schema:Po,multipleOf:Oo,maximum:Ao,exclusiveMaximum:$o,minimum:ko,exclusiveMinimum:Fo,maxLength:Mo,minLength:To,pattern:Io,additionalItems:$c,items:Ro,maxItems:qo,minItems:Do,uniqueItems:Lo,maxProperties:Bo,minProperties:Vo,required:Uo,properties:Xo,additionalProperties:$c,patternProperties:Qo,dependencies:ec,enum:tc,type:sc,allOf:rc,anyOf:nc,oneOf:ic,not:$c,definitions:oc,title:cc,description:ac,default:lc,format:uc,base:pc,links:mc,media:{$ref:"#/visitors/document/objects/Media"},readOnly:hc}},JSONReference:{$visitor:dc,fixedFields:{$ref:fc}},Media:{$visitor:so(wo,vo,{props:{specPath:se(["document","objects","Media"])},init(){this.element=new Ki}}),fixedFields:{binaryEncoding:vo,type:vo}},LinkDescription:{$visitor:so(wo,vo,{props:{specPath:se(["document","objects","LinkDescription"])},init(){this.element=new Wi}}),fixedFields:{href:vo,rel:vo,title:vo,targetSchema:$c,mediaType:vo,method:vo,encType:vo,schema:$c}}}}}},Fc=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Mc={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bn},Tc=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vi||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Ic=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zi||e(r)&&t("JSONReference",r)&&s("object",r))),Nc=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ki||e(r)&&t("media",r)&&s("object",r))),Cc=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wi||e(r)&&t("linkDescription",r)&&s("object",r))),Rc={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Vi),t.register("jSONReference",zi),t.register("media",Ki),t.register("linkDescription",Wi),t}},qc=()=>{const e=ut(Rc);return{predicates:{...t,isStringElement:Kr},namespace:e}},Dc=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=kc}={})=>{const n=(0,oe.e)(e),i=to(r),o=Tn(t,[],i);return xn(n,o,{state:{specObj:i}}),Cn(o.element,s,{toolboxCreator:qc,visitorOptions:{keyMap:Mc,nodeTypeGetter:Fc}})},Lc=e=>(t,s={})=>Dc(t,{specPath:e,...s});Vi.refract=Lc(["visitors","document","objects","JSONSchema","$visitor"]),zi.refract=Lc(["visitors","document","objects","JSONReference","$visitor"]),Ki.refract=Lc(["visitors","document","objects","Media","$visitor"]),Wi.refract=Lc(["visitors","document","objects","LinkDescription","$visitor"]);const Bc=class extends Vi{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Li("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Li("idProp setter in Schema class is not not supported.")}get $schema(){throw new Li("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Li("$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 Li("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Li("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Li("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Li("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 Li("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Li("definitions setter in Schema class is not not supported.")}get base(){throw new Li("base getter in Schema class is not not supported.")}set base(e){throw new Li("base setter in Schema class is not not supported.")}get links(){throw new Li("links getter in Schema class is not not supported.")}set links(e){throw new Li("links setter in Schema class is not not supported.")}get media(){throw new Li("media getter in Schema class is not not supported.")}set media(e){throw new Li("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 Vc extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Uc=Vc;class zc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Gc=zc;class Kc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Hc=Kc;class Wc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Jc=Wc;class Yc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Zc=Yc;class Xc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Qc=Xc,ea=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},ta=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ta(s,[...t,s])},sa=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ta(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=ta(n);for(let t of e){let e=ta(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(ea(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},ra=e=>e.filter(((t,s)=>e.indexOf(t)==s)),na=(e,t)=>{const s=t.map((e=>ta(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},ia=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(na(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==na(r,e)||void 0!==t[r],get:(s,r)=>(na(r,e)||t)[r],set(t,s,r){const n=na(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!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)))))}),oa=null,ca="copy",aa="copy",la="deep",ua=new WeakMap,pa=e=>ua.get(e),ma=(e,t)=>{var s,r;const n=ra([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=ra([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},ha=(e,t)=>{var s,r,n,i;return{property:ma(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:ma(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},da=(e,t)=>{var s,r,n,i,o,c;return{class:ra([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:ha(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:ha(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},fa=new Map,ya=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...ta(e.prototype).map((e=>e.constructor)),...null!==(t=pa(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>fa.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>da(e,t)))},ga=e=>{let t=fa.get(e);return t||(t={},fa.set(e,t)),t};function _a(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=oa;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let s of e)s.apply(this,t)}};n.push(t)}function o(...t){for(const s of e)ea(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===aa?sa(n,o):(c=n,a=o,ia([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===ca?sa(e,null,["prototype"]):ia(e,Function.prototype));let l=o;if("none"!==la){const n="deep"===la?ya(...e):((...e)=>{const t=e.map((e=>ga(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>da(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)}va(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),va(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,p;return u=l,p=e,ua.set(u,p),l}const va=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const ba=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=go(t.meta,e.meta),cn(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=go(t.attributes,e.attributes))}};const xa=class extends ba{enter(e){return this.element=hn(e),sr}};const Ea=class extends ba{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return xo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof xa&&(null==r?void 0:r.constructor)===xa?hn(t):(xn(t,r,s),r.element)}};var wa=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Nr(s):s},e}();function ja(e){return function(t){return new wa(e,t)}}const Sa=a(P(["take"],ja,(function(e,t){return ge(0,e<0?1/0:e,t)})));const Pa=a((function(e,t){return te(Sa(e.length,t),e)})),Oa=e=>Yr(e)&&e.hasKey("$ref"),Aa=Yr,$a=Yr,ka=e=>Kr(e.key)&&Pa("x-",uo(e.key));const Fa=class extends Ea{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=ka;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Kr(r)&&s.includes(uo(r))&&!this.ignoredFields.includes(uo(r))){const s=this.toRefractedElement([...t,"fixedFields",uo(r)],e),i=new oe.Pr(hn(r),s);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(uo(r))||this.element.content.push(hn(n))})),this.copyMetaAndAttributes(e,this.element),sr}};class Ma extends(_a(Fa,xa)){constructor(e){super(e),this.element=new wi,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Fa.prototype.ObjectElement.call(this,e)}}const Ta=Ma;class Ia extends(_a(Ea,xa)){StringElement(e){const t=new xi(uo(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const Na=Ia;const Ca=class extends Ea{MemberElement(e){return this.element=hn(e),this.element.classes.push("specification-extension"),sr}};class Ra extends(_a(Fa,xa)){constructor(e){super(e),this.element=new li,this.specPath=se(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const qa=Ra;const Da=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class La extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Zn,this.specPath=se(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ba=La;class Va extends(_a(Fa,xa)){constructor(e){super(e),this.element=new pi,this.specPath=se(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Ua=Va;class za extends(_a(Fa,xa)){constructor(e){super(e),this.element=new hi,this.specPath=se(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return(Kr(this.element.operationId)||Kr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Ga=za;const Ka=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ha=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Wa=class extends Ea{specPath;ignoredFields;fieldPatternPredicate=Jo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=ka;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(uo(t))&&this.fieldPatternPredicate(uo(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(hn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(uo(t))||this.element.content.push(hn(s))})),this.copyMetaAndAttributes(e,this.element),sr}};const Ja=class extends Wa{constructor(e){super(e),this.fieldPatternPredicate=Wo}};class Ya extends oe.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Ya.primaryClass)}}const Za=Ya;class Xa extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Za,this.specPath=se(["value"])}}const Qa=Xa;class el extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Hc,this.specPath=se(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const tl=el;const sl=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class rl extends oe.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(rl.primaryClass)}}const nl=rl;class il extends(_a(Ea,xa)){constructor(e){super(e),this.element=new nl}ArrayElement(e){return e.forEach((e=>{const t=Aa(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const ol=il;class cl extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Jc,this.specPath=se(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const al=cl;class ll extends oe.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(ll.primaryClass)}}const ul=ll;class pl extends(_a(Ja,xa)){constructor(e){super(e),this.element=new ul,this.specPath=se(["document","objects","ServerVariable"])}}const ml=pl;class hl extends(_a(Fa,xa)){constructor(e){super(e),this.element=new fi,this.specPath=se(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const dl=hl;const fl=class extends Ea{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>yc(e,se(t),re))),s=Oc(t)(e);return this.element=this.toRefractedElement(s,e),sr}},yl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hn||e(r)&&t("callback",r)&&s("object",r))),gl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jn||e(r)&&t("components",r)&&s("object",r))),_l=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zn||e(r)&&t("contact",r)&&s("object",r))),vl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ri||e(r)&&t("example",r)&&s("object",r))),bl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ii||e(r)&&t("externalDocumentation",r)&&s("object",r))),xl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ci||e(r)&&t("header",r)&&s("object",r))),El=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof li||e(r)&&t("info",r)&&s("object",r))),wl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pi||e(r)&&t("license",r)&&s("object",r))),jl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hi||e(r)&&t("link",r)&&s("object",r))),Sl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xi||e(r)&&t("openapi",r)&&s("string",r))),Pl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof wi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),Ol=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Si||e(r)&&t("operation",r)&&s("object",r))),Al=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Oi||e(r)&&t("parameter",r)&&s("object",r))),$l=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $i||e(r)&&t("pathItem",r)&&s("object",r))),kl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fi||e(r)&&t("paths",r)&&s("object",r))),Fl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ti||e(r)&&t("reference",r)&&s("object",r))),Ml=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ni||e(r)&&t("requestBody",r)&&s("object",r))),Tl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ri||e(r)&&t("response",r)&&s("object",r))),Il=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Di||e(r)&&t("responses",r)&&s("object",r))),Nl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bc||e(r)&&t("schema",r)&&s("object",r))),Cl=e=>Jr(e)&&e.classes.includes("boolean-json-schema"),Rl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uc||e(r)&&t("securityRequirement",r)&&s("object",r))),ql=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gc||e(r)&&t("securityScheme",r)&&s("object",r))),Dl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hc||e(r)&&t("server",r)&&s("object",r))),Ll=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jc||e(r)&&t("serverVariable",r)&&s("object",r))),Bl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fi||e(r)&&t("mediaType",r)&&s("object",r))),Vl=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof nl||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Ul extends(_a(fl,xa)){constructor(e){super(e),this.alternator=[{predicate:Oa,specPath:["document","objects","Reference"]},{predicate:ro,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fl.prototype.enter.call(this,e);return Fl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const zl=Ul;class Gl extends(_a(Ja,xa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("examples"),this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Kl=Gl;class Hl extends oe.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Hl.primaryClass),this.classes.push("examples")}}const Wl=Hl;const Jl=class extends Kl{constructor(e){super(e),this.element=new Wl}};class Yl extends oe.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Yl.primaryClass)}}const Zl=Yl;class Xl extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Zl,this.specPath=se(["document","objects","Encoding"])}}const Ql=Xl;class eu extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Uc,this.specPath=se(["value"])}}const tu=eu;class su extends oe.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(su.primaryClass)}}const ru=su;class nu extends(_a(Ea,xa)){constructor(e){super(e),this.element=new ru}ArrayElement(e){return e.forEach((e=>{if(Yr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(hn(e))})),this.copyMetaAndAttributes(e,this.element),sr}}const iu=nu;class ou extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Jn,this.specPath=se(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const cu=ou;class au extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Zc,this.specPath=se(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const lu=au;class uu extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Ti,this.specPath=se(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const pu=uu;const mu=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class hu extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Oi,this.specPath=se(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return Yr(this.element.contentProp)&&this.element.contentProp.filter(Bl).forEach(((e,t)=>{e.setMetaProperty("media-type",uo(t))})),t}}const du=hu;class fu extends(_a(fl,xa)){constructor(e){super(e),this.alternator=[{predicate:Oa,specPath:["document","objects","Reference"]},{predicate:ro,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fl.prototype.enter.call(this,e);return Fl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const yu=fu;class gu extends(_a(Fa,xa)){constructor(e){super(e),this.element=new ci,this.specPath=se(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const _u=gu;class vu extends(_a(fl,xa)){constructor(e){super(e),this.alternator=[{predicate:Oa,specPath:["document","objects","Reference"]},{predicate:ro,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=fl.prototype.enter.call(this,e);return Fl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const bu=vu;class xu extends oe.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(xu.primaryClass),this.classes.push("examples")}}const Eu=xu;const wu=class extends Kl{constructor(e){super(e),this.element=new Eu}};class ju extends(_a(Ja,xa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("content"),this.specPath=se(["document","objects","MediaType"])}}const Su=ju;class Pu extends oe.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(Pu.primaryClass),this.classes.push("content")}}const Ou=Pu;const Au=class extends Su{constructor(e){super(e),this.element=new Ou}};class $u extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Bc,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ku=$u,{allOf:Fu}=kc.visitors.document.objects.JSONSchema.fixedFields,Mu=Fu.compose({methods:{ArrayElement(e){const t=Fu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Tu}=kc.visitors.document.objects.JSONSchema.fixedFields,Iu=Tu.compose({methods:{ArrayElement(e){const t=Tu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Nu}=kc.visitors.document.objects.JSONSchema.fixedFields,Cu=Nu.compose({methods:{ArrayElement(e){const t=Nu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Ru}=kc.visitors.document.objects.JSONSchema.fixedFields,qu=Ru.compose({methods:{ObjectElement(e){const t=Ru.compose.methods.ObjectElement.call(this,e);return Fl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=hn(e),sr}}}),{properties:Du}=kc.visitors.document.objects.JSONSchema.fixedFields,Lu=Du.compose({methods:{ObjectElement(e){const t=Du.compose.methods.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Bu}=kc.visitors.document.objects.JSONSchema.fixedFields,Vu=Bu.compose({methods:{ArrayElement(e){return this.element=hn(e),sr}}}),{JSONSchemaOrJSONReferenceVisitor:Uu}=kc.visitors,zu=Uu.compose({methods:{ObjectElement(e){const t=Uu.compose.methods.enter.call(this,e);return Fl(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Gu extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Qn,this.specPath=se(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Ku=Gu;class Hu extends oe.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Hu.primaryClass)}}const Wu=Hu;class Ju extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Wu,this.specPath=se(["value"])}}const Yu=Ju;class Zu extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Qc,this.specPath=se(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Xu=Zu;class Qu extends oe.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Qu.primaryClass),this.classes.push("examples")}}const ep=Qu;const tp=class extends Kl{constructor(e){super(e),this.element=new ep}};class sp extends oe.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(sp.primaryClass),this.classes.push("content")}}const rp=sp;const np=class extends Su{constructor(e){super(e),this.element=new rp}};class ip extends oe.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(ip.primaryClass)}}const op=ip;class cp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new op,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const ap=cp;class lp extends oe.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(lp.primaryClass)}}const up=lp;class pp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new up,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",uo(t))})),t}}const mp=pp;class hp extends oe.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(hp.primaryClass),this.classes.push("parameters")}}const dp=hp;class fp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new dp,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const yp=fp;class gp extends oe.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(gp.primaryClass),this.classes.push("examples")}}const _p=gp;class vp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new _p,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const bp=vp;class xp extends oe.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(xp.primaryClass)}}const Ep=xp;class wp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Ep,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const jp=wp;class Sp extends oe.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Sp.primaryClass)}}const Pp=Sp;class Op extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Pp,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(xl).forEach(((e,t)=>{e.setMetaProperty("header-name",uo(t))})),t}}const Ap=Op;class $p extends oe.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push($p.primaryClass)}}const kp=$p;class Fp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new kp,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Mp=Fp;class Tp extends oe.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Tp.primaryClass)}}const Ip=Tp;class Np extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Ip,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Cp=Np;class Rp extends oe.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Rp.primaryClass)}}const qp=Rp;class Dp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new qp,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Lp=Dp;class Bp extends(_a(Fa,xa)){constructor(e){super(e),this.element=new ri,this.specPath=se(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return Kr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Vp=Bp;const Up=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class zp extends(_a(Fa,xa)){constructor(e){super(e),this.element=new ii,this.specPath=se(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Gp=zp;class Kp extends(_a(Fa,xa)){constructor(e){super(e),this.element=new ti,this.specPath=se(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return Yr(this.element.headers)&&this.element.headers.filter(xl).forEach(((e,t)=>{e.setMetaProperty("header-name",uo(t))})),t}}const Hp=Kp;class Wp extends oe.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Wp.primaryClass)}}const Jp=Wp;class Yp extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Jp,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!xl(e))return;const s=uo(t);e.setMetaProperty("headerName",s)})),t}}const Zp=Yp;class Xp extends(_a(Wa,xa)){constructor(e){super(e),this.element=new Fi,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ro}ObjectElement(e){const t=Wa.prototype.ObjectElement.call(this,e);return this.element.filter($l).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",hn(t))})),t}}const Qp=Xp;class em extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Ni,this.specPath=se(["document","objects","RequestBody"])}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return Yr(this.element.contentProp)&&this.element.contentProp.filter(Bl).forEach(((e,t)=>{e.setMetaProperty("media-type",uo(t))})),t}}const tm=em;class sm extends oe.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(sm.primaryClass),this.classes.push("content")}}const rm=sm;const nm=class extends Su{constructor(e){super(e),this.element=new rm}};class im extends(_a(Wa,xa)){constructor(e){super(e),this.element=new Hn,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter($l).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",uo(t))})),t}}const om=im;class cm extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Ri,this.specPath=se(["document","objects","Response"])}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return Yr(this.element.contentProp)&&this.element.contentProp.filter(Bl).forEach(((e,t)=>{e.setMetaProperty("media-type",uo(t))})),Yr(this.element.headers)&&this.element.headers.filter(xl).forEach(((e,t)=>{e.setMetaProperty("header-name",uo(t))})),t}}const am=cm;class lm extends oe.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(lm.primaryClass)}}const um=lm;class pm extends(_a(Ja,xa)){constructor(e){super(e),this.element=new um,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!xl(e))return;const s=uo(t);e.setMetaProperty("header-name",s)})),t}}const mm=pm;class hm extends oe.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(hm.primaryClass),this.classes.push("content")}}const dm=hm;const fm=class extends Su{constructor(e){super(e),this.element=new dm}};class ym extends oe.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(ym.primaryClass)}}const gm=ym;class _m extends(_a(Ja,xa)){constructor(e){super(e),this.element=new gm,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const vm=_m;function bm(e){return"[object Number]"===Object.prototype.toString.call(e)}const xm=a((function(e,t){if(!bm(e)||!bm(t))throw new TypeError("Both arguments to range must be numbers");for(var s=[],r=e;r<t;)s.push(r),r+=1;return s}));function Em(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!Ee(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!Ee(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const wm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Em(e,!0,this)},e.prototype.has=function(e){return Em(e,!1,this)},e}();const jm=a((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new wm,c=0;c<i;c+=1)o.add(t[c]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class Sm extends(_a(Fa,Wa)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...jm(e.keys(),t)],Fa.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Wa.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sr}}const Pm=Sm;class Om extends(_a(Pm,xa)){constructor(e){super(e),this.element=new Di,this.specPathFixedFields=se(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${xm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Pm.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tl).forEach(((e,t)=>{const s=hn(t);this.fieldPatternPredicate(uo(s))&&e.setMetaProperty("http-status-code",s)})),t}}const Am=Om;class $m extends(_a(fl,xa)){constructor(e){super(e),this.alternator=[{predicate:Oa,specPath:["document","objects","Reference"]},{predicate:ro,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=fl.prototype.enter.call(this,e);return Fl(this.element)?this.element.setMetaProperty("referenced-element","response"):Tl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const km=$m;class Fm extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Si,this.specPath=se(["document","objects","Operation"])}}const Mm=Fm;class Tm extends oe.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Tm.primaryClass)}}const Im=Tm;const Nm=class extends xa{constructor(e){super(e),this.element=new Im}ArrayElement(e){return this.element=this.element.concat(hn(e)),sr}};class Cm extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Cm.primaryClass),this.classes.push("parameters")}}const Rm=Cm;class qm extends(_a(Ea,xa)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Oa(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Fl(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const Dm=qm;const Lm=class extends Dm{constructor(e){super(e),this.element=new Rm}};const Bm=class extends fl{constructor(e){super(e),this.alternator=[{predicate:Oa,specPath:["document","objects","Reference"]},{predicate:ro,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=fl.prototype.enter.call(this,e);return Fl(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Vm extends oe.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Vm.primaryClass)}}const Um=Vm;class zm extends(_a(Ja,xa)){specPath;constructor(e){super(e),this.element=new Um,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(Fl).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Gm=zm;class Km extends oe.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Km.primaryClass),this.classes.push("security")}}const Hm=Km;class Wm extends(_a(Ea,xa)){constructor(e){super(e),this.element=new Hm}ArrayElement(e){return e.forEach((e=>{const t=Yr(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const Jm=Wm;class Ym extends oe.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ym.primaryClass),this.classes.push("servers")}}const Zm=Ym;const Xm=class extends ol{constructor(e){super(e),this.element=new Zm}};class Qm extends(_a(Fa,xa)){constructor(e){super(e),this.element=new $i,this.specPath=se(["document","objects","PathItem"])}ObjectElement(e){const t=Fa.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach(((e,t)=>{const s=hn(t);s.content=uo(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const eh=Qm;const th=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class sh extends oe.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(sh.primaryClass),this.classes.push("servers")}}const rh=sh;const nh=class extends ol{constructor(e){super(e),this.element=new rh}};class ih extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ih.primaryClass),this.classes.push("parameters")}}const oh=ih;const ch=class extends Dm{constructor(e){super(e),this.element=new oh}};class ah extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Gc,this.specPath=se(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const lh=ah;class uh extends(_a(Fa,xa)){constructor(e){super(e),this.element=new vi,this.specPath=se(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const ph=uh;class mh extends(_a(Fa,xa)){constructor(e){super(e),this.element=new gi,this.specPath=se(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const hh=mh;class dh extends oe.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(dh.primaryClass)}}const fh=dh;class yh extends(_a(Ja,xa)){constructor(e){super(e),this.element=new fh,this.specPath=se(["value"])}}const gh=yh;class _h extends oe.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(_h.primaryClass)}}const vh=_h;class bh extends(_a(Ea,xa)){constructor(e){super(e),this.element=new vh}ArrayElement(e){return e.forEach((e=>{const t=$a(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const xh=bh,{fixedFields:Eh}=kc.visitors.document.objects.JSONSchema,wh={visitors:{value:xa,document:{objects:{OpenApi:{$visitor:Ta,fixedFields:{openapi:Na,info:{$ref:"#/visitors/document/objects/Info"},servers:ol,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:iu,tags:xh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:qa,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:Da}},Contact:{$visitor:Ba,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Ua,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:tl,fixedFields:{url:sl,description:{$ref:"#/visitors/value"},variables:ml}},ServerVariable:{$visitor:al,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:cu,fixedFields:{schemas:ap,responses:mp,parameters:yp,examples:bp,requestBodies:jp,headers:Ap,securitySchemes:Mp,links:Cp,callbacks:Lp}},Paths:{$visitor:Qp},PathItem:{$visitor:eh,fixedFields:{$ref:th,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:nh,parameters:ch}},Operation:{$visitor:Mm,fixedFields:{tags:Nm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Lm,requestBody:Bm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Gm,deprecated:{$ref:"#/visitors/value"},security:Jm,servers:Xm}},ExternalDocumentation:{$visitor:Gp,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:du,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:yu,example:{$ref:"#/visitors/value"},examples:tp,content:np}},RequestBody:{$visitor:tm,fixedFields:{description:{$ref:"#/visitors/value"},content:nm,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:dl,fixedFields:{schema:zl,example:{$ref:"#/visitors/value"},examples:Jl,encoding:Ql}},Encoding:{$visitor:Hp,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Zp,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Am,fixedFields:{default:km}},Response:{$visitor:am,fixedFields:{description:{$ref:"#/visitors/value"},headers:mm,content:fm,links:vm}},Callback:{$visitor:om},Example:{$visitor:Vp,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Up}},Link:{$visitor:Ga,fixedFields:{operationRef:Ka,operationId:Ha,parameters:Qa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:_u,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:bu,example:{$ref:"#/visitors/value"},examples:wu,content:Au}},Tag:{$visitor:lu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:pu,fixedFields:{$ref:mu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ku,fixedFields:{title:Eh.title,multipleOf:Eh.multipleOf,maximum:Eh.maximum,exclusiveMaximum:Eh.exclusiveMaximum,minimum:Eh.minimum,exclusiveMinimum:Eh.exclusiveMinimum,maxLength:Eh.maxLength,minLength:Eh.minLength,pattern:Eh.pattern,maxItems:Eh.maxItems,minItems:Eh.minItems,uniqueItems:Eh.uniqueItems,maxProperties:Eh.maxProperties,minProperties:Eh.minProperties,required:Eh.required,enum:Eh.enum,type:Vu,allOf:Mu,anyOf:Iu,oneOf:Cu,not:zu,items:qu,properties:Lu,additionalProperties:zu,description:Eh.description,format:Eh.format,default:Eh.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:Ku,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Yu}},XML:{$visitor:Xu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:lh,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:ph,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:hh,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:gh}},SecurityRequirement:{$visitor:tu}},extension:{$visitor:Ca}}}},jh=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Sh={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"],...bn},Ph={namespace:e=>{const{base:t}=e;return t.register("callback",Hn),t.register("components",Jn),t.register("contact",Zn),t.register("discriminator",Qn),t.register("encoding",ti),t.register("example",ri),t.register("externalDocumentation",ii),t.register("header",ci),t.register("info",li),t.register("license",pi),t.register("link",hi),t.register("mediaType",fi),t.register("oAuthFlow",gi),t.register("oAuthFlows",vi),t.register("openapi",xi),t.register("openApi3_0",wi),t.register("operation",Si),t.register("parameter",Oi),t.register("pathItem",$i),t.register("paths",Fi),t.register("reference",Ti),t.register("requestBody",Ni),t.register("response",Ri),t.register("responses",Di),t.register("schema",Bc),t.register("securityRequirement",Uc),t.register("securityScheme",Gc),t.register("server",Hc),t.register("serverVariable",Jc),t.register("tag",Zc),t.register("xml",Qc),t}},Oh=()=>{const e=ut(Ph);return{predicates:{...n,isElement:Gr,isStringElement:Kr,isArrayElement:Zr,isObjectElement:Yr,isMemberElement:Xr,includesClasses:ln,hasElementSourceMap:cn},namespace:e}},Ah=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=to(wh),i=new(Ie(t,n))({specObj:n});return xn(r,i),Cn(i.element,s,{toolboxCreator:Oh,visitorOptions:{keyMap:Sh,nodeTypeGetter:jh}})},$h=e=>(t,s={})=>Ah(t,{specPath:e,...s});Hn.refract=$h(["visitors","document","objects","Callback","$visitor"]),Jn.refract=$h(["visitors","document","objects","Components","$visitor"]),Zn.refract=$h(["visitors","document","objects","Contact","$visitor"]),ri.refract=$h(["visitors","document","objects","Example","$visitor"]),Qn.refract=$h(["visitors","document","objects","Discriminator","$visitor"]),ti.refract=$h(["visitors","document","objects","Encoding","$visitor"]),ii.refract=$h(["visitors","document","objects","ExternalDocumentation","$visitor"]),ci.refract=$h(["visitors","document","objects","Header","$visitor"]),li.refract=$h(["visitors","document","objects","Info","$visitor"]),pi.refract=$h(["visitors","document","objects","License","$visitor"]),hi.refract=$h(["visitors","document","objects","Link","$visitor"]),fi.refract=$h(["visitors","document","objects","MediaType","$visitor"]),gi.refract=$h(["visitors","document","objects","OAuthFlow","$visitor"]),vi.refract=$h(["visitors","document","objects","OAuthFlows","$visitor"]),xi.refract=$h(["visitors","document","objects","OpenApi","fixedFields","openapi"]),wi.refract=$h(["visitors","document","objects","OpenApi","$visitor"]),Si.refract=$h(["visitors","document","objects","Operation","$visitor"]),Oi.refract=$h(["visitors","document","objects","Parameter","$visitor"]),$i.refract=$h(["visitors","document","objects","PathItem","$visitor"]),Fi.refract=$h(["visitors","document","objects","Paths","$visitor"]),Ti.refract=$h(["visitors","document","objects","Reference","$visitor"]),Ni.refract=$h(["visitors","document","objects","RequestBody","$visitor"]),Ri.refract=$h(["visitors","document","objects","Response","$visitor"]),Di.refract=$h(["visitors","document","objects","Responses","$visitor"]),Bc.refract=$h(["visitors","document","objects","Schema","$visitor"]),Uc.refract=$h(["visitors","document","objects","SecurityRequirement","$visitor"]),Gc.refract=$h(["visitors","document","objects","SecurityScheme","$visitor"]),Hc.refract=$h(["visitors","document","objects","Server","$visitor"]),Jc.refract=$h(["visitors","document","objects","ServerVariable","$visitor"]),Zc.refract=$h(["visitors","document","objects","Tag","$visitor"]),Qc.refract=$h(["visitors","document","objects","XML","$visitor"]);const kh=class extends Hn{};const Fh=class extends Jn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Mh=class extends Zn{};const Th=class extends Qn{};const Ih=class extends ti{};const Nh=class extends ri{};const Ch=class extends ii{};const Rh=class extends ci{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const qh=class extends li{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 Dh extends oe.Om{static default=new Dh("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Lh=Dh;const Bh=class extends pi{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Vh=class extends hi{};const Uh=class extends fi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const zh=class extends gi{};const Gh=class extends vi{};const Kh=class extends xi{};class Hh extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Wh=Hh;const Jh=class extends Si{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Yh=class extends Oi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Zh=class extends $i{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 Xh=class extends Fi{};class Qh extends Ti{}Object.defineProperty(Qh.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Qh.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const ed=Qh;const td=class extends Ni{};const sd=class extends Ri{};const rd=class extends Di{};class nd extends oe.Sh{constructor(e,t,s){super(e,t,s),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 id=nd;const od=class extends Uc{};const cd=class extends Gc{};const ad=class extends Hc{};const ld=class extends Jc{};const ud=class extends Zc{};const pd=class extends Qc{};class md extends(_a(Fa,xa)){constructor(e){super(e),this.element=new Wh,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Fa.prototype.ObjectElement.call(this,e)}}const hd=md,{visitors:{document:{objects:{Info:{$visitor:dd}}}}}=wh;const fd=class extends dd{constructor(e){super(e),this.element=new qh}},{visitors:{document:{objects:{Contact:{$visitor:yd}}}}}=wh;const gd=class extends yd{constructor(e){super(e),this.element=new Mh}},{visitors:{document:{objects:{License:{$visitor:_d}}}}}=wh;const vd=class extends _d{constructor(e){super(e),this.element=new Bh}},{visitors:{document:{objects:{Link:{$visitor:bd}}}}}=wh;const xd=class extends bd{constructor(e){super(e),this.element=new Vh}};class Ed extends(_a(Ea,xa)){StringElement(e){const t=new Lh(uo(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const wd=Ed,{visitors:{document:{objects:{Server:{$visitor:jd}}}}}=wh;const Sd=class extends jd{constructor(e){super(e),this.element=new ad}},{visitors:{document:{objects:{ServerVariable:{$visitor:Pd}}}}}=wh;const Od=class extends Pd{constructor(e){super(e),this.element=new ld}},{visitors:{document:{objects:{MediaType:{$visitor:Ad}}}}}=wh;const $d=class extends Ad{constructor(e){super(e),this.element=new Uh}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:kd}}}}}=wh;const Fd=class extends kd{constructor(e){super(e),this.element=new od}},{visitors:{document:{objects:{Components:{$visitor:Md}}}}}=wh;const Td=class extends Md{constructor(e){super(e),this.element=new Fh}},{visitors:{document:{objects:{Tag:{$visitor:Id}}}}}=wh;const Nd=class extends Id{constructor(e){super(e),this.element=new ud}},{visitors:{document:{objects:{Reference:{$visitor:Cd}}}}}=wh;const Rd=class extends Cd{constructor(e){super(e),this.element=new ed}},{visitors:{document:{objects:{Parameter:{$visitor:qd}}}}}=wh;const Dd=class extends qd{constructor(e){super(e),this.element=new Yh}},{visitors:{document:{objects:{Header:{$visitor:Ld}}}}}=wh;const Bd=class extends Ld{constructor(e){super(e),this.element=new Rh}},Vd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kh||e(r)&&t("callback",r)&&s("object",r))),Ud=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fh||e(r)&&t("components",r)&&s("object",r))),zd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mh||e(r)&&t("contact",r)&&s("object",r))),Gd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nh||e(r)&&t("example",r)&&s("object",r))),Kd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ch||e(r)&&t("externalDocumentation",r)&&s("object",r))),Hd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rh||e(r)&&t("header",r)&&s("object",r))),Wd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qh||e(r)&&t("info",r)&&s("object",r))),Jd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lh||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),Yd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bh||e(r)&&t("license",r)&&s("object",r))),Zd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vh||e(r)&&t("link",r)&&s("object",r))),Xd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kh||e(r)&&t("openapi",r)&&s("string",r))),Qd=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Wh||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),ef=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jh||e(r)&&t("operation",r)&&s("object",r))),tf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yh||e(r)&&t("parameter",r)&&s("object",r))),sf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zh||e(r)&&t("pathItem",r)&&s("object",r))),rf=e=>{if(!sf(e))return!1;if(!Kr(e.$ref))return!1;const t=uo(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},nf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xh||e(r)&&t("paths",r)&&s("object",r))),of=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ed||e(r)&&t("reference",r)&&s("object",r))),cf=e=>{if(!of(e))return!1;if(!Kr(e.$ref))return!1;const t=uo(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},af=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof td||e(r)&&t("requestBody",r)&&s("object",r))),lf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sd||e(r)&&t("response",r)&&s("object",r))),uf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rd||e(r)&&t("responses",r)&&s("object",r))),pf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof id||e(r)&&t("schema",r)&&s("object",r))),mf=e=>Jr(e)&&e.classes.includes("boolean-json-schema"),hf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof od||e(r)&&t("securityRequirement",r)&&s("object",r))),df=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof cd||e(r)&&t("securityScheme",r)&&s("object",r))),ff=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ad||e(r)&&t("server",r)&&s("object",r))),yf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ld||e(r)&&t("serverVariable",r)&&s("object",r))),gf=zr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uh||e(r)&&t("mediaType",r)&&s("object",r)));const _f=class{parent;constructor({parent:e}){this.parent=e}};class vf extends(_a(Fa,_f,xa)){constructor(e){super(e),this.element=new id,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Lh.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=Fa.prototype.ObjectElement.call(this,e);return Kr(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&&Jd(this.openApiSemanticElement.jsonSchemaDialect)?uo(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Kr(this.openApiGenericElement.get("jsonSchemaDialect"))?uo(this.openApiGenericElement.get("jsonSchemaDialect")):uo(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ne(this.parent)&&!Kr(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(pf(this.parent)&&!Kr(e.get("$schema"))){const e=u(uo(this.parent.meta.get("inherited$schema")),uo(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?hn(this.parent.getMetaProperty("inherited$id",[])):new oe.wE,s=uo(e.get("$id"));Wo(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)}}const bf=vf;const xf=class extends xa{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ef=class extends xa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class wf extends(_a(Ja,_f,xa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const jf=wf;class Sf extends(_a(Ea,_f,xa)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Yr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=hn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const Pf=Sf;class Of extends(_a(Ea,_f,xa)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Yr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=hn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const Af=Of;class $f extends(_a(Ea,_f,xa)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Yr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=hn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const kf=$f;class Ff extends(_a(Ja,_f,xa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Mf=Ff;class Tf extends(_a(Ea,_f,xa)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Yr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=hn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const If=Tf;class Nf extends(_a(Ja,_f,xa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-properties"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Cf=Nf;class Rf extends(_a(Ja,_f,xa)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const qf=Rf;const Df=class extends xa{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 Lf=class extends xa{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Bf=class extends xa{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Vf=class extends xa{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:Uf}}}}}=wh;const zf=class extends Uf{constructor(e){super(e),this.element=new Th,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:Gf}}}}}=wh;const Kf=class extends Gf{constructor(e){super(e),this.element=new pd}};class Hf extends(_a(Ja,xa)){constructor(e){super(e),this.element=new op,this.specPath=se(["document","objects","Schema"])}}const Wf=Hf;class Jf extends oe.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Jf.primaryClass)}}const Yf=Jf;class Zf extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Yf,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(of).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Xf=Zf,{visitors:{document:{objects:{Example:{$visitor:Qf}}}}}=wh;const ey=class extends Qf{constructor(e){super(e),this.element=new Nh}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:ty}}}}}=wh;const sy=class extends ty{constructor(e){super(e),this.element=new Ch}},{visitors:{document:{objects:{Encoding:{$visitor:ry}}}}}=wh;const ny=class extends ry{constructor(e){super(e),this.element=new Ih}},{visitors:{document:{objects:{Paths:{$visitor:iy}}}}}=wh;const oy=class extends iy{constructor(e){super(e),this.element=new Xh}},{visitors:{document:{objects:{RequestBody:{$visitor:cy}}}}}=wh;const ay=class extends cy{constructor(e){super(e),this.element=new td}},{visitors:{document:{objects:{Callback:{$visitor:ly}}}}}=wh;const uy=class extends ly{constructor(e){super(e),this.element=new kh,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ly.prototype.ObjectElement.call(this,e);return this.element.filter(of).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:py}}}}}=wh;const my=class extends py{constructor(e){super(e),this.element=new sd}},{visitors:{document:{objects:{Responses:{$visitor:hy}}}}}=wh;const dy=class extends hy{constructor(e){super(e),this.element=new rd}},{visitors:{document:{objects:{Operation:{$visitor:fy}}}}}=wh;const yy=class extends fy{constructor(e){super(e),this.element=new Jh}},{visitors:{document:{objects:{PathItem:{$visitor:gy}}}}}=wh;const _y=class extends gy{constructor(e){super(e),this.element=new Zh}},{visitors:{document:{objects:{SecurityScheme:{$visitor:vy}}}}}=wh;const by=class extends vy{constructor(e){super(e),this.element=new cd}},{visitors:{document:{objects:{OAuthFlows:{$visitor:xy}}}}}=wh;const Ey=class extends xy{constructor(e){super(e),this.element=new Gh}},{visitors:{document:{objects:{OAuthFlow:{$visitor:wy}}}}}=wh;const jy=class extends wy{constructor(e){super(e),this.element=new zh}};class Sy extends oe.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Sy.primaryClass)}}const Py=Sy;class Oy extends(_a(Ja,xa)){constructor(e){super(e),this.element=new Py,this.specPath=e=>Oa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(of).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(sf).forEach(((e,t)=>{e.setMetaProperty("webhook-name",uo(t))})),t}}const Ay=Oy,$y={visitors:{value:wh.visitors.value,document:{objects:{OpenApi:{$visitor:hd,fixedFields:{openapi:wh.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:wd,servers:wh.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Ay,components:{$ref:"#/visitors/document/objects/Components"},security:wh.visitors.document.objects.OpenApi.fixedFields.security,tags:wh.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:fd,fixedFields:{title:wh.visitors.document.objects.Info.fixedFields.title,description:wh.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:wh.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:wh.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:gd,fixedFields:{name:wh.visitors.document.objects.Contact.fixedFields.name,url:wh.visitors.document.objects.Contact.fixedFields.url,email:wh.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:vd,fixedFields:{name:wh.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:wh.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Sd,fixedFields:{url:wh.visitors.document.objects.Server.fixedFields.url,description:wh.visitors.document.objects.Server.fixedFields.description,variables:wh.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Od,fixedFields:{enum:wh.visitors.document.objects.ServerVariable.fixedFields.enum,default:wh.visitors.document.objects.ServerVariable.fixedFields.default,description:wh.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Td,fixedFields:{schemas:Wf,responses:wh.visitors.document.objects.Components.fixedFields.responses,parameters:wh.visitors.document.objects.Components.fixedFields.parameters,examples:wh.visitors.document.objects.Components.fixedFields.examples,requestBodies:wh.visitors.document.objects.Components.fixedFields.requestBodies,headers:wh.visitors.document.objects.Components.fixedFields.headers,securitySchemes:wh.visitors.document.objects.Components.fixedFields.securitySchemes,links:wh.visitors.document.objects.Components.fixedFields.links,callbacks:wh.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Xf}},Paths:{$visitor:oy},PathItem:{$visitor:_y,fixedFields:{$ref:wh.visitors.document.objects.PathItem.fixedFields.$ref,summary:wh.visitors.document.objects.PathItem.fixedFields.summary,description:wh.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:wh.visitors.document.objects.PathItem.fixedFields.servers,parameters:wh.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:yy,fixedFields:{tags:wh.visitors.document.objects.Operation.fixedFields.tags,summary:wh.visitors.document.objects.Operation.fixedFields.summary,description:wh.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:wh.visitors.document.objects.Operation.fixedFields.operationId,parameters:wh.visitors.document.objects.Operation.fixedFields.parameters,requestBody:wh.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:wh.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:wh.visitors.document.objects.Operation.fixedFields.deprecated,security:wh.visitors.document.objects.Operation.fixedFields.security,servers:wh.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:sy,fixedFields:{description:wh.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:wh.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Dd,fixedFields:{name:wh.visitors.document.objects.Parameter.fixedFields.name,in:wh.visitors.document.objects.Parameter.fixedFields.in,description:wh.visitors.document.objects.Parameter.fixedFields.description,required:wh.visitors.document.objects.Parameter.fixedFields.required,deprecated:wh.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:wh.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:wh.visitors.document.objects.Parameter.fixedFields.style,explode:wh.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:wh.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:wh.visitors.document.objects.Parameter.fixedFields.example,examples:wh.visitors.document.objects.Parameter.fixedFields.examples,content:wh.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ay,fixedFields:{description:wh.visitors.document.objects.RequestBody.fixedFields.description,content:wh.visitors.document.objects.RequestBody.fixedFields.content,required:wh.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:$d,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:wh.visitors.document.objects.MediaType.fixedFields.example,examples:wh.visitors.document.objects.MediaType.fixedFields.examples,encoding:wh.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:ny,fixedFields:{contentType:wh.visitors.document.objects.Encoding.fixedFields.contentType,headers:wh.visitors.document.objects.Encoding.fixedFields.headers,style:wh.visitors.document.objects.Encoding.fixedFields.style,explode:wh.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:wh.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:dy,fixedFields:{default:wh.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:my,fixedFields:{description:wh.visitors.document.objects.Response.fixedFields.description,headers:wh.visitors.document.objects.Response.fixedFields.headers,content:wh.visitors.document.objects.Response.fixedFields.content,links:wh.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:uy},Example:{$visitor:ey,fixedFields:{summary:wh.visitors.document.objects.Example.fixedFields.summary,description:wh.visitors.document.objects.Example.fixedFields.description,value:wh.visitors.document.objects.Example.fixedFields.value,externalValue:wh.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:xd,fixedFields:{operationRef:wh.visitors.document.objects.Link.fixedFields.operationRef,operationId:wh.visitors.document.objects.Link.fixedFields.operationId,parameters:wh.visitors.document.objects.Link.fixedFields.parameters,requestBody:wh.visitors.document.objects.Link.fixedFields.requestBody,description:wh.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Bd,fixedFields:{description:wh.visitors.document.objects.Header.fixedFields.description,required:wh.visitors.document.objects.Header.fixedFields.required,deprecated:wh.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:wh.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:wh.visitors.document.objects.Header.fixedFields.style,explode:wh.visitors.document.objects.Header.fixedFields.explode,allowReserved:wh.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:wh.visitors.document.objects.Header.fixedFields.example,examples:wh.visitors.document.objects.Header.fixedFields.examples,content:wh.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Nd,fixedFields:{name:wh.visitors.document.objects.Tag.fixedFields.name,description:wh.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Rd,fixedFields:{$ref:wh.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:bf,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:xf,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:Ef,$defs:jf,$comment:{$ref:"#/visitors/value"},allOf:Pf,anyOf:Af,oneOf:kf,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:Mf,prefixItems:If,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Cf,patternProperties:qf,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:Df,enum:Lf,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:Bf,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:Vf,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:zf,fixedFields:{propertyName:wh.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:wh.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Kf,fixedFields:{name:wh.visitors.document.objects.XML.fixedFields.name,namespace:wh.visitors.document.objects.XML.fixedFields.namespace,prefix:wh.visitors.document.objects.XML.fixedFields.prefix,attribute:wh.visitors.document.objects.XML.fixedFields.attribute,wrapped:wh.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:by,fixedFields:{type:wh.visitors.document.objects.SecurityScheme.fixedFields.type,description:wh.visitors.document.objects.SecurityScheme.fixedFields.description,name:wh.visitors.document.objects.SecurityScheme.fixedFields.name,in:wh.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:wh.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:wh.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:wh.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Ey,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:jy,fixedFields:{authorizationUrl:wh.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:wh.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:wh.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:wh.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Fd}},extension:{$visitor:wh.visitors.document.extension.$visitor}}}},ky=e=>{if(Gr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Fy={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"],...bn},My={namespace:e=>{const{base:t}=e;return t.register("callback",kh),t.register("components",Fh),t.register("contact",Mh),t.register("discriminator",Th),t.register("encoding",Ih),t.register("example",Nh),t.register("externalDocumentation",Ch),t.register("header",Rh),t.register("info",qh),t.register("jsonSchemaDialect",Lh),t.register("license",Bh),t.register("link",Vh),t.register("mediaType",Uh),t.register("oAuthFlow",zh),t.register("oAuthFlows",Gh),t.register("openapi",Kh),t.register("openApi3_1",Wh),t.register("operation",Jh),t.register("parameter",Yh),t.register("pathItem",Zh),t.register("paths",Xh),t.register("reference",ed),t.register("requestBody",td),t.register("response",sd),t.register("responses",rd),t.register("schema",id),t.register("securityRequirement",od),t.register("securityScheme",cd),t.register("server",ad),t.register("serverVariable",ld),t.register("tag",ud),t.register("xml",pd),t}},Ty=()=>{const e=ut(My);return{predicates:{...i,isElement:Gr,isStringElement:Kr,isArrayElement:Zr,isObjectElement:Yr,isMemberElement:Xr,isServersElement:Vl,includesClasses:ln,hasElementSourceMap:cn},namespace:e}},Iy=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=to($y),i=new(Ie(t,n))({specObj:n});return xn(r,i),Cn(i.element,s,{toolboxCreator:Ty,visitorOptions:{keyMap:Fy,nodeTypeGetter:ky}})},Ny=e=>(t,s={})=>Iy(t,{specPath:e,...s});kh.refract=Ny(["visitors","document","objects","Callback","$visitor"]),Fh.refract=Ny(["visitors","document","objects","Components","$visitor"]),Mh.refract=Ny(["visitors","document","objects","Contact","$visitor"]),Nh.refract=Ny(["visitors","document","objects","Example","$visitor"]),Th.refract=Ny(["visitors","document","objects","Discriminator","$visitor"]),Ih.refract=Ny(["visitors","document","objects","Encoding","$visitor"]),Ch.refract=Ny(["visitors","document","objects","ExternalDocumentation","$visitor"]),Rh.refract=Ny(["visitors","document","objects","Header","$visitor"]),qh.refract=Ny(["visitors","document","objects","Info","$visitor"]),Lh.refract=Ny(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Bh.refract=Ny(["visitors","document","objects","License","$visitor"]),Vh.refract=Ny(["visitors","document","objects","Link","$visitor"]),Uh.refract=Ny(["visitors","document","objects","MediaType","$visitor"]),zh.refract=Ny(["visitors","document","objects","OAuthFlow","$visitor"]),Gh.refract=Ny(["visitors","document","objects","OAuthFlows","$visitor"]),Kh.refract=Ny(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Wh.refract=Ny(["visitors","document","objects","OpenApi","$visitor"]),Jh.refract=Ny(["visitors","document","objects","Operation","$visitor"]),Yh.refract=Ny(["visitors","document","objects","Parameter","$visitor"]),Zh.refract=Ny(["visitors","document","objects","PathItem","$visitor"]),Xh.refract=Ny(["visitors","document","objects","Paths","$visitor"]),ed.refract=Ny(["visitors","document","objects","Reference","$visitor"]),td.refract=Ny(["visitors","document","objects","RequestBody","$visitor"]),sd.refract=Ny(["visitors","document","objects","Response","$visitor"]),rd.refract=Ny(["visitors","document","objects","Responses","$visitor"]),id.refract=Ny(["visitors","document","objects","Schema","$visitor"]),od.refract=Ny(["visitors","document","objects","SecurityRequirement","$visitor"]),cd.refract=Ny(["visitors","document","objects","SecurityScheme","$visitor"]),ad.refract=Ny(["visitors","document","objects","Server","$visitor"]),ld.refract=Ny(["visitors","document","objects","ServerVariable","$visitor"]),ud.refract=Ny(["visitors","document","objects","Tag","$visitor"]),pd.refract=Ny(["visitors","document","objects","XML","$visitor"]);const Cy=h(-1);const Ry=class extends Li{};const qy=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Ry("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ry("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ry("latest method in MediaTypes class is not yet implemented.")}};class Dy extends qy{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 s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Cy(this.filterByFormat(e))}}const Ly=new Dy("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"),By=new Dy(...Ly.filterByFormat("generic"),...Ly.filterByFormat("yaml")),Vy=/(?<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,Uy=async e=>Vy.test(e)&&await(async e=>{try{return"ERROR"!==(await wt(e)).rootNode.type}catch{return!1}})(e),zy=async(e,t={})=>{const s=f({},"refractorOpts",t),r=g(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await wt(e);return Gn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ie(i)){const e=Wh.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Gy=ut(My)})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_1=t()}(self,(()=>(()=>{var e={3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),c=s(5071);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),c=s(3964);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),c=s(9068);function a(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}a.prototype.clear=r,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},9413:(e,t,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),c=s(7462),a=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=c,l.prototype.set=a,e.exports=l},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),c=s(9632),a=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),p=!s&&!u&&o(e),m=!s&&!u&&!p&&a(e),h=s||u||p||m,d=h?r(e.length,String):[],f=d.length;for(var y in e)!t&&!l.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||m&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,f))||d.push(y);return d}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},7379:(e,t,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.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)}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,c){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,c))}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),c=s(8486),a=s(3142),l=s(5853),u=s(8666),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,f,y,g){var _=a(e),v=a(t),b=_?m:c(e),x=v?m:c(t),E=(b=b==p?h:b)==h,w=(x=x==p?h:x)==h,j=b==x;if(j&&l(e)){if(!l(t))return!1;_=!0,E=!1}if(j&&!E)return g||(g=new r),_||u(e)?n(e,t,s,f,y,g):i(e,t,b,s,f,y,g);if(!(1&s)){var S=E&&d.call(e,"__wrapped__"),P=w&&d.call(t,"__wrapped__");if(S||P){var O=S?e.value():e,A=P?t.value():t;return g||(g=new r),y(O,A,s,f,g)}}return!!j&&(g||(g=new r),o(e,t,s,f,y,g))}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:c).test(o(e))}},674:(e,t,s)=>{var r=s(7379),n=s(5387),i=s(547),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[r(e)]}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,c,a){var l=1&s,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var d=-1,f=!0,y=2&s?new r:void 0;for(a.set(e,t),a.set(t,e);++d<u;){var g=e[d],_=t[d];if(o)var v=l?o(_,g,d,t,e,a):o(g,_,d,e,t,a);if(void 0!==v){if(v)continue;f=!1;break}if(y){if(!n(t,(function(e,t){if(!i(y,t)&&(g===e||c(g,e,s,o,a)))return y.push(t)}))){f=!1;break}}else if(g!==_&&!c(g,_,s,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),c=s(5894),a=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,p,m){switch(s){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 h=c;case"[object Set]":var d=1&r;if(h||(h=a),e.size!=t.size&&!d)return!1;var f=m.get(e);if(f)return f==t;r|=2,m.set(e,t);var y=o(h(e),h(t),r,l,p,m);return m.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,c){var a=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!a)return!1;for(var p=u;p--;){var m=l[p];if(!(a?m in t:n.call(t,m)))return!1}var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<u;){var g=e[m=l[p]],_=t[m];if(i)var v=a?i(_,g,m,t,e,c):i(g,_,m,e,t,c);if(!(void 0===v?g===_||o(g,_,s,i,c):v)){f=!1;break}y||(y="constructor"==m)}if(f&&!y){var b=e.constructor,x=t.constructor;b==x||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof x&&x instanceof x||(f=!1)}return c.delete(e),c.delete(t),f}},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,n)}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),s=e[c];try{e[c]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[c]=s:delete e[c]),n}},7979:(e,t,s)=>{var r=s(9847),n=s(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=c},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),c=s(9270),a=s(7379),l=s(4066),u="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=l(r),y=l(n),g=l(i),_=l(o),v=l(c),b=a;(r&&b(new r(new ArrayBuffer(1)))!=d||n&&b(new n)!=u||i&&b(i.resolve())!=p||o&&b(new o)!=m||c&&b(new c)!=h)&&(b=function(e){var t=a(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case f:return d;case y:return u;case g:return p;case _:return m;case v:return h}return t}),e.exports=b},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},4103:(e,t,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},4066: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""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?r.Buffer:void 0,a=(c?c.isBuffer:void 0)||n;e.exports=a},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,c=o?n(o):r;e.exports=c},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1517: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)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,s)=>{const r=s(1517);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 s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}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(r(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},2322: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},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),c=s(1580),a=s(394),l=s(7547);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(r,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(c,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,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(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 a(this)}}a.prototype.Namespace=u,e.exports=u},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),c=s(2555),a=s(9796),l=s(7309),u=s(5642),p=s(9620),m=s(593),h=s(4123),d=s(3311),f=s(2322);function y(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new n;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=y,h.prototype.refract=y,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:m,refract:y,ArraySlice:h,ObjectSlice:d,KeyValuePair:f}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),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)}}},593:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),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,s(394),s(3148)},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),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 s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}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 s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,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},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),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 s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(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},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,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)}}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),c=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),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((s=>s.key.toValue()!==e||(t=s,!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 s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,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((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{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 s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}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(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.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),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}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,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},394: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 s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),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 s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),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,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},8357:e=>{!function(){"use strict";var t,s,r,n,i,o="properties",c="deepProperties",a="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",g="initializers",_="methods",v="composers",b="compose";function x(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function E(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var w=E.bind(0,(function(e,t){if(t)for(var s=x(t),r=0;r<s.length;r+=1)Object.defineProperty(e,s[r],Object.getOwnPropertyDescriptor(t,s[r]));return e}));function j(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||j(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var O=E.bind(0,(function e(s,r){if(r===t)return s;if(Array.isArray(r))return(Array.isArray(s)?s:[]).concat(r);if(!P(r))return r;for(var n,i,o=x(r),c=0;c<o.length;)n=o[c++],(i=Object.getOwnPropertyDescriptor(r,n)).hasOwnProperty("value")?i.value!==t&&(s[n]=e(P(s[n])||Array.isArray(r[n])?s[n]:{},r[n])):Object.defineProperty(s,n,i);return s}));function A(){return(s=Array.prototype.concat.apply([],arguments).filter((function(e,t,s){return j(e)&&s.indexOf(e)===t}))).length?s:t}function $(e,t){function r(s,r){S(t[s])&&(S(e[s])||(e[s]={}),(r||w)(e[s],t[s]))}function n(r){(s=A(e[r],t[r]))&&(e[r]=s)}return t&&S(t=t[b]||t)&&(r(_),r(o),r(c,O),r(a),r(l),r(u,O),r(p),r(m),r(h,O),n(g),n(v)),e}function k(){return function(e){return s=function e(s){var r,n,i=e[b]||{},l={__proto__:i[_]},u=i[g],p=Array.prototype.slice.apply(arguments),m=i[c];if(m&&O(l,m),(m=i[o])&&w(l,m),(m=i[a])&&Object.defineProperties(l,m),!u||!u.length)return l;for(s===t&&(s={}),i=0;i<u.length;)j(r=u[i++])&&(l=(n=r.call(l,s,{instance:l,stamp:e,args:p}))===t?l:n);return l},(r=e[u])&&O(s,r),(r=e[l])&&w(s,r),(r=e[p])&&Object.defineProperties(s,r),r=j(s[b])?s[b]:k,w(s[b]=function(){return r.apply(this,arguments)},e),s}(Array.prototype.concat.apply([this],arguments).reduce($,{}))}function F(e){return j(e)&&j(e[b])}var M={};function T(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((s=this)&&s[b]||r).call(s,n)}}M[_]=T(_,w),M[o]=M.props=T(o,w),M[g]=M.init=T(g,A),M[v]=T(v,A),M[c]=M[d]=T(c,O),M[l]=M.statics=T(l,w),M[u]=M[f]=T(u,O),M[m]=M.conf=T(m,w),M[h]=M[y]=T(h,O),M[a]=T(a,w),M[p]=T(p,w),r=M[b]=w((function(){for(var e,x,E=0,j=[],P=arguments,$=this;E<P.length;)S(e=P[E++])&&j.push(F(e)?e:((n={})[_]=(x=e)[_]||t,r=x.props,n[o]=S((s=x[o])||r)?w({},r,s):t,n[g]=A(x.init,x[g]),n[v]=A(x[v]),r=x[d],n[c]=S((s=x[c])||r)?O({},r,s):t,n[a]=x[a],r=x.statics,n[l]=S((s=x[l])||r)?w({},r,s):t,r=x[f],n[u]=S((s=x[u])||r)?O({},r,s):t,s=x[p],n[p]=S((r=x.name&&{name:{value:x.name}})||s)?w({},s,r):t,r=x.conf,n[m]=S((s=x[m])||r)?w({},r,s):t,r=x[y],n[h]=S((s=x[h])||r)?O({},r,s):t,n));if(e=k.apply($||i,j),$&&j.unshift($),Array.isArray(P=e[b][v]))for(E=0;E<P.length;)e=F($=P[E++]({stamp:e,composables:j}))?$:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(n={})[l]=M,i=k(n),r[b]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const c=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function a(e,t=!1){return e.replace(c,(function(e,s,c,a,l,u,p,m,h){if(void 0!==s)return"\\";if(void 0!==c)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(c);if(void 0!==a)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(a);if(void 0!==l)return i(l,u);if(void 0!==p)return i(p);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==h)return d=h,o.get(d)||d;var d;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=a},3833:(e,t,s)=>{var r=void 0!==r?r:{},n=function(){var t,n="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,c={};for(o in r)r.hasOwnProperty(o)&&(c[o]=r[o]);var a,l,u,p,m=[],h="./this.program",d=function(e,t){throw t};u="object"==typeof window,p="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,l=!u&&!a&&!p;var f,y,g,_,v,b="";a?(b=p?s(4142).dirname(b)+"/":"//",f=function(e,t){return _||(_=s(3078)),v||(v=s(4142)),e=v.normalize(e),_.readFileSync(e,t?null:"utf8")},g=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),e.exports=r,d=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(f=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(u||p)&&(p?b=self.location.href:void 0!==n&&n.currentScript&&(b=n.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),y=function(e,t,s){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):s()},r.onerror=s,r.send(null)}),r.print||console.log.bind(console);var x=r.printErr||console.warn.bind(console);for(o in c)c.hasOwnProperty(o)&&(r[o]=c[o]);c=null,r.arguments&&(m=r.arguments),r.thisProgram&&(h=r.thisProgram),r.quit&&(d=r.quit);var E,w=16,j=[];function S(e,t){if(!E){E=new WeakMap;for(var s=0;s<Y.length;s++){var r=Y.get(s);r&&E.set(r,s)}}if(E.has(e))return E.get(e);var n=function(){if(j.length)return j.pop();try{Y.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(n,e)}catch(s){if(!(s instanceof TypeError))throw s;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var s={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[s[t[0]]]},n=1;n<t.length;++n)r.parameters.push(s[t[n]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),c=t.slice(1),a={i:127,j:126,f:125,d:124};for(i.push(c.length),n=0;n<c.length;++n)i.push(a[c[n]]);"v"==o?i.push(0):i=i.concat([1,a[o]]),i[1]=i.length-2;var l=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),u=new WebAssembly.Module(l);return new WebAssembly.Instance(u,{e:{f:e}}).exports.f}(e,t);Y.set(n,i)}return E.set(e,n),n}var P,O=r.dynamicLibraries||[];r.wasmBinary&&(P=r.wasmBinary);var A,$=r.noExitRuntime||!0;function k(e,t,s,r){switch("*"===(s=s||"i8").charAt(s.length-1)&&(s="i32"),s){case"i1":case"i8":N[e>>0]=t;break;case"i16":R[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":ue=[t>>>0,(le=t,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[e>>2]=ue[0],q[e+4>>2]=ue[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ce("invalid type for setValue: "+s)}}function F(e,t,s){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return N[e>>0];case"i16":return R[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ce("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ce("no native wasm support detected");var M=!1;function T(e,t){e||ce("Assertion failed: "+t)}var I,N,C,R,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,s){for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.subarray&&B)return B.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var c=63&e[t++];if(192!=(224&o)){var a=63&e[t++];if((o=224==(240&o)?(15&o)<<12|c<<6|a:(7&o)<<18|c<<12|a<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|c)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(C,e,t):""}function z(e,t,s,r){if(!(r>0))return 0;for(var n=s,i=s+r-1,o=0;o<e.length;++o){var c=e.charCodeAt(o);if(c>=55296&&c<=57343&&(c=65536+((1023&c)<<10)|1023&e.charCodeAt(++o)),c<=127){if(s>=i)break;t[s++]=c}else if(c<=2047){if(s+1>=i)break;t[s++]=192|c>>6,t[s++]=128|63&c}else if(c<=65535){if(s+2>=i)break;t[s++]=224|c>>12,t[s++]=128|c>>6&63,t[s++]=128|63&c}else{if(s+3>=i)break;t[s++]=240|c>>18,t[s++]=128|c>>12&63,t[s++]=128|c>>6&63,t[s++]=128|63&c}}return t[s]=0,s-n}function G(e,t,s){return z(e,C,t,s)}function K(e){for(var t=0,s=0;s<e.length;++s){var r=e.charCodeAt(s);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++s)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function H(e){var t=K(e)+1,s=Ue(t);return z(e,N,s,t),s}function W(e){I=e,r.HEAP8=N=new Int8Array(e),r.HEAP16=R=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=C=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var J=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:J/65536,maximum:32768}))&&(I=A.buffer),J=I.byteLength,W(I);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Z=[],X=[],Q=[],ee=[],te=!1,se=0,re=null,ne=null;function ie(e){se++,r.monitorRunDependencies&&r.monitorRunDependencies(se)}function oe(e){if(se--,r.monitorRunDependencies&&r.monitorRunDependencies(se),0==se&&(null!==re&&(clearInterval(re),re=null),ne)){var t=ne;ne=null,t()}}function ce(e){throw r.onAbort&&r.onAbort(e),x(e+=""),M=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ae,le,ue;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function me(e){return e.startsWith("file://")}function he(e){try{if(e==ae&&P)return new Uint8Array(P);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ce(e)}}pe(ae="tree-sitter.wasm")||(ae=function(e){return r.locateFile?r.locateFile(e,b):b+e}(ae));var de={},fe={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function ye(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var s=t.func;"number"==typeof s?void 0===t.arg?Y.get(s)():Y.get(s)(t.arg):s(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function s(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,s(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var n={};n.memorySize=s(),n.memoryAlign=s(),n.tableSize=s(),n.tableAlign=s();var i=s();n.neededDynlibs=[];for(var o=0;o<i;++o){var c=s(),a=e.subarray(t,t+c);t+=c;var l=V(a,0);n.neededDynlibs.push(l)}return n}var _e=0;function ve(){return $||_e>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function xe(e,t){for(var s in e)if(e.hasOwnProperty(s)){qe.hasOwnProperty(s)||(qe[s]=e[s]);var n=be(s);r.hasOwnProperty(n)||(r[n]=e[s])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var we=5250880;function je(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Se(e,t){var s={};for(var r in e){var n=e[r];"object"==typeof n&&(n=n.value),"number"==typeof n&&(n+=t),s[r]=n}return function(e){for(var t in e)if(!je(t)){var s=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],s=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(s||0==de[t].value)&&("function"==typeof r?de[t].value=S(r):"number"==typeof r?de[t].value=r:x("unhandled export type for `"+t+"`: "+typeof r))}}(s),s}function Pe(e,t){var s,n;return t&&(s=qe["orig$"+e]),s||(s=qe[e]),s||(s=r[be(e)]),!s&&e.startsWith("invoke_")&&(n=e.split("_")[1],s=function(){var e=Be();try{return function(e,t,s){return e.includes("j")?function(e,t,s){var n=r["dynCall_"+e];return s&&s.length?n.apply(null,[t].concat(s)):n.call(null,t)}(e,t,s):Y.get(t).apply(null,s)}(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),s}function Oe(e,t){var s=ge(e);function r(){var r=Math.pow(2,s.memoryAlign);r=Math.max(r,w);var n,i,o,c=(n=function(e){if(te)return De(e);var t=we,s=t+e+15&-16;return we=s,de.__heap_base.value=s,t}(s.memorySize+r),(i=r)||(i=w),Math.ceil(n/i)*i),a=Y.length;Y.grow(s.tableSize);for(var l=c;l<c+s.memorySize;l++)N[l]=0;for(l=a;l<a+s.tableSize;l++)Y.set(l,null);var u=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return c;case"__table_base":return a}return t in qe?qe[t]:(t in e||(e[t]=function(){return s||(s=function(e){var t=Pe(e,!1);return t||(t=o[e]),t}(t)),s.apply(null,arguments)}),e[t]);var s}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:u,wasi_snapshot_preview1:u};function m(e){for(var r=0;r<s.tableSize;r++){var n=Y.get(a+r);n&&E.set(n,a+r)}o=Se(e.exports,c),t.allowUndefined||$e();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(m(h))}return WebAssembly.instantiate(e,p).then((function(e){return m(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return m(h=new WebAssembly.Instance(d,p))}return t.loadAsync?s.neededDynlibs.reduce((function(e,s){return e.then((function(){return Ae(s,t)}))}),Promise.resolve()).then((function(){return r()})):(s.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var s,n=Ee.loadedLibNames[e];if(n)return s=Ee.loadedLibs[n],t.global&&!s.global&&(s.global=!0,"loading"!==s.module&&xe(s.module)),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,t.loadAsync?Promise.resolve(n):n;function i(e){if(t.fs){var s=t.fs.readFile(e,{encoding:"binary"});return s instanceof Uint8Array||(s=new Uint8Array(s)),t.loadAsync?Promise.resolve(s):s}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var s=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(s):s}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function c(e){s.global&&xe(e),s.module=e}return n=Ee.nextHandle++,s={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=n,Ee.loadedLibs[n]=s,t.loadAsync?o().then((function(e){return c(e),n})):(c(o()),n)}function $e(){for(var e in de)if(0==de[e].value){var t=Pe(e,!0);"function"==typeof t?de[e].value=S(t,t.sig):"number"==typeof t?de[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=we;var ke,Fe=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Me(){ce()}r._abort=Me,Me.sig="v",ke=a?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var s;if(0===e)s=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;s=ke()}return q[t>>2]=s/1e3|0,q[t+4>>2]=s%1e3*1e3*1e3|0,0}function Ie(e){try{return A.grow(e-I.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Ne(e){We(e)}function Ce(e){}Te.sig="iii",Ne.sig="vi",Ce.sig="vi";var Re,qe={__heap_base:we,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:Fe,__table_base:1,abort:Me,clock_gettime:Te,emscripten_memcpy_big:function(e,t,s){C.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=C.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var n=s*(1+.2/r);if(n=Math.min(n,e+100663296),Ie(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ne,memory:A,setTempRet0:Ce,tree_sitter_log_callback:function(e,t){if(lt){const s=U(t);lt(s,0!==e)}},tree_sitter_parse_callback:function(e,t,s,r,n){var i=at(t,{row:s,column:r});"string"==typeof i?(k(n,i.length,"i32"),function(e,t,s){if(void 0===s&&(s=2147483647),s<2)return 0;for(var r=(s-=2)<2*e.length?s/2:e.length,n=0;n<r;++n){var i=e.charCodeAt(n);R[t>>1]=i,t+=2}R[t>>1]=0}(i,e,10240)):k(n,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,fe),"GOT.func":new Proxy(qe,fe)};function t(e,t){var s=e.exports;s=Se(s,1024),r.asm=s;var n,i=ge(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),xe(s),n=r.asm.__wasm_call_ctors,X.unshift(n),oe()}function s(e){t(e.instance,e.module)}function n(t){return function(){if(!P&&(u||p)){if("function"==typeof fetch&&!me(ae))return fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return he(ae)}));if(y)return new Promise((function(e,t){y(ae,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ae)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){x("failed to asynchronously prepare wasm: "+e),ce(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return x("Module.instantiateWasm callback failed with error: "+e),!1}P||"function"!=typeof WebAssembly.instantiateStreaming||pe(ae)||me(ae)||"function"!=typeof fetch?n(s):fetch(ae,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(s,(function(e){return x("wasm streaming compile failed: "+e),x("falling back to ArrayBuffer instantiation"),n(s)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Be=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Be=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Ve=r.stackRestore=function(){return(Ve=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var s;return s=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?C.set(e,s):C.set(new Uint8Array(e),s),s},ne=function e(){Re||He(),Re||(ne=e)};var Ke=!1;function He(e){function t(){Re||(Re=!0,r.calledRun=!0,M||(te=!0,ye(X),ye(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Je&&function(e){var t=r._main;if(t){var s=(e=e||[]).length+1,n=Ue(4*(s+1));q[n>>2]=H(h);for(var i=1;i<s;i++)q[(n>>2)+i]=H(e[i-1]);q[(n>>2)+s]=0;try{We(t(s,n),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),x("exception thrown: "+o),d(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;ye(ee)}()))}e=e||m,se>0||!Ke&&(function(){if(O.length){if(!g)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),$e()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),$e()}else $e()}(),Ke=!0,se>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Z.unshift(e);var e;ye(Z)}(),se>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function We(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),M=!0),d(e,new Ge(e)))}if(r.run=He,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Je=!0;r.noInitialRun&&(Je=!1),He();const Ye=r,Ze={},Xe=4,Qe=5*Xe,et=2*Xe,tt=2*Xe+2*et,st={row:0,column:0},rt=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,ct,at,lt;class ut{static init(){ct=Ye._ts_init(),it=F(ct,"i32"),ot=F(ct+Xe,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=F(ct,"i32"),this[1]=F(ct+Xe,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const s=Ye._ts_language_version(t);if(s<ot||it<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ye._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)at=(t,s,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");at=e}this.logCallback?(lt=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(lt=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s&&s.includedRanges){r=s.includedRanges.length;let e=n=Ye._calloc(r,tt);for(let t=0;t<r;t++)Pt(e,s.includedRanges[t]),e+=tt}const i=Ye._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw at=null,lt=null,new Error("Parsing failed");const o=new pt(Ze,i,this.language,at);return at=null,lt=null,o}reset(){Ye._ts_parser_reset(this[0])}setTimeoutMicros(e){Ye._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ye._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,s,r){_t(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=Ye._ts_tree_copy(this[0]);return new pt(Ze,e,this.language,this.textCallback)}delete(){Ye._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=ct;jt(t,e.startPosition),jt(t+=et,e.oldEndPosition),jt(t+=et,e.newEndPosition),k(t+=et,e.startIndex,"i32"),k(t+=Xe,e.oldEndIndex,"i32"),k(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ye._ts_tree_edit_wasm(this[0])}get rootNode(){return Ye._ts_tree_root_node_wasm(this[0]),xt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ye._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=F(ct,"i32"),s=F(ct+Xe,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=Ot(e),e+=tt;Ye._free(s)}return r}}class mt{constructor(e,t){_t(e),this.tree=t}get typeId(){return bt(this),Ye._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ye._ts_node_end_point_wasm(this.tree[0]),St(ct)}get endIndex(){return bt(this),Ye._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ye._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ye._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ye._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ye._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ye._ts_node_child_wasm(this.tree[0],e),xt(this.tree)}namedChild(e){return bt(this),Ye._ts_node_named_child_wasm(this.tree[0],e),xt(this.tree)}childForFieldId(e){return bt(this),Ye._ts_node_child_by_field_id_wasm(this.tree[0],e),xt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ye._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ye._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){bt(this),Ye._ts_node_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Xe,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=xt(this.tree,s),s+=Qe;Ye._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ye._ts_node_named_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=xt(this.tree,s),s+=Qe;Ye._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=st),s||(s=st);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=Ye._malloc(Xe*r.length);for(let e=0,t=r.length;e<t;e++)k(i+e*Xe,r[e],"i32");bt(this),Ye._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=F(ct,"i32"),c=F(ct+Xe,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=xt(this.tree,e),e+=Qe}return Ye._free(c),Ye._free(i),a}get nextSibling(){return bt(this),Ye._ts_node_next_sibling_wasm(this.tree[0]),xt(this.tree)}get previousSibling(){return bt(this),Ye._ts_node_prev_sibling_wasm(this.tree[0]),xt(this.tree)}get nextNamedSibling(){return bt(this),Ye._ts_node_next_named_sibling_wasm(this.tree[0]),xt(this.tree)}get previousNamedSibling(){return bt(this),Ye._ts_node_prev_named_sibling_wasm(this.tree[0]),xt(this.tree)}get parent(){return bt(this),Ye._ts_node_parent_wasm(this.tree[0]),xt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let s=ct+Qe;return k(s,e,"i32"),k(s+Xe,t,"i32"),Ye._ts_node_descendant_for_index_wasm(this.tree[0]),xt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let s=ct+Qe;return k(s,e,"i32"),k(s+Xe,t,"i32"),Ye._ts_node_named_descendant_for_index_wasm(this.tree[0]),xt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let s=ct+Qe;return jt(s,e),jt(s+et,t),Ye._ts_node_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let s=ct+Qe;return jt(s,e),jt(s+et,t),Ye._ts_node_named_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}walk(){return bt(this),Ye._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Ze,this.tree)}toString(){bt(this);const e=Ye._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var s=C[e++>>0];if(!s)return t;t+=String.fromCharCode(s)}}(e);return Ye._free(e),t}}class ht{constructor(e,t){_t(e),this.tree=t,wt(this)}delete(){Et(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,ct+Qe),Ye._ts_tree_cursor_reset_wasm(this.tree[0]),wt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Et(this),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return Et(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),St(ct)}get endPosition(){return Et(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),St(ct)}get startIndex(){return Et(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),xt(this.tree)}currentFieldId(){return Et(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return wt(this),1===e}gotoNextSibling(){Et(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return wt(this),1===e}gotoParent(){Et(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return wt(this),1===e}}class dt{constructor(e,t){_t(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ye._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ye._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ye._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ye._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ye._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=K(e),r=Ye._malloc(s+1);G(e,r,s+1);const n=Ye._ts_language_symbol_for_name(this[0],r,s,t);return Ye._free(r),n||null}get nodeTypeCount(){return Ye._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ye._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ye._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ye._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=K(e),s=Ye._malloc(t+1);G(e,s,t+1);const r=Ye._ts_query_new(this[0],s,t,ct,ct+Xe);if(!r){const t=F(ct+Xe,"i32"),r=U(s,F(ct,"i32")).length,n=e.substr(r,100).split("\n")[0];let i,o=n.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${n}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${n}'...`),o=""}throw i.index=r,i.length=o.length,Ye._free(s),i}const n=Ye._ts_query_string_count(r),i=Ye._ts_query_capture_count(r),o=Ye._ts_query_pattern_count(r),c=new Array(i),a=new Array(n);for(let e=0;e<i;e++){const t=Ye._ts_query_capture_name_for_id(r,e,ct),s=F(ct,"i32");c[e]=U(t,s)}for(let e=0;e<n;e++){const t=Ye._ts_query_string_value_for_id(r,e,ct),s=F(ct,"i32");a[e]=U(t,s)}const l=new Array(o),u=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ye._ts_query_predicates_for_pattern(r,e,ct),s=F(ct,"i32");m[e]=[],h[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=F(i,"i32"),s=F(i+=Xe,"i32");if(i+=Xe,1===t)n.push({type:"capture",name:c[s]});else if(2===t)n.push({type:"string",value:a[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s=!0;switch(t){case"not-eq?":s=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${n[1].value}"`);if("capture"===n[2].type){const t=n[1].name,r=n[2].name;h[e].push((function(e){let n,i;for(const s of e)s.name===t&&(n=s.node),s.name===r&&(i=s.node);return void 0===n||void 0===i||n.text===i.text===s}))}else{const t=n[1].name,r=n[2].value;h[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===r===s;return!0}))}break;case"not-match?":s=!1;case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${n[2].value}.`);const r=n[1].name,i=new RegExp(n[2].value);h[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===s;return!0}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?u:p;o[e]||(o[e]={}),o[e][n[1].value]=n[2]?n[2].value:null;break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(p[e])}return Ye._free(s),new ft(Ze,r,c,h,m,Object.freeze(l),Object.freeze(u),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=s(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>nt.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new dt(Ze,r)}))}}class ft{constructor(e,t,s,r,n,i,o,c){_t(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=c,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,s,r){t||(t=st),s||(s=st),r||(r={});let n=r.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,n);const i=F(ct,"i32"),o=F(ct+Xe,"i32"),c=F(ct+2*Xe,"i32"),a=new Array(i);this.exceededMatchLimit=!!c;let l=0,u=o;for(let t=0;t<i;t++){const s=F(u,"i32"),r=F(u+=Xe,"i32");u+=Xe;const n=new Array(r);if(u=gt(this,e.tree,u,n),this.textPredicates[s].every((e=>e(n)))){a[l++]={pattern:s,captures:n};const e=this.setProperties[s];e&&(a[t].setProperties=e);const r=this.assertedProperties[s];r&&(a[t].assertedProperties=r);const i=this.refutedProperties[s];i&&(a[t].refutedProperties=i)}}return a.length=l,Ye._free(o),a}captures(e,t,s,r){t||(t=st),s||(s=st),r||(r={});let n=r.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");bt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,n);const i=F(ct,"i32"),o=F(ct+Xe,"i32"),c=F(ct+2*Xe,"i32"),a=[];this.exceededMatchLimit=!!c;const l=[];let u=o;for(let t=0;t<i;t++){const t=F(u,"i32"),s=F(u+=Xe,"i32"),r=F(u+=Xe,"i32");if(u+=Xe,l.length=s,u=gt(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),a.push(e)}}return Ye._free(o),a}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function yt(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function gt(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=F(s,"i32"),o=xt(t,s+=Xe);s+=Qe,r[n]={name:e.captureNames[i],node:o}}return s}function _t(e){if(e!==Ze)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=ct;k(t,e.id,"i32"),k(t+=Xe,e.startIndex,"i32"),k(t+=Xe,e.startPosition.row,"i32"),k(t+=Xe,e.startPosition.column,"i32"),k(t+=Xe,e[0],"i32")}function xt(e,t=ct){const s=F(t,"i32");if(0===s)return null;const r=F(t+=Xe,"i32"),n=F(t+=Xe,"i32"),i=F(t+=Xe,"i32"),o=F(t+=Xe,"i32"),c=new mt(Ze,e);return c.id=s,c.startIndex=r,c.startPosition={row:n,column:i},c[0]=o,c}function Et(e,t=ct){k(t+0*Xe,e[0],"i32"),k(t+1*Xe,e[1],"i32"),k(t+2*Xe,e[2],"i32")}function wt(e){e[0]=F(ct+0*Xe,"i32"),e[1]=F(ct+1*Xe,"i32"),e[2]=F(ct+2*Xe,"i32")}function jt(e,t){k(e,t.row,"i32"),k(e+Xe,t.column,"i32")}function St(e){return{row:F(e,"i32"),column:F(e+Xe,"i32")}}function Pt(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),k(e+=et,t.startIndex,"i32"),k(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=St(e),e+=et,t.endPosition=St(e),e+=et,t.startIndex=F(e,"i32"),e+=Xe,t.endIndex=F(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ut.prototype))Object.defineProperty(i.prototype,e,{value:ut.prototype[e],enumerable:!1,writable:!1});i.Language=dt,r.onRuntimeInitialized=()=>{ut.init(),t()}})))}}return i}();e.exports=n},3078:()=>{},4142:()=>{},1212:(e,t,s)=>{e.exports=s(8411)},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var c,a=r(t),l=i(a),u=n(o,l);if(e&&s!=s){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),c=Object,a="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?s:a?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var c=n(t),a=o.f,l=i.f,u=0;u<c.length;u++){var p=c[u];r(e,p)||s&&r(s,p)||a(e,p,l(t,p))}}},2871:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},7525:(e,t,s)=>{"use strict";var r=s(1063),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,s)=>{"use strict";var r=s(1063),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100: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}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,s)=>{"use strict";var r,n,i=s(1063),o=s(7868),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),c=/\n\s*at [^:]*:[^\n]*/,a=c.test(o);e.exports=function(e,t){if(a&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,c,"");return e}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,c){i&&(o?o(e,t):r(e,"stack",n(s,c)))}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,s)=>{"use strict";var r=s(1063),n=s(7013),i=s(9344),o=s(2769),c=s(4543).f,a=s(8696),l=s(8099),u=s(4572),p=s(3999),m=s(701),h=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,d,f,y,g,_,v,b,x=e.target,E=e.global,w=e.stat,j=e.proto,S=E?r:w?r[x]:r[x]&&r[x].prototype,P=E?l:l[x]||p(l,x,{})[x],O=P.prototype;for(f in t)n=!(s=a(E?f:x+(w?".":"#")+f,e.forced))&&S&&m(S,f),g=P[f],n&&(_=e.dontCallGetSet?(b=c(S,f))&&b.value:S[f]),y=n&&_?_:t[f],(s||j||typeof g!=typeof y)&&(v=e.bind&&n?u(y,r):e.wrap&&n?h(y):j&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(v,"sham",!0),p(P,f,v),j&&(m(l,d=x+"Prototype")||p(l,d,{}),p(l[d],f,y),e.real&&O&&(s||!O[f])&&p(O,f,y)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,c=n(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(1063),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),c=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,c)||n(e,"@@iterator")||o[r(e)]}},1613:(e,t,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),c=s(967),a=TypeError;e.exports=function(e,t){var s=arguments.length<2?c(e):t;if(n(s))return i(r(s,e));throw new a(o(e)+" is not iterable")}},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},1063:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,c=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?c(e,""):o(e)}:o},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,c;return i&&r(o=t.constructor)&&o!==s&&n(c=o.prototype)&&c!==s.prototype&&i(e,c),e}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),c=s(1063),a=s(262),l=s(3999),u=s(701),p=s(3753),m=s(4275),h=s(5241),d="Object already initialized",f=c.TypeError,y=c.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,r=function(e,t){if(g.has(e))throw new f(d);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 _=m("state");h[_]=!0,r=function(e,t){if(u(e,_))throw new f(d);return t.facade=e,l(e,_,t),t},n=function(e){return u(e,_)?e[_]:{}},i=function(e){return u(e,_)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!a(t)||(s=n(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return s}}}},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2769: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}},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=a[c(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,c(e))}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),c=s(2877),a=s(8130),l=s(4317),u=s(1613),p=s(967),m=s(1743),h=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;e.exports=function(e,t,s){var y,g,_,v,b,x,E,w=s&&s.that,j=!(!s||!s.AS_ENTRIES),S=!(!s||!s.IS_RECORD),P=!(!s||!s.IS_ITERATOR),O=!(!s||!s.INTERRUPTED),A=r(t,w),$=function(e){return y&&m(y,"normal",e),new d(!0,e)},k=function(e){return j?(i(e),O?A(e[0],e[1],$):A(e[0],e[1])):O?A(e,$):A(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw new h(o(e)+" is not iterable");if(c(g)){for(_=0,v=a(e);v>_;_++)if((b=k(e[_]))&&l(f,b))return b;return new d(!1)}y=u(e,g)}for(x=S?e.next:y.next;!(E=n(x,y)).done;){try{b=k(E.value)}catch(e){m(y,"throw",e)}if("object"==typeof b&&b&&l(f,b))return b}return new d(!1)}},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,c;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){c=!0,o=e}if("throw"===t)throw s;if(c)throw o;return n(o),s}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),c=s(6625),a=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),c[u]=a,e}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),c=s(2769),a=s(1926),l=s(3671),u=s(3491),p=s(1811),m=s(3999),h=s(3508),d=s(8655),f=s(6625),y=s(2621),g=o.PROPER,_=o.CONFIGURABLE,v=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,x=d("iterator"),E="keys",w="values",j="entries",S=function(){return this};e.exports=function(e,t,s,o,d,y,P){a(s,t,o);var O,A,$,k=function(e){if(e===d&&N)return N;if(!b&&e&&e in T)return T[e];switch(e){case E:case w:case j:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",M=!1,T=e.prototype,I=T[x]||T["@@iterator"]||d&&T[d],N=!b&&I||k(d),C="Array"===t&&T.entries||I;if(C&&(O=l(C.call(new e)))!==Object.prototype&&O.next&&(i||l(O)===v||(u?u(O,v):c(O[x])||h(O,x,S)),p(O,F,!0,!0),i&&(f[F]=S)),g&&d===w&&I&&I.name!==w&&(!i&&_?m(T,"name",w):(M=!0,N=function(){return n(I,this)})),d)if(A={values:k(w),keys:y?N:k(E),entries:k(j)},P)for($ in A)(b||M||!($ in T))&&h(T,$,A[$]);else r({target:t,proto:!0,forced:b||M},A);return i&&!P||T[x]===N||h(T,x,N,{name:d}),f[t]=N,A}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),c=s(2769),a=s(262),l=s(5780),u=s(3671),p=s(3508),m=s(8655),h=s(4871),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):f=!0),!a(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:h&&(r=l(r)),c(r[d])||p(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:f}},6625:e=>{"use strict";e.exports={}},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),c=s(5241),a=s(3489),l=s(9619),u=s(4275),p="prototype",m="script",h=u("IE_PROTO"),d=function(){},f=function(e){return"<"+m+">"+e+"</"+m+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?y(r):(t=l("iframe"),s="java"+m+":",t.style.display="none",a.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(r);for(var n=o.length;n--;)delete g[p][o[n]];return g()};c[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(d[p]=n(e),s=new d,d[p]=null,s[h]=e):s=g(),void 0===t?s:i.f(s,t)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),c=s(3273),a=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=c(t),n=a(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),c=s(5341),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",h="writable";t.f=r?i?function(e,t,s){if(o(e),t=c(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&h in s&&!s[h]){var r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:p in s?s[p]:r[p],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=c(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new a("Accessors not supported");return"value"in s&&(e[t]=s.value),e}},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),c=s(3273),a=s(5341),l=s(701),u=s(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=a(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),c=s(2871),a=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=i(e);if(r(t,a))return t[a];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,c=s(5241),a=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(c,s)&&n(r,s)&&a(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||a(u,s));return u}},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(7235),i=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return n(s),i(r),t?e(s,r):s.__proto__=r,s}}():void 0)},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,c;if("string"===t&&n(s=e.toString)&&!i(c=r(s,e)))return c;if(n(s=e.valueOf)&&!i(c=r(s,e)))return c;if("string"!==t&&n(s=e.toString)&&!i(c=r(s,e)))return c;throw new o("Can't convert object to primitive value")}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),c=s(7235),a=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(c(e)),s=o.f;return s?a(t,s(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5426:(e,t,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),c=s(9559),a=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,a)||n(u,a,{configurable:!0,value:t}),l&&!r&&i(u,"toString",c))}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,s)=>{"use strict";var r=s(1063),n=s(7525),i="__core-js_shared__",o=r[i]||n(i,{});e.exports=o},8141:(e,t,s)=>{"use strict";var r=s(4871),n=s(3753);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),c=r("".charAt),a=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,p=i(o(t)),m=n(s),h=p.length;return m<0||m>=h?e?"":void 0:(r=a(p,m))<55296||r>56319||m+1===h||(u=a(p,m+1))<56320||u>57343?e?c(p,m):r:e?l(p,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},4603:(e,t,s)=>{"use strict";var r=s(4432),n=s(1203),i=s(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),c=s(9258),a=s(8655),l=TypeError,u=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,a=o(e,u);if(a){if(void 0===t&&(t="default"),s=r(a,e,t),!n(s)||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,s)=>{"use strict";var r=s(1063),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,s)=>{"use strict";var r=s(1063),n=s(8141),i=s(701),o=s(1268),c=s(4603),a=s(7460),l=r.Symbol,u=n("wks"),p=a?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=c&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),c=s(3491),a=s(7464),l=s(5516),u=s(3507),p=s(4879),m=s(8148),h=s(4279),d=s(5024),f=s(4871);e.exports=function(e,t,s,y){var g="stackTraceLimit",_=y?2:1,v=e.split("."),b=v[v.length-1],x=r.apply(null,v);if(x){var E=x.prototype;if(!f&&n(E,"cause")&&delete E.cause,!s)return x;var w=r("Error"),j=t((function(e,t){var s=p(y?t:e,void 0),r=y?new x(e):new x;return void 0!==s&&i(r,"message",s),h(r,j,r.stack,2),this&&o(E,this)&&u(r,this,j),arguments.length>_&&m(r,arguments[_]),r}));if(j.prototype=E,"Error"!==b?c?c(j,w):a(j,w,{name:!0}):d&&g in x&&(l(j,x,g),l(j,x,"prepareStackTrace")),a(j,x),!f)try{E.name!==b&&i(E,"name",b),E.constructor=j}catch(e){}return j}}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),c=s(6453),a="AggregateError",l=n(a),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],a,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:c(a,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},3085:(e,t,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),c=s(7464),a=s(5780),l=s(3999),u=s(480),p=s(8148),m=s(4279),h=s(208),d=s(4879),f=s(8655)("toStringTag"),y=Error,g=[].push,_=function(e,t){var s,r=n(v,this);o?s=o(new y,r?i(this):v):(s=r?this:a(v),l(s,f,"Error")),void 0!==t&&l(s,"message",d(t)),m(s,_,s.stack,1),arguments.length>2&&p(s,arguments[2]);var c=[];return h(e,g,{that:c}),l(s,"errors",c),s};o?o(_,y):c(_,y,{name:!0});var v=_.prototype=a(y.prototype,{constructor:u(1,_),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:_})},5695:(e,t,s)=>{"use strict";s(3085)},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),c=s(9989).f,a=s(164),l=s(877),u=s(4871),p=s(5024),m="Array Iterator",h=o.set,d=o.getterFor(m);e.exports=a(Array,"Array",(function(e,t){h(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=void 0,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},484:(e,t,s)=>{"use strict";var r=s(9098),n=s(1063),i=s(7013),o=s(6453),c="WebAssembly",a=n[c],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},p=function(e,t){if(a&&a[e]){var s={};s[e]=o(c+"."+e,t,l),r({target:c,stat:!0,constructor:!0,arity:1,forced:l},s)}};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)}}))},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),c=s(877),a="String Iterator",l=i.set,u=i.getterFor(a);o(String,"String",(function(e){l(this,{type:a,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?c(void 0,!0):(e=r(s,n),t.index+=e.length,c(e,!1))}))},5442:(e,t,s)=>{"use strict";s(5695)},85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(1063),i=s(1811),o=s(6625);for(var c in r)i(n[c],c),o[c]=o.Array},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r}},t={};function s(r){var n=t[r];if(void 0!==n)return n.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,s),i.loaded=!0,i.exports}s.d=(e,t)=>{for(var r in t)s.o(t,r)&&!s.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},s.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),s.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),s.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},s.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;s.g.importScripts&&(e=s.g.location+"");var t=s.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),s.p=e})();var r={};return(()=>{"use strict";s.r(r),s.d(r,{detect:()=>zy,detectionRegExp:()=>Uy,mediaTypes:()=>Vy,namespace:()=>Ky,parse:()=>Gy});var e={};s.r(e),s.d(e,{hasElementSourceMap:()=>an,includesClasses:()=>un,includesSymbols:()=>ln,isAnnotationElement:()=>sn,isArrayElement:()=>Xr,isBooleanElement:()=>Yr,isCommentElement:()=>rn,isElement:()=>Kr,isLinkElement:()=>en,isMemberElement:()=>Qr,isNullElement:()=>Jr,isNumberElement:()=>Wr,isObjectElement:()=>Zr,isParseResultElement:()=>nn,isPrimitiveElement:()=>cn,isRefElement:()=>tn,isSourceMapElement:()=>on,isStringElement:()=>Hr});var t={};s.r(t),s.d(t,{isJSONReferenceElement:()=>Nc,isJSONSchemaElement:()=>Ic,isLinkDescriptionElement:()=>Rc,isMediaElement:()=>Cc});var n={};s.r(n),s.d(n,{isBooleanJsonSchemaElement:()=>Rl,isCallbackElement:()=>gl,isComponentsElement:()=>_l,isContactElement:()=>vl,isExampleElement:()=>bl,isExternalDocumentationElement:()=>xl,isHeaderElement:()=>El,isInfoElement:()=>wl,isLicenseElement:()=>jl,isLinkElement:()=>Sl,isMediaTypeElement:()=>Vl,isOpenApi3_0Element:()=>Ol,isOpenapiElement:()=>Pl,isOperationElement:()=>Al,isParameterElement:()=>$l,isPathItemElement:()=>kl,isPathsElement:()=>Fl,isReferenceElement:()=>Ml,isRequestBodyElement:()=>Tl,isResponseElement:()=>Il,isResponsesElement:()=>Nl,isSchemaElement:()=>Cl,isSecurityRequirementElement:()=>ql,isSecuritySchemeElement:()=>Dl,isServerElement:()=>Ll,isServerVariableElement:()=>Bl,isServersElement:()=>Ul});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(s){return 0===arguments.length||o(s)?t:e.apply(this,arguments)}}function a(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return o(s)?t:c((function(t){return e(s,t)}));default:return o(s)&&o(r)?t:o(s)?c((function(t){return e(t,r)})):o(r)?c((function(t){return e(s,t)})):e(s,r)}}}function l(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return o(s)?t:a((function(t,r){return e(s,t,r)}));case 2:return o(s)&&o(r)?t:o(s)?a((function(t,s){return e(t,r,s)})):o(r)?a((function(t,r){return e(s,t,r)})):c((function(t){return e(s,r,t)}));default:return o(s)&&o(r)&&o(n)?t:o(s)&&o(r)?a((function(t,s){return e(t,s,n)})):o(s)&&o(n)?a((function(t,s){return e(t,r,s)})):o(r)&&o(n)?a((function(t,r){return e(s,t,r)})):o(s)?c((function(t){return e(t,r,n)})):o(r)?c((function(t){return e(s,t,n)})):o(n)?c((function(t){return e(s,r,t)})):e(s,r,n)}}}s.r(i),s.d(i,{isBooleanJsonSchemaElement:()=>hf,isCallbackElement:()=>Ud,isComponentsElement:()=>zd,isContactElement:()=>Gd,isExampleElement:()=>Kd,isExternalDocumentationElement:()=>Hd,isHeaderElement:()=>Wd,isInfoElement:()=>Jd,isJsonSchemaDialectElement:()=>Yd,isLicenseElement:()=>Zd,isLinkElement:()=>Xd,isMediaTypeElement:()=>_f,isOpenApi3_1Element:()=>ef,isOpenapiElement:()=>Qd,isOperationElement:()=>tf,isParameterElement:()=>sf,isPathItemElement:()=>rf,isPathItemElementExternal:()=>nf,isPathsElement:()=>of,isReferenceElement:()=>cf,isReferenceElementExternal:()=>af,isRequestBodyElement:()=>lf,isResponseElement:()=>uf,isResponsesElement:()=>pf,isSchemaElement:()=>mf,isSecurityRequirementElement:()=>df,isSecuritySchemeElement:()=>ff,isServerElement:()=>yf,isServerVariableElement:()=>gf});const u=a((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function m(e){return"[object String]"===Object.prototype.toString.call(e)}const h=a((function(e,t){var s=e<0?t.length+e:e;return m(t)?t.charAt(s):t[s]}));const d=a((function(e,t){if(null!=t)return p(e)?h(e,t):t[e]}));const f=l((function(e,t,s){return u(e,d(t,s))}));var y=a((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const g=y;function _(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=c((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!m(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,s){return function(r,n,i){if(b(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function j(e,t,s,r){return s[r](e,t)}const S=E(_,j,w);function P(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!v(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function O(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const A=function(){return this.xf["@@transducer/init"]()},$=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const F=function(e){return function(t){return new k(e,t)}};function M(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,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,c,a,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 T(e,t,s){return function(){for(var r=[],n=0,i=e,c=0,a=!1;c<t.length||n<arguments.length;){var l;c<t.length&&(!o(t[c])||n>=arguments.length)?l=t[c]:(l=arguments[n],n+=1),r[c]=l,o(l)?a=!0:i-=1,c+=1}return!a&&i<=0?s.apply(this,r):M(Math.max(0,i),T(e,r,s))}}const I=a((function(e,t){return 1===e?c(t):M(e,T(e,[],t))}));function N(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const R=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return N("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},V="function"!=typeof Object.keys||L?c((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=L&&R(e);for(t in e)!N(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=D.length-1;s>=0;)N(t=D[s],e)&&!B(r,t)&&(r[r.length]=t),s-=1;return r})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=V;const z=a(P(["fantasy-land/map","map"],F,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return I(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _((function(s,r){return s[r]=e(t[r]),s}),{},U(t));default:return O(e,t)}})));const G=a((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(s){return e(s)(t(s))}:S((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,z(s,t))}),[],e)}));const K=a((function(e,t){var s=I(e,t);return I(e,(function(){return _(G,z(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const H=c((function(e){return K(e.length,e)}));const W=H(c((function(e){return!e})));function J(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Y(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,s,r){var n=J(e);function i(e,t){return ee(e,t,s.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),J(t),n)}function ee(e,t,s,r){if(Z(e,t))return!0;var n,i,o=X(e);if(o!==X(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||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(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 c=s.length-1;c>=0;){if(s[c]===e)return r[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),s.concat([e]),r.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 a=U(e);if(a.length!==U(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!N(p,t)||!ee(t[p],e[p],l,u))return!1;c-=1}return!0}const te=a((function(e,t){return ee(e,t,[],[])}));const se=c((function(e){return function(){return e}}));const re=se(void 0);const ne=te(re());const ie=W(ne);var oe=s(8326);function ce(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ae(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const le=a((function(e,t){return M(e.length,(function(){return e.apply(t,arguments)}))}));function ue(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function pe(e,t,s,r){return e["@@transducer/result"](s[r](le(e["@@transducer/step"],e),t))}const me=E(ae,pe,ue);var he=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 de(e){return new he(e)}const fe=l((function(e,t,s){return me("function"==typeof e?de(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ge=l(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const _e=c(ye("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return M(arguments[0].length,fe(ce,arguments[0],_e(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(s){return 0===arguments.length?t:Z(e,s)};default:return Z(e,t)}};const xe=be;function Ee(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(te(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function we(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 je=function(e){return(e<10?"0":"")+e};const Se="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+je(e.getUTCMonth()+1)+"-"+je(e.getUTCDate())+"T"+je(e.getUTCHours())+":"+je(e.getUTCMinutes())+":"+je(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Pe(e){return"[object Object]"===Object.prototype.toString.call(e)}var Oe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Oe(e,t)}}const $e=a(P(["fantasy-land/filter","filter"],Ae,(function(e,t){return Pe(t)?_((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},U(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const ke=a((function(e,t){return $e((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Fe(e,t){var s=function(s){var r=t.concat([e]);return Ee(s,r)?"<Circular>":Fe(s,r)},r=function(e,t){return O((function(t){return we(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(s,e).join(", ")+"))";case"[object Array]":return"["+O(s,e).concat(r(e,ke((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):we(Se(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":we(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,U(e)).join(", ")+"}"}}const Me=c((function(e){return Fe(e,[])}));const Te=a((function(e,t){return e.map((function(e){for(var s,r=t,n=0;n<e.length;){if(null==r)return;s=e[n],r=p(s)?h(s,r):r[s],n+=1}return r}))}));const Ie=a((function(e,t){return Te([e],t)[0]}));const Ne=l((function(e,t,s){return e(Ie(t,s))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Re=a((function(e,t){return e&&t}));const qe=a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:H(Re)(e,t)}));const De=te(null);const Le=W(De);function Be(e){return Be="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},Be(e)}const Ve=function(e){return"object"===Be(e)};const Ue=I(1,qe(Le,Ve));const ze=a((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Me(e),o=s(i,Me(t));return void 0!==o&&o===i?e:t}));const Ge=a((function(e,t){return z(d(e),t)}));const Ke=c((function(e){return I(fe(ze,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const He=I(1,ve(X,xe("GeneratorFunction")));const We=I(1,ve(X,xe("AsyncFunction")));const Je=Ke([ve(X,xe("Function")),He,We]);var Ye=ve(X,xe("Object")),Ze=ve(Me,te(Me(Object))),Xe=Ne(qe(Je,Ze),["constructor"]);const Qe=I(1,(function(e){if(!Ue(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Xe(t)}));class et extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class st extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const rt=st;class nt extends oe.wE{constructor(e,t,s){super(e,t,s),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(ne(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const it=nt;class ot extends oe.wE{constructor(e,t,s){super(e,t,s),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 oe.wE([e.start.row,e.start.column,e.start.char]),s=new oe.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const ct=ot;class at extends oe.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",ct)}}const lt=new at,ut=e=>{const t=new at;return Qe(e)&&t.use(e),t},pt=lt;const mt=I(1,ve(X,xe("String"))),ht=s.p+"23aac571c96605dc25219087ad291441.wasm",dt=globalThis.fetch;Je(dt)&&(globalThis.fetch=(...e)=>mt(e[0])&&e[0].endsWith("tree-sitter.wasm")?dt.apply(globalThis,[ht,_e(e)]):dt.apply(globalThis,e));var ft=s(3833),yt=s(1212);const gt=class extends yt{constructor(e,t,s){if(super(e,t,s),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!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,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 vt=_t,bt=s.p+"d396281e11774e0afa7a40d620779b6d.wasm";let xt=null,Et=null;const wt=async e=>{if(null===xt&&null===Et)Et=ft.init().then((()=>ft.Language.load(bt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{Et=null})),xt=await Et;else if(null===xt&&null!==Et)xt=await Et;else if(null===xt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return xt.parse(e)};function jt(e,t,s){if(s||(s=new St),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r,n=function(r){var n=s.get(e);if(n)return n;for(var i in s.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?jt(e[i],!0,s):e[i]);return r};switch(X(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return r=e,new RegExp(r.source,r.flags?r.flags:(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.sticky?"y":"")+(r.unicode?"u":"")+(r.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var St=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const s=this.hash(e);let r=this.map[s];r||(this.map[s]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const s=this.map[t];for(let t=0;t<s.length;t+=1){const r=s[t];if(r[0]===e)return r[1]}}return}const t=this.hash(e),s=this.map[t];if(s)for(let t=0;t<s.length;t+=1){const r=s[t];if(r[0]===e)return r[1]}},e}();const Pt=c((function(e){return null!=e&&"function"==typeof e.clone?e.clone():jt(e,!0)}));const Ot=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const At=class extends Ot{};const $t=class extends At{};const kt=class extends $t{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Ft=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};let Mt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Tt=class extends Ft{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const It=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Nt=class extends It{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Mt.Mapping}};const Ct=class extends It{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Mt.Sequence}};const Rt=class extends It{static uri="tag:yaml.org,2002:str"};const qt=l((function(e,t,s){return u(e,Ie(t,s))}));const Dt=c((function(e){return I(e.length,e)}));var Lt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Bt=c("function"==typeof String.prototype.trim&&!Lt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Lt+"]["+Lt+"]*"),s=new RegExp("["+Lt+"]["+Lt+"]*$");return e.replace(t,"").replace(s,"")});const Vt=a((function(e,t){return I(e+1,(function(){var s=arguments[e];if(null!=s&&Ce(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(s)+' does not have a method named "'+t+'"')}))}));const Ut=Vt(1,"split");const zt=Vt(1,"join");const Gt=c((function(e){return m(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Gt(arguments))}const Ht=I(4,(function(e,t,s,r){return me(e("function"==typeof t?de(t):t),s,r)}));const Wt=a((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Me(t)+" is not an array")}if(m(e)){if(m(t))return e+t;throw new TypeError(Me(t)+" is not a string")}if(null!=e&&Ce(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Ce(e.concat))return e.concat(t);throw new TypeError(Me(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Jt=te("");const Yt=a((function(e,t){return I(fe(ze,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,O((function(e){return e.apply(r,s)}),t))}))}));function Zt(e){return e}const Xt=c(Zt);const Qt=I(1,ve(X,xe("Number")));var es=qe(Qt,isFinite);var ts=I(1,es);const ss=Je(Number.isFinite)?I(1,le(Number.isFinite,Number)):ts;var rs=qe(ss,Yt(te,[Math.floor,Xt]));var ns=I(1,rs);const is=Je(Number.isInteger)?I(1,le(Number.isInteger,Number)):ns;const os=c((function(e){return I(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}));const cs=W(ss);const as=I(1,qe(Qt,a((function(e,t){return e>t}))(0)));var ls=Dt((function(e,t){var s=Number(t);if(s!==t&&(s=0),as(s))throw new RangeError("repeat count must be non-negative");if(cs(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),us=os(Vt(1,"repeat"));const ps=Je(String.prototype.repeat)?us:ls;const ms=l((function(e,t,s){return s.replace(e,t)}));var hs=ms(/[\s\uFEFF\xA0]+$/,""),ds=Vt(0,"trimEnd");const fs=Je(String.prototype.trimEnd)?ds:hs;var ys=ms(/^[\s\uFEFF\xA0]+/,""),gs=Vt(0,"trimStart");const _s=Je(String.prototype.trimStart)?gs:ys;var vs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,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 bs(e){return function(t){return new vs(e,t)}}const xs=a(P(["dropWhile"],bs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ge(s,1/0,t)})));const Es=os(a(Ee));const ws=Dt((function(e,t){return ve(Ut(""),xs(Es(e)),zt(""))(t)}));const js=os(Wt);var Ss=s(6850);const Ps=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Os=e=>{const t=(e=>{const t=e.match(Ps),s=qt("",["groups","indentation"],t);return Jt(s)?void 0:parseInt(s,10)})(e);if(is(t))return ps(" ",t);const s=qt("",[1],e.split("\n")),r=qt(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return ps(" ",r)},As=e=>{const t=e.match(Ps),s=qt("",["groups","chomping"],t);return Jt(s)?void 0:s},$s=(e,t)=>ne(e)?`${fs(t)}\n`:"-"===e?fs(t):t,ks=e=>e.replace(/\r\n/g,"\n"),Fs=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Ms=Dt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Ts=ve(ks,Bt,Fs,Ut("\n"),z(_s),zt("\n")),Is=ve(ks,Bt,Fs,Ut("\n"),z(_s),zt("\n"),Ms("'")),Ns=ve(ks,Bt,(e=>e.replace(/\\\n\s*/g,"")),Fs,Ss.MH,Ut("\n"),z(_s),zt("\n"),Ms('"'));let Cs=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Rs=function(e){return e.Flow="Flow",e.Block="Block",e}({});const qs=class{static test(e){return e.tag.kind===Mt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===Cs.Plain?t=Ts(e.content):e.style===Cs.SingleQuoted?t=Is(e.content):e.style===Cs.DoubleQuoted?t=Ns(e.content):e.style===Cs.Literal?t=(e=>{const t=Os(e),s=As(e),r=ks(e),n=_e(r.split("\n")),i=Kt(z(ws(t)),z(js("\n"))),o=Ht(i,Wt,"",n);return $s(s,o)})(e.content):e.style===Cs.Folded&&(t=(e=>{const t=Os(e),s=As(e),r=ks(e),n=_e(r.split("\n")),i=Kt(z(ws(t)),z(js("\n"))),o=Ht(i,Wt,"",n),c=Fs(o);return $s(s,c)})(e.content)),s.content=t,s}static resolve(e){return e}};const Ds=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Nt),this.registerTag(new Ct),this.registerTag(new Rt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Mt.Scalar?t=Rt.uri:e.tag.kind===Mt.Sequence?t=Ct.uri:e.tag.kind===Mt.Mapping&&(t=Nt.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;qs.test(e)&&(s=qs.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new kt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),node:e.clone()});if(!r.test(s))throw new kt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Ls=class extends It{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const Bs=class extends It{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const Vs=class extends It{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const Us=class extends It{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const zs=class extends Ds{constructor(){super(),this.registerTag(new Ls,!0),this.registerTag(new Bs,!0),this.registerTag(new Vs,!0),this.registerTag(new Us,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Mt.Sequence)t=Ct.uri;else if(e.tag.kind===Mt.Mapping)t=Nt.uri;else if(e.tag.kind===Mt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Gs=class extends Ft{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Ks=class extends Gs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Hs=class extends At{},Ws=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Js=e=>Ws("mapping",e),Ys=e=>Ws("sequence",e),Zs=e=>Ws("keyValuePair",e),Xs=e=>Ws("scalar",e),Qs=e=>Ws("alias",e);const er=class{addAnchor(e){if(!(e=>Ws("anchor",e))(e.anchor))throw new Hs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Ks({content:e.content,style:Cs.Plain,styleGroup:Rs.Flow})}},tr=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},sr={},rr=e=>null==e?void 0:e.type,nr=e=>"string"==typeof rr(e),ir=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),or=(e,{visitFnGetter:t=tr,nodeTypeGetter:s=rr,breakSymbol:r=sr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l,...u){let p=l,m=!1;for(let h=0;h<e.length;h+=1)if(a[h]===c){const c=t(e[h],s(p),!1);if("function"==typeof c){const t=c.call(e[h],p,...u);if(t===i)a[h]=l;else if(t===r)a[h]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,m=!0}}}}return m?p:void 0},leave(n,...o){for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],s(n),!0);if("function"==typeof c){const t=c.call(e[l],n,...o);if(t===r)a[l]=r;else if(void 0!==t&&t!==i)return t}}else a[l]===n&&(a[l]=c)}}};or[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=tr,nodeTypeGetter:s=rr,breakSymbol:r=sr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(l,...u){let p=l,m=!1;for(let h=0;h<e.length;h+=1)if(a[h]===c){const c=t(e[h],s(p),!1);if("function"==typeof c){const t=await c.call(e[h],p,...u);if(t===i)a[h]=l;else if(t===r)a[h]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,m=!0}}}}return m?p:void 0},async leave(n,...o){for(let l=0;l<e.length;l+=1)if(a[l]===c){const c=t(e[l],s(n),!0);if("function"==typeof c){const t=await c.call(e[l],n,...o);if(t===r)a[l]=r;else if(void 0!==t&&t!==i)return t}}else a[l]===n&&(a[l]=c)}}};const cr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=tr,nodeTypeGetter:a=rr,nodePredicate:l=nr,nodeCloneFn:u=ir,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],g=-1,_=[],v=e;const b=[],x=[];do{g+=1;const e=g===y.length;let s;const w=e&&0!==_.length;if(e){if(s=0===x.length?void 0:b.pop(),v=d,d=x.pop(),w)if(f){v=v.slice();let e=0;for(const[t,s]of _){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of _)v[e]=t}g=h.index,y=h.keys,_=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?g:y[g],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!l(v))throw new Ot(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&x.includes(v)){b.pop();continue}const i=c(t,a(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;j=i.call(t,v,s,d,b,x)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(_.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var E;if(void 0===j&&w&&_.push([s,v]),!e)h={inArray:f,index:g,keys:y,edits:_,prev:h},f=Array.isArray(v),y=f?v:null!==(E=m[a(v)])&&void 0!==E?E:[],g=-1,_=[],d!==i&&void 0!==d&&x.push(d),d=v}while(void 0!==h);return 0!==_.length?_[_.length-1][1]:e};cr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=tr,nodeTypeGetter:a=rr,nodePredicate:l=nr,nodeCloneFn:u=ir,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],g=-1,_=[],v=e;const b=[],x=[];do{g+=1;const e=g===y.length;let s;const w=e&&0!==_.length;if(e){if(s=0===x.length?void 0:b.pop(),v=d,d=x.pop(),w)if(f){v=v.slice();let e=0;for(const[t,s]of _){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of _)v[e]=t}g=h.index,y=h.keys,_=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?g:y[g],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!l(v))throw new Ot(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&x.includes(v)){b.pop();continue}const i=c(t,a(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;j=await i.call(t,v,s,d,b,x)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(_.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var E;if(void 0===j&&w&&_.push([s,v]),!e)h={inArray:f,index:g,keys:y,edits:_,prev:h},f=Array.isArray(v),y=f?v:null!==(E=m[a(v)])&&void 0!==E?E:[],g=-1,_=[],d!==i&&void 0!==d&&x.push(d),d=v}while(void 0!==h);return 0!==_.length?_[_.length-1][1]:e};class ar{static type="point";type=ar.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class lr{static type="position";type=lr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const ur=lr;const pr=class extends Ft{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class mr extends Ft{static type="stream"}Object.defineProperty(mr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Ws("document",e))(e)||(e=>Ws("comment",e))(e))):[]},enumerable:!0});const hr=mr;const dr=h(0);const fr=class extends Ft{static type="parseResult";get rootNode(){return dr(this.children)}};const yr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)N(i,n)&&(t[i]=n[i]);s+=1}return t};const gr=a((function(e,t){return yr({},e,t)}));const _r=class extends Ft{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=gr({version:void 0,handle:void 0,prefix:void 0},t)}};const vr=class extends Ft{static type="document"};const br=class extends Gs{};class xr extends br{static type="mapping"}Object.defineProperty(xr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Zs):[]},enumerable:!0});const Er=xr;class wr extends Ft{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(wr.prototype,{key:{get(){return this.children.filter((e=>Xs(e)||Js(e)||Ys(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Xs(e)||Js(e)||Ys(e)||Qs(e))(t)))[0]},enumerable:!0}});const jr=wr;class Sr extends br{static type="sequence"}Object.defineProperty(Sr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Ys(e)||Js(e)||Xs(e)||Qs(e))):[]},enumerable:!0});const Pr=Sr;const Or=class extends Ft{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ar=class extends Ft{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const $r=class extends Ft{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const kr=class extends Ft{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Fr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Mr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Tr=e=>Array.isArray(e)||nr(e);class Ir{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new ar({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new ur({start:t,end:s})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new pr({name:t.text,position:Ir.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Mt.Mapping:e.type.endsWith("sequence")?Mt.Sequence:Mt.Scalar,n=t?Ir.toPosition(t):void 0;return new Tt({explicitName:s,kind:r,position:n})}schema;referenceManager;stream={enter:e=>{const t=Ir.toPosition(e);return new hr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new fr({children:[e]})};yaml_directive={enter:e=>{var t;const s=Ir.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new _r({position:s,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Ir.toPosition(e),s=e.children[0],r=e.children[1],n=new _r({position:t,name:"%TAG",parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(n),n}};reserved_directive={enter:e=>{const t=Ir.toPosition(e),s=e.children[0],r=e.children[1],n=e.children[2];return new _r({position:t,name:null==s?void 0:s.text,parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}})}};document={enter:e=>{const t=Ir.toPosition(e);return new vr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Ir.isScalar(t)||Ir.isMapping(t)||Ir.isSequence(t))return e.children;const s=new ar({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Ks({content:"",anchor:Ir.kindNodeToYamlAnchor(t),tag:Ir.kindNodeToYamlTag(t),position:new ur({start:s,end:s}),styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Er({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Cs.NextLine,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};block_mapping_pair={enter:e=>{const t=Ir.toPosition(e),s=[...e.children];if(Ir.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Ir.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new jr({children:s,position:t,styleGroup:Rs.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Er({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Cs.Explicit,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};flow_pair={enter:e=>{const t=Ir.toPosition(e),s=[...e.children];if(Ir.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Ir.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new jr({children:s,position:t,styleGroup:Rs.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Pr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Rs.Block,style:Cs.NextLine});return this.registerAnchor(n),this.schema.resolve(n)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Ks({content:"",tag:new Tt({explicitName:"?",kind:Mt.Scalar}),position:new ur({start:t,end:t}),styleGroup:Rs.Flow,style:Cs.Plain})]}};flow_sequence={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Pr({children:e.children.flat(),position:t,anchor:r,tag:s,styleGroup:Rs.Flow,style:Cs.Explicit});return this.registerAnchor(n),this.schema.resolve(n)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(n),this.schema.resolve(n)}};single_quote_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Cs.SingleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};double_quote_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Flow,style:Cs.DoubleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};block_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=e.text.startsWith("|")?Cs.Literal:e.text.startsWith(">")?Cs.Folded:Cs.Plain,i=new Ks({content:e.text,anchor:r,tag:s,position:t,styleGroup:Rs.Block,style:n});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Or({content:e.text})};alias={enter:e=>{const t=new Ar({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Fr&&!e.isNamed){const t=Ir.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new $r({value:s,position:t,isMissing:r})}}ERROR(e,t,s,r){const n=Ir.toPosition(e),i=new kr({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new fr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new ar({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Ir.isKind("tag")),i=r.find(Ir.isKind("anchor")),o=new Tt(void 0!==n?{explicitName:n.text,kind:Mt.Scalar,position:Ir.toPosition(n)}:{explicitName:"?",kind:Mt.Scalar}),c=void 0!==i?new pr({name:i.text,position:Ir.toPosition(i)}):void 0,a=new Ks({content:"",position:new ur({start:t,end:t}),tag:o,anchor:c,styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(a),a}createKeyValuePairEmptyValue(e){const t=new ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Ir.isKind("tag")),i=r.find(Ir.isKind("anchor")),o=new Tt(void 0!==n?{explicitName:n.text,kind:Mt.Scalar,position:Ir.toPosition(n)}:{explicitName:"?",kind:Mt.Scalar}),c=void 0!==i?new pr({name:i.text,position:Ir.toPosition(i)}):void 0,a=new Ks({content:"",position:new ur({start:t,end:t}),tag:o,anchor:c,styleGroup:Rs.Flow,style:Cs.Plain});return this.registerAnchor(a),a}}const Nr=Ir;function Cr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Rr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,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=Cr(this.xf["@@transducer/step"](e,!1))),e},e}();function qr(e){return function(t){return new Rr(e,t)}}const Dr=a(P(["all"],qr,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Lr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Br=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Vr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ur=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),zr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Gr=e=>e({hasMethod:Lr,hasBasicElementProps:Br,primitiveEq:Vr,isElementType:zr,hasClass:Ur}),Kr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Hg||e(s)&&t(void 0,s))),Hr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Om||e(s)&&t("string",s))),Wr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.kT||e(s)&&t("number",s))),Jr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Os||e(s)&&t("null",s))),Yr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.bd||e(s)&&t("boolean",s))),Zr=Gr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof oe.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),Xr=Gr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof oe.wE&&!(r instanceof oe.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),Qr=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&s(void 0,r))),en=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&s(void 0,r))),tn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&s(void 0,r))),sn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&s("array",r))),rn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rt||e(r)&&t("comment",r)&&s("string",r))),nn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&s("array",r))),on=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ct||e(r)&&t("sourceMap",r)&&s("array",r))),cn=e=>zr("object",e)||zr("array",e)||zr("boolean",e)||zr("number",e)||zr("string",e)||zr("null",e)||zr("member",e),an=e=>on(e.meta.get("sourceMap")),ln=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Xr(s)&&Dr(Es(s.toValue()),e)},un=(e,t)=>0===e.length||Dr(Es(t.classes.toValue()),e);const pn=class extends Ot{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const mn=class extends pn{};const hn=class extends pn{},dn=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:n}=e,i=Kr(t)?dn(t,r):t,o=Kr(n)?dn(n,r):n,c=new oe.KeyValuePair(i,o);return s.set(e,c),c}if(e instanceof oe.ot){const t=e=>dn(e,r),n=[...e].map(t),i=new oe.ot(n);return s.set(e,i),i}if(e instanceof oe.G6){const t=e=>dn(e,r),n=[...e].map(t),i=new oe.G6(n);return s.set(e,i),i}if(Kr(e)){const t=gn(e);if(s.set(e,t),e.content)if(Kr(e.content))t.content=dn(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=dn(e.content,r);else if(Array.isArray(e.content)){const s=e=>dn(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new mn("Value provided to cloneDeep function couldn't be cloned",{value:e})};dn.safe=e=>{try{return dn(e)}catch{return e}};const fn=e=>{const{key:t,value:s}=e;return new oe.KeyValuePair(t,s)},yn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=dn(e.meta)),e.attributes.length>0&&(t._attributes=dn(e.attributes)),Kr(e.content)){const s=e.content;t.content=yn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=fn(e.content):t.content=e.content;return t},gn=e=>{if(e instanceof oe.KeyValuePair)return fn(e);if(e instanceof oe.ot)return(e=>{const t=[...e];return new oe.ot(t)})(e);if(e instanceof oe.G6)return(e=>{const t=[...e];return new oe.G6(t)})(e);if(Kr(e))return yn(e);throw new hn("Value provided to cloneShallow function couldn't be cloned",{value:e})};gn.safe=e=>{try{return gn(e)}catch{return e}};const _n=e=>Zr(e)?"ObjectElement":Xr(e)?"ArrayElement":Qr(e)?"MemberElement":Hr(e)?"StringElement":Yr(e)?"BooleanElement":Wr(e)?"NumberElement":Jr(e)?"NullElement":en(e)?"LinkElement":tn(e)?"RefElement":void 0,vn=e=>Kr(e)?gn(e):ir(e),bn=ve(_n,mt),xn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const En=(e,t,{keyMap:s=xn,...r}={})=>cr(e,t,{keyMap:s,nodeTypeGetter:_n,nodePredicate:bn,nodeCloneFn:vn,...r});En[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=xn,...r}={})=>cr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:_n,nodePredicate:bn,nodeCloneFn:vn,...r});const wn=l((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})N(r,t)&&(n[r]=N(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)N(r,s)&&!N(r,n)&&(n[r]=s[r]);return n}));const jn=l((function e(t,s,r){return wn((function(s,r,n){return Pe(r)&&Pe(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Sn=a((function(e,t){return jn((function(e,t,s){return s}),e,t)}));const Pn=ge(0,-1);const On=a((function(e,t){return e.apply(this,t)}));const An=W(Je);var $n=c((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():v(e)?[]:m(e)?"":Pe(e)?{}:R(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 kn=$n;const Fn=c((function(e){return null!=e&&te(e,kn(e))}));const Mn=I(1,Je(Array.isArray)?Array.isArray:ve(X,xe("Array")));const Tn=qe(Mn,Fn);const In=I(3,(function(e,t,s){var r=Ie(e,s),n=Ie(Pn(e),s);if(!An(r)&&!Tn(e)){var i=le(r,n);return On(i,t)}})),Nn=()=>({predicates:{...e},namespace:pt}),Cn={toolboxCreator:Nn,visitorOptions:{nodeTypeGetter:_n,exposeEdits:!0}},Rn=(e,t,s={})=>{if(0===t.length)return e;const r=Sn(Cn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),c=t.map((e=>e(o))),a=or(c.map(f({},"visitor")),{...i});c.forEach(In(["pre"],[]));const l=En(e,a,i);return c.forEach(In(["post"],[])),l};Rn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Sn(Cn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),c=t.map((e=>e(o))),a=or[Symbol.for("nodejs.util.promisify.custom")],l=En[Symbol.for("nodejs.util.promisify.custom")],u=a(c.map(f({},"visitor")),{...i});await Promise.allSettled(c.map(In(["pre"],[])));const p=await l(e,u,i);return await Promise.allSettled(c.map(In(["post"],[]))),p};const qn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Kr(e)&&(e.meta.length>0&&(r.meta=dn(e.meta)),e.attributes.length>0&&(r.attributes=dn(e.attributes))),Rn(r,s,{toolboxCreator:Nn,visitorOptions:{nodeTypeGetter:_n}})},Dn=e=>(t,s={})=>qn(t,{...s,Type:e});oe.Sh.refract=Dn(oe.Sh),oe.wE.refract=Dn(oe.wE),oe.Om.refract=Dn(oe.Om),oe.bd.refract=Dn(oe.bd),oe.Os.refract=Dn(oe.Os),oe.kT.refract=Dn(oe.kT),oe.Ft.refract=Dn(oe.Ft),oe.sI.refract=Dn(oe.sI),tt.refract=Dn(tt),rt.refract=Dn(rt),it.refract=Dn(it),ct.refract=Dn(ct);const Ln={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...xn},Bn=e=>Kr(e)?_n(e):rr(e),Vn=e=>Kr(e)||nr(e)||Array.isArray(e);const Un=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new it;t._content=e.children.flat(1);const s=t.findElements(cn);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ut()}comment(e){if(0===this.processedDocumentCount){const t=new rt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new tt("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new oe.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Cs.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new tt(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new tt(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ct;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}};class zn{cursor;constructor(e){this.cursor=e}stream(){return new Fr(this.cursor)}yaml_directive(){return new Fr(this.cursor)}tag_directive(){return new Fr(this.cursor)}reserved_directive(){return new Fr(this.cursor)}document(){return new Fr(this.cursor)}block_node(){return new Fr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Fr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Fr(this.cursor)}block_mapping_pair(){return new Fr(this.cursor)}flow_mapping(){return new Fr(this.cursor)}flow_pair(){return new Fr(this.cursor)}block_sequence(){return new Fr(this.cursor)}block_sequence_item(){return new Fr(this.cursor)}flow_sequence(){return new Fr(this.cursor)}plain_scalar(){return new Fr(this.cursor)}single_quote_scalar(){return new Fr(this.cursor)}double_quote_scalar(){return new Fr(this.cursor)}block_scalar(){return new Fr(this.cursor)}ERROR(){return new Fr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Fr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new zn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new zn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Gn=zn,Kn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Gn(s),[n]=Array.from(r),i=new Nr,o=new Un,c=new zs,a=new er,l=cr(n,i,{keyMap:Mr,nodePredicate:Tr,state:{schema:c,sourceMap:t,referenceManager:a}});return cr(l.rootNode,o,{keyMap:Ln,nodeTypeGetter:Bn,nodePredicate:Vn,state:{sourceMap:t}})};class Hn extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Wn=Hn;class Jn extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Yn=Jn;class Zn extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Xn=Zn;class Qn extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ei=Qn;class ti extends oe.Sh{constructor(e,t,s){super(e,t,s),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 si=ti;class ri extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ni=ri;class ii extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oi=ii;class ci extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new oe.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.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(ci.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ai=ci;class li extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ui=li;class pi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 mi=pi;class hi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Hr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Hr(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 di=hi;class fi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 yi=fi;class gi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 _i=gi;class vi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 bi=vi;class xi extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Ei=xi;class wi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ji=wi;class Si extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oe.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 Pi=Si;class Oi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oe.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.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(Oi.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ai=Oi;class $i extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ki=$i;class Fi extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Mi=Fi;class Ti extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ii=Ti;class Ni extends oe.Sh{constructor(e,t,s){super(e,t,s),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 oe.bd(!1)}set required(e){this.set("required",e)}}const Ci=Ni;class Ri extends oe.Sh{constructor(e,t,s){super(e,t,s),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 qi=Ri;class Di extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Li=Di;const Bi=class extends vt{};class Vi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Ui=Vi;class zi extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Gi=zi;class Ki extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Hi=Ki;class Wi extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Ji=Wi;const Yi=a((function(e,t){return _((function(s,r){return s[r]=e(t[r],r,t),s}),{},U(t))}));const Zi=c((function(e){return null==e}));const Xi=a((function(e,t){if(0===e.length||Zi(t))return!1;for(var s=t,r=0;r<e.length;){if(Zi(s)||!N(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));var Qi=a((function(e,t){return Xi([e],t)}));const eo=Qi;const to=l((function(e,t,s){return e(d(t,s))})),so=(e,t)=>{const s=u(e,t);return Yi((e=>{if(Qe(e)&&eo("$ref",e)&&to(mt,"$ref",e)){const t=Ie(["$ref"],e),r=ws("#/",t);return Ie(r.split("/"),s)}return Qe(e)?so(e,s):e}),e)};var ro=s(8357);const no=function(){return!0},io=e=>"string"==typeof(null==e?void 0:e.type)?e.type:_n(e),oo={EphemeralObject:["content"],EphemeralArray:["content"],...xn},co=(e,t,{keyMap:s=oo,...r}={})=>En(e,t,{keyMap:s,nodeTypeGetter:io,nodePredicate:no,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});co[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=oo,...s}={})=>En[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:io,nodePredicate:no,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const ao=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 lo=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 uo{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new lo(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 ao(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 s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Hr(e.href)?e.href.toValue():""}}const po=e=>Kr(e)?Hr(e)||Wr(e)||Yr(e)||Jr(e)?e.toValue():co(e,new uo):e,mo=e=>{const t=e.meta.length>0?dn(e.meta):void 0,s=e.attributes.length>0?dn(e.attributes):void 0;return new e.constructor(void 0,t,s)},ho=(e,t)=>t.clone&&t.isMergeableElement(e)?_o(mo(e),e,t):e,fo=e=>"function"!=typeof e.customMetaMerge?e=>dn(e):e.customMetaMerge,yo=e=>"function"!=typeof e.customAttributesMerge?e=>dn(e):e.customAttributesMerge,go={clone:!0,isMergeableElement:e=>Zr(e)||Xr(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ho(e,s))),objectElementMerge:(e,t,s)=>{const r=Zr(e)?mo(e):mo(t);return Zr(e)&&e.forEach(((e,t,n)=>{const i=gn(n);i.value=ho(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=po(n);let c;if(Zr(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);c=gn(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return _o;const s=t.customMerge(e,t);return"function"==typeof s?s:_o})(n,s)(r,t)}else c=gn(i),c.value=ho(t,s);r.remove(o),r.content.push(c)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function _o(e,t,s){var r,n,i;const o={...go,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:go.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:go.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:go.objectElementMerge;const c=Xr(t);if(!(c===Xr(e)))return ho(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=fo(o)(e.meta,t.meta),a.attributes=yo(o)(e.attributes,t.attributes),a}_o.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new oe.Sh:e.reduce(((e,s)=>_o(e,s,t)),mo(e[0]))};const vo=ro({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=_o(t.meta,e.meta),an(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=_o(t.attributes,e.attributes))}}}),bo=ro(vo,{methods:{enter(e){return this.element=dn(e),sr}}});const xo=se(re());const Eo=a((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s})),wo=ro(vo,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Eo(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})},toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s),n=Object.getPrototypeOf(r);return ne(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?dn(t):(En(t,r,s),r.element)}}}),jo=ro(wo,{props:{specPath:xo,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Hr(r)&&s.includes(po(r))&&!this.ignoredFields.includes(po(r))){const s=this.toRefractedElement([...t,"fixedFields",po(r)],e),i=new oe.Pr(dn(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(po(r))||this.element.content.push(dn(n))})),this.copyMetaAndAttributes(e,this.element),sr}}}),So=ro(jo,bo,{props:{specPath:se(["document","objects","JSONSchema"])},init(){this.element=new Ui}}),Po=bo,Oo=bo,Ao=bo,$o=bo,ko=bo,Fo=bo,Mo=bo,To=bo,Io=bo,No=bo,Co=ro({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Ro=e=>Zr(e)&&e.hasKey("$ref"),qo=ro(wo,Co,bo,{methods:{ObjectElement(e){const t=Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sr},ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),Do=bo,Lo=bo,Bo=bo,Vo=bo,Uo=bo,zo=ro(bo,{methods:{ArrayElement(e){return this.element=dn(e),this.element.classes.push("json-schema-required"),sr}}});const Go=c((function(e){return I(fe(ze,0,Ge("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ko=a((function(e,t){return e||t}));const Ho=W(I(1,qe(Le,a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:H(Ko)(e,t)}))(Ve,Je))));const Wo=W(Fn);const Jo=Go([mt,Ho,Wo]);const Yo=function(){return!1},Zo=ro(wo,{props:{fieldPatternPredicate:Yo,specPath:xo,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(po(t))&&this.fieldPatternPredicate(po(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(dn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(po(t))||this.element.content.push(dn(s))})),this.copyMetaAndAttributes(e,this.element),sr}}}),Xo=ro(Zo,{props:{fieldPatternPredicate:Jo}}),Qo=ro(Xo,Co,bo,{props:{specPath:e=>Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-properties")}}),ec=ro(Xo,Co,bo,{props:{specPath:e=>Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties")}}),tc=ro(Xo,Co,bo,{props:{specPath:e=>Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies")}}),sc=ro(bo,{methods:{ArrayElement(e){return this.element=dn(e),this.element.classes.push("json-schema-enum"),sr}}}),rc=ro(bo,{methods:{StringElement(e){return this.element=dn(e),this.element.classes.push("json-schema-type"),sr},ArrayElement(e){return this.element=dn(e),this.element.classes.push("json-schema-type"),sr}}}),nc=ro(wo,Co,bo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),ic=ro(wo,Co,bo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),oc=ro(wo,Co,bo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}}),cc=ro(Xo,Co,bo,{props:{specPath:e=>Ro(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-definitions")}}),ac=bo,lc=bo,uc=bo,pc=bo,mc=bo,hc=ro(wo,Co,bo,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}}),dc=bo,fc=ro(jo,bo,{props:{specPath:se(["document","objects","JSONReference"])},init(){this.element=new Gi},methods:{ObjectElement(e){const t=jo.compose.methods.ObjectElement.call(this,e);return Hr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),yc=ro(bo,{methods:{StringElement(e){return this.element=dn(e),this.element.classes.push("reference-value"),sr}}});const gc=l((function(e,t,s){return I(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const _c=c((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var vc=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const bc=vc;const xc=c(Cr);const Ec=W(Zi);const wc=qe(Mn,Wo);function jc(e){return function(e){if(Array.isArray(e))return Sc(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)return;if("string"==typeof e)return Sc(e,t);var s=Object.prototype.toString.call(e).slice(8,-1);"Object"===s&&e.constructor&&(s=e.constructor.name);if("Map"===s||"Set"===s)return Array.from(e);if("Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s))return Sc(e,t)}(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 Sc(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=new Array(t);s<t;s++)r[s]=e[s];return r}var Pc=ve(bc(_c((function(e,t){return e.length>t.length}))),dr,d("length")),Oc=Dt((function(e,t,s){var r=s.apply(void 0,jc(e));return Ec(r)?xc(r):t}));const Ac=gc(wc,(function(e){var t=Pc(e);return I(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return fe(Oc(s),void 0,e)}))}),re),$c=ro(wo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>gc(e,se(t),re))),s=Ac(t)(e);return this.element=this.toRefractedElement(s,e),sr}}}),kc=ro($c,{props:{alternator:[{predicate:Ro,specPath:["document","objects","JSONReference"]},{predicate:no,specPath:["document","objects","JSONSchema"]}]}}),Fc={visitors:{value:bo,JSONSchemaOrJSONReferenceVisitor:kc,document:{objects:{JSONSchema:{$visitor:So,fixedFields:{id:Po,$schema:Oo,multipleOf:Ao,maximum:$o,exclusiveMaximum:ko,minimum:Fo,exclusiveMinimum:Mo,maxLength:To,minLength:Io,pattern:No,additionalItems:kc,items:qo,maxItems:Do,minItems:Lo,uniqueItems:Bo,maxProperties:Vo,minProperties:Uo,required:zo,properties:Qo,additionalProperties:kc,patternProperties:ec,dependencies:tc,enum:sc,type:rc,allOf:nc,anyOf:ic,oneOf:oc,not:kc,definitions:cc,title:ac,description:lc,default:uc,format:pc,base:mc,links:hc,media:{$ref:"#/visitors/document/objects/Media"},readOnly:dc}},JSONReference:{$visitor:fc,fixedFields:{$ref:yc}},Media:{$visitor:ro(jo,bo,{props:{specPath:se(["document","objects","Media"])},init(){this.element=new Hi}}),fixedFields:{binaryEncoding:bo,type:bo}},LinkDescription:{$visitor:ro(jo,bo,{props:{specPath:se(["document","objects","LinkDescription"])},init(){this.element=new Ji}}),fixedFields:{href:bo,rel:bo,title:bo,targetSchema:kc,mediaType:bo,method:bo,encType:bo,schema:kc}}}}}},Mc=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Tc={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...xn},Ic=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Nc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gi||e(r)&&t("JSONReference",r)&&s("object",r))),Cc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hi||e(r)&&t("media",r)&&s("object",r))),Rc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ji||e(r)&&t("linkDescription",r)&&s("object",r))),qc={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ui),t.register("jSONReference",Gi),t.register("media",Hi),t.register("linkDescription",Ji),t}},Dc=()=>{const e=ut(qc);return{predicates:{...t,isStringElement:Hr},namespace:e}},Lc=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Fc}={})=>{const n=(0,oe.e)(e),i=so(r),o=In(t,[],i);return En(n,o,{state:{specObj:i}}),Rn(o.element,s,{toolboxCreator:Dc,visitorOptions:{keyMap:Tc,nodeTypeGetter:Mc}})},Bc=e=>(t,s={})=>Lc(t,{specPath:e,...s});Ui.refract=Bc(["visitors","document","objects","JSONSchema","$visitor"]),Gi.refract=Bc(["visitors","document","objects","JSONReference","$visitor"]),Hi.refract=Bc(["visitors","document","objects","Media","$visitor"]),Ji.refract=Bc(["visitors","document","objects","LinkDescription","$visitor"]);const Vc=class extends Ui{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Bi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Bi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Bi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Bi("$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 Bi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Bi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Bi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Bi("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 Bi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Bi("definitions setter in Schema class is not not supported.")}get base(){throw new Bi("base getter in Schema class is not not supported.")}set base(e){throw new Bi("base setter in Schema class is not not supported.")}get links(){throw new Bi("links getter in Schema class is not not supported.")}set links(e){throw new Bi("links setter in Schema class is not not supported.")}get media(){throw new Bi("media getter in Schema class is not not supported.")}set media(e){throw new Bi("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 Uc extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const zc=Uc;class Gc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Kc=Gc;class Hc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Wc=Hc;class Jc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Yc=Jc;class Zc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Xc=Zc;class Qc extends oe.Sh{constructor(e,t,s){super(e,t,s),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 ea=Qc,ta=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},sa=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:sa(s,[...t,s])},ra=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>sa(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=sa(n);for(let t of e){let e=sa(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(ta(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},na=e=>e.filter(((t,s)=>e.indexOf(t)==s)),ia=(e,t)=>{const s=t.map((e=>sa(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},oa=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(ia(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==ia(r,e)||void 0!==t[r],get:(s,r)=>(ia(r,e)||t)[r],set(t,s,r){const n=ia(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!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)))))}),ca=null,aa="copy",la="copy",ua="deep",pa=new WeakMap,ma=e=>pa.get(e),ha=(e,t)=>{var s,r;const n=na([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=na([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},da=(e,t)=>{var s,r,n,i;return{property:ha(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:ha(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},fa=(e,t)=>{var s,r,n,i,o,c;return{class:na([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:da(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:da(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},ya=new Map,ga=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...sa(e.prototype).map((e=>e.constructor)),...null!==(t=ma(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>ya.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>fa(e,t)))},_a=e=>{let t=ya.get(e);return t||(t={},ya.set(e,t)),t};function va(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=ca;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let s of e)s.apply(this,t)}};n.push(t)}function o(...t){for(const s of e)ta(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===la?ra(n,o):(c=n,a=o,oa([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===aa?ra(e,null,["prototype"]):oa(e,Function.prototype));let l=o;if("none"!==ua){const n="deep"===ua?ga(...e):((...e)=>{const t=e.map((e=>_a(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>fa(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)}ba(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),ba(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,p;return u=l,p=e,pa.set(u,p),l}const ba=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const xa=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=_o(t.meta,e.meta),an(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=_o(t.attributes,e.attributes))}};const Ea=class extends xa{enter(e){return this.element=dn(e),sr}};const wa=class extends xa{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Eo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ie(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof Ea&&(null==r?void 0:r.constructor)===Ea?dn(t):(En(t,r,s),r.element)}};var ja=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=$,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Cr(s):s},e}();function Sa(e){return function(t){return new ja(e,t)}}const Pa=a(P(["take"],Sa,(function(e,t){return ge(0,e<0?1/0:e,t)})));const Oa=a((function(e,t){return te(Pa(e.length,t),e)})),Aa=e=>Zr(e)&&e.hasKey("$ref"),$a=Zr,ka=Zr,Fa=e=>Hr(e.key)&&Oa("x-",po(e.key));const Ma=class extends wa{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Fa;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Hr(r)&&s.includes(po(r))&&!this.ignoredFields.includes(po(r))){const s=this.toRefractedElement([...t,"fixedFields",po(r)],e),i=new oe.Pr(dn(r),s);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(po(r))||this.element.content.push(dn(n))})),this.copyMetaAndAttributes(e,this.element),sr}};class Ta extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ji,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Ma.prototype.ObjectElement.call(this,e)}}const Ia=Ta;class Na extends(va(wa,Ea)){StringElement(e){const t=new Ei(po(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const Ca=Na;const Ra=class extends wa{MemberElement(e){return this.element=dn(e),this.element.classes.push("specification-extension"),sr}};class qa extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ui,this.specPath=se(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Da=qa;const La=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ba extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Xn,this.specPath=se(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Va=Ba;class Ua extends(va(Ma,Ea)){constructor(e){super(e),this.element=new mi,this.specPath=se(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const za=Ua;class Ga extends(va(Ma,Ea)){constructor(e){super(e),this.element=new di,this.specPath=se(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return(Hr(this.element.operationId)||Hr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Ka=Ga;const Ha=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Wa=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ja=class extends wa{specPath;ignoredFields;fieldPatternPredicate=Yo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Fa;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(po(t))&&this.fieldPatternPredicate(po(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(dn(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(po(t))||this.element.content.push(dn(s))})),this.copyMetaAndAttributes(e,this.element),sr}};const Ya=class extends Ja{constructor(e){super(e),this.fieldPatternPredicate=Jo}};class Za extends oe.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Za.primaryClass)}}const Xa=Za;class Qa extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Xa,this.specPath=se(["value"])}}const el=Qa;class tl extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Wc,this.specPath=se(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const sl=tl;const rl=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class nl extends oe.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(nl.primaryClass)}}const il=nl;class ol extends(va(wa,Ea)){constructor(e){super(e),this.element=new il}ArrayElement(e){return e.forEach((e=>{const t=$a(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const cl=ol;class al extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Yc,this.specPath=se(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const ll=al;class ul extends oe.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(ul.primaryClass)}}const pl=ul;class ml extends(va(Ya,Ea)){constructor(e){super(e),this.element=new pl,this.specPath=se(["document","objects","ServerVariable"])}}const hl=ml;class dl extends(va(Ma,Ea)){constructor(e){super(e),this.element=new yi,this.specPath=se(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const fl=dl;const yl=class extends wa{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>gc(e,se(t),re))),s=Ac(t)(e);return this.element=this.toRefractedElement(s,e),sr}},gl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wn||e(r)&&t("callback",r)&&s("object",r))),_l=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yn||e(r)&&t("components",r)&&s("object",r))),vl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xn||e(r)&&t("contact",r)&&s("object",r))),bl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ni||e(r)&&t("example",r)&&s("object",r))),xl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oi||e(r)&&t("externalDocumentation",r)&&s("object",r))),El=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ai||e(r)&&t("header",r)&&s("object",r))),wl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ui||e(r)&&t("info",r)&&s("object",r))),jl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("license",r)&&s("object",r))),Sl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof di||e(r)&&t("link",r)&&s("object",r))),Pl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ei||e(r)&&t("openapi",r)&&s("string",r))),Ol=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof ji||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),Al=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pi||e(r)&&t("operation",r)&&s("object",r))),$l=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ai||e(r)&&t("parameter",r)&&s("object",r))),kl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ki||e(r)&&t("pathItem",r)&&s("object",r))),Fl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("paths",r)&&s("object",r))),Ml=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ii||e(r)&&t("reference",r)&&s("object",r))),Tl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("requestBody",r)&&s("object",r))),Il=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("response",r)&&s("object",r))),Nl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Li||e(r)&&t("responses",r)&&s("object",r))),Cl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vc||e(r)&&t("schema",r)&&s("object",r))),Rl=e=>Yr(e)&&e.classes.includes("boolean-json-schema"),ql=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zc||e(r)&&t("securityRequirement",r)&&s("object",r))),Dl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kc||e(r)&&t("securityScheme",r)&&s("object",r))),Ll=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wc||e(r)&&t("server",r)&&s("object",r))),Bl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yc||e(r)&&t("serverVariable",r)&&s("object",r))),Vl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yi||e(r)&&t("mediaType",r)&&s("object",r))),Ul=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof il||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class zl extends(va(yl,Ea)){constructor(e){super(e),this.alternator=[{predicate:Aa,specPath:["document","objects","Reference"]},{predicate:no,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return Ml(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Gl=zl;class Kl extends(va(Ya,Ea)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("examples"),this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Hl=Kl;class Wl extends oe.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Wl.primaryClass),this.classes.push("examples")}}const Jl=Wl;const Yl=class extends Hl{constructor(e){super(e),this.element=new Jl}};class Zl extends oe.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Zl.primaryClass)}}const Xl=Zl;class Ql extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Xl,this.specPath=se(["document","objects","Encoding"])}}const eu=Ql;class tu extends(va(Ya,Ea)){constructor(e){super(e),this.element=new zc,this.specPath=se(["value"])}}const su=tu;class ru extends oe.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(ru.primaryClass)}}const nu=ru;class iu extends(va(wa,Ea)){constructor(e){super(e),this.element=new nu}ArrayElement(e){return e.forEach((e=>{if(Zr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(dn(e))})),this.copyMetaAndAttributes(e,this.element),sr}}const ou=iu;class cu extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Yn,this.specPath=se(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const au=cu;class lu extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Xc,this.specPath=se(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const uu=lu;class pu extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Ii,this.specPath=se(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return Hr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const mu=pu;const hu=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class du extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Ai,this.specPath=se(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return Zr(this.element.contentProp)&&this.element.contentProp.filter(Vl).forEach(((e,t)=>{e.setMetaProperty("media-type",po(t))})),t}}const fu=du;class yu extends(va(yl,Ea)){constructor(e){super(e),this.alternator=[{predicate:Aa,specPath:["document","objects","Reference"]},{predicate:no,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return Ml(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const gu=yu;class _u extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ai,this.specPath=se(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const vu=_u;class bu extends(va(yl,Ea)){constructor(e){super(e),this.alternator=[{predicate:Aa,specPath:["document","objects","Reference"]},{predicate:no,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return Ml(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const xu=bu;class Eu extends oe.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Eu.primaryClass),this.classes.push("examples")}}const wu=Eu;const ju=class extends Hl{constructor(e){super(e),this.element=new wu}};class Su extends(va(Ya,Ea)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("content"),this.specPath=se(["document","objects","MediaType"])}}const Pu=Su;class Ou extends oe.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ou.primaryClass),this.classes.push("content")}}const Au=Ou;const $u=class extends Pu{constructor(e){super(e),this.element=new Au}};class ku extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Vc,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Fu=ku,{allOf:Mu}=Fc.visitors.document.objects.JSONSchema.fixedFields,Tu=Mu.compose({methods:{ArrayElement(e){const t=Mu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Iu}=Fc.visitors.document.objects.JSONSchema.fixedFields,Nu=Iu.compose({methods:{ArrayElement(e){const t=Iu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Cu}=Fc.visitors.document.objects.JSONSchema.fixedFields,Ru=Cu.compose({methods:{ArrayElement(e){const t=Cu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:qu}=Fc.visitors.document.objects.JSONSchema.fixedFields,Du=qu.compose({methods:{ObjectElement(e){const t=qu.compose.methods.ObjectElement.call(this,e);return Ml(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=dn(e),sr}}}),{properties:Lu}=Fc.visitors.document.objects.JSONSchema.fixedFields,Bu=Lu.compose({methods:{ObjectElement(e){const t=Lu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Vu}=Fc.visitors.document.objects.JSONSchema.fixedFields,Uu=Vu.compose({methods:{ArrayElement(e){return this.element=dn(e),sr}}}),{JSONSchemaOrJSONReferenceVisitor:zu}=Fc.visitors,Gu=zu.compose({methods:{ObjectElement(e){const t=zu.compose.methods.enter.call(this,e);return Ml(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Ku extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ei,this.specPath=se(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Hu=Ku;class Wu extends oe.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Wu.primaryClass)}}const Ju=Wu;class Yu extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Ju,this.specPath=se(["value"])}}const Zu=Yu;class Xu extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ea,this.specPath=se(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Qu=Xu;class ep extends oe.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ep.primaryClass),this.classes.push("examples")}}const tp=ep;const sp=class extends Hl{constructor(e){super(e),this.element=new tp}};class rp extends oe.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(rp.primaryClass),this.classes.push("content")}}const np=rp;const ip=class extends Pu{constructor(e){super(e),this.element=new np}};class op extends oe.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(op.primaryClass)}}const cp=op;class ap extends(va(Ya,Ea)){constructor(e){super(e),this.element=new cp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const lp=ap;class up extends oe.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(up.primaryClass)}}const pp=up;class mp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new pp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Il).forEach(((e,t)=>{e.setMetaProperty("http-status-code",po(t))})),t}}const hp=mp;class dp extends oe.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(dp.primaryClass),this.classes.push("parameters")}}const fp=dp;class yp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new fp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const gp=yp;class _p extends oe.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(_p.primaryClass),this.classes.push("examples")}}const vp=_p;class bp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new vp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const xp=bp;class Ep extends oe.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(Ep.primaryClass)}}const wp=Ep;class jp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new wp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const Sp=jp;class Pp extends oe.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Pp.primaryClass)}}const Op=Pp;class Ap extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Op,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(El).forEach(((e,t)=>{e.setMetaProperty("header-name",po(t))})),t}}const $p=Ap;class kp extends oe.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(kp.primaryClass)}}const Fp=kp;class Mp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Fp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Tp=Mp;class Ip extends oe.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Ip.primaryClass)}}const Np=Ip;class Cp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Np,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Rp=Cp;class qp extends oe.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(qp.primaryClass)}}const Dp=qp;class Lp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Dp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Bp=Lp;class Vp extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ni,this.specPath=se(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return Hr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Up=Vp;const zp=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Gp extends(va(Ma,Ea)){constructor(e){super(e),this.element=new oi,this.specPath=se(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Kp=Gp;class Hp extends(va(Ma,Ea)){constructor(e){super(e),this.element=new si,this.specPath=se(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return Zr(this.element.headers)&&this.element.headers.filter(El).forEach(((e,t)=>{e.setMetaProperty("header-name",po(t))})),t}}const Wp=Hp;class Jp extends oe.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Jp.primaryClass)}}const Yp=Jp;class Zp extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Yp,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!El(e))return;const s=po(t);e.setMetaProperty("headerName",s)})),t}}const Xp=Zp;class Qp extends(va(Ja,Ea)){constructor(e){super(e),this.element=new Mi,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=no}ObjectElement(e){const t=Ja.prototype.ObjectElement.call(this,e);return this.element.filter(kl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",dn(t))})),t}}const em=Qp;class tm extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Ci,this.specPath=se(["document","objects","RequestBody"])}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return Zr(this.element.contentProp)&&this.element.contentProp.filter(Vl).forEach(((e,t)=>{e.setMetaProperty("media-type",po(t))})),t}}const sm=tm;class rm extends oe.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(rm.primaryClass),this.classes.push("content")}}const nm=rm;const im=class extends Pu{constructor(e){super(e),this.element=new nm}};class om extends(va(Ja,Ea)){constructor(e){super(e),this.element=new Wn,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(kl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",po(t))})),t}}const cm=om;class am extends(va(Ma,Ea)){constructor(e){super(e),this.element=new qi,this.specPath=se(["document","objects","Response"])}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return Zr(this.element.contentProp)&&this.element.contentProp.filter(Vl).forEach(((e,t)=>{e.setMetaProperty("media-type",po(t))})),Zr(this.element.headers)&&this.element.headers.filter(El).forEach(((e,t)=>{e.setMetaProperty("header-name",po(t))})),t}}const lm=am;class um extends oe.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(um.primaryClass)}}const pm=um;class mm extends(va(Ya,Ea)){constructor(e){super(e),this.element=new pm,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!El(e))return;const s=po(t);e.setMetaProperty("header-name",s)})),t}}const hm=mm;class dm extends oe.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(dm.primaryClass),this.classes.push("content")}}const fm=dm;const ym=class extends Pu{constructor(e){super(e),this.element=new fm}};class gm extends oe.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(gm.primaryClass)}}const _m=gm;class vm extends(va(Ya,Ea)){constructor(e){super(e),this.element=new _m,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const bm=vm;function xm(e){return"[object Number]"===Object.prototype.toString.call(e)}const Em=a((function(e,t){if(!xm(e)||!xm(t))throw new TypeError("Both arguments to range must be numbers");for(var s=[],r=e;r<t;)s.push(r),r+=1;return s}));function wm(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!Ee(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!Ee(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const jm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!wm(e,!0,this)},e.prototype.has=function(e){return wm(e,!1,this)},e}();const Sm=a((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new jm,c=0;c<i;c+=1)o.add(t[c]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class Pm extends(va(Ma,Ja)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...Sm(e.keys(),t)],Ma.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ja.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sr}}const Om=Pm;class Am extends(va(Om,Ea)){constructor(e){super(e),this.element=new Li,this.specPathFixedFields=se(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Em(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=Om.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Il).forEach(((e,t)=>{const s=dn(t);this.fieldPatternPredicate(po(s))&&e.setMetaProperty("http-status-code",s)})),t}}const $m=Am;class km extends(va(yl,Ea)){constructor(e){super(e),this.alternator=[{predicate:Aa,specPath:["document","objects","Reference"]},{predicate:no,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return Ml(this.element)?this.element.setMetaProperty("referenced-element","response"):Il(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const Fm=km;class Mm extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Pi,this.specPath=se(["document","objects","Operation"])}}const Tm=Mm;class Im extends oe.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Im.primaryClass)}}const Nm=Im;const Cm=class extends Ea{constructor(e){super(e),this.element=new Nm}ArrayElement(e){return this.element=this.element.concat(dn(e)),sr}};class Rm extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Rm.primaryClass),this.classes.push("parameters")}}const qm=Rm;class Dm extends(va(wa,Ea)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Aa(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ml(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const Lm=Dm;const Bm=class extends Lm{constructor(e){super(e),this.element=new qm}};const Vm=class extends yl{constructor(e){super(e),this.alternator=[{predicate:Aa,specPath:["document","objects","Reference"]},{predicate:no,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=yl.prototype.enter.call(this,e);return Ml(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Um extends oe.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Um.primaryClass)}}const zm=Um;class Gm extends(va(Ya,Ea)){specPath;constructor(e){super(e),this.element=new zm,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(Ml).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Km=Gm;class Hm extends oe.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Hm.primaryClass),this.classes.push("security")}}const Wm=Hm;class Jm extends(va(wa,Ea)){constructor(e){super(e),this.element=new Wm}ArrayElement(e){return e.forEach((e=>{const t=Zr(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const Ym=Jm;class Zm extends oe.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Zm.primaryClass),this.classes.push("servers")}}const Xm=Zm;const Qm=class extends cl{constructor(e){super(e),this.element=new Xm}};class eh extends(va(Ma,Ea)){constructor(e){super(e),this.element=new ki,this.specPath=se(["document","objects","PathItem"])}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(Al).forEach(((e,t)=>{const s=dn(t);s.content=po(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Hr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const th=eh;const sh=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class rh extends oe.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(rh.primaryClass),this.classes.push("servers")}}const nh=rh;const ih=class extends cl{constructor(e){super(e),this.element=new nh}};class oh extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(oh.primaryClass),this.classes.push("parameters")}}const ch=oh;const ah=class extends Lm{constructor(e){super(e),this.element=new ch}};class lh extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Kc,this.specPath=se(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const uh=lh;class ph extends(va(Ma,Ea)){constructor(e){super(e),this.element=new bi,this.specPath=se(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const mh=ph;class hh extends(va(Ma,Ea)){constructor(e){super(e),this.element=new _i,this.specPath=se(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const dh=hh;class fh extends oe.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(fh.primaryClass)}}const yh=fh;class gh extends(va(Ya,Ea)){constructor(e){super(e),this.element=new yh,this.specPath=se(["value"])}}const _h=gh;class vh extends oe.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(vh.primaryClass)}}const bh=vh;class xh extends(va(wa,Ea)){constructor(e){super(e),this.element=new bh}ArrayElement(e){return e.forEach((e=>{const t=ka(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),sr}}const Eh=xh,{fixedFields:wh}=Fc.visitors.document.objects.JSONSchema,jh={visitors:{value:Ea,document:{objects:{OpenApi:{$visitor:Ia,fixedFields:{openapi:Ca,info:{$ref:"#/visitors/document/objects/Info"},servers:cl,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:ou,tags:Eh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Da,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:La}},Contact:{$visitor:Va,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:za,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:sl,fixedFields:{url:rl,description:{$ref:"#/visitors/value"},variables:hl}},ServerVariable:{$visitor:ll,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:au,fixedFields:{schemas:lp,responses:hp,parameters:gp,examples:xp,requestBodies:Sp,headers:$p,securitySchemes:Tp,links:Rp,callbacks:Bp}},Paths:{$visitor:em},PathItem:{$visitor:th,fixedFields:{$ref:sh,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:ih,parameters:ah}},Operation:{$visitor:Tm,fixedFields:{tags:Cm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Bm,requestBody:Vm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Km,deprecated:{$ref:"#/visitors/value"},security:Ym,servers:Qm}},ExternalDocumentation:{$visitor:Kp,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:fu,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:gu,example:{$ref:"#/visitors/value"},examples:sp,content:ip}},RequestBody:{$visitor:sm,fixedFields:{description:{$ref:"#/visitors/value"},content:im,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:fl,fixedFields:{schema:Gl,example:{$ref:"#/visitors/value"},examples:Yl,encoding:eu}},Encoding:{$visitor:Wp,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Xp,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:$m,fixedFields:{default:Fm}},Response:{$visitor:lm,fixedFields:{description:{$ref:"#/visitors/value"},headers:hm,content:ym,links:bm}},Callback:{$visitor:cm},Example:{$visitor:Up,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:zp}},Link:{$visitor:Ka,fixedFields:{operationRef:Ha,operationId:Wa,parameters:el,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:vu,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:xu,example:{$ref:"#/visitors/value"},examples:ju,content:$u}},Tag:{$visitor:uu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:mu,fixedFields:{$ref:hu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Fu,fixedFields:{title:wh.title,multipleOf:wh.multipleOf,maximum:wh.maximum,exclusiveMaximum:wh.exclusiveMaximum,minimum:wh.minimum,exclusiveMinimum:wh.exclusiveMinimum,maxLength:wh.maxLength,minLength:wh.minLength,pattern:wh.pattern,maxItems:wh.maxItems,minItems:wh.minItems,uniqueItems:wh.uniqueItems,maxProperties:wh.maxProperties,minProperties:wh.minProperties,required:wh.required,enum:wh.enum,type:Uu,allOf:Tu,anyOf:Nu,oneOf:Ru,not:Gu,items:Du,properties:Bu,additionalProperties:Gu,description:wh.description,format:wh.format,default:wh.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:Hu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Zu}},XML:{$visitor:Qu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:uh,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:mh,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:dh,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:_h}},SecurityRequirement:{$visitor:su}},extension:{$visitor:Ra}}}},Sh=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ph={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"],...xn},Oh={namespace:e=>{const{base:t}=e;return t.register("callback",Wn),t.register("components",Yn),t.register("contact",Xn),t.register("discriminator",ei),t.register("encoding",si),t.register("example",ni),t.register("externalDocumentation",oi),t.register("header",ai),t.register("info",ui),t.register("license",mi),t.register("link",di),t.register("mediaType",yi),t.register("oAuthFlow",_i),t.register("oAuthFlows",bi),t.register("openapi",Ei),t.register("openApi3_0",ji),t.register("operation",Pi),t.register("parameter",Ai),t.register("pathItem",ki),t.register("paths",Mi),t.register("reference",Ii),t.register("requestBody",Ci),t.register("response",qi),t.register("responses",Li),t.register("schema",Vc),t.register("securityRequirement",zc),t.register("securityScheme",Kc),t.register("server",Wc),t.register("serverVariable",Yc),t.register("tag",Xc),t.register("xml",ea),t}},Ah=()=>{const e=ut(Oh);return{predicates:{...n,isElement:Kr,isStringElement:Hr,isArrayElement:Xr,isObjectElement:Zr,isMemberElement:Qr,includesClasses:un,hasElementSourceMap:an},namespace:e}},$h=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=so(jh),i=new(Ie(t,n))({specObj:n});return En(r,i),Rn(i.element,s,{toolboxCreator:Ah,visitorOptions:{keyMap:Ph,nodeTypeGetter:Sh}})},kh=e=>(t,s={})=>$h(t,{specPath:e,...s});Wn.refract=kh(["visitors","document","objects","Callback","$visitor"]),Yn.refract=kh(["visitors","document","objects","Components","$visitor"]),Xn.refract=kh(["visitors","document","objects","Contact","$visitor"]),ni.refract=kh(["visitors","document","objects","Example","$visitor"]),ei.refract=kh(["visitors","document","objects","Discriminator","$visitor"]),si.refract=kh(["visitors","document","objects","Encoding","$visitor"]),oi.refract=kh(["visitors","document","objects","ExternalDocumentation","$visitor"]),ai.refract=kh(["visitors","document","objects","Header","$visitor"]),ui.refract=kh(["visitors","document","objects","Info","$visitor"]),mi.refract=kh(["visitors","document","objects","License","$visitor"]),di.refract=kh(["visitors","document","objects","Link","$visitor"]),yi.refract=kh(["visitors","document","objects","MediaType","$visitor"]),_i.refract=kh(["visitors","document","objects","OAuthFlow","$visitor"]),bi.refract=kh(["visitors","document","objects","OAuthFlows","$visitor"]),Ei.refract=kh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),ji.refract=kh(["visitors","document","objects","OpenApi","$visitor"]),Pi.refract=kh(["visitors","document","objects","Operation","$visitor"]),Ai.refract=kh(["visitors","document","objects","Parameter","$visitor"]),ki.refract=kh(["visitors","document","objects","PathItem","$visitor"]),Mi.refract=kh(["visitors","document","objects","Paths","$visitor"]),Ii.refract=kh(["visitors","document","objects","Reference","$visitor"]),Ci.refract=kh(["visitors","document","objects","RequestBody","$visitor"]),qi.refract=kh(["visitors","document","objects","Response","$visitor"]),Li.refract=kh(["visitors","document","objects","Responses","$visitor"]),Vc.refract=kh(["visitors","document","objects","Schema","$visitor"]),zc.refract=kh(["visitors","document","objects","SecurityRequirement","$visitor"]),Kc.refract=kh(["visitors","document","objects","SecurityScheme","$visitor"]),Wc.refract=kh(["visitors","document","objects","Server","$visitor"]),Yc.refract=kh(["visitors","document","objects","ServerVariable","$visitor"]),Xc.refract=kh(["visitors","document","objects","Tag","$visitor"]),ea.refract=kh(["visitors","document","objects","XML","$visitor"]);const Fh=class extends Wn{};const Mh=class extends Yn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Th=class extends Xn{};const Ih=class extends ei{};const Nh=class extends si{};const Ch=class extends ni{};const Rh=class extends oi{};const qh=class extends ai{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Dh=class extends ui{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 Lh extends oe.Om{static default=new Lh("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Bh=Lh;const Vh=class extends mi{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Uh=class extends di{};const zh=class extends yi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Gh=class extends _i{};const Kh=class extends bi{};const Hh=class extends Ei{};class Wh extends oe.Sh{constructor(e,t,s){super(e,t,s),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 Jh=Wh;const Yh=class extends Pi{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Zh=class extends Ai{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Xh=class extends ki{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 Qh=class extends Mi{};class ed extends Ii{}Object.defineProperty(ed.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(ed.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const td=ed;const sd=class extends Ci{};const rd=class extends qi{};const nd=class extends Li{};class id extends oe.Sh{constructor(e,t,s){super(e,t,s),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 od=id;const cd=class extends zc{};const ad=class extends Kc{};const ld=class extends Wc{};const ud=class extends Yc{};const pd=class extends Xc{};const md=class extends ea{};class hd extends(va(Ma,Ea)){constructor(e){super(e),this.element=new Jh,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Ma.prototype.ObjectElement.call(this,e)}}const dd=hd,{visitors:{document:{objects:{Info:{$visitor:fd}}}}}=jh;const yd=class extends fd{constructor(e){super(e),this.element=new Dh}},{visitors:{document:{objects:{Contact:{$visitor:gd}}}}}=jh;const _d=class extends gd{constructor(e){super(e),this.element=new Th}},{visitors:{document:{objects:{License:{$visitor:vd}}}}}=jh;const bd=class extends vd{constructor(e){super(e),this.element=new Vh}},{visitors:{document:{objects:{Link:{$visitor:xd}}}}}=jh;const Ed=class extends xd{constructor(e){super(e),this.element=new Uh}};class wd extends(va(wa,Ea)){StringElement(e){const t=new Bh(po(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const jd=wd,{visitors:{document:{objects:{Server:{$visitor:Sd}}}}}=jh;const Pd=class extends Sd{constructor(e){super(e),this.element=new ld}},{visitors:{document:{objects:{ServerVariable:{$visitor:Od}}}}}=jh;const Ad=class extends Od{constructor(e){super(e),this.element=new ud}},{visitors:{document:{objects:{MediaType:{$visitor:$d}}}}}=jh;const kd=class extends $d{constructor(e){super(e),this.element=new zh}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:Fd}}}}}=jh;const Md=class extends Fd{constructor(e){super(e),this.element=new cd}},{visitors:{document:{objects:{Components:{$visitor:Td}}}}}=jh;const Id=class extends Td{constructor(e){super(e),this.element=new Mh}},{visitors:{document:{objects:{Tag:{$visitor:Nd}}}}}=jh;const Cd=class extends Nd{constructor(e){super(e),this.element=new pd}},{visitors:{document:{objects:{Reference:{$visitor:Rd}}}}}=jh;const qd=class extends Rd{constructor(e){super(e),this.element=new td}},{visitors:{document:{objects:{Parameter:{$visitor:Dd}}}}}=jh;const Ld=class extends Dd{constructor(e){super(e),this.element=new Zh}},{visitors:{document:{objects:{Header:{$visitor:Bd}}}}}=jh;const Vd=class extends Bd{constructor(e){super(e),this.element=new qh}},Ud=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fh||e(r)&&t("callback",r)&&s("object",r))),zd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mh||e(r)&&t("components",r)&&s("object",r))),Gd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Th||e(r)&&t("contact",r)&&s("object",r))),Kd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ch||e(r)&&t("example",r)&&s("object",r))),Hd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rh||e(r)&&t("externalDocumentation",r)&&s("object",r))),Wd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qh||e(r)&&t("header",r)&&s("object",r))),Jd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dh||e(r)&&t("info",r)&&s("object",r))),Yd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bh||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),Zd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vh||e(r)&&t("license",r)&&s("object",r))),Xd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uh||e(r)&&t("link",r)&&s("object",r))),Qd=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hh||e(r)&&t("openapi",r)&&s("string",r))),ef=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Jh||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),tf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yh||e(r)&&t("operation",r)&&s("object",r))),sf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zh||e(r)&&t("parameter",r)&&s("object",r))),rf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xh||e(r)&&t("pathItem",r)&&s("object",r))),nf=e=>{if(!rf(e))return!1;if(!Hr(e.$ref))return!1;const t=po(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},of=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qh||e(r)&&t("paths",r)&&s("object",r))),cf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof td||e(r)&&t("reference",r)&&s("object",r))),af=e=>{if(!cf(e))return!1;if(!Hr(e.$ref))return!1;const t=po(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},lf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sd||e(r)&&t("requestBody",r)&&s("object",r))),uf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rd||e(r)&&t("response",r)&&s("object",r))),pf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nd||e(r)&&t("responses",r)&&s("object",r))),mf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof od||e(r)&&t("schema",r)&&s("object",r))),hf=e=>Yr(e)&&e.classes.includes("boolean-json-schema"),df=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof cd||e(r)&&t("securityRequirement",r)&&s("object",r))),ff=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ad||e(r)&&t("securityScheme",r)&&s("object",r))),yf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ld||e(r)&&t("server",r)&&s("object",r))),gf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ud||e(r)&&t("serverVariable",r)&&s("object",r))),_f=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zh||e(r)&&t("mediaType",r)&&s("object",r)));const vf=class{parent;constructor({parent:e}){this.parent=e}};class bf extends(va(Ma,vf,Ea)){constructor(e){super(e),this.element=new od,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Bh.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=Ma.prototype.ObjectElement.call(this,e);return Hr(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&&Yd(this.openApiSemanticElement.jsonSchemaDialect)?po(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Hr(this.openApiGenericElement.get("jsonSchemaDialect"))?po(this.openApiGenericElement.get("jsonSchemaDialect")):po(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ne(this.parent)&&!Hr(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(mf(this.parent)&&!Hr(e.get("$schema"))){const e=u(po(this.parent.meta.get("inherited$schema")),po(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?dn(this.parent.getMetaProperty("inherited$id",[])):new oe.wE,s=po(e.get("$id"));Jo(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)}}const xf=bf;const Ef=class extends Ea{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const wf=class extends Ea{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class jf extends(va(Ya,vf,Ea)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Sf=jf;class Pf extends(va(wa,vf,Ea)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=dn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const Of=Pf;class Af extends(va(wa,vf,Ea)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=dn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const $f=Af;class kf extends(va(wa,vf,Ea)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=dn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const Ff=kf;class Mf extends(va(Ya,vf,Ea)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Tf=Mf;class If extends(va(wa,vf,Ea)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(e){return e.forEach((e=>{if(Zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=dn(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),sr}}const Nf=If;class Cf extends(va(Ya,vf,Ea)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-properties"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Rf=Cf;class qf extends(va(Ya,vf,Ea)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=se(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const Df=qf;const Lf=class extends Ea{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 Bf=class extends Ea{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Vf=class extends Ea{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Uf=class extends Ea{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:zf}}}}}=jh;const Gf=class extends zf{constructor(e){super(e),this.element=new Ih,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:Kf}}}}}=jh;const Hf=class extends Kf{constructor(e){super(e),this.element=new md}};class Wf extends(va(Ya,Ea)){constructor(e){super(e),this.element=new cp,this.specPath=se(["document","objects","Schema"])}}const Jf=Wf;class Yf extends oe.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Yf.primaryClass)}}const Zf=Yf;class Xf extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Zf,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(cf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Qf=Xf,{visitors:{document:{objects:{Example:{$visitor:ey}}}}}=jh;const ty=class extends ey{constructor(e){super(e),this.element=new Ch}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:sy}}}}}=jh;const ry=class extends sy{constructor(e){super(e),this.element=new Rh}},{visitors:{document:{objects:{Encoding:{$visitor:ny}}}}}=jh;const iy=class extends ny{constructor(e){super(e),this.element=new Nh}},{visitors:{document:{objects:{Paths:{$visitor:oy}}}}}=jh;const cy=class extends oy{constructor(e){super(e),this.element=new Qh}},{visitors:{document:{objects:{RequestBody:{$visitor:ay}}}}}=jh;const ly=class extends ay{constructor(e){super(e),this.element=new sd}},{visitors:{document:{objects:{Callback:{$visitor:uy}}}}}=jh;const py=class extends uy{constructor(e){super(e),this.element=new Fh,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=uy.prototype.ObjectElement.call(this,e);return this.element.filter(cf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:my}}}}}=jh;const hy=class extends my{constructor(e){super(e),this.element=new rd}},{visitors:{document:{objects:{Responses:{$visitor:dy}}}}}=jh;const fy=class extends dy{constructor(e){super(e),this.element=new nd}},{visitors:{document:{objects:{Operation:{$visitor:yy}}}}}=jh;const gy=class extends yy{constructor(e){super(e),this.element=new Yh}},{visitors:{document:{objects:{PathItem:{$visitor:_y}}}}}=jh;const vy=class extends _y{constructor(e){super(e),this.element=new Xh}},{visitors:{document:{objects:{SecurityScheme:{$visitor:by}}}}}=jh;const xy=class extends by{constructor(e){super(e),this.element=new ad}},{visitors:{document:{objects:{OAuthFlows:{$visitor:Ey}}}}}=jh;const wy=class extends Ey{constructor(e){super(e),this.element=new Kh}},{visitors:{document:{objects:{OAuthFlow:{$visitor:jy}}}}}=jh;const Sy=class extends jy{constructor(e){super(e),this.element=new Gh}};class Py extends oe.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Py.primaryClass)}}const Oy=Py;class Ay extends(va(Ya,Ea)){constructor(e){super(e),this.element=new Oy,this.specPath=e=>Aa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ya.prototype.ObjectElement.call(this,e);return this.element.filter(cf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(rf).forEach(((e,t)=>{e.setMetaProperty("webhook-name",po(t))})),t}}const $y=Ay,ky={visitors:{value:jh.visitors.value,document:{objects:{OpenApi:{$visitor:dd,fixedFields:{openapi:jh.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:jd,servers:jh.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:$y,components:{$ref:"#/visitors/document/objects/Components"},security:jh.visitors.document.objects.OpenApi.fixedFields.security,tags:jh.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:yd,fixedFields:{title:jh.visitors.document.objects.Info.fixedFields.title,description:jh.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:jh.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:jh.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:_d,fixedFields:{name:jh.visitors.document.objects.Contact.fixedFields.name,url:jh.visitors.document.objects.Contact.fixedFields.url,email:jh.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:bd,fixedFields:{name:jh.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:jh.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Pd,fixedFields:{url:jh.visitors.document.objects.Server.fixedFields.url,description:jh.visitors.document.objects.Server.fixedFields.description,variables:jh.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Ad,fixedFields:{enum:jh.visitors.document.objects.ServerVariable.fixedFields.enum,default:jh.visitors.document.objects.ServerVariable.fixedFields.default,description:jh.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Id,fixedFields:{schemas:Jf,responses:jh.visitors.document.objects.Components.fixedFields.responses,parameters:jh.visitors.document.objects.Components.fixedFields.parameters,examples:jh.visitors.document.objects.Components.fixedFields.examples,requestBodies:jh.visitors.document.objects.Components.fixedFields.requestBodies,headers:jh.visitors.document.objects.Components.fixedFields.headers,securitySchemes:jh.visitors.document.objects.Components.fixedFields.securitySchemes,links:jh.visitors.document.objects.Components.fixedFields.links,callbacks:jh.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Qf}},Paths:{$visitor:cy},PathItem:{$visitor:vy,fixedFields:{$ref:jh.visitors.document.objects.PathItem.fixedFields.$ref,summary:jh.visitors.document.objects.PathItem.fixedFields.summary,description:jh.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:jh.visitors.document.objects.PathItem.fixedFields.servers,parameters:jh.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:gy,fixedFields:{tags:jh.visitors.document.objects.Operation.fixedFields.tags,summary:jh.visitors.document.objects.Operation.fixedFields.summary,description:jh.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:jh.visitors.document.objects.Operation.fixedFields.operationId,parameters:jh.visitors.document.objects.Operation.fixedFields.parameters,requestBody:jh.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:jh.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:jh.visitors.document.objects.Operation.fixedFields.deprecated,security:jh.visitors.document.objects.Operation.fixedFields.security,servers:jh.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:ry,fixedFields:{description:jh.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:jh.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Ld,fixedFields:{name:jh.visitors.document.objects.Parameter.fixedFields.name,in:jh.visitors.document.objects.Parameter.fixedFields.in,description:jh.visitors.document.objects.Parameter.fixedFields.description,required:jh.visitors.document.objects.Parameter.fixedFields.required,deprecated:jh.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:jh.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:jh.visitors.document.objects.Parameter.fixedFields.style,explode:jh.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:jh.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:jh.visitors.document.objects.Parameter.fixedFields.example,examples:jh.visitors.document.objects.Parameter.fixedFields.examples,content:jh.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ly,fixedFields:{description:jh.visitors.document.objects.RequestBody.fixedFields.description,content:jh.visitors.document.objects.RequestBody.fixedFields.content,required:jh.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:kd,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:jh.visitors.document.objects.MediaType.fixedFields.example,examples:jh.visitors.document.objects.MediaType.fixedFields.examples,encoding:jh.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:iy,fixedFields:{contentType:jh.visitors.document.objects.Encoding.fixedFields.contentType,headers:jh.visitors.document.objects.Encoding.fixedFields.headers,style:jh.visitors.document.objects.Encoding.fixedFields.style,explode:jh.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:jh.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:fy,fixedFields:{default:jh.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:hy,fixedFields:{description:jh.visitors.document.objects.Response.fixedFields.description,headers:jh.visitors.document.objects.Response.fixedFields.headers,content:jh.visitors.document.objects.Response.fixedFields.content,links:jh.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:py},Example:{$visitor:ty,fixedFields:{summary:jh.visitors.document.objects.Example.fixedFields.summary,description:jh.visitors.document.objects.Example.fixedFields.description,value:jh.visitors.document.objects.Example.fixedFields.value,externalValue:jh.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Ed,fixedFields:{operationRef:jh.visitors.document.objects.Link.fixedFields.operationRef,operationId:jh.visitors.document.objects.Link.fixedFields.operationId,parameters:jh.visitors.document.objects.Link.fixedFields.parameters,requestBody:jh.visitors.document.objects.Link.fixedFields.requestBody,description:jh.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Vd,fixedFields:{description:jh.visitors.document.objects.Header.fixedFields.description,required:jh.visitors.document.objects.Header.fixedFields.required,deprecated:jh.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:jh.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:jh.visitors.document.objects.Header.fixedFields.style,explode:jh.visitors.document.objects.Header.fixedFields.explode,allowReserved:jh.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:jh.visitors.document.objects.Header.fixedFields.example,examples:jh.visitors.document.objects.Header.fixedFields.examples,content:jh.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Cd,fixedFields:{name:jh.visitors.document.objects.Tag.fixedFields.name,description:jh.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:qd,fixedFields:{$ref:jh.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:xf,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:Ef,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:wf,$defs:Sf,$comment:{$ref:"#/visitors/value"},allOf:Of,anyOf:$f,oneOf:Ff,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:Tf,prefixItems:Nf,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Rf,patternProperties:Df,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:Lf,enum:Bf,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:Vf,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:Uf,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:Gf,fixedFields:{propertyName:jh.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:jh.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Hf,fixedFields:{name:jh.visitors.document.objects.XML.fixedFields.name,namespace:jh.visitors.document.objects.XML.fixedFields.namespace,prefix:jh.visitors.document.objects.XML.fixedFields.prefix,attribute:jh.visitors.document.objects.XML.fixedFields.attribute,wrapped:jh.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:xy,fixedFields:{type:jh.visitors.document.objects.SecurityScheme.fixedFields.type,description:jh.visitors.document.objects.SecurityScheme.fixedFields.description,name:jh.visitors.document.objects.SecurityScheme.fixedFields.name,in:jh.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:jh.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:jh.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:jh.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:wy,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:Sy,fixedFields:{authorizationUrl:jh.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:jh.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:jh.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:jh.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Md}},extension:{$visitor:jh.visitors.document.extension.$visitor}}}},Fy=e=>{if(Kr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},My={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"],...xn},Ty={namespace:e=>{const{base:t}=e;return t.register("callback",Fh),t.register("components",Mh),t.register("contact",Th),t.register("discriminator",Ih),t.register("encoding",Nh),t.register("example",Ch),t.register("externalDocumentation",Rh),t.register("header",qh),t.register("info",Dh),t.register("jsonSchemaDialect",Bh),t.register("license",Vh),t.register("link",Uh),t.register("mediaType",zh),t.register("oAuthFlow",Gh),t.register("oAuthFlows",Kh),t.register("openapi",Hh),t.register("openApi3_1",Jh),t.register("operation",Yh),t.register("parameter",Zh),t.register("pathItem",Xh),t.register("paths",Qh),t.register("reference",td),t.register("requestBody",sd),t.register("response",rd),t.register("responses",nd),t.register("schema",od),t.register("securityRequirement",cd),t.register("securityScheme",ad),t.register("server",ld),t.register("serverVariable",ud),t.register("tag",pd),t.register("xml",md),t}},Iy=()=>{const e=ut(Ty);return{predicates:{...i,isElement:Kr,isStringElement:Hr,isArrayElement:Xr,isObjectElement:Zr,isMemberElement:Qr,isServersElement:Ul,includesClasses:un,hasElementSourceMap:an},namespace:e}},Ny=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=so(ky),i=new(Ie(t,n))({specObj:n});return En(r,i),Rn(i.element,s,{toolboxCreator:Iy,visitorOptions:{keyMap:My,nodeTypeGetter:Fy}})},Cy=e=>(t,s={})=>Ny(t,{specPath:e,...s});Fh.refract=Cy(["visitors","document","objects","Callback","$visitor"]),Mh.refract=Cy(["visitors","document","objects","Components","$visitor"]),Th.refract=Cy(["visitors","document","objects","Contact","$visitor"]),Ch.refract=Cy(["visitors","document","objects","Example","$visitor"]),Ih.refract=Cy(["visitors","document","objects","Discriminator","$visitor"]),Nh.refract=Cy(["visitors","document","objects","Encoding","$visitor"]),Rh.refract=Cy(["visitors","document","objects","ExternalDocumentation","$visitor"]),qh.refract=Cy(["visitors","document","objects","Header","$visitor"]),Dh.refract=Cy(["visitors","document","objects","Info","$visitor"]),Bh.refract=Cy(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Vh.refract=Cy(["visitors","document","objects","License","$visitor"]),Uh.refract=Cy(["visitors","document","objects","Link","$visitor"]),zh.refract=Cy(["visitors","document","objects","MediaType","$visitor"]),Gh.refract=Cy(["visitors","document","objects","OAuthFlow","$visitor"]),Kh.refract=Cy(["visitors","document","objects","OAuthFlows","$visitor"]),Hh.refract=Cy(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Jh.refract=Cy(["visitors","document","objects","OpenApi","$visitor"]),Yh.refract=Cy(["visitors","document","objects","Operation","$visitor"]),Zh.refract=Cy(["visitors","document","objects","Parameter","$visitor"]),Xh.refract=Cy(["visitors","document","objects","PathItem","$visitor"]),Qh.refract=Cy(["visitors","document","objects","Paths","$visitor"]),td.refract=Cy(["visitors","document","objects","Reference","$visitor"]),sd.refract=Cy(["visitors","document","objects","RequestBody","$visitor"]),rd.refract=Cy(["visitors","document","objects","Response","$visitor"]),nd.refract=Cy(["visitors","document","objects","Responses","$visitor"]),od.refract=Cy(["visitors","document","objects","Schema","$visitor"]),cd.refract=Cy(["visitors","document","objects","SecurityRequirement","$visitor"]),ad.refract=Cy(["visitors","document","objects","SecurityScheme","$visitor"]),ld.refract=Cy(["visitors","document","objects","Server","$visitor"]),ud.refract=Cy(["visitors","document","objects","ServerVariable","$visitor"]),pd.refract=Cy(["visitors","document","objects","Tag","$visitor"]),md.refract=Cy(["visitors","document","objects","XML","$visitor"]);const Ry=h(-1);const qy=class extends Bi{};const Dy=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new qy("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new qy("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new qy("latest method in MediaTypes class is not yet implemented.")}};class Ly extends Dy{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 s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Ry(this.filterByFormat(e))}}const By=new Ly("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"),Vy=new Ly(...By.filterByFormat("generic"),...By.filterByFormat("yaml")),Uy=/(?<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,zy=async e=>Uy.test(e)&&await(async e=>{try{return"ERROR"!==(await wt(e)).rootNode.type}catch{return!1}})(e),Gy=async(e,t={})=>{const s=f({},"refractorOpts",t),r=g(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await wt(e);return Kn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ie(i)){const e=Jh.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Ky=ut(Ty)})(),r})()));