@swagger-api/apidom-parser-adapter-openapi-yaml-2 1.0.0-alpha.1 → 1.0.0-alpha.10

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.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},5098:(e,t,n)=>{var r=n(3305),s=n(9361),i=n(1112),o=n(5276),a=n(5071);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,n)=>{var r=n(2393),s=n(2049),i=n(7144),o=n(7452),a=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,n)=>{var r=n(4715)(n(8942),"Map");e.exports=r},8250:(e,t,n)=>{var r=n(9753),s=n(5681),i=n(88),o=n(4732),a=n(9068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,n)=>{var r=n(4715)(n(8942),"Promise");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},3212:(e,t,n)=>{var r=n(8250),s=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,n)=>{var r=n(1386),s=n(4103),i=n(1779),o=n(4162),a=n(7462),c=n(6638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r},1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},358:(e,t,n)=>{var r=n(6137),s=n(3283),i=n(3142),o=n(5853),a=n(9632),c=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(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 n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},6465:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8244:(e,t,n)=>{var r=n(1129),s=n(3142);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},7379:(e,t,n)=>{var r=n(5650),s=n(8870),i=n(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},4687:(e,t,n)=>{var r=n(353),s=n(547);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},353:(e,t,n)=>{var r=n(1340),s=n(3934),i=n(8861),o=n(1182),a=n(8486),c=n(3142),u=n(5853),l=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),w=y?h:a(e),b=v?h:a(t),E=(w=w==p?m:w)==m,x=(b=b==p?m:b)==m,S=w==b;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,w,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),j=x&&f.call(t,"__wrapped__");if(P||j){var O=P?e.value():e,A=j?t.value():t;return g||(g=new r),_(O,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},9624:(e,t,n)=>{var r=n(3655),s=n(4759),i=n(1580),o=n(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)||s(e))&&(r(e)?h:a).test(o(e))}},674:(e,t,n)=>{var r=n(7379),s=n(5387),i=n(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)&&s(e.length)&&!!o[r(e)]}},195:(e,t,n)=>{var r=n(4882),s=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,n)=>{var r=n(3212),s=n(6465),i=n(5568);e.exports=function(e,t,n,o,a,c){var u=1&n,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&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(o)var v=u?o(y,g,f,t,e,c):o(g,y,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(g===e||a(g,e,n,o,c)))return _.push(t)}))){d=!1;break}}else if(g!==y&&!a(g,y,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8861:(e,t,n)=>{var r=n(5650),s=n(1623),i=n(6285),o=n(3934),a=n(5894),c=n(7447),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,n)=>{var r=n(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),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 g=e[h=u[p]],y=t[h];if(i)var v=c?i(y,g,h,t,e,a):i(g,y,h,e,t,a);if(!(void 0===v?g===y||o(g,y,n,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(e),a.delete(t),d}},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(8244),s=n(7979),i=n(1211);e.exports=function(e){return r(e,i,s)}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4715:(e,t,n)=>{var r=n(9624),s=n(155);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},8870:(e,t,n)=>{var r=n(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},7979:(e,t,n)=>{var r=n(9847),s=n(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},8486:(e,t,n)=>{var r=n(3103),s=n(9770),i=n(9413),o=n(4512),a=n(9270),c=n(7379),u=n(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!=f||s&&w(new s)!=l||i&&w(i.resolve())!=p||o&&w(new o)!=h||a&&w(new a)!=m)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=w},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,n)=>{var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},5276:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5071:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},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,n)=>{var r,s=n(1950),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},9753:(e,t,n)=>{var r=n(5098),s=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.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(n){return e(t(n))}}},8942:(e,t,n)=>{var r=n(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||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,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},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,n)=>{var r=n(1386),s=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.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,n)=>{var r=n(6027),s=n(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),s=n(5387);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},2563:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),s=n(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},6343:(e,t,n)=>{var r=n(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,n)=>{var r=n(7379),s=n(1580);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,n)=>{var r=n(7379),s=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,n)=>{var r=n(674),s=n(9460),i=n(2306),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},1211:(e,t,n)=>{var r=n(358),s=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):s(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,n)=>{const r=n(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},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,n)=>{const r=n(9310),s=n(8138),i=n(986),o=n(2563),a=n(1580),c=n(394),u=n(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,n)=>{const r=n(1517),s=n(4123);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,n)=>{const r=n(8631),s=n(3004),i=n(8712),o=n(2536),a=n(2555),c=n(9796),u=n(7309),l=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function _(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,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,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(5735),s=n(7547);t.g$=r,t.KeyValuePair=n(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,n(394),n(3148)},9796:(e,t,n)=>{const r=n(1517),s=n(8631),i=n(4123);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,n)=>{const r=n(6343),s=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,n)=>{const r=n(2322),s=n(8631);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},5642:(e,t,n)=>{const r=n(1517),s=n(1580),i=n(9796),o=n(7309),a=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},8712:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,n)=>{const r=n(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},8583:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,n)=>{"use strict";t.MH=void 0;const r=n(8583);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[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,_,g,y,v,w="";c?(w=p?n(4142).dirname(w)+"/":"//",d=function(e,t){return y||(y=n(3078)),v||(v=n(4142)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),T(t.buffer),t},process.argv.length>1&&(m=process.argv[1].replace(/\\/g,"/")),h=process.argv.slice(2),e.exports=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(T("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?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?w=self.location.href:void 0!==s&&s.currentScript&&(w=s.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var b=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=16,S=[];function P(e,t){if(!E){E=new WeakMap;for(var n=0;n<Y.length;n++){var r=Y.get(n);r&&E.set(r,n)}}if(E.has(e))return E.get(e);var s=function(){if(S.length)return S.pop();try{Y.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);Y.set(s,i)}return E.set(e,s),s}var j,O=r.dynamicLibraries||[];r.wasmBinary&&(j=r.wasmBinary);var A,k=r.noExitRuntime||!0;function I(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":R[e>>0]=t;break;case"i16":C[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":le=[t>>>0,(ue=t,+Math.abs(ue)>=1?ue>0?(0|Math.min(+Math.floor(ue/4294967296),4294967295))>>>0:~~+Math.ceil((ue-+(~~ue>>>0))/4294967296)>>>0:0)],q[e>>2]=le[0],q[e+4>>2]=le[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ae("invalid type for setValue: "+n)}}function M(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return C[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[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 N=!1;function T(e,t){e||ae("Assertion failed: "+t)}var $,R,F,C,q,D,L,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&V)return V.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function U(e,t){return e?B(F,e,t):""}function z(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-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(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function H(e,t,n){return z(e,F,t,n)}function G(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function K(e){var t=G(e)+1,n=Ue(t);return z(e,R,n,t),n}function W(e){$=e,r.HEAP8=R=new Int8Array(e),r.HEAP16=C=new Int16Array(e),r.HEAP32=q=new Int32Array(e),r.HEAPU8=F=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=D=new Float32Array(e),r.HEAPF64=L=new Float64Array(e)}var J=r.INITIAL_MEMORY||33554432;(A=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:J/65536,maximum:32768}))&&($=A.buffer),J=$.byteLength,W($);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Z=[],X=[],Q=[],ee=[],te=!1,ne=0,re=null,se=null;function ie(e){ne++,r.monitorRunDependencies&&r.monitorRunDependencies(ne)}function oe(e){if(ne--,r.monitorRunDependencies&&r.monitorRunDependencies(ne),0==ne&&(null!==re&&(clearInterval(re),re=null),se)){var t=se;se=null,t()}}function ae(e){throw r.onAbort&&r.onAbort(e),b(e+=""),N=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.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&&j)return new Uint8Array(j);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ae(e)}}pe(ce="tree-sitter.wasm")||(ce=function(e){return r.locateFile?r.locateFile(e,w):w+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 n=t.func;"number"==typeof n?void 0===t.arg?Y.get(n)():Y.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function ge(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");T(0!=r.length,"need dylink section"),e=new Int8Array(r[0])}else T(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===e[8],"need the dylink section to be first"),t=9,n(),T(6===e[t]),T(e[++t]==="d".charCodeAt(0)),T(e[++t]==="y".charCodeAt(0)),T(e[++t]==="l".charCodeAt(0)),T(e[++t]==="i".charCodeAt(0)),T(e[++t]==="n".charCodeAt(0)),T(e[++t]==="k".charCodeAt(0)),t++;var s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var ye=0;function ve(){return k||ye>0}function we(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function be(e,t){for(var n in e)if(e.hasOwnProperty(n)){qe.hasOwnProperty(n)||(qe[n]=e[n]);var s=we(n);r.hasOwnProperty(s)||(r[s]=e[n])}}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 Pe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Se(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),fe[t]||(fe[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==fe[t].value)&&("function"==typeof r?fe[t].value=P(r):"number"==typeof r?fe[t].value=r:b("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function je(e,t){var n,s;return t&&(n=qe["orig$"+e]),n||(n=qe[e]),n||(n=r[we(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=Ve();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):Y.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Be(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),n}function Oe(e,t){var n=ge(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(e){if(te)return De(e);var t=xe,n=t+e+15&-16;return xe=n,fe.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Y.length;Y.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)R[u]=0;for(u=c;u<c+n.tableSize;u++)Y.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 n||(n=function(e){var t=je(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},de),"GOT.func":new Proxy({},de),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=Y.get(c+r);s&&E.set(s,c+r)}o=Pe(e.exports,a),t.allowUndefined||ke();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():X.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,p);return Promise.resolve(h(m))}return WebAssembly.instantiate(e,p).then((function(e){return h(e.instance)}))}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return h(m=new WebAssembly.Instance(f,p))}return t.loadAsync?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return Ae(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){Ae(e,t)})),r())}function Ae(e,t){"__main__"!=e||Ee.loadedLibNames[e]||(Ee.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Ee.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=Ee.loadedLibNames[e];if(s)return n=Ee.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&be(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return Oe(e,t)})):Oe(i(e),t)}function a(e){n.global&&be(e),n.module=e}return s=Ee.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},Ee.loadedLibNames[e]=s,Ee.loadedLibs[s]=n,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function ke(){for(var e in fe)if(0==fe[e].value){var t=je(e,!0);"function"==typeof t?fe[e].value=P(t,t.sig):"number"==typeof t?fe[e].value=t:T(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=xe;var Ie,Me=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ne(){ae()}r._abort=Ne,Ne.sig="v",Ie=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Te(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;n=Ie()}return q[t>>2]=n/1e3|0,q[t+4>>2]=n%1e3*1e3*1e3|0,0}function $e(e){try{return A.grow(e-$.byteLength+65535>>>16),W(A.buffer),1}catch(e){}}function Re(e){We(e)}function Fe(e){}Te.sig="iii",Re.sig="vi",Fe.sig="vi";var Ce,qe={__heap_base:xe,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:Me,__table_base:1,abort:Ne,clock_gettime:Te,emscripten_memcpy_big:function(e,t,n){F.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=F.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),$e(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Re,memory:A,setTempRet0:Fe,tree_sitter_log_callback:function(e,t){if(ut){const n=U(t);ut(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=ct(t,{row:n,column:r});"string"==typeof i?(I(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);C[t>>1]=i,t+=2}C[t>>1]=0}(i,e,10240)):I(s,0,"i32")}},De=(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 n=e.exports;n=Pe(n,1024),r.asm=n;var s,i=ge(t);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),be(n),s=r.asm.__wasm_call_ctors,X.unshift(s),oe()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!j&&(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){b("failed to asynchronously prepare wasm: "+e),ae(e)}))}if(ie(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return b("Module.instantiateWasm callback failed with error: "+e),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pe(ce)||he(ce)||"function"!=typeof fetch?s(n):fetch(ce,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(De=r._malloc=r.asm.malloc).apply(null,arguments)}),Le=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(Le=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Ve=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Ve=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Be=r.stackRestore=function(){return(Be=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ue=r.stackAlloc=function(){return(Ue=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},ze=r._setThrew=function(){return(ze=r._setThrew=r.asm.setThrew).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?F.set(e,n):F.set(new Uint8Array(e),n),n},se=function e(){Ce||Ke(),Ce||(se=e)};var Ge=!1;function Ke(e){function t(){Ce||(Ce=!0,r.calledRun=!0,N||(te=!0,_e(X),_e(Q),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Je&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ue(4*(n+1));q[s>>2]=K(m);for(var i=1;i<n;i++)q[(s>>2)+i]=K(e[i-1]);q[(s>>2)+n]=0;try{We(t(n,s),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),b("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),ee.unshift(e);var e;_e(ee)}()))}e=e||h,ne>0||!Ge&&(function(){if(O.length){if(!g)return ie(),void O.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),ke()}));O.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),ke()}else ke()}(),Ge=!0,ne>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Z.unshift(e);var e;_e(Z)}(),ne>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function We(e,t){t&&ve()&&0===e||(ve()||(r.onExit&&r.onExit(e),N=!0),f(e,new He(e)))}if(r.run=Ke,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Je=!0;r.noInitialRun&&(Je=!1),Ke();const Ye=r,Ze={},Xe=4,Qe=5*Xe,et=2*Xe,tt=2*Xe+2*et,nt={row:0,column:0},rt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,at,ct,ut;class lt{static init(){at=Ye._ts_init(),it=M(at,"i32"),ot=M(at+Xe,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=M(at,"i32"),this[1]=M(at+Xe,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ft)throw new Error("Argument must be a Language");{t=e[0];const n=Ye._ts_language_version(t);if(n<ot||it<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ye._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)ct=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");ct=e}this.logCallback?(ut=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(ut=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ye._calloc(r,tt);for(let t=0;t<r;t++)jt(e,n.includedRanges[t]),e+=tt}const i=Ye._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw ct=null,ut=null,new Error("Parsing failed");const o=new pt(Ze,i,this.language,ct);return ct=null,ut=null,o}reset(){Ye._ts_parser_reset(this[0])}setTimeoutMicros(e){Ye._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ye._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class pt{constructor(e,t,n,r){yt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ye._ts_tree_copy(this[0]);return new pt(Ze,e,this.language,this.textCallback)}delete(){Ye._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=at;St(t,e.startPosition),St(t+=et,e.oldEndPosition),St(t+=et,e.newEndPosition),I(t+=et,e.startIndex,"i32"),I(t+=Xe,e.oldEndIndex,"i32"),I(t+=Xe,e.newEndIndex,"i32"),t+=Xe}(e),Ye._ts_tree_edit_wasm(this[0])}get rootNode(){return Ye._ts_tree_root_node_wasm(this[0]),bt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ye._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=M(at,"i32"),n=M(at+Xe,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=Ot(e),e+=tt;Ye._free(n)}return r}}class ht{constructor(e,t){yt(e),this.tree=t}get typeId(){return wt(this),Ye._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return wt(this),Ye._ts_node_end_point_wasm(this.tree[0]),Pt(at)}get endIndex(){return wt(this),Ye._ts_node_end_index_wasm(this.tree[0])}get text(){return _t(this.tree,this.startIndex,this.endIndex)}isNamed(){return wt(this),1===Ye._ts_node_is_named_wasm(this.tree[0])}hasError(){return wt(this),1===Ye._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return wt(this),1===Ye._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return wt(this),1===Ye._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return wt(this),Ye._ts_node_child_wasm(this.tree[0],e),bt(this.tree)}namedChild(e){return wt(this),Ye._ts_node_named_child_wasm(this.tree[0],e),bt(this.tree)}childForFieldId(e){return wt(this),Ye._ts_node_child_by_field_id_wasm(this.tree[0],e),bt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return wt(this),Ye._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return wt(this),Ye._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){wt(this),Ye._ts_node_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=bt(this.tree,n),n+=Qe;Ye._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){wt(this),Ye._ts_node_named_children_wasm(this.tree[0]);const e=M(at,"i32"),t=M(at+Xe,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=bt(this.tree,n),n+=Qe;Ye._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=nt),n||(n=nt);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ye._malloc(Xe*r.length);for(let e=0,t=r.length;e<t;e++)I(i+e*Xe,r[e],"i32");wt(this),Ye._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.column);const o=M(at,"i32"),a=M(at+Xe,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=bt(this.tree,e),e+=Qe}return Ye._free(a),Ye._free(i),c}get nextSibling(){return wt(this),Ye._ts_node_next_sibling_wasm(this.tree[0]),bt(this.tree)}get previousSibling(){return wt(this),Ye._ts_node_prev_sibling_wasm(this.tree[0]),bt(this.tree)}get nextNamedSibling(){return wt(this),Ye._ts_node_next_named_sibling_wasm(this.tree[0]),bt(this.tree)}get previousNamedSibling(){return wt(this),Ye._ts_node_prev_named_sibling_wasm(this.tree[0]),bt(this.tree)}get parent(){return wt(this),Ye._ts_node_parent_wasm(this.tree[0]),bt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");wt(this);let n=at+Qe;return I(n,e,"i32"),I(n+Xe,t,"i32"),Ye._ts_node_descendant_for_index_wasm(this.tree[0]),bt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");wt(this);let n=at+Qe;return I(n,e,"i32"),I(n+Xe,t,"i32"),Ye._ts_node_named_descendant_for_index_wasm(this.tree[0]),bt(this.tree)}descendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");wt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ye._ts_node_descendant_for_position_wasm(this.tree[0]),bt(this.tree)}namedDescendantForPosition(e,t=e){if(!vt(e)||!vt(t))throw new Error("Arguments must be {row, column} objects");wt(this);let n=at+Qe;return St(n,e),St(n+et,t),Ye._ts_node_named_descendant_for_position_wasm(this.tree[0]),bt(this.tree)}walk(){return wt(this),Ye._ts_tree_cursor_new_wasm(this.tree[0]),new mt(Ze,this.tree)}toString(){wt(this);const e=Ye._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=F[e++>>0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ye._free(e),t}}class mt{constructor(e,t){yt(e),this.tree=t,xt(this)}delete(){Et(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){wt(e),Et(this,at+Qe),Ye._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),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Et(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Et(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Et(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return _t(this.tree,e,t)}get startPosition(){return Et(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),Pt(at)}get endPosition(){return Et(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),Pt(at)}get startIndex(){return Et(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Et(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Et(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),bt(this.tree)}currentFieldId(){return Et(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Et(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xt(this),1===e}gotoNextSibling(){Et(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xt(this),1===e}gotoParent(){Et(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xt(this),1===e}}class ft{constructor(e,t){yt(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ye._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ye._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ye._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ye._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ye._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const n=G(e),r=Ye._malloc(n+1);H(e,r,n+1);const s=Ye._ts_language_symbol_for_name(this[0],r,n,t);return Ye._free(r),s||null}get nodeTypeCount(){return Ye._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ye._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ye._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ye._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=G(e),n=Ye._malloc(t+1);H(e,n,t+1);const r=Ye._ts_query_new(this[0],n,t,at,at+Xe);if(!r){const t=M(at+Xe,"i32"),r=U(n,M(at,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(rt)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ye._free(n),i}const s=Ye._ts_query_string_count(r),i=Ye._ts_query_capture_count(r),o=Ye._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ye._ts_query_capture_name_for_id(r,e,at),n=M(at,"i32");a[e]=U(t,n)}for(let e=0;e<s;e++){const t=Ye._ts_query_string_value_for_id(r,e,at),n=M(at,"i32");c[e]=U(t,n)}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=Ye._ts_query_predicates_for_pattern(r,e,at),n=M(at,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=M(i,"i32"),n=M(i+=Xe,"i32");if(i+=Xe,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ye._free(n),new dt(Ze,r,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 r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Oe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>st.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ft(Ze,r)}))}}class dt{constructor(e,t,n,r,s,i,o,a){yt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const n=M(l,"i32"),r=M(l+=Xe,"i32");l+=Xe;const s=new Array(r);if(l=gt(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ye._free(o),c}captures(e,t,n,r){t||(t=nt),n||(n=nt),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");wt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=M(at,"i32"),o=M(at+Xe,"i32"),a=M(at+2*Xe,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=M(l,"i32"),n=M(l+=Xe,"i32"),r=M(l+=Xe,"i32");if(l+=Xe,u.length=n,l=gt(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ye._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function _t(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function gt(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=M(n,"i32"),o=bt(t,n+=Xe);n+=Qe,r[s]={name:e.captureNames[i],node:o}}return n}function yt(e){if(e!==Ze)throw new Error("Illegal constructor")}function vt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function wt(e){let t=at;I(t,e.id,"i32"),I(t+=Xe,e.startIndex,"i32"),I(t+=Xe,e.startPosition.row,"i32"),I(t+=Xe,e.startPosition.column,"i32"),I(t+=Xe,e[0],"i32")}function bt(e,t=at){const n=M(t,"i32");if(0===n)return null;const r=M(t+=Xe,"i32"),s=M(t+=Xe,"i32"),i=M(t+=Xe,"i32"),o=M(t+=Xe,"i32"),a=new ht(Ze,e);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Et(e,t=at){I(t+0*Xe,e[0],"i32"),I(t+1*Xe,e[1],"i32"),I(t+2*Xe,e[2],"i32")}function xt(e){e[0]=M(at+0*Xe,"i32"),e[1]=M(at+1*Xe,"i32"),e[2]=M(at+2*Xe,"i32")}function St(e,t){I(e,t.row,"i32"),I(e+Xe,t.column,"i32")}function Pt(e){return{row:M(e,"i32"),column:M(e+Xe,"i32")}}function jt(e,t){St(e,t.startPosition),St(e+=et,t.endPosition),I(e+=et,t.startIndex,"i32"),I(e+=Xe,t.endIndex,"i32"),e+=Xe}function Ot(e){const t={};return t.startPosition=Pt(e),e+=et,t.endPosition=Pt(e),e+=et,t.startIndex=M(e,"i32"),e+=Xe,t.endIndex=M(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,r.onRuntimeInitialized=()=>{lt.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,n)=>{e.exports=n(8411)},7202:(e,t,n)=>{"use strict";var r=n(239);e.exports=r},6656:(e,t,n)=>{"use strict";n(484),n(5695),n(6138),n(9828),n(3832);var r=n(8099);e.exports=r.AggregateError},8411:(e,t,n)=>{"use strict";e.exports=n(8337)},8337:(e,t,n)=>{"use strict";n(5442);var r=n(7202);e.exports=r},814:(e,t,n)=>{"use strict";var r=n(2769),s=n(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,n)=>{"use strict";var r=n(2937),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,n)=>{"use strict";var r=n(262),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,n)=>{"use strict";var r=n(3273),s=n(4574),i=n(8130),o=function(e){return function(t,n,o){var a,c=r(t),u=i(c),l=s(o,u);if(e&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((e||l in c)&&c[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,n)=>{"use strict";var r=n(6100),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,n)=>{"use strict";var r=n(4904),s=n(2769),i=n(9932),o=n(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},7464:(e,t,n)=>{"use strict";var r=n(701),s=n(5691),i=n(4543),o=n(9989);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},2871:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,n)=>{"use strict";var r=n(5024),s=n(9989),i=n(480);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var r=n(3999);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},7525:(e,t,n)=>{"use strict";var r=n(1063),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,n)=>{"use strict";var r=n(1063),s=n(262),i=r.document,o=s(i)&&s(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,n)=>{"use strict";var r,s,i=n(1063),o=n(7868),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3885:(e,t,n)=>{"use strict";var r=n(6100),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,n)=>{"use strict";var r=n(3999),s=n(3885),i=n(5791),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},5791:(e,t,n)=>{"use strict";var r=n(1203),s=n(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,n)=>{"use strict";var r=n(1063),s=n(7013),i=n(9344),o=n(2769),a=n(4543).f,c=n(8696),u=n(8099),l=n(4572),p=n(3999),h=n(701),m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,w,b=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[b]:r[b]&&r[b].prototype,j=E?u:u[b]||p(u,b,{})[b],O=j.prototype;for(d in t)s=!(n=c(E?d:b+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=j[d],s&&(y=e.dontCallGetSet?(w=a(P,d))&&w.value:P[d]),_=s&&y?y:t[d],(n||S||typeof g!=typeof _)&&(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(j,d,v),S&&(h(u,f=b+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(n||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,n)=>{"use strict";var r=n(9344),s=n(814),i=n(1780),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,n)=>{"use strict";var r=n(5024),s=n(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,n)=>{"use strict";var r=n(6100),s=n(814);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9344:(e,t,n)=>{"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},6100:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,n)=>{"use strict";var r=n(8099),s=n(1063),i=n(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},967:(e,t,n)=>{"use strict";var r=n(8407),s=n(4674),i=n(3057),o=n(6625),a=n(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1613:(e,t,n)=>{"use strict";var r=n(4713),s=n(814),i=n(7235),o=n(459),a=n(967),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,n)=>{"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},1063:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,n)=>{"use strict";var r=n(6100),s=n(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,n)=>{"use strict";var r=n(1003);e.exports=r("document","documentElement")},9665:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203),i=n(9619);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,n)=>{"use strict";var r=n(6100),s=n(1203),i=n(9932),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,n)=>{"use strict";var r=n(2769),s=n(262),i=n(3491);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},8148:(e,t,n)=>{"use strict";var r=n(262),s=n(3999);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,n)=>{"use strict";var r,s,i,o=n(1314),a=n(1063),c=n(262),u=n(3999),l=n(701),p=n(3753),h=n(4275),m=n(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2877:(e,t,n)=>{"use strict";var r=n(8655),s=n(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.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,n)=>{"use strict";var r=n(1203),s=n(2769),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(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,n)=>{"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,n)=>{"use strict";var r=n(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,n)=>{"use strict";var r=n(1003),s=n(2769),i=n(4317),o=n(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,n)=>{"use strict";var r=n(4572),s=n(4713),i=n(7235),o=n(459),a=n(2877),c=n(8130),u=n(4317),l=n(1613),p=n(967),h=n(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,w,b,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=r(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},I=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(P)_=e.iterator;else if(j)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((w=I(e[y]))&&u(d,w))return w;return new f(!1)}_=l(e,g)}for(b=P?e.next:_.next;!(E=s(b,_)).done;){try{w=I(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof w&&w&&u(d,w))return w}return new f(!1)}},1743:(e,t,n)=>{"use strict";var r=n(4713),s=n(7235),i=n(4674);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},1926:(e,t,n)=>{"use strict";var r=n(2621).IteratorPrototype,s=n(5780),i=n(480),o=n(1811),a=n(6625),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,n)=>{"use strict";var r=n(9098),s=n(4713),i=n(4871),o=n(3410),a=n(2769),c=n(1926),u=n(3671),l=n(3491),p=n(1811),h=n(3999),m=n(3508),f=n(8655),d=n(6625),_=n(2621),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,b=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,j){c(n,t,o);var O,A,k,I=function(e){if(e===f&&R)return R;if(!w&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",N=!1,T=e.prototype,$=T[b]||T["@@iterator"]||f&&T[f],R=!w&&$||I(f),F="Array"===t&&T.entries||$;if(F&&(O=u(F.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[b])||m(O,b,P)),p(O,M,!0,!0),i&&(d[M]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(N=!0,R=function(){return s($,this)})),f)if(A={values:I(x),keys:_?R:I(E),entries:I(S)},j)for(k in A)(w||N||!(k in T))&&m(T,k,A[k]);else r({target:t,proto:!0,forced:w||N},A);return i&&!j||T[b]===R||m(T,b,R,{name:f}),d[t]=R,A}},2621:(e,t,n)=>{"use strict";var r,s,i,o=n(1203),a=n(2769),c=n(262),u=n(5780),l=n(3671),p=n(3508),h=n(8655),m=n(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,n)=>{"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4879:(e,t,n)=>{"use strict";var r=n(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,n)=>{"use strict";var r,s=n(7235),i=n(7389),o=n(9683),a=n(5241),c=n(3489),u=n(9619),l=n(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},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},7389:(e,t,n)=>{"use strict";var r=n(5024),s=n(1330),i=n(9989),o=n(7235),a=n(3273),c=n(8364);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},9989:(e,t,n)=>{"use strict";var r=n(5024),s=n(9665),i=n(1330),o=n(7235),a=n(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543:(e,t,n)=>{"use strict";var r=n(5024),s=n(4713),i=n(7161),o=n(480),a=n(3273),c=n(5341),u=n(701),l=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,n)=>{"use strict";var r=n(701),s=n(2769),i=n(2137),o=n(4275),a=n(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},4317:(e,t,n)=>{"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,n)=>{"use strict";var r=n(6100),s=n(701),i=n(3273),o=n(1005).indexOf,a=n(5241),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},8364:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683);e.exports=Object.keys||function(e){return r(e,s)}},7161:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3491:(e,t,n)=>{"use strict";var r=n(3574),s=n(7235),i=n(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return s(n),i(r),t?e(n,r):n.__proto__=r,n}}():void 0)},9559:(e,t,n)=>{"use strict";var r=n(4904),s=n(8407);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,n)=>{"use strict";var r=n(4713),s=n(2769),i=n(262),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,n)=>{"use strict";var r=n(1003),s=n(6100),i=n(5116),o=n(7313),a=n(7235),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,n)=>{"use strict";var r=n(9989).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5426:(e,t,n)=>{"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,n)=>{"use strict";var r=n(4904),s=n(9989).f,i=n(3999),o=n(701),a=n(9559),c=n(8655)("toStringTag");e.exports=function(e,t,n,u){var l=n?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a))}},4275:(e,t,n)=>{"use strict";var r=n(8141),s=n(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,n)=>{"use strict";var r=n(1063),s=n(7525),i="__core-js_shared__",o=r[i]||s(i,{});e.exports=o},8141:(e,t,n)=>{"use strict";var r=n(4871),s=n(3753);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.35.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.35.1/LICENSE",source:"https://github.com/zloirock/core-js"})},5571:(e,t,n)=>{"use strict";var r=n(6100),s=n(9903),i=n(1139),o=n(5426),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,n)=>{"use strict";var r=n(4432),s=n(1203),i=n(1063).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,n)=>{"use strict";var r=n(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},3273:(e,t,n)=>{"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},9903:(e,t,n)=>{"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,n)=>{"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,n)=>{"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},493:(e,t,n)=>{"use strict";var r=n(4713),s=n(262),i=n(6281),o=n(4674),a=n(9258),c=n(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,n)=>{"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},4904:(e,t,n)=>{"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,n)=>{"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,n)=>{"use strict";var r=n(6100),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,n)=>{"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,n)=>{"use strict";var r=n(1063),s=n(2769),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,n)=>{"use strict";var r=n(1063),s=n(8141),i=n(701),o=n(1268),a=n(4603),c=n(7460),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,n)=>{"use strict";var r=n(1003),s=n(701),i=n(3999),o=n(4317),a=n(3491),c=n(7464),u=n(5516),l=n(3507),p=n(4879),h=n(8148),m=n(4279),f=n(5024),d=n(4871);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),w=v[v.length-1],b=r.apply(null,v);if(b){var E=b.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return b;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new b(e):new b;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==w?a?a(S,x):c(S,x,{name:!0}):f&&g in b&&(u(S,b,g),u(S,b,"prepareStackTrace")),c(S,b),!d)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},6138:(e,t,n)=>{"use strict";var r=n(9098),s=n(1003),i=n(7013),o=n(1203),a=n(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,n)=>{"use strict";var r=n(9098),s=n(4317),i=n(3671),o=n(3491),a=n(7464),c=n(5780),u=n(3999),l=n(480),p=n(8148),h=n(4279),m=n(208),f=n(4879),d=n(8655)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,n)=>{"use strict";n(3085)},9828:(e,t,n)=>{"use strict";var r=n(3273),s=n(8137),i=n(6625),o=n(8417),a=n(9989).f,c=n(164),u=n(877),l=n(4871),p=n(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=void 0,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,n)=>{"use strict";var r=n(9098),s=n(1063),i=n(7013),o=n(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};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,n)=>{"use strict";var r=n(5571).charAt,s=n(1139),i=n(8417),o=n(164),a=n(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,n)=>{"use strict";n(5695)},85:(e,t,n)=>{"use strict";n(9828);var r=n(1100),s=n(1063),i=n(1811),o=n(6625);for(var a in r)i(s[a],a),o[a]=o.Array},239:(e,t,n)=>{"use strict";n(5442);var r=n(6656);n(85),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>_p,detectionRegExp:()=>dp,mediaTypes:()=>fp,namespace:()=>yp,parse:()=>gp});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>us,includesClasses:()=>ps,includesSymbols:()=>ls,isAnnotationElement:()=>ss,isArrayElement:()=>es,isBooleanElement:()=>Xr,isCommentElement:()=>is,isElement:()=>Wr,isLinkElement:()=>ns,isMemberElement:()=>ts,isNullElement:()=>Zr,isNumberElement:()=>Yr,isObjectElement:()=>Qr,isParseResultElement:()=>os,isPrimitiveElement:()=>cs,isRefElement:()=>rs,isSourceMapElement:()=>as,isStringElement:()=>Jr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>va,isJSONSchemaElement:()=>ya,isLinkDescriptionElement:()=>ba,isMediaElement:()=>wa});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>hc,isSwaggerExtension:()=>pc});var i={};n.r(i),n.d(i,{isContactElement:()=>Jc,isDefinitionsElement:()=>mu,isExampleElement:()=>iu,isExternalDocumentationElement:()=>Qc,isHeaderElement:()=>ou,isHeadersElement:()=>su,isInfoElement:()=>Kc,isItemsElement:()=>tu,isLicenseElement:()=>Wc,isOperationElement:()=>Xc,isParameterElement:()=>eu,isParametersDefinitionsElement:()=>fu,isPathItemElement:()=>Zc,isPathsElement:()=>Yc,isReferenceElement:()=>cu,isResponseElement:()=>ru,isResponsesDefinitionsElement:()=>pu,isResponsesElement:()=>nu,isSchemaElement:()=>uu,isScopesElement:()=>_u,isSecurityDefinitionsElement:()=>hu,isSecurityRequirementElement:()=>gu,isSecuritySchemeElement:()=>du,isSwaggerElement:()=>Hc,isSwaggerVersionElement:()=>Gc,isTagElement:()=>au,isXmlElement:()=>lu});const o={"@@functional/placeholder":!0};function a(e){return e===o}function c(e){return function t(n){return 0===arguments.length||a(n)?t:e.apply(this,arguments)}}function u(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return a(n)?t:c((function(t){return e(n,t)}));default:return a(n)&&a(r)?t:a(n)?c((function(t){return e(t,r)})):a(r)?c((function(t){return e(n,t)})):e(n,r)}}}function l(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return a(n)?t:u((function(t,r){return e(n,t,r)}));case 2:return a(n)&&a(r)?t:a(n)?u((function(t,n){return e(t,r,n)})):a(r)?u((function(t,r){return e(n,t,r)})):c((function(t){return e(n,r,t)}));default:return a(n)&&a(r)&&a(s)?t:a(n)&&a(r)?u((function(t,n){return e(t,n,s)})):a(n)&&a(s)?u((function(t,n){return e(t,r,n)})):a(r)&&a(s)?u((function(t,r){return e(n,t,r)})):a(n)?c((function(t){return e(t,r,s)})):a(r)?c((function(t){return e(n,t,s)})):a(s)?c((function(t){return e(n,r,t)})):e(n,r,s)}}}const p=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return e<<0===e};function m(e){return"[object String]"===Object.prototype.toString.call(e)}function f(e,t){var n=e<0?t.length+e:e;return m(t)?t.charAt(n):t[n]}const d=u((function(e,t){if(null!=t)return h(e)?f(e,t):t[e]}));const _=l((function(e,t,n){return p(e,d(t,n))}));var g=u((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const y=g;function v(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const b=c((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!m(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var E="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function x(e,t,n){return function(r,s,i){if(b(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[E])return n(r,s,i[E]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function S(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function P(e,t,n,r){return n[r](e,t)}const j=x(v,P,S);function O(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!w(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function A(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}const k=function(){return this.xf["@@transducer/init"]()},I=function(e){return this.xf["@@transducer/result"](e)};var M=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=function(e){return function(t){return new M(e,t)}};function T(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function $(e,t,n){return function(){for(var r=[],s=0,i=e,o=0,c=!1;o<t.length||s<arguments.length;){var u;o<t.length&&(!a(t[o])||s>=arguments.length)?u=t[o]:(u=arguments[s],s+=1),r[o]=u,a(u)?c=!0:i-=1,o+=1}return!c&&i<=0?n.apply(this,r):T(Math.max(0,i),$(e,r,n))}}const R=u((function(e,t){return 1===e?c(t):T(e,$(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var C=Object.prototype.toString;const q=function(){return"[object Arguments]"===C.call(arguments)?function(e){return"[object Arguments]"===C.call(e)}:function(e){return F("callee",e)}}();var D=!{toString:null}.propertyIsEnumerable("toString"),L=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],V=function(){return arguments.propertyIsEnumerable("length")}(),B=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},U="function"!=typeof Object.keys||V?c((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=V&&q(e);for(t in e)!F(t,e)||s&&"length"===t||(r[r.length]=t);if(D)for(n=L.length-1;n>=0;)F(t=L[n],e)&&!B(r,t)&&(r[r.length]=t),n-=1;return r})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const z=U;const H=u(O(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return R(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return v((function(n,r){return n[r]=e(t[r]),n}),{},z(t));default:return A(e,t)}})));const G=u((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(n){return e(n)(t(n))}:j((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,H(n,t))}),[],e)}));const K=u((function(e,t){var n=R(e,t);return R(e,(function(){return v(G,H(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=c((function(e){return K(e.length,e)}));const J=W(c((function(e){return!e})));function Y(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Z(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}const X="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const Q=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function ee(e,t,n,r){var s=Y(e);function i(e,t){return te(e,t,n.slice(),r.slice())}return!Z((function(e,t){return!Z(i,t,e)}),Y(t),s)}function te(e,t,n,r){if(X(e,t))return!0;var s,i,o=Q(e);if(o!==Q(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!X(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!X(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&ee(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&ee(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=z(e);if(c.length!==z(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!F(p,t)||!te(t[p],e[p],u,l))return!1;a-=1}return!0}const ne=u((function(e,t){return te(e,t,[],[])}));const re=c((function(e){return function(){return e}}));const se=re(void 0);const ie=ne(se());const oe=J(ie);var ae=n(8326);function ce(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const le=u((function(e,t){return T(e.length,(function(){return e.apply(t,arguments)}))}));function pe(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function he(e,t,n,r){return e["@@transducer/result"](n[r](le(e["@@transducer/step"],e),t))}const me=x(ue,he,pe);var fe=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function de(e){return new fe(e)}const _e=l((function(e,t,n){return me("function"==typeof e?de(e):e,t,n)}));function ge(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const ye=l(ge("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const ve=c(ge("tail",ye(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return T(arguments[0].length,_e(ce,arguments[0],ve(arguments)))}var be=function(e,t){switch(arguments.length){case 0:return be;case 1:return function t(n){return 0===arguments.length?t:X(e,n)};default:return X(e,t)}};const Ee=be;function xe(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(ne(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function Se(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 Pe=function(e){return(e<10?"0":"")+e};const je="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Pe(e.getUTCMonth()+1)+"-"+Pe(e.getUTCDate())+"T"+Pe(e.getUTCHours())+":"+Pe(e.getUTCMinutes())+":"+Pe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function ke(e){return function(t){return new Ae(e,t)}}const Ie=u(O(["fantasy-land/filter","filter"],ke,(function(e,t){return Oe(t)?v((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},z(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const Me=u((function(e,t){return Ie((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function Ne(e,t){var n=function(n){var r=t.concat([e]);return xe(n,r)?"<Circular>":Ne(n,r)},r=function(e,t){return A((function(t){return Se(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(n,e).join(", ")+"))";case"[object Array]":return"["+A(n,e).concat(r(e,Me((function(e){return/^\d+$/.test(e)}),z(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):Se(je(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":Se(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,z(e)).join(", ")+"}"}}const Te=c((function(e){return Ne(e,[])}));function $e(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var s=e[r];n=h(s)?f(s,n):n[s]}return n}const Re=l((function(e,t,n){return e($e(t,n))}));function Fe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ce=u((function(e,t){return e&&t}));const qe=u((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Ce)(e,t)}));const De=ne(null);const Le=J(De);function Ve(e){return Ve="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},Ve(e)}const Be=function(e){return"object"===Ve(e)};const Ue=R(1,qe(Le,Be));const ze=u((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Te(e),o=n(i,Te(t));return void 0!==o&&o===i?e:t}));const He=u((function(e,t){return H(d(e),t)}));const Ge=c((function(e){return R(_e(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ke=R(1,we(Q,Ee("GeneratorFunction")));const We=R(1,we(Q,Ee("AsyncFunction")));const Je=Ge([we(Q,Ee("Function")),Ke,We]);var Ye=we(Q,Ee("Object")),Ze=we(Te,ne(Te(Object))),Xe=Re(qe(Je,Ze),["constructor"]);const Qe=R(1,(function(e){if(!Ue(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!De(t)||Xe(t)}));class et extends ae.Om{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const tt=et;class nt extends ae.Om{constructor(e,t,n){super(e,t,n),this.element="comment"}}const rt=nt;class st extends ae.wE{constructor(e,t,n){super(e,t,n),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(ie(t))return!1;const n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const it=st;class ot extends ae.wE{constructor(e,t,n){super(e,t,n),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 ae.wE([e.start.row,e.start.column,e.start.char]),n=new ae.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const at=ot;class ct extends ae.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it),this.register("sourceMap",at)}}const ut=new ct,lt=e=>{const t=new ct;return Qe(e)&&t.use(e),t},pt=ut;const ht=R(1,we(Q,Ee("String"))),mt=n.p+"23aac571c96605dc25219087ad291441.wasm",ft=globalThis.fetch;Je(ft)&&(globalThis.fetch=(...e)=>ht(e[0])&&e[0].endsWith("tree-sitter.wasm")?ft.apply(globalThis,[mt,ve(e)]):ft.apply(globalThis,e));var dt=n(3833),_t=n(1212);const gt=class extends _t{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class yt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(gt,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const vt=yt,wt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let bt=null,Et=null;const xt=async e=>{if(null===bt&&null===Et)Et=dt.init().then((()=>dt.Language.load(wt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Et=null})),bt=await Et;else if(null===bt&&null!==Et)bt=await Et;else if(null===bt)throw new vt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return bt.parse(e)};function St(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function Pt(e,t,n){if(n||(n=new jt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?Pt(e[i],!0,n):e[i]);return r};switch(Q(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return St(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var jt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){if((i=n[r])[0]===e)return i[1]}else{var s=this.hash(e);if(n=this.map[s])for(r=0;r<n.length;r+=1){var i;if((i=n[r])[0]===e)return i[1]}}},e}();const Ot=c((function(e){return null!=e&&"function"==typeof e.clone?e.clone():Pt(e,!0)}));const At=class extends vt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}};const kt=class extends At{};const It=class extends kt{};const Mt=class extends It{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Nt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:n=!1}={}){this.type=this.constructor.type,this.isMissing=n,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}};let Tt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const $t=class extends Nt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...n}){super({...n}),this.explicitName=e,this.kind=t}};const Rt=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ft=class extends Rt{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Tt.Mapping}};const Ct=class extends Rt{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Tt.Sequence}};const qt=class extends Rt{static uri="tag:yaml.org,2002:str"};const Dt=l((function(e,t,n){return p(e,$e(t,n))}));const Lt=c((function(e){return R(e.length,e)}));var Vt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Bt=c("function"==typeof String.prototype.trim&&!Vt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Vt+"]["+Vt+"]*"),n=new RegExp("["+Vt+"]["+Vt+"]*$");return e.replace(t,"").replace(n,"")});const Ut=u((function(e,t){return R(e+1,(function(){var n=arguments[e];if(null!=n&&Fe(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Te(n)+' does not have a method named "'+t+'"')}))}));const zt=Ut(1,"split");const Ht=Ut(1,"join");const Gt=c((function(e){return m(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Kt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Gt(arguments))}const Wt=R(4,(function(e,t,n,r){return me(e("function"==typeof t?de(t):t),n,r)}));const Jt=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(Te(t)+" is not an array")}if(m(e)){if(m(t))return e+t;throw new TypeError(Te(t)+" is not a string")}if(null!=e&&Fe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Fe(e.concat))return e.concat(t);throw new TypeError(Te(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Yt=ne("");const Zt=u((function(e,t){return R(_e(ze,0,He("length",t)),(function(){var n=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,n)}),t))}))}));function Xt(e){return e}const Qt=c(Xt);const en=R(1,we(Q,Ee("Number")));var tn=qe(en,isFinite);var nn=R(1,tn);const rn=Je(Number.isFinite)?R(1,le(Number.isFinite,Number)):nn;var sn=qe(rn,Zt(ne,[Math.floor,Qt]));var on=R(1,sn);const an=Je(Number.isInteger)?R(1,le(Number.isInteger,Number)):on;const cn=c((function(e){return R(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const un=J(rn);const ln=R(1,qe(en,u((function(e,t){return e>t}))(0)));var pn=Lt((function(e,t){var n=Number(t);if(n!==t&&(n=0),ln(n))throw new RangeError("repeat count must be non-negative");if(un(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),hn=cn(Ut(1,"repeat"));const mn=Je(String.prototype.repeat)?hn:pn;const fn=l((function(e,t,n){return n.replace(e,t)}));var dn=fn(/[\s\uFEFF\xA0]+$/,""),_n=Ut(0,"trimEnd");const gn=Je(String.prototype.trimEnd)?_n:dn;var yn=fn(/^[\s\uFEFF\xA0]+/,""),vn=Ut(0,"trimStart");const wn=Je(String.prototype.trimStart)?vn:yn;var bn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,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 En(e){return function(t){return new bn(e,t)}}const xn=u(O(["dropWhile"],En,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ye(n,1/0,t)})));const Sn=cn(u(xe));const Pn=Lt((function(e,t){return we(zt(""),xn(Sn(e)),Ht(""))(t)}));const jn=cn(Jt);var On=n(6850);const An=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,kn=e=>{const t=(e=>{const t=e.match(An),n=Dt("",["groups","indentation"],t);return Yt(n)?void 0:parseInt(n,10)})(e);if(an(t))return mn(" ",t);const n=Dt("",[1],e.split("\n")),r=Dt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return mn(" ",r)},In=e=>{const t=e.match(An),n=Dt("",["groups","chomping"],t);return Yt(n)?void 0:n},Mn=(e,t)=>ie(e)?`${gn(t)}\n`:"-"===e?gn(t):t,Nn=e=>e.replace(/\r\n/g,"\n"),Tn=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),$n=Lt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Rn=we(Nn,Bt,Tn,zt("\n"),H(wn),Ht("\n")),Fn=we(Nn,Bt,Tn,zt("\n"),H(wn),Ht("\n"),$n("'")),Cn=we(Nn,Bt,(e=>e.replace(/\\\n\s*/g,"")),Tn,On.MH,zt("\n"),H(wn),Ht("\n"),$n('"'));let qn=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Dn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ln=class{static test(e){return e.tag.kind===Tt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===qn.Plain?t=Rn(e.content):e.style===qn.SingleQuoted?t=Fn(e.content):e.style===qn.DoubleQuoted?t=Cn(e.content):e.style===qn.Literal?t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ve(r.split("\n")),i=Kt(H(Pn(t)),H(jn("\n"))),o=Wt(i,Jt,"",s);return Mn(n,o)})(e.content):e.style===qn.Folded&&(t=(e=>{const t=kn(e),n=In(e),r=Nn(e),s=ve(r.split("\n")),i=Kt(H(Pn(t)),H(jn("\n"))),o=Wt(i,Jt,"",s),a=Tn(o);return Mn(n,a)})(e.content)),n.content=t,n}static resolve(e){return e}};const Vn=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ft),this.registerTag(new Ct),this.registerTag(new qt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Tt.Scalar?t=qt.uri:e.tag.kind===Tt.Sequence?t=Ct.uri:e.tag.kind===Tt.Mapping&&(t=Ft.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let n=e;Ln.test(e)&&(n=Ln.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Mt(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),node:e.clone()});if(!r.test(n))throw new Mt(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Ot(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}};const Bn=class extends Rt{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}};const Un=class extends Rt{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),n=e.clone();return n.content=t,n}};const zn=class extends Rt{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),n=e.clone();return n.content=t,n}};const Hn=class extends Rt{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Gn=class extends Vn{constructor(){super(),this.registerTag(new Bn,!0),this.registerTag(new Un,!0),this.registerTag(new zn,!0),this.registerTag(new Hn,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Tt.Sequence)t=Ct.uri;else if(e.tag.kind===Tt.Mapping)t=Ft.uri;else if(e.tag.kind===Tt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}};const Kn=class extends Nt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:n,styleGroup:r,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}};const Wn=class extends Kn{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Jn=class extends kt{},Yn=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Zn=e=>Yn("mapping",e),Xn=e=>Yn("sequence",e),Qn=e=>Yn("keyValuePair",e),er=e=>Yn("scalar",e),tr=e=>Yn("alias",e);const nr=class{addAnchor(e){if(!(e=>Yn("anchor",e))(e.anchor))throw new Jn("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Wn({content:e.content,style:qn.Plain,styleGroup:Dn.Flow})}},rr=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},sr={},ir=e=>null==e?void 0:e.type,or=e=>"string"==typeof ir(e),ar=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),cr=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,...l){let p=u,h=!1;for(let m=0;m<e.length;m+=1)if(c[m]===a){const a=t(e[m],n(p),!1);if("function"==typeof a){const t=a.call(e[m],p,...l);if("function"==typeof(null==t?void 0:t.then))throw new At("Async visitor not supported in sync mode",{visitor:e[m],visitFn:a});if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=a.call(e[u],s,...o);if("function"==typeof(null==t?void 0:t.then))throw new At("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}};cr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=rr,nodeTypeGetter:n=ir,breakSymbol:r=sr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async 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],n(p),!1);if("function"==typeof a){const t=await a.call(e[m],p,...l);if(t===i)c[m]=u;else if(t===r)c[m]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;p=t,h=!0}}}}return h?p:void 0},async leave(s,...o){for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(s),!0);if("function"==typeof a){const t=await a.call(e[u],s,...o);if(t===r)c[u]=r;else if(void 0!==t&&t!==i)return t}}else c[u]===s&&(c[u]=a)}}};const ur=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const S=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),S)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let P;if(!Array.isArray(v)){var E;if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;P=i.call(t,v,n,f,w,b)}if("function"==typeof(null===(E=P)||void 0===E?void 0:E.then))throw new At("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===s)break;if(P===o){if(!e){w.pop();continue}}else if(void 0!==P&&(y.push([n,P]),!e)){if(!u(P)){w.pop();continue}v=P}}var x;if(void 0===P&&S&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(x=h[c(v)])&&void 0!==x?x:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};ur[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=sr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=rr,nodeTypeGetter:c=ir,nodePredicate:u=or,nodeCloneFn:l=ar,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new At(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;S=await i.call(t,v,n,f,w,b)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){w.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};class lr{static type="point";type=lr.type;row;column;char;constructor({row:e,column:t,char:n}){this.row=e,this.column=t,this.char=n}}class pr{static type="position";type=pr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const hr=pr;const mr=class extends Nt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class fr extends Nt{static type="stream"}Object.defineProperty(fr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Yn("document",e))(e)||(e=>Yn("comment",e))(e))):[]},enumerable:!0});const dr=fr;const _r=c((function(e){return f(0,e)}));const gr=class extends Nt{static type="parseResult";get rootNode(){return _r(this.children)}};const yr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)F(i,s)&&(t[i]=s[i]);n+=1}return t};const vr=u((function(e,t){return yr({},e,t)}));const wr=class extends Nt{static type="directive";name;parameters;constructor({name:e,parameters:t,...n}){super({...n}),this.name=e,this.parameters=vr({version:void 0,handle:void 0,prefix:void 0},t)}};const br=class extends Nt{static type="document"};const Er=class extends Kn{};class xr extends Er{static type="mapping"}Object.defineProperty(xr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Qn):[]},enumerable:!0});const Sr=xr;class Pr extends Nt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Pr.prototype,{key:{get(){return this.children.filter((e=>er(e)||Zn(e)||Xn(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>er(e)||Zn(e)||Xn(e)||tr(e))(t)))[0]},enumerable:!0}});const jr=Pr;class Or extends Er{static type="sequence"}Object.defineProperty(Or.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Xn(e)||Zn(e)||er(e)||tr(e))):[]},enumerable:!0});const Ar=Or;const kr=class extends Nt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ir=class extends Nt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Mr=class extends Nt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Nr=class extends Nt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...n}={}){super({...n}),this.value=e,this.isUnexpected=t}};const Tr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},$r={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Rr=e=>Array.isArray(e)||or(e);class Fr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new hr({start:t,end:n})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new mr({name:t.text,position:Fr.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,n=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Tt.Mapping:e.type.endsWith("sequence")?Tt.Sequence:Tt.Scalar,s=t?Fr.toPosition(t):void 0;return new $t({explicitName:n,kind:r,position:s})}schema;referenceManager;stream={enter:e=>{const t=Fr.toPosition(e);return new dr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new gr({children:[e]})};yaml_directive={enter:e=>{var t;const n=Fr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new wr({position:n,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Fr.toPosition(e),n=e.children[0],r=e.children[1],s=new wr({position:t,name:"%TAG",parameters:{handle:null==n?void 0:n.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Fr.toPosition(e),n=e.children[0],r=e.children[1],s=e.children[2];return new wr({position:t,name:null==n?void 0:n.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Fr.toPosition(e);return new br({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Fr.isScalar(t)||Fr.isMapping(t)||Fr.isSequence(t))return e.children;const n=new lr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Wn({content:"",anchor:Fr.kindNodeToYamlAnchor(t),tag:Fr.kindNodeToYamlTag(t),position:new hr({start:n,end:n}),styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Fr.toPosition(e),n=[...e.children];if(Fr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Fr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Sr({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Fr.toPosition(e),n=[...e.children];if(Fr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Fr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new jr({children:n,position:t,styleGroup:Dn.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children,position:t,anchor:r,tag:n,styleGroup:Dn.Block,style:qn.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Wn({content:"",tag:new $t({explicitName:"?",kind:Tt.Scalar}),position:new hr({start:t,end:t}),styleGroup:Dn.Flow,style:qn.Plain})]}};flow_sequence={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Ar({children:e.children.flat(),position:t,anchor:r,tag:n,styleGroup:Dn.Flow,style:qn.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Flow,style:qn.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Fr.toPosition(e),n=Fr.kindNodeToYamlTag(e),r=Fr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?qn.Literal:e.text.startsWith(">")?qn.Folded:qn.Plain,i=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:Dn.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new kr({content:e.text})};alias={enter:e=>{const t=new Ir({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Tr&&!e.isNamed){const t=Fr.toPosition(e),n=e.type||e.text,{isMissing:r}=e;return new Mr({value:n,position:t,isMissing:r})}}ERROR(e,t,n,r){const s=Fr.toPosition(e),i=new Nr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new gr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Fr.isKind("tag")),i=r.find(Fr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Fr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Fr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Fr.isKind("tag")),i=r.find(Fr.isKind("anchor")),o=new $t(void 0!==s?{explicitName:s.text,kind:Tt.Scalar,position:Fr.toPosition(s)}:{explicitName:"?",kind:Tt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Fr.toPosition(i)}):void 0,c=new Wn({content:"",position:new hr({start:t,end:t}),tag:o,anchor:a,styleGroup:Dn.Flow,style:qn.Plain});return this.registerAnchor(c),c}}const Cr=Fr;function qr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Dr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=k,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=qr(this.xf["@@transducer/step"](e,!1))),e},e}();function Lr(e){return function(t){return new Dr(e,t)}}const Vr=u(O(["all"],Lr,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),Br=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ur=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,zr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ae.wE)&&t.classes.includes(e),Gr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Kr=e=>e({hasMethod:Br,hasBasicElementProps:Ur,primitiveEq:zr,isElementType:Gr,hasClass:Hr}),Wr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.Hg||e(n)&&t(void 0,n))),Jr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.Om||e(n)&&t("string",n))),Yr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.kT||e(n)&&t("number",n))),Zr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.Os||e(n)&&t("null",n))),Xr=Kr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof ae.bd||e(n)&&t("boolean",n))),Qr=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ae.Sh||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),es=Kr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof ae.wE&&!(r instanceof ae.Sh)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),ts=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ae.Pr||e(r)&&t("member",r)&&n(void 0,r))),ns=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ae.Ft||e(r)&&t("link",r)&&n(void 0,r))),rs=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ae.sI||e(r)&&t("ref",r)&&n(void 0,r))),ss=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&n("array",r))),is=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rt||e(r)&&t("comment",r)&&n("string",r))),os=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&n("array",r))),as=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof at||e(r)&&t("sourceMap",r)&&n("array",r))),cs=e=>Gr("object",e)||Gr("array",e)||Gr("boolean",e)||Gr("number",e)||Gr("string",e)||Gr("null",e)||Gr("member",e),us=e=>as(e.meta.get("sourceMap")),ls=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!es(n)&&Vr(Sn(n.toValue()),e)},ps=(e,t)=>0===e.length||Vr(Sn(t.classes.toValue()),e);const hs=class extends At{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ms=class extends hs{};const fs=class extends hs{},ds=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof ae.KeyValuePair){const{key:t,value:s}=e,i=Wr(t)?ds(t,r):t,o=Wr(s)?ds(s,r):s,a=new ae.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof ae.ot){const t=e=>ds(e,r),s=[...e].map(t),i=new ae.ot(s);return n.set(e,i),i}if(e instanceof ae.G6){const t=e=>ds(e,r),s=[...e].map(t),i=new ae.G6(s);return n.set(e,i),i}if(Wr(e)){const t=ys(e);if(n.set(e,t),e.content)if(Wr(e.content))t.content=ds(e.content,r);else if(e.content instanceof ae.KeyValuePair)t.content=ds(e.content,r);else if(Array.isArray(e.content)){const n=e=>ds(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new ms("Value provided to cloneDeep function couldn't be cloned",{value:e})};ds.safe=e=>{try{return ds(e)}catch{return e}};const _s=e=>{const{key:t,value:n}=e;return new ae.KeyValuePair(t,n)},gs=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=ds(e.meta)),e.attributes.length>0&&(t._attributes=ds(e.attributes)),Wr(e.content)){const n=e.content;t.content=gs(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ae.KeyValuePair?t.content=_s(e.content):t.content=e.content;return t},ys=e=>{if(e instanceof ae.KeyValuePair)return _s(e);if(e instanceof ae.ot)return(e=>{const t=[...e];return new ae.ot(t)})(e);if(e instanceof ae.G6)return(e=>{const t=[...e];return new ae.G6(t)})(e);if(Wr(e))return gs(e);throw new fs("Value provided to cloneShallow function couldn't be cloned",{value:e})};ys.safe=e=>{try{return ys(e)}catch{return e}};const vs=e=>Qr(e)?"ObjectElement":es(e)?"ArrayElement":ts(e)?"MemberElement":Jr(e)?"StringElement":Xr(e)?"BooleanElement":Yr(e)?"NumberElement":Zr(e)?"NullElement":ns(e)?"LinkElement":rs(e)?"RefElement":void 0,ws=e=>Wr(e)?ys(e):ar(e),bs=we(vs,ht),Es={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xs=(e,t,{keyMap:n=Es,...r}={})=>ur(e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});xs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=Es,...r}={})=>ur[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:vs,nodePredicate:bs,nodeCloneFn:ws,...r});const Ss=l((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})F(r,t)&&(s[r]=F(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)F(r,n)&&!F(r,s)&&(s[r]=n[r]);return s}));const Ps=l((function e(t,n,r){return Ss((function(n,r,s){return Oe(r)&&Oe(s)?e(t,r,s):t(n,r,s)}),n,r)}));const js=u((function(e,t){return Ps((function(e,t,n){return n}),e,t)}));const Os=u($e);const As=ye(0,-1);const ks=u((function(e,t){return e.apply(this,t)}));const Is=J(Je);var Ms=c((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():w(e)?[]:m(e)?"":Oe(e)?{}:q(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 Ns=Ms;const Ts=c((function(e){return null!=e&&ne(e,Ns(e))}));const $s=R(1,Je(Array.isArray)?Array.isArray:we(Q,Ee("Array")));const Rs=qe($s,Ts);const Fs=R(3,(function(e,t,n){var r=Os(e,n),s=Os(As(e),n);if(!Is(r)&&!Rs(e)){var i=le(r,s);return ks(i,t)}})),Cs=()=>({predicates:{...e},namespace:pt}),qs={toolboxCreator:Cs,visitorOptions:{nodeTypeGetter:vs,exposeEdits:!0}},Ds=(e,t,n={})=>{if(0===t.length)return e;const r=js(qs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr(a.map(_({},"visitor")),{...i});a.forEach(Fs(["pre"],[]));const u=xs(e,c,i);return a.forEach(Fs(["post"],[])),u};Ds[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=js(qs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=cr[Symbol.for("nodejs.util.promisify.custom")],u=xs[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(_({},"visitor")),{...i});await Promise.allSettled(a.map(Fs(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(Fs(["post"],[]))),p};const Ls=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=ds(e.meta)),e.attributes.length>0&&(r.attributes=ds(e.attributes))),Ds(r,n,{toolboxCreator:Cs,visitorOptions:{nodeTypeGetter:vs}})},Vs=e=>(t,n={})=>Ls(t,{...n,Type:e});ae.Sh.refract=Vs(ae.Sh),ae.wE.refract=Vs(ae.wE),ae.Om.refract=Vs(ae.Om),ae.bd.refract=Vs(ae.bd),ae.Os.refract=Vs(ae.Os),ae.kT.refract=Vs(ae.kT),ae.Ft.refract=Vs(ae.Ft),ae.sI.refract=Vs(ae.sI),tt.refract=Vs(tt),rt.refract=Vs(rt),it.refract=Vs(it),at.refract=Vs(at);const Bs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Es},Us=e=>Wr(e)?vs(e):ir(e),zs=e=>Wr(e)||or(e)||Array.isArray(e);const Hs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new it;t._content=e.children.flat(1);const n=t.findElements(cs);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=lt()}comment(e){if(0===this.processedDocumentCount){const t=new rt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(t){const t=new tt("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return n?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ae.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ae.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new ae.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===qn.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,n=new tt(t);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}error(e,t,n,r){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new tt(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const n=new at;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)}};class Gs{cursor;constructor(e){this.cursor=e}stream(){return new Tr(this.cursor)}yaml_directive(){return new Tr(this.cursor)}tag_directive(){return new Tr(this.cursor)}reserved_directive(){return new Tr(this.cursor)}document(){return new Tr(this.cursor)}block_node(){return new Tr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Tr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Tr(this.cursor)}block_mapping_pair(){return new Tr(this.cursor)}flow_mapping(){return new Tr(this.cursor)}flow_pair(){return new Tr(this.cursor)}block_sequence(){return new Tr(this.cursor)}block_sequence_item(){return new Tr(this.cursor)}flow_sequence(){return new Tr(this.cursor)}plain_scalar(){return new Tr(this.cursor)}single_quote_scalar(){return new Tr(this.cursor)}double_quote_scalar(){return new Tr(this.cursor)}block_scalar(){return new Tr(this.cursor)}ERROR(){return new Tr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Tr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Gs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Gs(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Ks=Gs,Ws=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Ks(n),[s]=Array.from(r),i=new Cr,o=new Hs,a=new Gn,c=new nr,u=ur(s,i,{keyMap:$r,nodePredicate:Rr,state:{schema:a,sourceMap:t,referenceManager:c}});return ur(u.rootNode,o,{keyMap:Bs,nodeTypeGetter:Us,nodePredicate:zs,state:{sourceMap:t}})};class Js extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 Ys=Js;class Zs extends ae.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Xs=Zs;class Qs extends ae.Sh{constructor(e,t,n){super(e,t,n),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 ei=Qs;class ti extends ae.Sh{constructor(e,t,n){super(e,t,n),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 ni=ti;class ri extends ae.Sh{constructor(e,t,n){super(e,t,n),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 si=ri;class ii extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const oi=ii;class ai extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ci=ai;class ui extends ae.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ae.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const li=ui;class pi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 hi=pi;const mi=class extends vt{};class fi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 di=fi;class _i extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const gi=_i;class yi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 vi=yi;class wi extends ae.Sh{constructor(e,t,n){super(e,t,n),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 bi=wi;const Ei=u((function(e,t){return v((function(n,r){return n[r]=e(t[r],r,t),n}),{},z(t))}));const xi=c((function(e){return null==e}));var Si=u((function(e,t){if(0===e.length||xi(t))return!1;for(var n=t,r=0;r<e.length;){if(xi(n)||!F(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));const Pi=Si;var ji=u((function(e,t){return Pi([e],t)}));const Oi=ji;const Ai=l((function(e,t,n){return e(d(t,n))})),ki=(e,t)=>{const n=p(e,t);return Ei((e=>{if(Qe(e)&&Oi("$ref",e)&&Ai(ht,"$ref",e)){const t=Os(["$ref"],e),r=Pn("#/",t);return Os(r.split("/"),n)}return Qe(e)?ki(e,n):e}),e)};const Ii=function(){return!0},Mi=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vs(e),Ni={EphemeralObject:["content"],EphemeralArray:["content"],...Es},Ti=(e,t,{keyMap:n=Ni,...r}={})=>xs(e,t,{keyMap:n,nodeTypeGetter:Mi,nodePredicate:Ii,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ti[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Ni,...n}={})=>xs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Mi,nodePredicate:Ii,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const $i=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 Ri=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 Fi{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Ri(e.content);return this.references.set(e,t),t}};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 $i(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Jr(e.href)?e.href.toValue():""}}const Ci=e=>Wr(e)?Jr(e)||Yr(e)||Xr(e)||Zr(e)?e.toValue():Ti(e,new Fi):e,qi=e=>{const t=e.meta.length>0?ds(e.meta):void 0,n=e.attributes.length>0?ds(e.attributes):void 0;return new e.constructor(void 0,t,n)},Di=(e,t)=>t.clone&&t.isMergeableElement(e)?Ui(qi(e),e,t):e,Li=e=>"function"!=typeof e.customMetaMerge?e=>ds(e):e.customMetaMerge,Vi=e=>"function"!=typeof e.customAttributesMerge?e=>ds(e):e.customAttributesMerge,Bi={clone:!0,isMergeableElement:e=>Qr(e)||es(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>Di(e,n))),objectElementMerge:(e,t,n)=>{const r=Qr(e)?qi(e):qi(t);return Qr(e)&&e.forEach(((e,t,s)=>{const i=ys(s);i.value=Di(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=Ci(s);let a;if(Qr(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);a=ys(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Ui;const n=t.customMerge(e,t);return"function"==typeof n?n:Ui})(s,n)(r,t)}else a=ys(i),a.value=Di(t,n);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Ui(e,t,n){var r,s,i;const o={...Bi,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Bi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Bi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Bi.objectElementMerge;const a=es(t);if(!(a===es(e)))return Di(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Li(o)(e.meta,t.meta),c.attributes=Vi(o)(e.attributes,t.attributes),c}Ui.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ae.Sh:e.reduce(((e,n)=>Ui(e,n,t)),qi(e[0]))};const zi=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ui(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ui(t.attributes,e.attributes))}};const Hi=class extends zi{enter(e){return this.element=ds(e),sr}},Gi=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Ki=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Ki(n,[...t,n])},Wi=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Ki(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(s),o=Ki(s);for(let t of e){let e=Ki(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Gi(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},Ji=e=>e.filter(((t,n)=>e.indexOf(t)==n)),Yi=(e,t)=>{const n=t.map((e=>Ki(e)));let r=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},Zi=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(Yi(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==Yi(r,e)||void 0!==t[r],get:(n,r)=>(Yi(r,e)||t)[r],set(t,n,r){const s=Yi(n,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[n]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Xi=null,Qi="copy",eo="copy",to="deep",no=new WeakMap,ro=e=>no.get(e),so=(e,t)=>{var n,r;const s=Ji([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Ji([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},io=(e,t)=>{var n,r,s,i;return{property:so(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:so(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},oo=(e,t)=>{var n,r,s,i,o,a;return{class:Ji([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:io(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:io(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},ao=new Map,co=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...Ki(e.prototype).map((e=>e.constructor)),...null!==(t=ro(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>ao.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>oo(e,t)))},uo=e=>{let t=ao.get(e);return t||(t={},ao.set(e,t)),t};function lo(...e){var t,n,r;const s=e.map((e=>e.prototype)),i=Xi;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t={[i]:function(...t){for(let n of e)n.apply(this,t)}};s.push(t)}function o(...t){for(const n of e)Gi(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===eo?Wi(s,o):(a=s,c=o,Zi([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Qi?Wi(e,null,["prototype"]):Zi(e,Function.prototype));let u=o;if("none"!==to){const s="deep"===to?co(...e):((...e)=>{const t=e.map((e=>uo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>oo(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}po(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),po(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,no.set(l,p),u}const po=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const ho=u((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}));const mo=class extends zi{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return ho(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Os(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Je,["visitors",...e],this.specObj)?Os(["visitors",...e],this.specObj):Os(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof Hi&&(null==r?void 0:r.constructor)===Hi?ds(t):(xs(t,r,n),r.element)}};const fo=class extends mo{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Ci(r))&&!this.ignoredFields.includes(Ci(r))){const n=this.toRefractedElement([...t,"fixedFields",Ci(r)],e),i=new ae.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}};class _o extends(lo(fo,Hi)){constructor(e){super(e),this.element=new di,this.specPath=re(["document","objects","JSONSchema"])}}const go=_o;const yo=class{parent;constructor({parent:e}){this.parent=e}},vo=e=>Qr(e)&&e.hasKey("$ref");class wo extends(lo(mo,yo,Hi)){ObjectElement(e){const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),sr}ArrayElement(e){return this.element=new ae.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const bo=wo;const Eo=class extends Hi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const xo=c((function(e){return R(_e(ze,0,He("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const So=c((function(e){return!Ts(e)}));const Po=u((function(e,t){return e||t}));var jo=J(R(1,qe(Le,u((function(e,t){return Fe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(Po)(e,t)}))(Be,Je))));const Oo=xo([ht,jo,So]);const Ao=function(){return!1};const ko=class extends mo{specPath;ignoredFields;fieldPatternPredicate=Ao;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Ci(t))&&this.fieldPatternPredicate(Ci(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new ae.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}};const Io=class extends ko{constructor(e){super(e),this.fieldPatternPredicate=Oo}};class Mo extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const No=Mo;class To extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const $o=To;class Ro extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Fo=Ro;const Co=class extends Hi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const qo=class extends Hi{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class Do extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Lo=Do;class Vo extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Bo=Vo;class Uo extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const zo=Uo;class Ho extends(lo(Io,yo,Hi)){constructor(e){super(e),this.element=new ae.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Go=Ho;class Ko extends(lo(mo,yo,Hi)){constructor(e){super(e),this.element=new ae.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Wo=Ko;class Jo extends(lo(fo,Hi)){constructor(e){super(e),this.element=new gi,this.specPath=re(["document","objects","JSONReference"])}ObjectElement(e){const t=fo.prototype.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Yo=Jo;const Zo=class extends Hi{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Xo=l((function(e,t,n){return R(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Qo=c((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var ea=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ta=ea;const na=c(qr);const ra=J(xi);const sa=qe($s,So);function ia(e){return function(e){if(Array.isArray(e))return oa(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 oa(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return oa(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 oa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var aa=we(ta(Qo((function(e,t){return e.length>t.length}))),_r,d("length")),ca=Lt((function(e,t,n){var r=n.apply(void 0,ia(e));return ra(r)?na(r):t}));const ua=Xo(sa,(function(e){var t=aa(e);return R(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return _e(ca(n),void 0,e)}))}),se);const la=class extends mo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Xo(e,re(t),se))),n=ua(t)(e);return this.element=this.toRefractedElement(n,e),sr}};const pa=class extends la{constructor(e){super(e),this.alternator=[{predicate:vo,specPath:["document","objects","JSONReference"]},{predicate:Ii,specPath:["document","objects","JSONSchema"]}]}};class ha extends(lo(fo,Hi)){constructor(e){super(e),this.element=new vi,this.specPath=re(["document","objects","Media"])}}const ma=ha;class fa extends(lo(fo,Hi)){constructor(e){super(e),this.element=new bi,this.specPath=re(["document","objects","LinkDescription"])}}const da={visitors:{value:Hi,JSONSchemaOrJSONReferenceVisitor:pa,document:{objects:{JSONSchema:{$visitor:go,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:pa,items:bo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Eo,properties:No,additionalProperties:pa,patternProperties:$o,dependencies:Fo,enum:Co,type:qo,allOf:Lo,anyOf:Bo,oneOf:zo,not:pa,definitions:Go,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Wo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Yo,fixedFields:{$ref:Zo}},Media:{$visitor:ma,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:fa,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:pa,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:pa}}}}}},_a=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ga={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Es},ya=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof di||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),va=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof gi||e(r)&&t("JSONReference",r)&&n("object",r))),wa=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof vi||e(r)&&t("media",r)&&n("object",r))),ba=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof bi||e(r)&&t("linkDescription",r)&&n("object",r))),Ea={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",di),t.register("jSONReference",gi),t.register("media",vi),t.register("linkDescription",bi),t}},xa=()=>{const e=lt(Ea);return{predicates:{...t,isStringElement:Jr},namespace:e}},Sa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=da}={})=>{const s=(0,ae.e)(e),i=ki(r),o=new(Os(t,i))({specObj:i});return xs(s,o),Ds(o.element,n,{toolboxCreator:xa,visitorOptions:{keyMap:ga,nodeTypeGetter:_a}})},Pa=e=>(t,n={})=>Sa(t,{specPath:e,...n});di.refract=Pa(["visitors","document","objects","JSONSchema","$visitor"]),gi.refract=Pa(["visitors","document","objects","JSONReference","$visitor"]),vi.refract=Pa(["visitors","document","objects","Media","$visitor"]),bi.refract=Pa(["visitors","document","objects","LinkDescription","$visitor"]);const ja=class extends di{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new mi("idProp setter in Parameter class is not not supported.")}get $schema(){throw new mi("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new mi("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new mi("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new mi("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new mi("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new mi("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new mi("properties getter in Parameter class is not not supported.")}set properties(e){throw new mi("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new mi("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new mi("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new mi("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new mi("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Parameter class is not not supported.")}get not(){throw new mi("not getter in Parameter class is not not supported.")}set not(e){throw new mi("not setter in Parameter class is not not supported.")}get definitions(){throw new mi("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new mi("definitions setter in Parameter class is not not supported.")}get title(){throw new mi("title getter in Parameter class is not not supported.")}set title(e){throw new mi("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new mi("base getter in Parameter class is not not supported.")}set base(e){throw new mi("base setter in Parameter class is not not supported.")}get links(){throw new mi("links getter in Parameter class is not not supported.")}set links(e){throw new mi("links setter in Parameter class is not not supported.")}get media(){throw new mi("media getter in Parameter class is not not supported.")}set media(e){throw new mi("media setter in Parameter class is not not supported.")}get readOnly(){throw new mi("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new mi("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Oa=class extends di{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Items class is not not supported.")}set idProp(e){throw new mi("idProp setter in Items class is not not supported.")}get $schema(){throw new mi("$schema getter in Items class is not not supported.")}set $schema(e){throw new mi("$schema setter in Items class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new mi("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new mi("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new mi("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new mi("minProperties setter in Items class is not not supported.")}get required(){throw new mi("required getter in Items class is not not supported.")}set required(e){throw new mi("required setter in Items class is not not supported.")}get properties(){throw new mi("properties getter in Items class is not not supported.")}set properties(e){throw new mi("properties setter in Items class is not not supported.")}get additionalProperties(){throw new mi("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new mi("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new mi("allOf getter in Items class is not not supported.")}set allOf(e){throw new mi("allOf setter in Items class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Items class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Items class is not not supported.")}get not(){throw new mi("not getter in Items class is not not supported.")}set not(e){throw new mi("not setter in Items class is not not supported.")}get definitions(){throw new mi("definitions getter in Items class is not not supported.")}set definitions(e){throw new mi("definitions setter in Items class is not not supported.")}get title(){throw new mi("title getter in Items class is not not supported.")}set title(e){throw new mi("title setter in Items class is not not supported.")}get description(){throw new mi("description getter in Items class is not not supported.")}set description(e){throw new mi("description setter in Items class is not not supported.")}get base(){throw new mi("base getter in Items class is not not supported.")}set base(e){throw new mi("base setter in Items class is not not supported.")}get links(){throw new mi("links getter in Items class is not not supported.")}set links(e){throw new mi("links setter in Items class is not not supported.")}get media(){throw new mi("media getter in Items class is not not supported.")}set media(e){throw new mi("media setter in Items class is not not supported.")}get readOnly(){throw new mi("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new mi("readOnly setter in Items class is not not supported.")}};class Aa extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ka=Aa;class Ia extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const Ma=Ia;class Na extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const Ta=Na;class $a extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const Ra=$a;const Fa=class extends di{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Header class is not not supported.")}set idProp(e){throw new mi("idProp setter in Header class is not not supported.")}get $schema(){throw new mi("$schema getter in Header class is not not supported.")}set $schema(e){throw new mi("$schema setter in Header class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new mi("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new mi("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new mi("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new mi("minProperties setter in Header class is not not supported.")}get required(){throw new mi("required getter in Header class is not not supported.")}set required(e){throw new mi("required setter in Header class is not not supported.")}get properties(){throw new mi("properties getter in Header class is not not supported.")}set properties(e){throw new mi("properties setter in Header class is not not supported.")}get additionalProperties(){throw new mi("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new mi("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new mi("allOf getter in Header class is not not supported.")}set allOf(e){throw new mi("allOf setter in Header class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Header class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Header class is not not supported.")}get not(){throw new mi("not getter in Header class is not not supported.")}set not(e){throw new mi("not setter in Header class is not not supported.")}get definitions(){throw new mi("definitions getter in Header class is not not supported.")}set definitions(e){throw new mi("definitions setter in Header class is not not supported.")}get title(){throw new mi("title getter in Header class is not not supported.")}set title(e){throw new mi("title setter in Header class is not not supported.")}get base(){throw new mi("base getter in Header class is not not supported.")}set base(e){throw new mi("base setter in Header class is not not supported.")}get links(){throw new mi("links getter in Header class is not not supported.")}set links(e){throw new mi("links setter in Header class is not not supported.")}get media(){throw new mi("media getter in Header class is not not supported.")}set media(e){throw new mi("media setter in Header class is not not supported.")}get readOnly(){throw new mi("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new mi("readOnly setter in Header class is not not supported.")}};class Ca extends ae.Sh{constructor(e,t,n){super(e,t,n),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 qa=Ca;class Da extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const La=Da;const Va=class extends di{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new mi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new mi("idProp setter in Schema class is not not supported.")}get $schema(){throw new mi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new mi("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new mi("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new mi("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new mi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new mi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new mi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new mi("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new mi("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new mi("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new mi("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new mi("oneOf setter in Schema class is not not supported.")}get not(){throw new mi("not getter in Schema class is not not supported.")}set not(e){throw new mi("not setter in Schema class is not not supported.")}get definitions(){throw new mi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new mi("definitions setter in Schema class is not not supported.")}get base(){throw new mi("base getter in Schema class is not not supported.")}set base(e){throw new mi("base setter in Schema class is not not supported.")}get links(){throw new mi("links getter in Schema class is not not supported.")}set links(e){throw new mi("links setter in Schema class is not not supported.")}get media(){throw new mi("media getter in Schema class is not not supported.")}set media(e){throw new mi("media setter in Schema class is not not supported.")}};class Ba extends ae.Sh{constructor(e,t,n){super(e,t,n),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 Ua=Ba;class za extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const Ha=za;class Ga extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const Ka=Ga;class Wa extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const Ja=Wa;class Ya extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Za=Ya;class Xa extends ae.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Qa=Xa;class ec extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const tc=ec;class nc extends ae.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const rc=nc;const sc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Ui(t.meta,e.meta),us(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Ui(t.attributes,e.attributes))}};const ic=class extends sc{enter(e){return this.element=ds(e),sr}};const oc=class extends sc{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return ho(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Os(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Re(Je,["visitors",...e],this.specObj)?Os(["visitors",...e],this.specObj):Os(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof ic&&(null==r?void 0:r.constructor)===ic?ds(t):(xs(t,r,n),r.element)}};var ac=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=k,e.prototype["@@transducer/result"]=I,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?qr(n):n},e}();function cc(e){return function(t){return new ac(e,t)}}const uc=u(O(["take"],cc,(function(e,t){return ye(0,e<0?1/0:e,t)})));const lc=u((function(e,t){return ne(uc(e.length,t),e)})),pc=e=>Jr(e.key)&&lc("x-",Ci(e.key)),hc=e=>Qr(e)&&e.hasKey("$ref");const mc=class extends oc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=pc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Jr(r)&&n.includes(Ci(r))&&!this.ignoredFields.includes(Ci(r))){const n=this.toRefractedElement([...t,"fixedFields",Ci(r)],e),i=new ae.Pr(ds(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ci(r))||this.element.content.push(ds(s))})),this.copyMetaAndAttributes(e,this.element),sr}};class fc extends(lo(mc,ic)){constructor(e){super(e),this.element=new Ys,this.specPath=re(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const dc=fc;class _c extends(lo(oc,ic)){StringElement(e){const t=new Xs(Ci(e));return this.copyMetaAndAttributes(e,t),this.element=t,sr}}const gc=_c;const yc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const vc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class wc extends ae.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(wc.primaryClass)}}const bc=wc;const Ec=class extends ic{constructor(e){super(e),this.element=new bc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class xc extends ae.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(xc.primaryClass)}}const Sc=xc;const Pc=class extends ic{constructor(e){super(e),this.element=new Sc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class jc extends ae.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(jc.primaryClass)}}const Oc=jc;const Ac=class extends ic{constructor(e){super(e),this.element=new Oc}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class kc extends ae.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(kc.primaryClass),this.classes.push("security")}}const Ic=kc;class Mc extends(lo(oc,ic)){constructor(e){super(e),this.element=new Ic}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Nc=Mc;class Tc extends ae.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Tc.primaryClass)}}const $c=Tc;class Rc extends(lo(oc,ic)){constructor(e){super(e),this.element=new $c}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Fc=Rc;class Cc extends(lo(mc,ic)){constructor(e){super(e),this.element=new ei,this.specPath=re(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const qc=Cc;const Dc=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Lc extends(lo(mc,ic)){constructor(e){super(e),this.element=new ni,this.specPath=re(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Vc=Lc;class Bc extends(lo(mc,ic)){constructor(e){super(e),this.element=new si,this.specPath=re(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Uc=Bc;const zc=class extends oc{specPath;ignoredFields;fieldPatternPredicate=Ao;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=pc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ci(t))&&this.fieldPatternPredicate(Ci(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new ae.Pr(ds(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ci(t))||this.element.content.push(ds(n))})),this.copyMetaAndAttributes(e,this.element),sr}},Hc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ys||e(r)&&t("swagger",r)&&n("object",r))),Gc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xs||e(r)&&t("swaggerVersion",r)&&n("string",r))),Kc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ei||e(r)&&t("info",r)&&n("object",r))),Wc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof si||e(r)&&t("license",r)&&n("object",r))),Jc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ni||e(r)&&t("contact",r)&&n("object",r))),Yc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oi||e(r)&&t("paths",r)&&n("object",r))),Zc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ci||e(r)&&t("pathItem",r)&&n("object",r))),Xc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof li||e(r)&&t("operation",r)&&n("object",r))),Qc=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof hi||e(r)&&t("externalDocumentation",r)&&n("object",r))),eu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ja||e(r)&&t("parameter",r)&&n("object",r))),tu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Oa||e(r)&&t("items",r)&&n("object",r))),nu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ka||e(r)&&t("responses",r)&&n("object",r))),ru=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ma||e(r)&&t("response",r)&&n("object",r))),su=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ta||e(r)&&t("headers",r)&&n("object",r))),iu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ra||e(r)&&t("example",r)&&n("object",r))),ou=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Fa||e(r)&&t("header",r)&&n("object",r))),au=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof qa||e(r)&&t("tag",r)&&n("object",r))),cu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof La||e(r)&&t("reference",r)&&n("object",r))),uu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Va||e(r)&&t("schema",r)&&n("object",r))),lu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ua||e(r)&&t("xml",r)&&n("object",r))),pu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ja||e(r)&&t("responsesDefinitions",r)&&n("object",r))),hu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Za||e(r)&&t("securityDefinitions",r)&&n("object",r))),mu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ha||e(r)&&t("definitions",r)&&n("object",r))),fu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ka||e(r)&&t("parametersDefinitions",r)&&n("object",r))),du=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qa||e(r)&&t("securityScheme",r)&&n("object",r))),_u=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof tc||e(r)&&t("scopes",r)&&n("object",r))),gu=Kr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof rc||e(r)&&t("securityRequirement",r)&&n("object",r)));class yu extends(lo(zc,ic)){element;constructor(e){super(e),this.element=new oi,this.specPath=re(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Ii}ObjectElement(e){const t=zc.prototype.ObjectElement.call(this,e);return this.element.filter(Zc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",ds(t))})),t}}const vu=yu;class wu extends(lo(mc,ic)){constructor(e){super(e),this.element=new ci,this.specPath=re(["document","objects","PathItem"])}ObjectElement(e){const t=mc.prototype.ObjectElement.call(this,e);return this.element.filter(Xc).forEach(((e,t)=>{const n=ds(t);n.content=Ci(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const bu=wu;const Eu=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class xu extends ae.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(xu.primaryClass),this.classes.push("parameters")}}const Su=xu;class Pu extends(lo(oc,ic)){constructor(e){super(e),this.element=new Su}ArrayElement(e){return e.forEach((e=>{const t=hc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);cu(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const ju=Pu;class Ou extends(lo(mc,ic)){constructor(e){super(e),this.element=new li,this.specPath=re(["document","objects","Operation"])}}const Au=Ou;class ku extends ae.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(ku.primaryClass),this.classes.push("tags")}}const Iu=ku;const Mu=class extends ic{constructor(e){super(e),this.element=new Iu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Nu extends ae.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Nu.primaryClass)}}const Tu=Nu;const $u=class extends ic{constructor(e){super(e),this.element=new Tu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Ru extends ae.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Ru.primaryClass)}}const Fu=Ru;const Cu=class extends ic{constructor(e){super(e),this.element=new Fu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class qu extends ae.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(qu.primaryClass),this.classes.push("parameters")}}const Du=qu;class Lu extends(lo(oc,ic)){constructor(e){super(e),this.element=new Du}ArrayElement(e){return e.forEach((e=>{const t=hc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);cu(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),sr}}const Vu=Lu;class Bu extends ae.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Bu.primaryClass)}}const Uu=Bu;const zu=class extends ic{constructor(e){super(e),this.element=new Uu}ArrayElement(e){return this.element=this.element.concat(ds(e)),sr}};class Hu extends ae.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(Hu.primaryClass),this.classes.push("security")}}const Gu=Hu;class Ku extends(lo(oc,ic)){constructor(e){super(e),this.element=new Gu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),sr}}const Wu=Ku;class Ju extends(lo(mc,ic)){constructor(e){super(e),this.element=new hi,this.specPath=re(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Yu=Ju;class Zu extends(lo(mc,ic)){constructor(e){super(e),this.element=new ja,this.specPath=re(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Xu=Zu;class Qu extends(lo(mc,ic)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new Oa,this.specPath=re(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const el=Qu;const tl=u((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Te(e));var n;return St(e).test(t)}));function nl(e){return"[object Number]"===Object.prototype.toString.call(e)}const rl=u((function(e,t){if(!nl(e)||!nl(t))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,s=0;s<r;)n[s]=s+e,s+=1;return n}));function sl(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!xe(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!xe(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const il=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!sl(e,!0,this)},e.prototype.has=function(e){return sl(e,!1,this)},e}();const ol=u((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new il,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));class al extends(lo(mc,zc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...ol(e.keys(),t)],mc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,zc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return sr}}const cl=al;class ul extends(lo(cl,ic)){constructor(e){super(e),this.element=new ka,this.specPathFixedFields=re(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>hc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=tl(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${rl(100,600).join("|")})$`))}ObjectElement(e){const t=cl.prototype.ObjectElement.call(this,e);return this.element.filter(cu).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(ru).forEach(((e,t)=>{const n=ds(t);this.fieldPatternPredicate(Ci(n))&&e.setMetaProperty("http-status-code",n)})),t}}const ll=ul;const pl=class extends oc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Xo(e,re(t),se))),n=ua(t)(e);return this.element=this.toRefractedElement(n,e),sr}};class hl extends(lo(pl,ic)){constructor(e){super(e),this.alternator=[{predicate:hc,specPath:["document","objects","Reference"]},{predicate:Ii,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=pl.prototype.enter.call(this,e);return cu(this.element)?this.element.setMetaProperty("referenced-element","response"):ru(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const ml=hl;class fl extends(lo(mc,ic)){constructor(e){super(e),this.element=new Ma,this.specPath=re(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const dl=fl;const _l=class extends zc{constructor(e){super(e),this.fieldPatternPredicate=Oo}};class gl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ta,this.specPath=re(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const yl=gl;class vl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ra,this.specPath=re(["value"]),this.canSupportSpecificationExtensions=!1}}const wl=vl;class bl extends(lo(mc,ic)){constructor(e){super(e),this.element=new Fa,this.specPath=re(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const El=bl;class xl extends(lo(mc,ic)){constructor(e){super(e),this.element=new qa,this.specPath=re(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Sl=xl;class Pl extends(lo(mc,ic)){constructor(e){super(e),this.element=new La,this.specPath=re(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=mc.prototype.ObjectElement.call(this,e);return Jr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const jl=Pl;const Ol=class extends ic{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Al extends(lo(mc,ic)){constructor(e){super(e),this.element=new Va,this.specPath=re(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const kl=Al,{allOf:Il}=da.visitors.document.objects.JSONSchema.fixedFields;const Ml=class extends Il{ArrayElement(e){const t=Il.prototype.ArrayElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Nl}=da.visitors.document.objects.JSONSchema.fixedFields;const Tl=class extends Nl{ObjectElement(e){const t=Nl.prototype.ObjectElement.call(this,e);return va(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=Nl.prototype.ArrayElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{properties:$l}=da.visitors.document.objects.JSONSchema.fixedFields;const Rl=class extends $l{ObjectElement(e){const t=$l.prototype.ObjectElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{JSONSchemaOrJSONReferenceVisitor:Fl}=da.visitors;const Cl=class extends Fl{ObjectElement(e){const t=Fl.prototype.enter.call(this,e);return va(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class ql extends(lo(mc,ic)){constructor(e){super(e),this.element=new Ua,this.specPath=re(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Dl=ql;class Ll extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ha,this.specPath=e=>vo(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=_l.prototype.ObjectElement.call(this,e);return this.element.filter(va).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Vl=Ll;class Bl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ja,this.specPath=re(["document","objects","Response"])}}const Ul=Bl;class zl extends(lo(_l,ic)){constructor(e){super(e),this.element=new Ka,this.specPath=re(["document","objects","Parameter"])}}const Hl=zl;class Gl extends(lo(_l,ic)){element;constructor(e){super(e),this.element=new Za,this.specPath=re(["document","objects","SecurityScheme"])}}const Kl=Gl;class Wl extends(lo(mc,ic)){constructor(e){super(e),this.element=new Qa,this.specPath=re(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Jl=Wl;class Yl extends(lo(_l,ic)){constructor(e){super(e),this.element=new tc,this.specPath=re(["value"]),this.canSupportSpecificationExtensions=!0}}const Zl=Yl;class Xl extends(lo(_l,ic)){constructor(e){super(e),this.element=new rc,this.specPath=re(["value"])}}const Ql=Xl;const ep=class extends oc{MemberElement(e){return this.element=ds(e),this.element.classes.push("specification-extension"),sr}},{fixedFields:tp}=da.visitors.document.objects.JSONSchema,np={visitors:{value:ic,document:{objects:{JSONReference:da.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:dc,fixedFields:{swagger:gc,info:{$ref:"#/visitors/document/objects/Info"},host:yc,basePath:vc,schemes:Ec,consumes:Pc,produces:Ac,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Nc,tags:Fc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:qc,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:Dc}},Contact:{$visitor:Vc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Uc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:vu},PathItem:{$visitor:bu,fixedFields:{$ref:Eu,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"},parameters:ju}},Operation:{$visitor:Au,fixedFields:{tags:Mu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:$u,produces:Cu,parameters:Vu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:zu,deprecated:{$ref:"#/visitors/value"},security:Wu}},ExternalDocumentation:{$visitor:Yu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Xu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:tp.description,required:tp.required,schema:Cl,type:tp.type,format:tp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:tp.default,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,enum:tp.enum,multipleOf:tp.multipleOf}},Items:{$visitor:el,fixedFields:{type:tp.type,format:tp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:tp.default,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,enum:tp.enum,multipleOf:tp.multipleOf}},Responses:{$visitor:ll,fixedFields:{default:ml}},Response:{$visitor:dl,fixedFields:{description:{$ref:"#/visitors/value"},schema:Cl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:yl},Example:{$visitor:wl},Header:{$visitor:El,fixedFields:{description:tp.description,type:tp.type,format:tp.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:tp.default,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,enum:tp.enum,multipleOf:tp.multipleOf}},Tag:{$visitor:Sl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:jl,fixedFields:{$ref:Ol}},Schema:{$visitor:kl,fixedFields:{format:tp.format,title:tp.title,description:tp.description,default:tp.default,multipleOf:tp.multipleOf,maximum:tp.maximum,exclusiveMaximum:tp.exclusiveMaximum,minimum:tp.minimum,exclusiveMinimum:tp.exclusiveMinimum,maxLength:tp.maxLength,minLength:tp.minLength,pattern:tp.pattern,maxItems:tp.maxItems,minItems:tp.minItems,uniqueItems:tp.uniqueItems,maxProperties:tp.maxProperties,minProperties:tp.minProperties,required:tp.required,enum:tp.enum,type:tp.type,readOnly:tp.readOnly,items:Tl,allOf:Ml,properties:Rl,additionalProperties:Cl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:Dl,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Vl},ParametersDefinitions:{$visitor:Hl},ResponsesDefinitions:{$visitor:Ul},SecurityDefinitions:{$visitor:Kl},SecurityScheme:{$visitor:Jl,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Zl},SecurityRequirement:{$visitor:Ql}},extension:{$visitor:ep}}}},rp=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},sp={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...Es},ip={namespace:e=>{const{base:t}=e;return t.register("swagger",Ys),t.register("swaggerVersion",Xs),t.register("info",ei),t.register("contact",ni),t.register("license",si),t.register("paths",oi),t.register("pathItem",ci),t.register("operation",li),t.register("externalDocumentation",hi),t.register("parameter",ja),t.register("items",Oa),t.register("responses",ka),t.register("response",Ma),t.register("headers",Ta),t.register("example",Ra),t.register("header",Fa),t.register("tag",qa),t.register("reference",La),t.register("schema",Va),t.register("xml",Ua),t.register("definitions",Ha),t.register("parametersDefinitions",Ka),t.register("responsesDefinitions",Ja),t.register("securityDefinitions",Za),t.register("securityScheme",Qa),t.register("scopes",tc),t.register("securityRequirement",rc),t}},op=()=>{const e=lt(ip);return{predicates:{...s,...i,isStringElement:Jr},namespace:e}},ap=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,ae.e)(e),s=ki(np),i=new(Os(t,s))({specObj:s});return xs(r,i),Ds(i.element,n,{toolboxCreator:op,visitorOptions:{keyMap:sp,nodeTypeGetter:rp}})},cp=e=>(t,n={})=>ap(t,{specPath:e,...n});Ys.refract=cp(["visitors","document","objects","Swagger","$visitor"]),Xs.refract=cp(["visitors","document","objects","SwaggerVersion","$visitor"]),ei.refract=cp(["visitors","document","objects","Info","$visitor"]),ni.refract=cp(["visitors","document","objects","Contact","$visitor"]),si.refract=cp(["visitors","document","objects","License","$visitor"]),oi.refract=cp(["visitors","document","objects","Paths","$visitor"]),ci.refract=cp(["visitors","document","objects","PathItem","$visitor"]),li.refract=cp(["visitors","document","objects","Operation","$visitor"]),hi.refract=cp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ja.refract=cp(["visitors","document","objects","Parameter","$visitor"]),Oa.refract=cp(["visitors","document","objects","Items","$visitor"]),ka.refract=cp(["visitors","document","objects","Responses","$visitor"]),Ma.refract=cp(["visitors","document","objects","Response","$visitor"]),Ta.refract=cp(["visitors","document","objects","Headers","$visitor"]),Ra.refract=cp(["visitors","document","objects","Example","$visitor"]),Fa.refract=cp(["visitors","document","objects","Header","$visitor"]),qa.refract=cp(["visitors","document","objects","Tag","$visitor"]),La.refract=cp(["visitors","document","objects","Reference","$visitor"]),Va.refract=cp(["visitors","document","objects","Schema","$visitor"]),Ua.refract=cp(["visitors","document","objects","XML","$visitor"]),Ha.refract=cp(["visitors","document","objects","Definitions","$visitor"]),Ka.refract=cp(["visitors","document","objects","ParametersDefinitions","$visitor"]),Ja.refract=cp(["visitors","document","objects","ResponsesDefinitions","$visitor"]),Za.refract=cp(["visitors","document","objects","SecurityDefinitions","$visitor"]),Qa.refract=cp(["visitors","document","objects","SecurityScheme","$visitor"]),tc.refract=cp(["visitors","document","objects","Scopes","$visitor"]),rc.refract=cp(["visitors","document","objects","SecurityRequirement","$visitor"]);const up=c((function(e){return f(-1,e)}));const lp=class extends mi{};const pp=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new lp("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new lp("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new lp("latest method in MediaTypes class is not yet implemented.")}};class hp extends pp{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return up(this.filterByFormat(e))}}const mp=new hp("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),fp=new hp(...mp.filterByFormat("generic"),...mp.filterByFormat("yaml")),dp=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,_p=async e=>dp.test(e)&&await(async e=>{try{return"ERROR"!==(await xt(e)).rootNode.type}catch{return!1}})(e),gp=async(e,t={})=>{const n=_({},"refractorOpts",t),r=y(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await xt(e);return Ws(n,{sourceMap:t})})(e,r),{result:i}=s;if(oe(i)){const e=Ys.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},yp=lt(ip)})(),r})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiYaml2=t():e.apidomParserAdapterOpenApiYaml2=t()}(self,(()=>(()=>{var e={3103:(e,t,n)=>{var r=n(4715)(n(8942),"DataView");e.exports=r},5098:(e,t,n)=>{var r=n(3305),s=n(9361),i=n(1112),o=n(5276),a=n(5071);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1386:(e,t,n)=>{var r=n(2393),s=n(2049),i=n(7144),o=n(7452),a=n(3964);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9770:(e,t,n)=>{var r=n(4715)(n(8942),"Map");e.exports=r},8250:(e,t,n)=>{var r=n(9753),s=n(5681),i=n(88),o=n(4732),a=n(9068);function c(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},9413:(e,t,n)=>{var r=n(4715)(n(8942),"Promise");e.exports=r},4512:(e,t,n)=>{var r=n(4715)(n(8942),"Set");e.exports=r},3212:(e,t,n)=>{var r=n(8250),s=n(1877),i=n(8006);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new r;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},1340:(e,t,n)=>{var r=n(1386),s=n(4103),i=n(1779),o=n(4162),a=n(7462),c=n(6638);function u(e){var t=this.__data__=new r(e);this.size=t.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,e.exports=u},5650:(e,t,n)=>{var r=n(8942).Symbol;e.exports=r},1623:(e,t,n)=>{var r=n(8942).Uint8Array;e.exports=r},9270:(e,t,n)=>{var r=n(4715)(n(8942),"WeakMap");e.exports=r},9847:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length,s=0,i=[];++n<r;){var o=e[n];t(o,n,e)&&(i[s++]=o)}return i}},358:(e,t,n)=>{var r=n(6137),s=n(3283),i=n(3142),o=n(5853),a=n(9632),c=n(8666),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=i(e),l=!n&&s(e),p=!n&&!l&&o(e),h=!n&&!l&&!p&&c(e),m=n||l||p||h,f=m?r(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 n=-1,r=t.length,s=e.length;++n<r;)e[s+n]=t[n];return e}},6465:e=>{e.exports=function(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}},7034:(e,t,n)=>{var r=n(6285);e.exports=function(e,t){for(var n=e.length;n--;)if(r(e[n][0],t))return n;return-1}},8244:(e,t,n)=>{var r=n(1129),s=n(3142);e.exports=function(e,t,n){var i=t(e);return s(e)?i:r(i,n(e))}},7379:(e,t,n)=>{var r=n(5650),s=n(8870),i=n(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},6027:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return s(e)&&"[object Arguments]"==r(e)}},4687:(e,t,n)=>{var r=n(353),s=n(547);e.exports=function e(t,n,i,o,a){return t===n||(null==t||null==n||!s(t)&&!s(n)?t!=t&&n!=n:r(t,n,i,o,e,a))}},353:(e,t,n)=>{var r=n(1340),s=n(3934),i=n(8861),o=n(1182),a=n(8486),c=n(3142),u=n(5853),l=n(8666),p="[object Arguments]",h="[object Array]",m="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,d,_,g){var y=c(e),v=c(t),w=y?h:a(e),b=v?h:a(t),E=(w=w==p?m:w)==m,x=(b=b==p?m:b)==m,S=w==b;if(S&&u(e)){if(!u(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||l(e)?s(e,t,n,d,_,g):i(e,t,w,n,d,_,g);if(!(1&n)){var P=E&&f.call(e,"__wrapped__"),j=x&&f.call(t,"__wrapped__");if(P||j){var O=P?e.value():e,A=j?t.value():t;return g||(g=new r),_(O,A,n,d,g)}}return!!S&&(g||(g=new r),o(e,t,n,d,_,g))}},9624:(e,t,n)=>{var r=n(3655),s=n(4759),i=n(1580),o=n(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)||s(e))&&(r(e)?h:a).test(o(e))}},674:(e,t,n)=>{var r=n(7379),s=n(5387),i=n(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)&&s(e.length)&&!!o[r(e)]}},195:(e,t,n)=>{var r=n(4882),s=n(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return s(e);var t=[];for(var n in Object(e))i.call(e,n)&&"constructor"!=n&&t.push(n);return t}},6137:e=>{e.exports=function(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},5568:e=>{e.exports=function(e,t){return e.has(t)}},1950:(e,t,n)=>{var r=n(8942)["__core-js_shared__"];e.exports=r},3934:(e,t,n)=>{var r=n(3212),s=n(6465),i=n(5568);e.exports=function(e,t,n,o,a,c){var u=1&n,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&n?new r:void 0;for(c.set(e,t),c.set(t,e);++f<l;){var g=e[f],y=t[f];if(o)var v=u?o(y,g,f,t,e,c):o(g,y,f,e,t,c);if(void 0!==v){if(v)continue;d=!1;break}if(_){if(!s(t,(function(e,t){if(!i(_,t)&&(g===e||a(g,e,n,o,c)))return _.push(t)}))){d=!1;break}}else if(g!==y&&!a(g,y,n,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8861:(e,t,n)=>{var r=n(5650),s=n(1623),i=n(6285),o=n(3934),a=n(5894),c=n(7447),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;e.exports=function(e,t,n,r,u,p,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=a;case"[object Set]":var f=1&r;if(m||(m=c),e.size!=t.size&&!f)return!1;var d=h.get(e);if(d)return d==t;r|=2,h.set(e,t);var _=o(m(e),m(t),r,u,p,h);return h.delete(e),_;case"[object Symbol]":if(l)return l.call(e)==l.call(t)}return!1}},1182:(e,t,n)=>{var r=n(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,i,o,a){var c=1&n,u=r(e),l=u.length;if(l!=r(t).length&&!c)return!1;for(var p=l;p--;){var h=u[p];if(!(c?h in t:s.call(t,h)))return!1}var m=a.get(e),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 g=e[h=u[p]],y=t[h];if(i)var v=c?i(y,g,h,t,e,a):i(g,y,h,e,t,a);if(!(void 0===v?g===y||o(g,y,n,i,a):v)){d=!1;break}_||(_="constructor"==h)}if(d&&!_){var w=e.constructor,b=t.constructor;w==b||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof b&&b instanceof b||(d=!1)}return a.delete(e),a.delete(t),d}},4967:(e,t,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=r},393:(e,t,n)=>{var r=n(8244),s=n(7979),i=n(1211);e.exports=function(e){return r(e,i,s)}},4700:(e,t,n)=>{var r=n(9067);e.exports=function(e,t){var n=e.__data__;return r(t)?n["string"==typeof t?"string":"hash"]:n.map}},4715:(e,t,n)=>{var r=n(9624),s=n(155);e.exports=function(e,t){var n=s(e,t);return r(n)?n:void 0}},8870:(e,t,n)=>{var r=n(5650),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),n=e[a];try{e[a]=void 0;var r=!0}catch(e){}var s=o.call(e);return r&&(t?e[a]=n:delete e[a]),s}},7979:(e,t,n)=>{var r=n(9847),s=n(9306),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),r(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},8486:(e,t,n)=>{var r=n(3103),s=n(9770),i=n(9413),o=n(4512),a=n(9270),c=n(7379),u=n(4066),l="[object Map]",p="[object Promise]",h="[object Set]",m="[object WeakMap]",f="[object DataView]",d=u(r),_=u(s),g=u(i),y=u(o),v=u(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!=f||s&&w(new s)!=l||i&&w(i.resolve())!=p||o&&w(new o)!=h||a&&w(new a)!=m)&&(w=function(e){var t=c(e),n="[object Object]"==t?e.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return f;case _:return l;case g:return p;case y:return h;case v:return m}return t}),e.exports=w},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},3305:(e,t,n)=>{var r=n(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},1112:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(t,e)?t[e]:void 0}},5276:(e,t,n)=>{var r=n(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:s.call(t,e)}},5071:(e,t,n)=>{var r=n(4497);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var r=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<n}},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,n)=>{var r,s=n(1950),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4882:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2049:(e,t,n)=>{var r=n(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=r(t,e);return!(n<0)&&(n==t.length-1?t.pop():s.call(t,n,1),--this.size,!0)}},7144:(e,t,n)=>{var r=n(7034);e.exports=function(e){var t=this.__data__,n=r(t,e);return n<0?void 0:t[n][1]}},7452:(e,t,n)=>{var r=n(7034);e.exports=function(e){return r(this.__data__,e)>-1}},3964:(e,t,n)=>{var r=n(7034);e.exports=function(e,t){var n=this.__data__,s=r(n,e);return s<0?(++this.size,n.push([e,t])):n[s][1]=t,this}},9753:(e,t,n)=>{var r=n(5098),s=n(1386),i=n(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},5681:(e,t,n)=>{var r=n(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},88:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).get(e)}},4732:(e,t,n)=>{var r=n(4700);e.exports=function(e){return r(this,e).has(e)}},9068:(e,t,n)=>{var r=n(4700);e.exports=function(e,t){var n=r(this,e),s=n.size;return n.set(e,t),this.size+=n.size==s?0:1,this}},5894:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}},4497:(e,t,n)=>{var r=n(4715)(Object,"create");e.exports=r},8121:(e,t,n)=>{var r=n(3766)(Object.keys,Object);e.exports=r},2306:(e,t,n)=>{e=n.nmd(e);var r=n(4967),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&r.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(n){return e(t(n))}}},8942:(e,t,n)=>{var r=n(4967),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||s||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,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}},4103:(e,t,n)=>{var r=n(1386);e.exports=function(){this.__data__=new r,this.size=0}},1779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},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,n)=>{var r=n(1386),s=n(9770),i=n(8250);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(e,t),this.size=n.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,n)=>{var r=n(6027),s=n(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3142:e=>{var t=Array.isArray;e.exports=t},6529:(e,t,n)=>{var r=n(3655),s=n(5387);e.exports=function(e){return null!=e&&s(e.length)&&!r(e)}},2563:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==r(e)}},5853:(e,t,n)=>{e=n.nmd(e);var r=n(8942),s=n(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},6343:(e,t,n)=>{var r=n(4687);e.exports=function(e,t){return r(e,t)}},3655:(e,t,n)=>{var r=n(7379),s=n(1580);e.exports=function(e){if(!s(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},9310:e=>{e.exports=function(e){return null===e}},986:(e,t,n)=>{var r=n(7379),s=n(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==r(e)}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},8138:(e,t,n)=>{var r=n(7379),s=n(3142),i=n(547);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==r(e)}},8666:(e,t,n)=>{var r=n(674),s=n(9460),i=n(2306),o=i&&i.isTypedArray,a=o?s(o):r;e.exports=a},1211:(e,t,n)=>{var r=n(358),s=n(195),i=n(6529);e.exports=function(e){return i(e)?r(e):s(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,n)=>{const r=n(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},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,n)=>{const r=n(9310),s=n(8138),i=n(986),o=n(2563),a=n(1580),c=n(394),u=n(7547);class l{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(r,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,n){return void 0===n||n?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,e.exports=l},3311:(e,t,n)=>{const r=n(1517),s=n(4123);class i extends s{map(e,t){return this.elements.map((n=>e.bind(t)(n.value,n.key,n)))}filter(e,t){return new i(this.elements.filter((n=>e.bind(t)(n.value,n.key,n))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((n,r)=>{e.bind(t)(n.value,n.key,n,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},7547:(e,t,n)=>{const r=n(8631),s=n(3004),i=n(8712),o=n(2536),a=n(2555),c=n(9796),u=n(7309),l=n(5642),p=n(9620),h=n(593),m=n(4123),f=n(3311),d=n(2322);function _(e){if(e instanceof r)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(_));if("object"==typeof e){return new l(e)}return e}r.prototype.ObjectElement=l,r.prototype.RefElement=h,r.prototype.MemberElement=u,r.prototype.refract=_,m.prototype.refract=_,e.exports={Element:r,NullElement:s,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,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||[],t,n),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,n)=>{const r=n(5735),s=n(7547);t.g$=r,t.KeyValuePair=n(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,t.e=s.refract,n(394),n(3148)},9796:(e,t,n)=>{const r=n(1517),s=n(8631),i=n(4123);class o extends s{constructor(e,t,n){super(e||[],t,n),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 n=[];return this.forEach((r=>{const s=e.bind(t)(r);s&&n.push(s)})),n}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let n,r;void 0!==t?(n=0,r=this.refract(t)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=n;t<this.length;t+=1){const n=this.content[t];r="object"===this.primitive()?this.refract(e(r,n.value,n.key,n,this)):this.refract(e(r,n,t,this))}return r}forEach(e,t){this.content.forEach(((n,r)=>{e.bind(t)(n,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const n=t||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((t,n,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:r}),e(t,n,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},2555:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="boolean"}primitive(){return"boolean"}}},8631:(e,t,n)=>{const r=n(6343),s=n(2322),i=n(4123);class o{constructor(e,t,n){t&&(this.meta=t),n&&(this.attributes=n),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let n=new i;const r=(e,t)=>(e.push(t),e),o=(e,n)=>{n.element===t&&e.push(n);const i=n.findRecursive(t);return i&&i.reduce(r,e),n.content instanceof s&&(n.content.key&&o(e,n.content.key),n.content.value&&o(e,n.content.value)),e};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),e.isEmpty||(n=n.filter((t=>{let n=t.parents.map((e=>e.element));for(const t in e){const r=e[t],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},7309:(e,t,n)=>{const r=n(2322),s=n(8631);e.exports=class extends s{constructor(e,t,n,s){super(new r,n,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},3004:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e||null,t,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},2536:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="number"}primitive(){return"number"}}},5642:(e,t,n)=>{const r=n(1517),s=n(1580),i=n(9796),o=n(7309),a=n(3311);e.exports=class extends i{constructor(e,t,n){super(e||[],t,n),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((n=>n.key.toValue()!==e||(t=n,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const n=e,r=this.getMember(n);return r?r.value=t:this.content.push(new o(n,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((n=>e.bind(t)(n.value,n.key,n)))}compactMap(e,t){const n=[];return this.forEach(((r,s,i)=>{const o=e.bind(t)(r,s,i);o&&n.push(o)})),n}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((n=>e.bind(t)(n.value,n.key,n)))}}},8712:(e,t,n)=>{const r=n(8631);e.exports=class extends r{constructor(e,t,n){super(e,t,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3148:(e,t,n)=>{const r=n(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const n={element:e.element};e._meta&&e._meta.length>0&&(n.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(n.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(e,n);else if(this[`${e.element}SerialiseContent`])n.content=this[`${e.element}SerialiseContent`](e,n);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(n.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==n.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),n=new t;n.element!==e.element&&(n.element=e.element),e.meta&&this.deserialiseObject(e.meta,n.meta),e.attributes&&this.deserialiseObject(e.attributes,n.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let e=n.attributes.get("samples");if(n.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new t(r);s.element=n.element,e.push(s)}))}));const s=e.shift();n.content=s?s.content:void 0,n.attributes.set("samples",e)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=n.element,n.attributes.set("default",e)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const e=n.attributes.get("meta");e&&(n.attributes.set("metadata",e),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(e){const r=n.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},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 n=this.serialiseContent(e.content);return void 0!==n&&(t.content=n),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 n=this.deserialiseContent(e.content);return void 0===n&&null!==t.content||(t.content=n),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,n)=>{e&&(t[n.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((n=>{t.set(n,this.deserialise(e[n]))}))}}},8583:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(n=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},6850:(e,t,n)=>{"use strict";t.MH=void 0;const r=n(8583);function s(e,t,n){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==n&&n!==e.length)throw new SyntaxError(r.errorMessages.get(t));return s}function i(e,t){const n=s(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,e)}return String.fromCharCode(n)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,n,a,c,u,l,p,h,m){if(void 0!==n)return"\\";if(void 0!==a)return function(e){const t=s(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const n=s(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===h)return"\0";if(void 0!==h)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(e,8);return String.fromCharCode(n)}(h,!t);if(void 0!==m)return f=m,o.get(f)||f;var f;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},3833:(e,t,n)=>{var r=void 0!==r?r:{},s=function(){var t,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return t||(r=Object.assign({},r,o),t=new Promise((t=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[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,_,g,y,v,w="";c?(w=p?n(4142).dirname(w)+"/":"//",d=function(e,t){return y||(y=n(3078)),v||(v=n(4142)),e=v.normalize(e),y.readFileSync(e,t?null:"utf8")},g=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=r,f=function(e){process.exit(e)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=function(e){return read(e)}),g=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?w=self.location.href:void 0!==s&&s.currentScript&&(w=s.currentScript.src),w=0!==w.indexOf("blob:")?w.substr(0,w.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),_=function(e,t,n){var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?t(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var b=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(h=r.arguments),r.thisProgram&&(m=r.thisProgram),r.quit&&(f=r.quit);var E,x=[];function S(e,t){if(!E){E=new WeakMap;for(var n=0;n<J.length;n++){var r=J.get(n);r&&E.set(r,n)}}if(E.has(e))return E.get(e);var s=function(){if(x.length)return x.pop();try{J.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return J.length-1}();try{J.set(s,e)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==t[0]?[]:[n[t[0]]]},s=1;s<t.length;++s)r.parameters.push(n[t[s]]);return new WebAssembly.Function(r,e)}var i=[1,0,1,96],o=t.slice(0,1),a=t.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);J.set(s,i)}return E.set(e,s),s}var P,j=r.dynamicLibraries||[];r.wasmBinary&&(P=r.wasmBinary);var O,A=r.noExitRuntime||!0;function k(e,t,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":$[e|0]=t;break;case"i16":F[e>>1]=t;break;case"i32":C[e>>2]=t;break;case"i64":ue=[t>>>0,(ce=t,+Math.abs(ce)>=1?ce>0?(0|Math.min(+Math.floor(ce/4294967296),4294967295))>>>0:~~+Math.ceil((ce-+(~~ce>>>0))/4294967296)>>>0:0)],C[e>>2]=ue[0],C[e+4>>2]=ue[1];break;case"float":q[e>>2]=t;break;case"double":D[e>>3]=t;break;default:oe("invalid type for setValue: "+n)}}function I(e,t,n){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return $[e|0];case"i16":return F[e>>1];case"i32":case"i64":return C[e>>2];case"float":return q[e>>2];case"double":return D[e>>3];default:oe("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&oe("no native wasm support detected");var M=!1;function N(e,t){e||oe("Assertion failed: "+t)}var T,$,R,F,C,q,D,L="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,n){for(var r=t+n,s=t;e[s]&&!(s>=r);)++s;if(s-t>16&&e.subarray&&L)return L.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function B(e,t){return e?V(R,e,t):""}function U(e,t,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-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(n>=i)break;t[n++]=a}else if(a<=2047){if(n+1>=i)break;t[n++]=192|a>>6,t[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;t[n++]=224|a>>12,t[n++]=128|a>>6&63,t[n++]=128|63&a}else{if(n+3>=i)break;t[n++]=240|a>>18,t[n++]=128|a>>12&63,t[n++]=128|a>>6&63,t[n++]=128|63&a}}return t[n]=0,n-s}function z(e,t,n){return U(e,R,t,n)}function H(e){for(var t=0,n=0;n<e.length;++n){var r=e.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&e.charCodeAt(++n)),r<=127?++t:t+=r<=2047?2:r<=65535?3:4}return t}function G(e){var t=H(e)+1,n=Ve(t);return U(e,$,n,t),n}function W(e){T=e,r.HEAP8=$=new Int8Array(e),r.HEAP16=F=new Int16Array(e),r.HEAP32=C=new Int32Array(e),r.HEAPU8=R=new Uint8Array(e),r.HEAPU16=new Uint16Array(e),r.HEAPU32=new Uint32Array(e),r.HEAPF32=q=new Float32Array(e),r.HEAPF64=D=new Float64Array(e)}var K=r.INITIAL_MEMORY||33554432;(O=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(T=O.buffer),K=T.byteLength,W(T);var J=new WebAssembly.Table({initial:17,element:"anyfunc"}),Y=[],Z=[],X=[],Q=[],ee=!1,te=0,ne=null,re=null;function se(e){te++,r.monitorRunDependencies&&r.monitorRunDependencies(te)}function ie(e){if(te--,r.monitorRunDependencies&&r.monitorRunDependencies(te),0==te&&(null!==ne&&(clearInterval(ne),ne=null),re)){var t=re;re=null,t()}}function oe(e){throw r.onAbort&&r.onAbort(e),b(e+=""),M=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ae,ce,ue;function le(e){return e.startsWith("data:application/octet-stream;base64,")}function pe(e){return e.startsWith("file://")}function he(e){try{if(e==ae&&P)return new Uint8Array(P);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){oe(e)}}le(ae="tree-sitter.wasm")||(ae=function(e){return r.locateFile?r.locateFile(e,w):w+e}(ae));var me={},fe={get:function(e,t){return me[t]||(me[t]=new WebAssembly.Global({value:"i32",mutable:!0})),me[t]}};function de(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var n=t.func;"number"==typeof n?void 0===t.arg?J.get(n)():J.get(n)(t.arg):n(void 0===t.arg?null:t.arg)}else t(r)}}function _e(e){var t=0;function n(){for(var n=0,r=1;;){var s=e[t++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(e instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(e,"dylink");N(0!=r.length,"need dylink section"),e=new Int8Array(r[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,n(),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 s={};s.memorySize=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=e.subarray(t,t+a);t+=a;var u=V(c,0);s.neededDynlibs.push(u)}return s}function ge(){return A||!1}function ye(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function ve(e,t){for(var n in e)if(e.hasOwnProperty(n)){Fe.hasOwnProperty(n)||(Fe[n]=e[n]);var s=ye(n);r.hasOwnProperty(s)||(r[s]=e[n])}}var we={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var be=5250880;function Ee(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function xe(e,t){var n={};for(var r in e){var s=e[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),n[r]=s}return function(e){for(var t in e)if(!Ee(t)){var n=!1,r=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],n=!0),me[t]||(me[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==me[t].value)&&("function"==typeof r?me[t].value=S(r):"number"==typeof r?me[t].value=r:b("unhandled export type for `"+t+"`: "+typeof r))}}(n),n}function Se(e,t){var n,s;return t&&(n=Fe["orig$"+e]),n||(n=Fe[e]),n||(n=r[ye(e)]),!n&&e.startsWith("invoke_")&&(s=e.split("_")[1],n=function(){var e=De();try{return function(e,t,n){return e.includes("j")?function(e,t,n){var s=r["dynCall_"+e];return n&&n.length?s.apply(null,[t].concat(n)):s.call(null,t)}(e,t,n):J.get(t).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Le(e),t!==t+0&&"longjmp"!==t)throw t;Be(1,0)}}),n}function Pe(e,t){var n=_e(e);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,16);var s,i,o,a=(s=function(e){if(ee)return Ce(e);var t=be,n=t+e+15&-16;return be=n,me.__heap_base.value=n,t}(n.memorySize+r),(i=r)||(i=16),Math.ceil(s/i)*i),c=J.length;J.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)$[u]=0;for(u=c;u<c+n.tableSize;u++)J.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 Fe?Fe[t]:(t in e||(e[t]=function(){return n||(n=function(e){var t=Se(e,!1);return t||(t=o[e]),t}(t)),n.apply(null,arguments)}),e[t]);var n}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:l,wasi_snapshot_preview1:l};function h(e){for(var r=0;r<n.tableSize;r++){var s=J.get(c+r);s&&E.set(s,c+r)}o=xe(e.exports,a),t.allowUndefined||Oe();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(ee?i():Z.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?n.neededDynlibs.reduce((function(e,n){return e.then((function(){return je(n,t)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(e){je(e,t)})),r())}function je(e,t){"__main__"!=e||we.loadedLibNames[e]||(we.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},we.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var n,s=we.loadedLibNames[e];if(s)return n=we.loadedLibs[s],t.global&&!n.global&&(n.global=!0,"loading"!==n.module&&ve(n.module)),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var n=t.fs.readFile(e,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),t.loadAsync?Promise.resolve(n):n}return t.loadAsync?(r=e,fetch(r,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+r+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[e]){var n=r.preloadedWasm[e];return t.loadAsync?Promise.resolve(n):n}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function a(e){n.global&&ve(e),n.module=e}return s=we.nextHandle++,n={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},we.loadedLibNames[e]=s,we.loadedLibs[s]=n,t.loadAsync?o().then((function(e){return a(e),s})):(a(o()),s)}function Oe(){for(var e in me)if(0==me[e].value){var t=Se(e,!0);"function"==typeof t?me[e].value=S(t,t.sig):"number"==typeof t?me[e].value=t:N(!1,"bad export type for `"+e+"`: "+typeof t)}}r.___heap_base=be;var Ae,ke=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Ie(){oe()}r._abort=Ie,Ie.sig="v",Ae=c?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Me(e,t){var n;if(0===e)n=Date.now();else{if(1!==e&&4!==e)return C[qe()>>2]=28,-1;n=Ae()}return C[t>>2]=n/1e3|0,C[t+4>>2]=n%1e3*1e3*1e3|0,0}function Ne(e){try{return O.grow(e-T.byteLength+65535>>>16),W(O.buffer),1}catch(e){}}function Te(e){Ge(e)}function $e(e){}Me.sig="iii",Te.sig="vi",$e.sig="vi";var Re,Fe={__heap_base:be,__indirect_function_table:J,__memory_base:1024,__stack_pointer:ke,__table_base:1,abort:Ie,clock_gettime:Me,emscripten_memcpy_big:function(e,t,n){R.copyWithin(e,t,t+n)},emscripten_resize_heap:function(e){var t,n=R.length;if((e>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,e+100663296),Ne(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Te,memory:O,setTempRet0:$e,tree_sitter_log_callback:function(e,t){if(st){const n=B(t);st(n,0!==e)}},tree_sitter_parse_callback:function(e,t,n,r,s){var i=rt(t,{row:n,column:r});"string"==typeof i?(k(s,i.length,"i32"),function(e,t,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*e.length?n/2:e.length,s=0;s<r;++s){var i=e.charCodeAt(s);F[t>>1]=i,t+=2}F[t>>1]=0}(i,e,10240)):k(s,0,"i32")}},Ce=(function(){var e={env:Fe,wasi_snapshot_preview1:Fe,"GOT.mem":new Proxy(Fe,fe),"GOT.func":new Proxy(Fe,fe)};function t(e,t){var n=e.exports;n=xe(n,1024),r.asm=n;var s,i=_e(t);i.neededDynlibs&&(j=i.neededDynlibs.concat(j)),ve(n),s=r.asm.__wasm_call_ctors,Z.unshift(s),ie()}function n(e){t(e.instance,e.module)}function s(t){return function(){if(!P&&(l||p)){if("function"==typeof fetch&&!pe(ae))return fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return he(ae)}));if(_)return new Promise((function(e,t){_(ae,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ae)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){b("failed to asynchronously prepare wasm: "+e),oe(e)}))}if(se(),r.instantiateWasm)try{return r.instantiateWasm(e,t)}catch(e){return b("Module.instantiateWasm callback failed with error: "+e),!1}P||"function"!=typeof WebAssembly.instantiateStreaming||le(ae)||pe(ae)||"function"!=typeof fetch?s(n):fetch(ae,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(n,(function(e){return b("wasm streaming compile failed: "+e),b("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(Ce=r._malloc=r.asm.malloc).apply(null,arguments)}),qe=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return(qe=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),De=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(De=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Le=r.stackRestore=function(){return(Le=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},Ve=r.stackAlloc=function(){return(Ve=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},Be=r._setThrew=function(){return(Be=r._setThrew=r.asm.setThrew).apply(null,arguments)};function Ue(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(e,t){var n;return n=1==t?Ve(e.length):Ce(e.length),e.subarray||e.slice?R.set(e,n):R.set(new Uint8Array(e),n),n},re=function e(){Re||He(),Re||(re=e)};var ze=!1;function He(e){function t(){Re||(Re=!0,r.calledRun=!0,M||(ee=!0,de(Z),de(X),r.onRuntimeInitialized&&r.onRuntimeInitialized(),We&&function(e){var t=r._main;if(t){var n=(e=e||[]).length+1,s=Ve(4*(n+1));C[s>>2]=G(m);for(var i=1;i<n;i++)C[(s>>2)+i]=G(e[i-1]);C[(s>>2)+n]=0;try{Ge(t(n,s),!0)}catch(e){if(e instanceof Ue)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),b("exception thrown: "+o),f(1,e)}}}(e),function(){if(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)e=r.postRun.shift(),Q.unshift(e);var e;de(Q)}()))}e=e||h,te>0||!ze&&(function(){if(j.length){if(!g)return se(),void j.reduce((function(e,t){return e.then((function(){return je(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ie(),Oe()}));j.forEach((function(e){je(e,{global:!0,nodelete:!0,allowUndefined:!0})})),Oe()}else Oe()}(),ze=!0,te>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)e=r.preRun.shift(),Y.unshift(e);var e;de(Y)}(),te>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),t()}),1)):t()))}function Ge(e,t){t&&ge()&&0===e||(ge()||(r.onExit&&r.onExit(e),M=!0),f(e,new Ue(e)))}if(r.run=He,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var We=!0;r.noInitialRun&&(We=!1),He();const Ke=r,Je={},Ye=20,Ze={row:0,column:0},Xe=/[\w-.]*/g,Qe=/^_?tree_sitter_\w+/;var et,tt,nt,rt,st;class it{static init(){nt=Ke._ts_init(),et=I(nt,"i32"),tt=I(nt+4,"i32")}initialize(){Ke._ts_parser_new_wasm(),this[0]=I(nt,"i32"),this[1]=I(nt+4,"i32")}delete(){Ke._ts_parser_delete(this[0]),Ke._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==ut)throw new Error("Argument must be a Language");{t=e[0];const n=Ke._ts_language_version(t);if(n<tt||et<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${tt} through ${et}.`)}}else t=0,e=null;return this.language=e,Ke._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,n){if("string"==typeof e)rt=(t,n,r)=>e.slice(t,r);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");rt=e}this.logCallback?(st=this.logCallback,Ke._ts_parser_enable_logger_wasm(this[0],1)):(st=null,Ke._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let e=s=Ke._calloc(r,24);for(let t=0;t<r;t++)bt(e,n.includedRanges[t]),e+=24}const i=Ke._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,r);if(!i)throw rt=null,st=null,new Error("Parsing failed");const o=new ot(Je,i,this.language,rt);return rt=null,st=null,o}reset(){Ke._ts_parser_reset(this[0])}setTimeoutMicros(e){Ke._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ke._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 ot{constructor(e,t,n,r){mt(e),this[0]=t,this.language=n,this.textCallback=r}copy(){const e=Ke._ts_tree_copy(this[0]);return new ot(Je,e,this.language,this.textCallback)}delete(){Ke._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=nt;vt(t,e.startPosition),vt(t+=8,e.oldEndPosition),vt(t+=8,e.newEndPosition),k(t+=8,e.startIndex,"i32"),k(t+=4,e.oldEndIndex,"i32"),k(t+=4,e.newEndIndex,"i32"),t+=4}(e),Ke._ts_tree_edit_wasm(this[0])}get rootNode(){return Ke._ts_tree_root_node_wasm(this[0]),_t(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==ot)throw new TypeError("Argument must be a Tree");Ke._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=I(nt,"i32"),n=I(nt+4,"i32"),r=new Array(t);if(t>0){let e=n;for(let n=0;n<t;n++)r[n]=Et(e),e+=24;Ke._free(n)}return r}}class at{constructor(e,t){mt(e),this.tree=t}get typeId(){return dt(this),Ke._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return dt(this),Ke._ts_node_end_point_wasm(this.tree[0]),wt(nt)}get endIndex(){return dt(this),Ke._ts_node_end_index_wasm(this.tree[0])}get text(){return pt(this.tree,this.startIndex,this.endIndex)}isNamed(){return dt(this),1===Ke._ts_node_is_named_wasm(this.tree[0])}hasError(){return dt(this),1===Ke._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return dt(this),1===Ke._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return dt(this),1===Ke._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return dt(this),Ke._ts_node_child_wasm(this.tree[0],e),_t(this.tree)}namedChild(e){return dt(this),Ke._ts_node_named_child_wasm(this.tree[0],e),_t(this.tree)}childForFieldId(e){return dt(this),Ke._ts_node_child_by_field_id_wasm(this.tree[0],e),_t(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return dt(this),Ke._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return dt(this),Ke._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){dt(this),Ke._ts_node_children_wasm(this.tree[0]);const e=I(nt,"i32"),t=I(nt+4,"i32");if(this._children=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._children[t]=_t(this.tree,n),n+=Ye;Ke._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){dt(this),Ke._ts_node_named_children_wasm(this.tree[0]);const e=I(nt,"i32"),t=I(nt+4,"i32");if(this._namedChildren=new Array(e),e>0){let n=t;for(let t=0;t<e;t++)this._namedChildren[t]=_t(this.tree,n),n+=Ye;Ke._free(t)}}return this._namedChildren}descendantsOfType(e,t,n){Array.isArray(e)||(e=[e]),t||(t=Ze),n||(n=Ze);const r=[],s=this.tree.language.types;for(let t=0,n=s.length;t<n;t++)e.includes(s[t])&&r.push(t);const i=Ke._malloc(4*r.length);for(let e=0,t=r.length;e<t;e++)k(i+4*e,r[e],"i32");dt(this),Ke._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,n.row,n.column);const o=I(nt,"i32"),a=I(nt+4,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=_t(this.tree,e),e+=Ye}return Ke._free(a),Ke._free(i),c}get nextSibling(){return dt(this),Ke._ts_node_next_sibling_wasm(this.tree[0]),_t(this.tree)}get previousSibling(){return dt(this),Ke._ts_node_prev_sibling_wasm(this.tree[0]),_t(this.tree)}get nextNamedSibling(){return dt(this),Ke._ts_node_next_named_sibling_wasm(this.tree[0]),_t(this.tree)}get previousNamedSibling(){return dt(this),Ke._ts_node_prev_named_sibling_wasm(this.tree[0]),_t(this.tree)}get parent(){return dt(this),Ke._ts_node_parent_wasm(this.tree[0]),_t(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");dt(this);let n=nt+Ye;return k(n,e,"i32"),k(n+4,t,"i32"),Ke._ts_node_descendant_for_index_wasm(this.tree[0]),_t(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");dt(this);let n=nt+Ye;return k(n,e,"i32"),k(n+4,t,"i32"),Ke._ts_node_named_descendant_for_index_wasm(this.tree[0]),_t(this.tree)}descendantForPosition(e,t=e){if(!ft(e)||!ft(t))throw new Error("Arguments must be {row, column} objects");dt(this);let n=nt+Ye;return vt(n,e),vt(n+8,t),Ke._ts_node_descendant_for_position_wasm(this.tree[0]),_t(this.tree)}namedDescendantForPosition(e,t=e){if(!ft(e)||!ft(t))throw new Error("Arguments must be {row, column} objects");dt(this);let n=nt+Ye;return vt(n,e),vt(n+8,t),Ke._ts_node_named_descendant_for_position_wasm(this.tree[0]),_t(this.tree)}walk(){return dt(this),Ke._ts_tree_cursor_new_wasm(this.tree[0]),new ct(Je,this.tree)}toString(){dt(this);const e=Ke._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var n=R[e++|0];if(!n)return t;t+=String.fromCharCode(n)}}(e);return Ke._free(e),t}}class ct{constructor(e,t){mt(e),this.tree=t,yt(this)}delete(){gt(this),Ke._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){dt(e),gt(this,nt+Ye),Ke._ts_tree_cursor_reset_wasm(this.tree[0]),yt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return gt(this),Ke._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return gt(this),Ke._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return gt(this),1===Ke._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return gt(this),1===Ke._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){gt(this);const e=Ke._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ke._ts_tree_cursor_end_index_wasm(this.tree[0]);return pt(this.tree,e,t)}get startPosition(){return gt(this),Ke._ts_tree_cursor_start_position_wasm(this.tree[0]),wt(nt)}get endPosition(){return gt(this),Ke._ts_tree_cursor_end_position_wasm(this.tree[0]),wt(nt)}get startIndex(){return gt(this),Ke._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return gt(this),Ke._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return gt(this),Ke._ts_tree_cursor_current_node_wasm(this.tree[0]),_t(this.tree)}currentFieldId(){return gt(this),Ke._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){gt(this);const e=Ke._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return yt(this),1===e}gotoNextSibling(){gt(this);const e=Ke._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return yt(this),1===e}gotoParent(){gt(this);const e=Ke._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return yt(this),1===e}}class ut{constructor(e,t){mt(e),this[0]=t,this.types=new Array(Ke._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ke._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=B(Ke._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ke._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ke._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?B(t):null}}get version(){return Ke._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 n=H(e),r=Ke._malloc(n+1);z(e,r,n+1);const s=Ke._ts_language_symbol_for_name(this[0],r,n,t);return Ke._free(r),s||null}get nodeTypeCount(){return Ke._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ke._ts_language_symbol_name(this[0],e);return t?B(t):null}nodeTypeIsNamed(e){return!!Ke._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ke._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=H(e),n=Ke._malloc(t+1);z(e,n,t+1);const r=Ke._ts_query_new(this[0],n,t,nt,nt+4);if(!r){const t=I(nt+4,"i32"),r=B(n,I(nt,"i32")).length,s=e.substr(r,100).split("\n")[0];let i,o=s.match(Xe)[0];switch(t){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Ke._free(n),i}const s=Ke._ts_query_string_count(r),i=Ke._ts_query_capture_count(r),o=Ke._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let e=0;e<i;e++){const t=Ke._ts_query_capture_name_for_id(r,e,nt),n=I(nt,"i32");a[e]=B(t,n)}for(let e=0;e<s;e++){const t=Ke._ts_query_string_value_for_id(r,e,nt),n=I(nt,"i32");c[e]=B(t,n)}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=Ke._ts_query_predicates_for_pattern(r,e,nt),n=I(nt,"i32");h[e]=[],m[e]=[];const s=[];let i=t;for(let t=0;t<n;t++){const t=I(i,"i32"),n=I(i+=4,"i32");if(i+=4,1===t)s.push({type:"capture",name:a[n]});else if(2===t)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let n=!0;switch(t){case"not-eq?":n=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((function(e){let s,i;for(const n of e)n.name===t&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const t=s[1].name,r=s[2].value;m[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const r=s[1].name,i=new RegExp(s[2].value);m[e].push((function(e){for(const t of e)if(t.name===r)return i.test(t.node.text)===n;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[e]||(u[e]={}),u[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?l:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:h[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(u[e]),Object.freeze(l[e]),Object.freeze(p[e])}return Ke._free(n),new lt(Je,r,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 r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=n(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const n=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),n=t.find((e=>Qe.test(e)&&!e.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[n]();return new ut(Je,r)}))}}class lt{constructor(e,t,n,r,s,i,o,a){mt(e),this[0]=t,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Ke._ts_query_delete(this[0]),this[0]=0}matches(e,t,n,r){t||(t=Ze),n||(n=Ze),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");dt(e),Ke._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=I(nt,"i32"),o=I(nt+4,"i32"),a=I(nt+8,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let t=0;t<i;t++){const n=I(l,"i32"),r=I(l+=4,"i32");l+=4;const s=new Array(r);if(l=ht(this,e.tree,l,s),this.textPredicates[n].every((e=>e(s)))){c[u++]={pattern:n,captures:s};const e=this.setProperties[n];e&&(c[t].setProperties=e);const r=this.assertedProperties[n];r&&(c[t].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[t].refutedProperties=i)}}return c.length=u,Ke._free(o),c}captures(e,t,n,r){t||(t=Ze),n||(n=Ze),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");dt(e),Ke._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,n.row,n.column,s);const i=I(nt,"i32"),o=I(nt+4,"i32"),a=I(nt+8,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let t=0;t<i;t++){const t=I(l,"i32"),n=I(l+=4,"i32"),r=I(l+=4,"i32");if(l+=4,u.length=n,l=ht(this,e.tree,l,u),this.textPredicates[t].every((e=>e(u)))){const e=u[r],n=this.setProperties[t];n&&(e.setProperties=n);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return Ke._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function pt(e,t,n){const r=n-t;let s=e.textCallback(t,null,n);for(t+=s.length;t<n;){const r=e.textCallback(t,null,n);if(!(r&&r.length>0))break;t+=r.length,s+=r}return t>n&&(s=s.slice(0,r)),s}function ht(e,t,n,r){for(let s=0,i=r.length;s<i;s++){const i=I(n,"i32"),o=_t(t,n+=4);n+=Ye,r[s]={name:e.captureNames[i],node:o}}return n}function mt(e){if(e!==Je)throw new Error("Illegal constructor")}function ft(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function dt(e){let t=nt;k(t,e.id,"i32"),k(t+=4,e.startIndex,"i32"),k(t+=4,e.startPosition.row,"i32"),k(t+=4,e.startPosition.column,"i32"),k(t+=4,e[0],"i32")}function _t(e,t=nt){const n=I(t,"i32");if(0===n)return null;const r=I(t+=4,"i32"),s=I(t+=4,"i32"),i=I(t+=4,"i32"),o=I(t+=4,"i32"),a=new at(Je,e);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function gt(e,t=nt){k(t+0,e[0],"i32"),k(t+4,e[1],"i32"),k(t+8,e[2],"i32")}function yt(e){e[0]=I(nt+0,"i32"),e[1]=I(nt+4,"i32"),e[2]=I(nt+8,"i32")}function vt(e,t){k(e,t.row,"i32"),k(e+4,t.column,"i32")}function wt(e){return{row:I(e,"i32"),column:I(e+4,"i32")}}function bt(e,t){vt(e,t.startPosition),vt(e+=8,t.endPosition),k(e+=8,t.startIndex,"i32"),k(e+=4,t.endIndex,"i32"),e+=4}function Et(e){const t={};return t.startPosition=wt(e),e+=8,t.endPosition=wt(e),e+=8,t.startIndex=I(e,"i32"),e+=4,t.endIndex=I(e,"i32"),t}for(const e of Object.getOwnPropertyNames(it.prototype))Object.defineProperty(i.prototype,e,{value:it.prototype[e],enumerable:!1,writable:!1});i.Language=ut,r.onRuntimeInitialized=()=>{it.init(),t()}})))}}return i}();e.exports=s},3078:()=>{},4142:()=>{},1212:(e,t,n)=>{e.exports=n(8411)},7202:(e,t,n)=>{"use strict";var r=n(239);e.exports=r},6656:(e,t,n)=>{"use strict";n(484),n(5695),n(6138),n(9828),n(3832);var r=n(8099);e.exports=r.AggregateError},8411:(e,t,n)=>{"use strict";e.exports=n(8337)},8337:(e,t,n)=>{"use strict";n(5442);var r=n(7202);e.exports=r},814:(e,t,n)=>{"use strict";var r=n(2769),s=n(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not a function")}},1966:(e,t,n)=>{"use strict";var r=n(2937),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+s(e)+" as a prototype")}},8137:e=>{"use strict";e.exports=function(){}},7235:(e,t,n)=>{"use strict";var r=n(262),s=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(s(e)+" is not an object")}},1005:(e,t,n)=>{"use strict";var r=n(3273),s=n(4574),i=n(8130),o=function(e){return function(t,n,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var u,l=s(o,c);if(e&&n!=n){for(;c>l;)if((u=a[l++])!=u)return!0}else for(;c>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},9932:(e,t,n)=>{"use strict";var r=n(6100),s=r({}.toString),i=r("".slice);e.exports=function(e){return i(s(e),8,-1)}},8407:(e,t,n)=>{"use strict";var r=n(4904),s=n(2769),i=n(9932),o=n(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,n,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?n:c?i(t):"Object"===(r=i(t))&&s(t.callee)?"Arguments":r}},7464:(e,t,n)=>{"use strict";var r=n(701),s=n(5691),i=n(4543),o=n(9989);e.exports=function(e,t,n){for(var a=s(t),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(e,p)||n&&r(n,p)||c(e,p,u(t,p))}}},2871:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},3999:(e,t,n)=>{"use strict";var r=n(5024),s=n(9989),i=n(480);e.exports=r?function(e,t,n){return s.f(e,t,i(1,n))}:function(e,t,n){return e[t]=n,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,n)=>{"use strict";var r=n(3999);e.exports=function(e,t,n,s){return s&&s.enumerable?e[t]=n:r(e,t,n),e}},7525:(e,t,n)=>{"use strict";var r=n(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(r,e,{value:t,configurable:!0,writable:!0})}catch(n){r[e]=t}return t}},5024:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},9619:(e,t,n)=>{"use strict";var r=n(8900),s=n(262),i=r.document,o=s(i)&&s(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}},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3531:(e,t,n)=>{"use strict";var r=n(8900).navigator,s=r&&r.userAgent;e.exports=s?String(s):""},5547:(e,t,n)=>{"use strict";var r,s,i=n(8900),o=n(3531),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),e.exports=s},3885:(e,t,n)=>{"use strict";var r=n(6100),s=Error,i=r("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},4279:(e,t,n)=>{"use strict";var r=n(3999),s=n(3885),i=n(5791),o=Error.captureStackTrace;e.exports=function(e,t,n,a){i&&(o?o(e,t):r(e,"stack",s(n,a)))}},5791:(e,t,n)=>{"use strict";var r=n(1203),s=n(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},9098:(e,t,n)=>{"use strict";var r=n(8900),s=n(7013),i=n(9344),o=n(2769),a=n(4543).f,c=n(8696),u=n(8099),l=n(4572),p=n(3999),h=n(701);n(3753);var m=function(e){var t=function(n,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,r)}return new e(n,r,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var n,s,f,d,_,g,y,v,w,b=e.target,E=e.global,x=e.stat,S=e.proto,P=E?r:x?r[b]:r[b]&&r[b].prototype,j=E?u:u[b]||p(u,b,{})[b],O=j.prototype;for(d in t)s=!(n=c(E?d:b+(x?".":"#")+d,e.forced))&&P&&h(P,d),g=j[d],s&&(y=e.dontCallGetSet?(w=a(P,d))&&w.value:P[d]),_=s&&y?y:t[d],(n||S||typeof g!=typeof _)&&(v=e.bind&&s?l(_,r):e.wrap&&s?m(_):S&&o(_)?i(_):_,(e.sham||_&&_.sham||g&&g.sham)&&p(v,"sham",!0),p(j,d,v),S&&(h(u,f=b+"Prototype")||p(u,f,{}),p(u[f],d,_),e.real&&O&&(n||!O[d])&&p(O,d,_)))}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},7013:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},4572:(e,t,n)=>{"use strict";var r=n(9344),s=n(814),i=n(1780),o=r(r.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},1780:(e,t,n)=>{"use strict";var r=n(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},4713:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype.call;e.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},3410:(e,t,n)=>{"use strict";var r=n(5024),s=n(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},3574:(e,t,n)=>{"use strict";var r=n(6100),s=n(814);e.exports=function(e,t,n){try{return r(s(Object.getOwnPropertyDescriptor(e,t)[n]))}catch(e){}}},9344:(e,t,n)=>{"use strict";var r=n(9932),s=n(6100);e.exports=function(e){if("Function"===r(e))return s(e)}},6100:(e,t,n)=>{"use strict";var r=n(1780),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},1003:(e,t,n)=>{"use strict";var r=n(8099),s=n(8900),i=n(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(s[e]):r[e]&&r[e][t]||s[e]&&s[e][t]}},967:(e,t,n)=>{"use strict";var r=n(8407),s=n(4674),i=n(3057),o=n(6625),a=n(8655)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[r(e)]}},1613:(e,t,n)=>{"use strict";var r=n(4713),s=n(814),i=n(7235),o=n(459),a=n(967),c=TypeError;e.exports=function(e,t){var n=arguments.length<2?a(e):t;if(s(n))return i(r(n,e));throw new c(o(e)+" is not iterable")}},4674:(e,t,n)=>{"use strict";var r=n(814),s=n(3057);e.exports=function(e,t){var n=e[t];return s(n)?void 0:r(n)}},8900:function(e,t,n){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},701:(e,t,n)=>{"use strict";var r=n(6100),s=n(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},5241:e=>{"use strict";e.exports={}},3489:(e,t,n)=>{"use strict";var r=n(1003);e.exports=r("document","documentElement")},9665:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203),i=n(9619);e.exports=!r&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},1395:(e,t,n)=>{"use strict";var r=n(6100),s=n(1203),i=n(9932),o=Object,a=r("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},3507:(e,t,n)=>{"use strict";var r=n(2769),s=n(262),i=n(3491);e.exports=function(e,t,n){var o,a;return i&&r(o=t.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(e,a),e}},8148:(e,t,n)=>{"use strict";var r=n(262),s=n(3999);e.exports=function(e,t){r(t)&&"cause"in t&&s(e,"cause",t.cause)}},8417:(e,t,n)=>{"use strict";var r,s,i,o=n(1314),a=n(8900),c=n(262),u=n(3999),l=n(701),p=n(3753),h=n(4275),m=n(5241),f="Object already initialized",d=a.TypeError,_=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new _);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new d(f);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=h("state");m[y]=!0,r=function(e,t){if(l(e,y))throw new d(f);return t.facade=e,u(e,y,t),t},s=function(e){return l(e,y)?e[y]:{}},i=function(e){return l(e,y)}}e.exports={set:r,get:s,has:i,enforce:function(e){return i(e)?s(e):r(e,{})},getterFor:function(e){return function(t){var n;if(!c(t)||(n=s(t)).type!==e)throw new d("Incompatible receiver, "+e+" required");return n}}}},2877:(e,t,n)=>{"use strict";var r=n(8655),s=n(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.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,n)=>{"use strict";var r=n(1203),s=n(2769),i=/#|\.prototype\./,o=function(e,t){var n=c[a(e)];return n===l||n!==u&&(s(t)?r(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,n)=>{"use strict";var r=n(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},2937:(e,t,n)=>{"use strict";var r=n(262);e.exports=function(e){return r(e)||null===e}},4871:e=>{"use strict";e.exports=!0},6281:(e,t,n)=>{"use strict";var r=n(1003),s=n(2769),i=n(4317),o=n(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return s(t)&&i(t.prototype,a(e))}},208:(e,t,n)=>{"use strict";var r=n(4572),s=n(4713),i=n(7235),o=n(459),a=n(2877),c=n(8130),u=n(4317),l=n(1613),p=n(967),h=n(1743),m=TypeError,f=function(e,t){this.stopped=e,this.result=t},d=f.prototype;e.exports=function(e,t,n){var _,g,y,v,w,b,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),P=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),A=r(t,x),k=function(e){return _&&h(_,"normal",e),new f(!0,e)},I=function(e){return S?(i(e),O?A(e[0],e[1],k):A(e[0],e[1])):O?A(e,k):A(e)};if(P)_=e.iterator;else if(j)_=e;else{if(!(g=p(e)))throw new m(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((w=I(e[y]))&&u(d,w))return w;return new f(!1)}_=l(e,g)}for(b=P?e.next:_.next;!(E=s(b,_)).done;){try{w=I(E.value)}catch(e){h(_,"throw",e)}if("object"==typeof w&&w&&u(d,w))return w}return new f(!1)}},1743:(e,t,n)=>{"use strict";var r=n(4713),s=n(7235),i=n(4674);e.exports=function(e,t,n){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw n;return n}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw n;if(a)throw o;return s(o),n}},1926:(e,t,n)=>{"use strict";var r=n(2621).IteratorPrototype,s=n(5780),i=n(480),o=n(1811),a=n(6625),c=function(){return this};e.exports=function(e,t,n,u){var l=t+" Iterator";return e.prototype=s(r,{next:i(+!u,n)}),o(e,l,!1,!0),a[l]=c,e}},164:(e,t,n)=>{"use strict";var r=n(9098),s=n(4713),i=n(4871),o=n(3410),a=n(2769),c=n(1926),u=n(3671),l=n(3491),p=n(1811),h=n(3999),m=n(3508),f=n(8655),d=n(6625),_=n(2621),g=o.PROPER,y=o.CONFIGURABLE,v=_.IteratorPrototype,w=_.BUGGY_SAFARI_ITERATORS,b=f("iterator"),E="keys",x="values",S="entries",P=function(){return this};e.exports=function(e,t,n,o,f,_,j){c(n,t,o);var O,A,k,I=function(e){if(e===f&&R)return R;if(!w&&e&&e in T)return T[e];switch(e){case E:case x:case S:return function(){return new n(this,e)}}return function(){return new n(this)}},M=t+" Iterator",N=!1,T=e.prototype,$=T[b]||T["@@iterator"]||f&&T[f],R=!w&&$||I(f),F="Array"===t&&T.entries||$;if(F&&(O=u(F.call(new e)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[b])||m(O,b,P)),p(O,M,!0,!0),i&&(d[M]=P)),g&&f===x&&$&&$.name!==x&&(!i&&y?h(T,"name",x):(N=!0,R=function(){return s($,this)})),f)if(A={values:I(x),keys:_?R:I(E),entries:I(S)},j)for(k in A)(w||N||!(k in T))&&m(T,k,A[k]);else r({target:t,proto:!0,forced:w||N},A);return i&&!j||T[b]===R||m(T,b,R,{name:f}),d[t]=R,A}},2621:(e,t,n)=>{"use strict";var r,s,i,o=n(1203),a=n(2769),c=n(262),u=n(5780),l=n(3671),p=n(3508),h=n(8655),m=n(4871),f=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var e={};return r[f].call(e)!==e}))?r={}:m&&(r=u(r)),a(r[f])||p(r,f,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},6625:e=>{"use strict";e.exports={}},8130:(e,t,n)=>{"use strict";var r=n(8146);e.exports=function(e){return r(e.length)}},5777:e=>{"use strict";var t=Math.ceil,n=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?n:t)(r)}},4879:(e,t,n)=>{"use strict";var r=n(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},5780:(e,t,n)=>{"use strict";var r,s=n(7235),i=n(7389),o=n(9683),a=n(5241),c=n(3489),u=n(9619),l=n(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},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,n;g="undefined"!=typeof document?document.domain&&r?_(r):(t=u("iframe"),n="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(n),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):_(r);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[m]=!0,e.exports=Object.create||function(e,t){var n;return null!==e?(f[p]=s(e),n=new f,f[p]=null,n[m]=e):n=g(),void 0===t?n:i.f(n,t)}},7389:(e,t,n)=>{"use strict";var r=n(5024),s=n(1330),i=n(9989),o=n(7235),a=n(3273),c=n(8364);t.f=r&&!s?Object.defineProperties:function(e,t){o(e);for(var n,r=a(t),s=c(t),u=s.length,l=0;u>l;)i.f(e,n=s[l++],r[n]);return e}},9989:(e,t,n)=>{"use strict";var r=n(5024),s=n(9665),i=n(1330),o=n(7235),a=n(5341),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",m="writable";t.f=r?i?function(e,t,n){if(o(e),t=a(t),o(n),"function"==typeof e&&"prototype"===t&&"value"in n&&m in n&&!n[m]){var r=l(e,t);r&&r[m]&&(e[t]=n.value,n={configurable:h in n?n[h]:r[h],enumerable:p in n?n[p]:r[p],writable:!1})}return u(e,t,n)}:u:function(e,t,n){if(o(e),t=a(t),o(n),s)try{return u(e,t,n)}catch(e){}if("get"in n||"set"in n)throw new c("Accessors not supported");return"value"in n&&(e[t]=n.value),e}},4543:(e,t,n)=>{"use strict";var r=n(5024),s=n(4713),i=n(7161),o=n(480),a=n(3273),c=n(5341),u=n(701),l=n(9665),p=Object.getOwnPropertyDescriptor;t.f=r?p:function(e,t){if(e=a(e),t=c(t),l)try{return p(e,t)}catch(e){}if(u(e,t))return o(!s(i.f,e,t),e[t])}},5116:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,s)}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},3671:(e,t,n)=>{"use strict";var r=n(701),s=n(2769),i=n(2137),o=n(4275),a=n(2871),c=o("IE_PROTO"),u=Object,l=u.prototype;e.exports=a?u.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var n=t.constructor;return s(n)&&t instanceof n?n.prototype:t instanceof u?l:null}},4317:(e,t,n)=>{"use strict";var r=n(6100);e.exports=r({}.isPrototypeOf)},8600:(e,t,n)=>{"use strict";var r=n(6100),s=n(701),i=n(3273),o=n(1005).indexOf,a=n(5241),c=r([].push);e.exports=function(e,t){var n,r=i(e),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;t.length>u;)s(r,n=t[u++])&&(~o(l,n)||c(l,n));return l}},8364:(e,t,n)=>{"use strict";var r=n(8600),s=n(9683);e.exports=Object.keys||function(e){return r(e,s)}},7161:(e,t)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);t.f=s?function(e){var t=r(this,e);return!!t&&t.enumerable}:n},3491:(e,t,n)=>{"use strict";var r=n(3574),s=n(262),i=n(5426),o=n(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,n={};try{(e=r(Object.prototype,"__proto__","set"))(n,[]),t=n instanceof Array}catch(e){}return function(n,r){return i(n),o(r),s(n)?(t?e(n,r):n.__proto__=r,n):n}}():void 0)},9559:(e,t,n)=>{"use strict";var r=n(4904),s=n(8407);e.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},9258:(e,t,n)=>{"use strict";var r=n(4713),s=n(2769),i=n(262),o=TypeError;e.exports=function(e,t){var n,a;if("string"===t&&s(n=e.toString)&&!i(a=r(n,e)))return a;if(s(n=e.valueOf)&&!i(a=r(n,e)))return a;if("string"!==t&&s(n=e.toString)&&!i(a=r(n,e)))return a;throw new o("Can't convert object to primitive value")}},5691:(e,t,n)=>{"use strict";var r=n(1003),s=n(6100),i=n(5116),o=n(7313),a=n(7235),c=s([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),n=o.f;return n?c(t,n(e)):t}},8099:e=>{"use strict";e.exports={}},5516:(e,t,n)=>{"use strict";var r=n(9989).f;e.exports=function(e,t,n){n in e||r(e,n,{configurable:!0,get:function(){return t[n]},set:function(e){t[n]=e}})}},5426:(e,t,n)=>{"use strict";var r=n(3057),s=TypeError;e.exports=function(e){if(r(e))throw new s("Can't call method on "+e);return e}},1811:(e,t,n)=>{"use strict";var r=n(4904),s=n(9989).f,i=n(3999),o=n(701),a=n(9559),c=n(8655)("toStringTag");e.exports=function(e,t,n,u){var l=n?e:e&&e.prototype;l&&(o(l,c)||s(l,c,{configurable:!0,value:t}),u&&!r&&i(l,"toString",a))}},4275:(e,t,n)=>{"use strict";var r=n(8141),s=n(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3753:(e,t,n)=>{"use strict";var r=n(4871),s=n(8900),i=n(7525),o="__core-js_shared__",a=e.exports=s[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.38.1",mode:r?"pure":"global",copyright:"© 2014-2024 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.38.1/LICENSE",source:"https://github.com/zloirock/core-js"})},8141:(e,t,n)=>{"use strict";var r=n(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},5571:(e,t,n)=>{"use strict";var r=n(6100),s=n(9903),i=n(1139),o=n(5426),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(e){return function(t,n){var r,l,p=i(o(t)),h=s(n),m=p.length;return h<0||h>=m?e?"":void 0:(r=c(p,h))<55296||r>56319||h+1===m||(l=c(p,h+1))<56320||l>57343?e?a(p,h):r:e?u(p,h,h+2):l-56320+(r-55296<<10)+65536}};e.exports={codeAt:l(!1),charAt:l(!0)}},4603:(e,t,n)=>{"use strict";var r=n(5547),s=n(1203),i=n(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4574:(e,t,n)=>{"use strict";var r=n(9903),s=Math.max,i=Math.min;e.exports=function(e,t){var n=r(e);return n<0?s(n+t,0):i(n,t)}},3273:(e,t,n)=>{"use strict";var r=n(1395),s=n(5426);e.exports=function(e){return r(s(e))}},9903:(e,t,n)=>{"use strict";var r=n(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},8146:(e,t,n)=>{"use strict";var r=n(9903),s=Math.min;e.exports=function(e){var t=r(e);return t>0?s(t,9007199254740991):0}},2137:(e,t,n)=>{"use strict";var r=n(5426),s=Object;e.exports=function(e){return s(r(e))}},493:(e,t,n)=>{"use strict";var r=n(4713),s=n(262),i=n(6281),o=n(4674),a=n(9258),c=n(8655),u=TypeError,l=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var n,c=o(e,l);if(c){if(void 0===t&&(t="default"),n=r(c,e,t),!s(n)||i(n))return n;throw new u("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},5341:(e,t,n)=>{"use strict";var r=n(493),s=n(6281);e.exports=function(e){var t=r(e,"string");return s(t)?t:t+""}},4904:(e,t,n)=>{"use strict";var r={};r[n(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},1139:(e,t,n)=>{"use strict";var r=n(8407),s=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},1268:(e,t,n)=>{"use strict";var r=n(6100),s=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},7460:(e,t,n)=>{"use strict";var r=n(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},1330:(e,t,n)=>{"use strict";var r=n(5024),s=n(1203);e.exports=r&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1314:(e,t,n)=>{"use strict";var r=n(8900),s=n(2769),i=r.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8655:(e,t,n)=>{"use strict";var r=n(8900),s=n(8141),i=n(701),o=n(1268),a=n(4603),c=n(7460),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;e.exports=function(e){return i(l,e)||(l[e]=a&&i(u,e)?u[e]:p("Symbol."+e)),l[e]}},6453:(e,t,n)=>{"use strict";var r=n(1003),s=n(701),i=n(3999),o=n(4317),a=n(3491),c=n(7464),u=n(5516),l=n(3507),p=n(4879),h=n(8148),m=n(4279),f=n(5024),d=n(4871);e.exports=function(e,t,n,_){var g="stackTraceLimit",y=_?2:1,v=e.split("."),w=v[v.length-1],b=r.apply(null,v);if(b){var E=b.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return b;var x=r("Error"),S=t((function(e,t){var n=p(_?t:e,void 0),r=_?new b(e):new b;return void 0!==n&&i(r,"message",n),m(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>y&&h(r,arguments[y]),r}));if(S.prototype=E,"Error"!==w?a?a(S,x):c(S,x,{name:!0}):f&&g in b&&(u(S,b,g),u(S,b,"prepareStackTrace")),c(S,b),!d)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},6138:(e,t,n)=>{"use strict";var r=n(9098),s=n(1003),i=n(7013),o=n(1203),a=n(6453),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(e){return function(t,n){return i(e,this,arguments)}}),l,!0)})},3085:(e,t,n)=>{"use strict";var r=n(9098),s=n(4317),i=n(3671),o=n(3491),a=n(7464),c=n(5780),u=n(3999),l=n(480),p=n(8148),h=n(4279),m=n(208),f=n(4879),d=n(8655)("toStringTag"),_=Error,g=[].push,y=function(e,t){var n,r=s(v,this);o?n=o(new _,r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==t&&u(n,"message",f(t)),h(n,y,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return m(e,g,{that:a}),u(n,"errors",a),n};o?o(y,_):a(y,_,{name:!0});var v=y.prototype=c(_.prototype,{constructor:l(1,y),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},5695:(e,t,n)=>{"use strict";n(3085)},9828:(e,t,n)=>{"use strict";var r=n(3273),s=n(8137),i=n(6625),o=n(8417),a=n(9989).f,c=n(164),u=n(877),l=n(4871),p=n(5024),h="Array Iterator",m=o.set,f=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){m(this,{type:h,target:r(e),index:0,kind:t})}),(function(){var e=f(this),t=e.target,n=e.index++;if(!t||n>=t.length)return e.target=null,u(void 0,!0);switch(e.kind){case"keys":return u(n,!1);case"values":return u(t[n],!1)}return u([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},484:(e,t,n)=>{"use strict";var r=n(9098),s=n(8900),i=n(7013),o=n(6453),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(e,t){var n={};n[e]=o(e,t,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(e,t){if(c&&c[e]){var n={};n[e]=o(a+"."+e,t,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};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,n)=>{"use strict";var r=n(5571).charAt,s=n(1139),i=n(8417),o=n(164),a=n(877),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(e){u(this,{type:c,string:s(e),index:0})}),(function(){var e,t=l(this),n=t.string,s=t.index;return s>=n.length?a(void 0,!0):(e=r(n,s),t.index+=e.length,a(e,!1))}))},5442:(e,t,n)=>{"use strict";n(5695)},85:(e,t,n)=>{"use strict";n(9828);var r=n(1100),s=n(8900),i=n(1811),o=n(6625);for(var a in r)i(s[a],a),o[a]=o.Array},239:(e,t,n)=>{"use strict";n(5442);var r=n(6656);n(85),e.exports=r}},t={};function n(r){var s=t[r];if(void 0!==s)return s.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;n.g.importScripts&&(e=n.g.location+"");var t=n.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&(!e||!/^http(s?):/.test(e));)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=e})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>dp,detectionRegExp:()=>fp,mediaTypes:()=>mp,namespace:()=>gp,parse:()=>_p});var e={};n.r(e),n.d(e,{hasElementSourceMap:()=>cs,includesClasses:()=>ls,includesSymbols:()=>us,isAnnotationElement:()=>rs,isArrayElement:()=>Qr,isBooleanElement:()=>Zr,isCommentElement:()=>ss,isElement:()=>Wr,isLinkElement:()=>ts,isMemberElement:()=>es,isNullElement:()=>Yr,isNumberElement:()=>Jr,isObjectElement:()=>Xr,isParseResultElement:()=>is,isPrimitiveElement:()=>as,isRefElement:()=>ns,isSourceMapElement:()=>os,isStringElement:()=>Kr});var t={};n.r(t),n.d(t,{isJSONReferenceElement:()=>ya,isJSONSchemaElement:()=>ga,isLinkDescriptionElement:()=>wa,isMediaElement:()=>va});var s={};n.r(s),n.d(s,{isReferenceLikeElement:()=>pc,isSwaggerExtension:()=>lc});var i={};function o(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function a(e){return function t(n){return 0===arguments.length||o(n)?t:e.apply(this,arguments)}}function c(e){return function t(n,r){switch(arguments.length){case 0:return t;case 1:return o(n)?t:a((function(t){return e(n,t)}));default:return o(n)&&o(r)?t:o(n)?a((function(t){return e(t,r)})):o(r)?a((function(t){return e(n,t)})):e(n,r)}}}function u(e){return function t(n,r,s){switch(arguments.length){case 0:return t;case 1:return o(n)?t:c((function(t,r){return e(n,t,r)}));case 2:return o(n)&&o(r)?t:o(n)?c((function(t,n){return e(t,r,n)})):o(r)?c((function(t,r){return e(n,t,r)})):a((function(t){return e(n,r,t)}));default:return o(n)&&o(r)&&o(s)?t:o(n)&&o(r)?c((function(t,n){return e(t,n,s)})):o(n)&&o(s)?c((function(t,n){return e(t,r,n)})):o(r)&&o(s)?c((function(t,r){return e(n,t,r)})):o(n)?a((function(t){return e(t,r,s)})):o(r)?a((function(t){return e(n,t,s)})):o(s)?a((function(t){return e(n,r,t)})):e(n,r,s)}}}n.r(i),n.d(i,{isContactElement:()=>Kc,isDefinitionsElement:()=>hu,isExampleElement:()=>su,isExternalDocumentationElement:()=>Xc,isHeaderElement:()=>iu,isHeadersElement:()=>ru,isInfoElement:()=>Gc,isItemsElement:()=>eu,isLicenseElement:()=>Wc,isOperationElement:()=>Zc,isParameterElement:()=>Qc,isParametersDefinitionsElement:()=>mu,isPathItemElement:()=>Yc,isPathsElement:()=>Jc,isReferenceElement:()=>au,isResponseElement:()=>nu,isResponsesDefinitionsElement:()=>lu,isResponsesElement:()=>tu,isSchemaElement:()=>cu,isScopesElement:()=>du,isSecurityDefinitionsElement:()=>pu,isSecurityRequirementElement:()=>_u,isSecuritySchemeElement:()=>fu,isSwaggerElement:()=>zc,isSwaggerVersionElement:()=>Hc,isTagElement:()=>ou,isXmlElement:()=>uu});const l=c((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return(e|0)===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}function m(e,t){var n=e<0?t.length+e:e;return h(t)?t.charAt(n):t[n]}const f=c((function(e,t){if(null!=t)return p(e)?m(e,t):t[e]}));const d=u((function(e,t,n){return l(e,f(t,n))}));var _=c((function(e,t){for(var n={},r={},s=0,i=e.length;s<i;)r[e[s]]=1,s+=1;for(var o in t)r.hasOwnProperty(o)||(n[o]=t[o]);return n}));const g=_;function y(e,t,n){for(var r=0,s=n.length;r<s;)t=e(t,n[r]),r+=1;return t}const v=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const w=a((function(e){return!!v(e)||!!e&&("object"==typeof e&&(!h(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function E(e,t,n){return function(r,s,i){if(w(i))return e(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(r,s,i,"fantasy-land/reduce");if(null!=i[b])return n(r,s,i[b]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return t(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function x(e,t,n){for(var r=n.next();!r.done;)t=e(t,r.value),r=n.next();return t}function S(e,t,n,r){return n[r](e,t)}const P=E(y,S,x);function j(e,t,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!v(r)){for(var s=0;s<e.length;){if("function"==typeof r[e[s]])return r[e[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}function O(e,t){for(var n=0,r=t.length,s=Array(r);n<r;)s[n]=e(t[n]),n+=1;return s}const A=function(){return this.xf["@@transducer/init"]()},k=function(e){return this.xf["@@transducer/result"](e)};var I=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const M=function(e){return function(t){return new I(e,t)}};function N(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,n){return t.apply(this,arguments)};case 3:return function(e,n,r){return t.apply(this,arguments)};case 4:return function(e,n,r,s){return t.apply(this,arguments)};case 5:return function(e,n,r,s,i){return t.apply(this,arguments)};case 6:return function(e,n,r,s,i,o){return t.apply(this,arguments)};case 7:return function(e,n,r,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,n,r,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,n,r,s,i,o,a,c,u){return t.apply(this,arguments)};case 10:return function(e,n,r,s,i,o,a,c,u,l){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,n){return function(){for(var r=[],s=0,i=e,a=0,c=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!o(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),r[a]=u,o(u)?c=!0:i-=1,a+=1}return!c&&i<=0?n.apply(this,r):N(Math.max(0,i),T(e,r,n))}}const $=c((function(e,t){return 1===e?a(t):N(e,T(e,[],t))}));function R(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var F=Object.prototype.toString;const C=function(){return"[object Arguments]"===F.call(arguments)?function(e){return"[object Arguments]"===F.call(e)}:function(e){return R("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var n=0;n<e.length;){if(e[n]===t)return!0;n+=1}return!1},B="function"!=typeof Object.keys||L?a((function(e){if(Object(e)!==e)return[];var t,n,r=[],s=L&&C(e);for(t in e)!R(t,e)||s&&"length"===t||(r[r.length]=t);if(q)for(n=D.length-1;n>=0;)R(t=D[n],e)&&!V(r,t)&&(r[r.length]=t),n-=1;return r})):a((function(e){return Object(e)!==e?[]:Object.keys(e)}));const U=B;const z=c(j(["fantasy-land/map","map"],M,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return $(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return y((function(n,r){return n[r]=e(t[r]),n}),{},U(t));default:return O(e,t)}})));const H=c((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(n){return e(n)(t(n))}:P((function(e,n){return function(e,t){var n;t=t||[];var r=(e=e||[]).length,s=t.length,i=[];for(n=0;n<r;)i[i.length]=e[n],n+=1;for(n=0;n<s;)i[i.length]=t[n],n+=1;return i}(e,z(n,t))}),[],e)}));const G=c((function(e,t){var n=$(e,t);return $(e,(function(){return y(H,z(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=a((function(e){return G(e.length,e)}));const K=W(a((function(e){return!e})));function J(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}function Y(e,t,n){for(var r=0,s=n.length;r<s;){if(e(t,n[r]))return!0;r+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const X=a((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function Q(e,t,n,r){var s=J(e);function i(e,t){return ee(e,t,n.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),J(t),s)}function ee(e,t,n,r){if(Z(e,t))return!0;var s,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"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!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=n.length-1;a>=0;){if(n[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&Q(e.entries(),t.entries(),n.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&Q(e.values(),t.values(),n.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=U(e);if(c.length!==U(t).length)return!1;var u=n.concat([e]),l=r.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!R(p,t)||!ee(t[p],e[p],u,l))return!1;a-=1}return!0}const te=c((function(e,t){return ee(e,t,[],[])}));const ne=a((function(e){return function(){return e}}));const re=ne(void 0);const se=te(re());const ie=K(se);var oe=n(8326);function ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ce(e,t,n){for(var r=0,s=n.length;r<s;){if((t=e["@@transducer/step"](t,n[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const ue=c((function(e,t){return N(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,n){for(var r=n.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=n.next()}return e["@@transducer/result"](t)}function pe(e,t,n,r){return e["@@transducer/result"](n[r](ue(e["@@transducer/step"],e),t))}const he=E(ce,pe,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function fe(e){return new me(e)}const de=u((function(e,t,n){return he("function"==typeof e?fe(e):e,t,n)}));function _e(e,t){return function(){var n=arguments.length;if(0===n)return t();var r=arguments[n-1];return v(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const ge=u(_e("slice",(function(e,t,n){return Array.prototype.slice.call(n,e,t)})));const ye=a(_e("tail",ge(1,1/0)));function ve(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return N(arguments[0].length,de(ae,arguments[0],ye(arguments)))}var we=function(e,t){switch(arguments.length){case 0:return we;case 1:return function t(n){return 0===arguments.length?t:Z(e,n)};default:return Z(e,t)}};const be=we;function Ee(e,t){return function(e,t,n){var r,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;n<e.length;){if(0===(s=e[n])&&1/s===r)return n;n+=1}return-1}if(t!=t){for(;n<e.length;){if("number"==typeof(s=e[n])&&s!=s)return n;n+=1}return-1}return e.indexOf(t,n);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,n);case"object":if(null===t)return e.indexOf(t,n)}for(;n<e.length;){if(te(e[n],t))return n;n+=1}return-1}(t,e,0)>=0}function xe(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Se=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Se(e.getUTCMonth()+1)+"-"+Se(e.getUTCDate())+"T"+Se(e.getUTCHours())+":"+Se(e.getUTCMinutes())+":"+Se(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function je(e){return"[object Object]"===Object.prototype.toString.call(e)}var Oe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Oe(e,t)}}const ke=c(j(["fantasy-land/filter","filter"],Ae,(function(e,t){return je(t)?y((function(n,r){return e(t[r])&&(n[r]=t[r]),n}),{},U(t)):function(e,t){for(var n=0,r=t.length,s=[];n<r;)e(t[n])&&(s[s.length]=t[n]),n+=1;return s}(e,t)})));const Ie=c((function(e,t){return ke((n=e,function(){return!n.apply(this,arguments)}),t);var n}));function Me(e,t){var n=function(n){var r=t.concat([e]);return Ee(n,r)?"<Circular>":Me(n,r)},r=function(e,t){return O((function(t){return xe(t)+": "+n(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+O(n,e).join(", ")+"))";case"[object Array]":return"["+O(n,e).concat(r(e,Ie((function(e){return/^\d+$/.test(e)}),U(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+n(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?n(NaN):xe(Pe(e)))+")";case"[object Map]":return"new Map("+n(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+n(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+n(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+n(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+r(e,U(e)).join(", ")+"}"}}const Ne=a((function(e){return Me(e,[])}));function Te(e,t){for(var n=t,r=0;r<e.length;r+=1){if(null==n)return;var s=e[r];n=p(s)?m(s,n):n[s]}return n}const $e=u((function(e,t,n){return e(Te(t,n))}));function Re(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Fe=c((function(e,t){return e&&t}));const Ce=c((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Fe)(e,t)}));const qe=te(null);const De=K(qe);function Le(e){return Le="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Le(e)}const Ve=function(e){return"object"===Le(e)};const Be=$(1,Ce(De,Ve));const Ue=c((function(e,t){if(e===t)return t;function n(e,t){if(e>t!=t>e)return t>e?t:e}var r=n(e,t);if(void 0!==r)return r;var s=n(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Ne(e),o=n(i,Ne(t));return void 0!==o&&o===i?e:t}));const ze=c((function(e,t){return z(f(e),t)}));const He=a((function(e){return $(de(Ue,0,ze("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Ge=$(1,ve(X,be("GeneratorFunction")));const We=$(1,ve(X,be("AsyncFunction")));const Ke=He([ve(X,be("Function")),Ge,We]);var Je=ve(X,be("Object")),Ye=ve(Ne,te(Ne(Object))),Ze=$e(Ce(Ke,Ye),["constructor"]);const Xe=$(1,(function(e){if(!Be(e)||!Je(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Ze(t)}));class Qe extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const et=Qe;class tt extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="comment"}}const nt=tt;class rt extends oe.wE{constructor(e,t,n){super(e,t,n),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 n=this.content.findIndex((e=>e===t));return-1!==n&&(this.content[n]=e,!0)}}const st=rt;class it extends oe.wE{constructor(e,t,n){super(e,t,n),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new oe.wE([e.start.row,e.start.column,e.start.char]),n=new oe.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),n.classes.push("position"),this.push(t).push(n)}}const ot=it;class at extends oe.g${constructor(){super(),this.register("annotation",et),this.register("comment",nt),this.register("parseResult",st),this.register("sourceMap",ot)}}const ct=new at,ut=e=>{const t=new at;return Xe(e)&&t.use(e),t},lt=ct;const pt=$(1,ve(X,be("String"))),ht=n.p+"23aac571c96605dc25219087ad291441.wasm",mt=globalThis.fetch;Ke(mt)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?mt.apply(globalThis,[ht,ye(e)]):mt.apply(globalThis,e));var ft=n(3833),dt=n(1212);const _t=class extends dt{constructor(e,t,n){if(super(e,t,n),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!=n&&"object"==typeof n&&Object.hasOwn(n,"cause")&&!("cause"in this)){const{cause:e}=n;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class gt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(_t,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const yt=gt,vt=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let wt=null,bt=null;const Et=async e=>{if(null===wt&&null===bt)bt=ft.init().then((()=>ft.Language.load(vt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{bt=null})),wt=await bt;else if(null===wt&&null!==bt)wt=await bt;else if(null===wt)throw new yt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return wt.parse(e)};function xt(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function St(e,t,n){if(n||(n=new Pt),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r=function(r){var s=n.get(e);if(s)return s;for(var i in n.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?St(e[i],!0,n):e[i]);return r};switch(X(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return xt(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Pt=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var n=this.hash(e),r=this.map[n];r||(this.map[n]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var n in e)t.push(Object.prototype.toString.call(e[n]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var n=this.map[t],r=0;r<n.length;r+=1){if((i=n[r])[0]===e)return i[1]}else{var s=this.hash(e);if(n=this.map[s])for(r=0;r<n.length;r+=1){var i;if((i=n[r])[0]===e)return i[1]}}},e}();const jt=a((function(e){return null!=e&&"function"==typeof e.clone?e.clone():St(e,!0)}));const Ot=class extends yt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...n}=t;Object.assign(this,n)}}};const At=class extends Ot{};const kt=class extends At{};const It=class extends kt{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Mt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:n=!1}={}){this.type=this.constructor.type,this.isMissing=n,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const n=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,n)})),e}};let Nt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const Tt=class extends Mt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...n}){super({...n}),this.explicitName=e,this.kind=t}};const $t=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Rt=class extends $t{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Nt.Mapping}};const Ft=class extends $t{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Nt.Sequence}};const Ct=class extends $t{static uri="tag:yaml.org,2002:str"};const qt=u((function(e,t,n){return l(e,Te(t,n))}));const Dt=a((function(e){return $(e.length,e)}));var Lt="\t\n\v\f\r                 \u2028\u2029\ufeff";const Vt=a("function"==typeof String.prototype.trim&&!Lt.trim()&&"​".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Lt+"]["+Lt+"]*"),n=new RegExp("["+Lt+"]["+Lt+"]*$");return e.replace(t,"").replace(n,"")});const Bt=c((function(e,t){return $(e+1,(function(){var n=arguments[e];if(null!=n&&Re(n[t]))return n[t].apply(n,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(n)+' does not have a method named "'+t+'"')}))}));const Ut=Bt(1,"split");const zt=Bt(1,"join");const Ht=a((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Gt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return ve.apply(this,Ht(arguments))}const Wt=$(4,(function(e,t,n,r){return he(e("function"==typeof t?fe(t):t),n,r)}));const Kt=c((function(e,t){if(v(e)){if(v(t))return e.concat(t);throw new TypeError(Ne(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(Ne(t)+" is not a string")}if(null!=e&&Re(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&Re(e.concat))return e.concat(t);throw new TypeError(Ne(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Jt=te("");const Yt=c((function(e,t){return $(de(Ue,0,ze("length",t)),(function(){var n=arguments,r=this;return e.apply(r,O((function(e){return e.apply(r,n)}),t))}))}));function Zt(e){return e}const Xt=a(Zt);const Qt=$(1,ve(X,be("Number")));var en=Ce(Qt,isFinite);var tn=$(1,en);const nn=Ke(Number.isFinite)?$(1,ue(Number.isFinite,Number)):tn;var rn=Ce(nn,Yt(te,[Math.floor,Xt]));var sn=$(1,rn);const on=Ke(Number.isInteger)?$(1,ue(Number.isInteger,Number)):sn;const an=a((function(e){return $(e.length,(function(t,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=t,e.apply(this,r)}))}));const cn=K(nn);const un=$(1,Ce(Qt,c((function(e,t){return e>t}))(0)));var ln=Dt((function(e,t){var n=Number(t);if(n!==t&&(n=0),un(n))throw new RangeError("repeat count must be non-negative");if(cn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===e.length||0===n)return"";if(e.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=e;n;)s+=e,n-=1;return s+=s.substring(0,r-s.length)})),pn=an(Bt(1,"repeat"));const hn=Ke(String.prototype.repeat)?pn:ln;const mn=u((function(e,t,n){return n.replace(e,t)}));var fn=mn(/[\s\uFEFF\xA0]+$/,""),dn=Bt(0,"trimEnd");const _n=Ke(String.prototype.trimEnd)?dn:fn;var gn=mn(/^[\s\uFEFF\xA0]+/,""),yn=Bt(0,"trimStart");const vn=Ke(String.prototype.trimStart)?yn:gn;var wn=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function bn(e){return function(t){return new wn(e,t)}}const En=c(j(["dropWhile"],bn,(function(e,t){for(var n=0,r=t.length;n<r&&e(t[n]);)n+=1;return ge(n,1/0,t)})));const xn=an(c(Ee));const Sn=Dt((function(e,t){return ve(Ut(""),En(xn(e)),zt(""))(t)}));const Pn=an(Kt);var jn=n(6850);const On=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,An=e=>{const t=(e=>{const t=e.match(On),n=qt("",["groups","indentation"],t);return Jt(n)?void 0:parseInt(n,10)})(e);if(on(t))return hn(" ",t);const n=qt("",[1],e.split("\n")),r=qt(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return hn(" ",r)},kn=e=>{const t=e.match(On),n=qt("",["groups","chomping"],t);return Jt(n)?void 0:n},In=(e,t)=>se(e)?`${_n(t)}\n`:"-"===e?_n(t):t,Mn=e=>e.replace(/\r\n/g,"\n"),Nn=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,n)=>t?e:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Tn=Dt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),$n=ve(Mn,Vt,Nn,Ut("\n"),z(vn),zt("\n")),Rn=ve(Mn,Vt,Nn,Ut("\n"),z(vn),zt("\n"),Tn("'")),Fn=ve(Mn,Vt,(e=>e.replace(/\\\n\s*/g,"")),Nn,jn.MH,Ut("\n"),z(vn),zt("\n"),Tn('"'));let Cn=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),qn=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Dn=class{static test(e){return e.tag.kind===Nt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const n=e.clone();return e.style===Cn.Plain?t=$n(e.content):e.style===Cn.SingleQuoted?t=Rn(e.content):e.style===Cn.DoubleQuoted?t=Fn(e.content):e.style===Cn.Literal?t=(e=>{const t=An(e),n=kn(e),r=Mn(e),s=ye(r.split("\n")),i=Gt(z(Sn(t)),z(Pn("\n"))),o=Wt(i,Kt,"",s);return In(n,o)})(e.content):e.style===Cn.Folded&&(t=(e=>{const t=An(e),n=kn(e),r=Mn(e),s=ye(r.split("\n")),i=Gt(z(Sn(t)),z(Pn("\n"))),o=Wt(i,Kt,"",s),a=Nn(o);return In(n,a)})(e.content)),n.content=t,n}static resolve(e){return e}};const Ln=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Rt),this.registerTag(new Ft),this.registerTag(new Ct)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Nt.Scalar?t=Ct.uri:e.tag.kind===Nt.Sequence?t=Ft.uri:e.tag.kind===Nt.Mapping&&(t=Rt.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let n=e;Dn.test(e)&&(n=Dn.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new It(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:jt(e.tag.position),node:e.clone()});if(!r.test(n))throw new It(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:jt(e.tag.position),nodeCanonicalContent:n.content,node:e.clone()});return r.resolve(n)}};const Vn=class extends $t{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,n=e.clone();return n.content=t,n}};const Bn=class extends $t{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),n=e.clone();return n.content=t,n}};const Un=class extends $t{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),n=e.clone();return n.content=t,n}};const zn=class extends $t{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Hn=class extends Ln{constructor(){super(),this.registerTag(new Vn,!0),this.registerTag(new Bn,!0),this.registerTag(new Un,!0),this.registerTag(new zn,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Nt.Sequence)t=Ft.uri;else if(e.tag.kind===Nt.Mapping)t=Rt.uri;else if(e.tag.kind===Nt.Scalar){const n=this.tags.find((t=>t.test(e)));t=(null==n?void 0:n.tag)||"?"}return t}};const Gn=class extends Mt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:n,styleGroup:r,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=n,this.styleGroup=r}};const Wn=class extends Gn{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Kn=class extends At{},Jn=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Yn=e=>Jn("mapping",e),Zn=e=>Jn("sequence",e),Xn=e=>Jn("keyValuePair",e),Qn=e=>Jn("scalar",e),er=e=>Jn("alias",e);const tr=class{addAnchor(e){if(!(e=>Jn("anchor",e))(e.anchor))throw new Kn("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Wn({content:e.content,style:Cn.Plain,styleGroup:qn.Flow})}},nr=(e,t,n)=>{const r=e[t];if(null!=r){if(!n&&"function"==typeof r)return r;const e=n?r.leave:r.enter;if("function"==typeof e)return e}else{const r=n?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},rr={},sr=e=>null==e?void 0:e.type,ir=e=>"string"==typeof sr(e),or=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ar=(e,{visitFnGetter:t=nr,nodeTypeGetter:n=sr,breakSymbol:r=rr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(u,l,p,h,m,f){let d=u,_=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(d),!1);if("function"==typeof a){const t=a.call(e[u],d,l,p,h,m,g);if("function"==typeof(null==t?void 0:t.then))throw new Ot("Async visitor not supported in sync mode",{visitor:e[u],visitFn:a});if(t===i)c[u]=d;else if(t===r)c[u]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,_=!0}}}}return _?d:void 0},leave(s,o,u,l,p,h){let m=s;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],n(m),!0);if("function"==typeof a){const t=a.call(e[s],m,o,u,l,p,f);if("function"==typeof(null==t?void 0:t.then))throw new Ot("Async visitor not supported in sync mode",{visitor:e[s],visitFn:a});if(t===r)c[s]=r;else if(void 0!==t&&t!==i)return t}}else c[s]===m&&(c[s]=a)}}};ar[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=nr,nodeTypeGetter:n=sr,breakSymbol:r=rr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(u,l,p,h,m,f){let d=u,_=!1;const g={...f,replaceWith(e,t){f.replaceWith(e,t),d=e}};for(let u=0;u<e.length;u+=1)if(c[u]===a){const a=t(e[u],n(d),!1);if("function"==typeof a){const t=await a.call(e[u],d,l,p,h,m,g);if(t===i)c[u]=d;else if(t===r)c[u]=r;else{if(t===s)return t;if(void 0!==t){if(!o)return t;d=t,_=!0}}}}return _?d:void 0},async leave(s,o,u,l,p,h){let m=s;const f={...h,replaceWith(e,t){h.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(c[s]===a){const a=t(e[s],n(m),!0);if("function"==typeof a){const t=await a.call(e[s],m,o,u,l,p,f);if(t===r)c[s]=r;else if(void 0!==t&&t!==i)return t}}else c[s]===m&&(c[s]=a)}}};const cr=(e,t,{keyMap:n=null,state:r={},breakSymbol:s=rr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=nr,nodeTypeGetter:c=sr,nodePredicate:u=ir,nodeCloneFn:l=or,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const S=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),S)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let P;if(!Array.isArray(v)){var E;if(!u(v))throw new Ot(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;const s={replaceWith(t,r){"function"==typeof r?r(t,v,n,f,w,b):f&&(f[n]=t),e||(v=t)}};P=i.call(t,v,n,f,w,b,s)}if("function"==typeof(null===(E=P)||void 0===E?void 0:E.then))throw new Ot("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===s)break;if(P===o){if(!e){w.pop();continue}}else if(void 0!==P&&(y.push([n,P]),!e)){if(!u(P)){w.pop();continue}v=P}}var x;if(void 0===P&&S&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(x=h[c(v)])&&void 0!==x?x:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};cr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=null,state:r={},breakSymbol:s=rr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=nr,nodeTypeGetter:c=sr,nodePredicate:u=ir,nodeCloneFn:l=or,detectCycles:p=!0}={})=>{const h=n||{};let m,f,d=Array.isArray(e),_=[e],g=-1,y=[],v=e;const w=[],b=[];do{g+=1;const e=g===_.length;let n;const x=e&&0!==y.length;if(e){if(n=0===b.length?void 0:w.pop(),v=f,f=b.pop(),x)if(d){v=v.slice();let e=0;for(const[t,n]of y){const r=t-e;n===i?(v.splice(r,1),e+=1):v[r]=n}}else{v=l(v);for(const[e,t]of y)v[e]=t}g=m.index,_=m.keys,y=m.edits,d=m.inArray,m=m.prev}else if(f!==i&&void 0!==f){if(n=d?g:_[g],v=f[n],v===i||void 0===v)continue;w.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new Ot(`Invalid AST Node: ${String(v)}`,{node:v});if(p&&b.includes(v)){w.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,n]of Object.entries(r))t[e]=n;const s={replaceWith(t,r){"function"==typeof r?r(t,v,n,f,w,b):f&&(f[n]=t),e||(v=t)}};S=await i.call(t,v,n,f,w,b,s)}if(S===s)break;if(S===o){if(!e){w.pop();continue}}else if(void 0!==S&&(y.push([n,S]),!e)){if(!u(S)){w.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([n,v]),!e)m={inArray:d,index:g,keys:_,edits:y,prev:m},d=Array.isArray(v),_=d?v:null!==(E=h[c(v)])&&void 0!==E?E:[],g=-1,y=[],f!==i&&void 0!==f&&b.push(f),f=v}while(void 0!==m);return 0!==y.length?y[y.length-1][1]:e};class ur{static type="point";type=ur.type;row;column;char;constructor({row:e,column:t,char:n}){this.row=e,this.column=t,this.char=n}}class lr{static type="position";type=lr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const pr=lr;const hr=class extends Mt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class mr extends Mt{static type="stream"}Object.defineProperty(mr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Jn("document",e))(e)||(e=>Jn("comment",e))(e))):[]},enumerable:!0});const fr=mr;const dr=a((function(e){return m(0,e)}));const _r=class extends Mt{static type="parseResult";get rootNode(){return dr(this.children)}};const gr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)R(i,s)&&(t[i]=s[i]);n+=1}return t};const yr=c((function(e,t){return gr({},e,t)}));const vr=class extends Mt{static type="directive";name;parameters;constructor({name:e,parameters:t,...n}){super({...n}),this.name=e,this.parameters=yr({version:void 0,handle:void 0,prefix:void 0},t)}};const wr=class extends Mt{static type="document"};const br=class extends Gn{};class Er extends br{static type="mapping"}Object.defineProperty(Er.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Xn):[]},enumerable:!0});const xr=Er;class Sr extends Mt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Sr.prototype,{key:{get(){return this.children.filter((e=>Qn(e)||Yn(e)||Zn(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Qn(e)||Yn(e)||Zn(e)||er(e))(t)))[0]},enumerable:!0}});const Pr=Sr;class jr extends br{static type="sequence"}Object.defineProperty(jr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Zn(e)||Yn(e)||Qn(e)||er(e))):[]},enumerable:!0});const Or=jr;const Ar=class extends Mt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const kr=class extends Mt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ir=class extends Mt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Mr=class extends Mt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...n}={}){super({...n}),this.value=e,this.isUnexpected=t}};const Nr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Tr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},$r=e=>Array.isArray(e)||ir(e);class Rr{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new ur({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),n=new ur({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new pr({start:t,end:n})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new hr({name:t.text,position:Rr.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,n=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Nt.Mapping:e.type.endsWith("sequence")?Nt.Sequence:Nt.Scalar,s=t?Rr.toPosition(t):void 0;return new Tt({explicitName:n,kind:r,position:s})}schema;referenceManager;stream={enter:e=>{const t=Rr.toPosition(e);return new fr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new _r({children:[e]})};yaml_directive={enter:e=>{var t;const n=Rr.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new vr({position:n,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Rr.toPosition(e),n=e.children[0],r=e.children[1],s=new vr({position:t,name:"%TAG",parameters:{handle:null==n?void 0:n.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Rr.toPosition(e),n=e.children[0],r=e.children[1],s=e.children[2];return new vr({position:t,name:null==n?void 0:n.text,parameters:{handle:null==r?void 0:r.text,prefix:null==s?void 0:s.text}})}};document={enter:e=>{const t=Rr.toPosition(e);return new wr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Rr.isScalar(t)||Rr.isMapping(t)||Rr.isSequence(t))return e.children;const n=new ur({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Wn({content:"",anchor:Rr.kindNodeToYamlAnchor(t),tag:Rr.kindNodeToYamlTag(t),position:new pr({start:n,end:n}),styleGroup:qn.Flow,style:Cn.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new xr({children:e.children,position:t,anchor:r,tag:n,styleGroup:qn.Block,style:Cn.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Rr.toPosition(e),n=[...e.children];if(Rr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Rr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new Pr({children:n,position:t,styleGroup:qn.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new xr({children:e.children,position:t,anchor:r,tag:n,styleGroup:qn.Flow,style:Cn.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Rr.toPosition(e),n=[...e.children];if(Rr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);n.unshift(t)}if(Rr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);n.push(t)}return new Pr({children:n,position:t,styleGroup:qn.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Or({children:e.children,position:t,anchor:r,tag:n,styleGroup:qn.Block,style:Cn.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new ur({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Wn({content:"",tag:new Tt({explicitName:"?",kind:Nt.Scalar}),position:new pr({start:t,end:t}),styleGroup:qn.Flow,style:Cn.Plain})]}};flow_sequence={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Or({children:e.children.flat(),position:t,anchor:r,tag:n,styleGroup:qn.Flow,style:Cn.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:qn.Flow,style:Cn.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:qn.Flow,style:Cn.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:qn.Flow,style:Cn.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Rr.toPosition(e),n=Rr.kindNodeToYamlTag(e),r=Rr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Cn.Literal:e.text.startsWith(">")?Cn.Folded:Cn.Plain,i=new Wn({content:e.text,anchor:r,tag:n,position:t,styleGroup:qn.Block,style:s});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Ar({content:e.text})};alias={enter:e=>{const t=new kr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Nr&&!e.isNamed){const t=Rr.toPosition(e),n=e.type||e.text,{isMissing:r}=e;return new Ir({value:n,position:t,isMissing:r})}}ERROR(e,t,n,r){const s=Rr.toPosition(e),i=new Mr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new _r({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new ur({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Rr.isKind("tag")),i=r.find(Rr.isKind("anchor")),o=new Tt(void 0!==s?{explicitName:s.text,kind:Nt.Scalar,position:Rr.toPosition(s)}:{explicitName:"?",kind:Nt.Scalar}),a=void 0!==i?new hr({name:i.text,position:Rr.toPosition(i)}):void 0,c=new Wn({content:"",position:new pr({start:t,end:t}),tag:o,anchor:a,styleGroup:qn.Flow,style:Cn.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new ur({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:n}=e,r=(null==n?void 0:n.children)||[],s=r.find(Rr.isKind("tag")),i=r.find(Rr.isKind("anchor")),o=new Tt(void 0!==s?{explicitName:s.text,kind:Nt.Scalar,position:Rr.toPosition(s)}:{explicitName:"?",kind:Nt.Scalar}),a=void 0!==i?new hr({name:i.text,position:Rr.toPosition(i)}):void 0,c=new Wn({content:"",position:new pr({start:t,end:t}),tag:o,anchor:a,styleGroup:qn.Flow,style:Cn.Plain});return this.registerAnchor(c),c}}const Fr=Rr;function Cr(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var qr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Cr(this.xf["@@transducer/step"](e,!1))),e},e}();function Dr(e){return function(t){return new qr(e,t)}}const Lr=c(j(["all"],Dr,(function(e,t){for(var n=0;n<t.length;){if(!e(t[n]))return!1;n+=1}return!0}))),Vr=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Br=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Ur=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),zr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof oe.wE)&&t.classes.includes(e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Gr=e=>e({hasMethod:Vr,hasBasicElementProps:Br,primitiveEq:Ur,isElementType:Hr,hasClass:zr}),Wr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Hg||e(n)&&t(void 0,n))),Kr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Om||e(n)&&t("string",n))),Jr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.kT||e(n)&&t("number",n))),Yr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.Os||e(n)&&t("null",n))),Zr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>n=>n instanceof oe.bd||e(n)&&t("boolean",n))),Xr=Gr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.Sh||e(r)&&t("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),Qr=Gr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:n})=>r=>r instanceof oe.wE&&!(r instanceof oe.Sh)||e(r)&&t("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),es=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.Pr||e(r)&&t("member",r)&&n(void 0,r))),ts=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.Ft||e(r)&&t("link",r)&&n(void 0,r))),ns=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof oe.sI||e(r)&&t("ref",r)&&n(void 0,r))),rs=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof et||e(r)&&t("annotation",r)&&n("array",r))),ss=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof nt||e(r)&&t("comment",r)&&n("string",r))),is=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof st||e(r)&&t("parseResult",r)&&n("array",r))),os=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ot||e(r)&&t("sourceMap",r)&&n("array",r))),as=e=>Hr("object",e)||Hr("array",e)||Hr("boolean",e)||Hr("number",e)||Hr("string",e)||Hr("null",e)||Hr("member",e),cs=e=>os(e.meta.get("sourceMap")),us=(e,t)=>{if(0===e.length)return!0;const n=t.attributes.get("symbols");return!!Qr(n)&&Lr(xn(n.toValue()),e)},ls=(e,t)=>0===e.length||Lr(xn(t.classes.toValue()),e);const ps=class extends Ot{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const hs=class extends ps{};const ms=class extends ps{},fs=(e,t={})=>{const{visited:n=new WeakMap}=t,r={...t,visited:n};if(n.has(e))return n.get(e);if(e instanceof oe.KeyValuePair){const{key:t,value:s}=e,i=Wr(t)?fs(t,r):t,o=Wr(s)?fs(s,r):s,a=new oe.KeyValuePair(i,o);return n.set(e,a),a}if(e instanceof oe.ot){const t=e=>fs(e,r),s=[...e].map(t),i=new oe.ot(s);return n.set(e,i),i}if(e instanceof oe.G6){const t=e=>fs(e,r),s=[...e].map(t),i=new oe.G6(s);return n.set(e,i),i}if(Wr(e)){const t=gs(e);if(n.set(e,t),e.content)if(Wr(e.content))t.content=fs(e.content,r);else if(e.content instanceof oe.KeyValuePair)t.content=fs(e.content,r);else if(Array.isArray(e.content)){const n=e=>fs(e,r);t.content=e.content.map(n)}else t.content=e.content;else t.content=e.content;return t}throw new hs("Value provided to cloneDeep function couldn't be cloned",{value:e})};fs.safe=e=>{try{return fs(e)}catch{return e}};const ds=e=>{const{key:t,value:n}=e;return new oe.KeyValuePair(t,n)},_s=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=fs(e.meta)),e.attributes.length>0&&(t._attributes=fs(e.attributes)),Wr(e.content)){const n=e.content;t.content=_s(n)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof oe.KeyValuePair?t.content=ds(e.content):t.content=e.content;return t},gs=e=>{if(e instanceof oe.KeyValuePair)return ds(e);if(e instanceof oe.ot)return(e=>{const t=[...e];return new oe.ot(t)})(e);if(e instanceof oe.G6)return(e=>{const t=[...e];return new oe.G6(t)})(e);if(Wr(e))return _s(e);throw new ms("Value provided to cloneShallow function couldn't be cloned",{value:e})};gs.safe=e=>{try{return gs(e)}catch{return e}};const ys=e=>Xr(e)?"ObjectElement":Qr(e)?"ArrayElement":es(e)?"MemberElement":Kr(e)?"StringElement":Zr(e)?"BooleanElement":Jr(e)?"NumberElement":Yr(e)?"NullElement":ts(e)?"LinkElement":ns(e)?"RefElement":void 0,vs=e=>Wr(e)?gs(e):or(e),ws=ve(ys,pt),bs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const Es=(e,t,{keyMap:n=bs,...r}={})=>cr(e,t,{keyMap:n,nodeTypeGetter:ys,nodePredicate:ws,nodeCloneFn:vs,...r});Es[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:n=bs,...r}={})=>cr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:n,nodeTypeGetter:ys,nodePredicate:ws,nodeCloneFn:vs,...r});const xs=u((function(e,t,n){var r,s={};for(r in n=n||{},t=t||{})R(r,t)&&(s[r]=R(r,n)?e(r,t[r],n[r]):t[r]);for(r in n)R(r,n)&&!R(r,s)&&(s[r]=n[r]);return s}));const Ss=u((function e(t,n,r){return xs((function(n,r,s){return je(r)&&je(s)?e(t,r,s):t(n,r,s)}),n,r)}));const Ps=c((function(e,t){return Ss((function(e,t,n){return n}),e,t)}));const js=c(Te);const Os=ge(0,-1);const As=c((function(e,t){return e.apply(this,t)}));const ks=K(Ke);var Is=a((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():v(e)?[]:h(e)?"":je(e)?{}:C(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 Ms=Is;const Ns=a((function(e){return null!=e&&te(e,Ms(e))}));const Ts=$(1,Ke(Array.isArray)?Array.isArray:ve(X,be("Array")));const $s=Ce(Ts,Ns);const Rs=$(3,(function(e,t,n){var r=js(e,n),s=js(Os(e),n);if(!ks(r)&&!$s(e)){var i=ue(r,s);return As(i,t)}})),Fs=()=>({predicates:{...e},namespace:lt}),Cs={toolboxCreator:Fs,visitorOptions:{nodeTypeGetter:ys,exposeEdits:!0}},qs=(e,t,n={})=>{if(0===t.length)return e;const r=Ps(Cs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=ar(a.map(d({},"visitor")),{...i});a.forEach(Rs(["pre"],[]));const u=Es(e,c,i);return a.forEach(Rs(["post"],[])),u};qs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,n={})=>{if(0===t.length)return e;const r=Ps(Cs,n),{toolboxCreator:s,visitorOptions:i}=r,o=s(),a=t.map((e=>e(o))),c=ar[Symbol.for("nodejs.util.promisify.custom")],u=Es[Symbol.for("nodejs.util.promisify.custom")],l=c(a.map(d({},"visitor")),{...i});await Promise.allSettled(a.map(Rs(["pre"],[])));const p=await u(e,l,i);return await Promise.allSettled(a.map(Rs(["post"],[]))),p};const Ds=(e,{Type:t,plugins:n=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=fs(e.meta)),e.attributes.length>0&&(r.attributes=fs(e.attributes))),qs(r,n,{toolboxCreator:Fs,visitorOptions:{nodeTypeGetter:ys}})},Ls=e=>(t,n={})=>Ds(t,{...n,Type:e});oe.Sh.refract=Ls(oe.Sh),oe.wE.refract=Ls(oe.wE),oe.Om.refract=Ls(oe.Om),oe.bd.refract=Ls(oe.bd),oe.Os.refract=Ls(oe.Os),oe.kT.refract=Ls(oe.kT),oe.Ft.refract=Ls(oe.Ft),oe.sI.refract=Ls(oe.sI),et.refract=Ls(et),nt.refract=Ls(nt),st.refract=Ls(st),ot.refract=Ls(ot);const Vs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...bs},Bs=e=>Wr(e)?ys(e):sr(e),Us=e=>Wr(e)||ir(e)||Array.isArray(e);const zs=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new st;t._content=e.children.flat(1);const n=t.findElements(as);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ut()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(t){const t=new et("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return n?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new oe.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new oe.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new oe.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===Cn.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,n=new et(t);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}error(e,t,n,r){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",i=new et(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new st;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const n=new ot;n.position=e.position,n.astNode=e,t.meta.set("sourceMap",n)}};class Hs{cursor;constructor(e){this.cursor=e}stream(){return new Nr(this.cursor)}yaml_directive(){return new Nr(this.cursor)}tag_directive(){return new Nr(this.cursor)}reserved_directive(){return new Nr(this.cursor)}document(){return new Nr(this.cursor)}block_node(){return new Nr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Nr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Nr(this.cursor)}block_mapping_pair(){return new Nr(this.cursor)}flow_mapping(){return new Nr(this.cursor)}flow_pair(){return new Nr(this.cursor)}block_sequence(){return new Nr(this.cursor)}block_sequence_item(){return new Nr(this.cursor)}flow_sequence(){return new Nr(this.cursor)}plain_scalar(){return new Nr(this.cursor)}single_quote_scalar(){return new Nr(this.cursor)}double_quote_scalar(){return new Nr(this.cursor)}block_scalar(){return new Nr(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 Hs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Hs(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Gs=Hs,Ws=(e,{sourceMap:t=!1}={})=>{const n=e.walk(),r=new Gs(n),[s]=Array.from(r),i=new Fr,o=new zs,a=new Hn,c=new tr,u=cr(s,i,{keyMap:Tr,nodePredicate:$r,state:{schema:a,sourceMap:t,referenceManager:c}});return cr(u.rootNode,o,{keyMap:Vs,nodeTypeGetter:Bs,nodePredicate:Us,state:{sourceMap:t}})};class Ks extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="swagger",this.classes.push("api")}get swagger(){return this.get("swagger")}set swagger(e){this.set("swagger",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get host(){return this.get("host")}set host(e){this.set("host",e)}get basePath(){return this.get("basePath")}set basePath(e){this.set("basePath",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get consumes(){return this.get("consumes")}set consumes(e){this.set("consumes",e)}get produces(){return this.get("produces")}set produces(e){this.set("produces",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get securityDefinitions(){return this.get("securityDefinitions")}set securityDefinitions(e){this.set("securityDefinitions",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 Js=Ks;class Ys extends oe.Om{constructor(e,t,n){super(e,t,n),this.element="swaggerVersion",this.classes.push("spec-version"),this.classes.push("version")}}const Zs=Ys;class Xs extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Qs=Xs;class ei extends oe.Sh{constructor(e,t,n){super(e,t,n),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 ti=ei;class ni extends oe.Sh{constructor(e,t,n){super(e,t,n),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 ri=ni;class si extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="paths"}}const ii=si;class oi extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",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 parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const ai=oi;class ci extends oe.Sh{constructor(e,t,n){super(e,t,n),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 responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get schemes(){return this.get("schemes")}set schemes(e){this.set("schemes",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new oe.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}}const ui=ci;class li extends oe.Sh{constructor(e,t,n){super(e,t,n),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 pi=li;const hi=class extends yt{};class mi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 fi=mi;class di extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const _i=di;class gi extends oe.Sh{constructor(e,t,n){super(e,t,n),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 yi=gi;class vi extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const wi=vi;const bi=c((function(e,t){return y((function(n,r){return n[r]=e(t[r],r,t),n}),{},U(t))}));const Ei=a((function(e){return null==e}));var xi=c((function(e,t){if(0===e.length||Ei(t))return!1;for(var n=t,r=0;r<e.length;){if(Ei(n)||!R(e[r],n))return!1;n=n[e[r]],r+=1}return!0}));const Si=xi;var Pi=c((function(e,t){return Si([e],t)}));const ji=Pi;const Oi=u((function(e,t,n){return e(f(t,n))})),Ai=(e,t)=>{const n=l(e,t);return bi((e=>{if(Xe(e)&&ji("$ref",e)&&Oi(pt,"$ref",e)){const t=js(["$ref"],e),r=Sn("#/",t);return js(r.split("/"),n)}return Xe(e)?Ai(e,n):e}),e)};const ki=function(){return!0},Ii=e=>"string"==typeof(null==e?void 0:e.type)?e.type:ys(e),Mi={EphemeralObject:["content"],EphemeralArray:["content"],...bs},Ni=(e,t,{keyMap:n=Mi,...r}={})=>Es(e,t,{keyMap:n,nodeTypeGetter:Ii,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Ni[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Mi,...n}={})=>Es[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ii,nodePredicate:ki,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const Ti=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 $i=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 Ri{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new $i(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 Ti(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 n;const r=t[3];return"EphemeralObject"===(null===(n=r[r.length-1])||void 0===n?void 0:n.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Kr(e.href)?e.href.toValue():""}}const Fi=e=>Wr(e)?Kr(e)||Jr(e)||Zr(e)||Yr(e)?e.toValue():Ni(e,new Ri):e,Ci=e=>{const t=e.meta.length>0?fs(e.meta):void 0,n=e.attributes.length>0?fs(e.attributes):void 0;return new e.constructor(void 0,t,n)},qi=(e,t)=>t.clone&&t.isMergeableElement(e)?Bi(Ci(e),e,t):e,Di=e=>"function"!=typeof e.customMetaMerge?e=>fs(e):e.customMetaMerge,Li=e=>"function"!=typeof e.customAttributesMerge?e=>fs(e):e.customAttributesMerge,Vi={clone:!0,isMergeableElement:e=>Xr(e)||Qr(e),arrayElementMerge:(e,t,n)=>e.concat(t)["fantasy-land/map"]((e=>qi(e,n))),objectElementMerge:(e,t,n)=>{const r=Xr(e)?Ci(e):Ci(t);return Xr(e)&&e.forEach(((e,t,s)=>{const i=gs(s);i.value=qi(e,n),r.content.push(i)})),t.forEach(((t,s,i)=>{const o=Fi(s);let a;if(Xr(e)&&e.hasKey(o)&&n.isMergeableElement(t)){const r=e.get(o);a=gs(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Bi;const n=t.customMerge(e,t);return"function"==typeof n?n:Bi})(s,n)(r,t)}else a=gs(i),a.value=qi(t,n);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function Bi(e,t,n){var r,s,i;const o={...Vi,...n};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Vi.isMergeableElement,o.arrayElementMerge=null!==(s=o.arrayElementMerge)&&void 0!==s?s:Vi.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Vi.objectElementMerge;const a=Qr(t);if(!(a===Qr(e)))return qi(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=Di(o)(e.meta,t.meta),c.attributes=Li(o)(e.attributes,t.attributes),c}Bi.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new oe.Sh:e.reduce(((e,n)=>Bi(e,n,t)),Ci(e[0]))};const Ui=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Bi(t.meta,e.meta),cs(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Bi(t.attributes,e.attributes))}};const zi=class extends Ui{enter(e){return this.element=fs(e),rr}},Hi=(e,t,n=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of n)delete r[e];Object.defineProperties(e,r)},Gi=(e,t=[e])=>{const n=Object.getPrototypeOf(e);return null===n?t:Gi(n,[...t,n])},Wi=(e,t,n=[])=>{var r;const s=null!==(r=((...e)=>{if(0===e.length)return;let t;const n=e.map((e=>Gi(e)));for(;n.every((e=>e.length>0));){const e=n.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(s),o=Gi(s);for(let t of e){let e=Gi(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Hi(i,r,["constructor",...n]),o.push(r))}}return i.constructor=t,i},Ki=e=>e.filter(((t,n)=>e.indexOf(t)==n)),Ji=(e,t)=>{const n=t.map((e=>Gi(e)));let r=0,s=!0;for(;s;){s=!1;for(let i=t.length-1;i>=0;i--){const t=n[i][r];if(null!=t&&(s=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return n[i][0]}r++}},Yi=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,n)=>Object.getOwnPropertyDescriptor(Ji(n,e)||{},n),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(n,r)=>void 0!==Ji(r,e)||void 0!==t[r],get:(n,r)=>(Ji(r,e)||t)[r],set(t,n,r){const s=Ji(n,e);if(void 0===s)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return s[n]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),Zi=null,Xi="copy",Qi="copy",eo="deep",to=new WeakMap,no=e=>to.get(e),ro=(e,t)=>{var n,r;const s=Ki([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of s)i[o]=Ki([...null!==(n=null==e?void 0:e[o])&&void 0!==n?n:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},so=(e,t)=>{var n,r,s,i;return{property:ro(null!==(n=null==e?void 0:e.property)&&void 0!==n?n:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:ro(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},io=(e,t)=>{var n,r,s,i,o,a;return{class:Ki([...null!==(n=null==e?void 0:e.class)&&void 0!==n?n:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:so(null!==(s=null==e?void 0:e.static)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:so(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},oo=new Map,ao=(...e)=>{const t=((...e)=>{var t;const n=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const s=[...Gi(e.prototype).map((e=>e.constructor)),...null!==(t=no(e))&&void 0!==t?t:[]].filter((e=>!n.has(e)));for(let e of s)r.add(e);n.add(e),r.delete(e)}return[...n]})(...e).map((e=>oo.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>io(e,t)))},co=e=>{let t=oo.get(e);return t||(t={},oo.set(e,t)),t};function uo(...e){var t,n,r;const s=e.map((e=>e.prototype)),i=Zi;if(null!==i){const e=s.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let n of e)n.apply(this,t)},n={[i]:t};s.push(n)}function o(...t){for(const n of e)Hi(this,new n(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Qi?Wi(s,o):(a=s,c=o,Yi([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Xi?Wi(e,null,["prototype"]):Yi(e,Function.prototype));let u=o;if("none"!==eo){const s="deep"===eo?ao(...e):((...e)=>{const t=e.map((e=>co(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>io(e,t)))})(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(u);t&&(u=t)}lo(null!==(n=null==s?void 0:s.static)&&void 0!==n?n:{},u),lo(null!==(r=null==s?void 0:s.instance)&&void 0!==r?r:{},u.prototype)}var l,p;return l=u,p=e,to.set(l,p),u}const lo=(e,t)=>{const n=e.property,r=e.method;if(n)for(let e in n)for(let r of n[e])r(t,e);if(r)for(let e in r)for(let n of r[e])n(t,e,Object.getOwnPropertyDescriptor(t,e))};const po=c((function(e,t){for(var n={},r=0;r<e.length;)e[r]in t&&(n[e[r]]=t[e[r]]),r+=1;return n}));const ho=class extends Ui{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return po(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=js(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $e(Ke,["visitors",...e],this.specObj)?js(["visitors",...e],this.specObj):js(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof zi&&(null==r?void 0:r.constructor)===zi?fs(t):(Es(t,r,n),r.element)}};const mo=class extends ho{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Kr(r)&&n.includes(Fi(r))&&!this.ignoredFields.includes(Fi(r))){const n=this.toRefractedElement([...t,"fixedFields",Fi(r)],e),i=new oe.Pr(fs(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Fi(r))||this.element.content.push(fs(s))})),this.copyMetaAndAttributes(e,this.element),rr}};class fo extends(uo(mo,zi)){constructor(e){super(e),this.element=new fi,this.specPath=ne(["document","objects","JSONSchema"])}}const _o=fo;const go=class{parent;constructor({parent:e}){this.parent=e}},yo=e=>Xr(e)&&e.hasKey("$ref");class vo extends(uo(ho,go,zi)){ObjectElement(e){const t=yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),rr}ArrayElement(e){return this.element=new oe.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),rr}}const wo=vo;const bo=class extends zi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Eo=a((function(e){return $(de(Ue,0,ze("length",e)),(function(){for(var t=0,n=e.length;t<n;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const xo=a((function(e){return!Ns(e)}));const So=c((function(e,t){return e||t}));var Po=K($(1,Ce(De,c((function(e,t){return Re(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(So)(e,t)}))(Ve,Ke))));const jo=Eo([pt,Po,xo]);const Oo=function(){return!1};const Ao=class extends ho{specPath;ignoredFields;fieldPatternPredicate=Oo;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(!this.ignoredFields.includes(Fi(t))&&this.fieldPatternPredicate(Fi(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.Pr(fs(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Fi(t))||this.element.content.push(fs(n))})),this.copyMetaAndAttributes(e,this.element),rr}};const ko=class extends Ao{constructor(e){super(e),this.fieldPatternPredicate=jo}};class Io extends(uo(ko,go,zi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Mo=Io;class No extends(uo(ko,go,zi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const To=No;class $o extends(uo(ko,go,zi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ro=$o;const Fo=class extends zi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Co=class extends zi{StringElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-type"),t}};class qo extends(uo(ho,go,zi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),rr}}const Do=qo;class Lo extends(uo(ho,go,zi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),rr}}const Vo=Lo;class Bo extends(uo(ho,go,zi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],n=this.toRefractedElement(t,e);this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),rr}}const Uo=Bo;class zo extends(uo(ko,go,zi)){constructor(e){super(e),this.element=new oe.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>yo(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ho=zo;class Go extends(uo(ho,go,zi)){constructor(e){super(e),this.element=new oe.wE,this.element.classes.push("json-schema-links")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rr}}const Wo=Go;class Ko extends(uo(mo,zi)){constructor(e){super(e),this.element=new _i,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=mo.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Jo=Ko;const Yo=class extends zi{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Zo=u((function(e,t,n){return $(Math.max(e.length,t.length,n.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):n.apply(this,arguments)}))}));const Xo=a((function(e){return function(t,n){return e(t,n)?-1:e(n,t)?1:0}}));var Qo=c((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ea=Qo;const ta=a(Cr);const na=K(Ei);const ra=Ce(Ts,xo);function sa(e){return function(e){if(Array.isArray(e))return ia(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return ia(e,t);var n={}.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ia(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=Array(t);n<t;n++)r[n]=e[n];return r}var oa=ve(ea(Xo((function(e,t){return e.length>t.length}))),dr,f("length")),aa=Dt((function(e,t,n){var r=n.apply(void 0,sa(e));return na(r)?ta(r):t}));const ca=Zo(ra,(function(e){var t=oa(e);return $(t,(function(){for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return de(aa(n),void 0,e)}))}),re);const ua=class extends ho{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Zo(e,ne(t),re))),n=ca(t)(e);return this.element=this.toRefractedElement(n,e),rr}};const la=class extends ua{constructor(e){super(e),this.alternator=[{predicate:yo,specPath:["document","objects","JSONReference"]},{predicate:ki,specPath:["document","objects","JSONSchema"]}]}};class pa extends(uo(mo,zi)){constructor(e){super(e),this.element=new yi,this.specPath=ne(["document","objects","Media"])}}const ha=pa;class ma extends(uo(mo,zi)){constructor(e){super(e),this.element=new wi,this.specPath=ne(["document","objects","LinkDescription"])}}const fa={visitors:{value:zi,JSONSchemaOrJSONReferenceVisitor:la,document:{objects:{JSONSchema:{$visitor:_o,fixedFields:{id:{$ref:"#/visitors/value"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:la,items:wo,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:bo,properties:Mo,additionalProperties:la,patternProperties:To,dependencies:Ro,enum:Fo,type:Co,allOf:Do,anyOf:Vo,oneOf:Uo,not:la,definitions:Ho,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Wo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Jo,fixedFields:{$ref:Yo}},Media:{$visitor:ha,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:ma,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:la,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:la}}}}}},da=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},_a={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...bs},ga=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof fi||e(r)&&t("JSONSchemaDraft4",r)&&n("object",r))),ya=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof _i||e(r)&&t("JSONReference",r)&&n("object",r))),va=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof yi||e(r)&&t("media",r)&&n("object",r))),wa=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof wi||e(r)&&t("linkDescription",r)&&n("object",r))),ba={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",fi),t.register("jSONReference",_i),t.register("media",yi),t.register("linkDescription",wi),t}},Ea=()=>{const e=ut(ba);return{predicates:{...t,isStringElement:Kr},namespace:e}},xa=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:n=[],specificationObj:r=fa}={})=>{const s=(0,oe.e)(e),i=Ai(r),o=new(js(t,i))({specObj:i});return Es(s,o),qs(o.element,n,{toolboxCreator:Ea,visitorOptions:{keyMap:_a,nodeTypeGetter:da}})},Sa=e=>(t,n={})=>xa(t,{specPath:e,...n});fi.refract=Sa(["visitors","document","objects","JSONSchema","$visitor"]),_i.refract=Sa(["visitors","document","objects","JSONReference","$visitor"]),yi.refract=Sa(["visitors","document","objects","Media","$visitor"]),wi.refract=Sa(["visitors","document","objects","LinkDescription","$visitor"]);const Pa=class extends fi{constructor(e,t,n){super(e,t,n),this.element="parameter",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Parameter class is not not supported.")}set idProp(e){throw new hi("idProp setter in Parameter class is not not supported.")}get $schema(){throw new hi("$schema getter in Parameter class is not not supported.")}set $schema(e){throw new hi("$schema setter in Parameter class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Parameter class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Parameter class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Parameter class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Parameter class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Parameter class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Parameter class is not not supported.")}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){throw new hi("properties getter in Parameter class is not not supported.")}set properties(e){throw new hi("properties setter in Parameter class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Parameter class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Parameter class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Parameter class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Parameter class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Parameter class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Parameter class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Parameter class is not not supported.")}set allOf(e){throw new hi("allOf setter in Parameter class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Parameter class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Parameter class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Parameter class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Parameter class is not not supported.")}get not(){throw new hi("not getter in Parameter class is not not supported.")}set not(e){throw new hi("not setter in Parameter class is not not supported.")}get definitions(){throw new hi("definitions getter in Parameter class is not not supported.")}set definitions(e){throw new hi("definitions setter in Parameter class is not not supported.")}get title(){throw new hi("title getter in Parameter class is not not supported.")}set title(e){throw new hi("title setter in Parameter class is not not supported.")}get description(){return this.get("description")}set description(e){this.set("description,",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){throw new hi("base getter in Parameter class is not not supported.")}set base(e){throw new hi("base setter in Parameter class is not not supported.")}get links(){throw new hi("links getter in Parameter class is not not supported.")}set links(e){throw new hi("links setter in Parameter class is not not supported.")}get media(){throw new hi("media getter in Parameter class is not not supported.")}set media(e){throw new hi("media setter in Parameter class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Parameter class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Parameter class is not not supported.")}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 schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ja=class extends fi{constructor(e,t,n){super(e,t,n),this.element="items",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Items class is not not supported.")}set idProp(e){throw new hi("idProp setter in Items class is not not supported.")}get $schema(){throw new hi("$schema getter in Items class is not not supported.")}set $schema(e){throw new hi("$schema setter in Items class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Items class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Items class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Items class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Items class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Items class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Items class is not not supported.")}get required(){throw new hi("required getter in Items class is not not supported.")}set required(e){throw new hi("required setter in Items class is not not supported.")}get properties(){throw new hi("properties getter in Items class is not not supported.")}set properties(e){throw new hi("properties setter in Items class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Items class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Items class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Items class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Items class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Items class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Items class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Items class is not not supported.")}set allOf(e){throw new hi("allOf setter in Items class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Items class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Items class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Items class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Items class is not not supported.")}get not(){throw new hi("not getter in Items class is not not supported.")}set not(e){throw new hi("not setter in Items class is not not supported.")}get definitions(){throw new hi("definitions getter in Items class is not not supported.")}set definitions(e){throw new hi("definitions setter in Items class is not not supported.")}get title(){throw new hi("title getter in Items class is not not supported.")}set title(e){throw new hi("title setter in Items class is not not supported.")}get description(){throw new hi("description getter in Items class is not not supported.")}set description(e){throw new hi("description setter in Items class is not not supported.")}get base(){throw new hi("base getter in Items class is not not supported.")}set base(e){throw new hi("base setter in Items class is not not supported.")}get links(){throw new hi("links getter in Items class is not not supported.")}set links(e){throw new hi("links setter in Items class is not not supported.")}get media(){throw new hi("media getter in Items class is not not supported.")}set media(e){throw new hi("media setter in Items class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Items class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Items class is not not supported.")}};class Oa extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Aa=Oa;class ka extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}}const Ia=ka;class Ma extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="headers"}}const Na=Ma;class Ta extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="example"}}const $a=Ta;const Ra=class extends fi{constructor(e,t,n){super(e,t,n),this.element="header",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Header class is not not supported.")}set idProp(e){throw new hi("idProp setter in Header class is not not supported.")}get $schema(){throw new hi("$schema getter in Header class is not not supported.")}set $schema(e){throw new hi("$schema setter in Header class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Header class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Header class is not not supported.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxProperties(){throw new hi("maxProperties getter in Header class is not not supported.")}set maxProperties(e){throw new hi("maxProperties setter in Header class is not not supported.")}get minProperties(){throw new hi("minProperties getter in Header class is not not supported.")}set minProperties(e){throw new hi("minProperties setter in Header class is not not supported.")}get required(){throw new hi("required getter in Header class is not not supported.")}set required(e){throw new hi("required setter in Header class is not not supported.")}get properties(){throw new hi("properties getter in Header class is not not supported.")}set properties(e){throw new hi("properties setter in Header class is not not supported.")}get additionalProperties(){throw new hi("additionalProperties getter in Header class is not not supported.")}set additionalProperties(e){throw new hi("additionalProperties setter in Header class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Header class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Header class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Header class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Header class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){throw new hi("allOf getter in Header class is not not supported.")}set allOf(e){throw new hi("allOf setter in Header class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Header class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Header class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Header class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Header class is not not supported.")}get not(){throw new hi("not getter in Header class is not not supported.")}set not(e){throw new hi("not setter in Header class is not not supported.")}get definitions(){throw new hi("definitions getter in Header class is not not supported.")}set definitions(e){throw new hi("definitions setter in Header class is not not supported.")}get title(){throw new hi("title getter in Header class is not not supported.")}set title(e){throw new hi("title setter in Header class is not not supported.")}get base(){throw new hi("base getter in Header class is not not supported.")}set base(e){throw new hi("base setter in Header class is not not supported.")}get links(){throw new hi("links getter in Header class is not not supported.")}set links(e){throw new hi("links setter in Header class is not not supported.")}get media(){throw new hi("media getter in Header class is not not supported.")}set media(e){throw new hi("media setter in Header class is not not supported.")}get readOnly(){throw new hi("readOnly getter in Header class is not not supported.")}set readOnly(e){throw new hi("readOnly setter in Header class is not not supported.")}};class Fa extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Ca=Fa;class qa extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Da=qa;const La=class extends fi{constructor(e,t,n){super(e,t,n),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new hi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new hi("idProp setter in Schema class is not not supported.")}get $schema(){throw new hi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new hi("$schema setter in Schema class is not not supported.")}get additionalItems(){throw new hi("additionalItems getter in Schema class is not not supported.")}set additionalItems(e){throw new hi("additionalItems setter in Schema class is not not supported.")}get patternProperties(){throw new hi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new hi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new hi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new hi("dependencies setter in Schema class is not not supported.")}get anyOf(){throw new hi("anyOf getter in Schema class is not not supported.")}set anyOf(e){throw new hi("anyOf setter in Schema class is not not supported.")}get oneOf(){throw new hi("oneOf getter in Schema class is not not supported.")}set oneOf(e){throw new hi("oneOf setter in Schema class is not not supported.")}get not(){throw new hi("not getter in Schema class is not not supported.")}set not(e){throw new hi("not setter in Schema class is not not supported.")}get definitions(){throw new hi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new hi("definitions setter in Schema class is not not supported.")}get base(){throw new hi("base getter in Schema class is not not supported.")}set base(e){throw new hi("base setter in Schema class is not not supported.")}get links(){throw new hi("links getter in Schema class is not not supported.")}set links(e){throw new hi("links setter in Schema class is not not supported.")}get media(){throw new hi("media getter in Schema class is not not supported.")}set media(e){throw new hi("media setter in Schema class is not not supported.")}};class Va extends oe.Sh{constructor(e,t,n){super(e,t,n),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 Ba=Va;class Ua extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="definitions"}}const za=Ua;class Ha extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="parametersDefinitions"}}const Ga=Ha;class Wa extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="responsesDefinitions"}}const Ka=Wa;class Ja extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="securityDefinitions"}}const Ya=Ja;class Za extends oe.Sh{constructor(e,t,n){super(e,t,n),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 flow(){return this.get("flow")}set flow(e){this.set("flow",e)}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 scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Xa=Za;class Qa extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="scopes"}}const ec=Qa;class tc extends oe.Sh{constructor(e,t,n){super(e,t,n),this.element="securityRequirement"}}const nc=tc;const rc=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Bi(t.meta,e.meta),cs(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Bi(t.attributes,e.attributes))}};const sc=class extends rc{enter(e){return this.element=fs(e),rr}};const ic=class extends rc{specObj;passingOptionsNames=["specObj"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return po(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=js(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return $e(Ke,["visitors",...e],this.specObj)?js(["visitors",...e],this.specObj):js(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const n=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...n,...t})}toRefractedElement(e,t,n={}){const r=this.retrieveVisitorInstance(e,n);return r instanceof sc&&(null==r?void 0:r.constructor)===sc?fs(t):(Es(t,r,n),r.element)}};var oc=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=A,e.prototype["@@transducer/result"]=k,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var n=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Cr(n):n},e}();function ac(e){return function(t){return new oc(e,t)}}const cc=c(j(["take"],ac,(function(e,t){return ge(0,e<0?1/0:e,t)})));const uc=c((function(e,t){return te(cc(e.length,t),e)})),lc=e=>Kr(e.key)&&uc("x-",Fi(e.key)),pc=e=>Xr(e)&&e.hasKey("$ref");const hc=class extends ic{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=lc;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),n=this.retrieveFixedFields(t);return e.forEach(((e,r,s)=>{if(Kr(r)&&n.includes(Fi(r))&&!this.ignoredFields.includes(Fi(r))){const n=this.toRefractedElement([...t,"fixedFields",Fi(r)],e),i=new oe.Pr(fs(r),n);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Fi(r))||this.element.content.push(fs(s))})),this.copyMetaAndAttributes(e,this.element),rr}};class mc extends(uo(hc,sc)){constructor(e){super(e),this.element=new Js,this.specPath=ne(["document","objects","Swagger"]),this.canSupportSpecificationExtensions=!0}}const fc=mc;class dc extends(uo(ic,sc)){StringElement(e){const t=new Zs(Fi(e));return this.copyMetaAndAttributes(e,t),this.element=t,rr}}const _c=dc;const gc=class extends sc{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-host"),t}};const yc=class extends sc{StringElement(e){const t=super.enter(e);return this.element.classes.push("swagger-base-path"),t}};class vc extends oe.wE{static primaryClass="swagger-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(vc.primaryClass)}}const wc=vc;const bc=class extends sc{constructor(e){super(e),this.element=new wc}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class Ec extends oe.wE{static primaryClass="swagger-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Ec.primaryClass)}}const xc=Ec;const Sc=class extends sc{constructor(e){super(e),this.element=new xc}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class Pc extends oe.wE{static primaryClass="swagger-produces";constructor(e,t,n){super(e,t,n),this.classes.push(Pc.primaryClass)}}const jc=Pc;const Oc=class extends sc{constructor(e){super(e),this.element=new jc}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class Ac extends oe.wE{static primaryClass="swagger-security";constructor(e,t,n){super(e,t,n),this.classes.push(Ac.primaryClass),this.classes.push("security")}}const kc=Ac;class Ic extends(uo(ic,sc)){constructor(e){super(e),this.element=new kc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rr}}const Mc=Ic;class Nc extends oe.wE{static primaryClass="swagger-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Nc.primaryClass)}}const Tc=Nc;class $c extends(uo(ic,sc)){constructor(e){super(e),this.element=new Tc}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","Tag"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rr}}const Rc=$c;class Fc extends(uo(hc,sc)){constructor(e){super(e),this.element=new Qs,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Cc=Fc;const qc=class extends sc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Dc extends(uo(hc,sc)){constructor(e){super(e),this.element=new ti,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Lc=Dc;class Vc extends(uo(hc,sc)){constructor(e){super(e),this.element=new ri,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Bc=Vc;const Uc=class extends ic{specPath;ignoredFields;fieldPatternPredicate=Oo;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=lc;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:n,canSupportSpecificationExtensions:r,specificationExtensionPredicate:s,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof n&&(this.fieldPatternPredicate=n),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof s&&(this.specificationExtensionPredicate=s)}ObjectElement(e){return e.forEach(((e,t,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else if(!this.ignoredFields.includes(Fi(t))&&this.fieldPatternPredicate(Fi(t))){const r=this.specPath(e),s=this.toRefractedElement(r,e),i=new oe.Pr(fs(t),s);this.copyMetaAndAttributes(n,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Fi(t))||this.element.content.push(fs(n))})),this.copyMetaAndAttributes(e,this.element),rr}},zc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Js||e(r)&&t("swagger",r)&&n("object",r))),Hc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Zs||e(r)&&t("swaggerVersion",r)&&n("string",r))),Gc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Qs||e(r)&&t("info",r)&&n("object",r))),Wc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ri||e(r)&&t("license",r)&&n("object",r))),Kc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ti||e(r)&&t("contact",r)&&n("object",r))),Jc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ii||e(r)&&t("paths",r)&&n("object",r))),Yc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ai||e(r)&&t("pathItem",r)&&n("object",r))),Zc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ui||e(r)&&t("operation",r)&&n("object",r))),Xc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof pi||e(r)&&t("externalDocumentation",r)&&n("object",r))),Qc=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Pa||e(r)&&t("parameter",r)&&n("object",r))),eu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ja||e(r)&&t("items",r)&&n("object",r))),tu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Aa||e(r)&&t("responses",r)&&n("object",r))),nu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ia||e(r)&&t("response",r)&&n("object",r))),ru=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Na||e(r)&&t("headers",r)&&n("object",r))),su=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof $a||e(r)&&t("example",r)&&n("object",r))),iu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ra||e(r)&&t("header",r)&&n("object",r))),ou=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ca||e(r)&&t("tag",r)&&n("object",r))),au=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Da||e(r)&&t("reference",r)&&n("object",r))),cu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof La||e(r)&&t("schema",r)&&n("object",r))),uu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ba||e(r)&&t("xml",r)&&n("object",r))),lu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ka||e(r)&&t("responsesDefinitions",r)&&n("object",r))),pu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ya||e(r)&&t("securityDefinitions",r)&&n("object",r))),hu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof za||e(r)&&t("definitions",r)&&n("object",r))),mu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Ga||e(r)&&t("parametersDefinitions",r)&&n("object",r))),fu=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof Xa||e(r)&&t("securityScheme",r)&&n("object",r))),du=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof ec||e(r)&&t("scopes",r)&&n("object",r))),_u=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:n})=>r=>r instanceof nc||e(r)&&t("securityRequirement",r)&&n("object",r)));class gu extends(uo(Uc,sc)){element;constructor(e){super(e),this.element=new ii,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=ki}ObjectElement(e){const t=Uc.prototype.ObjectElement.call(this,e);return this.element.filter(Yc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",fs(t))})),t}}const yu=gu;class vu extends(uo(hc,sc)){constructor(e){super(e),this.element=new ai,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=hc.prototype.ObjectElement.call(this,e);return this.element.filter(Zc).forEach(((e,t)=>{const n=fs(t);n.content=Fi(n).toUpperCase(),e.setMetaProperty("http-method",n)})),Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const wu=vu;const bu=class extends sc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Eu extends oe.wE{static primaryClass="path-item-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Eu.primaryClass),this.classes.push("parameters")}}const xu=Eu;class Su extends(uo(ic,sc)){constructor(e){super(e),this.element=new xu}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);au(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),rr}}const Pu=Su;class ju extends(uo(hc,sc)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Operation"])}}const Ou=ju;class Au extends oe.wE{static primaryClass="operation-tags";constructor(e,t,n){super(e,t,n),this.classes.push(Au.primaryClass),this.classes.push("tags")}}const ku=Au;const Iu=class extends sc{constructor(e){super(e),this.element=new ku}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class Mu extends oe.wE{static primaryClass="operation-consumes";constructor(e,t,n){super(e,t,n),this.classes.push(Mu.primaryClass)}}const Nu=Mu;const Tu=class extends sc{constructor(e){super(e),this.element=new Nu}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class $u extends oe.wE{static primaryClass="operation-produces";constructor(e,t,n){super(e,t,n),this.classes.push($u.primaryClass)}}const Ru=$u;const Fu=class extends sc{constructor(e){super(e),this.element=new Ru}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class Cu extends oe.wE{static primaryClass="operation-parameters";constructor(e,t,n){super(e,t,n),this.classes.push(Cu.primaryClass),this.classes.push("parameters")}}const qu=Cu;class Du extends(uo(ic,sc)){constructor(e){super(e),this.element=new qu}ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(t,e);au(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)})),this.copyMetaAndAttributes(e,this.element),rr}}const Lu=Du;class Vu extends oe.wE{static primaryClass="operation-schemes";constructor(e,t,n){super(e,t,n),this.classes.push(Vu.primaryClass)}}const Bu=Vu;const Uu=class extends sc{constructor(e){super(e),this.element=new Bu}ArrayElement(e){return this.element=this.element.concat(fs(e)),rr}};class zu extends oe.wE{static primaryClass="operation-security";constructor(e,t,n){super(e,t,n),this.classes.push(zu.primaryClass),this.classes.push("security")}}const Hu=zu;class Gu extends(uo(ic,sc)){constructor(e){super(e),this.element=new Hu}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),rr}}const Wu=Gu;class Ku extends(uo(hc,sc)){constructor(e){super(e),this.element=new pi,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Ju=Ku;class Yu extends(uo(hc,sc)){constructor(e){super(e),this.element=new Pa,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}}const Zu=Yu;class Xu extends(uo(hc,sc)){specPath;canSupportSpecificationExtensions;constructor(e){super(e),this.element=new ja,this.specPath=ne(["document","objects","Items"]),this.canSupportSpecificationExtensions=!0}}const Qu=Xu;const el=c((function(e,t){if(n=e,"[object RegExp]"!==Object.prototype.toString.call(n))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Ne(e));var n;return xt(e).test(t)}));function tl(e){return"[object Number]"===Object.prototype.toString.call(e)}const nl=c((function(e,t){if(!tl(e)||!tl(t))throw new TypeError("Both arguments to range must be numbers");for(var n=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,s=0;s<r;)n[s]=s+e,s+=1;return n}));function rl(e,t,n){var r,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!n._items["-0"]||(t&&(n._items["-0"]=!0),!1):null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?e in n._items[s]||(t&&(n._items[s][e]=!0),!1):(t&&(n._items[s]={},n._items[s][e]=!0),!1);case"boolean":if(s in n._items){var i=e?1:0;return!!n._items[s][i]||(t&&(n._items[s][i]=!0),!1)}return t&&(n._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==n._nativeSet?t?(r=n._nativeSet.size,n._nativeSet.add(e),n._nativeSet.size===r):n._nativeSet.has(e):s in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1);case"undefined":return!!n._items[s]||(t&&(n._items[s]=!0),!1);case"object":if(null===e)return!!n._items.null||(t&&(n._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in n._items?!!Ee(e,n._items[s])||(t&&n._items[s].push(e),!1):(t&&(n._items[s]=[e]),!1)}}const sl=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!rl(e,!0,this)},e.prototype.has=function(e){return rl(e,!1,this)},e}();const il=c((function(e,t){for(var n=[],r=0,s=e.length,i=t.length,o=new sl,a=0;a<i;a+=1)o.add(t[a]);for(;r<s;)o.add(e[r])&&(n[n.length]=e[r]),r+=1;return n}));class ol extends(uo(hc,Uc)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...n}){super({...n}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...n,...il(e.keys(),t)],hc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Uc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return rr}}const al=ol;class cl extends(uo(al,sc)){constructor(e){super(e),this.element=new Aa,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>pc(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=el(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${nl(100,600).join("|")})$`))}ObjectElement(e){const t=al.prototype.ObjectElement.call(this,e);return this.element.filter(au).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(nu).forEach(((e,t)=>{const n=fs(t);this.fieldPatternPredicate(Fi(n))&&e.setMetaProperty("http-status-code",n)})),t}}const ul=cl;const ll=class extends ic{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Zo(e,ne(t),re))),n=ca(t)(e);return this.element=this.toRefractedElement(n,e),rr}};class pl extends(uo(ll,sc)){constructor(e){super(e),this.alternator=[{predicate:pc,specPath:["document","objects","Reference"]},{predicate:ki,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ll.prototype.enter.call(this,e);return au(this.element)?this.element.setMetaProperty("referenced-element","response"):nu(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const hl=pl;class ml extends(uo(hc,sc)){constructor(e){super(e),this.element=new Ia,this.specPath=ne(["document","objects","Response"]),this.canSupportSpecificationExtensions=!0}}const fl=ml;const dl=class extends Uc{constructor(e){super(e),this.fieldPatternPredicate=jo}};class _l extends(uo(dl,sc)){constructor(e){super(e),this.element=new Na,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!1}}const gl=_l;class yl extends(uo(dl,sc)){constructor(e){super(e),this.element=new $a,this.specPath=ne(["value"]),this.canSupportSpecificationExtensions=!1}}const vl=yl;class wl extends(uo(hc,sc)){constructor(e){super(e),this.element=new Ra,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const bl=wl;class El extends(uo(hc,sc)){constructor(e){super(e),this.element=new Ca,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const xl=El;class Sl extends(uo(hc,sc)){constructor(e){super(e),this.element=new Da,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=hc.prototype.ObjectElement.call(this,e);return Kr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Pl=Sl;const jl=class extends sc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ol extends(uo(hc,sc)){constructor(e){super(e),this.element=new La,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const Al=Ol,{allOf:kl}=fa.visitors.document.objects.JSONSchema.fixedFields;const Il=class extends kl{ArrayElement(e){const t=kl.prototype.ArrayElement.call(this,e);return this.element.filter(ya).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{items:Ml}=fa.visitors.document.objects.JSONSchema.fixedFields;const Nl=class extends Ml{ObjectElement(e){const t=Ml.prototype.ObjectElement.call(this,e);return ya(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){const t=Ml.prototype.ArrayElement.call(this,e);return this.element.filter(ya).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{properties:Tl}=fa.visitors.document.objects.JSONSchema.fixedFields;const $l=class extends Tl{ObjectElement(e){const t=Tl.prototype.ObjectElement.call(this,e);return this.element.filter(ya).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},{JSONSchemaOrJSONReferenceVisitor:Rl}=fa.visitors;const Fl=class extends Rl{ObjectElement(e){const t=Rl.prototype.enter.call(this,e);return ya(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Cl extends(uo(hc,sc)){constructor(e){super(e),this.element=new Ba,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const ql=Cl;class Dl extends(uo(dl,sc)){constructor(e){super(e),this.element=new za,this.specPath=e=>yo(e)?["document","objects","JSONReference"]:["document","objects","Schema"]}ObjectElement(e){const t=dl.prototype.ObjectElement.call(this,e);return this.element.filter(ya).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ll=Dl;class Vl extends(uo(dl,sc)){constructor(e){super(e),this.element=new Ka,this.specPath=ne(["document","objects","Response"])}}const Bl=Vl;class Ul extends(uo(dl,sc)){constructor(e){super(e),this.element=new Ga,this.specPath=ne(["document","objects","Parameter"])}}const zl=Ul;class Hl extends(uo(dl,sc)){element;constructor(e){super(e),this.element=new Ya,this.specPath=ne(["document","objects","SecurityScheme"])}}const Gl=Hl;class Wl extends(uo(hc,sc)){constructor(e){super(e),this.element=new Xa,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Kl=Wl;class Jl extends(uo(dl,sc)){constructor(e){super(e),this.element=new ec,this.specPath=ne(["value"]),this.canSupportSpecificationExtensions=!0}}const Yl=Jl;class Zl extends(uo(dl,sc)){constructor(e){super(e),this.element=new nc,this.specPath=ne(["value"])}}const Xl=Zl;const Ql=class extends ic{MemberElement(e){return this.element=fs(e),this.element.classes.push("specification-extension"),rr}},{fixedFields:ep}=fa.visitors.document.objects.JSONSchema,tp={visitors:{value:sc,document:{objects:{JSONReference:fa.visitors.document.objects.JSONReference,JSONSchema:{$ref:"#/visitors/document/objects/Schema"},Swagger:{$visitor:fc,fixedFields:{swagger:_c,info:{$ref:"#/visitors/document/objects/Info"},host:gc,basePath:yc,schemes:bc,consumes:Sc,produces:Oc,paths:{$ref:"#/visitors/document/objects/Paths"},definitions:{$ref:"#/visitors/document/objects/Definitions"},parameters:{$ref:"#/visitors/document/objects/ParametersDefinitions"},responses:{$ref:"#/visitors/document/objects/ResponsesDefinitions"},securityDefinitions:{$ref:"#/visitors/document/objects/SecurityDefinitions"},security:Mc,tags:Rc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Cc,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:qc}},Contact:{$visitor:Lc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Bc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Paths:{$visitor:yu},PathItem:{$visitor:wu,fixedFields:{$ref:bu,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"},parameters:Pu}},Operation:{$visitor:Ou,fixedFields:{tags:Iu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},consumes:Tu,produces:Fu,parameters:Lu,responses:{$ref:"#/visitors/document/objects/Responses"},schemes:Uu,deprecated:{$ref:"#/visitors/value"},security:Wu}},ExternalDocumentation:{$visitor:Ju,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Zu,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:ep.description,required:ep.required,schema:Fl,type:ep.type,format:ep.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:ep.default,maximum:ep.maximum,exclusiveMaximum:ep.exclusiveMaximum,minimum:ep.minimum,exclusiveMinimum:ep.exclusiveMinimum,maxLength:ep.maxLength,minLength:ep.minLength,pattern:ep.pattern,maxItems:ep.maxItems,minItems:ep.minItems,uniqueItems:ep.uniqueItems,enum:ep.enum,multipleOf:ep.multipleOf}},Items:{$visitor:Qu,fixedFields:{type:ep.type,format:ep.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:ep.default,maximum:ep.maximum,exclusiveMaximum:ep.exclusiveMaximum,minimum:ep.minimum,exclusiveMinimum:ep.exclusiveMinimum,maxLength:ep.maxLength,minLength:ep.minLength,pattern:ep.pattern,maxItems:ep.maxItems,minItems:ep.minItems,uniqueItems:ep.uniqueItems,enum:ep.enum,multipleOf:ep.multipleOf}},Responses:{$visitor:ul,fixedFields:{default:hl}},Response:{$visitor:fl,fixedFields:{description:{$ref:"#/visitors/value"},schema:Fl,headers:{$ref:"#/visitors/document/objects/Headers"},examples:{$ref:"#/visitors/document/objects/Example"}}},Headers:{$visitor:gl},Example:{$visitor:vl},Header:{$visitor:bl,fixedFields:{description:ep.description,type:ep.type,format:ep.format,items:{$ref:"#/visitors/document/objects/Items"},collectionFormat:{$ref:"#/visitors/value"},default:ep.default,maximum:ep.maximum,exclusiveMaximum:ep.exclusiveMaximum,minimum:ep.minimum,exclusiveMinimum:ep.exclusiveMinimum,maxLength:ep.maxLength,minLength:ep.minLength,pattern:ep.pattern,maxItems:ep.maxItems,minItems:ep.minItems,uniqueItems:ep.uniqueItems,enum:ep.enum,multipleOf:ep.multipleOf}},Tag:{$visitor:xl,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Pl,fixedFields:{$ref:jl}},Schema:{$visitor:Al,fixedFields:{format:ep.format,title:ep.title,description:ep.description,default:ep.default,multipleOf:ep.multipleOf,maximum:ep.maximum,exclusiveMaximum:ep.exclusiveMaximum,minimum:ep.minimum,exclusiveMinimum:ep.exclusiveMinimum,maxLength:ep.maxLength,minLength:ep.minLength,pattern:ep.pattern,maxItems:ep.maxItems,minItems:ep.minItems,uniqueItems:ep.uniqueItems,maxProperties:ep.maxProperties,minProperties:ep.minProperties,required:ep.required,enum:ep.enum,type:ep.type,readOnly:ep.readOnly,items:Nl,allOf:Il,properties:$l,additionalProperties:Fl,discriminator:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},XML:{$visitor:ql,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},Definitions:{$visitor:Ll},ParametersDefinitions:{$visitor:zl},ResponsesDefinitions:{$visitor:Bl},SecurityDefinitions:{$visitor:Gl},SecurityScheme:{$visitor:Kl,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},flow:{$ref:"#/visitors/value"},authorizationUrl:{$ref:"#/visitors/value"},token:{$ref:"#/visitors/value"},scopes:{$ref:"#/visitors/document/objects/Scopes"}}},Scopes:{$visitor:Yl},SecurityRequirement:{$visitor:Xl}},extension:{$visitor:Ql}}}},np=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},rp={SwaggerElement:["content"],InfoElement:["content"],ContactElement:["content"],LicenseElement:["content"],PathsElement:["content"],PathItemElement:["content"],OperationElement:["content"],ExternalDocumentationElement:["content"],ParameterElement:["content"],ItemsElement:["content"],ExampleElement:["content"],ResponsesElement:["content"],ResponseElement:["content"],HeadersElement:["content"],HeaderElement:["content"],TagElement:["content"],ReferenceElement:["content"],JSONReferenceElement:["content"],SchemaElement:["content"],XmlElement:["content"],DefinitionsElement:["content"],ParametersDefinitionsElement:["content"],ResponsesDefinitionsElement:["content"],SecurityDefinitionsElement:["content"],SecuritySchemeElement:["content"],ScopesElement:["content"],SecurityRequirementElement:["content"],...bs},sp={namespace:e=>{const{base:t}=e;return t.register("swagger",Js),t.register("swaggerVersion",Zs),t.register("info",Qs),t.register("contact",ti),t.register("license",ri),t.register("paths",ii),t.register("pathItem",ai),t.register("operation",ui),t.register("externalDocumentation",pi),t.register("parameter",Pa),t.register("items",ja),t.register("responses",Aa),t.register("response",Ia),t.register("headers",Na),t.register("example",$a),t.register("header",Ra),t.register("tag",Ca),t.register("reference",Da),t.register("schema",La),t.register("xml",Ba),t.register("definitions",za),t.register("parametersDefinitions",Ga),t.register("responsesDefinitions",Ka),t.register("securityDefinitions",Ya),t.register("securityScheme",Xa),t.register("scopes",ec),t.register("securityRequirement",nc),t}},ip=()=>{const e=ut(sp);return{predicates:{...s,...i,isStringElement:Kr},namespace:e}},op=(e,{specPath:t=["visitors","document","objects","Swagger","$visitor"],plugins:n=[]}={})=>{const r=(0,oe.e)(e),s=Ai(tp),i=new(js(t,s))({specObj:s});return Es(r,i),qs(i.element,n,{toolboxCreator:ip,visitorOptions:{keyMap:rp,nodeTypeGetter:np}})},ap=e=>(t,n={})=>op(t,{specPath:e,...n});Js.refract=ap(["visitors","document","objects","Swagger","$visitor"]),Zs.refract=ap(["visitors","document","objects","SwaggerVersion","$visitor"]),Qs.refract=ap(["visitors","document","objects","Info","$visitor"]),ti.refract=ap(["visitors","document","objects","Contact","$visitor"]),ri.refract=ap(["visitors","document","objects","License","$visitor"]),ii.refract=ap(["visitors","document","objects","Paths","$visitor"]),ai.refract=ap(["visitors","document","objects","PathItem","$visitor"]),ui.refract=ap(["visitors","document","objects","Operation","$visitor"]),pi.refract=ap(["visitors","document","objects","ExternalDocumentation","$visitor"]),Pa.refract=ap(["visitors","document","objects","Parameter","$visitor"]),ja.refract=ap(["visitors","document","objects","Items","$visitor"]),Aa.refract=ap(["visitors","document","objects","Responses","$visitor"]),Ia.refract=ap(["visitors","document","objects","Response","$visitor"]),Na.refract=ap(["visitors","document","objects","Headers","$visitor"]),$a.refract=ap(["visitors","document","objects","Example","$visitor"]),Ra.refract=ap(["visitors","document","objects","Header","$visitor"]),Ca.refract=ap(["visitors","document","objects","Tag","$visitor"]),Da.refract=ap(["visitors","document","objects","Reference","$visitor"]),La.refract=ap(["visitors","document","objects","Schema","$visitor"]),Ba.refract=ap(["visitors","document","objects","XML","$visitor"]),za.refract=ap(["visitors","document","objects","Definitions","$visitor"]),Ga.refract=ap(["visitors","document","objects","ParametersDefinitions","$visitor"]),Ka.refract=ap(["visitors","document","objects","ResponsesDefinitions","$visitor"]),Ya.refract=ap(["visitors","document","objects","SecurityDefinitions","$visitor"]),Xa.refract=ap(["visitors","document","objects","SecurityScheme","$visitor"]),ec.refract=ap(["visitors","document","objects","Scopes","$visitor"]),nc.refract=ap(["visitors","document","objects","SecurityRequirement","$visitor"]);const cp=a((function(e){return m(-1,e)}));const up=class extends hi{};const lp=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new up("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new up("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new up("latest method in MediaTypes class is not yet implemented.")}};class pp extends lp{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="2.0",t="generic"){const n="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(n)))||this.unknownMediaType}latest(e="generic"){return cp(this.filterByFormat(e))}}const hp=new pp("application/vnd.oai.openapi;version=2.0","application/vnd.oai.openapi+json;version=2.0","application/vnd.oai.openapi+yaml;version=2.0"),mp=new pp(...hp.filterByFormat("generic"),...hp.filterByFormat("yaml")),fp=/(?<YAML>^(["']?)swagger\2\s*:\s*(["'])(?<version_yaml>2\.0)\3(?:\s+|$))|(?<JSON>"swagger"\s*:\s*"(?<version_json>2\.0)")/m,dp=async e=>fp.test(e)&&await(async e=>{try{return"ERROR"!==(await Et(e)).rootNode.type}catch{return!1}})(e),_p=async(e,t={})=>{const n=d({},"refractorOpts",t),r=g(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1}={})=>{const n=await Et(e);return Ws(n,{sourceMap:t})})(e,r),{result:i}=s;if(ie(i)){const e=Js.refract(i,n);e.classes.push("result"),s.replaceResult(e)}return s},gp=ut(sp)})(),r})()));