@swagger-api/apidom-parser-adapter-openapi-json-3-0 0.96.0 → 0.97.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={3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},5098:(e,t,r)=>{var s=r(3305),n=r(9361),i=r(1112),o=r(5276),a=r(5071);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},1386:(e,t,r)=>{var s=r(2393),n=r(2049),i=r(7144),o=r(7452),a=r(3964);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},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},8250:(e,t,r)=>{var s=r(9753),n=r(5681),i=r(88),o=r(4732),a=r(9068);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},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},3212:(e,t,r)=>{var s=r(8250),n=r(1877),i=r(8006);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},1340:(e,t,r)=>{var s=r(1386),n=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);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},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9847: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}},358:(e,t,r)=>{var s=r(6137),n=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),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}},1129: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}},6465: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}},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},7379:(e,t,r)=>{var s=r(5650),n=r(8870),i=r(9005),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)}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},4687:(e,t,r)=>{var s=r(353),n=r(547);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))}},353:(e,t,r)=>{var s=r(1340),n=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),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,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!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 j=E&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,A=O?t.value():t;return y||(y=new s),_(P,A,r,d,y)}}return!!S&&(y||(y=new s),o(e,t,r,d,_,y))}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),i=r(1580),o=r(4066),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))}},674:(e,t,r)=>{var s=r(7379),n=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},195:(e,t,r)=>{var s=r(4882),n=r(8121),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}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},3934:(e,t,r)=>{var s=r(3212),n=r(6465),i=r(5568);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}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),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}},1182:(e,t,r)=>{var s=r(393),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}},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},393:(e,t,r)=>{var s=r(8244),n=r(7979),i=r(1211);e.exports=function(e){return s(e,i,n)}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},8870:(e,t,r)=>{var s=r(5650),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}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),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},8486:(e,t,r)=>{var s=r(3103),n=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),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},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var s=r(4497),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}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5071:(e,t,r)=>{var s=r(4497);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}},9632: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}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var s,n=r(1950),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var s=r(7034),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)}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},3964:(e,t,r)=>{var s=r(7034);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}},9753:(e,t,r)=>{var s=r(5098),n=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},9068:(e,t,r)=>{var s=r(4700);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}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),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},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),i=r(8250);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}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var s=r(6027),n=r(547),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},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),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},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);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}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},8666:(e,t,r)=>{var s=r(674),n=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},1211:(e,t,r)=>{var s=r(358),n=r(195),i=r(6529);e.exports=function(e){return i(e)?s(e):n(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const s=r(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const 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},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const s=r(9310),n=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(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},3311:(e,t,r)=>{const s=r(1517),n=r(4123);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},7547:(e,t,r)=>{const s=r(8631),n=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),p=r(9620),h=r(593),m=r(4123),f=r(3311),d=r(2322);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}},9620:(e,t,r)=>{const s=r(8631);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)}}},593:(e,t,r)=>{const s=r(8631);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)}}},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(394),r(3148)},9796:(e,t,r)=>{const s=r(1517),n=r(8631),i=r(4123);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},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),i=r(4123);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},7309:(e,t,r)=>{const s=r(2322),n=r(8631);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)}}},3004:(e,t,r)=>{const s=r(8631);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")}}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),i=r(9796),o=r(7309),a=r(3311);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)))}}},8712:(e,t,r)=>{const s=r(8631);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}}},3148:(e,t,r)=>{const s=r(394);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]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const 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]))}))}}},8357: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 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,s){if(s===t)return r;if(Array.isArray(s))return(Array.isArray(r)?r:[]).concat(s);if(!O(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(O(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 S(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function s(r,s){j(t[r])&&(j(e[r])||(e[r]={}),(s||x)(e[r],t[r]))}function n(s){(r=A(e[s],t[s]))&&(e[s]=r)}return t&&j(t=t[b]||t)&&(s(g),s(o),s(a,P),s(c),s(u),s(l,P),s(p),s(h),s(m,P),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&&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(s=l[i++])&&(u=(n=s.call(u,r,{instance:u,stamp:e,args:p}))===t?u:n);return u},(s=e[l])&&P(r,s),(s=e[u])&&x(r,s),(s=e[p])&&Object.defineProperties(r,s),s=S(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 I(e){return S(e)&&S(e[b])}var $={};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)}}$[g]=N(g,x),$[o]=$.props=N(o,x),$[y]=$.init=N(y,A),$[v]=N(v,A),$[a]=$[f]=N(a,P),$[u]=$.statics=N(u,x),$[l]=$[d]=N(l,P),$[h]=$.conf=N(h,x),$[m]=$[_]=N(m,P),$[c]=N(c,x),$[p]=N(p,x),s=$[b]=x((function(){for(var e,w,E=0,S=[],O=arguments,k=this;E<O.length;)j(e=O[E++])&&S.push(I(e)?e:((n={})[g]=(w=e)[g]||t,s=w.props,n[o]=j((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]=j((r=w[a])||s)?P({},s,r):t,n[c]=w[c],s=w.statics,n[u]=j((r=w[u])||s)?x({},s,r):t,s=w[d],n[l]=j((r=w[l])||s)?P({},s,r):t,r=w[p],n[p]=j((s=w.name&&{name:{value:w.name}})||r)?x({},r,s):t,s=w.conf,n[h]=j((r=w[h])||s)?x({},s,r):t,s=w[_],n[m]=j((r=w[m])||s)?P({},s,r):t,n));if(e=M.apply(k||i,S),k&&S.unshift(k),Array.isArray(O=e[b][v]))for(E=0;E<O.length;)e=I(k=O[E++]({stamp:e,composables:S}))?k:e;return e}),$),$.create=function(){return this.apply(t,arguments)},(n={})[u]=$,i=M(n),s[b]=s.bind(),s.version="4.3.2","object"!=typeof t?e.exports=s:self.stampit=s}()},3833:(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(4142).dirname(b)+"/":"//",d=function(e,t){return g||(g=r(3078)),v||(v=r(4142)),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,S=[];function j(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(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(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 O,P=s.dynamicLibraries||[];s.wasmBinary&&(O=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":B[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function I(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 B[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 $=!1;function N(e,t){e||ae("Assertion failed: "+t)}var R,C,T,F,q,B,L,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.subarray&&D)return D.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 z(e,t){return e?V(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 G(e,t,r){return U(e,T,t,r)}function W(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=W(e)+1,r=ze(t);return U(e,C,r,t),r}function K(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=B=new Float32Array(e),s.HEAPF64=L=new Float64Array(e)}var H=s.INITIAL_MEMORY||33554432;(A=s.wasmMemory?s.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=A.buffer),H=R.byteLength,K(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],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+=""),$=!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&&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 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=V(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 Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function je(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(!Se(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=j(s):"number"==typeof s?fe[t].value=s:w("unhandled export type for `"+t+"`: "+typeof s))}}(r),r}function Oe(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=De();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(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Pe(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 Be(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=Oe(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=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 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 Pe(e,t)})):Pe(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=Oe(e,!0);"function"==typeof t?fe[e].value=j(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,Ie=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function $e(){ae()}s._abort=$e,$e.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),K(A.buffer),1}catch(e){}}function Ce(e){Ke(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:Ie,__table_base:1,abort:$e,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=z(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")}},Be=(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=je(r,1024),s.asm=r;var n,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),we(r),n=s.asm.__wasm_call_ctors,Y.unshift(n),oe()}function r(e){t(e.instance,e.module)}function n(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(),s.instantiateWasm)try{return s.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?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(Be=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)}),De=(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(De=s.stackSave=s.asm.stackSave).apply(null,arguments)}),Ve=s.stackRestore=function(){return(Ve=s.stackRestore=s.asm.stackRestore).apply(null,arguments)},ze=s.stackAlloc=function(){return(ze=s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},Ue=s._setThrew=function(){return(Ue=s._setThrew=s.asm.setThrew).apply(null,arguments)};function Ge(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?ze(e.length):Be(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 We=!1;function Je(e){function t(){Fe||(Fe=!0,s.calledRun=!0,$||(te=!0,_e(Y),_e(Q),s.onRuntimeInitialized&&s.onRuntimeInitialized(),He&&function(e){var t=s._main;if(t){var r=(e=e||[]).length+1,n=ze(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{Ke(t(r,n),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),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||!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(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),X.unshift(e);var e;_e(X)}(),re>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&ve()&&0===e||(ve()||(s.onExit&&s.onExit(e),$=!0),f(e,new Ge(e)))}if(s.run=Je,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();var He=!0;s.noInitialRun&&(He=!1),Je();const Ze=s,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+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=I(at,"i32"),ot=I(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=I(at,"i32"),this[1]=I(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!==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++)Ot(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(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,s){gt(e),this[0]=t,this.language=r,this.textCallback=s}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=I(at,"i32"),r=I(at+Ye,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=Pt(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]),jt(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=I(at,"i32"),t=I(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){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=I(at,"i32"),t=I(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 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(Ye*s.length);for(let e=0,t=s.length;e<t;e++)M(i+e*Ye,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=I(at,"i32"),a=I(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 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+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");bt(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(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(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(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(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 bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,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+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 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]=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),s=Ze._malloc(r+1);G(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?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 s=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!s){const t=I(at+Ye,"i32"),s=z(r,I(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=I(at,"i32");a[e]=z(t,r)}for(let e=0;e<n;e++){const t=Ze._ts_query_string_value_for_id(s,e,at),r=I(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(s,e,at),r=I(at,"i32");h[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=I(i,"i32"),r=I(i+=Ye,"i32");if(i+=Ye,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(Xe,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(3078);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:Pe;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(Xe,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=I(at,"i32"),o=I(at+Ye,"i32"),a=I(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=I(l,"i32"),s=I(l+=Ye,"i32");l+=Ye;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=I(at,"i32"),o=I(at+Ye,"i32"),a=I(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=I(l,"i32"),r=I(l+=Ye,"i32"),s=I(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[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=I(r,"i32"),o=wt(t,r+=Ye);r+=Qe,s[n]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=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=I(t,"i32");if(0===r)return null;const s=I(t+=Ye,"i32"),n=I(t+=Ye,"i32"),i=I(t+=Ye,"i32"),o=I(t+=Ye,"i32"),a=new ht(Xe,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*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function xt(e){e[0]=I(at+0*Ye,"i32"),e[1]=I(at+1*Ye,"i32"),e[2]=I(at+2*Ye,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function jt(e){return{row:I(e,"i32"),column:I(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=I(e,"i32"),e+=Ye,t.endIndex=I(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},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),i=r(8130),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)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),i=r(9932),o=r(8655)("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}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),i=r(4543),o=r(9989);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))}}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),i=r(480);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},7525:(e,t,r)=>{"use strict";var s=r(1063),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}},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var s=r(1063),n=r(262),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,r)=>{"use strict";var s,n,i=r(1063),o=r(7868),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},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,r)=>{"use strict";var s=r(6100),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}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var s=r(1063),n=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),p=r(3999),h=r(701),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,S=e.proto,j=E?s:x?s[w]:s[w]&&s[w].prototype,O=E?u:u[w]||p(u,w,{})[w],P=O.prototype;for(d in t)n=!(r=c(E?d:w+(x?".":"#")+d,e.forced))&&j&&h(j,d),y=O[d],n&&(g=e.dontCallGetSet?(b=a(j,d))&&b.value:j[d]),_=n&&g?g:t[d],(r||S||typeof y!=typeof _)&&(v=e.bind&&n?l(_,s):e.wrap&&n?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(v,"sham",!0),p(O,d,v),S&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&P&&(r||!P[d])&&p(P,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var s=r(1780),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)})},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),i=r(1780),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)}}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),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}},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),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)}}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(1063),i=r(2769),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]}},967:(e,t,r)=>{"use strict";var s=r(8407),n=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),i=r(7235),o=r(459),a=r(967),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")}},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},1063: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")()},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),i=r(9619);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),i=r(9932),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},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),i=r(3491);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}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var s,n,i,o=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),p=r(3753),h=r(4275),m=r(5241),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}}}},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),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},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),i=r(4317),o=r(7460),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))}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),p=r(967),h=r(1743),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,S=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),A=s(t,x),k=function(e){return _&&h(_,"normal",e),new f(!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,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=j?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)}},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),i=r(4674);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}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),i=r(480),o=r(1811),a=r(6625),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}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),p=r(1811),h=r(3999),m=r(3508),f=r(8655),d=r(6625),_=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,r,o,f,_,O){c(r,t,o);var P,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 S:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",$=!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&&(P=u(T.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===v||(l?l(P,v):a(P[w])||m(P,w,j)),p(P,I,!0,!0),i&&(d[I]=j)),y&&f===x&&R&&R.name!==x&&(!i&&g?h(N,"name",x):($=!0,C=function(){return n(R,this)})),f)if(A={values:M(x),keys:_?C:M(E),entries:M(S)},O)for(k in A)(b||$||!(k in N))&&m(N,k,A[k]);else s({target:t,proto:!0,forced:b||$},A);return i&&!O||N[w]===C||m(N,w,C,{name:f}),d[t]=C,A}},2621:(e,t,r)=>{"use strict";var s,n,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),p=r(3508),h=r(8655),m=r(4871),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}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},5777: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)}},4879:(e,t,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),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)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);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}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),i=r(1330),o=r(7235),a=r(5341),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}},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),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])}},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),i=r(2137),o=r(4275),a=r(2871),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}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),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}},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},7161:(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},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(7235),i=r(1966);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)},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),i=r(262),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")}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),i=r(5116),o=r(7313),a=r(7235),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}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var s=r(9989).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}})}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("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))}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,r)=>{"use strict";var s=r(1063),n=r(7525),i="__core-js_shared__",o=s[i]||n(i,{});e.exports=o},8141:(e,t,r)=>{"use strict";var s=r(4871),n=r(3753);(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"})},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),i=r(1139),o=r(5426),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)}},4603:(e,t,r)=>{"use strict";var s=r(4432),n=r(1203),i=r(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4574:(e,t,r)=>{"use strict";var s=r(9903),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)}},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),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)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var s=r(1063),n=r(2769),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var s=r(1063),n=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),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]}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),p=r(4879),h=r(8148),m=r(4279),f=r(5024),d=r(4871);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"),S=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,S,s.stack,2),this&&o(E,this)&&l(s,this,S),arguments.length>g&&h(s,arguments[g]),s}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):f&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),i=r(7013),o=r(1203),a=r(6453),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)})},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),p=r(8148),h=r(4279),m=r(208),f=r(4879),d=r(8655)("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})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),p=r(5024),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){}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(1063),i=r(7013),o=r(6453),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)}}))},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),i=r(8417),o=r(164),a=r(877),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))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(1063),i=r(1811),o=r(6625);for(var a in s)i(n[a],a),o[a]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),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||!/^http(s?):/.test(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:()=>Ah,detectionRegExp:()=>Ph,mediaTypes:()=>Oh,namespace:()=>Mh,parse:()=>kh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>tr,includesClasses:()=>sr,includesSymbols:()=>rr,isAnnotationElement:()=>Zt,isArrayElement:()=>Wt,isBooleanElement:()=>Ut,isCommentElement:()=>Xt,isElement:()=>Lt,isLinkElement:()=>Kt,isMemberElement:()=>Jt,isNullElement:()=>zt,isNumberElement:()=>Vt,isObjectElement:()=>Gt,isParseResultElement:()=>Yt,isPrimitiveElement:()=>er,isRefElement:()=>Ht,isSourceMapElement:()=>Qt,isStringElement:()=>Dt});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>jo,isJSONSchemaElement:()=>So,isLinkDescriptionElement:()=>Po,isMediaElement:()=>Oo});var n={};function i(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(r){return 0===arguments.length||i(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return i(r)?t:o((function(t){return e(r,t)}));default:return i(r)&&i(s)?t:i(r)?o((function(t){return e(t,s)})):i(s)?o((function(t){return e(r,t)})):e(r,s)}}}function c(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return i(r)?t:a((function(t,s){return e(r,t,s)}));case 2:return i(r)&&i(s)?t:i(r)?a((function(t,r){return e(t,s,r)})):i(s)?a((function(t,s){return e(r,t,s)})):o((function(t){return e(r,s,t)}));default:return i(r)&&i(s)&&i(n)?t:i(r)&&i(s)?a((function(t,r){return e(t,r,n)})):i(r)&&i(n)?a((function(t,r){return e(t,s,r)})):i(s)&&i(n)?a((function(t,s){return e(r,t,s)})):i(r)?o((function(t){return e(t,s,n)})):i(s)?o((function(t){return e(r,t,n)})):i(n)?o((function(t){return e(r,s,t)})):e(r,s,n)}}}r.r(n),r.d(n,{isBooleanJsonSchemaElement:()=>Pc,isCallbackElement:()=>ac,isComponentsElement:()=>cc,isContactElement:()=>uc,isExampleElement:()=>lc,isExternalDocumentationElement:()=>pc,isHeaderElement:()=>hc,isInfoElement:()=>mc,isLicenseElement:()=>fc,isLinkElement:()=>dc,isMediaTypeElement:()=>$c,isOpenApi3_0Element:()=>yc,isOpenapiElement:()=>_c,isOperationElement:()=>gc,isParameterElement:()=>vc,isPathItemElement:()=>bc,isPathsElement:()=>wc,isReferenceElement:()=>Ec,isRequestBodyElement:()=>xc,isResponseElement:()=>Sc,isResponsesElement:()=>jc,isSchemaElement:()=>Oc,isSecurityRequirementElement:()=>Ac,isSecuritySchemeElement:()=>kc,isServerElement:()=>Mc,isServerVariableElement:()=>Ic,isServersElement:()=>Nc});const u=a((function(e,t){return null==t||t!=t?e:t})),l=Number.isInteger||function(e){return e<<0===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}const h=a((function(e,t){var r=e<0?t.length+e:e;return p(t)?t.charAt(r):t[r]}));const m=a((function(e,t){if(null!=t)return l(e)?h(e,t):t[e]}));const f=c((function(e,t,r){return u(e,m(t,r))}));var d=a((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 _=d;function y(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const g=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const v=o((function(e){return!!g(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function w(e,t,r){return function(s,n,i){if(v(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[b])return r(s,n,i[b]());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 E(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function x(e,t,r,s){return r[s](e,t)}const S=w(y,x,E);function j(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!g(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 P=function(){return this.xf["@@transducer/init"]()},A=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const M=function(e){return function(t){return new k(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 $(e,t,r){return function(){for(var s=[],n=0,o=e,a=0,c=!1;a<t.length||n<arguments.length;){var u;a<t.length&&(!i(t[a])||n>=arguments.length)?u=t[a]:(u=arguments[n],n+=1),s[a]=u,i(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,s):I(Math.max(0,o),$(e,s,r))}}const N=a((function(e,t){return 1===e?o(t):I(e,$(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const T=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return R("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(){return arguments.propertyIsEnumerable("length")}(),L=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||B?o((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=B&&T(e);for(t in e)!R(t,e)||n&&"length"===t||(s[s.length]=t);if(F)for(r=q.length-1;r>=0;)R(t=q[r],e)&&!L(s,t)&&(s[s.length]=t),r-=1;return s})):o((function(e){return Object(e)!==e?[]:Object.keys(e)}));const V=D;const z=a(j(["fantasy-land/map","map"],M,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return N(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(r,s){return r[s]=e(t[s]),r}),{},V(t));default:return O(e,t)}})));const U=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(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,z(r,t))}),[],e)}));const G=a((function(e,t){var r=N(e,t);return N(e,(function(){return y(U,z(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=o((function(e){return G(e.length,e)}));const J=W(o((function(e){return!e})));function K(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function H(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=o((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 Q(e,t,r.slice(),s.slice())}return!H((function(e,t){return!H(i,t,e)}),K(t),n)}function Q(e,t,r,s){if(Z(e,t))return!0;var n,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var 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(!R(p,t)||!Q(t[p],e[p],u,l))return!1;a-=1}return!0}const ee=a((function(e,t){return Q(e,t,[],[])}));const te=o((function(e){return function(){return e}}));const re=te(void 0);const se=ee(re());const ne=J(se);var ie=r(8326);function oe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ae(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 ce=a((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function ue(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 le(e,t,r,s){return e["@@transducer/result"](r[s](ce(e["@@transducer/step"],e),t))}const pe=w(ae,le,ue);var he=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const me=c((function(e,t,r){return pe("function"==typeof e?new he(e):e,t,r)}));function fe(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return g(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const de=c(fe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const _e=o(fe("tail",de(1,1/0)));function ye(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,me(oe,arguments[0],_e(arguments)))}var ge=function(e,t){switch(arguments.length){case 0:return ge;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const ve=ge;function be(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(ee(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function we(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,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 je(e,t)}}const Pe=a(j(["fantasy-land/filter","filter"],Oe,(function(e,t){return Se(t)?y((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 Ae=a((function(e,t){return Pe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function ke(e,t){var r=function(r){var s=t.concat([e]);return be(r,s)?"<Circular>":ke(r,s)},s=function(e,t){return O((function(t){return we(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,Ae((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):we(xe(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())+")":we(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 Me=o((function(e){return ke(e,[])}));const Ie=a((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=l(r)?h(r,s):s[r],n+=1}return s}))}));const $e=a((function(e,t){return Ie([e],t)[0]}));const Ne=c((function(e,t,r){return e($e(t,r))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=a((function(e,t){return e&&t}));const Te=a((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ce)(e,t)}));const Fe=ee(null);const qe=J(Fe);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}const Le=function(e){return"object"===Be(e)};const De=N(1,Te(qe,Le));const Ve=a((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=Me(e),o=r(i,Me(t));return void 0!==o&&o===i?e:t}));const ze=a((function(e,t){return z(m(e),t)}));const Ue=o((function(e){return N(me(Ve,0,ze("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=N(1,ye(X,ve("GeneratorFunction")));const We=N(1,ye(X,ve("AsyncFunction")));const Je=Ue([ye(X,ve("Function")),Ge,We]);var Ke=ye(X,ve("Object")),He=ye(Me,ee(Me(Object))),Ze=Ne(Te(Je,He),["constructor"]);const Xe=N(1,(function(e){if(!De(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Fe(t)||Ze(t)}));class Ye extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Qe=Ye;class et extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const tt=et;class rt extends ie.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const st=rt;class nt extends ie.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ie.wE([e.start.row,e.start.column,e.start.char]),r=new ie.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const it=nt;class ot extends ie.g${constructor(){super(),this.register("annotation",Qe),this.register("comment",tt),this.register("parseResult",st),this.register("sourceMap",it)}}const at=new ot,ct=e=>{const t=new ot;return Xe(e)&&t.use(e),t},ut=at;const lt=N(1,ye(X,ve("String"))),pt=r.p+"23aac571c96605dc25219087ad291441.wasm",ht=globalThis.fetch;Je(ht)&&(globalThis.fetch=(...e)=>lt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[pt,_e(e)]):ht.apply(globalThis,e));var mt=r(3833),ft=r(1212);const dt=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 _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,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 yt=_t,gt=r.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let vt=null,bt=null;const wt=async e=>{if(null===vt&&null===bt)bt=mt.init().then((()=>mt.Language.load(gt))).then((e=>{const t=new mt;return t.setLanguage(e),t})).finally((()=>{bt=null})),vt=await bt;else if(null===vt&&null!==bt)vt=await bt;else if(null===vt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};const Et=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},xt=(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={},jt=e=>null==e?void 0:e.type,Ot=e=>"string"==typeof jt(e),Pt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),At=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xt,nodeTypeGetter:c=jt,nodePredicate:u=Ot,nodeCloneFn:l=Pt,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 S;if(!Array.isArray(v)){if(!u(v))throw new Et(`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;S=i.call(t,v,r,f,b,w)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&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 kt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}At[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=xt,nodeTypeGetter:c=jt,nodePredicate:u=Ot,nodeCloneFn:l=Pt,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 S;if(!Array.isArray(v)){if(!u(v))throw new Et(`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;S=await i.call(t,v,r,f,b,w)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&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 Mt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=P,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=kt(this.xf["@@transducer/step"](e,!1))),e},e}();function It(e){return function(t){return new Mt(e,t)}}const $t=a(j(["all"],It,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Nt=o((function(e){return N(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(a(be)),Rt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ct=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Tt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ft=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ie.wE)&&t.classes.includes(e),qt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Bt=e=>e({hasMethod:Rt,hasBasicElementProps:Ct,primitiveEq:Tt,isElementType:qt,hasClass:Ft}),Lt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Hg||e(r)&&t(void 0,r))),Dt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Om||e(r)&&t("string",r))),Vt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.kT||e(r)&&t("number",r))),zt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Os||e(r)&&t("null",r))),Ut=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.bd||e(r)&&t("boolean",r))),Gt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ie.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Wt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ie.wE&&!(s instanceof ie.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Jt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.Pr||e(s)&&t("member",s)&&r(void 0,s))),Kt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.Ft||e(s)&&t("link",s)&&r(void 0,s))),Ht=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.sI||e(s)&&t("ref",s)&&r(void 0,s))),Zt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qe||e(s)&&t("annotation",s)&&r("array",s))),Xt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tt||e(s)&&t("comment",s)&&r("string",s))),Yt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof st||e(s)&&t("parseResult",s)&&r("array",s))),Qt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof it||e(s)&&t("sourceMap",s)&&r("array",s))),er=e=>qt("object",e)||qt("array",e)||qt("boolean",e)||qt("number",e)||qt("string",e)||qt("null",e)||qt("member",e),tr=e=>Qt(e.meta.get("sourceMap")),rr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Wt(r)&&$t(Nt(r.toValue()),e)},sr=(e,t)=>0===e.length||$t(Nt(t.classes.toValue()),e);const nr=class extends Et{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ir=class extends nr{};const or=class extends nr{},ar=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ie.KeyValuePair){const{key:t,value:n}=e,i=Lt(t)?ar(t,s):t,o=Lt(n)?ar(n,s):n,a=new ie.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ie.ot){const t=e=>ar(e,s),n=[...e].map(t),i=new ie.ot(n);return r.set(e,i),i}if(e instanceof ie.G6){const t=e=>ar(e,s),n=[...e].map(t),i=new ie.G6(n);return r.set(e,i),i}if(Lt(e)){const t=lr(e);if(r.set(e,t),e.content)if(Lt(e.content))t.content=ar(e.content,s);else if(e.content instanceof ie.KeyValuePair)t.content=ar(e.content,s);else if(Array.isArray(e.content)){const r=e=>ar(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new ir("Value provided to cloneDeep function couldn't be cloned",{value:e})};ar.safe=e=>{try{return ar(e)}catch{return e}};const cr=e=>{const{key:t,value:r}=e;return new ie.KeyValuePair(t,r)},ur=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ar(e.meta)),e.attributes.length>0&&(t._attributes=ar(e.attributes)),Lt(e.content)){const r=e.content;t.content=ur(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ie.KeyValuePair?t.content=cr(e.content):t.content=e.content;return t},lr=e=>{if(e instanceof ie.KeyValuePair)return cr(e);if(e instanceof ie.ot)return(e=>{const t=[...e];return new ie.ot(t)})(e);if(e instanceof ie.G6)return(e=>{const t=[...e];return new ie.G6(t)})(e);if(Lt(e))return ur(e);throw new or("Value provided to cloneShallow function couldn't be cloned",{value:e})};lr.safe=e=>{try{return lr(e)}catch{return e}};const pr=e=>Gt(e)?"ObjectElement":Wt(e)?"ArrayElement":Jt(e)?"MemberElement":Dt(e)?"StringElement":Ut(e)?"BooleanElement":Vt(e)?"NumberElement":zt(e)?"NullElement":Kt(e)?"LinkElement":Ht(e)?"RefElement":void 0,hr=e=>Lt(e)?lr(e):Pt(e),mr=ye(pr,lt),fr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const dr=(e,t,{keyMap:r=fr,...s}={})=>At(e,t,{keyMap:r,nodeTypeGetter:pr,nodePredicate:mr,nodeCloneFn:hr,...s});dr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=fr,...s}={})=>At[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:pr,nodePredicate:mr,nodeCloneFn:hr,...s});const _r=c((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})R(s,t)&&(n[s]=R(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)R(s,r)&&!R(s,n)&&(n[s]=r[s]);return n}));const yr=c((function e(t,r,s){return _r((function(r,s,n){return Se(s)&&Se(n)?e(t,s,n):t(r,s,n)}),r,s)}));const gr=a((function(e,t){return yr((function(e,t,r){return r}),e,t)}));const vr=de(0,-1);const br=a((function(e,t){return e.apply(this,t)}));const wr=J(Je);var Er=o((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():g(e)?[]:p(e)?"":Se(e)?{}:T(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 xr=Er;const Sr=o((function(e){return null!=e&&ee(e,xr(e))}));const jr=N(1,Je(Array.isArray)?Array.isArray:ye(X,ve("Array")));const Or=Te(jr,Sr);const Pr=N(3,(function(e,t,r){var s=$e(e,r),n=$e(vr(e),r);if(!wr(s)&&!Or(e)){var i=ce(s,n);return br(i,t)}})),Ar=()=>({predicates:{...e},namespace:ut}),kr={toolboxCreator:Ar,visitorOptions:{nodeTypeGetter:pr,exposeEdits:!0}},Mr=(e,t,r={})=>{if(0===t.length)return e;const s=gr(kr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=xt,nodeTypeGetter:r=jt,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(f({},"visitor")),{...i});a.forEach(Pr(["pre"],[]));const u=dr(e,c,i);return a.forEach(Pr(["post"],[])),u},Ir=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Lt(e)&&(e.meta.length>0&&(s.meta=ar(e.meta)),e.attributes.length>0&&(s.attributes=ar(e.attributes))),Mr(s,r,{toolboxCreator:Ar,visitorOptions:{nodeTypeGetter:pr}})},$r=e=>(t,r={})=>Ir(t,{...r,Type:e});ie.Sh.refract=$r(ie.Sh),ie.wE.refract=$r(ie.wE),ie.Om.refract=$r(ie.Om),ie.bd.refract=$r(ie.bd),ie.Os.refract=$r(ie.Os),ie.kT.refract=$r(ie.kT),ie.Ft.refract=$r(ie.Ft),ie.sI.refract=$r(ie.sI),Qe.refract=$r(Qe),tt.refract=$r(tt),st.refract=$r(st),it.refract=$r(it);const Nr=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 Rr{static toPosition(e){const t=new ie.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new ie.wE([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(er);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 Nr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new Qe(`(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 ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ie.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new ie.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){const n=!e.hasError,i=e.text,o=new Qe(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.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 it,s=Rr.toPosition(e);if(null!==s){const[e,t]=s;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const Cr=Rr;class Tr{cursor;constructor(e){this.cursor=e}document(){return new Nr(this.cursor)}object(){return new Nr(this.cursor).setFieldName(this.cursor)}array(){return new Nr(this.cursor).setFieldName(this.cursor)}pair(){return new Nr(this.cursor)}string(){return new Nr(this.cursor).setFieldName(this.cursor)}number(){return new Nr(this.cursor).setFieldName(this.cursor)}null(){return new Nr(this.cursor).setFieldName(this.cursor)}true(){return new Nr(this.cursor).setFieldName(this.cursor)}false(){return new Nr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Nr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Nr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Tr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Tr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Fr=Tr,qr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...fr},Br=e=>Yt(e)?"ParseResultElement":Lt(e)?pr(e):jt(e),Lr=e=>Lt(e)||Ot(e),Dr=(e,{sourceMap:t=!1}={})=>{const r=new Cr,s=e.walk(),n=new Fr(s),[i]=Array.from(n);return At(i,r,{keyMap:qr,nodeTypeGetter:Br,nodePredicate:Lr,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 zr{static type="position";type=zr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Ur=zr;const Gr=h(0);const Wr=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 Jr=class extends Wr{};const Kr=class extends Jr{static type="document";get child(){return Gr(this.children)}};const Hr=class extends Wr{static type="parseResult";get rootNode(){return Gr(this.children)}};const Zr=class extends Wr{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),Qr=e=>Xr("false",e),es=e=>Xr("true",e),ts=e=>Xr("null",e),rs=e=>Xr("number",e),ss=e=>Xr("array",e),ns=e=>Xr("object",e),is=e=>Xr("property",e),os=e=>Xr("key",e);const as=class extends Jr{static type="object";get properties(){return this.children.filter(is)}};const cs=class extends Jr{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 us=class extends cs{static type="key"};const ls=class extends Jr{static type="property";get key(){return this.children.find(os)}get value(){return this.children.find((e=>Qr(e)||es(e)||ts(e)||rs(e)||Yr(e)||ss(e)||ns(e)))}};const ps=class extends Jr{static type="array";get items(){return this.children.filter((e=>Qr(e)||es(e)||ts(e)||rs(e)||Yr(e)||ss(e)||ns))}};const hs=class extends Jr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const ms=class extends hs{static type="stringContent"};const fs=class extends hs{static type="number"};const ds=class extends hs{static type="null"};const _s=class extends hs{static type="true"};const ys=class extends hs{static type="false"};const gs=class extends Wr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},vs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class bs{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 Ur({start:t,end:r})}document={enter:e=>{const t=bs.toPosition(e);return new Kr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Hr({children:[e]})};enter(e){if(e instanceof Nr&&!e.isNamed){const t=bs.toPosition(e),r=e.type||e.text,{isMissing:s}=e;return new Zr({value:r,position:t,isMissing:s})}}object(e){const t=bs.toPosition(e);return new as({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=bs.toPosition(e),r=e.children.slice(1),{keyNode:s}=e,n=new us({children:(null==s?void 0:s.children)||[],position:null!=s?bs.toPosition(s):void 0,isMissing:null!=s&&s.isMissing});return new ls({children:[n,...r],position:t,isMissing:e.isMissing})}array(e){const t=bs.toPosition(e);return new ps({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=bs.toPosition(e),r=new ms({value:JSON.parse(e.text)});return new cs({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=bs.toPosition(e),r=e.text;return new fs({value:r,position:t,isMissing:e.isMissing})}null(e){const t=bs.toPosition(e),r=e.text;return new ds({value:r,position:t,isMissing:e.isMissing})}true(e){const t=bs.toPosition(e),r=e.text;return new _s({value:r,position:t,isMissing:e.isMissing})}false(e){const t=bs.toPosition(e),r=e.text;return new ys({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,s){const n=bs.toPosition(e),i=new gs({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?new Hr({children:[i]}):i}}const ws=bs,Es={[Hr.type]:["children"],[Kr.type]:["children"],[as.type]:["children"],[ls.type]:["children"],[ps.type]:["children"],[gs.type]:["children"],...fr},xs=e=>Yt(e)?"ParseResultElement":Lt(e)?pr(e):jt(e),Ss=e=>Lt(e)||Ot(e);const js=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(er);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 ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ie.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Qe(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 Qe(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.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 it;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},Os=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new Fr(r),[n]=Array.from(s),i=new ws,o=new js,a=At(n,i,{keyMap:vs,state:{sourceMap:t}});return At(a.rootNode,o,{keyMap:Es,nodeTypeGetter:xs,nodePredicate:Ss,state:{sourceMap:t}})},Ps=(ct(),/(?<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 As extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const ks=As;class Ms extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Is=Ms;class $s extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Ns=$s;class Rs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Cs=Rs;class Ts extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Fs=Ts;class qs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Bs=qs;class Ls extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ds=Ls;class Vs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Vs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const zs=Vs;class Us extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Gs=Us;class Ws extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Js=Ws;class Ks extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return 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 Hs=Ks;class Zs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Xs=Zs;class Ys extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Qs=Ys;class en extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const tn=en;class rn extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const sn=rn;class nn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const on=nn;class an extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const cn=an;class un extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(un.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ln=un;class pn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const hn=pn;class mn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const fn=mn;class dn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const _n=dn;class yn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}}const gn=yn;class vn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const bn=vn;class wn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const En=wn;const xn=class extends yt{};class Sn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const jn=Sn;class On extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Pn=On;class An extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const kn=An;class Mn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const In=Mn;const $n=a((function(e,t){return y((function(r,s){return r[s]=e(t[s],s,t),r}),{},V(t))}));const Nn=o((function(e){return null==e}));const Rn=a((function(e,t){if(0===e.length||Nn(t))return!1;for(var r=t,s=0;s<e.length;){if(Nn(r)||!R(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));var Cn=a((function(e,t){return Rn([e],t)}));const Tn=Cn;const Fn=c((function(e,t,r){return e(m(t,r))}));const qn=o((function(e){return N(e.length,e)}));const Bn=a((function(e,t){return N(e+1,(function(){var r=arguments[e];if(null!=r&&Re(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(r)+' does not have a method named "'+t+'"')}))}));const Ln=Bn(1,"split");var Dn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,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 zn=a(j(["dropWhile"],Vn,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return de(r,1/0,t)})));const Un=Bn(1,"join");const Gn=qn((function(e,t){return ye(Ln(""),zn(Nt(e)),Un(""))(t)})),Wn=(e,t)=>{const r=u(e,t);return $n((e=>{if(Xe(e)&&Tn("$ref",e)&&Fn(lt,"$ref",e)){const t=$e(["$ref"],e),s=Gn("#/",t);return $e(s.split("/"),r)}return Xe(e)?Wn(e,r):e}),e)};var Jn=r(8357);const Kn=function(){return!0},Hn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:pr(e),Zn={EphemeralObject:["content"],EphemeralArray:["content"],...fr},Xn=(e,t,{keyMap:r=Zn,...s}={})=>dr(e,t,{keyMap:r,nodeTypeGetter:Hn,nodePredicate:Kn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Xn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Zn,...r}={})=>dr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Hn,nodePredicate:Kn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Yn=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 Qn=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 ei{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Qn(e.content);return this.references.set(e,t),t}};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 Yn(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 ti=e=>Lt(e)?Dt(e)||Vt(e)||Ut(e)||zt(e)?e.toValue():Xn(e,new ei):e,ri=e=>{const t=e.meta.length>0?ar(e.meta):void 0,r=e.attributes.length>0?ar(e.attributes):void 0;return new e.constructor(void 0,t,r)},si=(e,t)=>t.clone&&t.isMergeableElement(e)?ai(ri(e),e,t):e,ni=e=>"function"!=typeof e.customMetaMerge?e=>ar(e):e.customMetaMerge,ii=e=>"function"!=typeof e.customAttributesMerge?e=>ar(e):e.customAttributesMerge,oi={clone:!0,isMergeableElement:e=>Gt(e)||Wt(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>si(e,r))),objectElementMerge:(e,t,r)=>{const s=Gt(e)?ri(e):ri(t);return Gt(e)&&e.forEach(((e,t,n)=>{const i=lr(n);i.value=si(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=ti(n);let a;if(Gt(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=lr(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ai;const r=t.customMerge(e,t);return"function"==typeof r?r:ai})(n,r)(s,t)}else a=lr(i),a.value=si(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ai(e,t,r){var s,n,i;const o={...oi,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:oi.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:oi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:oi.objectElementMerge;const a=Wt(t);if(!(a===Wt(e)))return si(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=ni(o)(e.meta,t.meta),c.attributes=ii(o)(e.attributes,t.attributes),c}ai.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ie.Sh:e.reduce(((e,r)=>ai(e,r,t)),ri(e[0]))};const ci=Jn({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),tr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}}}),ui=Jn(ci,{methods:{enter(e){return this.element=ar(e),St}}});const li=te(re());const pi=a((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})),hi=Jn(ci,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return pi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["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 se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?ar(t):(dr(t,s,r),s.element)}}}),mi=Jn(hi,{props:{specPath:li,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(ti(s))&&!this.ignoredFields.includes(ti(s))){const r=this.toRefractedElement([...t,"fixedFields",ti(s)],e),i=new ie.Pr(ar(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ti(s))||this.element.content.push(ar(n))})),this.copyMetaAndAttributes(e,this.element),St}}}),fi=Jn(mi,ui,{props:{specPath:te(["document","objects","JSONSchema"])},init(){this.element=new jn}}),di=ui,_i=ui,yi=ui,gi=ui,vi=ui,bi=ui,wi=ui,Ei=ui,xi=ui,Si=ui,ji=Jn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Oi=e=>Gt(e)&&e.hasKey("$ref"),Pi=Jn(hi,ji,ui,{methods:{ObjectElement(e){const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St},ArrayElement(e){return this.element=new ie.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Ai=ui,ki=ui,Mi=ui,Ii=ui,$i=ui,Ni=Jn(ui,{methods:{ArrayElement(e){return this.element=ar(e),this.element.classes.push("json-schema-required"),St}}});const Ri=o((function(e){return N(me(Ve,0,ze("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=a((function(e,t){return e||t}));const Ti=J(N(1,Te(qe,a((function(e,t){return Re(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(Ci)(e,t)}))(Le,Je))));const Fi=J(Sr);const qi=Ri([lt,Ti,Fi]);const Bi=function(){return!1},Li=Jn(hi,{props:{fieldPatternPredicate:Bi,specPath:li,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(ti(t))&&this.fieldPatternPredicate(ti(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ie.Pr(ar(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ti(t))||this.element.content.push(ar(r))})),this.copyMetaAndAttributes(e,this.element),St}}}),Di=Jn(Li,{props:{fieldPatternPredicate:qi}}),Vi=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-properties")}}),zi=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-patternProperties")}}),Ui=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-dependencies")}}),Gi=Jn(ui,{methods:{ArrayElement(e){return this.element=ar(e),this.element.classes.push("json-schema-enum"),St}}}),Wi=Jn(ui,{methods:{StringElement(e){return this.element=ar(e),this.element.classes.push("json-schema-type"),St},ArrayElement(e){return this.element=ar(e),this.element.classes.push("json-schema-type"),St}}}),Ji=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Ki=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Hi=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Zi=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-definitions")}}),Xi=ui,Yi=ui,Qi=ui,eo=ui,to=ui,ro=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}}}),so=ui,no=Jn(mi,ui,{props:{specPath:te(["document","objects","JSONReference"])},init(){this.element=new Pn},methods:{ObjectElement(e){const t=mi.compose.methods.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),io=Jn(ui,{methods:{StringElement(e){return this.element=ar(e),this.element.classes.push("reference-value"),St}}});const oo=c((function(e,t,r){return N(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const ao=o((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var co=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const uo=co;const lo=o(kt);const po=J(Nn);const ho=Te(jr,Fi);function mo(e){return function(e){if(Array.isArray(e))return fo(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 fo(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 fo(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 fo(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 _o=ye(uo(ao((function(e,t){return e.length>t.length}))),Gr,m("length")),yo=qn((function(e,t,r){var s=r.apply(void 0,mo(e));return po(s)?lo(s):t}));const go=oo(ho,(function(e){var t=_o(e);return N(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return me(yo(r),void 0,e)}))}),re),vo=Jn(hi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>oo(e,te(t),re))),r=go(t)(e);return this.element=this.toRefractedElement(r,e),St}}}),bo=Jn(vo,{props:{alternator:[{predicate:Oi,specPath:["document","objects","JSONReference"]},{predicate:Kn,specPath:["document","objects","JSONSchema"]}]}}),wo={visitors:{value:ui,JSONSchemaOrJSONReferenceVisitor:bo,document:{objects:{JSONSchema:{$visitor:fi,fixedFields:{id:di,$schema:_i,multipleOf:yi,maximum:gi,exclusiveMaximum:vi,minimum:bi,exclusiveMinimum:wi,maxLength:Ei,minLength:xi,pattern:Si,additionalItems:bo,items:Pi,maxItems:Ai,minItems:ki,uniqueItems:Mi,maxProperties:Ii,minProperties:$i,required:Ni,properties:Vi,additionalProperties:bo,patternProperties:zi,dependencies:Ui,enum:Gi,type:Wi,allOf:Ji,anyOf:Ki,oneOf:Hi,not:bo,definitions:Zi,title:Xi,description:Yi,default:Qi,format:eo,base:to,links:ro,media:{$ref:"#/visitors/document/objects/Media"},readOnly:so}},JSONReference:{$visitor:no,fixedFields:{$ref:io}},Media:{$visitor:Jn(mi,ui,{props:{specPath:te(["document","objects","Media"])},init(){this.element=new kn}}),fixedFields:{binaryEncoding:ui,type:ui}},LinkDescription:{$visitor:Jn(mi,ui,{props:{specPath:te(["document","objects","LinkDescription"])},init(){this.element=new In}}),fixedFields:{href:ui,rel:ui,title:ui,targetSchema:bo,mediaType:ui,method:ui,encType:ui,schema:bo}}}}}},Eo=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xo={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fr},So=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jn||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),jo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pn||e(s)&&t("JSONReference",s)&&r("object",s))),Oo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kn||e(s)&&t("media",s)&&r("object",s))),Po=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof In||e(s)&&t("linkDescription",s)&&r("object",s))),Ao={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",jn),t.register("jSONReference",Pn),t.register("media",kn),t.register("linkDescription",In),t}},ko=()=>{const e=ct(Ao);return{predicates:{...t,isStringElement:Dt},namespace:e}},Mo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=wo}={})=>{const n=(0,ie.e)(e),i=Wn(s),o=Pr(t,[],i);return dr(n,o,{state:{specObj:i}}),Mr(o.element,r,{toolboxCreator:ko,visitorOptions:{keyMap:xo,nodeTypeGetter:Eo}})},Io=e=>(t,r={})=>Mo(t,{specPath:e,...r});jn.refract=Io(["visitors","document","objects","JSONSchema","$visitor"]),Pn.refract=Io(["visitors","document","objects","JSONReference","$visitor"]),kn.refract=Io(["visitors","document","objects","Media","$visitor"]),In.refract=Io(["visitors","document","objects","LinkDescription","$visitor"]);const $o=class extends jn{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new xn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new xn("idProp setter in Schema class is not not supported.")}get $schema(){throw new xn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new xn("$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 xn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new xn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new xn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new xn("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 xn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new xn("definitions setter in Schema class is not not supported.")}get base(){throw new xn("base getter in Schema class is not not supported.")}set base(e){throw new xn("base setter in Schema class is not not supported.")}get links(){throw new xn("links getter in Schema class is not not supported.")}set links(e){throw new xn("links setter in Schema class is not not supported.")}get media(){throw new xn("media getter in Schema class is not not supported.")}set media(e){throw new xn("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 No extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Ro=No;class Co extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const To=Co;class Fo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const qo=Fo;class Bo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Lo=Bo;class Do extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Vo=Do;class zo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Uo=zo,Go=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Wo=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Wo(r,[...t,r])},Jo=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Wo(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=Wo(n);for(let t of e){let e=Wo(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(Go(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Ko=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Ho=(e,t)=>{const r=t.map((e=>Wo(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(Ho(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Ho(s,e)||void 0!==t[s],get:(r,s)=>(Ho(s,e)||t)[s],set(t,r,s){const n=Ho(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)))))}),Xo=null,Yo="copy",Qo="copy",ea="deep",ta=new WeakMap,ra=e=>ta.get(e),sa=(e,t)=>{var r,s;const n=Ko([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Ko([...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},na=(e,t)=>{var r,s,n,i;return{property:sa(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:sa(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},ia=(e,t)=>{var r,s,n,i,o,a;return{class:Ko([...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:na(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:na(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},oa=new Map,aa=(...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=[...Wo(e.prototype).map((e=>e.constructor)),...null!==(t=ra(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=>oa.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ia(e,t)))},ca=e=>{let t=oa.get(e);return t||(t={},oa.set(e,t)),t};function ua(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Xo;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)Go(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Qo?Jo(n,o):(a=n,c=o,Zo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Yo?Jo(e,null,["prototype"]):Zo(e,Function.prototype));let u=o;if("none"!==ea){const n="deep"===ea?aa(...e):((...e)=>{const t=e.map((e=>ca(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>ia(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)}la(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),la(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,p;return l=u,p=e,ta.set(l,p),u}const la=(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 pa=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),tr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}};const ha=class extends pa{enter(e){return this.element=ar(e),St}};const ma=class extends pa{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 pi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["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 ha&&(null==s?void 0:s.constructor)===ha?ar(t):(dr(t,s,r),s.element)}};var fa=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,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?kt(r):r},e}();function da(e){return function(t){return new fa(e,t)}}const _a=a(j(["take"],da,(function(e,t){return de(0,e<0?1/0:e,t)})));const ya=a((function(e,t){return ee(_a(e.length,t),e)})),ga=e=>Gt(e)&&e.hasKey("$ref"),va=Gt,ba=Gt,wa=e=>Dt(e.key)&&ya("x-",ti(e.key));const Ea=class extends ma{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=wa;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(ti(s))&&!this.ignoredFields.includes(ti(s))){const r=this.toRefractedElement([...t,"fixedFields",ti(s)],e),i=new ie.Pr(ar(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(ti(s))||this.element.content.push(ar(n))})),this.copyMetaAndAttributes(e,this.element),St}};class xa extends(ua(Ea,ha)){constructor(e){super(e),this.element=new on,this.specPath=te(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Ea.prototype.ObjectElement.call(this,e)}}const Sa=xa;class ja extends(ua(ma,ha)){StringElement(e){const t=new sn(ti(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const Oa=ja;const Pa=class extends ma{MemberElement(e){return this.element=ar(e),this.element.classes.push("specification-extension"),St}};class Aa extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Gs,this.specPath=te(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const ka=Aa;const Ma=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ia extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Ns,this.specPath=te(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const $a=Ia;class Na extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Js,this.specPath=te(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Ra=Na;class Ca extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Hs,this.specPath=te(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return(Dt(this.element.operationId)||Dt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Ta=Ca;const Fa=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const qa=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ba=class extends ma{specPath;ignoredFields;fieldPatternPredicate=Bi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=wa;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(ti(t))&&this.fieldPatternPredicate(ti(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ie.Pr(ar(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ti(t))||this.element.content.push(ar(r))})),this.copyMetaAndAttributes(e,this.element),St}};const La=class extends Ba{constructor(e){super(e),this.fieldPatternPredicate=qi}};class Da extends ie.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass)}}const Va=Da;class za extends(ua(La,ha)){constructor(e){super(e),this.element=new Va,this.specPath=te(["value"])}}const Ua=za;class Ga extends(ua(Ea,ha)){constructor(e){super(e),this.element=new qo,this.specPath=te(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Wa=Ga;const Ja=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Ka extends ie.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ka.primaryClass)}}const Ha=Ka;class Za extends(ua(ma,ha)){constructor(e){super(e),this.element=new Ha}ArrayElement(e){return e.forEach((e=>{const t=va(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Xa=Za;class Ya extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Lo,this.specPath=te(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Qa=Ya;class ec extends ie.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(ec.primaryClass)}}const tc=ec;class rc extends(ua(La,ha)){constructor(e){super(e),this.element=new tc,this.specPath=te(["document","objects","ServerVariable"])}}const sc=rc;class nc extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Xs,this.specPath=te(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ic=nc;const oc=class extends ma{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>oo(e,te(t),re))),r=go(t)(e);return this.element=this.toRefractedElement(r,e),St}},ac=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ks||e(s)&&t("callback",s)&&r("object",s))),cc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Is||e(s)&&t("components",s)&&r("object",s))),uc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ns||e(s)&&t("contact",s)&&r("object",s))),lc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bs||e(s)&&t("example",s)&&r("object",s))),pc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ds||e(s)&&t("externalDocumentation",s)&&r("object",s))),hc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zs||e(s)&&t("header",s)&&r("object",s))),mc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gs||e(s)&&t("info",s)&&r("object",s))),fc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Js||e(s)&&t("license",s)&&r("object",s))),dc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hs||e(s)&&t("link",s)&&r("object",s))),_c=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sn||e(s)&&t("openapi",s)&&r("string",s))),yc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof on||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),gc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cn||e(s)&&t("operation",s)&&r("object",s))),vc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ln||e(s)&&t("parameter",s)&&r("object",s))),bc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hn||e(s)&&t("pathItem",s)&&r("object",s))),wc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fn||e(s)&&t("paths",s)&&r("object",s))),Ec=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _n||e(s)&&t("reference",s)&&r("object",s))),xc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gn||e(s)&&t("requestBody",s)&&r("object",s))),Sc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bn||e(s)&&t("response",s)&&r("object",s))),jc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof En||e(s)&&t("responses",s)&&r("object",s))),Oc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $o||e(s)&&t("schema",s)&&r("object",s))),Pc=e=>Ut(e)&&e.classes.includes("boolean-json-schema"),Ac=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ro||e(s)&&t("securityRequirement",s)&&r("object",s))),kc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof To||e(s)&&t("securityScheme",s)&&r("object",s))),Mc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qo||e(s)&&t("server",s)&&r("object",s))),Ic=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lo||e(s)&&t("serverVariable",s)&&r("object",s))),$c=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xs||e(s)&&t("mediaType",s)&&r("object",s))),Nc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ha||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Rc extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Cc=Rc;class Tc extends(ua(La,ha)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("examples"),this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Fc=Tc;class qc extends ie.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(qc.primaryClass),this.classes.push("examples")}}const Bc=qc;const Lc=class extends Fc{constructor(e){super(e),this.element=new Bc}};class Dc extends ie.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Dc.primaryClass)}}const Vc=Dc;class zc extends(ua(La,ha)){constructor(e){super(e),this.element=new Vc,this.specPath=te(["document","objects","Encoding"])}}const Uc=zc;class Gc extends(ua(La,ha)){constructor(e){super(e),this.element=new Ro,this.specPath=te(["value"])}}const Wc=Gc;class Jc extends ie.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Jc.primaryClass)}}const Kc=Jc;class Hc extends(ua(ma,ha)){constructor(e){super(e),this.element=new Kc}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(ar(e))})),this.copyMetaAndAttributes(e,this.element),St}}const Zc=Hc;class Xc extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Is,this.specPath=te(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Yc=Xc;class Qc extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Vo,this.specPath=te(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const eu=Qc;class tu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new _n,this.specPath=te(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ru=tu;const su=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class nu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new ln,this.specPath=te(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter($c).forEach(((e,t)=>{e.setMetaProperty("media-type",ti(t))})),t}}const iu=nu;class ou extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const au=ou;class cu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new zs,this.specPath=te(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const uu=cu;class lu extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const pu=lu;class hu extends ie.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(hu.primaryClass),this.classes.push("examples")}}const mu=hu;const fu=class extends Fc{constructor(e){super(e),this.element=new mu}};class du extends(ua(La,ha)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("content"),this.specPath=te(["document","objects","MediaType"])}}const _u=du;class yu extends ie.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(yu.primaryClass),this.classes.push("content")}}const gu=yu;const vu=class extends _u{constructor(e){super(e),this.element=new gu}};class bu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new $o,this.specPath=te(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const wu=bu,{allOf:Eu}=wo.visitors.document.objects.JSONSchema.fixedFields,xu=Eu.compose({methods:{ArrayElement(e){const t=Eu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Su}=wo.visitors.document.objects.JSONSchema.fixedFields,ju=Su.compose({methods:{ArrayElement(e){const t=Su.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Ou}=wo.visitors.document.objects.JSONSchema.fixedFields,Pu=Ou.compose({methods:{ArrayElement(e){const t=Ou.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Au}=wo.visitors.document.objects.JSONSchema.fixedFields,ku=Au.compose({methods:{ObjectElement(e){const t=Au.compose.methods.ObjectElement.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=ar(e),St}}}),{properties:Mu}=wo.visitors.document.objects.JSONSchema.fixedFields,Iu=Mu.compose({methods:{ObjectElement(e){const t=Mu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:$u}=wo.visitors.document.objects.JSONSchema.fixedFields,Nu=$u.compose({methods:{ArrayElement(e){return this.element=ar(e),St}}}),{JSONSchemaOrJSONReferenceVisitor:Ru}=wo.visitors,Cu=Ru.compose({methods:{ObjectElement(e){const t=Ru.compose.methods.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Tu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Cs,this.specPath=te(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Fu=Tu;class qu extends ie.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(qu.primaryClass)}}const Bu=qu;class Lu extends(ua(La,ha)){constructor(e){super(e),this.element=new Bu,this.specPath=te(["value"])}}const Du=Lu;class Vu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Uo,this.specPath=te(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const zu=Vu;class Uu extends ie.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Uu.primaryClass),this.classes.push("examples")}}const Gu=Uu;const Wu=class extends Fc{constructor(e){super(e),this.element=new Gu}};class Ju extends ie.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ju.primaryClass),this.classes.push("content")}}const Ku=Ju;const Hu=class extends _u{constructor(e){super(e),this.element=new Ku}};class Zu extends ie.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Zu.primaryClass)}}const Xu=Zu;class Yu extends(ua(La,ha)){constructor(e){super(e),this.element=new Xu,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Qu=Yu;class el extends ie.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(el.primaryClass)}}const tl=el;class rl extends(ua(La,ha)){constructor(e){super(e),this.element=new tl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ti(t))})),t}}const sl=rl;class nl extends ie.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(nl.primaryClass),this.classes.push("parameters")}}const il=nl;class ol extends(ua(La,ha)){constructor(e){super(e),this.element=new il,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const al=ol;class cl extends ie.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(cl.primaryClass),this.classes.push("examples")}}const ul=cl;class ll extends(ua(La,ha)){constructor(e){super(e),this.element=new ul,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const pl=ll;class hl extends ie.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(hl.primaryClass)}}const ml=hl;class fl extends(ua(La,ha)){constructor(e){super(e),this.element=new ml,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const dl=fl;class _l extends ie.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(_l.primaryClass)}}const yl=_l;class gl extends(ua(La,ha)){constructor(e){super(e),this.element=new yl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",ti(t))})),t}}const vl=gl;class bl extends ie.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(bl.primaryClass)}}const wl=bl;class El extends(ua(La,ha)){constructor(e){super(e),this.element=new wl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const xl=El;class Sl extends ie.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Sl.primaryClass)}}const jl=Sl;class Ol extends(ua(La,ha)){constructor(e){super(e),this.element=new jl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Pl=Ol;class Al extends ie.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Al.primaryClass)}}const kl=Al;class Ml extends(ua(La,ha)){constructor(e){super(e),this.element=new kl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Il=Ml;class $l extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Bs,this.specPath=te(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Dt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Nl=$l;const Rl=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Cl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Ds,this.specPath=te(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Tl=Cl;class Fl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Fs,this.specPath=te(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.headers)&&this.element.headers.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",ti(t))})),t}}const ql=Fl;class Bl extends ie.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Bl.primaryClass)}}const Ll=Bl;class Dl extends(ua(La,ha)){constructor(e){super(e),this.element=new Ll,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!hc(e))return;const r=ti(t);e.setMetaProperty("headerName",r)})),t}}const Vl=Dl;class zl extends(ua(Ba,ha)){constructor(e){super(e),this.element=new fn,this.specPath=te(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Kn}ObjectElement(e){const t=Ba.prototype.ObjectElement.call(this,e);return this.element.filter(bc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ar(t))})),t}}const Ul=zl;class Gl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new gn,this.specPath=te(["document","objects","RequestBody"])}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter($c).forEach(((e,t)=>{e.setMetaProperty("media-type",ti(t))})),t}}const Wl=Gl;class Jl extends ie.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Jl.primaryClass),this.classes.push("content")}}const Kl=Jl;const Hl=class extends _u{constructor(e){super(e),this.element=new Kl}};class Zl extends(ua(Ba,ha)){constructor(e){super(e),this.element=new ks,this.specPath=te(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(bc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ti(t))})),t}}const Xl=Zl;class Yl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new bn,this.specPath=te(["document","objects","Response"])}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter($c).forEach(((e,t)=>{e.setMetaProperty("media-type",ti(t))})),Gt(this.element.headers)&&this.element.headers.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",ti(t))})),t}}const Ql=Yl;class ep extends ie.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ep.primaryClass)}}const tp=ep;class rp extends(ua(La,ha)){constructor(e){super(e),this.element=new tp,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!hc(e))return;const r=ti(t);e.setMetaProperty("header-name",r)})),t}}const sp=rp;class np extends ie.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(np.primaryClass),this.classes.push("content")}}const ip=np;const op=class extends _u{constructor(e){super(e),this.element=new ip}};class ap extends ie.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ap.primaryClass)}}const cp=ap;class up extends(ua(La,ha)){constructor(e){super(e),this.element=new cp,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const lp=up;function pp(e){return"[object Number]"===Object.prototype.toString.call(e)}const hp=a((function(e,t){if(!pp(e)||!pp(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 mp(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?!!be(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?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const fp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!mp(e,!0,this)},e.prototype.has=function(e){return mp(e,!1,this)},e}();const dp=a((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new fp,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 _p extends(ua(Ea,Ba)){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,...dp(e.keys(),t)],Ea.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ba.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const yp=_p;class gp extends(ua(yp,ha)){constructor(e){super(e),this.element=new En,this.specPathFixedFields=te(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ga(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${hp(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=yp.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sc).forEach(((e,t)=>{const r=ar(t);this.fieldPatternPredicate(ti(r))&&e.setMetaProperty("http-status-code",r)})),t}}const vp=gp;class bp extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)?this.element.setMetaProperty("referenced-element","response"):Sc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const wp=bp;class Ep extends(ua(Ea,ha)){constructor(e){super(e),this.element=new cn,this.specPath=te(["document","objects","Operation"])}}const xp=Ep;class Sp extends ie.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Sp.primaryClass)}}const jp=Sp;const Op=class extends ha{constructor(e){super(e),this.element=new jp}ArrayElement(e){return this.element=this.element.concat(ar(e)),St}};class Pp extends ie.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Pp.primaryClass),this.classes.push("parameters")}}const Ap=Pp;class kp extends(ua(ma,ha)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=ga(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Ec(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Mp=kp;const Ip=class extends Mp{constructor(e){super(e),this.element=new Ap}};const $p=class extends oc{constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Np extends ie.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass)}}const Rp=Np;class Cp extends(ua(La,ha)){specPath;constructor(e){super(e),this.element=new Rp,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Tp=Cp;class Fp extends ie.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Fp.primaryClass),this.classes.push("security")}}const qp=Fp;class Bp extends(ua(ma,ha)){constructor(e){super(e),this.element=new qp}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 Lp=Bp;class Dp extends ie.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Dp.primaryClass),this.classes.push("servers")}}const Vp=Dp;const zp=class extends Xa{constructor(e){super(e),this.element=new Vp}};class Up extends(ua(Ea,ha)){constructor(e){super(e),this.element=new hn,this.specPath=te(["document","objects","PathItem"])}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return this.element.filter(gc).forEach(((e,t)=>{const r=ar(t);r.content=ti(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Gp=Up;const Wp=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Jp extends ie.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Jp.primaryClass),this.classes.push("servers")}}const Kp=Jp;const Hp=class extends Xa{constructor(e){super(e),this.element=new Kp}};class Zp extends ie.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Zp.primaryClass),this.classes.push("parameters")}}const Xp=Zp;const Yp=class extends Mp{constructor(e){super(e),this.element=new Xp}};class Qp extends(ua(Ea,ha)){constructor(e){super(e),this.element=new To,this.specPath=te(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const eh=Qp;class th extends(ua(Ea,ha)){constructor(e){super(e),this.element=new tn,this.specPath=te(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const rh=th;class sh extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Qs,this.specPath=te(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const nh=sh;class ih extends ie.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(ih.primaryClass)}}const oh=ih;class ah extends(ua(La,ha)){constructor(e){super(e),this.element=new oh,this.specPath=te(["value"])}}const ch=ah;class uh extends ie.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(uh.primaryClass)}}const lh=uh;class ph extends(ua(ma,ha)){constructor(e){super(e),this.element=new lh}ArrayElement(e){return e.forEach((e=>{const t=ba(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const hh=ph,{fixedFields:mh}=wo.visitors.document.objects.JSONSchema,fh={visitors:{value:ha,document:{objects:{OpenApi:{$visitor:Sa,fixedFields:{openapi:Oa,info:{$ref:"#/visitors/document/objects/Info"},servers:Xa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Zc,tags:hh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ka,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:Ma}},Contact:{$visitor:$a,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Ra,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Wa,fixedFields:{url:Ja,description:{$ref:"#/visitors/value"},variables:sc}},ServerVariable:{$visitor:Qa,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Yc,fixedFields:{schemas:Qu,responses:sl,parameters:al,examples:pl,requestBodies:dl,headers:vl,securitySchemes:xl,links:Pl,callbacks:Il}},Paths:{$visitor:Ul},PathItem:{$visitor:Gp,fixedFields:{$ref:Wp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Hp,parameters:Yp}},Operation:{$visitor:xp,fixedFields:{tags:Op,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Ip,requestBody:$p,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Tp,deprecated:{$ref:"#/visitors/value"},security:Lp,servers:zp}},ExternalDocumentation:{$visitor:Tl,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:iu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:au,example:{$ref:"#/visitors/value"},examples:Wu,content:Hu}},RequestBody:{$visitor:Wl,fixedFields:{description:{$ref:"#/visitors/value"},content:Hl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ic,fixedFields:{schema:Cc,example:{$ref:"#/visitors/value"},examples:Lc,encoding:Uc}},Encoding:{$visitor:ql,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Vl,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:vp,fixedFields:{default:wp}},Response:{$visitor:Ql,fixedFields:{description:{$ref:"#/visitors/value"},headers:sp,content:op,links:lp}},Callback:{$visitor:Xl},Example:{$visitor:Nl,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Rl}},Link:{$visitor:Ta,fixedFields:{operationRef:Fa,operationId:qa,parameters:Ua,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:uu,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:pu,example:{$ref:"#/visitors/value"},examples:fu,content:vu}},Tag:{$visitor:eu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ru,fixedFields:{$ref:su}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:wu,fixedFields:{title:mh.title,multipleOf:mh.multipleOf,maximum:mh.maximum,exclusiveMaximum:mh.exclusiveMaximum,minimum:mh.minimum,exclusiveMinimum:mh.exclusiveMinimum,maxLength:mh.maxLength,minLength:mh.minLength,pattern:mh.pattern,maxItems:mh.maxItems,minItems:mh.minItems,uniqueItems:mh.uniqueItems,maxProperties:mh.maxProperties,minProperties:mh.minProperties,required:mh.required,enum:mh.enum,type:Nu,allOf:xu,anyOf:ju,oneOf:Pu,not:Cu,items:ku,properties:Iu,additionalProperties:Cu,description:mh.description,format:mh.format,default:mh.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:Fu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Du}},XML:{$visitor:zu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:eh,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:rh,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:nh,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ch}},SecurityRequirement:{$visitor:Wc}},extension:{$visitor:Pa}}}},dh=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_h={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"],...fr},yh={namespace:e=>{const{base:t}=e;return t.register("callback",ks),t.register("components",Is),t.register("contact",Ns),t.register("discriminator",Cs),t.register("encoding",Fs),t.register("example",Bs),t.register("externalDocumentation",Ds),t.register("header",zs),t.register("info",Gs),t.register("license",Js),t.register("link",Hs),t.register("mediaType",Xs),t.register("oAuthFlow",Qs),t.register("oAuthFlows",tn),t.register("openapi",sn),t.register("openApi3_0",on),t.register("operation",cn),t.register("parameter",ln),t.register("pathItem",hn),t.register("paths",fn),t.register("reference",_n),t.register("requestBody",gn),t.register("response",bn),t.register("responses",En),t.register("schema",$o),t.register("securityRequirement",Ro),t.register("securityScheme",To),t.register("server",qo),t.register("serverVariable",Lo),t.register("tag",Vo),t.register("xml",Uo),t}},gh=()=>{const e=ct(yh);return{predicates:{...n,isElement:Lt,isStringElement:Dt,isArrayElement:Wt,isObjectElement:Gt,isMemberElement:Jt,includesClasses:sr,hasElementSourceMap:tr},namespace:e}},vh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,ie.e)(e),n=Wn(fh),i=new($e(t,n))({specObj:n});return dr(s,i),Mr(i.element,r,{toolboxCreator:gh,visitorOptions:{keyMap:_h,nodeTypeGetter:dh}})},bh=e=>(t,r={})=>vh(t,{specPath:e,...r});ks.refract=bh(["visitors","document","objects","Callback","$visitor"]),Is.refract=bh(["visitors","document","objects","Components","$visitor"]),Ns.refract=bh(["visitors","document","objects","Contact","$visitor"]),Bs.refract=bh(["visitors","document","objects","Example","$visitor"]),Cs.refract=bh(["visitors","document","objects","Discriminator","$visitor"]),Fs.refract=bh(["visitors","document","objects","Encoding","$visitor"]),Ds.refract=bh(["visitors","document","objects","ExternalDocumentation","$visitor"]),zs.refract=bh(["visitors","document","objects","Header","$visitor"]),Gs.refract=bh(["visitors","document","objects","Info","$visitor"]),Js.refract=bh(["visitors","document","objects","License","$visitor"]),Hs.refract=bh(["visitors","document","objects","Link","$visitor"]),Xs.refract=bh(["visitors","document","objects","MediaType","$visitor"]),Qs.refract=bh(["visitors","document","objects","OAuthFlow","$visitor"]),tn.refract=bh(["visitors","document","objects","OAuthFlows","$visitor"]),sn.refract=bh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),on.refract=bh(["visitors","document","objects","OpenApi","$visitor"]),cn.refract=bh(["visitors","document","objects","Operation","$visitor"]),ln.refract=bh(["visitors","document","objects","Parameter","$visitor"]),hn.refract=bh(["visitors","document","objects","PathItem","$visitor"]),fn.refract=bh(["visitors","document","objects","Paths","$visitor"]),_n.refract=bh(["visitors","document","objects","Reference","$visitor"]),gn.refract=bh(["visitors","document","objects","RequestBody","$visitor"]),bn.refract=bh(["visitors","document","objects","Response","$visitor"]),En.refract=bh(["visitors","document","objects","Responses","$visitor"]),$o.refract=bh(["visitors","document","objects","Schema","$visitor"]),Ro.refract=bh(["visitors","document","objects","SecurityRequirement","$visitor"]),To.refract=bh(["visitors","document","objects","SecurityScheme","$visitor"]),qo.refract=bh(["visitors","document","objects","Server","$visitor"]),Lo.refract=bh(["visitors","document","objects","ServerVariable","$visitor"]),Vo.refract=bh(["visitors","document","objects","Tag","$visitor"]),Uo.refract=bh(["visitors","document","objects","XML","$visitor"]);const wh=h(-1);const Eh=class extends xn{};const xh=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Eh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Eh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Eh("latest method in MediaTypes class is not yet implemented.")}};class Sh extends xh{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 wh(this.filterByFormat(e))}}const jh=new Sh("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"),Oh=new Sh(...jh.filterByFormat("generic"),...jh.filterByFormat("json")),Ph=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,Ah=async e=>Ph.test(e)&&await(async e=>{if(!Ps.test(e))return!1;try{return"ERROR"!==(await wt(e)).rootNode.type}catch{return!1}})(e),kh=async(e,t={})=>{const r=f({},"refractorOpts",t),s=_(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await wt(e);let n;return n="indirect"===r?Os(s,{sourceMap:t}):Dr(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(ne(i)){const e=on.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},Mh=ct(yh)})(),s})()));
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={3103:(e,t,r)=>{var s=r(4715)(r(8942),"DataView");e.exports=s},5098:(e,t,r)=>{var s=r(3305),n=r(9361),i=r(1112),o=r(5276),a=r(5071);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},1386:(e,t,r)=>{var s=r(2393),n=r(2049),i=r(7144),o=r(7452),a=r(3964);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},9770:(e,t,r)=>{var s=r(4715)(r(8942),"Map");e.exports=s},8250:(e,t,r)=>{var s=r(9753),n=r(5681),i=r(88),o=r(4732),a=r(9068);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},9413:(e,t,r)=>{var s=r(4715)(r(8942),"Promise");e.exports=s},4512:(e,t,r)=>{var s=r(4715)(r(8942),"Set");e.exports=s},3212:(e,t,r)=>{var s=r(8250),n=r(1877),i=r(8006);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},1340:(e,t,r)=>{var s=r(1386),n=r(4103),i=r(1779),o=r(4162),a=r(7462),c=r(6638);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},5650:(e,t,r)=>{var s=r(8942).Symbol;e.exports=s},1623:(e,t,r)=>{var s=r(8942).Uint8Array;e.exports=s},9270:(e,t,r)=>{var s=r(4715)(r(8942),"WeakMap");e.exports=s},9847: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}},358:(e,t,r)=>{var s=r(6137),n=r(3283),i=r(3142),o=r(5853),a=r(9632),c=r(8666),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}},1129: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}},6465: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}},7034:(e,t,r)=>{var s=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},8244:(e,t,r)=>{var s=r(1129),n=r(3142);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},7379:(e,t,r)=>{var s=r(5650),n=r(8870),i=r(9005),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)}},6027:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},4687:(e,t,r)=>{var s=r(353),n=r(547);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))}},353:(e,t,r)=>{var s=r(1340),n=r(3934),i=r(8861),o=r(1182),a=r(8486),c=r(3142),u=r(5853),l=r(8666),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,S=b==w;if(S&&u(e)){if(!u(t))return!1;g=!0,E=!1}if(S&&!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 j=E&&f.call(e,"__wrapped__"),O=x&&f.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,A=O?t.value():t;return y||(y=new s),_(P,A,r,d,y)}}return!!S&&(y||(y=new s),o(e,t,r,d,_,y))}},9624:(e,t,r)=>{var s=r(3655),n=r(4759),i=r(1580),o=r(4066),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))}},674:(e,t,r)=>{var s=r(7379),n=r(5387),i=r(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},195:(e,t,r)=>{var s=r(4882),n=r(8121),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}},6137:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,r)=>{var s=r(8942)["__core-js_shared__"];e.exports=s},3934:(e,t,r)=>{var s=r(3212),n=r(6465),i=r(5568);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}},8861:(e,t,r)=>{var s=r(5650),n=r(1623),i=r(6285),o=r(3934),a=r(5894),c=r(7447),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}},1182:(e,t,r)=>{var s=r(393),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}},4967:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},393:(e,t,r)=>{var s=r(8244),n=r(7979),i=r(1211);e.exports=function(e){return s(e,i,n)}},4700:(e,t,r)=>{var s=r(9067);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},4715:(e,t,r)=>{var s=r(9624),n=r(155);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},8870:(e,t,r)=>{var s=r(5650),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}},7979:(e,t,r)=>{var s=r(9847),n=r(9306),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},8486:(e,t,r)=>{var s=r(3103),n=r(9770),i=r(9413),o=r(4512),a=r(9270),c=r(7379),u=r(4066),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},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,r)=>{var s=r(4497);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,r)=>{var s=r(4497),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}},5276:(e,t,r)=>{var s=r(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},5071:(e,t,r)=>{var s=r(4497);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}},9632: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}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},4759:(e,t,r)=>{var s,n=r(1950),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,r)=>{var s=r(7034),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)}},7144:(e,t,r)=>{var s=r(7034);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},7452:(e,t,r)=>{var s=r(7034);e.exports=function(e){return s(this.__data__,e)>-1}},3964:(e,t,r)=>{var s=r(7034);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}},9753:(e,t,r)=>{var s=r(5098),n=r(1386),i=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},5681:(e,t,r)=>{var s=r(4700);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).get(e)}},4732:(e,t,r)=>{var s=r(4700);e.exports=function(e){return s(this,e).has(e)}},9068:(e,t,r)=>{var s=r(4700);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}},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},4497:(e,t,r)=>{var s=r(4715)(Object,"create");e.exports=s},8121:(e,t,r)=>{var s=r(3766)(Object.keys,Object);e.exports=s},2306:(e,t,r)=>{e=r.nmd(e);var s=r(4967),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},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},3766:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},8942:(e,t,r)=>{var s=r(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},4103:(e,t,r)=>{var s=r(1386);e.exports=function(){this.__data__=new s,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},6638:(e,t,r)=>{var s=r(1386),n=r(9770),i=r(8250);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}},4066:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3283:(e,t,r)=>{var s=r(6027),n=r(547),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},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,r)=>{var s=r(3655),n=r(5387);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},2563:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},5853:(e,t,r)=>{e=r.nmd(e);var s=r(8942),n=r(4772),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},6343:(e,t,r)=>{var s=r(4687);e.exports=function(e,t){return s(e,t)}},3655:(e,t,r)=>{var s=r(7379),n=r(1580);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}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,r)=>{var s=r(7379),n=r(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,r)=>{var s=r(7379),n=r(3142),i=r(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},8666:(e,t,r)=>{var s=r(674),n=r(9460),i=r(2306),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},1211:(e,t,r)=>{var s=r(358),n=r(195),i=r(6529);e.exports=function(e){return i(e)?s(e):n(e)}},1517:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},9306:e=>{e.exports=function(){return[]}},4772:e=>{e.exports=function(){return!1}},4123:(e,t,r)=>{const s=r(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const 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},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5735:(e,t,r)=>{const s=r(9310),n=r(8138),i=r(986),o=r(2563),a=r(1580),c=r(394),u=r(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(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},3311:(e,t,r)=>{const s=r(1517),n=r(4123);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},7547:(e,t,r)=>{const s=r(8631),n=r(3004),i=r(8712),o=r(2536),a=r(2555),c=r(9796),u=r(7309),l=r(5642),p=r(9620),h=r(593),m=r(4123),f=r(3311),d=r(2322);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}},9620:(e,t,r)=>{const s=r(8631);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)}}},593:(e,t,r)=>{const s=r(8631);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)}}},8326:(e,t,r)=>{const s=r(5735),n=r(7547);t.g$=s,t.KeyValuePair=r(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,r(394),r(3148)},9796:(e,t,r)=>{const s=r(1517),n=r(8631),i=r(4123);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},2555:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,r)=>{const s=r(6343),n=r(2322),i=r(4123);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},7309:(e,t,r)=>{const s=r(2322),n=r(8631);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)}}},3004:(e,t,r)=>{const s=r(8631);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")}}},2536:(e,t,r)=>{const s=r(8631);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},5642:(e,t,r)=>{const s=r(1517),n=r(1580),i=r(9796),o=r(7309),a=r(3311);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)))}}},8712:(e,t,r)=>{const s=r(8631);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}}},3148:(e,t,r)=>{const s=r(394);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]))}))}}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const 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]))}))}}},8357: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 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,s){if(s===t)return r;if(Array.isArray(s))return(Array.isArray(r)?r:[]).concat(s);if(!O(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(O(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 S(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function s(r,s){j(t[r])&&(j(e[r])||(e[r]={}),(s||x)(e[r],t[r]))}function n(s){(r=A(e[s],t[s]))&&(e[s]=r)}return t&&j(t=t[b]||t)&&(s(g),s(o),s(a,P),s(c),s(u),s(l,P),s(p),s(h),s(m,P),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&&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(s=l[i++])&&(u=(n=s.call(u,r,{instance:u,stamp:e,args:p}))===t?u:n);return u},(s=e[l])&&P(r,s),(s=e[u])&&x(r,s),(s=e[p])&&Object.defineProperties(r,s),s=S(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 I(e){return S(e)&&S(e[b])}var $={};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)}}$[g]=N(g,x),$[o]=$.props=N(o,x),$[y]=$.init=N(y,A),$[v]=N(v,A),$[a]=$[f]=N(a,P),$[u]=$.statics=N(u,x),$[l]=$[d]=N(l,P),$[h]=$.conf=N(h,x),$[m]=$[_]=N(m,P),$[c]=N(c,x),$[p]=N(p,x),s=$[b]=x((function(){for(var e,w,E=0,S=[],O=arguments,k=this;E<O.length;)j(e=O[E++])&&S.push(I(e)?e:((n={})[g]=(w=e)[g]||t,s=w.props,n[o]=j((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]=j((r=w[a])||s)?P({},s,r):t,n[c]=w[c],s=w.statics,n[u]=j((r=w[u])||s)?x({},s,r):t,s=w[d],n[l]=j((r=w[l])||s)?P({},s,r):t,r=w[p],n[p]=j((s=w.name&&{name:{value:w.name}})||r)?x({},r,s):t,s=w.conf,n[h]=j((r=w[h])||s)?x({},s,r):t,s=w[_],n[m]=j((r=w[m])||s)?P({},s,r):t,n));if(e=M.apply(k||i,S),k&&S.unshift(k),Array.isArray(O=e[b][v]))for(E=0;E<O.length;)e=I(k=O[E++]({stamp:e,composables:S}))?k:e;return e}),$),$.create=function(){return this.apply(t,arguments)},(n={})[u]=$,i=M(n),s[b]=s.bind(),s.version="4.3.2","object"!=typeof t?e.exports=s:self.stampit=s}()},3833:(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(4142).dirname(b)+"/":"//",d=function(e,t){return g||(g=r(3078)),v||(v=r(4142)),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,S=[];function j(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(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(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 O,P=s.dynamicLibraries||[];s.wasmBinary&&(O=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":B[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+r)}}function I(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 B[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 $=!1;function N(e,t){e||ae("Assertion failed: "+t)}var R,C,T,F,q,B,L,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.subarray&&D)return D.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 z(e,t){return e?V(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 G(e,t,r){return U(e,T,t,r)}function W(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=W(e)+1,r=ze(t);return U(e,C,r,t),r}function K(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=B=new Float32Array(e),s.HEAPF64=L=new Float64Array(e)}var H=s.INITIAL_MEMORY||33554432;(A=s.wasmMemory?s.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=A.buffer),H=R.byteLength,K(R);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],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+=""),$=!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&&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 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=V(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 Se(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function je(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(!Se(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=j(s):"number"==typeof s?fe[t].value=s:w("unhandled export type for `"+t+"`: "+typeof s))}}(r),r}function Oe(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=De();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(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Pe(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 Be(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=Oe(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=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 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 Pe(e,t)})):Pe(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=Oe(e,!0);"function"==typeof t?fe[e].value=j(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,Ie=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function $e(){ae()}s._abort=$e,$e.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),K(A.buffer),1}catch(e){}}function Ce(e){Ke(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:Ie,__table_base:1,abort:$e,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=z(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")}},Be=(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=je(r,1024),s.asm=r;var n,i=ye(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),we(r),n=s.asm.__wasm_call_ctors,Y.unshift(n),oe()}function r(e){t(e.instance,e.module)}function n(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(),s.instantiateWasm)try{return s.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?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(Be=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)}),De=(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(De=s.stackSave=s.asm.stackSave).apply(null,arguments)}),Ve=s.stackRestore=function(){return(Ve=s.stackRestore=s.asm.stackRestore).apply(null,arguments)},ze=s.stackAlloc=function(){return(ze=s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},Ue=s._setThrew=function(){return(Ue=s._setThrew=s.asm.setThrew).apply(null,arguments)};function Ge(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?ze(e.length):Be(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 We=!1;function Je(e){function t(){Fe||(Fe=!0,s.calledRun=!0,$||(te=!0,_e(Y),_e(Q),s.onRuntimeInitialized&&s.onRuntimeInitialized(),He&&function(e){var t=s._main;if(t){var r=(e=e||[]).length+1,n=ze(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{Ke(t(r,n),!0)}catch(e){if(e instanceof Ge)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),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||!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(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),X.unshift(e);var e;_e(X)}(),re>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),t()}),1)):t()))}function Ke(e,t){t&&ve()&&0===e||(ve()||(s.onExit&&s.onExit(e),$=!0),f(e,new Ge(e)))}if(s.run=Je,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();var He=!0;s.noInitialRun&&(He=!1),Je();const Ze=s,Xe={},Ye=4,Qe=5*Ye,et=2*Ye,tt=2*Ye+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=I(at,"i32"),ot=I(at+Ye,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=I(at,"i32"),this[1]=I(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!==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++)Ot(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(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,s){gt(e),this[0]=t,this.language=r,this.textCallback=s}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=I(at,"i32"),r=I(at+Ye,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=Pt(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]),jt(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=I(at,"i32"),t=I(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){bt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=I(at,"i32"),t=I(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 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(Ye*s.length);for(let e=0,t=s.length;e<t;e++)M(i+e*Ye,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=I(at,"i32"),a=I(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 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+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");bt(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(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(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(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");bt(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 bt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Xe,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+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 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]=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),s=Ze._malloc(r+1);G(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?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 s=Ze._ts_query_new(this[0],r,t,at,at+Ye);if(!s){const t=I(at+Ye,"i32"),s=z(r,I(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=I(at,"i32");a[e]=z(t,r)}for(let e=0;e<n;e++){const t=Ze._ts_query_string_value_for_id(s,e,at),r=I(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(s,e,at),r=I(at,"i32");h[e]=[],m[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=I(i,"i32"),r=I(i+=Ye,"i32");if(i+=Ye,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(Xe,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(3078);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:Pe;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(Xe,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=I(at,"i32"),o=I(at+Ye,"i32"),a=I(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=I(l,"i32"),s=I(l+=Ye,"i32");l+=Ye;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=I(at,"i32"),o=I(at+Ye,"i32"),a=I(at+2*Ye,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=I(l,"i32"),r=I(l+=Ye,"i32"),s=I(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[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=I(r,"i32"),o=wt(t,r+=Ye);r+=Qe,s[n]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function bt(e){let t=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=I(t,"i32");if(0===r)return null;const s=I(t+=Ye,"i32"),n=I(t+=Ye,"i32"),i=I(t+=Ye,"i32"),o=I(t+=Ye,"i32"),a=new ht(Xe,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*Ye,e[0],"i32"),M(t+1*Ye,e[1],"i32"),M(t+2*Ye,e[2],"i32")}function xt(e){e[0]=I(at+0*Ye,"i32"),e[1]=I(at+1*Ye,"i32"),e[2]=I(at+2*Ye,"i32")}function St(e,t){M(e,t.row,"i32"),M(e+Ye,t.column,"i32")}function jt(e){return{row:I(e,"i32"),column:I(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=I(e,"i32"),e+=Ye,t.endIndex=I(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},3078:()=>{},4142:()=>{},1212:(e,t,r)=>{e.exports=r(8411)},7202:(e,t,r)=>{"use strict";var s=r(239);e.exports=s},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var s=r(8099);e.exports=s.AggregateError},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8337:(e,t,r)=>{"use strict";r(5442);var s=r(7202);e.exports=s},814:(e,t,r)=>{"use strict";var s=r(2769),n=r(459),i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not a function")}},1966:(e,t,r)=>{"use strict";var s=r(2937),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,r)=>{"use strict";var s=r(262),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw new i(n(e)+" is not an object")}},1005:(e,t,r)=>{"use strict";var s=r(3273),n=r(4574),i=r(8130),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)}},9932:(e,t,r)=>{"use strict";var s=r(6100),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},8407:(e,t,r)=>{"use strict";var s=r(4904),n=r(2769),i=r(9932),o=r(8655)("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}},7464:(e,t,r)=>{"use strict";var s=r(701),n=r(5691),i=r(4543),o=r(9989);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))}}},2871:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,r)=>{"use strict";var s=r(5024),n=r(9989),i=r(480);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},3508:(e,t,r)=>{"use strict";var s=r(3999);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},7525:(e,t,r)=>{"use strict";var s=r(1063),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}},5024:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,r)=>{"use strict";var s=r(1063),n=r(262),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},1100:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},7868:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4432:(e,t,r)=>{"use strict";var s,n,i=r(1063),o=r(7868),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},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,r)=>{"use strict";var s=r(6100),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}},4279:(e,t,r)=>{"use strict";var s=r(3999),n=r(3885),i=r(5791),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):s(e,"stack",n(r,a)))}},5791:(e,t,r)=>{"use strict";var s=r(1203),n=r(480);e.exports=!s((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},9098:(e,t,r)=>{"use strict";var s=r(1063),n=r(7013),i=r(9344),o=r(2769),a=r(4543).f,c=r(8696),u=r(8099),l=r(4572),p=r(3999),h=r(701),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,S=e.proto,j=E?s:x?s[w]:s[w]&&s[w].prototype,O=E?u:u[w]||p(u,w,{})[w],P=O.prototype;for(d in t)n=!(r=c(E?d:w+(x?".":"#")+d,e.forced))&&j&&h(j,d),y=O[d],n&&(g=e.dontCallGetSet?(b=a(j,d))&&b.value:j[d]),_=n&&g?g:t[d],(r||S||typeof y!=typeof _)&&(v=e.bind&&n?l(_,s):e.wrap&&n?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||y&&y.sham)&&p(v,"sham",!0),p(O,d,v),S&&(h(u,f=w+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&P&&(r||!P[d])&&p(P,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,r)=>{"use strict";var s=r(1780),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)})},4572:(e,t,r)=>{"use strict";var s=r(9344),n=r(814),i=r(1780),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)}}},1780:(e,t,r)=>{"use strict";var s=r(1203);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,r)=>{"use strict";var s=r(1780),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},3410:(e,t,r)=>{"use strict";var s=r(5024),n=r(701),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}},3574:(e,t,r)=>{"use strict";var s=r(6100),n=r(814);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},9344:(e,t,r)=>{"use strict";var s=r(9932),n=r(6100);e.exports=function(e){if("Function"===s(e))return n(e)}},6100:(e,t,r)=>{"use strict";var s=r(1780),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)}}},1003:(e,t,r)=>{"use strict";var s=r(8099),n=r(1063),i=r(2769),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]}},967:(e,t,r)=>{"use strict";var s=r(8407),n=r(4674),i=r(3057),o=r(6625),a=r(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[s(e)]}},1613:(e,t,r)=>{"use strict";var s=r(4713),n=r(814),i=r(7235),o=r(459),a=r(967),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")}},4674:(e,t,r)=>{"use strict";var s=r(814),n=r(3057);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},1063: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")()},701:(e,t,r)=>{"use strict";var s=r(6100),n=r(2137),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,r)=>{"use strict";var s=r(1003);e.exports=s("document","documentElement")},9665:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203),i=r(9619);e.exports=!s&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,r)=>{"use strict";var s=r(6100),n=r(1203),i=r(9932),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},3507:(e,t,r)=>{"use strict";var s=r(2769),n=r(262),i=r(3491);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}},8148:(e,t,r)=>{"use strict";var s=r(262),n=r(3999);e.exports=function(e,t){s(t)&&"cause"in t&&n(e,"cause",t.cause)}},8417:(e,t,r)=>{"use strict";var s,n,i,o=r(1314),a=r(1063),c=r(262),u=r(3999),l=r(701),p=r(3753),h=r(4275),m=r(5241),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}}}},2877:(e,t,r)=>{"use strict";var s=r(8655),n=r(6625),i=s("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},8696:(e,t,r)=>{"use strict";var s=r(1203),n=r(2769),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},3057:e=>{"use strict";e.exports=function(e){return null==e}},262:(e,t,r)=>{"use strict";var s=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:s(e)}},2937:(e,t,r)=>{"use strict";var s=r(262);e.exports=function(e){return s(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,r)=>{"use strict";var s=r(1003),n=r(2769),i=r(4317),o=r(7460),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))}},208:(e,t,r)=>{"use strict";var s=r(4572),n=r(4713),i=r(7235),o=r(459),a=r(2877),c=r(8130),u=r(4317),l=r(1613),p=r(967),h=r(1743),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,S=!(!r||!r.AS_ENTRIES),j=!(!r||!r.IS_RECORD),O=!(!r||!r.IS_ITERATOR),P=!(!r||!r.INTERRUPTED),A=s(t,x),k=function(e){return _&&h(_,"normal",e),new f(!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,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=j?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)}},1743:(e,t,r)=>{"use strict";var s=r(4713),n=r(7235),i=r(4674);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}},1926:(e,t,r)=>{"use strict";var s=r(2621).IteratorPrototype,n=r(5780),i=r(480),o=r(1811),a=r(6625),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}},164:(e,t,r)=>{"use strict";var s=r(9098),n=r(4713),i=r(4871),o=r(3410),a=r(2769),c=r(1926),u=r(3671),l=r(3491),p=r(1811),h=r(3999),m=r(3508),f=r(8655),d=r(6625),_=r(2621),y=o.PROPER,g=o.CONFIGURABLE,v=_.IteratorPrototype,b=_.BUGGY_SAFARI_ITERATORS,w=f("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,r,o,f,_,O){c(r,t,o);var P,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 S:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",$=!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&&(P=u(T.call(new e)))!==Object.prototype&&P.next&&(i||u(P)===v||(l?l(P,v):a(P[w])||m(P,w,j)),p(P,I,!0,!0),i&&(d[I]=j)),y&&f===x&&R&&R.name!==x&&(!i&&g?h(N,"name",x):($=!0,C=function(){return n(R,this)})),f)if(A={values:M(x),keys:_?C:M(E),entries:M(S)},O)for(k in A)(b||$||!(k in N))&&m(N,k,A[k]);else s({target:t,proto:!0,forced:b||$},A);return i&&!O||N[w]===C||m(N,w,C,{name:f}),d[t]=C,A}},2621:(e,t,r)=>{"use strict";var s,n,i,o=r(1203),a=r(2769),c=r(262),u=r(5780),l=r(3671),p=r(3508),h=r(8655),m=r(4871),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}},6625:e=>{"use strict";e.exports={}},8130:(e,t,r)=>{"use strict";var s=r(8146);e.exports=function(e){return s(e.length)}},5777: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)}},4879:(e,t,r)=>{"use strict";var s=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:s(e)}},5780:(e,t,r)=>{"use strict";var s,n=r(7235),i=r(7389),o=r(9683),a=r(5241),c=r(3489),u=r(9619),l=r(4275),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)}},7389:(e,t,r)=>{"use strict";var s=r(5024),n=r(1330),i=r(9989),o=r(7235),a=r(3273),c=r(8364);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}},9989:(e,t,r)=>{"use strict";var s=r(5024),n=r(9665),i=r(1330),o=r(7235),a=r(5341),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}},4543:(e,t,r)=>{"use strict";var s=r(5024),n=r(4713),i=r(7161),o=r(480),a=r(3273),c=r(5341),u=r(701),l=r(9665),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])}},5116:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,r)=>{"use strict";var s=r(701),n=r(2769),i=r(2137),o=r(4275),a=r(2871),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}},4317:(e,t,r)=>{"use strict";var s=r(6100);e.exports=s({}.isPrototypeOf)},8600:(e,t,r)=>{"use strict";var s=r(6100),n=r(701),i=r(3273),o=r(1005).indexOf,a=r(5241),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}},8364:(e,t,r)=>{"use strict";var s=r(8600),n=r(9683);e.exports=Object.keys||function(e){return s(e,n)}},7161:(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},3491:(e,t,r)=>{"use strict";var s=r(3574),n=r(7235),i=r(1966);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)},9559:(e,t,r)=>{"use strict";var s=r(4904),n=r(8407);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},9258:(e,t,r)=>{"use strict";var s=r(4713),n=r(2769),i=r(262),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")}},5691:(e,t,r)=>{"use strict";var s=r(1003),n=r(6100),i=r(5116),o=r(7313),a=r(7235),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}},8099:e=>{"use strict";e.exports={}},5516:(e,t,r)=>{"use strict";var s=r(9989).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}})}},5426:(e,t,r)=>{"use strict";var s=r(3057),n=TypeError;e.exports=function(e){if(s(e))throw new n("Can't call method on "+e);return e}},1811:(e,t,r)=>{"use strict";var s=r(4904),n=r(9989).f,i=r(3999),o=r(701),a=r(9559),c=r(8655)("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))}},4275:(e,t,r)=>{"use strict";var s=r(8141),n=r(1268),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},3753:(e,t,r)=>{"use strict";var s=r(1063),n=r(7525),i="__core-js_shared__",o=s[i]||n(i,{});e.exports=o},8141:(e,t,r)=>{"use strict";var s=r(4871),n=r(3753);(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"})},5571:(e,t,r)=>{"use strict";var s=r(6100),n=r(9903),i=r(1139),o=r(5426),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)}},4603:(e,t,r)=>{"use strict";var s=r(4432),n=r(1203),i=r(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},4574:(e,t,r)=>{"use strict";var s=r(9903),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)}},3273:(e,t,r)=>{"use strict";var s=r(1395),n=r(5426);e.exports=function(e){return s(n(e))}},9903:(e,t,r)=>{"use strict";var s=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},8146:(e,t,r)=>{"use strict";var s=r(9903),n=Math.min;e.exports=function(e){var t=s(e);return t>0?n(t,9007199254740991):0}},2137:(e,t,r)=>{"use strict";var s=r(5426),n=Object;e.exports=function(e){return n(s(e))}},493:(e,t,r)=>{"use strict";var s=r(4713),n=r(262),i=r(6281),o=r(4674),a=r(9258),c=r(8655),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)}},5341:(e,t,r)=>{"use strict";var s=r(493),n=r(6281);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},4904:(e,t,r)=>{"use strict";var s={};s[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(s)},1139:(e,t,r)=>{"use strict";var s=r(8407),n=String;e.exports=function(e){if("Symbol"===s(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,r)=>{"use strict";var s=r(6100),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},7460:(e,t,r)=>{"use strict";var s=r(4603);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,r)=>{"use strict";var s=r(5024),n=r(1203);e.exports=s&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,r)=>{"use strict";var s=r(1063),n=r(2769),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8655:(e,t,r)=>{"use strict";var s=r(1063),n=r(8141),i=r(701),o=r(1268),a=r(4603),c=r(7460),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]}},6453:(e,t,r)=>{"use strict";var s=r(1003),n=r(701),i=r(3999),o=r(4317),a=r(3491),c=r(7464),u=r(5516),l=r(3507),p=r(4879),h=r(8148),m=r(4279),f=r(5024),d=r(4871);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"),S=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,S,s.stack,2),this&&o(E,this)&&l(s,this,S),arguments.length>g&&h(s,arguments[g]),s}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):f&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6138:(e,t,r)=>{"use strict";var s=r(9098),n=r(1003),i=r(7013),o=r(1203),a=r(6453),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)})},3085:(e,t,r)=>{"use strict";var s=r(9098),n=r(4317),i=r(3671),o=r(3491),a=r(7464),c=r(5780),u=r(3999),l=r(480),p=r(8148),h=r(4279),m=r(208),f=r(4879),d=r(8655)("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})},5695:(e,t,r)=>{"use strict";r(3085)},9828:(e,t,r)=>{"use strict";var s=r(3273),n=r(8137),i=r(6625),o=r(8417),a=r(9989).f,c=r(164),u=r(877),l=r(4871),p=r(5024),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){}},484:(e,t,r)=>{"use strict";var s=r(9098),n=r(1063),i=r(7013),o=r(6453),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)}}))},3832:(e,t,r)=>{"use strict";var s=r(5571).charAt,n=r(1139),i=r(8417),o=r(164),a=r(877),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))}))},5442:(e,t,r)=>{"use strict";r(5695)},85:(e,t,r)=>{"use strict";r(9828);var s=r(1100),n=r(1063),i=r(1811),o=r(6625);for(var a in s)i(n[a],a),o[a]=o.Array},239:(e,t,r)=>{"use strict";r(5442);var s=r(6656);r(85),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||!/^http(s?):/.test(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:()=>Ah,detectionRegExp:()=>Ph,mediaTypes:()=>Oh,namespace:()=>Mh,parse:()=>kh});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>tr,includesClasses:()=>sr,includesSymbols:()=>rr,isAnnotationElement:()=>Zt,isArrayElement:()=>Wt,isBooleanElement:()=>Ut,isCommentElement:()=>Xt,isElement:()=>Lt,isLinkElement:()=>Kt,isMemberElement:()=>Jt,isNullElement:()=>zt,isNumberElement:()=>Vt,isObjectElement:()=>Gt,isParseResultElement:()=>Yt,isPrimitiveElement:()=>er,isRefElement:()=>Ht,isSourceMapElement:()=>Qt,isStringElement:()=>Dt});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>jo,isJSONSchemaElement:()=>So,isLinkDescriptionElement:()=>Po,isMediaElement:()=>Oo});var n={};function i(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function o(e){return function t(r){return 0===arguments.length||i(r)?t:e.apply(this,arguments)}}function a(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return i(r)?t:o((function(t){return e(r,t)}));default:return i(r)&&i(s)?t:i(r)?o((function(t){return e(t,s)})):i(s)?o((function(t){return e(r,t)})):e(r,s)}}}function c(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return i(r)?t:a((function(t,s){return e(r,t,s)}));case 2:return i(r)&&i(s)?t:i(r)?a((function(t,r){return e(t,s,r)})):i(s)?a((function(t,s){return e(r,t,s)})):o((function(t){return e(r,s,t)}));default:return i(r)&&i(s)&&i(n)?t:i(r)&&i(s)?a((function(t,r){return e(t,r,n)})):i(r)&&i(n)?a((function(t,r){return e(t,s,r)})):i(s)&&i(n)?a((function(t,s){return e(r,t,s)})):i(r)?o((function(t){return e(t,s,n)})):i(s)?o((function(t){return e(r,t,n)})):i(n)?o((function(t){return e(r,s,t)})):e(r,s,n)}}}r.r(n),r.d(n,{isBooleanJsonSchemaElement:()=>Pc,isCallbackElement:()=>ac,isComponentsElement:()=>cc,isContactElement:()=>uc,isExampleElement:()=>lc,isExternalDocumentationElement:()=>pc,isHeaderElement:()=>hc,isInfoElement:()=>mc,isLicenseElement:()=>fc,isLinkElement:()=>dc,isMediaTypeElement:()=>$c,isOpenApi3_0Element:()=>yc,isOpenapiElement:()=>_c,isOperationElement:()=>gc,isParameterElement:()=>vc,isPathItemElement:()=>bc,isPathsElement:()=>wc,isReferenceElement:()=>Ec,isRequestBodyElement:()=>xc,isResponseElement:()=>Sc,isResponsesElement:()=>jc,isSchemaElement:()=>Oc,isSecurityRequirementElement:()=>Ac,isSecuritySchemeElement:()=>kc,isServerElement:()=>Mc,isServerVariableElement:()=>Ic,isServersElement:()=>Nc});const u=a((function(e,t){return null==t||t!=t?e:t})),l=Number.isInteger||function(e){return e<<0===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}const h=a((function(e,t){var r=e<0?t.length+e:e;return p(t)?t.charAt(r):t[r]}));const m=a((function(e,t){if(null!=t)return l(e)?h(e,t):t[e]}));const f=c((function(e,t,r){return u(e,m(t,r))}));var d=a((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 _=d;function y(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}const g=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const v=o((function(e){return!!g(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function w(e,t,r){return function(s,n,i){if(v(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[b])return r(s,n,i[b]());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 E(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function x(e,t,r,s){return r[s](e,t)}const S=w(y,x,E);function j(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!g(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 P=function(){return this.xf["@@transducer/init"]()},A=function(e){return this.xf["@@transducer/result"](e)};var k=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const M=function(e){return function(t){return new k(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 $(e,t,r){return function(){for(var s=[],n=0,o=e,a=0,c=!1;a<t.length||n<arguments.length;){var u;a<t.length&&(!i(t[a])||n>=arguments.length)?u=t[a]:(u=arguments[n],n+=1),s[a]=u,i(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,s):I(Math.max(0,o),$(e,s,r))}}const N=a((function(e,t){return 1===e?o(t):I(e,$(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const T=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return R("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],B=function(){return arguments.propertyIsEnumerable("length")}(),L=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||B?o((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=B&&T(e);for(t in e)!R(t,e)||n&&"length"===t||(s[s.length]=t);if(F)for(r=q.length-1;r>=0;)R(t=q[r],e)&&!L(s,t)&&(s[s.length]=t),r-=1;return s})):o((function(e){return Object(e)!==e?[]:Object.keys(e)}));const V=D;const z=a(j(["fantasy-land/map","map"],M,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return N(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(r,s){return r[s]=e(t[s]),r}),{},V(t));default:return O(e,t)}})));const U=a((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(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,z(r,t))}),[],e)}));const G=a((function(e,t){var r=N(e,t);return N(e,(function(){return y(U,z(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=o((function(e){return G(e.length,e)}));const J=W(o((function(e){return!e})));function K(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function H(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=o((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 Q(e,t,r.slice(),s.slice())}return!H((function(e,t){return!H(i,t,e)}),K(t),n)}function Q(e,t,r,s){if(Z(e,t))return!0;var n,i,o=X(e);if(o!==X(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var 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(!R(p,t)||!Q(t[p],e[p],u,l))return!1;a-=1}return!0}const ee=a((function(e,t){return Q(e,t,[],[])}));const te=o((function(e){return function(){return e}}));const re=te(void 0);const se=ee(re());const ne=J(se);var ie=r(8326);function oe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ae(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 ce=a((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function ue(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 le(e,t,r,s){return e["@@transducer/result"](r[s](ce(e["@@transducer/step"],e),t))}const pe=w(ae,le,ue);var he=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const me=c((function(e,t,r){return pe("function"==typeof e?new he(e):e,t,r)}));function fe(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return g(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const de=c(fe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const _e=o(fe("tail",de(1,1/0)));function ye(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,me(oe,arguments[0],_e(arguments)))}var ge=function(e,t){switch(arguments.length){case 0:return ge;case 1:return function t(r){return 0===arguments.length?t:Z(e,r)};default:return Z(e,t)}};const ve=ge;function be(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(ee(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function we(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Ee=function(e){return(e<10?"0":"")+e};const xe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Ee(e.getUTCMonth()+1)+"-"+Ee(e.getUTCDate())+"T"+Ee(e.getUTCHours())+":"+Ee(e.getUTCMinutes())+":"+Ee(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e){return"[object Object]"===Object.prototype.toString.call(e)}var je=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,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 je(e,t)}}const Pe=a(j(["fantasy-land/filter","filter"],Oe,(function(e,t){return Se(t)?y((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 Ae=a((function(e,t){return Pe((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function ke(e,t){var r=function(r){var s=t.concat([e]);return be(r,s)?"<Circular>":ke(r,s)},s=function(e,t){return O((function(t){return we(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,Ae((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):we(xe(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())+")":we(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 Me=o((function(e){return ke(e,[])}));const Ie=a((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=l(r)?h(r,s):s[r],n+=1}return s}))}));const $e=a((function(e,t){return Ie([e],t)[0]}));const Ne=c((function(e,t,r){return e($e(t,r))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=a((function(e,t){return e&&t}));const Te=a((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ce)(e,t)}));const Fe=ee(null);const qe=J(Fe);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}const Le=function(e){return"object"===Be(e)};const De=N(1,Te(qe,Le));const Ve=a((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=Me(e),o=r(i,Me(t));return void 0!==o&&o===i?e:t}));const ze=a((function(e,t){return z(m(e),t)}));const Ue=o((function(e){return N(me(Ve,0,ze("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=N(1,ye(X,ve("GeneratorFunction")));const We=N(1,ye(X,ve("AsyncFunction")));const Je=Ue([ye(X,ve("Function")),Ge,We]);var Ke=ye(X,ve("Object")),He=ye(Me,ee(Me(Object))),Ze=Ne(Te(Je,He),["constructor"]);const Xe=N(1,(function(e){if(!De(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Fe(t)||Ze(t)}));class Ye extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Qe=Ye;class et extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const tt=et;class rt extends ie.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(se(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const st=rt;class nt extends ie.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ie.wE([e.start.row,e.start.column,e.start.char]),r=new ie.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const it=nt;class ot extends ie.g${constructor(){super(),this.register("annotation",Qe),this.register("comment",tt),this.register("parseResult",st),this.register("sourceMap",it)}}const at=new ot,ct=e=>{const t=new ot;return Xe(e)&&t.use(e),t},ut=at;const lt=N(1,ye(X,ve("String"))),pt=r.p+"23aac571c96605dc25219087ad291441.wasm",ht=globalThis.fetch;Je(ht)&&(globalThis.fetch=(...e)=>lt(e[0])&&e[0].endsWith("tree-sitter.wasm")?ht.apply(globalThis,[pt,_e(e)]):ht.apply(globalThis,e));var mt=r(3833),ft=r(1212);const dt=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 _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(dt,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 yt=_t,gt=r.p+"64a30dfa8a51b6a090ebd363beeaad5d.wasm";let vt=null,bt=null;const wt=async e=>{if(null===vt&&null===bt)bt=mt.init().then((()=>mt.Language.load(gt))).then((e=>{const t=new mt;return t.setLanguage(e),t})).finally((()=>{bt=null})),vt=await bt;else if(null===vt&&null!==bt)vt=await bt;else if(null===vt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};const Et=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},xt=(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={},jt=e=>null==e?void 0:e.type,Ot=e=>"string"==typeof jt(e),Pt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),At=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xt,nodeTypeGetter:c=jt,nodePredicate:u=Ot,nodeCloneFn:l=Pt,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 S;if(!Array.isArray(v)){if(!u(v))throw new Et(`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;S=i.call(t,v,r,f,b,w)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&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 kt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}At[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=xt,nodeTypeGetter:c=jt,nodePredicate:u=Ot,nodeCloneFn:l=Pt,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 S;if(!Array.isArray(v)){if(!u(v))throw new Et(`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;S=await i.call(t,v,r,f,b,w)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!e)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&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 Mt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=P,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=kt(this.xf["@@transducer/step"](e,!1))),e},e}();function It(e){return function(t){return new Mt(e,t)}}const $t=a(j(["all"],It,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));const Nt=o((function(e){return N(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}))(a(be)),Rt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ct=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Tt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ft=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ie.wE)&&t.classes.includes(e),qt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Bt=e=>e({hasMethod:Rt,hasBasicElementProps:Ct,primitiveEq:Tt,isElementType:qt,hasClass:Ft}),Lt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Hg||e(r)&&t(void 0,r))),Dt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Om||e(r)&&t("string",r))),Vt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.kT||e(r)&&t("number",r))),zt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.Os||e(r)&&t("null",r))),Ut=Bt((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof ie.bd||e(r)&&t("boolean",r))),Gt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ie.Sh||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Wt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof ie.wE&&!(s instanceof ie.Sh)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Jt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.Pr||e(s)&&t("member",s)&&r(void 0,s))),Kt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.Ft||e(s)&&t("link",s)&&r(void 0,s))),Ht=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ie.sI||e(s)&&t("ref",s)&&r(void 0,s))),Zt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qe||e(s)&&t("annotation",s)&&r("array",s))),Xt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof tt||e(s)&&t("comment",s)&&r("string",s))),Yt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof st||e(s)&&t("parseResult",s)&&r("array",s))),Qt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof it||e(s)&&t("sourceMap",s)&&r("array",s))),er=e=>qt("object",e)||qt("array",e)||qt("boolean",e)||qt("number",e)||qt("string",e)||qt("null",e)||qt("member",e),tr=e=>Qt(e.meta.get("sourceMap")),rr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Wt(r)&&$t(Nt(r.toValue()),e)},sr=(e,t)=>0===e.length||$t(Nt(t.classes.toValue()),e);const nr=class extends Et{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ir=class extends nr{};const or=class extends nr{},ar=(e,t={})=>{const{visited:r=new WeakMap}=t,s={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof ie.KeyValuePair){const{key:t,value:n}=e,i=Lt(t)?ar(t,s):t,o=Lt(n)?ar(n,s):n,a=new ie.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof ie.ot){const t=e=>ar(e,s),n=[...e].map(t),i=new ie.ot(n);return r.set(e,i),i}if(e instanceof ie.G6){const t=e=>ar(e,s),n=[...e].map(t),i=new ie.G6(n);return r.set(e,i),i}if(Lt(e)){const t=lr(e);if(r.set(e,t),e.content)if(Lt(e.content))t.content=ar(e.content,s);else if(e.content instanceof ie.KeyValuePair)t.content=ar(e.content,s);else if(Array.isArray(e.content)){const r=e=>ar(e,s);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new ir("Value provided to cloneDeep function couldn't be cloned",{value:e})};ar.safe=e=>{try{return ar(e)}catch{return e}};const cr=e=>{const{key:t,value:r}=e;return new ie.KeyValuePair(t,r)},ur=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ar(e.meta)),e.attributes.length>0&&(t._attributes=ar(e.attributes)),Lt(e.content)){const r=e.content;t.content=ur(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ie.KeyValuePair?t.content=cr(e.content):t.content=e.content;return t},lr=e=>{if(e instanceof ie.KeyValuePair)return cr(e);if(e instanceof ie.ot)return(e=>{const t=[...e];return new ie.ot(t)})(e);if(e instanceof ie.G6)return(e=>{const t=[...e];return new ie.G6(t)})(e);if(Lt(e))return ur(e);throw new or("Value provided to cloneShallow function couldn't be cloned",{value:e})};lr.safe=e=>{try{return lr(e)}catch{return e}};const pr=e=>Gt(e)?"ObjectElement":Wt(e)?"ArrayElement":Jt(e)?"MemberElement":Dt(e)?"StringElement":Ut(e)?"BooleanElement":Vt(e)?"NumberElement":zt(e)?"NullElement":Kt(e)?"LinkElement":Ht(e)?"RefElement":void 0,hr=e=>Lt(e)?lr(e):Pt(e),mr=ye(pr,lt),fr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const dr=(e,t,{keyMap:r=fr,...s}={})=>At(e,t,{keyMap:r,nodeTypeGetter:pr,nodePredicate:mr,nodeCloneFn:hr,...s});dr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=fr,...s}={})=>At[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:pr,nodePredicate:mr,nodeCloneFn:hr,...s});const _r=c((function(e,t,r){var s,n={};for(s in r=r||{},t=t||{})R(s,t)&&(n[s]=R(s,r)?e(s,t[s],r[s]):t[s]);for(s in r)R(s,r)&&!R(s,n)&&(n[s]=r[s]);return n}));const yr=c((function e(t,r,s){return _r((function(r,s,n){return Se(s)&&Se(n)?e(t,s,n):t(r,s,n)}),r,s)}));const gr=a((function(e,t){return yr((function(e,t,r){return r}),e,t)}));const vr=de(0,-1);const br=a((function(e,t){return e.apply(this,t)}));const wr=J(Je);var Er=o((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():g(e)?[]:p(e)?"":Se(e)?{}:T(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 xr=Er;const Sr=o((function(e){return null!=e&&ee(e,xr(e))}));const jr=N(1,Je(Array.isArray)?Array.isArray:ye(X,ve("Array")));const Or=Te(jr,Sr);const Pr=N(3,(function(e,t,r){var s=$e(e,r),n=$e(vr(e),r);if(!wr(s)&&!Or(e)){var i=ce(s,n);return br(i,t)}})),Ar=()=>({predicates:{...e},namespace:ut}),kr={toolboxCreator:Ar,visitorOptions:{nodeTypeGetter:pr,exposeEdits:!0}},Mr=(e,t,r={})=>{if(0===t.length)return e;const s=gr(kr,r),{toolboxCreator:n,visitorOptions:i}=s,o=n(),a=t.map((e=>e(o))),c=((e,{visitFnGetter:t=xt,nodeTypeGetter:r=jt,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(f({},"visitor")),{...i});a.forEach(Pr(["pre"],[]));const u=dr(e,c,i);return a.forEach(Pr(["post"],[])),u},Ir=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return Lt(e)&&(e.meta.length>0&&(s.meta=ar(e.meta)),e.attributes.length>0&&(s.attributes=ar(e.attributes))),Mr(s,r,{toolboxCreator:Ar,visitorOptions:{nodeTypeGetter:pr}})},$r=e=>(t,r={})=>Ir(t,{...r,Type:e});ie.Sh.refract=$r(ie.Sh),ie.wE.refract=$r(ie.wE),ie.Om.refract=$r(ie.Om),ie.bd.refract=$r(ie.bd),ie.Os.refract=$r(ie.Os),ie.kT.refract=$r(ie.kT),ie.Ft.refract=$r(ie.Ft),ie.sI.refract=$r(ie.sI),Qe.refract=$r(Qe),tt.refract=$r(tt),st.refract=$r(st),it.refract=$r(it);const Nr=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 Rr{static toPosition(e){const t=new ie.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new ie.wE([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(er);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 Nr&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new Qe(`(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 ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ie.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new ie.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,s){const n=!e.hasError,i=e.text,o=new Qe(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===s.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 it,s=Rr.toPosition(e);if(null!==s){const[e,t]=s;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)}}const Cr=Rr;class Tr{cursor;constructor(e){this.cursor=e}document(){return new Nr(this.cursor)}object(){return new Nr(this.cursor).setFieldName(this.cursor)}array(){return new Nr(this.cursor).setFieldName(this.cursor)}pair(){return new Nr(this.cursor)}string(){return new Nr(this.cursor).setFieldName(this.cursor)}number(){return new Nr(this.cursor).setFieldName(this.cursor)}null(){return new Nr(this.cursor).setFieldName(this.cursor)}true(){return new Nr(this.cursor).setFieldName(this.cursor)}false(){return new Nr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Nr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Nr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Tr(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Tr(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Fr=Tr,qr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...fr},Br=e=>Yt(e)?"ParseResultElement":Lt(e)?pr(e):jt(e),Lr=e=>Lt(e)||Ot(e),Dr=(e,{sourceMap:t=!1}={})=>{const r=new Cr,s=e.walk(),n=new Fr(s),[i]=Array.from(n);return At(i,r,{keyMap:qr,nodeTypeGetter:Br,nodePredicate:Lr,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 zr{static type="position";type=zr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Ur=zr;const Gr=h(0);const Wr=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 Jr=class extends Wr{};const Kr=class extends Jr{static type="document";get child(){return Gr(this.children)}};const Hr=class extends Wr{static type="parseResult";get rootNode(){return Gr(this.children)}};const Zr=class extends Wr{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),Qr=e=>Xr("false",e),es=e=>Xr("true",e),ts=e=>Xr("null",e),rs=e=>Xr("number",e),ss=e=>Xr("array",e),ns=e=>Xr("object",e),is=e=>Xr("property",e),os=e=>Xr("key",e);const as=class extends Jr{static type="object";get properties(){return this.children.filter(is)}};const cs=class extends Jr{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 us=class extends cs{static type="key"};const ls=class extends Jr{static type="property";get key(){return this.children.find(os)}get value(){return this.children.find((e=>Qr(e)||es(e)||ts(e)||rs(e)||Yr(e)||ss(e)||ns(e)))}};const ps=class extends Jr{static type="array";get items(){return this.children.filter((e=>Qr(e)||es(e)||ts(e)||rs(e)||Yr(e)||ss(e)||ns))}};const hs=class extends Jr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const ms=class extends hs{static type="stringContent"};const fs=class extends hs{static type="number"};const ds=class extends hs{static type="null"};const _s=class extends hs{static type="true"};const ys=class extends hs{static type="false"};const gs=class extends Wr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}},vs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class bs{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 Ur({start:t,end:r})}document={enter:e=>{const t=bs.toPosition(e);return new Kr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Hr({children:[e]})};enter(e){if(e instanceof Nr&&!e.isNamed){const t=bs.toPosition(e),r=e.type||e.text,{isMissing:s}=e;return new Zr({value:r,position:t,isMissing:s})}}object(e){const t=bs.toPosition(e);return new as({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=bs.toPosition(e),r=e.children.slice(1),{keyNode:s}=e,n=new us({children:(null==s?void 0:s.children)||[],position:null!=s?bs.toPosition(s):void 0,isMissing:null!=s&&s.isMissing});return new ls({children:[n,...r],position:t,isMissing:e.isMissing})}array(e){const t=bs.toPosition(e);return new ps({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=bs.toPosition(e),r=new ms({value:JSON.parse(e.text)});return new cs({children:[r],position:t,isMissing:e.isMissing})}number(e){const t=bs.toPosition(e),r=e.text;return new fs({value:r,position:t,isMissing:e.isMissing})}null(e){const t=bs.toPosition(e),r=e.text;return new ds({value:r,position:t,isMissing:e.isMissing})}true(e){const t=bs.toPosition(e),r=e.text;return new _s({value:r,position:t,isMissing:e.isMissing})}false(e){const t=bs.toPosition(e),r=e.text;return new ys({value:r,position:t,isMissing:e.isMissing})}ERROR(e,t,r,s){const n=bs.toPosition(e),i=new gs({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?new Hr({children:[i]}):i}}const ws=bs,Es={[Hr.type]:["children"],[Kr.type]:["children"],[as.type]:["children"],[ls.type]:["children"],[ps.type]:["children"],[gs.type]:["children"],...fr},xs=e=>Yt(e)?"ParseResultElement":Lt(e)?pr(e):jt(e),Ss=e=>Lt(e)||Ot(e);const js=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(er);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 ie.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ie.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ie.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ie.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ie.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ie.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ie.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ie.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Qe(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 Qe(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===s.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 it;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}},Os=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=new Fr(r),[n]=Array.from(s),i=new ws,o=new js,a=At(n,i,{keyMap:vs,state:{sourceMap:t}});return At(a.rootNode,o,{keyMap:Es,nodeTypeGetter:xs,nodePredicate:Ss,state:{sourceMap:t}})},Ps=(ct(),/(?<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 As extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="callback"}}const ks=As;class Ms extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Is=Ms;class $s extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Ns=$s;class Rs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Cs=Rs;class Ts extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Fs=Ts;class qs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Bs=qs;class Ls extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ds=Ls;class Vs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Vs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const zs=Vs;class Us extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Gs=Us;class Ws extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Js=Ws;class Ks extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return 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 Hs=Ks;class Zs extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Xs=Zs;class Ys extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Qs=Ys;class en extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const tn=en;class rn extends ie.Om{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const sn=rn;class nn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const on=nn;class an extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const cn=an;class un extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ie.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(un.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ln=un;class pn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const hn=pn;class mn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="paths"}}const fn=mn;class dn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const _n=dn;class yn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ie.bd(!1)}set required(e){this.set("required",e)}}const gn=yn;class vn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const bn=vn;class wn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const En=wn;const xn=class extends yt{};class Sn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const jn=Sn;class On extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Pn=On;class An extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const kn=An;class Mn extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const In=Mn;const $n=a((function(e,t){return y((function(r,s){return r[s]=e(t[s],s,t),r}),{},V(t))}));const Nn=o((function(e){return null==e}));const Rn=a((function(e,t){if(0===e.length||Nn(t))return!1;for(var r=t,s=0;s<e.length;){if(Nn(r)||!R(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));var Cn=a((function(e,t){return Rn([e],t)}));const Tn=Cn;const Fn=c((function(e,t,r){return e(m(t,r))}));const qn=o((function(e){return N(e.length,e)}));const Bn=a((function(e,t){return N(e+1,(function(){var r=arguments[e];if(null!=r&&Re(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Me(r)+' does not have a method named "'+t+'"')}))}));const Ln=Bn(1,"split");var Dn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,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 zn=a(j(["dropWhile"],Vn,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return de(r,1/0,t)})));const Un=Bn(1,"join");const Gn=qn((function(e,t){return ye(Ln(""),zn(Nt(e)),Un(""))(t)})),Wn=(e,t)=>{const r=u(e,t);return $n((e=>{if(Xe(e)&&Tn("$ref",e)&&Fn(lt,"$ref",e)){const t=$e(["$ref"],e),s=Gn("#/",t);return $e(s.split("/"),r)}return Xe(e)?Wn(e,r):e}),e)};var Jn=r(8357);const Kn=function(){return!0},Hn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:pr(e),Zn={EphemeralObject:["content"],EphemeralArray:["content"],...fr},Xn=(e,t,{keyMap:r=Zn,...s}={})=>dr(e,t,{keyMap:r,nodeTypeGetter:Hn,nodePredicate:Kn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});Xn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Zn,...r}={})=>dr[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Hn,nodePredicate:Kn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Yn=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 Qn=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 ei{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Qn(e.content);return this.references.set(e,t),t}};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 Yn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const s=t[3];return"EphemeralObject"===(null===(r=s[s.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Dt(e.href)?e.href.toValue():""}}const ti=e=>Lt(e)?Dt(e)||Vt(e)||Ut(e)||zt(e)?e.toValue():Xn(e,new ei):e,ri=e=>{const t=e.meta.length>0?ar(e.meta):void 0,r=e.attributes.length>0?ar(e.attributes):void 0;return new e.constructor(void 0,t,r)},si=(e,t)=>t.clone&&t.isMergeableElement(e)?ai(ri(e),e,t):e,ni=e=>"function"!=typeof e.customMetaMerge?e=>ar(e):e.customMetaMerge,ii=e=>"function"!=typeof e.customAttributesMerge?e=>ar(e):e.customAttributesMerge,oi={clone:!0,isMergeableElement:e=>Gt(e)||Wt(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>si(e,r))),objectElementMerge:(e,t,r)=>{const s=Gt(e)?ri(e):ri(t);return Gt(e)&&e.forEach(((e,t,n)=>{const i=lr(n);i.value=si(e,r),s.content.push(i)})),t.forEach(((t,n,i)=>{const o=ti(n);let a;if(Gt(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const s=e.get(o);a=lr(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ai;const r=t.customMerge(e,t);return"function"==typeof r?r:ai})(n,r)(s,t)}else a=lr(i),a.value=si(t,r);s.remove(o),s.content.push(a)})),s},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function ai(e,t,r){var s,n,i;const o={...oi,...r};o.isMergeableElement=null!==(s=o.isMergeableElement)&&void 0!==s?s:oi.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:oi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:oi.objectElementMerge;const a=Wt(t);if(!(a===Wt(e)))return si(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=ni(o)(e.meta,t.meta),c.attributes=ii(o)(e.attributes,t.attributes),c}ai.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ie.Sh:e.reduce(((e,r)=>ai(e,r,t)),ri(e[0]))};const ci=Jn({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),tr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}}}),ui=Jn(ci,{methods:{enter(e){return this.element=ar(e),St}}});const li=te(re());const pi=a((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})),hi=Jn(ci,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return pi(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["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 se(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?ar(t):(dr(t,s,r),s.element)}}}),mi=Jn(hi,{props:{specPath:li,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(ti(s))&&!this.ignoredFields.includes(ti(s))){const r=this.toRefractedElement([...t,"fixedFields",ti(s)],e),i=new ie.Pr(ar(s),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ti(s))||this.element.content.push(ar(n))})),this.copyMetaAndAttributes(e,this.element),St}}}),fi=Jn(mi,ui,{props:{specPath:te(["document","objects","JSONSchema"])},init(){this.element=new jn}}),di=ui,_i=ui,yi=ui,gi=ui,vi=ui,bi=ui,wi=ui,Ei=ui,xi=ui,Si=ui,ji=Jn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Oi=e=>Gt(e)&&e.hasKey("$ref"),Pi=Jn(hi,ji,ui,{methods:{ObjectElement(e){const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St},ArrayElement(e){return this.element=new ie.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Ai=ui,ki=ui,Mi=ui,Ii=ui,$i=ui,Ni=Jn(ui,{methods:{ArrayElement(e){return this.element=ar(e),this.element.classes.push("json-schema-required"),St}}});const Ri=o((function(e){return N(me(Ve,0,ze("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=a((function(e,t){return e||t}));const Ti=J(N(1,Te(qe,a((function(e,t){return Re(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(Ci)(e,t)}))(Le,Je))));const Fi=J(Sr);const qi=Ri([lt,Ti,Fi]);const Bi=function(){return!1},Li=Jn(hi,{props:{fieldPatternPredicate:Bi,specPath:li,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(ti(t))&&this.fieldPatternPredicate(ti(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ie.Pr(ar(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ti(t))||this.element.content.push(ar(r))})),this.copyMetaAndAttributes(e,this.element),St}}}),Di=Jn(Li,{props:{fieldPatternPredicate:qi}}),Vi=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-properties")}}),zi=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-patternProperties")}}),Ui=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-dependencies")}}),Gi=Jn(ui,{methods:{ArrayElement(e){return this.element=ar(e),this.element.classes.push("json-schema-enum"),St}}}),Wi=Jn(ui,{methods:{StringElement(e){return this.element=ar(e),this.element.classes.push("json-schema-type"),St},ArrayElement(e){return this.element=ar(e),this.element.classes.push("json-schema-type"),St}}}),Ji=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Ki=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Hi=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}}),Zi=Jn(Di,ji,ui,{props:{specPath:e=>Oi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new ie.Sh,this.element.classes.push("json-schema-definitions")}}),Xi=ui,Yi=ui,Qi=ui,eo=ui,to=ui,ro=Jn(hi,ji,ui,{init(){this.element=new ie.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}}}),so=ui,no=Jn(mi,ui,{props:{specPath:te(["document","objects","JSONReference"])},init(){this.element=new Pn},methods:{ObjectElement(e){const t=mi.compose.methods.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),io=Jn(ui,{methods:{StringElement(e){return this.element=ar(e),this.element.classes.push("reference-value"),St}}});const oo=c((function(e,t,r){return N(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const ao=o((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));var co=a((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const uo=co;const lo=o(kt);const po=J(Nn);const ho=Te(jr,Fi);function mo(e){return function(e){if(Array.isArray(e))return fo(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 fo(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 fo(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 fo(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 _o=ye(uo(ao((function(e,t){return e.length>t.length}))),Gr,m("length")),yo=qn((function(e,t,r){var s=r.apply(void 0,mo(e));return po(s)?lo(s):t}));const go=oo(ho,(function(e){var t=_o(e);return N(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return me(yo(r),void 0,e)}))}),re),vo=Jn(hi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>oo(e,te(t),re))),r=go(t)(e);return this.element=this.toRefractedElement(r,e),St}}}),bo=Jn(vo,{props:{alternator:[{predicate:Oi,specPath:["document","objects","JSONReference"]},{predicate:Kn,specPath:["document","objects","JSONSchema"]}]}}),wo={visitors:{value:ui,JSONSchemaOrJSONReferenceVisitor:bo,document:{objects:{JSONSchema:{$visitor:fi,fixedFields:{id:di,$schema:_i,multipleOf:yi,maximum:gi,exclusiveMaximum:vi,minimum:bi,exclusiveMinimum:wi,maxLength:Ei,minLength:xi,pattern:Si,additionalItems:bo,items:Pi,maxItems:Ai,minItems:ki,uniqueItems:Mi,maxProperties:Ii,minProperties:$i,required:Ni,properties:Vi,additionalProperties:bo,patternProperties:zi,dependencies:Ui,enum:Gi,type:Wi,allOf:Ji,anyOf:Ki,oneOf:Hi,not:bo,definitions:Zi,title:Xi,description:Yi,default:Qi,format:eo,base:to,links:ro,media:{$ref:"#/visitors/document/objects/Media"},readOnly:so}},JSONReference:{$visitor:no,fixedFields:{$ref:io}},Media:{$visitor:Jn(mi,ui,{props:{specPath:te(["document","objects","Media"])},init(){this.element=new kn}}),fixedFields:{binaryEncoding:ui,type:ui}},LinkDescription:{$visitor:Jn(mi,ui,{props:{specPath:te(["document","objects","LinkDescription"])},init(){this.element=new In}}),fixedFields:{href:ui,rel:ui,title:ui,targetSchema:bo,mediaType:ui,method:ui,encType:ui,schema:bo}}}}}},Eo=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xo={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...fr},So=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof jn||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),jo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Pn||e(s)&&t("JSONReference",s)&&r("object",s))),Oo=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof kn||e(s)&&t("media",s)&&r("object",s))),Po=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof In||e(s)&&t("linkDescription",s)&&r("object",s))),Ao={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",jn),t.register("jSONReference",Pn),t.register("media",kn),t.register("linkDescription",In),t}},ko=()=>{const e=ct(Ao);return{predicates:{...t,isStringElement:Dt},namespace:e}},Mo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=wo}={})=>{const n=(0,ie.e)(e),i=Wn(s),o=Pr(t,[],i);return dr(n,o,{state:{specObj:i}}),Mr(o.element,r,{toolboxCreator:ko,visitorOptions:{keyMap:xo,nodeTypeGetter:Eo}})},Io=e=>(t,r={})=>Mo(t,{specPath:e,...r});jn.refract=Io(["visitors","document","objects","JSONSchema","$visitor"]),Pn.refract=Io(["visitors","document","objects","JSONReference","$visitor"]),kn.refract=Io(["visitors","document","objects","Media","$visitor"]),In.refract=Io(["visitors","document","objects","LinkDescription","$visitor"]);const $o=class extends jn{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new xn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new xn("idProp setter in Schema class is not not supported.")}get $schema(){throw new xn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new xn("$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 xn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new xn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new xn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new xn("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 xn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new xn("definitions setter in Schema class is not not supported.")}get base(){throw new xn("base getter in Schema class is not not supported.")}set base(e){throw new xn("base setter in Schema class is not not supported.")}get links(){throw new xn("links getter in Schema class is not not supported.")}set links(e){throw new xn("links setter in Schema class is not not supported.")}get media(){throw new xn("media getter in Schema class is not not supported.")}set media(e){throw new xn("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 No extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Ro=No;class Co extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const To=Co;class Fo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const qo=Fo;class Bo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Lo=Bo;class Do extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Vo=Do;class zo extends ie.Sh{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Uo=zo,Go=(e,t,r=[])=>{const s=Object.getOwnPropertyDescriptors(t);for(let e of r)delete s[e];Object.defineProperties(e,s)},Wo=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:Wo(r,[...t,r])},Jo=(e,t,r=[])=>{var s;const n=null!==(s=((...e)=>{if(0===e.length)return;let t;const r=e.map((e=>Wo(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=Wo(n);for(let t of e){let e=Wo(t);for(let t=e.length-1;t>=0;t--){let s=e[t];-1===o.indexOf(s)&&(Go(i,s,["constructor",...r]),o.push(s))}}return i.constructor=t,i},Ko=e=>e.filter(((t,r)=>e.indexOf(t)==r)),Ho=(e,t)=>{const r=t.map((e=>Wo(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(Ho(r,e)||{},r),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(r,s)=>void 0!==Ho(s,e)||void 0!==t[s],get:(r,s)=>(Ho(s,e)||t)[s],set(t,r,s){const n=Ho(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)))))}),Xo=null,Yo="copy",Qo="copy",ea="deep",ta=new WeakMap,ra=e=>ta.get(e),sa=(e,t)=>{var r,s;const n=Ko([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=Ko([...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},na=(e,t)=>{var r,s,n,i;return{property:sa(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:sa(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},ia=(e,t)=>{var r,s,n,i,o,a;return{class:Ko([...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:na(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:na(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},oa=new Map,aa=(...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=[...Wo(e.prototype).map((e=>e.constructor)),...null!==(t=ra(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=>oa.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>ia(e,t)))},ca=e=>{let t=oa.get(e);return t||(t={},oa.set(e,t)),t};function ua(...e){var t,r,s;const n=e.map((e=>e.prototype)),i=Xo;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)Go(this,new r(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Qo?Jo(n,o):(a=n,c=o,Zo([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Yo?Jo(e,null,["prototype"]):Zo(e,Function.prototype));let u=o;if("none"!==ea){const n="deep"===ea?aa(...e):((...e)=>{const t=e.map((e=>ca(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>ia(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)}la(null!==(r=null==n?void 0:n.static)&&void 0!==r?r:{},u),la(null!==(s=null==n?void 0:n.instance)&&void 0!==s?s:{},u.prototype)}var l,p;return l=u,p=e,ta.set(l,p),u}const la=(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 pa=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ai(t.meta,e.meta),tr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ai(t.attributes,e.attributes))}};const ha=class extends pa{enter(e){return this.element=ar(e),St}};const ma=class extends pa{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 pi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=$e(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ne(Je,["visitors",...e],this.specObj)?$e(["visitors",...e],this.specObj):$e(["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 ha&&(null==s?void 0:s.constructor)===ha?ar(t):(dr(t,s,r),s.element)}};var fa=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=P,e.prototype["@@transducer/result"]=A,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?kt(r):r},e}();function da(e){return function(t){return new fa(e,t)}}const _a=a(j(["take"],da,(function(e,t){return de(0,e<0?1/0:e,t)})));const ya=a((function(e,t){return ee(_a(e.length,t),e)})),ga=e=>Gt(e)&&e.hasKey("$ref"),va=Gt,ba=Gt,wa=e=>Dt(e.key)&&ya("x-",ti(e.key));const Ea=class extends ma{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=wa;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(ti(s))&&!this.ignoredFields.includes(ti(s))){const r=this.toRefractedElement([...t,"fixedFields",ti(s)],e),i=new ie.Pr(ar(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(ti(s))||this.element.content.push(ar(n))})),this.copyMetaAndAttributes(e,this.element),St}};class xa extends(ua(Ea,ha)){constructor(e){super(e),this.element=new on,this.specPath=te(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Ea.prototype.ObjectElement.call(this,e)}}const Sa=xa;class ja extends(ua(ma,ha)){StringElement(e){const t=new sn(ti(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const Oa=ja;const Pa=class extends ma{MemberElement(e){return this.element=ar(e),this.element.classes.push("specification-extension"),St}};class Aa extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Gs,this.specPath=te(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const ka=Aa;const Ma=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ia extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Ns,this.specPath=te(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const $a=Ia;class Na extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Js,this.specPath=te(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Ra=Na;class Ca extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Hs,this.specPath=te(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return(Dt(this.element.operationId)||Dt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Ta=Ca;const Fa=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const qa=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ba=class extends ma{specPath;ignoredFields;fieldPatternPredicate=Bi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=wa;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(ti(t))&&this.fieldPatternPredicate(ti(t))){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new ie.Pr(ar(t),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ti(t))||this.element.content.push(ar(r))})),this.copyMetaAndAttributes(e,this.element),St}};const La=class extends Ba{constructor(e){super(e),this.fieldPatternPredicate=qi}};class Da extends ie.Sh{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass)}}const Va=Da;class za extends(ua(La,ha)){constructor(e){super(e),this.element=new Va,this.specPath=te(["value"])}}const Ua=za;class Ga extends(ua(Ea,ha)){constructor(e){super(e),this.element=new qo,this.specPath=te(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Wa=Ga;const Ja=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Ka extends ie.wE{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ka.primaryClass)}}const Ha=Ka;class Za extends(ua(ma,ha)){constructor(e){super(e),this.element=new Ha}ArrayElement(e){return e.forEach((e=>{const t=va(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Xa=Za;class Ya extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Lo,this.specPath=te(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Qa=Ya;class ec extends ie.Sh{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(ec.primaryClass)}}const tc=ec;class rc extends(ua(La,ha)){constructor(e){super(e),this.element=new tc,this.specPath=te(["document","objects","ServerVariable"])}}const sc=rc;class nc extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Xs,this.specPath=te(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ic=nc;const oc=class extends ma{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>oo(e,te(t),re))),r=go(t)(e);return this.element=this.toRefractedElement(r,e),St}},ac=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ks||e(s)&&t("callback",s)&&r("object",s))),cc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Is||e(s)&&t("components",s)&&r("object",s))),uc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ns||e(s)&&t("contact",s)&&r("object",s))),lc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Bs||e(s)&&t("example",s)&&r("object",s))),pc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ds||e(s)&&t("externalDocumentation",s)&&r("object",s))),hc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zs||e(s)&&t("header",s)&&r("object",s))),mc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gs||e(s)&&t("info",s)&&r("object",s))),fc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Js||e(s)&&t("license",s)&&r("object",s))),dc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hs||e(s)&&t("link",s)&&r("object",s))),_c=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sn||e(s)&&t("openapi",s)&&r("string",s))),yc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof on||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),gc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof cn||e(s)&&t("operation",s)&&r("object",s))),vc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ln||e(s)&&t("parameter",s)&&r("object",s))),bc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hn||e(s)&&t("pathItem",s)&&r("object",s))),wc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fn||e(s)&&t("paths",s)&&r("object",s))),Ec=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof _n||e(s)&&t("reference",s)&&r("object",s))),xc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gn||e(s)&&t("requestBody",s)&&r("object",s))),Sc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof bn||e(s)&&t("response",s)&&r("object",s))),jc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof En||e(s)&&t("responses",s)&&r("object",s))),Oc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $o||e(s)&&t("schema",s)&&r("object",s))),Pc=e=>Ut(e)&&e.classes.includes("boolean-json-schema"),Ac=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ro||e(s)&&t("securityRequirement",s)&&r("object",s))),kc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof To||e(s)&&t("securityScheme",s)&&r("object",s))),Mc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qo||e(s)&&t("server",s)&&r("object",s))),Ic=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Lo||e(s)&&t("serverVariable",s)&&r("object",s))),$c=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Xs||e(s)&&t("mediaType",s)&&r("object",s))),Nc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Ha||e(n)&&t("array",n)&&r("array",n)&&s("servers",n)));class Rc extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Cc=Rc;class Tc extends(ua(La,ha)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("examples"),this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Fc=Tc;class qc extends ie.Sh{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(qc.primaryClass),this.classes.push("examples")}}const Bc=qc;const Lc=class extends Fc{constructor(e){super(e),this.element=new Bc}};class Dc extends ie.Sh{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Dc.primaryClass)}}const Vc=Dc;class zc extends(ua(La,ha)){constructor(e){super(e),this.element=new Vc,this.specPath=te(["document","objects","Encoding"])}}const Uc=zc;class Gc extends(ua(La,ha)){constructor(e){super(e),this.element=new Ro,this.specPath=te(["value"])}}const Wc=Gc;class Jc extends ie.wE{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Jc.primaryClass)}}const Kc=Jc;class Hc extends(ua(ma,ha)){constructor(e){super(e),this.element=new Kc}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(ar(e))})),this.copyMetaAndAttributes(e,this.element),St}}const Zc=Hc;class Xc extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Is,this.specPath=te(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Yc=Xc;class Qc extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Vo,this.specPath=te(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const eu=Qc;class tu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new _n,this.specPath=te(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ru=tu;const su=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class nu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new ln,this.specPath=te(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter($c).forEach(((e,t)=>{e.setMetaProperty("media-type",ti(t))})),t}}const iu=nu;class ou extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const au=ou;class cu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new zs,this.specPath=te(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const uu=cu;class lu extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const pu=lu;class hu extends ie.Sh{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(hu.primaryClass),this.classes.push("examples")}}const mu=hu;const fu=class extends Fc{constructor(e){super(e),this.element=new mu}};class du extends(ua(La,ha)){constructor(e){super(e),this.element=new ie.Sh,this.element.classes.push("content"),this.specPath=te(["document","objects","MediaType"])}}const _u=du;class yu extends ie.Sh{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(yu.primaryClass),this.classes.push("content")}}const gu=yu;const vu=class extends _u{constructor(e){super(e),this.element=new gu}};class bu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new $o,this.specPath=te(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const wu=bu,{allOf:Eu}=wo.visitors.document.objects.JSONSchema.fixedFields,xu=Eu.compose({methods:{ArrayElement(e){const t=Eu.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Su}=wo.visitors.document.objects.JSONSchema.fixedFields,ju=Su.compose({methods:{ArrayElement(e){const t=Su.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Ou}=wo.visitors.document.objects.JSONSchema.fixedFields,Pu=Ou.compose({methods:{ArrayElement(e){const t=Ou.compose.methods.ArrayElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Au}=wo.visitors.document.objects.JSONSchema.fixedFields,ku=Au.compose({methods:{ObjectElement(e){const t=Au.compose.methods.ObjectElement.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=ar(e),St}}}),{properties:Mu}=wo.visitors.document.objects.JSONSchema.fixedFields,Iu=Mu.compose({methods:{ObjectElement(e){const t=Mu.compose.methods.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:$u}=wo.visitors.document.objects.JSONSchema.fixedFields,Nu=$u.compose({methods:{ArrayElement(e){return this.element=ar(e),St}}}),{JSONSchemaOrJSONReferenceVisitor:Ru}=wo.visitors,Cu=Ru.compose({methods:{ObjectElement(e){const t=Ru.compose.methods.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class Tu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Cs,this.specPath=te(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Fu=Tu;class qu extends ie.Sh{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(qu.primaryClass)}}const Bu=qu;class Lu extends(ua(La,ha)){constructor(e){super(e),this.element=new Bu,this.specPath=te(["value"])}}const Du=Lu;class Vu extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Uo,this.specPath=te(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const zu=Vu;class Uu extends ie.Sh{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Uu.primaryClass),this.classes.push("examples")}}const Gu=Uu;const Wu=class extends Fc{constructor(e){super(e),this.element=new Gu}};class Ju extends ie.Sh{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Ju.primaryClass),this.classes.push("content")}}const Ku=Ju;const Hu=class extends _u{constructor(e){super(e),this.element=new Ku}};class Zu extends ie.Sh{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Zu.primaryClass)}}const Xu=Zu;class Yu extends(ua(La,ha)){constructor(e){super(e),this.element=new Xu,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Qu=Yu;class el extends ie.Sh{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(el.primaryClass)}}const tl=el;class rl extends(ua(La,ha)){constructor(e){super(e),this.element=new tl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ti(t))})),t}}const sl=rl;class nl extends ie.Sh{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(nl.primaryClass),this.classes.push("parameters")}}const il=nl;class ol extends(ua(La,ha)){constructor(e){super(e),this.element=new il,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const al=ol;class cl extends ie.Sh{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(cl.primaryClass),this.classes.push("examples")}}const ul=cl;class ll extends(ua(La,ha)){constructor(e){super(e),this.element=new ul,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const pl=ll;class hl extends ie.Sh{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(hl.primaryClass)}}const ml=hl;class fl extends(ua(La,ha)){constructor(e){super(e),this.element=new ml,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const dl=fl;class _l extends ie.Sh{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(_l.primaryClass)}}const yl=_l;class gl extends(ua(La,ha)){constructor(e){super(e),this.element=new yl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",ti(t))})),t}}const vl=gl;class bl extends ie.Sh{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(bl.primaryClass)}}const wl=bl;class El extends(ua(La,ha)){constructor(e){super(e),this.element=new wl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const xl=El;class Sl extends ie.Sh{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Sl.primaryClass)}}const jl=Sl;class Ol extends(ua(La,ha)){constructor(e){super(e),this.element=new jl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Pl=Ol;class Al extends ie.Sh{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Al.primaryClass)}}const kl=Al;class Ml extends(ua(La,ha)){constructor(e){super(e),this.element=new kl,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Il=Ml;class $l extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Bs,this.specPath=te(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Dt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Nl=$l;const Rl=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Cl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Ds,this.specPath=te(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Tl=Cl;class Fl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Fs,this.specPath=te(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.headers)&&this.element.headers.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",ti(t))})),t}}const ql=Fl;class Bl extends ie.Sh{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Bl.primaryClass)}}const Ll=Bl;class Dl extends(ua(La,ha)){constructor(e){super(e),this.element=new Ll,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!hc(e))return;const r=ti(t);e.setMetaProperty("headerName",r)})),t}}const Vl=Dl;class zl extends(ua(Ba,ha)){constructor(e){super(e),this.element=new fn,this.specPath=te(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Kn}ObjectElement(e){const t=Ba.prototype.ObjectElement.call(this,e);return this.element.filter(bc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ar(t))})),t}}const Ul=zl;class Gl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new gn,this.specPath=te(["document","objects","RequestBody"])}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter($c).forEach(((e,t)=>{e.setMetaProperty("media-type",ti(t))})),t}}const Wl=Gl;class Jl extends ie.Sh{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Jl.primaryClass),this.classes.push("content")}}const Kl=Jl;const Hl=class extends _u{constructor(e){super(e),this.element=new Kl}};class Zl extends(ua(Ba,ha)){constructor(e){super(e),this.element=new ks,this.specPath=te(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(bc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ti(t))})),t}}const Xl=Zl;class Yl extends(ua(Ea,ha)){constructor(e){super(e),this.element=new bn,this.specPath=te(["document","objects","Response"])}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter($c).forEach(((e,t)=>{e.setMetaProperty("media-type",ti(t))})),Gt(this.element.headers)&&this.element.headers.filter(hc).forEach(((e,t)=>{e.setMetaProperty("header-name",ti(t))})),t}}const Ql=Yl;class ep extends ie.Sh{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(ep.primaryClass)}}const tp=ep;class rp extends(ua(La,ha)){constructor(e){super(e),this.element=new tp,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!hc(e))return;const r=ti(t);e.setMetaProperty("header-name",r)})),t}}const sp=rp;class np extends ie.Sh{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(np.primaryClass),this.classes.push("content")}}const ip=np;const op=class extends _u{constructor(e){super(e),this.element=new ip}};class ap extends ie.Sh{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ap.primaryClass)}}const cp=ap;class up extends(ua(La,ha)){constructor(e){super(e),this.element=new cp,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const lp=up;function pp(e){return"[object Number]"===Object.prototype.toString.call(e)}const hp=a((function(e,t){if(!pp(e)||!pp(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 mp(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?!!be(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?!!be(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const fp=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!mp(e,!0,this)},e.prototype.has=function(e){return mp(e,!1,this)},e}();const dp=a((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new fp,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 _p extends(ua(Ea,Ba)){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,...dp(e.keys(),t)],Ea.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ba.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const yp=_p;class gp extends(ua(yp,ha)){constructor(e){super(e),this.element=new En,this.specPathFixedFields=te(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ga(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${hp(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=yp.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sc).forEach(((e,t)=>{const r=ar(t);this.fieldPatternPredicate(ti(r))&&e.setMetaProperty("http-status-code",r)})),t}}const vp=gp;class bp extends(ua(oc,ha)){constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)?this.element.setMetaProperty("referenced-element","response"):Sc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const wp=bp;class Ep extends(ua(Ea,ha)){constructor(e){super(e),this.element=new cn,this.specPath=te(["document","objects","Operation"])}}const xp=Ep;class Sp extends ie.wE{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(Sp.primaryClass)}}const jp=Sp;const Op=class extends ha{constructor(e){super(e),this.element=new jp}ArrayElement(e){return this.element=this.element.concat(ar(e)),St}};class Pp extends ie.wE{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Pp.primaryClass),this.classes.push("parameters")}}const Ap=Pp;class kp extends(ua(ma,ha)){constructor(e){super(e),this.element=new ie.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=ga(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);Ec(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const Mp=kp;const Ip=class extends Mp{constructor(e){super(e),this.element=new Ap}};const $p=class extends oc{constructor(e){super(e),this.alternator=[{predicate:ga,specPath:["document","objects","Reference"]},{predicate:Kn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=oc.prototype.enter.call(this,e);return Ec(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Np extends ie.Sh{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass)}}const Rp=Np;class Cp extends(ua(La,ha)){specPath;constructor(e){super(e),this.element=new Rp,this.specPath=e=>ga(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=La.prototype.ObjectElement.call(this,e);return this.element.filter(Ec).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Tp=Cp;class Fp extends ie.wE{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Fp.primaryClass),this.classes.push("security")}}const qp=Fp;class Bp extends(ua(ma,ha)){constructor(e){super(e),this.element=new qp}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 Lp=Bp;class Dp extends ie.wE{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Dp.primaryClass),this.classes.push("servers")}}const Vp=Dp;const zp=class extends Xa{constructor(e){super(e),this.element=new Vp}};class Up extends(ua(Ea,ha)){constructor(e){super(e),this.element=new hn,this.specPath=te(["document","objects","PathItem"])}ObjectElement(e){const t=Ea.prototype.ObjectElement.call(this,e);return this.element.filter(gc).forEach(((e,t)=>{const r=ar(t);r.content=ti(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Dt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Gp=Up;const Wp=class extends ha{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Jp extends ie.wE{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Jp.primaryClass),this.classes.push("servers")}}const Kp=Jp;const Hp=class extends Xa{constructor(e){super(e),this.element=new Kp}};class Zp extends ie.wE{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Zp.primaryClass),this.classes.push("parameters")}}const Xp=Zp;const Yp=class extends Mp{constructor(e){super(e),this.element=new Xp}};class Qp extends(ua(Ea,ha)){constructor(e){super(e),this.element=new To,this.specPath=te(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const eh=Qp;class th extends(ua(Ea,ha)){constructor(e){super(e),this.element=new tn,this.specPath=te(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const rh=th;class sh extends(ua(Ea,ha)){constructor(e){super(e),this.element=new Qs,this.specPath=te(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const nh=sh;class ih extends ie.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(ih.primaryClass)}}const oh=ih;class ah extends(ua(La,ha)){constructor(e){super(e),this.element=new oh,this.specPath=te(["value"])}}const ch=ah;class uh extends ie.wE{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(uh.primaryClass)}}const lh=uh;class ph extends(ua(ma,ha)){constructor(e){super(e),this.element=new lh}ArrayElement(e){return e.forEach((e=>{const t=ba(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),St}}const hh=ph,{fixedFields:mh}=wo.visitors.document.objects.JSONSchema,fh={visitors:{value:ha,document:{objects:{OpenApi:{$visitor:Sa,fixedFields:{openapi:Oa,info:{$ref:"#/visitors/document/objects/Info"},servers:Xa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Zc,tags:hh,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ka,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:Ma}},Contact:{$visitor:$a,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Ra,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Wa,fixedFields:{url:Ja,description:{$ref:"#/visitors/value"},variables:sc}},ServerVariable:{$visitor:Qa,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Yc,fixedFields:{schemas:Qu,responses:sl,parameters:al,examples:pl,requestBodies:dl,headers:vl,securitySchemes:xl,links:Pl,callbacks:Il}},Paths:{$visitor:Ul},PathItem:{$visitor:Gp,fixedFields:{$ref:Wp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Hp,parameters:Yp}},Operation:{$visitor:xp,fixedFields:{tags:Op,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Ip,requestBody:$p,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Tp,deprecated:{$ref:"#/visitors/value"},security:Lp,servers:zp}},ExternalDocumentation:{$visitor:Tl,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:iu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:au,example:{$ref:"#/visitors/value"},examples:Wu,content:Hu}},RequestBody:{$visitor:Wl,fixedFields:{description:{$ref:"#/visitors/value"},content:Hl,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ic,fixedFields:{schema:Cc,example:{$ref:"#/visitors/value"},examples:Lc,encoding:Uc}},Encoding:{$visitor:ql,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Vl,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:vp,fixedFields:{default:wp}},Response:{$visitor:Ql,fixedFields:{description:{$ref:"#/visitors/value"},headers:sp,content:op,links:lp}},Callback:{$visitor:Xl},Example:{$visitor:Nl,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Rl}},Link:{$visitor:Ta,fixedFields:{operationRef:Fa,operationId:qa,parameters:Ua,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:uu,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:pu,example:{$ref:"#/visitors/value"},examples:fu,content:vu}},Tag:{$visitor:eu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ru,fixedFields:{$ref:su}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:wu,fixedFields:{title:mh.title,multipleOf:mh.multipleOf,maximum:mh.maximum,exclusiveMaximum:mh.exclusiveMaximum,minimum:mh.minimum,exclusiveMinimum:mh.exclusiveMinimum,maxLength:mh.maxLength,minLength:mh.minLength,pattern:mh.pattern,maxItems:mh.maxItems,minItems:mh.minItems,uniqueItems:mh.uniqueItems,maxProperties:mh.maxProperties,minProperties:mh.minProperties,required:mh.required,enum:mh.enum,type:Nu,allOf:xu,anyOf:ju,oneOf:Pu,not:Cu,items:ku,properties:Iu,additionalProperties:Cu,description:mh.description,format:mh.format,default:mh.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:Fu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Du}},XML:{$visitor:zu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:eh,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:rh,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:nh,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:ch}},SecurityRequirement:{$visitor:Wc}},extension:{$visitor:Pa}}}},dh=e=>{if(Lt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_h={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"],...fr},yh={namespace:e=>{const{base:t}=e;return t.register("callback",ks),t.register("components",Is),t.register("contact",Ns),t.register("discriminator",Cs),t.register("encoding",Fs),t.register("example",Bs),t.register("externalDocumentation",Ds),t.register("header",zs),t.register("info",Gs),t.register("license",Js),t.register("link",Hs),t.register("mediaType",Xs),t.register("oAuthFlow",Qs),t.register("oAuthFlows",tn),t.register("openapi",sn),t.register("openApi3_0",on),t.register("operation",cn),t.register("parameter",ln),t.register("pathItem",hn),t.register("paths",fn),t.register("reference",_n),t.register("requestBody",gn),t.register("response",bn),t.register("responses",En),t.register("schema",$o),t.register("securityRequirement",Ro),t.register("securityScheme",To),t.register("server",qo),t.register("serverVariable",Lo),t.register("tag",Vo),t.register("xml",Uo),t}},gh=()=>{const e=ct(yh);return{predicates:{...n,isElement:Lt,isStringElement:Dt,isArrayElement:Wt,isObjectElement:Gt,isMemberElement:Jt,includesClasses:sr,hasElementSourceMap:tr},namespace:e}},vh=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,ie.e)(e),n=Wn(fh),i=new($e(t,n))({specObj:n});return dr(s,i),Mr(i.element,r,{toolboxCreator:gh,visitorOptions:{keyMap:_h,nodeTypeGetter:dh}})},bh=e=>(t,r={})=>vh(t,{specPath:e,...r});ks.refract=bh(["visitors","document","objects","Callback","$visitor"]),Is.refract=bh(["visitors","document","objects","Components","$visitor"]),Ns.refract=bh(["visitors","document","objects","Contact","$visitor"]),Bs.refract=bh(["visitors","document","objects","Example","$visitor"]),Cs.refract=bh(["visitors","document","objects","Discriminator","$visitor"]),Fs.refract=bh(["visitors","document","objects","Encoding","$visitor"]),Ds.refract=bh(["visitors","document","objects","ExternalDocumentation","$visitor"]),zs.refract=bh(["visitors","document","objects","Header","$visitor"]),Gs.refract=bh(["visitors","document","objects","Info","$visitor"]),Js.refract=bh(["visitors","document","objects","License","$visitor"]),Hs.refract=bh(["visitors","document","objects","Link","$visitor"]),Xs.refract=bh(["visitors","document","objects","MediaType","$visitor"]),Qs.refract=bh(["visitors","document","objects","OAuthFlow","$visitor"]),tn.refract=bh(["visitors","document","objects","OAuthFlows","$visitor"]),sn.refract=bh(["visitors","document","objects","OpenApi","fixedFields","openapi"]),on.refract=bh(["visitors","document","objects","OpenApi","$visitor"]),cn.refract=bh(["visitors","document","objects","Operation","$visitor"]),ln.refract=bh(["visitors","document","objects","Parameter","$visitor"]),hn.refract=bh(["visitors","document","objects","PathItem","$visitor"]),fn.refract=bh(["visitors","document","objects","Paths","$visitor"]),_n.refract=bh(["visitors","document","objects","Reference","$visitor"]),gn.refract=bh(["visitors","document","objects","RequestBody","$visitor"]),bn.refract=bh(["visitors","document","objects","Response","$visitor"]),En.refract=bh(["visitors","document","objects","Responses","$visitor"]),$o.refract=bh(["visitors","document","objects","Schema","$visitor"]),Ro.refract=bh(["visitors","document","objects","SecurityRequirement","$visitor"]),To.refract=bh(["visitors","document","objects","SecurityScheme","$visitor"]),qo.refract=bh(["visitors","document","objects","Server","$visitor"]),Lo.refract=bh(["visitors","document","objects","ServerVariable","$visitor"]),Vo.refract=bh(["visitors","document","objects","Tag","$visitor"]),Uo.refract=bh(["visitors","document","objects","XML","$visitor"]);const wh=h(-1);const Eh=class extends xn{};const xh=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Eh("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Eh("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Eh("latest method in MediaTypes class is not yet implemented.")}};class Sh extends xh{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 wh(this.filterByFormat(e))}}const jh=new Sh("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"),Oh=new Sh(...jh.filterByFormat("generic"),...jh.filterByFormat("json")),Ph=/"openapi"\s*:\s*"(?<version_json>3\.0\.([0123])(?:-rc[012])?)"/,Ah=async e=>Ph.test(e)&&await(async e=>{if(!Ps.test(e))return!1;try{return"ERROR"!==(await wt(e)).rootNode.type}catch{return!1}})(e),kh=async(e,t={})=>{const r=f({},"refractorOpts",t),s=_(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await wt(e);let n;return n="indirect"===r?Os(s,{sourceMap:t}):Dr(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(ne(i)){const e=on.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},Mh=ct(yh)})(),s})()));