@swagger-api/apidom-parser-adapter-openapi-json-3-0 1.4.0 → 1.5.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_0=t():e.apidomParserAdapterOpenApiJson3_0=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,s)=>{"use strict";s(9828);var r=s(1100),n=s(8900),i=s(1811),o=s(6625);for(var a in r)i(n[a],a),o[a]=o.Array},88:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,s)=>{"use strict";var r=s(9098),n=s(4713),i=s(4871),o=s(3410),a=s(2769),c=s(1926),l=s(3671),u=s(3491),_=s(1811),m=s(3999),p=s(3508),d=s(8655),h=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,b=f.IteratorPrototype,w=f.BUGGY_SAFARI_ITERATORS,v=d("iterator"),E="keys",x="values",S="entries",O=function(){return this};e.exports=function(e,t,s,o,d,f,P){c(s,t,o);var M,A,j,T=function(e){if(e===d&&N)return N;if(!w&&e&&e in I)return I[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},R=t+" Iterator",F=!1,I=e.prototype,C=I[v]||I["@@iterator"]||d&&I[d],N=!w&&C||T(d),k="Array"===t&&I.entries||C;if(k&&(M=l(k.call(new e)))!==Object.prototype&&M.next&&(i||l(M)===b||(u?u(M,b):a(M[v])||p(M,v,O)),_(M,R,!0,!0),i&&(h[R]=O)),g&&d===x&&C&&C.name!==x&&(!i&&y?m(I,"name",x):(F=!0,N=function(){return n(C,this)})),d)if(A={values:T(x),keys:f?N:T(E),entries:T(S)},P)for(j in A)(w||F||!(j in I))&&p(I,j,A[j]);else r({target:t,proto:!0,forced:w||F},A);return i&&!P||I[v]===N||p(I,v,N,{name:d}),h[t]=N,A}},195:(e,t,s)=>{var r=s(4882),n=s(8121),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!r(e))return n(e);var t=[];for(var s in Object(e))i.call(e,s)&&"constructor"!=s&&t.push(s);return t}},208:(e,t,s)=>{"use strict";var r=s(4572),n=s(4713),i=s(7235),o=s(459),a=s(2877),c=s(8130),l=s(4317),u=s(1613),_=s(967),m=s(1743),p=TypeError,d=function(e,t){this.stopped=e,this.result=t},h=d.prototype;e.exports=function(e,t,s){var f,g,y,b,w,v,E,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),O=!(!s||!s.IS_RECORD),P=!(!s||!s.IS_ITERATOR),M=!(!s||!s.INTERRUPTED),A=r(t,x),j=function(e){return f&&m(f,"normal",e),new d(!0,e)},T=function(e){return S?(i(e),M?A(e[0],e[1],j):A(e[0],e[1])):M?A(e,j):A(e)};if(O)f=e.iterator;else if(P)f=e;else{if(!(g=_(e)))throw new p(o(e)+" is not iterable");if(a(g)){for(y=0,b=c(e);b>y;y++)if((w=T(e[y]))&&l(h,w))return w;return new d(!1)}f=u(e,g)}for(v=O?e.next:f.next;!(E=n(v,f)).done;){try{w=T(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof w&&w&&l(h,w))return w}return new d(!1)}},239:(e,t,s)=>{"use strict";s(5442);var r=s(6656);s(85),e.exports=r},262:(e,t,s)=>{"use strict";var r=s(2769);e.exports=function(e){return"object"==typeof e?null!==e:r(e)}},353:(e,t,s)=>{var r=s(1340),n=s(3934),i=s(8861),o=s(1182),a=s(8486),c=s(3142),l=s(5853),u=s(8666),_="[object Arguments]",m="[object Array]",p="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,h,f,g){var y=c(e),b=c(t),w=y?m:a(e),v=b?m:a(t),E=(w=w==_?p:w)==p,x=(v=v==_?p:v)==p,S=w==v;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,h,f,g):i(e,t,w,s,h,f,g);if(!(1&s)){var O=E&&d.call(e,"__wrapped__"),P=x&&d.call(t,"__wrapped__");if(O||P){var M=O?e.value():e,A=P?t.value():t;return g||(g=new r),f(M,A,s,h,g)}}return!!S&&(g||(g=new r),o(e,t,s,h,f,g))}},358:(e,t,s)=>{var r=s(6137),n=s(3283),i=s(3142),o=s(5853),a=s(9632),c=s(8666),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var s=i(e),u=!s&&n(e),_=!s&&!u&&o(e),m=!s&&!u&&!_&&c(e),p=s||u||_||m,d=p?r(e.length,String):[],h=d.length;for(var f in e)!t&&!l.call(e,f)||p&&("length"==f||_&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,h))||d.push(f);return d}},393:(e,t,s)=>{var r=s(8244),n=s(7979),i=s(1211);e.exports=function(e){return r(e,i,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 s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const s=this.deserialiseContent(e.content);return void 0===s&&null!==t.content||(t.content=s),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},459:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},480:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},484:(e,t,s)=>{"use strict";var r=s(9098),n=s(8900),i=s(7013),o=s(6453),a="WebAssembly",c=n[a],l=7!==new Error("e",{cause:7}).cause,u=function(e,t){var s={};s[e]=o(e,t,l),r({global:!0,constructor:!0,arity:1,forced:l},s)},_=function(e,t){if(c&&c[e]){var s={};s[e]=o(a+"."+e,t,l),r({target:a,stat:!0,constructor:!0,arity:1,forced:l},s)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),_("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),_("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),_("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},493:(e,t,s)=>{"use strict";var r=s(4713),n=s(262),i=s(6281),o=s(4674),a=s(9258),c=s(8655),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var s,c=o(e,u);if(c){if(void 0===t&&(t="default"),s=r(c,e,t),!n(s)||i(s))return s;throw new l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,s)=>{var r=s(7379),n=s(5387),i=s(547),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&n(e.length)&&!!o[r(e)]}},701:(e,t,s)=>{"use strict";var r=s(6100),n=s(2137),i=r({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},814:(e,t,s)=>{"use strict";var r=s(2769),n=s(459),i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,s)=>{"use strict";var r=s(8407),n=s(4674),i=s(3057),o=s(6625),a=s(8655)("iterator");e.exports=function(e){if(!i(e))return n(e,a)||n(e,"@@iterator")||o[r(e)]}},986:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==r(e)}},1003:(e,t,s)=>{"use strict";var r=s(8099),n=s(8900),i=s(2769),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(r[e])||o(n[e]):r[e]&&r[e][t]||n[e]&&n[e][t]}},1005:(e,t,s)=>{"use strict";var r=s(3273),n=s(4574),i=s(8130),o=function(e){return function(t,s,o){var a=r(t),c=i(a);if(0===c)return!e&&-1;var l,u=n(o,c);if(e&&s!=s){for(;c>u;)if((l=a[u++])!=l)return!0}else for(;c>u;u++)if((e||u in a)&&a[u]===s)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},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}},1112:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(r){var s=t[e];return"__lodash_hash_undefined__"===s?void 0:s}return n.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var s=-1,r=t.length,n=e.length;++s<r;)e[n+s]=t[s];return e}},1139:(e,t,s)=>{"use strict";var r=s(8407),n=String;e.exports=function(e){if("Symbol"===r(e))throw new TypeError("Cannot convert a Symbol value to a string");return n(e)}},1182:(e,t,s)=>{var r=s(393),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,i,o,a){var c=1&s,l=r(e),u=l.length;if(u!=r(t).length&&!c)return!1;for(var _=u;_--;){var m=l[_];if(!(c?m in t:n.call(t,m)))return!1}var p=a.get(e),d=a.get(t);if(p&&d)return p==t&&d==e;var h=!0;a.set(e,t),a.set(t,e);for(var f=c;++_<u;){var g=e[m=l[_]],y=t[m];if(i)var b=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===b?g===y||o(g,y,s,i,a):b)){h=!1;break}f||(f="constructor"==m)}if(h&&!f){var w=e.constructor,v=t.constructor;w==v||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof v&&v instanceof v||(h=!1)}return a.delete(e),a.delete(t),h}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,s)=>{var r=s(358),n=s(195),i=s(6529);e.exports=function(e){return i(e)?r(e):n(e)}},1212:(e,t,s)=>{e.exports=s(8411)},1268:(e,t,s)=>{"use strict";var r=s(6100),n=0,i=Math.random(),o=r(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},1314:(e,t,s)=>{"use strict";var r=s(8900),n=s(2769),i=r.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},1330:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203);e.exports=r&&n((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,s)=>{var r=s(1386),n=s(4103),i=s(1779),o=s(4162),a=s(7462),c=s(6638);function l(e){var t=this.__data__=new r(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},1386:(e,t,s)=>{var r=s(2393),n=s(2049),i=s(7144),o=s(7452),a=s(3964);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1395:(e,t,s)=>{"use strict";var r=s(6100),n=s(1203),i=s(9932),o=Object,a=r("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},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)}}},1580:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},1613:(e,t,s)=>{"use strict";var r=s(4713),n=s(814),i=s(7235),o=s(459),a=s(967),c=TypeError;e.exports=function(e,t){var s=arguments.length<2?a(e):t;if(n(s))return i(r(s,e));throw new c(o(e)+" is not iterable")}},1623:(e,t,s)=>{var r=s(8942).Uint8Array;e.exports=r},1743:(e,t,s)=>{"use strict";var r=s(4713),n=s(7235),i=s(4674);e.exports=function(e,t,s){var o,a;n(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw s;return s}o=r(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw s;if(a)throw o;return n(o),s}},1779:e=>{e.exports=function(e){var t=this.__data__,s=t.delete(e);return this.size=t.size,s}},1780:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,s)=>{"use strict";var r=s(4904),n=s(9989).f,i=s(3999),o=s(701),a=s(9559),c=s(8655)("toStringTag");e.exports=function(e,t,s,l){var u=s?e:e&&e.prototype;u&&(o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!r&&i(u,"toString",a))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,s)=>{"use strict";var r=s(2621).IteratorPrototype,n=s(5780),i=s(480),o=s(1811),a=s(6625),c=function(){return this};e.exports=function(e,t,s,l){var u=t+" Iterator";return e.prototype=n(r,{next:i(+!l,s)}),o(e,u,!1,!0),a[u]=c,e}},1950:(e,t,s)=>{var r=s(8942)["__core-js_shared__"];e.exports=r},1966:(e,t,s)=>{"use strict";var r=s(2937),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i("Can't set "+n(e)+" as a prototype")}},2049:(e,t,s)=>{var r=s(7034),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,s=r(t,e);return!(s<0)&&(s==t.length-1?t.pop():n.call(t,s,1),--this.size,!0)}},2137:(e,t,s)=>{"use strict";var r=s(5426),n=Object;e.exports=function(e){return n(r(e))}},2306:(e,t,s)=>{e=s.nmd(e);var r=s(4967),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&r.process,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},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},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}}},2555:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==r(e)}},2621:(e,t,s)=>{"use strict";var r,n,i,o=s(1203),a=s(2769),c=s(262),l=s(5780),u=s(3671),_=s(3508),m=s(8655),p=s(4871),d=m("iterator"),h=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):h=!0),!c(r)||o((function(){var e={};return r[d].call(e)!==e}))?r={}:p&&(r=l(r)),a(r[d])||_(r,d,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:h}},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}},2871:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,s)=>{"use strict";var r=s(8655),n=s(6625),i=r("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},2937:(e,t,s)=>{"use strict";var r=s(262);e.exports=function(e){return r(e)||null===e}},3004:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||null,t,s),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,s)=>{"use strict";var r=s(9098),n=s(4317),i=s(3671),o=s(3491),a=s(7464),c=s(5780),l=s(3999),u=s(480),_=s(8148),m=s(4279),p=s(208),d=s(4879),h=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(b,this);o?s=o(new f,r?i(this):b):(s=r?this:c(b),l(s,h,"Error")),void 0!==t&&l(s,"message",d(t)),m(s,y,s.stack,1),arguments.length>2&&_(s,arguments[2]);var a=[];return p(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var b=y.prototype=c(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,s)=>{var r=s(4715)(s(8942),"DataView");e.exports=r},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,s)=>{const r=s(394);e.exports=class extends r{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const s={element:e.element};e._meta&&e._meta.length>0&&(s.meta=this.serialiseObject(e.meta));const r="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(r){const t=this.enumSerialiseAttributes(e);t&&(s.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:r}=e;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===e.element&&t&&(r=r.clone(),r.remove("variable")),r.length>0&&(s.attributes=this.serialiseObject(r))}if(r)s.content=this.enumSerialiseContent(e,s);else if(this[`${e.element}SerialiseContent`])s.content=this[`${e.element}SerialiseContent`](e,s);else if(void 0!==e.content){let r;t&&e.content.key?(r=e.content.clone(),r.key.attributes.set("variable",t),r=this.serialiseContent(r)):r=this.serialiseContent(e.content),this.shouldSerialiseContent(e,r)&&(s.content=r)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(s.content=[]);return s}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),s=t.remove("enumerations")||new this.namespace.elements.Array([]),r=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([r.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==s.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),s=new t;s.element!==e.element&&(s.element=e.element),e.meta&&this.deserialiseObject(e.meta,s.meta),e.attributes&&this.deserialiseObject(e.attributes,s.attributes);const r=this.deserialiseContent(e.content);if(void 0===r&&null!==s.content||(s.content=r),"enum"===s.element){s.content&&s.attributes.set("enumerations",s.content);let e=s.attributes.get("samples");if(s.attributes.remove("samples"),e){const r=e;e=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const n=new t(r);n.element=s.element,e.push(n)}))}));const n=e.shift();s.content=n?n.content:void 0,s.attributes.set("samples",e)}else s.content=void 0;let r=s.attributes.get("default");if(r&&r.length>0){r=r.get(0);const e=new t(r);e.element=s.element,s.attributes.set("default",e)}}else if("dataStructure"===s.element&&Array.isArray(s.content))[s.content]=s.content;else if("category"===s.element){const e=s.attributes.get("meta");e&&(s.attributes.set("metadata",e),s.attributes.remove("meta"))}else"member"===s.element&&s.key&&s.key._attributes&&s.key._attributes.getValue("variable")&&(s.attributes.set("variable",s.key.attributes.get("variable")),s.key.attributes.remove("variable"));return s}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,s)=>{if(e){const r=s.toValue();t[r]=this.convertKeyToRefract(r,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((s=>{t.set(s,this.deserialise(e[s]))}))}}},3212:(e,t,s)=>{var r=s(8250),n=s(1877),i=s(8006);function o(e){var t=-1,s=null==e?0:e.length;for(this.__data__=new r;++t<s;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},3273:(e,t,s)=>{"use strict";var r=s(1395),n=s(5426);e.exports=function(e){return r(n(e))}},3283:(e,t,s)=>{var r=s(6027),n=s(547),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},3305:(e,t,s)=>{var r=s(4497);e.exports=function(){this.__data__=r?r(null):{},this.size=0}},3311:(e,t,s)=>{const r=s(1517),n=s(4123);class i extends n{map(e,t){return this.elements.map((s=>e.bind(t)(s.value,s.key,s)))}filter(e,t){return new i(this.elements.filter((s=>e.bind(t)(s.value,s.key,s))))}reject(e,t){return this.filter(r(e.bind(t)))}forEach(e,t){return this.elements.forEach(((s,r)=>{e.bind(t)(s.value,s.key,s,r)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3410:(e,t,s)=>{"use strict";var r=s(5024),n=s(701),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!r||r&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},3489:(e,t,s)=>{"use strict";var r=s(1003);e.exports=r("document","documentElement")},3491:(e,t,s)=>{"use strict";var r=s(3574),n=s(262),i=s(5426),o=s(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,s={};try{(e=r(Object.prototype,"__proto__","set"))(s,[]),t=s instanceof Array}catch(e){}return function(s,r){return i(s),o(r),n(s)?(t?e(s,r):s.__proto__=r,s):s}}():void 0)},3507:(e,t,s)=>{"use strict";var r=s(2769),n=s(262),i=s(3491);e.exports=function(e,t,s){var o,a;return i&&r(o=t.constructor)&&o!==s&&n(a=o.prototype)&&a!==s.prototype&&i(e,a),e}},3508:(e,t,s)=>{"use strict";var r=s(3999);e.exports=function(e,t,s,n){return n&&n.enumerable?e[t]=s:r(e,t,s),e}},3531:(e,t,s)=>{"use strict";var r=s(8900).navigator,n=r&&r.userAgent;e.exports=n?String(n):""},3574:(e,t,s)=>{"use strict";var r=s(6100),n=s(814);e.exports=function(e,t,s){try{return r(n(Object.getOwnPropertyDescriptor(e,t)[s]))}catch(e){}}},3655:(e,t,s)=>{var r=s(7379),n=s(1580);e.exports=function(e){if(!n(e))return!1;var t=r(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,s)=>{"use strict";var r=s(701),n=s(2769),i=s(2137),o=s(4275),a=s(2871),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(r(t,c))return t[c];var s=t.constructor;return n(s)&&t instanceof s?s.prototype:t instanceof l?u:null}},3753:(e,t,s)=>{"use strict";var r=s(4871),n=s(8900),i=s(7525),o="__core-js_shared__",a=e.exports=n[o]||i(o,{});(a.versions||(a.versions=[])).push({version:"3.42.0",mode:r?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"})},3766:e=>{e.exports=function(e,t){return function(s){return e(t(s))}}},3832:(e,t,s)=>{"use strict";var r=s(5571).charAt,n=s(1139),i=s(8417),o=s(164),a=s(877),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),s=t.string,n=t.index;return n>=s.length?a(void 0,!0):(e=r(s,n),t.index+=e.length,a(e,!1))}))},3833:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(3078),nodePath=__webpack_require__(4142);scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((s,r)=>{fs.readFile(e,t?void 0:"utf8",((e,n)=>{e?r(e):s(t?n.buffer:n)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,s)=>{var r=new XMLHttpRequest;r.open("GET",e,!0),r.responseType="arraybuffer",r.onload=()=>{(200==r.status||0==r.status&&r.response)&&s(r.response),t(r.status)},r.onerror=t,r.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,s){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(s,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,s,r){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,s,r):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,s).then(r,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,s,r)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var s=getDylinkMetadata(t);return s.neededDynlibs&&(dynamicLibraries=s.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"main"),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate"),wasmExports}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var s=GOT[t];return s||(s=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(s.required=!0),s}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,s)=>{for(var r=t+s,n=t;e[n]&&!(n>=r);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i},getDylinkMetadata=e=>{var t=0,s=0;function r(){for(var s=0,r=1;;){var n=e[t++];if(s+=(127&n)*r,r*=128,!(128&n))break}return s}function n(){var s=r();return UTF8ArrayToString(e,(t+=s)-s,s)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),s=(e=new Uint8Array(a[0])).length}else{var c=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==c[0]||6386541==c[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var l=r();s=t+l,o=n()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();for(var _=r(),m=0;m<_;++m){var p=n();u.neededDynlibs.push(p)}}else{i("dylink.0"!==o);for(;t<s;){var d=e[t++],h=r();if(1===d)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===d)for(_=r(),m=0;m<_;++m)p=n(),u.neededDynlibs.push(p);else if(3===d)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===d)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=h}}return u};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,s)=>{var r={refcount:1/0,name:e,exports:s,global:!0};return LDSO.loadedLibsByName[e]=r,null!=t&&(LDSO.loadedLibsByHandle[t]=r),r},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,s=t+alignMemory(e,16);return ___heap_base=s,GOT.__heap_base.value=s,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},s={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},r=1;r<e.length;++r)s.parameters.push(t[e[r]]);return s},generateFuncType=(e,t)=>{var s=e.slice(0,1),r=e.slice(1),n={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(r.length,t);for(var i=0;i<r.length;++i)t.push(n[r[i]]);"v"==s?t.push(0):t.push(1,n[s])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var s=[1];generateFuncType(t,s);var r=[0,97,115,109,1,0,0,0,1];uleb128Encode(s.length,r),r.push(...s),r.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(r));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var s=e;s<e+t;s++){var r=getWasmTableEntry(s);r&&functionsInTableMap.set(r,s)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var s=getFunctionAddress(e);if(s)return s;var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;var n=convertJsFunctionToWasm(e,t);setWasmTableEntry(r,n)}return functionsInTableMap.set(e,r),r},updateGOT=(e,t)=>{for(var s in e)if(!isInternalSym(s)){var r=e[s];s.startsWith("orig$")&&(s=s.split("$")[1],t=!0),GOT[s]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[s].value)&&("function"==typeof r?GOT[s].value=addFunction(r):"number"==typeof r?GOT[s].value=r:err(`unhandled export type for '${s}': ${typeof r}`))}},relocateExports=(e,t,s)=>{var r={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),r[n]=i}return updateGOT(r,s),r},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,s)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...s)),dynCall=(e,t,s=[])=>e.includes("j")?dynCallLegacy(e,t,s):getWasmTableEntry(t)(...s),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...s)=>{var r=stackSave();try{return dynCall(e,t,s)}catch(e){if(stackRestore(r),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var s;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?s=wasmImports[e]:e.startsWith("invoke_")&&(s=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:s,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+8];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+8]=1,LE_HEAP_STORE_U32(4*(handle+12>>2),memoryBase),LE_HEAP_STORE_I32(4*(handle+16>>2),metadata.memorySize),LE_HEAP_STORE_U32(4*(handle+20>>2),tableBase),LE_HEAP_STORE_I32(4*(handle+24>>2),metadata.tableSize))}else memoryBase=LE_HEAP_LOAD_U32(4*(handle+12>>2)),tableBase=LE_HEAP_LOAD_U32(4*(handle+20>>2));var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var s;t in e||(e[t]=(...e)=>(s||=resolveSymbol(t),s(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[s,r]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=r)};e(s);const t="__main_argc_argv";"main"==s&&e(t),s==t&&e("main"),s.startsWith("dynCall_")&&!Module.hasOwnProperty(s)&&(Module[s]=r)}},asyncLoad=(e,t,s,r)=>{var n=r?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),n&&removeRunDependency(n)}),(t=>{if(!s)throw`Loading data file "${e}" failed.`;s()})),n&&addRunDependency(n)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},s,r){var n=LDSO.loadedLibsByName[e];if(n)return t.global?n.global||(n.global=!0,mergeLibSymbols(n.exports,e)):s&&Object.assign(s,n.exports),t.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,r&&(LDSO.loadedLibsByHandle[r]=n),!t.loadAsync||Promise.resolve(!0);function i(){if(r){var s=LE_HEAP_LOAD_U32(4*(r+28>>2)),n=LE_HEAP_LOAD_U32(4*(r+32>>2));if(s&&n){var i=HEAP8.slice(s,s+n);return t.loadAsync?Promise.resolve(i):i}}var o=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(o,e,t)}));if(!readBinary)throw new Error(`${o}: file not found, and synchronous loading of external files is not available`);return readBinary(o)}function o(){return t.loadAsync?i().then((n=>loadWebAssemblyModule(n,t,e,s,r))):loadWebAssemblyModule(i(),t,e,s,r)}function a(t){n.global?mergeLibSymbols(t,e):s&&Object.assign(s,t),n.exports=t}return(n=newDSO(e,r,"loading")).refcount=t.nodelete?1/0:1,n.global=t.global,t.loadAsync?o().then((e=>(a(e),!0))):(a(o()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var s=resolveGlobalSymbol(e,!0).sym;if(!s&&!t.required)continue;if("function"==typeof s)t.value=addFunction(s,s.sig);else{if("number"!=typeof s)throw new Error(`bad export type for '${e}': ${typeof s}`);t.value=s}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("loadDylibs"),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency("loadDylibs")}))):reportUndefinedSymbols()},noExitRuntime=Module.noExitRuntime||!0;function setValue(e,t,s="i8"){switch(s.endsWith("*")&&(s="*"),s){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${s}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,s)=>HEAPU8.copyWithin(e,t,t+s);__emscripten_memcpy_js.sig="vppp";var _emscripten_date_now=()=>Date.now(),_emscripten_get_now;_emscripten_date_now.sig="d",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var s=getHeapMax();if(e>s)return!1;for(var r,n,i=1;i<=4;i*=2){var o=t*(1+.2/i);o=Math.min(o,e+100663296);var a=Math.min(s,(r=Math.max(e,o))+((n=65536)-r%n)%n);if(growMemory(a))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;_fd_close.sig="ii";var convertI32PairToI53Checked=(e,t)=>t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN;function _fd_seek(e,t,s,r,n){convertI32PairToI53Checked(t,s);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var s=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(s,0)),s.length=0):s.push(t)},_fd_write=(e,t,s,r)=>{for(var n=0,i=0;i<s;i++){var o=LE_HEAP_LOAD_U32(4*(t>>2)),a=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var c=0;c<a;c++)printChar(e,HEAPU8[o+c]);n+=a}return LE_HEAP_STORE_U32(4*(r>>2),n),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const s=UTF8ToString(t);currentLogCallback(s,0!==e)}}function _tree_sitter_parse_callback(e,t,s,r,n){const i=currentParseCallback(t,{row:s,column:r});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,0,"i32")}_fd_write.sig="iippp";var runtimeKeepaliveCounter=0,keepRuntimeAlive=()=>noExitRuntime||runtimeKeepaliveCounter>0,_proc_exit=e=>{EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit?.(e),ABORT=!0),quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,s=0;s<e.length;++s){var r=e.charCodeAt(s);r<=127?t++:r<=2047?t+=2:r>=55296&&r<=57343?(t+=4,++s):t+=3}return t},stringToUTF8Array=(e,t,s,r)=>{if(!(r>0))return 0;for(var n=s,i=s+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);if(a<=127){if(s>=i)break;t[s++]=a}else if(a<=2047){if(s+1>=i)break;t[s++]=192|a>>6,t[s++]=128|63&a}else if(a<=65535){if(s+2>=i)break;t[s++]=224|a>>12,t[s++]=128|a>>6&63,t[s++]=128|63&a}else{if(s+3>=i)break;t[s++]=240|a>>18,t[s++]=128|a>>12&63,t[s++]=128|a>>6&63,t[s++]=128|63&a}}return t[s]=0,s-n},stringToUTF8=(e,t,s)=>stringToUTF8Array(e,HEAPU8,t,s),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,s=stackAlloc(t);return stringToUTF8(e,s,t),s},stringToUTF16=(e,t,s)=>{if(s??=2147483647,s<2)return 0;for(var r=t,n=(s-=2)<2*e.length?s/2:e.length,i=0;i<n;++i){var o=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),o),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-r},AsciiToString=e=>{for(var t="";;){var s=HEAPU8[e++];if(!s)return t;t+=String.fromCharCode(s)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___wasm_call_ctors=()=>(___wasm_call_ctors=wasmExports.__wasm_call_ctors)(),___wasm_apply_data_relocs=()=>(___wasm_apply_data_relocs=wasmExports.__wasm_apply_data_relocs)(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e),_calloc=Module._calloc=(e,t)=>(_calloc=Module._calloc=wasmExports.calloc)(e,t),_realloc=Module._realloc=(e,t)=>(_realloc=Module._realloc=wasmExports.realloc)(e,t),_free=Module._free=e=>(_free=Module._free=wasmExports.free)(e),_ts_language_symbol_count=Module._ts_language_symbol_count=e=>(_ts_language_symbol_count=Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),_ts_language_state_count=Module._ts_language_state_count=e=>(_ts_language_state_count=Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),_ts_language_version=Module._ts_language_version=e=>(_ts_language_version=Module._ts_language_version=wasmExports.ts_language_version)(e),_ts_language_field_count=Module._ts_language_field_count=e=>(_ts_language_field_count=Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),_ts_language_next_state=Module._ts_language_next_state=(e,t,s)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,s),_ts_language_symbol_name=Module._ts_language_symbol_name=(e,t)=>(_ts_language_symbol_name=Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=(e,t,s,r)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,s,r),_strncmp=Module._strncmp=(e,t,s)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,s),_ts_language_symbol_type=Module._ts_language_symbol_type=(e,t)=>(_ts_language_symbol_type=Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=(e,t)=>(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=(e,t)=>(_ts_lookahead_iterator_new=Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=e=>(_ts_lookahead_iterator_delete=Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=(e,t)=>(_ts_lookahead_iterator_reset_state=Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=(e,t,s)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,s),_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=e=>(_ts_lookahead_iterator_next=Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=e=>(_ts_lookahead_iterator_current_symbol=Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),_memset=Module._memset=(e,t,s)=>(_memset=Module._memset=wasmExports.memset)(e,t,s),_memcpy=Module._memcpy=(e,t,s)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,s),_ts_parser_delete=Module._ts_parser_delete=e=>(_ts_parser_delete=Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),_ts_parser_reset=Module._ts_parser_reset=e=>(_ts_parser_reset=Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),_ts_parser_set_language=Module._ts_parser_set_language=(e,t)=>(_ts_parser_set_language=Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=e=>(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=(e,t,s)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,s),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,s)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,s),_memmove=Module._memmove=(e,t,s)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,s),_memcmp=Module._memcmp=(e,t,s)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,s),_ts_query_new=Module._ts_query_new=(e,t,s,r,n)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,s,r,n),_ts_query_delete=Module._ts_query_delete=e=>(_ts_query_delete=Module._ts_query_delete=wasmExports.ts_query_delete)(e),_iswspace=Module._iswspace=e=>(_iswspace=Module._iswspace=wasmExports.iswspace)(e),_iswalnum=Module._iswalnum=e=>(_iswalnum=Module._iswalnum=wasmExports.iswalnum)(e),_ts_query_pattern_count=Module._ts_query_pattern_count=e=>(_ts_query_pattern_count=Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),_ts_query_capture_count=Module._ts_query_capture_count=e=>(_ts_query_capture_count=Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),_ts_query_string_count=Module._ts_query_string_count=e=>(_ts_query_string_count=Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=(e,t,s)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,s),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,s)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,s),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,s)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,s),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,s)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,s),_ts_tree_copy=Module._ts_tree_copy=e=>(_ts_tree_copy=Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),_ts_tree_delete=Module._ts_tree_delete=e=>(_ts_tree_delete=Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),_ts_init=Module._ts_init=()=>(_ts_init=Module._ts_init=wasmExports.ts_init)(),_ts_parser_new_wasm=Module._ts_parser_new_wasm=()=>(_ts_parser_new_wasm=Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=(e,t)=>(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=(e,t,s,r,n)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,s,r,n),_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=e=>(_ts_parser_included_ranges_wasm=Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=(e,t)=>(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=(e,t)=>(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=e=>(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=e=>(_ts_tree_root_node_with_offset_wasm=Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=e=>(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=e=>(_ts_tree_included_ranges_wasm=Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=e=>(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=e=>(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=e=>(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(_ts_tree_cursor_reset_to_wasm=Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=e=>(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=e=>(_ts_tree_cursor_goto_last_child_wasm=Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(_ts_tree_cursor_goto_first_child_for_index_wasm=Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(_ts_tree_cursor_goto_first_child_for_position_wasm=Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(_ts_tree_cursor_goto_previous_sibling_wasm=Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(_ts_tree_cursor_goto_descendant_wasm=Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=e=>(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=e=>(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=e=>(_ts_tree_cursor_current_node_state_id_wasm=Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=e=>(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=e=>(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=e=>(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=e=>(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=e=>(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=e=>(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=e=>(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=e=>(_ts_tree_cursor_current_depth_wasm=Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=e=>(_ts_tree_cursor_current_descendant_index_wasm=Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=e=>(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=e=>(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=(e,t)=>(_ts_node_field_name_for_child_wasm=Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=(e,t)=>(_ts_node_children_by_field_id_wasm=Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=e=>(_ts_node_first_child_for_byte_wasm=Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=e=>(_ts_node_first_named_child_for_byte_wasm=Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=e=>(_ts_node_grammar_symbol_wasm=Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=e=>(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=e=>(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),_ts_node_child_wasm=Module._ts_node_child_wasm=(e,t)=>(_ts_node_child_wasm=Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=(e,t)=>(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=(e,t)=>(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=e=>(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=e=>(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=e=>(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=e=>(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=e=>(_ts_node_descendant_count_wasm=Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),_ts_node_parent_wasm=Module._ts_node_parent_wasm=e=>(_ts_node_parent_wasm=Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=e=>(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=e=>(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=e=>(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=e=>(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=e=>(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=e=>(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=e=>(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=e=>(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=e=>(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),_ts_node_children_wasm=Module._ts_node_children_wasm=e=>(_ts_node_children_wasm=Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=e=>(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=(e,t,s,r,n,i,o)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,s,r,n,i,o),_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=e=>(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=e=>(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=e=>(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=e=>(_ts_node_is_error_wasm=Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=e=>(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=e=>(_ts_node_is_extra_wasm=Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=e=>(_ts_node_parse_state_wasm=Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=e=>(_ts_node_next_parse_state_wasm=Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),_ts_query_matches_wasm=Module._ts_query_matches_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,s,r,n,i,o,a,c,l,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,s,r,n,i,o,a,c,l,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,s,r,n,i,o,a,c,l,u),_iswalpha=Module._iswalpha=e=>(_iswalpha=Module._iswalpha=wasmExports.iswalpha)(e),_iswblank=Module._iswblank=e=>(_iswblank=Module._iswblank=wasmExports.iswblank)(e),_iswdigit=Module._iswdigit=e=>(_iswdigit=Module._iswdigit=wasmExports.iswdigit)(e),_iswlower=Module._iswlower=e=>(_iswlower=Module._iswlower=wasmExports.iswlower)(e),_iswupper=Module._iswupper=e=>(_iswupper=Module._iswupper=wasmExports.iswupper)(e),_iswxdigit=Module._iswxdigit=e=>(_iswxdigit=Module._iswxdigit=wasmExports.iswxdigit)(e),_memchr=Module._memchr=(e,t,s)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,s),_strlen=Module._strlen=e=>(_strlen=Module._strlen=wasmExports.strlen)(e),_strcmp=Module._strcmp=(e,t)=>(_strcmp=Module._strcmp=wasmExports.strcmp)(e,t),_strncat=Module._strncat=(e,t,s)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,s),_strncpy=Module._strncpy=(e,t,s)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,s),_towlower=Module._towlower=e=>(_towlower=Module._towlower=wasmExports.towlower)(e),_towupper=Module._towupper=e=>(_towupper=Module._towupper=wasmExports.towupper)(e),_setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),dynCall_jiji=Module.dynCall_jiji=(e,t,s,r,n)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,s,r,n),_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=e=>(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=(e,t)=>(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var s=e.length,r=stackAlloc(4*(s+1)),n=r;e.forEach((e=>{LE_HEAP_STORE_U32(4*(n>>2),stringToUTF8OnStack(e)),n+=4})),LE_HEAP_STORE_U32(4*(n>>2),0);try{var i=t(s,r);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const s=C._ts_language_version(t);if(s<MIN_COMPATIBLE_VERSION||VERSION<s)throw new Error(`Incompatible language version ${s}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,s){if("string"==typeof e)currentParseCallback=(t,s)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let r=0,n=0;if(s?.includedRanges){r=s.includedRanges.length,n=C._calloc(r,SIZE_OF_RANGE);let e=n;for(let t=0;t<r;t++)marshalRange(e,s.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,r);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}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 Tree{constructor(e,t,s,r){assertInternal(e),this[0]=t,this.language=s,this.textCallback=r}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),marshalPoint(s+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(s)}return r}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(e);if(e>0){let r=t;for(let t=0;t<e;t++)s[t]=unmarshalRange(r),r+=SIZE_OF_RANGE;C._free(t)}return s}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),s=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(t);if(t>0){let e=s;for(let s=0;s<t;s++)r[s]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(s)}return r}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._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){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let s=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,s),s+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,s){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),s||(s=ZERO_POINT);const r=[],n=this.tree.language.types;for(let t=0,s=n.length;t<s;t++)e.includes(n[t])&&r.push(t);const i=C._malloc(SIZE_OF_INT*r.length);for(let e=0,t=r.length;e<t;e++)setValue(i+e*SIZE_OF_INT,r[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,t.row,t.column,s.row,s.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(s,e,"i32"),setValue(s+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const s=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(s,e),marshalPoint(s+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const s=lengthBytesUTF8(e),r=C._malloc(s+1);stringToUTF8(e,r,s+1);const n=C._ts_language_symbol_for_name(this[0],r,s,t);return C._free(r),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1);const r=C._ts_query_new(this[0],s,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!r){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=getValue(TRANSFER_BUFFER,"i32"),n=UTF8ToString(s,r).length,i=e.substr(n,100).split("\n")[0];let o,a=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:o=new RangeError(`Bad node name '${a}'`);break;case 3:o=new RangeError(`Bad field name '${a}'`);break;case 4:o=new RangeError(`Bad capture name @${a}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${n}: '${i}'...`),a="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${i}'...`),a=""}throw o.index=n,o.length=a.length,C._free(s),o}const n=C._ts_query_string_count(r),i=C._ts_query_capture_count(r),o=C._ts_query_pattern_count(r),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,s)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,s)}const l=new Array(o),u=new Array(o),_=new Array(o),m=new Array(o),p=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],p[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;p[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?u:_;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(_[e])}return C._free(s),new Query(INTERNAL,r,a,p,m,Object.freeze(l),Object.freeze(u),Object.freeze(_))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const s=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${s}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),s=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));s||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const r=e[s]();return new Language(INTERNAL,r)}))}}class LookaheadIterable{constructor(e,t,s){assertInternal(e),this[0]=t,this.language=s}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,s,r,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=s,this.textPredicates=r,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=new Array(s);if(p=unmarshalCaptures(this,e.tree,p,r),this.textPredicates[t].every((e=>e(r)))){_[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(_[m].setProperties=e);const s=this.assertedProperties[t];s&&(_[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(_[m].refutedProperties=n),m++}}return _.length=m,C._free(l),_}captures(e,{startPosition:t=ZERO_POINT,endPosition:s=ZERO_POINT,startIndex:r=0,endIndex:n=0,matchLimit:i=4294967295,maxStartDepth:o=4294967295,timeoutMicros:a=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,s.row,s.column,r,n,i,o,a);const c=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),_=[];this.exceededMatchLimit=Boolean(u);const m=[];let p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=getValue(p,"i32");if(p+=SIZE_OF_INT,m.length=s,p=unmarshalCaptures(this,e.tree,p,m),this.textPredicates[t].every((e=>e(m)))){const e=m[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),_.push(e)}}return C._free(l),_}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),s=C._malloc(t+1);stringToUTF8(e,s,t+1),C._ts_query_disable_capture(this[0],s,t),C._free(s)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,s){const r=s-t;let n=e.textCallback(t,null,s);for(t+=n.length;t<s;){const r=e.textCallback(t,null,s);if(!(r&&r.length>0))break;t+=r.length,n+=r}return t>s&&(n=n.slice(0,r)),n}function unmarshalCaptures(e,t,s,r){for(let n=0,i=r.length;n<i;n++){const i=getValue(s,"i32"),o=unmarshalNode(t,s+=SIZE_OF_INT);s+=SIZE_OF_NODE,r[n]={name:e.captureNames[i],node:o}}return s}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const s=getValue(t,"i32");if(0===s)return null;const r=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=s,a.startIndex=r,a.startPosition={row:n,column:i},a[0]=o,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},3885:(e,t,s)=>{"use strict";var r=s(6100),n=Error,i=r("".replace),o=String(new n("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!n.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},3934:(e,t,s)=>{var r=s(3212),n=s(6465),i=s(5568);e.exports=function(e,t,s,o,a,c){var l=1&s,u=e.length,_=t.length;if(u!=_&&!(l&&_>u))return!1;var m=c.get(e),p=c.get(t);if(m&&p)return m==t&&p==e;var d=-1,h=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++d<u;){var g=e[d],y=t[d];if(o)var b=l?o(y,g,d,t,e,c):o(g,y,d,e,t,c);if(void 0!==b){if(b)continue;h=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(g===e||a(g,e,s,o,c)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){h=!1;break}}return c.delete(e),c.delete(t),h}},3964:(e,t,s)=>{var r=s(7034);e.exports=function(e,t){var s=this.__data__,n=r(s,e);return n<0?(++this.size,s.push([e,t])):s[n][1]=t,this}},3999:(e,t,s)=>{"use strict";var r=s(5024),n=s(9989),i=s(480);e.exports=r?function(e,t,s){return n.f(e,t,i(1,s))}:function(e,t,s){return e[t]=s,e}},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""}},4103:(e,t,s)=>{var r=s(1386);e.exports=function(){this.__data__=new r,this.size=0}},4123:(e,t,s)=>{const r=s(1517);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(r(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,s)=>{"use strict";var r=s(8141),n=s(1268),i=r("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},4279:(e,t,s)=>{"use strict";var r=s(3999),n=s(3885),i=s(5791),o=Error.captureStackTrace;e.exports=function(e,t,s,a){i&&(o?o(e,t):r(e,"stack",n(s,a)))}},4317:(e,t,s)=>{"use strict";var r=s(6100);e.exports=r({}.isPrototypeOf)},4497:(e,t,s)=>{var r=s(4715)(Object,"create");e.exports=r},4512:(e,t,s)=>{var r=s(4715)(s(8942),"Set");e.exports=r},4543:(e,t,s)=>{"use strict";var r=s(5024),n=s(4713),i=s(7161),o=s(480),a=s(3273),c=s(5341),l=s(701),u=s(9665),_=Object.getOwnPropertyDescriptor;t.f=r?_:function(e,t){if(e=a(e),t=c(t),u)try{return _(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4572:(e,t,s)=>{"use strict";var r=s(9344),n=s(814),i=s(1780),o=r(r.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,s)=>{"use strict";var r=s(9903),n=Math.max,i=Math.min;e.exports=function(e,t){var s=r(e);return s<0?n(s+t,0):i(s,t)}},4603:(e,t,s)=>{"use strict";var r=s(5547),n=s(1203),i=s(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},4674:(e,t,s)=>{"use strict";var r=s(814),n=s(3057);e.exports=function(e,t){var s=e[t];return n(s)?void 0:r(s)}},4687:(e,t,s)=>{var r=s(353),n=s(547);e.exports=function e(t,s,i,o,a){return t===s||(null==t||null==s||!n(t)&&!n(s)?t!=t&&s!=s:r(t,s,i,o,e,a))}},4700:(e,t,s)=>{var r=s(9067);e.exports=function(e,t){var s=e.__data__;return r(t)?s["string"==typeof t?"string":"hash"]:s.map}},4713:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype.call;e.exports=r?n.bind(n):function(){return n.apply(n,arguments)}},4715:(e,t,s)=>{var r=s(9624),n=s(155);e.exports=function(e,t){var s=n(e,t);return r(s)?s:void 0}},4732:(e,t,s)=>{var r=s(4700);e.exports=function(e){return r(this,e).has(e)}},4759:(e,t,s)=>{var r,n=s(1950),i=(r=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,s)=>{"use strict";var r=s(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:r(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var s=e&&e.constructor;return e===("function"==typeof s&&s.prototype||t)}},4904:(e,t,s)=>{"use strict";var r={};r[s(8655)("toStringTag")]="z",e.exports="[object z]"===String(r)},4967:(e,t,s)=>{var r="object"==typeof s.g&&s.g&&s.g.Object===Object&&s.g;e.exports=r},5024:(e,t,s)=>{"use strict";var r=s(1203);e.exports=!r((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,s)=>{var r=s(4497);e.exports=function(e,t){var s=this.__data__;return this.size+=this.has(e)?0:1,s[e]=r&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,s)=>{var r=s(3305),n=s(9361),i=s(1112),o=s(5276),a=s(5071);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},5116:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return r(e,n)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,s)=>{var r=s(4497),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return r?void 0!==t[e]:n.call(t,e)}},5341:(e,t,s)=>{"use strict";var r=s(493),n=s(6281);e.exports=function(e){var t=r(e,"string");return n(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,s)=>{"use strict";var r=s(3057),n=TypeError;e.exports=function(e){if(r(e))throw new n("Can't call method on "+e);return e}},5442:(e,t,s)=>{"use strict";s(5695)},5516:(e,t,s)=>{"use strict";var r=s(9989).f;e.exports=function(e,t,s){s in e||r(e,s,{configurable:!0,get:function(){return t[s]},set:function(e){t[s]=e}})}},5547:(e,t,s)=>{"use strict";var r,n,i=s(8900),o=s(3531),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(r=u.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!n&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(n=+r[1]),e.exports=n},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,s)=>{"use strict";var r=s(6100),n=s(9903),i=s(1139),o=s(5426),a=r("".charAt),c=r("".charCodeAt),l=r("".slice),u=function(e){return function(t,s){var r,u,_=i(o(t)),m=n(s),p=_.length;return m<0||m>=p?e?"":void 0:(r=c(_,m))<55296||r>56319||m+1===p||(u=c(_,m+1))<56320||u>57343?e?a(_,m):r:e?l(_,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},5695:(e,t,s)=>{"use strict";s(3085)},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),_="prototype",m="script",p=u("IE_PROTO"),d=function(){},h=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{r=new ActiveXObject("htmlfile")}catch(e){}var e,t,s;g="undefined"!=typeof document?document.domain&&r?f(r):(t=l("iframe"),s="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[_][o[n]];return g()};a[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(d[_]=n(e),s=new d,d[_]=null,s[p]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),_=s(4879),m=s(8148),p=s(4279),d=s(5024),h=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,b=e.split("."),w=b[b.length-1],v=r.apply(null,b);if(v){var E=v.prototype;if(!h&&n(E,"cause")&&delete E.cause,!s)return v;var x=r("Error"),S=t((function(e,t){var s=_(f?t:e,void 0),r=f?new v(e):new v;return void 0!==s&&i(r,"message",s),p(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==w?a?a(S,x):c(S,x,{name:!0}):d&&g in v&&(l(S,v,g),l(S,v,"prepareStackTrace")),c(S,v),!h)try{E.name!==w&&i(E,"name",w),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},7013:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},7034:(e,t,s)=>{var r=s(6285);e.exports=function(e,t){for(var s=e.length;s--;)if(r(e[s][0],t))return s;return-1}},7144:(e,t,s)=>{var r=s(7034);e.exports=function(e){var t=this.__data__,s=r(t,e);return s<0?void 0:t[s][1]}},7161:(e,t)=>{"use strict";var s={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,n=r&&!s.call({1:2},1);t.f=n?function(e){var t=r(this,e);return!!t&&t.enumerable}:s},7202:(e,t,s)=>{"use strict";var r=s(239);e.exports=r},7235:(e,t,s)=>{"use strict";var r=s(262),n=String,i=TypeError;e.exports=function(e){if(r(e))return e;throw new i(n(e)+" is not an object")}},7309:(e,t,s)=>{const r=s(2322),n=s(8631);e.exports=class extends n{constructor(e,t,s,n){super(new r,s,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,s)=>{var r=s(5650),n=s(8870),i=s(9005),o=r?r.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},7389:(e,t,s)=>{"use strict";var r=s(5024),n=s(1330),i=s(9989),o=s(7235),a=s(3273),c=s(8364);t.f=r&&!n?Object.defineProperties:function(e,t){o(e);for(var s,r=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,s=n[u++],r[s]);return e}},7447:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e){s[++t]=e})),s}},7452:(e,t,s)=>{var r=s(7034);e.exports=function(e){return r(this.__data__,e)>-1}},7460:(e,t,s)=>{"use strict";var r=s(4603);e.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,s)=>{"use strict";var r=s(701),n=s(5691),i=s(4543),o=s(9989);e.exports=function(e,t,s){for(var a=n(t),c=o.f,l=i.f,u=0;u<a.length;u++){var _=a[u];r(e,_)||s&&r(s,_)||c(e,_,l(t,_))}}},7525:(e,t,s)=>{"use strict";var r=s(8900),n=Object.defineProperty;e.exports=function(e,t){try{n(r,e,{value:t,configurable:!0,writable:!0})}catch(s){r[e]=t}return t}},7547:(e,t,s)=>{const r=s(8631),n=s(3004),i=s(8712),o=s(2536),a=s(2555),c=s(9796),l=s(7309),u=s(5642),_=s(9620),m=s(593),p=s(4123),d=s(3311),h=s(2322);function f(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 n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}r.prototype.ObjectElement=u,r.prototype.RefElement=m,r.prototype.MemberElement=l,r.prototype.refract=f,p.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:_,RefElement:m,refract:f,ArraySlice:p,ObjectSlice:d,KeyValuePair:h}},7979:(e,t,s)=>{var r=s(9847),n=s(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)})))}:n;e.exports=a},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,s)=>{var r=s(3766)(Object.keys,Object);e.exports=r},8130:(e,t,s)=>{"use strict";var r=s(8146);e.exports=function(e){return r(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,s)=>{var r=s(7379),n=s(3142),i=s(547);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==r(e)}},8141:(e,t,s)=>{"use strict";var r=s(3753);e.exports=function(e,t){return r[e]||(r[e]=t||{})}},8146:(e,t,s)=>{"use strict";var r=s(9903),n=Math.min;e.exports=function(e){var t=r(e);return t>0?n(t,9007199254740991):0}},8148:(e,t,s)=>{"use strict";var r=s(262),n=s(3999);e.exports=function(e,t){r(t)&&"cause"in t&&n(e,"cause",t.cause)}},8244:(e,t,s)=>{var r=s(1129),n=s(3142);e.exports=function(e,t,s){var i=t(e);return n(e)?i:r(i,s(e))}},8250:(e,t,s)=>{var r=s(9753),n=s(5681),i=s(88),o=s(4732),a=s(9068);function c(e){var t=-1,s=null==e?0:e.length;for(this.clear();++t<s;){var r=e[t];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8326:(e,t,s)=>{const r=s(5735),n=s(7547);t.g$=r,t.KeyValuePair=s(2322),t.G6=n.ArraySlice,t.ot=n.ObjectSlice,t.Hg=n.Element,t.Om=n.StringElement,t.kT=n.NumberElement,t.bd=n.BooleanElement,t.Os=n.NullElement,t.wE=n.ArrayElement,t.Sh=n.ObjectElement,t.Pr=n.MemberElement,t.sI=n.RefElement,t.Ft=n.LinkElement,t.e=n.refract,s(394),s(3148)},8337:(e,t,s)=>{"use strict";s(5442);var r=s(7202);e.exports=r},8364:(e,t,s)=>{"use strict";var r=s(8600),n=s(9683);e.exports=Object.keys||function(e){return r(e,n)}},8407:(e,t,s)=>{"use strict";var r=s(4904),n=s(2769),i=s(9932),o=s(8655)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=r?i:function(e){var t,s,r;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(s=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?s:c?i(t):"Object"===(r=i(t))&&n(t.callee)?"Arguments":r}},8411:(e,t,s)=>{"use strict";e.exports=s(8337)},8417:(e,t,s)=>{"use strict";var r,n,i,o=s(1314),a=s(8900),c=s(262),l=s(3999),u=s(701),_=s(3753),m=s(4275),p=s(5241),d="Object already initialized",h=a.TypeError,f=a.WeakMap;if(o||_.state){var g=_.state||(_.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new h(d);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new h(d);return t.facade=e,l(e,y,t),t},n=function(e){return u(e,y)?e[y]:{}},i=function(e){return u(e,y)}}e.exports={set:r,get:n,has:i,enforce:function(e){return i(e)?n(e):r(e,{})},getterFor:function(e){return function(t){var s;if(!c(t)||(s=n(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return s}}}},8486:(e,t,s)=>{var r=s(3103),n=s(9770),i=s(9413),o=s(4512),a=s(9270),c=s(7379),l=s(4066),u="[object Map]",_="[object Promise]",m="[object Set]",p="[object WeakMap]",d="[object DataView]",h=l(r),f=l(n),g=l(i),y=l(o),b=l(a),w=c;(r&&w(new r(new ArrayBuffer(1)))!=d||n&&w(new n)!=u||i&&w(i.resolve())!=_||o&&w(new o)!=m||a&&w(new a)!=p)&&(w=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case h:return d;case f:return u;case g:return _;case y:return m;case b:return p}return t}),e.exports=w},8600:(e,t,s)=>{"use strict";var r=s(6100),n=s(701),i=s(3273),o=s(1005).indexOf,a=s(5241),c=r([].push);e.exports=function(e,t){var s,r=i(e),l=0,u=[];for(s in r)!n(a,s)&&n(r,s)&&c(u,s);for(;t.length>l;)n(r,s=t[l++])&&(~o(u,s)||c(u,s));return u}},8631:(e,t,s)=>{const r=s(6343),n=s(2322),i=s(4123);class o{constructor(e,t,s){t&&(this.meta=t),s&&(this.attributes=s),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let s=new i;const r=(e,t)=>(e.push(t),e),o=(e,s)=>{s.element===t&&e.push(s);const i=s.findRecursive(t);return i&&i.reduce(r,e),s.content instanceof n&&(s.content.key&&o(e,s.content.key),s.content.value&&o(e,s.content.value)),e};return this.content&&(this.content.element&&o(s,this.content),Array.isArray(this.content)&&this.content.reduce(o,s)),e.isEmpty||(s=s.filter((t=>{let s=t.parents.map((e=>e.element));for(const t in e){const r=e[t],n=s.indexOf(r);if(-1===n)return!1;s=s.splice(0,n)}return!0}))),s}set(e){return this.content=e,this}equals(e){return r(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8655:(e,t,s)=>{"use strict";var r=s(8900),n=s(8141),i=s(701),o=s(1268),a=s(4603),c=s(7460),l=r.Symbol,u=n("wks"),_=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:_("Symbol."+e)),u[e]}},8666:(e,t,s)=>{var r=s(674),n=s(9460),i=s(2306),o=i&&i.isTypedArray,a=o?n(o):r;e.exports=a},8696:(e,t,s)=>{"use strict";var r=s(1203),n=s(2769),i=/#|\.prototype\./,o=function(e,t){var s=c[a(e)];return s===u||s!==l&&(n(t)?r(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},8712:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,s)=>{var r=s(5650),n=s(1623),i=s(6285),o=s(3934),a=s(5894),c=s(7447),l=r?r.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,s,r,l,_,m){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!_(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var d=1&r;if(p||(p=c),e.size!=t.size&&!d)return!1;var h=m.get(e);if(h)return h==t;r|=2,m.set(e,t);var f=o(p(e),p(t),r,l,_,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),_=s(3999),m=s(701);s(3753);var p=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,d,h,f,g,y,b,w,v=e.target,E=e.global,x=e.stat,S=e.proto,O=E?r:x?r[v]:r[v]&&r[v].prototype,P=E?l:l[v]||_(l,v,{})[v],M=P.prototype;for(h in t)n=!(s=c(E?h:v+(x?".":"#")+h,e.forced))&&O&&m(O,h),g=P[h],n&&(y=e.dontCallGetSet?(w=a(O,h))&&w.value:O[h]),f=n&&y?y:t[h],(s||S||typeof g!=typeof f)&&(b=e.bind&&n?u(f,r):e.wrap&&n?p(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&_(b,"sham",!0),_(P,h,b),S&&(m(l,d=v+"Prototype")||_(l,d,{}),_(l[d],h,f),e.real&&M&&(s||!M[h])&&_(M,h,f)))}},9258:(e,t,s)=>{"use strict";var r=s(4713),n=s(2769),i=s(262),o=TypeError;e.exports=function(e,t){var s,a;if("string"===t&&n(s=e.toString)&&!i(a=r(s,e)))return a;if(n(s=e.valueOf)&&!i(a=r(s,e)))return a;if("string"!==t&&n(s=e.toString)&&!i(a=r(s,e)))return a;throw new o("Can't convert object to primitive value")}},9270:(e,t,s)=>{var r=s(4715)(s(8942),"WeakMap");e.exports=r},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,s)=>{"use strict";var r=s(9932),n=s(6100);e.exports=function(e){if("Function"===r(e))return n(e)}},9361:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},9413:(e,t,s)=>{var r=s(4715)(s(8942),"Promise");e.exports=r},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,s)=>{"use strict";var r=s(4904),n=s(8407);e.exports=r?{}.toString:function(){return"[object "+n(this)+"]"}},9619:(e,t,s)=>{"use strict";var r=s(8900),n=s(262),i=r.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9620:(e,t,s)=>{const r=s(8631);e.exports=class extends r{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,s)=>{var r=s(3655),n=s(4759),i=s(1580),o=s(4066),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,_=l.hasOwnProperty,m=RegExp("^"+u.call(_).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),_=s(5024),m="Array Iterator",p=o.set,d=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){p(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,s=e.index++;if(!t||s>=t.length)return e.target=null,l(void 0,!0);switch(e.kind){case"keys":return l(s,!1);case"values":return l(t[s],!1)}return l([s,t[s]],!1)}),"values");var h=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&_&&"values"!==h.name)try{a(h,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length,n=0,i=[];++s<r;){var o=e[s];t(o,s,e)&&(i[n++]=o)}return i}},9903:(e,t,s)=>{"use strict";var r=s(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:r(t)}},9932:(e,t,s)=>{"use strict";var r=s(6100),n=r({}.toString),i=r("".slice);e.exports=function(e){return i(n(e),8,-1)}},9989:(e,t,s)=>{"use strict";var r=s(5024),n=s(9665),i=s(1330),o=s(7235),a=s(5341),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,_="enumerable",m="configurable",p="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&p in s&&!s[p]){var r=u(e,t);r&&r[p]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:_ in s?s[_]:r[_],writable:!1})}return l(e,t,s)}:l:function(e,t,s){if(o(e),t=a(t),o(s),n)try{return l(e,t,s)}catch(e){}if("get"in s||"set"in s)throw new c("Accessors not supported");return"value"in s&&(e[t]=s.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var s=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(s.exports,s,s.exports,__webpack_require__),s.loaded=!0,s.exports}__webpack_require__.d=(e,t)=>{for(var s in t)__webpack_require__.o(t,s)&&!__webpack_require__.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var s=t.getElementsByTagName("script");if(s.length)for(var r=s.length-1;r>-1&&(!e||!/^http(s?):/.test(e));)e=s[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/^blob:/,"").replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>pm,detectionRegExp:()=>mm,mediaTypes:()=>_m,namespace:()=>hm,parse:()=>dm});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>Xt,includesClasses:()=>Qt,includesSymbols:()=>Yt,isAnnotationElement:()=>zt,isArrayElement:()=>Vt,isBooleanElement:()=>Dt,isCommentElement:()=>Zt,isElement:()=>$t,isLinkElement:()=>Ht,isMemberElement:()=>Wt,isNullElement:()=>Bt,isNumberElement:()=>qt,isObjectElement:()=>Lt,isParseResultElement:()=>Jt,isPrimitiveElement:()=>Kt,isRefElement:()=>Gt,isStringElement:()=>Ut});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Fi,isJSONSchemaElement:()=>Ri,isLinkDescriptionElement:()=>Ci,isMediaElement:()=>Ii});var s={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function n(e){return function t(s){return 0===arguments.length||r(s)?t:e.apply(this,arguments)}}function i(e){return function t(s,i){switch(arguments.length){case 0:return t;case 1:return r(s)?t:n((function(t){return e(s,t)}));default:return r(s)&&r(i)?t:r(s)?n((function(t){return e(t,i)})):r(i)?n((function(t){return e(s,t)})):e(s,i)}}}function o(e){return function t(s,o,a){switch(arguments.length){case 0:return t;case 1:return r(s)?t:i((function(t,r){return e(s,t,r)}));case 2:return r(s)&&r(o)?t:r(s)?i((function(t,s){return e(t,o,s)})):r(o)?i((function(t,r){return e(s,t,r)})):n((function(t){return e(s,o,t)}));default:return r(s)&&r(o)&&r(a)?t:r(s)&&r(o)?i((function(t,s){return e(t,s,a)})):r(s)&&r(a)?i((function(t,s){return e(t,o,s)})):r(o)&&r(a)?i((function(t,r){return e(s,t,r)})):r(s)?n((function(t){return e(t,o,a)})):r(o)?n((function(t){return e(s,t,a)})):r(a)?n((function(t){return e(s,o,t)})):e(s,o,a)}}}__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>_c,isCallbackElement:()=>Ha,isComponentsElement:()=>Ga,isContactElement:()=>za,isDiscriminatorElement:()=>yc,isExampleElement:()=>Za,isExternalDocumentationElement:()=>Ja,isHeaderElement:()=>Ka,isInfoElement:()=>Xa,isLicenseElement:()=>Ya,isLinkElement:()=>Qa,isMediaTypeElement:()=>fc,isOpenApi3_0Element:()=>tc,isOpenapiElement:()=>ec,isOperationElement:()=>sc,isParameterElement:()=>rc,isPathItemElement:()=>nc,isPathsElement:()=>ic,isReferenceElement:()=>oc,isRequestBodyElement:()=>ac,isResponseElement:()=>cc,isResponsesElement:()=>lc,isSchemaElement:()=>uc,isSecurityRequirementElement:()=>mc,isSecuritySchemeElement:()=>pc,isServerElement:()=>dc,isServerVariableElement:()=>hc,isServersElement:()=>gc});const a=i((function(e,t){return null==t||t!=t?e:t})),c=Number.isInteger||function(e){return(e|0)===e};function l(e){return"[object String]"===Object.prototype.toString.call(e)}function u(e,t){var s=e<0?t.length+e:e;return l(t)?t.charAt(s):t[s]}const _=i((function(e,t){if(null!=t)return c(e)?u(e,t):t[e]}));const m=o((function(e,t,s){return a(e,_(t,s))}));var p=i((function(e,t){for(var s={},r={},n=0,i=e.length;n<i;)r[e[n]]=1,n+=1;for(var o in t)r.hasOwnProperty(o)||(s[o]=t[o]);return s}));const d=p;function h(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const f=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const g=n((function(e){return!!f(e)||!!e&&("object"==typeof e&&(!l(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function b(e,t,s){return function(r,n,i){if(g(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[y])return s(r,n,i[y]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function v(e,t,s,r){return s[r](e,t)}const E=b(h,v,w);function x(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!f(r)){for(var n=0;n<e.length;){if("function"==typeof r[e[n]])return r[e[n]].apply(r,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(r))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return s.apply(this,arguments)}}function S(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const O=function(){return this.xf["@@transducer/init"]()},P=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"]=O,e.prototype["@@transducer/result"]=P,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const A=function(e){return function(t){return new M(e,t)}};function j(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,s){return t.apply(this,arguments)};case 3:return function(e,s,r){return t.apply(this,arguments)};case 4:return function(e,s,r,n){return t.apply(this,arguments)};case 5:return function(e,s,r,n,i){return t.apply(this,arguments)};case 6:return function(e,s,r,n,i,o){return t.apply(this,arguments)};case 7:return function(e,s,r,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,s,r,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,s,r,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,s,r,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function T(e,t,s){return function(){for(var n=[],i=0,o=e,a=0,c=!1;a<t.length||i<arguments.length;){var l;a<t.length&&(!r(t[a])||i>=arguments.length)?l=t[a]:(l=arguments[i],i+=1),n[a]=l,r(l)?c=!0:o-=1,a+=1}return!c&&o<=0?s.apply(this,n):j(Math.max(0,o),T(e,n,s))}}const R=i((function(e,t){return 1===e?n(t):j(e,T(e,[],t))}));function F(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var I=Object.prototype.toString;const C=function(){return"[object Arguments]"===I.call(arguments)?function(e){return"[object Arguments]"===I.call(e)}:function(e){return F("callee",e)}}();var N=!{toString:null}.propertyIsEnumerable("toString"),k=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],$=function(){return arguments.propertyIsEnumerable("length")}(),U=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},q="function"!=typeof Object.keys||$?n((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=$&&C(e);for(t in e)!F(t,e)||n&&"length"===t||(r[r.length]=t);if(N)for(s=k.length-1;s>=0;)F(t=k[s],e)&&!U(r,t)&&(r[r.length]=t),s-=1;return r})):n((function(e){return Object(e)!==e?[]:Object.keys(e)}));const B=q;const D=i(x(["fantasy-land/map","map"],A,(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 h((function(s,r){return s[r]=e(t[r]),s}),{},B(t));default:return S(e,t)}})));const L=i((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:E((function(e,s){return function(e,t){var s;t=t||[];var r=(e=e||[]).length,n=t.length,i=[];for(s=0;s<r;)i[i.length]=e[s],s+=1;for(s=0;s<n;)i[i.length]=t[s],s+=1;return i}(e,D(s,t))}),[],e)}));const V=i((function(e,t){var s=R(e,t);return R(e,(function(){return h(L,D(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const W=n((function(e){return V(e.length,e)}));const H=W(n((function(e){return!e})));function G(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function z(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Z="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const J=n((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function K(e,t,s,r){var n=G(e);function i(e,t){return X(e,t,s.slice(),r.slice())}return!z((function(e,t){return!z(i,t,e)}),G(t),n)}function X(e,t,s,r){if(Z(e,t))return!0;var n,i,o=J(e);if(o!==J(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Z(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Z(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&K(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&K(e.values(),t.values(),s.concat([e]),r.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=B(e);if(c.length!==B(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var _=c[a];if(!F(_,t)||!X(t[_],e[_],l,u))return!1;a-=1}return!0}const Y=i((function(e,t){return X(e,t,[],[])}));const Q=n((function(e){return function(){return e}}));const ee=Q(void 0);const te=Y(ee());const se=H(te);var re=__webpack_require__(8326);function ne(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ie(e,t,s){for(var r=0,n=s.length;r<n;){if((t=e["@@transducer/step"](t,s[r]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r+=1}return e["@@transducer/result"](t)}const oe=i((function(e,t){return j(e.length,(function(){return e.apply(t,arguments)}))}));function ae(e,t,s){for(var r=s.next();!r.done;){if((t=e["@@transducer/step"](t,r.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}r=s.next()}return e["@@transducer/result"](t)}function ce(e,t,s,r){return e["@@transducer/result"](s[r](oe(e["@@transducer/step"],e),t))}const le=b(ie,ce,ae);var ue=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const _e=o((function(e,t,s){return le("function"==typeof e?new ue(e):e,t,s)}));function me(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return f(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const pe=o(me("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const de=n(me("tail",pe(1,1/0)));function he(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return j(arguments[0].length,_e(ne,arguments[0],de(arguments)))}var fe=function(e,t){switch(arguments.length){case 0:return fe;case 1:return function t(s){return 0===arguments.length?t:Z(e,s)};default:return Z(e,t)}};const ge=fe;function ye(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(Y(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function be(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var we=function(e){return(e<10?"0":"")+e};const ve="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+we(e.getUTCMonth()+1)+"-"+we(e.getUTCDate())+"T"+we(e.getUTCHours())+":"+we(e.getUTCMinutes())+":"+we(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Ee(e){return"[object Object]"===Object.prototype.toString.call(e)}var xe=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=P,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Se(e){return function(t){return new xe(e,t)}}const Oe=i(x(["fantasy-land/filter","filter"],Se,(function(e,t){return Ee(t)?h((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},B(t)):function(e,t){for(var s=0,r=t.length,n=[];s<r;)e(t[s])&&(n[n.length]=t[s]),s+=1;return n}(e,t)})));const Pe=i((function(e,t){return Oe((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Me(e,t){var s=function(s){var r=t.concat([e]);return ye(s,r)?"<Circular>":Me(s,r)},r=function(e,t){return S((function(t){return be(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+S(s,e).join(", ")+"))";case"[object Array]":return"["+S(s,e).concat(r(e,Pe((function(e){return/^\d+$/.test(e)}),B(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):be(ve(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":be(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+r(e,B(e)).join(", ")+"}"}}const Ae=n((function(e){return Me(e,[])}));function je(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=c(n)?u(n,s):s[n]}return s}const Te=o((function(e,t,s){return e(je(t,s))}));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=i((function(e,t){return e&&t}));const Ie=i((function(e,t){return Re(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:W(Fe)(e,t)}));const Ce=Y(null);const Ne=H(Ce);function ke(e){return ke="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},ke(e)}const $e=function(e){return"object"===ke(e)};const Ue=R(1,Ie(Ne,$e));const qe=i((function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var r=s(e,t);if(void 0!==r)return r;var n=s(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=Ae(e),o=s(i,Ae(t));return void 0!==o&&o===i?e:t}));const Be=i((function(e,t){return D(_(e),t)}));const De=n((function(e){return R(_e(qe,0,Be("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));const Le=R(1,he(J,ge("GeneratorFunction")));const Ve=R(1,he(J,ge("AsyncFunction")));const We=De([he(J,ge("Function")),Le,Ve]);var He=he(J,ge("Object")),Ge=he(Ae,Y(Ae(Object))),ze=Te(Ie(We,Ge),["constructor"]);const Ze=R(1,(function(e){if(!Ue(e)||!He(e))return!1;var t=Object.getPrototypeOf(e);return!!Ce(t)||ze(t)}));class Je extends re.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ke=Je;class Xe extends re.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const Ye=Xe;class Qe extends re.wE{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(te(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const et=Qe;class tt extends re.g${constructor(){super(),this.register("annotation",Ke),this.register("comment",Ye),this.register("parseResult",et)}}const st=new tt,rt=e=>{const t=new tt;return Ze(e)&&t.use(e),t},nt=st;const it=R(1,he(J,ge("String"))),ot=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",at=globalThis.fetch;We(at)&&(globalThis.fetch=(...e)=>it(e[0])&&e[0].endsWith("tree-sitter.wasm")?at.apply(globalThis,[ot,de(e)]):at.apply(globalThis,e));var ct=__webpack_require__(3833),lt=__webpack_require__(1212);const ut=class extends lt{constructor(e,t,s){if(super(e,t,s),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=s&&"object"==typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class _t extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ut,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 mt=_t,pt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let dt=null,ht=null,ft=null;const gt=async e=>{if(null===dt&&null===ht)ht=ct.init().then((()=>ct.Language.load(pt))).then((e=>{const t=new ct;return t.setLanguage(e),t})).finally((()=>{ht=null})),dt=await ht;else if(null===dt&&null!==ht)dt=await ht;else if(null===dt)throw new mt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return ft=dt.parse(e),dt.reset(),ft};const yt=class extends mt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},bt=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},wt={},vt=e=>null==e?void 0:e.type,Et=e=>"string"==typeof vt(e),xt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),St=(e,{visitFnGetter:t=bt,nodeTypeGetter:s=vt,breakSymbol:r=wt,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,_,m,p,d){let h=l,f=!1;const g={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(h),!1);if("function"==typeof a){const t=a.call(e[l],h,u,_,m,p,g);if("function"==typeof(null==t?void 0:t.then))throw new yt("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=h;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;h=t,f=!0}}}}return f?h:void 0},leave(n,o,l,u,_,m){let p=n;const d={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=a.call(e[n],p,o,l,u,_,d);if("function"==typeof(null==t?void 0:t.then))throw new yt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};St[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=bt,nodeTypeGetter:s=vt,breakSymbol:r=wt,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{async enter(l,u,_,m,p,d){let h=l,f=!1;const g={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(h),!1);if("function"==typeof a){const t=await a.call(e[l],h,u,_,m,p,g);if(t===i)c[l]=h;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;h=t,f=!0}}}}return f?h:void 0},async leave(n,o,l,u,_,m){let p=n;const d={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=await a.call(e[n],p,o,l,u,_,d);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};const Ot=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=wt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=bt,nodeTypeGetter:c=vt,nodePredicate:l=Et,nodeCloneFn:u=xt,detectCycles:_=!0,detectCyclesCallback:m=null}={})=>{const p=s||{};let d,h,f=Array.isArray(e),g=[e],y=-1,b=[],w=e;const v=[],E=[];do{y+=1;const e=y===g.length;let s;const O=e&&0!==b.length;if(e){if(s=0===E.length?void 0:v.pop(),w=h,h=E.pop(),O)if(f){w=w.slice();let e=0;for(const[t,s]of b){const r=t-e;s===i?(w.splice(r,1),e+=1):w[r]=s}}else{w=u(w);for(const[e,t]of b)w[e]=t}y=d.index,g=d.keys,b=d.edits,f=d.inArray,d=d.prev}else if(h!==i&&void 0!==h){if(s=f?y:g[y],w=h[s],w===i||void 0===w)continue;v.push(s)}let P;if(!Array.isArray(w)){var x;if(!l(w))throw new yt(`Invalid AST Node: ${String(w)}`,{node:w});if(_&&E.includes(w)){"function"==typeof m&&m(w,s,h,v,E),v.pop();continue}const i=a(t,c(w),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,w,s,h,v,E):h&&(h[s]=t),e||(w=t)}};P=i.call(t,w,s,h,v,E,n)}if("function"==typeof(null===(x=P)||void 0===x?void 0:x.then))throw new yt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(P===n)break;if(P===o){if(!e){v.pop();continue}}else if(void 0!==P&&(b.push([s,P]),!e)){if(!l(P)){v.pop();continue}w=P}}var S;if(void 0===P&&O&&b.push([s,w]),!e)d={inArray:f,index:y,keys:g,edits:b,prev:d},f=Array.isArray(w),g=f?w:null!==(S=p[c(w)])&&void 0!==S?S:[],y=-1,b=[],h!==i&&void 0!==h&&E.push(h),h=w}while(void 0!==d);return 0!==b.length?b[b.length-1][1]:e};function Pt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Ot[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=wt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=bt,nodeTypeGetter:c=vt,nodePredicate:l=Et,nodeCloneFn:u=xt,detectCycles:_=!0,detectCyclesCallback:m=null}={})=>{const p=s||{};let d,h,f=Array.isArray(e),g=[e],y=-1,b=[],w=e;const v=[],E=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==b.length;if(e){if(s=0===E.length?void 0:v.pop(),w=h,h=E.pop(),S)if(f){w=w.slice();let e=0;for(const[t,s]of b){const r=t-e;s===i?(w.splice(r,1),e+=1):w[r]=s}}else{w=u(w);for(const[e,t]of b)w[e]=t}y=d.index,g=d.keys,b=d.edits,f=d.inArray,d=d.prev}else if(h!==i&&void 0!==h){if(s=f?y:g[y],w=h[s],w===i||void 0===w)continue;v.push(s)}let O;if(!Array.isArray(w)){if(!l(w))throw new yt(`Invalid AST Node: ${String(w)}`,{node:w});if(_&&E.includes(w)){"function"==typeof m&&m(w,s,h,v,E),v.pop();continue}const i=a(t,c(w),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,w,s,h,v,E):h&&(h[s]=t),e||(w=t)}};O=await i.call(t,w,s,h,v,E,n)}if(O===n)break;if(O===o){if(!e){v.pop();continue}}else if(void 0!==O&&(b.push([s,O]),!e)){if(!l(O)){v.pop();continue}w=O}}var x;if(void 0===O&&S&&b.push([s,w]),!e)d={inArray:f,index:y,keys:g,edits:b,prev:d},f=Array.isArray(w),g=f?w:null!==(x=p[c(w)])&&void 0!==x?x:[],y=-1,b=[],h!==i&&void 0!==h&&E.push(h),h=w}while(void 0!==d);return 0!==b.length?b[b.length-1][1]:e};var Mt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=O,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=Pt(this.xf["@@transducer/step"](e,!1))),e},e}();function At(e){return function(t){return new Mt(e,t)}}const jt=i(x(["all"],At,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const Tt=n((function(e){return R(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}))(i(ye)),Rt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ft=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,It=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Ct=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof re.wE)&&t.classes.includes(e),Nt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,kt=e=>e({hasMethod:Rt,hasBasicElementProps:Ft,primitiveEq:It,isElementType:Nt,hasClass:Ct}),$t=kt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof re.Hg||e(s)&&t(void 0,s))),Ut=kt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof re.Om||e(s)&&t("string",s))),qt=kt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof re.kT||e(s)&&t("number",s))),Bt=kt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof re.Os||e(s)&&t("null",s))),Dt=kt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof re.bd||e(s)&&t("boolean",s))),Lt=kt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof re.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),Vt=kt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof re.wE&&!(r instanceof re.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),Wt=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof re.Pr||e(r)&&t("member",r)&&s(void 0,r))),Ht=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof re.Ft||e(r)&&t("link",r)&&s(void 0,r))),Gt=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof re.sI||e(r)&&t("ref",r)&&s(void 0,r))),zt=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ke||e(r)&&t("annotation",r)&&s("array",r))),Zt=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ye||e(r)&&t("comment",r)&&s("string",r))),Jt=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof et||e(r)&&t("parseResult",r)&&s("array",r))),Kt=e=>Nt("object",e)||Nt("array",e)||Nt("boolean",e)||Nt("number",e)||Nt("string",e)||Nt("null",e)||Nt("member",e),Xt=e=>!!$t(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),Yt=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Vt(s)&&jt(Tt(s.toValue()),e)},Qt=(e,t)=>0===e.length||jt(Tt(t.classes.toValue()),e);const es=class extends yt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const ts=class extends es{};const ss=class extends es{};const rs=i((function(e,t){return h((function(s,r){return s[r]=e(t[r],r,t),s}),{},B(t))}));const ns=n((function(e){return null==e}));var is=i((function(e,t){if(0===e.length||ns(t))return!1;for(var s=t,r=0;r<e.length;){if(ns(s)||!F(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const os=is;var as=i((function(e,t){return os([e],t)}));const cs=as;const ls=o((function(e,t,s){return e(_(t,s))}));const us=i(je);const _s=n((function(e){return R(e.length,e)}));const ms=i((function(e,t){return R(e+1,(function(){var s=arguments[e];if(null!=s&&Re(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ae(s)+' does not have a method named "'+t+'"')}))}));const ps=ms(1,"split");var ds=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=P,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 hs(e){return function(t){return new ds(e,t)}}const fs=i(x(["dropWhile"],hs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return pe(s,1/0,t)})));const gs=ms(1,"join");const ys=_s((function(e,t){return he(ps(""),fs(Tt(e)),gs(""))(t)})),bs=(e,t)=>{const s=a(e,t);return rs((e=>{if(Ze(e)&&cs("$ref",e)&&ls(it,"$ref",e)){const t=us(["$ref"],e),r=ys("#/",t);return us(r.split("/"),s)}return Ze(e)?bs(e,s):e}),e)},ws=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),vs=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof re.KeyValuePair){const{key:t,value:n}=e,i=$t(t)?vs(t,r):t,o=$t(n)?vs(n,r):n,a=new re.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof re.ot){const t=e=>vs(e,r),n=[...e].map(t),i=new re.ot(n);return s.set(e,i),i}if(e instanceof re.G6){const t=e=>vs(e,r),n=[...e].map(t),i=new re.G6(n);return s.set(e,i),i}if($t(e)){const t=Ss(e);if(s.set(e,t),e.content)if($t(e.content))t.content=vs(e.content,r);else if(e.content instanceof re.KeyValuePair)t.content=vs(e.content,r);else if(Array.isArray(e.content)){const s=e=>vs(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new ts("Value provided to cloneDeep function couldn't be cloned",{value:e})};vs.safe=e=>{try{return vs(e)}catch{return e}};const Es=e=>{const{key:t,value:s}=e;return new re.KeyValuePair(t,s)},xs=e=>{const t=new e.constructor;if(t.element=e.element,Xt(e)&&ws(t,e),e.meta.length>0&&(t._meta=vs(e.meta)),e.attributes.length>0&&(t._attributes=vs(e.attributes)),$t(e.content)){const s=e.content;t.content=xs(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof re.KeyValuePair?t.content=Es(e.content):t.content=e.content;return t},Ss=e=>{if(e instanceof re.KeyValuePair)return Es(e);if(e instanceof re.ot)return(e=>{const t=[...e];return new re.ot(t)})(e);if(e instanceof re.G6)return(e=>{const t=[...e];return new re.G6(t)})(e);if($t(e))return xs(e);throw new ss("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ss.safe=e=>{try{return Ss(e)}catch{return e}};const Os=e=>Lt(e)?"ObjectElement":Vt(e)?"ArrayElement":Wt(e)?"MemberElement":Ut(e)?"StringElement":Dt(e)?"BooleanElement":qt(e)?"NumberElement":Bt(e)?"NullElement":Ht(e)?"LinkElement":Gt(e)?"RefElement":void 0,Ps=e=>$t(e)?Ss(e):xt(e),Ms=he(Os,it),As={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const js=(e,t,{keyMap:s=As,...r}={})=>Ot(e,t,{keyMap:s,nodeTypeGetter:Os,nodePredicate:Ms,nodeCloneFn:Ps,...r});js[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=As,...r}={})=>Ot[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Os,nodePredicate:Ms,nodeCloneFn:Ps,...r});const Ts=o((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})F(r,t)&&(n[r]=F(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)F(r,s)&&!F(r,n)&&(n[r]=s[r]);return n}));const Rs=o((function e(t,s,r){return Ts((function(s,r,n){return Ee(r)&&Ee(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Fs=i((function(e,t){return Rs((function(e,t,s){return s}),e,t)}));const Is=pe(0,-1);const Cs=i((function(e,t){return e.apply(this,t)}));const Ns=H(We);var ks=n((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():f(e)?[]:l(e)?"":Ee(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 $s=ks;const Us=n((function(e){return null!=e&&Y(e,$s(e))}));const qs=R(1,We(Array.isArray)?Array.isArray:he(J,ge("Array")));const Bs=Ie(qs,Us);const Ds=R(3,(function(e,t,s){var r=us(e,s),n=us(Is(e),s);if(!Ns(r)&&!Bs(e)){var i=oe(r,n);return Cs(i,t)}})),Ls=()=>({predicates:{...e},namespace:nt}),Vs={toolboxCreator:Ls,visitorOptions:{nodeTypeGetter:Os,exposeEdits:!0}},Ws=(e,t,s={})=>{if(0===t.length)return e;const r=Fs(Vs,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=St(a.map(m({},"visitor")),{...i});a.forEach(Ds(["pre"],[]));const l=js(e,c,i);return a.forEach(Ds(["post"],[])),l};Ws[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Fs(Vs,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=St[Symbol.for("nodejs.util.promisify.custom")],l=js[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(m({},"visitor")),{...i});await Promise.allSettled(a.map(Ds(["pre"],[])));const _=await l(e,u,i);return await Promise.allSettled(a.map(Ds(["post"],[]))),_};const Hs=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return $t(e)&&(e.meta.length>0&&(r.meta=vs(e.meta)),e.attributes.length>0&&(r.attributes=vs(e.attributes))),Ws(r,s,{toolboxCreator:Ls,visitorOptions:{nodeTypeGetter:Os}})},Gs=e=>(t,s={})=>Hs(t,{...s,Type:e});re.Sh.refract=Gs(re.Sh),re.wE.refract=Gs(re.wE),re.Om.refract=Gs(re.Om),re.bd.refract=Gs(re.bd),re.Os.refract=Gs(re.Os),re.kT.refract=Gs(re.kT),re.Ft.refract=Gs(re.Ft),re.sI.refract=Gs(re.sI),Ke.refract=Gs(Ke),Ye.refract=Gs(Ye),et.refract=Gs(et);const zs=class{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}};const Zs=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Kt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof zs&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new Ke(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new et;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new re.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new re.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new re.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new re.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new re.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new re.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new re.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new re.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,r){const n=!e.hasError,i=e.text,o=new Ke(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===r.length){const e=new et;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&ws(t,e)}};class Js{cursor;constructor(e){this.cursor=e}document(){return new zs(this.cursor)}object(){return new zs(this.cursor).setFieldName(this.cursor)}array(){return new zs(this.cursor).setFieldName(this.cursor)}pair(){return new zs(this.cursor)}string(){return new zs(this.cursor).setFieldName(this.cursor)}number(){return new zs(this.cursor).setFieldName(this.cursor)}null(){return new zs(this.cursor).setFieldName(this.cursor)}true(){return new zs(this.cursor).setFieldName(this.cursor)}false(){return new zs(this.cursor).setFieldName(this.cursor)}ERROR(){return new zs(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new zs(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Js(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Js(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Ks=Js,Xs={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...As},Ys=e=>Jt(e)?"ParseResultElement":$t(e)?Os(e):vt(e),Qs=e=>$t(e)||Et(e),er=(e,{sourceMap:t=!1}={})=>{const s=new Zs,r=e.walk(),n=new Ks(r),[i]=Array.from(n);return Ot(i,s,{keyMap:Xs,nodeTypeGetter:Ys,nodePredicate:Qs,state:{sourceMap:t}})};const tr=n((function(e){return u(0,e)}));const sr=class{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:s,startPositionColumn:r,startIndex:n,endPositionRow:i,endPositionColumn:o,endIndex:a}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=s,this.startPositionColumn=r,this.startIndex=n,this.endPositionRow=i,this.endPositionColumn=o,this.endIndex=a}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}};const rr=class extends sr{};const nr=class extends rr{static type="document";get child(){return tr(this.children)}};const ir=class extends sr{static type="parseResult";get rootNode(){return tr(this.children)}};const or=class extends sr{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},ar=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,cr=e=>ar("string",e),lr=e=>ar("false",e),ur=e=>ar("true",e),_r=e=>ar("null",e),mr=e=>ar("number",e),pr=e=>ar("array",e),dr=e=>ar("object",e),hr=e=>ar("property",e),fr=e=>ar("key",e);const gr=class extends rr{static type="object";get properties(){return this.children.filter(hr)}};const yr=class extends rr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>ar("stringContent",e))(e)||(e=>ar("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const br=class extends yr{static type="key"};const wr=class extends rr{static type="property";get key(){return this.children.find(fr)}get value(){return this.children.find((e=>lr(e)||ur(e)||_r(e)||mr(e)||cr(e)||pr(e)||dr(e)))}};const vr=class extends rr{static type="array";get items(){return this.children.filter((e=>lr(e)||ur(e)||_r(e)||mr(e)||cr(e)||pr(e)||dr))}};const Er=class extends rr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const xr=class extends Er{static type="stringContent"};const Sr=class extends Er{static type="number"};const Or=class extends Er{static type="null"};const Pr=class extends Er{static type="true"};const Mr=class extends Er{static type="false"};const Ar=class extends sr{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},jr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};const Tr=class{document={enter:e=>new nr(ws({children:e.children,isMissing:e.isMissing},e)),leave:e=>new ir({children:[e]})};enter(e){if(e instanceof zs&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new or(ws({value:t,isMissing:s},e))}}object(e){return new gr(ws({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:s}=e,r=new br(ws({children:(null==s?void 0:s.children)||[],isMissing:null!=s&&s.isMissing},s));return new wr(ws({children:[r,...t],isMissing:e.isMissing},e))}array(e){return new vr(ws({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new xr({value:JSON.parse(e.text)});return new yr(ws({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new Sr(ws({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new Or(ws({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new Pr(ws({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new Mr(ws({value:t,isMissing:e.isMissing},e))}ERROR(e,t,s,r){const n=new Ar(ws({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new ir({children:[n]}):n}},Rr={[ir.type]:["children"],[nr.type]:["children"],[gr.type]:["children"],[wr.type]:["children"],[vr.type]:["children"],[Ar.type]:["children"],...As},Fr=e=>Jt(e)?"ParseResultElement":$t(e)?Os(e):vt(e),Ir=e=>$t(e)||Et(e);const Cr=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(Kt);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new et;return t._content=e.children,t}object(e){const t=new re.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new re.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new re.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new re.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new re.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new re.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new re.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new re.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new re.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new Ke(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,r){const n=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new Ke(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new et;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&ws(t,e)}},Nr=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Ks(s),[n]=Array.from(r),i=new Tr,o=new Cr,a=Ot(n,i,{keyMap:jr,state:{sourceMap:t}});return Ot(a.rootNode,o,{keyMap:Rr,nodeTypeGetter:Fr,nodePredicate:Ir,state:{sourceMap:t}})},kr=(rt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class $r extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Ur=$r;class qr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const Br=qr;class Dr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Lr=Dr;class Vr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Wr=Vr;class Hr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Gr=Hr;class zr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Zr=zr;class Jr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Kr=Jr;class Xr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new re.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new re.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Xr.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Yr=Xr;class Qr extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const en=Qr;class tn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const sn=tn;class rn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Ut(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Ut(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const nn=rn;class on extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const an=on;class cn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const ln=cn;class un extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const _n=un;class mn extends re.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const pn=mn;class dn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const hn=dn;class fn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new re.bd(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const gn=fn;class yn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new re.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new re.bd(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(yn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const bn=yn;class wn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const vn=wn;class En extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const xn=En;class Sn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const On=Sn;class Pn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new re.bd(!1)}set required(e){this.set("required",e)}}const Mn=Pn;class An extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const jn=An;class Tn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const Rn=Tn;const Fn=class extends mt{};class In extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const Cn=In;class Nn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const kn=Nn;class $n extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const Un=$n;class qn extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const Bn=qn;const Dn=function(){return!0},Ln=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Os(e),Vn={EphemeralObject:["content"],EphemeralArray:["content"],...As},Wn=(e,t,{keyMap:s=Vn,...r}={})=>js(e,t,{keyMap:s,nodeTypeGetter:Ln,nodePredicate:Dn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Wn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Vn,...s}={})=>js[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ln,nodePredicate:Dn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const Hn=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 Gn=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 zn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Gn(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 Hn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Ut(e.href)?e.href.toValue():""}}const Zn=e=>$t(e)?Ut(e)||qt(e)||Dt(e)||Bt(e)?e.toValue():Wn(e,new zn):e,Jn=e=>{const t=e.meta.length>0?vs(e.meta):void 0,s=e.attributes.length>0?vs(e.attributes):void 0;return new e.constructor(void 0,t,s)},Kn=(e,t)=>t.clone&&t.isMergeableElement(e)?Yn(Jn(e),e,t):e,Xn={clone:!0,isMergeableElement:e=>Lt(e)||Vt(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>Kn(e,s))),objectElementMerge:(e,t,s)=>{const r=Lt(e)?Jn(e):Jn(t);return Lt(e)&&e.forEach(((e,t,n)=>{const i=Ss(n);i.value=Kn(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=Zn(n);let a;if(Lt(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=Ss(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Yn;const s=t.customMerge(e,t);return"function"==typeof s?s:Yn})(n,s)(r,t,s)}else a=Ss(i),a.value=Kn(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Yn=(e,t,s)=>{var r,n,i;const o={...Xn,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:Xn.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:Xn.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:Xn.objectElementMerge;const a=Vt(t);if(!(a===Vt(e)))return Kn(t,o);const c=a&&"function"==typeof o.arrayElementMerge?o.arrayElementMerge(e,t,o):o.objectElementMerge(e,t,o);return c.meta=(e=>"function"!=typeof e.customMetaMerge?e=>vs(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vs(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};Yn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new re.Sh:e.reduce(((e,s)=>Yn(e,s,t)),Jn(e[0]))};const Qn=Yn;const ei=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Qn(t.meta,e.meta)),Xt(e)&&ws(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Qn(t.attributes,e.attributes))}};const ti=class extends ei{enter(e){return this.element=vs(e),wt}},si=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},ri=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ri(s,[...t,s])},ni=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ri(e)));for(;s.every((e=>e.length>0));){const e=s.map((e=>e.pop())),r=e[0];if(!e.every((e=>e===r)))break;t=r}return t})(...e))&&void 0!==r?r:Object.prototype,i=Object.create(n),o=ri(n);for(let t of e){let e=ri(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(si(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},ii=e=>e.filter(((t,s)=>e.indexOf(t)==s)),oi=(e,t)=>{const s=t.map((e=>ri(e)));let r=0,n=!0;for(;n;){n=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][r];if(null!=t&&(n=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}r++}},ai=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(oi(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==oi(r,e)||void 0!==t[r],get:(s,r)=>(oi(r,e)||t)[r],set(t,s,r){const n=oi(s,e);if(void 0===n)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return n[s]=r,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce(((e,t)=>t.concat(e.filter((e=>t.indexOf(e)<0)))))}),ci=null,li="copy",ui="copy",_i="deep",mi=new WeakMap,pi=e=>mi.get(e),di=(e,t)=>{var s,r;const n=ii([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=ii([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(r=null==t?void 0:t[o])&&void 0!==r?r:[]]);return i},hi=(e,t)=>{var s,r,n,i;return{property:di(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(r=null==t?void 0:t.property)&&void 0!==r?r:{}),method:di(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},fi=(e,t)=>{var s,r,n,i,o,a;return{class:ii([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(r=null==t?void 0:t.class)&&void 0!==r?r:[]]),static:hi(null!==(n=null==e?void 0:e.static)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:hi(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},gi=new Map,yi=(...e)=>{const t=((...e)=>{var t;const s=new Set,r=new Set([...e]);for(;r.size>0;)for(let e of r){const n=[...ri(e.prototype).map((e=>e.constructor)),...null!==(t=pi(e))&&void 0!==t?t:[]].filter((e=>!s.has(e)));for(let e of n)r.add(e);s.add(e),r.delete(e)}return[...s]})(...e).map((e=>gi.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>fi(e,t)))},bi=e=>{let t=gi.get(e);return t||(t={},gi.set(e,t)),t};function wi(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=ci;if(null!==i){const e=n.map((e=>e[i])).filter((e=>"function"==typeof e)),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};n.push(s)}function o(...t){for(const s of e)si(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===ui?ni(n,o):(a=n,c=o,ai([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===li?ni(e,null,["prototype"]):ai(e,Function.prototype));let l=o;if("none"!==_i){const n="deep"===_i?yi(...e):((...e)=>{const t=e.map((e=>bi(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>fi(e,t)))})(...e);for(let e of null!==(t=null==n?void 0:n.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}vi(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),vi(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,_;return u=l,_=e,mi.set(u,_),l}const vi=(e,t)=>{const s=e.property,r=e.method;if(s)for(let e in s)for(let r of s[e])r(t,e);if(r)for(let e in r)for(let s of r[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Ei=n((function(e){return R(_e(qe,0,Be("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const xi=n((function(e){return!Us(e)}));const Si=i((function(e,t){return e||t}));var Oi=H(R(1,Ie(Ne,i((function(e,t){return Re(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:W(Si)(e,t)}))($e,We))));const Pi=Ei([it,Oi,xi]);const Mi=i((function(e,t){for(var s={},r=0;r<e.length;)e[r]in t&&(s[e[r]]=t[e[r]]),r+=1;return s}));const Ai=class extends ei{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Mi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=us(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(We,["visitors",...e],this.specObj)?us(["visitors",...e],this.specObj):us(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof ti&&(null==r?void 0:r.constructor)===ti?vs(t):(js(t,r,s),r.element)}};const ji=class extends Ai{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Ut(r)&&s.includes(Zn(r))&&!this.ignoredFields.includes(Zn(r))){const s=this.toRefractedElement([...t,"fixedFields",Zn(r)],e),i=new re.Pr(vs(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Zn(r))||this.element.content.push(vs(n))})),this.copyMetaAndAttributes(e,this.element),wt}};const Ti=class{parent;constructor({parent:e}){this.parent=e}},Ri=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cn||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Fi=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kn||e(r)&&t("JSONReference",r)&&s("object",r))),Ii=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Un||e(r)&&t("media",r)&&s("object",r))),Ci=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bn||e(r)&&t("linkDescription",r)&&s("object",r)));class Ni extends(wi(ji,Ti,ti)){constructor(e){super(e),this.element=new Cn,this.specPath=Q(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,ji.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(te(this.parent)&&!Ut(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Ri(this.parent)&&!Ut(e.get("$schema"))){const e=a(Zn(this.parent.meta.get("inheritedDialectIdentifier")),Zn(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?vs(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new re.wE,r=Zn(e.get(t));Pi(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const ki=Ni,$i=e=>Lt(e)&&e.hasKey("$ref");class Ui extends(wi(Ai,Ti,ti)){ObjectElement(e){const t=$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),wt}ArrayElement(e){return this.element=new re.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const qi=Ui;const Bi=class extends ti{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Di=function(){return!1};const Li=class extends Ai{specPath;ignoredFields;fieldPatternPredicate=Di;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(!this.ignoredFields.includes(Zn(t))&&this.fieldPatternPredicate(Zn(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new re.Pr(vs(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Zn(t))||this.element.content.push(vs(s))})),this.copyMetaAndAttributes(e,this.element),wt}};const Vi=class extends Li{constructor(e){super(e),this.fieldPatternPredicate=Pi}};class Wi extends(wi(Vi,Ti,ti)){constructor(e){super(e),this.element=new re.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Hi=Wi;class Gi extends(wi(Vi,Ti,ti)){constructor(e){super(e),this.element=new re.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const zi=Gi;class Zi extends(wi(Vi,Ti,ti)){constructor(e){super(e),this.element=new re.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ji=Zi;const Ki=class extends ti{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const Xi=class extends ti{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 Yi extends(wi(Ai,Ti,ti)){constructor(e){super(e),this.element=new re.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const Qi=Yi;class eo extends(wi(Ai,Ti,ti)){constructor(e){super(e),this.element=new re.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const to=eo;class so extends(wi(Ai,Ti,ti)){constructor(e){super(e),this.element=new re.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const ro=so;class no extends(wi(Vi,Ti,ti)){constructor(e){super(e),this.element=new re.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>$i(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const io=no;class oo extends(wi(Ai,Ti,ti)){constructor(e){super(e),this.element=new re.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),wt}}const ao=oo;class co extends(wi(ji,ti)){constructor(e){super(e),this.element=new kn,this.specPath=Q(["document","objects","JSONReference"])}ObjectElement(e){const t=ji.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const lo=co;const uo=class extends ti{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const _o=o((function(e,t,s){return R(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const mo=n((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var po=i((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ho=po;const fo=n(Pt);const go=H(ns);const yo=Ie(qs,xi);function bo(e){return function(e){if(Array.isArray(e))return wo(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 wo(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?wo(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 wo(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,r=Array(t);s<t;s++)r[s]=e[s];return r}var vo=he(ho(mo((function(e,t){return e.length>t.length}))),tr,_("length")),Eo=_s((function(e,t,s){var r=s.apply(void 0,bo(e));return go(r)?fo(r):t}));const xo=_o(yo,(function(e){var t=vo(e);return R(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return _e(Eo(s),void 0,e)}))}),ee);const So=class extends Ai{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>_o(e,Q(t),ee))),s=xo(t)(e);return this.element=this.toRefractedElement(s,e),wt}};const Oo=class extends So{constructor(e){super(e),this.alternator=[{predicate:$i,specPath:["document","objects","JSONReference"]},{predicate:Dn,specPath:["document","objects","JSONSchema"]}]}};class Po extends(wi(ji,ti)){constructor(e){super(e),this.element=new Un,this.specPath=Q(["document","objects","Media"])}}const Mo=Po;class Ao extends(wi(ji,ti)){constructor(e){super(e),this.element=new Bn,this.specPath=Q(["document","objects","LinkDescription"])}}const jo={visitors:{value:ti,JSONSchemaOrJSONReferenceVisitor:Oo,document:{objects:{JSONSchema:{$visitor:ki,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:Oo,items:qi,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Bi,properties:Hi,additionalProperties:Oo,patternProperties:zi,dependencies:Ji,enum:Ki,type:Xi,allOf:Qi,anyOf:to,oneOf:ro,not:Oo,definitions:io,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ao,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:lo,fixedFields:{$ref:uo}},Media:{$visitor:Mo,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Ao,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Oo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Oo}}}}}},To=e=>{if($t(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ro={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...As},Fo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Cn),t.register("jSONReference",kn),t.register("media",Un),t.register("linkDescription",Bn),t}},Io=()=>{const e=rt(Fo);return{predicates:{...t,isStringElement:Ut},namespace:e}},Co=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=jo}={})=>{const n=(0,re.e)(e),i=bs(r),o=new(us(t,i))({specObj:i});return js(n,o),Ws(o.element,s,{toolboxCreator:Io,visitorOptions:{keyMap:Ro,nodeTypeGetter:To}})},No=e=>(t,s={})=>Co(t,{specPath:e,...s});Cn.refract=No(["visitors","document","objects","JSONSchema","$visitor"]),kn.refract=No(["visitors","document","objects","JSONReference","$visitor"]),Un.refract=No(["visitors","document","objects","Media","$visitor"]),Bn.refract=No(["visitors","document","objects","LinkDescription","$visitor"]);const ko=class extends Cn{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Fn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Fn("idProp setter in Schema class is not not supported.")}get $schema(){throw new Fn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Fn("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Fn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Fn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Fn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Fn("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Fn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Fn("definitions setter in Schema class is not not supported.")}get base(){throw new Fn("base getter in Schema class is not not supported.")}set base(e){throw new Fn("base setter in Schema class is not not supported.")}get links(){throw new Fn("links getter in Schema class is not not supported.")}set links(e){throw new Fn("links setter in Schema class is not not supported.")}get media(){throw new Fn("media getter in Schema class is not not supported.")}set media(e){throw new Fn("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class $o extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Uo=$o;class qo extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Bo=qo;class Do extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Lo=Do;class Vo extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Wo=Vo;class Ho extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Go=Ho;class zo extends re.Sh{constructor(e,t,s){super(e,t,s),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Zo=zo;const Jo=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=Qn(t.meta,e.meta)),Xt(e)&&ws(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=Qn(t.attributes,e.attributes))}};const Ko=class extends Jo{enter(e){return this.element=vs(e),wt}};const Xo=class extends Jo{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:r,...n}){super({...n}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=r,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Mi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=us(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Te(We,["visitors",...e],this.specObj)?us(["visitors",...e],this.specObj):us(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const r=this.retrieveVisitorInstance(e,s);return r instanceof Ko&&(null==r?void 0:r.constructor)===Ko?vs(t):(js(t,r,s),r.element)}};var Yo=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=O,e.prototype["@@transducer/result"]=P,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Pt(s):s},e}();function Qo(e){return function(t){return new Yo(e,t)}}const ea=i(x(["take"],Qo,(function(e,t){return pe(0,e<0?1/0:e,t)})));const ta=i((function(e,t){return Y(ea(e.length,t),e)})),sa=e=>Lt(e)&&e.hasKey("$ref"),ra=Lt,na=Lt,ia=e=>Ut(e.key)&&ta("x-",Zn(e.key));const oa=class extends Xo{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=ia;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Ut(r)&&s.includes(Zn(r))&&!this.ignoredFields.includes(Zn(r))){const s=this.toRefractedElement([...t,"fixedFields",Zn(r)],e),i=new re.Pr(vs(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(Zn(r))||this.element.content.push(vs(n))})),this.copyMetaAndAttributes(e,this.element),wt}};class aa extends(wi(oa,Ko)){constructor(e){super(e),this.element=new hn,this.specPath=Q(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return oa.prototype.ObjectElement.call(this,e)}}const ca=aa;class la extends(wi(Xo,Ko)){StringElement(e){const t=new pn(Zn(e));return this.copyMetaAndAttributes(e,t),this.element=t,wt}}const ua=la;const _a=class extends Xo{MemberElement(e){return this.element=vs(e),this.element.classes.push("specification-extension"),wt}};class ma extends(wi(oa,Ko)){constructor(e){super(e),this.element=new en,this.specPath=Q(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const pa=ma;const da=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class ha extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Lr,this.specPath=Q(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const fa=ha;class ga extends(wi(oa,Ko)){constructor(e){super(e),this.element=new sn,this.specPath=Q(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const ya=ga;class ba extends(wi(oa,Ko)){constructor(e){super(e),this.element=new nn,this.specPath=Q(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return(Ut(this.element.operationId)||Ut(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const wa=ba;const va=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ea=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const xa=class extends Xo{specPath;ignoredFields;fieldPatternPredicate=Di;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=ia;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:r,specificationExtensionPredicate:n,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof r&&(this.canSupportSpecificationExtensions=r),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){return e.forEach(((e,t,s)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(Zn(t))&&this.fieldPatternPredicate(Zn(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new re.Pr(vs(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Zn(t))||this.element.content.push(vs(s))})),this.copyMetaAndAttributes(e,this.element),wt}};const Sa=class extends xa{constructor(e){super(e),this.fieldPatternPredicate=Pi}};class Oa extends re.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Oa.primaryClass)}}const Pa=Oa;class Ma extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Pa,this.specPath=Q(["value"])}}const Aa=Ma;class ja extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Lo,this.specPath=Q(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Ta=ja;const Ra=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Fa extends re.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Fa.primaryClass)}}const Ia=Fa;class Ca extends(wi(Xo,Ko)){constructor(e){super(e),this.element=new Ia}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const Na=Ca;class ka extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Wo,this.specPath=Q(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const $a=ka;class Ua extends re.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Ua.primaryClass)}}const qa=Ua;class Ba extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new qa,this.specPath=Q(["document","objects","ServerVariable"])}}const Da=Ba;class La extends(wi(oa,Ko)){constructor(e){super(e),this.element=new an,this.specPath=Q(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Va=La;const Wa=class extends Xo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>_o(e,Q(t),ee))),s=xo(t)(e);return this.element=this.toRefractedElement(s,e),wt}},Ha=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ur||e(r)&&t("callback",r)&&s("object",r))),Ga=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Br||e(r)&&t("components",r)&&s("object",r))),za=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lr||e(r)&&t("contact",r)&&s("object",r))),Za=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zr||e(r)&&t("example",r)&&s("object",r))),Ja=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kr||e(r)&&t("externalDocumentation",r)&&s("object",r))),Ka=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yr||e(r)&&t("header",r)&&s("object",r))),Xa=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof en||e(r)&&t("info",r)&&s("object",r))),Ya=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sn||e(r)&&t("license",r)&&s("object",r))),Qa=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nn||e(r)&&t("link",r)&&s("object",r))),ec=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pn||e(r)&&t("openapi",r)&&s("string",r))),tc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof hn||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),sc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gn||e(r)&&t("operation",r)&&s("object",r))),rc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bn||e(r)&&t("parameter",r)&&s("object",r))),nc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vn||e(r)&&t("pathItem",r)&&s("object",r))),ic=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xn||e(r)&&t("paths",r)&&s("object",r))),oc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof On||e(r)&&t("reference",r)&&s("object",r))),ac=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mn||e(r)&&t("requestBody",r)&&s("object",r))),cc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jn||e(r)&&t("response",r)&&s("object",r))),lc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rn||e(r)&&t("responses",r)&&s("object",r))),uc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ko||e(r)&&t("schema",r)&&s("object",r))),_c=e=>Dt(e)&&e.classes.includes("boolean-json-schema"),mc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uo||e(r)&&t("securityRequirement",r)&&s("object",r))),pc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bo||e(r)&&t("securityScheme",r)&&s("object",r))),dc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Lo||e(r)&&t("server",r)&&s("object",r))),hc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wo||e(r)&&t("serverVariable",r)&&s("object",r))),fc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof an||e(r)&&t("mediaType",r)&&s("object",r))),gc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Ia||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),yc=kt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wr||e(r)&&t("discriminator",r)&&s("object",r)));class bc extends(wi(Wa,Ko)){constructor(e){super(e),this.alternator=[{predicate:sa,specPath:["document","objects","Reference"]},{predicate:Dn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Wa.prototype.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const wc=bc;class vc extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new re.Sh,this.element.classes.push("examples"),this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Ec=vc;class xc extends re.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(xc.primaryClass),this.classes.push("examples")}}const Sc=xc;const Oc=class extends Ec{constructor(e){super(e),this.element=new Sc}};class Pc extends re.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Pc.primaryClass)}}const Mc=Pc;class Ac extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Mc,this.specPath=Q(["document","objects","Encoding"])}}const jc=Ac;class Tc extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Uo,this.specPath=Q(["value"])}}const Rc=Tc;class Fc extends re.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Fc.primaryClass)}}const Ic=Fc;class Cc extends(wi(Xo,Ko)){constructor(e){super(e),this.element=new Ic}ArrayElement(e){return e.forEach((e=>{if(Lt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(vs(e))})),this.copyMetaAndAttributes(e,this.element),wt}}const Nc=Cc;class kc extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Br,this.specPath=Q(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const $c=kc;class Uc extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Go,this.specPath=Q(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const qc=Uc;class Bc extends(wi(oa,Ko)){constructor(e){super(e),this.element=new On,this.specPath=Q(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Dc=Bc;const Lc=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Vc extends(wi(oa,Ko)){constructor(e){super(e),this.element=new bn,this.specPath=Q(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return Lt(this.element.contentProp)&&this.element.contentProp.filter(fc).forEach(((e,t)=>{e.setMetaProperty("media-type",Zn(t))})),t}}const Wc=Vc;class Hc extends(wi(Wa,Ko)){constructor(e){super(e),this.alternator=[{predicate:sa,specPath:["document","objects","Reference"]},{predicate:Dn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Wa.prototype.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Gc=Hc;class zc extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Yr,this.specPath=Q(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Zc=zc;class Jc extends(wi(Wa,Ko)){constructor(e){super(e),this.alternator=[{predicate:sa,specPath:["document","objects","Reference"]},{predicate:Dn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Wa.prototype.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Kc=Jc;class Xc extends re.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass),this.classes.push("examples")}}const Yc=Xc;const Qc=class extends Ec{constructor(e){super(e),this.element=new Yc}};class el extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new re.Sh,this.element.classes.push("content"),this.specPath=Q(["document","objects","MediaType"])}}const tl=el;class sl extends re.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(sl.primaryClass),this.classes.push("content")}}const rl=sl;const nl=class extends tl{constructor(e){super(e),this.element=new rl}};class il extends(wi(oa,Ko)){constructor(e){super(e),this.element=new ko,this.specPath=Q(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ol=il,al=jo.visitors.document.objects.JSONSchema.fixedFields.allOf;const cl=class extends al{ArrayElement(e){const t=al.prototype.ArrayElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},ll=jo.visitors.document.objects.JSONSchema.fixedFields.anyOf;const ul=class extends ll{ArrayElement(e){const t=ll.prototype.ArrayElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},_l=jo.visitors.document.objects.JSONSchema.fixedFields.oneOf;const ml=class extends _l{ArrayElement(e){const t=_l.prototype.ArrayElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},pl=jo.visitors.document.objects.JSONSchema.fixedFields.items;const dl=class extends pl{ObjectElement(e){const t=pl.prototype.ObjectElement.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},hl=jo.visitors.document.objects.JSONSchema.fixedFields.properties;const fl=class extends hl{ObjectElement(e){const t=hl.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},gl=jo.visitors.document.objects.JSONSchema.fixedFields.type;const yl=class extends gl{ArrayElement(e){return this.enter(e)}},bl=jo.visitors.JSONSchemaOrJSONReferenceVisitor;const wl=class extends bl{ObjectElement(e){const t=bl.prototype.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class vl extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Wr,this.specPath=Q(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const El=vl;class xl extends re.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(xl.primaryClass)}}const Sl=xl;class Ol extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Sl,this.specPath=Q(["value"])}}const Pl=Ol;class Ml extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Zo,this.specPath=Q(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Al=Ml;class jl extends re.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(jl.primaryClass),this.classes.push("examples")}}const Tl=jl;const Rl=class extends Ec{constructor(e){super(e),this.element=new Tl}};class Fl extends re.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Fl.primaryClass),this.classes.push("content")}}const Il=Fl;const Cl=class extends tl{constructor(e){super(e),this.element=new Il}};class Nl extends re.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Nl.primaryClass)}}const kl=Nl;class $l extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new kl,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Ul=$l;class ql extends re.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(ql.primaryClass)}}const Bl=ql;class Dl extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Bl,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(cc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Zn(t))})),t}}const Ll=Dl;class Vl extends re.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Vl.primaryClass),this.classes.push("parameters")}}const Wl=Vl;class Hl extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Wl,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Gl=Hl;class zl extends re.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(zl.primaryClass),this.classes.push("examples")}}const Zl=zl;class Jl extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Zl,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Kl=Jl;class Xl extends re.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(Xl.primaryClass)}}const Yl=Xl;class Ql extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Yl,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const eu=Ql;class tu extends re.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(tu.primaryClass)}}const su=tu;class ru extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new su,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Ka).forEach(((e,t)=>{e.setMetaProperty("header-name",Zn(t))})),t}}const nu=ru;class iu extends re.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(iu.primaryClass)}}const ou=iu;class au extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new ou,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const cu=au;class lu extends re.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(lu.primaryClass)}}const uu=lu;class _u extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new uu,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const mu=_u;class pu extends re.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(pu.primaryClass)}}const du=pu;class hu extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new du,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const fu=hu;class gu extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Zr,this.specPath=Q(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return Ut(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const yu=gu;const bu=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class wu extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Kr,this.specPath=Q(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const vu=wu;class Eu extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Gr,this.specPath=Q(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return Lt(this.element.headers)&&this.element.headers.filter(Ka).forEach(((e,t)=>{e.setMetaProperty("header-name",Zn(t))})),t}}const xu=Eu;class Su extends re.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Su.primaryClass)}}const Ou=Su;class Pu extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Ou,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ka(e))return;const s=Zn(t);e.setMetaProperty("headerName",s)})),t}}const Mu=Pu;class Au extends(wi(xa,Ko)){constructor(e){super(e),this.element=new xn,this.specPath=Q(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Dn}ObjectElement(e){const t=xa.prototype.ObjectElement.call(this,e);return this.element.filter(nc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",vs(t))})),t}}const ju=Au;class Tu extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Mn,this.specPath=Q(["document","objects","RequestBody"])}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return Lt(this.element.contentProp)&&this.element.contentProp.filter(fc).forEach(((e,t)=>{e.setMetaProperty("media-type",Zn(t))})),t}}const Ru=Tu;class Fu extends re.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Fu.primaryClass),this.classes.push("content")}}const Iu=Fu;const Cu=class extends tl{constructor(e){super(e),this.element=new Iu}};class Nu extends(wi(xa,Ko)){constructor(e){super(e),this.element=new Ur,this.specPath=Q(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(nc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Zn(t))})),t}}const ku=Nu;class $u extends(wi(oa,Ko)){constructor(e){super(e),this.element=new jn,this.specPath=Q(["document","objects","Response"])}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return Lt(this.element.contentProp)&&this.element.contentProp.filter(fc).forEach(((e,t)=>{e.setMetaProperty("media-type",Zn(t))})),Lt(this.element.headers)&&this.element.headers.filter(Ka).forEach(((e,t)=>{e.setMetaProperty("header-name",Zn(t))})),t}}const Uu=$u;class qu extends re.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(qu.primaryClass)}}const Bu=qu;class Du extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new Bu,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Ka(e))return;const s=Zn(t);e.setMetaProperty("header-name",s)})),t}}const Lu=Du;class Vu extends re.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Vu.primaryClass),this.classes.push("content")}}const Wu=Vu;const Hu=class extends tl{constructor(e){super(e),this.element=new Wu}};class Gu extends re.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(Gu.primaryClass)}}const zu=Gu;class Zu extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new zu,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Ju=Zu;function Ku(e){return"[object Number]"===Object.prototype.toString.call(e)}const Xu=i((function(e,t){if(!Ku(e)||!Ku(t))throw new TypeError("Both arguments to range must be numbers");for(var s=Array(e<t?t-e:0),r=e<0?t+Math.abs(e):t-e,n=0;n<r;)s[n]=n+e,n+=1;return s}));function Yu(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!ye(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!ye(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const Qu=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Yu(e,!0,this)},e.prototype.has=function(e){return Yu(e,!1,this)},e}();const e_=i((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new Qu,a=0;a<i;a+=1)o.add(t[a]);for(;r<n;)o.add(e[r])&&(s[s.length]=e[r]),r+=1;return s}));class t_ extends(wi(oa,xa)){specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const{specPath:t,ignoredFields:s}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...s,...e_(e.keys(),t)],oa.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,xa.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return wt}}const s_=t_;class r_ extends(wi(s_,Ko)){constructor(e){super(e),this.element=new Rn,this.specPathFixedFields=Q(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>sa(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Xu(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=s_.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(cc).forEach(((e,t)=>{const s=vs(t);this.fieldPatternPredicate(Zn(s))&&e.setMetaProperty("http-status-code",s)})),t}}const n_=r_;class i_ extends(wi(Wa,Ko)){constructor(e){super(e),this.alternator=[{predicate:sa,specPath:["document","objects","Reference"]},{predicate:Dn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Wa.prototype.enter.call(this,e);return oc(this.element)?this.element.setMetaProperty("referenced-element","response"):cc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const o_=i_;class a_ extends(wi(oa,Ko)){constructor(e){super(e),this.element=new gn,this.specPath=Q(["document","objects","Operation"])}}const c_=a_;class l_ extends re.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(l_.primaryClass)}}const u_=l_;const __=class extends Ko{constructor(e){super(e),this.element=new u_}ArrayElement(e){return this.element=this.element.concat(vs(e)),wt}};class m_ extends re.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(m_.primaryClass),this.classes.push("parameters")}}const p_=m_;class d_ extends(wi(Xo,Ko)){constructor(e){super(e),this.element=new re.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=sa(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);oc(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const h_=d_;const f_=class extends h_{constructor(e){super(e),this.element=new p_}};const g_=class extends Wa{constructor(e){super(e),this.alternator=[{predicate:sa,specPath:["document","objects","Reference"]},{predicate:Dn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Wa.prototype.enter.call(this,e);return oc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class y_ extends re.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(y_.primaryClass)}}const b_=y_;class w_ extends(wi(Sa,Ko)){specPath;constructor(e){super(e),this.element=new b_,this.specPath=e=>sa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Sa.prototype.ObjectElement.call(this,e);return this.element.filter(oc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const v_=w_;class E_ extends re.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(E_.primaryClass),this.classes.push("security")}}const x_=E_;class S_ extends(wi(Xo,Ko)){constructor(e){super(e),this.element=new x_}ArrayElement(e){return e.forEach((e=>{const t=Lt(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const O_=S_;class P_ extends re.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(P_.primaryClass),this.classes.push("servers")}}const M_=P_;const A_=class extends Na{constructor(e){super(e),this.element=new M_}};class j_ extends(wi(oa,Ko)){constructor(e){super(e),this.element=new vn,this.specPath=Q(["document","objects","PathItem"])}ObjectElement(e){const t=oa.prototype.ObjectElement.call(this,e);return this.element.filter(sc).forEach(((e,t)=>{const s=vs(t);s.content=Zn(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const T_=j_;const R_=class extends Ko{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class F_ extends re.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(F_.primaryClass),this.classes.push("servers")}}const I_=F_;const C_=class extends Na{constructor(e){super(e),this.element=new I_}};class N_ extends re.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(N_.primaryClass),this.classes.push("parameters")}}const k_=N_;const $_=class extends h_{constructor(e){super(e),this.element=new k_}};class U_ extends(wi(oa,Ko)){constructor(e){super(e),this.element=new Bo,this.specPath=Q(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const q_=U_;class B_ extends(wi(oa,Ko)){constructor(e){super(e),this.element=new _n,this.specPath=Q(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const D_=B_;class L_ extends(wi(oa,Ko)){constructor(e){super(e),this.element=new ln,this.specPath=Q(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const V_=L_;class W_ extends re.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(W_.primaryClass)}}const H_=W_;class G_ extends(wi(Sa,Ko)){constructor(e){super(e),this.element=new H_,this.specPath=Q(["value"])}}const z_=G_;class Z_ extends re.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Z_.primaryClass)}}const J_=Z_;class K_ extends(wi(Xo,Ko)){constructor(e){super(e),this.element=new J_}ArrayElement(e){return e.forEach((e=>{const t=na(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),wt}}const X_=K_,{fixedFields:Y_}=jo.visitors.document.objects.JSONSchema,Q_={visitors:{value:Ko,document:{objects:{OpenApi:{$visitor:ca,fixedFields:{openapi:ua,info:{$ref:"#/visitors/document/objects/Info"},servers:Na,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Nc,tags:X_,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:pa,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:da}},Contact:{$visitor:fa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:ya,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Ta,fixedFields:{url:Ra,description:{$ref:"#/visitors/value"},variables:Da}},ServerVariable:{$visitor:$a,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:$c,fixedFields:{schemas:Ul,responses:Ll,parameters:Gl,examples:Kl,requestBodies:eu,headers:nu,securitySchemes:cu,links:mu,callbacks:fu}},Paths:{$visitor:ju},PathItem:{$visitor:T_,fixedFields:{$ref:R_,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:C_,parameters:$_}},Operation:{$visitor:c_,fixedFields:{tags:__,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:f_,requestBody:g_,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:v_,deprecated:{$ref:"#/visitors/value"},security:O_,servers:A_}},ExternalDocumentation:{$visitor:vu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Wc,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Gc,example:{$ref:"#/visitors/value"},examples:Rl,content:Cl}},RequestBody:{$visitor:Ru,fixedFields:{description:{$ref:"#/visitors/value"},content:Cu,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Va,fixedFields:{schema:wc,example:{$ref:"#/visitors/value"},examples:Oc,encoding:jc}},Encoding:{$visitor:xu,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Mu,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:n_,fixedFields:{default:o_}},Response:{$visitor:Uu,fixedFields:{description:{$ref:"#/visitors/value"},headers:Lu,content:Hu,links:Ju}},Callback:{$visitor:ku},Example:{$visitor:yu,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:bu}},Link:{$visitor:wa,fixedFields:{operationRef:va,operationId:Ea,parameters:Aa,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Zc,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Kc,example:{$ref:"#/visitors/value"},examples:Qc,content:nl}},Tag:{$visitor:qc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Dc,fixedFields:{$ref:Lc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ol,fixedFields:{title:Y_.title,multipleOf:Y_.multipleOf,maximum:Y_.maximum,exclusiveMaximum:Y_.exclusiveMaximum,minimum:Y_.minimum,exclusiveMinimum:Y_.exclusiveMinimum,maxLength:Y_.maxLength,minLength:Y_.minLength,pattern:Y_.pattern,maxItems:Y_.maxItems,minItems:Y_.minItems,uniqueItems:Y_.uniqueItems,maxProperties:Y_.maxProperties,minProperties:Y_.minProperties,required:Y_.required,enum:Y_.enum,type:yl,allOf:cl,anyOf:ul,oneOf:ml,not:wl,items:dl,properties:fl,additionalProperties:wl,description:Y_.description,format:Y_.format,default:Y_.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:El,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Pl}},XML:{$visitor:Al,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:q_,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:D_,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:V_,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:z_}},SecurityRequirement:{$visitor:Rc}},extension:{$visitor:_a}}}},em=e=>{if($t(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},tm={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...As},sm={namespace:e=>{const{base:t}=e;return t.register("callback",Ur),t.register("components",Br),t.register("contact",Lr),t.register("discriminator",Wr),t.register("encoding",Gr),t.register("example",Zr),t.register("externalDocumentation",Kr),t.register("header",Yr),t.register("info",en),t.register("license",sn),t.register("link",nn),t.register("mediaType",an),t.register("oAuthFlow",ln),t.register("oAuthFlows",_n),t.register("openapi",pn),t.register("openApi3_0",hn),t.register("operation",gn),t.register("parameter",bn),t.register("pathItem",vn),t.register("paths",xn),t.register("reference",On),t.register("requestBody",Mn),t.register("response",jn),t.register("responses",Rn),t.register("schema",ko),t.register("securityRequirement",Uo),t.register("securityScheme",Bo),t.register("server",Lo),t.register("serverVariable",Wo),t.register("tag",Go),t.register("xml",Zo),t}},rm=()=>{const e=rt(sm);return{predicates:{...s,isElement:$t,isStringElement:Ut,isArrayElement:Vt,isObjectElement:Lt,isMemberElement:Wt,includesClasses:Qt,hasElementSourceMap:Xt},namespace:e}},nm=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,re.e)(e),n=bs(Q_),i=new(us(t,n))({specObj:n});return js(r,i),Ws(i.element,s,{toolboxCreator:rm,visitorOptions:{keyMap:tm,nodeTypeGetter:em}})},im=e=>(t,s={})=>nm(t,{specPath:e,...s});Ur.refract=im(["visitors","document","objects","Callback","$visitor"]),Br.refract=im(["visitors","document","objects","Components","$visitor"]),Lr.refract=im(["visitors","document","objects","Contact","$visitor"]),Zr.refract=im(["visitors","document","objects","Example","$visitor"]),Wr.refract=im(["visitors","document","objects","Discriminator","$visitor"]),Gr.refract=im(["visitors","document","objects","Encoding","$visitor"]),Kr.refract=im(["visitors","document","objects","ExternalDocumentation","$visitor"]),Yr.refract=im(["visitors","document","objects","Header","$visitor"]),en.refract=im(["visitors","document","objects","Info","$visitor"]),sn.refract=im(["visitors","document","objects","License","$visitor"]),nn.refract=im(["visitors","document","objects","Link","$visitor"]),an.refract=im(["visitors","document","objects","MediaType","$visitor"]),ln.refract=im(["visitors","document","objects","OAuthFlow","$visitor"]),_n.refract=im(["visitors","document","objects","OAuthFlows","$visitor"]),pn.refract=im(["visitors","document","objects","OpenApi","fixedFields","openapi"]),hn.refract=im(["visitors","document","objects","OpenApi","$visitor"]),gn.refract=im(["visitors","document","objects","Operation","$visitor"]),bn.refract=im(["visitors","document","objects","Parameter","$visitor"]),vn.refract=im(["visitors","document","objects","PathItem","$visitor"]),xn.refract=im(["visitors","document","objects","Paths","$visitor"]),On.refract=im(["visitors","document","objects","Reference","$visitor"]),Mn.refract=im(["visitors","document","objects","RequestBody","$visitor"]),jn.refract=im(["visitors","document","objects","Response","$visitor"]),Rn.refract=im(["visitors","document","objects","Responses","$visitor"]),ko.refract=im(["visitors","document","objects","Schema","$visitor"]),Uo.refract=im(["visitors","document","objects","SecurityRequirement","$visitor"]),Bo.refract=im(["visitors","document","objects","SecurityScheme","$visitor"]),Lo.refract=im(["visitors","document","objects","Server","$visitor"]),Wo.refract=im(["visitors","document","objects","ServerVariable","$visitor"]),Go.refract=im(["visitors","document","objects","Tag","$visitor"]),Zo.refract=im(["visitors","document","objects","XML","$visitor"]);const om=n((function(e){return u(-1,e)}));const am=class extends Fn{};const cm=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new am("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new am("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new am("latest method in MediaTypes class is not yet implemented.")}};class lm extends cm{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.4",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return om(this.filterByFormat(e))}}const um=new lm("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3","application/vnd.oai.openapi;version=3.0.4","application/vnd.oai.openapi+json;version=3.0.4","application/vnd.oai.openapi+yaml;version=3.0.4"),_m=new lm(...um.filterByFormat("generic"),...um.filterByFormat("json")),mm=/"openapi"\s*:\s*"(?<version_json>3\.0\.(?:[1-9]\d*|0))"/,pm=async e=>mm.test(e)&&await(async e=>{if(!kr.test(e))return!1;try{const t=await gt(e),s="ERROR"!==t.rootNode.type;return t.delete(),s}catch{return!1}})(e),dm=async(e,t={})=>{const s=m({},"refractorOpts",t),r=d(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const r=await gt(e);let n;return n="indirect"===s?Nr(r,{sourceMap:t}):er(r,{sourceMap:t}),r.delete(),n})(e,r),{result:i}=n;if(se(i)){const e=hn.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},hm=rt(sm)})(),__webpack_exports__})()));
1
+ !function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports,require("fs"),require("path")):"function"==typeof define&&define.amd?define(["exports","fs","path"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).apidomParserAdapterOpenapiJson30={},e.fs,e.path)}(this,(function(exports,require$$0,require$$1){"use strict";var F=function(){return!1},T=function(){return!0};function _isPlaceholder(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function _curry1(e){return function t(r){return 0===arguments.length||_isPlaceholder(r)?t:e.apply(this,arguments)}}function _curry2(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return _isPlaceholder(r)?t:_curry1((function(t){return e(r,t)}));default:return _isPlaceholder(r)&&_isPlaceholder(n)?t:_isPlaceholder(r)?_curry1((function(t){return e(t,n)})):_isPlaceholder(n)?_curry1((function(t){return e(r,t)})):e(r,n)}}}function _concat(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}function _arity(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,a){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,a,o){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,a,o,u){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,a,o,u,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,a,o,u,l,c){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _curryN(e,t,r){return function(){for(var n=[],s=0,i=e,a=0,o=!1;a<t.length||s<arguments.length;){var u;a<t.length&&(!_isPlaceholder(t[a])||s>=arguments.length)?u=t[a]:(u=arguments[s],s+=1),n[a]=u,_isPlaceholder(u)?o=!0:i-=1,a+=1}return!o&&i<=0?r.apply(this,n):_arity(Math.max(0,i),_curryN(e,n,r))}}var curryN=_curry2((function(e,t){return 1===e?_curry1(t):_arity(e,_curryN(e,[],t))}));function _curry3(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return _isPlaceholder(r)?t:_curry2((function(t,n){return e(r,t,n)}));case 2:return _isPlaceholder(r)&&_isPlaceholder(n)?t:_isPlaceholder(r)?_curry2((function(t,r){return e(t,n,r)})):_isPlaceholder(n)?_curry2((function(t,n){return e(r,t,n)})):_curry1((function(t){return e(r,n,t)}));default:return _isPlaceholder(r)&&_isPlaceholder(n)&&_isPlaceholder(s)?t:_isPlaceholder(r)&&_isPlaceholder(n)?_curry2((function(t,r){return e(t,r,s)})):_isPlaceholder(r)&&_isPlaceholder(s)?_curry2((function(t,r){return e(t,n,r)})):_isPlaceholder(n)&&_isPlaceholder(s)?_curry2((function(t,n){return e(r,t,n)})):_isPlaceholder(r)?_curry1((function(t){return e(t,n,s)})):_isPlaceholder(n)?_curry1((function(t){return e(r,t,s)})):_isPlaceholder(s)?_curry1((function(t){return e(r,n,t)})):e(r,n,s)}}}const _isArray=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function _isTransformer(e){return null!=e&&"function"==typeof e["@@transducer/step"]}function _dispatchable(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!_isArray(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(_isTransformer(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function _reduced(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const _xfBase={init:function(){return this.xf["@@transducer/init"]()},result:function(e){return this.xf["@@transducer/result"](e)}};var XAll=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=_xfBase.init,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=_reduced(this.xf["@@transducer/step"](e,!1))),e},e}();function _xall(e){return function(t){return new XAll(e,t)}}var all=_curry2(_dispatchable(["all"],_xall,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function _arrayFromIterator(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function _includesWith(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function _functionName(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}function _has(e,t){return Object.prototype.hasOwnProperty.call(t,e)}function _objectIs$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}const _objectIs="function"==typeof Object.is?Object.is:_objectIs$1;var toString$2=Object.prototype.toString,_isArguments=function(){return"[object Arguments]"===toString$2.call(arguments)?function(e){return"[object Arguments]"===toString$2.call(e)}:function(e){return _has("callee",e)}}(),hasEnumBug=!{toString:null}.propertyIsEnumerable("toString"),nonEnumerableProps=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],hasArgsEnumBug=function(){return arguments.propertyIsEnumerable("length")}(),contains=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},keys="function"!=typeof Object.keys||hasArgsEnumBug?_curry1((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=hasArgsEnumBug&&_isArguments(e);for(t in e)!_has(t,e)||s&&"length"===t||(n[n.length]=t);if(hasEnumBug)for(r=nonEnumerableProps.length-1;r>=0;)_has(t=nonEnumerableProps[r],e)&&!contains(n,t)&&(n[n.length]=t),r-=1;return n})):_curry1((function(e){return Object(e)!==e?[]:Object.keys(e)})),type=_curry1((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function _uniqContentEquals(e,t,r,n){var s=_arrayFromIterator(e);function i(e,t){return _equals(e,t,r.slice(),n.slice())}return!_includesWith((function(e,t){return!_includesWith(i,t,e)}),_arrayFromIterator(t),s)}function _equals(e,t,r,n){if(_objectIs(e,t))return!0;var s=type(e);if(s!==type(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(s){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===_functionName(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!_objectIs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!_objectIs(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 i=r.length-1;i>=0;){if(r[i]===e)return n[i]===t;i-=1}switch(s){case"Map":return e.size===t.size&&_uniqContentEquals(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&_uniqContentEquals(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=keys(e);if(a.length!==keys(t).length)return!1;var o=r.concat([e]),u=n.concat([t]);for(i=a.length-1;i>=0;){var l=a[i];if(!_has(l,t)||!_equals(t[l],e[l],o,u))return!1;i-=1}return!0}var equals=_curry2((function(e,t){return _equals(e,t,[],[])}));function _indexOf(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(equals(e[r],t))return r;r+=1}return-1}function _includes(e,t){return _indexOf(t,e,0)>=0}function _map(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function _quote(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 pad=function(e){return(e<10?"0":"")+e},_toISOString="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+pad(e.getUTCMonth()+1)+"-"+pad(e.getUTCDate())+"T"+pad(e.getUTCHours())+":"+pad(e.getUTCMinutes())+":"+pad(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function _complement(e){return function(){return!e.apply(this,arguments)}}function _arrayReduce(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function _filter(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}function _isObject(e){return"[object Object]"===Object.prototype.toString.call(e)}var XFilter=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function _xfilter(e){return function(t){return new XFilter(e,t)}}var filter=_curry2(_dispatchable(["fantasy-land/filter","filter"],_xfilter,(function(e,t){return _isObject(t)?_arrayReduce((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},keys(t)):_filter(e,t)}))),reject=_curry2((function(e,t){return filter(_complement(e),t)}));function _toString(e,t){var r=function(r){var n=t.concat([e]);return _includes(r,n)?"<Circular>":_toString(r,n)},n=function(e,t){return _map((function(t){return _quote(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+_map(r,e).join(", ")+"))";case"[object Array]":return"["+_map(r,e).concat(n(e,reject((function(e){return/^\d+$/.test(e)}),keys(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):_quote(_toISOString(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":_quote(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,keys(e)).join(", ")+"}"}}var toString$1=_curry1((function(e){return _toString(e,[])})),max=_curry2((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=toString$1(e),a=r(i,toString$1(t));return void 0!==a&&a===i?e:t})),XMap=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}(),_xmap=function(e){return function(t){return new XMap(e,t)}},map=_curry2(_dispatchable(["fantasy-land/map","map"],_xmap,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return curryN(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return _arrayReduce((function(r,n){return r[n]=e(t[n]),r}),{},keys(t));default:return _map(e,t)}})));const _isInteger=Number.isInteger||function(e){return(e|0)===e};function _isString(e){return"[object String]"===Object.prototype.toString.call(e)}function _nth(e,t){var r=e<0?t.length+e:e;return _isString(t)?t.charAt(r):t[r]}var prop=_curry2((function(e,t){if(null!=t)return _isInteger(e)?_nth(e,t):t[e]})),pluck=_curry2((function(e,t){return map(prop(e),t)})),_isArrayLike=_curry1((function(e){return!!_isArray(e)||!!e&&("object"==typeof e&&(!_isString(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))})),symIterator="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function _createReduce(e,t,r){return function(n,s,i){if(_isArrayLike(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[symIterator])return r(n,s,i[symIterator]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function _xArrayReduce(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var bind=_curry2((function(e,t){return _arity(e.length,(function(){return e.apply(t,arguments)}))}));function _xIterableReduce(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function _xMethodReduce(e,t,r,n){return e["@@transducer/result"](r[n](bind(e["@@transducer/step"],e),t))}var _xReduce=_createReduce(_xArrayReduce,_xMethodReduce,_xIterableReduce),XWrap=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 _xwrap(e){return new XWrap(e)}var reduce=_curry3((function(e,t,r){return _xReduce("function"==typeof e?_xwrap(e):e,t,r)})),allPass=_curry1((function(e){return curryN(reduce(max,0,pluck("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))})),always=_curry1((function(e){return function(){return e}})),and=_curry2((function(e,t){return e&&t})),anyPass=_curry1((function(e){return curryN(reduce(max,0,pluck("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function _iterableReduce(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function _methodReduce(e,t,r,n){return r[n](e,t)}var _reduce=_createReduce(_arrayReduce,_methodReduce,_iterableReduce),ap=_curry2((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:_reduce((function(e,r){return _concat(e,map(r,t))}),[],e)})),apply=_curry2((function(e,t){return e.apply(this,t)})),curry=_curry1((function(e){return curryN(e.length,e)})),isNil=_curry1((function(e){return null==e}));function _isFunction(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}var liftN=_curry2((function(e,t){var r=curryN(e,t);return curryN(e,(function(){return _arrayReduce(ap,map(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))})),lift=_curry1((function(e){return liftN(e.length,e)})),both=_curry2((function(e,t){return _isFunction(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:lift(and)(e,t)})),comparator=_curry1((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}})),not=_curry1((function(e){return!e})),complement=lift(not);function _pipe(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function _checkForMethod(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return _isArray(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}var slice=_curry3(_checkForMethod("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)}))),tail=_curry1(_checkForMethod("tail",slice(1,1/0)));function pipe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return _arity(arguments[0].length,reduce(_pipe,arguments[0],tail(arguments)))}var head=_curry1((function(e){return _nth(0,e)})),defaultTo=_curry2((function(e,t){return null==t||t!=t?e:t})),last=_curry1((function(e){return _nth(-1,e)})),XDropWhile=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=_xfBase.init,e.prototype["@@transducer/result"]=_xfBase.result,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function _xdropWhile(e){return function(t){return new XDropWhile(e,t)}}var dropWhile=_curry2(_dispatchable(["dropWhile"],_xdropWhile,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return slice(r,1/0,t)}))),or=_curry2((function(e,t){return e||t})),either=_curry2((function(e,t){return _isFunction(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:lift(or)(e,t)}));function _isTypedArray(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}var empty=_curry1((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():_isArray(e)?[]:_isString(e)?"":_isObject(e)?{}:_isArguments(e)?function(){return arguments}():_isTypedArray(e)?e.constructor.from(""):void 0})),flip=_curry1((function(e){return curryN(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))})),hasPath=_curry2((function(e,t){if(0===e.length||isNil(t))return!1;for(var r=t,n=0;n<e.length;){if(isNil(r)||!_has(e[n],r))return!1;r=r[e[n]],n+=1}return!0})),has=_curry2((function(e,t){return hasPath([e],t)})),identical=function(e,t){switch(arguments.length){case 0:return identical;case 1:return function t(r){return 0===arguments.length?t:_objectIs(e,r)};default:return _objectIs(e,t)}},ifElse=_curry3((function(e,t,r){return curryN(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))})),includes=_curry2(_includes),init=slice(0,-1),invoker=_curry2((function(e,t){return curryN(e+1,(function(){var r=arguments[e];if(null!=r&&_isFunction(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(toString$1(r)+' does not have a method named "'+t+'"')}))})),isEmpty=_curry1((function(e){return null!=e&&equals(e,empty(e))})),isNotEmpty=_curry1((function(e){return!isEmpty(e)})),join=invoker(1,"join");function _path(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=_isInteger(s)?_nth(s,r):r[s]}return r}var mapObjIndexed=_curry2((function(e,t){return _arrayReduce((function(r,n){return r[n]=e(t[n],n,t),r}),{},keys(t))})),mergeWithKey=_curry3((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})_has(n,t)&&(s[n]=_has(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)_has(n,r)&&!_has(n,s)&&(s[n]=r[n]);return s})),mergeDeepWithKey=_curry3((function e(t,r,n){return mergeWithKey((function(r,n,s){return _isObject(n)&&_isObject(s)?e(t,n,s):t(r,n,s)}),r,n)})),mergeDeepRight=_curry2((function(e,t){return mergeDeepWithKey((function(e,t,r){return r}),e,t)})),omit=_curry2((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var a in t)n.hasOwnProperty(a)||(r[a]=t[a]);return r})),path$1=_curry2(_path),pathSatisfies=_curry3((function(e,t,r){return e(_path(t,r))})),pick=_curry2((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r})),propOr=_curry3((function(e,t,r){return defaultTo(e,prop(t,r))})),propSatisfies=_curry3((function(e,t,r){return e(prop(t,r))})),reduced=_curry1(_reduced),sort=_curry2((function(e,t){return Array.prototype.slice.call(t,0).sort(e)})),split=invoker(1,"split"),stubUndefined=always(void 0),isUndefined=equals(stubUndefined()),isNotUndefined=complement(isUndefined),isNull$1=equals(null),isNotNull=complement(isNull$1),isNotNil=complement(isNil),isGeneratorFunction=curryN(1,pipe(type,identical("GeneratorFunction"))),isAsyncFunction=curryN(1,pipe(type,identical("AsyncFunction"))),isFunction=anyPass([pipe(type,identical("Function")),isGeneratorFunction,isAsyncFunction]),isArray$1=curryN(1,isFunction(Array.isArray)?Array.isArray:pipe(type,identical("Array"))),isEmptyArray=both(isArray$1,isEmpty),isNonEmptyArray=both(isArray$1,isNotEmpty),isString$1=curryN(1,pipe(type,identical("String")));function _typeof(e){return _typeof="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},_typeof(e)}var isOfTypeObject=function(e){return"object"===_typeof(e)},isObj=curryN(1,both(isNotNull,either(isOfTypeObject,isFunction))),isNotObj=complement(isObj),isNonEmptyString=allPass([isString$1,isNotObj,isNotEmpty]),isNotFunction=complement(isFunction),isObjLike=curryN(1,both(isNotNull,isOfTypeObject)),isObject$2=pipe(type,identical("Object")),isObjectConstructor=pipe(toString$1,equals(toString$1(Object))),hasObjectConstructor=pathSatisfies(both(isFunction,isObjectConstructor),["constructor"]),isPlainObj=curryN(1,(function(e){if(!isObjLike(e)||!isObject$2(e))return!1;var t=Object.getPrototypeOf(e);return!!isNull$1(t)||hasObjectConstructor(t)}));function _toConsumableArray(e){return _arrayWithoutHoles(e)||_iterableToArray(e)||_unsupportedIterableToArray(e)||_nonIterableSpread()}function _nonIterableSpread(){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 _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _iterableToArray(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function _arrayWithoutHoles(e){if(Array.isArray(e))return _arrayLikeToArray(e)}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var byArity=comparator((function(e,t){return e.length>t.length})),getMaxArity=pipe(sort(byArity),head,prop("length")),iteratorFn=curry((function(e,t,r){var n=r.apply(void 0,_toConsumableArray(e));return isNotNil(n)?reduced(n):t})),dispatchImpl=function(e){var t=getMaxArity(e);return curryN(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return reduce(iteratorFn(r),void 0,e)}))},dispatch=ifElse(isNonEmptyArray,dispatchImpl,stubUndefined),included=flip(includes),invokeArgs=curryN(3,(function(e,t,r){var n=path$1(e,r),s=path$1(init(e),r);if(!isNotFunction(n)&&!isEmptyArray(e)){var i=bind(n,s);return apply(i,t)}})),trimCharsStart=curry((function(e,t){return pipe(split(""),dropWhile(included(e)),join(""))(t)})),commonjsGlobal="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function getDefaultExportFromCjs(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var minim={},isNull_1,hasRequiredIsNull,_freeGlobal,hasRequired_freeGlobal,_root,hasRequired_root,_Symbol,hasRequired_Symbol,_getRawTag,hasRequired_getRawTag,_objectToString,hasRequired_objectToString,_baseGetTag,hasRequired_baseGetTag,isArray_1,hasRequiredIsArray,isObjectLike_1,hasRequiredIsObjectLike,isString_1,hasRequiredIsString,isNumber_1,hasRequiredIsNumber,isBoolean_1,hasRequiredIsBoolean,isObject_1,hasRequiredIsObject$1,JSONSerialiser_1,hasRequiredJSONSerialiser,_listCacheClear,hasRequired_listCacheClear,eq_1,hasRequiredEq,_assocIndexOf,hasRequired_assocIndexOf,_listCacheDelete,hasRequired_listCacheDelete,_listCacheGet,hasRequired_listCacheGet,_listCacheHas,hasRequired_listCacheHas,_listCacheSet,hasRequired_listCacheSet,_ListCache,hasRequired_ListCache,_stackClear,hasRequired_stackClear,_stackDelete,hasRequired_stackDelete,_stackGet,hasRequired_stackGet,_stackHas,hasRequired_stackHas,isFunction_1,hasRequiredIsFunction,_coreJsData,hasRequired_coreJsData,_isMasked,hasRequired_isMasked,_toSource,hasRequired_toSource,_baseIsNative,hasRequired_baseIsNative,_getValue,hasRequired_getValue,_getNative,hasRequired_getNative,_Map,hasRequired_Map,_nativeCreate,hasRequired_nativeCreate,_hashClear,hasRequired_hashClear,_hashDelete,hasRequired_hashDelete,_hashGet,hasRequired_hashGet,_hashHas,hasRequired_hashHas,_hashSet,hasRequired_hashSet,_Hash,hasRequired_Hash,_mapCacheClear,hasRequired_mapCacheClear,_isKeyable,hasRequired_isKeyable,_getMapData,hasRequired_getMapData,_mapCacheDelete,hasRequired_mapCacheDelete,_mapCacheGet,hasRequired_mapCacheGet,_mapCacheHas,hasRequired_mapCacheHas,_mapCacheSet,hasRequired_mapCacheSet,_MapCache,hasRequired_MapCache,_stackSet,hasRequired_stackSet,_Stack,hasRequired_Stack,_setCacheAdd,hasRequired_setCacheAdd,_setCacheHas,hasRequired_setCacheHas,_SetCache,hasRequired_SetCache,_arraySome,hasRequired_arraySome,_cacheHas,hasRequired_cacheHas,_equalArrays,hasRequired_equalArrays,_Uint8Array,hasRequired_Uint8Array,_mapToArray,hasRequired_mapToArray,_setToArray,hasRequired_setToArray,_equalByTag,hasRequired_equalByTag,_arrayPush,hasRequired_arrayPush,_baseGetAllKeys,hasRequired_baseGetAllKeys,_arrayFilter,hasRequired_arrayFilter,stubArray_1,hasRequiredStubArray,_getSymbols,hasRequired_getSymbols,_baseTimes,hasRequired_baseTimes,_baseIsArguments,hasRequired_baseIsArguments,isArguments_1,hasRequiredIsArguments;function requireIsNull(){if(hasRequiredIsNull)return isNull_1;return hasRequiredIsNull=1,isNull_1=function(e){return null===e}}function require_freeGlobal(){if(hasRequired_freeGlobal)return _freeGlobal;hasRequired_freeGlobal=1;var e="object"==typeof commonjsGlobal&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal;return _freeGlobal=e}function require_root(){if(hasRequired_root)return _root;hasRequired_root=1;var e=require_freeGlobal(),t="object"==typeof self&&self&&self.Object===Object&&self,r=e||t||Function("return this")();return _root=r}function require_Symbol(){if(hasRequired_Symbol)return _Symbol;hasRequired_Symbol=1;var e=require_root().Symbol;return _Symbol=e}function require_getRawTag(){if(hasRequired_getRawTag)return _getRawTag;hasRequired_getRawTag=1;var e=require_Symbol(),t=Object.prototype,r=t.hasOwnProperty,n=t.toString,s=e?e.toStringTag:void 0;return _getRawTag=function(e){var t=r.call(e,s),i=e[s];try{e[s]=void 0;var a=!0}catch(e){}var o=n.call(e);return a&&(t?e[s]=i:delete e[s]),o}}function require_objectToString(){if(hasRequired_objectToString)return _objectToString;hasRequired_objectToString=1;var e=Object.prototype.toString;return _objectToString=function(t){return e.call(t)}}function require_baseGetTag(){if(hasRequired_baseGetTag)return _baseGetTag;hasRequired_baseGetTag=1;var e=require_Symbol(),t=require_getRawTag(),r=require_objectToString(),n=e?e.toStringTag:void 0;return _baseGetTag=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":n&&n in Object(e)?t(e):r(e)}}function requireIsArray(){if(hasRequiredIsArray)return isArray_1;hasRequiredIsArray=1;var e=Array.isArray;return isArray_1=e}function requireIsObjectLike(){if(hasRequiredIsObjectLike)return isObjectLike_1;return hasRequiredIsObjectLike=1,isObjectLike_1=function(e){return null!=e&&"object"==typeof e}}function requireIsString(){if(hasRequiredIsString)return isString_1;hasRequiredIsString=1;var e=require_baseGetTag(),t=requireIsArray(),r=requireIsObjectLike();return isString_1=function(n){return"string"==typeof n||!t(n)&&r(n)&&"[object String]"==e(n)}}function requireIsNumber(){if(hasRequiredIsNumber)return isNumber_1;hasRequiredIsNumber=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isNumber_1=function(r){return"number"==typeof r||t(r)&&"[object Number]"==e(r)}}function requireIsBoolean(){if(hasRequiredIsBoolean)return isBoolean_1;hasRequiredIsBoolean=1;var e=require_baseGetTag(),t=requireIsObjectLike();return isBoolean_1=function(r){return!0===r||!1===r||t(r)&&"[object Boolean]"==e(r)}}function requireIsObject$1(){if(hasRequiredIsObject$1)return isObject_1;return hasRequiredIsObject$1=1,isObject_1=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},isObject_1}function requireJSONSerialiser(){if(hasRequiredJSONSerialiser)return JSONSerialiser_1;hasRequiredJSONSerialiser=1;return JSONSerialiser_1=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}},JSONSerialiser_1}function require_listCacheClear(){if(hasRequired_listCacheClear)return _listCacheClear;return hasRequired_listCacheClear=1,_listCacheClear=function(){this.__data__=[],this.size=0}}function requireEq(){if(hasRequiredEq)return eq_1;return hasRequiredEq=1,eq_1=function(e,t){return e===t||e!=e&&t!=t}}function require_assocIndexOf(){if(hasRequired_assocIndexOf)return _assocIndexOf;hasRequired_assocIndexOf=1;var e=requireEq();return _assocIndexOf=function(t,r){for(var n=t.length;n--;)if(e(t[n][0],r))return n;return-1}}function require_listCacheDelete(){if(hasRequired_listCacheDelete)return _listCacheDelete;hasRequired_listCacheDelete=1;var e=require_assocIndexOf(),t=Array.prototype.splice;return _listCacheDelete=function(r){var n=this.__data__,s=e(n,r);return!(s<0)&&(s==n.length-1?n.pop():t.call(n,s,1),--this.size,!0)}}function require_listCacheGet(){if(hasRequired_listCacheGet)return _listCacheGet;hasRequired_listCacheGet=1;var e=require_assocIndexOf();return _listCacheGet=function(t){var r=this.__data__,n=e(r,t);return n<0?void 0:r[n][1]}}function require_listCacheHas(){if(hasRequired_listCacheHas)return _listCacheHas;hasRequired_listCacheHas=1;var e=require_assocIndexOf();return _listCacheHas=function(t){return e(this.__data__,t)>-1}}function require_listCacheSet(){if(hasRequired_listCacheSet)return _listCacheSet;hasRequired_listCacheSet=1;var e=require_assocIndexOf();return _listCacheSet=function(t,r){var n=this.__data__,s=e(n,t);return s<0?(++this.size,n.push([t,r])):n[s][1]=r,this}}function require_ListCache(){if(hasRequired_ListCache)return _ListCache;hasRequired_ListCache=1;var e=require_listCacheClear(),t=require_listCacheDelete(),r=require_listCacheGet(),n=require_listCacheHas(),s=require_listCacheSet();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,_ListCache=i}function require_stackClear(){if(hasRequired_stackClear)return _stackClear;hasRequired_stackClear=1;var e=require_ListCache();return _stackClear=function(){this.__data__=new e,this.size=0}}function require_stackDelete(){if(hasRequired_stackDelete)return _stackDelete;return hasRequired_stackDelete=1,_stackDelete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}}function require_stackGet(){if(hasRequired_stackGet)return _stackGet;return hasRequired_stackGet=1,_stackGet=function(e){return this.__data__.get(e)}}function require_stackHas(){if(hasRequired_stackHas)return _stackHas;return hasRequired_stackHas=1,_stackHas=function(e){return this.__data__.has(e)}}function requireIsFunction(){if(hasRequiredIsFunction)return isFunction_1;hasRequiredIsFunction=1;var e=require_baseGetTag(),t=requireIsObject$1();return isFunction_1=function(r){if(!t(r))return!1;var n=e(r);return"[object Function]"==n||"[object GeneratorFunction]"==n||"[object AsyncFunction]"==n||"[object Proxy]"==n}}function require_coreJsData(){if(hasRequired_coreJsData)return _coreJsData;hasRequired_coreJsData=1;var e=require_root()["__core-js_shared__"];return _coreJsData=e}function require_isMasked(){if(hasRequired_isMasked)return _isMasked;hasRequired_isMasked=1;var e=require_coreJsData(),t=function(){var t=/[^.]+$/.exec(e&&e.keys&&e.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}();return _isMasked=function(e){return!!t&&t in e}}function require_toSource(){if(hasRequired_toSource)return _toSource;hasRequired_toSource=1;var e=Function.prototype.toString;return _toSource=function(t){if(null!=t){try{return e.call(t)}catch(e){}try{return t+""}catch(e){}}return""}}function require_baseIsNative(){if(hasRequired_baseIsNative)return _baseIsNative;hasRequired_baseIsNative=1;var e=requireIsFunction(),t=require_isMasked(),r=requireIsObject$1(),n=require_toSource(),s=/^\[object .+?Constructor\]$/,i=Function.prototype,a=Object.prototype,o=i.toString,u=a.hasOwnProperty,l=RegExp("^"+o.call(u).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");return _baseIsNative=function(i){return!(!r(i)||t(i))&&(e(i)?l:s).test(n(i))}}function require_getValue(){if(hasRequired_getValue)return _getValue;return hasRequired_getValue=1,_getValue=function(e,t){return null==e?void 0:e[t]}}function require_getNative(){if(hasRequired_getNative)return _getNative;hasRequired_getNative=1;var e=require_baseIsNative(),t=require_getValue();return _getNative=function(r,n){var s=t(r,n);return e(s)?s:void 0}}function require_Map(){if(hasRequired_Map)return _Map;hasRequired_Map=1;var e=require_getNative()(require_root(),"Map");return _Map=e}function require_nativeCreate(){if(hasRequired_nativeCreate)return _nativeCreate;hasRequired_nativeCreate=1;var e=require_getNative()(Object,"create");return _nativeCreate=e}function require_hashClear(){if(hasRequired_hashClear)return _hashClear;hasRequired_hashClear=1;var e=require_nativeCreate();return _hashClear=function(){this.__data__=e?e(null):{},this.size=0}}function require_hashDelete(){if(hasRequired_hashDelete)return _hashDelete;return hasRequired_hashDelete=1,_hashDelete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}}function require_hashGet(){if(hasRequired_hashGet)return _hashGet;hasRequired_hashGet=1;var e=require_nativeCreate(),t=Object.prototype.hasOwnProperty;return _hashGet=function(r){var n=this.__data__;if(e){var s=n[r];return"__lodash_hash_undefined__"===s?void 0:s}return t.call(n,r)?n[r]:void 0}}function require_hashHas(){if(hasRequired_hashHas)return _hashHas;hasRequired_hashHas=1;var e=require_nativeCreate(),t=Object.prototype.hasOwnProperty;return _hashHas=function(r){var n=this.__data__;return e?void 0!==n[r]:t.call(n,r)}}function require_hashSet(){if(hasRequired_hashSet)return _hashSet;hasRequired_hashSet=1;var e=require_nativeCreate();return _hashSet=function(t,r){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=e&&void 0===r?"__lodash_hash_undefined__":r,this}}function require_Hash(){if(hasRequired_Hash)return _Hash;hasRequired_Hash=1;var e=require_hashClear(),t=require_hashDelete(),r=require_hashGet(),n=require_hashHas(),s=require_hashSet();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,_Hash=i}function require_mapCacheClear(){if(hasRequired_mapCacheClear)return _mapCacheClear;hasRequired_mapCacheClear=1;var e=require_Hash(),t=require_ListCache(),r=require_Map();return _mapCacheClear=function(){this.size=0,this.__data__={hash:new e,map:new(r||t),string:new e}}}function require_isKeyable(){if(hasRequired_isKeyable)return _isKeyable;return hasRequired_isKeyable=1,_isKeyable=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},_isKeyable}function require_getMapData(){if(hasRequired_getMapData)return _getMapData;hasRequired_getMapData=1;var e=require_isKeyable();return _getMapData=function(t,r){var n=t.__data__;return e(r)?n["string"==typeof r?"string":"hash"]:n.map},_getMapData}function require_mapCacheDelete(){if(hasRequired_mapCacheDelete)return _mapCacheDelete;hasRequired_mapCacheDelete=1;var e=require_getMapData();return _mapCacheDelete=function(t){var r=e(this,t).delete(t);return this.size-=r?1:0,r}}function require_mapCacheGet(){if(hasRequired_mapCacheGet)return _mapCacheGet;hasRequired_mapCacheGet=1;var e=require_getMapData();return _mapCacheGet=function(t){return e(this,t).get(t)}}function require_mapCacheHas(){if(hasRequired_mapCacheHas)return _mapCacheHas;hasRequired_mapCacheHas=1;var e=require_getMapData();return _mapCacheHas=function(t){return e(this,t).has(t)}}function require_mapCacheSet(){if(hasRequired_mapCacheSet)return _mapCacheSet;hasRequired_mapCacheSet=1;var e=require_getMapData();return _mapCacheSet=function(t,r){var n=e(this,t),s=n.size;return n.set(t,r),this.size+=n.size==s?0:1,this}}function require_MapCache(){if(hasRequired_MapCache)return _MapCache;hasRequired_MapCache=1;var e=require_mapCacheClear(),t=require_mapCacheDelete(),r=require_mapCacheGet(),n=require_mapCacheHas(),s=require_mapCacheSet();function i(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}return i.prototype.clear=e,i.prototype.delete=t,i.prototype.get=r,i.prototype.has=n,i.prototype.set=s,_MapCache=i}function require_stackSet(){if(hasRequired_stackSet)return _stackSet;hasRequired_stackSet=1;var e=require_ListCache(),t=require_Map(),r=require_MapCache();return _stackSet=function(n,s){var i=this.__data__;if(i instanceof e){var a=i.__data__;if(!t||a.length<199)return a.push([n,s]),this.size=++i.size,this;i=this.__data__=new r(a)}return i.set(n,s),this.size=i.size,this}}function require_Stack(){if(hasRequired_Stack)return _Stack;hasRequired_Stack=1;var e=require_ListCache(),t=require_stackClear(),r=require_stackDelete(),n=require_stackGet(),s=require_stackHas(),i=require_stackSet();function a(t){var r=this.__data__=new e(t);this.size=r.size}return a.prototype.clear=t,a.prototype.delete=r,a.prototype.get=n,a.prototype.has=s,a.prototype.set=i,_Stack=a}function require_setCacheAdd(){if(hasRequired_setCacheAdd)return _setCacheAdd;hasRequired_setCacheAdd=1;return _setCacheAdd=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}}function require_setCacheHas(){if(hasRequired_setCacheHas)return _setCacheHas;return hasRequired_setCacheHas=1,_setCacheHas=function(e){return this.__data__.has(e)}}function require_SetCache(){if(hasRequired_SetCache)return _SetCache;hasRequired_SetCache=1;var e=require_MapCache(),t=require_setCacheAdd(),r=require_setCacheHas();function n(t){var r=-1,n=null==t?0:t.length;for(this.__data__=new e;++r<n;)this.add(t[r])}return n.prototype.add=n.prototype.push=t,n.prototype.has=r,_SetCache=n}function require_arraySome(){if(hasRequired_arraySome)return _arraySome;return hasRequired_arraySome=1,_arraySome=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}}function require_cacheHas(){if(hasRequired_cacheHas)return _cacheHas;return hasRequired_cacheHas=1,_cacheHas=function(e,t){return e.has(t)}}function require_equalArrays(){if(hasRequired_equalArrays)return _equalArrays;hasRequired_equalArrays=1;var e=require_SetCache(),t=require_arraySome(),r=require_cacheHas();return _equalArrays=function(n,s,i,a,o,u){var l=1&i,c=n.length,d=s.length;if(c!=d&&!(l&&d>c))return!1;var _=u.get(n),h=u.get(s);if(_&&h)return _==s&&h==n;var m=-1,p=!0,f=2&i?new e:void 0;for(u.set(n,s),u.set(s,n);++m<c;){var y=n[m],g=s[m];if(a)var b=l?a(g,y,m,s,n,u):a(y,g,m,n,s,u);if(void 0!==b){if(b)continue;p=!1;break}if(f){if(!t(s,(function(e,t){if(!r(f,t)&&(y===e||o(y,e,i,a,u)))return f.push(t)}))){p=!1;break}}else if(y!==g&&!o(y,g,i,a,u)){p=!1;break}}return u.delete(n),u.delete(s),p}}function require_Uint8Array(){if(hasRequired_Uint8Array)return _Uint8Array;hasRequired_Uint8Array=1;var e=require_root().Uint8Array;return _Uint8Array=e}function require_mapToArray(){if(hasRequired_mapToArray)return _mapToArray;return hasRequired_mapToArray=1,_mapToArray=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r},_mapToArray}function require_setToArray(){if(hasRequired_setToArray)return _setToArray;return hasRequired_setToArray=1,_setToArray=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}}function require_equalByTag(){if(hasRequired_equalByTag)return _equalByTag;hasRequired_equalByTag=1;var e=require_Symbol(),t=require_Uint8Array(),r=requireEq(),n=require_equalArrays(),s=require_mapToArray(),i=require_setToArray(),a=e?e.prototype:void 0,o=a?a.valueOf:void 0;return _equalByTag=function(e,a,u,l,c,d,_){switch(u){case"[object DataView]":if(e.byteLength!=a.byteLength||e.byteOffset!=a.byteOffset)return!1;e=e.buffer,a=a.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=a.byteLength||!d(new t(e),new t(a)));case"[object Boolean]":case"[object Date]":case"[object Number]":return r(+e,+a);case"[object Error]":return e.name==a.name&&e.message==a.message;case"[object RegExp]":case"[object String]":return e==a+"";case"[object Map]":var h=s;case"[object Set]":var m=1&l;if(h||(h=i),e.size!=a.size&&!m)return!1;var p=_.get(e);if(p)return p==a;l|=2,_.set(e,a);var f=n(h(e),h(a),l,c,d,_);return _.delete(e),f;case"[object Symbol]":if(o)return o.call(e)==o.call(a)}return!1}}function require_arrayPush(){if(hasRequired_arrayPush)return _arrayPush;return hasRequired_arrayPush=1,_arrayPush=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}}function require_baseGetAllKeys(){if(hasRequired_baseGetAllKeys)return _baseGetAllKeys;hasRequired_baseGetAllKeys=1;var e=require_arrayPush(),t=requireIsArray();return _baseGetAllKeys=function(r,n,s){var i=n(r);return t(r)?i:e(i,s(r))}}function require_arrayFilter(){if(hasRequired_arrayFilter)return _arrayFilter;return hasRequired_arrayFilter=1,_arrayFilter=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[s++]=a)}return i}}function requireStubArray(){if(hasRequiredStubArray)return stubArray_1;return hasRequiredStubArray=1,stubArray_1=function(){return[]}}function require_getSymbols(){if(hasRequired_getSymbols)return _getSymbols;hasRequired_getSymbols=1;var e=require_arrayFilter(),t=requireStubArray(),r=Object.prototype.propertyIsEnumerable,n=Object.getOwnPropertySymbols;return _getSymbols=n?function(t){return null==t?[]:(t=Object(t),e(n(t),(function(e){return r.call(t,e)})))}:t}function require_baseTimes(){if(hasRequired_baseTimes)return _baseTimes;return hasRequired_baseTimes=1,_baseTimes=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}}function require_baseIsArguments(){if(hasRequired_baseIsArguments)return _baseIsArguments;hasRequired_baseIsArguments=1;var e=require_baseGetTag(),t=requireIsObjectLike();return _baseIsArguments=function(r){return t(r)&&"[object Arguments]"==e(r)}}function requireIsArguments(){if(hasRequiredIsArguments)return isArguments_1;hasRequiredIsArguments=1;var e=require_baseIsArguments(),t=requireIsObjectLike(),r=Object.prototype,n=r.hasOwnProperty,s=r.propertyIsEnumerable,i=e(function(){return arguments}())?e:function(e){return t(e)&&n.call(e,"callee")&&!s.call(e,"callee")};return isArguments_1=i}var isBuffer={exports:{}},stubFalse_1,hasRequiredStubFalse,hasRequiredIsBuffer,_isIndex,hasRequired_isIndex,isLength_1,hasRequiredIsLength,_baseIsTypedArray,hasRequired_baseIsTypedArray,_baseUnary,hasRequired_baseUnary;function requireStubFalse(){if(hasRequiredStubFalse)return stubFalse_1;return hasRequiredStubFalse=1,stubFalse_1=function(){return!1}}function requireIsBuffer(){return hasRequiredIsBuffer||(hasRequiredIsBuffer=1,function(e,t){var r=require_root(),n=requireStubFalse(),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,a=i&&i.exports===s?r.Buffer:void 0,o=(a?a.isBuffer:void 0)||n;e.exports=o}(isBuffer,isBuffer.exports)),isBuffer.exports}function require_isIndex(){if(hasRequired_isIndex)return _isIndex;hasRequired_isIndex=1;var e=/^(?:0|[1-9]\d*)$/;return _isIndex=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r},_isIndex}function requireIsLength(){if(hasRequiredIsLength)return isLength_1;hasRequiredIsLength=1;return isLength_1=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}}function require_baseIsTypedArray(){if(hasRequired_baseIsTypedArray)return _baseIsTypedArray;hasRequired_baseIsTypedArray=1;var e=require_baseGetTag(),t=requireIsLength(),r=requireIsObjectLike(),n={};return n["[object Float32Array]"]=n["[object Float64Array]"]=n["[object Int8Array]"]=n["[object Int16Array]"]=n["[object Int32Array]"]=n["[object Uint8Array]"]=n["[object Uint8ClampedArray]"]=n["[object Uint16Array]"]=n["[object Uint32Array]"]=!0,n["[object Arguments]"]=n["[object Array]"]=n["[object ArrayBuffer]"]=n["[object Boolean]"]=n["[object DataView]"]=n["[object Date]"]=n["[object Error]"]=n["[object Function]"]=n["[object Map]"]=n["[object Number]"]=n["[object Object]"]=n["[object RegExp]"]=n["[object Set]"]=n["[object String]"]=n["[object WeakMap]"]=!1,_baseIsTypedArray=function(s){return r(s)&&t(s.length)&&!!n[e(s)]}}function require_baseUnary(){if(hasRequired_baseUnary)return _baseUnary;return hasRequired_baseUnary=1,_baseUnary=function(e){return function(t){return e(t)}}}isBuffer.exports;var _nodeUtil={exports:{}},hasRequired_nodeUtil,isTypedArray_1,hasRequiredIsTypedArray,_arrayLikeKeys,hasRequired_arrayLikeKeys,_isPrototype,hasRequired_isPrototype,_overArg,hasRequired_overArg,_nativeKeys,hasRequired_nativeKeys,_baseKeys,hasRequired_baseKeys,isArrayLike_1,hasRequiredIsArrayLike,keys_1,hasRequiredKeys,_getAllKeys,hasRequired_getAllKeys,_equalObjects,hasRequired_equalObjects,_DataView,hasRequired_DataView,_Promise,hasRequired_Promise,_Set,hasRequired_Set,_WeakMap,hasRequired_WeakMap,_getTag,hasRequired_getTag,_baseIsEqualDeep,hasRequired_baseIsEqualDeep,_baseIsEqual,hasRequired_baseIsEqual,isEqual_1,hasRequiredIsEqual,KeyValuePair_1,hasRequiredKeyValuePair,negate_1,hasRequiredNegate,ArraySlice_1,hasRequiredArraySlice,Element_1,hasRequiredElement,NullElement_1,hasRequiredNullElement,StringElement_1,hasRequiredStringElement,NumberElement_1,hasRequiredNumberElement,BooleanElement_1,hasRequiredBooleanElement,ArrayElement_1,hasRequiredArrayElement,MemberElement_1,hasRequiredMemberElement,ObjectSlice_1,hasRequiredObjectSlice,ObjectElement_1,hasRequiredObjectElement,LinkElement_1,hasRequiredLinkElement,RefElement_1,hasRequiredRefElement,elements,hasRequiredElements,Namespace_1,hasRequiredNamespace,JSON06Serialiser_1,hasRequiredJSON06Serialiser,hasRequiredMinim;function require_nodeUtil(){return hasRequired_nodeUtil||(hasRequired_nodeUtil=1,function(e,t){var r=require_freeGlobal(),n=t&&!t.nodeType&&t,s=n&&e&&!e.nodeType&&e,i=s&&s.exports===n&&r.process,a=function(){try{var e=s&&s.require&&s.require("util").types;return e||i&&i.binding&&i.binding("util")}catch(e){}}();e.exports=a}(_nodeUtil,_nodeUtil.exports)),_nodeUtil.exports}function requireIsTypedArray(){if(hasRequiredIsTypedArray)return isTypedArray_1;hasRequiredIsTypedArray=1;var e=require_baseIsTypedArray(),t=require_baseUnary(),r=require_nodeUtil(),n=r&&r.isTypedArray,s=n?t(n):e;return isTypedArray_1=s}function require_arrayLikeKeys(){if(hasRequired_arrayLikeKeys)return _arrayLikeKeys;hasRequired_arrayLikeKeys=1;var e=require_baseTimes(),t=requireIsArguments(),r=requireIsArray(),n=requireIsBuffer(),s=require_isIndex(),i=requireIsTypedArray(),a=Object.prototype.hasOwnProperty;return _arrayLikeKeys=function(o,u){var l=r(o),c=!l&&t(o),d=!l&&!c&&n(o),_=!l&&!c&&!d&&i(o),h=l||c||d||_,m=h?e(o.length,String):[],p=m.length;for(var f in o)!u&&!a.call(o,f)||h&&("length"==f||d&&("offset"==f||"parent"==f)||_&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||s(f,p))||m.push(f);return m}}function require_isPrototype(){if(hasRequired_isPrototype)return _isPrototype;hasRequired_isPrototype=1;var e=Object.prototype;return _isPrototype=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}}function require_overArg(){if(hasRequired_overArg)return _overArg;return hasRequired_overArg=1,_overArg=function(e,t){return function(r){return e(t(r))}}}function require_nativeKeys(){if(hasRequired_nativeKeys)return _nativeKeys;hasRequired_nativeKeys=1;var e=require_overArg()(Object.keys,Object);return _nativeKeys=e}function require_baseKeys(){if(hasRequired_baseKeys)return _baseKeys;hasRequired_baseKeys=1;var e=require_isPrototype(),t=require_nativeKeys(),r=Object.prototype.hasOwnProperty;return _baseKeys=function(n){if(!e(n))return t(n);var s=[];for(var i in Object(n))r.call(n,i)&&"constructor"!=i&&s.push(i);return s}}function requireIsArrayLike(){if(hasRequiredIsArrayLike)return isArrayLike_1;hasRequiredIsArrayLike=1;var e=requireIsFunction(),t=requireIsLength();return isArrayLike_1=function(r){return null!=r&&t(r.length)&&!e(r)}}function requireKeys(){if(hasRequiredKeys)return keys_1;hasRequiredKeys=1;var e=require_arrayLikeKeys(),t=require_baseKeys(),r=requireIsArrayLike();return keys_1=function(n){return r(n)?e(n):t(n)}}function require_getAllKeys(){if(hasRequired_getAllKeys)return _getAllKeys;hasRequired_getAllKeys=1;var e=require_baseGetAllKeys(),t=require_getSymbols(),r=requireKeys();return _getAllKeys=function(n){return e(n,r,t)}}function require_equalObjects(){if(hasRequired_equalObjects)return _equalObjects;hasRequired_equalObjects=1;var e=require_getAllKeys(),t=Object.prototype.hasOwnProperty;return _equalObjects=function(r,n,s,i,a,o){var u=1&s,l=e(r),c=l.length;if(c!=e(n).length&&!u)return!1;for(var d=c;d--;){var _=l[d];if(!(u?_ in n:t.call(n,_)))return!1}var h=o.get(r),m=o.get(n);if(h&&m)return h==n&&m==r;var p=!0;o.set(r,n),o.set(n,r);for(var f=u;++d<c;){var y=r[_=l[d]],g=n[_];if(i)var b=u?i(g,y,_,n,r,o):i(y,g,_,r,n,o);if(!(void 0===b?y===g||a(y,g,s,i,o):b)){p=!1;break}f||(f="constructor"==_)}if(p&&!f){var E=r.constructor,q=n.constructor;E==q||!("constructor"in r)||!("constructor"in n)||"function"==typeof E&&E instanceof E&&"function"==typeof q&&q instanceof q||(p=!1)}return o.delete(r),o.delete(n),p}}function require_DataView(){if(hasRequired_DataView)return _DataView;hasRequired_DataView=1;var e=require_getNative()(require_root(),"DataView");return _DataView=e}function require_Promise(){if(hasRequired_Promise)return _Promise;hasRequired_Promise=1;var e=require_getNative()(require_root(),"Promise");return _Promise=e}function require_Set(){if(hasRequired_Set)return _Set;hasRequired_Set=1;var e=require_getNative()(require_root(),"Set");return _Set=e}function require_WeakMap(){if(hasRequired_WeakMap)return _WeakMap;hasRequired_WeakMap=1;var e=require_getNative()(require_root(),"WeakMap");return _WeakMap=e}function require_getTag(){if(hasRequired_getTag)return _getTag;hasRequired_getTag=1;var e=require_DataView(),t=require_Map(),r=require_Promise(),n=require_Set(),s=require_WeakMap(),i=require_baseGetTag(),a=require_toSource(),o="[object Map]",u="[object Promise]",l="[object Set]",c="[object WeakMap]",d="[object DataView]",_=a(e),h=a(t),m=a(r),p=a(n),f=a(s),y=i;return(e&&y(new e(new ArrayBuffer(1)))!=d||t&&y(new t)!=o||r&&y(r.resolve())!=u||n&&y(new n)!=l||s&&y(new s)!=c)&&(y=function(e){var t=i(e),r="[object Object]"==t?e.constructor:void 0,n=r?a(r):"";if(n)switch(n){case _:return d;case h:return o;case m:return u;case p:return l;case f:return c}return t}),_getTag=y}function require_baseIsEqualDeep(){if(hasRequired_baseIsEqualDeep)return _baseIsEqualDeep;hasRequired_baseIsEqualDeep=1;var e=require_Stack(),t=require_equalArrays(),r=require_equalByTag(),n=require_equalObjects(),s=require_getTag(),i=requireIsArray(),a=requireIsBuffer(),o=requireIsTypedArray(),u="[object Arguments]",l="[object Array]",c="[object Object]",d=Object.prototype.hasOwnProperty;return _baseIsEqualDeep=function(_,h,m,p,f,y){var g=i(_),b=i(h),E=g?l:s(_),q=b?l:s(h),w=(E=E==u?c:E)==c,R=(q=q==u?c:q)==c,v=E==q;if(v&&a(_)){if(!a(h))return!1;g=!0,w=!1}if(v&&!w)return y||(y=new e),g||o(_)?t(_,h,m,p,f,y):r(_,h,E,m,p,f,y);if(!(1&m)){var S=w&&d.call(_,"__wrapped__"),O=R&&d.call(h,"__wrapped__");if(S||O){var A=S?_.value():_,I=O?h.value():h;return y||(y=new e),f(A,I,m,p,y)}}return!!v&&(y||(y=new e),n(_,h,m,p,f,y))}}function require_baseIsEqual(){if(hasRequired_baseIsEqual)return _baseIsEqual;hasRequired_baseIsEqual=1;var e=require_baseIsEqualDeep(),t=requireIsObjectLike();return _baseIsEqual=function r(n,s,i,a,o){return n===s||(null==n||null==s||!t(n)&&!t(s)?n!=n&&s!=s:e(n,s,i,a,r,o))},_baseIsEqual}function requireIsEqual(){if(hasRequiredIsEqual)return isEqual_1;hasRequiredIsEqual=1;var e=require_baseIsEqual();return isEqual_1=function(t,r){return e(t,r)}}function requireKeyValuePair(){if(hasRequiredKeyValuePair)return KeyValuePair_1;hasRequiredKeyValuePair=1;class e{constructor(e,t){this.key=e,this.value=t}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}return KeyValuePair_1=e}function requireNegate(){if(hasRequiredNegate)return negate_1;hasRequiredNegate=1;return negate_1=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)}},negate_1}function requireArraySlice(){if(hasRequiredArraySlice)return ArraySlice_1;hasRequiredArraySlice=1;const e=requireNegate();function t(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class r{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,n){return e=t(e),new r(this.elements.filter(e,n))}reject(n,s){return n=t(n),new r(this.elements.filter(e(n),s))}find(e,r){return e=t(e),this.elements.find(e,r)}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]}}return"undefined"!=typeof Symbol&&(r.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),ArraySlice_1=r}function requireElement(){if(hasRequiredElement)return Element_1;hasRequiredElement=1;const e=requireIsEqual(),t=requireKeyValuePair(),r=requireArraySlice();class n{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof n?this.content.toValue():this.content instanceof t?{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 n=e.pop();let s=new r;const i=(e,t)=>(e.push(t),e),a=(e,r)=>{r.element===n&&e.push(r);const s=r.findRecursive(n);return s&&s.reduce(i,e),r.content instanceof t&&(r.content.key&&a(e,r.content.key),r.content.value&&a(e,r.content.value)),e};return this.content&&(this.content.element&&a(s,this.content),Array.isArray(this.content)&&this.content.reduce(a,s)),e.isEmpty||(s=s.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),s}set(e){return this.content=e,this}equals(t){return e(this.toValue(),t)}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 n)this._content=e;else if(e instanceof r)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 t)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 r;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new r(this.content);if(this.content instanceof t){const e=new r([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof n?new r([this.content]):new r}get recursiveChildren(){const e=new r;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}return Element_1=n}function requireNullElement(){if(hasRequiredNullElement)return NullElement_1;hasRequiredNullElement=1;const e=requireElement();return NullElement_1=class extends e{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}}function requireStringElement(){if(hasRequiredStringElement)return StringElement_1;hasRequiredStringElement=1;const e=requireElement();return StringElement_1=class extends e{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}}function requireNumberElement(){if(hasRequiredNumberElement)return NumberElement_1;hasRequiredNumberElement=1;const e=requireElement();return NumberElement_1=class extends e{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}}function requireBooleanElement(){if(hasRequiredBooleanElement)return BooleanElement_1;hasRequiredBooleanElement=1;const e=requireElement();return BooleanElement_1=class extends e{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}}function requireArrayElement(){if(hasRequiredArrayElement)return ArrayElement_1;hasRequiredArrayElement=1;const e=requireNegate(),t=requireElement(),r=requireArraySlice();class n extends t{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new r(this.content.filter(e,t))}reject(t,r){return this.filter(e(t),r)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new r(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)}}return n.empty=function(){return new this},n["fantasy-land/empty"]=n.empty,"undefined"!=typeof Symbol&&(n.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),ArrayElement_1=n}function requireMemberElement(){if(hasRequiredMemberElement)return MemberElement_1;hasRequiredMemberElement=1;const e=requireKeyValuePair(),t=requireElement();return MemberElement_1=class extends t{constructor(t,r,n,s){super(new e,n,s),this.element="member",this.key=t,this.value=r}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)}}}function requireObjectSlice(){if(hasRequiredObjectSlice)return ObjectSlice_1;hasRequiredObjectSlice=1;const e=requireNegate(),t=requireArraySlice();class r extends t{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new r(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(t,r){return this.filter(e(t.bind(r)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}return ObjectSlice_1=r}function requireObjectElement(){if(hasRequiredObjectElement)return ObjectElement_1;hasRequiredObjectElement=1;const e=requireNegate(),t=requireIsObject$1(),r=requireArrayElement(),n=requireMemberElement(),s=requireObjectSlice();return ObjectElement_1=class extends r{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,r){if(t(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,i=this.getMember(s);return i?i.value=r:this.content.push(new n(s,r)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const a=e.bind(t)(n,s,i);a&&r.push(a)})),r}filter(e,t){return new s(this.content).filter(e,t)}reject(t,r){return this.filter(e(t),r)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}}function requireLinkElement(){if(hasRequiredLinkElement)return LinkElement_1;hasRequiredLinkElement=1;const e=requireElement();return LinkElement_1=class extends e{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}}function requireRefElement(){if(hasRequiredRefElement)return RefElement_1;hasRequiredRefElement=1;const e=requireElement();return RefElement_1=class extends e{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}}function requireElements(){if(hasRequiredElements)return elements;hasRequiredElements=1;const e=requireElement(),t=requireNullElement(),r=requireStringElement(),n=requireNumberElement(),s=requireBooleanElement(),i=requireArrayElement(),a=requireMemberElement(),o=requireObjectElement(),u=requireLinkElement(),l=requireRefElement(),c=requireArraySlice(),d=requireObjectSlice(),_=requireKeyValuePair();function h(a){if(a instanceof e)return a;if("string"==typeof a)return new r(a);if("number"==typeof a)return new n(a);if("boolean"==typeof a)return new s(a);if(null===a)return new t;if(Array.isArray(a))return new i(a.map(h));if("object"==typeof a){return new o(a)}return a}return e.prototype.ObjectElement=o,e.prototype.RefElement=l,e.prototype.MemberElement=a,e.prototype.refract=h,c.prototype.refract=h,elements={Element:e,NullElement:t,StringElement:r,NumberElement:n,BooleanElement:s,ArrayElement:i,MemberElement:a,ObjectElement:o,LinkElement:u,RefElement:l,refract:h,ArraySlice:c,ObjectSlice:d,KeyValuePair:_}}function requireNamespace(){if(hasRequiredNamespace)return Namespace_1;hasRequiredNamespace=1;const e=requireIsNull(),t=requireIsString(),r=requireIsNumber(),n=requireIsBoolean(),s=requireIsObject$1(),i=requireJSONSerialiser(),a=requireElements();class o{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=a.Element,this.KeyValuePair=a.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",a.NullElement).register("string",a.StringElement).register("number",a.NumberElement).register("boolean",a.BooleanElement).register("array",a.ArrayElement).register("object",a.ObjectElement).register("member",a.MemberElement).register("ref",a.RefElement).register("link",a.LinkElement),this.detect(e,a.NullElement,!1).detect(t,a.StringElement,!1).detect(r,a.NumberElement,!1).detect(n,a.BooleanElement,!1).detect(Array.isArray,a.ArrayElement,!1).detect(s,a.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new i(this)}}return i.prototype.Namespace=o,Namespace_1=o}function requireJSON06Serialiser(){if(hasRequiredJSON06Serialiser)return JSON06Serialiser_1;hasRequiredJSON06Serialiser=1;const e=requireJSONSerialiser();return JSON06Serialiser_1=class extends e{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}}function requireMinim(){if(hasRequiredMinim)return minim;hasRequiredMinim=1;const e=requireNamespace(),t=requireElements();return minim.Namespace=e,minim.namespace=function(t){return new e(t)},minim.KeyValuePair=requireKeyValuePair(),minim.ArraySlice=t.ArraySlice,minim.ObjectSlice=t.ObjectSlice,minim.Element=t.Element,minim.StringElement=t.StringElement,minim.NumberElement=t.NumberElement,minim.BooleanElement=t.BooleanElement,minim.NullElement=t.NullElement,minim.ArrayElement=t.ArrayElement,minim.ObjectElement=t.ObjectElement,minim.MemberElement=t.MemberElement,minim.RefElement=t.RefElement,minim.LinkElement=t.LinkElement,minim.refract=t.refract,minim.JSONSerialiser=requireJSONSerialiser(),minim.JSON06Serialiser=requireJSON06Serialiser(),minim}_nodeUtil.exports;var minimExports=requireMinim();class Annotation extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}class Comment extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="comment"}}let ParseResult$1=class extends minimExports.ArrayElement{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(isUndefined(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}};const hasMethod=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],hasBasicElementProps=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,primitiveEq=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),hasClass=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof minimExports.ArrayElement)&&t.classes.includes(e),isElementType=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,createPredicate=e=>e({hasMethod:hasMethod,hasBasicElementProps:hasBasicElementProps,primitiveEq:primitiveEq,isElementType:isElementType,hasClass:hasClass}),isElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.Element||e(r)&&t(void 0,r))),isStringElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.StringElement||e(r)&&t("string",r))),isNumberElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.NumberElement||e(r)&&t("number",r))),isNullElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.NullElement||e(r)&&t("null",r))),isBooleanElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof minimExports.BooleanElement||e(r)&&t("boolean",r))),isObjectElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof minimExports.ObjectElement||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),isArrayElement=createPredicate((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof minimExports.ArrayElement&&!(n instanceof minimExports.ObjectElement)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),isMemberElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof minimExports.MemberElement||e(n)&&t("member",n)&&r(void 0,n))),isLinkElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof minimExports.LinkElement||e(n)&&t("link",n)&&r(void 0,n))),isRefElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof minimExports.RefElement||e(n)&&t("ref",n)&&r(void 0,n))),isAnnotationElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Annotation||e(n)&&t("annotation",n)&&r("array",n))),isCommentElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Comment||e(n)&&t("comment",n)&&r("string",n))),isParseResultElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ParseResult$1||e(n)&&t("parseResult",n)&&r("array",n))),isPrimitiveElement=e=>isElementType("object",e)||isElementType("array",e)||isElementType("boolean",e)||isElementType("number",e)||isElementType("string",e)||isElementType("null",e)||isElementType("member",e),hasElementSourceMap=e=>!!isElement(e)&&(Number.isInteger(e.startPositionRow)&&Number.isInteger(e.startPositionColumn)&&Number.isInteger(e.startIndex)&&Number.isInteger(e.endPositionRow)&&Number.isInteger(e.endPositionColumn)&&Number.isInteger(e.endIndex)),includesSymbols=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!isArrayElement(r)&&all(included(r.toValue()),e)},includesClasses=(e,t)=>0===e.length||all(included(t.classes.toValue()),e),basePredicates=Object.freeze(Object.defineProperty({__proto__:null,hasElementSourceMap:hasElementSourceMap,includesClasses:includesClasses,includesSymbols:includesSymbols,isAnnotationElement:isAnnotationElement,isArrayElement:isArrayElement,isBooleanElement:isBooleanElement,isCommentElement:isCommentElement,isElement:isElement,isLinkElement:isLinkElement,isMemberElement:isMemberElement,isNullElement:isNullElement,isNumberElement:isNumberElement,isObjectElement:isObjectElement,isParseResultElement:isParseResultElement,isPrimitiveElement:isPrimitiveElement,isRefElement:isRefElement,isStringElement:isStringElement},Symbol.toStringTag,{value:"Module"}));class Namespace extends minimExports.Namespace{constructor(){super(),this.register("annotation",Annotation),this.register("comment",Comment),this.register("parseResult",ParseResult$1)}}const namespace$1=new Namespace,createNamespace=e=>{const t=new Namespace;return isPlainObj(e)&&t.use(e),t},createToolbox$1=()=>({predicates:{...basePredicates},namespace:namespace$1});class Node{static type="node";type="node";isMissing;children;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;constructor({children:e=[],isMissing:t=!1,startPositionRow:r,startPositionColumn:n,startIndex:s,endPositionRow:i,endPositionColumn:a,endIndex:o}={}){this.type=this.constructor.type,this.isMissing=t,this.children=e,this.startPositionRow=r,this.startPositionColumn=n,this.startIndex=s,this.endPositionRow=i,this.endPositionColumn=a,this.endIndex=o}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}class JsonNode extends Node{}class JsonDocument extends JsonNode{static type="document";get child(){return head(this.children)}}const isNodeType=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,isString=e=>isNodeType("string",e),isFalse=e=>isNodeType("false",e),isTrue=e=>isNodeType("true",e),isNull=e=>isNodeType("null",e),isNumber=e=>isNodeType("number",e),isArray=e=>isNodeType("array",e),isObject$1=e=>isNodeType("object",e),isStringContent=e=>isNodeType("stringContent",e),isEscapeSequence=e=>isNodeType("escapeSequence",e),isProperty=e=>isNodeType("property",e),isKey=e=>isNodeType("key",e);class JsonObject extends JsonNode{static type="object";get properties(){return this.children.filter(isProperty)}}class JsonProperty extends JsonNode{static type="property";get key(){return this.children.find(isKey)}get value(){return this.children.find((e=>isFalse(e)||isTrue(e)||isNull(e)||isNumber(e)||isString(e)||isArray(e)||isObject$1(e)))}}class JsonArray extends JsonNode{static type="array";get items(){return this.children.filter((e=>isFalse(e)||isTrue(e)||isNull(e)||isNumber(e)||isString(e)||isArray(e)||isObject$1))}}class JsonValue extends JsonNode{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}}class JsonString extends JsonNode{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>isStringContent(e)||isEscapeSequence(e))).reduce(((e,t)=>e+t.value),"")}}class JsonKey extends JsonString{static type="key"}class JsonStringContent extends JsonValue{static type="stringContent"}class JsonNumber extends JsonValue{static type="number"}class JsonTrue extends JsonValue{static type="true"}class JsonFalse extends JsonValue{static type="false"}class JsonNull extends JsonValue{static type="null"}var esnext_aggregateError={},es_aggregateError={},es_aggregateError_constructor={},globalThis_1,hasRequiredGlobalThis,fails,hasRequiredFails,functionBindNative,hasRequiredFunctionBindNative,functionApply,hasRequiredFunctionApply,functionUncurryThis,hasRequiredFunctionUncurryThis,classofRaw,hasRequiredClassofRaw,functionUncurryThisClause,hasRequiredFunctionUncurryThisClause,isCallable,hasRequiredIsCallable;function requireGlobalThis(){if(hasRequiredGlobalThis)return globalThis_1;hasRequiredGlobalThis=1;var e=function(e){return e&&e.Math===Math&&e};return globalThis_1=e("object"==typeof globalThis&&globalThis)||e("object"==typeof window&&window)||e("object"==typeof self&&self)||e("object"==typeof commonjsGlobal&&commonjsGlobal)||e("object"==typeof globalThis_1&&globalThis_1)||function(){return this}()||Function("return this")()}function requireFails(){return hasRequiredFails?fails:(hasRequiredFails=1,fails=function(e){try{return!!e()}catch(e){return!0}})}function requireFunctionBindNative(){return hasRequiredFunctionBindNative?functionBindNative:(hasRequiredFunctionBindNative=1,functionBindNative=!requireFails()((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")})))}function requireFunctionApply(){if(hasRequiredFunctionApply)return functionApply;hasRequiredFunctionApply=1;var e=requireFunctionBindNative(),t=Function.prototype,r=t.apply,n=t.call;return functionApply="object"==typeof Reflect&&Reflect.apply||(e?n.bind(r):function(){return n.apply(r,arguments)}),functionApply}function requireFunctionUncurryThis(){if(hasRequiredFunctionUncurryThis)return functionUncurryThis;hasRequiredFunctionUncurryThis=1;var e=requireFunctionBindNative(),t=Function.prototype,r=t.call,n=e&&t.bind.bind(r,r);return functionUncurryThis=e?n:function(e){return function(){return r.apply(e,arguments)}},functionUncurryThis}function requireClassofRaw(){if(hasRequiredClassofRaw)return classofRaw;hasRequiredClassofRaw=1;var e=requireFunctionUncurryThis(),t=e({}.toString),r=e("".slice);return classofRaw=function(e){return r(t(e),8,-1)}}function requireFunctionUncurryThisClause(){if(hasRequiredFunctionUncurryThisClause)return functionUncurryThisClause;hasRequiredFunctionUncurryThisClause=1;var e=requireClassofRaw(),t=requireFunctionUncurryThis();return functionUncurryThisClause=function(r){if("Function"===e(r))return t(r)}}function requireIsCallable(){if(hasRequiredIsCallable)return isCallable;hasRequiredIsCallable=1;var e="object"==typeof document&&document.all;return isCallable=void 0===e&&void 0!==e?function(t){return"function"==typeof t||t===e}:function(e){return"function"==typeof e}}var objectGetOwnPropertyDescriptor={},descriptors,hasRequiredDescriptors,functionCall,hasRequiredFunctionCall;function requireDescriptors(){return hasRequiredDescriptors?descriptors:(hasRequiredDescriptors=1,descriptors=!requireFails()((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]})))}function requireFunctionCall(){if(hasRequiredFunctionCall)return functionCall;hasRequiredFunctionCall=1;var e=requireFunctionBindNative(),t=Function.prototype.call;return functionCall=e?t.bind(t):function(){return t.apply(t,arguments)},functionCall}var objectPropertyIsEnumerable={},hasRequiredObjectPropertyIsEnumerable,createPropertyDescriptor,hasRequiredCreatePropertyDescriptor,indexedObject,hasRequiredIndexedObject,isNullOrUndefined,hasRequiredIsNullOrUndefined,requireObjectCoercible,hasRequiredRequireObjectCoercible,toIndexedObject,hasRequiredToIndexedObject,isObject,hasRequiredIsObject,path,hasRequiredPath,getBuiltIn,hasRequiredGetBuiltIn,objectIsPrototypeOf,hasRequiredObjectIsPrototypeOf,environmentUserAgent,hasRequiredEnvironmentUserAgent,environmentV8Version,hasRequiredEnvironmentV8Version,symbolConstructorDetection,hasRequiredSymbolConstructorDetection,useSymbolAsUid,hasRequiredUseSymbolAsUid,isSymbol,hasRequiredIsSymbol,tryToString,hasRequiredTryToString,aCallable,hasRequiredACallable,getMethod,hasRequiredGetMethod,ordinaryToPrimitive,hasRequiredOrdinaryToPrimitive;function requireObjectPropertyIsEnumerable(){if(hasRequiredObjectPropertyIsEnumerable)return objectPropertyIsEnumerable;hasRequiredObjectPropertyIsEnumerable=1;var e={}.propertyIsEnumerable,t=Object.getOwnPropertyDescriptor,r=t&&!e.call({1:2},1);return objectPropertyIsEnumerable.f=r?function(e){var r=t(this,e);return!!r&&r.enumerable}:e,objectPropertyIsEnumerable}function requireCreatePropertyDescriptor(){return hasRequiredCreatePropertyDescriptor?createPropertyDescriptor:(hasRequiredCreatePropertyDescriptor=1,createPropertyDescriptor=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}})}function requireIndexedObject(){if(hasRequiredIndexedObject)return indexedObject;hasRequiredIndexedObject=1;var e=requireFunctionUncurryThis(),t=requireFails(),r=requireClassofRaw(),n=Object,s=e("".split);return indexedObject=t((function(){return!n("z").propertyIsEnumerable(0)}))?function(e){return"String"===r(e)?s(e,""):n(e)}:n}function requireIsNullOrUndefined(){return hasRequiredIsNullOrUndefined?isNullOrUndefined:(hasRequiredIsNullOrUndefined=1,isNullOrUndefined=function(e){return null==e})}function requireRequireObjectCoercible(){if(hasRequiredRequireObjectCoercible)return requireObjectCoercible;hasRequiredRequireObjectCoercible=1;var e=requireIsNullOrUndefined(),t=TypeError;return requireObjectCoercible=function(r){if(e(r))throw new t("Can't call method on "+r);return r}}function requireToIndexedObject(){if(hasRequiredToIndexedObject)return toIndexedObject;hasRequiredToIndexedObject=1;var e=requireIndexedObject(),t=requireRequireObjectCoercible();return toIndexedObject=function(r){return e(t(r))}}function requireIsObject(){if(hasRequiredIsObject)return isObject;hasRequiredIsObject=1;var e=requireIsCallable();return isObject=function(t){return"object"==typeof t?null!==t:e(t)}}function requirePath(){return hasRequiredPath?path:(hasRequiredPath=1,path={})}function requireGetBuiltIn(){if(hasRequiredGetBuiltIn)return getBuiltIn;hasRequiredGetBuiltIn=1;var e=requirePath(),t=requireGlobalThis(),r=requireIsCallable(),n=function(e){return r(e)?e:void 0};return getBuiltIn=function(r,s){return arguments.length<2?n(e[r])||n(t[r]):e[r]&&e[r][s]||t[r]&&t[r][s]},getBuiltIn}function requireObjectIsPrototypeOf(){return hasRequiredObjectIsPrototypeOf?objectIsPrototypeOf:(hasRequiredObjectIsPrototypeOf=1,objectIsPrototypeOf=requireFunctionUncurryThis()({}.isPrototypeOf))}function requireEnvironmentUserAgent(){if(hasRequiredEnvironmentUserAgent)return environmentUserAgent;hasRequiredEnvironmentUserAgent=1;var e=requireGlobalThis().navigator,t=e&&e.userAgent;return environmentUserAgent=t?String(t):""}function requireEnvironmentV8Version(){if(hasRequiredEnvironmentV8Version)return environmentV8Version;hasRequiredEnvironmentV8Version=1;var e,t,r=requireGlobalThis(),n=requireEnvironmentUserAgent(),s=r.process,i=r.Deno,a=s&&s.versions||i&&i.version,o=a&&a.v8;return o&&(t=(e=o.split("."))[0]>0&&e[0]<4?1:+(e[0]+e[1])),!t&&n&&(!(e=n.match(/Edge\/(\d+)/))||e[1]>=74)&&(e=n.match(/Chrome\/(\d+)/))&&(t=+e[1]),environmentV8Version=t}function requireSymbolConstructorDetection(){if(hasRequiredSymbolConstructorDetection)return symbolConstructorDetection;hasRequiredSymbolConstructorDetection=1;var e=requireEnvironmentV8Version(),t=requireFails(),r=requireGlobalThis().String;return symbolConstructorDetection=!!Object.getOwnPropertySymbols&&!t((function(){var t=Symbol("symbol detection");return!r(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&e&&e<41}))}function requireUseSymbolAsUid(){return hasRequiredUseSymbolAsUid?useSymbolAsUid:(hasRequiredUseSymbolAsUid=1,useSymbolAsUid=requireSymbolConstructorDetection()&&!Symbol.sham&&"symbol"==typeof Symbol.iterator)}function requireIsSymbol(){if(hasRequiredIsSymbol)return isSymbol;hasRequiredIsSymbol=1;var e=requireGetBuiltIn(),t=requireIsCallable(),r=requireObjectIsPrototypeOf(),n=Object;return isSymbol=requireUseSymbolAsUid()?function(e){return"symbol"==typeof e}:function(s){var i=e("Symbol");return t(i)&&r(i.prototype,n(s))}}function requireTryToString(){if(hasRequiredTryToString)return tryToString;hasRequiredTryToString=1;var e=String;return tryToString=function(t){try{return e(t)}catch(e){return"Object"}}}function requireACallable(){if(hasRequiredACallable)return aCallable;hasRequiredACallable=1;var e=requireIsCallable(),t=requireTryToString(),r=TypeError;return aCallable=function(n){if(e(n))return n;throw new r(t(n)+" is not a function")}}function requireGetMethod(){if(hasRequiredGetMethod)return getMethod;hasRequiredGetMethod=1;var e=requireACallable(),t=requireIsNullOrUndefined();return getMethod=function(r,n){var s=r[n];return t(s)?void 0:e(s)}}function requireOrdinaryToPrimitive(){if(hasRequiredOrdinaryToPrimitive)return ordinaryToPrimitive;hasRequiredOrdinaryToPrimitive=1;var e=requireFunctionCall(),t=requireIsCallable(),r=requireIsObject(),n=TypeError;return ordinaryToPrimitive=function(s,i){var a,o;if("string"===i&&t(a=s.toString)&&!r(o=e(a,s)))return o;if(t(a=s.valueOf)&&!r(o=e(a,s)))return o;if("string"!==i&&t(a=s.toString)&&!r(o=e(a,s)))return o;throw new n("Can't convert object to primitive value")}}var sharedStore={exports:{}},isPure,hasRequiredIsPure,defineGlobalProperty,hasRequiredDefineGlobalProperty,hasRequiredSharedStore,shared,hasRequiredShared,toObject,hasRequiredToObject,hasOwnProperty_1,hasRequiredHasOwnProperty,uid,hasRequiredUid,wellKnownSymbol,hasRequiredWellKnownSymbol,toPrimitive,hasRequiredToPrimitive,toPropertyKey,hasRequiredToPropertyKey,documentCreateElement,hasRequiredDocumentCreateElement,ie8DomDefine,hasRequiredIe8DomDefine,hasRequiredObjectGetOwnPropertyDescriptor,isForced_1,hasRequiredIsForced,functionBindContext,hasRequiredFunctionBindContext;function requireIsPure(){return hasRequiredIsPure?isPure:(hasRequiredIsPure=1,isPure=!0)}function requireDefineGlobalProperty(){if(hasRequiredDefineGlobalProperty)return defineGlobalProperty;hasRequiredDefineGlobalProperty=1;var e=requireGlobalThis(),t=Object.defineProperty;return defineGlobalProperty=function(r,n){try{t(e,r,{value:n,configurable:!0,writable:!0})}catch(t){e[r]=n}return n}}function requireSharedStore(){if(hasRequiredSharedStore)return sharedStore.exports;hasRequiredSharedStore=1;var e=requireIsPure(),t=requireGlobalThis(),r=requireDefineGlobalProperty(),n="__core-js_shared__",s=sharedStore.exports=t[n]||r(n,{});return(s.versions||(s.versions=[])).push({version:"3.42.0",mode:e?"pure":"global",copyright:"© 2014-2025 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.42.0/LICENSE",source:"https://github.com/zloirock/core-js"}),sharedStore.exports}function requireShared(){if(hasRequiredShared)return shared;hasRequiredShared=1;var e=requireSharedStore();return shared=function(t,r){return e[t]||(e[t]=r||{})}}function requireToObject(){if(hasRequiredToObject)return toObject;hasRequiredToObject=1;var e=requireRequireObjectCoercible(),t=Object;return toObject=function(r){return t(e(r))}}function requireHasOwnProperty(){if(hasRequiredHasOwnProperty)return hasOwnProperty_1;hasRequiredHasOwnProperty=1;var e=requireFunctionUncurryThis(),t=requireToObject(),r=e({}.hasOwnProperty);return hasOwnProperty_1=Object.hasOwn||function(e,n){return r(t(e),n)}}function requireUid(){if(hasRequiredUid)return uid;hasRequiredUid=1;var e=requireFunctionUncurryThis(),t=0,r=Math.random(),n=e(1..toString);return uid=function(e){return"Symbol("+(void 0===e?"":e)+")_"+n(++t+r,36)}}function requireWellKnownSymbol(){if(hasRequiredWellKnownSymbol)return wellKnownSymbol;hasRequiredWellKnownSymbol=1;var e=requireGlobalThis(),t=requireShared(),r=requireHasOwnProperty(),n=requireUid(),s=requireSymbolConstructorDetection(),i=requireUseSymbolAsUid(),a=e.Symbol,o=t("wks"),u=i?a.for||a:a&&a.withoutSetter||n;return wellKnownSymbol=function(e){return r(o,e)||(o[e]=s&&r(a,e)?a[e]:u("Symbol."+e)),o[e]}}function requireToPrimitive(){if(hasRequiredToPrimitive)return toPrimitive;hasRequiredToPrimitive=1;var e=requireFunctionCall(),t=requireIsObject(),r=requireIsSymbol(),n=requireGetMethod(),s=requireOrdinaryToPrimitive(),i=TypeError,a=requireWellKnownSymbol()("toPrimitive");return toPrimitive=function(o,u){if(!t(o)||r(o))return o;var l,c=n(o,a);if(c){if(void 0===u&&(u="default"),l=e(c,o,u),!t(l)||r(l))return l;throw new i("Can't convert object to primitive value")}return void 0===u&&(u="number"),s(o,u)}}function requireToPropertyKey(){if(hasRequiredToPropertyKey)return toPropertyKey;hasRequiredToPropertyKey=1;var e=requireToPrimitive(),t=requireIsSymbol();return toPropertyKey=function(r){var n=e(r,"string");return t(n)?n:n+""}}function requireDocumentCreateElement(){if(hasRequiredDocumentCreateElement)return documentCreateElement;hasRequiredDocumentCreateElement=1;var e=requireGlobalThis(),t=requireIsObject(),r=e.document,n=t(r)&&t(r.createElement);return documentCreateElement=function(e){return n?r.createElement(e):{}}}function requireIe8DomDefine(){if(hasRequiredIe8DomDefine)return ie8DomDefine;hasRequiredIe8DomDefine=1;var e=requireDescriptors(),t=requireFails(),r=requireDocumentCreateElement();return ie8DomDefine=!e&&!t((function(){return 7!==Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))}function requireObjectGetOwnPropertyDescriptor(){if(hasRequiredObjectGetOwnPropertyDescriptor)return objectGetOwnPropertyDescriptor;hasRequiredObjectGetOwnPropertyDescriptor=1;var e=requireDescriptors(),t=requireFunctionCall(),r=requireObjectPropertyIsEnumerable(),n=requireCreatePropertyDescriptor(),s=requireToIndexedObject(),i=requireToPropertyKey(),a=requireHasOwnProperty(),o=requireIe8DomDefine(),u=Object.getOwnPropertyDescriptor;return objectGetOwnPropertyDescriptor.f=e?u:function(e,l){if(e=s(e),l=i(l),o)try{return u(e,l)}catch(e){}if(a(e,l))return n(!t(r.f,e,l),e[l])},objectGetOwnPropertyDescriptor}function requireIsForced(){if(hasRequiredIsForced)return isForced_1;hasRequiredIsForced=1;var e=requireFails(),t=requireIsCallable(),r=/#|\.prototype\./,n=function(r,n){var u=i[s(r)];return u===o||u!==a&&(t(n)?e(n):!!n)},s=n.normalize=function(e){return String(e).replace(r,".").toLowerCase()},i=n.data={},a=n.NATIVE="N",o=n.POLYFILL="P";return isForced_1=n}function requireFunctionBindContext(){if(hasRequiredFunctionBindContext)return functionBindContext;hasRequiredFunctionBindContext=1;var e=requireFunctionUncurryThisClause(),t=requireACallable(),r=requireFunctionBindNative(),n=e(e.bind);return functionBindContext=function(e,s){return t(e),void 0===s?e:r?n(e,s):function(){return e.apply(s,arguments)}},functionBindContext}var objectDefineProperty={},v8PrototypeDefineBug,hasRequiredV8PrototypeDefineBug,anObject,hasRequiredAnObject,hasRequiredObjectDefineProperty,createNonEnumerableProperty,hasRequiredCreateNonEnumerableProperty,_export,hasRequired_export,sharedKey,hasRequiredSharedKey,correctPrototypeGetter,hasRequiredCorrectPrototypeGetter,objectGetPrototypeOf,hasRequiredObjectGetPrototypeOf,functionUncurryThisAccessor,hasRequiredFunctionUncurryThisAccessor,isPossiblePrototype,hasRequiredIsPossiblePrototype,aPossiblePrototype,hasRequiredAPossiblePrototype,objectSetPrototypeOf,hasRequiredObjectSetPrototypeOf;function requireV8PrototypeDefineBug(){return hasRequiredV8PrototypeDefineBug?v8PrototypeDefineBug:(hasRequiredV8PrototypeDefineBug=1,v8PrototypeDefineBug=requireDescriptors()&&requireFails()((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype})))}function requireAnObject(){if(hasRequiredAnObject)return anObject;hasRequiredAnObject=1;var e=requireIsObject(),t=String,r=TypeError;return anObject=function(n){if(e(n))return n;throw new r(t(n)+" is not an object")}}function requireObjectDefineProperty(){if(hasRequiredObjectDefineProperty)return objectDefineProperty;hasRequiredObjectDefineProperty=1;var e=requireDescriptors(),t=requireIe8DomDefine(),r=requireV8PrototypeDefineBug(),n=requireAnObject(),s=requireToPropertyKey(),i=TypeError,a=Object.defineProperty,o=Object.getOwnPropertyDescriptor,u="enumerable",l="configurable",c="writable";return objectDefineProperty.f=e?r?function(e,t,r){if(n(e),t=s(t),n(r),"function"==typeof e&&"prototype"===t&&"value"in r&&c in r&&!r[c]){var i=o(e,t);i&&i[c]&&(e[t]=r.value,r={configurable:l in r?r[l]:i[l],enumerable:u in r?r[u]:i[u],writable:!1})}return a(e,t,r)}:a:function(e,r,o){if(n(e),r=s(r),n(o),t)try{return a(e,r,o)}catch(e){}if("get"in o||"set"in o)throw new i("Accessors not supported");return"value"in o&&(e[r]=o.value),e},objectDefineProperty}function requireCreateNonEnumerableProperty(){if(hasRequiredCreateNonEnumerableProperty)return createNonEnumerableProperty;hasRequiredCreateNonEnumerableProperty=1;var e=requireDescriptors(),t=requireObjectDefineProperty(),r=requireCreatePropertyDescriptor();return createNonEnumerableProperty=e?function(e,n,s){return t.f(e,n,r(1,s))}:function(e,t,r){return e[t]=r,e}}function require_export(){if(hasRequired_export)return _export;hasRequired_export=1;var e=requireGlobalThis(),t=requireFunctionApply(),r=requireFunctionUncurryThisClause(),n=requireIsCallable(),s=requireObjectGetOwnPropertyDescriptor().f,i=requireIsForced(),a=requirePath(),o=requireFunctionBindContext(),u=requireCreateNonEnumerableProperty(),l=requireHasOwnProperty(),c=function(e){var r=function(n,s,i){if(this instanceof r){switch(arguments.length){case 0:return new e;case 1:return new e(n);case 2:return new e(n,s)}return new e(n,s,i)}return t(e,this,arguments)};return r.prototype=e.prototype,r};return _export=function(t,d){var _,h,m,p,f,y,g,b,E,q=t.target,w=t.global,R=t.stat,v=t.proto,S=w?e:R?e[q]:e[q]&&e[q].prototype,O=w?a:a[q]||u(a,q,{})[q],A=O.prototype;for(p in d)h=!(_=i(w?p:q+(R?".":"#")+p,t.forced))&&S&&l(S,p),y=O[p],h&&(g=t.dontCallGetSet?(E=s(S,p))&&E.value:S[p]),f=h&&g?g:d[p],(_||v||typeof y!=typeof f)&&(b=t.bind&&h?o(f,e):t.wrap&&h?c(f):v&&n(f)?r(f):f,(t.sham||f&&f.sham||y&&y.sham)&&u(b,"sham",!0),u(O,p,b),v&&(l(a,m=q+"Prototype")||u(a,m,{}),u(a[m],p,f),t.real&&A&&(_||!A[p])&&u(A,p,f)))}}function requireSharedKey(){if(hasRequiredSharedKey)return sharedKey;hasRequiredSharedKey=1;var e=requireShared(),t=requireUid(),r=e("keys");return sharedKey=function(e){return r[e]||(r[e]=t(e))}}function requireCorrectPrototypeGetter(){return hasRequiredCorrectPrototypeGetter||(hasRequiredCorrectPrototypeGetter=1,correctPrototypeGetter=!requireFails()((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))),correctPrototypeGetter}function requireObjectGetPrototypeOf(){if(hasRequiredObjectGetPrototypeOf)return objectGetPrototypeOf;hasRequiredObjectGetPrototypeOf=1;var e=requireHasOwnProperty(),t=requireIsCallable(),r=requireToObject(),n=requireSharedKey(),s=requireCorrectPrototypeGetter(),i=n("IE_PROTO"),a=Object,o=a.prototype;return objectGetPrototypeOf=s?a.getPrototypeOf:function(n){var s=r(n);if(e(s,i))return s[i];var u=s.constructor;return t(u)&&s instanceof u?u.prototype:s instanceof a?o:null}}function requireFunctionUncurryThisAccessor(){if(hasRequiredFunctionUncurryThisAccessor)return functionUncurryThisAccessor;hasRequiredFunctionUncurryThisAccessor=1;var e=requireFunctionUncurryThis(),t=requireACallable();return functionUncurryThisAccessor=function(r,n,s){try{return e(t(Object.getOwnPropertyDescriptor(r,n)[s]))}catch(e){}}}function requireIsPossiblePrototype(){if(hasRequiredIsPossiblePrototype)return isPossiblePrototype;hasRequiredIsPossiblePrototype=1;var e=requireIsObject();return isPossiblePrototype=function(t){return e(t)||null===t}}function requireAPossiblePrototype(){if(hasRequiredAPossiblePrototype)return aPossiblePrototype;hasRequiredAPossiblePrototype=1;var e=requireIsPossiblePrototype(),t=String,r=TypeError;return aPossiblePrototype=function(n){if(e(n))return n;throw new r("Can't set "+t(n)+" as a prototype")}}function requireObjectSetPrototypeOf(){if(hasRequiredObjectSetPrototypeOf)return objectSetPrototypeOf;hasRequiredObjectSetPrototypeOf=1;var e=requireFunctionUncurryThisAccessor(),t=requireIsObject(),r=requireRequireObjectCoercible(),n=requireAPossiblePrototype();return objectSetPrototypeOf=Object.setPrototypeOf||("__proto__"in{}?function(){var s,i=!1,a={};try{(s=e(Object.prototype,"__proto__","set"))(a,[]),i=a instanceof Array}catch(e){}return function(e,a){return r(e),n(a),t(e)?(i?s(e,a):e.__proto__=a,e):e}}():void 0)}var objectGetOwnPropertyNames={},mathTrunc,hasRequiredMathTrunc,toIntegerOrInfinity,hasRequiredToIntegerOrInfinity,toAbsoluteIndex,hasRequiredToAbsoluteIndex,toLength,hasRequiredToLength,lengthOfArrayLike,hasRequiredLengthOfArrayLike,arrayIncludes,hasRequiredArrayIncludes,hiddenKeys,hasRequiredHiddenKeys,objectKeysInternal,hasRequiredObjectKeysInternal,enumBugKeys,hasRequiredEnumBugKeys,hasRequiredObjectGetOwnPropertyNames;function requireMathTrunc(){if(hasRequiredMathTrunc)return mathTrunc;hasRequiredMathTrunc=1;var e=Math.ceil,t=Math.floor;return mathTrunc=Math.trunc||function(r){var n=+r;return(n>0?t:e)(n)}}function requireToIntegerOrInfinity(){if(hasRequiredToIntegerOrInfinity)return toIntegerOrInfinity;hasRequiredToIntegerOrInfinity=1;var e=requireMathTrunc();return toIntegerOrInfinity=function(t){var r=+t;return r!=r||0===r?0:e(r)}}function requireToAbsoluteIndex(){if(hasRequiredToAbsoluteIndex)return toAbsoluteIndex;hasRequiredToAbsoluteIndex=1;var e=requireToIntegerOrInfinity(),t=Math.max,r=Math.min;return toAbsoluteIndex=function(n,s){var i=e(n);return i<0?t(i+s,0):r(i,s)}}function requireToLength(){if(hasRequiredToLength)return toLength;hasRequiredToLength=1;var e=requireToIntegerOrInfinity(),t=Math.min;return toLength=function(r){var n=e(r);return n>0?t(n,9007199254740991):0}}function requireLengthOfArrayLike(){if(hasRequiredLengthOfArrayLike)return lengthOfArrayLike;hasRequiredLengthOfArrayLike=1;var e=requireToLength();return lengthOfArrayLike=function(t){return e(t.length)}}function requireArrayIncludes(){if(hasRequiredArrayIncludes)return arrayIncludes;hasRequiredArrayIncludes=1;var e=requireToIndexedObject(),t=requireToAbsoluteIndex(),r=requireLengthOfArrayLike(),n=function(n){return function(s,i,a){var o=e(s),u=r(o);if(0===u)return!n&&-1;var l,c=t(a,u);if(n&&i!=i){for(;u>c;)if((l=o[c++])!=l)return!0}else for(;u>c;c++)if((n||c in o)&&o[c]===i)return n||c||0;return!n&&-1}};return arrayIncludes={includes:n(!0),indexOf:n(!1)}}function requireHiddenKeys(){return hasRequiredHiddenKeys?hiddenKeys:(hasRequiredHiddenKeys=1,hiddenKeys={})}function requireObjectKeysInternal(){if(hasRequiredObjectKeysInternal)return objectKeysInternal;hasRequiredObjectKeysInternal=1;var e=requireFunctionUncurryThis(),t=requireHasOwnProperty(),r=requireToIndexedObject(),n=requireArrayIncludes().indexOf,s=requireHiddenKeys(),i=e([].push);return objectKeysInternal=function(e,a){var o,u=r(e),l=0,c=[];for(o in u)!t(s,o)&&t(u,o)&&i(c,o);for(;a.length>l;)t(u,o=a[l++])&&(~n(c,o)||i(c,o));return c}}function requireEnumBugKeys(){return hasRequiredEnumBugKeys?enumBugKeys:(hasRequiredEnumBugKeys=1,enumBugKeys=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"])}function requireObjectGetOwnPropertyNames(){if(hasRequiredObjectGetOwnPropertyNames)return objectGetOwnPropertyNames;hasRequiredObjectGetOwnPropertyNames=1;var e=requireObjectKeysInternal(),t=requireEnumBugKeys().concat("length","prototype");return objectGetOwnPropertyNames.f=Object.getOwnPropertyNames||function(r){return e(r,t)},objectGetOwnPropertyNames}var objectGetOwnPropertySymbols={},hasRequiredObjectGetOwnPropertySymbols,ownKeys,hasRequiredOwnKeys,copyConstructorProperties,hasRequiredCopyConstructorProperties;function requireObjectGetOwnPropertySymbols(){return hasRequiredObjectGetOwnPropertySymbols||(hasRequiredObjectGetOwnPropertySymbols=1,objectGetOwnPropertySymbols.f=Object.getOwnPropertySymbols),objectGetOwnPropertySymbols}function requireOwnKeys(){if(hasRequiredOwnKeys)return ownKeys;hasRequiredOwnKeys=1;var e=requireGetBuiltIn(),t=requireFunctionUncurryThis(),r=requireObjectGetOwnPropertyNames(),n=requireObjectGetOwnPropertySymbols(),s=requireAnObject(),i=t([].concat);return ownKeys=e("Reflect","ownKeys")||function(e){var t=r.f(s(e)),a=n.f;return a?i(t,a(e)):t},ownKeys}function requireCopyConstructorProperties(){if(hasRequiredCopyConstructorProperties)return copyConstructorProperties;hasRequiredCopyConstructorProperties=1;var e=requireHasOwnProperty(),t=requireOwnKeys(),r=requireObjectGetOwnPropertyDescriptor(),n=requireObjectDefineProperty();return copyConstructorProperties=function(s,i,a){for(var o=t(i),u=n.f,l=r.f,c=0;c<o.length;c++){var d=o[c];e(s,d)||a&&e(a,d)||u(s,d,l(i,d))}},copyConstructorProperties}var objectDefineProperties={},objectKeys,hasRequiredObjectKeys,hasRequiredObjectDefineProperties,html,hasRequiredHtml,objectCreate,hasRequiredObjectCreate,installErrorCause,hasRequiredInstallErrorCause,errorStackClear,hasRequiredErrorStackClear,errorStackInstallable,hasRequiredErrorStackInstallable,errorStackInstall,hasRequiredErrorStackInstall,iterators,hasRequiredIterators,isArrayIteratorMethod,hasRequiredIsArrayIteratorMethod,toStringTagSupport,hasRequiredToStringTagSupport,classof,hasRequiredClassof,getIteratorMethod,hasRequiredGetIteratorMethod,getIterator,hasRequiredGetIterator,iteratorClose,hasRequiredIteratorClose,iterate,hasRequiredIterate,toString,hasRequiredToString,normalizeStringArgument,hasRequiredNormalizeStringArgument,hasRequiredEs_aggregateError_constructor,hasRequiredEs_aggregateError,hasRequiredEsnext_aggregateError;function requireObjectKeys(){if(hasRequiredObjectKeys)return objectKeys;hasRequiredObjectKeys=1;var e=requireObjectKeysInternal(),t=requireEnumBugKeys();return objectKeys=Object.keys||function(r){return e(r,t)}}function requireObjectDefineProperties(){if(hasRequiredObjectDefineProperties)return objectDefineProperties;hasRequiredObjectDefineProperties=1;var e=requireDescriptors(),t=requireV8PrototypeDefineBug(),r=requireObjectDefineProperty(),n=requireAnObject(),s=requireToIndexedObject(),i=requireObjectKeys();return objectDefineProperties.f=e&&!t?Object.defineProperties:function(e,t){n(e);for(var a,o=s(t),u=i(t),l=u.length,c=0;l>c;)r.f(e,a=u[c++],o[a]);return e},objectDefineProperties}function requireHtml(){return hasRequiredHtml?html:(hasRequiredHtml=1,html=requireGetBuiltIn()("document","documentElement"))}function requireObjectCreate(){if(hasRequiredObjectCreate)return objectCreate;hasRequiredObjectCreate=1;var e,t=requireAnObject(),r=requireObjectDefineProperties(),n=requireEnumBugKeys(),s=requireHiddenKeys(),i=requireHtml(),a=requireDocumentCreateElement(),o="prototype",u="script",l=requireSharedKey()("IE_PROTO"),c=function(){},d=function(e){return"<"+u+">"+e+"</"+u+">"},_=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},h=function(){try{e=new ActiveXObject("htmlfile")}catch(e){}var t,r,s;h="undefined"!=typeof document?document.domain&&e?_(e):(r=a("iframe"),s="java"+u+":",r.style.display="none",i.appendChild(r),r.src=String(s),(t=r.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):_(e);for(var l=n.length;l--;)delete h[o][n[l]];return h()};return s[l]=!0,objectCreate=Object.create||function(e,n){var s;return null!==e?(c[o]=t(e),s=new c,c[o]=null,s[l]=e):s=h(),void 0===n?s:r.f(s,n)}}function requireInstallErrorCause(){if(hasRequiredInstallErrorCause)return installErrorCause;hasRequiredInstallErrorCause=1;var e=requireIsObject(),t=requireCreateNonEnumerableProperty();return installErrorCause=function(r,n){e(n)&&"cause"in n&&t(r,"cause",n.cause)}}function requireErrorStackClear(){if(hasRequiredErrorStackClear)return errorStackClear;hasRequiredErrorStackClear=1;var e=Error,t=requireFunctionUncurryThis()("".replace),r=String(new e("zxcasd").stack),n=/\n\s*at [^:]*:[^\n]*/,s=n.test(r);return errorStackClear=function(r,i){if(s&&"string"==typeof r&&!e.prepareStackTrace)for(;i--;)r=t(r,n,"");return r}}function requireErrorStackInstallable(){if(hasRequiredErrorStackInstallable)return errorStackInstallable;hasRequiredErrorStackInstallable=1;var e=requireFails(),t=requireCreatePropertyDescriptor();return errorStackInstallable=!e((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",t(1,7)),7!==e.stack)}))}function requireErrorStackInstall(){if(hasRequiredErrorStackInstall)return errorStackInstall;hasRequiredErrorStackInstall=1;var e=requireCreateNonEnumerableProperty(),t=requireErrorStackClear(),r=requireErrorStackInstallable(),n=Error.captureStackTrace;return errorStackInstall=function(s,i,a,o){r&&(n?n(s,i):e(s,"stack",t(a,o)))}}function requireIterators(){return hasRequiredIterators?iterators:(hasRequiredIterators=1,iterators={})}function requireIsArrayIteratorMethod(){if(hasRequiredIsArrayIteratorMethod)return isArrayIteratorMethod;hasRequiredIsArrayIteratorMethod=1;var e=requireWellKnownSymbol(),t=requireIterators(),r=e("iterator"),n=Array.prototype;return isArrayIteratorMethod=function(e){return void 0!==e&&(t.Array===e||n[r]===e)}}function requireToStringTagSupport(){if(hasRequiredToStringTagSupport)return toStringTagSupport;hasRequiredToStringTagSupport=1;var e={};return e[requireWellKnownSymbol()("toStringTag")]="z",toStringTagSupport="[object z]"===String(e)}function requireClassof(){if(hasRequiredClassof)return classof;hasRequiredClassof=1;var e=requireToStringTagSupport(),t=requireIsCallable(),r=requireClassofRaw(),n=requireWellKnownSymbol()("toStringTag"),s=Object,i="Arguments"===r(function(){return arguments}());return classof=e?r:function(e){var a,o,u;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(o=function(e,t){try{return e[t]}catch(e){}}(a=s(e),n))?o:i?r(a):"Object"===(u=r(a))&&t(a.callee)?"Arguments":u}}function requireGetIteratorMethod(){if(hasRequiredGetIteratorMethod)return getIteratorMethod;hasRequiredGetIteratorMethod=1;var e=requireClassof(),t=requireGetMethod(),r=requireIsNullOrUndefined(),n=requireIterators(),s=requireWellKnownSymbol()("iterator");return getIteratorMethod=function(i){if(!r(i))return t(i,s)||t(i,"@@iterator")||n[e(i)]}}function requireGetIterator(){if(hasRequiredGetIterator)return getIterator;hasRequiredGetIterator=1;var e=requireFunctionCall(),t=requireACallable(),r=requireAnObject(),n=requireTryToString(),s=requireGetIteratorMethod(),i=TypeError;return getIterator=function(a,o){var u=arguments.length<2?s(a):o;if(t(u))return r(e(u,a));throw new i(n(a)+" is not iterable")},getIterator}function requireIteratorClose(){if(hasRequiredIteratorClose)return iteratorClose;hasRequiredIteratorClose=1;var e=requireFunctionCall(),t=requireAnObject(),r=requireGetMethod();return iteratorClose=function(n,s,i){var a,o;t(n);try{if(!(a=r(n,"return"))){if("throw"===s)throw i;return i}a=e(a,n)}catch(e){o=!0,a=e}if("throw"===s)throw i;if(o)throw a;return t(a),i}}function requireIterate(){if(hasRequiredIterate)return iterate;hasRequiredIterate=1;var e=requireFunctionBindContext(),t=requireFunctionCall(),r=requireAnObject(),n=requireTryToString(),s=requireIsArrayIteratorMethod(),i=requireLengthOfArrayLike(),a=requireObjectIsPrototypeOf(),o=requireGetIterator(),u=requireGetIteratorMethod(),l=requireIteratorClose(),c=TypeError,d=function(e,t){this.stopped=e,this.result=t},_=d.prototype;return iterate=function(h,m,p){var f,y,g,b,E,q,w,R=p&&p.that,v=!(!p||!p.AS_ENTRIES),S=!(!p||!p.IS_RECORD),O=!(!p||!p.IS_ITERATOR),A=!(!p||!p.INTERRUPTED),I=e(m,R),T=function(e){return f&&l(f,"normal",e),new d(!0,e)},x=function(e){return v?(r(e),A?I(e[0],e[1],T):I(e[0],e[1])):A?I(e,T):I(e)};if(S)f=h.iterator;else if(O)f=h;else{if(!(y=u(h)))throw new c(n(h)+" is not iterable");if(s(y)){for(g=0,b=i(h);b>g;g++)if((E=x(h[g]))&&a(_,E))return E;return new d(!1)}f=o(h,y)}for(q=S?h.next:f.next;!(w=t(q,f)).done;){try{E=x(w.value)}catch(e){l(f,"throw",e)}if("object"==typeof E&&E&&a(_,E))return E}return new d(!1)}}function requireToString(){if(hasRequiredToString)return toString;hasRequiredToString=1;var e=requireClassof(),t=String;return toString=function(r){if("Symbol"===e(r))throw new TypeError("Cannot convert a Symbol value to a string");return t(r)}}function requireNormalizeStringArgument(){if(hasRequiredNormalizeStringArgument)return normalizeStringArgument;hasRequiredNormalizeStringArgument=1;var e=requireToString();return normalizeStringArgument=function(t,r){return void 0===t?arguments.length<2?"":r:e(t)},normalizeStringArgument}function requireEs_aggregateError_constructor(){if(hasRequiredEs_aggregateError_constructor)return es_aggregateError_constructor;hasRequiredEs_aggregateError_constructor=1;var e=require_export(),t=requireObjectIsPrototypeOf(),r=requireObjectGetPrototypeOf(),n=requireObjectSetPrototypeOf(),s=requireCopyConstructorProperties(),i=requireObjectCreate(),a=requireCreateNonEnumerableProperty(),o=requireCreatePropertyDescriptor(),u=requireInstallErrorCause(),l=requireErrorStackInstall(),c=requireIterate(),d=requireNormalizeStringArgument(),_=requireWellKnownSymbol()("toStringTag"),h=Error,m=[].push,p=function(e,s){var o,y=t(f,this);n?o=n(new h,y?r(this):f):(o=y?this:i(f),a(o,_,"Error")),void 0!==s&&a(o,"message",d(s)),l(o,p,o.stack,1),arguments.length>2&&u(o,arguments[2]);var g=[];return c(e,m,{that:g}),a(o,"errors",g),o};n?n(p,h):s(p,h,{name:!0});var f=p.prototype=i(h.prototype,{constructor:o(1,p),message:o(1,""),name:o(1,"AggregateError")});return e({global:!0,constructor:!0,arity:2},{AggregateError:p}),es_aggregateError_constructor}function requireEs_aggregateError(){return hasRequiredEs_aggregateError||(hasRequiredEs_aggregateError=1,requireEs_aggregateError_constructor()),es_aggregateError}function requireEsnext_aggregateError(){return hasRequiredEsnext_aggregateError||(hasRequiredEsnext_aggregateError=1,requireEs_aggregateError()),esnext_aggregateError}var es_error_cause={},proxyAccessor,hasRequiredProxyAccessor,inheritIfRequired,hasRequiredInheritIfRequired,wrapErrorConstructorWithCause,hasRequiredWrapErrorConstructorWithCause,hasRequiredEs_error_cause;function requireProxyAccessor(){if(hasRequiredProxyAccessor)return proxyAccessor;hasRequiredProxyAccessor=1;var e=requireObjectDefineProperty().f;return proxyAccessor=function(t,r,n){n in t||e(t,n,{configurable:!0,get:function(){return r[n]},set:function(e){r[n]=e}})}}function requireInheritIfRequired(){if(hasRequiredInheritIfRequired)return inheritIfRequired;hasRequiredInheritIfRequired=1;var e=requireIsCallable(),t=requireIsObject(),r=requireObjectSetPrototypeOf();return inheritIfRequired=function(n,s,i){var a,o;return r&&e(a=s.constructor)&&a!==i&&t(o=a.prototype)&&o!==i.prototype&&r(n,o),n}}function requireWrapErrorConstructorWithCause(){if(hasRequiredWrapErrorConstructorWithCause)return wrapErrorConstructorWithCause;hasRequiredWrapErrorConstructorWithCause=1;var e=requireGetBuiltIn(),t=requireHasOwnProperty(),r=requireCreateNonEnumerableProperty(),n=requireObjectIsPrototypeOf(),s=requireObjectSetPrototypeOf(),i=requireCopyConstructorProperties(),a=requireProxyAccessor(),o=requireInheritIfRequired(),u=requireNormalizeStringArgument(),l=requireInstallErrorCause(),c=requireErrorStackInstall(),d=requireDescriptors(),_=requireIsPure();return wrapErrorConstructorWithCause=function(h,m,p,f){var y="stackTraceLimit",g=f?2:1,b=h.split("."),E=b[b.length-1],q=e.apply(null,b);if(q){var w=q.prototype;if(!_&&t(w,"cause")&&delete w.cause,!p)return q;var R=e("Error"),v=m((function(e,t){var s=u(f?t:e,void 0),i=f?new q(e):new q;return void 0!==s&&r(i,"message",s),c(i,v,i.stack,2),this&&n(w,this)&&o(i,this,v),arguments.length>g&&l(i,arguments[g]),i}));if(v.prototype=w,"Error"!==E?s?s(v,R):i(v,R,{name:!0}):d&&y in q&&(a(v,q,y),a(v,q,"prepareStackTrace")),i(v,q),!_)try{w.name!==E&&r(w,"name",E),w.constructor=v}catch(e){}return v}},wrapErrorConstructorWithCause}function requireEs_error_cause(){if(hasRequiredEs_error_cause)return es_error_cause;hasRequiredEs_error_cause=1;var e=require_export(),t=requireGlobalThis(),r=requireFunctionApply(),n=requireWrapErrorConstructorWithCause(),s="WebAssembly",i=t[s],a=7!==new Error("e",{cause:7}).cause,o=function(t,r){var s={};s[t]=n(t,r,a),e({global:!0,constructor:!0,arity:1,forced:a},s)},u=function(t,r){if(i&&i[t]){var o={};o[t]=n(s+"."+t,r,a),e({target:s,stat:!0,constructor:!0,arity:1,forced:a},o)}};return o("Error",(function(e){return function(t){return r(e,this,arguments)}})),o("EvalError",(function(e){return function(t){return r(e,this,arguments)}})),o("RangeError",(function(e){return function(t){return r(e,this,arguments)}})),o("ReferenceError",(function(e){return function(t){return r(e,this,arguments)}})),o("SyntaxError",(function(e){return function(t){return r(e,this,arguments)}})),o("TypeError",(function(e){return function(t){return r(e,this,arguments)}})),o("URIError",(function(e){return function(t){return r(e,this,arguments)}})),u("CompileError",(function(e){return function(t){return r(e,this,arguments)}})),u("LinkError",(function(e){return function(t){return r(e,this,arguments)}})),u("RuntimeError",(function(e){return function(t){return r(e,this,arguments)}})),es_error_cause}var es_aggregateError_cause={},hasRequiredEs_aggregateError_cause,addToUnscopables,hasRequiredAddToUnscopables,weakMapBasicDetection,hasRequiredWeakMapBasicDetection,internalState,hasRequiredInternalState,functionName,hasRequiredFunctionName,defineBuiltIn,hasRequiredDefineBuiltIn,iteratorsCore,hasRequiredIteratorsCore,objectToString,hasRequiredObjectToString,setToStringTag,hasRequiredSetToStringTag,iteratorCreateConstructor,hasRequiredIteratorCreateConstructor,iteratorDefine,hasRequiredIteratorDefine,createIterResultObject,hasRequiredCreateIterResultObject,es_array_iterator,hasRequiredEs_array_iterator;function requireEs_aggregateError_cause(){if(hasRequiredEs_aggregateError_cause)return es_aggregateError_cause;hasRequiredEs_aggregateError_cause=1;var e=require_export(),t=requireGetBuiltIn(),r=requireFunctionApply(),n=requireFails(),s=requireWrapErrorConstructorWithCause(),i="AggregateError",a=t(i),o=!n((function(){return 1!==a([1]).errors[0]}))&&n((function(){return 7!==a([1],i,{cause:7}).cause}));return e({global:!0,constructor:!0,arity:2,forced:o},{AggregateError:s(i,(function(e){return function(t,n){return r(e,this,arguments)}}),o,!0)}),es_aggregateError_cause}function requireAddToUnscopables(){return hasRequiredAddToUnscopables?addToUnscopables:(hasRequiredAddToUnscopables=1,addToUnscopables=function(){})}function requireWeakMapBasicDetection(){if(hasRequiredWeakMapBasicDetection)return weakMapBasicDetection;hasRequiredWeakMapBasicDetection=1;var e=requireGlobalThis(),t=requireIsCallable(),r=e.WeakMap;return weakMapBasicDetection=t(r)&&/native code/.test(String(r))}function requireInternalState(){if(hasRequiredInternalState)return internalState;hasRequiredInternalState=1;var e,t,r,n=requireWeakMapBasicDetection(),s=requireGlobalThis(),i=requireIsObject(),a=requireCreateNonEnumerableProperty(),o=requireHasOwnProperty(),u=requireSharedStore(),l=requireSharedKey(),c=requireHiddenKeys(),d="Object already initialized",_=s.TypeError,h=s.WeakMap;if(n||u.state){var m=u.state||(u.state=new h);m.get=m.get,m.has=m.has,m.set=m.set,e=function(e,t){if(m.has(e))throw new _(d);return t.facade=e,m.set(e,t),t},t=function(e){return m.get(e)||{}},r=function(e){return m.has(e)}}else{var p=l("state");c[p]=!0,e=function(e,t){if(o(e,p))throw new _(d);return t.facade=e,a(e,p,t),t},t=function(e){return o(e,p)?e[p]:{}},r=function(e){return o(e,p)}}return internalState={set:e,get:t,has:r,enforce:function(n){return r(n)?t(n):e(n,{})},getterFor:function(e){return function(r){var n;if(!i(r)||(n=t(r)).type!==e)throw new _("Incompatible receiver, "+e+" required");return n}}}}function requireFunctionName(){if(hasRequiredFunctionName)return functionName;hasRequiredFunctionName=1;var e=requireDescriptors(),t=requireHasOwnProperty(),r=Function.prototype,n=e&&Object.getOwnPropertyDescriptor,s=t(r,"name"),i=s&&"something"===function(){}.name,a=s&&(!e||e&&n(r,"name").configurable);return functionName={EXISTS:s,PROPER:i,CONFIGURABLE:a}}function requireDefineBuiltIn(){if(hasRequiredDefineBuiltIn)return defineBuiltIn;hasRequiredDefineBuiltIn=1;var e=requireCreateNonEnumerableProperty();return defineBuiltIn=function(t,r,n,s){return s&&s.enumerable?t[r]=n:e(t,r,n),t}}function requireIteratorsCore(){if(hasRequiredIteratorsCore)return iteratorsCore;hasRequiredIteratorsCore=1;var e,t,r,n=requireFails(),s=requireIsCallable(),i=requireIsObject(),a=requireObjectCreate(),o=requireObjectGetPrototypeOf(),u=requireDefineBuiltIn(),l=requireWellKnownSymbol(),c=requireIsPure(),d=l("iterator"),_=!1;return[].keys&&("next"in(r=[].keys())?(t=o(o(r)))!==Object.prototype&&(e=t):_=!0),!i(e)||n((function(){var t={};return e[d].call(t)!==t}))?e={}:c&&(e=a(e)),s(e[d])||u(e,d,(function(){return this})),iteratorsCore={IteratorPrototype:e,BUGGY_SAFARI_ITERATORS:_}}function requireObjectToString(){if(hasRequiredObjectToString)return objectToString;hasRequiredObjectToString=1;var e=requireToStringTagSupport(),t=requireClassof();return objectToString=e?{}.toString:function(){return"[object "+t(this)+"]"}}function requireSetToStringTag(){if(hasRequiredSetToStringTag)return setToStringTag;hasRequiredSetToStringTag=1;var e=requireToStringTagSupport(),t=requireObjectDefineProperty().f,r=requireCreateNonEnumerableProperty(),n=requireHasOwnProperty(),s=requireObjectToString(),i=requireWellKnownSymbol()("toStringTag");return setToStringTag=function(a,o,u,l){var c=u?a:a&&a.prototype;c&&(n(c,i)||t(c,i,{configurable:!0,value:o}),l&&!e&&r(c,"toString",s))}}function requireIteratorCreateConstructor(){if(hasRequiredIteratorCreateConstructor)return iteratorCreateConstructor;hasRequiredIteratorCreateConstructor=1;var e=requireIteratorsCore().IteratorPrototype,t=requireObjectCreate(),r=requireCreatePropertyDescriptor(),n=requireSetToStringTag(),s=requireIterators(),i=function(){return this};return iteratorCreateConstructor=function(a,o,u,l){var c=o+" Iterator";return a.prototype=t(e,{next:r(+!l,u)}),n(a,c,!1,!0),s[c]=i,a}}function requireIteratorDefine(){if(hasRequiredIteratorDefine)return iteratorDefine;hasRequiredIteratorDefine=1;var e=require_export(),t=requireFunctionCall(),r=requireIsPure(),n=requireFunctionName(),s=requireIsCallable(),i=requireIteratorCreateConstructor(),a=requireObjectGetPrototypeOf(),o=requireObjectSetPrototypeOf(),u=requireSetToStringTag(),l=requireCreateNonEnumerableProperty(),c=requireDefineBuiltIn(),d=requireWellKnownSymbol(),_=requireIterators(),h=requireIteratorsCore(),m=n.PROPER,p=n.CONFIGURABLE,f=h.IteratorPrototype,y=h.BUGGY_SAFARI_ITERATORS,g=d("iterator"),b="keys",E="values",q="entries",w=function(){return this};return iteratorDefine=function(n,d,h,R,v,S,O){i(h,d,R);var A,I,T,x=function(e){if(e===v&&N)return N;if(!y&&e&&e in C)return C[e];switch(e){case b:case E:case q:return function(){return new h(this,e)}}return function(){return new h(this)}},P=d+" Iterator",M=!1,C=n.prototype,j=C[g]||C["@@iterator"]||v&&C[v],N=!y&&j||x(v),F="Array"===d&&C.entries||j;if(F&&(A=a(F.call(new n)))!==Object.prototype&&A.next&&(r||a(A)===f||(o?o(A,f):s(A[g])||c(A,g,w)),u(A,P,!0,!0),r&&(_[P]=w)),m&&v===E&&j&&j.name!==E&&(!r&&p?l(C,"name",E):(M=!0,N=function(){return t(j,this)})),v)if(I={values:x(E),keys:S?N:x(b),entries:x(q)},O)for(T in I)(y||M||!(T in C))&&c(C,T,I[T]);else e({target:d,proto:!0,forced:y||M},I);return r&&!O||C[g]===N||c(C,g,N,{name:v}),_[d]=N,I}}function requireCreateIterResultObject(){return hasRequiredCreateIterResultObject?createIterResultObject:(hasRequiredCreateIterResultObject=1,createIterResultObject=function(e,t){return{value:e,done:t}})}function requireEs_array_iterator(){if(hasRequiredEs_array_iterator)return es_array_iterator;hasRequiredEs_array_iterator=1;var e=requireToIndexedObject(),t=requireAddToUnscopables(),r=requireIterators(),n=requireInternalState(),s=requireObjectDefineProperty().f,i=requireIteratorDefine(),a=requireCreateIterResultObject(),o=requireIsPure(),u=requireDescriptors(),l="Array Iterator",c=n.set,d=n.getterFor(l);es_array_iterator=i(Array,"Array",(function(t,r){c(this,{type:l,target:e(t),index:0,kind:r})}),(function(){var e=d(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,a(void 0,!0);switch(e.kind){case"keys":return a(r,!1);case"values":return a(t[r],!1)}return a([r,t[r]],!1)}),"values");var _=r.Arguments=r.Array;if(t("keys"),t("values"),t("entries"),!o&&u&&"values"!==_.name)try{s(_,"name",{value:"values"})}catch(e){}return es_array_iterator}var es_string_iterator={},stringMultibyte,hasRequiredStringMultibyte,hasRequiredEs_string_iterator,aggregateError$5,hasRequiredAggregateError$5;function requireStringMultibyte(){if(hasRequiredStringMultibyte)return stringMultibyte;hasRequiredStringMultibyte=1;var e=requireFunctionUncurryThis(),t=requireToIntegerOrInfinity(),r=requireToString(),n=requireRequireObjectCoercible(),s=e("".charAt),i=e("".charCodeAt),a=e("".slice),o=function(e){return function(o,u){var l,c,d=r(n(o)),_=t(u),h=d.length;return _<0||_>=h?e?"":void 0:(l=i(d,_))<55296||l>56319||_+1===h||(c=i(d,_+1))<56320||c>57343?e?s(d,_):l:e?a(d,_,_+2):c-56320+(l-55296<<10)+65536}};return stringMultibyte={codeAt:o(!1),charAt:o(!0)}}function requireEs_string_iterator(){if(hasRequiredEs_string_iterator)return es_string_iterator;hasRequiredEs_string_iterator=1;var e=requireStringMultibyte().charAt,t=requireToString(),r=requireInternalState(),n=requireIteratorDefine(),s=requireCreateIterResultObject(),i="String Iterator",a=r.set,o=r.getterFor(i);return n(String,"String",(function(e){a(this,{type:i,string:t(e),index:0})}),(function(){var t,r=o(this),n=r.string,i=r.index;return i>=n.length?s(void 0,!0):(t=e(n,i),r.index+=t.length,s(t,!1))})),es_string_iterator}function requireAggregateError$5(){return hasRequiredAggregateError$5?aggregateError$5:(hasRequiredAggregateError$5=1,requireEs_error_cause(),requireEs_aggregateError(),requireEs_aggregateError_cause(),requireEs_array_iterator(),requireEs_string_iterator(),aggregateError$5=requirePath().AggregateError)}var web_domCollections_iterator={},domIterables,hasRequiredDomIterables,hasRequiredWeb_domCollections_iterator,aggregateError$4,hasRequiredAggregateError$4,aggregateError$3,hasRequiredAggregateError$3,aggregateError$2,hasRequiredAggregateError$2,aggregateError$1,hasRequiredAggregateError$1,aggregateError,hasRequiredAggregateError;function requireDomIterables(){return hasRequiredDomIterables?domIterables:(hasRequiredDomIterables=1,domIterables={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})}function requireWeb_domCollections_iterator(){if(hasRequiredWeb_domCollections_iterator)return web_domCollections_iterator;hasRequiredWeb_domCollections_iterator=1,requireEs_array_iterator();var e=requireDomIterables(),t=requireGlobalThis(),r=requireSetToStringTag(),n=requireIterators();for(var s in e)r(t[s],s),n[s]=n.Array;return web_domCollections_iterator}function requireAggregateError$4(){if(hasRequiredAggregateError$4)return aggregateError$4;hasRequiredAggregateError$4=1,requireEsnext_aggregateError();var e=requireAggregateError$5();return requireWeb_domCollections_iterator(),aggregateError$4=e}function requireAggregateError$3(){return hasRequiredAggregateError$3?aggregateError$3:(hasRequiredAggregateError$3=1,aggregateError$3=requireAggregateError$4())}function requireAggregateError$2(){return hasRequiredAggregateError$2?aggregateError$2:(hasRequiredAggregateError$2=1,requireEsnext_aggregateError(),aggregateError$2=requireAggregateError$3())}function requireAggregateError$1(){return hasRequiredAggregateError$1?aggregateError$1:(hasRequiredAggregateError$1=1,aggregateError$1=requireAggregateError$2())}function requireAggregateError(){return hasRequiredAggregateError?aggregateError:(hasRequiredAggregateError=1,aggregateError=requireAggregateError$1())}var aggregateErrorExports=requireAggregateError();const _AggregateError=getDefaultExportFromCjs(aggregateErrorExports);class ApiDOMAggregateError extends _AggregateError{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}class ApiDOMError extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ApiDOMAggregateError,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}`)}}}class ApiDOMStructuredError extends ApiDOMError{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}}class UnsupportedOperationError extends ApiDOMError{}class NotImplementedError extends UnsupportedOperationError{}class Literal extends Node{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}}let Error$1=class extends Node{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};class ParseResult extends Node{static type="parseResult";get rootNode(){return head(this.children)}}const getVisitFn=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},BREAK={},getNodeType$4=e=>null==e?void 0:e.type,isNode$3=e=>"string"==typeof getNodeType$4(e),cloneNode$1=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),mergeAll=(e,{visitFnGetter:t=getVisitFn,nodeTypeGetter:r=getNodeType$4,breakSymbol:n=BREAK,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{enter(l,c,d,_,h,m){let p=l,f=!1;const y={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let l=0;l<e.length;l+=1)if(u[l]===o){const o=t(e[l],r(p),!1);if("function"==typeof o){const t=o.call(e[l],p,c,d,_,h,y);if("function"==typeof(null==t?void 0:t.then))throw new ApiDOMStructuredError("Async visitor not supported in sync mode",{visitor:e[l],visitFn:o});if(t===i)u[l]=p;else if(t===n)u[l]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;p=t,f=!0}}}}return f?p:void 0},leave(s,a,l,c,d,_){let h=s;const m={..._,replaceWith(e,t){_.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(u[s]===o){const o=t(e[s],r(h),!0);if("function"==typeof o){const t=o.call(e[s],h,a,l,c,d,m);if("function"==typeof(null==t?void 0:t.then))throw new ApiDOMStructuredError("Async visitor not supported in sync mode",{visitor:e[s],visitFn:o});if(t===n)u[s]=n;else if(void 0!==t&&t!==i)return t}}else u[s]===h&&(u[s]=o)}}},mergeAllAsync=(e,{visitFnGetter:t=getVisitFn,nodeTypeGetter:r=getNodeType$4,breakSymbol:n=BREAK,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:a=!1}={})=>{const o=Symbol("skip"),u=new Array(e.length).fill(o);return{async enter(l,c,d,_,h,m){let p=l,f=!1;const y={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let l=0;l<e.length;l+=1)if(u[l]===o){const o=t(e[l],r(p),!1);if("function"==typeof o){const t=await o.call(e[l],p,c,d,_,h,y);if(t===i)u[l]=p;else if(t===n)u[l]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;p=t,f=!0}}}}return f?p:void 0},async leave(s,a,l,c,d,_){let h=s;const m={..._,replaceWith(e,t){_.replaceWith(e,t),h=e}};for(let s=0;s<e.length;s+=1)if(u[s]===o){const o=t(e[s],r(h),!0);if("function"==typeof o){const t=await o.call(e[s],h,a,l,c,d,m);if(t===n)u[s]=n;else if(void 0!==t&&t!==i)return t}}else u[s]===h&&(u[s]=o)}}};mergeAll[Symbol.for("nodejs.util.promisify.custom")]=mergeAllAsync;const visit$2=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=BREAK,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=getVisitFn,nodeTypeGetter:u=getNodeType$4,nodePredicate:l=isNode$3,nodeCloneFn:c=cloneNode$1,detectCycles:d=!0,detectCyclesCallback:_=null}={})=>{const h=r||{};let m,p,f=Array.isArray(e),y=[e],g=-1,b=[],E=e;const q=[],w=[];do{g+=1;const e=g===y.length;let r;const S=e&&0!==b.length;if(e){if(r=0===w.length?void 0:q.pop(),E=p,p=w.pop(),S)if(f){E=E.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(E.splice(n,1),e+=1):E[n]=r}}else{E=c(E);for(const[e,t]of b)E[e]=t}g=m.index,y=m.keys,b=m.edits,f=m.inArray,m=m.prev}else if(p!==i&&void 0!==p){if(r=f?g:y[g],E=p[r],E===i||void 0===E)continue;q.push(r)}let O;if(!Array.isArray(E)){var R;if(!l(E))throw new ApiDOMStructuredError(`Invalid AST Node: ${String(E)}`,{node:E});if(d&&w.includes(E)){"function"==typeof _&&_(E,r,p,q,w),q.pop();continue}const i=o(t,u(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,p,q,w):p&&(p[r]=t),e||(E=t)}};O=i.call(t,E,r,p,q,w,s)}if("function"==typeof(null===(R=O)||void 0===R?void 0:R.then))throw new ApiDOMStructuredError("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===s)break;if(O===a){if(!e){q.pop();continue}}else if(void 0!==O&&(b.push([r,O]),!e)){if(!l(O)){q.pop();continue}E=O}}var v;if(void 0===O&&S&&b.push([r,E]),!e)m={inArray:f,index:g,keys:y,edits:b,prev:m},f=Array.isArray(E),y=f?E:null!==(v=h[u(E)])&&void 0!==v?v:[],g=-1,b=[],p!==i&&void 0!==p&&w.push(p),p=E}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};visit$2[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=BREAK,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:o=getVisitFn,nodeTypeGetter:u=getNodeType$4,nodePredicate:l=isNode$3,nodeCloneFn:c=cloneNode$1,detectCycles:d=!0,detectCyclesCallback:_=null}={})=>{const h=r||{};let m,p,f=Array.isArray(e),y=[e],g=-1,b=[],E=e;const q=[],w=[];do{g+=1;const e=g===y.length;let r;const v=e&&0!==b.length;if(e){if(r=0===w.length?void 0:q.pop(),E=p,p=w.pop(),v)if(f){E=E.slice();let e=0;for(const[t,r]of b){const n=t-e;r===i?(E.splice(n,1),e+=1):E[n]=r}}else{E=c(E);for(const[e,t]of b)E[e]=t}g=m.index,y=m.keys,b=m.edits,f=m.inArray,m=m.prev}else if(p!==i&&void 0!==p){if(r=f?g:y[g],E=p[r],E===i||void 0===E)continue;q.push(r)}let S;if(!Array.isArray(E)){if(!l(E))throw new ApiDOMStructuredError(`Invalid AST Node: ${String(E)}`,{node:E});if(d&&w.includes(E)){"function"==typeof _&&_(E,r,p,q,w),q.pop();continue}const i=o(t,u(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,p,q,w):p&&(p[r]=t),e||(E=t)}};S=await i.call(t,E,r,p,q,w,s)}if(S===s)break;if(S===a){if(!e){q.pop();continue}}else if(void 0!==S&&(b.push([r,S]),!e)){if(!l(S)){q.pop();continue}E=S}}var R;if(void 0===S&&v&&b.push([r,E]),!e)m={inArray:f,index:g,keys:y,edits:b,prev:m},f=Array.isArray(E),y=f?E:null!==(R=h[u(E)])&&void 0!==R?R:[],g=-1,b=[],p!==i&&void 0!==p&&w.push(p),p=E}while(void 0!==m);return 0!==b.length?b[b.length-1][1]:e};class CloneError extends ApiDOMStructuredError{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}}class DeepCloneError extends CloneError{}class ShallowCloneError extends CloneError{}const dereference=(e,t)=>{const r=defaultTo(e,t);return mapObjIndexed((e=>{if(isPlainObj(e)&&has("$ref",e)&&propSatisfies(isString$1,"$ref",e)){const t=path$1(["$ref"],e),n=trimCharsStart("#/",t);return path$1(n.split("/"),r)}return isPlainObj(e)?dereference(e,r):e}),e)},assignSourceMap=(e,t)=>(e.startPositionRow=null==t?void 0:t.startPositionRow,e.startPositionColumn=null==t?void 0:t.startPositionColumn,e.startIndex=null==t?void 0:t.startIndex,e.endPositionRow=null==t?void 0:t.endPositionRow,e.endPositionColumn=null==t?void 0:t.endPositionColumn,e.endIndex=null==t?void 0:t.endIndex,e),cloneDeep=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof minimExports.KeyValuePair){const{key:t,value:s}=e,i=isElement(t)?cloneDeep(t,n):t,a=isElement(s)?cloneDeep(s,n):s,o=new minimExports.KeyValuePair(i,a);return r.set(e,o),o}if(e instanceof minimExports.ObjectSlice){const t=e=>cloneDeep(e,n),s=[...e].map(t),i=new minimExports.ObjectSlice(s);return r.set(e,i),i}if(e instanceof minimExports.ArraySlice){const t=e=>cloneDeep(e,n),s=[...e].map(t),i=new minimExports.ArraySlice(s);return r.set(e,i),i}if(isElement(e)){const t=cloneShallow(e);if(r.set(e,t),e.content)if(isElement(e.content))t.content=cloneDeep(e.content,n);else if(e.content instanceof minimExports.KeyValuePair)t.content=cloneDeep(e.content,n);else if(Array.isArray(e.content)){const r=e=>cloneDeep(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new DeepCloneError("Value provided to cloneDeep function couldn't be cloned",{value:e})};cloneDeep.safe=e=>{try{return cloneDeep(e)}catch{return e}};const cloneShallowKeyValuePair=e=>{const{key:t,value:r}=e;return new minimExports.KeyValuePair(t,r)},cloneShallowArraySlice=e=>{const t=[...e];return new minimExports.ArraySlice(t)},cloneShallowObjectSlice=e=>{const t=[...e];return new minimExports.ObjectSlice(t)},cloneShallowElement=e=>{const t=new e.constructor;if(t.element=e.element,hasElementSourceMap(e)&&assignSourceMap(t,e),e.meta.length>0&&(t._meta=cloneDeep(e.meta)),e.attributes.length>0&&(t._attributes=cloneDeep(e.attributes)),isElement(e.content)){const r=e.content;t.content=cloneShallowElement(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof minimExports.KeyValuePair?t.content=cloneShallowKeyValuePair(e.content):t.content=e.content;return t},cloneShallow=e=>{if(e instanceof minimExports.KeyValuePair)return cloneShallowKeyValuePair(e);if(e instanceof minimExports.ObjectSlice)return cloneShallowObjectSlice(e);if(e instanceof minimExports.ArraySlice)return cloneShallowArraySlice(e);if(isElement(e))return cloneShallowElement(e);throw new ShallowCloneError("Value provided to cloneShallow function couldn't be cloned",{value:e})};cloneShallow.safe=e=>{try{return cloneShallow(e)}catch{return e}};const getNodeType$3=e=>isObjectElement(e)?"ObjectElement":isArrayElement(e)?"ArrayElement":isMemberElement(e)?"MemberElement":isStringElement(e)?"StringElement":isBooleanElement(e)?"BooleanElement":isNumberElement(e)?"NumberElement":isNullElement(e)?"NullElement":isLinkElement(e)?"LinkElement":isRefElement(e)?"RefElement":void 0,cloneNode=e=>isElement(e)?cloneShallow(e):cloneNode$1(e),isNode$2=pipe(getNodeType$3,isString$1),keyMapDefault$1={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]},visit$1=(e,t,{keyMap:r=keyMapDefault$1,...n}={})=>visit$2(e,t,{keyMap:r,nodeTypeGetter:getNodeType$3,nodePredicate:isNode$2,nodeCloneFn:cloneNode,...n});visit$1[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=keyMapDefault$1,...n}={})=>visit$2[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:getNodeType$3,nodePredicate:isNode$2,nodeCloneFn:cloneNode,...n});const defaultDispatchPluginsOptions={toolboxCreator:createToolbox$1,visitorOptions:{nodeTypeGetter:getNodeType$3,exposeEdits:!0}},dispatchPluginsSync=(e,t,r={})=>{if(0===t.length)return e;const n=mergeDeepRight(defaultDispatchPluginsOptions,r),{toolboxCreator:s,visitorOptions:i}=n,a=s(),o=t.map((e=>e(a))),u=mergeAll(o.map(propOr({},"visitor")),{...i});o.forEach(invokeArgs(["pre"],[]));const l=visit$1(e,u,i);return o.forEach(invokeArgs(["post"],[])),l},dispatchPluginsAsync=async(e,t,r={})=>{if(0===t.length)return e;const n=mergeDeepRight(defaultDispatchPluginsOptions,r),{toolboxCreator:s,visitorOptions:i}=n,a=s(),o=t.map((e=>e(a))),u=mergeAll[Symbol.for("nodejs.util.promisify.custom")],l=visit$1[Symbol.for("nodejs.util.promisify.custom")],c=u(o.map(propOr({},"visitor")),{...i});await Promise.allSettled(o.map(invokeArgs(["pre"],[])));const d=await l(e,c,i);return await Promise.allSettled(o.map(invokeArgs(["post"],[]))),d};dispatchPluginsSync[Symbol.for("nodejs.util.promisify.custom")]=dispatchPluginsAsync;class MediaTypes extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new NotImplementedError("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new NotImplementedError("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new NotImplementedError("latest method in MediaTypes class is not yet implemented.")}}const refract$1=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return isElement(e)&&(e.meta.length>0&&(n.meta=cloneDeep(e.meta)),e.attributes.length>0&&(n.attributes=cloneDeep(e.attributes))),dispatchPluginsSync(n,r,{toolboxCreator:createToolbox$1,visitorOptions:{nodeTypeGetter:getNodeType$3}})},createRefractor$1=e=>(t,r={})=>refract$1(t,{...r,Type:e});minimExports.ObjectElement.refract=createRefractor$1(minimExports.ObjectElement),minimExports.ArrayElement.refract=createRefractor$1(minimExports.ArrayElement),minimExports.StringElement.refract=createRefractor$1(minimExports.StringElement),minimExports.BooleanElement.refract=createRefractor$1(minimExports.BooleanElement),minimExports.NullElement.refract=createRefractor$1(minimExports.NullElement),minimExports.NumberElement.refract=createRefractor$1(minimExports.NumberElement),minimExports.LinkElement.refract=createRefractor$1(minimExports.LinkElement),minimExports.RefElement.refract=createRefractor$1(minimExports.RefElement),Annotation.refract=createRefractor$1(Annotation),Comment.refract=createRefractor$1(Comment),ParseResult$1.refract=createRefractor$1(ParseResult$1);const nodeTypeGetter=e=>"string"==typeof(null==e?void 0:e.type)?e.type:getNodeType$3(e),keyMapDefault={EphemeralObject:["content"],EphemeralArray:["content"],...keyMapDefault$1},visit=(e,t,{keyMap:r=keyMapDefault,...n}={})=>visit$1(e,t,{keyMap:r,nodeTypeGetter:nodeTypeGetter,nodePredicate:T,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});visit[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=keyMapDefault,...r}={})=>visit$1[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:nodeTypeGetter,nodePredicate:T,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});class EphemeralArray{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}}class EphemeralObject{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))}}let Visitor$1=class{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new EphemeralObject(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 EphemeralArray(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var r;const n=t[3];return"EphemeralObject"===(null===(r=n[n.length-1])||void 0===r?void 0:r.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return isStringElement(e.href)?e.href.toValue():""}};const serializer=e=>isElement(e)?isStringElement(e)||isNumberElement(e)||isBooleanElement(e)||isNullElement(e)?e.toValue():visit(e,new Visitor$1):e,emptyElement=e=>{const t=e.meta.length>0?cloneDeep(e.meta):void 0,r=e.attributes.length>0?cloneDeep(e.attributes):void 0;return new e.constructor(void 0,t,r)},cloneUnlessOtherwiseSpecified=(e,t)=>t.clone&&t.isMergeableElement(e)?deepmerge(emptyElement(e),e,t):e,getMergeFunction=(e,t)=>{if("function"!=typeof t.customMerge)return deepmerge;const r=t.customMerge(e,t);return"function"==typeof r?r:deepmerge},getMetaMergeFunction=e=>"function"!=typeof e.customMetaMerge?e=>cloneDeep(e):e.customMetaMerge,getAttributesMergeFunction=e=>"function"!=typeof e.customAttributesMerge?e=>cloneDeep(e):e.customAttributesMerge,mergeArrayElement=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>cloneUnlessOtherwiseSpecified(e,r))),mergeObjectElement=(e,t,r)=>{const n=isObjectElement(e)?emptyElement(e):emptyElement(t);return isObjectElement(e)&&e.forEach(((e,t,s)=>{const i=cloneShallow(s);i.value=cloneUnlessOtherwiseSpecified(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const a=serializer(s);let o;if(isObjectElement(e)&&e.hasKey(a)&&r.isMergeableElement(t)){const n=e.get(a);o=cloneShallow(i),o.value=getMergeFunction(s,r)(n,t,r)}else o=cloneShallow(i),o.value=cloneUnlessOtherwiseSpecified(t,r);n.remove(a),n.content.push(o)})),n},defaultOptions={clone:!0,isMergeableElement:e=>isObjectElement(e)||isArrayElement(e),arrayElementMerge:mergeArrayElement,objectElementMerge:mergeObjectElement,customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},deepmerge=(e,t,r)=>{var n,s,i;const a={...defaultOptions,...r};a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:defaultOptions.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:defaultOptions.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:defaultOptions.objectElementMerge;const o=isArrayElement(t);if(!(o===isArrayElement(e)))return cloneUnlessOtherwiseSpecified(t,a);const u=o&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a);return u.meta=getMetaMergeFunction(a)(e.meta,t.meta),u.attributes=getAttributesMergeFunction(a)(e.attributes,t.attributes),u};deepmerge.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new minimExports.ObjectElement:e.reduce(((e,r)=>deepmerge(e,r,t)),emptyElement(e[0]))};const treeSitterWasm="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/0327c07adfa215ef7ce8dfd6d8cbfc6b.wasm").href:new URL("0327c07adfa215ef7ce8dfd6d8cbfc6b.wasm","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href,realFetch=globalThis.fetch;isFunction(realFetch)&&(globalThis.fetch=(...e)=>isString$1(e[0])&&e[0].endsWith("tree-sitter.wasm")?realFetch.apply(globalThis,[treeSitterWasm,tail(e)]):realFetch.apply(globalThis,e));var treeSitter={exports:{}},hasRequiredTreeSitter;function requireTreeSitter(){return hasRequiredTreeSitter||(hasRequiredTreeSitter=1,function(module,exports$1){var Module=void 0!==Module?Module:{},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},scriptDirectory="",readAsync,readBinary;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}if(ENVIRONMENT_IS_NODE){var fs=require$$0,nodePath=require$$1;scriptDirectory=__dirname+"/",readBinary=e=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e)),readAsync=(e,t=!0)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),new Promise(((r,n)=>{fs.readFile(e,t?void 0:"utf8",((e,s)=>{e?n(e):r(t?s.buffer:s)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&r(n.response),t(n.status)},n.onerror=t,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,HEAP_DATA_VIEW;function updateMemoryViews(){var e=wasmMemory.buffer;Module.HEAP_DATA_VIEW=HEAP_DATA_VIEW=new DataView(e),Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=new Int16Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=new Uint16Array(e),Module.HEAP32=new Int32Array(e),Module.HEAPU32=new Uint32Array(e),Module.HEAPF32=new Float32Array(e),Module.HEAPF64=new Float64Array(e)}if(Module.wasmMemory)wasmMemory=Module.wasmMemory;else{var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768})}updateMemoryViews();var __ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,dependenciesFulfilled=null;function getUniqueRunDependency(e){return e}function addRunDependency(e){runDependencies++,Module.monitorRunDependencies?.(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies?.(runDependencies),0==runDependencies&&dependenciesFulfilled){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort?.(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",isDataURI=e=>e.startsWith(dataURIPrefix),isFileURI=e=>e.startsWith("file://"),wasmBinaryFile;function findWasmBinary(){var e="tree-sitter.wasm";return isDataURI(e)?e:locateFile(e)}function getBinarySync(e){if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}function getBinaryPromise(e){return wasmBinary?Promise.resolve().then((()=>getBinarySync(e))):readAsync(e).then((e=>new Uint8Array(e)),(()=>getBinarySync(e)))}function instantiateArrayBuffer(e,t,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports),LDSO.init(),loadDylibs(),addOnInit(wasmExports.__wasm_call_ctors),__RELOC_FUNCS__.push(wasmExports.__wasm_apply_data_relocs),removeRunDependency(),wasmExports}if(addRunDependency(),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err(`Module.instantiateWasm callback failed with error: ${e}`),!1}return wasmBinaryFile||(wasmBinaryFile=findWasmBinary()),instantiateAsync(wasmBinary,wasmBinaryFile,e,(function(e){t(e.instance,e.module)})),{}}function ExitStatus(e){this.name="ExitStatus",this.message=`Program terminated with exit(${e})`,this.status=e}var GOT={},currentModuleWeakSymbols=new Set([]),GOTHandler={get(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var i="";t<s;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var u=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|u:(7&a)<<18|o<<12|u<<6|63&e[t++])<65536)i+=String.fromCharCode(a);else{var l=a-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&a)<<6|o)}else i+=String.fromCharCode(a)}return i},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}function s(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function i(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var o=WebAssembly.Module.customSections(e,a);0===o.length&&(a="dylink",o=WebAssembly.Module.customSections(e,a)),i(0===o.length,"need dylink section"),r=(e=new Uint8Array(o[0])).length}else{var u=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);i(!(1836278016==u[0]||6386541==u[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var l=n();r=t+l,a=s()}var c={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();for(var d=n(),_=0;_<d;++_){var h=s();c.neededDynlibs.push(h)}}else{i("dylink.0"!==a);for(;t<r;){var m=e[t++],p=n();if(1===m)c.memorySize=n(),c.memoryAlign=n(),c.tableSize=n(),c.tableAlign=n();else if(2===m)for(d=n(),_=0;_<d;++_)h=s(),c.neededDynlibs.push(h);else if(3===m)for(var f=n();f--;){var y=s();256&n()&&c.tlsExports.add(y)}else if(4===m)for(f=n();f--;){s();y=s();1==(3&n())&&c.weakImports.add(y)}else t+=p}}return c};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var i=0;i<n.length;++i)t.push(s[n[i]]);"v"==r?t.push(0):t.push(1,s[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var s=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,s)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},relocateExports=(e,t,r)=>{var n={};for(var s in e){var i=e[s];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),n[s]=i}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var memAlign=Math.pow(2,metadata.memoryAlign),memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0,tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e).sym;return!t&&localScope&&(t=localScope[e]),t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in wasmImports&&!wasmImports[t].stub)return wasmImports[t];var r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}function addEmJs(name,cSig,body){var jsArgs=[];if(cSig=cSig.slice(1,-1),"void"!=cSig)for(var i in cSig=cSig.split(","),cSig){var jsArg=cSig[i].split(" ").pop();jsArgs.push(jsArg.replace("*",""))}var func=`(${jsArgs}) => ${body};`;moduleExports[name]=eval(func)}for(var name in moduleExports)if(name.startsWith("__em_js__")){var start=moduleExports[name],jsString=UTF8ToString(start),parts=jsString.split("<::>");addEmJs(name.replace("__em_js__",""),parts[0],parts[1]),delete moduleExports[name]}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(binary,instance))}return WebAssembly.instantiate(binary,info).then((e=>postInstantiation(e.module,e.instance)))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(module,instance)}return currentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,flags,localScope)))),Promise.resolve()).then(loadModule):(metadata.neededDynlibs.forEach((e=>loadDynamicLibrary(e,flags,localScope))),loadModule())},mergeLibSymbols=(e,t)=>{for(var[r,n]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=n)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n)}},asyncLoad=(e,t,r,n)=>{var s=getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),s&&removeRunDependency()}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),s&&addRunDependency()};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var s=LDSO.loadedLibsByName[e];if(s)return t.global&&(s.global||(s.global=!0,mergeLibSymbols(s.exports))),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,!t.loadAsync||Promise.resolve(!0);function i(){var r=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(r,e,t)}));if(!readBinary)throw new Error(`${r}: file not found, and synchronous loading of external files is not available`);return readBinary(r)}function a(){return t.loadAsync?i().then((n=>loadWebAssemblyModule(n,t,e,r))):loadWebAssemblyModule(i(),t,e,r)}function o(e){s.global&&mergeLibSymbols(e),s.exports=e}return(s=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,s.global=t.global,t.loadAsync?a().then((e=>(o(e),!0))):(o(a()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency(),dynamicLibraries.reduce(((e,t)=>e.then((()=>loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})))),Promise.resolve()).then((()=>{reportUndefinedSymbols(),removeRunDependency()}))):reportUndefinedSymbols()};function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}Module.noExitRuntime;var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r),_emscripten_get_now;__emscripten_memcpy_js.sig="vppp",_emscripten_get_now=()=>performance.now(),_emscripten_get_now.sig="d";var getHeapMax=()=>2147483648,growMemory=e=>{var t=(e-wasmMemory.buffer.byteLength+65535)/65536;try{return wasmMemory.grow(t),updateMemoryViews(),1}catch(e){}},_emscripten_resize_heap=e=>{var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var n,s,i=1;i<=4;i*=2){var a=t*(1+.2/i);a=Math.min(a,e+100663296);var o=Math.min(r,(n=Math.max(e,a))+((s=65536)-n%s)%s);if(growMemory(o))return!0}return!1};_emscripten_resize_heap.sig="ip";var _fd_close=e=>52;function _fd_seek(e,t,r,n,s){return 70}_fd_close.sig="ii",_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,n)=>{for(var s=0,i=0;i<r;i++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),o=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var u=0;u<o;u++)printChar(e,HEAPU8[a+u]);s+=o}return LE_HEAP_STORE_U32(4*(n>>2),s),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,s){const i=currentParseCallback(t,{row:r,column:n});"string"==typeof i?(setValue(s,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(s,0,"i32")}_fd_write.sig="iippp";var _proc_exit=e=>{EXITSTATUS=e,quit_(e,new ExitStatus(e))};_proc_exit.sig="vi";var exitJS=(e,t)=>{EXITSTATUS=e,_proc_exit(e)},handleException=e=>{if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)},lengthBytesUTF8=e=>{for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var s=r,i=r+n-1,a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o>=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a);if(o<=127){if(r>=i)break;t[r++]=o}else if(o<=2047){if(r+1>=i)break;t[r++]=192|o>>6,t[r++]=128|63&o}else if(o<=65535){if(r+2>=i)break;t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o}else{if(r+3>=i)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o}}return t[r]=0,r-s},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,s=(r-=2)<2*e.length?r/2:e.length,i=0;i<s;++i){var a=e.charCodeAt(i);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-n},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),_malloc=Module._malloc=e=>(_malloc=Module._malloc=wasmExports.malloc)(e);Module._calloc=(e,t)=>(Module._calloc=wasmExports.calloc)(e,t),Module._realloc=(e,t)=>(Module._realloc=wasmExports.realloc)(e,t),Module._free=e=>(Module._free=wasmExports.free)(e),Module._ts_language_symbol_count=e=>(Module._ts_language_symbol_count=wasmExports.ts_language_symbol_count)(e),Module._ts_language_state_count=e=>(Module._ts_language_state_count=wasmExports.ts_language_state_count)(e),Module._ts_language_version=e=>(Module._ts_language_version=wasmExports.ts_language_version)(e),Module._ts_language_field_count=e=>(Module._ts_language_field_count=wasmExports.ts_language_field_count)(e),Module._ts_language_next_state=(e,t,r)=>(Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),Module._ts_language_symbol_name=(e,t)=>(Module._ts_language_symbol_name=wasmExports.ts_language_symbol_name)(e,t),Module._ts_language_symbol_for_name=(e,t,r,n)=>(Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,n),Module._strncmp=(e,t,r)=>(Module._strncmp=wasmExports.strncmp)(e,t,r),Module._ts_language_symbol_type=(e,t)=>(Module._ts_language_symbol_type=wasmExports.ts_language_symbol_type)(e,t),Module._ts_language_field_name_for_id=(e,t)=>(Module._ts_language_field_name_for_id=wasmExports.ts_language_field_name_for_id)(e,t),Module._ts_lookahead_iterator_new=(e,t)=>(Module._ts_lookahead_iterator_new=wasmExports.ts_lookahead_iterator_new)(e,t),Module._ts_lookahead_iterator_delete=e=>(Module._ts_lookahead_iterator_delete=wasmExports.ts_lookahead_iterator_delete)(e),Module._ts_lookahead_iterator_reset_state=(e,t)=>(Module._ts_lookahead_iterator_reset_state=wasmExports.ts_lookahead_iterator_reset_state)(e,t),Module._ts_lookahead_iterator_reset=(e,t,r)=>(Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),Module._ts_lookahead_iterator_next=e=>(Module._ts_lookahead_iterator_next=wasmExports.ts_lookahead_iterator_next)(e),Module._ts_lookahead_iterator_current_symbol=e=>(Module._ts_lookahead_iterator_current_symbol=wasmExports.ts_lookahead_iterator_current_symbol)(e),Module._memset=(e,t,r)=>(Module._memset=wasmExports.memset)(e,t,r),Module._memcpy=(e,t,r)=>(Module._memcpy=wasmExports.memcpy)(e,t,r),Module._ts_parser_delete=e=>(Module._ts_parser_delete=wasmExports.ts_parser_delete)(e),Module._ts_parser_reset=e=>(Module._ts_parser_reset=wasmExports.ts_parser_reset)(e),Module._ts_parser_set_language=(e,t)=>(Module._ts_parser_set_language=wasmExports.ts_parser_set_language)(e,t),Module._ts_parser_timeout_micros=e=>(Module._ts_parser_timeout_micros=wasmExports.ts_parser_timeout_micros)(e),Module._ts_parser_set_timeout_micros=(e,t,r)=>(Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),Module._ts_parser_set_included_ranges=(e,t,r)=>(Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),Module._memmove=(e,t,r)=>(Module._memmove=wasmExports.memmove)(e,t,r),Module._memcmp=(e,t,r)=>(Module._memcmp=wasmExports.memcmp)(e,t,r),Module._ts_query_new=(e,t,r,n,s)=>(Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,n,s),Module._ts_query_delete=e=>(Module._ts_query_delete=wasmExports.ts_query_delete)(e),Module._iswspace=e=>(Module._iswspace=wasmExports.iswspace)(e),Module._iswalnum=e=>(Module._iswalnum=wasmExports.iswalnum)(e),Module._ts_query_pattern_count=e=>(Module._ts_query_pattern_count=wasmExports.ts_query_pattern_count)(e),Module._ts_query_capture_count=e=>(Module._ts_query_capture_count=wasmExports.ts_query_capture_count)(e),Module._ts_query_string_count=e=>(Module._ts_query_string_count=wasmExports.ts_query_string_count)(e),Module._ts_query_capture_name_for_id=(e,t,r)=>(Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),Module._ts_query_string_value_for_id=(e,t,r)=>(Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),Module._ts_query_predicates_for_pattern=(e,t,r)=>(Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),Module._ts_query_disable_capture=(e,t,r)=>(Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),Module._ts_tree_copy=e=>(Module._ts_tree_copy=wasmExports.ts_tree_copy)(e),Module._ts_tree_delete=e=>(Module._ts_tree_delete=wasmExports.ts_tree_delete)(e),Module._ts_init=()=>(Module._ts_init=wasmExports.ts_init)(),Module._ts_parser_new_wasm=()=>(Module._ts_parser_new_wasm=wasmExports.ts_parser_new_wasm)(),Module._ts_parser_enable_logger_wasm=(e,t)=>(Module._ts_parser_enable_logger_wasm=wasmExports.ts_parser_enable_logger_wasm)(e,t),Module._ts_parser_parse_wasm=(e,t,r,n,s)=>(Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,n,s),Module._ts_parser_included_ranges_wasm=e=>(Module._ts_parser_included_ranges_wasm=wasmExports.ts_parser_included_ranges_wasm)(e),Module._ts_language_type_is_named_wasm=(e,t)=>(Module._ts_language_type_is_named_wasm=wasmExports.ts_language_type_is_named_wasm)(e,t),Module._ts_language_type_is_visible_wasm=(e,t)=>(Module._ts_language_type_is_visible_wasm=wasmExports.ts_language_type_is_visible_wasm)(e,t),Module._ts_tree_root_node_wasm=e=>(Module._ts_tree_root_node_wasm=wasmExports.ts_tree_root_node_wasm)(e),Module._ts_tree_root_node_with_offset_wasm=e=>(Module._ts_tree_root_node_with_offset_wasm=wasmExports.ts_tree_root_node_with_offset_wasm)(e),Module._ts_tree_edit_wasm=e=>(Module._ts_tree_edit_wasm=wasmExports.ts_tree_edit_wasm)(e),Module._ts_tree_included_ranges_wasm=e=>(Module._ts_tree_included_ranges_wasm=wasmExports.ts_tree_included_ranges_wasm)(e),Module._ts_tree_get_changed_ranges_wasm=(e,t)=>(Module._ts_tree_get_changed_ranges_wasm=wasmExports.ts_tree_get_changed_ranges_wasm)(e,t),Module._ts_tree_cursor_new_wasm=e=>(Module._ts_tree_cursor_new_wasm=wasmExports.ts_tree_cursor_new_wasm)(e),Module._ts_tree_cursor_delete_wasm=e=>(Module._ts_tree_cursor_delete_wasm=wasmExports.ts_tree_cursor_delete_wasm)(e),Module._ts_tree_cursor_reset_wasm=e=>(Module._ts_tree_cursor_reset_wasm=wasmExports.ts_tree_cursor_reset_wasm)(e),Module._ts_tree_cursor_reset_to_wasm=(e,t)=>(Module._ts_tree_cursor_reset_to_wasm=wasmExports.ts_tree_cursor_reset_to_wasm)(e,t),Module._ts_tree_cursor_goto_first_child_wasm=e=>(Module._ts_tree_cursor_goto_first_child_wasm=wasmExports.ts_tree_cursor_goto_first_child_wasm)(e),Module._ts_tree_cursor_goto_last_child_wasm=e=>(Module._ts_tree_cursor_goto_last_child_wasm=wasmExports.ts_tree_cursor_goto_last_child_wasm)(e),Module._ts_tree_cursor_goto_first_child_for_index_wasm=e=>(Module._ts_tree_cursor_goto_first_child_for_index_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_index_wasm)(e),Module._ts_tree_cursor_goto_first_child_for_position_wasm=e=>(Module._ts_tree_cursor_goto_first_child_for_position_wasm=wasmExports.ts_tree_cursor_goto_first_child_for_position_wasm)(e),Module._ts_tree_cursor_goto_next_sibling_wasm=e=>(Module._ts_tree_cursor_goto_next_sibling_wasm=wasmExports.ts_tree_cursor_goto_next_sibling_wasm)(e),Module._ts_tree_cursor_goto_previous_sibling_wasm=e=>(Module._ts_tree_cursor_goto_previous_sibling_wasm=wasmExports.ts_tree_cursor_goto_previous_sibling_wasm)(e),Module._ts_tree_cursor_goto_descendant_wasm=(e,t)=>(Module._ts_tree_cursor_goto_descendant_wasm=wasmExports.ts_tree_cursor_goto_descendant_wasm)(e,t),Module._ts_tree_cursor_goto_parent_wasm=e=>(Module._ts_tree_cursor_goto_parent_wasm=wasmExports.ts_tree_cursor_goto_parent_wasm)(e),Module._ts_tree_cursor_current_node_type_id_wasm=e=>(Module._ts_tree_cursor_current_node_type_id_wasm=wasmExports.ts_tree_cursor_current_node_type_id_wasm)(e),Module._ts_tree_cursor_current_node_state_id_wasm=e=>(Module._ts_tree_cursor_current_node_state_id_wasm=wasmExports.ts_tree_cursor_current_node_state_id_wasm)(e),Module._ts_tree_cursor_current_node_is_named_wasm=e=>(Module._ts_tree_cursor_current_node_is_named_wasm=wasmExports.ts_tree_cursor_current_node_is_named_wasm)(e),Module._ts_tree_cursor_current_node_is_missing_wasm=e=>(Module._ts_tree_cursor_current_node_is_missing_wasm=wasmExports.ts_tree_cursor_current_node_is_missing_wasm)(e),Module._ts_tree_cursor_current_node_id_wasm=e=>(Module._ts_tree_cursor_current_node_id_wasm=wasmExports.ts_tree_cursor_current_node_id_wasm)(e),Module._ts_tree_cursor_start_position_wasm=e=>(Module._ts_tree_cursor_start_position_wasm=wasmExports.ts_tree_cursor_start_position_wasm)(e),Module._ts_tree_cursor_end_position_wasm=e=>(Module._ts_tree_cursor_end_position_wasm=wasmExports.ts_tree_cursor_end_position_wasm)(e),Module._ts_tree_cursor_start_index_wasm=e=>(Module._ts_tree_cursor_start_index_wasm=wasmExports.ts_tree_cursor_start_index_wasm)(e),Module._ts_tree_cursor_end_index_wasm=e=>(Module._ts_tree_cursor_end_index_wasm=wasmExports.ts_tree_cursor_end_index_wasm)(e),Module._ts_tree_cursor_current_field_id_wasm=e=>(Module._ts_tree_cursor_current_field_id_wasm=wasmExports.ts_tree_cursor_current_field_id_wasm)(e),Module._ts_tree_cursor_current_depth_wasm=e=>(Module._ts_tree_cursor_current_depth_wasm=wasmExports.ts_tree_cursor_current_depth_wasm)(e),Module._ts_tree_cursor_current_descendant_index_wasm=e=>(Module._ts_tree_cursor_current_descendant_index_wasm=wasmExports.ts_tree_cursor_current_descendant_index_wasm)(e),Module._ts_tree_cursor_current_node_wasm=e=>(Module._ts_tree_cursor_current_node_wasm=wasmExports.ts_tree_cursor_current_node_wasm)(e),Module._ts_node_symbol_wasm=e=>(Module._ts_node_symbol_wasm=wasmExports.ts_node_symbol_wasm)(e),Module._ts_node_field_name_for_child_wasm=(e,t)=>(Module._ts_node_field_name_for_child_wasm=wasmExports.ts_node_field_name_for_child_wasm)(e,t),Module._ts_node_children_by_field_id_wasm=(e,t)=>(Module._ts_node_children_by_field_id_wasm=wasmExports.ts_node_children_by_field_id_wasm)(e,t),Module._ts_node_first_child_for_byte_wasm=e=>(Module._ts_node_first_child_for_byte_wasm=wasmExports.ts_node_first_child_for_byte_wasm)(e),Module._ts_node_first_named_child_for_byte_wasm=e=>(Module._ts_node_first_named_child_for_byte_wasm=wasmExports.ts_node_first_named_child_for_byte_wasm)(e),Module._ts_node_grammar_symbol_wasm=e=>(Module._ts_node_grammar_symbol_wasm=wasmExports.ts_node_grammar_symbol_wasm)(e),Module._ts_node_child_count_wasm=e=>(Module._ts_node_child_count_wasm=wasmExports.ts_node_child_count_wasm)(e),Module._ts_node_named_child_count_wasm=e=>(Module._ts_node_named_child_count_wasm=wasmExports.ts_node_named_child_count_wasm)(e),Module._ts_node_child_wasm=(e,t)=>(Module._ts_node_child_wasm=wasmExports.ts_node_child_wasm)(e,t),Module._ts_node_named_child_wasm=(e,t)=>(Module._ts_node_named_child_wasm=wasmExports.ts_node_named_child_wasm)(e,t),Module._ts_node_child_by_field_id_wasm=(e,t)=>(Module._ts_node_child_by_field_id_wasm=wasmExports.ts_node_child_by_field_id_wasm)(e,t),Module._ts_node_next_sibling_wasm=e=>(Module._ts_node_next_sibling_wasm=wasmExports.ts_node_next_sibling_wasm)(e),Module._ts_node_prev_sibling_wasm=e=>(Module._ts_node_prev_sibling_wasm=wasmExports.ts_node_prev_sibling_wasm)(e),Module._ts_node_next_named_sibling_wasm=e=>(Module._ts_node_next_named_sibling_wasm=wasmExports.ts_node_next_named_sibling_wasm)(e),Module._ts_node_prev_named_sibling_wasm=e=>(Module._ts_node_prev_named_sibling_wasm=wasmExports.ts_node_prev_named_sibling_wasm)(e),Module._ts_node_descendant_count_wasm=e=>(Module._ts_node_descendant_count_wasm=wasmExports.ts_node_descendant_count_wasm)(e),Module._ts_node_parent_wasm=e=>(Module._ts_node_parent_wasm=wasmExports.ts_node_parent_wasm)(e),Module._ts_node_descendant_for_index_wasm=e=>(Module._ts_node_descendant_for_index_wasm=wasmExports.ts_node_descendant_for_index_wasm)(e),Module._ts_node_named_descendant_for_index_wasm=e=>(Module._ts_node_named_descendant_for_index_wasm=wasmExports.ts_node_named_descendant_for_index_wasm)(e),Module._ts_node_descendant_for_position_wasm=e=>(Module._ts_node_descendant_for_position_wasm=wasmExports.ts_node_descendant_for_position_wasm)(e),Module._ts_node_named_descendant_for_position_wasm=e=>(Module._ts_node_named_descendant_for_position_wasm=wasmExports.ts_node_named_descendant_for_position_wasm)(e),Module._ts_node_start_point_wasm=e=>(Module._ts_node_start_point_wasm=wasmExports.ts_node_start_point_wasm)(e),Module._ts_node_end_point_wasm=e=>(Module._ts_node_end_point_wasm=wasmExports.ts_node_end_point_wasm)(e),Module._ts_node_start_index_wasm=e=>(Module._ts_node_start_index_wasm=wasmExports.ts_node_start_index_wasm)(e),Module._ts_node_end_index_wasm=e=>(Module._ts_node_end_index_wasm=wasmExports.ts_node_end_index_wasm)(e),Module._ts_node_to_string_wasm=e=>(Module._ts_node_to_string_wasm=wasmExports.ts_node_to_string_wasm)(e),Module._ts_node_children_wasm=e=>(Module._ts_node_children_wasm=wasmExports.ts_node_children_wasm)(e),Module._ts_node_named_children_wasm=e=>(Module._ts_node_named_children_wasm=wasmExports.ts_node_named_children_wasm)(e),Module._ts_node_descendants_of_type_wasm=(e,t,r,n,s,i,a)=>(Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,n,s,i,a),Module._ts_node_is_named_wasm=e=>(Module._ts_node_is_named_wasm=wasmExports.ts_node_is_named_wasm)(e),Module._ts_node_has_changes_wasm=e=>(Module._ts_node_has_changes_wasm=wasmExports.ts_node_has_changes_wasm)(e),Module._ts_node_has_error_wasm=e=>(Module._ts_node_has_error_wasm=wasmExports.ts_node_has_error_wasm)(e),Module._ts_node_is_error_wasm=e=>(Module._ts_node_is_error_wasm=wasmExports.ts_node_is_error_wasm)(e),Module._ts_node_is_missing_wasm=e=>(Module._ts_node_is_missing_wasm=wasmExports.ts_node_is_missing_wasm)(e),Module._ts_node_is_extra_wasm=e=>(Module._ts_node_is_extra_wasm=wasmExports.ts_node_is_extra_wasm)(e),Module._ts_node_parse_state_wasm=e=>(Module._ts_node_parse_state_wasm=wasmExports.ts_node_parse_state_wasm)(e),Module._ts_node_next_parse_state_wasm=e=>(Module._ts_node_next_parse_state_wasm=wasmExports.ts_node_next_parse_state_wasm)(e),Module._ts_query_matches_wasm=(e,t,r,n,s,i,a,o,u,l,c)=>(Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,n,s,i,a,o,u,l,c),Module._ts_query_captures_wasm=(e,t,r,n,s,i,a,o,u,l,c)=>(Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,n,s,i,a,o,u,l,c),Module._iswalpha=e=>(Module._iswalpha=wasmExports.iswalpha)(e),Module._iswblank=e=>(Module._iswblank=wasmExports.iswblank)(e),Module._iswdigit=e=>(Module._iswdigit=wasmExports.iswdigit)(e),Module._iswlower=e=>(Module._iswlower=wasmExports.iswlower)(e),Module._iswupper=e=>(Module._iswupper=wasmExports.iswupper)(e),Module._iswxdigit=e=>(Module._iswxdigit=wasmExports.iswxdigit)(e),Module._memchr=(e,t,r)=>(Module._memchr=wasmExports.memchr)(e,t,r),Module._strlen=e=>(Module._strlen=wasmExports.strlen)(e),Module._strcmp=(e,t)=>(Module._strcmp=wasmExports.strcmp)(e,t),Module._strncat=(e,t,r)=>(Module._strncat=wasmExports.strncat)(e,t,r),Module._strncpy=(e,t,r)=>(Module._strncpy=wasmExports.strncpy)(e,t,r),Module._towlower=e=>(Module._towlower=wasmExports.towlower)(e),Module._towupper=e=>(Module._towupper=wasmExports.towupper)(e);var _setThrew=(e,t)=>(_setThrew=wasmExports.setThrew)(e,t),__emscripten_stack_restore=e=>(__emscripten_stack_restore=wasmExports._emscripten_stack_restore)(e),__emscripten_stack_alloc=e=>(__emscripten_stack_alloc=wasmExports._emscripten_stack_alloc)(e),_emscripten_stack_get_current=()=>(_emscripten_stack_get_current=wasmExports.emscripten_stack_get_current)(),calledRun;function callMain(e=[]){var t=resolveGlobalSymbol("main").sym;if(t){e.unshift(thisProgram);var r=e.length,n=stackAlloc(4*(r+1)),s=n;e.forEach((e=>{LE_HEAP_STORE_U32(4*(s>>2),stringToUTF8OnStack(e)),s+=4})),LE_HEAP_STORE_U32(4*(s>>2),0);try{var i=t(r,n);return exitJS(i,!0),i}catch(e){return handleException(e)}}}function run(e=arguments_){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized?.(),shouldRunNow&&callMain(e),postRun()))}runDependencies>0||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.dynCall_jiji=(e,t,r,n,s)=>(Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,n,s),Module._orig$ts_parser_timeout_micros=e=>(Module._orig$ts_parser_timeout_micros=wasmExports.orig$ts_parser_timeout_micros)(e),Module._orig$ts_parser_set_timeout_micros=(e,t)=>(Module._orig$ts_parser_set_timeout_micros=wasmExports.orig$ts_parser_set_timeout_micros)(e,t),Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)},Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_CURSOR=4*SIZE_OF_INT,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;let VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r?.includedRanges){n=r.includedRanges.length,s=C._calloc(n,SIZE_OF_RANGE);let e=s;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}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 Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._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){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(i+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const a=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=new Array(a);if(a>0){let e=o;for(let t=0;t<a;t++)u[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(o),C._free(i),u}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const s=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=getValue(TRANSFER_BUFFER,"i32"),s=UTF8ToString(r,n).length,i=e.substr(s,100).split("\n")[0];let a,o=i.match(QUERY_WORD_REGEX)[0];switch(t){case 2:a=new RangeError(`Bad node name '${o}'`);break;case 3:a=new RangeError(`Bad field name '${o}'`);break;case 4:a=new RangeError(`Bad capture name @${o}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${s}: '${i}'...`),o="";break;default:a=new SyntaxError(`Bad syntax at offset ${s}: '${i}'...`),o=""}throw a.index=s,a.length=o.length,C._free(r),a}const s=C._ts_query_string_count(n),i=C._ts_query_capture_count(n),a=C._ts_query_pattern_count(n),o=new Array(i),u=new Array(s);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");o[e]=UTF8ToString(t,r)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");u[e]=UTF8ToString(t,r)}const l=new Array(a),c=new Array(a),d=new Array(a),_=new Array(a),h=new Array(a);for(let e=0;e<a;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");_[e]=[],h[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const r=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:o[r]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:u[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r,n=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":n=!1;case"any-eq?":case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}"`);if(i=!t.startsWith("any-"),"capture"===s[2].type){const t=s[1].name,r=s[2].name;h[e].push((e=>{const s=[],a=[];for(const n of e)n.name===t&&s.push(n.node),n.name===r&&a.push(n.node);const o=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return i?s.every((e=>a.some((t=>o(e,t,n))))):s.some((e=>a.some((t=>o(e,t,n)))))}))}else{r=s[1].name;const t=s[2].value,a=e=>e.text===t,o=e=>e.text!==t;h[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node);const s=n?a:o;return i?t.every(s):t.some(s)}))}break;case"any-not-match?":case"not-match?":n=!1;case"any-match?":case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${s[2].value}.`);r=s[1].name;const a=new RegExp(s[2].value);i=!t.startsWith("any-"),h[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);const s=(e,t)=>t?a.test(e):!a.test(e);return 0===t.length?!n:i?t.every((e=>s(e,n))):t.some((e=>s(e,n)))}));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.".');l[e]||(l[e]={}),l[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?c:d;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;case"not-any-of?":n=!1;case"any-of?":if(s.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);for(let e=2;e<s.length;e++)if("string"!==s[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=s[1].name;const u=s.slice(2).map((e=>e.value));h[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);return 0===t.length?!n:t.every((e=>u.includes(e)))===n}));break;default:_[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(l[e]),Object.freeze(c[e]),Object.freeze(d[e])}return C._free(r),new Query(INTERNAL,n,o,h,_,Object.freeze(l),Object.freeze(c),Object.freeze(d))}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=require$$0;t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new Language(INTERNAL,n)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,n,s,i,a,o){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=a,this.refutedProperties=o,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:i=4294967295,maxStartDepth:a=4294967295,timeoutMicros:o=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,i,a,o);const u=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=new Array(u);this.exceededMatchLimit=Boolean(c);let _=0,h=l;for(let t=0;t<u;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const r=getValue(h,"i32");h+=SIZE_OF_INT;const n=new Array(r);if(h=unmarshalCaptures(this,e.tree,h,n),this.textPredicates[t].every((e=>e(n)))){d[_]={pattern:t,captures:n};const e=this.setProperties[t];e&&(d[_].setProperties=e);const r=this.assertedProperties[t];r&&(d[_].assertedProperties=r);const s=this.refutedProperties[t];s&&(d[_].refutedProperties=s),_++}}return d.length=_,C._free(l),d}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:i=4294967295,maxStartDepth:a=4294967295,timeoutMicros:o=0}={}){if("number"!=typeof i)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,i,a,o);const u=getValue(TRANSFER_BUFFER,"i32"),l=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),d=[];this.exceededMatchLimit=Boolean(c);const _=[];let h=l;for(let t=0;t<u;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const r=getValue(h,"i32");h+=SIZE_OF_INT;const n=getValue(h,"i32");if(h+=SIZE_OF_INT,_.length=r,h=unmarshalCaptures(this,e.tree,h,_),this.textPredicates[t].every((e=>e(_)))){const e=_[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),d}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function unmarshalCaptures(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=getValue(r,"i32"),a=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[i],node:a}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),o=new Node(INTERNAL,e);return o.id=r,o.startIndex=n,o.startPosition={row:s,column:i},o[0]=a,o}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32"),setValue(t+3*SIZE_OF_INT,e[3],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),e[3]=getValue(TRANSFER_BUFFER+3*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32")>>>0,column:getValue(e+SIZE_OF_INT,"i32")>>>0}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32")>>>0,e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32")>>>0,t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter}(treeSitter)),treeSitter.exports}var treeSitterExports=requireTreeSitter();const Parser=getDefaultExportFromCjs(treeSitterExports),treeSitterJson="undefined"==typeof document&&"undefined"==typeof location?require("url").pathToFileURL(__dirname+"/f951efd18f4932becb741545caa37c8d.wasm").href:new URL("f951efd18f4932becb741545caa37c8d.wasm","undefined"==typeof document?location.href:document.currentScript&&"SCRIPT"===document.currentScript.tagName.toUpperCase()&&document.currentScript.src||document.baseURI).href;let parser=null,parserInitLock=null,currentTree=null;const analyze$2=async e=>{if(null===parser&&null===parserInitLock)parserInitLock=Parser.init().then((()=>Parser.Language.load(treeSitterJson))).then((e=>{const t=new Parser;return t.setLanguage(e),t})).finally((()=>{parserInitLock=null})),parser=await parserInitLock;else if(null===parser&&null!==parserInitLock)parser=await parserInitLock;else if(null===parser)throw new ApiDOMError("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return currentTree=parser.parse(e),parser.reset(),currentTree};class TreeCursorSyntaxNode{type;startPositionRow;startPositionColumn;startIndex;endPositionRow;endPositionColumn;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];constructor(e){this.type=e.nodeType,this.startPositionRow=e.startPosition.row,this.startPositionColumn=e.startPosition.column,this.startIndex=e.startIndex,this.endPositionRow=e.endPosition.row,this.endPositionColumn=e.endPosition.column,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}pushChildren(...e){this.children.push(...e)}}let CstVisitor$1=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(isPrimitiveElement);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof TreeCursorSyntaxNode&&!e.isNamed&&e.isMissing){const t=e.type||e.text,r=new Annotation(`(Missing ${t})`);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}document(e){const t=new ParseResult$1;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new minimExports.ObjectElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new minimExports.ArrayElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new minimExports.MemberElement;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new minimExports.StringElement(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new minimExports.NumberElement(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new minimExports.NullElement;return this.maybeAddSourceMap(e,t),t}true(e){const t=new minimExports.BooleanElement(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new minimExports.BooleanElement(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,r,n){const s=!e.hasError,i=e.text,a=new Annotation(s?`(Unexpected ${i})`:`(Error ${i})`);if(a.classes.push("error"),this.maybeAddSourceMap(e,a),0===n.length){const e=new ParseResult$1;return e.push(a),e}return this.annotations.push(a),null}maybeAddSourceMap(e,t){this.sourceMap&&assignSourceMap(t,e)}};class TreeCursorIterator{cursor;constructor(e){this.cursor=e}document(){return new TreeCursorSyntaxNode(this.cursor)}object(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}array(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}pair(){return new TreeCursorSyntaxNode(this.cursor)}string(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}number(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}null(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}true(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}false(){return new TreeCursorSyntaxNode(this.cursor).setFieldName(this.cursor)}ERROR(){return new TreeCursorSyntaxNode(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new TreeCursorSyntaxNode(this.cursor),this.cursor.gotoFirstChild()){const[t]=new TreeCursorIterator(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new TreeCursorIterator(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const keyMap$3={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...keyMapDefault$1},getNodeType$2=e=>isParseResultElement(e)?"ParseResultElement":isElement(e)?getNodeType$3(e):getNodeType$4(e),isNode$1=e=>isElement(e)||isNode$3(e),analyze$1=(e,{sourceMap:t=!1}={})=>{const r=new CstVisitor$1,n=e.walk(),s=new TreeCursorIterator(n),[i]=Array.from(s);return visit$2(i,r,{keyMap:keyMap$3,nodeTypeGetter:getNodeType$2,nodePredicate:isNode$1,state:{sourceMap:t}})},keyMap$2={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class CstVisitor{document={enter:e=>new JsonDocument(assignSourceMap({children:e.children,isMissing:e.isMissing},e)),leave:e=>new ParseResult({children:[e]})};enter(e){if(e instanceof TreeCursorSyntaxNode&&!e.isNamed){const t=e.type||e.text,{isMissing:r}=e;return new Literal(assignSourceMap({value:t,isMissing:r},e))}}object(e){return new JsonObject(assignSourceMap({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:r}=e,n=new JsonKey(assignSourceMap({children:(null==r?void 0:r.children)||[],isMissing:null!=r&&r.isMissing},r));return new JsonProperty(assignSourceMap({children:[n,...t],isMissing:e.isMissing},e))}array(e){return new JsonArray(assignSourceMap({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new JsonStringContent({value:JSON.parse(e.text)});return new JsonString(assignSourceMap({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new JsonNumber(assignSourceMap({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new JsonNull(assignSourceMap({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new JsonTrue(assignSourceMap({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new JsonFalse(assignSourceMap({value:t,isMissing:e.isMissing},e))}ERROR(e,t,r,n){const s=new Error$1(assignSourceMap({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===n.length?new ParseResult({children:[s]}):s}}const keyMap$1={[ParseResult.type]:["children"],[JsonDocument.type]:["children"],[JsonObject.type]:["children"],[JsonProperty.type]:["children"],[JsonArray.type]:["children"],[Error$1.type]:["children"],...keyMapDefault$1},getNodeType$1=e=>isParseResultElement(e)?"ParseResultElement":isElement(e)?getNodeType$3(e):getNodeType$4(e),isNode=e=>isElement(e)||isNode$3(e);class JsonAstVisitor{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(isPrimitiveElement);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new ParseResult$1;return t._content=e.children,t}object(e){const t=new minimExports.ObjectElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new minimExports.MemberElement;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new minimExports.StringElement(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new minimExports.ArrayElement;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new minimExports.StringElement(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new minimExports.NumberElement(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new minimExports.NullElement;return this.maybeAddSourceMap(e,t),t}true(e){const t=new minimExports.BooleanElement(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new minimExports.BooleanElement(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,r=new Annotation(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,i=new Annotation(s);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===n.length){const e=new ParseResult$1;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&assignSourceMap(t,e)}}const analyze=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new TreeCursorIterator(r),[s]=Array.from(n),i=new CstVisitor,a=new JsonAstVisitor,o=visit$2(s,i,{keyMap:keyMap$2,state:{sourceMap:t}});return visit$2(o.rootNode,a,{keyMap:keyMap$1,nodeTypeGetter:getNodeType$1,nodePredicate:isNode,state:{sourceMap:t}})};createNamespace();const detectionRegExp$1=/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/,detect$1=async e=>{if(!detectionRegExp$1.test(e))return!1;try{const t=await analyze$2(e),r="ERROR"!==t.rootNode.type;return t.delete(),r}catch{return!1}},parse$1=async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await analyze$2(e);let s;return s="indirect"===r?analyze(n,{sourceMap:t}):analyze$1(n,{sourceMap:t}),n.delete(),s};class OpenAPIMediaTypes extends MediaTypes{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.0.4",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return last(this.filterByFormat(e))}}const mediaTypes=new OpenAPIMediaTypes("application/vnd.oai.openapi;version=3.0.0","application/vnd.oai.openapi+json;version=3.0.0","application/vnd.oai.openapi+yaml;version=3.0.0","application/vnd.oai.openapi;version=3.0.1","application/vnd.oai.openapi+json;version=3.0.1","application/vnd.oai.openapi+yaml;version=3.0.1","application/vnd.oai.openapi;version=3.0.2","application/vnd.oai.openapi+json;version=3.0.2","application/vnd.oai.openapi+yaml;version=3.0.2","application/vnd.oai.openapi;version=3.0.3","application/vnd.oai.openapi+json;version=3.0.3","application/vnd.oai.openapi+yaml;version=3.0.3","application/vnd.oai.openapi;version=3.0.4","application/vnd.oai.openapi+json;version=3.0.4","application/vnd.oai.openapi+yaml;version=3.0.4");class Callback extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="callback"}}class Components extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}class Contact extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}class Discriminator extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}class Encoding extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}class Example extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}class ExternalDocumentation extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}class Header extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new minimExports.BooleanElement(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new minimExports.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Header.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});class Info extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}class License extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}class Link extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return isStringElement(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):isStringElement(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}class MediaType extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}class OAuthFlow extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}class OAuthFlows extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}class Openapi extends minimExports.StringElement{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}class OpenApi3_0 extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}class Operation extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new minimExports.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}class Parameter extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new minimExports.BooleanElement(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new minimExports.BooleanElement(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Parameter.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});class PathItem extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}class Paths extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="paths"}}class Reference extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class RequestBody extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new minimExports.BooleanElement(!1)}set required(e){this.set("required",e)}}class Response extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}class Responses extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}class JSONSchema extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}class JSONReference extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}class Media extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}class LinkDescription extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const jsonSchemaDraft4={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",JSONSchema),t.register("jSONReference",JSONReference),t.register("media",Media),t.register("linkDescription",LinkDescription),t}},getNodeType=e=>{if(isElement(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},keyMap={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...keyMapDefault$1};class Visitor{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=deepmerge(t.meta,e.meta)),hasElementSourceMap(e)&&assignSourceMap(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=deepmerge(t.attributes,e.attributes))}}class FallbackVisitor extends Visitor{enter(e){return this.element=cloneDeep(e),BREAK}}const copyProps=(e,t,r=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of r)delete n[e];Object.defineProperties(e,n)},protoChain=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return null===r?t:protoChain(r,[...t,r])},nearestCommonProto=(...e)=>{if(0===e.length)return;let t;const r=e.map((e=>protoChain(e)));for(;r.every((e=>e.length>0));){const e=r.map((e=>e.pop())),n=e[0];if(!e.every((e=>e===n)))break;t=n}return t},hardMixProtos=(e,t,r=[])=>{var n;const s=null!==(n=nearestCommonProto(...e))&&void 0!==n?n:Object.prototype,i=Object.create(s),a=protoChain(s);for(let t of e){let e=protoChain(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===a.indexOf(n)&&(copyProps(i,n,["constructor",...r]),a.push(n))}}return i.constructor=t,i},unique=e=>e.filter(((t,r)=>e.indexOf(t)==r)),mixins=new WeakMap,getMixinsForClass=e=>mixins.get(e),registerMixins=(e,t)=>mixins.set(e,t),mergeObjectsOfDecorators=(e,t)=>{var r,n;const s=unique([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let a of s)i[a]=unique([...null!==(r=null==e?void 0:e[a])&&void 0!==r?r:[],...null!==(n=null==t?void 0:t[a])&&void 0!==n?n:[]]);return i},mergePropertyAndMethodDecorators=(e,t)=>{var r,n,s,i;return{property:mergeObjectsOfDecorators(null!==(r=null==e?void 0:e.property)&&void 0!==r?r:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:mergeObjectsOfDecorators(null!==(s=null==e?void 0:e.method)&&void 0!==s?s:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},mergeDecorators=(e,t)=>{var r,n,s,i,a,o;return{class:unique([...null!==(r=null==e?void 0:e.class)&&void 0!==r?r:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:mergePropertyAndMethodDecorators(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:mergePropertyAndMethodDecorators(null!==(a=null==e?void 0:e.instance)&&void 0!==a?a:{},null!==(o=null==t?void 0:t.instance)&&void 0!==o?o:{})}},decorators=new Map,findAllConstituentClasses=(...e)=>{var t;const r=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const s=[...protoChain(e.prototype).map((e=>e.constructor)),...null!==(t=getMixinsForClass(e))&&void 0!==t?t:[]].filter((e=>!r.has(e)));for(let e of s)n.add(e);r.add(e),n.delete(e)}return[...r]},deepDecoratorSearch=(...e)=>{const t=findAllConstituentClasses(...e).map((e=>decorators.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>mergeDecorators(e,t)))};function Mixin(...e){var t,r,n;const s=e.map((e=>e.prototype));function i(...t){for(const r of e)copyProps(this,new r(...t))}i.prototype=hardMixProtos(s,i),Object.setPrototypeOf(i,hardMixProtos(e,null,["prototype"]));let a=i;{const s=deepDecoratorSearch(...e);for(let e of null!==(t=null==s?void 0:s.class)&&void 0!==t?t:[]){const t=e(a);t&&(a=t)}applyPropAndMethodDecorators(null!==(r=null==s?void 0:s.static)&&void 0!==r?r:{},a),applyPropAndMethodDecorators(null!==(n=null==s?void 0:s.instance)&&void 0!==n?n:{},a.prototype)}return registerMixins(a,e),a}const applyPropAndMethodDecorators=(e,t)=>{const r=e.property,n=e.method;if(r)for(let e in r)for(let n of r[e])n(t,e);if(n)for(let e in n)for(let r of n[e])r(t,e,Object.getOwnPropertyDescriptor(t,e))};class SpecificationVisitor extends Visitor{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return pick(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=path$1(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return pathSatisfies(isFunction,["visitors",...e],this.specObj)?path$1(["visitors",...e],this.specObj):path$1(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})}toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r);return n instanceof FallbackVisitor&&(null==n?void 0:n.constructor)===FallbackVisitor?cloneDeep(t):(visit$1(t,n,r),n.element)}}class FixedFieldsVisitor extends SpecificationVisitor{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(isStringElement(n)&&r.includes(serializer(n))&&!this.ignoredFields.includes(serializer(n))){const r=this.toRefractedElement([...t,"fixedFields",serializer(n)],e),i=new minimExports.MemberElement(cloneDeep(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(serializer(n))||this.element.content.push(cloneDeep(s))})),this.copyMetaAndAttributes(e,this.element),BREAK}}class ParentSchemaAwareVisitor{parent;constructor({parent:e}){this.parent=e}}const isJSONSchemaElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof JSONSchema||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),isJSONReferenceElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof JSONReference||e(n)&&t("JSONReference",n)&&r("object",n))),isMediaElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Media||e(n)&&t("media",n)&&r("object",n))),isLinkDescriptionElement=createPredicate((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof LinkDescription||e(n)&&t("linkDescription",n)&&r("object",n))),jsonSchemaDraft4Predicates=Object.freeze(Object.defineProperty({__proto__:null,isJSONReferenceElement:isJSONReferenceElement,isJSONSchemaElement:isJSONSchemaElement,isLinkDescriptionElement:isLinkDescriptionElement,isMediaElement:isMediaElement},Symbol.toStringTag,{value:"Module"}));class JSONSchemaVisitor extends(Mixin(FixedFieldsVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new JSONSchema,this.specPath=always(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){return this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element,FixedFieldsVisitor.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(isUndefined(this.parent)&&!isStringElement(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(isJSONSchemaElement(this.parent)&&!isStringElement(e.get("$schema"))){const e=defaultTo(serializer(this.parent.meta.get("inheritedDialectIdentifier")),serializer(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const r=void 0!==this.parent?cloneDeep(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new minimExports.ArrayElement,n=serializer(e.get(t));isNonEmptyString(n)&&r.push(n),this.element.setMetaProperty("ancestorsSchemaIdentifiers",r)}}const isJSONReferenceLikeElement=e=>isObjectElement(e)&&e.hasKey("$ref");class ItemsVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){ObjectElement(e){const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),BREAK}ArrayElement(e){return this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class RequiredVisitor extends FallbackVisitor{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}}class PatternedFieldsVisitor extends SpecificationVisitor{specPath;ignoredFields;fieldPatternPredicate=F;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof r&&(this.fieldPatternPredicate=r)}ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(serializer(t))&&this.fieldPatternPredicate(serializer(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new minimExports.MemberElement(cloneDeep(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(serializer(t))||this.element.content.push(cloneDeep(r))})),this.copyMetaAndAttributes(e,this.element),BREAK}}class MapVisitor extends PatternedFieldsVisitor{constructor(e){super(e),this.fieldPatternPredicate=isNonEmptyString}}class PropertiesVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-properties"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class PatternPropertiesVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class DependenciesVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class EnumVisitor extends FallbackVisitor{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}}class TypeVisitor extends FallbackVisitor{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 AllOfVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class AnyOfVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class OneOfVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),BREAK}}class DefinitionsVisitor extends(Mixin(MapVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ObjectElement,this.element.classes.push("json-schema-definitions"),this.specPath=e=>isJSONReferenceLikeElement(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}class LinksVisitor extends(Mixin(SpecificationVisitor,ParentSchemaAwareVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new minimExports.ArrayElement,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),BREAK}}class JSONReferenceVisitor extends(Mixin(FixedFieldsVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new JSONReference,this.specPath=always(["document","objects","JSONReference"])}ObjectElement(e){const t=FixedFieldsVisitor.prototype.ObjectElement.call(this,e);return isStringElement(this.element.$ref)&&this.element.classes.push("reference-element"),t}}class $RefVisitor extends FallbackVisitor{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}}class AlternatingVisitor extends SpecificationVisitor{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ifElse(e,always(t),stubUndefined))),r=dispatch(t)(e);return this.element=this.toRefractedElement(r,e),BREAK}}class SchemaOrReferenceVisitor extends AlternatingVisitor{constructor(e){super(e),this.alternator=[{predicate:isJSONReferenceLikeElement,specPath:["document","objects","JSONReference"]},{predicate:T,specPath:["document","objects","JSONSchema"]}]}}class MediaVisitor extends(Mixin(FixedFieldsVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new Media,this.specPath=always(["document","objects","Media"])}}class LinkDescriptionVisitor extends(Mixin(FixedFieldsVisitor,FallbackVisitor)){constructor(e){super(e),this.element=new LinkDescription,this.specPath=always(["document","objects","LinkDescription"])}}const specification={visitors:{value:FallbackVisitor,JSONSchemaOrJSONReferenceVisitor:SchemaOrReferenceVisitor,document:{objects:{JSONSchema:{$visitor:JSONSchemaVisitor,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:SchemaOrReferenceVisitor,items:ItemsVisitor,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:RequiredVisitor,properties:PropertiesVisitor,additionalProperties:SchemaOrReferenceVisitor,patternProperties:PatternPropertiesVisitor,dependencies:DependenciesVisitor,enum:EnumVisitor,type:TypeVisitor,allOf:AllOfVisitor,anyOf:AnyOfVisitor,oneOf:OneOfVisitor,not:SchemaOrReferenceVisitor,definitions:DefinitionsVisitor,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:LinksVisitor,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:JSONReferenceVisitor,fixedFields:{$ref:$RefVisitor}},Media:{$visitor:MediaVisitor,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:LinkDescriptionVisitor,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:SchemaOrReferenceVisitor,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:SchemaOrReferenceVisitor}}}}}},createToolbox=()=>{const e=createNamespace(jsonSchemaDraft4);return{predicates:{...jsonSchemaDraft4Predicates,isStringElement:isStringElement},namespace:e}},refract=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=specification}={})=>{const s=minimExports.refract(e),i=dereference(n),a=new(path$1(t,i))({specObj:i});return visit$1(s,a),dispatchPluginsSync(a.element,r,{toolboxCreator:createToolbox,visitorOptions:{keyMap:keyMap,nodeTypeGetter:getNodeType}})},createRefractor=e=>(t,r={})=>refract(t,{specPath:e,...r});JSONSchema.refract=createRefractor(["visitors","document","objects","JSONSchema","$visitor"]),JSONReference.refract=createRefractor(["visitors","document","objects","JSONReference","$visitor"]),Media.refract=createRefractor(["visitors","document","objects","Media","$visitor"]),LinkDescription.refract=createRefractor(["visitors","document","objects","LinkDescription","$visitor"]);class Schema extends JSONSchema{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new UnsupportedOperationError("idProp getter in Schema class is not not supported.")}set idProp(e){throw new UnsupportedOperationError("idProp setter in Schema class is not not supported.")}get $schema(){throw new UnsupportedOperationError("$schema getter in Schema class is not not supported.")}set $schema(e){throw new UnsupportedOperationError("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new UnsupportedOperationError("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new UnsupportedOperationError("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new UnsupportedOperationError("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new UnsupportedOperationError("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new UnsupportedOperationError("definitions getter in Schema class is not not supported.")}set definitions(e){throw new UnsupportedOperationError("definitions setter in Schema class is not not supported.")}get base(){throw new UnsupportedOperationError("base getter in Schema class is not not supported.")}set base(e){throw new UnsupportedOperationError("base setter in Schema class is not not supported.")}get links(){throw new UnsupportedOperationError("links getter in Schema class is not not supported.")}set links(e){throw new UnsupportedOperationError("links setter in Schema class is not not supported.")}get media(){throw new UnsupportedOperationError("media getter in Schema class is not not supported.")}set media(e){throw new UnsupportedOperationError("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}}class SecurityRequirement extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}class SecurityScheme extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}class Server extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}class ServerVariable extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}class Tag extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}class Xml extends minimExports.ObjectElement{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const openApi3_0={namespace:e=>{const{base:t}=e;return t.register("callback",Callback),t.register("components",Components),t.register("contact",Contact),t.register("discriminator",Discriminator),t.register("encoding",Encoding),t.register("example",Example),t.register("externalDocumentation",ExternalDocumentation),t.register("header",Header),t.register("info",Info),t.register("license",License),t.register("link",Link),t.register("mediaType",MediaType),t.register("oAuthFlow",OAuthFlow),t.register("oAuthFlows",OAuthFlows),t.register("openapi",Openapi),t.register("openApi3_0",OpenApi3_0),t.register("operation",Operation),t.register("parameter",Parameter),t.register("pathItem",PathItem),t.register("paths",Paths),t.register("reference",Reference),t.register("requestBody",RequestBody),t.register("response",Response),t.register("responses",Responses),t.register("schema",Schema),t.register("securityRequirement",SecurityRequirement),t.register("securityScheme",SecurityScheme),t.register("server",Server),t.register("serverVariable",ServerVariable),t.register("tag",Tag),t.register("xml",Xml),t}},jsonMediaTypes=new OpenAPIMediaTypes(...mediaTypes.filterByFormat("generic"),...mediaTypes.filterByFormat("json"));var __async=(e,t,r)=>new Promise(((n,s)=>{var i=e=>{try{o(r.next(e))}catch(e){s(e)}},a=e=>{try{o(r.throw(e))}catch(e){s(e)}},o=e=>e.done?n(e.value):Promise.resolve(e.value).then(i,a);o((r=r.apply(e,t)).next())}));const detectionRegExp=new RegExp('"openapi"\\s*:\\s*"(?<version_json>3\\.0\\.(?:[1-9]\\d*|0))"'),detect=e=>__async(null,null,(function*(){return detectionRegExp.test(e)&&(yield detect$1(e))})),parse=(e,...t)=>__async(null,[e,...t],(function*(e,t={}){const r=propOr({},"refractorOpts",t),n=omit(["refractorOpts"],t),s=yield parse$1(e,n),{result:i}=s;if(isNotUndefined(i)){const e=OpenApi3_0.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s})),namespace=createNamespace(openApi3_0);exports.detect=detect,exports.detectionRegExp=detectionRegExp,exports.mediaTypes=jsonMediaTypes,exports.namespace=namespace,exports.parse=parse,Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"})}));