@swagger-api/apidom-parser-adapter-openapi-json-3-0 0.92.0 → 0.94.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_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var e={9515:(e,t,r)=>{var n=r(8761)(r(7772),"DataView");e.exports=n},9612:(e,t,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),a=r(4769);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,r)=>{var n=r(8761)(r(7772),"Map");e.exports=n},6738:(e,t,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},2760:(e,t,r)=>{var n=r(8761)(r(7772),"Promise");e.exports=n},2143:(e,t,r)=>{var n=r(8761)(r(7772),"Set");e.exports=n},5386:(e,t,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),c=r(1418);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},857:(e,t,r)=>{var n=r(7772).Symbol;e.exports=n},9162:(e,t,r)=>{var n=r(7772).Uint8Array;e.exports=n},3215:(e,t,r)=>{var n=r(8761)(r(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},1634:(e,t,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),c=r(7598),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&s(e),p=!r&&!l&&o(e),h=!r&&!l&&!p&&c(e),m=r||l||p||h,d=m?n(e.length,String):[],f=d.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,f))||d.push(_);return d}},5067:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},7064:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},2218:(e,t,r)=>{var n=r(1225);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1897:(e,t,r)=>{var n=r(5067),s=r(6152);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},3366:(e,t,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},8746:(e,t,r)=>{var n=r(1952),s=r(5125);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},1952:(e,t,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),c=r(6152),u=r(3226),l=r(7598),p="[object Arguments]",h="[object Array]",m="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,_,y){var g=c(e),b=c(t),v=g?h:a(e),w=b?h:a(t),E=(v=v==p?m:v)==m,x=(w=w==p?m:w)==m,S=v==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(e)?s(e,t,r,f,_,y):i(e,t,v,r,f,_,y);if(!(1&r)){var j=E&&d.call(e,"__wrapped__"),O=x&&d.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,A=O?t.value():t;return y||(y=new n),_(P,A,r,f,y)}}return!!S&&(y||(y=new n),o(e,t,r,f,_,y))}},6840:(e,t,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:a).test(o(e))}},5522:(e,t,r)=>{var n=r(3366),s=r(1158),i=r(5125),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)&&s(e.length)&&!!o[n(e)]}},6411:(e,t,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6473:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,r)=>{var n=r(7772)["__core-js_shared__"];e.exports=n},4871:(e,t,r)=>{var n=r(5386),s=r(7064),i=r(9950);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var d=-1,f=!0,_=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++d<l;){var y=e[d],g=t[d];if(o)var b=u?o(g,y,d,t,e,c):o(y,g,d,e,t,c);if(void 0!==b){if(b)continue;f=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(y===e||a(y,e,r,o,c)))return _.push(t)}))){f=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){f=!1;break}}return c.delete(e),c.delete(t),f}},1491:(e,t,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),a=r(5179),c=r(4207),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return 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 m=a;case"[object Set]":var d=1&n;if(m||(m=c),e.size!=t.size&&!d)return!1;var f=h.get(e);if(f)return f==t;n|=2,h.set(e,t);var _=o(m(e),m(t),n,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},7416:(e,t,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=n(e),l=u.length;if(l!=n(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),d=a.get(t);if(m&&d)return m==t&&d==e;var f=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var y=e[h=u[p]],g=t[h];if(i)var b=c?i(g,y,h,t,e,a):i(y,g,h,e,t,a);if(!(void 0===b?y===g||o(y,g,r,i,a):b)){f=!1;break}_||(_="constructor"==h)}if(f&&!_){var v=e.constructor,w=t.constructor;v==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(f=!1)}return a.delete(e),a.delete(t),f}},1242:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},3483:(e,t,r)=>{var n=r(1897),s=r(633),i=r(249);e.exports=function(e){return n(e,i,s)}},7937:(e,t,r)=>{var n=r(8304);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8761:(e,t,r)=>{var n=r(6840),s=r(8109);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},2107:(e,t,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},633:(e,t,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},940:(e,t,r)=>{var n=r(9515),s=r(326),i=r(2760),o=r(2143),a=r(3215),c=r(3366),u=r(7035),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",d="[object DataView]",f=u(n),_=u(s),y=u(i),g=u(o),b=u(a),v=c;(n&&v(new n(new ArrayBuffer(1)))!=d||s&&v(new s)!=l||i&&v(i.resolve())!=p||o&&v(new o)!=h||a&&v(new a)!=m)&&(v=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case f:return d;case _:return l;case y:return p;case g:return h;case b:return m}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,r)=>{var n=r(9191);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},4174:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},7942:(e,t,r)=>{var n=r(9191);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,r)=>{var n=r(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},8028:(e,t,r)=>{var n=r(2218);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},2344:(e,t,r)=>{var n=r(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,r)=>{var n=r(2218);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},2411:(e,t,r)=>{var n=r(9612),s=r(235),i=r(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(e,t,r)=>{var n=r(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,r)=>{var n=r(7937);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},9191:(e,t,r)=>{var n=r(8761)(Object,"create");e.exports=n},4248:(e,t,r)=>{var n=r(241)(Object.keys,Object);e.exports=n},4146:(e,t,r)=>{e=r.nmd(e);var n=r(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7772:(e,t,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5243:(e,t,r)=>{var n=r(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,r)=>{var n=r(235),s=r(326),i=r(6738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7035: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""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,r)=>{var n=r(1049),s=r(1158);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},4335:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3226:(e,t,r)=>{e=r.nmd(e);var n=r(7772),s=r(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8149:(e,t,r)=>{var n=r(8746);e.exports=function(e,t){return n(e,t)}},1049:(e,t,r)=>{var n=r(3366),s=r(9259);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,r)=>{var n=r(3366),s=r(6152),i=r(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7598:(e,t,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},249:(e,t,r)=>{var n=r(1634),s=r(6411),i=r(7878);e.exports=function(e){return i(e)?n(e):s(e)}},1570: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)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,r)=>{const n=r(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026: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},5140:(e,t,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),a=r(9259),c=r(2947),u=r(3756);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(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,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,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3853:(e,t,r)=>{const n=r(1570),s=r(1178);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),a=r(3312),c=r(1641),u=r(8858),l=r(3860),p=r(5202),h=r(2320),m=r(1178),d=r(3853),f=r(3026);function _(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}n.prototype.ObjectElement=l,n.prototype.RefElement=h,n.prototype.MemberElement=u,n.prototype.refract=_,m.prototype.refract=_,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:d,KeyValuePair:f}},5202:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,r)=>{const n=r(5140),s=r(3756);t.lS=n,t.KeyValuePair=r(3026),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(2947),r(8910)},1641:(e,t,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}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},3312:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof 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 s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new 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 s){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},8858:(e,t,r)=>{const n=r(3026),s=r(6420);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},3860:(e,t,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},9542:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,r)=>{const n=r(2947);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},6591:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",d="deepProps",f="deepStatics",_="deepConf",y="initializers",g="methods",b="composers",v="compose";function w(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 x=E.bind(0,(function(e,t){if(t)for(var r=w(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function S(e){return"function"==typeof e}function j(e){return e&&"object"==typeof e||S(e)}function O(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=E.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!O(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(O(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function A(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return S(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function n(r,n){j(t[r])&&(j(e[r])||(e[r]={}),(n||x)(e[r],t[r]))}function s(n){(r=A(e[n],t[n]))&&(e[n]=r)}return t&&j(t=t[v]||t)&&(n(g),n(o),n(a,P),n(c),n(u),n(l,P),n(p),n(h),n(m,P),s(y),s(b)),e}function M(){return function(e){return r=function e(r){var n,s,i=e[v]||{},u={__proto__:i[g]},l=i[y],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&P(u,h),(h=i[o])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(r===t&&(r={}),i=0;i<l.length;)S(n=l[i++])&&(u=(s=n.call(u,r,{instance:u,stamp:e,args:p}))===t?u:s);return u},(n=e[l])&&P(r,n),(n=e[u])&&x(r,n),(n=e[p])&&Object.defineProperties(r,n),n=S(r[v])?r[v]:M,x(r[v]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function N(e){return S(e)&&S(e[v])}var R={};function I(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}R[g]=I(g,x),R[o]=R.props=I(o,x),R[y]=R.init=I(y,A),R[b]=I(b,A),R[a]=R[d]=I(a,P),R[u]=R.statics=I(u,x),R[l]=R[f]=I(l,P),R[h]=R.conf=I(h,x),R[m]=R[_]=I(m,P),R[c]=I(c,x),R[p]=I(p,x),n=R[v]=x((function(){for(var e,w,E=0,S=[],O=arguments,k=this;E<O.length;)j(e=O[E++])&&S.push(N(e)?e:((s={})[g]=(w=e)[g]||t,n=w.props,s[o]=j((r=w[o])||n)?x({},n,r):t,s[y]=A(w.init,w[y]),s[b]=A(w[b]),n=w[d],s[a]=j((r=w[a])||n)?P({},n,r):t,s[c]=w[c],n=w.statics,s[u]=j((r=w[u])||n)?x({},n,r):t,n=w[f],s[l]=j((r=w[l])||n)?P({},n,r):t,r=w[p],s[p]=j((n=w.name&&{name:{value:w.name}})||r)?x({},r,n):t,n=w.conf,s[h]=j((r=w[h])||n)?x({},n,r):t,n=w[_],s[m]=j((r=w[m])||n)?P({},n,r):t,s));if(e=M.apply(k||i,S),k&&S.unshift(k),Array.isArray(O=e[v][b]))for(E=0;E<O.length;)e=N(k=O[E++]({stamp:e,composables:S}))?k:e;return e}),R),R.create=function(){return this.apply(t,arguments)},(s={})[u]=R,i=M(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},9794:(e,t,r)=>{var n=void 0!==n?n:{},s=function(){var t,s="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||(n=Object.assign({},n,o),t=new Promise((t=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,h=[],m="./this.program",d=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var f,_,y,g,b,v="";c?(v=p?r(6287).dirname(v)+"/":"//",f=function(e,t){return g||(g=r(5530)),b||(b=r(6287)),e=b.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(f=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=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?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(h=n.arguments),n.thisProgram&&(m=n.thisProgram),n.quit&&(d=n.quit);var E,x=16,S=[];function j(e,t){if(!E){E=new WeakMap;for(var r=0;r<Z.length;r++){var n=Z.get(r);n&&E.set(n,r)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.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(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[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(s,i)}return E.set(e,s),s}var O,P=n.dynamicLibraries||[];n.wasmBinary&&(O=n.wasmBinary);var A,k=n.noExitRuntime||!0;function M(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":T[e>>0]=t;break;case"i16":$[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":L[e>>2]=t;break;case"double":B[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function N(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return T[e>>0];case"i16":return $[e>>1];case"i32":case"i64":return q[e>>2];case"float":return L[e>>2];case"double":return B[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var R=!1;function I(e,t){e||ae("Assertion failed: "+t)}var C,T,F,$,q,L,B,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&D)return D.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<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|a)}else i+=String.fromCharCode(o)}return i}function z(e,t){return e?V(F,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-s}function G(e,t,r){return U(e,F,t,r)}function W(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function J(e){var t=W(e)+1,r=ze(t);return U(e,T,r,t),r}function K(e){C=e,n.HEAP8=T=new Int8Array(e),n.HEAP16=$=new Int16Array(e),n.HEAP32=q=new Int32Array(e),n.HEAPU8=F=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=L=new Float32Array(e),n.HEAPF64=B=new Float64Array(e)}var H=n.INITIAL_MEMORY||33554432;(A=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(C=A.buffer),H=C.byteLength,K(C);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ae(e){throw n.onAbort&&n.onAbort(e),w(e+=""),R=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&O)return new Uint8Array(O);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return n.locateFile?n.locateFile(e,v):v+e}(ce));var de={},fe={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function ye(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");I(0!=n.length,"need dylink section"),e=new Int8Array(n[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,r(),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 s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);s.neededDynlibs.push(u)}return s}var ge=0;function be(){return k||ge>0}function ve(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var s=ve(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function je(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!Se(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==de[t].value)&&("function"==typeof n?de[t].value=j(n):"number"==typeof n?de[t].value=n:w("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function Oe(e,t){var r,s;return t&&(r=qe["orig$"+e]),r||(r=qe[e]),r||(r=n[ve(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=De();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Pe(e,t){var r=ye(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(e){if(te)return Le(e);var t=xe,r=t+e+15&-16;return xe=r,de.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),c=Z.length;Z.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)T[u]=0;for(u=c;u<c+r.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Oe(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:l,wasi_snapshot_preview1:l};function h(e){for(var n=0;n<r.tableSize;n++){var s=Z.get(c+n);s&&E.set(s,c+n)}o=je(e.exports,a),t.allowUndefined||ke();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 m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(d,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),n())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=Ee.loadedLibNames[e];if(s)return r=Ee.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return s=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in de)if(0==de[e].value){var t=Oe(e,!0);"function"==typeof t?de[e].value=j(t,t.sig):"number"==typeof t?de[e].value=t:I(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=xe;var Me,Ne=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ae()}n._abort=Re,Re.sig="v",Me=c?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 r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Be()>>2]=28,-1;r=Me()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Ce(e){try{return A.grow(e-C.byteLength+65535>>>16),K(A.buffer),1}catch(e){}}function Te(e){Ke(e)}function Fe(e){}Ie.sig="iii",Te.sig="vi",Fe.sig="vi";var $e,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:Ne,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,r){F.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=F.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Ce(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Te,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const r=z(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=ct(t,{row:r,column:n});"string"==typeof i?(M(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);$[t>>1]=i,t+=2}$[t>>1]=0}(i,e,10240)):M(s,0,"i32")}},Le=(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 r=e.exports;r=je(r,1024),n.asm=r;var s,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),we(r),s=n.asm.__wasm_call_ctors,Y.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!O&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}O||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return(Le=n._malloc=n.asm.malloc).apply(null,arguments)}),Be=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Be=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),De=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(De=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ve=n.stackRestore=function(){return(Ve=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},ze=n.stackAlloc=function(){return(ze=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ue=n._setThrew=function(){return(Ue=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?ze(e.length):Le(e.length),e.subarray||e.slice?F.set(e,r):F.set(new Uint8Array(e),r),r},se=function e(){$e||Je(),$e||(se=e)};var We=!1;function Je(e){function t(){$e||($e=!0,n.calledRun=!0,R||(te=!0,_e(Y),_e(Q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),He&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=ze(4*(r+1));q[s>>2]=J(m);for(var i=1;i<r;i++)q[(s>>2)+i]=J(e[i-1]);q[(s>>2)+r]=0;try{Ke(t(r,s),!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]),w("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,re>0||!We&&(function(){if(P.length){if(!y)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(),ke()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),We=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),X.unshift(e);var e;_e(X)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&be()&&0===e||(be()||(n.onExit&&n.onExit(e),R=!0),d(e,new Ge(e)))}if(n.run=Je,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var He=!0;n.noInitialRun&&(He=!1),Je();const Ze=n,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=N(at,"i32"),ot=N(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=N(at,"i32"),this[1]=N(at+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 r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. 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,r){if("string"==typeof e)ct=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=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 n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Ze._calloc(n,tt);for(let t=0;t<n;t++)Ot(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,ct);return ct=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,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}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=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(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]),wt(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=N(at,"i32"),r=N(at+Ye,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Pt(e),e+=tt;Ze._free(r)}return n}}class ht{constructor(e,t){gt(e),this.tree=t}get typeId(){return vt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return vt(this),Ze._ts_node_end_point_wasm(this.tree[0]),jt(at)}get endIndex(){return vt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return vt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return vt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return vt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return vt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return vt(this),Ze._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return vt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return vt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return vt(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){vt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Ye,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){vt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=N(at,"i32"),t=N(at+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Qe;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=Ze._malloc(Ye*n.length);for(let e=0,t=n.length;e<t;e++)M(i+e*Ye,n[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=N(at,"i32"),a=N(at+Ye,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Qe}return Ze._free(a),Ze._free(i),c}get nextSibling(){return vt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return vt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=at+Qe;return M(r,e,"i32"),M(r+Ye,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=at+Qe;return M(r,e,"i32"),M(r+Ye,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=at+Qe;return St(r,e),St(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=at+Qe;return St(r,e),St(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return vt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,this.tree)}toString(){vt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=F[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){gt(e),this.tree=t,xt(this)}delete(){Et(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),Et(this,at+Qe),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(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 _t(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),jt(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),jt(at)}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]),wt(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 xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(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]=z(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?z(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 r=W(e),n=Ze._malloc(r+1);G(e,n,r+1);const s=Ze._ts_language_symbol_for_name(this[0],n,r,t);return Ze._free(n),s||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?z(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=W(e),r=Ze._malloc(t+1);G(e,r,t+1);const n=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!n){const t=N(at+Ye,"i32"),n=z(r,N(at,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[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 ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Ze._free(r),i}const s=Ze._ts_query_string_count(n),i=Ze._ts_query_capture_count(n),o=Ze._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(n,e,at),r=N(at,"i32");a[e]=z(t,r)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(n,e,at),r=N(at,"i32");c[e]=z(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(n,e,at),r=N(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=N(i,"i32"),r=N(i+=Ye,"i32");if(i+=Ye,1===t)s.push({type:"capture",name:a[r]});else if(2===t)s.push({type:"string",value:c[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;m[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.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][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ze._free(r),new ft(Xe,n,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(5530);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new dt(Xe,n)}))}}class ft{constructor(e,t,r,n,s,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=N(at,"i32"),o=N(at+Ye,"i32"),a=N(at+2*Ye,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=N(l,"i32"),n=N(l+=Ye,"i32");l+=Ye;const s=new Array(n);if(l=yt(this,e.tree,l,s),this.textPredicates[r].every((e=>e(s)))){c[u++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(c[t].setProperties=e);const n=this.assertedProperties[r];n&&(c[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=N(at,"i32"),o=N(at+Ye,"i32"),a=N(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=N(l,"i32"),r=N(l+=Ye,"i32"),n=N(l+=Ye,"i32");if(l+=Ye,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function yt(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=N(r,"i32"),o=wt(t,r+=Ye);r+=Qe,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function bt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function vt(e){let t=at;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 wt(e,t=at){const r=N(t,"i32");if(0===r)return null;const n=N(t+=Ye,"i32"),s=N(t+=Ye,"i32"),i=N(t+=Ye,"i32"),o=N(t+=Ye,"i32"),a=new ht(Xe,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){M(t+0*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function xt(e){e[0]=N(at+0*Ye,"i32"),e[1]=N(at+1*Ye,"i32"),e[2]=N(at+2*Ye,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function jt(e){return{row:N(e,"i32"),column:N(e+Ye,"i32")}}function Ot(e,t){St(e,t.startPosition),St(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=jt(e),e+=et,t.endPosition=jt(e),e+=et,t.startIndex=N(e,"i32"),e+=Ye,t.endIndex=N(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,n.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{},1427:(e,t,r)=>{e.exports=r(1125)},1681:(e,t,r)=>{"use strict";var n=r(7497);e.exports=n},3258:(e,t,r)=>{"use strict";r(2777),r(733),r(1835),r(6449),r(9383);var n=r(8422);e.exports=n.AggregateError},1125:(e,t,r)=>{"use strict";e.exports=r(3985)},3985:(e,t,r)=>{"use strict";r(3584);var n=r(1681);e.exports=n},5375:(e,t,r)=>{"use strict";var n=r(8563),s=r(5787),i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not a function")}},692:(e,t,r)=>{"use strict";var n=r(8563),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},7171:e=>{"use strict";e.exports=function(){}},457:(e,t,r)=>{"use strict";var n=r(8257),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw new i(s(e)+" is not an object")}},3346:(e,t,r)=>{"use strict";var n=r(4312),s=r(1940),i=r(8960),o=function(e){return function(t,r,o){var a,c=n(t),u=i(c),l=s(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},88:(e,t,r)=>{"use strict";var n=r(8814),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},2327:(e,t,r)=>{"use strict";var n=r(6694),s=r(8563),i=r(88),o=r(379)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},1318:(e,t,r)=>{"use strict";var n=r(3941),s=r(5956),i=r(3335),o=r(4376);e.exports=function(e,t,r){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(e,p)||r&&n(r,p)||c(e,p,u(t,p))}}},8536:(e,t,r)=>{"use strict";var n=r(2998);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},9497:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},1370:(e,t,r)=>{"use strict";var n=r(1815),s=r(4376),i=r(7971);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},7971:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},4500:(e,t,r)=>{"use strict";var n=r(1370);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},8194:(e,t,r)=>{"use strict";var n=r(8426),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},1815:(e,t,r)=>{"use strict";var n=r(2998);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5361:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},6327:(e,t,r)=>{"use strict";var n=r(8426),s=r(8257),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},8987: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}},9954:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5057:(e,t,r)=>{"use strict";var n,s,i=r(8426),o=r(9954),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},8573:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4456:(e,t,r)=>{"use strict";var n=r(8814),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4151:(e,t,r)=>{"use strict";var n=r(1370),s=r(4456),i=r(5111),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},5111:(e,t,r)=>{"use strict";var n=r(2998),s=r(7971);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9011:(e,t,r)=>{"use strict";var n=r(8426),s=r(4877),i=r(9730),o=r(8563),a=r(3335).f,c=r(8722),u=r(8422),l=r(1207),p=r(1370),h=r(3941),m=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,f,_,y,g,b,v,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?n:x?n[w]:(n[w]||{}).prototype,O=E?u:u[w]||p(u,w,{})[w],P=O.prototype;for(f in t)s=!(r=c(E?f:w+(x?".":"#")+f,e.forced))&&j&&h(j,f),y=O[f],s&&(g=e.dontCallGetSet?(v=a(j,f))&&v.value:j[f]),_=s&&g?g:t[f],s&&typeof y==typeof _||(b=e.bind&&s?l(_,n):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(b,"sham",!0),p(O,f,b),S&&(h(u,d=w+"Prototype")||p(u,d,{}),p(u[d],f,_),e.real&&P&&(r||!P[f])&&p(P,f,_)))}},2998:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},4877:(e,t,r)=>{"use strict";var n=r(5083),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},1207:(e,t,r)=>{"use strict";var n=r(9730),s=r(5375),i=r(5083),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},5083:(e,t,r)=>{"use strict";var n=r(2998);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},200:(e,t,r)=>{"use strict";var n=r(5083),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},5339:(e,t,r)=>{"use strict";var n=r(1815),s=r(3941),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},2799:(e,t,r)=>{"use strict";var n=r(8814),s=r(5375);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9730:(e,t,r)=>{"use strict";var n=r(88),s=r(8814);e.exports=function(e){if("Function"===n(e))return s(e)}},8814:(e,t,r)=>{"use strict";var n=r(5083),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},6589:(e,t,r)=>{"use strict";var n=r(8422),s=r(8426),i=r(8563),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},2630:(e,t,r)=>{"use strict";var n=r(2327),s=r(2833),i=r(5157),o=r(2444),a=r(379)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},1291:(e,t,r)=>{"use strict";var n=r(200),s=r(5375),i=r(457),o=r(5787),a=r(2630),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw new c(o(e)+" is not iterable")}},2833:(e,t,r)=>{"use strict";var n=r(5375),s=r(5157);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8426:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3941:(e,t,r)=>{"use strict";var n=r(8814),s=r(8389),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},3006:e=>{"use strict";e.exports={}},4812:(e,t,r)=>{"use strict";var n=r(6589);e.exports=n("document","documentElement")},4632:(e,t,r)=>{"use strict";var n=r(1815),s=r(2998),i=r(6327);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6541:(e,t,r)=>{"use strict";var n=r(8814),s=r(2998),i=r(88),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},9330:(e,t,r)=>{"use strict";var n=r(8563),s=r(8257),i=r(8597);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},1609:(e,t,r)=>{"use strict";var n=r(8257),s=r(1370);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8551:(e,t,r)=>{"use strict";var n,s,i,o=r(8268),a=r(8426),c=r(8257),u=r(1370),l=r(3941),p=r(6028),h=r(5430),m=r(3006),d="Object already initialized",f=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,n=function(e,t){if(y.has(e))throw new f(d);return t.facade=e,y.set(e,t),t},s=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=h("state");m[g]=!0,n=function(e,t){if(l(e,g))throw new f(d);return t.facade=e,u(e,g,t),t},s=function(e){return l(e,g)?e[g]:{}},i=function(e){return l(e,g)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw new f("Incompatible receiver, "+e+" required");return r}}}},2576:(e,t,r)=>{"use strict";var n=r(379),s=r(2444),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},8563:(e,t,r)=>{"use strict";var n=r(5361),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},8722:(e,t,r)=>{"use strict";var n=r(2998),s=r(8563),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},5157:e=>{"use strict";e.exports=function(e){return null==e}},8257:(e,t,r)=>{"use strict";var n=r(8563),s=r(5361),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},7736:e=>{"use strict";e.exports=!0},6753:(e,t,r)=>{"use strict";var n=r(6589),s=r(8563),i=r(7367),o=r(9378),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},3490:(e,t,r)=>{"use strict";var n=r(1207),s=r(200),i=r(457),o=r(5787),a=r(2576),c=r(8960),u=r(7367),l=r(1291),p=r(2630),h=r(6889),m=TypeError,d=function(e,t){this.stopped=e,this.result=t},f=d.prototype;e.exports=function(e,t,r){var _,y,g,b,v,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),A=n(t,x),k=function(e){return _&&h(_,"normal",e),new d(!0,e)},M=function(e){return S?(i(e),P?A(e[0],e[1],k):A(e[0],e[1])):P?A(e,k):A(e)};if(j)_=e.iterator;else if(O)_=e;else{if(!(y=p(e)))throw new m(o(e)+" is not iterable");if(a(y)){for(g=0,b=c(e);b>g;g++)if((v=M(e[g]))&&u(f,v))return v;return new d(!1)}_=l(e,y)}for(w=j?e.next:_.next;!(E=s(w,_)).done;){try{v=M(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof v&&v&&u(f,v))return v}return new d(!1)}},6889:(e,t,r)=>{"use strict";var n=r(200),s=r(457),i=r(2833);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},7323:(e,t,r)=>{"use strict";var n=r(374).IteratorPrototype,s=r(1504),i=r(7971),o=r(9468),a=r(2444),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=s(n,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},5994:(e,t,r)=>{"use strict";var n=r(9011),s=r(200),i=r(7736),o=r(5339),a=r(8563),c=r(7323),u=r(9814),l=r(8597),p=r(9468),h=r(1370),m=r(4500),d=r(379),f=r(2444),_=r(374),y=o.PROPER,g=o.CONFIGURABLE,b=_.IteratorPrototype,v=_.BUGGY_SAFARI_ITERATORS,w=d("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,r,o,d,_,O){c(r,t,o);var P,A,k,M=function(e){if(e===d&&T)return T;if(!v&&e&&e in I)return I[e];switch(e){case E:case x:case S:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",R=!1,I=e.prototype,C=I[w]||I["@@iterator"]||d&&I[d],T=!v&&C||M(d),F="Array"===t&&I.entries||C;if(F&&(P=u(F.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===b||(l?l(P,b):a(P[w])||m(P,w,j)),p(P,N,!0,!0),i&&(f[N]=j)),y&&d===x&&C&&C.name!==x&&(!i&&g?h(I,"name",x):(R=!0,T=function(){return s(C,this)})),d)if(A={values:M(x),keys:_?T:M(E),entries:M(S)},O)for(k in A)(v||R||!(k in I))&&m(I,k,A[k]);else n({target:t,proto:!0,forced:v||R},A);return i&&!O||I[w]===T||m(I,w,T,{name:d}),f[t]=T,A}},374:(e,t,r)=>{"use strict";var n,s,i,o=r(2998),a=r(8563),c=r(8257),u=r(1504),l=r(9814),p=r(4500),h=r(379),m=r(7736),d=h("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):f=!0),!c(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:m&&(n=u(n)),a(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},2444:e=>{"use strict";e.exports={}},8960:(e,t,r)=>{"use strict";var n=r(9261);e.exports=function(e){return n(e.length)}},5703:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5517:(e,t,r)=>{"use strict";var n=r(4809);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},1504:(e,t,r)=>{"use strict";var n,s=r(457),i=r(8253),o=r(8573),a=r(3006),c=r(4812),u=r(6327),l=r(5430),p="prototype",h="script",m=l("IE_PROTO"),d=function(){},f=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&n?_(n):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):_(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=s(e),r=new d,d[p]=null,r[m]=e):r=y(),void 0===t?r:i.f(r,t)}},8253:(e,t,r)=>{"use strict";var n=r(1815),s=r(4210),i=r(4376),o=r(457),a=r(4312),c=r(4230);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,r=s[l++],n[r]);return e}},4376:(e,t,r)=>{"use strict";var n=r(1815),s=r(4632),i=r(4210),o=r(457),a=r(9722),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=l(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},3335:(e,t,r)=>{"use strict";var n=r(1815),s=r(200),i=r(2886),o=r(7971),a=r(4312),c=r(9722),u=r(3941),l=r(4632),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},4243:(e,t,r)=>{"use strict";var n=r(4062),s=r(8573).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},2306:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},9814:(e,t,r)=>{"use strict";var n=r(3941),s=r(8563),i=r(8389),o=r(5430),a=r(8536),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},7367:(e,t,r)=>{"use strict";var n=r(8814);e.exports=n({}.isPrototypeOf)},4062:(e,t,r)=>{"use strict";var n=r(8814),s=r(3941),i=r(4312),o=r(3346).indexOf,a=r(3006),c=n([].push);e.exports=function(e,t){var r,n=i(e),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;t.length>u;)s(n,r=t[u++])&&(~o(l,r)||c(l,r));return l}},4230:(e,t,r)=>{"use strict";var n=r(4062),s=r(8573);e.exports=Object.keys||function(e){return n(e,s)}},2886:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8597:(e,t,r)=>{"use strict";var n=r(2799),s=r(457),i=r(692);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},3024:(e,t,r)=>{"use strict";var n=r(6694),s=r(2327);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},2483:(e,t,r)=>{"use strict";var n=r(200),s=r(8563),i=r(8257),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw new o("Can't convert object to primitive value")}},5956:(e,t,r)=>{"use strict";var n=r(6589),s=r(8814),i=r(4243),o=r(2306),a=r(457),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},8422:e=>{"use strict";e.exports={}},3142:(e,t,r)=>{"use strict";var n=r(4376).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},8280:(e,t,r)=>{"use strict";var n=r(5157),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},9468:(e,t,r)=>{"use strict";var n=r(6694),s=r(4376).f,i=r(1370),o=r(3941),a=r(3024),c=r(379)("toStringTag");e.exports=function(e,t,r,u){if(e){var l=r?e:e.prototype;o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!n&&i(l,"toString",a)}}},5430:(e,t,r)=>{"use strict";var n=r(3771),s=r(9216),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6028:(e,t,r)=>{"use strict";var n=r(8426),s=r(8194),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},3771:(e,t,r)=>{"use strict";var n=r(7736),s=r(6028);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.33.3",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"})},7415:(e,t,r)=>{"use strict";var n=r(8814),s=r(1061),i=r(4809),o=r(8280),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(e){return function(t,r){var n,l,p=i(o(t)),h=s(r),m=p.length;return h<0||h>=m?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):n:e?u(p,h,h+2):l-56320+(n-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},3772:(e,t,r)=>{"use strict";var n=r(5057),s=r(2998),i=r(8426).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1940:(e,t,r)=>{"use strict";var n=r(1061),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4312:(e,t,r)=>{"use strict";var n=r(6541),s=r(8280);e.exports=function(e){return n(s(e))}},1061:(e,t,r)=>{"use strict";var n=r(5703);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9261:(e,t,r)=>{"use strict";var n=r(1061),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},8389:(e,t,r)=>{"use strict";var n=r(8280),s=Object;e.exports=function(e){return s(n(e))}},6561:(e,t,r)=>{"use strict";var n=r(200),s=r(8257),i=r(6753),o=r(2833),a=r(2483),c=r(379),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},9722:(e,t,r)=>{"use strict";var n=r(6561),s=r(6753);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},6694:(e,t,r)=>{"use strict";var n={};n[r(379)("toStringTag")]="z",e.exports="[object z]"===String(n)},4809:(e,t,r)=>{"use strict";var n=r(2327),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},5787:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9216:(e,t,r)=>{"use strict";var n=r(8814),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},9378:(e,t,r)=>{"use strict";var n=r(3772);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4210:(e,t,r)=>{"use strict";var n=r(1815),s=r(2998);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8268:(e,t,r)=>{"use strict";var n=r(8426),s=r(8563),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},379:(e,t,r)=>{"use strict";var n=r(8426),s=r(3771),i=r(3941),o=r(9216),a=r(3772),c=r(9378),u=n.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},9791:(e,t,r)=>{"use strict";var n=r(6589),s=r(3941),i=r(1370),o=r(7367),a=r(8597),c=r(1318),u=r(3142),l=r(9330),p=r(5517),h=r(1609),m=r(4151),d=r(1815),f=r(7736);e.exports=function(e,t,r,_){var y="stackTraceLimit",g=_?2:1,b=e.split("."),v=b[b.length-1],w=n.apply(null,b);if(w){var E=w.prototype;if(!f&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=t((function(e,t){var r=p(_?t:e,void 0),n=_?new w(e):new w;return void 0!==r&&i(n,"message",r),m(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&h(n,arguments[g]),n}));if(S.prototype=E,"Error"!==v?a?a(S,x):c(S,x,{name:!0}):d&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!f)try{E.name!==v&&i(E,"name",v),E.constructor=S}catch(e){}return S}}},1835:(e,t,r)=>{"use strict";var n=r(9011),s=r(6589),i=r(4877),o=r(2998),a=r(9791),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},1320:(e,t,r)=>{"use strict";var n=r(9011),s=r(7367),i=r(9814),o=r(8597),a=r(1318),c=r(1504),u=r(1370),l=r(7971),p=r(1609),h=r(4151),m=r(3490),d=r(5517),f=r(379)("toStringTag"),_=Error,y=[].push,g=function(e,t){var r,n=s(b,this);o?r=o(new _,n?i(this):b):(r=n?this:c(b),u(r,f,"Error")),void 0!==t&&u(r,"message",d(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};o?o(g,_):a(g,_,{name:!0});var b=g.prototype=c(_.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},733:(e,t,r)=>{"use strict";r(1320)},6449:(e,t,r)=>{"use strict";var n=r(4312),s=r(7171),i=r(2444),o=r(8551),a=r(4376).f,c=r(5994),u=r(9497),l=r(7736),p=r(1815),h="Array Iterator",m=o.set,d=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var f=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==f.name)try{a(f,"name",{value:"values"})}catch(e){}},2777:(e,t,r)=>{"use strict";var n=r(9011),s=r(8426),i=r(4877),o=r(9791),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};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)}}))},9383:(e,t,r)=>{"use strict";var n=r(7415).charAt,s=r(4809),i=r(8551),o=r(5994),a=r(9497),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},3584:(e,t,r)=>{"use strict";r(733)},6128:(e,t,r)=>{"use strict";r(6449);var n=r(8987),s=r(8426),i=r(2327),o=r(1370),a=r(2444),c=r(379)("toStringTag");for(var u in n){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},7497:(e,t,r)=>{"use strict";r(3584);var n=r(3258);r(6128),e.exports=n}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!e;)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>vh,detectionRegExp:()=>bh,mediaTypes:()=>gh,namespace:()=>Eh,parse:()=>wh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>sr,includesClasses:()=>or,includesSymbols:()=>ir,isAnnotationElement:()=>Qt,isArrayElement:()=>Ht,isBooleanElement:()=>Jt,isCommentElement:()=>er,isElement:()=>zt,isLinkElement:()=>Xt,isMemberElement:()=>Zt,isNullElement:()=>Wt,isNumberElement:()=>Gt,isObjectElement:()=>Kt,isParseResultElement:()=>tr,isPrimitiveElement:()=>nr,isRefElement:()=>Yt,isSourceMapElement:()=>rr,isStringElement:()=>Ut});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>wo,isJSONSchemaElement:()=>vo,isLinkDescriptionElement:()=>xo,isMediaElement:()=>Eo});var s={};r.r(s),r.d(s,{isOpenApi3_0LikeElement:()=>Ho,isOpenApiExtension:()=>ra,isParameterLikeElement:()=>Zo,isReferenceLikeElement:()=>Xo,isRequestBodyLikeElement:()=>Yo,isResponseLikeElement:()=>Qo,isServerLikeElement:()=>ea,isTagLikeElement:()=>ta});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function c(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t){return e(r,t)}));default:return o(r)&&o(n)?t:o(r)?a((function(t){return e(t,n)})):o(n)?a((function(t){return e(r,t)})):e(r,n)}}}function u(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t,n){return e(r,t,n)}));case 2:return o(r)&&o(n)?t:o(r)?c((function(t,r){return e(t,n,r)})):o(n)?c((function(t,n){return e(r,t,n)})):a((function(t){return e(r,n,t)}));default:return o(r)&&o(n)&&o(s)?t:o(r)&&o(n)?c((function(t,r){return e(t,r,s)})):o(r)&&o(s)?c((function(t,r){return e(t,n,r)})):o(n)&&o(s)?c((function(t,n){return e(r,t,n)})):o(r)?a((function(t){return e(t,n,s)})):o(n)?a((function(t){return e(r,t,s)})):o(s)?a((function(t){return e(r,n,t)})):e(r,n,s)}}}r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>pc,isCallbackElement:()=>Ga,isComponentsElement:()=>Wa,isContactElement:()=>Ja,isExampleElement:()=>Ka,isExternalDocumentationElement:()=>Ha,isHeaderElement:()=>Za,isInfoElement:()=>Xa,isLicenseElement:()=>Ya,isLinkElement:()=>Qa,isMediaTypeElement:()=>fc,isOpenApi3_0Element:()=>tc,isOpenapiElement:()=>ec,isOperationElement:()=>rc,isParameterElement:()=>nc,isPathItemElement:()=>sc,isPathsElement:()=>ic,isReferenceElement:()=>oc,isRequestBodyElement:()=>ac,isResponseElement:()=>cc,isResponsesElement:()=>uc,isSchemaElement:()=>lc,isSecurityRequirementElement:()=>hc,isServerElement:()=>mc,isServerVariableElement:()=>dc,isServersElement:()=>_c});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}const m=c((function(e,t){var r=e<0?t.length+e:e;return h(t)?t.charAt(r):t[r]}));const d=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const f=u((function(e,t,r){return l(e,d(t,r))}));var _=c((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const y=_;function g(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}const b=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const v=a((function(e){return!!b(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,r){return function(n,s,i){if(v(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[w])return r(n,s,i[w]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function S(e,t,r,n){return r[n](e,t)}const j=E(g,S,x);function O(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!b(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function P(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}const A=function(){return this.xf["@@transducer/init"]()},k=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"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=function(e){return function(t){return new M(e,t)}};function R(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,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,r){return function(){for(var n=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!o(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),n[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?r.apply(this,n):R(Math.max(0,i),I(e,n,r))}}const C=c((function(e,t){return 1===e?a(t):R(e,I(e,[],t))}));function T(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var F=Object.prototype.toString;const $=function(){return"[object Arguments]"===F.call(arguments)?function(e){return"[object Arguments]"===F.call(e)}:function(e){return T("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),L=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(){return arguments.propertyIsEnumerable("length")}(),D=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},V="function"!=typeof Object.keys||B?a((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=B&&$(e);for(t in e)!T(t,e)||s&&"length"===t||(n[n.length]=t);if(q)for(r=L.length-1;r>=0;)T(t=L[r],e)&&!D(n,t)&&(n[n.length]=t),r-=1;return n})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const z=V;const U=c(O(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return C(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return g((function(r,n){return r[n]=e(t[n]),r}),{},z(t));default:return P(e,t)}})));const G=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:j((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,U(r,t))}),[],e)}));const W=c((function(e,t){var r=C(e,t);return C(e,(function(){return g(G,U(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const J=a((function(e){return W(e.length,e)}));const K=J(a((function(e){return!e})));function H(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Z(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=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=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,r,n){var s=H(e);function i(e,t){return ee(e,t,r.slice(),n.slice())}return!Z((function(e,t){return!Z(i,t,e)}),H(t),s)}function ee(e,t,r,n){if(X(e,t))return!0;var s,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"===(s=e.constructor,null==(i=String(s).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 a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=z(e);if(c.length!==z(t).length)return!1;var u=r.concat([e]),l=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!T(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const re=a((function(e){return function(){return e}}));const ne=re(void 0);const se=te(ne());const ie=K(se);var oe=r(7952);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return R(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function pe(e,t,r,n){return e["@@transducer/result"](r[n](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=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,r){return he("function"==typeof e?new me(e):e,t,r)}));function fe(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return b(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const _e=u(fe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const ye=a(fe("tail",_e(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return R(arguments[0].length,de(ae,arguments[0],ye(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(r){return 0===arguments.length?t:X(e,r)};default:return X(e,t)}};const ve=be;function we(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(te(e[r],t))return r;r+=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 xe=function(e){return(e<10?"0":"")+e};const Se="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xe(e.getUTCMonth()+1)+"-"+xe(e.getUTCDate())+"T"+xe(e.getUTCHours())+":"+xe(e.getUTCMinutes())+":"+xe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function je(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"]=k,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=c(O(["fantasy-land/filter","filter"],Pe,(function(e,t){return je(t)?g((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},z(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const ke=c((function(e,t){return Ae((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Me(e,t){var r=function(r){var n=t.concat([e]);return we(r,n)?"<Circular>":Me(r,n)},n=function(e,t){return P((function(t){return Ee(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+P(r,e).join(", ")+"))";case"[object Array]":return"["+P(r,e).concat(n(e,ke((function(e){return/^\d+$/.test(e)}),z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Ee(Se(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":Ee(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,z(e)).join(", ")+"}"}}const Ne=a((function(e){return Me(e,[])}));const Re=c((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=p(r)?m(r,n):n[r],s+=1}return n}))}));const Ie=c((function(e,t){return Re([e],t)[0]}));const Ce=u((function(e,t,r){return e(Ie(t,r))}));function Te(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Fe=c((function(e,t){return e&&t}));const $e=c((function(e,t){return Te(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:J(Fe)(e,t)}));const qe=te(null);const Le=K(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 De=function(e){return"object"===Be(e)};const Ve=C(1,$e(Le,De));const ze=c((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Ne(e),o=r(i,Ne(t));return void 0!==o&&o===i?e:t}));const Ue=c((function(e,t){return U(d(e),t)}));const Ge=a((function(e){return C(de(ze,0,Ue("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const We=C(1,ge(Y,ve("GeneratorFunction")));const Je=C(1,ge(Y,ve("AsyncFunction")));const Ke=Ge([ge(Y,ve("Function")),We,Je]);var He=ge(Y,ve("Object")),Ze=ge(Ne,te(Ne(Object))),Xe=Ce($e(Ke,Ze),["constructor"]);const Ye=C(1,(function(e){if(!Ve(e)||!He(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Xe(t)}));class Qe extends oe.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const et=Qe;class tt extends oe.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const rt=tt;class nt extends oe.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const st=nt;class it extends oe.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new oe.ON([e.start.row,e.start.column,e.start.char]),r=new oe.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const ot=it;class at extends oe.lS{constructor(){super(),this.register("annotation",et),this.register("comment",rt),this.register("parseResult",st),this.register("sourceMap",ot)}}const ct=new at,ut=e=>{const t=new at;return Ye(e)&&t.use(e),t},lt=ct;const pt=C(1,ge(Y,ve("String"))),ht=r.p+"23aac571c96605dc25219087ad291441.wasm",mt=globalThis.fetch;Ke(mt)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?mt.apply(globalThis,[ht,ye(e)]):mt.apply(globalThis,e));var dt=r(9794),ft=r(1427);const _t=class extends ft{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(_t,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=yt,bt=r.p+"13ee407b2f9bd26c94370902ddeb5bcf.wasm";let vt=null,wt=null;const Et=async e=>{if(null===vt&&null===wt)wt=dt.init().then((()=>dt.Language.load(bt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{wt=null})),vt=await wt;else if(null===vt&&null!==wt)vt=await wt;else if(null===vt)throw new gt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};const xt=class extends gt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},St=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},jt={},Ot=e=>null==e?void 0:e.type,Pt=e=>"string"==typeof Ot(e),At=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),kt=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=jt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=St,nodeTypeGetter:c=Ot,nodePredicate:u=Pt,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const h=r||{};let m,d,f=Array.isArray(e),_=[e],y=-1,g=[],b=e;const v=[],w=[];do{y+=1;const e=y===_.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:v.pop(),b=d,d=w.pop(),x)if(f){b=b.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=l(b);for(const[e,t]of g)b[e]=t}y=m.index,_=m.keys,g=m.edits,f=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=f?y:_[y],b=d[r],b===i||void 0===b)continue;v.push(r)}let S;if(!Array.isArray(b)){if(!u(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=i.call(t,b,r,d,v,w)}if(S===s)break;if(S===o){if(!e){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){v.pop();continue}b=S}}var E;if(void 0===S&&x&&g.push([r,b]),!e)m={inArray:f,index:y,keys:_,edits:g,prev:m},f=Array.isArray(b),_=f?b:null!==(E=h[c(b)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=b}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};kt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=jt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=St,nodeTypeGetter:c=Ot,nodePredicate:u=Pt,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const h=r||{};let m,d,f=Array.isArray(e),_=[e],y=-1,g=[],b=e;const v=[],w=[];do{y+=1;const e=y===_.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:v.pop(),b=d,d=w.pop(),x)if(f){b=b.slice();let e=0;for(const[t,r]of g){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=l(b);for(const[e,t]of g)b[e]=t}y=m.index,_=m.keys,g=m.edits,f=m.inArray,m=m.prev}else if(d!==i&&void 0!==d){if(r=f?y:_[y],b=d[r],b===i||void 0===b)continue;v.push(r)}let S;if(!Array.isArray(b)){if(!u(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&w.includes(b)){v.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;S=await i.call(t,b,r,d,v,w)}if(S===s)break;if(S===o){if(!e){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){v.pop();continue}b=S}}var E;if(void 0===S&&x&&g.push([r,b]),!e)m={inArray:f,index:y,keys:_,edits:g,prev:m},f=Array.isArray(b),_=f?b:null!==(E=h[c(b)])&&void 0!==E?E:[],y=-1,g=[],d!==i&&void 0!==d&&w.push(d),d=b}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};var Mt=r(6591);const Nt=function(){return!1};function Rt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var It=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=Rt(this.xf["@@transducer/step"](e,!1))),e},e}();function Ct(e){return function(t){return new It(e,t)}}const Tt=c(O(["all"],Ct,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Ft=a((function(e){return C(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}))(c(we)),$t=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],qt=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Lt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Bt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.ON)&&t.classes.includes(e),Dt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Vt=e=>e({hasMethod:$t,hasBasicElementProps:qt,primitiveEq:Lt,isElementType:Dt,hasClass:Bt}),zt=Vt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.W_||e(r)&&t(void 0,r))),Ut=Vt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.RP||e(r)&&t("string",r))),Gt=Vt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.VL||e(r)&&t("number",r))),Wt=Vt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.zr||e(r)&&t("null",r))),Jt=Vt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.hh||e(r)&&t("boolean",r))),Kt=Vt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof oe.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Ht=Vt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof oe.ON&&!(n instanceof oe.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Zt=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oe.c6||e(n)&&t("member",n)&&r(void 0,n))),Xt=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oe.EA||e(n)&&t("link",n)&&r(void 0,n))),Yt=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof oe.tK||e(n)&&t("ref",n)&&r(void 0,n))),Qt=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof et||e(n)&&t("annotation",n)&&r("array",n))),er=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rt||e(n)&&t("comment",n)&&r("string",n))),tr=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof st||e(n)&&t("parseResult",n)&&r("array",n))),rr=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ot||e(n)&&t("sourceMap",n)&&r("array",n))),nr=e=>Dt("object",e)||Dt("array",e)||Dt("boolean",e)||Dt("number",e)||Dt("string",e)||Dt("null",e)||Dt("member",e),sr=e=>rr(e.meta.get("sourceMap")),ir=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ht(r)&&Tt(Ft(r.toValue()),e)},or=(e,t)=>0===e.length||Tt(Ft(t.classes.toValue()),e);const ar=class extends xt{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const cr=class extends ar{};const ur=class extends ar{},lr=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:s}=e,i=zt(t)?lr(t,n):t,o=zt(s)?lr(s,n):s,a=new oe.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof oe.rm){const t=e=>lr(e,n),s=[...e].map(t),i=new oe.rm(s);return r.set(e,i),i}if(e instanceof oe.O4){const t=e=>lr(e,n),s=[...e].map(t),i=new oe.O4(s);return r.set(e,i),i}if(zt(e)){const t=mr(e);if(r.set(e,t),e.content)if(zt(e.content))t.content=lr(e.content,n);else if(e.content instanceof oe.KeyValuePair)t.content=lr(e.content,n);else if(Array.isArray(e.content)){const r=e=>lr(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new cr("Value provided to cloneDeep function couldn't be cloned",{value:e})};lr.safe=e=>{try{return lr(e)}catch{return e}};const pr=e=>{const{key:t,value:r}=e;return new oe.KeyValuePair(t,r)},hr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=lr(e.meta)),e.attributes.length>0&&(t._attributes=lr(e.attributes)),zt(e.content)){const r=e.content;t.content=hr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=pr(e.content):t.content=e.content;return t},mr=e=>{if(e instanceof oe.KeyValuePair)return pr(e);if(e instanceof oe.rm)return(e=>{const t=[...e];return new oe.rm(t)})(e);if(e instanceof oe.O4)return(e=>{const t=[...e];return new oe.O4(t)})(e);if(zt(e))return hr(e);throw new ur("Value provided to cloneShallow function couldn't be cloned",{value:e})};mr.safe=e=>{try{return mr(e)}catch{return e}};const dr=e=>Kt(e)?"ObjectElement":Ht(e)?"ArrayElement":Zt(e)?"MemberElement":Ut(e)?"StringElement":Jt(e)?"BooleanElement":Gt(e)?"NumberElement":Wt(e)?"NullElement":Xt(e)?"LinkElement":Yt(e)?"RefElement":void 0,fr=e=>zt(e)?mr(e):At(e),_r=ge(dr,pt),yr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},gr=(Mt({props:{result:[],predicate:Nt,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),(e,t,{keyMap:r=yr,...n}={})=>kt(e,t,{keyMap:r,nodeTypeGetter:dr,nodePredicate:_r,nodeCloneFn:fr,...n}));gr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=yr,...n}={})=>kt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:dr,nodePredicate:_r,nodeCloneFn:fr,...n});const br=u((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})T(n,t)&&(s[n]=T(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)T(n,r)&&!T(n,s)&&(s[n]=r[n]);return s}));const vr=u((function e(t,r,n){return br((function(r,n,s){return je(n)&&je(s)?e(t,n,s):t(r,n,s)}),r,n)}));const wr=c((function(e,t){return vr((function(e,t,r){return r}),e,t)}));const Er=_e(0,-1);const xr=c((function(e,t){return e.apply(this,t)}));const Sr=K(Ke);var jr=a((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():b(e)?[]:h(e)?"":je(e)?{}:$(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 Or=jr;const Pr=a((function(e){return null!=e&&te(e,Or(e))}));const Ar=C(1,Ke(Array.isArray)?Array.isArray:ge(Y,ve("Array")));const kr=$e(Ar,Pr);const Mr=C(3,(function(e,t,r){var n=Ie(e,r),s=Ie(Er(e),r);if(!Sr(n)&&!kr(e)){var i=ue(n,s);return xr(i,t)}})),Nr=()=>({predicates:{...e},namespace:lt}),Rr={toolboxCreator:Nr,visitorOptions:{nodeTypeGetter:dr,exposeEdits:!0}},Ir=(e,t,r={})=>{if(0===t.length)return e;const n=wr(Rr,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=St,nodeTypeGetter:r=Ot,breakSymbol:n=jt,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],r(p),!1);if("function"==typeof a){const t=a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===n)c[m]=n;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if(t===n)c[u]=n;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}})(a.map(f({},"visitor")),{...i});a.forEach(Mr(["pre"],[]));const u=gr(e,c,i);return a.forEach(Mr(["post"],[])),u},Cr=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Ir(n,r,{toolboxCreator:Nr,visitorOptions:{nodeTypeGetter:dr}})},Tr=e=>(t,r={})=>Cr(t,{...r,Type:e});oe.Sb.refract=Tr(oe.Sb),oe.ON.refract=Tr(oe.ON),oe.RP.refract=Tr(oe.RP),oe.hh.refract=Tr(oe.hh),oe.zr.refract=Tr(oe.zr),oe.VL.refract=Tr(oe.VL),oe.EA.refract=Tr(oe.EA),oe.tK.refract=Tr(oe.tK),et.refract=Tr(et),rt.refract=Tr(rt),st.refract=Tr(st),ot.refract=Tr(ot);const Fr=class{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 $r{static toPosition(e){const t=new oe.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new oe.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]}sourceMap=!1;ParseResultElement={leave:e=>{const t=e.findElements(nr);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 Fr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new et(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new st;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new oe.Sb;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.ON;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new oe.c6;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.RP(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.VL(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.zr;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.hh(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.hh(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,n){const s=!e.hasError,i=e.text,o=new et(s?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new st;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new ot,n=$r.toPosition(e);if(null!==n){const[e,t]=n;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const qr=$r;class Lr{constructor(e){this.cursor=e}document(){return new Fr(this.cursor)}object(){return new Fr(this.cursor).setFieldName(this.cursor)}array(){return new Fr(this.cursor).setFieldName(this.cursor)}pair(){return new Fr(this.cursor)}string(){return new Fr(this.cursor).setFieldName(this.cursor)}number(){return new Fr(this.cursor).setFieldName(this.cursor)}null(){return new Fr(this.cursor).setFieldName(this.cursor)}true(){return new Fr(this.cursor).setFieldName(this.cursor)}false(){return new Fr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Fr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Fr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Lr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Lr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Br=Lr,Dr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...yr},Vr=e=>tr(e)?"ParseResultElement":zt(e)?dr(e):Ot(e),zr=e=>zt(e)||Pt(e),Ur=(e,{sourceMap:t=!1}={})=>{const r=new qr,n=e.walk(),s=new Br(n),[i]=Array.from(s);return kt(i,r,{keyMap:Dr,nodeTypeGetter:Vr,nodePredicate:zr,state:{sourceMap:t}})},Gr=Mt({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:r=null}={}){this.row=e,this.column=t,this.char=r}}),Wr=Mt({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}});const Jr=m(0),Kr=Mt({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:r=!1}={},{stamp:n={}}){this.type=n.type,this.isMissing=r,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}}),Hr=Mt(Kr),Zr=Mt(Hr,{statics:{type:"document"},methods:{get child(){return Jr(this.children)}}}),Xr=Mt(Kr,{statics:{type:"parseResult"},methods:{get rootNode(){return Jr(this.children)}}}),Yr=Mt(Kr,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),Qr=(e,t)=>(null==t?void 0:t.type)===e,en=(Qr.bind(void 0,"literal"),Qr.bind(void 0,"position"),Qr.bind(void 0,"point"),Qr.bind(void 0,"parseResult"),Qr.bind(void 0,"document"),Qr.bind(void 0,"string")),tn=Qr.bind(void 0,"false"),rn=Qr.bind(void 0,"true"),nn=Qr.bind(void 0,"null"),sn=Qr.bind(void 0,"number"),on=Qr.bind(void 0,"array"),an=Qr.bind(void 0,"object"),cn=Qr.bind(void 0,"stringContent"),un=Qr.bind(void 0,"escapeSequence"),ln=Qr.bind(void 0,"property"),pn=Qr.bind(void 0,"key"),hn=Mt(Hr,{statics:{type:"object"},methods:{get properties(){return this.children.filter(ln)}}}),mn=Mt(Hr,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>cn(e)||un(e))).reduce(((e,t)=>e+t.value),"")}}}),dn=Mt(mn,{statics:{type:"key"}}),fn=Mt(Hr,{statics:{type:"property"},methods:{get key(){return this.children.find(pn)},get value(){return this.children.find((e=>tn(e)||rn(e)||nn(e)||sn(e)||en(e)||on(e)||an(e)))}}}),_n=Mt(Hr,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>tn(e)||rn(e)||nn(e)||sn(e)||en(e)||on(e)||an))}}}),yn=Mt(Hr,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),gn=Mt(yn,{statics:{type:"stringContent"}}),bn=Mt(yn,{statics:{type:"number"}}),vn=Mt(yn,{statics:{type:"null"}}),wn=Mt(yn,{statics:{type:"true"}}),En=Mt(yn,{statics:{type:"false"}}),xn=Mt(Kr,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),Sn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class jn{static toPosition(e){const t=Gr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=Gr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return Wr({start:t,end:r})}document={enter:e=>{const t=jn.toPosition(e);return Zr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>Xr({children:[e]})};enter(e){if(e instanceof Fr&&!e.isNamed){const t=jn.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return Yr({value:r,position:t,isMissing:n})}}object(e){const t=jn.toPosition(e);return hn({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=jn.toPosition(e),r=e.children.slice(1),{keyNode:n}=e,s=dn({children:(null==n?void 0:n.children)||[],position:null!=n?jn.toPosition(n):null,isMissing:null!=n&&n.isMissing});return fn({children:[s,...r],position:t,isMissing:e.isMissing})}array(e){const t=jn.toPosition(e);return _n({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=jn.toPosition(e),r=gn({value:JSON.parse(e.text)});return mn({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=jn.toPosition(e),r=e.text;return bn({value:r,position:t,isMissing:e.isMissing})}null(e){const t=jn.toPosition(e),r=e.text;return vn({value:r,position:t,isMissing:e.isMissing})}true(e){const t=jn.toPosition(e),r=e.text;return wn({value:r,position:t,isMissing:e.isMissing})}false(e){const t=jn.toPosition(e),r=e.text;return En({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,n){const s=jn.toPosition(e),i=xn({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?Xr({children:[i]}):i}}const On=jn,Pn={[Xr.type]:["children"],[Zr.type]:["children"],[hn.type]:["children"],[fn.type]:["children"],[_n.type]:["children"],[xn.type]:["children"],...yr},An=e=>tr(e)?"ParseResultElement":zt(e)?dr(e):Ot(e),kn=e=>zt(e)||Pt(e);const Mn=class{sourceMap=!1;ParseResultElement={leave:e=>{const t=e.findElements(nr);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 st;return t._content=e.children,t}object(e){const t=new oe.Sb;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new oe.c6;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.RP(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.ON;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new oe.RP(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.VL(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.zr;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.hh(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.hh(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new et(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new et(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new st;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new ot;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},Nn=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new Br(r),[s]=Array.from(n),i=new On,o=new Mn,a=kt(s,i,{keyMap:Sn,state:{sourceMap:t}});return kt(a.rootNode,o,{keyMap:Pn,nodeTypeGetter:An,nodePredicate:kn,state:{sourceMap:t}})},Rn=(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 In extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Cn=In;class Tn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Fn=Tn;class $n extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const qn=$n;class Ln extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Bn=Ln;class Dn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Vn=Dn;class zn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Un=zn;class Gn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Wn=Gn;class Jn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new oe.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.hh(!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(Jn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Kn=Jn;class Hn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Zn=Hn;class Xn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Yn=Xn;class Qn extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return 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 es=Qn;class ts extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const rs=ts;class ns extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const ss=ns;class is extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const os=is;class as extends oe.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const cs=as;class us extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const ls=us;class ps extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.hh(!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 hs=ps;class ms extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new oe.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.hh(!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(ms.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ds=ms;class fs extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const _s=fs;class ys extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const gs=ys;class bs extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const vs=bs;class ws extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new oe.hh(!1)}set required(e){this.set("required",e)}}const Es=ws;class xs extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Ss=xs;class js extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Os=js;const Ps=class extends gt{};class As extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const ks=As;class Ms extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Ns=Ms;class Rs extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Is=Rs;class Cs extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Ts=Cs;const Fs=c((function(e,t){return g((function(r,n){return r[n]=e(t[n],n,t),r}),{},z(t))}));const $s=a((function(e){return null==e}));const qs=c((function(e,t){if(0===e.length||$s(t))return!1;for(var r=t,n=0;n<e.length;){if($s(r)||!T(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));var Ls=c((function(e,t){return qs([e],t)}));const Bs=Ls;const Ds=u((function(e,t,r){return e(d(t,r))}));const Vs=a((function(e){return C(e.length,e)}));const zs=c((function(e,t){return C(e+1,(function(){var r=arguments[e];if(null!=r&&Te(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(r)+' does not have a method named "'+t+'"')}))}));const Us=zs(1,"split");var Gs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,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 Ws(e){return function(t){return new Gs(e,t)}}const Js=c(O(["dropWhile"],Ws,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return _e(r,1/0,t)})));const Ks=zs(1,"join");const Hs=Vs((function(e,t){return ge(Us(""),Js(Ft(e)),Ks(""))(t)})),Zs=(e,t)=>{const r=l(e,t);return Fs((e=>{if(Ye(e)&&Bs("$ref",e)&&Ds(pt,"$ref",e)){const t=Ie(["$ref"],e),n=Hs("#/",t);return Ie(n.split("/"),r)}return Ye(e)?Zs(e,r):e}),e)},Xs=Mt({props:{element:null},methods:{copyMetaAndAttributes(e,t){sr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ys=Mt(Xs,{methods:{enter(e){return this.element=lr(e),jt}}});const Qs=re(ne());const ei=function(){return!0},ti=e=>"string"==typeof(null==e?void 0:e.type)?e.type:dr(e),ri={EphemeralObject:["content"],EphemeralArray:["content"],...yr},ni=(e,t,{keyMap:r=ri,...n}={})=>gr(e,t,{keyMap:r,nodeTypeGetter:ti,nodePredicate:ei,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});ni[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ri,...r}={})=>gr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ti,nodePredicate:ei,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const si=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 ii=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))}},oi=Mt.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new ii(t.content);return e.set(t,r),r}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new si(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}})),ai=e=>zt(e)?Ut(e)||Gt(e)||Jt(e)||Wt(e)?e.toValue():ni(e,oi()):e;const ci=c((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),ui=e=>{if(zt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},li={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...yr},pi=Mt(Xs,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return ci(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 Ce(Ke,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?lr(t):(gr(t,n,{keyMap:li,nodeTypeGetter:ui,...r}),n.element)}}}),hi=Mt(pi,{props:{specPath:Qs,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Ut(n)&&r.includes(ai(n))&&!this.ignoredFields.includes(ai(n))){const r=this.toRefractedElement([...t,"fixedFields",ai(n)],e),i=new oe.c6(lr(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ai(n))||this.element.content.push(lr(s))})),this.copyMetaAndAttributes(e,this.element),jt}}}),mi=Mt(hi,Ys,{props:{specPath:re(["document","objects","JSONSchema"])},init(){this.element=new ks}}),di=Ys,fi=Ys,_i=Ys,yi=Ys,gi=Ys,bi=Ys,vi=Ys,wi=Ys,Ei=Ys,xi=Ys,Si=Mt({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ji=e=>Kt(e)&&e.hasKey("$ref"),Oi=Mt(pi,Si,Ys,{methods:{ObjectElement(e){const t=ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),jt},ArrayElement(e){return this.element=new oe.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),Pi=Ys,Ai=Ys,ki=Ys,Mi=Ys,Ni=Ys,Ri=Mt(Ys,{methods:{ArrayElement(e){return this.element=lr(e),this.element.classes.push("json-schema-required"),jt}}});const Ii=a((function(e){return C(de(ze,0,Ue("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ci=c((function(e,t){return e||t}));const Ti=K(C(1,$e(Le,c((function(e,t){return Te(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:J(Ci)(e,t)}))(De,Ke))));const Fi=K(Pr);const $i=Ii([pt,Ti,Fi]),qi=Mt(pi,{props:{fieldPatternPredicate:Nt,specPath:Qs,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(ai(t))&&this.fieldPatternPredicate(ai(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new oe.c6(lr(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ai(t))||this.element.content.push(lr(r))})),this.copyMetaAndAttributes(e,this.element),jt}}}),Li=Mt(qi,{props:{fieldPatternPredicate:$i}}),Bi=Mt(Li,Si,Ys,{props:{specPath:e=>ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-properties")}}),Di=Mt(Li,Si,Ys,{props:{specPath:e=>ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-patternProperties")}}),Vi=Mt(Li,Si,Ys,{props:{specPath:e=>ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-dependencies")}}),zi=Mt(Ys,{methods:{ArrayElement(e){return this.element=lr(e),this.element.classes.push("json-schema-enum"),jt}}}),Ui=Mt(Ys,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("json-schema-type"),jt},ArrayElement(e){return this.element=lr(e),this.element.classes.push("json-schema-type"),jt}}}),Gi=Mt(pi,Si,Ys,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),Wi=Mt(pi,Si,Ys,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),Ji=Mt(pi,Si,Ys,{init(){this.element=new oe.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),Ki=Mt(Li,Si,Ys,{props:{specPath:e=>ji(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.Sb,this.element.classes.push("json-schema-definitions")}}),Hi=Ys,Zi=Ys,Xi=Ys,Yi=Ys,Qi=Ys,eo=Mt(pi,Si,Ys,{init(){this.element=new oe.ON,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),jt}}}),to=Ys,ro=Mt(hi,Ys,{props:{specPath:re(["document","objects","JSONReference"])},init(){this.element=new Ns},methods:{ObjectElement(e){const t=hi.compose.methods.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),no=Mt(Ys,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("reference-value"),jt}}});const so=u((function(e,t,r){return C(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const io=a((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var oo=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ao=oo;const co=a(Rt);const uo=K($s);const lo=$e(Ar,Fi);function po(e){return function(e){if(Array.isArray(e))return ho(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 ho(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return ho(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 ho(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var mo=ge(ao(io((function(e,t){return e.length>t.length}))),Jr,d("length")),fo=Vs((function(e,t,r){var n=r.apply(void 0,po(e));return uo(n)?co(n):t}));const _o=so(lo,(function(e){var t=mo(e);return C(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return de(fo(r),void 0,e)}))}),ne),yo=Mt(pi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>so(e,re(t),ne))),r=_o(t)(e);return this.element=this.toRefractedElement(r,e),jt}}}),go=Mt(yo,{props:{alternator:[{predicate:ji,specPath:["document","objects","JSONReference"]},{predicate:ei,specPath:["document","objects","JSONSchema"]}]}}),bo={visitors:{value:Ys,JSONSchemaOrJSONReferenceVisitor:go,document:{objects:{JSONSchema:{$visitor:mi,fixedFields:{id:di,$schema:fi,multipleOf:_i,maximum:yi,exclusiveMaximum:gi,minimum:bi,exclusiveMinimum:vi,maxLength:wi,minLength:Ei,pattern:xi,additionalItems:go,items:Oi,maxItems:Pi,minItems:Ai,uniqueItems:ki,maxProperties:Mi,minProperties:Ni,required:Ri,properties:Bi,additionalProperties:go,patternProperties:Di,dependencies:Vi,enum:zi,type:Ui,allOf:Gi,anyOf:Wi,oneOf:Ji,not:go,definitions:Ki,title:Hi,description:Zi,default:Xi,format:Yi,base:Qi,links:eo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:to}},JSONReference:{$visitor:ro,fixedFields:{$ref:no}},Media:{$visitor:Mt(hi,Ys,{props:{specPath:re(["document","objects","Media"])},init(){this.element=new Is}}),fixedFields:{binaryEncoding:Ys,type:Ys}},LinkDescription:{$visitor:Mt(hi,Ys,{props:{specPath:re(["document","objects","LinkDescription"])},init(){this.element=new Ts}}),fixedFields:{href:Ys,rel:Ys,title:Ys,targetSchema:go,mediaType:Ys,method:Ys,encType:Ys,schema:go}}}}}},vo=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ks||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),wo=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ns||e(n)&&t("JSONReference",n)&&r("object",n))),Eo=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Is||e(n)&&t("media",n)&&r("object",n))),xo=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ts||e(n)&&t("linkDescription",n)&&r("object",n))),So={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ks),t.register("jSONReference",Ns),t.register("media",Is),t.register("linkDescription",Ts),t}},jo=()=>{const e=ut(So);return{predicates:{...t,isStringElement:Ut},namespace:e}},Oo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=bo}={})=>{const s=(0,oe.Qc)(e),i=Zs(n),o=Mr(t,[],i);return gr(s,o,{state:{specObj:i}}),Ir(o.element,r,{toolboxCreator:jo,visitorOptions:{keyMap:li,nodeTypeGetter:ui}})},Po=e=>(t,r={})=>Oo(t,{specPath:e,...r});ks.refract=Po(["visitors","document","objects","JSONSchema","$visitor"]),Ns.refract=Po(["visitors","document","objects","JSONReference","$visitor"]),Is.refract=Po(["visitors","document","objects","Media","$visitor"]),Ts.refract=Po(["visitors","document","objects","LinkDescription","$visitor"]);const Ao=class extends ks{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Ps("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Ps("idProp setter in Schema class is not not supported.")}get $schema(){throw new Ps("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Ps("$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 Ps("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Ps("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Ps("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Ps("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 Ps("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Ps("definitions setter in Schema class is not not supported.")}get base(){throw new Ps("base getter in Schema class is not not supported.")}set base(e){throw new Ps("base setter in Schema class is not not supported.")}get links(){throw new Ps("links getter in Schema class is not not supported.")}set links(e){throw new Ps("links setter in Schema class is not not supported.")}get media(){throw new Ps("media getter in Schema class is not not supported.")}set media(e){throw new Ps("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 ko extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Mo=ko;class No extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Ro=No;class Io extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Co=Io;class To extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Fo=To;class $o extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const qo=$o;class Lo extends oe.Sb{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Bo=Lo,Do=Mt({props:{element:null},methods:{copyMetaAndAttributes(e,t){sr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Vo=e=>{if(zt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},zo={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"],...yr},Uo=Mt(Do,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return ci(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 Ce(Ke,["visitors",...e],this.specObj)?Ie(["visitors",...e],this.specObj):Ie(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?lr(t):(gr(t,n,{keyMap:zo,nodeTypeGetter:Vo,...r}),n.element)}}});var Go=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Rt(r):r},e}();function Wo(e){return function(t){return new Go(e,t)}}const Jo=c(O(["take"],Wo,(function(e,t){return _e(0,e<0?1/0:e,t)})));const Ko=c((function(e,t){return te(Jo(e.length,t),e)})),Ho=e=>Kt(e)&&e.hasKey("openapi")&&e.hasKey("info"),Zo=e=>Kt(e)&&e.hasKey("name")&&e.hasKey("in"),Xo=e=>Kt(e)&&e.hasKey("$ref"),Yo=e=>Kt(e)&&e.hasKey("content"),Qo=e=>Kt(e)&&e.hasKey("description"),ea=Kt,ta=Kt,ra=e=>Ut(e.key)&&Ko("x-",ai(e.key)),na=Mt(Uo,{props:{specPath:Qs,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:ra},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Ut(n)&&r.includes(ai(n))&&!this.ignoredFields.includes(ai(n))){const r=this.toRefractedElement([...t,"fixedFields",ai(n)],e),i=new oe.c6(lr(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(ai(n))||this.element.content.push(lr(s))})),this.copyMetaAndAttributes(e,this.element),jt}}}),sa=Mt(Do,{methods:{enter(e){return this.element=lr(e),jt}}}),ia=Mt(na,sa,{props:{specPath:re(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new ls},methods:{ObjectElement(e){return this.unrefractedElement=e,na.compose.methods.ObjectElement.call(this,e)}}}),oa=Mt(Uo,sa,{methods:{StringElement(e){const t=new cs(ai(e));return this.copyMetaAndAttributes(e,t),this.element=t,jt}}}),aa=Mt(Uo,{methods:{MemberElement(e){return this.element=lr(e),this.element.classes.push("specification-extension"),jt}}}),ca=Mt(na,sa,{props:{specPath:re(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zn}}),ua=sa,la=sa,pa=sa,ha=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("api-version"),this.element.classes.push("version"),jt}}}),ma=Mt(na,sa,{props:{specPath:re(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new qn}}),da=sa,fa=sa,_a=sa,ya=Mt(na,sa,{props:{specPath:re(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Yn}}),ga=sa,ba=sa,va=Mt(na,sa,{props:{specPath:re(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new es},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return(Ut(this.element.operationId)||Ut(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),wa=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("reference-value"),jt}}}),Ea=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("reference-value"),jt}}}),xa=Mt(Uo,{props:{fieldPatternPredicate:Nt,specPath:Qs,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:ra},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(ai(t))&&this.fieldPatternPredicate(ai(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new oe.c6(lr(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ai(t))||this.element.content.push(lr(r))})),this.copyMetaAndAttributes(e,this.element),jt}}}),Sa=Mt(xa,{props:{fieldPatternPredicate:$i}});class ja extends oe.Sb{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(ja.primaryClass)}}const Oa=ja,Pa=Mt(Sa,sa,{props:{specPath:re(["value"])},init(){this.element=new Oa}}),Aa=sa,ka=sa,Ma=Mt(na,sa,{props:{specPath:re(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Co}}),Na=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("server-url"),jt}}}),Ra=sa;class Ia extends oe.ON{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ia.primaryClass)}}const Ca=Ia,Ta=Mt(Uo,sa,{init(){this.element=new Ca},methods:{ArrayElement(e){return e.forEach((e=>{const t=ea(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),Fa=Mt(na,sa,{props:{specPath:re(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fo}}),$a=sa,qa=sa,La=sa;class Ba extends oe.Sb{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Ba.primaryClass)}}const Da=Ba,Va=Mt(Sa,sa,{props:{specPath:re(["document","objects","ServerVariable"])},init(){this.element=new Da}}),za=Mt(na,sa,{props:{specPath:re(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new rs}}),Ua=Mt(Uo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>so(e,re(t),ne))),r=_o(t)(e);return this.element=this.toRefractedElement(r,e),jt}}}),Ga=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cn||e(n)&&t("callback",n)&&r("object",n))),Wa=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fn||e(n)&&t("components",n)&&r("object",n))),Ja=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qn||e(n)&&t("contact",n)&&r("object",n))),Ka=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Un||e(n)&&t("example",n)&&r("object",n))),Ha=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wn||e(n)&&t("externalDocumentation",n)&&r("object",n))),Za=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kn||e(n)&&t("header",n)&&r("object",n))),Xa=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zn||e(n)&&t("info",n)&&r("object",n))),Ya=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Yn||e(n)&&t("license",n)&&r("object",n))),Qa=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof es||e(n)&&t("link",n)&&r("object",n))),ec=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof cs||e(n)&&t("openapi",n)&&r("string",n))),tc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof ls||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),rc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hs||e(n)&&t("operation",n)&&r("object",n))),nc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ds||e(n)&&t("parameter",n)&&r("object",n))),sc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _s||e(n)&&t("pathItem",n)&&r("object",n))),ic=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gs||e(n)&&t("paths",n)&&r("object",n))),oc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vs||e(n)&&t("reference",n)&&r("object",n))),ac=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Es||e(n)&&t("requestBody",n)&&r("object",n))),cc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ss||e(n)&&t("response",n)&&r("object",n))),uc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Os||e(n)&&t("responses",n)&&r("object",n))),lc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ao||e(n)&&t("schema",n)&&r("object",n))),pc=e=>Jt(e)&&e.classes.includes("boolean-json-schema"),hc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mo||e(n)&&t("securityRequirement",n)&&r("object",n))),mc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Co||e(n)&&t("server",n)&&r("object",n))),dc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fo||e(n)&&t("serverVariable",n)&&r("object",n))),fc=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rs||e(n)&&t("mediaType",n)&&r("object",n))),_c=Vt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Ca||e(s)&&t("array",s)&&r("array",s)&&n("servers",s))),yc=Mt(Ua,sa,{props:{alternator:[{predicate:Xo,specPath:["document","objects","Reference"]},{predicate:ei,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ua.compose.methods.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),gc=sa,bc=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new oe.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class vc extends oe.Sb{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(vc.primaryClass),this.classes.push("examples")}}const wc=vc,Ec=Mt(bc,{init(){this.element=new wc}});class xc extends oe.Sb{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(xc.primaryClass)}}const Sc=xc,jc=Mt(Sa,sa,{props:{specPath:re(["document","objects","Encoding"])},init(){this.element=new Sc}}),Oc=Mt(Sa,sa,{props:{specPath:re(["value"])},init(){this.element=new Mo}});class Pc extends oe.ON{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Pc.primaryClass)}}const Ac=Pc,kc=Mt(Uo,sa,{init(){this.element=new Ac},methods:{ArrayElement(e){return e.forEach((e=>{if(Kt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(lr(e))})),this.copyMetaAndAttributes(e,this.element),jt}}}),Mc=Mt(na,sa,{props:{specPath:re(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fn}}),Nc=Mt(na,sa,{props:{specPath:re(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new qo}}),Rc=sa,Ic=sa,Cc=Mt(na,sa,{props:{specPath:re(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new vs},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Tc=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("reference-value"),jt}}}),Fc=Mt(na,sa,{props:{specPath:re(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new ds},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return Kt(this.element.contentProp)&&this.element.contentProp.filter(fc).forEach(((e,t)=>{e.setMetaProperty("media-type",ai(t))})),t}}}),$c=sa,qc=sa,Lc=sa,Bc=sa,Dc=sa,Vc=sa,zc=sa,Uc=sa,Gc=sa,Wc=Mt(Ua,sa,{props:{alternator:[{predicate:Xo,specPath:["document","objects","Reference"]},{predicate:ei,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ua.compose.methods.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Jc=Mt(na,sa,{props:{specPath:re(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Kn}}),Kc=sa,Hc=sa,Zc=sa,Xc=sa,Yc=sa,Qc=sa,eu=sa,tu=Mt(Ua,sa,{props:{alternator:[{predicate:Xo,specPath:["document","objects","Reference"]},{predicate:ei,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Ua.compose.methods.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ru=sa;class nu extends oe.Sb{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(nu.primaryClass),this.classes.push("examples")}}const su=nu,iu=Mt(bc,{init(){this.element=new su}}),ou=Mt(Sa,sa,{props:{specPath:re(["document","objects","MediaType"])},init(){this.element=new oe.Sb,this.element.classes.push("content")}});class au extends oe.Sb{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(au.primaryClass),this.classes.push("content")}}const cu=au,uu=Mt(ou,{init(){this.element=new cu}}),lu=Mt(na,sa,{props:{specPath:re(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ao}}),{allOf:pu}=bo.visitors.document.objects.JSONSchema.fixedFields,hu=Mt(pu,{methods:{ArrayElement(e){const t=pu.compose.methods.ArrayElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:mu}=bo.visitors.document.objects.JSONSchema.fixedFields,du=Mt(mu,{methods:{ArrayElement(e){const t=mu.compose.methods.ArrayElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:fu}=bo.visitors.document.objects.JSONSchema.fixedFields,_u=Mt(fu,{methods:{ArrayElement(e){const t=fu.compose.methods.ArrayElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:yu}=bo.visitors.document.objects.JSONSchema.fixedFields,gu=Mt(yu,{methods:{ObjectElement(e){const t=yu.compose.methods.ObjectElement.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=lr(e),jt}}}),{properties:bu}=bo.visitors.document.objects.JSONSchema.fixedFields,vu=Mt(bu,{methods:{ObjectElement(e){const t=bu.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:wu}=bo.visitors.document.objects.JSONSchema.fixedFields,Eu=Mt(wu,{methods:{ArrayElement(e){return this.element=lr(e),jt}}}),xu=sa,Su=sa,ju=sa,Ou=sa,{JSONSchemaOrJSONReferenceVisitor:Pu}=bo.visitors,Au=Mt(Pu,{methods:{ObjectElement(e){const t=Pu.compose.methods.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ku=Mt(na,sa,{props:{specPath:re(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Bn}}),Mu=sa;class Nu extends oe.Sb{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Nu.primaryClass)}}const Ru=Nu,Iu=Mt(Sa,sa,{props:{specPath:re(["value"])},init(){this.element=new Ru}}),Cu=Mt(na,sa,{props:{specPath:re(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bo}}),Tu=sa,Fu=sa,$u=sa,qu=sa,Lu=sa,Bu=sa;class Du extends oe.Sb{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Du.primaryClass),this.classes.push("examples")}}const Vu=Du,zu=Mt(bc,{init(){this.element=new Vu}});class Uu extends oe.Sb{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Uu.primaryClass),this.classes.push("content")}}const Gu=Uu,Wu=Mt(ou,{init(){this.element=new Gu}});class Ju extends oe.Sb{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Ju.primaryClass)}}const Ku=Ju,Hu=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new Ku},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class Zu extends oe.Sb{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Zu.primaryClass)}}const Xu=Zu,Yu=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Xu},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(cc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ai(t))})),t}}});class Qu extends oe.Sb{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Qu.primaryClass),this.classes.push("parameters")}}const el=Qu,tl=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new el},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class rl extends oe.Sb{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(rl.primaryClass),this.classes.push("examples")}}const nl=rl,sl=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new nl},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class il extends oe.Sb{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(il.primaryClass)}}const ol=il,al=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new ol},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class cl extends oe.Sb{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(cl.primaryClass)}}const ul=cl,ll=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new ul},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Za).forEach(((e,t)=>{e.setMetaProperty("header-name",ai(t))})),t}}});class pl extends oe.Sb{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(pl.primaryClass)}}const hl=pl,ml=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new hl},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class dl extends oe.Sb{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(dl.primaryClass)}}const fl=dl,_l=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new fl},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class yl extends oe.Sb{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(yl.primaryClass)}}const gl=yl,bl=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new gl},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),vl=Mt(na,sa,{props:{specPath:re(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Un},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return Ut(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),wl=sa,El=sa,xl=sa,Sl=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("reference-value"),jt}}}),jl=Mt(na,sa,{props:{specPath:re(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wn}}),Ol=sa,Pl=sa,Al=Mt(na,sa,{props:{specPath:re(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vn},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return Kt(this.element.headers)&&this.element.headers.filter(Za).forEach(((e,t)=>{e.setMetaProperty("header-name",ai(t))})),t}}}),kl=sa;class Ml extends oe.Sb{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Ml.primaryClass)}}const Nl=Ml,Rl=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Nl},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Za(e))return;const r=ai(t);e.setMetaProperty("headerName",r)})),t}}}),Il=sa,Cl=sa,Tl=sa,Fl=Mt(xa,sa,{props:{fieldPatternPredicate:ei,specPath:re(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new gs},methods:{ObjectElement(e){const t=xa.compose.methods.ObjectElement.call(this,e);return this.element.filter(sc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",lr(t))})),t}}}),$l=Mt(na,sa,{props:{specPath:re(["document","objects","RequestBody"])},init(){this.element=new Es},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return Kt(this.element.contentProp)&&this.element.contentProp.filter(fc).forEach(((e,t)=>{e.setMetaProperty("media-type",ai(t))})),t}}}),ql=sa;class Ll extends oe.Sb{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ll.primaryClass),this.classes.push("content")}}const Bl=Ll,Dl=Mt(ou,{init(){this.element=new Bl}}),Vl=sa;const zl=c((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ne(e));var r;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)})),Ul=Mt(xa,sa,{props:{fieldPatternPredicate:zl(/{(?<expression>.*)}/),specPath:re(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cn},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(sc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ai(t))})),t}}}),Gl=Mt(na,sa,{props:{specPath:re(["document","objects","Response"])},init(){this.element=new Ss},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return Kt(this.element.contentProp)&&this.element.contentProp.filter(fc).forEach(((e,t)=>{e.setMetaProperty("media-type",ai(t))})),Kt(this.element.headers)&&this.element.headers.filter(Za).forEach(((e,t)=>{e.setMetaProperty("header-name",ai(t))})),t}}}),Wl=sa;class Jl extends oe.Sb{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Jl.primaryClass)}}const Kl=Jl,Hl=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Kl},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Za(e))return;const r=ai(t);e.setMetaProperty("header-name",r)})),t}}});class Zl extends oe.Sb{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Zl.primaryClass),this.classes.push("content")}}const Xl=Zl,Yl=Mt(ou,{init(){this.element=new Xl}});class Ql extends oe.Sb{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(Ql.primaryClass)}}const ep=Ql,tp=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new ep},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});function rp(e){return"[object Number]"===Object.prototype.toString.call(e)}const np=c((function(e,t){if(!rp(e)||!rp(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));function sp(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!we(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!we(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const ip=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!sp(e,!0,this)},e.prototype.has=function(e){return sp(e,!1,this)},e}();const op=c((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new ip,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r})),ap=Mt(na,xa,{props:{specPathFixedFields:Qs,specPathPatternedFields:Qs},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...op(e.keys(),t)],na.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,xa.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return jt}}}),cp=Mt(ap,sa,{props:{specPathFixedFields:re(["document","objects","Responses"]),specPathPatternedFields:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:zl(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${np(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new Os},methods:{ObjectElement(e){const t=ap.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(cc).forEach(((e,t)=>{const r=lr(t);this.fieldPatternPredicate(ai(r))&&e.setMetaProperty("http-status-code",r)})),t}}}),up=Mt(Ua,sa,{props:{alternator:[{predicate:Xo,specPath:["document","objects","Reference"]},{predicate:ei,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Ua.compose.methods.enter.call(this,e);return oc(this.element)?this.element.setMetaProperty("referenced-element","response"):cc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),lp=Mt(na,sa,{props:{specPath:re(["document","objects","Operation"])},init(){this.element=new hs}});class pp extends oe.ON{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(pp.primaryClass)}}const hp=pp,mp=Mt(sa,{init(){this.element=new hp},methods:{ArrayElement(e){return this.element=this.element.concat(lr(e)),jt}}}),dp=sa,fp=sa,_p=sa;class yp extends oe.ON{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(yp.primaryClass),this.classes.push("parameters")}}const gp=yp,bp=Mt(Uo,sa,{init(){this.element=new oe.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Xo(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);oc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),vp=Mt(bp,{init(){this.element=new gp}}),wp=Mt(Ua,{props:{alternator:[{predicate:Xo,specPath:["document","objects","Reference"]},{predicate:ei,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Ua.compose.methods.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Ep extends oe.Sb{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Ep.primaryClass)}}const xp=Ep,Sp=Mt(Sa,sa,{props:{specPath:e=>Xo(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new xp},methods:{ObjectElement(e){const t=Sa.compose.methods.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),jp=sa;class Op extends oe.ON{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Op.primaryClass),this.classes.push("security")}}const Pp=Op,Ap=Mt(Uo,sa,{init(){this.element=new Pp},methods:{ArrayElement(e){return e.forEach((e=>{const t=Kt(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}});class kp extends oe.ON{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(kp.primaryClass),this.classes.push("servers")}}const Mp=kp,Np=Mt(Ta,{init(){this.element=new Mp}}),Rp=Mt(na,sa,{props:{specPath:re(["document","objects","PathItem"])},init(){this.element=new _s},methods:{ObjectElement(e){const t=na.compose.methods.ObjectElement.call(this,e);return this.element.filter(rc).forEach(((e,t)=>{const r=lr(t);r.content=ai(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Ip=Mt(sa,{methods:{StringElement(e){return this.element=lr(e),this.element.classes.push("reference-value"),jt}}}),Cp=sa,Tp=sa;class Fp extends oe.ON{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Fp.primaryClass),this.classes.push("servers")}}const $p=Fp,qp=Mt(Ta,{init(){this.element=new $p}});class Lp extends oe.ON{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Lp.primaryClass),this.classes.push("parameters")}}const Bp=Lp,Dp=Mt(bp,{init(){this.element=new Bp}}),Vp=Mt(na,sa,{props:{specPath:re(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ro}}),zp=sa,Up=sa,Gp=sa,Wp=sa,Jp=sa,Kp=sa,Hp=sa,Zp=Mt(na,sa,{props:{specPath:re(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new os}}),Xp=Mt(na,sa,{props:{specPath:re(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new ss}}),Yp=sa,Qp=sa,eh=sa;class th extends oe.Sb{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(th.primaryClass)}}const rh=th,nh=Mt(Sa,sa,{props:{specPath:re(["value"])},init(){this.element=new rh}});class sh extends oe.ON{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(sh.primaryClass)}}const ih=sh,oh=Mt(Uo,sa,{init(){this.element=new ih},methods:{ArrayElement(e){return e.forEach((e=>{const t=ta(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jt}}}),{fixedFields:ah}=bo.visitors.document.objects.JSONSchema,ch={visitors:{value:sa,document:{objects:{OpenApi:{$visitor:ia,fixedFields:{openapi:oa,info:{$ref:"#/visitors/document/objects/Info"},servers:Ta,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:kc,tags:oh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ca,fixedFields:{title:ua,description:la,termsOfService:pa,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:ha}},Contact:{$visitor:ma,fixedFields:{name:da,url:fa,email:_a}},License:{$visitor:ya,fixedFields:{name:ga,url:ba}},Server:{$visitor:Ma,fixedFields:{url:Na,description:Ra,variables:Va}},ServerVariable:{$visitor:Fa,fixedFields:{enum:$a,default:qa,description:La}},Components:{$visitor:Mc,fixedFields:{schemas:Hu,responses:Yu,parameters:tl,examples:sl,requestBodies:al,headers:ll,securitySchemes:ml,links:_l,callbacks:bl}},Paths:{$visitor:Fl},PathItem:{$visitor:Rp,fixedFields:{$ref:Ip,summary:Cp,description:Tp,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:qp,parameters:Dp}},Operation:{$visitor:lp,fixedFields:{tags:mp,summary:dp,description:fp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:_p,parameters:vp,requestBody:wp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Sp,deprecated:jp,security:Ap,servers:Np}},ExternalDocumentation:{$visitor:jl,fixedFields:{description:Ol,url:Pl}},Parameter:{$visitor:Fc,fixedFields:{name:$c,in:qc,description:Lc,required:Bc,deprecated:Dc,allowEmptyValue:Vc,style:zc,explode:Uc,allowReserved:Gc,schema:Wc,example:Bu,examples:zu,content:Wu}},RequestBody:{$visitor:$l,fixedFields:{description:ql,content:Dl,required:Vl}},MediaType:{$visitor:za,fixedFields:{schema:yc,example:gc,examples:Ec,encoding:jc}},Encoding:{$visitor:Al,fixedFields:{contentType:kl,headers:Rl,style:Il,explode:Cl,allowReserved:Tl}},Responses:{$visitor:cp,fixedFields:{default:up}},Response:{$visitor:Gl,fixedFields:{description:Wl,headers:Hl,content:Yl,links:tp}},Callback:{$visitor:Ul},Example:{$visitor:vl,fixedFields:{summary:wl,description:El,value:xl,externalValue:Sl}},Link:{$visitor:va,fixedFields:{operationRef:wa,operationId:Ea,parameters:Pa,requestBody:Aa,description:ka,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Jc,fixedFields:{description:Kc,required:Hc,deprecated:Zc,allowEmptyValue:Xc,style:Yc,explode:Qc,allowReserved:eu,schema:tu,example:ru,examples:iu,content:uu}},Tag:{$visitor:Nc,fixedFields:{name:Rc,description:Ic,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Cc,fixedFields:{$ref:Tc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:lu,fixedFields:{title:ah.title,multipleOf:ah.multipleOf,maximum:ah.maximum,exclusiveMaximum:ah.exclusiveMaximum,minimum:ah.minimum,exclusiveMinimum:ah.exclusiveMinimum,maxLength:ah.maxLength,minLength:ah.minLength,pattern:ah.pattern,maxItems:ah.maxItems,minItems:ah.minItems,uniqueItems:ah.uniqueItems,maxProperties:ah.maxProperties,minProperties:ah.minProperties,required:ah.required,enum:ah.enum,type:Eu,allOf:hu,anyOf:du,oneOf:_u,not:Au,items:gu,properties:vu,additionalProperties:Au,description:ah.description,format:ah.format,default:ah.default,nullable:xu,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Su,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:ju,deprecated:Ou}},Discriminator:{$visitor:ku,fixedFields:{propertyName:Mu,mapping:Iu}},XML:{$visitor:Cu,fixedFields:{name:Tu,namespace:Fu,prefix:$u,attribute:qu,wrapped:Lu}},SecurityScheme:{$visitor:Vp,fixedFields:{type:zp,description:Up,name:Gp,in:Wp,scheme:Jp,bearerFormat:Kp,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Hp}},OAuthFlows:{$visitor:Zp,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:Xp,fixedFields:{authorizationUrl:Yp,tokenUrl:Qp,refreshUrl:eh,scopes:nh}},SecurityRequirement:{$visitor:Oc}},extension:{$visitor:aa}}}},uh={namespace:e=>{const{base:t}=e;return t.register("callback",Cn),t.register("components",Fn),t.register("contact",qn),t.register("discriminator",Bn),t.register("encoding",Vn),t.register("example",Un),t.register("externalDocumentation",Wn),t.register("header",Kn),t.register("info",Zn),t.register("license",Yn),t.register("link",es),t.register("mediaType",rs),t.register("oAuthFlow",ss),t.register("oAuthFlows",os),t.register("openapi",cs),t.register("openApi3_0",ls),t.register("operation",hs),t.register("parameter",ds),t.register("pathItem",_s),t.register("paths",gs),t.register("reference",vs),t.register("requestBody",Es),t.register("response",Ss),t.register("responses",Os),t.register("schema",Ao),t.register("securityRequirement",Mo),t.register("securityScheme",Ro),t.register("server",Co),t.register("serverVariable",Fo),t.register("tag",qo),t.register("xml",Bo),t}},lh=()=>{const e=ut(uh);return{predicates:{...s,...i,isStringElement:Ut},namespace:e}},ph=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,oe.Qc)(e),s=Zs(ch),i=Mr(t,[],s);return gr(n,i,{state:{specObj:s}}),Ir(i.element,r,{toolboxCreator:lh,visitorOptions:{keyMap:zo,nodeTypeGetter:Vo}})},hh=e=>(t,r={})=>ph(t,{specPath:e,...r});Cn.refract=hh(["visitors","document","objects","Callback","$visitor"]),Fn.refract=hh(["visitors","document","objects","Components","$visitor"]),qn.refract=hh(["visitors","document","objects","Contact","$visitor"]),Un.refract=hh(["visitors","document","objects","Example","$visitor"]),Bn.refract=hh(["visitors","document","objects","Discriminator","$visitor"]),Vn.refract=hh(["visitors","document","objects","Encoding","$visitor"]),Wn.refract=hh(["visitors","document","objects","ExternalDocumentation","$visitor"]),Kn.refract=hh(["visitors","document","objects","Header","$visitor"]),Zn.refract=hh(["visitors","document","objects","Info","$visitor"]),Yn.refract=hh(["visitors","document","objects","License","$visitor"]),es.refract=hh(["visitors","document","objects","Link","$visitor"]),rs.refract=hh(["visitors","document","objects","MediaType","$visitor"]),ss.refract=hh(["visitors","document","objects","OAuthFlow","$visitor"]),os.refract=hh(["visitors","document","objects","OAuthFlows","$visitor"]),cs.refract=hh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),ls.refract=hh(["visitors","document","objects","OpenApi","$visitor"]),hs.refract=hh(["visitors","document","objects","Operation","$visitor"]),ds.refract=hh(["visitors","document","objects","Parameter","$visitor"]),_s.refract=hh(["visitors","document","objects","PathItem","$visitor"]),gs.refract=hh(["visitors","document","objects","Paths","$visitor"]),vs.refract=hh(["visitors","document","objects","Reference","$visitor"]),Es.refract=hh(["visitors","document","objects","RequestBody","$visitor"]),Ss.refract=hh(["visitors","document","objects","Response","$visitor"]),Os.refract=hh(["visitors","document","objects","Responses","$visitor"]),Ao.refract=hh(["visitors","document","objects","Schema","$visitor"]),Mo.refract=hh(["visitors","document","objects","SecurityRequirement","$visitor"]),Ro.refract=hh(["visitors","document","objects","SecurityScheme","$visitor"]),Co.refract=hh(["visitors","document","objects","Server","$visitor"]),Fo.refract=hh(["visitors","document","objects","ServerVariable","$visitor"]),qo.refract=hh(["visitors","document","objects","Tag","$visitor"]),Bo.refract=hh(["visitors","document","objects","XML","$visitor"]);const mh=m(-1);const dh=class extends Ps{};const fh=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new dh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new dh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new dh("latest method in MediaTypes class is not yet implemented.")}};class _h extends fh{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.3",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return mh(this.filterByFormat(e))}}const yh=new _h("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3"),gh=new _h(...yh.filterByFormat("generic"),...yh.filterByFormat("json")),bh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,vh=async e=>bh.test(e)&&await(async e=>{if(!Rn.test(e))return!1;try{return"ERROR"!==(await Et(e)).rootNode.type}catch{return!1}})(e),wh=async(e,t={})=>{const r=f({},"refractorOpts",t),n=y(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await Et(e);let s;return s="indirect"===r?Nn(n,{sourceMap:t}):Ur(n,{sourceMap:t}),s})(e,n),{result:i}=s;if(ie(i)){const e=ls.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},Eh=ut(uh)})(),n})()));
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_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var e={9408:(e,t,r)=>{var s=r(2676)(r(9088),"DataView");e.exports=s},9728:(e,t,r)=>{var s=r(7152),n=r(1372),i=r(1084),o=r(3516),a=r(1836);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},4920:(e,t,r)=>{var s=r(2444),n=r(8776),i=r(3580),o=r(1776),a=r(4688);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8192:(e,t,r)=>{var s=r(2676)(r(9088),"Map");e.exports=s},9892:(e,t,r)=>{var s=r(4112),n=r(1928),i=r(8976),o=r(9336),a=r(3976);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5092:(e,t,r)=>{var s=r(2676)(r(9088),"Promise");e.exports=s},7968:(e,t,r)=>{var s=r(2676)(r(9088),"Set");e.exports=s},2539:(e,t,r)=>{var s=r(9892),n=r(520),i=r(6240);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3288:(e,t,r)=>{var s=r(4920),n=r(816),i=r(4040),o=r(3304),a=r(4316),c=r(2968);function u(e){var t=this.__data__=new s(e);this.size=t.size}u.prototype.clear=n,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},3972:(e,t,r)=>{var s=r(9088).Symbol;e.exports=s},400:(e,t,r)=>{var s=r(9088).Uint8Array;e.exports=s},1432:(e,t,r)=>{var s=r(2676)(r(9088),"WeakMap");e.exports=s},2856:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},192:(e,t,r)=>{var s=r(9664),n=r(3396),i=r(1648),o=r(9028),a=r(1640),c=r(5692),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),l=!r&&n(e),p=!r&&!l&&o(e),h=!r&&!l&&!p&&c(e),m=r||l||p||h,f=m?s(e.length,String):[],d=f.length;for(var _ in e)!t&&!u.call(e,_)||m&&("length"==_||p&&("offset"==_||"parent"==_)||h&&("buffer"==_||"byteLength"==_||"byteOffset"==_)||a(_,d))||f.push(_);return f}},4972:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},8702:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},1840:(e,t,r)=>{var s=r(4684);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},9476:(e,t,r)=>{var s=r(4972),n=r(1648);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},7596:(e,t,r)=>{var s=r(3972),n=r(712),i=r(2640),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},5064:(e,t,r)=>{var s=r(7596),n=r(8152);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},7816:(e,t,r)=>{var s=r(4480),n=r(8152);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},4480:(e,t,r)=>{var s=r(3288),n=r(7227),i=r(1872),o=r(3980),a=r(2300),c=r(1648),u=r(9028),l=r(5692),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,_,y){var g=c(e),v=c(t),b=g?h:a(e),w=v?h:a(t),E=(b=b==p?m:b)==m,x=(w=w==p?m:w)==m,j=b==w;if(j&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(j&&!E)return y||(y=new s),g||l(e)?n(e,t,r,d,_,y):i(e,t,b,r,d,_,y);if(!(1&r)){var S=E&&f.call(e,"__wrapped__"),P=x&&f.call(t,"__wrapped__");if(S||P){var O=S?e.value():e,A=P?t.value():t;return y||(y=new s),_(O,A,r,d,y)}}return!!j&&(y||(y=new s),o(e,t,r,d,_,y))}},7376:(e,t,r)=>{var s=r(9848),n=r(9008),i=r(3016),o=r(4776),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,h=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?h:a).test(o(e))}},420:(e,t,r)=>{var s=r(7596),n=r(9912),i=r(8152),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},2144:(e,t,r)=>{var s=r(4084),n=r(7532),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},9664:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},5792:e=>{e.exports=function(e){return function(t){return e(t)}}},2844:e=>{e.exports=function(e,t){return e.has(t)}},1812:(e,t,r)=>{var s=r(9088)["__core-js_shared__"];e.exports=s},7227:(e,t,r)=>{var s=r(2539),n=r(8702),i=r(2844);e.exports=function(e,t,r,o,a,c){var u=1&r,l=e.length,p=t.length;if(l!=p&&!(u&&p>l))return!1;var h=c.get(e),m=c.get(t);if(h&&m)return h==t&&m==e;var f=-1,d=!0,_=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var y=e[f],g=t[f];if(o)var v=u?o(g,y,f,t,e,c):o(y,g,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!n(t,(function(e,t){if(!i(_,t)&&(y===e||a(y,e,r,o,c)))return _.push(t)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},1872:(e,t,r)=>{var s=r(3972),n=r(400),i=r(4684),o=r(7227),a=r(8788),c=r(7280),u=s?s.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,r,s,u,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&s;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;s|=2,h.set(e,t);var _=o(m(e),m(t),s,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},3980:(e,t,r)=>{var s=r(2892),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,u=s(e),l=u.length;if(l!=s(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:n.call(t,h)))return!1}var m=a.get(e),f=a.get(t);if(m&&f)return m==t&&f==e;var d=!0;a.set(e,t),a.set(t,e);for(var _=c;++p<l;){var y=e[h=u[p]],g=t[h];if(i)var v=c?i(g,y,h,t,e,a):i(y,g,h,e,t,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(e),a.delete(t),d}},7400:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},2892:(e,t,r)=>{var s=r(9476),n=r(7112),i=r(2820);e.exports=function(e){return s(e,i,n)}},2840:(e,t,r)=>{var s=r(6768);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},2676:(e,t,r)=>{var s=r(7376),n=r(2420);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},712:(e,t,r)=>{var s=r(3972),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},7112:(e,t,r)=>{var s=r(2856),n=r(5992),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},2300:(e,t,r)=>{var s=r(9408),n=r(8192),i=r(5092),o=r(7968),a=r(1432),c=r(7596),u=r(4776),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(s),_=u(n),y=u(i),g=u(o),v=u(a),b=c;(s&&b(new s(new ArrayBuffer(1)))!=f||n&&b(new n)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=h||a&&b(new a)!=m)&&(b=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?u(r):"";if(s)switch(s){case d:return f;case _:return l;case y:return p;case g:return h;case v:return m}return t}),e.exports=b},2420:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},7152:(e,t,r)=>{var s=r(3768);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},1372:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1084:(e,t,r)=>{var s=r(3768),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},3516:(e,t,r)=>{var s=r(3768),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},1836:(e,t,r)=>{var s=r(3768);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},1640:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},6768:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9008:(e,t,r)=>{var s,n=r(1812),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},4084:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2444:e=>{e.exports=function(){this.__data__=[],this.size=0}},8776:(e,t,r)=>{var s=r(1840),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},3580:(e,t,r)=>{var s=r(1840);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},1776:(e,t,r)=>{var s=r(1840);e.exports=function(e){return s(this.__data__,e)>-1}},4688:(e,t,r)=>{var s=r(1840);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},4112:(e,t,r)=>{var s=r(9728),n=r(4920),i=r(8192);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},1928:(e,t,r)=>{var s=r(2840);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},8976:(e,t,r)=>{var s=r(2840);e.exports=function(e){return s(this,e).get(e)}},9336:(e,t,r)=>{var s=r(2840);e.exports=function(e){return s(this,e).has(e)}},3976:(e,t,r)=>{var s=r(2840);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},8788:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},3768:(e,t,r)=>{var s=r(2676)(Object,"create");e.exports=s},7532:(e,t,r)=>{var s=r(8443)(Object.keys,Object);e.exports=s},1548:(e,t,r)=>{e=r.nmd(e);var s=r(7400),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2640:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},8443:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},9088:(e,t,r)=>{var s=r(7400),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},520:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},6240:e=>{e.exports=function(e){return this.__data__.has(e)}},7280:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},816:(e,t,r)=>{var s=r(4920);e.exports=function(){this.__data__=new s,this.size=0}},4040:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3304:e=>{e.exports=function(e){return this.__data__.get(e)}},4316:e=>{e.exports=function(e){return this.__data__.has(e)}},2968:(e,t,r)=>{var s=r(4920),n=r(8192),i=r(9892);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},4776: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""}},4684:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3396:(e,t,r)=>{var s=r(5064),n=r(8152),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},1648:e=>{var t=Array.isArray;e.exports=t},2468:(e,t,r)=>{var s=r(9848),n=r(9912);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},5904:(e,t,r)=>{var s=r(7596),n=r(8152);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},9028:(e,t,r)=>{e=r.nmd(e);var s=r(9088),n=r(6388),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},4744:(e,t,r)=>{var s=r(7816);e.exports=function(e,t){return s(e,t)}},9848:(e,t,r)=>{var s=r(7596),n=r(3016);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},9912:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9948:e=>{e.exports=function(e){return null===e}},776:(e,t,r)=>{var s=r(7596),n=r(8152);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},3016:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},8152:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3116:(e,t,r)=>{var s=r(7596),n=r(1648),i=r(8152);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},5692:(e,t,r)=>{var s=r(420),n=r(5792),i=r(1548),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},2820:(e,t,r)=>{var s=r(192),n=r(2144),i=r(2468);e.exports=function(e){return i(e)?s(e):n(e)}},9364: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)}}},5992:e=>{e.exports=function(){return[]}},6388:e=>{e.exports=function(){return!1}},1715:(e,t,r)=>{const s=r(9364);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},6984: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},5524:(e,t,r)=>{const s=r(9948),n=r(3116),i=r(776),o=r(5904),a=r(3016),c=r(824),u=r(5012);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(s,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(a,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,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},6040:(e,t,r)=>{const s=r(9364),n=r(1715);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},5012:(e,t,r)=>{const s=r(3216),n=r(904),i=r(2800),o=r(8640),a=r(1164),c=r(5208),u=r(7416),l=r(1800),p=r(5048),h=r(3392),m=r(1715),f=r(6040),d=r(6984);function _(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}s.prototype.ObjectElement=l,s.prototype.RefElement=h,s.prototype.MemberElement=u,s.prototype.refract=_,m.prototype.refract=_,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:h,refract:_,ArraySlice:m,ObjectSlice:f,KeyValuePair:d}},5048:(e,t,r)=>{const s=r(3216);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},3392:(e,t,r)=>{const s=r(3216);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},928:(e,t,r)=>{const s=r(5524),n=r(5012);t.MH=s,t.KeyValuePair=r(6984),t.eW=n.ArraySlice,t.wL=n.ObjectSlice,t.gr=n.Element,t.M$=n.StringElement,t.wH=n.NumberElement,t.Ar=n.BooleanElement,t.WM=n.NullElement,t.uQ=n.ArrayElement,t.We=n.ObjectElement,t.u6=n.MemberElement,t.eE=n.RefElement,t.UH=n.LinkElement,t.WG=n.refract,r(824),r(6400)},5208:(e,t,r)=>{const s=r(9364),n=r(3216),i=r(1715);class o extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},1164:(e,t,r)=>{const s=r(3216);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},3216:(e,t,r)=>{const s=r(4744),n=r(6984),i=r(1715);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7416:(e,t,r)=>{const s=r(6984),n=r(3216);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},904:(e,t,r)=>{const s=r(3216);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},8640:(e,t,r)=>{const s=r(3216);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},1800:(e,t,r)=>{const s=r(9364),n=r(3016),i=r(5208),o=r(7416),a=r(6040);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},2800:(e,t,r)=>{const s=r(3216);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},6400:(e,t,r)=>{const s=r(824);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},824:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},4248:e=>{!function(){"use strict";var t,r,s,n,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",m="deepConfiguration",f="deepProps",d="deepStatics",_="deepConf",y="initializers",g="methods",v="composers",b="compose";function w(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 x=E.bind(0,(function(e,t){if(t)for(var r=w(t),s=0;s<r.length;s+=1)Object.defineProperty(e,r[s],Object.getOwnPropertyDescriptor(t,r[s]));return e}));function j(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||j(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var O=E.bind(0,(function e(r,s){if(s===t)return r;if(Array.isArray(s))return(Array.isArray(r)?r:[]).concat(s);if(!P(s))return s;for(var n,i,o=w(s),a=0;a<o.length;)n=o[a++],(i=Object.getOwnPropertyDescriptor(s,n)).hasOwnProperty("value")?i.value!==t&&(r[n]=e(P(r[n])||Array.isArray(s[n])?r[n]:{},s[n])):Object.defineProperty(r,n,i);return r}));function A(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return j(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function s(r,s){S(t[r])&&(S(e[r])||(e[r]={}),(s||x)(e[r],t[r]))}function n(s){(r=A(e[s],t[s]))&&(e[s]=r)}return t&&S(t=t[b]||t)&&(s(g),s(o),s(a,O),s(c),s(u),s(l,O),s(p),s(h),s(m,O),n(y),n(v)),e}function M(){return function(e){return r=function e(r){var s,n,i=e[b]||{},u={__proto__:i[g]},l=i[y],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&O(u,h),(h=i[o])&&x(u,h),(h=i[c])&&Object.defineProperties(u,h),!l||!l.length)return u;for(r===t&&(r={}),i=0;i<l.length;)j(s=l[i++])&&(u=(n=s.call(u,r,{instance:u,stamp:e,args:p}))===t?u:n);return u},(s=e[l])&&O(r,s),(s=e[u])&&x(r,s),(s=e[p])&&Object.defineProperties(r,s),s=j(r[b])?r[b]:M,x(r[b]=function(){return s.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function $(e){return j(e)&&j(e[b])}var I={};function N(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[b]||s).call(r,n)}}I[g]=N(g,x),I[o]=I.props=N(o,x),I[y]=I.init=N(y,A),I[v]=N(v,A),I[a]=I[f]=N(a,O),I[u]=I.statics=N(u,x),I[l]=I[d]=N(l,O),I[h]=I.conf=N(h,x),I[m]=I[_]=N(m,O),I[c]=N(c,x),I[p]=N(p,x),s=I[b]=x((function(){for(var e,w,E=0,j=[],P=arguments,k=this;E<P.length;)S(e=P[E++])&&j.push($(e)?e:((n={})[g]=(w=e)[g]||t,s=w.props,n[o]=S((r=w[o])||s)?x({},s,r):t,n[y]=A(w.init,w[y]),n[v]=A(w[v]),s=w[f],n[a]=S((r=w[a])||s)?O({},s,r):t,n[c]=w[c],s=w.statics,n[u]=S((r=w[u])||s)?x({},s,r):t,s=w[d],n[l]=S((r=w[l])||s)?O({},s,r):t,r=w[p],n[p]=S((s=w.name&&{name:{value:w.name}})||r)?x({},r,s):t,s=w.conf,n[h]=S((r=w[h])||s)?x({},s,r):t,s=w[_],n[m]=S((r=w[m])||s)?O({},s,r):t,n));if(e=M.apply(k||i,j),k&&j.unshift(k),Array.isArray(P=e[b][v]))for(E=0;E<P.length;)e=$(k=P[E++]({stamp:e,composables:j}))?k:e;return e}),I),I.create=function(){return this.apply(t,arguments)},(n={})[u]=I,i=M(n),s[b]=s.bind(),s.version="4.3.2","object"!=typeof t?e.exports=s:self.stampit=s}()},843:(e,t,r)=>{var s=void 0!==s?s:{},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||(s=Object.assign({},s,o),t=new Promise((t=>{var o,a={};for(o in s)s.hasOwnProperty(o)&&(a[o]=s[o]);var c,u,l,p,h=[],m="./this.program",f=function(e,t){throw t};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,_,y,g,v,b="";c?(b=p?r(1560).dirname(b)+"/":"//",d=function(e,t){return g||(g=r(8544)),v||(v=r(1560)),e=v.normalize(e),g.readFileSync(e,t?null:"utf8")},y=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),N(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=s,f=function(e){process.exit(e)},s.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),y=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(N("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?h=scriptArgs:void 0!==arguments&&(h=arguments),"function"==typeof quit&&(f=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):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(y=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,r){var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=function(){200==s.status||0==s.status&&s.response?t(s.response):r()},s.onerror=r,s.send(null)}),s.print||console.log.bind(console);var w=s.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(s[o]=a[o]);a=null,s.arguments&&(h=s.arguments),s.thisProgram&&(m=s.thisProgram),s.quit&&(f=s.quit);var E,x=16,j=[];function S(e,t){if(!E){E=new WeakMap;for(var r=0;r<Z.length;r++){var s=Z.get(r);s&&E.set(s,r)}}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(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},s={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},n=1;n<t.length;++n)s.parameters.push(r[t[n]]);return new WebAssembly.Function(s,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),n=0;n<a.length;++n)i.push(c[a[n]]);"v"==o?i.push(0):i=i.concat([1,c[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 P,O=s.dynamicLibraries||[];s.wasmBinary&&(P=s.wasmBinary);var A,k=s.noExitRuntime||!0;function M(e,t,r,s){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[e>>0]=t;break;case"i16":F[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":W[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function $(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return C[e>>0];case"i16":return F[e>>1];case"i32":case"i64":return q[e>>2];case"float":return W[e>>2];case"double":return L[e>>3];default:ae("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ae("no native wasm support detected");var I=!1;function N(e,t){e||ae("Assertion failed: "+t)}var R,C,T,F,q,W,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function D(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.subarray&&B)return B.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<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|a)}else i+=String.fromCharCode(o)}return i}function V(e,t){return e?D(T,e,t):""}function U(e,t,r,s){if(!(s>0))return 0;for(var n=r,i=r+s-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n}function z(e,t,r){return U(e,T,t,r)}function G(e){for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++r)),s<=127?++t:t+=s<=2047?2:s<=65535?3:4}return t}function J(e){var t=G(e)+1,r=Ve(t);return U(e,C,r,t),r}function H(e){R=e,s.HEAP8=C=new Int8Array(e),s.HEAP16=F=new Int16Array(e),s.HEAP32=q=new Int32Array(e),s.HEAPU8=T=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=new Uint32Array(e),s.HEAPF32=W=new Float32Array(e),s.HEAPF64=L=new Float64Array(e)}var K=s.INITIAL_MEMORY||33554432;(A=s.wasmMemory?s.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(R=A.buffer),K=R.byteLength,H(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],Y=[],ee=[],te=!1,re=0,se=null,ne=null;function ie(e){re++,s.monitorRunDependencies&&s.monitorRunDependencies(re)}function oe(e){if(re--,s.monitorRunDependencies&&s.monitorRunDependencies(re),0==re&&(null!==se&&(clearInterval(se),se=null),ne)){var t=ne;ne=null,t()}}function ae(e){throw s.onAbort&&s.onAbort(e),w(e+=""),I=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}s.preloadedImages={},s.preloadedAudios={},s.preloadedWasm={};var ce,ue,le;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function he(e){return e.startsWith("file://")}function me(e){try{if(e==ce&&P)return new Uint8Array(P);if(y)return y(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return s.locateFile?s.locateFile(e,b):b+e}(ce));var fe={},de={get:function(e,t){return fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),fe[t]}};function _e(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(s)}}function ye(e){var t=0;function r(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}if(e instanceof WebAssembly.Module){var s=WebAssembly.Module.customSections(e,"dylink");N(0!=s.length,"need dylink section"),e=new Int8Array(s[0])}else N(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),N(0===e[8],"need the dylink section to be first"),t=9,r(),N(6===e[t]),N(e[++t]==="d".charCodeAt(0)),N(e[++t]==="y".charCodeAt(0)),N(e[++t]==="l".charCodeAt(0)),N(e[++t]==="i".charCodeAt(0)),N(e[++t]==="n".charCodeAt(0)),N(e[++t]==="k".charCodeAt(0)),t++;var n={};n.memorySize=r(),n.memoryAlign=r(),n.tableSize=r(),n.tableAlign=r();var i=r();n.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=e.subarray(t,t+a);t+=a;var u=D(c,0);n.neededDynlibs.push(u)}return n}var ge=0;function ve(){return k||ge>0}function be(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function we(e,t){for(var r in e)if(e.hasOwnProperty(r)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var n=be(r);s.hasOwnProperty(n)||(s[n]=e[r])}}var Ee={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xe=5250880;function je(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Se(e,t){var r={};for(var s in e){var n=e[s];"object"==typeof n&&(n=n.value),"number"==typeof n&&(n+=t),r[s]=n}return function(e){for(var t in e)if(!je(t)){var r=!1,s=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==fe[t].value)&&("function"==typeof s?fe[t].value=S(s):"number"==typeof s?fe[t].value=s:w("unhandled export type for `"+t+"`: "+typeof s))}}(r),r}function Pe(e,t){var r,n;return t&&(r=qe["orig$"+e]),r||(r=qe[e]),r||(r=s[be(e)]),!r&&e.startsWith("invoke_")&&(n=e.split("_")[1],r=function(){var e=Be();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var n=s["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(De(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Oe(e,t){var r=ye(e);function s(){var s=Math.pow(2,r.memoryAlign);s=Math.max(s,x);var n,i,o,a=(n=function(e){if(te)return We(e);var t=xe,r=t+e+15&-16;return xe=r,fe.__heap_base.value=r,t}(r.memorySize+s),(i=s)||(i=x),Math.ceil(n/i)*i),c=Z.length;Z.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)C[u]=0;for(u=c;u<c+r.tableSize;u++)Z.set(u,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return c}return t in qe?qe[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Pe(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var s=0;s<r.tableSize;s++){var n=Z.get(c+s);n&&E.set(n,c+s)}o=Se(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return s()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),s())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:s.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,n=Ee.loadedLibNames[e];if(n)return r=Ee.loadedLibs[n],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&we(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(n):n;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(s=e,fetch(s,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+s+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):y(e);var s}function o(){if(void 0!==s.preloadedWasm&&void 0!==s.preloadedWasm[e]){var r=s.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){r.global&&we(e),r.module=e}return n=Ee.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=n,Ee.loadedLibs[n]=r,t.loadAsync?o().then((function(e){return a(e),n})):(a(o()),n)}function ke(){for(var e in fe)if(0==fe[e].value){var t=Pe(e,!0);"function"==typeof t?fe[e].value=S(t,t.sig):"number"==typeof t?fe[e].value=t:N(!1,"bad export type for `"+e+"`: "+typeof t)}}s.___heap_base=xe;var Me,$e=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){ae()}s._abort=Ie,Ie.sig="v",Me=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Ne(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;r=Me()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Re(e){try{return A.grow(e-R.byteLength+65535>>>16),H(A.buffer),1}catch(e){}}function Ce(e){He(e)}function Te(e){}Ne.sig="iii",Ce.sig="vi",Te.sig="vi";var Fe,qe={__heap_base:xe,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:$e,__table_base:1,abort:Ie,clock_gettime:Ne,emscripten_memcpy_big:function(e,t,r){T.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=T.length;if((e>>>=0)>2147483648)return!1;for(var s=1;s<=4;s*=2){var n=r*(1+.2/s);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 r=V(t);ut(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,s,n){var i=ct(t,{row:r,column:s});"string"==typeof i?(M(n,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var s=(r-=2)<2*e.length?r/2:e.length,n=0;n<s;++n){var i=e.charCodeAt(n);F[t>>1]=i,t+=2}F[t>>1]=0}(i,e,10240)):M(n,0,"i32")}},We=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,de),"GOT.func":new Proxy(qe,de)};function t(e,t){var r=e.exports;r=Se(r,1024),s.asm=r;var n,i=ye(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),we(r),n=s.asm.__wasm_call_ctors,X.unshift(n),oe()}function r(e){t(e.instance,e.module)}function n(t){return function(){if(!P&&(l||p)){if("function"==typeof fetch&&!he(ce))return fetch(ce,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ce+"'";return e.arrayBuffer()})).catch((function(){return me(ce)}));if(_)return new Promise((function(e,t){_(ce,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return me(ce)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){w("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),s.instantiateWasm)try{return s.instantiateWasm(e,t)}catch(e){return w("Module.instantiateWasm callback failed with error: "+e),!1}P||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?n(r):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return w("wasm streaming compile failed: "+e),w("falling back to ArrayBuffer instantiation"),n(r)}))}))}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s._malloc=function(){return(We=s._malloc=s.asm.malloc).apply(null,arguments)}),Le=(s._calloc=function(){return(s._calloc=s.asm.calloc).apply(null,arguments)},s._realloc=function(){return(s._realloc=s.asm.realloc).apply(null,arguments)},s._free=function(){return(s._free=s.asm.free).apply(null,arguments)},s._ts_language_symbol_count=function(){return(s._ts_language_symbol_count=s.asm.ts_language_symbol_count).apply(null,arguments)},s._ts_language_version=function(){return(s._ts_language_version=s.asm.ts_language_version).apply(null,arguments)},s._ts_language_field_count=function(){return(s._ts_language_field_count=s.asm.ts_language_field_count).apply(null,arguments)},s._ts_language_symbol_name=function(){return(s._ts_language_symbol_name=s.asm.ts_language_symbol_name).apply(null,arguments)},s._ts_language_symbol_for_name=function(){return(s._ts_language_symbol_for_name=s.asm.ts_language_symbol_for_name).apply(null,arguments)},s._ts_language_symbol_type=function(){return(s._ts_language_symbol_type=s.asm.ts_language_symbol_type).apply(null,arguments)},s._ts_language_field_name_for_id=function(){return(s._ts_language_field_name_for_id=s.asm.ts_language_field_name_for_id).apply(null,arguments)},s._memcpy=function(){return(s._memcpy=s.asm.memcpy).apply(null,arguments)},s._ts_parser_delete=function(){return(s._ts_parser_delete=s.asm.ts_parser_delete).apply(null,arguments)},s._ts_parser_reset=function(){return(s._ts_parser_reset=s.asm.ts_parser_reset).apply(null,arguments)},s._ts_parser_set_language=function(){return(s._ts_parser_set_language=s.asm.ts_parser_set_language).apply(null,arguments)},s._ts_parser_timeout_micros=function(){return(s._ts_parser_timeout_micros=s.asm.ts_parser_timeout_micros).apply(null,arguments)},s._ts_parser_set_timeout_micros=function(){return(s._ts_parser_set_timeout_micros=s.asm.ts_parser_set_timeout_micros).apply(null,arguments)},s._memmove=function(){return(s._memmove=s.asm.memmove).apply(null,arguments)},s._memcmp=function(){return(s._memcmp=s.asm.memcmp).apply(null,arguments)},s._ts_query_new=function(){return(s._ts_query_new=s.asm.ts_query_new).apply(null,arguments)},s._ts_query_delete=function(){return(s._ts_query_delete=s.asm.ts_query_delete).apply(null,arguments)},s._iswspace=function(){return(s._iswspace=s.asm.iswspace).apply(null,arguments)},s._iswalnum=function(){return(s._iswalnum=s.asm.iswalnum).apply(null,arguments)},s._ts_query_pattern_count=function(){return(s._ts_query_pattern_count=s.asm.ts_query_pattern_count).apply(null,arguments)},s._ts_query_capture_count=function(){return(s._ts_query_capture_count=s.asm.ts_query_capture_count).apply(null,arguments)},s._ts_query_string_count=function(){return(s._ts_query_string_count=s.asm.ts_query_string_count).apply(null,arguments)},s._ts_query_capture_name_for_id=function(){return(s._ts_query_capture_name_for_id=s.asm.ts_query_capture_name_for_id).apply(null,arguments)},s._ts_query_string_value_for_id=function(){return(s._ts_query_string_value_for_id=s.asm.ts_query_string_value_for_id).apply(null,arguments)},s._ts_query_predicates_for_pattern=function(){return(s._ts_query_predicates_for_pattern=s.asm.ts_query_predicates_for_pattern).apply(null,arguments)},s._ts_tree_copy=function(){return(s._ts_tree_copy=s.asm.ts_tree_copy).apply(null,arguments)},s._ts_tree_delete=function(){return(s._ts_tree_delete=s.asm.ts_tree_delete).apply(null,arguments)},s._ts_init=function(){return(s._ts_init=s.asm.ts_init).apply(null,arguments)},s._ts_parser_new_wasm=function(){return(s._ts_parser_new_wasm=s.asm.ts_parser_new_wasm).apply(null,arguments)},s._ts_parser_enable_logger_wasm=function(){return(s._ts_parser_enable_logger_wasm=s.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},s._ts_parser_parse_wasm=function(){return(s._ts_parser_parse_wasm=s.asm.ts_parser_parse_wasm).apply(null,arguments)},s._ts_language_type_is_named_wasm=function(){return(s._ts_language_type_is_named_wasm=s.asm.ts_language_type_is_named_wasm).apply(null,arguments)},s._ts_language_type_is_visible_wasm=function(){return(s._ts_language_type_is_visible_wasm=s.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},s._ts_tree_root_node_wasm=function(){return(s._ts_tree_root_node_wasm=s.asm.ts_tree_root_node_wasm).apply(null,arguments)},s._ts_tree_edit_wasm=function(){return(s._ts_tree_edit_wasm=s.asm.ts_tree_edit_wasm).apply(null,arguments)},s._ts_tree_get_changed_ranges_wasm=function(){return(s._ts_tree_get_changed_ranges_wasm=s.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},s._ts_tree_cursor_new_wasm=function(){return(s._ts_tree_cursor_new_wasm=s.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},s._ts_tree_cursor_delete_wasm=function(){return(s._ts_tree_cursor_delete_wasm=s.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},s._ts_tree_cursor_reset_wasm=function(){return(s._ts_tree_cursor_reset_wasm=s.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_first_child_wasm=function(){return(s._ts_tree_cursor_goto_first_child_wasm=s.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_next_sibling_wasm=function(){return(s._ts_tree_cursor_goto_next_sibling_wasm=s.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_parent_wasm=function(){return(s._ts_tree_cursor_goto_parent_wasm=s.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_type_id_wasm=function(){return(s._ts_tree_cursor_current_node_type_id_wasm=s.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_named_wasm=function(){return(s._ts_tree_cursor_current_node_is_named_wasm=s.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_missing_wasm=function(){return(s._ts_tree_cursor_current_node_is_missing_wasm=s.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_id_wasm=function(){return(s._ts_tree_cursor_current_node_id_wasm=s.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},s._ts_tree_cursor_start_position_wasm=function(){return(s._ts_tree_cursor_start_position_wasm=s.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},s._ts_tree_cursor_end_position_wasm=function(){return(s._ts_tree_cursor_end_position_wasm=s.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},s._ts_tree_cursor_start_index_wasm=function(){return(s._ts_tree_cursor_start_index_wasm=s.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},s._ts_tree_cursor_end_index_wasm=function(){return(s._ts_tree_cursor_end_index_wasm=s.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},s._ts_tree_cursor_current_field_id_wasm=function(){return(s._ts_tree_cursor_current_field_id_wasm=s.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_wasm=function(){return(s._ts_tree_cursor_current_node_wasm=s.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},s._ts_node_symbol_wasm=function(){return(s._ts_node_symbol_wasm=s.asm.ts_node_symbol_wasm).apply(null,arguments)},s._ts_node_child_count_wasm=function(){return(s._ts_node_child_count_wasm=s.asm.ts_node_child_count_wasm).apply(null,arguments)},s._ts_node_named_child_count_wasm=function(){return(s._ts_node_named_child_count_wasm=s.asm.ts_node_named_child_count_wasm).apply(null,arguments)},s._ts_node_child_wasm=function(){return(s._ts_node_child_wasm=s.asm.ts_node_child_wasm).apply(null,arguments)},s._ts_node_named_child_wasm=function(){return(s._ts_node_named_child_wasm=s.asm.ts_node_named_child_wasm).apply(null,arguments)},s._ts_node_child_by_field_id_wasm=function(){return(s._ts_node_child_by_field_id_wasm=s.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},s._ts_node_next_sibling_wasm=function(){return(s._ts_node_next_sibling_wasm=s.asm.ts_node_next_sibling_wasm).apply(null,arguments)},s._ts_node_prev_sibling_wasm=function(){return(s._ts_node_prev_sibling_wasm=s.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},s._ts_node_next_named_sibling_wasm=function(){return(s._ts_node_next_named_sibling_wasm=s.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},s._ts_node_prev_named_sibling_wasm=function(){return(s._ts_node_prev_named_sibling_wasm=s.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},s._ts_node_parent_wasm=function(){return(s._ts_node_parent_wasm=s.asm.ts_node_parent_wasm).apply(null,arguments)},s._ts_node_descendant_for_index_wasm=function(){return(s._ts_node_descendant_for_index_wasm=s.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_index_wasm=function(){return(s._ts_node_named_descendant_for_index_wasm=s.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_descendant_for_position_wasm=function(){return(s._ts_node_descendant_for_position_wasm=s.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_position_wasm=function(){return(s._ts_node_named_descendant_for_position_wasm=s.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_start_point_wasm=function(){return(s._ts_node_start_point_wasm=s.asm.ts_node_start_point_wasm).apply(null,arguments)},s._ts_node_end_point_wasm=function(){return(s._ts_node_end_point_wasm=s.asm.ts_node_end_point_wasm).apply(null,arguments)},s._ts_node_start_index_wasm=function(){return(s._ts_node_start_index_wasm=s.asm.ts_node_start_index_wasm).apply(null,arguments)},s._ts_node_end_index_wasm=function(){return(s._ts_node_end_index_wasm=s.asm.ts_node_end_index_wasm).apply(null,arguments)},s._ts_node_to_string_wasm=function(){return(s._ts_node_to_string_wasm=s.asm.ts_node_to_string_wasm).apply(null,arguments)},s._ts_node_children_wasm=function(){return(s._ts_node_children_wasm=s.asm.ts_node_children_wasm).apply(null,arguments)},s._ts_node_named_children_wasm=function(){return(s._ts_node_named_children_wasm=s.asm.ts_node_named_children_wasm).apply(null,arguments)},s._ts_node_descendants_of_type_wasm=function(){return(s._ts_node_descendants_of_type_wasm=s.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},s._ts_node_is_named_wasm=function(){return(s._ts_node_is_named_wasm=s.asm.ts_node_is_named_wasm).apply(null,arguments)},s._ts_node_has_changes_wasm=function(){return(s._ts_node_has_changes_wasm=s.asm.ts_node_has_changes_wasm).apply(null,arguments)},s._ts_node_has_error_wasm=function(){return(s._ts_node_has_error_wasm=s.asm.ts_node_has_error_wasm).apply(null,arguments)},s._ts_node_is_missing_wasm=function(){return(s._ts_node_is_missing_wasm=s.asm.ts_node_is_missing_wasm).apply(null,arguments)},s._ts_query_matches_wasm=function(){return(s._ts_query_matches_wasm=s.asm.ts_query_matches_wasm).apply(null,arguments)},s._ts_query_captures_wasm=function(){return(s._ts_query_captures_wasm=s.asm.ts_query_captures_wasm).apply(null,arguments)},s._iswdigit=function(){return(s._iswdigit=s.asm.iswdigit).apply(null,arguments)},s._iswalpha=function(){return(s._iswalpha=s.asm.iswalpha).apply(null,arguments)},s._iswlower=function(){return(s._iswlower=s.asm.iswlower).apply(null,arguments)},s._towupper=function(){return(s._towupper=s.asm.towupper).apply(null,arguments)},s.___errno_location=function(){return(Le=s.___errno_location=s.asm.__errno_location).apply(null,arguments)}),Be=(s._memchr=function(){return(s._memchr=s.asm.memchr).apply(null,arguments)},s._strlen=function(){return(s._strlen=s.asm.strlen).apply(null,arguments)},s.stackSave=function(){return(Be=s.stackSave=s.asm.stackSave).apply(null,arguments)}),De=s.stackRestore=function(){return(De=s.stackRestore=s.asm.stackRestore).apply(null,arguments)},Ve=s.stackAlloc=function(){return(Ve=s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},Ue=s._setThrew=function(){return(Ue=s._setThrew=s.asm.setThrew).apply(null,arguments)};function ze(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=s.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},s.__Znwm=function(){return(s.__Znwm=s.asm._Znwm).apply(null,arguments)},s.__ZdlPv=function(){return(s.__ZdlPv=s.asm._ZdlPv).apply(null,arguments)},s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=s.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},s._orig$ts_parser_timeout_micros=function(){return(s._orig$ts_parser_timeout_micros=s.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},s._orig$ts_parser_set_timeout_micros=function(){return(s._orig$ts_parser_set_timeout_micros=s.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},s.allocate=function(e,t){var r;return r=1==t?Ve(e.length):We(e.length),e.subarray||e.slice?T.set(e,r):T.set(new Uint8Array(e),r),r},ne=function e(){Fe||Je(),Fe||(ne=e)};var Ge=!1;function Je(e){function t(){Fe||(Fe=!0,s.calledRun=!0,I||(te=!0,_e(X),_e(Y),s.onRuntimeInitialized&&s.onRuntimeInitialized(),Ke&&function(e){var t=s._main;if(t){var r=(e=e||[]).length+1,n=Ve(4*(r+1));q[n>>2]=J(m);for(var i=1;i<r;i++)q[(n>>2)+i]=J(e[i-1]);q[(n>>2)+r]=0;try{He(t(r,n),!0)}catch(e){if(e instanceof ze)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),w("exception thrown: "+o),f(1,e)}}}(e),function(){if(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)e=s.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,re>0||!Ge&&(function(){if(O.length){if(!y)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ge=!0,re>0)||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),Q.unshift(e);var e;_e(Q)}(),re>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),t()}),1)):t()))}function He(e,t){t&&ve()&&0===e||(ve()||(s.onExit&&s.onExit(e),I=!0),f(e,new ze(e)))}if(s.run=Je,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();var Ke=!0;s.noInitialRun&&(Ke=!1),Je();const Ze=s,Qe={},Xe=4,Ye=5*Xe,et=2*Xe,tt=2*Xe+2*et,rt={row:0,column:0},st=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ze._ts_init(),it=$(at,"i32"),ot=$(at+Xe,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=$(at,"i32"),this[1]=$(at+Xe,"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!==ft)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. 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,r){if("string"==typeof e)ct=(t,r,s)=>e.slice(t,s);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=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 s=0,n=0;if(r&&r.includedRanges){s=r.includedRanges.length;let e=n=Ze._calloc(s,tt);for(let t=0;t<s;t++)Pt(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Qe,i,this.language,ct);return ct=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,r,s){gt(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Qe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;jt(t,e.startPosition),jt(t+=et,e.oldEndPosition),jt(t+=et,e.newEndPosition),M(t+=et,e.startIndex,"i32"),M(t+=Xe,e.oldEndIndex,"i32"),M(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),wt(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=$(at,"i32"),r=$(at+Xe,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=Ot(e),e+=tt;Ze._free(r)}return s}}class ht{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(at)}get endIndex(){return bt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(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),wt(this.tree)}namedChild(e){return bt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return bt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(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=$(at,"i32"),t=$(at+Xe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=Ye;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=$(at,"i32"),t=$(at+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=Ye;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const i=Ze._malloc(Xe*s.length);for(let e=0,t=s.length;e<t;e++)M(i+e*Xe,s[e],"i32");bt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.column);const o=$(at,"i32"),a=$(at+Xe,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=wt(this.tree,e),e+=Ye}return Ze._free(a),Ze._free(i),c}get nextSibling(){return bt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return bt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return bt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return bt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return bt(this),Ze._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Ye;return M(r,e,"i32"),M(r+Xe,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");bt(this);let r=at+Ye;return M(r,e,"i32"),M(r+Xe,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Ye;return jt(r,e),jt(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(this);let r=at+Ye;return jt(r,e),jt(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Qe,this.tree)}toString(){bt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=T[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class mt{constructor(e,t){gt(e),this.tree=t,xt(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,at+Ye),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),xt(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 _t(this.tree,e,t)}get startPosition(){return Et(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),St(at)}get endPosition(){return Et(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),St(at)}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]),wt(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 xt(this),1===e}gotoNextSibling(){Et(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{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]=V(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?V(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 r=G(e),s=Ze._malloc(r+1);z(e,s,r+1);const n=Ze._ts_language_symbol_for_name(this[0],s,r,t);return Ze._free(s),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?V(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=G(e),r=Ze._malloc(t+1);z(e,r,t+1);const s=Ze._ts_query_new(this[0],r,t,at,at+Xe);if(!s){const t=$(at+Xe,"i32"),s=V(r,$(at,"i32")).length,n=e.substr(s,100).split("\n")[0];let i,o=n.match(st)[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 ${s}: '${n}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${s}: '${n}'...`),o=""}throw i.index=s,i.length=o.length,Ze._free(r),i}const n=Ze._ts_query_string_count(s),i=Ze._ts_query_capture_count(s),o=Ze._ts_query_pattern_count(s),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(s,e,at),r=$(at,"i32");a[e]=V(t,r)}for(let e=0;e<n;e++){const t=Ze._ts_query_string_value_for_id(s,e,at),r=$(at,"i32");c[e]=V(t,r)}const u=new Array(o),l=new Array(o),p=new Array(o),h=new Array(o),m=new Array(o);for(let e=0;e<o;e++){const t=Ze._ts_query_predicates_for_pattern(s,e,at),r=$(at,"i32");h[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=$(i,"i32"),r=$(i+=Xe,"i32");if(i+=Xe,1===t)n.push({type:"capture",name:a[r]});else if(2===t)n.push({type:"string",value:c[r]});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 r=!0;switch(t){case"not-eq?":r=!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,s=n[2].name;m[e].push((function(e){let n,i;for(const r of e)r.name===t&&(n=r.node),r.name===s&&(i=r.node);return void 0===n||void 0===i||n.text===i.text===r}))}else{const t=n[1].name,s=n[2].value;m[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===s===r;return!0}))}break;case"not-match?":r=!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 s=n[1].name,i=new RegExp(n[2].value);m[e].push((function(e){for(const t of e)if(t.name===s)return i.test(t.node.text)===r;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:h[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(r),new dt(Qe,s,a,m,h,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(8544);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const s="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>s(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>nt.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new ft(Qe,s)}))}}class dt{constructor(e,t,r,s,n,i,o,a){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.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,r.row,r.column,n);const i=$(at,"i32"),o=$(at+Xe,"i32"),a=$(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const r=$(l,"i32"),s=$(l+=Xe,"i32");l+=Xe;const n=new Array(s);if(l=yt(this,e.tree,l,n),this.textPredicates[r].every((e=>e(n)))){c[u++]={pattern:r,captures:n};const e=this.setProperties[r];e&&(c[t].setProperties=e);const s=this.assertedProperties[r];s&&(c[t].assertedProperties=s);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=u,Ze._free(o),c}captures(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.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,r.row,r.column,n);const i=$(at,"i32"),o=$(at+Xe,"i32"),a=$(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=$(l,"i32"),r=$(l+=Xe,"i32"),s=$(l+=Xe,"i32");if(l+=Xe,u.length=r,l=yt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ze._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function yt(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=$(r,"i32"),o=wt(t,r+=Xe);r+=Ye,s[n]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Qe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=at;M(t,e.id,"i32"),M(t+=Xe,e.startIndex,"i32"),M(t+=Xe,e.startPosition.row,"i32"),M(t+=Xe,e.startPosition.column,"i32"),M(t+=Xe,e[0],"i32")}function wt(e,t=at){const r=$(t,"i32");if(0===r)return null;const s=$(t+=Xe,"i32"),n=$(t+=Xe,"i32"),i=$(t+=Xe,"i32"),o=$(t+=Xe,"i32"),a=new ht(Qe,e);return a.id=r,a.startIndex=s,a.startPosition={row:n,column:i},a[0]=o,a}function Et(e,t=at){M(t+0*Xe,e[0],"i32"),M(t+1*Xe,e[1],"i32"),M(t+2*Xe,e[2],"i32")}function xt(e){e[0]=$(at+0*Xe,"i32"),e[1]=$(at+1*Xe,"i32"),e[2]=$(at+2*Xe,"i32")}function jt(e,t){M(e,t.row,"i32"),M(e+Xe,t.column,"i32")}function St(e){return{row:$(e,"i32"),column:$(e+Xe,"i32")}}function Pt(e,t){jt(e,t.startPosition),jt(e+=et,t.endPosition),M(e+=et,t.startIndex,"i32"),M(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=St(e),e+=et,t.endPosition=St(e),e+=et,t.startIndex=$(e,"i32"),e+=Xe,t.endIndex=$(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=ft,s.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=n},8544:()=>{},1560:()=>{},1204:(e,t,r)=>{e.exports=r(5616)},2772:(e,t,r)=>{"use strict";var s=r(7828);e.exports=s},7984:(e,t,r)=>{"use strict";r(4420),r(8436),r(5936),r(340),r(4176);var s=r(9832);e.exports=s.AggregateError},5616:(e,t,r)=>{"use strict";e.exports=r(9888)},9888:(e,t,r)=>{"use strict";r(2796);var s=r(2772);e.exports=s},28:(e,t,r)=>{"use strict";var s=r(8536),n=r(8944),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},1459:(e,t,r)=>{"use strict";var s=r(7432),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},1472:e=>{"use strict";e.exports=function(){}},2032:(e,t,r)=>{"use strict";var s=r(8608),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},7464:(e,t,r)=>{"use strict";var s=r(445),n=r(4180),i=r(5316),o=function(e){return function(t,r,o){var a,c=s(t),u=i(c),l=n(o,u);if(e&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===r)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},7936:(e,t,r)=>{"use strict";var s=r(9252),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},636:(e,t,r)=>{"use strict";var s=r(6744),n=r(8536),i=r(7936),o=r(3336)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(s=i(t))&&n(t.callee)?"Arguments":s}},1100:(e,t,r)=>{"use strict";var s=r(4664),n=r(7876),i=r(1008),o=r(2280);e.exports=function(e,t,r){for(var a=n(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];s(e,p)||r&&s(r,p)||c(e,p,u(t,p))}}},2480:(e,t,r)=>{"use strict";var s=r(2064);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3848:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},896:(e,t,r)=>{"use strict";var s=r(9172),n=r(2280),i=r(8981);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},8981:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5424:(e,t,r)=>{"use strict";var s=r(896);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},4408:(e,t,r)=>{"use strict";var s=r(5216),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},9172:(e,t,r)=>{"use strict";var s=r(2064);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},1940:(e,t,r)=>{"use strict";var s=r(5216),n=r(8608),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},472: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}},2276:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3896:(e,t,r)=>{"use strict";var s,n,i=r(5216),o=r(2276),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(n=(s=l.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},3620:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9492:(e,t,r)=>{"use strict";var s=r(9252),n=Error,i=s("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},9035:(e,t,r)=>{"use strict";var s=r(896),n=r(9492),i=r(1376),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},1376:(e,t,r)=>{"use strict";var s=r(2064),n=r(8981);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},3952:(e,t,r)=>{"use strict";var s=r(5216),n=r(9867),i=r(1248),o=r(8536),a=r(1008).f,c=r(6155),u=r(9832),l=r(1884),p=r(896),h=r(4664),m=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,f,d,_,y,g,v,b,w=e.target,E=e.global,x=e.stat,j=e.proto,S=E?s:x?s[w]:s[w]&&s[w].prototype,P=E?u:u[w]||p(u,w,{})[w],O=P.prototype;for(d in t)n=!(r=c(E?d:w+(x?".":"#")+d,e.forced))&&S&&h(S,d),y=P[d],n&&(g=e.dontCallGetSet?(b=a(S,d))&&b.value:S[d]),_=n&&g?g:t[d],(r||j||typeof y!=typeof _)&&(v=e.bind&&n?l(_,s):e.wrap&&n?m(_):j&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(v,"sham",!0),p(P,d,v),j&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(r||!O[d])&&p(O,d,_)))}},2064:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9867:(e,t,r)=>{"use strict";var s=r(5200),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},1884:(e,t,r)=>{"use strict";var s=r(1248),n=r(28),i=r(5200),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},5200:(e,t,r)=>{"use strict";var s=r(2064);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4580:(e,t,r)=>{"use strict";var s=r(5200),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},3564:(e,t,r)=>{"use strict";var s=r(9172),n=r(4664),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},7864:(e,t,r)=>{"use strict";var s=r(9252),n=r(28);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},1248:(e,t,r)=>{"use strict";var s=r(7936),n=r(9252);e.exports=function(e){if("Function"===s(e))return n(e)}},9252:(e,t,r)=>{"use strict";var s=r(5200),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},3464:(e,t,r)=>{"use strict";var s=r(9832),n=r(5216),i=r(8536),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},68:(e,t,r)=>{"use strict";var s=r(636),n=r(1636),i=r(9511),o=r(7256),a=r(3336)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},4656:(e,t,r)=>{"use strict";var s=r(4580),n=r(28),i=r(2032),o=r(8944),a=r(68),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(n(r))return i(s(r,e));throw new c(o(e)+" is not iterable")}},1636:(e,t,r)=>{"use strict";var s=r(28),n=r(9511);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},5216:function(e,t,r){"use strict";var s=function(e){return e&&e.Math===Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||s("object"==typeof this&&this)||function(){return this}()||Function("return this")()},4664:(e,t,r)=>{"use strict";var s=r(9252),n=r(2819),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},3328:e=>{"use strict";e.exports={}},7896:(e,t,r)=>{"use strict";var s=r(3464);e.exports=s("document","documentElement")},124:(e,t,r)=>{"use strict";var s=r(9172),n=r(2064),i=r(1940);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2899:(e,t,r)=>{"use strict";var s=r(9252),n=r(2064),i=r(7936),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},1664:(e,t,r)=>{"use strict";var s=r(8536),n=r(8608),i=r(2288);e.exports=function(e,t,r){var o,a;return i&&s(o=t.constructor)&&o!==r&&n(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},9055:(e,t,r)=>{"use strict";var s=r(8608),n=r(896);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},2344:(e,t,r)=>{"use strict";var s,n,i,o=r(3184),a=r(5216),c=r(8608),u=r(896),l=r(4664),p=r(9284),h=r(924),m=r(3328),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new _);y.get=y.get,y.has=y.has,y.set=y.set,s=function(e,t){if(y.has(e))throw new d(f);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=h("state");m[g]=!0,s=function(e,t){if(l(e,g))throw new d(f);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:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return r}}}},4992:(e,t,r)=>{"use strict";var s=r(3336),n=r(7256),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},8536: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}},6155:(e,t,r)=>{"use strict";var s=r(2064),n=r(8536),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===l||r!==u&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";e.exports=o},9511:e=>{"use strict";e.exports=function(e){return null==e}},8608:(e,t,r)=>{"use strict";var s=r(8536);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},7432:(e,t,r)=>{"use strict";var s=r(8608);e.exports=function(e){return s(e)||null===e}},1016:e=>{"use strict";e.exports=!0},5376:(e,t,r)=>{"use strict";var s=r(3464),n=r(8536),i=r(2360),o=r(6416),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},5799:(e,t,r)=>{"use strict";var s=r(1884),n=r(4580),i=r(2032),o=r(8944),a=r(4992),c=r(5316),u=r(2360),l=r(4656),p=r(68),h=r(5872),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,r){var _,y,g,v,b,w,E,x=r&&r.that,j=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),A=s(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},M=function(e){return j?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(S)_=e.iterator;else if(P)_=e;else{if(!(y=p(e)))throw new m(o(e)+" is not iterable");if(a(y)){for(g=0,v=c(e);v>g;g++)if((b=M(e[g]))&&u(d,b))return b;return new f(!1)}_=l(e,y)}for(w=S?e.next:_.next;!(E=n(w,_)).done;){try{b=M(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof b&&b&&u(d,b))return b}return new f(!1)}},5872:(e,t,r)=>{"use strict";var s=r(4580),n=r(2032),i=r(1636);e.exports=function(e,t,r){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=s(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return n(o),r}},9976:(e,t,r)=>{"use strict";var s=r(2224).IteratorPrototype,n=r(4488),i=r(8981),o=r(5836),a=r(7256),c=function(){return this};e.exports=function(e,t,r,u){var l=t+" Iterator";return e.prototype=n(s,{next:i(+!u,r)}),o(e,l,!1,!0),a[l]=c,e}},536:(e,t,r)=>{"use strict";var s=r(3952),n=r(4580),i=r(1016),o=r(3564),a=r(8536),c=r(9976),u=r(7800),l=r(2288),p=r(5836),h=r(896),m=r(5424),f=r(3336),d=r(7256),_=r(2224),y=o.PROPER,g=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",j="entries",S=function(){return this};e.exports=function(e,t,r,o,f,_,P){c(r,t,o);var O,A,k,M=function(e){if(e===f&&C)return C;if(!b&&e&&e in N)return N[e];switch(e){case E:case x:case j:return function(){return new r(this,e)}}return function(){return new r(this)}},$=t+" Iterator",I=!1,N=e.prototype,R=N[w]||N["@@iterator"]||f&&N[f],C=!b&&R||M(f),T="Array"===t&&N.entries||R;if(T&&(O=u(T.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||m(O,w,S)),p(O,$,!0,!0),i&&(d[$]=S)),y&&f===x&&R&&R.name!==x&&(!i&&g?h(N,"name",x):(I=!0,C=function(){return n(R,this)})),f)if(A={values:M(x),keys:_?C:M(E),entries:M(j)},P)for(k in A)(b||I||!(k in N))&&m(N,k,A[k]);else s({target:t,proto:!0,forced:b||I},A);return i&&!P||N[w]===C||m(N,w,C,{name:f}),d[t]=C,A}},2224:(e,t,r)=>{"use strict";var s,n,i,o=r(2064),a=r(8536),c=r(8608),u=r(4488),l=r(7800),p=r(5424),h=r(3336),m=r(1016),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(n=l(l(i)))!==Object.prototype&&(s=n):d=!0),!c(s)||o((function(){var e={};return s[f].call(e)!==e}))?s={}:m&&(s=u(s)),a(s[f])||p(s,f,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:d}},7256:e=>{"use strict";e.exports={}},5316:(e,t,r)=>{"use strict";var s=r(4596);e.exports=function(e){return s(e.length)}},24:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},3080:(e,t,r)=>{"use strict";var s=r(9352);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},4488:(e,t,r)=>{"use strict";var s,n=r(2032),i=r(6452),o=r(3620),a=r(3328),c=r(7896),u=r(1940),l=r(924),p="prototype",h="script",m=l("IE_PROTO"),f=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&s?_(s):(t=u("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(s);for(var n=o.length;n--;)delete y[p][o[n]];return y()};a[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(f[p]=n(e),r=new f,f[p]=null,r[m]=e):r=y(),void 0===t?r:i.f(r,t)}},6452:(e,t,r)=>{"use strict";var s=r(9172),n=r(3109),i=r(2280),o=r(2032),a=r(445),c=r(9547);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),u=n.length,l=0;u>l;)i.f(e,r=n[l++],s[r]);return e}},2280:(e,t,r)=>{"use strict";var s=r(9172),n=r(124),i=r(3109),o=r(2032),a=r(2319),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var s=l(e,t);s&&s[m]&&(e[t]=r.value,r={configurable:h in r?r[h]:s[h],enumerable:p in r?r[p]:s[p],writable:!1})}return u(e,t,r)}:u:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return u(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},1008:(e,t,r)=>{"use strict";var s=r(9172),n=r(4580),i=r(6500),o=r(8981),a=r(445),c=r(2319),u=r(4664),l=r(124),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!n(i.f,e,t),e[t])}},1600:(e,t,r)=>{"use strict";var s=r(2884),n=r(3620).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},4060:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7800:(e,t,r)=>{"use strict";var s=r(4664),n=r(8536),i=r(2819),o=r(924),a=r(2480),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof u?l:null}},2360:(e,t,r)=>{"use strict";var s=r(9252);e.exports=s({}.isPrototypeOf)},2884:(e,t,r)=>{"use strict";var s=r(9252),n=r(4664),i=r(445),o=r(7464).indexOf,a=r(3328),c=s([].push);e.exports=function(e,t){var r,s=i(e),u=0,l=[];for(r in s)!n(a,r)&&n(s,r)&&c(l,r);for(;t.length>u;)n(s,r=t[u++])&&(~o(l,r)||c(l,r));return l}},9547:(e,t,r)=>{"use strict";var s=r(2884),n=r(3620);e.exports=Object.keys||function(e){return s(e,n)}},6500:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},2288:(e,t,r)=>{"use strict";var s=r(7864),n=r(2032),i=r(1459);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return n(r),i(s),t?e(r,s):r.__proto__=s,r}}():void 0)},1616:(e,t,r)=>{"use strict";var s=r(6744),n=r(636);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},416:(e,t,r)=>{"use strict";var s=r(4580),n=r(8536),i=r(8608),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw new o("Can't convert object to primitive value")}},7876:(e,t,r)=>{"use strict";var s=r(3464),n=r(9252),i=r(1600),o=r(4060),a=r(2032),c=n([].concat);e.exports=s("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},9832:e=>{"use strict";e.exports={}},9360:(e,t,r)=>{"use strict";var s=r(2280).f;e.exports=function(e,t,r){r in e||s(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},9952:(e,t,r)=>{"use strict";var s=r(9511),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},5836:(e,t,r)=>{"use strict";var s=r(6744),n=r(2280).f,i=r(896),o=r(4664),a=r(1616),c=r(3336)("toStringTag");e.exports=function(e,t,r,u){var l=r?e:e&&e.prototype;l&&(o(l,c)||n(l,c,{configurable:!0,value:t}),u&&!s&&i(l,"toString",a))}},924:(e,t,r)=>{"use strict";var s=r(8852),n=r(6696),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},9284:(e,t,r)=>{"use strict";var s=r(5216),n=r(4408),i="__core-js_shared__",o=s[i]||n(i,{});e.exports=o},8852:(e,t,r)=>{"use strict";var s=r(1016),n=r(9284);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:s?"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"})},6392:(e,t,r)=>{"use strict";var s=r(9252),n=r(5016),i=r(9352),o=r(9952),a=s("".charAt),c=s("".charCodeAt),u=s("".slice),l=function(e){return function(t,r){var s,l,p=i(o(t)),h=n(r),m=p.length;return h<0||h>=m?e?"":void 0:(s=c(p,h))<55296||s>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):s:e?u(p,h,h+2):l-56320+(s-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},5235:(e,t,r)=>{"use strict";var s=r(3896),n=r(2064),i=r(5216).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4180:(e,t,r)=>{"use strict";var s=r(5016),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},445:(e,t,r)=>{"use strict";var s=r(2899),n=r(9952);e.exports=function(e){return s(n(e))}},5016:(e,t,r)=>{"use strict";var s=r(24);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},4596:(e,t,r)=>{"use strict";var s=r(5016),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},2819:(e,t,r)=>{"use strict";var s=r(9952),n=Object;e.exports=function(e){return n(s(e))}},3504:(e,t,r)=>{"use strict";var s=r(4580),n=r(8608),i=r(5376),o=r(1636),a=r(416),c=r(3336),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,l);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},2319:(e,t,r)=>{"use strict";var s=r(3504),n=r(5376);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},6744:(e,t,r)=>{"use strict";var s={};s[r(3336)("toStringTag")]="z",e.exports="[object z]"===String(s)},9352:(e,t,r)=>{"use strict";var s=r(636),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},8944:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},6696:(e,t,r)=>{"use strict";var s=r(9252),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},6416:(e,t,r)=>{"use strict";var s=r(5235);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3109:(e,t,r)=>{"use strict";var s=r(9172),n=r(2064);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},3184:(e,t,r)=>{"use strict";var s=r(5216),n=r(8536),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},3336:(e,t,r)=>{"use strict";var s=r(5216),n=r(8852),i=r(4664),o=r(6696),a=r(5235),c=r(6416),u=s.Symbol,l=n("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},5960:(e,t,r)=>{"use strict";var s=r(3464),n=r(4664),i=r(896),o=r(2360),a=r(2288),c=r(1100),u=r(9360),l=r(1664),p=r(3080),h=r(9055),m=r(9035),f=r(9172),d=r(1016);e.exports=function(e,t,r,_){var y="stackTraceLimit",g=_?2:1,v=e.split("."),b=v[v.length-1],w=s.apply(null,v);if(w){var E=w.prototype;if(!d&&n(E,"cause")&&delete E.cause,!r)return w;var x=s("Error"),j=t((function(e,t){var r=p(_?t:e,void 0),s=_?new w(e):new w;return void 0!==r&&i(s,"message",r),m(s,j,s.stack,2),this&&o(E,this)&&l(s,this,j),arguments.length>g&&h(s,arguments[g]),s}));if(j.prototype=E,"Error"!==b?a?a(j,x):c(j,x,{name:!0}):f&&y in w&&(u(j,w,y),u(j,w,"prepareStackTrace")),c(j,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=j}catch(e){}return j}}},5936:(e,t,r)=>{"use strict";var s=r(3952),n=r(3464),i=r(9867),o=r(2064),a=r(5960),c="AggregateError",u=n(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));s({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),l,!0)})},9232:(e,t,r)=>{"use strict";var s=r(3952),n=r(2360),i=r(7800),o=r(2288),a=r(1100),c=r(4488),u=r(896),l=r(8981),p=r(9055),h=r(9035),m=r(5799),f=r(3080),d=r(3336)("toStringTag"),_=Error,y=[].push,g=function(e,t){var r,s=n(v,this);o?r=o(new _,s?i(this):v):(r=s?this:c(v),u(r,d,"Error")),void 0!==t&&u(r,"message",f(t)),h(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return m(e,y,{that:a}),u(r,"errors",a),r};o?o(g,_):a(g,_,{name:!0});var v=g.prototype=c(_.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});s({global:!0,constructor:!0,arity:2},{AggregateError:g})},8436:(e,t,r)=>{"use strict";r(9232)},340:(e,t,r)=>{"use strict";var s=r(445),n=r(1472),i=r(7256),o=r(2344),a=r(2280).f,c=r(536),u=r(3848),l=r(1016),p=r(9172),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:s(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(r,!1);case"values":return u(t[r],!1)}return u([r,t[r]],!1)}),"values");var d=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},4420:(e,t,r)=>{"use strict";var s=r(3952),n=r(5216),i=r(9867),o=r(5960),a="WebAssembly",c=n[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var r={};r[e]=o(e,t,u),s({global:!0,constructor:!0,arity:1,forced:u},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,u),s({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};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)}}))},4176:(e,t,r)=>{"use strict";var s=r(6392).charAt,n=r(9352),i=r(2344),o=r(536),a=r(3848),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:n(e),index:0})}),(function(){var e,t=l(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},2796:(e,t,r)=>{"use strict";r(8436)},3624:(e,t,r)=>{"use strict";r(340);var s=r(472),n=r(5216),i=r(5836),o=r(7256);for(var a in s)i(n[a],a),o[a]=o.Array},7828:(e,t,r)=>{"use strict";r(2796);var s=r(7984);r(3624),e.exports=s}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&!e;)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var s={};return(()=>{"use strict";r.r(s),r.d(s,{detect:()=>Eh,detectionRegExp:()=>wh,mediaTypes:()=>bh,namespace:()=>jh,parse:()=>xh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>rr,includesClasses:()=>nr,includesSymbols:()=>sr,isAnnotationElement:()=>Qt,isArrayElement:()=>Jt,isBooleanElement:()=>zt,isCommentElement:()=>Xt,isElement:()=>Bt,isLinkElement:()=>Kt,isMemberElement:()=>Ht,isNullElement:()=>Ut,isNumberElement:()=>Vt,isObjectElement:()=>Gt,isParseResultElement:()=>Yt,isPrimitiveElement:()=>tr,isRefElement:()=>Zt,isSourceMapElement:()=>er,isStringElement:()=>Dt});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>bo,isJSONSchemaElement:()=>vo,isLinkDescriptionElement:()=>Eo,isMediaElement:()=>wo});var n={};r.r(n),r.d(n,{isOpenApiExtension:()=>_a,isReferenceLikeElement:()=>ma,isServerLikeElement:()=>fa,isTagLikeElement:()=>da});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(r){return 0===arguments.length||o(r)?t:e.apply(this,arguments)}}function c(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return o(r)?t:a((function(t){return e(r,t)}));default:return o(r)&&o(s)?t:o(r)?a((function(t){return e(t,s)})):o(s)?a((function(t){return e(r,t)})):e(r,s)}}}function u(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return o(r)?t:c((function(t,s){return e(r,t,s)}));case 2:return o(r)&&o(s)?t:o(r)?c((function(t,r){return e(t,s,r)})):o(s)?c((function(t,s){return e(r,t,s)})):a((function(t){return e(r,s,t)}));default:return o(r)&&o(s)&&o(n)?t:o(r)&&o(s)?c((function(t,r){return e(t,r,n)})):o(r)&&o(n)?c((function(t,r){return e(t,s,r)})):o(s)&&o(n)?c((function(t,s){return e(r,t,s)})):o(r)?a((function(t){return e(t,s,n)})):o(s)?a((function(t){return e(r,t,n)})):o(n)?a((function(t){return e(r,s,t)})):e(r,s,n)}}}r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>Ec,isCallbackElement:()=>rc,isComponentsElement:()=>sc,isContactElement:()=>nc,isExampleElement:()=>ic,isExternalDocumentationElement:()=>oc,isHeaderElement:()=>ac,isInfoElement:()=>cc,isLicenseElement:()=>uc,isLinkElement:()=>lc,isMediaTypeElement:()=>Pc,isOpenApi3_0Element:()=>hc,isOpenapiElement:()=>pc,isOperationElement:()=>mc,isParameterElement:()=>fc,isPathItemElement:()=>dc,isPathsElement:()=>_c,isReferenceElement:()=>yc,isRequestBodyElement:()=>gc,isResponseElement:()=>vc,isResponsesElement:()=>bc,isSchemaElement:()=>wc,isSecurityRequirementElement:()=>xc,isServerElement:()=>jc,isServerVariableElement:()=>Sc,isServersElement:()=>Oc});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return e<<0===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}const m=c((function(e,t){var r=e<0?t.length+e:e;return h(t)?t.charAt(r):t[r]}));const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,r){return l(e,f(t,r))}));var _=c((function(e,t){for(var r={},s={},n=0,i=e.length;n<i;)s[e[n]]=1,n+=1;for(var o in t)s.hasOwnProperty(o)||(r[o]=t[o]);return r}));const y=_;function g(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var w="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,r){return function(s,n,i){if(b(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[w])return r(s,n,i[w]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function j(e,t,r,s){return r[s](e,t)}const S=E(g,j,x);function P(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!v(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function O(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}const A=function(){return this.xf["@@transducer/init"]()},k=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"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const $=function(e){return function(t){return new M(e,t)}};function I(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,c,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 N(e,t,r){return function(){for(var s=[],n=0,i=e,a=0,c=!1;a<t.length||n<arguments.length;){var u;a<t.length&&(!o(t[a])||n>=arguments.length)?u=t[a]:(u=arguments[n],n+=1),s[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?r.apply(this,s):I(Math.max(0,i),N(e,s,r))}}const R=c((function(e,t){return 1===e?a(t):I(e,N(e,[],t))}));function C(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var T=Object.prototype.toString;const F=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"),W=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},D="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=L&&F(e);for(t in e)!C(t,e)||n&&"length"===t||(s[s.length]=t);if(q)for(r=W.length-1;r>=0;)C(t=W[r],e)&&!B(s,t)&&(s[s.length]=t),r-=1;return s})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const V=D;const U=c(P(["fantasy-land/map","map"],$,(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(r,s){return r[s]=e(t[s]),r}),{},V(t));default:return O(e,t)}})));const z=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:S((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,U(r,t))}),[],e)}));const G=c((function(e,t){var r=R(e,t);return R(e,(function(){return g(z,U(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const J=a((function(e){return G(e.length,e)}));const H=J(a((function(e){return!e})));function K(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Z(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Y(e,t,r,s){var n=K(e);function i(e,t){return ee(e,t,r.slice(),s.slice())}return!Z((function(e,t){return!Z(i,t,e)}),K(t),n)}function ee(e,t,r,s){if(Q(e,t))return!0;var n,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Y(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&Y(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=V(e);if(c.length!==V(t).length)return!1;var u=r.concat([e]),l=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!C(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const re=a((function(e){return function(){return e}}));const se=re(void 0);const ne=te(se());const ie=H(ne);var oe=r(928);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function pe(e,t,r,s){return e["@@transducer/result"](r[s](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=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 fe=u((function(e,t,r){return he("function"==typeof e?new me(e):e,t,r)}));function de(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return v(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const _e=u(de("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const ye=a(de("tail",_e(1,1/0)));function ge(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,fe(ae,arguments[0],ye(arguments)))}var ve=function(e,t){switch(arguments.length){case 0:return ve;case 1:return function t(r){return 0===arguments.length?t:Q(e,r)};default:return Q(e,t)}};const be=ve;function we(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(te(e[r],t))return r;r+=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 xe=function(e){return(e<10?"0":"")+e};const je="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+xe(e.getUTCMonth()+1)+"-"+xe(e.getUTCDate())+"T"+xe(e.getUTCHours())+":"+xe(e.getUTCMinutes())+":"+xe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var Pe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Oe(e){return function(t){return new Pe(e,t)}}const Ae=c(P(["fantasy-land/filter","filter"],Oe,(function(e,t){return Se(t)?g((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},V(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const ke=c((function(e,t){return Ae((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Me(e,t){var r=function(r){var s=t.concat([e]);return we(r,s)?"<Circular>":Me(r,s)},s=function(e,t){return O((function(t){return Ee(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(r,e).join(", ")+"))";case"[object Array]":return"["+O(r,e).concat(s(e,ke((function(e){return/^\d+$/.test(e)}),V(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Ee(je(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":Ee(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,V(e)).join(", ")+"}"}}const $e=a((function(e){return Me(e,[])}));const Ie=c((function(e,t){return e.map((function(e){for(var r,s=t,n=0;n<e.length;){if(null==s)return;r=e[n],s=p(r)?m(r,s):s[r],n+=1}return s}))}));const Ne=c((function(e,t){return Ie([e],t)[0]}));const Re=u((function(e,t,r){return e(Ne(t,r))}));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=c((function(e,t){return e&&t}));const Fe=c((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 We=H(qe);function Le(e){return Le="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},Le(e)}const Be=function(e){return"object"===Le(e)};const De=R(1,Fe(We,Be));const Ve=c((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=$e(e),o=r(i,$e(t));return void 0!==o&&o===i?e:t}));const Ue=c((function(e,t){return U(f(e),t)}));const ze=a((function(e){return R(fe(Ve,0,Ue("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ge=R(1,ge(X,be("GeneratorFunction")));const Je=R(1,ge(X,be("AsyncFunction")));const He=ze([ge(X,be("Function")),Ge,Je]);var Ke=ge(X,be("Object")),Ze=ge($e,te($e(Object))),Qe=Re(Fe(He,Ze),["constructor"]);const Xe=R(1,(function(e){if(!De(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class Ye extends oe.M${constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const et=Ye;class tt extends oe.M${constructor(e,t,r){super(e,t,r),this.element="comment"}}const rt=tt;class st extends oe.uQ{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(ne(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const nt=st;class it extends oe.uQ{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new oe.uQ([e.start.row,e.start.column,e.start.char]),r=new oe.uQ([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const ot=it;class at extends oe.MH{constructor(){super(),this.register("annotation",et),this.register("comment",rt),this.register("parseResult",nt),this.register("sourceMap",ot)}}const ct=new at,ut=e=>{const t=new at;return Xe(e)&&t.use(e),t},lt=ct;const pt=R(1,ge(X,be("String"))),ht=r.p+"23aac571c96605dc25219087ad291441.wasm",mt=globalThis.fetch;He(mt)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?mt.apply(globalThis,[ht,ye(e)]):mt.apply(globalThis,e));var ft=r(843),dt=r(1204);const _t=class extends dt{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(_t,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=yt,vt=r.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let bt=null,wt=null;const Et=async e=>{if(null===bt&&null===wt)wt=ft.init().then((()=>ft.Language.load(vt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{wt=null})),bt=await wt;else if(null===bt&&null!==wt)bt=await wt;else if(null===bt)throw new gt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return bt.parse(e)};const xt=class extends gt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},jt=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},St={},Pt=e=>null==e?void 0:e.type,Ot=e=>"string"==typeof Pt(e),At=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),kt=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=jt,nodeTypeGetter:c=Pt,nodePredicate:u=Ot,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const h=r||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===_.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(v.splice(s,1),e+=1):v[s]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=d?y:_[y],v=f[r],v===i||void 0===v)continue;b.push(r)}let j;if(!Array.isArray(v)){if(!u(v))throw new xt(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;j=i.call(t,v,r,f,b,w)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var E;if(void 0===j&&x&&g.push([r,v]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],y=-1,g=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);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}}kt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=jt,nodeTypeGetter:c=Pt,nodePredicate:u=Ot,nodeCloneFn:l=At,detectCycles:p=!0}={})=>{const h=r||{};let m,f,d=Array.isArray(e),_=[e],y=-1,g=[],v=e;const b=[],w=[];do{y+=1;const e=y===_.length;let r;const x=e&&0!==g.length;if(e){if(r=0===w.length?void 0:b.pop(),v=f,f=w.pop(),x)if(d){v=v.slice();let e=0;for(const[t,r]of g){const s=t-e;r===i?(v.splice(s,1),e+=1):v[s]=r}}else{v=l(v);for(const[e,t]of g)v[e]=t}y=m.index,_=m.keys,g=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(r=d?y:_[y],v=f[r],v===i||void 0===v)continue;b.push(r)}let j;if(!Array.isArray(v)){if(!u(v))throw new xt(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;j=await i.call(t,v,r,f,b,w)}if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!u(j)){b.pop();continue}v=j}}var E;if(void 0===j&&x&&g.push([r,v]),!e)m={inArray:d,index:y,keys:_,edits:g,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],y=-1,g=[],f!==i&&void 0!==f&&w.push(f),f=v}while(void 0!==m);return 0!==g.length?g[g.length-1][1]:e};var $t=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 It(e){return function(t){return new $t(e,t)}}const Nt=c(P(["all"],It,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Rt=a((function(e){return R(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(c(we)),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,Ft=(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.uQ)&&t.classes.includes(e),Wt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Lt=e=>e({hasMethod:Ct,hasBasicElementProps:Tt,primitiveEq:Ft,isElementType:Wt,hasClass:qt}),Bt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.gr||e(r)&&t(void 0,r))),Dt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.M$||e(r)&&t("string",r))),Vt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.wH||e(r)&&t("number",r))),Ut=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.WM||e(r)&&t("null",r))),zt=Lt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof oe.Ar||e(r)&&t("boolean",r))),Gt=Lt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof oe.We||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Jt=Lt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof oe.uQ&&!(s instanceof oe.We)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Ht=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oe.u6||e(s)&&t("member",s)&&r(void 0,s))),Kt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oe.UH||e(s)&&t("link",s)&&r(void 0,s))),Zt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oe.eE||e(s)&&t("ref",s)&&r(void 0,s))),Qt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof et||e(s)&&t("annotation",s)&&r("array",s))),Xt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rt||e(s)&&t("comment",s)&&r("string",s))),Yt=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nt||e(s)&&t("parseResult",s)&&r("array",s))),er=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ot||e(s)&&t("sourceMap",s)&&r("array",s))),tr=e=>Wt("object",e)||Wt("array",e)||Wt("boolean",e)||Wt("number",e)||Wt("string",e)||Wt("null",e)||Wt("member",e),rr=e=>er(e.meta.get("sourceMap")),sr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Jt(r)&&Nt(Rt(r.toValue()),e)},nr=(e,t)=>0===e.length||Nt(Rt(t.classes.toValue()),e);const ir=class extends xt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const or=class extends ir{};const ar=class extends ir{},cr=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:n}=e,i=Bt(t)?cr(t,s):t,o=Bt(n)?cr(n,s):n,a=new oe.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof oe.wL){const t=e=>cr(e,s),n=[...e].map(t),i=new oe.wL(n);return r.set(e,i),i}if(e instanceof oe.eW){const t=e=>cr(e,s),n=[...e].map(t),i=new oe.eW(n);return r.set(e,i),i}if(Bt(e)){const t=pr(e);if(r.set(e,t),e.content)if(Bt(e.content))t.content=cr(e.content,s);else if(e.content instanceof oe.KeyValuePair)t.content=cr(e.content,s);else if(Array.isArray(e.content)){const r=e=>cr(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new or("Value provided to cloneDeep function couldn't be cloned",{value:e})};cr.safe=e=>{try{return cr(e)}catch{return e}};const ur=e=>{const{key:t,value:r}=e;return new oe.KeyValuePair(t,r)},lr=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=cr(e.meta)),e.attributes.length>0&&(t._attributes=cr(e.attributes)),Bt(e.content)){const r=e.content;t.content=lr(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=ur(e.content):t.content=e.content;return t},pr=e=>{if(e instanceof oe.KeyValuePair)return ur(e);if(e instanceof oe.wL)return(e=>{const t=[...e];return new oe.wL(t)})(e);if(e instanceof oe.eW)return(e=>{const t=[...e];return new oe.eW(t)})(e);if(Bt(e))return lr(e);throw new ar("Value provided to cloneShallow function couldn't be cloned",{value:e})};pr.safe=e=>{try{return pr(e)}catch{return e}};const hr=e=>Gt(e)?"ObjectElement":Jt(e)?"ArrayElement":Ht(e)?"MemberElement":Dt(e)?"StringElement":zt(e)?"BooleanElement":Vt(e)?"NumberElement":Ut(e)?"NullElement":Kt(e)?"LinkElement":Zt(e)?"RefElement":void 0,mr=e=>Bt(e)?pr(e):At(e),fr=ge(hr,pt),dr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const _r=(e,t,{keyMap:r=dr,...s}={})=>kt(e,t,{keyMap:r,nodeTypeGetter:hr,nodePredicate:fr,nodeCloneFn:mr,...s});_r[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=dr,...s}={})=>kt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:hr,nodePredicate:fr,nodeCloneFn:mr,...s});const yr=u((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})C(s,t)&&(n[s]=C(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)C(s,r)&&!C(s,n)&&(n[s]=r[s]);return n}));const gr=u((function e(t,r,s){return yr((function(r,s,n){return Se(s)&&Se(n)?e(t,s,n):t(r,s,n)}),r,s)}));const vr=c((function(e,t){return gr((function(e,t,r){return r}),e,t)}));const br=_e(0,-1);const wr=c((function(e,t){return e.apply(this,t)}));const Er=H(He);var xr=a((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)?[]:h(e)?"":Se(e)?{}:F(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 jr=xr;const Sr=a((function(e){return null!=e&&te(e,jr(e))}));const Pr=R(1,He(Array.isArray)?Array.isArray:ge(X,be("Array")));const Or=Fe(Pr,Sr);const Ar=R(3,(function(e,t,r){var s=Ne(e,r),n=Ne(br(e),r);if(!Er(s)&&!Or(e)){var i=ue(s,n);return wr(i,t)}})),kr=()=>({predicates:{...e},namespace:lt}),Mr={toolboxCreator:kr,visitorOptions:{nodeTypeGetter:hr,exposeEdits:!0}},$r=(e,t,r={})=>{if(0===t.length)return e;const s=vr(Mr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=jt,nodeTypeGetter:r=Pt,breakSymbol:s=St,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],r(p),!1);if("function"==typeof a){const t=a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===s)c[m]=s;else{if(t===n)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(n,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],r(n),!0);if("function"==typeof a){const t=a.call(e[u],n,...o);if(t===s)c[u]=s;else if(void 0!==t&&t!==i)return t}}else c[u]===n&&(c[u]=a)}}})(a.map(d({},"visitor")),{...i});a.forEach(Ar(["pre"],[]));const u=_r(e,c,i);return a.forEach(Ar(["post"],[])),u},Ir=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return $r(s,r,{toolboxCreator:kr,visitorOptions:{nodeTypeGetter:hr}})},Nr=e=>(t,r={})=>Ir(t,{...r,Type:e});oe.We.refract=Nr(oe.We),oe.uQ.refract=Nr(oe.uQ),oe.M$.refract=Nr(oe.M$),oe.Ar.refract=Nr(oe.Ar),oe.WM.refract=Nr(oe.WM),oe.wH.refract=Nr(oe.wH),oe.UH.refract=Nr(oe.UH),oe.eE.refract=Nr(oe.eE),et.refract=Nr(et),rt.refract=Nr(rt),nt.refract=Nr(nt),ot.refract=Nr(ot);const Rr=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 Cr{static toPosition(e){const t=new oe.uQ([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new oe.uQ([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]}sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(tr);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 Rr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new et(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new nt;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new oe.We;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.uQ;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new oe.u6;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.M$(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.wH(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.WM;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.Ar(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.Ar(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){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===s.length){const e=new nt;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new ot,s=Cr.toPosition(e);if(null!==s){const[e,t]=s;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const Tr=Cr;class Fr{cursor;constructor(e){this.cursor=e}document(){return new Rr(this.cursor)}object(){return new Rr(this.cursor).setFieldName(this.cursor)}array(){return new Rr(this.cursor).setFieldName(this.cursor)}pair(){return new Rr(this.cursor)}string(){return new Rr(this.cursor).setFieldName(this.cursor)}number(){return new Rr(this.cursor).setFieldName(this.cursor)}null(){return new Rr(this.cursor).setFieldName(this.cursor)}true(){return new Rr(this.cursor).setFieldName(this.cursor)}false(){return new Rr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Rr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Rr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Fr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Fr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const qr=Fr,Wr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...dr},Lr=e=>Yt(e)?"ParseResultElement":Bt(e)?hr(e):Pt(e),Br=e=>Bt(e)||Ot(e),Dr=(e,{sourceMap:t=!1}={})=>{const r=new Tr,s=e.walk(),n=new qr(s),[i]=Array.from(n);return kt(i,r,{keyMap:Wr,nodeTypeGetter:Lr,nodePredicate:Br,state:{sourceMap:t}})};class Vr{static type="point";type=Vr.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class Ur{static type="position";type=Ur.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const zr=Ur;const Gr=m(0);const Jr=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};const Hr=class extends Jr{};const Kr=class extends Hr{static type="document";get child(){return Gr(this.children)}};const Zr=class extends Jr{static type="parseResult";get rootNode(){return Gr(this.children)}};const Qr=class extends Jr{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},Xr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Yr=e=>Xr("string",e),es=e=>Xr("false",e),ts=e=>Xr("true",e),rs=e=>Xr("null",e),ss=e=>Xr("number",e),ns=e=>Xr("array",e),is=e=>Xr("object",e),os=e=>Xr("property",e),as=e=>Xr("key",e);const cs=class extends Hr{static type="object";get properties(){return this.children.filter(os)}};const us=class extends Hr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Xr("stringContent",e))(e)||(e=>Xr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const ls=class extends us{static type="key"};const ps=class extends Hr{static type="property";get key(){return this.children.find(as)}get value(){return this.children.find((e=>es(e)||ts(e)||rs(e)||ss(e)||Yr(e)||ns(e)||is(e)))}};const hs=class extends Hr{static type="array";get items(){return this.children.filter((e=>es(e)||ts(e)||rs(e)||ss(e)||Yr(e)||ns(e)||is))}};const ms=class extends Hr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const fs=class extends ms{static type="stringContent"};const ds=class extends ms{static type="number"};const _s=class extends ms{static type="null"};const ys=class extends ms{static type="true"};const gs=class extends ms{static type="false"};const vs=class extends Jr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},bs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class ws{static toPosition(e){const t=new Vr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new Vr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new zr({start:t,end:r})}document={enter:e=>{const t=ws.toPosition(e);return new Kr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Zr({children:[e]})};enter(e){if(e instanceof Rr&&!e.isNamed){const t=ws.toPosition(e),r=e.type||e.text,{isMissing:s}=e;return new Qr({value:r,position:t,isMissing:s})}}object(e){const t=ws.toPosition(e);return new cs({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=ws.toPosition(e),r=e.children.slice(1),{keyNode:s}=e,n=new ls({children:(null==s?void 0:s.children)||[],position:null!=s?ws.toPosition(s):void 0,isMissing:null!=s&&s.isMissing});return new ps({children:[n,...r],position:t,isMissing:e.isMissing})}array(e){const t=ws.toPosition(e);return new hs({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=ws.toPosition(e),r=new fs({value:JSON.parse(e.text)});return new us({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=ws.toPosition(e),r=e.text;return new ds({value:r,position:t,isMissing:e.isMissing})}null(e){const t=ws.toPosition(e),r=e.text;return new _s({value:r,position:t,isMissing:e.isMissing})}true(e){const t=ws.toPosition(e),r=e.text;return new ys({value:r,position:t,isMissing:e.isMissing})}false(e){const t=ws.toPosition(e),r=e.text;return new gs({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,s){const n=ws.toPosition(e),i=new vs({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?new Zr({children:[i]}):i}}const Es=ws,xs={[Zr.type]:["children"],[Kr.type]:["children"],[cs.type]:["children"],[ps.type]:["children"],[hs.type]:["children"],[vs.type]:["children"],...dr},js=e=>Yt(e)?"ParseResultElement":Bt(e)?hr(e):Pt(e),Ss=e=>Bt(e)||Ot(e);const Ps=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(tr);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.We;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new oe.u6;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.M$(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new oe.uQ;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new oe.M$(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new oe.wH(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new oe.WM;return this.maybeAddSourceMap(e,t),t}true(e){const t=new oe.Ar(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new oe.Ar(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new et(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,s){const n=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new et(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.length){const e=new nt;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new ot;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},Os=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new qr(r),[n]=Array.from(s),i=new Es,o=new Ps,a=kt(n,i,{keyMap:bs,state:{sourceMap:t}});return kt(a.rootNode,o,{keyMap:xs,nodeTypeGetter:js,nodePredicate:Ss,state:{sourceMap:t}})},As=(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 ks extends oe.We{constructor(e,t,r){super(e,t,r),this.element="callback"}}const Ms=ks;class $s extends oe.We{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Is=$s;class Ns extends oe.We{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Rs=Ns;class Cs extends oe.We{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Ts=Cs;class Fs extends oe.We{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const qs=Fs;class Ws extends oe.We{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Ls=Ws;class Bs extends oe.We{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ds=Bs;class Vs extends oe.We{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new oe.Ar(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.Ar(!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(Vs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Us=Vs;class zs extends oe.We{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Gs=zs;class Js extends oe.We{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Hs=Js;class Ks extends oe.We{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Dt(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Dt(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 Zs=Ks;class Qs extends oe.We{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Xs=Qs;class Ys extends oe.We{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const en=Ys;class tn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const rn=tn;class sn extends oe.M${constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const nn=sn;class on extends oe.We{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const an=on;class cn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.Ar(!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=cn;class ln extends oe.We{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new oe.Ar(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.Ar(!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 hn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const mn=hn;class fn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="paths"}}const dn=fn;class _n extends oe.We{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const yn=_n;class gn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new oe.Ar(!1)}set required(e){this.set("required",e)}}const vn=gn;class bn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const wn=bn;class En extends oe.We{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const xn=En;const jn=class extends gt{};class Sn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Pn=Sn;class On extends oe.We{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const An=On;class kn extends oe.We{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Mn=kn;class $n extends oe.We{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const In=$n;const Nn=c((function(e,t){return g((function(r,s){return r[s]=e(t[s],s,t),r}),{},V(t))}));const Rn=a((function(e){return null==e}));const Cn=c((function(e,t){if(0===e.length||Rn(t))return!1;for(var r=t,s=0;s<e.length;){if(Rn(r)||!C(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));var Tn=c((function(e,t){return Cn([e],t)}));const Fn=Tn;const qn=u((function(e,t,r){return e(f(t,r))}));const Wn=a((function(e){return R(e.length,e)}));const Ln=c((function(e,t){return R(e+1,(function(){var r=arguments[e];if(null!=r&&Ce(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError($e(r)+' does not have a method named "'+t+'"')}))}));const Bn=Ln(1,"split");var Dn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,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 Vn(e){return function(t){return new Dn(e,t)}}const Un=c(P(["dropWhile"],Vn,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return _e(r,1/0,t)})));const zn=Ln(1,"join");const Gn=Wn((function(e,t){return ge(Bn(""),Un(Rt(e)),zn(""))(t)})),Jn=(e,t)=>{const r=l(e,t);return Nn((e=>{if(Xe(e)&&Fn("$ref",e)&&qn(pt,"$ref",e)){const t=Ne(["$ref"],e),s=Gn("#/",t);return Ne(s.split("/"),r)}return Xe(e)?Jn(e,r):e}),e)};var Hn=r(4248);const Kn=Hn({props:{element:null},methods:{copyMetaAndAttributes(e,t){rr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Zn=Hn(Kn,{methods:{enter(e){return this.element=cr(e),St}}});const Qn=re(se());const Xn=function(){return!0},Yn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:hr(e),ei={EphemeralObject:["content"],EphemeralArray:["content"],...dr},ti=(e,t,{keyMap:r=ei,...s}={})=>_r(e,t,{keyMap:r,nodeTypeGetter:Yn,nodePredicate:Xn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});ti[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=ei,...r}={})=>_r[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Yn,nodePredicate:Xn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const ri=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 si=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 ni{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new si(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 ri(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}}const ii=e=>Bt(e)?Dt(e)||Vt(e)||zt(e)||Ut(e)?e.toValue():ti(e,new ni):e;const oi=c((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r})),ai=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ci={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...dr},ui=Hn(Kn,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return oi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=Ne(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Re(He,["visitors",...e],this.specObj)?Ne(["visitors",...e],this.specObj):Ne(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})},toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r),n=Object.getPrototypeOf(s);return ne(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?cr(t):(_r(t,s,{keyMap:ci,nodeTypeGetter:ai,...r}),s.element)}}}),li=Hn(ui,{props:{specPath:Qn,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Dt(s)&&r.includes(ii(s))&&!this.ignoredFields.includes(ii(s))){const r=this.toRefractedElement([...t,"fixedFields",ii(s)],e),i=new oe.u6(cr(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ii(s))||this.element.content.push(cr(n))})),this.copyMetaAndAttributes(e,this.element),St}}}),pi=Hn(li,Zn,{props:{specPath:re(["document","objects","JSONSchema"])},init(){this.element=new Pn}}),hi=Zn,mi=Zn,fi=Zn,di=Zn,_i=Zn,yi=Zn,gi=Zn,vi=Zn,bi=Zn,wi=Zn,Ei=Hn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),xi=e=>Gt(e)&&e.hasKey("$ref"),ji=Hn(ui,Ei,Zn,{methods:{ObjectElement(e){const t=xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St},ArrayElement(e){return this.element=new oe.uQ,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Si=Zn,Pi=Zn,Oi=Zn,Ai=Zn,ki=Zn,Mi=Hn(Zn,{methods:{ArrayElement(e){return this.element=cr(e),this.element.classes.push("json-schema-required"),St}}});const $i=a((function(e){return R(fe(Ve,0,Ue("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ii=c((function(e,t){return e||t}));const Ni=H(R(1,Fe(We,c((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:J(Ii)(e,t)}))(Be,He))));const Ri=H(Sr);const Ci=$i([pt,Ni,Ri]);const Ti=function(){return!1},Fi=Hn(ui,{props:{fieldPatternPredicate:Ti,specPath:Qn,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(ii(t))&&this.fieldPatternPredicate(ii(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new oe.u6(cr(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ii(t))||this.element.content.push(cr(r))})),this.copyMetaAndAttributes(e,this.element),St}}}),qi=Hn(Fi,{props:{fieldPatternPredicate:Ci}}),Wi=Hn(qi,Ei,Zn,{props:{specPath:e=>xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.We,this.element.classes.push("json-schema-properties")}}),Li=Hn(qi,Ei,Zn,{props:{specPath:e=>xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.We,this.element.classes.push("json-schema-patternProperties")}}),Bi=Hn(qi,Ei,Zn,{props:{specPath:e=>xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.We,this.element.classes.push("json-schema-dependencies")}}),Di=Hn(Zn,{methods:{ArrayElement(e){return this.element=cr(e),this.element.classes.push("json-schema-enum"),St}}}),Vi=Hn(Zn,{methods:{StringElement(e){return this.element=cr(e),this.element.classes.push("json-schema-type"),St},ArrayElement(e){return this.element=cr(e),this.element.classes.push("json-schema-type"),St}}}),Ui=Hn(ui,Ei,Zn,{init(){this.element=new oe.uQ,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),zi=Hn(ui,Ei,Zn,{init(){this.element=new oe.uQ,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Gi=Hn(ui,Ei,Zn,{init(){this.element=new oe.uQ,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Ji=Hn(qi,Ei,Zn,{props:{specPath:e=>xi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new oe.We,this.element.classes.push("json-schema-definitions")}}),Hi=Zn,Ki=Zn,Zi=Zn,Qi=Zn,Xi=Zn,Yi=Hn(ui,Ei,Zn,{init(){this.element=new oe.uQ,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}}}),eo=Zn,to=Hn(li,Zn,{props:{specPath:re(["document","objects","JSONReference"])},init(){this.element=new An},methods:{ObjectElement(e){const t=li.compose.methods.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),ro=Hn(Zn,{methods:{StringElement(e){return this.element=cr(e),this.element.classes.push("reference-value"),St}}});const so=u((function(e,t,r){return R(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const no=a((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var io=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const oo=io;const ao=a(Mt);const co=H(Rn);const uo=Fe(Pr,Ri);function lo(e){return function(e){if(Array.isArray(e))return po(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 po(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return po(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 po(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}var ho=ge(oo(no((function(e,t){return e.length>t.length}))),Gr,f("length")),mo=Wn((function(e,t,r){var s=r.apply(void 0,lo(e));return co(s)?ao(s):t}));const fo=so(uo,(function(e){var t=ho(e);return R(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return fe(mo(r),void 0,e)}))}),se),_o=Hn(ui,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>so(e,re(t),se))),r=fo(t)(e);return this.element=this.toRefractedElement(r,e),St}}}),yo=Hn(_o,{props:{alternator:[{predicate:xi,specPath:["document","objects","JSONReference"]},{predicate:Xn,specPath:["document","objects","JSONSchema"]}]}}),go={visitors:{value:Zn,JSONSchemaOrJSONReferenceVisitor:yo,document:{objects:{JSONSchema:{$visitor:pi,fixedFields:{id:hi,$schema:mi,multipleOf:fi,maximum:di,exclusiveMaximum:_i,minimum:yi,exclusiveMinimum:gi,maxLength:vi,minLength:bi,pattern:wi,additionalItems:yo,items:ji,maxItems:Si,minItems:Pi,uniqueItems:Oi,maxProperties:Ai,minProperties:ki,required:Mi,properties:Wi,additionalProperties:yo,patternProperties:Li,dependencies:Bi,enum:Di,type:Vi,allOf:Ui,anyOf:zi,oneOf:Gi,not:yo,definitions:Ji,title:Hi,description:Ki,default:Zi,format:Qi,base:Xi,links:Yi,media:{$ref:"#/visitors/document/objects/Media"},readOnly:eo}},JSONReference:{$visitor:to,fixedFields:{$ref:ro}},Media:{$visitor:Hn(li,Zn,{props:{specPath:re(["document","objects","Media"])},init(){this.element=new Mn}}),fixedFields:{binaryEncoding:Zn,type:Zn}},LinkDescription:{$visitor:Hn(li,Zn,{props:{specPath:re(["document","objects","LinkDescription"])},init(){this.element=new In}}),fixedFields:{href:Zn,rel:Zn,title:Zn,targetSchema:yo,mediaType:Zn,method:Zn,encType:Zn,schema:yo}}}}}},vo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pn||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),bo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof An||e(s)&&t("JSONReference",s)&&r("object",s))),wo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mn||e(s)&&t("media",s)&&r("object",s))),Eo=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof In||e(s)&&t("linkDescription",s)&&r("object",s))),xo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Pn),t.register("jSONReference",An),t.register("media",Mn),t.register("linkDescription",In),t}},jo=()=>{const e=ut(xo);return{predicates:{...t,isStringElement:Dt},namespace:e}},So=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=go}={})=>{const n=(0,oe.WG)(e),i=Jn(s),o=Ar(t,[],i);return _r(n,o,{state:{specObj:i}}),$r(o.element,r,{toolboxCreator:jo,visitorOptions:{keyMap:ci,nodeTypeGetter:ai}})},Po=e=>(t,r={})=>So(t,{specPath:e,...r});Pn.refract=Po(["visitors","document","objects","JSONSchema","$visitor"]),An.refract=Po(["visitors","document","objects","JSONReference","$visitor"]),Mn.refract=Po(["visitors","document","objects","Media","$visitor"]),In.refract=Po(["visitors","document","objects","LinkDescription","$visitor"]);const Oo=class extends Pn{constructor(e,t,r){super(e,t,r),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 Ao extends oe.We{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const ko=Ao;class Mo extends oe.We{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const $o=Mo;class Io extends oe.We{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const No=Io;class Ro extends oe.We{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Co=Ro;class To extends oe.We{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Fo=To;class qo extends oe.We{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Wo=qo,Lo=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Bo=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Bo(r,[...t,r])},Do=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Bo(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),s=e[0];if(!e.every((e=>e===s)))break;t=s}return t})(...e))&&void 0!==s?s:Object.prototype,i=Object.create(n),o=Bo(n);for(let t of e){let e=Bo(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(Lo(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Vo=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Uo=(e,t)=>{const r=t.map((e=>Bo(e)));let s=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=r[i][s];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return r[i][0]}s++}},zo=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,r)=>Object.getOwnPropertyDescriptor(Uo(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Uo(s,e)||void 0!==t[s],get:(r,s)=>(Uo(s,e)||t)[s],set(t,r,s){const n=Uo(r,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[r]=s,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Go=null,Jo="copy",Ho="copy",Ko="deep",Zo=new Map,Qo=e=>Zo.get(e),Xo=(e,t)=>{var r,s;const n=Vo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Vo([...null!==(r=null==e?void 0:e[o])&&void 0!==r?r:[],...null!==(s=null==t?void 0:t[o])&&void 0!==s?s:[]]);return i},Yo=(e,t)=>{var r,s,n,i;return{property:Xo(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(s=null==t?void 0:t.property)&&void 0!==s?s:{}),method:Xo(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},ea=(e,t)=>{var r,s,n,i,o,a;return{class:Vo([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(s=null==t?void 0:t.class)&&void 0!==s?s:[]]),static:Yo(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:Yo(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},ta=new Map,ra=(...e)=>{const t=((...e)=>{var t;const r=new Set,s=new Set([...e]);for(;s.size>0;)for(let e of s){const n=[...Bo(e.prototype).map((e=>e.constructor)),...null!==(t=Qo(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of n)s.add(e);r.add(e),s.delete(e)}return[...r]})(...e).map((e=>ta.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ea(e,t)))},sa=e=>{let t=ta.get(e);return t||(t={},ta.set(e,t)),t};function na(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Go;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let r of e)r.apply(this,t)}};n.push(t)}function o(...t){for(const r of e)Lo(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Ho?Do(n,o):(a=n,c=o,zo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Jo?Do(e,null,["prototype"]):zo(e,Function.prototype));let u=o;if("none"!==Ko){const n="deep"===Ko?ra(...e):((...e)=>{const t=e.map((e=>sa(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>ea(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)}ia(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),ia(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,p;return l=u,p=e,Zo.set(l,p),u}const ia=(e,t)=>{const r=e.property,s=e.method;if(r)for(let e in r)for(let s of r[e])s(t,e);if(s)for(let e in s)for(let r of s[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};const oa=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){rr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}};const aa=class extends oa{enter(e){return this.element=cr(e),St}};const ca=class extends oa{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:r,openApiSemanticElement:s,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=r,this.openApiSemanticElement=s,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return oi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Ne(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(He,["visitors",...e],this.specObj)?Ne(["visitors",...e],this.specObj):Ne(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r);return s instanceof aa&&(null==s?void 0:s.constructor)===aa?cr(t):(_r(t,s,r),s.element)}};var ua=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Mt(r):r},e}();function la(e){return function(t){return new ua(e,t)}}const pa=c(P(["take"],la,(function(e,t){return _e(0,e<0?1/0:e,t)})));const ha=c((function(e,t){return te(pa(e.length,t),e)})),ma=e=>Gt(e)&&e.hasKey("$ref"),fa=Gt,da=Gt,_a=e=>Dt(e.key)&&ha("x-",ii(e.key));const ya=class extends ca{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=_a;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Dt(s)&&r.includes(ii(s))&&!this.ignoredFields.includes(ii(s))){const r=this.toRefractedElement([...t,"fixedFields",ii(s)],e),i=new oe.u6(cr(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(ii(s))||this.element.content.push(cr(n))})),this.copyMetaAndAttributes(e,this.element),St}};class ga extends(na(ya,aa)){constructor(e){super(e),this.element=new an,this.specPath=re(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return ya.prototype.ObjectElement.call(this,e)}}const va=ga;class ba extends(na(ca,aa)){StringElement(e){const t=new nn(ii(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const wa=ba;const Ea=class extends ca{MemberElement(e){return this.element=cr(e),this.element.classes.push("specification-extension"),St}};class xa extends(na(ya,aa)){constructor(e){super(e),this.element=new Gs,this.specPath=re(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const ja=xa;const Sa=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Pa extends(na(ya,aa)){constructor(e){super(e),this.element=new Rs,this.specPath=re(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Oa=Pa;class Aa extends(na(ya,aa)){constructor(e){super(e),this.element=new Hs,this.specPath=re(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const ka=Aa;class Ma extends(na(ya,aa)){constructor(e){super(e),this.element=new Zs,this.specPath=re(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return(Dt(this.element.operationId)||Dt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const $a=Ma;const Ia=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Na=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ra=class extends ca{specPath;ignoredFields;fieldPatternPredicate=Ti;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=_a;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r),"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(ii(t))&&this.fieldPatternPredicate(ii(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new oe.u6(cr(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ii(t))||this.element.content.push(cr(r))})),this.copyMetaAndAttributes(e,this.element),St}};const Ca=class extends Ra{constructor(e){super(e),this.fieldPatternPredicate=Ci}};class Ta extends oe.We{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Ta.primaryClass)}}const Fa=Ta;class qa extends(na(Ca,aa)){constructor(e){super(e),this.element=new Fa,this.specPath=re(["value"])}}const Wa=qa;class La extends(na(ya,aa)){constructor(e){super(e),this.element=new No,this.specPath=re(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Ba=La;const Da=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Va extends oe.uQ{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Va.primaryClass)}}const Ua=Va;class za extends(na(ca,aa)){constructor(e){super(e),this.element=new Ua}ArrayElement(e){return e.forEach((e=>{const t=fa(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Ga=za;class Ja extends(na(ya,aa)){constructor(e){super(e),this.element=new Co,this.specPath=re(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Ha=Ja;class Ka extends oe.We{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Ka.primaryClass)}}const Za=Ka;class Qa extends(na(Ca,aa)){constructor(e){super(e),this.element=new Za,this.specPath=re(["document","objects","ServerVariable"])}}const Xa=Qa;class Ya extends(na(ya,aa)){constructor(e){super(e),this.element=new Xs,this.specPath=re(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ec=Ya;const tc=class extends ca{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>so(e,re(t),se))),r=fo(t)(e);return this.element=this.toRefractedElement(r,e),St}},rc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ms||e(s)&&t("callback",s)&&r("object",s))),sc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Is||e(s)&&t("components",s)&&r("object",s))),nc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rs||e(s)&&t("contact",s)&&r("object",s))),ic=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ls||e(s)&&t("example",s)&&r("object",s))),oc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ds||e(s)&&t("externalDocumentation",s)&&r("object",s))),ac=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Us||e(s)&&t("header",s)&&r("object",s))),cc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gs||e(s)&&t("info",s)&&r("object",s))),uc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hs||e(s)&&t("license",s)&&r("object",s))),lc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zs||e(s)&&t("link",s)&&r("object",s))),pc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nn||e(s)&&t("openapi",s)&&r("string",s))),hc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof an||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),mc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof un||e(s)&&t("operation",s)&&r("object",s))),fc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof pn||e(s)&&t("parameter",s)&&r("object",s))),dc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mn||e(s)&&t("pathItem",s)&&r("object",s))),_c=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof dn||e(s)&&t("paths",s)&&r("object",s))),yc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yn||e(s)&&t("reference",s)&&r("object",s))),gc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vn||e(s)&&t("requestBody",s)&&r("object",s))),vc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wn||e(s)&&t("response",s)&&r("object",s))),bc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xn||e(s)&&t("responses",s)&&r("object",s))),wc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Oo||e(s)&&t("schema",s)&&r("object",s))),Ec=e=>zt(e)&&e.classes.includes("boolean-json-schema"),xc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ko||e(s)&&t("securityRequirement",s)&&r("object",s))),jc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof No||e(s)&&t("server",s)&&r("object",s))),Sc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Co||e(s)&&t("serverVariable",s)&&r("object",s))),Pc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xs||e(s)&&t("mediaType",s)&&r("object",s))),Oc=Lt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ua||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Ac extends(na(tc,aa)){constructor(e){super(e),this.alternator=[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=tc.prototype.enter.call(this,e);return yc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const kc=Ac;class Mc extends(na(Ca,aa)){constructor(e){super(e),this.element=new oe.We,this.element.classes.push("examples"),this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const $c=Mc;class Ic extends oe.We{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Ic.primaryClass),this.classes.push("examples")}}const Nc=Ic;const Rc=class extends $c{constructor(e){super(e),this.element=new Nc}};class Cc extends oe.We{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Cc.primaryClass)}}const Tc=Cc;class Fc extends(na(Ca,aa)){constructor(e){super(e),this.element=new Tc,this.specPath=re(["document","objects","Encoding"])}}const qc=Fc;class Wc extends(na(Ca,aa)){constructor(e){super(e),this.element=new ko,this.specPath=re(["value"])}}const Lc=Wc;class Bc extends oe.uQ{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Bc.primaryClass)}}const Dc=Bc;class Vc extends(na(ca,aa)){constructor(e){super(e),this.element=new Dc}ArrayElement(e){return e.forEach((e=>{if(Gt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(cr(e))})),this.copyMetaAndAttributes(e,this.element),St}}const Uc=Vc;class zc extends(na(ya,aa)){constructor(e){super(e),this.element=new Is,this.specPath=re(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Gc=zc;class Jc extends(na(ya,aa)){constructor(e){super(e),this.element=new Fo,this.specPath=re(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Hc=Jc;class Kc extends(na(ya,aa)){constructor(e){super(e),this.element=new yn,this.specPath=re(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Zc=Kc;const Qc=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Xc extends(na(ya,aa)){constructor(e){super(e),this.element=new pn,this.specPath=re(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("media-type",ii(t))})),t}}const Yc=Xc;class eu extends(na(tc,aa)){constructor(e){super(e),this.alternator=[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=tc.prototype.enter.call(this,e);return yc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const tu=eu;class ru extends(na(ya,aa)){constructor(e){super(e),this.element=new Us,this.specPath=re(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const su=ru;class nu extends(na(tc,aa)){constructor(e){super(e),this.alternator=[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=tc.prototype.enter.call(this,e);return yc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const iu=nu;class ou extends oe.We{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ou.primaryClass),this.classes.push("examples")}}const au=ou;const cu=class extends $c{constructor(e){super(e),this.element=new au}};class uu extends(na(Ca,aa)){constructor(e){super(e),this.element=new oe.We,this.element.classes.push("content"),this.specPath=re(["document","objects","MediaType"])}}const lu=uu;class pu extends oe.We{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(pu.primaryClass),this.classes.push("content")}}const hu=pu;const mu=class extends lu{constructor(e){super(e),this.element=new hu}};class fu extends(na(ya,aa)){constructor(e){super(e),this.element=new Oo,this.specPath=re(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const du=fu,{allOf:_u}=go.visitors.document.objects.JSONSchema.fixedFields,yu=_u.compose({methods:{ArrayElement(e){const t=_u.compose.methods.ArrayElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:gu}=go.visitors.document.objects.JSONSchema.fixedFields,vu=gu.compose({methods:{ArrayElement(e){const t=gu.compose.methods.ArrayElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:bu}=go.visitors.document.objects.JSONSchema.fixedFields,wu=bu.compose({methods:{ArrayElement(e){const t=bu.compose.methods.ArrayElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Eu}=go.visitors.document.objects.JSONSchema.fixedFields,xu=Eu.compose({methods:{ObjectElement(e){const t=Eu.compose.methods.ObjectElement.call(this,e);return yc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=cr(e),St}}}),{properties:ju}=go.visitors.document.objects.JSONSchema.fixedFields,Su=ju.compose({methods:{ObjectElement(e){const t=ju.compose.methods.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Pu}=go.visitors.document.objects.JSONSchema.fixedFields,Ou=Pu.compose({methods:{ArrayElement(e){return this.element=cr(e),St}}}),{JSONSchemaOrJSONReferenceVisitor:Au}=go.visitors,ku=Au.compose({methods:{ObjectElement(e){const t=Au.compose.methods.enter.call(this,e);return yc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Mu extends(na(ya,aa)){constructor(e){super(e),this.element=new Ts,this.specPath=re(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const $u=Mu;class Iu extends oe.We{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Iu.primaryClass)}}const Nu=Iu;class Ru extends(na(Ca,aa)){constructor(e){super(e),this.element=new Nu,this.specPath=re(["value"])}}const Cu=Ru;class Tu extends(na(ya,aa)){constructor(e){super(e),this.element=new Wo,this.specPath=re(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Fu=Tu;class qu extends oe.We{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(qu.primaryClass),this.classes.push("examples")}}const Wu=qu;const Lu=class extends $c{constructor(e){super(e),this.element=new Wu}};class Bu extends oe.We{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Bu.primaryClass),this.classes.push("content")}}const Du=Bu;const Vu=class extends lu{constructor(e){super(e),this.element=new Du}};class Uu extends oe.We{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Uu.primaryClass)}}const zu=Uu;class Gu extends(na(Ca,aa)){constructor(e){super(e),this.element=new zu,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ju=Gu;class Hu extends oe.We{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(Hu.primaryClass)}}const Ku=Hu;class Zu extends(na(Ca,aa)){constructor(e){super(e),this.element=new Ku,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(vc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ii(t))})),t}}const Qu=Zu;class Xu extends oe.We{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Xu.primaryClass),this.classes.push("parameters")}}const Yu=Xu;class el extends(na(Ca,aa)){constructor(e){super(e),this.element=new Yu,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const tl=el;class rl extends oe.We{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(rl.primaryClass),this.classes.push("examples")}}const sl=rl;class nl extends(na(Ca,aa)){constructor(e){super(e),this.element=new sl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const il=nl;class ol extends oe.We{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(ol.primaryClass)}}const al=ol;class cl extends(na(Ca,aa)){constructor(e){super(e),this.element=new al,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const ul=cl;class ll extends oe.We{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ll.primaryClass)}}const pl=ll;class hl extends(na(Ca,aa)){constructor(e){super(e),this.element=new pl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ac).forEach(((e,t)=>{e.setMetaProperty("header-name",ii(t))})),t}}const ml=hl;class fl extends oe.We{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(fl.primaryClass)}}const dl=fl;class _l extends(na(Ca,aa)){constructor(e){super(e),this.element=new dl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const yl=_l;class gl extends oe.We{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(gl.primaryClass)}}const vl=gl;class bl extends(na(Ca,aa)){constructor(e){super(e),this.element=new vl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const wl=bl;class El extends oe.We{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(El.primaryClass)}}const xl=El;class jl extends(na(Ca,aa)){constructor(e){super(e),this.element=new xl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Sl=jl;class Pl extends(na(ya,aa)){constructor(e){super(e),this.element=new Ls,this.specPath=re(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return Dt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Ol=Pl;const Al=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class kl extends(na(ya,aa)){constructor(e){super(e),this.element=new Ds,this.specPath=re(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Ml=kl;class $l extends(na(ya,aa)){constructor(e){super(e),this.element=new qs,this.specPath=re(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return Gt(this.element.headers)&&this.element.headers.filter(ac).forEach(((e,t)=>{e.setMetaProperty("header-name",ii(t))})),t}}const Il=$l;class Nl extends oe.We{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Nl.primaryClass)}}const Rl=Nl;class Cl extends(na(Ca,aa)){constructor(e){super(e),this.element=new Rl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ac(e))return;const r=ii(t);e.setMetaProperty("headerName",r)})),t}}const Tl=Cl;class Fl extends(na(Ra,aa)){constructor(e){super(e),this.element=new dn,this.specPath=re(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Xn}ObjectElement(e){const t=Ra.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",cr(t))})),t}}const ql=Fl;class Wl extends(na(ya,aa)){constructor(e){super(e),this.element=new vn,this.specPath=re(["document","objects","RequestBody"])}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("media-type",ii(t))})),t}}const Ll=Wl;class Bl extends oe.We{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Bl.primaryClass),this.classes.push("content")}}const Dl=Bl;const Vl=class extends lu{constructor(e){super(e),this.element=new Dl}};class Ul extends(na(Ra,aa)){constructor(e){super(e),this.element=new Ms,this.specPath=re(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ii(t))})),t}}const zl=Ul;class Gl extends(na(ya,aa)){constructor(e){super(e),this.element=new wn,this.specPath=re(["document","objects","Response"])}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(Pc).forEach(((e,t)=>{e.setMetaProperty("media-type",ii(t))})),Gt(this.element.headers)&&this.element.headers.filter(ac).forEach(((e,t)=>{e.setMetaProperty("header-name",ii(t))})),t}}const Jl=Gl;class Hl extends oe.We{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Hl.primaryClass)}}const Kl=Hl;class Zl extends(na(Ca,aa)){constructor(e){super(e),this.element=new Kl,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ac(e))return;const r=ii(t);e.setMetaProperty("header-name",r)})),t}}const Ql=Zl;class Xl extends oe.We{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(Xl.primaryClass),this.classes.push("content")}}const Yl=Xl;const ep=class extends lu{constructor(e){super(e),this.element=new Yl}};class tp extends oe.We{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(tp.primaryClass)}}const rp=tp;class sp extends(na(Ca,aa)){constructor(e){super(e),this.element=new rp,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const np=sp;function ip(e){return"[object Number]"===Object.prototype.toString.call(e)}const op=c((function(e,t){if(!ip(e)||!ip(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],s=e;s<t;)r.push(s),s+=1;return r}));function ap(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!we(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!we(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const cp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ap(e,!0,this)},e.prototype.has=function(e){return ap(e,!1,this)},e}();const up=c((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new cp,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));class lp extends(na(ya,Ra)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...r}){super({...r}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...up(e.keys(),t)],ya.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ra.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const pp=lp;class hp extends(na(pp,aa)){constructor(e){super(e),this.element=new xn,this.specPathFixedFields=re(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ma(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${op(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=pp.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(vc).forEach(((e,t)=>{const r=cr(t);this.fieldPatternPredicate(ii(r))&&e.setMetaProperty("http-status-code",r)})),t}}const mp=hp;class fp extends(na(tc,aa)){constructor(e){super(e),this.alternator=[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=tc.prototype.enter.call(this,e);return yc(this.element)?this.element.setMetaProperty("referenced-element","response"):vc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const dp=fp;class _p extends(na(ya,aa)){constructor(e){super(e),this.element=new un,this.specPath=re(["document","objects","Operation"])}}const yp=_p;class gp extends oe.uQ{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(gp.primaryClass)}}const vp=gp;const bp=class extends aa{constructor(e){super(e),this.element=new vp}ArrayElement(e){return this.element=this.element.concat(cr(e)),St}};class wp extends oe.uQ{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(wp.primaryClass),this.classes.push("parameters")}}const Ep=wp;class xp extends(na(ca,aa)){constructor(e){super(e),this.element=new oe.uQ,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=ma(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);yc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const jp=xp;const Sp=class extends jp{constructor(e){super(e),this.element=new Ep}};const Pp=class extends tc{constructor(e){super(e),this.alternator=[{predicate:ma,specPath:["document","objects","Reference"]},{predicate:Xn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=tc.prototype.enter.call(this,e);return yc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Op extends oe.We{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Op.primaryClass)}}const Ap=Op;class kp extends(na(Ca,aa)){specPath;constructor(e){super(e),this.element=new Ap,this.specPath=e=>ma(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ca.prototype.ObjectElement.call(this,e);return this.element.filter(yc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Mp=kp;class $p extends oe.uQ{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push($p.primaryClass),this.classes.push("security")}}const Ip=$p;class Np extends(na(ca,aa)){constructor(e){super(e),this.element=new Ip}ArrayElement(e){return e.forEach((e=>{const t=Gt(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Rp=Np;class Cp extends oe.uQ{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Cp.primaryClass),this.classes.push("servers")}}const Tp=Cp;const Fp=class extends Ga{constructor(e){super(e),this.element=new Tp}};class qp extends(na(ya,aa)){constructor(e){super(e),this.element=new mn,this.specPath=re(["document","objects","PathItem"])}ObjectElement(e){const t=ya.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach(((e,t)=>{const r=cr(t);r.content=ii(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Wp=qp;const Lp=class extends aa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Bp extends oe.uQ{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Bp.primaryClass),this.classes.push("servers")}}const Dp=Bp;const Vp=class extends Ga{constructor(e){super(e),this.element=new Dp}};class Up extends oe.uQ{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Up.primaryClass),this.classes.push("parameters")}}const zp=Up;const Gp=class extends jp{constructor(e){super(e),this.element=new zp}};class Jp extends(na(ya,aa)){constructor(e){super(e),this.element=new $o,this.specPath=re(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Hp=Jp;class Kp extends(na(ya,aa)){constructor(e){super(e),this.element=new rn,this.specPath=re(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Zp=Kp;class Qp extends(na(ya,aa)){constructor(e){super(e),this.element=new en,this.specPath=re(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Xp=Qp;class Yp extends oe.We{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(Yp.primaryClass)}}const eh=Yp;class th extends(na(Ca,aa)){constructor(e){super(e),this.element=new eh,this.specPath=re(["value"])}}const rh=th;class sh extends oe.uQ{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(sh.primaryClass)}}const nh=sh;class ih extends(na(ca,aa)){constructor(e){super(e),this.element=new nh}ArrayElement(e){return e.forEach((e=>{const t=da(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const oh=ih,{fixedFields:ah}=go.visitors.document.objects.JSONSchema,ch={visitors:{value:aa,document:{objects:{OpenApi:{$visitor:va,fixedFields:{openapi:wa,info:{$ref:"#/visitors/document/objects/Info"},servers:Ga,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Uc,tags:oh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ja,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:Sa}},Contact:{$visitor:Oa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ka,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Ba,fixedFields:{url:Da,description:{$ref:"#/visitors/value"},variables:Xa}},ServerVariable:{$visitor:Ha,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Gc,fixedFields:{schemas:Ju,responses:Qu,parameters:tl,examples:il,requestBodies:ul,headers:ml,securitySchemes:yl,links:wl,callbacks:Sl}},Paths:{$visitor:ql},PathItem:{$visitor:Wp,fixedFields:{$ref:Lp,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:Vp,parameters:Gp}},Operation:{$visitor:yp,fixedFields:{tags:bp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Sp,requestBody:Pp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Mp,deprecated:{$ref:"#/visitors/value"},security:Rp,servers:Fp}},ExternalDocumentation:{$visitor:Ml,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Yc,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:tu,example:{$ref:"#/visitors/value"},examples:Lu,content:Vu}},RequestBody:{$visitor:Ll,fixedFields:{description:{$ref:"#/visitors/value"},content:Vl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ec,fixedFields:{schema:kc,example:{$ref:"#/visitors/value"},examples:Rc,encoding:qc}},Encoding:{$visitor:Il,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Tl,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:mp,fixedFields:{default:dp}},Response:{$visitor:Jl,fixedFields:{description:{$ref:"#/visitors/value"},headers:Ql,content:ep,links:np}},Callback:{$visitor:zl},Example:{$visitor:Ol,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Al}},Link:{$visitor:$a,fixedFields:{operationRef:Ia,operationId:Na,parameters:Wa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:su,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:iu,example:{$ref:"#/visitors/value"},examples:cu,content:mu}},Tag:{$visitor:Hc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Zc,fixedFields:{$ref:Qc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:du,fixedFields:{title:ah.title,multipleOf:ah.multipleOf,maximum:ah.maximum,exclusiveMaximum:ah.exclusiveMaximum,minimum:ah.minimum,exclusiveMinimum:ah.exclusiveMinimum,maxLength:ah.maxLength,minLength:ah.minLength,pattern:ah.pattern,maxItems:ah.maxItems,minItems:ah.minItems,uniqueItems:ah.uniqueItems,maxProperties:ah.maxProperties,minProperties:ah.minProperties,required:ah.required,enum:ah.enum,type:Ou,allOf:yu,anyOf:vu,oneOf:wu,not:ku,items:xu,properties:Su,additionalProperties:ku,description:ah.description,format:ah.format,default:ah.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:$u,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Cu}},XML:{$visitor:Fu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Hp,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:Zp,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:Xp,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:rh}},SecurityRequirement:{$visitor:Lc}},extension:{$visitor:Ea}}}},uh=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},lh={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"],...dr},ph={namespace:e=>{const{base:t}=e;return t.register("callback",Ms),t.register("components",Is),t.register("contact",Rs),t.register("discriminator",Ts),t.register("encoding",qs),t.register("example",Ls),t.register("externalDocumentation",Ds),t.register("header",Us),t.register("info",Gs),t.register("license",Hs),t.register("link",Zs),t.register("mediaType",Xs),t.register("oAuthFlow",en),t.register("oAuthFlows",rn),t.register("openapi",nn),t.register("openApi3_0",an),t.register("operation",un),t.register("parameter",pn),t.register("pathItem",mn),t.register("paths",dn),t.register("reference",yn),t.register("requestBody",vn),t.register("response",wn),t.register("responses",xn),t.register("schema",Oo),t.register("securityRequirement",ko),t.register("securityScheme",$o),t.register("server",No),t.register("serverVariable",Co),t.register("tag",Fo),t.register("xml",Wo),t}},hh=()=>{const e=ut(ph);return{predicates:{...n,...i,isStringElement:Dt},namespace:e}},mh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,oe.WG)(e),n=Jn(ch),i=new(Ne(t,n))({specObj:n});return _r(s,i),$r(i.element,r,{toolboxCreator:hh,visitorOptions:{keyMap:lh,nodeTypeGetter:uh}})},fh=e=>(t,r={})=>mh(t,{specPath:e,...r});Ms.refract=fh(["visitors","document","objects","Callback","$visitor"]),Is.refract=fh(["visitors","document","objects","Components","$visitor"]),Rs.refract=fh(["visitors","document","objects","Contact","$visitor"]),Ls.refract=fh(["visitors","document","objects","Example","$visitor"]),Ts.refract=fh(["visitors","document","objects","Discriminator","$visitor"]),qs.refract=fh(["visitors","document","objects","Encoding","$visitor"]),Ds.refract=fh(["visitors","document","objects","ExternalDocumentation","$visitor"]),Us.refract=fh(["visitors","document","objects","Header","$visitor"]),Gs.refract=fh(["visitors","document","objects","Info","$visitor"]),Hs.refract=fh(["visitors","document","objects","License","$visitor"]),Zs.refract=fh(["visitors","document","objects","Link","$visitor"]),Xs.refract=fh(["visitors","document","objects","MediaType","$visitor"]),en.refract=fh(["visitors","document","objects","OAuthFlow","$visitor"]),rn.refract=fh(["visitors","document","objects","OAuthFlows","$visitor"]),nn.refract=fh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),an.refract=fh(["visitors","document","objects","OpenApi","$visitor"]),un.refract=fh(["visitors","document","objects","Operation","$visitor"]),pn.refract=fh(["visitors","document","objects","Parameter","$visitor"]),mn.refract=fh(["visitors","document","objects","PathItem","$visitor"]),dn.refract=fh(["visitors","document","objects","Paths","$visitor"]),yn.refract=fh(["visitors","document","objects","Reference","$visitor"]),vn.refract=fh(["visitors","document","objects","RequestBody","$visitor"]),wn.refract=fh(["visitors","document","objects","Response","$visitor"]),xn.refract=fh(["visitors","document","objects","Responses","$visitor"]),Oo.refract=fh(["visitors","document","objects","Schema","$visitor"]),ko.refract=fh(["visitors","document","objects","SecurityRequirement","$visitor"]),$o.refract=fh(["visitors","document","objects","SecurityScheme","$visitor"]),No.refract=fh(["visitors","document","objects","Server","$visitor"]),Co.refract=fh(["visitors","document","objects","ServerVariable","$visitor"]),Fo.refract=fh(["visitors","document","objects","Tag","$visitor"]),Wo.refract=fh(["visitors","document","objects","XML","$visitor"]);const dh=m(-1);const _h=class extends jn{};const yh=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new _h("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new _h("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new _h("latest method in MediaTypes class is not yet implemented.")}};class gh extends yh{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.3",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return dh(this.filterByFormat(e))}}const vh=new gh("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3"),bh=new gh(...vh.filterByFormat("generic"),...vh.filterByFormat("json")),wh=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,Eh=async e=>wh.test(e)&&await(async e=>{if(!As.test(e))return!1;try{return"ERROR"!==(await Et(e)).rootNode.type}catch{return!1}})(e),xh=async(e,t={})=>{const r=d({},"refractorOpts",t),s=y(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await Et(e);let n;return n="indirect"===r?Os(s,{sourceMap:t}):Dr(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(ie(i)){const e=an.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},jh=ut(ph)})(),s})()));