@swagger-api/apidom-parser-adapter-openapi-json-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.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_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 u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},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),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),l=!s&&n(e),p=!s&&!l&&o(e),m=!s&&!l&&!p&&a(e),h=s||l||p||m,d=h?r(e.length,String):[],f=d.length;for(var y in e)!t&&!u.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),u=s(5853),l=s(8666),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,f,y,_){var g=a(e),v=a(t),b=g?m:c(e),E=v?m:c(t),x=(b=b==p?h:b)==h,w=(E=E==p?h:E)==h,j=b==E;if(j&&u(e)){if(!u(t))return!1;g=!0,x=!1}if(j&&!x)return _||(_=new r),g||l(e)?n(e,t,s,f,y,_):i(e,t,b,s,f,y,_);if(!(1&s)){var S=x&&d.call(e,"__wrapped__"),O=w&&d.call(t,"__wrapped__");if(S||O){var P=S?e.value():e,A=O?t.value():t;return _||(_=new r),y(P,A,s,f,_)}}return!!j&&(_||(_=new r),o(e,t,s,f,y,_))}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,p=u.hasOwnProperty,m=RegExp("^"+l.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 u=1&s,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))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<l;){var _=e[d],g=t[d];if(o)var v=u?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)&&(_===e||c(_,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),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,s,r,u,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,u,p,m);return m.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.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,u=r(e),l=u.length;if(l!=r(t).length&&!a)return!1;for(var p=l;p--;){var m=u[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<l;){var _=e[m=u[p]],g=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,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(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),u=s(4066),l="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=u(r),y=u(n),_=u(i),g=u(o),v=u(c),b=a;(r&&b(new r(new ArrayBuffer(1)))!=d||n&&b(new n)!=l||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?u(s):"";if(r)switch(r){case f:return d;case y:return l;case _:return p;case g: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),u=s(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.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",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(n,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.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=l,e.exports=l},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),u=s(7309),l=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 l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=m,r.prototype.MemberElement=u,r.prototype.refract=y,h.prototype.refract=y,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,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",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",_="initializers",g="methods",v="composers",b="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function x(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var w=x.bind(0,(function(e,t){if(t)for(var s=E(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 O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=x.bind(0,(function e(s,r){if(r===t)return s;if(Array.isArray(r))return(Array.isArray(s)?s:[]).concat(r);if(!O(r))return r;for(var n,i,o=E(r),c=0;c<o.length;)n=o[c++],(i=Object.getOwnPropertyDescriptor(r,n)).hasOwnProperty("value")?i.value!==t&&(s[n]=e(O(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(g),r(o),r(c,P),r(a),r(u),r(l,P),r(p),r(m),r(h,P),n(_),n(v)),e}function M(){return function(e){return s=function e(s){var r,n,i=e[b]||{},u={__proto__:i[g]},l=i[_],p=Array.prototype.slice.apply(arguments),m=i[c];if(m&&P(u,m),(m=i[o])&&w(u,m),(m=i[a])&&Object.defineProperties(u,m),!l||!l.length)return u;for(s===t&&(s={}),i=0;i<l.length;)j(r=l[i++])&&(u=(n=r.call(u,s,{instance:u,stamp:e,args:p}))===t?u:n);return u},(r=e[l])&&P(s,r),(r=e[u])&&w(s,r),(r=e[p])&&Object.defineProperties(s,r),r=j(s[b])?s[b]:M,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 k={};function I(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((s=this)&&s[b]||r).call(s,n)}}k[g]=I(g,w),k[o]=k.props=I(o,w),k[_]=k.init=I(_,A),k[v]=I(v,A),k[c]=k[d]=I(c,P),k[u]=k.statics=I(u,w),k[l]=k[f]=I(l,P),k[m]=k.conf=I(m,w),k[h]=k[y]=I(h,P),k[a]=I(a,w),k[p]=I(p,w),r=k[b]=w((function(){for(var e,E,x=0,j=[],O=arguments,$=this;x<O.length;)S(e=O[x++])&&j.push(F(e)?e:((n={})[g]=(E=e)[g]||t,r=E.props,n[o]=S((s=E[o])||r)?w({},r,s):t,n[_]=A(E.init,E[_]),n[v]=A(E[v]),r=E[d],n[c]=S((s=E[c])||r)?P({},r,s):t,n[a]=E[a],r=E.statics,n[u]=S((s=E[u])||r)?w({},r,s):t,r=E[f],n[l]=S((s=E[l])||r)?P({},r,s):t,s=E[p],n[p]=S((r=E.name&&{name:{value:E.name}})||s)?w({},s,r):t,r=E.conf,n[m]=S((s=E[m])||r)?w({},r,s):t,r=E[y],n[h]=S((s=E[h])||r)?P({},r,s):t,n));if(e=M.apply($||i,j),$&&j.unshift($),Array.isArray(O=e[b][v]))for(x=0;x<O.length;)e=F($=O[x++]({stamp:e,composables:j}))?$:e;return e}),k),k.create=function(){return this.apply(t,arguments)},(n={})[u]=k,i=M(n),r[b]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},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,u,l,p,m=[],h="./this.program",d=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!a&&!p;var f,y,_,g,v,b="";a?(b=p?s(4142).dirname(b)+"/":"//",f=function(e,t){return g||(g=s(3078)),v||(v=s(4142)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},_=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(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]"}):u?("undefined"!=typeof read&&(f=function(e){return read(e)}),_=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("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)):(l||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&&(_=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 E=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 x,w=16,j=[];function S(e,t){if(!x){x=new WeakMap;for(var s=0;s<Z.length;s++){var r=Z.get(s);r&&x.set(r,s)}}if(x.has(e))return x.get(e);var n=function(){if(j.length)return j.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.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 u=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])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(n,i)}return x.set(e,n),n}var O,P=r.dynamicLibraries||[];r.wasmBinary&&(O=r.wasmBinary);var A,$=r.noExitRuntime||!0;function M(e,t,s,r){switch("*"===(s=s||"i8").charAt(s.length-1)&&(s="i32"),s){case"i1":case"i8":C[e>>0]=t;break;case"i16":N[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":B[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 C[e>>0];case"i16":return N[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return B[e>>3];default:ce("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ce("no native wasm support detected");var k=!1;function I(e,t){e||ce("Assertion failed: "+t)}var R,C,T,N,q,D,B,L="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&&L)return L.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 u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|c)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(T,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,T,t,s)}function H(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 J(e){var t=H(e)+1,s=Ue(t);return z(e,C,s,t),s}function W(e){R=e,r.HEAP8=C=new Int8Array(e),r.HEAP16=N=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=T=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=B=new Float64Array(e)}var K=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(R=A.buffer),K=R.byteLength,W(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],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),E(e+=""),k=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ae,ue,le;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&&O)return new Uint8Array(O);if(_)return _(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?Z.get(s)():Z.get(s)(t.arg):s(void 0===t.arg?null:t.arg)}else t(r)}}function _e(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");I(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else I(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),I(0===e[8],"need the dylink section to be first"),t=9,s(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(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 u=V(a,0);n.neededDynlibs.push(u)}return n}var ge=0;function ve(){return $||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function Ee(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 xe={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:E("unhandled export type for `"+t+"`: "+typeof r))}}(s),s}function Oe(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=Le();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):Z.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 Pe(e,t){var s=_e(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=Z.length;Z.grow(s.tableSize);for(var u=c;u<c+s.memorySize;u++)C[u]=0;for(u=a;u<a+s.tableSize;u++)Z.set(u,null);var l=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=Oe(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:l,wasi_snapshot_preview1:l};function m(e){for(var r=0;r<s.tableSize;r++){var n=Z.get(a+r);n&&x.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():Y.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||xe.loadedLibNames[e]||(xe.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},xe.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var s,n=xe.loadedLibNames[e];if(n)return s=xe.loadedLibs[n],t.global&&!s.global&&(s.global=!0,"loading"!==s.module&&Ee(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)}))):_(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 Pe(e,t)})):Pe(i(e),t)}function c(e){s.global&&Ee(e),s.module=e}return n=xe.nextHandle++,s={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},xe.loadedLibNames[e]=n,xe.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=Oe(e,!0);"function"==typeof t?de[e].value=S(t,t.sig):"number"==typeof t?de[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=we;var Me,Fe=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function ke(){ce()}r._abort=ke,ke.sig="v",Me=a?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ie(e,t){var s;if(0===e)s=Date.now();else{if(1!==e&&4!==e)return 28,q[Be()>>2]=28,-1;s=Me()}return q[t>>2]=s/1e3|0,q[t+4>>2]=s%1e3*1e3*1e3|0,0}function Re(e){try{return A.grow(e-R.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Ce(e){We(e)}function Te(e){}Ie.sig="iii",Ce.sig="vi",Te.sig="vi";var Ne,qe={__heap_base:we,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Fe,__table_base:1,abort:ke,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,s){T.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=T.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),Re(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ce,memory:A,setTempRet0:Te,tree_sitter_log_callback:function(e,t){if(ut){const s=U(t);ut(s,0!==e)}},tree_sitter_parse_callback:function(e,t,s,r,n){var i=at(t,{row:s,column:r});"string"==typeof i?(M(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);N[t>>1]=i,t+=2}N[t>>1]=0}(i,e,10240)):M(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=_e(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),Ee(s),n=r.asm.__wasm_call_ctors,Y.unshift(n),oe()}function s(e){t(e.instance,e.module)}function n(t){return function(){if(!O&&(l||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){E("failed to asynchronously prepare wasm: "+e),ce(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return E("Module.instantiateWasm callback failed with error: "+e),!1}O||"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 E("wasm streaming compile failed: "+e),E("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)}),Be=(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(Be=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Le=(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(Le=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?T.set(e,s):T.set(new Uint8Array(e),s),s},ne=function e(){Ne||Je(),Ne||(ne=e)};var He=!1;function Je(e){function t(){Ne||(Ne=!0,r.calledRun=!0,k||(te=!0,ye(Y),ye(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Ke&&function(e){var t=r._main;if(t){var s=(e=e||[]).length+1,n=Ue(4*(s+1));q[n>>2]=J(h);for(var i=1;i<s;i++)q[(n>>2)+i]=J(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]),E("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||!He&&(function(){if(P.length){if(!_)return ie(),void P.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()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),$e()}else $e()}(),He=!0,se>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),X.unshift(e);var e;ye(X)}(),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),k=!0),d(e,new Ge(e)))}if(r.run=Je,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Ke=!0;r.noInitialRun&&(Ke=!1),Je();const Ze=r,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,st={row:0,column:0},rt=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,ct,at,ut;class lt{static init(){ct=Ze._ts_init(),it=F(ct,"i32"),ot=F(ct+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=F(ct,"i32"),this[1]=F(ct+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._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=Ze._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,Ze._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?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s&&s.includedRanges){r=s.includedRanges.length;let e=n=Ze._calloc(r,tt);for(let t=0;t<r;t++)Ot(e,s.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw at=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,at);return at=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._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){gt(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._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),M(t+=et,e.startIndex,"i32"),M(t+=Ye,e.oldEndIndex,"i32"),M(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),Et(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=F(ct,"i32"),s=F(ct+Ye,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=Pt(e),e+=tt;Ze._free(s)}return r}}class mt{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),St(ct)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),Et(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),Et(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),Et(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return bt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._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),Ze._ts_node_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Ye,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=Et(this.tree,s),s+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=Et(this.tree,s),s+=Qe;Ze._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=Ze._malloc(Ye*r.length);for(let e=0,t=r.length;e<t;e++)M(i+e*Ye,r[e],"i32");bt(this),Ze._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+Ye,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=Et(this.tree,e),e+=Qe}return Ze._free(c),Ze._free(i),a}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),Et(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),Et(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),Et(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),Et(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),Et(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 M(s,e,"i32"),M(s+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),Et(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 M(s,e,"i32"),M(s+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),Et(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),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),Et(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),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Xe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var s=T[e++>>0];if(!s)return t;t+=String.fromCharCode(s)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,wt(this)}delete(){xt(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),xt(this,ct+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),wt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return xt(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return xt(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return xt(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return xt(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){xt(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return xt(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),St(ct)}get endPosition(){return xt(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),St(ct)}get startIndex(){return xt(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return xt(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return xt(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),Et(this.tree)}currentFieldId(){return xt(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){xt(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return wt(this),1===e}gotoNextSibling(){xt(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return wt(this),1===e}gotoParent(){xt(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return wt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._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=H(e),r=Ze._malloc(s+1);G(e,r,s+1);const n=Ze._ts_language_symbol_for_name(this[0],r,s,t);return Ze._free(r),n||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=H(e),s=Ze._malloc(t+1);G(e,s,t+1);const r=Ze._ts_query_new(this[0],s,t,ct,ct+Ye);if(!r){const t=F(ct+Ye,"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,Ze._free(s),i}const n=Ze._ts_query_string_count(r),i=Ze._ts_query_capture_count(r),o=Ze._ts_query_pattern_count(r),c=new Array(i),a=new Array(n);for(let e=0;e<i;e++){const t=Ze._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=Ze._ts_query_string_value_for_id(r,e,ct),s=F(ct,"i32");a[e]=U(t,s)}const u=new Array(o),l=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ze._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+=Ye,"i32");if(i+=Ye,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.".');u[e]||(u[e]={}),u[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?l: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(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(s),new ft(Xe,r,c,h,m,Object.freeze(u),Object.freeze(l),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:Pe;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(Xe,r)}))}}class ft{constructor(e,t,s,r,n,i,o,c){gt(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(){Ze._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),Ze._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+Ye,"i32"),c=F(ct+2*Ye,"i32"),a=new Array(i);this.exceededMatchLimit=!!c;let u=0,l=o;for(let t=0;t<i;t++){const s=F(l,"i32"),r=F(l+=Ye,"i32");l+=Ye;const n=new Array(r);if(l=_t(this,e.tree,l,n),this.textPredicates[s].every((e=>e(n)))){a[u++]={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=u,Ze._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),Ze._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+Ye,"i32"),c=F(ct+2*Ye,"i32"),a=[];this.exceededMatchLimit=!!c;const u=[];let l=o;for(let t=0;t<i;t++){const t=F(l,"i32"),s=F(l+=Ye,"i32"),r=F(l+=Ye,"i32");if(l+=Ye,u.length=s,l=_t(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[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 Ze._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 _t(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=F(s,"i32"),o=Et(t,s+=Ye);s+=Qe,r[n]={name:e.captureNames[i],node:o}}return s}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=ct;M(t,e.id,"i32"),M(t+=Ye,e.startIndex,"i32"),M(t+=Ye,e.startPosition.row,"i32"),M(t+=Ye,e.startPosition.column,"i32"),M(t+=Ye,e[0],"i32")}function Et(e,t=ct){const s=F(t,"i32");if(0===s)return null;const r=F(t+=Ye,"i32"),n=F(t+=Ye,"i32"),i=F(t+=Ye,"i32"),o=F(t+=Ye,"i32"),c=new mt(Xe,e);return c.id=s,c.startIndex=r,c.startPosition={row:n,column:i},c[0]=o,c}function xt(e,t=ct){M(t+0*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function wt(e){e[0]=F(ct+0*Ye,"i32"),e[1]=F(ct+1*Ye,"i32"),e[2]=F(ct+2*Ye,"i32")}function jt(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function St(e){return{row:F(e,"i32"),column:F(e+Ye,"i32")}}function Ot(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Ye,t.endIndex,"i32"),e+=Ye}function Pt(e){const t={};return t.startPosition=St(e),e+=et,t.endPosition=St(e),e+=et,t.startIndex=F(e,"i32"),e+=Ye,t.endIndex=F(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=dt,r.onRuntimeInitialized=()=>{lt.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),u=i(a),l=n(o,u);if(e&&s!=s){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===s)return e||l||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,u=i.f,l=0;l<c.length;l++){var p=c[l];r(e,p)||s&&r(s,p)||a(e,p,u(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,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(n=(r=l.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),u=s(8099),l=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,E=e.target,x=e.global,w=e.stat,j=e.proto,S=x?r:w?r[E]:r[E]&&r[E].prototype,O=x?u:u[E]||p(u,E,{})[E],P=O.prototype;for(f in t)n=!(s=a(x?f:E+(w?".":"#")+f,e.forced))&&S&&m(S,f),_=O[f],n&&(g=e.dontCallGetSet?(b=c(S,f))&&b.value:S[f]),y=n&&g?g:t[f],(s||j||typeof _!=typeof y)&&(v=e.bind&&n?l(y,r):e.wrap&&n?h(y):j&&o(y)?i(y):y,(e.sham||y&&y.sham||_&&_.sham)&&p(v,"sham",!0),p(O,f,v),j&&(m(u,d=E+"Prototype")||p(u,d,{}),p(u[d],f,y),e.real&&P&&(s||!P[f])&&p(P,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,u=c&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},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),u=s(3999),l=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 _=p.state||(p.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,r=function(e,t){if(_.has(e))throw new f(d);return t.facade=e,_.set(e,t),t},n=function(e){return _.get(e)||{}},i=function(e){return _.has(e)}}else{var g=m("state");h[g]=!0,r=function(e,t){if(l(e,g))throw new f(d);return t.facade=e,u(e,g,t),t},n=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}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===l||s!==u&&(n(t)?r(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=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),u=s(4317),l=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,E,x,w=s&&s.that,j=!(!s||!s.AS_ENTRIES),S=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),A=r(t,w),$=function(e){return y&&m(y,"normal",e),new d(!0,e)},M=function(e){return j?(i(e),P?A(e[0],e[1],$):A(e[0],e[1])):P?A(e,$):A(e)};if(S)y=e.iterator;else if(O)y=e;else{if(!(_=p(e)))throw new h(o(e)+" is not iterable");if(c(_)){for(g=0,v=a(e);v>g;g++)if((b=M(e[g]))&&u(f,b))return b;return new d(!1)}y=l(e,_)}for(E=S?e.next:y.next;!(x=n(E,y)).done;){try{b=M(x.value)}catch(e){m(y,"throw",e)}if("object"==typeof b&&b&&u(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,u){var l=t+" Iterator";return e.prototype=n(r,{next:i(+!u,s)}),o(e,l,!1,!0),c[l]=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),u=s(3671),l=s(3491),p=s(1811),m=s(3999),h=s(3508),d=s(8655),f=s(6625),y=s(2621),_=o.PROPER,g=o.CONFIGURABLE,v=y.IteratorPrototype,b=y.BUGGY_SAFARI_ITERATORS,E=d("iterator"),x="keys",w="values",j="entries",S=function(){return this};e.exports=function(e,t,s,o,d,y,O){a(s,t,o);var P,A,$,M=function(e){if(e===d&&C)return C;if(!b&&e&&e in I)return I[e];switch(e){case x:case w:case j:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",k=!1,I=e.prototype,R=I[E]||I["@@iterator"]||d&&I[d],C=!b&&R||M(d),T="Array"===t&&I.entries||R;if(T&&(P=u(T.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===v||(l?l(P,v):c(P[E])||h(P,E,S)),p(P,F,!0,!0),i&&(f[F]=S)),_&&d===w&&R&&R.name!==w&&(!i&&g?m(I,"name",w):(k=!0,C=function(){return n(R,this)})),d)if(A={values:M(w),keys:y?C:M(x),entries:M(j)},O)for($ in A)(b||k||!($ in I))&&h(I,$,A[$]);else r({target:t,proto:!0,forced:b||k},A);return i&&!O||I[E]===C||h(I,E,C,{name:d}),f[t]=C,A}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),c=s(2769),a=s(262),u=s(5780),l=s(3671),p=s(3508),m=s(8655),h=s(4871),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(r=n):f=!0),!a(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:h&&(r=u(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),u=s(9619),l=s(4275),p="prototype",m="script",h=l("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},_=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;_="undefined"!=typeof document?document.domain&&r?y(r):(t=u("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 _[p][o[n]];return _()};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=_(),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),u=n.length,l=0;u>l;)i.f(e,s=n[l++],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,u=Object.defineProperty,l=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=l(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 u(e,t,s)}:u:function(e,t,s){if(o(e),t=c(t),o(s),n)try{return u(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),u=s(701),l=s(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=a(t),l)try{return p(e,t)}catch(e){}if(u(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"),u=Object,l=u.prototype;e.exports=c?u.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 u?l: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),u=0,l=[];for(s in r)!n(c,s)&&n(r,s)&&a(l,s);for(;t.length>u;)n(r,s=t[u++])&&(~o(l,s)||a(l,s));return l}},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,u){var l=s?e:e&&e.prototype;l&&(o(l,a)||n(l,a,{configurable:!0,value:t}),u&&!r&&i(l,"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),u=r("".slice),l=function(e){return function(t,s){var r,l,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||(l=a(p,m+1))<56320||l>57343?e?c(p,m):r:e?u(p,m,m+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!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),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,a=o(e,l);if(a){if(void 0===t&&(t="default"),s=r(a,e,t),!n(s)||i(s))return s;throw new u("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),u=r.Symbol,l=n("wks"),p=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:p("Symbol."+e)),l[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),u=s(5516),l=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 _="stackTraceLimit",g=y?2:1,v=e.split("."),b=v[v.length-1],E=r.apply(null,v);if(E){var x=E.prototype;if(!f&&n(x,"cause")&&delete x.cause,!s)return E;var w=r("Error"),j=t((function(e,t){var s=p(y?t:e,void 0),r=y?new E(e):new E;return void 0!==s&&i(r,"message",s),h(r,j,r.stack,2),this&&o(x,this)&&l(r,this,j),arguments.length>g&&m(r,arguments[g]),r}));if(j.prototype=x,"Error"!==b?c?c(j,w):a(j,w,{name:!0}):d&&_ in E&&(u(j,E,_),u(j,E,"prepareStackTrace")),a(j,E),!f)try{x.name!==b&&i(x,"name",b),x.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",u=n(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,s){return i(e,this,arguments)}}),l,!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),u=s(3999),l=s(480),p=s(8148),m=s(4279),h=s(208),d=s(4879),f=s(8655)("toStringTag"),y=Error,_=[].push,g=function(e,t){var s,r=n(v,this);o?s=o(new y,r?i(this):v):(s=r?this:a(v),u(s,f,"Error")),void 0!==t&&u(s,"message",d(t)),m(s,g,s.stack,1),arguments.length>2&&p(s,arguments[2]);var c=[];return h(e,_,{that:c}),u(s,"errors",c),s};o?o(g,y):c(g,y,{name:!0});var v=g.prototype=a(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},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),u=s(877),l=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,u(void 0,!0);switch(e.kind){case"keys":return u(s,!1);case"values":return u(t[s],!1)}return u([s,t[s]],!1)}),"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&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],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var s={};s[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},s)},p=function(e,t){if(a&&a[e]){var s={};s[e]=o(c+"."+e,t,u),r({target:c,stat:!0,constructor:!0,arity:1,forced:u},s)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("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",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:n(e),index:0})}),(function(){var e,t=l(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:()=>Cf,detectionRegExp:()=>Rf,mediaTypes:()=>If,namespace:()=>Nf,parse:()=>Tf});var e={};s.r(e),s.d(e,{hasElementSourceMap:()=>ss,includesClasses:()=>ns,includesSymbols:()=>rs,isAnnotationElement:()=>Xt,isArrayElement:()=>Jt,isBooleanElement:()=>Gt,isCommentElement:()=>Yt,isElement:()=>Lt,isLinkElement:()=>Kt,isMemberElement:()=>Wt,isNullElement:()=>zt,isNumberElement:()=>Ut,isObjectElement:()=>Ht,isParseResultElement:()=>Qt,isPrimitiveElement:()=>ts,isRefElement:()=>Zt,isSourceMapElement:()=>es,isStringElement:()=>Vt});var t={};s.r(t),s.d(t,{isJSONReferenceElement:()=>Oo,isJSONSchemaElement:()=>So,isLinkDescriptionElement:()=>Ao,isMediaElement:()=>Po});var n={};s.r(n),s.d(n,{isBooleanJsonSchemaElement:()=>Aa,isCallbackElement:()=>aa,isComponentsElement:()=>ua,isContactElement:()=>la,isExampleElement:()=>pa,isExternalDocumentationElement:()=>ma,isHeaderElement:()=>ha,isInfoElement:()=>da,isLicenseElement:()=>fa,isLinkElement:()=>ya,isMediaTypeElement:()=>Ia,isOpenApi3_0Element:()=>ga,isOpenapiElement:()=>_a,isOperationElement:()=>va,isParameterElement:()=>ba,isPathItemElement:()=>Ea,isPathsElement:()=>xa,isReferenceElement:()=>wa,isRequestBodyElement:()=>ja,isResponseElement:()=>Sa,isResponsesElement:()=>Oa,isSchemaElement:()=>Pa,isSecurityRequirementElement:()=>$a,isSecuritySchemeElement:()=>Ma,isServerElement:()=>Fa,isServerVariableElement:()=>ka,isServersElement:()=>Ra});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 u(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:()=>rd,isCallbackElement:()=>Rh,isComponentsElement:()=>Ch,isContactElement:()=>Th,isExampleElement:()=>Nh,isExternalDocumentationElement:()=>qh,isHeaderElement:()=>Dh,isInfoElement:()=>Bh,isJsonSchemaDialectElement:()=>Lh,isLicenseElement:()=>Vh,isLinkElement:()=>Uh,isMediaTypeElement:()=>ad,isOpenApi3_1Element:()=>Gh,isOpenapiElement:()=>zh,isOperationElement:()=>Hh,isParameterElement:()=>Jh,isPathItemElement:()=>Wh,isPathItemElementExternal:()=>Kh,isPathsElement:()=>Zh,isReferenceElement:()=>Xh,isReferenceElementExternal:()=>Yh,isRequestBodyElement:()=>Qh,isResponseElement:()=>ed,isResponsesElement:()=>td,isSchemaElement:()=>sd,isSecurityRequirementElement:()=>nd,isSecuritySchemeElement:()=>id,isServerElement:()=>od,isServerVariableElement:()=>cd});const l=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=u((function(e,t,s){return l(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 _=y;function g(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 E="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function x(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[E])return s(r,n,i[E]());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=x(g,j,w);function O(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 P(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 M=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 M(e,t)}};function k(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,u){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function I(e,t,s){return function(){for(var r=[],n=0,i=e,c=0,a=!1;c<t.length||n<arguments.length;){var u;c<t.length&&(!o(t[c])||n>=arguments.length)?u=t[c]:(u=arguments[n],n+=1),r[c]=u,o(u)?a=!0:i-=1,c+=1}return!a&&i<=0?s.apply(this,r):k(Math.max(0,i),I(e,r,s))}}const R=a((function(e,t){return 1===e?c(t):k(e,I(e,[],t))}));function C(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var T=Object.prototype.toString;const N=function(){return"[object Arguments]"===T.call(arguments)?function(e){return"[object Arguments]"===T.call(e)}:function(e){return C("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(){return arguments.propertyIsEnumerable("length")}(),L=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||B?c((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=B&&N(e);for(t in e)!C(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=D.length-1;s>=0;)C(t=D[s],e)&&!L(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(O(["fantasy-land/map","map"],F,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return g((function(s,r){return s[r]=e(t[r]),s}),{},U(t));default:return P(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 H=a((function(e,t){var s=R(e,t);return R(e,(function(){return g(G,z(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const J=c((function(e){return H(e.length,e)}));const W=J(c((function(e){return!e})));function K(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Z(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const X="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Y=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=K(e);function i(e,t){return ee(e,t,s.slice(),r.slice())}return!Z((function(e,t){return!Z(i,t,e)}),K(t),n)}function ee(e,t,s,r){if(X(e,t))return!0;var n,i,o=Y(e);if(o!==Y(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||!X(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!X(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 u=s.concat([e]),l=r.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!C(p,t)||!ee(t[p],e[p],u,l))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 ue=a((function(e,t){return k(e.length,(function(){return e.apply(t,arguments)}))}));function le(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](ue(e["@@transducer/step"],e),t))}const me=x(ae,pe,le);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}();const de=u((function(e,t,s){return me("function"==typeof e?new he(e):e,t,s)}));function fe(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 ye=u(fe("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const _e=c(fe("tail",ye(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return k(arguments[0].length,de(ce,arguments[0],_e(arguments)))}var ve=function(e,t){switch(arguments.length){case 0:return ve;case 1:return function t(s){return 0===arguments.length?t:X(e,s)};default:return X(e,t)}};const be=ve;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 xe(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 we=function(e){return(e<10?"0":"")+e};const je="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+we(e.getUTCMonth()+1)+"-"+we(e.getUTCDate())+"T"+we(e.getUTCHours())+":"+we(e.getUTCMinutes())+":"+we(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(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 Pe(e){return function(t){return new Oe(e,t)}}const Ae=a(O(["fantasy-land/filter","filter"],Pe,(function(e,t){return Se(t)?g((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 $e=a((function(e,t){return Ae((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Me(e,t){var s=function(s){var r=t.concat([e]);return Ee(s,r)?"<Circular>":Me(s,r)},r=function(e,t){return P((function(t){return xe(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+P(s,e).join(", ")+"))";case"[object Array]":return"["+P(s,e).concat(r(e,$e((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):xe(je(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())+")":xe(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 Fe=c((function(e){return Me(e,[])}));const ke=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 ke([e],t)[0]}));const Re=u((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 Te=a((function(e,t){return e&&t}));const Ne=a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:J(Te)(e,t)}));const qe=te(null);const De=W(qe);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 Le=function(e){return"object"===Be(e)};const Ve=R(1,Ne(De,Le));const Ue=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=Fe(e),o=s(i,Fe(t));return void 0!==o&&o===i?e:t}));const ze=a((function(e,t){return z(d(e),t)}));const Ge=c((function(e){return R(de(Ue,0,ze("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=R(1,ge(Y,be("GeneratorFunction")));const Je=R(1,ge(Y,be("AsyncFunction")));const We=Ge([ge(Y,be("Function")),He,Je]);var Ke=ge(Y,be("Object")),Ze=ge(Fe,te(Fe(Object))),Xe=Re(Ne(We,Ze),["constructor"]);const Ye=R(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Xe(t)}));class Qe 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 et=Qe;class tt extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const st=tt;class rt 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 nt=rt;class it 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 ot=it;class ct extends oe.g${constructor(){super(),this.register("annotation",et),this.register("comment",st),this.register("parseResult",nt),this.register("sourceMap",ot)}}const at=new ct,ut=e=>{const t=new ct;return Ye(e)&&t.use(e),t},lt=at;const pt=R(1,ge(Y,be("String"))),mt=s.p+"23aac571c96605dc25219087ad291441.wasm",ht=globalThis.fetch;We(ht)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,_e(e)]):ht.apply(globalThis,e));var dt=s(3833),ft=s(1212);const yt=class extends ft{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(yt,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 gt=_t,vt=s.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let bt=null,Et=null;const xt=async e=>{if(null===bt&&null===Et)Et=dt.init().then((()=>dt.Language.load(vt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),bt=await Et;else if(null===bt&&null!==Et)bt=await Et;else if(null===bt)throw new gt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return bt.parse(e)};const wt=class extends gt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},jt=(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},St={},Ot=e=>null==e?void 0:e.type,Pt=e=>"string"==typeof Ot(e),At=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),$t=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=jt,nodeTypeGetter:a=Ot,nodePredicate:u=Pt,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],_=-1,g=[],v=e;const b=[],E=[];do{_+=1;const e=_===y.length;let s;const w=e&&0!==g.length;if(e){if(s=0===E.length?void 0:b.pop(),v=d,d=E.pop(),w)if(f){v=v.slice();let e=0;for(const[t,s]of g){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=l(v);for(const[e,t]of g)v[e]=t}_=h.index,y=h.keys,g=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?_:y[_],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!u(v))throw new wt(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&E.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,E)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(g.push([s,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var x;if(void 0===j&&w&&g.push([s,v]),!e)h={inArray:f,index:_,keys:y,edits:g,prev:h},f=Array.isArray(v),y=f?v:null!==(x=m[a(v)])&&void 0!==x?x:[],_=-1,g=[],d!==i&&void 0!==d&&E.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};function Mt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}$t[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=jt,nodeTypeGetter:a=Ot,nodePredicate:u=Pt,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],_=-1,g=[],v=e;const b=[],E=[];do{_+=1;const e=_===y.length;let s;const w=e&&0!==g.length;if(e){if(s=0===E.length?void 0:b.pop(),v=d,d=E.pop(),w)if(f){v=v.slice();let e=0;for(const[t,s]of g){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=l(v);for(const[e,t]of g)v[e]=t}_=h.index,y=h.keys,g=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?_:y[_],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!u(v))throw new wt(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&E.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,E)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(g.push([s,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var x;if(void 0===j&&w&&g.push([s,v]),!e)h={inArray:f,index:_,keys:y,edits:g,prev:h},f=Array.isArray(v),y=f?v:null!==(x=m[a(v)])&&void 0!==x?x:[],_=-1,g=[],d!==i&&void 0!==d&&E.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};var Ft=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=Mt(this.xf["@@transducer/step"](e,!1))),e},e}();function kt(e){return function(t){return new Ft(e,t)}}const It=a(O(["all"],kt,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const Rt=c((function(e){return R(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}))(a(Ee)),Ct=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Tt=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Nt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),qt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Dt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Bt=e=>e({hasMethod:Ct,hasBasicElementProps:Tt,primitiveEq:Nt,isElementType:Dt,hasClass:qt}),Lt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Hg||e(s)&&t(void 0,s))),Vt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Om||e(s)&&t("string",s))),Ut=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.kT||e(s)&&t("number",s))),zt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Os||e(s)&&t("null",s))),Gt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.bd||e(s)&&t("boolean",s))),Ht=Bt((({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))),Jt=Bt((({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))),Wt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&s(void 0,r))),Kt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&s(void 0,r))),Zt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&s(void 0,r))),Xt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof et||e(r)&&t("annotation",r)&&s("array",r))),Yt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("comment",r)&&s("string",r))),Qt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("parseResult",r)&&s("array",r))),es=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("sourceMap",r)&&s("array",r))),ts=e=>Dt("object",e)||Dt("array",e)||Dt("boolean",e)||Dt("number",e)||Dt("string",e)||Dt("null",e)||Dt("member",e),ss=e=>es(e.meta.get("sourceMap")),rs=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Jt(s)&&It(Rt(s.toValue()),e)},ns=(e,t)=>0===e.length||It(Rt(t.classes.toValue()),e);const is=class extends wt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const os=class extends is{};const cs=class extends is{},as=(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=Lt(t)?as(t,r):t,o=Lt(n)?as(n,r):n,c=new oe.KeyValuePair(i,o);return s.set(e,c),c}if(e instanceof oe.ot){const t=e=>as(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=>as(e,r),n=[...e].map(t),i=new oe.G6(n);return s.set(e,i),i}if(Lt(e)){const t=ps(e);if(s.set(e,t),e.content)if(Lt(e.content))t.content=as(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=as(e.content,r);else if(Array.isArray(e.content)){const s=e=>as(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new os("Value provided to cloneDeep function couldn't be cloned",{value:e})};as.safe=e=>{try{return as(e)}catch{return e}};const us=e=>{const{key:t,value:s}=e;return new oe.KeyValuePair(t,s)},ls=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=as(e.meta)),e.attributes.length>0&&(t._attributes=as(e.attributes)),Lt(e.content)){const s=e.content;t.content=ls(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=us(e.content):t.content=e.content;return t},ps=e=>{if(e instanceof oe.KeyValuePair)return us(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(Lt(e))return ls(e);throw new cs("Value provided to cloneShallow function couldn't be cloned",{value:e})};ps.safe=e=>{try{return ps(e)}catch{return e}};const ms=e=>Ht(e)?"ObjectElement":Jt(e)?"ArrayElement":Wt(e)?"MemberElement":Vt(e)?"StringElement":Gt(e)?"BooleanElement":Ut(e)?"NumberElement":zt(e)?"NullElement":Kt(e)?"LinkElement":Zt(e)?"RefElement":void 0,hs=e=>Lt(e)?ps(e):At(e),ds=ge(ms,pt),fs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const ys=(e,t,{keyMap:s=fs,...r}={})=>$t(e,t,{keyMap:s,nodeTypeGetter:ms,nodePredicate:ds,nodeCloneFn:hs,...r});ys[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=fs,...r}={})=>$t[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:ms,nodePredicate:ds,nodeCloneFn:hs,...r});const _s=u((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})C(r,t)&&(n[r]=C(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)C(r,s)&&!C(r,n)&&(n[r]=s[r]);return n}));const gs=u((function e(t,s,r){return _s((function(s,r,n){return Se(r)&&Se(n)?e(t,r,n):t(s,r,n)}),s,r)}));const vs=a((function(e,t){return gs((function(e,t,s){return s}),e,t)}));const bs=ye(0,-1);const Es=a((function(e,t){return e.apply(this,t)}));const xs=W(We);var ws=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)?"":Se(e)?{}:N(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 js=ws;const Ss=c((function(e){return null!=e&&te(e,js(e))}));const Os=R(1,We(Array.isArray)?Array.isArray:ge(Y,be("Array")));const Ps=Ne(Os,Ss);const As=R(3,(function(e,t,s){var r=Ie(e,s),n=Ie(bs(e),s);if(!xs(r)&&!Ps(e)){var i=ue(r,n);return Es(i,t)}})),$s=()=>({predicates:{...e},namespace:lt}),Ms={toolboxCreator:$s,visitorOptions:{nodeTypeGetter:ms,exposeEdits:!0}},Fs=(e,t,s={})=>{if(0===t.length)return e;const r=vs(Ms,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),c=t.map((e=>e(o))),a=((e,{visitFnGetter:t=jt,nodeTypeGetter:s=Ot,breakSymbol:r=St,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,...l){let p=u,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,...l);if(t===i)a[h]=u;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 u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],s(n),!0);if("function"==typeof c){const t=c.call(e[u],n,...o);if(t===r)a[u]=r;else if(void 0!==t&&t!==i)return t}}else a[u]===n&&(a[u]=c)}}})(c.map(f({},"visitor")),{...i});c.forEach(As(["pre"],[]));const u=ys(e,a,i);return c.forEach(As(["post"],[])),u},ks=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Lt(e)&&(e.meta.length>0&&(r.meta=as(e.meta)),e.attributes.length>0&&(r.attributes=as(e.attributes))),Fs(r,s,{toolboxCreator:$s,visitorOptions:{nodeTypeGetter:ms}})},Is=e=>(t,s={})=>ks(t,{...s,Type:e});oe.Sh.refract=Is(oe.Sh),oe.wE.refract=Is(oe.wE),oe.Om.refract=Is(oe.Om),oe.bd.refract=Is(oe.bd),oe.Os.refract=Is(oe.Os),oe.kT.refract=Is(oe.kT),oe.Ft.refract=Is(oe.Ft),oe.sI.refract=Is(oe.sI),et.refract=Is(et),st.refract=Is(st),nt.refract=Is(nt),ot.refract=Is(ot);const Rs=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];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("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}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}pushChildren(...e){this.children.push(...e)}};class Cs{static toPosition(e){const t=new oe.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new oe.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(ts);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Rs&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new et(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new nt;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new oe.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new oe.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,r){const n=!e.hasError,i=e.text,o=new et(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===r.length){const e=new nt;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ot,r=Cs.toPosition(e);if(null!==r){const[e,t]=r;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Ts=Cs;class Ns{cursor;constructor(e){this.cursor=e}document(){return new Rs(this.cursor)}object(){return new Rs(this.cursor).setFieldName(this.cursor)}array(){return new Rs(this.cursor).setFieldName(this.cursor)}pair(){return new Rs(this.cursor)}string(){return new Rs(this.cursor).setFieldName(this.cursor)}number(){return new Rs(this.cursor).setFieldName(this.cursor)}null(){return new Rs(this.cursor).setFieldName(this.cursor)}true(){return new Rs(this.cursor).setFieldName(this.cursor)}false(){return new Rs(this.cursor).setFieldName(this.cursor)}ERROR(){return new Rs(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Rs(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Ns(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Ns(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const qs=Ns,Ds={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...fs},Bs=e=>Qt(e)?"ParseResultElement":Lt(e)?ms(e):Ot(e),Ls=e=>Lt(e)||Pt(e),Vs=(e,{sourceMap:t=!1}={})=>{const s=new Ts,r=e.walk(),n=new qs(r),[i]=Array.from(n);return $t(i,s,{keyMap:Ds,nodeTypeGetter:Bs,nodePredicate:Ls,state:{sourceMap:t}})};class Us{static type="point";type=Us.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class zs{static type="position";type=zs.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Gs=zs;const Hs=h(0);const Js=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}};const Ws=class extends Js{};const Ks=class extends Ws{static type="document";get child(){return Hs(this.children)}};const Zs=class extends Js{static type="parseResult";get rootNode(){return Hs(this.children)}};const Xs=class extends Js{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},Ys=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Qs=e=>Ys("string",e),er=e=>Ys("false",e),tr=e=>Ys("true",e),sr=e=>Ys("null",e),rr=e=>Ys("number",e),nr=e=>Ys("array",e),ir=e=>Ys("object",e),or=e=>Ys("property",e),cr=e=>Ys("key",e);const ar=class extends Ws{static type="object";get properties(){return this.children.filter(or)}};const ur=class extends Ws{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Ys("stringContent",e))(e)||(e=>Ys("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const lr=class extends ur{static type="key"};const pr=class extends Ws{static type="property";get key(){return this.children.find(cr)}get value(){return this.children.find((e=>er(e)||tr(e)||sr(e)||rr(e)||Qs(e)||nr(e)||ir(e)))}};const mr=class extends Ws{static type="array";get items(){return this.children.filter((e=>er(e)||tr(e)||sr(e)||rr(e)||Qs(e)||nr(e)||ir))}};const hr=class extends Ws{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const dr=class extends hr{static type="stringContent"};const fr=class extends hr{static type="number"};const yr=class extends hr{static type="null"};const _r=class extends hr{static type="true"};const gr=class extends hr{static type="false"};const vr=class extends Js{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},br={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class Er{static toPosition(e){const t=new Us({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new Us({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Gs({start:t,end:s})}document={enter:e=>{const t=Er.toPosition(e);return new Ks({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Zs({children:[e]})};enter(e){if(e instanceof Rs&&!e.isNamed){const t=Er.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Xs({value:s,position:t,isMissing:r})}}object(e){const t=Er.toPosition(e);return new ar({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=Er.toPosition(e),s=e.children.slice(1),{keyNode:r}=e,n=new lr({children:(null==r?void 0:r.children)||[],position:null!=r?Er.toPosition(r):void 0,isMissing:null!=r&&r.isMissing});return new pr({children:[n,...s],position:t,isMissing:e.isMissing})}array(e){const t=Er.toPosition(e);return new mr({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=Er.toPosition(e),s=new dr({value:JSON.parse(e.text)});return new ur({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=Er.toPosition(e),s=e.text;return new fr({value:s,position:t,isMissing:e.isMissing})}null(e){const t=Er.toPosition(e),s=e.text;return new yr({value:s,position:t,isMissing:e.isMissing})}true(e){const t=Er.toPosition(e),s=e.text;return new _r({value:s,position:t,isMissing:e.isMissing})}false(e){const t=Er.toPosition(e),s=e.text;return new gr({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,r){const n=Er.toPosition(e),i=new vr({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new Zs({children:[i]}):i}}const xr=Er,wr={[Zs.type]:["children"],[Ks.type]:["children"],[ar.type]:["children"],[pr.type]:["children"],[mr.type]:["children"],[vr.type]:["children"],...fs},jr=e=>Qt(e)?"ParseResultElement":Lt(e)?ms(e):Ot(e),Sr=e=>Lt(e)||Pt(e);const Or=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(ts);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new nt;return t._content=e.children,t}object(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new oe.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new oe.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new oe.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new et(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 ${e.value})`:`(Error ${e.value})`,i=new et(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new nt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ot;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}},Pr=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new qs(s),[n]=Array.from(r),i=new xr,o=new Or,c=$t(n,i,{keyMap:br,state:{sourceMap:t}});return $t(c.rootNode,o,{keyMap:wr,nodeTypeGetter:jr,nodePredicate:Sr,state:{sourceMap:t}})},Ar=(ut(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class $r extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Mr=$r;class Fr 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 kr=Fr;class Ir 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 Rr=Ir;class Cr 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 Tr=Cr;class Nr 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 qr=Nr;class Dr 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 Br=Dr;class Lr 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 Vr=Lr;class Ur 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(Ur.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const zr=Ur;class Gr 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 Hr=Gr;class Jr 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 Wr=Jr;class Kr 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 Vt(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Vt(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 Zr=Kr;class Xr 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 Yr=Xr;class Qr 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 en=Qr;class tn 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 sn=tn;class rn extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const nn=rn;class on 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 cn=on;class an 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 un=an;class ln 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(ln.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const pn=ln;class mn 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 hn=mn;class dn extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const fn=dn;class yn 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 _n=yn;class gn 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 vn=gn;class bn 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 En=bn;class xn 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 wn=xn;const jn=class extends gt{};class Sn 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 On=Sn;class Pn 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 An=Pn;class $n 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 Mn=$n;class Fn 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 kn=Fn;const In=a((function(e,t){return g((function(s,r){return s[r]=e(t[r],r,t),s}),{},U(t))}));const Rn=c((function(e){return null==e}));const Cn=a((function(e,t){if(0===e.length||Rn(t))return!1;for(var s=t,r=0;r<e.length;){if(Rn(s)||!C(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));var Tn=a((function(e,t){return Cn([e],t)}));const Nn=Tn;const qn=u((function(e,t,s){return e(d(t,s))}));const Dn=c((function(e){return R(e.length,e)}));const Bn=a((function(e,t){return R(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(Fe(s)+' does not have a method named "'+t+'"')}))}));const Ln=Bn(1,"split");var Vn=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 Un(e){return function(t){return new Vn(e,t)}}const zn=a(O(["dropWhile"],Un,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ye(s,1/0,t)})));const Gn=Bn(1,"join");const Hn=Dn((function(e,t){return ge(Ln(""),zn(Rt(e)),Gn(""))(t)})),Jn=(e,t)=>{const s=l(e,t);return In((e=>{if(Ye(e)&&Nn("$ref",e)&&qn(pt,"$ref",e)){const t=Ie(["$ref"],e),r=Hn("#/",t);return Ie(r.split("/"),s)}return Ye(e)?Jn(e,s):e}),e)};var Wn=s(8357);const Kn=function(){return!0},Zn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:ms(e),Xn={EphemeralObject:["content"],EphemeralArray:["content"],...fs},Yn=(e,t,{keyMap:s=Xn,...r}={})=>ys(e,t,{keyMap:s,nodeTypeGetter:Zn,nodePredicate:Kn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Yn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Xn,...s}={})=>ys[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Zn,nodePredicate:Kn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const Qn=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 ei=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 ti{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ei(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 Qn(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 Vt(e.href)?e.href.toValue():""}}const si=e=>Lt(e)?Vt(e)||Ut(e)||Gt(e)||zt(e)?e.toValue():Yn(e,new ti):e,ri=e=>{const t=e.meta.length>0?as(e.meta):void 0,s=e.attributes.length>0?as(e.attributes):void 0;return new e.constructor(void 0,t,s)},ni=(e,t)=>t.clone&&t.isMergeableElement(e)?ai(ri(e),e,t):e,ii=e=>"function"!=typeof e.customMetaMerge?e=>as(e):e.customMetaMerge,oi=e=>"function"!=typeof e.customAttributesMerge?e=>as(e):e.customAttributesMerge,ci={clone:!0,isMergeableElement:e=>Ht(e)||Jt(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ni(e,s))),objectElementMerge:(e,t,s)=>{const r=Ht(e)?ri(e):ri(t);return Ht(e)&&e.forEach(((e,t,n)=>{const i=ps(n);i.value=ni(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=si(n);let c;if(Ht(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);c=ps(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return ai;const s=t.customMerge(e,t);return"function"==typeof s?s:ai})(n,s)(r,t)}else c=ps(i),c.value=ni(t,s);r.remove(o),r.content.push(c)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ai(e,t,s){var r,n,i;const o={...ci,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:ci.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ci.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ci.objectElementMerge;const c=Jt(t);if(!(c===Jt(e)))return ni(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=ii(o)(e.meta,t.meta),a.attributes=oi(o)(e.attributes,t.attributes),a}ai.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)=>ai(e,s,t)),ri(e[0]))};const ui=Wn({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),ss(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}}}),li=Wn(ui,{methods:{enter(e){return this.element=as(e),St}}});const pi=se(re());const mi=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})),hi=Wn(ui,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return mi(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 Re(We,["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?as(t):(ys(t,r,s),r.element)}}}),di=Wn(hi,{props:{specPath:pi,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(Vt(r)&&s.includes(si(r))&&!this.ignoredFields.includes(si(r))){const s=this.toRefractedElement([...t,"fixedFields",si(r)],e),i=new oe.Pr(as(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(si(r))||this.element.content.push(as(n))})),this.copyMetaAndAttributes(e,this.element),St}}}),fi=Wn(di,li,{props:{specPath:se(["document","objects","JSONSchema"])},init(){this.element=new On}}),yi=li,_i=li,gi=li,vi=li,bi=li,Ei=li,xi=li,wi=li,ji=li,Si=li,Oi=Wn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Pi=e=>Ht(e)&&e.hasKey("$ref"),Ai=Wn(hi,Oi,li,{methods:{ObjectElement(e){const t=Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St},ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),$i=li,Mi=li,Fi=li,ki=li,Ii=li,Ri=Wn(li,{methods:{ArrayElement(e){return this.element=as(e),this.element.classes.push("json-schema-required"),St}}});const Ci=c((function(e){return R(de(Ue,0,ze("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 Ti=a((function(e,t){return e||t}));const Ni=W(R(1,Ne(De,a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:J(Ti)(e,t)}))(Le,We))));const qi=W(Ss);const Di=Ci([pt,Ni,qi]);const Bi=function(){return!1},Li=Wn(hi,{props:{fieldPatternPredicate:Bi,specPath:pi,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(si(t))&&this.fieldPatternPredicate(si(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(as(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(si(t))||this.element.content.push(as(s))})),this.copyMetaAndAttributes(e,this.element),St}}}),Vi=Wn(Li,{props:{fieldPatternPredicate:Di}}),Ui=Wn(Vi,Oi,li,{props:{specPath:e=>Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-properties")}}),zi=Wn(Vi,Oi,li,{props:{specPath:e=>Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties")}}),Gi=Wn(Vi,Oi,li,{props:{specPath:e=>Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies")}}),Hi=Wn(li,{methods:{ArrayElement(e){return this.element=as(e),this.element.classes.push("json-schema-enum"),St}}}),Ji=Wn(li,{methods:{StringElement(e){return this.element=as(e),this.element.classes.push("json-schema-type"),St},ArrayElement(e){return this.element=as(e),this.element.classes.push("json-schema-type"),St}}}),Wi=Wn(hi,Oi,li,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Ki=Wn(hi,Oi,li,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Zi=Wn(hi,Oi,li,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Xi=Wn(Vi,Oi,li,{props:{specPath:e=>Pi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-definitions")}}),Yi=li,Qi=li,eo=li,to=li,so=li,ro=Wn(hi,Oi,li,{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),St}}}),no=li,io=Wn(di,li,{props:{specPath:se(["document","objects","JSONReference"])},init(){this.element=new An},methods:{ObjectElement(e){const t=di.compose.methods.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),oo=Wn(li,{methods:{StringElement(e){return this.element=as(e),this.element.classes.push("reference-value"),St}}});const co=u((function(e,t,s){return R(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const ao=c((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var uo=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const lo=uo;const po=c(Mt);const mo=W(Rn);const ho=Ne(Os,qi);function fo(e){return function(e){if(Array.isArray(e))return yo(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 yo(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 yo(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 yo(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 _o=ge(lo(ao((function(e,t){return e.length>t.length}))),Hs,d("length")),go=Dn((function(e,t,s){var r=s.apply(void 0,fo(e));return mo(r)?po(r):t}));const vo=co(ho,(function(e){var t=_o(e);return R(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return de(go(s),void 0,e)}))}),re),bo=Wn(hi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>co(e,se(t),re))),s=vo(t)(e);return this.element=this.toRefractedElement(s,e),St}}}),Eo=Wn(bo,{props:{alternator:[{predicate:Pi,specPath:["document","objects","JSONReference"]},{predicate:Kn,specPath:["document","objects","JSONSchema"]}]}}),xo={visitors:{value:li,JSONSchemaOrJSONReferenceVisitor:Eo,document:{objects:{JSONSchema:{$visitor:fi,fixedFields:{id:yi,$schema:_i,multipleOf:gi,maximum:vi,exclusiveMaximum:bi,minimum:Ei,exclusiveMinimum:xi,maxLength:wi,minLength:ji,pattern:Si,additionalItems:Eo,items:Ai,maxItems:$i,minItems:Mi,uniqueItems:Fi,maxProperties:ki,minProperties:Ii,required:Ri,properties:Ui,additionalProperties:Eo,patternProperties:zi,dependencies:Gi,enum:Hi,type:Ji,allOf:Wi,anyOf:Ki,oneOf:Zi,not:Eo,definitions:Xi,title:Yi,description:Qi,default:eo,format:to,base:so,links:ro,media:{$ref:"#/visitors/document/objects/Media"},readOnly:no}},JSONReference:{$visitor:io,fixedFields:{$ref:oo}},Media:{$visitor:Wn(di,li,{props:{specPath:se(["document","objects","Media"])},init(){this.element=new Mn}}),fixedFields:{binaryEncoding:li,type:li}},LinkDescription:{$visitor:Wn(di,li,{props:{specPath:se(["document","objects","LinkDescription"])},init(){this.element=new kn}}),fixedFields:{href:li,rel:li,title:li,targetSchema:Eo,mediaType:li,method:li,encType:li,schema:Eo}}}}}},wo=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},jo={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fs},So=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof On||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Oo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof An||e(r)&&t("JSONReference",r)&&s("object",r))),Po=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mn||e(r)&&t("media",r)&&s("object",r))),Ao=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kn||e(r)&&t("linkDescription",r)&&s("object",r))),$o={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",On),t.register("jSONReference",An),t.register("media",Mn),t.register("linkDescription",kn),t}},Mo=()=>{const e=ut($o);return{predicates:{...t,isStringElement:Vt},namespace:e}},Fo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=xo}={})=>{const n=(0,oe.e)(e),i=Jn(r),o=As(t,[],i);return ys(n,o,{state:{specObj:i}}),Fs(o.element,s,{toolboxCreator:Mo,visitorOptions:{keyMap:jo,nodeTypeGetter:wo}})},ko=e=>(t,s={})=>Fo(t,{specPath:e,...s});On.refract=ko(["visitors","document","objects","JSONSchema","$visitor"]),An.refract=ko(["visitors","document","objects","JSONReference","$visitor"]),Mn.refract=ko(["visitors","document","objects","Media","$visitor"]),kn.refract=ko(["visitors","document","objects","LinkDescription","$visitor"]);const Io=class extends On{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new jn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new jn("idProp setter in Schema class is not not supported.")}get $schema(){throw new jn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new jn("$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 jn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new jn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new jn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new jn("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 jn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new jn("definitions setter in Schema class is not not supported.")}get base(){throw new jn("base getter in Schema class is not not supported.")}set base(e){throw new jn("base setter in Schema class is not not supported.")}get links(){throw new jn("links getter in Schema class is not not supported.")}set links(e){throw new jn("links setter in Schema class is not not supported.")}get media(){throw new jn("media getter in Schema class is not not supported.")}set media(e){throw new jn("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 Ro extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Co=Ro;class To 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 No=To;class qo 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 Do=qo;class Bo 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 Lo=Bo;class Vo 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 Uo=Vo;class zo 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 Go=zo,Ho=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},Jo=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Jo(s,[...t,s])},Wo=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>Jo(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=Jo(n);for(let t of e){let e=Jo(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Ho(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},Ko=e=>e.filter(((t,s)=>e.indexOf(t)==s)),Zo=(e,t)=>{const s=t.map((e=>Jo(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++}},Xo=(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(Zo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==Zo(r,e)||void 0!==t[r],get:(s,r)=>(Zo(r,e)||t)[r],set(t,s,r){const n=Zo(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)))))}),Yo=null,Qo="copy",ec="copy",tc="deep",sc=new WeakMap,rc=e=>sc.get(e),nc=(e,t)=>{var s,r;const n=Ko([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Ko([...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},ic=(e,t)=>{var s,r,n,i;return{property:nc(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:nc(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},oc=(e,t)=>{var s,r,n,i,o,c;return{class:Ko([...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:ic(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:ic(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},cc=new Map,ac=(...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=[...Jo(e.prototype).map((e=>e.constructor)),...null!==(t=rc(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=>cc.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>oc(e,t)))},uc=e=>{let t=cc.get(e);return t||(t={},cc.set(e,t)),t};function lc(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=Yo;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)Ho(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===ec?Wo(n,o):(c=n,a=o,Xo([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Qo?Wo(e,null,["prototype"]):Xo(e,Function.prototype));let u=o;if("none"!==tc){const n="deep"===tc?ac(...e):((...e)=>{const t=e.map((e=>uc(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>oc(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}pc(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},u),pc(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,sc.set(l,p),u}const pc=(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 mc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),ss(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}};const hc=class extends mc{enter(e){return this.element=as(e),St}};const dc=class extends mc{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 mi(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 Re(We,["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 hc&&(null==r?void 0:r.constructor)===hc?as(t):(ys(t,r,s),r.element)}};var fc=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?Mt(s):s},e}();function yc(e){return function(t){return new fc(e,t)}}const _c=a(O(["take"],yc,(function(e,t){return ye(0,e<0?1/0:e,t)})));const gc=a((function(e,t){return te(_c(e.length,t),e)})),vc=e=>Ht(e)&&e.hasKey("$ref"),bc=Ht,Ec=Ht,xc=e=>Vt(e.key)&&gc("x-",si(e.key));const wc=class extends dc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=xc;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(Vt(r)&&s.includes(si(r))&&!this.ignoredFields.includes(si(r))){const s=this.toRefractedElement([...t,"fixedFields",si(r)],e),i=new oe.Pr(as(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(si(r))||this.element.content.push(as(n))})),this.copyMetaAndAttributes(e,this.element),St}};class jc extends(lc(wc,hc)){constructor(e){super(e),this.element=new cn,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return wc.prototype.ObjectElement.call(this,e)}}const Sc=jc;class Oc extends(lc(dc,hc)){StringElement(e){const t=new nn(si(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const Pc=Oc;const Ac=class extends dc{MemberElement(e){return this.element=as(e),this.element.classes.push("specification-extension"),St}};class $c extends(lc(wc,hc)){constructor(e){super(e),this.element=new Hr,this.specPath=se(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Mc=$c;const Fc=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class kc extends(lc(wc,hc)){constructor(e){super(e),this.element=new Rr,this.specPath=se(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ic=kc;class Rc extends(lc(wc,hc)){constructor(e){super(e),this.element=new Wr,this.specPath=se(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Cc=Rc;class Tc extends(lc(wc,hc)){constructor(e){super(e),this.element=new Zr,this.specPath=se(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return(Vt(this.element.operationId)||Vt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Nc=Tc;const qc=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Dc=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Bc=class extends dc{specPath;ignoredFields;fieldPatternPredicate=Bi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=xc;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(si(t))&&this.fieldPatternPredicate(si(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(as(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(si(t))||this.element.content.push(as(s))})),this.copyMetaAndAttributes(e,this.element),St}};const Lc=class extends Bc{constructor(e){super(e),this.fieldPatternPredicate=Di}};class Vc extends oe.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Vc.primaryClass)}}const Uc=Vc;class zc extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Uc,this.specPath=se(["value"])}}const Gc=zc;class Hc extends(lc(wc,hc)){constructor(e){super(e),this.element=new Do,this.specPath=se(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Jc=Hc;const Wc=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Kc extends oe.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Kc.primaryClass)}}const Zc=Kc;class Xc extends(lc(dc,hc)){constructor(e){super(e),this.element=new Zc}ArrayElement(e){return e.forEach((e=>{const t=bc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Yc=Xc;class Qc extends(lc(wc,hc)){constructor(e){super(e),this.element=new Lo,this.specPath=se(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const ea=Qc;class ta extends oe.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(ta.primaryClass)}}const sa=ta;class ra extends(lc(Lc,hc)){constructor(e){super(e),this.element=new sa,this.specPath=se(["document","objects","ServerVariable"])}}const na=ra;class ia extends(lc(wc,hc)){constructor(e){super(e),this.element=new Yr,this.specPath=se(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const oa=ia;const ca=class extends dc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>co(e,se(t),re))),s=vo(t)(e);return this.element=this.toRefractedElement(s,e),St}},aa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mr||e(r)&&t("callback",r)&&s("object",r))),ua=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kr||e(r)&&t("components",r)&&s("object",r))),la=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rr||e(r)&&t("contact",r)&&s("object",r))),pa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Br||e(r)&&t("example",r)&&s("object",r))),ma=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vr||e(r)&&t("externalDocumentation",r)&&s("object",r))),ha=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zr||e(r)&&t("header",r)&&s("object",r))),da=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hr||e(r)&&t("info",r)&&s("object",r))),fa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wr||e(r)&&t("license",r)&&s("object",r))),ya=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zr||e(r)&&t("link",r)&&s("object",r))),_a=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nn||e(r)&&t("openapi",r)&&s("string",r))),ga=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof cn||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),va=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof un||e(r)&&t("operation",r)&&s("object",r))),ba=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pn||e(r)&&t("parameter",r)&&s("object",r))),Ea=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hn||e(r)&&t("pathItem",r)&&s("object",r))),xa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fn||e(r)&&t("paths",r)&&s("object",r))),wa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof _n||e(r)&&t("reference",r)&&s("object",r))),ja=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vn||e(r)&&t("requestBody",r)&&s("object",r))),Sa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof En||e(r)&&t("response",r)&&s("object",r))),Oa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wn||e(r)&&t("responses",r)&&s("object",r))),Pa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Io||e(r)&&t("schema",r)&&s("object",r))),Aa=e=>Gt(e)&&e.classes.includes("boolean-json-schema"),$a=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Co||e(r)&&t("securityRequirement",r)&&s("object",r))),Ma=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof No||e(r)&&t("securityScheme",r)&&s("object",r))),Fa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Do||e(r)&&t("server",r)&&s("object",r))),ka=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lo||e(r)&&t("serverVariable",r)&&s("object",r))),Ia=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yr||e(r)&&t("mediaType",r)&&s("object",r))),Ra=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Zc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Ca extends(lc(ca,hc)){constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ca.prototype.enter.call(this,e);return wa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Ta=Ca;class Na extends(lc(Lc,hc)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("examples"),this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const qa=Na;class Da extends oe.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Da.primaryClass),this.classes.push("examples")}}const Ba=Da;const La=class extends qa{constructor(e){super(e),this.element=new Ba}};class Va extends oe.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Va.primaryClass)}}const Ua=Va;class za extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Ua,this.specPath=se(["document","objects","Encoding"])}}const Ga=za;class Ha extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Co,this.specPath=se(["value"])}}const Ja=Ha;class Wa extends oe.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Wa.primaryClass)}}const Ka=Wa;class Za extends(lc(dc,hc)){constructor(e){super(e),this.element=new Ka}ArrayElement(e){return e.forEach((e=>{if(Ht(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(as(e))})),this.copyMetaAndAttributes(e,this.element),St}}const Xa=Za;class Ya extends(lc(wc,hc)){constructor(e){super(e),this.element=new kr,this.specPath=se(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Qa=Ya;class eu extends(lc(wc,hc)){constructor(e){super(e),this.element=new Uo,this.specPath=se(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const tu=eu;class su extends(lc(wc,hc)){constructor(e){super(e),this.element=new _n,this.specPath=se(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ru=su;const nu=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class iu extends(lc(wc,hc)){constructor(e){super(e),this.element=new pn,this.specPath=se(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Ht(this.element.contentProp)&&this.element.contentProp.filter(Ia).forEach(((e,t)=>{e.setMetaProperty("media-type",si(t))})),t}}const ou=iu;class cu extends(lc(ca,hc)){constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ca.prototype.enter.call(this,e);return wa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const au=cu;class uu extends(lc(wc,hc)){constructor(e){super(e),this.element=new zr,this.specPath=se(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const lu=uu;class pu extends(lc(ca,hc)){constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ca.prototype.enter.call(this,e);return wa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const mu=pu;class hu extends oe.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(hu.primaryClass),this.classes.push("examples")}}const du=hu;const fu=class extends qa{constructor(e){super(e),this.element=new du}};class yu extends(lc(Lc,hc)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("content"),this.specPath=se(["document","objects","MediaType"])}}const _u=yu;class gu extends oe.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(gu.primaryClass),this.classes.push("content")}}const vu=gu;const bu=class extends _u{constructor(e){super(e),this.element=new vu}};class Eu extends(lc(wc,hc)){constructor(e){super(e),this.element=new Io,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const xu=Eu,{allOf:wu}=xo.visitors.document.objects.JSONSchema.fixedFields,ju=wu.compose({methods:{ArrayElement(e){const t=wu.compose.methods.ArrayElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Su}=xo.visitors.document.objects.JSONSchema.fixedFields,Ou=Su.compose({methods:{ArrayElement(e){const t=Su.compose.methods.ArrayElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Pu}=xo.visitors.document.objects.JSONSchema.fixedFields,Au=Pu.compose({methods:{ArrayElement(e){const t=Pu.compose.methods.ArrayElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:$u}=xo.visitors.document.objects.JSONSchema.fixedFields,Mu=$u.compose({methods:{ObjectElement(e){const t=$u.compose.methods.ObjectElement.call(this,e);return wa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=as(e),St}}}),{properties:Fu}=xo.visitors.document.objects.JSONSchema.fixedFields,ku=Fu.compose({methods:{ObjectElement(e){const t=Fu.compose.methods.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Iu}=xo.visitors.document.objects.JSONSchema.fixedFields,Ru=Iu.compose({methods:{ArrayElement(e){return this.element=as(e),St}}}),{JSONSchemaOrJSONReferenceVisitor:Cu}=xo.visitors,Tu=Cu.compose({methods:{ObjectElement(e){const t=Cu.compose.methods.enter.call(this,e);return wa(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Nu extends(lc(wc,hc)){constructor(e){super(e),this.element=new Tr,this.specPath=se(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const qu=Nu;class Du extends oe.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Du.primaryClass)}}const Bu=Du;class Lu extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Bu,this.specPath=se(["value"])}}const Vu=Lu;class Uu extends(lc(wc,hc)){constructor(e){super(e),this.element=new Go,this.specPath=se(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const zu=Uu;class Gu extends oe.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Gu.primaryClass),this.classes.push("examples")}}const Hu=Gu;const Ju=class extends qa{constructor(e){super(e),this.element=new Hu}};class Wu extends oe.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Wu.primaryClass),this.classes.push("content")}}const Ku=Wu;const Zu=class extends _u{constructor(e){super(e),this.element=new Ku}};class Xu extends oe.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Xu.primaryClass)}}const Yu=Xu;class Qu extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Yu,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const el=Qu;class tl extends oe.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(tl.primaryClass)}}const sl=tl;class rl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new sl,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sa).forEach(((e,t)=>{e.setMetaProperty("http-status-code",si(t))})),t}}const nl=rl;class il extends oe.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(il.primaryClass),this.classes.push("parameters")}}const ol=il;class cl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new ol,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const al=cl;class ul extends oe.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ul.primaryClass),this.classes.push("examples")}}const ll=ul;class pl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new ll,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const ml=pl;class hl extends oe.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(hl.primaryClass)}}const dl=hl;class fl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new dl,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const yl=fl;class _l extends oe.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(_l.primaryClass)}}const gl=_l;class vl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new gl,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ha).forEach(((e,t)=>{e.setMetaProperty("header-name",si(t))})),t}}const bl=vl;class El extends oe.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(El.primaryClass)}}const xl=El;class wl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new xl,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const jl=wl;class Sl extends oe.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Sl.primaryClass)}}const Ol=Sl;class Pl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Ol,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Al=Pl;class $l extends oe.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push($l.primaryClass)}}const Ml=$l;class Fl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Ml,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const kl=Fl;class Il extends(lc(wc,hc)){constructor(e){super(e),this.element=new Br,this.specPath=se(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Vt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Rl=Il;const Cl=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Tl extends(lc(wc,hc)){constructor(e){super(e),this.element=new Vr,this.specPath=se(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Nl=Tl;class ql extends(lc(wc,hc)){constructor(e){super(e),this.element=new qr,this.specPath=se(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Ht(this.element.headers)&&this.element.headers.filter(ha).forEach(((e,t)=>{e.setMetaProperty("header-name",si(t))})),t}}const Dl=ql;class Bl extends oe.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Bl.primaryClass)}}const Ll=Bl;class Vl extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Ll,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ha(e))return;const s=si(t);e.setMetaProperty("headerName",s)})),t}}const Ul=Vl;class zl extends(lc(Bc,hc)){constructor(e){super(e),this.element=new fn,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Kn}ObjectElement(e){const t=Bc.prototype.ObjectElement.call(this,e);return this.element.filter(Ea).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",as(t))})),t}}const Gl=zl;class Hl extends(lc(wc,hc)){constructor(e){super(e),this.element=new vn,this.specPath=se(["document","objects","RequestBody"])}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Ht(this.element.contentProp)&&this.element.contentProp.filter(Ia).forEach(((e,t)=>{e.setMetaProperty("media-type",si(t))})),t}}const Jl=Hl;class Wl extends oe.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Wl.primaryClass),this.classes.push("content")}}const Kl=Wl;const Zl=class extends _u{constructor(e){super(e),this.element=new Kl}};class Xl extends(lc(Bc,hc)){constructor(e){super(e),this.element=new Mr,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(Ea).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",si(t))})),t}}const Yl=Xl;class Ql extends(lc(wc,hc)){constructor(e){super(e),this.element=new En,this.specPath=se(["document","objects","Response"])}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return Ht(this.element.contentProp)&&this.element.contentProp.filter(Ia).forEach(((e,t)=>{e.setMetaProperty("media-type",si(t))})),Ht(this.element.headers)&&this.element.headers.filter(ha).forEach(((e,t)=>{e.setMetaProperty("header-name",si(t))})),t}}const ep=Ql;class tp extends oe.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(tp.primaryClass)}}const sp=tp;class rp extends(lc(Lc,hc)){constructor(e){super(e),this.element=new sp,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ha(e))return;const s=si(t);e.setMetaProperty("header-name",s)})),t}}const np=rp;class ip extends oe.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(ip.primaryClass),this.classes.push("content")}}const op=ip;const cp=class extends _u{constructor(e){super(e),this.element=new op}};class ap extends oe.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(ap.primaryClass)}}const up=ap;class lp extends(lc(Lc,hc)){constructor(e){super(e),this.element=new up,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const pp=lp;function mp(e){return"[object Number]"===Object.prototype.toString.call(e)}const hp=a((function(e,t){if(!mp(e)||!mp(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 dp(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 fp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!dp(e,!0,this)},e.prototype.has=function(e){return dp(e,!1,this)},e}();const yp=a((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new fp,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 _p extends(lc(wc,Bc)){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,...yp(e.keys(),t)],wc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Bc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const gp=_p;class vp extends(lc(gp,hc)){constructor(e){super(e),this.element=new wn,this.specPathFixedFields=se(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>vc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${hp(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=gp.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sa).forEach(((e,t)=>{const s=as(t);this.fieldPatternPredicate(si(s))&&e.setMetaProperty("http-status-code",s)})),t}}const bp=vp;class Ep extends(lc(ca,hc)){constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ca.prototype.enter.call(this,e);return wa(this.element)?this.element.setMetaProperty("referenced-element","response"):Sa(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const xp=Ep;class wp extends(lc(wc,hc)){constructor(e){super(e),this.element=new un,this.specPath=se(["document","objects","Operation"])}}const jp=wp;class Sp extends oe.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Sp.primaryClass)}}const Op=Sp;const Pp=class extends hc{constructor(e){super(e),this.element=new Op}ArrayElement(e){return this.element=this.element.concat(as(e)),St}};class Ap extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Ap.primaryClass),this.classes.push("parameters")}}const $p=Ap;class Mp extends(lc(dc,hc)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=vc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);wa(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Fp=Mp;const kp=class extends Fp{constructor(e){super(e),this.element=new $p}};const Ip=class extends ca{constructor(e){super(e),this.alternator=[{predicate:vc,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=ca.prototype.enter.call(this,e);return wa(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Rp extends oe.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Rp.primaryClass)}}const Cp=Rp;class Tp extends(lc(Lc,hc)){specPath;constructor(e){super(e),this.element=new Cp,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(wa).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Np=Tp;class qp extends oe.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(qp.primaryClass),this.classes.push("security")}}const Dp=qp;class Bp extends(lc(dc,hc)){constructor(e){super(e),this.element=new Dp}ArrayElement(e){return e.forEach((e=>{const t=Ht(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Lp=Bp;class Vp extends oe.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Vp.primaryClass),this.classes.push("servers")}}const Up=Vp;const zp=class extends Yc{constructor(e){super(e),this.element=new Up}};class Gp extends(lc(wc,hc)){constructor(e){super(e),this.element=new hn,this.specPath=se(["document","objects","PathItem"])}ObjectElement(e){const t=wc.prototype.ObjectElement.call(this,e);return this.element.filter(va).forEach(((e,t)=>{const s=as(t);s.content=si(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Hp=Gp;const Jp=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Wp extends oe.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Wp.primaryClass),this.classes.push("servers")}}const Kp=Wp;const Zp=class extends Yc{constructor(e){super(e),this.element=new Kp}};class Xp extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Xp.primaryClass),this.classes.push("parameters")}}const Yp=Xp;const Qp=class extends Fp{constructor(e){super(e),this.element=new Yp}};class em extends(lc(wc,hc)){constructor(e){super(e),this.element=new No,this.specPath=se(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const tm=em;class sm extends(lc(wc,hc)){constructor(e){super(e),this.element=new sn,this.specPath=se(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const rm=sm;class nm extends(lc(wc,hc)){constructor(e){super(e),this.element=new en,this.specPath=se(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const im=nm;class om extends oe.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(om.primaryClass)}}const cm=om;class am extends(lc(Lc,hc)){constructor(e){super(e),this.element=new cm,this.specPath=se(["value"])}}const um=am;class lm extends oe.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(lm.primaryClass)}}const pm=lm;class mm extends(lc(dc,hc)){constructor(e){super(e),this.element=new pm}ArrayElement(e){return e.forEach((e=>{const t=Ec(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const hm=mm,{fixedFields:dm}=xo.visitors.document.objects.JSONSchema,fm={visitors:{value:hc,document:{objects:{OpenApi:{$visitor:Sc,fixedFields:{openapi:Pc,info:{$ref:"#/visitors/document/objects/Info"},servers:Yc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Xa,tags:hm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Mc,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:Fc}},Contact:{$visitor:Ic,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Cc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Jc,fixedFields:{url:Wc,description:{$ref:"#/visitors/value"},variables:na}},ServerVariable:{$visitor:ea,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Qa,fixedFields:{schemas:el,responses:nl,parameters:al,examples:ml,requestBodies:yl,headers:bl,securitySchemes:jl,links:Al,callbacks:kl}},Paths:{$visitor:Gl},PathItem:{$visitor:Hp,fixedFields:{$ref:Jp,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:Zp,parameters:Qp}},Operation:{$visitor:jp,fixedFields:{tags:Pp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:kp,requestBody:Ip,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Np,deprecated:{$ref:"#/visitors/value"},security:Lp,servers:zp}},ExternalDocumentation:{$visitor:Nl,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:ou,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:au,example:{$ref:"#/visitors/value"},examples:Ju,content:Zu}},RequestBody:{$visitor:Jl,fixedFields:{description:{$ref:"#/visitors/value"},content:Zl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:oa,fixedFields:{schema:Ta,example:{$ref:"#/visitors/value"},examples:La,encoding:Ga}},Encoding:{$visitor:Dl,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ul,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:bp,fixedFields:{default:xp}},Response:{$visitor:ep,fixedFields:{description:{$ref:"#/visitors/value"},headers:np,content:cp,links:pp}},Callback:{$visitor:Yl},Example:{$visitor:Rl,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Cl}},Link:{$visitor:Nc,fixedFields:{operationRef:qc,operationId:Dc,parameters:Gc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:lu,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:mu,example:{$ref:"#/visitors/value"},examples:fu,content:bu}},Tag:{$visitor:tu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ru,fixedFields:{$ref:nu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:xu,fixedFields:{title:dm.title,multipleOf:dm.multipleOf,maximum:dm.maximum,exclusiveMaximum:dm.exclusiveMaximum,minimum:dm.minimum,exclusiveMinimum:dm.exclusiveMinimum,maxLength:dm.maxLength,minLength:dm.minLength,pattern:dm.pattern,maxItems:dm.maxItems,minItems:dm.minItems,uniqueItems:dm.uniqueItems,maxProperties:dm.maxProperties,minProperties:dm.minProperties,required:dm.required,enum:dm.enum,type:Ru,allOf:ju,anyOf:Ou,oneOf:Au,not:Tu,items:Mu,properties:ku,additionalProperties:Tu,description:dm.description,format:dm.format,default:dm.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:qu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Vu}},XML:{$visitor:zu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:tm,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:rm,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:im,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:um}},SecurityRequirement:{$visitor:Ja}},extension:{$visitor:Ac}}}},ym=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_m={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"],...fs},gm={namespace:e=>{const{base:t}=e;return t.register("callback",Mr),t.register("components",kr),t.register("contact",Rr),t.register("discriminator",Tr),t.register("encoding",qr),t.register("example",Br),t.register("externalDocumentation",Vr),t.register("header",zr),t.register("info",Hr),t.register("license",Wr),t.register("link",Zr),t.register("mediaType",Yr),t.register("oAuthFlow",en),t.register("oAuthFlows",sn),t.register("openapi",nn),t.register("openApi3_0",cn),t.register("operation",un),t.register("parameter",pn),t.register("pathItem",hn),t.register("paths",fn),t.register("reference",_n),t.register("requestBody",vn),t.register("response",En),t.register("responses",wn),t.register("schema",Io),t.register("securityRequirement",Co),t.register("securityScheme",No),t.register("server",Do),t.register("serverVariable",Lo),t.register("tag",Uo),t.register("xml",Go),t}},vm=()=>{const e=ut(gm);return{predicates:{...n,isElement:Lt,isStringElement:Vt,isArrayElement:Jt,isObjectElement:Ht,isMemberElement:Wt,includesClasses:ns,hasElementSourceMap:ss},namespace:e}},bm=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=Jn(fm),i=new(Ie(t,n))({specObj:n});return ys(r,i),Fs(i.element,s,{toolboxCreator:vm,visitorOptions:{keyMap:_m,nodeTypeGetter:ym}})},Em=e=>(t,s={})=>bm(t,{specPath:e,...s});Mr.refract=Em(["visitors","document","objects","Callback","$visitor"]),kr.refract=Em(["visitors","document","objects","Components","$visitor"]),Rr.refract=Em(["visitors","document","objects","Contact","$visitor"]),Br.refract=Em(["visitors","document","objects","Example","$visitor"]),Tr.refract=Em(["visitors","document","objects","Discriminator","$visitor"]),qr.refract=Em(["visitors","document","objects","Encoding","$visitor"]),Vr.refract=Em(["visitors","document","objects","ExternalDocumentation","$visitor"]),zr.refract=Em(["visitors","document","objects","Header","$visitor"]),Hr.refract=Em(["visitors","document","objects","Info","$visitor"]),Wr.refract=Em(["visitors","document","objects","License","$visitor"]),Zr.refract=Em(["visitors","document","objects","Link","$visitor"]),Yr.refract=Em(["visitors","document","objects","MediaType","$visitor"]),en.refract=Em(["visitors","document","objects","OAuthFlow","$visitor"]),sn.refract=Em(["visitors","document","objects","OAuthFlows","$visitor"]),nn.refract=Em(["visitors","document","objects","OpenApi","fixedFields","openapi"]),cn.refract=Em(["visitors","document","objects","OpenApi","$visitor"]),un.refract=Em(["visitors","document","objects","Operation","$visitor"]),pn.refract=Em(["visitors","document","objects","Parameter","$visitor"]),hn.refract=Em(["visitors","document","objects","PathItem","$visitor"]),fn.refract=Em(["visitors","document","objects","Paths","$visitor"]),_n.refract=Em(["visitors","document","objects","Reference","$visitor"]),vn.refract=Em(["visitors","document","objects","RequestBody","$visitor"]),En.refract=Em(["visitors","document","objects","Response","$visitor"]),wn.refract=Em(["visitors","document","objects","Responses","$visitor"]),Io.refract=Em(["visitors","document","objects","Schema","$visitor"]),Co.refract=Em(["visitors","document","objects","SecurityRequirement","$visitor"]),No.refract=Em(["visitors","document","objects","SecurityScheme","$visitor"]),Do.refract=Em(["visitors","document","objects","Server","$visitor"]),Lo.refract=Em(["visitors","document","objects","ServerVariable","$visitor"]),Uo.refract=Em(["visitors","document","objects","Tag","$visitor"]),Go.refract=Em(["visitors","document","objects","XML","$visitor"]);const xm=class extends Mr{};const wm=class extends kr{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const jm=class extends Rr{};const Sm=class extends Tr{};const Om=class extends qr{};const Pm=class extends Br{};const Am=class extends Vr{};const $m=class extends zr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Mm=class extends Hr{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 Fm extends oe.Om{static default=new Fm("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const km=Fm;const Im=class extends Wr{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Rm=class extends Zr{};const Cm=class extends Yr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Tm=class extends en{};const Nm=class extends sn{};const qm=class extends nn{};class Dm 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 Bm=Dm;const Lm=class extends un{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Vm=class extends pn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Um=class extends hn{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 zm=class extends fn{};class Gm extends _n{}Object.defineProperty(Gm.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Gm.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Hm=Gm;const Jm=class extends vn{};const Wm=class extends En{};const Km=class extends wn{};class Zm 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 Xm=Zm;const Ym=class extends Co{};const Qm=class extends No{};const eh=class extends Do{};const th=class extends Lo{};const sh=class extends Uo{};const rh=class extends Go{};class nh extends(lc(wc,hc)){constructor(e){super(e),this.element=new Bm,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,wc.prototype.ObjectElement.call(this,e)}}const ih=nh,{visitors:{document:{objects:{Info:{$visitor:oh}}}}}=fm;const ch=class extends oh{constructor(e){super(e),this.element=new Mm}},{visitors:{document:{objects:{Contact:{$visitor:ah}}}}}=fm;const uh=class extends ah{constructor(e){super(e),this.element=new jm}},{visitors:{document:{objects:{License:{$visitor:lh}}}}}=fm;const ph=class extends lh{constructor(e){super(e),this.element=new Im}},{visitors:{document:{objects:{Link:{$visitor:mh}}}}}=fm;const hh=class extends mh{constructor(e){super(e),this.element=new Rm}};class dh extends(lc(dc,hc)){StringElement(e){const t=new km(si(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const fh=dh,{visitors:{document:{objects:{Server:{$visitor:yh}}}}}=fm;const _h=class extends yh{constructor(e){super(e),this.element=new eh}},{visitors:{document:{objects:{ServerVariable:{$visitor:gh}}}}}=fm;const vh=class extends gh{constructor(e){super(e),this.element=new th}},{visitors:{document:{objects:{MediaType:{$visitor:bh}}}}}=fm;const Eh=class extends bh{constructor(e){super(e),this.element=new Cm}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:xh}}}}}=fm;const wh=class extends xh{constructor(e){super(e),this.element=new Ym}},{visitors:{document:{objects:{Components:{$visitor:jh}}}}}=fm;const Sh=class extends jh{constructor(e){super(e),this.element=new wm}},{visitors:{document:{objects:{Tag:{$visitor:Oh}}}}}=fm;const Ph=class extends Oh{constructor(e){super(e),this.element=new sh}},{visitors:{document:{objects:{Reference:{$visitor:Ah}}}}}=fm;const $h=class extends Ah{constructor(e){super(e),this.element=new Hm}},{visitors:{document:{objects:{Parameter:{$visitor:Mh}}}}}=fm;const Fh=class extends Mh{constructor(e){super(e),this.element=new Vm}},{visitors:{document:{objects:{Header:{$visitor:kh}}}}}=fm;const Ih=class extends kh{constructor(e){super(e),this.element=new $m}},Rh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xm||e(r)&&t("callback",r)&&s("object",r))),Ch=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wm||e(r)&&t("components",r)&&s("object",r))),Th=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jm||e(r)&&t("contact",r)&&s("object",r))),Nh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pm||e(r)&&t("example",r)&&s("object",r))),qh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Am||e(r)&&t("externalDocumentation",r)&&s("object",r))),Dh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $m||e(r)&&t("header",r)&&s("object",r))),Bh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mm||e(r)&&t("info",r)&&s("object",r))),Lh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof km||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),Vh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Im||e(r)&&t("license",r)&&s("object",r))),Uh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rm||e(r)&&t("link",r)&&s("object",r))),zh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qm||e(r)&&t("openapi",r)&&s("string",r))),Gh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Bm||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),Hh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lm||e(r)&&t("operation",r)&&s("object",r))),Jh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vm||e(r)&&t("parameter",r)&&s("object",r))),Wh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Um||e(r)&&t("pathItem",r)&&s("object",r))),Kh=e=>{if(!Wh(e))return!1;if(!Vt(e.$ref))return!1;const t=si(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Zh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zm||e(r)&&t("paths",r)&&s("object",r))),Xh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hm||e(r)&&t("reference",r)&&s("object",r))),Yh=e=>{if(!Xh(e))return!1;if(!Vt(e.$ref))return!1;const t=si(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Qh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jm||e(r)&&t("requestBody",r)&&s("object",r))),ed=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wm||e(r)&&t("response",r)&&s("object",r))),td=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Km||e(r)&&t("responses",r)&&s("object",r))),sd=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xm||e(r)&&t("schema",r)&&s("object",r))),rd=e=>Gt(e)&&e.classes.includes("boolean-json-schema"),nd=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ym||e(r)&&t("securityRequirement",r)&&s("object",r))),id=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qm||e(r)&&t("securityScheme",r)&&s("object",r))),od=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof eh||e(r)&&t("server",r)&&s("object",r))),cd=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof th||e(r)&&t("serverVariable",r)&&s("object",r))),ad=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cm||e(r)&&t("mediaType",r)&&s("object",r)));const ud=class{parent;constructor({parent:e}){this.parent=e}};class ld extends(lc(wc,ud,hc)){constructor(e){super(e),this.element=new Xm,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=km.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=wc.prototype.ObjectElement.call(this,e);return Vt(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&&Lh(this.openApiSemanticElement.jsonSchemaDialect)?si(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Vt(this.openApiGenericElement.get("jsonSchemaDialect"))?si(this.openApiGenericElement.get("jsonSchemaDialect")):si(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ne(this.parent)&&!Vt(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(sd(this.parent)&&!Vt(e.get("$schema"))){const e=l(si(this.parent.meta.get("inherited$schema")),si(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?as(this.parent.getMetaProperty("inherited$id",[])):new oe.wE,s=si(e.get("$id"));Di(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)}}const pd=ld;const md=class extends hc{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const hd=class extends hc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class dd extends(lc(Lc,ud,hc)){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 fd=dd;class yd extends(lc(dc,ud,hc)){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(Ht(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=as(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const _d=yd;class gd extends(lc(dc,ud,hc)){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(Ht(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=as(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const vd=gd;class bd extends(lc(dc,ud,hc)){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(Ht(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=as(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const Ed=bd;class xd extends(lc(Lc,ud,hc)){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 wd=xd;class jd extends(lc(dc,ud,hc)){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(Ht(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=as(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const Sd=jd;class Od extends(lc(Lc,ud,hc)){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 Pd=Od;class Ad extends(lc(Lc,ud,hc)){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 $d=Ad;const Md=class extends hc{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 Fd=class extends hc{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const kd=class extends hc{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Id=class extends hc{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:Rd}}}}}=fm;const Cd=class extends Rd{constructor(e){super(e),this.element=new Sm,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:Td}}}}}=fm;const Nd=class extends Td{constructor(e){super(e),this.element=new rh}};class qd extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Yu,this.specPath=se(["document","objects","Schema"])}}const Dd=qd;class Bd extends oe.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Bd.primaryClass)}}const Ld=Bd;class Vd extends(lc(Lc,hc)){constructor(e){super(e),this.element=new Ld,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(Xh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const Ud=Vd,{visitors:{document:{objects:{Example:{$visitor:zd}}}}}=fm;const Gd=class extends zd{constructor(e){super(e),this.element=new Pm}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Hd}}}}}=fm;const Jd=class extends Hd{constructor(e){super(e),this.element=new Am}},{visitors:{document:{objects:{Encoding:{$visitor:Wd}}}}}=fm;const Kd=class extends Wd{constructor(e){super(e),this.element=new Om}},{visitors:{document:{objects:{Paths:{$visitor:Zd}}}}}=fm;const Xd=class extends Zd{constructor(e){super(e),this.element=new zm}},{visitors:{document:{objects:{RequestBody:{$visitor:Yd}}}}}=fm;const Qd=class extends Yd{constructor(e){super(e),this.element=new Jm}},{visitors:{document:{objects:{Callback:{$visitor:ef}}}}}=fm;const tf=class extends ef{constructor(e){super(e),this.element=new xm,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=ef.prototype.ObjectElement.call(this,e);return this.element.filter(Xh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:sf}}}}}=fm;const rf=class extends sf{constructor(e){super(e),this.element=new Wm}},{visitors:{document:{objects:{Responses:{$visitor:nf}}}}}=fm;const of=class extends nf{constructor(e){super(e),this.element=new Km}},{visitors:{document:{objects:{Operation:{$visitor:cf}}}}}=fm;const af=class extends cf{constructor(e){super(e),this.element=new Lm}},{visitors:{document:{objects:{PathItem:{$visitor:uf}}}}}=fm;const lf=class extends uf{constructor(e){super(e),this.element=new Um}},{visitors:{document:{objects:{SecurityScheme:{$visitor:pf}}}}}=fm;const mf=class extends pf{constructor(e){super(e),this.element=new Qm}},{visitors:{document:{objects:{OAuthFlows:{$visitor:hf}}}}}=fm;const df=class extends hf{constructor(e){super(e),this.element=new Nm}},{visitors:{document:{objects:{OAuthFlow:{$visitor:ff}}}}}=fm;const yf=class extends ff{constructor(e){super(e),this.element=new Tm}};class _f extends oe.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(_f.primaryClass)}}const gf=_f;class vf extends(lc(Lc,hc)){constructor(e){super(e),this.element=new gf,this.specPath=e=>vc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(Xh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Wh).forEach(((e,t)=>{e.setMetaProperty("webhook-name",si(t))})),t}}const bf=vf,Ef={visitors:{value:fm.visitors.value,document:{objects:{OpenApi:{$visitor:ih,fixedFields:{openapi:fm.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:fh,servers:fm.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:bf,components:{$ref:"#/visitors/document/objects/Components"},security:fm.visitors.document.objects.OpenApi.fixedFields.security,tags:fm.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ch,fixedFields:{title:fm.visitors.document.objects.Info.fixedFields.title,description:fm.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:fm.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:fm.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:uh,fixedFields:{name:fm.visitors.document.objects.Contact.fixedFields.name,url:fm.visitors.document.objects.Contact.fixedFields.url,email:fm.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:ph,fixedFields:{name:fm.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:fm.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:_h,fixedFields:{url:fm.visitors.document.objects.Server.fixedFields.url,description:fm.visitors.document.objects.Server.fixedFields.description,variables:fm.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:vh,fixedFields:{enum:fm.visitors.document.objects.ServerVariable.fixedFields.enum,default:fm.visitors.document.objects.ServerVariable.fixedFields.default,description:fm.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Sh,fixedFields:{schemas:Dd,responses:fm.visitors.document.objects.Components.fixedFields.responses,parameters:fm.visitors.document.objects.Components.fixedFields.parameters,examples:fm.visitors.document.objects.Components.fixedFields.examples,requestBodies:fm.visitors.document.objects.Components.fixedFields.requestBodies,headers:fm.visitors.document.objects.Components.fixedFields.headers,securitySchemes:fm.visitors.document.objects.Components.fixedFields.securitySchemes,links:fm.visitors.document.objects.Components.fixedFields.links,callbacks:fm.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Ud}},Paths:{$visitor:Xd},PathItem:{$visitor:lf,fixedFields:{$ref:fm.visitors.document.objects.PathItem.fixedFields.$ref,summary:fm.visitors.document.objects.PathItem.fixedFields.summary,description:fm.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:fm.visitors.document.objects.PathItem.fixedFields.servers,parameters:fm.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:af,fixedFields:{tags:fm.visitors.document.objects.Operation.fixedFields.tags,summary:fm.visitors.document.objects.Operation.fixedFields.summary,description:fm.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:fm.visitors.document.objects.Operation.fixedFields.operationId,parameters:fm.visitors.document.objects.Operation.fixedFields.parameters,requestBody:fm.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:fm.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:fm.visitors.document.objects.Operation.fixedFields.deprecated,security:fm.visitors.document.objects.Operation.fixedFields.security,servers:fm.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Jd,fixedFields:{description:fm.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:fm.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Fh,fixedFields:{name:fm.visitors.document.objects.Parameter.fixedFields.name,in:fm.visitors.document.objects.Parameter.fixedFields.in,description:fm.visitors.document.objects.Parameter.fixedFields.description,required:fm.visitors.document.objects.Parameter.fixedFields.required,deprecated:fm.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:fm.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:fm.visitors.document.objects.Parameter.fixedFields.style,explode:fm.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:fm.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:fm.visitors.document.objects.Parameter.fixedFields.example,examples:fm.visitors.document.objects.Parameter.fixedFields.examples,content:fm.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Qd,fixedFields:{description:fm.visitors.document.objects.RequestBody.fixedFields.description,content:fm.visitors.document.objects.RequestBody.fixedFields.content,required:fm.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Eh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:fm.visitors.document.objects.MediaType.fixedFields.example,examples:fm.visitors.document.objects.MediaType.fixedFields.examples,encoding:fm.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Kd,fixedFields:{contentType:fm.visitors.document.objects.Encoding.fixedFields.contentType,headers:fm.visitors.document.objects.Encoding.fixedFields.headers,style:fm.visitors.document.objects.Encoding.fixedFields.style,explode:fm.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:fm.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:of,fixedFields:{default:fm.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:rf,fixedFields:{description:fm.visitors.document.objects.Response.fixedFields.description,headers:fm.visitors.document.objects.Response.fixedFields.headers,content:fm.visitors.document.objects.Response.fixedFields.content,links:fm.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:tf},Example:{$visitor:Gd,fixedFields:{summary:fm.visitors.document.objects.Example.fixedFields.summary,description:fm.visitors.document.objects.Example.fixedFields.description,value:fm.visitors.document.objects.Example.fixedFields.value,externalValue:fm.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:hh,fixedFields:{operationRef:fm.visitors.document.objects.Link.fixedFields.operationRef,operationId:fm.visitors.document.objects.Link.fixedFields.operationId,parameters:fm.visitors.document.objects.Link.fixedFields.parameters,requestBody:fm.visitors.document.objects.Link.fixedFields.requestBody,description:fm.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ih,fixedFields:{description:fm.visitors.document.objects.Header.fixedFields.description,required:fm.visitors.document.objects.Header.fixedFields.required,deprecated:fm.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:fm.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:fm.visitors.document.objects.Header.fixedFields.style,explode:fm.visitors.document.objects.Header.fixedFields.explode,allowReserved:fm.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:fm.visitors.document.objects.Header.fixedFields.example,examples:fm.visitors.document.objects.Header.fixedFields.examples,content:fm.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Ph,fixedFields:{name:fm.visitors.document.objects.Tag.fixedFields.name,description:fm.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:$h,fixedFields:{$ref:fm.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:pd,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:md,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:hd,$defs:fd,$comment:{$ref:"#/visitors/value"},allOf:_d,anyOf:vd,oneOf:Ed,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:wd,prefixItems:Sd,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Pd,patternProperties:$d,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:Md,enum:Fd,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:kd,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:Id,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:Cd,fixedFields:{propertyName:fm.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:fm.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Nd,fixedFields:{name:fm.visitors.document.objects.XML.fixedFields.name,namespace:fm.visitors.document.objects.XML.fixedFields.namespace,prefix:fm.visitors.document.objects.XML.fixedFields.prefix,attribute:fm.visitors.document.objects.XML.fixedFields.attribute,wrapped:fm.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:mf,fixedFields:{type:fm.visitors.document.objects.SecurityScheme.fixedFields.type,description:fm.visitors.document.objects.SecurityScheme.fixedFields.description,name:fm.visitors.document.objects.SecurityScheme.fixedFields.name,in:fm.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:fm.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:fm.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:fm.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:df,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:yf,fixedFields:{authorizationUrl:fm.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:fm.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:fm.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:fm.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:wh}},extension:{$visitor:fm.visitors.document.extension.$visitor}}}},xf=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},wf={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"],...fs},jf={namespace:e=>{const{base:t}=e;return t.register("callback",xm),t.register("components",wm),t.register("contact",jm),t.register("discriminator",Sm),t.register("encoding",Om),t.register("example",Pm),t.register("externalDocumentation",Am),t.register("header",$m),t.register("info",Mm),t.register("jsonSchemaDialect",km),t.register("license",Im),t.register("link",Rm),t.register("mediaType",Cm),t.register("oAuthFlow",Tm),t.register("oAuthFlows",Nm),t.register("openapi",qm),t.register("openApi3_1",Bm),t.register("operation",Lm),t.register("parameter",Vm),t.register("pathItem",Um),t.register("paths",zm),t.register("reference",Hm),t.register("requestBody",Jm),t.register("response",Wm),t.register("responses",Km),t.register("schema",Xm),t.register("securityRequirement",Ym),t.register("securityScheme",Qm),t.register("server",eh),t.register("serverVariable",th),t.register("tag",sh),t.register("xml",rh),t}},Sf=()=>{const e=ut(jf);return{predicates:{...i,isElement:Lt,isStringElement:Vt,isArrayElement:Jt,isObjectElement:Ht,isMemberElement:Wt,isServersElement:Ra,includesClasses:ns,hasElementSourceMap:ss},namespace:e}},Of=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=Jn(Ef),i=new(Ie(t,n))({specObj:n});return ys(r,i),Fs(i.element,s,{toolboxCreator:Sf,visitorOptions:{keyMap:wf,nodeTypeGetter:xf}})},Pf=e=>(t,s={})=>Of(t,{specPath:e,...s});xm.refract=Pf(["visitors","document","objects","Callback","$visitor"]),wm.refract=Pf(["visitors","document","objects","Components","$visitor"]),jm.refract=Pf(["visitors","document","objects","Contact","$visitor"]),Pm.refract=Pf(["visitors","document","objects","Example","$visitor"]),Sm.refract=Pf(["visitors","document","objects","Discriminator","$visitor"]),Om.refract=Pf(["visitors","document","objects","Encoding","$visitor"]),Am.refract=Pf(["visitors","document","objects","ExternalDocumentation","$visitor"]),$m.refract=Pf(["visitors","document","objects","Header","$visitor"]),Mm.refract=Pf(["visitors","document","objects","Info","$visitor"]),km.refract=Pf(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Im.refract=Pf(["visitors","document","objects","License","$visitor"]),Rm.refract=Pf(["visitors","document","objects","Link","$visitor"]),Cm.refract=Pf(["visitors","document","objects","MediaType","$visitor"]),Tm.refract=Pf(["visitors","document","objects","OAuthFlow","$visitor"]),Nm.refract=Pf(["visitors","document","objects","OAuthFlows","$visitor"]),qm.refract=Pf(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Bm.refract=Pf(["visitors","document","objects","OpenApi","$visitor"]),Lm.refract=Pf(["visitors","document","objects","Operation","$visitor"]),Vm.refract=Pf(["visitors","document","objects","Parameter","$visitor"]),Um.refract=Pf(["visitors","document","objects","PathItem","$visitor"]),zm.refract=Pf(["visitors","document","objects","Paths","$visitor"]),Hm.refract=Pf(["visitors","document","objects","Reference","$visitor"]),Jm.refract=Pf(["visitors","document","objects","RequestBody","$visitor"]),Wm.refract=Pf(["visitors","document","objects","Response","$visitor"]),Km.refract=Pf(["visitors","document","objects","Responses","$visitor"]),Xm.refract=Pf(["visitors","document","objects","Schema","$visitor"]),Ym.refract=Pf(["visitors","document","objects","SecurityRequirement","$visitor"]),Qm.refract=Pf(["visitors","document","objects","SecurityScheme","$visitor"]),eh.refract=Pf(["visitors","document","objects","Server","$visitor"]),th.refract=Pf(["visitors","document","objects","ServerVariable","$visitor"]),sh.refract=Pf(["visitors","document","objects","Tag","$visitor"]),rh.refract=Pf(["visitors","document","objects","XML","$visitor"]);const Af=h(-1);const $f=class extends jn{};const Mf=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new $f("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new $f("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new $f("latest method in MediaTypes class is not yet implemented.")}};class Ff extends Mf{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 Af(this.filterByFormat(e))}}const kf=new Ff("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"),If=new Ff(...kf.filterByFormat("generic"),...kf.filterByFormat("json")),Rf=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,Cf=async e=>Rf.test(e)&&await(async e=>{if(!Ar.test(e))return!1;try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),Tf=async(e,t={})=>{const s=f({},"refractorOpts",t),r=_(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const r=await xt(e);let n;return n="indirect"===s?Pr(r,{sourceMap:t}):Vs(r,{sourceMap:t}),n})(e,r),{result:i}=n;if(ie(i)){const e=Bm.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Nf=ut(jf)})(),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.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_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 u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=c,u.prototype.set=a,e.exports=u},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),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),l=!s&&n(e),p=!s&&!l&&o(e),m=!s&&!l&&!p&&a(e),h=s||l||p||m,d=h?r(e.length,String):[],f=d.length;for(var y in e)!t&&!u.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),u=s(5853),l=s(8666),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,f,y,_){var g=a(e),v=a(t),b=g?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&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(j&&!E)return _||(_=new r),g||l(e)?n(e,t,s,f,y,_):i(e,t,b,s,f,y,_);if(!(1&s)){var S=E&&d.call(e,"__wrapped__"),O=w&&d.call(t,"__wrapped__");if(S||O){var P=S?e.value():e,A=O?t.value():t;return _||(_=new r),y(P,A,s,f,_)}}return!!j&&(_||(_=new r),o(e,t,s,f,y,_))}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),c=/^\[object .+?Constructor\]$/,a=Function.prototype,u=Object.prototype,l=a.toString,p=u.hasOwnProperty,m=RegExp("^"+l.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 u=1&s,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))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<l;){var _=e[d],g=t[d];if(o)var v=u?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)&&(_===e||c(_,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),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,s,r,u,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,u,p,m);return m.delete(e),y;case"[object Symbol]":if(l)return l.call(e)==l.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,u=r(e),l=u.length;if(l!=r(t).length&&!a)return!1;for(var p=l;p--;){var m=u[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<l;){var _=e[m=u[p]],g=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),u=s(4066),l="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=u(r),y=u(n),_=u(i),g=u(o),v=u(c),b=a;(r&&b(new r(new ArrayBuffer(1)))!=d||n&&b(new n)!=l||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?u(s):"";if(r)switch(r){case f:return d;case y:return l;case _:return p;case g: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),u=s(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.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",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(n,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(c,u.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=l,e.exports=l},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),u=s(7309),l=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 l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=m,r.prototype.MemberElement=u,r.prototype.refract=y,h.prototype.refract=y,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:u,ObjectElement:l,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",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",_="initializers",g="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 O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=E.bind(0,(function e(s,r){if(r===t)return s;if(Array.isArray(r))return(Array.isArray(s)?s:[]).concat(r);if(!O(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(O(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(g),r(o),r(c,P),r(a),r(u),r(l,P),r(p),r(m),r(h,P),n(_),n(v)),e}function M(){return function(e){return s=function e(s){var r,n,i=e[b]||{},u={__proto__:i[g]},l=i[_],p=Array.prototype.slice.apply(arguments),m=i[c];if(m&&P(u,m),(m=i[o])&&w(u,m),(m=i[a])&&Object.defineProperties(u,m),!l||!l.length)return u;for(s===t&&(s={}),i=0;i<l.length;)j(r=l[i++])&&(u=(n=r.call(u,s,{instance:u,stamp:e,args:p}))===t?u:n);return u},(r=e[l])&&P(s,r),(r=e[u])&&w(s,r),(r=e[p])&&Object.defineProperties(s,r),r=j(s[b])?s[b]:M,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 k={};function I(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((s=this)&&s[b]||r).call(s,n)}}k[g]=I(g,w),k[o]=k.props=I(o,w),k[_]=k.init=I(_,A),k[v]=I(v,A),k[c]=k[d]=I(c,P),k[u]=k.statics=I(u,w),k[l]=k[f]=I(l,P),k[m]=k.conf=I(m,w),k[h]=k[y]=I(h,P),k[a]=I(a,w),k[p]=I(p,w),r=k[b]=w((function(){for(var e,x,E=0,j=[],O=arguments,$=this;E<O.length;)S(e=O[E++])&&j.push(F(e)?e:((n={})[g]=(x=e)[g]||t,r=x.props,n[o]=S((s=x[o])||r)?w({},r,s):t,n[_]=A(x.init,x[_]),n[v]=A(x[v]),r=x[d],n[c]=S((s=x[c])||r)?P({},r,s):t,n[a]=x[a],r=x.statics,n[u]=S((s=x[u])||r)?w({},r,s):t,r=x[f],n[l]=S((s=x[l])||r)?P({},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)?P({},r,s):t,n));if(e=M.apply($||i,j),$&&j.unshift($),Array.isArray(O=e[b][v]))for(E=0;E<O.length;)e=F($=O[E++]({stamp:e,composables:j}))?$:e;return e}),k),k.create=function(){return this.apply(t,arguments)},(n={})[u]=k,i=M(n),r[b]=r.bind(),r.version="4.3.2","object"!=typeof t?e.exports=r:self.stampit=r}()},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,u,l,p,m=[],h="./this.program",d=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!a&&!p;var f,y,_,g,v,b="";a?(b=p?s(4142).dirname(b)+"/":"//",f=function(e,t){return g||(g=s(3078)),v||(v=s(4142)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},_=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(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]"}):u?("undefined"!=typeof read&&(f=function(e){return read(e)}),_=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("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)):(l||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&&(_=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<Z.length;s++){var r=Z.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{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.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 u=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])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Z.set(n,i)}return E.set(e,n),n}var O,P=r.dynamicLibraries||[];r.wasmBinary&&(O=r.wasmBinary);var A,$=r.noExitRuntime||!0;function M(e,t,s,r){switch("*"===(s=s||"i8").charAt(s.length-1)&&(s="i32"),s){case"i1":case"i8":C[e>>0]=t;break;case"i16":N[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":B[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 C[e>>0];case"i16":return N[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return B[e>>3];default:ce("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ce("no native wasm support detected");var k=!1;function I(e,t){e||ce("Assertion failed: "+t)}var R,C,T,N,q,D,B,L="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&&L)return L.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 u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|c)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?V(T,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,T,t,s)}function H(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 J(e){var t=H(e)+1,s=Ue(t);return z(e,C,s,t),s}function W(e){R=e,r.HEAP8=C=new Int8Array(e),r.HEAP16=N=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=T=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=B=new Float64Array(e)}var K=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(R=A.buffer),K=R.byteLength,W(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],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+=""),k=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ae,ue,le;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&&O)return new Uint8Array(O);if(_)return _(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?Z.get(s)():Z.get(s)(t.arg):s(void 0===t.arg?null:t.arg)}else t(r)}}function _e(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");I(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else I(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),I(0===e[8],"need the dylink section to be first"),t=9,s(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(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 u=V(a,0);n.neededDynlibs.push(u)}return n}var ge=0;function ve(){return $||ge>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 Oe(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=Le();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):Z.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 Pe(e,t){var s=_e(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=Z.length;Z.grow(s.tableSize);for(var u=c;u<c+s.memorySize;u++)C[u]=0;for(u=a;u<a+s.tableSize;u++)Z.set(u,null);var l=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=Oe(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:l,wasi_snapshot_preview1:l};function m(e){for(var r=0;r<s.tableSize;r++){var n=Z.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():Y.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)}))):_(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 Pe(e,t)})):Pe(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=Oe(e,!0);"function"==typeof t?de[e].value=S(t,t.sig):"number"==typeof t?de[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=we;var Me,Fe=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function ke(){ce()}r._abort=ke,ke.sig="v",Me=a?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ie(e,t){var s;if(0===e)s=Date.now();else{if(1!==e&&4!==e)return 28,q[Be()>>2]=28,-1;s=Me()}return q[t>>2]=s/1e3|0,q[t+4>>2]=s%1e3*1e3*1e3|0,0}function Re(e){try{return A.grow(e-R.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Ce(e){We(e)}function Te(e){}Ie.sig="iii",Ce.sig="vi",Te.sig="vi";var Ne,qe={__heap_base:we,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Fe,__table_base:1,abort:ke,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,s){T.copyWithin(e,t,t+s)},emscripten_resize_heap:function(e){var t,s=T.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),Re(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ce,memory:A,setTempRet0:Te,tree_sitter_log_callback:function(e,t){if(ut){const s=U(t);ut(s,0!==e)}},tree_sitter_parse_callback:function(e,t,s,r,n){var i=at(t,{row:s,column:r});"string"==typeof i?(M(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);N[t>>1]=i,t+=2}N[t>>1]=0}(i,e,10240)):M(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=_e(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),xe(s),n=r.asm.__wasm_call_ctors,Y.unshift(n),oe()}function s(e){t(e.instance,e.module)}function n(t){return function(){if(!O&&(l||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}O||"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)}),Be=(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(Be=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Le=(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(Le=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?T.set(e,s):T.set(new Uint8Array(e),s),s},ne=function e(){Ne||Je(),Ne||(ne=e)};var He=!1;function Je(e){function t(){Ne||(Ne=!0,r.calledRun=!0,k||(te=!0,ye(Y),ye(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Ke&&function(e){var t=r._main;if(t){var s=(e=e||[]).length+1,n=Ue(4*(s+1));q[n>>2]=J(h);for(var i=1;i<s;i++)q[(n>>2)+i]=J(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||!He&&(function(){if(P.length){if(!_)return ie(),void P.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()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),$e()}else $e()}(),He=!0,se>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),X.unshift(e);var e;ye(X)}(),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),k=!0),d(e,new Ge(e)))}if(r.run=Je,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Ke=!0;r.noInitialRun&&(Ke=!1),Je();const Ze=r,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,st={row:0,column:0},rt=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,ct,at,ut;class lt{static init(){ct=Ze._ts_init(),it=F(ct,"i32"),ot=F(ct+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=F(ct,"i32"),this[1]=F(ct+Ye,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._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=Ze._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,Ze._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?(ut=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s&&s.includedRanges){r=s.includedRanges.length;let e=n=Ze._calloc(r,tt);for(let t=0;t<r;t++)Ot(e,s.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw at=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,at);return at=null,ut=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._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){gt(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._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),M(t+=et,e.startIndex,"i32"),M(t+=Ye,e.oldEndIndex,"i32"),M(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._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");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=F(ct,"i32"),s=F(ct+Ye,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=Pt(e),e+=tt;Ze._free(s)}return r}}class mt{constructor(e,t){gt(e),this.tree=t}get typeId(){return bt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return bt(this),Ze._ts_node_end_point_wasm(this.tree[0]),St(ct)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return bt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return bt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return bt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return bt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return bt(this),Ze._ts_node_child_wasm(this.tree[0],e),xt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),xt(this.tree)}childForFieldId(e){return bt(this),Ze._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),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return bt(this),Ze._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),Ze._ts_node_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Ye,"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;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=F(ct,"i32"),t=F(ct+Ye,"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;Ze._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=Ze._malloc(Ye*r.length);for(let e=0,t=r.length;e<t;e++)M(i+e*Ye,r[e],"i32");bt(this),Ze._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+Ye,"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 Ze._free(c),Ze._free(i),a}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),xt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),xt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),xt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),xt(this.tree)}get parent(){return bt(this),Ze._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 M(s,e,"i32"),M(s+Ye,t,"i32"),Ze._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 M(s,e,"i32"),M(s+Ye,t,"i32"),Ze._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),Ze._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),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Xe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var s=T[e++>>0];if(!s)return t;t+=String.fromCharCode(s)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,wt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){bt(e),Et(this,ct+Qe),Ze._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),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),St(ct)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),St(ct)}get startIndex(){return Et(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),xt(this.tree)}currentFieldId(){return Et(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return wt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return wt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return wt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._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=H(e),r=Ze._malloc(s+1);G(e,r,s+1);const n=Ze._ts_language_symbol_for_name(this[0],r,s,t);return Ze._free(r),n||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=H(e),s=Ze._malloc(t+1);G(e,s,t+1);const r=Ze._ts_query_new(this[0],s,t,ct,ct+Ye);if(!r){const t=F(ct+Ye,"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,Ze._free(s),i}const n=Ze._ts_query_string_count(r),i=Ze._ts_query_capture_count(r),o=Ze._ts_query_pattern_count(r),c=new Array(i),a=new Array(n);for(let e=0;e<i;e++){const t=Ze._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=Ze._ts_query_string_value_for_id(r,e,ct),s=F(ct,"i32");a[e]=U(t,s)}const u=new Array(o),l=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ze._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+=Ye,"i32");if(i+=Ye,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.".');u[e]||(u[e]={}),u[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?l: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(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(s),new ft(Xe,r,c,h,m,Object.freeze(u),Object.freeze(l),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:Pe;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(Xe,r)}))}}class ft{constructor(e,t,s,r,n,i,o,c){gt(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(){Ze._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),Ze._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+Ye,"i32"),c=F(ct+2*Ye,"i32"),a=new Array(i);this.exceededMatchLimit=!!c;let u=0,l=o;for(let t=0;t<i;t++){const s=F(l,"i32"),r=F(l+=Ye,"i32");l+=Ye;const n=new Array(r);if(l=_t(this,e.tree,l,n),this.textPredicates[s].every((e=>e(n)))){a[u++]={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=u,Ze._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),Ze._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+Ye,"i32"),c=F(ct+2*Ye,"i32"),a=[];this.exceededMatchLimit=!!c;const u=[];let l=o;for(let t=0;t<i;t++){const t=F(l,"i32"),s=F(l+=Ye,"i32"),r=F(l+=Ye,"i32");if(l+=Ye,u.length=s,l=_t(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[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 Ze._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 _t(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=F(s,"i32"),o=xt(t,s+=Ye);s+=Qe,r[n]={name:e.captureNames[i],node:o}}return s}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=ct;M(t,e.id,"i32"),M(t+=Ye,e.startIndex,"i32"),M(t+=Ye,e.startPosition.row,"i32"),M(t+=Ye,e.startPosition.column,"i32"),M(t+=Ye,e[0],"i32")}function xt(e,t=ct){const s=F(t,"i32");if(0===s)return null;const r=F(t+=Ye,"i32"),n=F(t+=Ye,"i32"),i=F(t+=Ye,"i32"),o=F(t+=Ye,"i32"),c=new mt(Xe,e);return c.id=s,c.startIndex=r,c.startPosition={row:n,column:i},c[0]=o,c}function Et(e,t=ct){M(t+0*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function wt(e){e[0]=F(ct+0*Ye,"i32"),e[1]=F(ct+1*Ye,"i32"),e[2]=F(ct+2*Ye,"i32")}function jt(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function St(e){return{row:F(e,"i32"),column:F(e+Ye,"i32")}}function Ot(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Ye,t.endIndex,"i32"),e+=Ye}function Pt(e){const t={};return t.startPosition=St(e),e+=et,t.endPosition=St(e),e+=et,t.startIndex=F(e,"i32"),e+=Ye,t.endIndex=F(e,"i32"),t}for(const e of Object.getOwnPropertyNames(lt.prototype))Object.defineProperty(i.prototype,e,{value:lt.prototype[e],enumerable:!1,writable:!1});i.Language=dt,r.onRuntimeInitialized=()=>{lt.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),u=i(a),l=n(o,u);if(e&&s!=s){for(;u>l;)if((c=a[l++])!=c)return!0}else for(;u>l;l++)if((e||l in a)&&a[l]===s)return e||l||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,u=i.f,l=0;l<c.length;l++){var p=c[l];r(e,p)||s&&r(s,p)||a(e,p,u(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,u=c&&c.versions||a&&a.version,l=u&&u.v8;l&&(n=(r=l.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),u=s(8099),l=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,O=E?u:u[x]||p(u,x,{})[x],P=O.prototype;for(f in t)n=!(s=a(E?f:x+(w?".":"#")+f,e.forced))&&S&&m(S,f),_=O[f],n&&(g=e.dontCallGetSet?(b=c(S,f))&&b.value:S[f]),y=n&&g?g:t[f],(s||j||typeof _!=typeof y)&&(v=e.bind&&n?l(y,r):e.wrap&&n?h(y):j&&o(y)?i(y):y,(e.sham||y&&y.sham||_&&_.sham)&&p(v,"sham",!0),p(O,f,v),j&&(m(u,d=x+"Prototype")||p(u,d,{}),p(u[d],f,y),e.real&&P&&(s||!P[f])&&p(P,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,u=c&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:u}},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),u=s(3999),l=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 _=p.state||(p.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,r=function(e,t){if(_.has(e))throw new f(d);return t.facade=e,_.set(e,t),t},n=function(e){return _.get(e)||{}},i=function(e){return _.has(e)}}else{var g=m("state");h[g]=!0,r=function(e,t){if(l(e,g))throw new f(d);return t.facade=e,u(e,g,t),t},n=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}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===l||s!==u&&(n(t)?r(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},u=o.NATIVE="N",l=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),u=s(4317),l=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),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),A=r(t,w),$=function(e){return y&&m(y,"normal",e),new d(!0,e)},M=function(e){return j?(i(e),P?A(e[0],e[1],$):A(e[0],e[1])):P?A(e,$):A(e)};if(S)y=e.iterator;else if(O)y=e;else{if(!(_=p(e)))throw new h(o(e)+" is not iterable");if(c(_)){for(g=0,v=a(e);v>g;g++)if((b=M(e[g]))&&u(f,b))return b;return new d(!1)}y=l(e,_)}for(x=S?e.next:y.next;!(E=n(x,y)).done;){try{b=M(E.value)}catch(e){m(y,"throw",e)}if("object"==typeof b&&b&&u(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,u){var l=t+" Iterator";return e.prototype=n(r,{next:i(+!u,s)}),o(e,l,!1,!0),c[l]=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),u=s(3671),l=s(3491),p=s(1811),m=s(3999),h=s(3508),d=s(8655),f=s(6625),y=s(2621),_=o.PROPER,g=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,O){a(s,t,o);var P,A,$,M=function(e){if(e===d&&C)return C;if(!b&&e&&e in I)return I[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",k=!1,I=e.prototype,R=I[x]||I["@@iterator"]||d&&I[d],C=!b&&R||M(d),T="Array"===t&&I.entries||R;if(T&&(P=u(T.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===v||(l?l(P,v):c(P[x])||h(P,x,S)),p(P,F,!0,!0),i&&(f[F]=S)),_&&d===w&&R&&R.name!==w&&(!i&&g?m(I,"name",w):(k=!0,C=function(){return n(R,this)})),d)if(A={values:M(w),keys:y?C:M(E),entries:M(j)},O)for($ in A)(b||k||!($ in I))&&h(I,$,A[$]);else r({target:t,proto:!0,forced:b||k},A);return i&&!O||I[x]===C||h(I,x,C,{name:d}),f[t]=C,A}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),c=s(2769),a=s(262),u=s(5780),l=s(3671),p=s(3508),m=s(8655),h=s(4871),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(r=n):f=!0),!a(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:h&&(r=u(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),u=s(9619),l=s(4275),p="prototype",m="script",h=l("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},_=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;_="undefined"!=typeof document?document.domain&&r?y(r):(t=u("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 _[p][o[n]];return _()};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=_(),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),u=n.length,l=0;u>l;)i.f(e,s=n[l++],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,u=Object.defineProperty,l=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=l(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 u(e,t,s)}:u:function(e,t,s){if(o(e),t=c(t),o(s),n)try{return u(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),u=s(701),l=s(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=c(e),t=a(t),l)try{return p(e,t)}catch(e){}if(u(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"),u=Object,l=u.prototype;e.exports=c?u.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 u?l: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),u=0,l=[];for(s in r)!n(c,s)&&n(r,s)&&a(l,s);for(;t.length>u;)n(r,s=t[u++])&&(~o(l,s)||a(l,s));return l}},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,u){var l=s?e:e&&e.prototype;l&&(o(l,a)||n(l,a,{configurable:!0,value:t}),u&&!r&&i(l,"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),u=r("".slice),l=function(e){return function(t,s){var r,l,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||(l=a(p,m+1))<56320||l>57343?e?c(p,m):r:e?u(p,m,m+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!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),u=TypeError,l=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,a=o(e,l);if(a){if(void 0===t&&(t="default"),s=r(a,e,t),!n(s)||i(s))return s;throw new u("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),u=r.Symbol,l=n("wks"),p=a?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=c&&i(u,e)?u[e]:p("Symbol."+e)),l[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),u=s(5516),l=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 _="stackTraceLimit",g=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)&&l(r,this,j),arguments.length>g&&m(r,arguments[g]),r}));if(j.prototype=E,"Error"!==b?c?c(j,w):a(j,w,{name:!0}):d&&_ in x&&(u(j,x,_),u(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",u=n(a),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],a,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:c(a,(function(e){return function(t,s){return i(e,this,arguments)}}),l,!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),u=s(3999),l=s(480),p=s(8148),m=s(4279),h=s(208),d=s(4879),f=s(8655)("toStringTag"),y=Error,_=[].push,g=function(e,t){var s,r=n(v,this);o?s=o(new y,r?i(this):v):(s=r?this:a(v),u(s,f,"Error")),void 0!==t&&u(s,"message",d(t)),m(s,g,s.stack,1),arguments.length>2&&p(s,arguments[2]);var c=[];return h(e,_,{that:c}),u(s,"errors",c),s};o?o(g,y):c(g,y,{name:!0});var v=g.prototype=a(y.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},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),u=s(877),l=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,u(void 0,!0);switch(e.kind){case"keys":return u(s,!1);case"values":return u(t[s],!1)}return u([s,t[s]],!1)}),"values");var f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&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],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var s={};s[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},s)},p=function(e,t){if(a&&a[e]){var s={};s[e]=o(c+"."+e,t,u),r({target:c,stat:!0,constructor:!0,arity:1,forced:u},s)}};l("Error",(function(e){return function(t){return i(e,this,arguments)}})),l("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),l("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),l("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),l("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),l("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),l("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",u=i.set,l=i.getterFor(a);o(String,"String",(function(e){u(this,{type:a,string:n(e),index:0})}),(function(){var e,t=l(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:()=>Tf,detectionRegExp:()=>Cf,mediaTypes:()=>Rf,namespace:()=>qf,parse:()=>Nf});var e={};s.r(e),s.d(e,{hasElementSourceMap:()=>rs,includesClasses:()=>is,includesSymbols:()=>ns,isAnnotationElement:()=>Yt,isArrayElement:()=>Wt,isBooleanElement:()=>Ht,isCommentElement:()=>Qt,isElement:()=>Vt,isLinkElement:()=>Zt,isMemberElement:()=>Kt,isNullElement:()=>Gt,isNumberElement:()=>zt,isObjectElement:()=>Jt,isParseResultElement:()=>es,isPrimitiveElement:()=>ss,isRefElement:()=>Xt,isSourceMapElement:()=>ts,isStringElement:()=>Ut});var t={};s.r(t),s.d(t,{isJSONReferenceElement:()=>Po,isJSONSchemaElement:()=>Oo,isLinkDescriptionElement:()=>$o,isMediaElement:()=>Ao});var n={};s.r(n),s.d(n,{isBooleanJsonSchemaElement:()=>$a,isCallbackElement:()=>ua,isComponentsElement:()=>la,isContactElement:()=>pa,isExampleElement:()=>ma,isExternalDocumentationElement:()=>ha,isHeaderElement:()=>da,isInfoElement:()=>fa,isLicenseElement:()=>ya,isLinkElement:()=>_a,isMediaTypeElement:()=>Ra,isOpenApi3_0Element:()=>va,isOpenapiElement:()=>ga,isOperationElement:()=>ba,isParameterElement:()=>xa,isPathItemElement:()=>Ea,isPathsElement:()=>wa,isReferenceElement:()=>ja,isRequestBodyElement:()=>Sa,isResponseElement:()=>Oa,isResponsesElement:()=>Pa,isSchemaElement:()=>Aa,isSecurityRequirementElement:()=>Ma,isSecuritySchemeElement:()=>Fa,isServerElement:()=>ka,isServerVariableElement:()=>Ia,isServersElement:()=>Ca});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 u(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:()=>nd,isCallbackElement:()=>Ch,isComponentsElement:()=>Th,isContactElement:()=>Nh,isExampleElement:()=>qh,isExternalDocumentationElement:()=>Dh,isHeaderElement:()=>Bh,isInfoElement:()=>Lh,isJsonSchemaDialectElement:()=>Vh,isLicenseElement:()=>Uh,isLinkElement:()=>zh,isMediaTypeElement:()=>ud,isOpenApi3_1Element:()=>Hh,isOpenapiElement:()=>Gh,isOperationElement:()=>Jh,isParameterElement:()=>Wh,isPathItemElement:()=>Kh,isPathItemElementExternal:()=>Zh,isPathsElement:()=>Xh,isReferenceElement:()=>Yh,isReferenceElementExternal:()=>Qh,isRequestBodyElement:()=>ed,isResponseElement:()=>td,isResponsesElement:()=>sd,isSchemaElement:()=>rd,isSecurityRequirementElement:()=>id,isSecuritySchemeElement:()=>od,isServerElement:()=>cd,isServerVariableElement:()=>ad});const l=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=u((function(e,t,s){return l(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 _=y;function g(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(g,j,w);function O(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 P(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 M=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 M(e,t)}};function k(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,u){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,c,a,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function I(e,t,s){return function(){for(var r=[],n=0,i=e,c=0,a=!1;c<t.length||n<arguments.length;){var u;c<t.length&&(!o(t[c])||n>=arguments.length)?u=t[c]:(u=arguments[n],n+=1),r[c]=u,o(u)?a=!0:i-=1,c+=1}return!a&&i<=0?s.apply(this,r):k(Math.max(0,i),I(e,r,s))}}const R=a((function(e,t){return 1===e?c(t):k(e,I(e,[],t))}));function C(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var T=Object.prototype.toString;const N=function(){return"[object Arguments]"===T.call(arguments)?function(e){return"[object Arguments]"===T.call(e)}:function(e){return C("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(){return arguments.propertyIsEnumerable("length")}(),L=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||B?c((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=B&&N(e);for(t in e)!C(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=D.length-1;s>=0;)C(t=D[s],e)&&!L(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(O(["fantasy-land/map","map"],F,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return g((function(s,r){return s[r]=e(t[r]),s}),{},U(t));default:return P(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 H=a((function(e,t){var s=R(e,t);return R(e,(function(){return g(G,z(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const J=c((function(e){return H(e.length,e)}));const W=J(c((function(e){return!e})));function K(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Z(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const X="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Y=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=K(e);function i(e,t){return ee(e,t,s.slice(),r.slice())}return!Z((function(e,t){return!Z(i,t,e)}),K(t),n)}function ee(e,t,s,r){if(X(e,t))return!0;var n,i,o=Y(e);if(o!==Y(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||!X(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!X(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 u=s.concat([e]),l=r.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!C(p,t)||!ee(t[p],e[p],u,l))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 ue=a((function(e,t){return k(e.length,(function(){return e.apply(t,arguments)}))}));function le(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](ue(e["@@transducer/step"],e),t))}const me=E(ae,pe,le);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}();const de=u((function(e,t,s){return me("function"==typeof e?new he(e):e,t,s)}));function fe(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 ye=u(fe("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const _e=c(fe("tail",ye(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return k(arguments[0].length,de(ce,arguments[0],_e(arguments)))}var ve=function(e,t){switch(arguments.length){case 0:return ve;case 1:return function t(s){return 0===arguments.length?t:X(e,s)};default:return X(e,t)}};const be=ve;function xe(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 Ee(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 we=function(e){return(e<10?"0":"")+e};const je="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+we(e.getUTCMonth()+1)+"-"+we(e.getUTCDate())+"T"+we(e.getUTCHours())+":"+we(e.getUTCMinutes())+":"+we(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(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 Pe(e){return function(t){return new Oe(e,t)}}const Ae=a(O(["fantasy-land/filter","filter"],Pe,(function(e,t){return Se(t)?g((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 $e=a((function(e,t){return Ae((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Me(e,t){var s=function(s){var r=t.concat([e]);return xe(s,r)?"<Circular>":Me(s,r)},r=function(e,t){return P((function(t){return Ee(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+P(s,e).join(", ")+"))";case"[object Array]":return"["+P(s,e).concat(r(e,$e((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):Ee(je(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())+")":Ee(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 Fe=c((function(e){return Me(e,[])}));const ke=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 ke([e],t)[0]}));const Re=u((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 Te=a((function(e,t){return e&&t}));const Ne=a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:J(Te)(e,t)}));const qe=te(null);const De=W(qe);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 Le=function(e){return"object"===Be(e)};const Ve=R(1,Ne(De,Le));const Ue=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=Fe(e),o=s(i,Fe(t));return void 0!==o&&o===i?e:t}));const ze=a((function(e,t){return z(d(e),t)}));const Ge=c((function(e){return R(de(Ue,0,ze("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=R(1,ge(Y,be("GeneratorFunction")));const Je=R(1,ge(Y,be("AsyncFunction")));const We=Ge([ge(Y,be("Function")),He,Je]);var Ke=ge(Y,be("Object")),Ze=ge(Fe,te(Fe(Object))),Xe=Re(Ne(We,Ze),["constructor"]);const Ye=R(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Xe(t)}));class Qe 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 et=Qe;class tt extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const st=tt;class rt 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 nt=rt;class it 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 ot=it;class ct extends oe.g${constructor(){super(),this.register("annotation",et),this.register("comment",st),this.register("parseResult",nt),this.register("sourceMap",ot)}}const at=new ct,ut=e=>{const t=new ct;return Ye(e)&&t.use(e),t},lt=at;const pt=R(1,ge(Y,be("String"))),mt=s.p+"23aac571c96605dc25219087ad291441.wasm",ht=globalThis.fetch;We(ht)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[mt,_e(e)]):ht.apply(globalThis,e));var dt=s(3833),ft=s(1212);const yt=class extends ft{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(yt,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 gt=_t,vt=s.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let bt=null,xt=null;const Et=async e=>{if(null===bt&&null===xt)xt=dt.init().then((()=>dt.Language.load(vt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{xt=null})),bt=await xt;else if(null===bt&&null!==xt)bt=await xt;else if(null===bt)throw new gt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return bt.parse(e)};const wt=class extends gt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},jt=(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},St={},Ot=e=>null==e?void 0:e.type,Pt=e=>"string"==typeof Ot(e),At=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),$t=(e,{visitFnGetter:t=jt,nodeTypeGetter:s=Ot,breakSymbol:r=St,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(u,...l){let p=u,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,...l);if(t===i)a[h]=u;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 u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],s(n),!0);if("function"==typeof c){const t=c.call(e[u],n,...o);if(t===r)a[u]=r;else if(void 0!==t&&t!==i)return t}}else a[u]===n&&(a[u]=c)}}};$t[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=jt,nodeTypeGetter:s=Ot,breakSymbol:r=St,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const c=Symbol("skip"),a=new Array(e.length).fill(c);return{async enter(u,...l){let p=u,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,...l);if(t===i)a[h]=u;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 u=0;u<e.length;u+=1)if(a[u]===c){const c=t(e[u],s(n),!0);if("function"==typeof c){const t=await c.call(e[u],n,...o);if(t===r)a[u]=r;else if(void 0!==t&&t!==i)return t}}else a[u]===n&&(a[u]=c)}}};const Mt=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=jt,nodeTypeGetter:a=Ot,nodePredicate:u=Pt,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],_=-1,g=[],v=e;const b=[],x=[];do{_+=1;const e=_===y.length;let s;const w=e&&0!==g.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 g){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=l(v);for(const[e,t]of g)v[e]=t}_=h.index,y=h.keys,g=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?_:y[_],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!u(v))throw new wt(`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&&(g.push([s,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var E;if(void 0===j&&w&&g.push([s,v]),!e)h={inArray:f,index:_,keys:y,edits:g,prev:h},f=Array.isArray(v),y=f?v:null!==(E=m[a(v)])&&void 0!==E?E:[],_=-1,g=[],d!==i&&void 0!==d&&x.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};function Ft(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Mt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=jt,nodeTypeGetter:a=Ot,nodePredicate:u=Pt,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const m=s||{};let h,d,f=Array.isArray(e),y=[e],_=-1,g=[],v=e;const b=[],x=[];do{_+=1;const e=_===y.length;let s;const w=e&&0!==g.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 g){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=l(v);for(const[e,t]of g)v[e]=t}_=h.index,y=h.keys,g=h.edits,f=h.inArray,h=h.prev}else if(d!==i&&void 0!==d){if(s=f?_:y[_],v=d[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){if(!u(v))throw new wt(`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&&(g.push([s,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var E;if(void 0===j&&w&&g.push([s,v]),!e)h={inArray:f,index:_,keys:y,edits:g,prev:h},f=Array.isArray(v),y=f?v:null!==(E=m[a(v)])&&void 0!==E?E:[],_=-1,g=[],d!==i&&void 0!==d&&x.push(d),d=v}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:e};var kt=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=Ft(this.xf["@@transducer/step"](e,!1))),e},e}();function It(e){return function(t){return new kt(e,t)}}const Rt=a(O(["all"],It,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const Ct=c((function(e){return R(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}))(a(xe)),Tt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Nt=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,qt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Dt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Bt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Lt=e=>e({hasMethod:Tt,hasBasicElementProps:Nt,primitiveEq:qt,isElementType:Bt,hasClass:Dt}),Vt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Hg||e(s)&&t(void 0,s))),Ut=Lt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Om||e(s)&&t("string",s))),zt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.kT||e(s)&&t("number",s))),Gt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.Os||e(s)&&t("null",s))),Ht=Lt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof oe.bd||e(s)&&t("boolean",s))),Jt=Lt((({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))),Wt=Lt((({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))),Kt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&s(void 0,r))),Zt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&s(void 0,r))),Xt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&s(void 0,r))),Yt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof et||e(r)&&t("annotation",r)&&s("array",r))),Qt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("comment",r)&&s("string",r))),es=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("parseResult",r)&&s("array",r))),ts=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("sourceMap",r)&&s("array",r))),ss=e=>Bt("object",e)||Bt("array",e)||Bt("boolean",e)||Bt("number",e)||Bt("string",e)||Bt("null",e)||Bt("member",e),rs=e=>ts(e.meta.get("sourceMap")),ns=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Wt(s)&&Rt(Ct(s.toValue()),e)},is=(e,t)=>0===e.length||Rt(Ct(t.classes.toValue()),e);const os=class extends wt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const cs=class extends os{};const as=class extends os{},us=(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=Vt(t)?us(t,r):t,o=Vt(n)?us(n,r):n,c=new oe.KeyValuePair(i,o);return s.set(e,c),c}if(e instanceof oe.ot){const t=e=>us(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=>us(e,r),n=[...e].map(t),i=new oe.G6(n);return s.set(e,i),i}if(Vt(e)){const t=ms(e);if(s.set(e,t),e.content)if(Vt(e.content))t.content=us(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=us(e.content,r);else if(Array.isArray(e.content)){const s=e=>us(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new cs("Value provided to cloneDeep function couldn't be cloned",{value:e})};us.safe=e=>{try{return us(e)}catch{return e}};const ls=e=>{const{key:t,value:s}=e;return new oe.KeyValuePair(t,s)},ps=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=us(e.meta)),e.attributes.length>0&&(t._attributes=us(e.attributes)),Vt(e.content)){const s=e.content;t.content=ps(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=ls(e.content):t.content=e.content;return t},ms=e=>{if(e instanceof oe.KeyValuePair)return ls(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(Vt(e))return ps(e);throw new as("Value provided to cloneShallow function couldn't be cloned",{value:e})};ms.safe=e=>{try{return ms(e)}catch{return e}};const hs=e=>Jt(e)?"ObjectElement":Wt(e)?"ArrayElement":Kt(e)?"MemberElement":Ut(e)?"StringElement":Ht(e)?"BooleanElement":zt(e)?"NumberElement":Gt(e)?"NullElement":Zt(e)?"LinkElement":Xt(e)?"RefElement":void 0,ds=e=>Vt(e)?ms(e):At(e),fs=ge(hs,pt),ys={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const _s=(e,t,{keyMap:s=ys,...r}={})=>Mt(e,t,{keyMap:s,nodeTypeGetter:hs,nodePredicate:fs,nodeCloneFn:ds,...r});_s[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=ys,...r}={})=>Mt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:hs,nodePredicate:fs,nodeCloneFn:ds,...r});const gs=u((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})C(r,t)&&(n[r]=C(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)C(r,s)&&!C(r,n)&&(n[r]=s[r]);return n}));const vs=u((function e(t,s,r){return gs((function(s,r,n){return Se(r)&&Se(n)?e(t,r,n):t(s,r,n)}),s,r)}));const bs=a((function(e,t){return vs((function(e,t,s){return s}),e,t)}));const xs=ye(0,-1);const Es=a((function(e,t){return e.apply(this,t)}));const ws=W(We);var js=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)?"":Se(e)?{}:N(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 Ss=js;const Os=c((function(e){return null!=e&&te(e,Ss(e))}));const Ps=R(1,We(Array.isArray)?Array.isArray:ge(Y,be("Array")));const As=Ne(Ps,Os);const $s=R(3,(function(e,t,s){var r=Ie(e,s),n=Ie(xs(e),s);if(!ws(r)&&!As(e)){var i=ue(r,n);return Es(i,t)}})),Ms=()=>({predicates:{...e},namespace:lt}),Fs={toolboxCreator:Ms,visitorOptions:{nodeTypeGetter:hs,exposeEdits:!0}},ks=(e,t,s={})=>{if(0===t.length)return e;const r=bs(Fs,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),c=t.map((e=>e(o))),a=$t(c.map(f({},"visitor")),{...i});c.forEach($s(["pre"],[]));const u=_s(e,a,i);return c.forEach($s(["post"],[])),u};ks[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=bs(Fs,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),c=t.map((e=>e(o))),a=$t[Symbol.for("nodejs.util.promisify.custom")],u=_s[Symbol.for("nodejs.util.promisify.custom")],l=a(c.map(f({},"visitor")),{...i});await Promise.allSettled(c.map($s(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(c.map($s(["post"],[]))),p};const Is=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Vt(e)&&(e.meta.length>0&&(r.meta=us(e.meta)),e.attributes.length>0&&(r.attributes=us(e.attributes))),ks(r,s,{toolboxCreator:Ms,visitorOptions:{nodeTypeGetter:hs}})},Rs=e=>(t,s={})=>Is(t,{...s,Type:e});oe.Sh.refract=Rs(oe.Sh),oe.wE.refract=Rs(oe.wE),oe.Om.refract=Rs(oe.Om),oe.bd.refract=Rs(oe.bd),oe.Os.refract=Rs(oe.Os),oe.kT.refract=Rs(oe.kT),oe.Ft.refract=Rs(oe.Ft),oe.sI.refract=Rs(oe.sI),et.refract=Rs(et),st.refract=Rs(st),nt.refract=Rs(nt),ot.refract=Rs(ot);const Cs=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];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("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}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}pushChildren(...e){this.children.push(...e)}};class Ts{static toPosition(e){const t=new oe.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new oe.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(ss);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Cs&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new et(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new nt;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new oe.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new oe.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,r){const n=!e.hasError,i=e.text,o=new et(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===r.length){const e=new nt;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ot,r=Ts.toPosition(e);if(null!==r){const[e,t]=r;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Ns=Ts;class qs{cursor;constructor(e){this.cursor=e}document(){return new Cs(this.cursor)}object(){return new Cs(this.cursor).setFieldName(this.cursor)}array(){return new Cs(this.cursor).setFieldName(this.cursor)}pair(){return new Cs(this.cursor)}string(){return new Cs(this.cursor).setFieldName(this.cursor)}number(){return new Cs(this.cursor).setFieldName(this.cursor)}null(){return new Cs(this.cursor).setFieldName(this.cursor)}true(){return new Cs(this.cursor).setFieldName(this.cursor)}false(){return new Cs(this.cursor).setFieldName(this.cursor)}ERROR(){return new Cs(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Cs(this.cursor),this.cursor.gotoFirstChild()){const[t]=new qs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new qs(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Ds=qs,Bs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...ys},Ls=e=>es(e)?"ParseResultElement":Vt(e)?hs(e):Ot(e),Vs=e=>Vt(e)||Pt(e),Us=(e,{sourceMap:t=!1}={})=>{const s=new Ns,r=e.walk(),n=new Ds(r),[i]=Array.from(n);return Mt(i,s,{keyMap:Bs,nodeTypeGetter:Ls,nodePredicate:Vs,state:{sourceMap:t}})};class zs{static type="point";type=zs.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class Gs{static type="position";type=Gs.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Hs=Gs;const Js=h(0);const Ws=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}};const Ks=class extends Ws{};const Zs=class extends Ks{static type="document";get child(){return Js(this.children)}};const Xs=class extends Ws{static type="parseResult";get rootNode(){return Js(this.children)}};const Ys=class extends Ws{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},Qs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,er=e=>Qs("string",e),tr=e=>Qs("false",e),sr=e=>Qs("true",e),rr=e=>Qs("null",e),nr=e=>Qs("number",e),ir=e=>Qs("array",e),or=e=>Qs("object",e),cr=e=>Qs("property",e),ar=e=>Qs("key",e);const ur=class extends Ks{static type="object";get properties(){return this.children.filter(cr)}};const lr=class extends Ks{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Qs("stringContent",e))(e)||(e=>Qs("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const pr=class extends lr{static type="key"};const mr=class extends Ks{static type="property";get key(){return this.children.find(ar)}get value(){return this.children.find((e=>tr(e)||sr(e)||rr(e)||nr(e)||er(e)||ir(e)||or(e)))}};const hr=class extends Ks{static type="array";get items(){return this.children.filter((e=>tr(e)||sr(e)||rr(e)||nr(e)||er(e)||ir(e)||or))}};const dr=class extends Ks{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const fr=class extends dr{static type="stringContent"};const yr=class extends dr{static type="number"};const _r=class extends dr{static type="null"};const gr=class extends dr{static type="true"};const vr=class extends dr{static type="false"};const br=class extends Ws{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},xr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class Er{static toPosition(e){const t=new zs({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new zs({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Hs({start:t,end:s})}document={enter:e=>{const t=Er.toPosition(e);return new Zs({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Xs({children:[e]})};enter(e){if(e instanceof Cs&&!e.isNamed){const t=Er.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Ys({value:s,position:t,isMissing:r})}}object(e){const t=Er.toPosition(e);return new ur({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=Er.toPosition(e),s=e.children.slice(1),{keyNode:r}=e,n=new pr({children:(null==r?void 0:r.children)||[],position:null!=r?Er.toPosition(r):void 0,isMissing:null!=r&&r.isMissing});return new mr({children:[n,...s],position:t,isMissing:e.isMissing})}array(e){const t=Er.toPosition(e);return new hr({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=Er.toPosition(e),s=new fr({value:JSON.parse(e.text)});return new lr({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=Er.toPosition(e),s=e.text;return new yr({value:s,position:t,isMissing:e.isMissing})}null(e){const t=Er.toPosition(e),s=e.text;return new _r({value:s,position:t,isMissing:e.isMissing})}true(e){const t=Er.toPosition(e),s=e.text;return new gr({value:s,position:t,isMissing:e.isMissing})}false(e){const t=Er.toPosition(e),s=e.text;return new vr({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,r){const n=Er.toPosition(e),i=new br({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new Xs({children:[i]}):i}}const wr=Er,jr={[Xs.type]:["children"],[Zs.type]:["children"],[ur.type]:["children"],[mr.type]:["children"],[hr.type]:["children"],[br.type]:["children"],...ys},Sr=e=>es(e)?"ParseResultElement":Vt(e)?hs(e):Ot(e),Or=e=>Vt(e)||Pt(e);const Pr=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(ss);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new nt;return t._content=e.children,t}object(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new oe.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new oe.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new oe.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new et(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 ${e.value})`:`(Error ${e.value})`,i=new et(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new nt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ot;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}},Ar=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Ds(s),[n]=Array.from(r),i=new wr,o=new Pr,c=Mt(n,i,{keyMap:xr,state:{sourceMap:t}});return Mt(c.rootNode,o,{keyMap:jr,nodeTypeGetter:Sr,nodePredicate:Or,state:{sourceMap:t}})},$r=(ut(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class Mr extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Fr=Mr;class kr 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 Ir=kr;class Rr 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 Cr=Rr;class Tr 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 Nr=Tr;class qr 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 Dr=qr;class Br 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 Lr=Br;class Vr 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 Ur=Vr;class zr 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(zr.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Gr=zr;class Hr 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 Jr=Hr;class Wr 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 Kr=Wr;class Zr 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 Ut(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ut(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 Xr=Zr;class Yr 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 Qr=Yr;class en 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 tn=en;class sn 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 rn=sn;class nn extends oe.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const on=nn;class cn 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 an=cn;class un 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 ln=un;class pn 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(pn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const mn=pn;class hn 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 dn=hn;class fn extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const yn=fn;class _n 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 gn=_n;class vn 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 bn=vn;class xn 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 En=xn;class wn 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 jn=wn;const Sn=class extends gt{};class On 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 Pn=On;class An 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 $n=An;class Mn 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 Fn=Mn;class kn 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 In=kn;const Rn=a((function(e,t){return g((function(s,r){return s[r]=e(t[r],r,t),s}),{},U(t))}));const Cn=c((function(e){return null==e}));const Tn=a((function(e,t){if(0===e.length||Cn(t))return!1;for(var s=t,r=0;r<e.length;){if(Cn(s)||!C(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));var Nn=a((function(e,t){return Tn([e],t)}));const qn=Nn;const Dn=u((function(e,t,s){return e(d(t,s))}));const Bn=c((function(e){return R(e.length,e)}));const Ln=a((function(e,t){return R(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(Fe(s)+' does not have a method named "'+t+'"')}))}));const Vn=Ln(1,"split");var Un=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 zn(e){return function(t){return new Un(e,t)}}const Gn=a(O(["dropWhile"],zn,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ye(s,1/0,t)})));const Hn=Ln(1,"join");const Jn=Bn((function(e,t){return ge(Vn(""),Gn(Ct(e)),Hn(""))(t)})),Wn=(e,t)=>{const s=l(e,t);return Rn((e=>{if(Ye(e)&&qn("$ref",e)&&Dn(pt,"$ref",e)){const t=Ie(["$ref"],e),r=Jn("#/",t);return Ie(r.split("/"),s)}return Ye(e)?Wn(e,s):e}),e)};var Kn=s(8357);const Zn=function(){return!0},Xn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hs(e),Yn={EphemeralObject:["content"],EphemeralArray:["content"],...ys},Qn=(e,t,{keyMap:s=Yn,...r}={})=>_s(e,t,{keyMap:s,nodeTypeGetter:Xn,nodePredicate:Zn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Qn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Yn,...s}={})=>_s[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xn,nodePredicate:Zn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const ei=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 ti=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 si{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new ti(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 ei(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 Ut(e.href)?e.href.toValue():""}}const ri=e=>Vt(e)?Ut(e)||zt(e)||Ht(e)||Gt(e)?e.toValue():Qn(e,new si):e,ni=e=>{const t=e.meta.length>0?us(e.meta):void 0,s=e.attributes.length>0?us(e.attributes):void 0;return new e.constructor(void 0,t,s)},ii=(e,t)=>t.clone&&t.isMergeableElement(e)?ui(ni(e),e,t):e,oi=e=>"function"!=typeof e.customMetaMerge?e=>us(e):e.customMetaMerge,ci=e=>"function"!=typeof e.customAttributesMerge?e=>us(e):e.customAttributesMerge,ai={clone:!0,isMergeableElement:e=>Jt(e)||Wt(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ii(e,s))),objectElementMerge:(e,t,s)=>{const r=Jt(e)?ni(e):ni(t);return Jt(e)&&e.forEach(((e,t,n)=>{const i=ms(n);i.value=ii(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=ri(n);let c;if(Jt(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);c=ms(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return ui;const s=t.customMerge(e,t);return"function"==typeof s?s:ui})(n,s)(r,t)}else c=ms(i),c.value=ii(t,s);r.remove(o),r.content.push(c)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ui(e,t,s){var r,n,i;const o={...ai,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:ai.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ai.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ai.objectElementMerge;const c=Wt(t);if(!(c===Wt(e)))return ii(t,o);const a=c&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return a.meta=oi(o)(e.meta,t.meta),a.attributes=ci(o)(e.attributes,t.attributes),a}ui.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)=>ui(e,s,t)),ni(e[0]))};const li=Kn({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ui(t.meta,e.meta),rs(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ui(t.attributes,e.attributes))}}}),pi=Kn(li,{methods:{enter(e){return this.element=us(e),St}}});const mi=se(re());const hi=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})),di=Kn(li,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return hi(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 Re(We,["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?us(t):(_s(t,r,s),r.element)}}}),fi=Kn(di,{props:{specPath:mi,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(Ut(r)&&s.includes(ri(r))&&!this.ignoredFields.includes(ri(r))){const s=this.toRefractedElement([...t,"fixedFields",ri(r)],e),i=new oe.Pr(us(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ri(r))||this.element.content.push(us(n))})),this.copyMetaAndAttributes(e,this.element),St}}}),yi=Kn(fi,pi,{props:{specPath:se(["document","objects","JSONSchema"])},init(){this.element=new Pn}}),_i=pi,gi=pi,vi=pi,bi=pi,xi=pi,Ei=pi,wi=pi,ji=pi,Si=pi,Oi=pi,Pi=Kn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Ai=e=>Jt(e)&&e.hasKey("$ref"),$i=Kn(di,Pi,pi,{methods:{ObjectElement(e){const t=Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St},ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Mi=pi,Fi=pi,ki=pi,Ii=pi,Ri=pi,Ci=Kn(pi,{methods:{ArrayElement(e){return this.element=us(e),this.element.classes.push("json-schema-required"),St}}});const Ti=c((function(e){return R(de(Ue,0,ze("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 Ni=a((function(e,t){return e||t}));const qi=W(R(1,Ne(De,a((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:J(Ni)(e,t)}))(Le,We))));const Di=W(Os);const Bi=Ti([pt,qi,Di]);const Li=function(){return!1},Vi=Kn(di,{props:{fieldPatternPredicate:Li,specPath:mi,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(ri(t))&&this.fieldPatternPredicate(ri(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(us(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ri(t))||this.element.content.push(us(s))})),this.copyMetaAndAttributes(e,this.element),St}}}),Ui=Kn(Vi,{props:{fieldPatternPredicate:Bi}}),zi=Kn(Ui,Pi,pi,{props:{specPath:e=>Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-properties")}}),Gi=Kn(Ui,Pi,pi,{props:{specPath:e=>Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties")}}),Hi=Kn(Ui,Pi,pi,{props:{specPath:e=>Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies")}}),Ji=Kn(pi,{methods:{ArrayElement(e){return this.element=us(e),this.element.classes.push("json-schema-enum"),St}}}),Wi=Kn(pi,{methods:{StringElement(e){return this.element=us(e),this.element.classes.push("json-schema-type"),St},ArrayElement(e){return this.element=us(e),this.element.classes.push("json-schema-type"),St}}}),Ki=Kn(di,Pi,pi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Zi=Kn(di,Pi,pi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Xi=Kn(di,Pi,pi,{init(){this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}}),Yi=Kn(Ui,Pi,pi,{props:{specPath:e=>Ai(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sh,this.element.classes.push("json-schema-definitions")}}),Qi=pi,eo=pi,to=pi,so=pi,ro=pi,no=Kn(di,Pi,pi,{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),St}}}),io=pi,oo=Kn(fi,pi,{props:{specPath:se(["document","objects","JSONReference"])},init(){this.element=new $n},methods:{ObjectElement(e){const t=fi.compose.methods.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),co=Kn(pi,{methods:{StringElement(e){return this.element=us(e),this.element.classes.push("reference-value"),St}}});const ao=u((function(e,t,s){return R(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const uo=c((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var lo=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const po=lo;const mo=c(Ft);const ho=W(Cn);const fo=Ne(Ps,Di);function yo(e){return function(e){if(Array.isArray(e))return _o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _o(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 _o(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 _o(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 go=ge(po(uo((function(e,t){return e.length>t.length}))),Js,d("length")),vo=Bn((function(e,t,s){var r=s.apply(void 0,yo(e));return ho(r)?mo(r):t}));const bo=ao(fo,(function(e){var t=go(e);return R(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return de(vo(s),void 0,e)}))}),re),xo=Kn(di,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ao(e,se(t),re))),s=bo(t)(e);return this.element=this.toRefractedElement(s,e),St}}}),Eo=Kn(xo,{props:{alternator:[{predicate:Ai,specPath:["document","objects","JSONReference"]},{predicate:Zn,specPath:["document","objects","JSONSchema"]}]}}),wo={visitors:{value:pi,JSONSchemaOrJSONReferenceVisitor:Eo,document:{objects:{JSONSchema:{$visitor:yi,fixedFields:{id:_i,$schema:gi,multipleOf:vi,maximum:bi,exclusiveMaximum:xi,minimum:Ei,exclusiveMinimum:wi,maxLength:ji,minLength:Si,pattern:Oi,additionalItems:Eo,items:$i,maxItems:Mi,minItems:Fi,uniqueItems:ki,maxProperties:Ii,minProperties:Ri,required:Ci,properties:zi,additionalProperties:Eo,patternProperties:Gi,dependencies:Hi,enum:Ji,type:Wi,allOf:Ki,anyOf:Zi,oneOf:Xi,not:Eo,definitions:Yi,title:Qi,description:eo,default:to,format:so,base:ro,links:no,media:{$ref:"#/visitors/document/objects/Media"},readOnly:io}},JSONReference:{$visitor:oo,fixedFields:{$ref:co}},Media:{$visitor:Kn(fi,pi,{props:{specPath:se(["document","objects","Media"])},init(){this.element=new Fn}}),fixedFields:{binaryEncoding:pi,type:pi}},LinkDescription:{$visitor:Kn(fi,pi,{props:{specPath:se(["document","objects","LinkDescription"])},init(){this.element=new In}}),fixedFields:{href:pi,rel:pi,title:pi,targetSchema:Eo,mediaType:pi,method:pi,encType:pi,schema:Eo}}}}}},jo=e=>{if(Vt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},So={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...ys},Oo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pn||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Po=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $n||e(r)&&t("JSONReference",r)&&s("object",r))),Ao=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fn||e(r)&&t("media",r)&&s("object",r))),$o=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof In||e(r)&&t("linkDescription",r)&&s("object",r))),Mo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Pn),t.register("jSONReference",$n),t.register("media",Fn),t.register("linkDescription",In),t}},Fo=()=>{const e=ut(Mo);return{predicates:{...t,isStringElement:Ut},namespace:e}},ko=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=wo}={})=>{const n=(0,oe.e)(e),i=Wn(r),o=$s(t,[],i);return _s(n,o,{state:{specObj:i}}),ks(o.element,s,{toolboxCreator:Fo,visitorOptions:{keyMap:So,nodeTypeGetter:jo}})},Io=e=>(t,s={})=>ko(t,{specPath:e,...s});Pn.refract=Io(["visitors","document","objects","JSONSchema","$visitor"]),$n.refract=Io(["visitors","document","objects","JSONReference","$visitor"]),Fn.refract=Io(["visitors","document","objects","Media","$visitor"]),In.refract=Io(["visitors","document","objects","LinkDescription","$visitor"]);const Ro=class extends Pn{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Sn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Sn("idProp setter in Schema class is not not supported.")}get $schema(){throw new Sn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Sn("$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 Sn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Sn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Sn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Sn("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 Sn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Sn("definitions setter in Schema class is not not supported.")}get base(){throw new Sn("base getter in Schema class is not not supported.")}set base(e){throw new Sn("base setter in Schema class is not not supported.")}get links(){throw new Sn("links getter in Schema class is not not supported.")}set links(e){throw new Sn("links setter in Schema class is not not supported.")}get media(){throw new Sn("media getter in Schema class is not not supported.")}set media(e){throw new Sn("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 Co extends oe.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const To=Co;class No 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 qo=No;class Do 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 Bo=Do;class Lo 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 Vo=Lo;class Uo 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 zo=Uo;class Go 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 Ho=Go,Jo=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},Wo=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Wo(s,[...t,s])},Ko=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>Wo(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=Wo(n);for(let t of e){let e=Wo(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Jo(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},Zo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),Xo=(e,t)=>{const s=t.map((e=>Wo(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++}},Yo=(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(Xo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==Xo(r,e)||void 0!==t[r],get:(s,r)=>(Xo(r,e)||t)[r],set(t,s,r){const n=Xo(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)))))}),Qo=null,ec="copy",tc="copy",sc="deep",rc=new WeakMap,nc=e=>rc.get(e),ic=(e,t)=>{var s,r;const n=Zo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Zo([...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},oc=(e,t)=>{var s,r,n,i;return{property:ic(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:ic(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},cc=(e,t)=>{var s,r,n,i,o,c;return{class:Zo([...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:oc(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:oc(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},ac=new Map,uc=(...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=[...Wo(e.prototype).map((e=>e.constructor)),...null!==(t=nc(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=>ac.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>cc(e,t)))},lc=e=>{let t=ac.get(e);return t||(t={},ac.set(e,t)),t};function pc(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=Qo;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)Jo(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===tc?Ko(n,o):(c=n,a=o,Yo([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===ec?Ko(e,null,["prototype"]):Yo(e,Function.prototype));let u=o;if("none"!==sc){const n="deep"===sc?uc(...e):((...e)=>{const t=e.map((e=>lc(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>cc(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}mc(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},u),mc(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,rc.set(l,p),u}const mc=(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 hc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ui(t.meta,e.meta),rs(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ui(t.attributes,e.attributes))}};const dc=class extends hc{enter(e){return this.element=us(e),St}};const fc=class extends hc{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 hi(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 Re(We,["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 dc&&(null==r?void 0:r.constructor)===dc?us(t):(_s(t,r,s),r.element)}};var yc=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?Ft(s):s},e}();function _c(e){return function(t){return new yc(e,t)}}const gc=a(O(["take"],_c,(function(e,t){return ye(0,e<0?1/0:e,t)})));const vc=a((function(e,t){return te(gc(e.length,t),e)})),bc=e=>Jt(e)&&e.hasKey("$ref"),xc=Jt,Ec=Jt,wc=e=>Ut(e.key)&&vc("x-",ri(e.key));const jc=class extends fc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=wc;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(Ut(r)&&s.includes(ri(r))&&!this.ignoredFields.includes(ri(r))){const s=this.toRefractedElement([...t,"fixedFields",ri(r)],e),i=new oe.Pr(us(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(ri(r))||this.element.content.push(us(n))})),this.copyMetaAndAttributes(e,this.element),St}};class Sc extends(pc(jc,dc)){constructor(e){super(e),this.element=new an,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return jc.prototype.ObjectElement.call(this,e)}}const Oc=Sc;class Pc extends(pc(fc,dc)){StringElement(e){const t=new on(ri(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const Ac=Pc;const $c=class extends fc{MemberElement(e){return this.element=us(e),this.element.classes.push("specification-extension"),St}};class Mc extends(pc(jc,dc)){constructor(e){super(e),this.element=new Jr,this.specPath=se(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Fc=Mc;const kc=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ic extends(pc(jc,dc)){constructor(e){super(e),this.element=new Cr,this.specPath=se(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Rc=Ic;class Cc extends(pc(jc,dc)){constructor(e){super(e),this.element=new Kr,this.specPath=se(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Tc=Cc;class Nc extends(pc(jc,dc)){constructor(e){super(e),this.element=new Xr,this.specPath=se(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return(Ut(this.element.operationId)||Ut(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const qc=Nc;const Dc=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Bc=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Lc=class extends fc{specPath;ignoredFields;fieldPatternPredicate=Li;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=wc;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(ri(t))&&this.fieldPatternPredicate(ri(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new oe.Pr(us(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ri(t))||this.element.content.push(us(s))})),this.copyMetaAndAttributes(e,this.element),St}};const Vc=class extends Lc{constructor(e){super(e),this.fieldPatternPredicate=Bi}};class Uc extends oe.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Uc.primaryClass)}}const zc=Uc;class Gc extends(pc(Vc,dc)){constructor(e){super(e),this.element=new zc,this.specPath=se(["value"])}}const Hc=Gc;class Jc extends(pc(jc,dc)){constructor(e){super(e),this.element=new Bo,this.specPath=se(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Wc=Jc;const Kc=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Zc extends oe.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Zc.primaryClass)}}const Xc=Zc;class Yc extends(pc(fc,dc)){constructor(e){super(e),this.element=new Xc}ArrayElement(e){return e.forEach((e=>{const t=xc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Qc=Yc;class ea extends(pc(jc,dc)){constructor(e){super(e),this.element=new Vo,this.specPath=se(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const ta=ea;class sa extends oe.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(sa.primaryClass)}}const ra=sa;class na extends(pc(Vc,dc)){constructor(e){super(e),this.element=new ra,this.specPath=se(["document","objects","ServerVariable"])}}const ia=na;class oa extends(pc(jc,dc)){constructor(e){super(e),this.element=new Qr,this.specPath=se(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ca=oa;const aa=class extends fc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ao(e,se(t),re))),s=bo(t)(e);return this.element=this.toRefractedElement(s,e),St}},ua=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fr||e(r)&&t("callback",r)&&s("object",r))),la=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ir||e(r)&&t("components",r)&&s("object",r))),pa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cr||e(r)&&t("contact",r)&&s("object",r))),ma=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lr||e(r)&&t("example",r)&&s("object",r))),ha=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ur||e(r)&&t("externalDocumentation",r)&&s("object",r))),da=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gr||e(r)&&t("header",r)&&s("object",r))),fa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jr||e(r)&&t("info",r)&&s("object",r))),ya=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kr||e(r)&&t("license",r)&&s("object",r))),_a=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xr||e(r)&&t("link",r)&&s("object",r))),ga=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof on||e(r)&&t("openapi",r)&&s("string",r))),va=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof an||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),ba=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ln||e(r)&&t("operation",r)&&s("object",r))),xa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mn||e(r)&&t("parameter",r)&&s("object",r))),Ea=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof dn||e(r)&&t("pathItem",r)&&s("object",r))),wa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yn||e(r)&&t("paths",r)&&s("object",r))),ja=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gn||e(r)&&t("reference",r)&&s("object",r))),Sa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bn||e(r)&&t("requestBody",r)&&s("object",r))),Oa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof En||e(r)&&t("response",r)&&s("object",r))),Pa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jn||e(r)&&t("responses",r)&&s("object",r))),Aa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ro||e(r)&&t("schema",r)&&s("object",r))),$a=e=>Ht(e)&&e.classes.includes("boolean-json-schema"),Ma=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof To||e(r)&&t("securityRequirement",r)&&s("object",r))),Fa=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qo||e(r)&&t("securityScheme",r)&&s("object",r))),ka=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bo||e(r)&&t("server",r)&&s("object",r))),Ia=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vo||e(r)&&t("serverVariable",r)&&s("object",r))),Ra=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qr||e(r)&&t("mediaType",r)&&s("object",r))),Ca=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Xc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Ta extends(pc(aa,dc)){constructor(e){super(e),this.alternator=[{predicate:bc,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=aa.prototype.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Na=Ta;class qa extends(pc(Vc,dc)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("examples"),this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Da=qa;class Ba extends oe.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ba.primaryClass),this.classes.push("examples")}}const La=Ba;const Va=class extends Da{constructor(e){super(e),this.element=new La}};class Ua extends oe.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Ua.primaryClass)}}const za=Ua;class Ga extends(pc(Vc,dc)){constructor(e){super(e),this.element=new za,this.specPath=se(["document","objects","Encoding"])}}const Ha=Ga;class Ja extends(pc(Vc,dc)){constructor(e){super(e),this.element=new To,this.specPath=se(["value"])}}const Wa=Ja;class Ka extends oe.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Ka.primaryClass)}}const Za=Ka;class Xa extends(pc(fc,dc)){constructor(e){super(e),this.element=new Za}ArrayElement(e){return e.forEach((e=>{if(Jt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(us(e))})),this.copyMetaAndAttributes(e,this.element),St}}const Ya=Xa;class Qa extends(pc(jc,dc)){constructor(e){super(e),this.element=new Ir,this.specPath=se(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const eu=Qa;class tu extends(pc(jc,dc)){constructor(e){super(e),this.element=new zo,this.specPath=se(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const su=tu;class ru extends(pc(jc,dc)){constructor(e){super(e),this.element=new gn,this.specPath=se(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const nu=ru;const iu=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ou extends(pc(jc,dc)){constructor(e){super(e),this.element=new mn,this.specPath=se(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return Jt(this.element.contentProp)&&this.element.contentProp.filter(Ra).forEach(((e,t)=>{e.setMetaProperty("media-type",ri(t))})),t}}const cu=ou;class au extends(pc(aa,dc)){constructor(e){super(e),this.alternator=[{predicate:bc,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=aa.prototype.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const uu=au;class lu extends(pc(jc,dc)){constructor(e){super(e),this.element=new Gr,this.specPath=se(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const pu=lu;class mu extends(pc(aa,dc)){constructor(e){super(e),this.alternator=[{predicate:bc,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=aa.prototype.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const hu=mu;class du extends oe.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(du.primaryClass),this.classes.push("examples")}}const fu=du;const yu=class extends Da{constructor(e){super(e),this.element=new fu}};class _u extends(pc(Vc,dc)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("content"),this.specPath=se(["document","objects","MediaType"])}}const gu=_u;class vu extends oe.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(vu.primaryClass),this.classes.push("content")}}const bu=vu;const xu=class extends gu{constructor(e){super(e),this.element=new bu}};class Eu extends(pc(jc,dc)){constructor(e){super(e),this.element=new Ro,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const wu=Eu,{allOf:ju}=wo.visitors.document.objects.JSONSchema.fixedFields,Su=ju.compose({methods:{ArrayElement(e){const t=ju.compose.methods.ArrayElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Ou}=wo.visitors.document.objects.JSONSchema.fixedFields,Pu=Ou.compose({methods:{ArrayElement(e){const t=Ou.compose.methods.ArrayElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Au}=wo.visitors.document.objects.JSONSchema.fixedFields,$u=Au.compose({methods:{ArrayElement(e){const t=Au.compose.methods.ArrayElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Mu}=wo.visitors.document.objects.JSONSchema.fixedFields,Fu=Mu.compose({methods:{ObjectElement(e){const t=Mu.compose.methods.ObjectElement.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=us(e),St}}}),{properties:ku}=wo.visitors.document.objects.JSONSchema.fixedFields,Iu=ku.compose({methods:{ObjectElement(e){const t=ku.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Ru}=wo.visitors.document.objects.JSONSchema.fixedFields,Cu=Ru.compose({methods:{ArrayElement(e){return this.element=us(e),St}}}),{JSONSchemaOrJSONReferenceVisitor:Tu}=wo.visitors,Nu=Tu.compose({methods:{ObjectElement(e){const t=Tu.compose.methods.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class qu extends(pc(jc,dc)){constructor(e){super(e),this.element=new Nr,this.specPath=se(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Du=qu;class Bu extends oe.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Bu.primaryClass)}}const Lu=Bu;class Vu extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Lu,this.specPath=se(["value"])}}const Uu=Vu;class zu extends(pc(jc,dc)){constructor(e){super(e),this.element=new Ho,this.specPath=se(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Gu=zu;class Hu extends oe.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Hu.primaryClass),this.classes.push("examples")}}const Ju=Hu;const Wu=class extends Da{constructor(e){super(e),this.element=new Ju}};class Ku extends oe.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ku.primaryClass),this.classes.push("content")}}const Zu=Ku;const Xu=class extends gu{constructor(e){super(e),this.element=new Zu}};class Yu extends oe.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass)}}const Qu=Yu;class el extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Qu,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const tl=el;class sl extends oe.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(sl.primaryClass)}}const rl=sl;class nl extends(pc(Vc,dc)){constructor(e){super(e),this.element=new rl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Oa).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ri(t))})),t}}const il=nl;class ol extends oe.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ol.primaryClass),this.classes.push("parameters")}}const cl=ol;class al extends(pc(Vc,dc)){constructor(e){super(e),this.element=new cl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const ul=al;class ll extends oe.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ll.primaryClass),this.classes.push("examples")}}const pl=ll;class ml extends(pc(Vc,dc)){constructor(e){super(e),this.element=new pl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const hl=ml;class dl extends oe.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(dl.primaryClass)}}const fl=dl;class yl extends(pc(Vc,dc)){constructor(e){super(e),this.element=new fl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const _l=yl;class gl extends oe.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(gl.primaryClass)}}const vl=gl;class bl extends(pc(Vc,dc)){constructor(e){super(e),this.element=new vl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(da).forEach(((e,t)=>{e.setMetaProperty("header-name",ri(t))})),t}}const xl=bl;class El extends oe.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(El.primaryClass)}}const wl=El;class jl extends(pc(Vc,dc)){constructor(e){super(e),this.element=new wl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Sl=jl;class Ol extends oe.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Ol.primaryClass)}}const Pl=Ol;class Al extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Pl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const $l=Al;class Ml extends oe.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Ml.primaryClass)}}const Fl=Ml;class kl extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Fl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Il=kl;class Rl extends(pc(jc,dc)){constructor(e){super(e),this.element=new Lr,this.specPath=se(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return Ut(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Cl=Rl;const Tl=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Nl extends(pc(jc,dc)){constructor(e){super(e),this.element=new Ur,this.specPath=se(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const ql=Nl;class Dl extends(pc(jc,dc)){constructor(e){super(e),this.element=new Dr,this.specPath=se(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return Jt(this.element.headers)&&this.element.headers.filter(da).forEach(((e,t)=>{e.setMetaProperty("header-name",ri(t))})),t}}const Bl=Dl;class Ll extends oe.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Ll.primaryClass)}}const Vl=Ll;class Ul extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Vl,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!da(e))return;const s=ri(t);e.setMetaProperty("headerName",s)})),t}}const zl=Ul;class Gl extends(pc(Lc,dc)){constructor(e){super(e),this.element=new yn,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Zn}ObjectElement(e){const t=Lc.prototype.ObjectElement.call(this,e);return this.element.filter(Ea).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",us(t))})),t}}const Hl=Gl;class Jl extends(pc(jc,dc)){constructor(e){super(e),this.element=new bn,this.specPath=se(["document","objects","RequestBody"])}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return Jt(this.element.contentProp)&&this.element.contentProp.filter(Ra).forEach(((e,t)=>{e.setMetaProperty("media-type",ri(t))})),t}}const Wl=Jl;class Kl extends oe.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Kl.primaryClass),this.classes.push("content")}}const Zl=Kl;const Xl=class extends gu{constructor(e){super(e),this.element=new Zl}};class Yl extends(pc(Lc,dc)){constructor(e){super(e),this.element=new Fr,this.specPath=se(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(Ea).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ri(t))})),t}}const Ql=Yl;class ep extends(pc(jc,dc)){constructor(e){super(e),this.element=new En,this.specPath=se(["document","objects","Response"])}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return Jt(this.element.contentProp)&&this.element.contentProp.filter(Ra).forEach(((e,t)=>{e.setMetaProperty("media-type",ri(t))})),Jt(this.element.headers)&&this.element.headers.filter(da).forEach(((e,t)=>{e.setMetaProperty("header-name",ri(t))})),t}}const tp=ep;class sp extends oe.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(sp.primaryClass)}}const rp=sp;class np extends(pc(Vc,dc)){constructor(e){super(e),this.element=new rp,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!da(e))return;const s=ri(t);e.setMetaProperty("header-name",s)})),t}}const ip=np;class op extends oe.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(op.primaryClass),this.classes.push("content")}}const cp=op;const ap=class extends gu{constructor(e){super(e),this.element=new cp}};class up extends oe.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(up.primaryClass)}}const lp=up;class pp extends(pc(Vc,dc)){constructor(e){super(e),this.element=new lp,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const mp=pp;function hp(e){return"[object Number]"===Object.prototype.toString.call(e)}const dp=a((function(e,t){if(!hp(e)||!hp(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 fp(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?!!xe(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?!!xe(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const yp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!fp(e,!0,this)},e.prototype.has=function(e){return fp(e,!1,this)},e}();const _p=a((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new yp,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 gp extends(pc(jc,Lc)){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,..._p(e.keys(),t)],jc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Lc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const vp=gp;class bp extends(pc(vp,dc)){constructor(e){super(e),this.element=new jn,this.specPathFixedFields=se(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>bc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${dp(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=vp.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Oa).forEach(((e,t)=>{const s=us(t);this.fieldPatternPredicate(ri(s))&&e.setMetaProperty("http-status-code",s)})),t}}const xp=bp;class Ep extends(pc(aa,dc)){constructor(e){super(e),this.alternator=[{predicate:bc,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=aa.prototype.enter.call(this,e);return ja(this.element)?this.element.setMetaProperty("referenced-element","response"):Oa(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const wp=Ep;class jp extends(pc(jc,dc)){constructor(e){super(e),this.element=new ln,this.specPath=se(["document","objects","Operation"])}}const Sp=jp;class Op extends oe.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Op.primaryClass)}}const Pp=Op;const Ap=class extends dc{constructor(e){super(e),this.element=new Pp}ArrayElement(e){return this.element=this.element.concat(us(e)),St}};class $p extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push($p.primaryClass),this.classes.push("parameters")}}const Mp=$p;class Fp extends(pc(fc,dc)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=bc(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);ja(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const kp=Fp;const Ip=class extends kp{constructor(e){super(e),this.element=new Mp}};const Rp=class extends aa{constructor(e){super(e),this.alternator=[{predicate:bc,specPath:["document","objects","Reference"]},{predicate:Zn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=aa.prototype.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Cp extends oe.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Cp.primaryClass)}}const Tp=Cp;class Np extends(pc(Vc,dc)){specPath;constructor(e){super(e),this.element=new Tp,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const qp=Np;class Dp extends oe.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Dp.primaryClass),this.classes.push("security")}}const Bp=Dp;class Lp extends(pc(fc,dc)){constructor(e){super(e),this.element=new Bp}ArrayElement(e){return e.forEach((e=>{const t=Jt(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Vp=Lp;class Up extends oe.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Up.primaryClass),this.classes.push("servers")}}const zp=Up;const Gp=class extends Qc{constructor(e){super(e),this.element=new zp}};class Hp extends(pc(jc,dc)){constructor(e){super(e),this.element=new dn,this.specPath=se(["document","objects","PathItem"])}ObjectElement(e){const t=jc.prototype.ObjectElement.call(this,e);return this.element.filter(ba).forEach(((e,t)=>{const s=us(t);s.content=ri(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Jp=Hp;const Wp=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Kp extends oe.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Kp.primaryClass),this.classes.push("servers")}}const Zp=Kp;const Xp=class extends Qc{constructor(e){super(e),this.element=new Zp}};class Yp extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Yp.primaryClass),this.classes.push("parameters")}}const Qp=Yp;const em=class extends kp{constructor(e){super(e),this.element=new Qp}};class tm extends(pc(jc,dc)){constructor(e){super(e),this.element=new qo,this.specPath=se(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const sm=tm;class rm extends(pc(jc,dc)){constructor(e){super(e),this.element=new rn,this.specPath=se(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const nm=rm;class im extends(pc(jc,dc)){constructor(e){super(e),this.element=new tn,this.specPath=se(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const om=im;class cm extends oe.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(cm.primaryClass)}}const am=cm;class um extends(pc(Vc,dc)){constructor(e){super(e),this.element=new am,this.specPath=se(["value"])}}const lm=um;class pm extends oe.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(pm.primaryClass)}}const mm=pm;class hm extends(pc(fc,dc)){constructor(e){super(e),this.element=new mm}ArrayElement(e){return e.forEach((e=>{const t=Ec(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const dm=hm,{fixedFields:fm}=wo.visitors.document.objects.JSONSchema,ym={visitors:{value:dc,document:{objects:{OpenApi:{$visitor:Oc,fixedFields:{openapi:Ac,info:{$ref:"#/visitors/document/objects/Info"},servers:Qc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Ya,tags:dm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Fc,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:kc}},Contact:{$visitor:Rc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Tc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Wc,fixedFields:{url:Kc,description:{$ref:"#/visitors/value"},variables:ia}},ServerVariable:{$visitor:ta,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:eu,fixedFields:{schemas:tl,responses:il,parameters:ul,examples:hl,requestBodies:_l,headers:xl,securitySchemes:Sl,links:$l,callbacks:Il}},Paths:{$visitor:Hl},PathItem:{$visitor:Jp,fixedFields:{$ref:Wp,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:Xp,parameters:em}},Operation:{$visitor:Sp,fixedFields:{tags:Ap,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Ip,requestBody:Rp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qp,deprecated:{$ref:"#/visitors/value"},security:Vp,servers:Gp}},ExternalDocumentation:{$visitor:ql,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:cu,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:uu,example:{$ref:"#/visitors/value"},examples:Wu,content:Xu}},RequestBody:{$visitor:Wl,fixedFields:{description:{$ref:"#/visitors/value"},content:Xl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ca,fixedFields:{schema:Na,example:{$ref:"#/visitors/value"},examples:Va,encoding:Ha}},Encoding:{$visitor:Bl,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:zl,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:xp,fixedFields:{default:wp}},Response:{$visitor:tp,fixedFields:{description:{$ref:"#/visitors/value"},headers:ip,content:ap,links:mp}},Callback:{$visitor:Ql},Example:{$visitor:Cl,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Tl}},Link:{$visitor:qc,fixedFields:{operationRef:Dc,operationId:Bc,parameters:Hc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pu,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:hu,example:{$ref:"#/visitors/value"},examples:yu,content:xu}},Tag:{$visitor:su,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:nu,fixedFields:{$ref:iu}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:wu,fixedFields:{title:fm.title,multipleOf:fm.multipleOf,maximum:fm.maximum,exclusiveMaximum:fm.exclusiveMaximum,minimum:fm.minimum,exclusiveMinimum:fm.exclusiveMinimum,maxLength:fm.maxLength,minLength:fm.minLength,pattern:fm.pattern,maxItems:fm.maxItems,minItems:fm.minItems,uniqueItems:fm.uniqueItems,maxProperties:fm.maxProperties,minProperties:fm.minProperties,required:fm.required,enum:fm.enum,type:Cu,allOf:Su,anyOf:Pu,oneOf:$u,not:Nu,items:Fu,properties:Iu,additionalProperties:Nu,description:fm.description,format:fm.format,default:fm.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:Du,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Uu}},XML:{$visitor:Gu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:sm,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:nm,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:om,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:lm}},SecurityRequirement:{$visitor:Wa}},extension:{$visitor:$c}}}},_m=e=>{if(Vt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},gm={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"],...ys},vm={namespace:e=>{const{base:t}=e;return t.register("callback",Fr),t.register("components",Ir),t.register("contact",Cr),t.register("discriminator",Nr),t.register("encoding",Dr),t.register("example",Lr),t.register("externalDocumentation",Ur),t.register("header",Gr),t.register("info",Jr),t.register("license",Kr),t.register("link",Xr),t.register("mediaType",Qr),t.register("oAuthFlow",tn),t.register("oAuthFlows",rn),t.register("openapi",on),t.register("openApi3_0",an),t.register("operation",ln),t.register("parameter",mn),t.register("pathItem",dn),t.register("paths",yn),t.register("reference",gn),t.register("requestBody",bn),t.register("response",En),t.register("responses",jn),t.register("schema",Ro),t.register("securityRequirement",To),t.register("securityScheme",qo),t.register("server",Bo),t.register("serverVariable",Vo),t.register("tag",zo),t.register("xml",Ho),t}},bm=()=>{const e=ut(vm);return{predicates:{...n,isElement:Vt,isStringElement:Ut,isArrayElement:Wt,isObjectElement:Jt,isMemberElement:Kt,includesClasses:is,hasElementSourceMap:rs},namespace:e}},xm=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=Wn(ym),i=new(Ie(t,n))({specObj:n});return _s(r,i),ks(i.element,s,{toolboxCreator:bm,visitorOptions:{keyMap:gm,nodeTypeGetter:_m}})},Em=e=>(t,s={})=>xm(t,{specPath:e,...s});Fr.refract=Em(["visitors","document","objects","Callback","$visitor"]),Ir.refract=Em(["visitors","document","objects","Components","$visitor"]),Cr.refract=Em(["visitors","document","objects","Contact","$visitor"]),Lr.refract=Em(["visitors","document","objects","Example","$visitor"]),Nr.refract=Em(["visitors","document","objects","Discriminator","$visitor"]),Dr.refract=Em(["visitors","document","objects","Encoding","$visitor"]),Ur.refract=Em(["visitors","document","objects","ExternalDocumentation","$visitor"]),Gr.refract=Em(["visitors","document","objects","Header","$visitor"]),Jr.refract=Em(["visitors","document","objects","Info","$visitor"]),Kr.refract=Em(["visitors","document","objects","License","$visitor"]),Xr.refract=Em(["visitors","document","objects","Link","$visitor"]),Qr.refract=Em(["visitors","document","objects","MediaType","$visitor"]),tn.refract=Em(["visitors","document","objects","OAuthFlow","$visitor"]),rn.refract=Em(["visitors","document","objects","OAuthFlows","$visitor"]),on.refract=Em(["visitors","document","objects","OpenApi","fixedFields","openapi"]),an.refract=Em(["visitors","document","objects","OpenApi","$visitor"]),ln.refract=Em(["visitors","document","objects","Operation","$visitor"]),mn.refract=Em(["visitors","document","objects","Parameter","$visitor"]),dn.refract=Em(["visitors","document","objects","PathItem","$visitor"]),yn.refract=Em(["visitors","document","objects","Paths","$visitor"]),gn.refract=Em(["visitors","document","objects","Reference","$visitor"]),bn.refract=Em(["visitors","document","objects","RequestBody","$visitor"]),En.refract=Em(["visitors","document","objects","Response","$visitor"]),jn.refract=Em(["visitors","document","objects","Responses","$visitor"]),Ro.refract=Em(["visitors","document","objects","Schema","$visitor"]),To.refract=Em(["visitors","document","objects","SecurityRequirement","$visitor"]),qo.refract=Em(["visitors","document","objects","SecurityScheme","$visitor"]),Bo.refract=Em(["visitors","document","objects","Server","$visitor"]),Vo.refract=Em(["visitors","document","objects","ServerVariable","$visitor"]),zo.refract=Em(["visitors","document","objects","Tag","$visitor"]),Ho.refract=Em(["visitors","document","objects","XML","$visitor"]);const wm=class extends Fr{};const jm=class extends Ir{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Sm=class extends Cr{};const Om=class extends Nr{};const Pm=class extends Dr{};const Am=class extends Lr{};const $m=class extends Ur{};const Mm=class extends Gr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Fm=class extends Jr{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 km extends oe.Om{static default=new km("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Im=km;const Rm=class extends Kr{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Cm=class extends Xr{};const Tm=class extends Qr{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Nm=class extends tn{};const qm=class extends rn{};const Dm=class extends on{};class Bm 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 Lm=Bm;const Vm=class extends ln{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Um=class extends mn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const zm=class extends dn{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 Gm=class extends yn{};class Hm extends gn{}Object.defineProperty(Hm.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Hm.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Jm=Hm;const Wm=class extends bn{};const Km=class extends En{};const Zm=class extends jn{};class Xm 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 Ym=Xm;const Qm=class extends To{};const eh=class extends qo{};const th=class extends Bo{};const sh=class extends Vo{};const rh=class extends zo{};const nh=class extends Ho{};class ih extends(pc(jc,dc)){constructor(e){super(e),this.element=new Lm,this.specPath=se(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,jc.prototype.ObjectElement.call(this,e)}}const oh=ih,{visitors:{document:{objects:{Info:{$visitor:ch}}}}}=ym;const ah=class extends ch{constructor(e){super(e),this.element=new Fm}},{visitors:{document:{objects:{Contact:{$visitor:uh}}}}}=ym;const lh=class extends uh{constructor(e){super(e),this.element=new Sm}},{visitors:{document:{objects:{License:{$visitor:ph}}}}}=ym;const mh=class extends ph{constructor(e){super(e),this.element=new Rm}},{visitors:{document:{objects:{Link:{$visitor:hh}}}}}=ym;const dh=class extends hh{constructor(e){super(e),this.element=new Cm}};class fh extends(pc(fc,dc)){StringElement(e){const t=new Im(ri(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const yh=fh,{visitors:{document:{objects:{Server:{$visitor:_h}}}}}=ym;const gh=class extends _h{constructor(e){super(e),this.element=new th}},{visitors:{document:{objects:{ServerVariable:{$visitor:vh}}}}}=ym;const bh=class extends vh{constructor(e){super(e),this.element=new sh}},{visitors:{document:{objects:{MediaType:{$visitor:xh}}}}}=ym;const Eh=class extends xh{constructor(e){super(e),this.element=new Tm}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:wh}}}}}=ym;const jh=class extends wh{constructor(e){super(e),this.element=new Qm}},{visitors:{document:{objects:{Components:{$visitor:Sh}}}}}=ym;const Oh=class extends Sh{constructor(e){super(e),this.element=new jm}},{visitors:{document:{objects:{Tag:{$visitor:Ph}}}}}=ym;const Ah=class extends Ph{constructor(e){super(e),this.element=new rh}},{visitors:{document:{objects:{Reference:{$visitor:$h}}}}}=ym;const Mh=class extends $h{constructor(e){super(e),this.element=new Jm}},{visitors:{document:{objects:{Parameter:{$visitor:Fh}}}}}=ym;const kh=class extends Fh{constructor(e){super(e),this.element=new Um}},{visitors:{document:{objects:{Header:{$visitor:Ih}}}}}=ym;const Rh=class extends Ih{constructor(e){super(e),this.element=new Mm}},Ch=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wm||e(r)&&t("callback",r)&&s("object",r))),Th=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jm||e(r)&&t("components",r)&&s("object",r))),Nh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sm||e(r)&&t("contact",r)&&s("object",r))),qh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Am||e(r)&&t("example",r)&&s("object",r))),Dh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $m||e(r)&&t("externalDocumentation",r)&&s("object",r))),Bh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mm||e(r)&&t("header",r)&&s("object",r))),Lh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fm||e(r)&&t("info",r)&&s("object",r))),Vh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Im||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),Uh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rm||e(r)&&t("license",r)&&s("object",r))),zh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cm||e(r)&&t("link",r)&&s("object",r))),Gh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dm||e(r)&&t("openapi",r)&&s("string",r))),Hh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Lm||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),Jh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vm||e(r)&&t("operation",r)&&s("object",r))),Wh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Um||e(r)&&t("parameter",r)&&s("object",r))),Kh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zm||e(r)&&t("pathItem",r)&&s("object",r))),Zh=e=>{if(!Kh(e))return!1;if(!Ut(e.$ref))return!1;const t=ri(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Xh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gm||e(r)&&t("paths",r)&&s("object",r))),Yh=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jm||e(r)&&t("reference",r)&&s("object",r))),Qh=e=>{if(!Yh(e))return!1;if(!Ut(e.$ref))return!1;const t=ri(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ed=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wm||e(r)&&t("requestBody",r)&&s("object",r))),td=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Km||e(r)&&t("response",r)&&s("object",r))),sd=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zm||e(r)&&t("responses",r)&&s("object",r))),rd=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ym||e(r)&&t("schema",r)&&s("object",r))),nd=e=>Ht(e)&&e.classes.includes("boolean-json-schema"),id=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qm||e(r)&&t("securityRequirement",r)&&s("object",r))),od=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof eh||e(r)&&t("securityScheme",r)&&s("object",r))),cd=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof th||e(r)&&t("server",r)&&s("object",r))),ad=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sh||e(r)&&t("serverVariable",r)&&s("object",r))),ud=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Tm||e(r)&&t("mediaType",r)&&s("object",r)));const ld=class{parent;constructor({parent:e}){this.parent=e}};class pd extends(pc(jc,ld,dc)){constructor(e){super(e),this.element=new Ym,this.specPath=se(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Im.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handle$schema(e),this.handle$id(e),this.parent=this.element;const t=jc.prototype.ObjectElement.call(this,e);return Ut(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&&Vh(this.openApiSemanticElement.jsonSchemaDialect)?ri(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ut(this.openApiGenericElement.get("jsonSchemaDialect"))?ri(this.openApiGenericElement.get("jsonSchemaDialect")):ri(this.jsonSchemaDefaultDialect),e}handle$schema(e){if(ne(this.parent)&&!Ut(e.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(rd(this.parent)&&!Ut(e.get("$schema"))){const e=l(ri(this.parent.meta.get("inherited$schema")),ri(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}}handle$id(e){const t=void 0!==this.parent?us(this.parent.getMetaProperty("inherited$id",[])):new oe.wE,s=ri(e.get("$id"));Bi(s)&&t.push(s),this.element.setMetaProperty("inherited$id",t)}}const md=pd;const hd=class extends dc{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const dd=class extends dc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class fd extends(pc(Vc,ld,dc)){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 yd=fd;class _d extends(pc(fc,ld,dc)){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(Jt(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=us(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const gd=_d;class vd extends(pc(fc,ld,dc)){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(Jt(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=us(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const bd=vd;class xd extends(pc(fc,ld,dc)){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(Jt(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=us(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const Ed=xd;class wd extends(pc(Vc,ld,dc)){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 jd=wd;class Sd extends(pc(fc,ld,dc)){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(Jt(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=us(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),St}}const Od=Sd;class Pd extends(pc(Vc,ld,dc)){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 Ad=Pd;class $d extends(pc(Vc,ld,dc)){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 Md=$d;const Fd=class extends dc{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 kd=class extends dc{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Id=class extends dc{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Rd=class extends dc{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:Cd}}}}}=ym;const Td=class extends Cd{constructor(e){super(e),this.element=new Om,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:Nd}}}}}=ym;const qd=class extends Nd{constructor(e){super(e),this.element=new nh}};class Dd extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Qu,this.specPath=se(["document","objects","Schema"])}}const Bd=Dd;class Ld extends oe.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Ld.primaryClass)}}const Vd=Ld;class Ud extends(pc(Vc,dc)){constructor(e){super(e),this.element=new Vd,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(Yh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const zd=Ud,{visitors:{document:{objects:{Example:{$visitor:Gd}}}}}=ym;const Hd=class extends Gd{constructor(e){super(e),this.element=new Am}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Jd}}}}}=ym;const Wd=class extends Jd{constructor(e){super(e),this.element=new $m}},{visitors:{document:{objects:{Encoding:{$visitor:Kd}}}}}=ym;const Zd=class extends Kd{constructor(e){super(e),this.element=new Pm}},{visitors:{document:{objects:{Paths:{$visitor:Xd}}}}}=ym;const Yd=class extends Xd{constructor(e){super(e),this.element=new Gm}},{visitors:{document:{objects:{RequestBody:{$visitor:Qd}}}}}=ym;const ef=class extends Qd{constructor(e){super(e),this.element=new Wm}},{visitors:{document:{objects:{Callback:{$visitor:tf}}}}}=ym;const sf=class extends tf{constructor(e){super(e),this.element=new wm,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=tf.prototype.ObjectElement.call(this,e);return this.element.filter(Yh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},{visitors:{document:{objects:{Response:{$visitor:rf}}}}}=ym;const nf=class extends rf{constructor(e){super(e),this.element=new Km}},{visitors:{document:{objects:{Responses:{$visitor:of}}}}}=ym;const cf=class extends of{constructor(e){super(e),this.element=new Zm}},{visitors:{document:{objects:{Operation:{$visitor:af}}}}}=ym;const uf=class extends af{constructor(e){super(e),this.element=new Vm}},{visitors:{document:{objects:{PathItem:{$visitor:lf}}}}}=ym;const pf=class extends lf{constructor(e){super(e),this.element=new zm}},{visitors:{document:{objects:{SecurityScheme:{$visitor:mf}}}}}=ym;const hf=class extends mf{constructor(e){super(e),this.element=new eh}},{visitors:{document:{objects:{OAuthFlows:{$visitor:df}}}}}=ym;const ff=class extends df{constructor(e){super(e),this.element=new qm}},{visitors:{document:{objects:{OAuthFlow:{$visitor:yf}}}}}=ym;const _f=class extends yf{constructor(e){super(e),this.element=new Nm}};class gf extends oe.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(gf.primaryClass)}}const vf=gf;class bf extends(pc(Vc,dc)){constructor(e){super(e),this.element=new vf,this.specPath=e=>bc(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(Yh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Kh).forEach(((e,t)=>{e.setMetaProperty("webhook-name",ri(t))})),t}}const xf=bf,Ef={visitors:{value:ym.visitors.value,document:{objects:{OpenApi:{$visitor:oh,fixedFields:{openapi:ym.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:yh,servers:ym.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:xf,components:{$ref:"#/visitors/document/objects/Components"},security:ym.visitors.document.objects.OpenApi.fixedFields.security,tags:ym.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ah,fixedFields:{title:ym.visitors.document.objects.Info.fixedFields.title,description:ym.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:ym.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ym.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:lh,fixedFields:{name:ym.visitors.document.objects.Contact.fixedFields.name,url:ym.visitors.document.objects.Contact.fixedFields.url,email:ym.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:mh,fixedFields:{name:ym.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:ym.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:gh,fixedFields:{url:ym.visitors.document.objects.Server.fixedFields.url,description:ym.visitors.document.objects.Server.fixedFields.description,variables:ym.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:bh,fixedFields:{enum:ym.visitors.document.objects.ServerVariable.fixedFields.enum,default:ym.visitors.document.objects.ServerVariable.fixedFields.default,description:ym.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Oh,fixedFields:{schemas:Bd,responses:ym.visitors.document.objects.Components.fixedFields.responses,parameters:ym.visitors.document.objects.Components.fixedFields.parameters,examples:ym.visitors.document.objects.Components.fixedFields.examples,requestBodies:ym.visitors.document.objects.Components.fixedFields.requestBodies,headers:ym.visitors.document.objects.Components.fixedFields.headers,securitySchemes:ym.visitors.document.objects.Components.fixedFields.securitySchemes,links:ym.visitors.document.objects.Components.fixedFields.links,callbacks:ym.visitors.document.objects.Components.fixedFields.callbacks,pathItems:zd}},Paths:{$visitor:Yd},PathItem:{$visitor:pf,fixedFields:{$ref:ym.visitors.document.objects.PathItem.fixedFields.$ref,summary:ym.visitors.document.objects.PathItem.fixedFields.summary,description:ym.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:ym.visitors.document.objects.PathItem.fixedFields.servers,parameters:ym.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:uf,fixedFields:{tags:ym.visitors.document.objects.Operation.fixedFields.tags,summary:ym.visitors.document.objects.Operation.fixedFields.summary,description:ym.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:ym.visitors.document.objects.Operation.fixedFields.operationId,parameters:ym.visitors.document.objects.Operation.fixedFields.parameters,requestBody:ym.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:ym.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:ym.visitors.document.objects.Operation.fixedFields.deprecated,security:ym.visitors.document.objects.Operation.fixedFields.security,servers:ym.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Wd,fixedFields:{description:ym.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:ym.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:kh,fixedFields:{name:ym.visitors.document.objects.Parameter.fixedFields.name,in:ym.visitors.document.objects.Parameter.fixedFields.in,description:ym.visitors.document.objects.Parameter.fixedFields.description,required:ym.visitors.document.objects.Parameter.fixedFields.required,deprecated:ym.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:ym.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:ym.visitors.document.objects.Parameter.fixedFields.style,explode:ym.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:ym.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ym.visitors.document.objects.Parameter.fixedFields.example,examples:ym.visitors.document.objects.Parameter.fixedFields.examples,content:ym.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:ef,fixedFields:{description:ym.visitors.document.objects.RequestBody.fixedFields.description,content:ym.visitors.document.objects.RequestBody.fixedFields.content,required:ym.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Eh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:ym.visitors.document.objects.MediaType.fixedFields.example,examples:ym.visitors.document.objects.MediaType.fixedFields.examples,encoding:ym.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Zd,fixedFields:{contentType:ym.visitors.document.objects.Encoding.fixedFields.contentType,headers:ym.visitors.document.objects.Encoding.fixedFields.headers,style:ym.visitors.document.objects.Encoding.fixedFields.style,explode:ym.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:ym.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:cf,fixedFields:{default:ym.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:nf,fixedFields:{description:ym.visitors.document.objects.Response.fixedFields.description,headers:ym.visitors.document.objects.Response.fixedFields.headers,content:ym.visitors.document.objects.Response.fixedFields.content,links:ym.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:sf},Example:{$visitor:Hd,fixedFields:{summary:ym.visitors.document.objects.Example.fixedFields.summary,description:ym.visitors.document.objects.Example.fixedFields.description,value:ym.visitors.document.objects.Example.fixedFields.value,externalValue:ym.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:dh,fixedFields:{operationRef:ym.visitors.document.objects.Link.fixedFields.operationRef,operationId:ym.visitors.document.objects.Link.fixedFields.operationId,parameters:ym.visitors.document.objects.Link.fixedFields.parameters,requestBody:ym.visitors.document.objects.Link.fixedFields.requestBody,description:ym.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Rh,fixedFields:{description:ym.visitors.document.objects.Header.fixedFields.description,required:ym.visitors.document.objects.Header.fixedFields.required,deprecated:ym.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:ym.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:ym.visitors.document.objects.Header.fixedFields.style,explode:ym.visitors.document.objects.Header.fixedFields.explode,allowReserved:ym.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:ym.visitors.document.objects.Header.fixedFields.example,examples:ym.visitors.document.objects.Header.fixedFields.examples,content:ym.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Ah,fixedFields:{name:ym.visitors.document.objects.Tag.fixedFields.name,description:ym.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Mh,fixedFields:{$ref:ym.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:md,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:hd,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:dd,$defs:yd,$comment:{$ref:"#/visitors/value"},allOf:gd,anyOf:bd,oneOf:Ed,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:jd,prefixItems:Od,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Ad,patternProperties:Md,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:Fd,enum:kd,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:Id,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:Rd,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:Td,fixedFields:{propertyName:ym.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:ym.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:qd,fixedFields:{name:ym.visitors.document.objects.XML.fixedFields.name,namespace:ym.visitors.document.objects.XML.fixedFields.namespace,prefix:ym.visitors.document.objects.XML.fixedFields.prefix,attribute:ym.visitors.document.objects.XML.fixedFields.attribute,wrapped:ym.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:hf,fixedFields:{type:ym.visitors.document.objects.SecurityScheme.fixedFields.type,description:ym.visitors.document.objects.SecurityScheme.fixedFields.description,name:ym.visitors.document.objects.SecurityScheme.fixedFields.name,in:ym.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:ym.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:ym.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:ym.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:ff,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:_f,fixedFields:{authorizationUrl:ym.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:ym.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:ym.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:ym.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:jh}},extension:{$visitor:ym.visitors.document.extension.$visitor}}}},wf=e=>{if(Vt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},jf={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"],...ys},Sf={namespace:e=>{const{base:t}=e;return t.register("callback",wm),t.register("components",jm),t.register("contact",Sm),t.register("discriminator",Om),t.register("encoding",Pm),t.register("example",Am),t.register("externalDocumentation",$m),t.register("header",Mm),t.register("info",Fm),t.register("jsonSchemaDialect",Im),t.register("license",Rm),t.register("link",Cm),t.register("mediaType",Tm),t.register("oAuthFlow",Nm),t.register("oAuthFlows",qm),t.register("openapi",Dm),t.register("openApi3_1",Lm),t.register("operation",Vm),t.register("parameter",Um),t.register("pathItem",zm),t.register("paths",Gm),t.register("reference",Jm),t.register("requestBody",Wm),t.register("response",Km),t.register("responses",Zm),t.register("schema",Ym),t.register("securityRequirement",Qm),t.register("securityScheme",eh),t.register("server",th),t.register("serverVariable",sh),t.register("tag",rh),t.register("xml",nh),t}},Of=()=>{const e=ut(Sf);return{predicates:{...i,isElement:Vt,isStringElement:Ut,isArrayElement:Wt,isObjectElement:Jt,isMemberElement:Kt,isServersElement:Ca,includesClasses:is,hasElementSourceMap:rs},namespace:e}},Pf=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,oe.e)(e),n=Wn(Ef),i=new(Ie(t,n))({specObj:n});return _s(r,i),ks(i.element,s,{toolboxCreator:Of,visitorOptions:{keyMap:jf,nodeTypeGetter:wf}})},Af=e=>(t,s={})=>Pf(t,{specPath:e,...s});wm.refract=Af(["visitors","document","objects","Callback","$visitor"]),jm.refract=Af(["visitors","document","objects","Components","$visitor"]),Sm.refract=Af(["visitors","document","objects","Contact","$visitor"]),Am.refract=Af(["visitors","document","objects","Example","$visitor"]),Om.refract=Af(["visitors","document","objects","Discriminator","$visitor"]),Pm.refract=Af(["visitors","document","objects","Encoding","$visitor"]),$m.refract=Af(["visitors","document","objects","ExternalDocumentation","$visitor"]),Mm.refract=Af(["visitors","document","objects","Header","$visitor"]),Fm.refract=Af(["visitors","document","objects","Info","$visitor"]),Im.refract=Af(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Rm.refract=Af(["visitors","document","objects","License","$visitor"]),Cm.refract=Af(["visitors","document","objects","Link","$visitor"]),Tm.refract=Af(["visitors","document","objects","MediaType","$visitor"]),Nm.refract=Af(["visitors","document","objects","OAuthFlow","$visitor"]),qm.refract=Af(["visitors","document","objects","OAuthFlows","$visitor"]),Dm.refract=Af(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Lm.refract=Af(["visitors","document","objects","OpenApi","$visitor"]),Vm.refract=Af(["visitors","document","objects","Operation","$visitor"]),Um.refract=Af(["visitors","document","objects","Parameter","$visitor"]),zm.refract=Af(["visitors","document","objects","PathItem","$visitor"]),Gm.refract=Af(["visitors","document","objects","Paths","$visitor"]),Jm.refract=Af(["visitors","document","objects","Reference","$visitor"]),Wm.refract=Af(["visitors","document","objects","RequestBody","$visitor"]),Km.refract=Af(["visitors","document","objects","Response","$visitor"]),Zm.refract=Af(["visitors","document","objects","Responses","$visitor"]),Ym.refract=Af(["visitors","document","objects","Schema","$visitor"]),Qm.refract=Af(["visitors","document","objects","SecurityRequirement","$visitor"]),eh.refract=Af(["visitors","document","objects","SecurityScheme","$visitor"]),th.refract=Af(["visitors","document","objects","Server","$visitor"]),sh.refract=Af(["visitors","document","objects","ServerVariable","$visitor"]),rh.refract=Af(["visitors","document","objects","Tag","$visitor"]),nh.refract=Af(["visitors","document","objects","XML","$visitor"]);const $f=h(-1);const Mf=class extends Sn{};const Ff=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Mf("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Mf("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Mf("latest method in MediaTypes class is not yet implemented.")}};class kf extends Ff{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 $f(this.filterByFormat(e))}}const If=new kf("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"),Rf=new kf(...If.filterByFormat("generic"),...If.filterByFormat("json")),Cf=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,Tf=async e=>Cf.test(e)&&await(async e=>{if(!$r.test(e))return!1;try{return"ERROR"!==(await Et(e)).rootNode.type}catch{return!1}})(e),Nf=async(e,t={})=>{const s=f({},"refractorOpts",t),r=_(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const r=await Et(e);let n;return n="indirect"===s?Ar(r,{sourceMap:t}):Us(r,{sourceMap:t}),n})(e,r),{result:i}=n;if(ie(i)){const e=Lm.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},qf=ut(Sf)})(),r})()));