@swagger-api/apidom-parser-adapter-openapi-json-3-1 1.2.0 → 1.2.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_1=t():e.apidomParserAdapterOpenApiJson3_1=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),m=s(1811),d=s(3999),h=s(3508),p=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,E=p("iterator"),w="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===p&&k)return k;if(!b&&e&&e in N)return N[e];switch(e){case w:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",R=!1,N=e.prototype,I=N[E]||N["@@iterator"]||p&&N[p],k=!b&&I||M(p),C="Array"===t&&N.entries||I;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[E])||h(P,E,j)),m(P,F,!0,!0),i&&(_[F]=j)),g&&p===x&&I&&I.name!==x&&(!i&&y?d(N,"name",x):(R=!0,k=function(){return n(I,this)})),p)if(T={values:M(x),keys:f?k:M(w),entries:M(S)},O)for(A in T)(b||R||!(A in N))&&h(N,A,T[A]);else r({target:t,proto:!0,forced:b||R},T);return i&&!O||N[E]===k||h(N,E,k,{name:p}),_[t]=k,T}},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),m=s(967),d=s(1743),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},_=p.prototype;e.exports=function(e,t,s){var f,g,y,v,b,E,w,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),T=r(t,x),A=function(e){return f&&d(f,"normal",e),new p(!0,e)},M=function(e){return S?(i(e),P?T(e[0],e[1],A):T(e[0],e[1])):P?T(e,A):T(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=m(e)))throw new h(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=M(e[y]))&&l(_,b))return b;return new p(!1)}f=u(e,g)}for(E=j?e.next:f.next;!(w=n(E,f)).done;){try{b=M(w.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new p(!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),m="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?d:a(e),E=v?d:a(t),w=(b=b==m?h:b)==h,x=(E=E==m?h:E)==h,S=b==E;if(S&&l(e)){if(!l(t))return!1;y=!0,w=!1}if(S&&!w)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=w&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,T=O?t.value():t;return g||(g=new r),f(P,T,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,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),m=!s&&!u&&o(e),d=!s&&!u&&!m&&c(e),h=s||u||m||d,p=h?r(e.length,String):[],_=p.length;for(var f in e)!t&&!l.call(e,f)||h&&("length"==f||m&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||p.push(f);return p}},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)},m=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)}})),m("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),m("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),m("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 m=u;m--;){var d=l[m];if(!(c?d in t:n.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++m<u;){var g=e[d=l[m]],y=t[d];if(i)var v=c?i(y,g,d,t,e,a):i(g,y,d,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==d)}if(_&&!f){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(_=!1)}return a.delete(e),a.delete(t),_}},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),m=s(3508),d=s(8655),h=s(4871),p=d("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=l(r)),a(r[p])||m(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:_}},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),m=s(8148),d=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",p(t)),d(s,y,s.stack,1),arguments.length>2&&m(s,arguments[2]);var a=[];return h(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=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 m=r(),d=0;d<m;++d){var h=n();u.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=r();if(1===p)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===p)for(m=r(),d=0;d<m;++d)h=n(),u.neededDynlibs.push(h);else if(3===p)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===p)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}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),m=new Array(o),d=new Array(o),h=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");d[e]=[],h[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;h[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;h[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-"),h[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:m;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));h[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:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(m[e])}return C._free(s),new Query(INTERNAL,r,a,h,d,Object.freeze(l),Object.freeze(u),Object.freeze(m))}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"),m=new Array(c);this.exceededMatchLimit=Boolean(u);let d=0,h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,r),this.textPredicates[t].every((e=>e(r)))){m[d]={pattern:t,captures:r};const e=this.setProperties[t];e&&(m[d].setProperties=e);const s=this.assertedProperties[t];s&&(m[d].assertedProperties=s);const n=this.refutedProperties[t];n&&(m[d].refutedProperties=n),d++}}return m.length=d,C._free(l),m}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"),m=[];this.exceededMatchLimit=Boolean(u);const d=[];let h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=getValue(h,"i32");if(h+=SIZE_OF_INT,d.length=s,h=unmarshalCaptures(this,e.tree,h,d),this.textPredicates[t].every((e=>e(d)))){const e=d[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),m.push(e)}}return C._free(l),m}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,m=t.length;if(u!=m&&!(l&&m>u))return!1;var d=c.get(e),h=c.get(t);if(d&&h)return d==t&&h==e;var p=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],y=t[p];if(o)var v=l?o(y,g,p,t,e,c):o(g,y,p,e,t,c);if(void 0!==v){if(v)continue;_=!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)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},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),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=a(e),t=c(t),u)try{return m(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,m=i(o(t)),d=n(s),h=m.length;return d<0||d>=h?e?"":void 0:(r=c(m,d))<55296||r>56319||d+1===h||(u=c(m,d+1))<56320||u>57343?e?a(m,d):r:e?l(m,d,d+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),m="prototype",d="script",h=u("IE_PROTO"),p=function(){},_=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(_("")),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"+d+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[m][o[n]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[m]=n(e),s=new p,p[m]=null,s[h]=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),m=s(4879),d=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],E=r.apply(null,v);if(E){var w=E.prototype;if(!_&&n(w,"cause")&&delete w.cause,!s)return E;var x=r("Error"),S=t((function(e,t){var s=m(f?t:e,void 0),r=f?new E(e):new E;return void 0!==s&&i(r,"message",s),h(r,S,r.stack,2),this&&o(w,this)&&u(r,this,S),arguments.length>y&&d(r,arguments[y]),r}));if(S.prototype=w,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in E&&(l(S,E,g),l(S,E,"prepareStackTrace")),c(S,E),!_)try{w.name!==b&&i(w,"name",b),w.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 m=a[u];r(e,m)||s&&r(s,m)||c(e,m,l(t,m))}}},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),m=s(9620),d=s(593),h=s(4123),p=s(3311),_=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=d,r.prototype.MemberElement=l,r.prototype.refract=f,h.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:m,RefElement:d,refract:f,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},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),m=s(3753),d=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||m.state){var g=m.state||(m.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 _(p);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=d("state");h[y]=!0,r=function(e,t){if(u(e,y))throw new _(p);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 _("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]",m="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=p||n&&b(new n)!=u||i&&b(i.resolve())!=m||o&&b(new o)!=d||a&&b(new a)!=h)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return p;case f:return u;case g:return m;case y:return d;case v:return h}return t}),e.exports=b},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"),m=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:m("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,d){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||!m(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=d.get(e);if(_)return _==t;r|=2,d.set(e,t);var f=o(h(e),h(t),r,l,m,d);return d.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),m=s(3999),d=s(701);s(3753);var h=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,p,_,f,g,y,v,b,E=e.target,w=e.global,x=e.stat,S=e.proto,j=w?r:x?r[E]:r[E]&&r[E].prototype,O=w?l:l[E]||m(l,E,{})[E],P=O.prototype;for(_ in t)n=!(s=c(w?_:E+(x?".":"#")+_,e.forced))&&j&&d(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?h(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&m(v,"sham",!0),m(O,_,v),S&&(d(l,p=E+"Prototype")||m(l,p,{}),m(l[p],_,f),e.real&&P&&(s||!P[_])&&m(P,_,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,m=l.hasOwnProperty,d=RegExp("^"+u.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?d: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),m=s(5024),d="Array Iterator",h=o.set,p=o.getterFor(d);e.exports=c(Array,"Array",(function(e,t){h(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=p(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 _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&m&&"values"!==_.name)try{a(_,"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,m="enumerable",d="configurable",h="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&&h in s&&!s[h]){var r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:m in s?s[m]:r[m],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:()=>Hf,detectionRegExp:()=>Vf,mediaTypes:()=>Uf,namespace:()=>Gf,parse:()=>Jf});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>ts,includesClasses:()=>rs,includesSymbols:()=>ss,isAnnotationElement:()=>Xt,isArrayElement:()=>Wt,isBooleanElement:()=>Jt,isCommentElement:()=>Yt,isElement:()=>Bt,isLinkElement:()=>Zt,isMemberElement:()=>zt,isNullElement:()=>Ht,isNumberElement:()=>Vt,isObjectElement:()=>Gt,isParseResultElement:()=>Qt,isPrimitiveElement:()=>es,isRefElement:()=>Kt,isStringElement:()=>Ut});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Ci,isJSONSchemaElement:()=>ki,isLinkDescriptionElement:()=>Di,isMediaElement:()=>$i});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>fc,isCallbackElement:()=>Ka,isComponentsElement:()=>Xa,isContactElement:()=>Ya,isDiscriminatorElement:()=>xc,isExampleElement:()=>Qa,isExternalDocumentationElement:()=>ec,isHeaderElement:()=>tc,isInfoElement:()=>sc,isLicenseElement:()=>rc,isLinkElement:()=>nc,isMediaTypeElement:()=>Ec,isOpenApi3_0Element:()=>oc,isOpenapiElement:()=>ic,isOperationElement:()=>ac,isParameterElement:()=>cc,isPathItemElement:()=>lc,isPathsElement:()=>uc,isReferenceElement:()=>mc,isRequestBodyElement:()=>dc,isResponseElement:()=>hc,isResponsesElement:()=>pc,isSchemaElement:()=>_c,isSecurityRequirementElement:()=>gc,isSecuritySchemeElement:()=>yc,isServerElement:()=>vc,isServerVariableElement:()=>bc,isServersElement:()=>wc});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Ci,isJSONSchemaElement:()=>eh,isLinkDescriptionElement:()=>th,isMediaElement:()=>$i});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Ci,isJSONSchemaElement:()=>dh,isLinkDescriptionElement:()=>hh});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>Vh,isLinkDescriptionElement:()=>Hh});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>rp,isLinkDescriptionElement:()=>np});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function u(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?l((function(t){return e(t,r)})):c(r)?l((function(t){return e(s,t)})):e(s,r)}}}function m(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?u((function(t,s){return e(t,r,s)})):c(r)?u((function(t,r){return e(s,t,r)})):l((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?u((function(t,s){return e(t,s,n)})):c(s)&&c(n)?u((function(t,s){return e(t,r,s)})):c(r)&&c(n)?u((function(t,r){return e(s,t,r)})):c(s)?l((function(t){return e(t,r,n)})):c(r)?l((function(t){return e(s,t,n)})):c(n)?l((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isBooleanJsonSchemaElement:()=>__,isCallbackElement:()=>Gp,isComponentsElement:()=>Wp,isContactElement:()=>zp,isExampleElement:()=>Zp,isExternalDocumentationElement:()=>Kp,isHeaderElement:()=>Xp,isInfoElement:()=>Yp,isJsonSchemaDialectElement:()=>Qp,isLicenseElement:()=>e_,isLinkElement:()=>t_,isMediaTypeElement:()=>b_,isOpenApi3_1Element:()=>r_,isOpenapiElement:()=>s_,isOperationElement:()=>n_,isParameterElement:()=>i_,isPathItemElement:()=>o_,isPathItemElementExternal:()=>a_,isPathsElement:()=>c_,isReferenceElement:()=>l_,isReferenceElementExternal:()=>u_,isRequestBodyElement:()=>m_,isResponseElement:()=>d_,isResponsesElement:()=>h_,isSchemaElement:()=>p_,isSecurityRequirementElement:()=>f_,isSecuritySchemeElement:()=>g_,isServerElement:()=>y_,isServerVariableElement:()=>v_});const d=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return(e|0)===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return p(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return h(e)?_(e,t):t[e]}));const g=m((function(e,t,s){return d(e,f(t,s))}));var y=u((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 v=y;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const E=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const w=l((function(e){return!!E(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function S(e,t,s){return function(r,n,i){if(w(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function j(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function O(e,t,s,r){return s[r](e,t)}const P=S(b,O,j);function T(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!E(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 A(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const M=function(){return this.xf["@@transducer/init"]()},F=function(e){return this.xf["@@transducer/result"](e)};var R=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=function(e){return function(t){return new R(e,t)}};function I(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,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 k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!c(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),r[o]=l,c(l)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):I(Math.max(0,i),k(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):I(e,k(e,[],t))}));function $(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var D=Object.prototype.toString;const L=function(){return"[object Arguments]"===D.call(arguments)?function(e){return"[object Arguments]"===D.call(e)}:function(e){return $("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},H="function"!=typeof Object.keys||U?l((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=U&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=H;const G=u(T(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return C(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return b((function(s,r){return s[r]=e(t[r]),s}),{},J(t));default:return A(e,t)}})));const W=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:P((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,G(s,t))}),[],e)}));const z=u((function(e,t){var s=C(e,t);return C(e,(function(){return b(W,G(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=l((function(e){return z(e.length,e)}));const K=Z(l((function(e){return!e})));function X(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Y(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const ee=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,s,r){var n=X(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),X(t),n)}function se(e,t,s,r){if(Q(e,t))return!0;var n,i,o=ee(e);if(o!==ee(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&te(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=J(e);if(c.length!==J(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var m=c[a];if(!$(m,t)||!se(t[m],e[m],l,u))return!1;a-=1}return!0}const re=u((function(e,t){return se(e,t,[],[])}));const ne=l((function(e){return function(){return e}}));const ie=ne(void 0);const oe=re(ie());const ae=K(oe);var ce=__webpack_require__(8326);function le(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(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 me=u((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function de(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 he(e,t,s,r){return e["@@transducer/result"](s[r](me(e["@@transducer/step"],e),t))}const pe=S(ue,he,de);var _e=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const fe=m((function(e,t,s){return pe("function"==typeof e?new _e(e):e,t,s)}));function ge(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return E(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ye=m(ge("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const ve=l(ge("tail",ye(1,1/0)));function be(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,fe(le,arguments[0],ve(arguments)))}var Ee=function(e,t){switch(arguments.length){case 0:return Ee;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const we=Ee;function xe(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(re(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function Se(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var je=function(e){return(e<10?"0":"")+e};const Oe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+je(e.getUTCMonth()+1)+"-"+je(e.getUTCDate())+"T"+je(e.getUTCHours())+":"+je(e.getUTCMinutes())+":"+je(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Pe(e){return"[object Object]"===Object.prototype.toString.call(e)}var Te=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Te(e,t)}}const Me=u(T(["fantasy-land/filter","filter"],Ae,(function(e,t){return Pe(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},J(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 Fe=u((function(e,t){return Me((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Re(e,t){var s=function(s){var r=t.concat([e]);return xe(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return Se(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(s,e).join(", ")+"))";case"[object Array]":return"["+A(s,e).concat(r(e,Fe((function(e){return/^\d+$/.test(e)}),J(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):Se(Oe(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())+")":Se(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,J(e)).join(", ")+"}"}}const Ne=l((function(e){return Re(e,[])}));function Ie(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=h(n)?_(n,s):s[n]}return s}const ke=m((function(e,t,s){return e(Ie(t,s))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const $e=u((function(e,t){return e&&t}));const De=u((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z($e)(e,t)}));const Le=re(null);const qe=K(Le);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}const Ue=function(e){return"object"===Be(e)};const Ve=C(1,De(qe,Ue));const He=u((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=Ne(e),o=s(i,Ne(t));return void 0!==o&&o===i?e:t}));const Je=u((function(e,t){return G(f(e),t)}));const Ge=l((function(e){return C(fe(He,0,Je("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 We=C(1,be(ee,we("GeneratorFunction")));const ze=C(1,be(ee,we("AsyncFunction")));const Ze=Ge([be(ee,we("Function")),We,ze]);var Ke=be(ee,we("Object")),Xe=be(Ne,re(Ne(Object))),Ye=ke(De(Ze,Xe),["constructor"]);const Qe=C(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Le(t)||Ye(t)}));class et extends ce.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 tt=et;class st extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const rt=st;class nt extends ce.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(oe(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const it=nt;class ot extends ce.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it)}}const at=new ot,ct=e=>{const t=new ot;return Qe(e)&&t.use(e),t},lt=at;const ut=C(1,be(ee,we("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",dt=globalThis.fetch;Ze(dt)&&(globalThis.fetch=(...e)=>ut(e[0])&&e[0].endsWith("tree-sitter.wasm")?dt.apply(globalThis,[mt,ve(e)]):dt.apply(globalThis,e));var ht=__webpack_require__(3833),pt=__webpack_require__(1212);const _t=class extends pt{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 ft extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(_t,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const gt=ft,yt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let vt=null,bt=null;const Et=async e=>{if(null===vt&&null===bt)bt=ht.init().then((()=>ht.Language.load(yt))).then((e=>{const t=new ht;return t.setLanguage(e),t})).finally((()=>{bt=null})),vt=await bt;else if(null===vt&&null!==bt)vt=await bt;else if(null===vt)throw new gt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return vt.parse(e)};const wt=class extends gt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},xt=(e,t,s)=>{const r=e[t];if(null!=r){if(!s&&"function"==typeof r)return r;const e=s?r.leave:r.enter;if("function"==typeof e)return e}else{const r=s?e.leave:e.enter;if(null!=r){if("function"==typeof r)return r;const e=r[t];if("function"==typeof e)return e}}return null},St={},jt=e=>null==e?void 0:e.type,Ot=e=>"string"==typeof jt(e),Pt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Tt=(e,{visitFnGetter:t=xt,nodeTypeGetter:s=jt,breakSymbol:r=St,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,d,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,m,d,h,g);if("function"==typeof(null==t?void 0:t.then))throw new wt("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,m,d){let h=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,l,u,m,p);if("function"==typeof(null==t?void 0:t.then))throw new wt("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]===h&&(c[n]=a)}}};Tt[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=xt,nodeTypeGetter:s=jt,breakSymbol:r=St,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,d,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,m,d,h,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,m,d){let h=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,l,u,m,p);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};const At=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xt,nodeTypeGetter:c=jt,nodePredicate:l=Ot,nodeCloneFn:u=Pt,detectCycles:m=!0,detectCyclesCallback:d=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const E=[],w=[];do{y+=1;const e=y===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===w.length?void 0:E.pop(),b=_,_=w.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;E.push(s)}let O;if(!Array.isArray(b)){var x;if(!l(b))throw new wt(`Invalid AST Node: ${String(b)}`,{node:b});if(m&&w.includes(b)){"function"==typeof d&&d(b,s,_,E,w),E.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,E,w):_&&(_[s]=t),e||(b=t)}};O=i.call(t,b,s,_,E,w,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new wt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){E.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!l(O)){E.pop();continue}b=O}}var S;if(void 0===O&&j&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],y=-1,v=[],_!==i&&void 0!==_&&w.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};function Mt(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}At[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=St,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xt,nodeTypeGetter:c=jt,nodePredicate:l=Ot,nodeCloneFn:u=Pt,detectCycles:m=!0,detectCyclesCallback:d=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const E=[],w=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==v.length;if(e){if(s=0===w.length?void 0:E.pop(),b=_,_=w.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;E.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new wt(`Invalid AST Node: ${String(b)}`,{node:b});if(m&&w.includes(b)){"function"==typeof d&&d(b,s,_,E,w),E.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,E,w):_&&(_[s]=t),e||(b=t)}};j=await i.call(t,b,s,_,E,w,n)}if(j===n)break;if(j===o){if(!e){E.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!l(j)){E.pop();continue}b=j}}var x;if(void 0===j&&S&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(x=h[c(b)])&&void 0!==x?x:[],y=-1,v=[],_!==i&&void 0!==_&&w.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};var Ft=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Mt(this.xf["@@transducer/step"](e,!1))),e},e}();function Rt(e){return function(t){return new Ft(e,t)}}const Nt=u(T(["all"],Rt,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const It=l((function(e){return C(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}))(u(xe)),kt=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ct=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,$t=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Dt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Lt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,qt=e=>e({hasMethod:kt,hasBasicElementProps:Ct,primitiveEq:$t,isElementType:Lt,hasClass:Dt}),Bt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Ut=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Vt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Ht=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Jt=qt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),Gt=qt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),Wt=qt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.wE&&!(r instanceof ce.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),zt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),Zt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),Kt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),Xt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&s("array",r))),Yt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rt||e(r)&&t("comment",r)&&s("string",r))),Qt=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&s("array",r))),es=e=>Lt("object",e)||Lt("array",e)||Lt("boolean",e)||Lt("number",e)||Lt("string",e)||Lt("null",e)||Lt("member",e),ts=e=>!!Bt(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)),ss=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Wt(s)&&Nt(It(s.toValue()),e)},rs=(e,t)=>0===e.length||Nt(It(t.classes.toValue()),e);const ns=class extends wt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const is=class extends ns{};const os=class extends ns{};const as=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const cs=l((function(e){return null==e}));var ls=u((function(e,t){if(0===e.length||cs(t))return!1;for(var s=t,r=0;r<e.length;){if(cs(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const us=ls;var ms=u((function(e,t){return us([e],t)}));const ds=ms;const hs=m((function(e,t,s){return e(f(t,s))}));const ps=u(Ie);const _s=l((function(e){return C(e.length,e)}));const fs=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&Ce(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(s)+' does not have a method named "'+t+'"')}))}));const gs=fs(1,"split");var ys=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,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 vs(e){return function(t){return new ys(e,t)}}const bs=u(T(["dropWhile"],vs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ye(s,1/0,t)})));const Es=fs(1,"join");const ws=_s((function(e,t){return be(gs(""),bs(It(e)),Es(""))(t)})),xs=(e,t)=>{const s=d(e,t);return as((e=>{if(Qe(e)&&ds("$ref",e)&&hs(ut,"$ref",e)){const t=ps(["$ref"],e),r=ws("#/",t);return ps(r.split("/"),s)}return Qe(e)?xs(e,s):e}),e)},Ss=(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),js=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Bt(t)?js(t,r):t,o=Bt(n)?js(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>js(e,r),n=[...e].map(t),i=new ce.ot(n);return s.set(e,i),i}if(e instanceof ce.G6){const t=e=>js(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Bt(e)){const t=Ts(e);if(s.set(e,t),e.content)if(Bt(e.content))t.content=js(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=js(e.content,r);else if(Array.isArray(e.content)){const s=e=>js(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new is("Value provided to cloneDeep function couldn't be cloned",{value:e})};js.safe=e=>{try{return js(e)}catch{return e}};const Os=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},Ps=e=>{const t=new e.constructor;if(t.element=e.element,ts(e)&&Ss(t,e),e.meta.length>0&&(t._meta=js(e.meta)),e.attributes.length>0&&(t._attributes=js(e.attributes)),Bt(e.content)){const s=e.content;t.content=Ps(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=Os(e.content):t.content=e.content;return t},Ts=e=>{if(e instanceof ce.KeyValuePair)return Os(e);if(e instanceof ce.ot)return(e=>{const t=[...e];return new ce.ot(t)})(e);if(e instanceof ce.G6)return(e=>{const t=[...e];return new ce.G6(t)})(e);if(Bt(e))return Ps(e);throw new os("Value provided to cloneShallow function couldn't be cloned",{value:e})};Ts.safe=e=>{try{return Ts(e)}catch{return e}};const As=e=>Gt(e)?"ObjectElement":Wt(e)?"ArrayElement":zt(e)?"MemberElement":Ut(e)?"StringElement":Jt(e)?"BooleanElement":Vt(e)?"NumberElement":Ht(e)?"NullElement":Zt(e)?"LinkElement":Kt(e)?"RefElement":void 0,Ms=e=>Bt(e)?Ts(e):Pt(e),Fs=be(As,ut),Rs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Ns=(e,t,{keyMap:s=Rs,...r}={})=>At(e,t,{keyMap:s,nodeTypeGetter:As,nodePredicate:Fs,nodeCloneFn:Ms,...r});Ns[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=Rs,...r}={})=>At[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:As,nodePredicate:Fs,nodeCloneFn:Ms,...r});const Is=m((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})$(r,t)&&(n[r]=$(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)$(r,s)&&!$(r,n)&&(n[r]=s[r]);return n}));const ks=m((function e(t,s,r){return Is((function(s,r,n){return Pe(r)&&Pe(n)?e(t,r,n):t(s,r,n)}),s,r)}));const Cs=u((function(e,t){return ks((function(e,t,s){return s}),e,t)}));const $s=ye(0,-1);const Ds=u((function(e,t){return e.apply(this,t)}));const Ls=K(Ze);var qs=l((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():E(e)?[]:p(e)?"":Pe(e)?{}:L(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 Bs=qs;const Us=l((function(e){return null!=e&&re(e,Bs(e))}));const Vs=C(1,Ze(Array.isArray)?Array.isArray:be(ee,we("Array")));const Hs=De(Vs,Us);const Js=C(3,(function(e,t,s){var r=ps(e,s),n=ps($s(e),s);if(!Ls(r)&&!Hs(e)){var i=me(r,n);return Ds(i,t)}})),Gs=()=>({predicates:{...e},namespace:lt}),Ws={toolboxCreator:Gs,visitorOptions:{nodeTypeGetter:As,exposeEdits:!0}},zs=(e,t,s={})=>{if(0===t.length)return e;const r=Cs(Ws,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=Tt(a.map(g({},"visitor")),{...i});a.forEach(Js(["pre"],[]));const l=Ns(e,c,i);return a.forEach(Js(["post"],[])),l};zs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=Cs(Ws,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=Tt[Symbol.for("nodejs.util.promisify.custom")],l=Ns[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map(Js(["pre"],[])));const m=await l(e,u,i);return await Promise.allSettled(a.map(Js(["post"],[]))),m};const Zs=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Bt(e)&&(e.meta.length>0&&(r.meta=js(e.meta)),e.attributes.length>0&&(r.attributes=js(e.attributes))),zs(r,s,{toolboxCreator:Gs,visitorOptions:{nodeTypeGetter:As}})},Ks=e=>(t,s={})=>Zs(t,{...s,Type:e});ce.Sh.refract=Ks(ce.Sh),ce.wE.refract=Ks(ce.wE),ce.Om.refract=Ks(ce.Om),ce.bd.refract=Ks(ce.bd),ce.Os.refract=Ks(ce.Os),ce.kT.refract=Ks(ce.kT),ce.Ft.refract=Ks(ce.Ft),ce.sI.refract=Ks(ce.sI),tt.refract=Ks(tt),rt.refract=Ks(rt),it.refract=Ks(it);const Xs=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 Ys=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(es);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 Xs&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new tt(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new it;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ce.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 ce.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,r){const n=!e.hasError,i=e.text,o=new tt(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===r.length){const e=new it;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&Ss(t,e)}};class Qs{cursor;constructor(e){this.cursor=e}document(){return new Xs(this.cursor)}object(){return new Xs(this.cursor).setFieldName(this.cursor)}array(){return new Xs(this.cursor).setFieldName(this.cursor)}pair(){return new Xs(this.cursor)}string(){return new Xs(this.cursor).setFieldName(this.cursor)}number(){return new Xs(this.cursor).setFieldName(this.cursor)}null(){return new Xs(this.cursor).setFieldName(this.cursor)}true(){return new Xs(this.cursor).setFieldName(this.cursor)}false(){return new Xs(this.cursor).setFieldName(this.cursor)}ERROR(){return new Xs(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Xs(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Qs(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Qs(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const er=Qs,tr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Rs},sr=e=>Qt(e)?"ParseResultElement":Bt(e)?As(e):jt(e),rr=e=>Bt(e)||Ot(e),nr=(e,{sourceMap:t=!1}={})=>{const s=new Ys,r=e.walk(),n=new er(r),[i]=Array.from(n);return At(i,s,{keyMap:tr,nodeTypeGetter:sr,nodePredicate:rr,state:{sourceMap:t}})};const ir=l((function(e){return _(0,e)}));const or=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 ar=class extends or{};const cr=class extends ar{static type="document";get child(){return ir(this.children)}};const lr=class extends or{static type="parseResult";get rootNode(){return ir(this.children)}};const ur=class extends or{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},mr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,dr=e=>mr("string",e),hr=e=>mr("false",e),pr=e=>mr("true",e),_r=e=>mr("null",e),fr=e=>mr("number",e),gr=e=>mr("array",e),yr=e=>mr("object",e),vr=e=>mr("property",e),br=e=>mr("key",e);const Er=class extends ar{static type="object";get properties(){return this.children.filter(vr)}};const wr=class extends ar{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>mr("stringContent",e))(e)||(e=>mr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const xr=class extends wr{static type="key"};const Sr=class extends ar{static type="property";get key(){return this.children.find(br)}get value(){return this.children.find((e=>hr(e)||pr(e)||_r(e)||fr(e)||dr(e)||gr(e)||yr(e)))}};const jr=class extends ar{static type="array";get items(){return this.children.filter((e=>hr(e)||pr(e)||_r(e)||fr(e)||dr(e)||gr(e)||yr))}};const Or=class extends ar{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const Pr=class extends Or{static type="stringContent"};const Tr=class extends Or{static type="number"};const Ar=class extends Or{static type="null"};const Mr=class extends Or{static type="true"};const Fr=class extends Or{static type="false"};const Rr=class extends or{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},Nr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};const Ir=class{document={enter:e=>new cr(Ss({children:e.children,isMissing:e.isMissing},e)),leave:e=>new lr({children:[e]})};enter(e){if(e instanceof Xs&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new ur(Ss({value:t,isMissing:s},e))}}object(e){return new Er(Ss({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:s}=e,r=new xr(Ss({children:(null==s?void 0:s.children)||[],isMissing:null!=s&&s.isMissing},s));return new Sr(Ss({children:[r,...t],isMissing:e.isMissing},e))}array(e){return new jr(Ss({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new Pr({value:JSON.parse(e.text)});return new wr(Ss({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new Tr(Ss({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new Ar(Ss({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new Mr(Ss({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new Fr(Ss({value:t,isMissing:e.isMissing},e))}ERROR(e,t,s,r){const n=new Rr(Ss({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new lr({children:[n]}):n}},kr={[lr.type]:["children"],[cr.type]:["children"],[Er.type]:["children"],[Sr.type]:["children"],[jr.type]:["children"],[Rr.type]:["children"],...Rs},Cr=e=>Qt(e)?"ParseResultElement":Bt(e)?As(e):jt(e),$r=e=>Bt(e)||Ot(e);const Dr=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(es);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 it;return t._content=e.children,t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ce.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 ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new tt(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 tt(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&Ss(t,e)}},Lr=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new er(s),[n]=Array.from(r),i=new Ir,o=new Dr,a=At(n,i,{keyMap:Nr,state:{sourceMap:t}});return At(a.rootNode,o,{keyMap:kr,nodeTypeGetter:Cr,nodePredicate:$r,state:{sourceMap:t}})},qr=(ct(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class Br extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Ur=Br;class Vr extends ce.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 Hr=Vr;class Jr extends ce.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 Gr=Jr;class Wr extends ce.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 zr=Wr;class Zr extends ce.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 Kr=Zr;class Xr extends ce.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 Yr=Xr;class Qr extends ce.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 en=Qr;class tn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.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(tn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const sn=tn;class rn extends ce.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 nn=rn;class on extends ce.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 an=on;class cn extends ce.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 ln=cn;class un extends ce.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 mn=un;class dn extends ce.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 hn=dn;class pn extends ce.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=pn;class fn extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const gn=fn;class yn extends ce.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 vn=yn;class bn extends ce.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 ce.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 En=bn;class wn extends ce.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 ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.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(wn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const xn=wn;class Sn extends ce.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 jn=Sn;class On extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Pn=On;class Tn extends ce.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 An=Tn;class Mn extends ce.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 ce.bd(!1)}set required(e){this.set("required",e)}}const Fn=Mn;class Rn extends ce.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 Nn=Rn;class In extends ce.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 kn=In;const Cn=class extends gt{};class $n extends ce.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 Dn=$n;class Ln extends ce.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 qn=Ln;class Bn extends ce.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=Bn;class Vn extends ce.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 Hn=Vn;const Jn=function(){return!0},Gn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:As(e),Wn={EphemeralObject:["content"],EphemeralArray:["content"],...Rs},zn=(e,t,{keyMap:s=Wn,...r}={})=>Ns(e,t,{keyMap:s,nodeTypeGetter:Gn,nodePredicate:Jn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});zn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Wn,...s}={})=>Ns[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Gn,nodePredicate:Jn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const Zn=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 Kn=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 Xn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Kn(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 Zn(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 Yn=e=>Bt(e)?Ut(e)||Vt(e)||Jt(e)||Ht(e)?e.toValue():zn(e,new Xn):e,Qn=e=>{const t=e.meta.length>0?js(e.meta):void 0,s=e.attributes.length>0?js(e.attributes):void 0;return new e.constructor(void 0,t,s)},ei=(e,t)=>t.clone&&t.isMergeableElement(e)?si(Qn(e),e,t):e,ti={clone:!0,isMergeableElement:e=>Gt(e)||Wt(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ei(e,s))),objectElementMerge:(e,t,s)=>{const r=Gt(e)?Qn(e):Qn(t);return Gt(e)&&e.forEach(((e,t,n)=>{const i=Ts(n);i.value=ei(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=Yn(n);let a;if(Gt(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=Ts(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return si;const s=t.customMerge(e,t);return"function"==typeof s?s:si})(n,s)(r,t,s)}else a=Ts(i),a.value=ei(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},si=(e,t,s)=>{var r,n,i;const o={...ti,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:ti.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:ti.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:ti.objectElementMerge;const a=Wt(t);if(!(a===Wt(e)))return ei(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=>js(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>js(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};si.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ce.Sh:e.reduce(((e,s)=>si(e,s,t)),Qn(e[0]))};const ri=si;const ni=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ri(t.meta,e.meta)),ts(e)&&Ss(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ri(t.attributes,e.attributes))}};const ii=class extends ni{enter(e){return this.element=js(e),St}},oi=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},ai=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ai(s,[...t,s])},ci=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ai(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=ai(n);for(let t of e){let e=ai(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(oi(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},li=e=>e.filter(((t,s)=>e.indexOf(t)==s)),ui=(e,t)=>{const s=t.map((e=>ai(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++}},mi=(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(ui(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==ui(r,e)||void 0!==t[r],get:(s,r)=>(ui(r,e)||t)[r],set(t,s,r){const n=ui(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)))))}),di=null,hi="copy",pi="copy",_i="deep",fi=new WeakMap,gi=e=>fi.get(e),yi=(e,t)=>{var s,r;const n=li([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=li([...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},vi=(e,t)=>{var s,r,n,i;return{property:yi(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:yi(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},bi=(e,t)=>{var s,r,n,i,o,a;return{class:li([...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:vi(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:vi(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},Ei=new Map,wi=(...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=[...ai(e.prototype).map((e=>e.constructor)),...null!==(t=gi(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=>Ei.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>bi(e,t)))},xi=e=>{let t=Ei.get(e);return t||(t={},Ei.set(e,t)),t};function Si(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=di;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)oi(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===pi?ci(n,o):(a=n,c=o,mi([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===hi?ci(e,null,["prototype"]):mi(e,Function.prototype));let l=o;if("none"!==_i){const n="deep"===_i?wi(...e):((...e)=>{const t=e.map((e=>xi(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>bi(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)}ji(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),ji(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,m;return u=l,m=e,fi.set(u,m),l}const ji=(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 Oi=l((function(e){return C(fe(He,0,Je("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 Pi=l((function(e){return!Us(e)}));const Ti=u((function(e,t){return e||t}));var Ai=K(C(1,De(qe,u((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Ti)(e,t)}))(Ue,Ze))));const Mi=Oi([ut,Ai,Pi]);const Fi=u((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 Ri=class extends ni{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Fi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ps(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?ps(["visitors",...e],this.specObj):ps(["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 ii&&(null==r?void 0:r.constructor)===ii?js(t):(Ns(t,r,s),r.element)}};const Ni=class extends Ri{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(Yn(r))&&!this.ignoredFields.includes(Yn(r))){const s=this.toRefractedElement([...t,"fixedFields",Yn(r)],e),i=new ce.Pr(js(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Yn(r))||this.element.content.push(js(n))})),this.copyMetaAndAttributes(e,this.element),St}};const Ii=class{parent;constructor({parent:e}){this.parent=e}},ki=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dn||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Ci=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qn||e(r)&&t("JSONReference",r)&&s("object",r))),$i=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Un||e(r)&&t("media",r)&&s("object",r))),Di=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hn||e(r)&&t("linkDescription",r)&&s("object",r)));class Li extends(Si(Ni,Ii,ii)){constructor(e){super(e),this.element=new Dn,this.specPath=ne(["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,Ni.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Ut(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(ki(this.parent)&&!Ut(e.get("$schema"))){const e=d(Yn(this.parent.meta.get("inheritedDialectIdentifier")),Yn(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?js(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=Yn(e.get(t));Mi(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const qi=Li,Bi=e=>Gt(e)&&e.hasKey("$ref");class Ui extends(Si(Ri,Ii,ii)){ObjectElement(e){const t=Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),St}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Vi=Ui;const Hi=class extends ii{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Ji=function(){return!1};const Gi=class extends Ri{specPath;ignoredFields;fieldPatternPredicate=Ji;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(Yn(t))&&this.fieldPatternPredicate(Yn(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(js(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Yn(t))||this.element.content.push(js(s))})),this.copyMetaAndAttributes(e,this.element),St}};const Wi=class extends Gi{constructor(e){super(e),this.fieldPatternPredicate=Mi}};class zi extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Zi=zi;class Ki extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Xi=Ki;class Yi extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Qi=Yi;const eo=class extends ii{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const to=class extends ii{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 so extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const ro=so;class no extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const io=no;class oo extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const ao=oo;class co extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Bi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const lo=co;class uo extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.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),St}}const mo=uo;class ho extends(Si(Ni,ii)){constructor(e){super(e),this.element=new qn,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Ni.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const po=ho;const _o=class extends ii{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const fo=m((function(e,t,s){return C(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const go=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var yo=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const vo=yo;const bo=l(Mt);const Eo=K(cs);const wo=De(Vs,Pi);function xo(e){return function(e){if(Array.isArray(e))return So(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 So(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)?So(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 So(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 jo=be(vo(go((function(e,t){return e.length>t.length}))),ir,f("length")),Oo=_s((function(e,t,s){var r=s.apply(void 0,xo(e));return Eo(r)?bo(r):t}));const Po=fo(wo,(function(e){var t=jo(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return fe(Oo(s),void 0,e)}))}),ie);const To=class extends Ri{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>fo(e,ne(t),ie))),s=Po(t)(e);return this.element=this.toRefractedElement(s,e),St}};const Ao=class extends To{constructor(e){super(e),this.alternator=[{predicate:Bi,specPath:["document","objects","JSONReference"]},{predicate:Jn,specPath:["document","objects","JSONSchema"]}]}};class Mo extends(Si(Ni,ii)){constructor(e){super(e),this.element=new Un,this.specPath=ne(["document","objects","Media"])}}const Fo=Mo;class Ro extends(Si(Ni,ii)){constructor(e){super(e),this.element=new Hn,this.specPath=ne(["document","objects","LinkDescription"])}}const No=Ro,Io={visitors:{value:ii,JSONSchemaOrJSONReferenceVisitor:Ao,document:{objects:{JSONSchema:{$visitor:qi,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:Ao,items:Vi,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Hi,properties:Zi,additionalProperties:Ao,patternProperties:Xi,dependencies:Qi,enum:eo,type:to,allOf:ro,anyOf:io,oneOf:ao,not:Ao,definitions:lo,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:mo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:po,fixedFields:{$ref:_o}},Media:{$visitor:Fo,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:No,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ao,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ao}}}}}},ko=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Co={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Rs},$o={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Dn),t.register("jSONReference",qn),t.register("media",Un),t.register("linkDescription",Hn),t}},Do=()=>{const e=ct($o);return{predicates:{...t,isStringElement:Ut},namespace:e}},Lo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Io}={})=>{const n=(0,ce.e)(e),i=xs(r),o=new(ps(t,i))({specObj:i});return Ns(n,o),zs(o.element,s,{toolboxCreator:Do,visitorOptions:{keyMap:Co,nodeTypeGetter:ko}})},qo=e=>(t,s={})=>Lo(t,{specPath:e,...s});Dn.refract=qo(["visitors","document","objects","JSONSchema","$visitor"]),qn.refract=qo(["visitors","document","objects","JSONReference","$visitor"]),Un.refract=qo(["visitors","document","objects","Media","$visitor"]),Hn.refract=qo(["visitors","document","objects","LinkDescription","$visitor"]);const Bo=class extends Dn{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Cn("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Cn("idProp setter in Schema class is not not supported.")}get $schema(){throw new Cn("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Cn("$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 Cn("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Cn("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Cn("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Cn("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 Cn("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Cn("definitions setter in Schema class is not not supported.")}get base(){throw new Cn("base getter in Schema class is not not supported.")}set base(e){throw new Cn("base setter in Schema class is not not supported.")}get links(){throw new Cn("links getter in Schema class is not not supported.")}set links(e){throw new Cn("links setter in Schema class is not not supported.")}get media(){throw new Cn("media getter in Schema class is not not supported.")}set media(e){throw new Cn("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 Uo extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Vo=Uo;class Ho extends ce.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 Jo=Ho;class Go extends ce.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 Wo=Go;class zo extends ce.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 Zo=zo;class Ko extends ce.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 Xo=Ko;class Yo extends ce.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 Qo=Yo;const ea=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ri(t.meta,e.meta)),ts(e)&&Ss(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ri(t.attributes,e.attributes))}};const ta=class extends ea{enter(e){return this.element=js(e),St}};const sa=class extends ea{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 Fi(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ps(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?ps(["visitors",...e],this.specObj):ps(["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 ta&&(null==r?void 0:r.constructor)===ta?js(t):(Ns(t,r,s),r.element)}};var ra=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Mt(s):s},e}();function na(e){return function(t){return new ra(e,t)}}const ia=u(T(["take"],na,(function(e,t){return ye(0,e<0?1/0:e,t)})));const oa=u((function(e,t){return re(ia(e.length,t),e)})),aa=e=>Gt(e)&&e.hasKey("$ref"),ca=Gt,la=Gt,ua=e=>Ut(e.key)&&oa("x-",Yn(e.key));const ma=class extends sa{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=ua;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(Yn(r))&&!this.ignoredFields.includes(Yn(r))){const s=this.toRefractedElement([...t,"fixedFields",Yn(r)],e),i=new ce.Pr(js(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(Yn(r))||this.element.content.push(js(n))})),this.copyMetaAndAttributes(e,this.element),St}};class da extends(Si(ma,ta)){constructor(e){super(e),this.element=new vn,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return ma.prototype.ObjectElement.call(this,e)}}const ha=da;class pa extends(Si(sa,ta)){StringElement(e){const t=new gn(Yn(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const _a=pa;const fa=class extends sa{MemberElement(e){return this.element=js(e),this.element.classes.push("specification-extension"),St}};class ga extends(Si(ma,ta)){constructor(e){super(e),this.element=new nn,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const ya=ga;const va=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class ba extends(Si(ma,ta)){constructor(e){super(e),this.element=new Gr,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Ea=ba;class wa extends(Si(ma,ta)){constructor(e){super(e),this.element=new an,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const xa=wa;class Sa extends(Si(ma,ta)){constructor(e){super(e),this.element=new ln,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return(Ut(this.element.operationId)||Ut(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const ja=Sa;const Oa=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Pa=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ta=class extends sa{specPath;ignoredFields;fieldPatternPredicate=Ji;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=ua;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(Yn(t))&&this.fieldPatternPredicate(Yn(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(js(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Yn(t))||this.element.content.push(js(s))})),this.copyMetaAndAttributes(e,this.element),St}};const Aa=class extends Ta{constructor(e){super(e),this.fieldPatternPredicate=Mi}};class Ma extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Ma.primaryClass)}}const Fa=Ma;class Ra extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Fa,this.specPath=ne(["value"])}}const Na=Ra;class Ia extends(Si(ma,ta)){constructor(e){super(e),this.element=new Wo,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const ka=Ia;const Ca=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class $a extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push($a.primaryClass)}}const Da=$a;class La extends(Si(sa,ta)){constructor(e){super(e),this.element=new Da}ArrayElement(e){return e.forEach((e=>{const t=ca(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const qa=La;class Ba extends(Si(ma,ta)){constructor(e){super(e),this.element=new Zo,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Ua=Ba;class Va extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Va.primaryClass)}}const Ha=Va;class Ja extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Ha,this.specPath=ne(["document","objects","ServerVariable"])}}const Ga=Ja;class Wa extends(Si(ma,ta)){constructor(e){super(e),this.element=new mn,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const za=Wa;const Za=class extends sa{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>fo(e,ne(t),ie))),s=Po(t)(e);return this.element=this.toRefractedElement(s,e),St}},Ka=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ur||e(r)&&t("callback",r)&&s("object",r))),Xa=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hr||e(r)&&t("components",r)&&s("object",r))),Ya=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gr||e(r)&&t("contact",r)&&s("object",r))),Qa=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yr||e(r)&&t("example",r)&&s("object",r))),ec=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof en||e(r)&&t("externalDocumentation",r)&&s("object",r))),tc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sn||e(r)&&t("header",r)&&s("object",r))),sc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nn||e(r)&&t("info",r)&&s("object",r))),rc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof an||e(r)&&t("license",r)&&s("object",r))),nc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ln||e(r)&&t("link",r)&&s("object",r))),ic=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gn||e(r)&&t("openapi",r)&&s("string",r))),oc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof vn||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),ac=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof En||e(r)&&t("operation",r)&&s("object",r))),cc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xn||e(r)&&t("parameter",r)&&s("object",r))),lc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jn||e(r)&&t("pathItem",r)&&s("object",r))),uc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pn||e(r)&&t("paths",r)&&s("object",r))),mc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof An||e(r)&&t("reference",r)&&s("object",r))),dc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fn||e(r)&&t("requestBody",r)&&s("object",r))),hc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nn||e(r)&&t("response",r)&&s("object",r))),pc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kn||e(r)&&t("responses",r)&&s("object",r))),_c=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bo||e(r)&&t("schema",r)&&s("object",r))),fc=e=>Jt(e)&&e.classes.includes("boolean-json-schema"),gc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vo||e(r)&&t("securityRequirement",r)&&s("object",r))),yc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jo||e(r)&&t("securityScheme",r)&&s("object",r))),vc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wo||e(r)&&t("server",r)&&s("object",r))),bc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zo||e(r)&&t("serverVariable",r)&&s("object",r))),Ec=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mn||e(r)&&t("mediaType",r)&&s("object",r))),wc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Da||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),xc=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zr||e(r)&&t("discriminator",r)&&s("object",r)));class Sc extends(Si(Za,ta)){constructor(e){super(e),this.alternator=[{predicate:aa,specPath:["document","objects","Reference"]},{predicate:Jn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Za.prototype.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const jc=Sc;class Oc extends(Si(Aa,ta)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Pc=Oc;class Tc extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Tc.primaryClass),this.classes.push("examples")}}const Ac=Tc;const Mc=class extends Pc{constructor(e){super(e),this.element=new Ac}};class Fc extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Fc.primaryClass)}}const Rc=Fc;class Nc extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Rc,this.specPath=ne(["document","objects","Encoding"])}}const Ic=Nc;class kc extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Vo,this.specPath=ne(["value"])}}const Cc=kc;class $c extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push($c.primaryClass)}}const Dc=$c;class Lc extends(Si(sa,ta)){constructor(e){super(e),this.element=new Dc}ArrayElement(e){return e.forEach((e=>{if(Gt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(js(e))})),this.copyMetaAndAttributes(e,this.element),St}}const qc=Lc;class Bc extends(Si(ma,ta)){constructor(e){super(e),this.element=new Hr,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Uc=Bc;class Vc extends(Si(ma,ta)){constructor(e){super(e),this.element=new Xo,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Hc=Vc;class Jc extends(Si(ma,ta)){constructor(e){super(e),this.element=new An,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Gc=Jc;const Wc=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class zc extends(Si(ma,ta)){constructor(e){super(e),this.element=new xn,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",Yn(t))})),t}}const Zc=zc;class Kc extends(Si(Za,ta)){constructor(e){super(e),this.alternator=[{predicate:aa,specPath:["document","objects","Reference"]},{predicate:Jn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Za.prototype.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Xc=Kc;class Yc extends(Si(ma,ta)){constructor(e){super(e),this.element=new sn,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const Qc=Yc;class el extends(Si(Za,ta)){constructor(e){super(e),this.alternator=[{predicate:aa,specPath:["document","objects","Reference"]},{predicate:Jn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Za.prototype.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const tl=el;class sl extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(sl.primaryClass),this.classes.push("examples")}}const rl=sl;const nl=class extends Pc{constructor(e){super(e),this.element=new rl}};class il extends(Si(Aa,ta)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const ol=il;class al extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(al.primaryClass),this.classes.push("content")}}const cl=al;const ll=class extends ol{constructor(e){super(e),this.element=new cl}};class ul extends(Si(ma,ta)){constructor(e){super(e),this.element=new Bo,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ml=ul,dl=Io.visitors.document.objects.JSONSchema.fixedFields.allOf;const hl=class extends dl{ArrayElement(e){const t=dl.prototype.ArrayElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},pl=Io.visitors.document.objects.JSONSchema.fixedFields.anyOf;const _l=class extends pl{ArrayElement(e){const t=pl.prototype.ArrayElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},fl=Io.visitors.document.objects.JSONSchema.fixedFields.oneOf;const gl=class extends fl{ArrayElement(e){const t=fl.prototype.ArrayElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},yl=Io.visitors.document.objects.JSONSchema.fixedFields.items;const vl=class extends yl{ObjectElement(e){const t=yl.prototype.ObjectElement.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},bl=Io.visitors.document.objects.JSONSchema.fixedFields.properties;const El=class extends bl{ObjectElement(e){const t=bl.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},wl=Io.visitors.document.objects.JSONSchema.fixedFields.type;const xl=class extends wl{ArrayElement(e){return this.enter(e)}},Sl=Io.visitors.JSONSchemaOrJSONReferenceVisitor;const jl=class extends Sl{ObjectElement(e){const t=Sl.prototype.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Ol extends(Si(ma,ta)){constructor(e){super(e),this.element=new zr,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Pl=Ol;class Tl extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Tl.primaryClass)}}const Al=Tl;class Ml extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Al,this.specPath=ne(["value"])}}const Fl=Ml;class Rl extends(Si(ma,ta)){constructor(e){super(e),this.element=new Qo,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Nl=Rl;class Il extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Il.primaryClass),this.classes.push("examples")}}const kl=Il;const Cl=class extends Pc{constructor(e){super(e),this.element=new kl}};class $l extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push($l.primaryClass),this.classes.push("content")}}const Dl=$l;const Ll=class extends ol{constructor(e){super(e),this.element=new Dl}};class ql extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(ql.primaryClass)}}const Bl=ql;class Ul extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Bl,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Vl=Ul;class Hl extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Hl.primaryClass)}}const Jl=Hl;class Gl extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Jl,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(hc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Yn(t))})),t}}const Wl=Gl;class zl extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(zl.primaryClass),this.classes.push("parameters")}}const Zl=zl;class Kl extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Zl,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Xl=Kl;class Yl extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Yl.primaryClass),this.classes.push("examples")}}const Ql=Yl;class eu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Ql,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const tu=eu;class su extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(su.primaryClass)}}const ru=su;class nu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new ru,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const iu=nu;class ou extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(ou.primaryClass)}}const au=ou;class cu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new au,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(tc).forEach(((e,t)=>{e.setMetaProperty("header-name",Yn(t))})),t}}const lu=cu;class uu extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(uu.primaryClass)}}const mu=uu;class du extends(Si(Aa,ta)){constructor(e){super(e),this.element=new mu,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const hu=du;class pu extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(pu.primaryClass)}}const _u=pu;class fu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new _u,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const gu=fu;class yu extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(yu.primaryClass)}}const vu=yu;class bu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new vu,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Eu=bu;class wu extends(Si(ma,ta)){constructor(e){super(e),this.element=new Yr,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return Ut(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const xu=wu;const Su=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class ju extends(Si(ma,ta)){constructor(e){super(e),this.element=new en,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Ou=ju;class Pu extends(Si(ma,ta)){constructor(e){super(e),this.element=new Kr,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return Gt(this.element.headers)&&this.element.headers.filter(tc).forEach(((e,t)=>{e.setMetaProperty("header-name",Yn(t))})),t}}const Tu=Pu;class Au extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Au.primaryClass)}}const Mu=Au;class Fu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Mu,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!tc(e))return;const s=Yn(t);e.setMetaProperty("headerName",s)})),t}}const Ru=Fu;class Nu extends(Si(Ta,ta)){constructor(e){super(e),this.element=new Pn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Jn}ObjectElement(e){const t=Ta.prototype.ObjectElement.call(this,e);return this.element.filter(lc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",js(t))})),t}}const Iu=Nu;class ku extends(Si(ma,ta)){constructor(e){super(e),this.element=new Fn,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",Yn(t))})),t}}const Cu=ku;class $u extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push($u.primaryClass),this.classes.push("content")}}const Du=$u;const Lu=class extends ol{constructor(e){super(e),this.element=new Du}};class qu extends(Si(Ta,ta)){constructor(e){super(e),this.element=new Ur,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(lc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Yn(t))})),t}}const Bu=qu;class Uu extends(Si(ma,ta)){constructor(e){super(e),this.element=new Nn,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return Gt(this.element.contentProp)&&this.element.contentProp.filter(Ec).forEach(((e,t)=>{e.setMetaProperty("media-type",Yn(t))})),Gt(this.element.headers)&&this.element.headers.filter(tc).forEach(((e,t)=>{e.setMetaProperty("header-name",Yn(t))})),t}}const Vu=Uu;class Hu extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Hu.primaryClass)}}const Ju=Hu;class Gu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Ju,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!tc(e))return;const s=Yn(t);e.setMetaProperty("header-name",s)})),t}}const Wu=Gu;class zu extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass),this.classes.push("content")}}const Zu=zu;const Ku=class extends ol{constructor(e){super(e),this.element=new Zu}};class Xu extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(Xu.primaryClass)}}const Yu=Xu;class Qu extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Yu,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const em=Qu;function tm(e){return"[object Number]"===Object.prototype.toString.call(e)}const sm=u((function(e,t){if(!tm(e)||!tm(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 rm(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!xe(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!xe(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const nm=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!rm(e,!0,this)},e.prototype.has=function(e){return rm(e,!1,this)},e}();const im=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new nm,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 om extends(Si(ma,Ta)){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,...im(e.keys(),t)],ma.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ta.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return St}}const am=om;class cm extends(Si(am,ta)){constructor(e){super(e),this.element=new kn,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>aa(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${sm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=am.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(hc).forEach(((e,t)=>{const s=js(t);this.fieldPatternPredicate(Yn(s))&&e.setMetaProperty("http-status-code",s)})),t}}const lm=cm;class um extends(Si(Za,ta)){constructor(e){super(e),this.alternator=[{predicate:aa,specPath:["document","objects","Reference"]},{predicate:Jn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Za.prototype.enter.call(this,e);return mc(this.element)?this.element.setMetaProperty("referenced-element","response"):hc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const mm=um;class dm extends(Si(ma,ta)){constructor(e){super(e),this.element=new En,this.specPath=ne(["document","objects","Operation"])}}const hm=dm;class pm extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(pm.primaryClass)}}const _m=pm;const fm=class extends ta{constructor(e){super(e),this.element=new _m}ArrayElement(e){return this.element=this.element.concat(js(e)),St}};class gm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(gm.primaryClass),this.classes.push("parameters")}}const ym=gm;class vm extends(Si(sa,ta)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=aa(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);mc(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const bm=vm;const Em=class extends bm{constructor(e){super(e),this.element=new ym}};const wm=class extends Za{constructor(e){super(e),this.alternator=[{predicate:aa,specPath:["document","objects","Reference"]},{predicate:Jn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Za.prototype.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class xm extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(xm.primaryClass)}}const Sm=xm;class jm extends(Si(Aa,ta)){specPath;constructor(e){super(e),this.element=new Sm,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Om=jm;class Pm extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Pm.primaryClass),this.classes.push("security")}}const Tm=Pm;class Am extends(Si(sa,ta)){constructor(e){super(e),this.element=new Tm}ArrayElement(e){return e.forEach((e=>{const t=Gt(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const Mm=Am;class Fm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Fm.primaryClass),this.classes.push("servers")}}const Rm=Fm;const Nm=class extends qa{constructor(e){super(e),this.element=new Rm}};class Im extends(Si(ma,ta)){constructor(e){super(e),this.element=new jn,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=ma.prototype.ObjectElement.call(this,e);return this.element.filter(ac).forEach(((e,t)=>{const s=js(t);s.content=Yn(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Ut(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const km=Im;const Cm=class extends ta{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class $m extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push($m.primaryClass),this.classes.push("servers")}}const Dm=$m;const Lm=class extends qa{constructor(e){super(e),this.element=new Dm}};class qm extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(qm.primaryClass),this.classes.push("parameters")}}const Bm=qm;const Um=class extends bm{constructor(e){super(e),this.element=new Bm}};class Vm extends(Si(ma,ta)){constructor(e){super(e),this.element=new Jo,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Hm=Vm;class Jm extends(Si(ma,ta)){constructor(e){super(e),this.element=new _n,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Gm=Jm;class Wm extends(Si(ma,ta)){constructor(e){super(e),this.element=new hn,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const zm=Wm;class Zm extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Zm.primaryClass)}}const Km=Zm;class Xm extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Km,this.specPath=ne(["value"])}}const Ym=Xm;class Qm extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Qm.primaryClass)}}const ed=Qm;class td extends(Si(sa,ta)){constructor(e){super(e),this.element=new ed}ArrayElement(e){return e.forEach((e=>{const t=la(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),St}}const sd=td,{fixedFields:rd}=Io.visitors.document.objects.JSONSchema,nd={visitors:{value:ta,document:{objects:{OpenApi:{$visitor:ha,fixedFields:{openapi:_a,info:{$ref:"#/visitors/document/objects/Info"},servers:qa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:qc,tags:sd,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ya,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:va}},Contact:{$visitor:Ea,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:xa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:ka,fixedFields:{url:Ca,description:{$ref:"#/visitors/value"},variables:Ga}},ServerVariable:{$visitor:Ua,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Uc,fixedFields:{schemas:Vl,responses:Wl,parameters:Xl,examples:tu,requestBodies:iu,headers:lu,securitySchemes:hu,links:gu,callbacks:Eu}},Paths:{$visitor:Iu},PathItem:{$visitor:km,fixedFields:{$ref:Cm,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:Lm,parameters:Um}},Operation:{$visitor:hm,fixedFields:{tags:fm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Em,requestBody:wm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Om,deprecated:{$ref:"#/visitors/value"},security:Mm,servers:Nm}},ExternalDocumentation:{$visitor:Ou,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Zc,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:Xc,example:{$ref:"#/visitors/value"},examples:Cl,content:Ll}},RequestBody:{$visitor:Cu,fixedFields:{description:{$ref:"#/visitors/value"},content:Lu,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:za,fixedFields:{schema:jc,example:{$ref:"#/visitors/value"},examples:Mc,encoding:Ic}},Encoding:{$visitor:Tu,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Ru,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:lm,fixedFields:{default:mm}},Response:{$visitor:Vu,fixedFields:{description:{$ref:"#/visitors/value"},headers:Wu,content:Ku,links:em}},Callback:{$visitor:Bu},Example:{$visitor:xu,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Su}},Link:{$visitor:ja,fixedFields:{operationRef:Oa,operationId:Pa,parameters:Na,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Qc,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:tl,example:{$ref:"#/visitors/value"},examples:nl,content:ll}},Tag:{$visitor:Hc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Gc,fixedFields:{$ref:Wc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ml,fixedFields:{title:rd.title,multipleOf:rd.multipleOf,maximum:rd.maximum,exclusiveMaximum:rd.exclusiveMaximum,minimum:rd.minimum,exclusiveMinimum:rd.exclusiveMinimum,maxLength:rd.maxLength,minLength:rd.minLength,pattern:rd.pattern,maxItems:rd.maxItems,minItems:rd.minItems,uniqueItems:rd.uniqueItems,maxProperties:rd.maxProperties,minProperties:rd.minProperties,required:rd.required,enum:rd.enum,type:xl,allOf:hl,anyOf:_l,oneOf:gl,not:jl,items:vl,properties:El,additionalProperties:jl,description:rd.description,format:rd.format,default:rd.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:Pl,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Fl}},XML:{$visitor:Nl,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Hm,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:Gm,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:zm,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Ym}},SecurityRequirement:{$visitor:Cc}},extension:{$visitor:fa}}}},id=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},od={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"],...Rs},ad={namespace:e=>{const{base:t}=e;return t.register("callback",Ur),t.register("components",Hr),t.register("contact",Gr),t.register("discriminator",zr),t.register("encoding",Kr),t.register("example",Yr),t.register("externalDocumentation",en),t.register("header",sn),t.register("info",nn),t.register("license",an),t.register("link",ln),t.register("mediaType",mn),t.register("oAuthFlow",hn),t.register("oAuthFlows",_n),t.register("openapi",gn),t.register("openApi3_0",vn),t.register("operation",En),t.register("parameter",xn),t.register("pathItem",jn),t.register("paths",Pn),t.register("reference",An),t.register("requestBody",Fn),t.register("response",Nn),t.register("responses",kn),t.register("schema",Bo),t.register("securityRequirement",Vo),t.register("securityScheme",Jo),t.register("server",Wo),t.register("serverVariable",Zo),t.register("tag",Xo),t.register("xml",Qo),t}},cd=()=>{const e=ct(ad);return{predicates:{...s,isElement:Bt,isStringElement:Ut,isArrayElement:Wt,isObjectElement:Gt,isMemberElement:zt,includesClasses:rs,hasElementSourceMap:ts},namespace:e}},ld=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=xs(nd),i=new(ps(t,n))({specObj:n});return Ns(r,i),zs(i.element,s,{toolboxCreator:cd,visitorOptions:{keyMap:od,nodeTypeGetter:id}})},ud=e=>(t,s={})=>ld(t,{specPath:e,...s});Ur.refract=ud(["visitors","document","objects","Callback","$visitor"]),Hr.refract=ud(["visitors","document","objects","Components","$visitor"]),Gr.refract=ud(["visitors","document","objects","Contact","$visitor"]),Yr.refract=ud(["visitors","document","objects","Example","$visitor"]),zr.refract=ud(["visitors","document","objects","Discriminator","$visitor"]),Kr.refract=ud(["visitors","document","objects","Encoding","$visitor"]),en.refract=ud(["visitors","document","objects","ExternalDocumentation","$visitor"]),sn.refract=ud(["visitors","document","objects","Header","$visitor"]),nn.refract=ud(["visitors","document","objects","Info","$visitor"]),an.refract=ud(["visitors","document","objects","License","$visitor"]),ln.refract=ud(["visitors","document","objects","Link","$visitor"]),mn.refract=ud(["visitors","document","objects","MediaType","$visitor"]),hn.refract=ud(["visitors","document","objects","OAuthFlow","$visitor"]),_n.refract=ud(["visitors","document","objects","OAuthFlows","$visitor"]),gn.refract=ud(["visitors","document","objects","OpenApi","fixedFields","openapi"]),vn.refract=ud(["visitors","document","objects","OpenApi","$visitor"]),En.refract=ud(["visitors","document","objects","Operation","$visitor"]),xn.refract=ud(["visitors","document","objects","Parameter","$visitor"]),jn.refract=ud(["visitors","document","objects","PathItem","$visitor"]),Pn.refract=ud(["visitors","document","objects","Paths","$visitor"]),An.refract=ud(["visitors","document","objects","Reference","$visitor"]),Fn.refract=ud(["visitors","document","objects","RequestBody","$visitor"]),Nn.refract=ud(["visitors","document","objects","Response","$visitor"]),kn.refract=ud(["visitors","document","objects","Responses","$visitor"]),Bo.refract=ud(["visitors","document","objects","Schema","$visitor"]),Vo.refract=ud(["visitors","document","objects","SecurityRequirement","$visitor"]),Jo.refract=ud(["visitors","document","objects","SecurityScheme","$visitor"]),Wo.refract=ud(["visitors","document","objects","Server","$visitor"]),Zo.refract=ud(["visitors","document","objects","ServerVariable","$visitor"]),Xo.refract=ud(["visitors","document","objects","Tag","$visitor"]),Qo.refract=ud(["visitors","document","objects","XML","$visitor"]);const md=class extends Ur{};const dd=class extends Hr{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const hd=class extends Gr{};const pd=class extends zr{};const _d=class extends Kr{};const fd=class extends Yr{};const gd=class extends en{};const yd=class extends sn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const vd=class extends nn{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class bd extends ce.Om{static default=new bd("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Ed=bd;const wd=class extends an{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const xd=class extends ln{};const Sd=class extends mn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const jd=class extends hn{};const Od=class extends _n{};const Pd=class extends gn{};class Td extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Ad=Td;const Md=class extends En{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Fd=class extends xn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Rd=class extends jn{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const Nd=class extends Pn{};class Id extends An{}Object.defineProperty(Id.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Id.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const kd=Id;const Cd=class extends Fn{};const $d=class extends Nn{};const Dd=class extends kn{};const Ld=class extends Dn{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Cn("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Cn("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const qd=class extends Hn{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new Cn("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Cn("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new Cn("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Cn("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Cn("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Cn("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Bd=m((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!cs(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:h(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(h(e)&&E(s)){var r=[].concat(s);return r[e]=t,r}var n={};for(var i in s)n[i]=s[i];return n[e]=t,n}(n,s,r)}));const Ud=Bd;const Vd=m((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var Hd=m((function(e,t,s){return Ud([e],t,s)}));const Jd=Hd;var Gd=u((function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(h(e)&&E(t))return Vd(e,1,t);var s={};for(var r in t)s[r]=t[r];return delete s[e],s}(t[0],s);default:var r=t[0],n=Array.prototype.slice.call(t,1);return null==s[r]?function(e,t){if(h(e)&&E(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):Jd(r,e(n,s[r]),s)}}));const Wd=Gd;const zd=class extends qi{constructor(e){super(e),this.element=new Ld}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const Zd=class extends Vi{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),St}};const Kd=class extends ii{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const Xd=class extends No{constructor(e){super(e),this.element=new qd}},Yd=be(Ud(["visitors","document","objects","JSONSchema","$visitor"],zd),Wd(["visitors","document","objects","JSONSchema","fixedFields","id"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","$id"],Io.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","contains"],Io.visitors.JSONSchemaOrJSONReferenceVisitor),Ud(["visitors","document","objects","JSONSchema","fixedFields","items"],Zd),Ud(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Io.visitors.JSONSchemaOrJSONReferenceVisitor),Ud(["visitors","document","objects","JSONSchema","fixedFields","const"],Io.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","examples"],Kd),Ud(["visitors","document","objects","LinkDescription","$visitor"],Xd),Ud(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Io.visitors.JSONSchemaOrJSONReferenceVisitor),Wd(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Ud(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Io.visitors.JSONSchemaOrJSONReferenceVisitor),Wd(["visitors","document","objects","LinkDescription","fixedFields","method"]),Wd(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Ud(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Io.visitors.value))(Io),Qd={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Rs},eh=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ld||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),th=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qd||e(r)&&t("linkDescription",r)&&s("object",r))),sh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Ld),t.register("jSONReference",qn),t.register("media",Un),t.register("linkDescription",qd),t}},rh=()=>{const e=ct(sh);return{predicates:{...r,isStringElement:Ut},namespace:e}},nh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Yd}={})=>{const n=(0,ce.e)(e),i=xs(r),o=new(ps(t,i))({specObj:i});return Ns(n,o),zs(o.element,s,{toolboxCreator:rh,visitorOptions:{keyMap:Qd,nodeTypeGetter:ko}})},ih=e=>(t,s={})=>nh(t,{specPath:e,...s});Ld.refract=ih(["visitors","document","objects","JSONSchema","$visitor"]),qd.refract=ih(["visitors","document","objects","LinkDescription","$visitor"]);const oh=class extends Ld{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new Cn('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Cn('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const ah=class extends qd{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new Cn("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Cn("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new Cn("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Cn("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const ch=class extends zd{constructor(e){super(e),this.element=new oh}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const lh=class extends Xd{constructor(e){super(e),this.element=new ah}},uh=be(Ud(["visitors","document","objects","JSONSchema","$visitor"],ch),Ud(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Yd.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","if"],Yd.visitors.JSONSchemaOrJSONReferenceVisitor),Ud(["visitors","document","objects","JSONSchema","fixedFields","then"],Yd.visitors.JSONSchemaOrJSONReferenceVisitor),Ud(["visitors","document","objects","JSONSchema","fixedFields","else"],Yd.visitors.JSONSchemaOrJSONReferenceVisitor),Wd(["visitors","document","objects","JSONSchema","fixedFields","media"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Yd.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Yd.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Yd.visitors.value),Ud(["visitors","document","objects","LinkDescription","$visitor"],lh),Ud(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Yd.visitors.value),Ud(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Yd.visitors.value),Wd(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Ud(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Yd.visitors.value),Ud(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Yd.visitors.value),Ud(["visitors","document","objects","LinkDescription","fixedFields","description"],Yd.visitors.value),Ud(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Yd.visitors.value),Ud(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Yd.visitors.JSONSchemaOrJSONReferenceVisitor),Wd(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Ud(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Yd.visitors.value))(Yd),mh={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Rs},dh=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oh||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),hh=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ah||e(r)&&t("linkDescription",r)&&s("object",r))),ph={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",oh),t.register("jSONReference",qn),t.register("linkDescription",ah),t}},_h=()=>{const e=ct(ph);return{predicates:{...n,isStringElement:Ut},namespace:e}},fh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=uh}={})=>{const n=(0,ce.e)(e),i=xs(r),o=new(ps(t,i))({specObj:i});return Ns(n,o),zs(o.element,s,{toolboxCreator:_h,visitorOptions:{keyMap:mh,nodeTypeGetter:ko}})},gh=e=>(t,s={})=>fh(t,{specPath:e,...s});oh.refract=gh(["visitors","document","objects","JSONSchema","$visitor"]),ah.refract=gh(["visitors","document","objects","LinkDescription","$visitor"]);const yh=class extends oh{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new Cn("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Cn("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new Cn("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Cn("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const vh=class extends ah{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const bh=class extends ch{constructor(e){super(e),this.element=new yh}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Ni.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Eh=class extends ii{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const wh=class extends ii{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class xh extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Sh=xh;class jh extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}}const Oh=jh;class Ph extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}}const Th=Ph;class Ah extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}}const Mh=Ah;class Fh extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Rh=Fh;class Nh extends(Si(Ri,Ii,ii)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),St}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),St}}const Ih=Nh;class kh extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Ch=kh;class $h extends(Si(Wi,Ii,ii)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Dh=$h;const Lh=class extends ii{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const qh=class extends lh{constructor(e){super(e),this.element=new vh}},Bh=be(Ud(["visitors","document","objects","JSONSchema","$visitor"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Eh),Ud(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],uh.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],uh.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],uh.visitors.value),Wd(["visitors","document","objects","JSONReference","$visitor"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","$ref"],wh),Wd(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Sh),Ud(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Oh),Ud(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Th),Ud(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Mh),Ud(["visitors","document","objects","JSONSchema","fixedFields","not"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","if"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","then"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","else"],bh),Wd(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Rh),Ud(["visitors","document","objects","JSONSchema","fixedFields","items"],Ih),Ud(["visitors","document","objects","JSONSchema","fixedFields","contains"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","properties"],Ch),Ud(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Dh),Ud(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],bh),Ud(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],uh.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","minContains"],uh.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Lh),Ud(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],uh.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],bh),Ud(["visitors","document","objects","LinkDescription","$visitor"],qh),Ud(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],bh),Ud(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],bh),Ud(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],bh),Ud(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],bh))(uh),Uh={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Rs},Vh=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yh||e(r)&&t("JSONSchema201909",r)&&s("object",r))),Hh=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vh||e(r)&&t("linkDescription",r)&&s("object",r))),Jh={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",yh),t.register("linkDescription",vh),t}},Gh=()=>{const e=ct(Jh);return{predicates:{...i,isStringElement:Ut},namespace:e}},Wh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Bh}={})=>{const n=(0,ce.e)(e),i=xs(r),o=new(ps(t,i))({specObj:i});return Ns(n,o),zs(o.element,s,{toolboxCreator:Gh,visitorOptions:{keyMap:Uh,nodeTypeGetter:ko}})},zh=e=>(t,s={})=>Wh(t,{specPath:e,...s});yh.refract=zh(["visitors","document","objects","JSONSchema","$visitor"]),vh.refract=zh(["visitors","document","objects","LinkDescription","$visitor"]);const Zh=class extends yh{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new Cn("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Cn("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new Cn("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Cn("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Kh=class extends vh{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Xh=class extends bh{constructor(e){super(e),this.element=new Zh}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class Yh extends(Si(Ri,Ii,ii)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),St}}const Qh=Yh;const ep=class extends qh{constructor(e){super(e),this.element=new Kh}},tp=be(Ud(["visitors","document","objects","JSONSchema","$visitor"],Xh),Wd(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Bh.visitors.value),Wd(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Bh.visitors.value),Ud(["visitors","document","objects","JSONSchema","fixedFields","not"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","if"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","then"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","else"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Qh),Ud(["visitors","document","objects","JSONSchema","fixedFields","items"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","contains"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Xh),Wd(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Ud(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Xh),Ud(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Xh),Ud(["visitors","document","objects","LinkDescription","$visitor"],ep),Ud(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Xh),Ud(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Xh),Ud(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Xh),Ud(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Xh))(Bh),sp={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Rs},rp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zh||e(r)&&t("JSONSchema202012",r)&&s("object",r))),np=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kh||e(r)&&t("linkDescription",r)&&s("object",r))),ip={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",Zh),t.register("linkDescription",Kh),t}},op=()=>{const e=ct(ip);return{predicates:{...o,isStringElement:Ut},namespace:e}},ap=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=tp}={})=>{const n=(0,ce.e)(e),i=xs(r),o=new(ps(t,i))({specObj:i});return Ns(n,o),zs(o.element,s,{toolboxCreator:op,visitorOptions:{keyMap:sp,nodeTypeGetter:ko}})},cp=e=>(t,s={})=>ap(t,{specPath:e,...s});Zh.refract=cp(["visitors","document","objects","JSONSchema","$visitor"]),Kh.refract=cp(["visitors","document","objects","LinkDescription","$visitor"]);const lp=class extends Zh{constructor(e,t,s){super(e,t,s),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}};const up=class extends Vo{};const mp=class extends Jo{};const dp=class extends Wo{};const hp=class extends Zo{};const pp=class extends Xo{};const _p=class extends Qo{};class fp extends(Si(ma,ta)){constructor(e){super(e),this.element=new Ad,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,ma.prototype.ObjectElement.call(this,e)}}const gp=fp,yp=nd.visitors.document.objects.Info.$visitor;const vp=class extends yp{constructor(e){super(e),this.element=new vd}},bp=nd.visitors.document.objects.Contact.$visitor;const Ep=class extends bp{constructor(e){super(e),this.element=new hd}},wp=nd.visitors.document.objects.License.$visitor;const xp=class extends wp{constructor(e){super(e),this.element=new wd}},Sp=nd.visitors.document.objects.Link.$visitor;const jp=class extends Sp{constructor(e){super(e),this.element=new xd}};class Op extends(Si(sa,ta)){StringElement(e){const t=new Ed(Yn(e));return this.copyMetaAndAttributes(e,t),this.element=t,St}}const Pp=Op,Tp=nd.visitors.document.objects.Server.$visitor;const Ap=class extends Tp{constructor(e){super(e),this.element=new dp}},Mp=nd.visitors.document.objects.ServerVariable.$visitor;const Fp=class extends Mp{constructor(e){super(e),this.element=new hp}},Rp=nd.visitors.document.objects.MediaType.$visitor;const Np=class extends Rp{constructor(e){super(e),this.element=new Sd}},Ip=nd.visitors.document.objects.SecurityRequirement.$visitor;const kp=class extends Ip{constructor(e){super(e),this.element=new up}},Cp=nd.visitors.document.objects.Components.$visitor;const $p=class extends Cp{constructor(e){super(e),this.element=new dd}},Dp=nd.visitors.document.objects.Tag.$visitor;const Lp=class extends Dp{constructor(e){super(e),this.element=new pp}},qp=nd.visitors.document.objects.Reference.$visitor;const Bp=class extends qp{constructor(e){super(e),this.element=new kd}},Up=nd.visitors.document.objects.Parameter.$visitor;const Vp=class extends Up{constructor(e){super(e),this.element=new Fd}},Hp=nd.visitors.document.objects.Header.$visitor;const Jp=class extends Hp{constructor(e){super(e),this.element=new yd}},Gp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof md||e(r)&&t("callback",r)&&s("object",r))),Wp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof dd||e(r)&&t("components",r)&&s("object",r))),zp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hd||e(r)&&t("contact",r)&&s("object",r))),Zp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fd||e(r)&&t("example",r)&&s("object",r))),Kp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gd||e(r)&&t("externalDocumentation",r)&&s("object",r))),Xp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yd||e(r)&&t("header",r)&&s("object",r))),Yp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vd||e(r)&&t("info",r)&&s("object",r))),Qp=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ed||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),e_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wd||e(r)&&t("license",r)&&s("object",r))),t_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xd||e(r)&&t("link",r)&&s("object",r))),s_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pd||e(r)&&t("openapi",r)&&s("string",r))),r_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Ad||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),n_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Md||e(r)&&t("operation",r)&&s("object",r))),i_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fd||e(r)&&t("parameter",r)&&s("object",r))),o_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rd||e(r)&&t("pathItem",r)&&s("object",r))),a_=e=>{if(!o_(e))return!1;if(!Ut(e.$ref))return!1;const t=Yn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},c_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nd||e(r)&&t("paths",r)&&s("object",r))),l_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof kd||e(r)&&t("reference",r)&&s("object",r))),u_=e=>{if(!l_(e))return!1;if(!Ut(e.$ref))return!1;const t=Yn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},m_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cd||e(r)&&t("requestBody",r)&&s("object",r))),d_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $d||e(r)&&t("response",r)&&s("object",r))),h_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dd||e(r)&&t("responses",r)&&s("object",r))),p_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof lp||e(r)&&t("schema",r)&&s("object",r))),__=e=>Jt(e)&&e.classes.includes("boolean-json-schema"),f_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof up||e(r)&&t("securityRequirement",r)&&s("object",r))),g_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mp||e(r)&&t("securityScheme",r)&&s("object",r))),y_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof dp||e(r)&&t("server",r)&&s("object",r))),v_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hp||e(r)&&t("serverVariable",r)&&s("object",r))),b_=qt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sd||e(r)&&t("mediaType",r)&&s("object",r)));class E_ extends(Si(ma,Ii,ta)){constructor(e){super(e),this.element=new lp,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ed.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=ma.prototype.ObjectElement.call(this,e);return Ut(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Xh.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&Qp(this.openApiSemanticElement.jsonSchemaDialect)?Yn(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Ut(this.openApiGenericElement.get("jsonSchemaDialect"))?Yn(this.openApiGenericElement.get("jsonSchemaDialect")):Yn(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Xh.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Xh.prototype.handleSchemaIdentifier.call(this,e)}}const w_=E_;const x_=class extends Sh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const S_=class extends Oh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const j_=class extends Th{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const O_=class extends Mh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const P_=class extends Rh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const T_=class extends Qh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const A_=class extends Ch{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const M_=class extends Dh{constructor(e){super(e),this.passingOptionsNames.push("parent")}},F_=nd.visitors.document.objects.Discriminator.$visitor;const R_=class extends F_{constructor(e){super(e),this.element=new pd,this.canSupportSpecificationExtensions=!0}},N_=nd.visitors.document.objects.XML.$visitor;const I_=class extends N_{constructor(e){super(e),this.element=new _p}};class k_ extends(Si(Aa,ta)){constructor(e){super(e),this.element=new Bl,this.specPath=ne(["document","objects","Schema"])}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(p_).forEach(((e,t)=>{e.setMetaProperty("schemaName",Yn(t))})),t}}const C_=k_;class $_ extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push($_.primaryClass)}}const D_=$_;class L_ extends(Si(Aa,ta)){constructor(e){super(e),this.element=new D_,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(l_).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const q_=L_,B_=nd.visitors.document.objects.Example.$visitor;const U_=class extends B_{constructor(e){super(e),this.element=new fd}},V_=nd.visitors.document.objects.ExternalDocumentation.$visitor;const H_=class extends V_{constructor(e){super(e),this.element=new gd}},J_=nd.visitors.document.objects.Encoding.$visitor;const G_=class extends J_{constructor(e){super(e),this.element=new _d}},W_=nd.visitors.document.objects.Paths.$visitor;const z_=class extends W_{constructor(e){super(e),this.element=new Nd}},Z_=nd.visitors.document.objects.RequestBody.$visitor;const K_=class extends Z_{constructor(e){super(e),this.element=new Cd}},X_=nd.visitors.document.objects.Callback.$visitor;const Y_=class extends X_{constructor(e){super(e),this.element=new md,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=X_.prototype.ObjectElement.call(this,e);return this.element.filter(l_).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},Q_=nd.visitors.document.objects.Response.$visitor;const ef=class extends Q_{constructor(e){super(e),this.element=new $d}},tf=nd.visitors.document.objects.Responses.$visitor;const sf=class extends tf{constructor(e){super(e),this.element=new Dd}},rf=nd.visitors.document.objects.Operation.$visitor;const nf=class extends rf{constructor(e){super(e),this.element=new Md}},of=nd.visitors.document.objects.PathItem.$visitor;const af=class extends of{constructor(e){super(e),this.element=new Rd}},cf=nd.visitors.document.objects.SecurityScheme.$visitor;const lf=class extends cf{constructor(e){super(e),this.element=new mp}},uf=nd.visitors.document.objects.OAuthFlows.$visitor;const mf=class extends uf{constructor(e){super(e),this.element=new Od}},df=nd.visitors.document.objects.OAuthFlow.$visitor;const hf=class extends df{constructor(e){super(e),this.element=new jd}};class pf extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(pf.primaryClass)}}const _f=pf;class ff extends(Si(Aa,ta)){constructor(e){super(e),this.element=new _f,this.specPath=e=>aa(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(l_).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(o_).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Yn(t))})),t}}const gf=ff,{JSONSchema:yf,LinkDescription:vf}=tp.visitors.document.objects,bf={visitors:{value:nd.visitors.value,document:{objects:{OpenApi:{$visitor:gp,fixedFields:{openapi:nd.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Pp,servers:nd.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:gf,components:{$ref:"#/visitors/document/objects/Components"},security:nd.visitors.document.objects.OpenApi.fixedFields.security,tags:nd.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:vp,fixedFields:{title:nd.visitors.document.objects.Info.fixedFields.title,description:nd.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:nd.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:nd.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:Ep,fixedFields:{name:nd.visitors.document.objects.Contact.fixedFields.name,url:nd.visitors.document.objects.Contact.fixedFields.url,email:nd.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:xp,fixedFields:{name:nd.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:nd.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Ap,fixedFields:{url:nd.visitors.document.objects.Server.fixedFields.url,description:nd.visitors.document.objects.Server.fixedFields.description,variables:nd.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Fp,fixedFields:{enum:nd.visitors.document.objects.ServerVariable.fixedFields.enum,default:nd.visitors.document.objects.ServerVariable.fixedFields.default,description:nd.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:$p,fixedFields:{schemas:C_,responses:nd.visitors.document.objects.Components.fixedFields.responses,parameters:nd.visitors.document.objects.Components.fixedFields.parameters,examples:nd.visitors.document.objects.Components.fixedFields.examples,requestBodies:nd.visitors.document.objects.Components.fixedFields.requestBodies,headers:nd.visitors.document.objects.Components.fixedFields.headers,securitySchemes:nd.visitors.document.objects.Components.fixedFields.securitySchemes,links:nd.visitors.document.objects.Components.fixedFields.links,callbacks:nd.visitors.document.objects.Components.fixedFields.callbacks,pathItems:q_}},Paths:{$visitor:z_},PathItem:{$visitor:af,fixedFields:{$ref:nd.visitors.document.objects.PathItem.fixedFields.$ref,summary:nd.visitors.document.objects.PathItem.fixedFields.summary,description:nd.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:nd.visitors.document.objects.PathItem.fixedFields.servers,parameters:nd.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:nf,fixedFields:{tags:nd.visitors.document.objects.Operation.fixedFields.tags,summary:nd.visitors.document.objects.Operation.fixedFields.summary,description:nd.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:nd.visitors.document.objects.Operation.fixedFields.operationId,parameters:nd.visitors.document.objects.Operation.fixedFields.parameters,requestBody:nd.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:nd.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:nd.visitors.document.objects.Operation.fixedFields.deprecated,security:nd.visitors.document.objects.Operation.fixedFields.security,servers:nd.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:H_,fixedFields:{description:nd.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:nd.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Vp,fixedFields:{name:nd.visitors.document.objects.Parameter.fixedFields.name,in:nd.visitors.document.objects.Parameter.fixedFields.in,description:nd.visitors.document.objects.Parameter.fixedFields.description,required:nd.visitors.document.objects.Parameter.fixedFields.required,deprecated:nd.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:nd.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:nd.visitors.document.objects.Parameter.fixedFields.style,explode:nd.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:nd.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:nd.visitors.document.objects.Parameter.fixedFields.example,examples:nd.visitors.document.objects.Parameter.fixedFields.examples,content:nd.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:K_,fixedFields:{description:nd.visitors.document.objects.RequestBody.fixedFields.description,content:nd.visitors.document.objects.RequestBody.fixedFields.content,required:nd.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Np,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:nd.visitors.document.objects.MediaType.fixedFields.example,examples:nd.visitors.document.objects.MediaType.fixedFields.examples,encoding:nd.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:G_,fixedFields:{contentType:nd.visitors.document.objects.Encoding.fixedFields.contentType,headers:nd.visitors.document.objects.Encoding.fixedFields.headers,style:nd.visitors.document.objects.Encoding.fixedFields.style,explode:nd.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:nd.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:sf,fixedFields:{default:nd.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:ef,fixedFields:{description:nd.visitors.document.objects.Response.fixedFields.description,headers:nd.visitors.document.objects.Response.fixedFields.headers,content:nd.visitors.document.objects.Response.fixedFields.content,links:nd.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Y_},Example:{$visitor:U_,fixedFields:{summary:nd.visitors.document.objects.Example.fixedFields.summary,description:nd.visitors.document.objects.Example.fixedFields.description,value:nd.visitors.document.objects.Example.fixedFields.value,externalValue:nd.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:jp,fixedFields:{operationRef:nd.visitors.document.objects.Link.fixedFields.operationRef,operationId:nd.visitors.document.objects.Link.fixedFields.operationId,parameters:nd.visitors.document.objects.Link.fixedFields.parameters,requestBody:nd.visitors.document.objects.Link.fixedFields.requestBody,description:nd.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Jp,fixedFields:{description:nd.visitors.document.objects.Header.fixedFields.description,required:nd.visitors.document.objects.Header.fixedFields.required,deprecated:nd.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:nd.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:nd.visitors.document.objects.Header.fixedFields.style,explode:nd.visitors.document.objects.Header.fixedFields.explode,allowReserved:nd.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:nd.visitors.document.objects.Header.fixedFields.example,examples:nd.visitors.document.objects.Header.fixedFields.examples,content:nd.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Lp,fixedFields:{name:nd.visitors.document.objects.Tag.fixedFields.name,description:nd.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Bp,fixedFields:{$ref:nd.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...vf},Schema:{$visitor:w_,fixedFields:{...yf.fixedFields,$defs:x_,allOf:S_,anyOf:j_,oneOf:O_,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:P_,prefixItems:T_,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:A_,patternProperties:M_,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:R_,fixedFields:{propertyName:nd.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:nd.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:I_,fixedFields:{name:nd.visitors.document.objects.XML.fixedFields.name,namespace:nd.visitors.document.objects.XML.fixedFields.namespace,prefix:nd.visitors.document.objects.XML.fixedFields.prefix,attribute:nd.visitors.document.objects.XML.fixedFields.attribute,wrapped:nd.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:lf,fixedFields:{type:nd.visitors.document.objects.SecurityScheme.fixedFields.type,description:nd.visitors.document.objects.SecurityScheme.fixedFields.description,name:nd.visitors.document.objects.SecurityScheme.fixedFields.name,in:nd.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:nd.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:nd.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:nd.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:mf,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:hf,fixedFields:{authorizationUrl:nd.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:nd.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:nd.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:nd.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:kp}},extension:{$visitor:nd.visitors.document.extension.$visitor}}}},Ef=e=>{if(Bt(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},wf={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Rs},xf=function(){const e=jf,t=Sf,s=this,r="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let n,i,o,a,c,l,u,m=0,d=0,h=0,p=0,_=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,y,b,E)=>{const w=`${r}parse(): `;m=0,d=0,h=0,p=0,_=0,n=void 0,i=void 0,o=void 0,a=void 0,f.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),n=g.rules,i=g.udts;const x=y.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&x===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const r in s.callbacks)if(s.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(o=s.callbacks[r]?s.callbacks[r]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),s.trace&&s.trace.init(n,i,a),s.stats&&s.stats.init(n,i),s.ast&&s.ast.init(n,i,a),u=E,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=f.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:j,state:f.state,stateName:e.idName(f.state),length:a.length,matched:f.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:p}};const g=(t,s,n,i)=>{if(s.phraseLength>n){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},y=(t,c)=>{let d,h,p;const _=o[t],g=i[_.index];f.UdtIndex=g.index,m||(p=s.ast&&s.ast.udtDefined(_.index),p&&(h=n.length+_.index,d=s.ast.getLength(),s.ast.down(h,g.name)));const y=a.length-c;l[_.index](f,a,c,u),((t,s,n)=>{if(s.phraseLength>n){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,f,y),m||p&&(f.state===e.NOMATCH?s.ast.setLength(d):s.ast.up(h,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(p+=1,d>h&&(h=d),d+=1,f.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const r=o[t];for(let t=0;t<r.children.length&&(v(r.children[t],s),f.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,r)=>{let n,i,a,c;const l=o[t];s.ast&&(i=s.ast.getLength()),n=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),f.state===e.NOMATCH){n=!1;break}a+=f.phraseLength,c+=f.phraseLength}n?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,r)=>{let n,i,c,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(i=r,c=0,l=0,s.ast&&(n=s.ast.getLength());!(i>=a.length)&&(v(t+1,i),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,c+=f.phraseLength,i+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(n))})(t,i);break;case e.RNM:((t,r)=>{let i,l,d;const h=o[t],p=n[h.index],_=c[p.index];if(m||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,n[h.index].name))),_){const t=a.length-r;_(f,a,r,u),g(p,f,t,!0),f.state===e.ACTIVE&&(d=o,o=p.opcodes,v(0,r),o=d,_(f,a,r,u),g(p,f,t,!1))}else d=o,o=p.opcodes,v(0,r,f),o=d;m||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,p.name,r,f.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const r=o[t];f.state=e.NOMATCH,s<a.length&&r.min<=a[s]&&a[s]<=r.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const r=o[t],n=r.string.length;if(f.state=e.NOMATCH,s+n<=a.length){for(let e=0;e<n;e+=1)if(a[s+e]!==r.string[e])return;f.state=e.MATCH,f.phraseLength=n}})(t,i);break;case e.TLS:((t,s)=>{let r;const n=o[t];f.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(s+i<=a.length){for(let e=0;e<i;e+=1)if(r=a[s+e],r>=65&&r<=90&&(r+=32),r!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}}else f.state=e.EMPTY})(t,i);break;case e.UDT:y(t,i);break;case e.AND:((t,s)=>{switch(m+=1,v(t+1,s),m-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(m+=1,v(t+1,s),m-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}m||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),d-=1}},Sf={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,s)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===s){r=e.slice(t);break}if(s<=0)return"";r=e.slice(t,t+s);break}return String.fromCodePoint(...r)}},jf={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case jf.ALT:return"ALT";case jf.CAT:return"CAT";case jf.REP:return"REP";case jf.RNM:return"RNM";case jf.TRG:return"TRG";case jf.TBS:return"TBS";case jf.TLS:return"TLS";case jf.UDT:return"UDT";case jf.AND:return"AND";case jf.NOT:return"NOT";case jf.ACTIVE:return"ACTIVE";case jf.EMPTY:return"EMPTY";case jf.MATCH:return"MATCH";case jf.NOMATCH:return"NOMATCH";case jf.SEM_PRE:return"SEM_PRE";case jf.SEM_POST:return"SEM_POST";case jf.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Of(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class Pf extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(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}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Tf=Pf;new Of;new Of,new xf,new Of,new xf,new Of,new xf,new Of,new xf;const Af=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Mf=class extends Tf{},Ff=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Af(String(e))})).join("/")}`}catch(t){throw new Mf("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Rf={namespace:e=>{const{base:t}=e;return t.register("callback",md),t.register("components",dd),t.register("contact",hd),t.register("discriminator",pd),t.register("encoding",_d),t.register("example",fd),t.register("externalDocumentation",gd),t.register("header",yd),t.register("info",vd),t.register("jsonSchemaDialect",Ed),t.register("license",wd),t.register("link",xd),t.register("mediaType",Sd),t.register("oAuthFlow",jd),t.register("oAuthFlows",Od),t.register("openapi",Pd),t.register("openApi3_1",Ad),t.register("operation",Md),t.register("parameter",Fd),t.register("pathItem",Rd),t.register("paths",Nd),t.register("reference",kd),t.register("requestBody",Cd),t.register("response",$d),t.register("responses",Dd),t.register("schema",lp),t.register("securityRequirement",up),t.register("securityScheme",mp),t.register("server",dp),t.register("serverVariable",hp),t.register("tag",pp),t.register("xml",_p),t}},Nf=e=>{const t=e.reduce(((t,s,r)=>{if(zt(s)){const e=String(Yn(s.key));t.push(e)}else if(Wt(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Ff(t)},If=()=>{const e=ct(Rf);return{predicates:{...a,isElement:Bt,isStringElement:Ut,isArrayElement:Wt,isObjectElement:Gt,isMemberElement:zt,isServersElement:wc,includesClasses:rs,hasElementSourceMap:ts},ancestorLineageToJSONPointer:Nf,namespace:e}},kf=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=xs(bf),i=new(ps(t,n))({specObj:n});return Ns(r,i),zs(i.element,s,{toolboxCreator:If,visitorOptions:{keyMap:wf,nodeTypeGetter:Ef}})},Cf=e=>(t,s={})=>kf(t,{specPath:e,...s});md.refract=Cf(["visitors","document","objects","Callback","$visitor"]),dd.refract=Cf(["visitors","document","objects","Components","$visitor"]),hd.refract=Cf(["visitors","document","objects","Contact","$visitor"]),fd.refract=Cf(["visitors","document","objects","Example","$visitor"]),pd.refract=Cf(["visitors","document","objects","Discriminator","$visitor"]),_d.refract=Cf(["visitors","document","objects","Encoding","$visitor"]),gd.refract=Cf(["visitors","document","objects","ExternalDocumentation","$visitor"]),yd.refract=Cf(["visitors","document","objects","Header","$visitor"]),vd.refract=Cf(["visitors","document","objects","Info","$visitor"]),Ed.refract=Cf(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),wd.refract=Cf(["visitors","document","objects","License","$visitor"]),xd.refract=Cf(["visitors","document","objects","Link","$visitor"]),Sd.refract=Cf(["visitors","document","objects","MediaType","$visitor"]),jd.refract=Cf(["visitors","document","objects","OAuthFlow","$visitor"]),Od.refract=Cf(["visitors","document","objects","OAuthFlows","$visitor"]),Pd.refract=Cf(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Ad.refract=Cf(["visitors","document","objects","OpenApi","$visitor"]),Md.refract=Cf(["visitors","document","objects","Operation","$visitor"]),Fd.refract=Cf(["visitors","document","objects","Parameter","$visitor"]),Rd.refract=Cf(["visitors","document","objects","PathItem","$visitor"]),Nd.refract=Cf(["visitors","document","objects","Paths","$visitor"]),kd.refract=Cf(["visitors","document","objects","Reference","$visitor"]),Cd.refract=Cf(["visitors","document","objects","RequestBody","$visitor"]),$d.refract=Cf(["visitors","document","objects","Response","$visitor"]),Dd.refract=Cf(["visitors","document","objects","Responses","$visitor"]),lp.refract=Cf(["visitors","document","objects","Schema","$visitor"]),up.refract=Cf(["visitors","document","objects","SecurityRequirement","$visitor"]),mp.refract=Cf(["visitors","document","objects","SecurityScheme","$visitor"]),dp.refract=Cf(["visitors","document","objects","Server","$visitor"]),hp.refract=Cf(["visitors","document","objects","ServerVariable","$visitor"]),pp.refract=Cf(["visitors","document","objects","Tag","$visitor"]),_p.refract=Cf(["visitors","document","objects","XML","$visitor"]);const $f=l((function(e){return _(-1,e)}));const Df=class extends Cn{};const Lf=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Df("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Df("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Df("latest method in MediaTypes class is not yet implemented.")}};class qf extends Lf{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return $f(this.filterByFormat(e))}}const Bf=new qf("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Uf=new qf(...Bf.filterByFormat("generic"),...Bf.filterByFormat("json")),Vf=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,Hf=async e=>Vf.test(e)&&await(async e=>{if(!qr.test(e))return!1;try{return"ERROR"!==(await Et(e)).rootNode.type}catch{return!1}})(e),Jf=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const r=await Et(e);let n;return n="indirect"===s?Lr(r,{sourceMap:t}):nr(r,{sourceMap:t}),n})(e,r),{result:i}=n;if(ae(i)){const e=Ad.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Gf=ct(Rf)})(),__webpack_exports__})()));
|
|
1
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_1=t()}(self,(()=>(()=>{var __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),m=s(1811),d=s(3999),h=s(3508),p=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,E=p("iterator"),w="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,p,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===p&&k)return k;if(!b&&e&&e in N)return N[e];switch(e){case w:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",R=!1,N=e.prototype,I=N[E]||N["@@iterator"]||p&&N[p],k=!b&&I||M(p),C="Array"===t&&N.entries||I;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[E])||h(P,E,j)),m(P,F,!0,!0),i&&(_[F]=j)),g&&p===x&&I&&I.name!==x&&(!i&&y?d(N,"name",x):(R=!0,k=function(){return n(I,this)})),p)if(T={values:M(x),keys:f?k:M(w),entries:M(S)},O)for(A in T)(b||R||!(A in N))&&h(N,A,T[A]);else r({target:t,proto:!0,forced:b||R},T);return i&&!O||N[E]===k||h(N,E,k,{name:p}),_[t]=k,T}},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),m=s(967),d=s(1743),h=TypeError,p=function(e,t){this.stopped=e,this.result=t},_=p.prototype;e.exports=function(e,t,s){var f,g,y,v,b,E,w,x=s&&s.that,S=!(!s||!s.AS_ENTRIES),j=!(!s||!s.IS_RECORD),O=!(!s||!s.IS_ITERATOR),P=!(!s||!s.INTERRUPTED),T=r(t,x),A=function(e){return f&&d(f,"normal",e),new p(!0,e)},M=function(e){return S?(i(e),P?T(e[0],e[1],A):T(e[0],e[1])):P?T(e,A):T(e)};if(j)f=e.iterator;else if(O)f=e;else{if(!(g=m(e)))throw new h(o(e)+" is not iterable");if(a(g)){for(y=0,v=c(e);v>y;y++)if((b=M(e[y]))&&l(_,b))return b;return new p(!1)}f=u(e,g)}for(E=j?e.next:f.next;!(w=n(E,f)).done;){try{b=M(w.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new p(!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),m="[object Arguments]",d="[object Array]",h="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?d:a(e),E=v?d:a(t),w=(b=b==m?h:b)==h,x=(E=E==m?h:E)==h,S=b==E;if(S&&l(e)){if(!l(t))return!1;y=!0,w=!1}if(S&&!w)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=w&&p.call(e,"__wrapped__"),O=x&&p.call(t,"__wrapped__");if(j||O){var P=j?e.value():e,T=O?t.value():t;return g||(g=new r),f(P,T,s,_,g)}}return!!S&&(g||(g=new r),o(e,t,s,_,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),m=!s&&!u&&o(e),d=!s&&!u&&!m&&c(e),h=s||u||m||d,p=h?r(e.length,String):[],_=p.length;for(var f in e)!t&&!l.call(e,f)||h&&("length"==f||m&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||p.push(f);return p}},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)},m=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)}})),m("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),m("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),m("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 m=u;m--;){var d=l[m];if(!(c?d in t:n.call(t,d)))return!1}var h=a.get(e),p=a.get(t);if(h&&p)return h==t&&p==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++m<u;){var g=e[d=l[m]],y=t[d];if(i)var v=c?i(y,g,d,t,e,a):i(g,y,d,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==d)}if(_&&!f){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(_=!1)}return a.delete(e),a.delete(t),_}},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),m=s(3508),d=s(8655),h=s(4871),p=d("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[p].call(e)!==e}))?r={}:h&&(r=l(r)),a(r[p])||m(r,p,(function(){return this})),e.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:_}},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),m=s(8148),d=s(4279),h=s(208),p=s(4879),_=s(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var s,r=n(v,this);o?s=o(new f,r?i(this):v):(s=r?this:c(v),l(s,_,"Error")),void 0!==t&&l(s,"message",p(t)),d(s,y,s.stack,1),arguments.length>2&&m(s,arguments[2]);var a=[];return h(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var v=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 m=r(),d=0;d<m;++d){var h=n();u.neededDynlibs.push(h)}}else{i("dylink.0"!==o);for(;t<s;){var p=e[t++],_=r();if(1===p)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===p)for(m=r(),d=0;d<m;++d)h=n(),u.neededDynlibs.push(h);else if(3===p)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===p)for(f=r();f--;){n(),g=n();1==(3&r())&&u.weakImports.add(g)}else t+=_}}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),m=new Array(o),d=new Array(o),h=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");d[e]=[],h[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;h[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;h[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-"),h[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:m;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));h[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:d[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(m[e])}return C._free(s),new Query(INTERNAL,r,a,h,d,Object.freeze(l),Object.freeze(u),Object.freeze(m))}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"),m=new Array(c);this.exceededMatchLimit=Boolean(u);let d=0,h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=new Array(s);if(h=unmarshalCaptures(this,e.tree,h,r),this.textPredicates[t].every((e=>e(r)))){m[d]={pattern:t,captures:r};const e=this.setProperties[t];e&&(m[d].setProperties=e);const s=this.assertedProperties[t];s&&(m[d].assertedProperties=s);const n=this.refutedProperties[t];n&&(m[d].refutedProperties=n),d++}}return m.length=d,C._free(l),m}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"),m=[];this.exceededMatchLimit=Boolean(u);const d=[];let h=l;for(let t=0;t<c;t++){const t=getValue(h,"i32");h+=SIZE_OF_INT;const s=getValue(h,"i32");h+=SIZE_OF_INT;const r=getValue(h,"i32");if(h+=SIZE_OF_INT,d.length=s,h=unmarshalCaptures(this,e.tree,h,d),this.textPredicates[t].every((e=>e(d)))){const e=d[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),m.push(e)}}return C._free(l),m}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,m=t.length;if(u!=m&&!(l&&m>u))return!1;var d=c.get(e),h=c.get(t);if(d&&h)return d==t&&h==e;var p=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++p<u;){var g=e[p],y=t[p];if(o)var v=l?o(y,g,p,t,e,c):o(g,y,p,e,t,c);if(void 0!==v){if(v)continue;_=!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)}))){_=!1;break}}else if(g!==y&&!a(g,y,s,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},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),m=Object.getOwnPropertyDescriptor;t.f=r?m:function(e,t){if(e=a(e),t=c(t),u)try{return m(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,m=i(o(t)),d=n(s),h=m.length;return d<0||d>=h?e?"":void 0:(r=c(m,d))<55296||r>56319||d+1===h||(u=c(m,d+1))<56320||u>57343?e?a(m,d):r:e?l(m,d,d+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),m="prototype",d="script",h=u("IE_PROTO"),p=function(){},_=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(_("")),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"+d+":",t.style.display="none",c.appendChild(t),t.src=String(s),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(r);for(var n=o.length;n--;)delete g[m][o[n]];return g()};a[h]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(p[m]=n(e),s=new p,p[m]=null,s[h]=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),m=s(4879),d=s(8148),h=s(4279),p=s(5024),_=s(4871);e.exports=function(e,t,s,f){var g="stackTraceLimit",y=f?2:1,v=e.split("."),b=v[v.length-1],E=r.apply(null,v);if(E){var w=E.prototype;if(!_&&n(w,"cause")&&delete w.cause,!s)return E;var x=r("Error"),S=t((function(e,t){var s=m(f?t:e,void 0),r=f?new E(e):new E;return void 0!==s&&i(r,"message",s),h(r,S,r.stack,2),this&&o(w,this)&&u(r,this,S),arguments.length>y&&d(r,arguments[y]),r}));if(S.prototype=w,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):p&&g in E&&(l(S,E,g),l(S,E,"prepareStackTrace")),c(S,E),!_)try{w.name!==b&&i(w,"name",b),w.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 m=a[u];r(e,m)||s&&r(s,m)||c(e,m,l(t,m))}}},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),m=s(9620),d=s(593),h=s(4123),p=s(3311),_=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=d,r.prototype.MemberElement=l,r.prototype.refract=f,h.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:m,RefElement:d,refract:f,ArraySlice:h,ObjectSlice:p,KeyValuePair:_}},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),m=s(3753),d=s(4275),h=s(5241),p="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||m.state){var g=m.state||(m.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 _(p);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=d("state");h[y]=!0,r=function(e,t){if(u(e,y))throw new _(p);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 _("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]",m="[object Promise]",d="[object Set]",h="[object WeakMap]",p="[object DataView]",_=l(r),f=l(n),g=l(i),y=l(o),v=l(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=p||n&&b(new n)!=u||i&&b(i.resolve())!=m||o&&b(new o)!=d||a&&b(new a)!=h)&&(b=function(e){var t=c(e),s="[object Object]"==t?e.constructor:void 0,r=s?l(s):"";if(r)switch(r){case _:return p;case f:return u;case g:return m;case y:return d;case v:return h}return t}),e.exports=b},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"),m=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:m("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,d){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||!m(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=a;case"[object Set]":var p=1&r;if(h||(h=c),e.size!=t.size&&!p)return!1;var _=d.get(e);if(_)return _==t;r|=2,d.set(e,t);var f=o(h(e),h(t),r,l,m,d);return d.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),m=s(3999),d=s(701);s(3753);var h=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,p,_,f,g,y,v,b,E=e.target,w=e.global,x=e.stat,S=e.proto,j=w?r:x?r[E]:r[E]&&r[E].prototype,O=w?l:l[E]||m(l,E,{})[E],P=O.prototype;for(_ in t)n=!(s=c(w?_:E+(x?".":"#")+_,e.forced))&&j&&d(j,_),g=O[_],n&&(y=e.dontCallGetSet?(b=a(j,_))&&b.value:j[_]),f=n&&y?y:t[_],(s||S||typeof g!=typeof f)&&(v=e.bind&&n?u(f,r):e.wrap&&n?h(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&m(v,"sham",!0),m(O,_,v),S&&(d(l,p=E+"Prototype")||m(l,p,{}),m(l[p],_,f),e.real&&P&&(s||!P[_])&&m(P,_,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,m=l.hasOwnProperty,d=RegExp("^"+u.call(m).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?d: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),m=s(5024),d="Array Iterator",h=o.set,p=o.getterFor(d);e.exports=c(Array,"Array",(function(e,t){h(this,{type:d,target:r(e),index:0,kind:t})}),(function(){var e=p(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 _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&m&&"values"!==_.name)try{a(_,"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,m="enumerable",d="configurable",h="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&&h in s&&!s[h]){var r=u(e,t);r&&r[h]&&(e[t]=s.value,s={configurable:d in s?s[d]:r[d],enumerable:m in s?s[m]:r[m],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:()=>Jf,detectionRegExp:()=>Hf,mediaTypes:()=>Vf,namespace:()=>Wf,parse:()=>Gf});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>ss,includesClasses:()=>ns,includesSymbols:()=>rs,isAnnotationElement:()=>Yt,isArrayElement:()=>zt,isBooleanElement:()=>Gt,isCommentElement:()=>Qt,isElement:()=>Ut,isLinkElement:()=>Kt,isMemberElement:()=>Zt,isNullElement:()=>Jt,isNumberElement:()=>Ht,isObjectElement:()=>Wt,isParseResultElement:()=>es,isPrimitiveElement:()=>ts,isRefElement:()=>Xt,isStringElement:()=>Vt});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>$i,isJSONSchemaElement:()=>Ci,isLinkDescriptionElement:()=>Li,isMediaElement:()=>Di});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>gc,isCallbackElement:()=>Xa,isComponentsElement:()=>Ya,isContactElement:()=>Qa,isDiscriminatorElement:()=>Sc,isExampleElement:()=>ec,isExternalDocumentationElement:()=>tc,isHeaderElement:()=>sc,isInfoElement:()=>rc,isLicenseElement:()=>nc,isLinkElement:()=>ic,isMediaTypeElement:()=>wc,isOpenApi3_0Element:()=>ac,isOpenapiElement:()=>oc,isOperationElement:()=>cc,isParameterElement:()=>lc,isPathItemElement:()=>uc,isPathsElement:()=>mc,isReferenceElement:()=>dc,isRequestBodyElement:()=>hc,isResponseElement:()=>pc,isResponsesElement:()=>_c,isSchemaElement:()=>fc,isSecurityRequirementElement:()=>yc,isSecuritySchemeElement:()=>vc,isServerElement:()=>bc,isServerVariableElement:()=>Ec,isServersElement:()=>xc});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>$i,isJSONSchemaElement:()=>th,isLinkDescriptionElement:()=>sh,isMediaElement:()=>Di});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>$i,isJSONSchemaElement:()=>hh,isLinkDescriptionElement:()=>ph});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>Hh,isLinkDescriptionElement:()=>Jh});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>np,isLinkDescriptionElement:()=>ip});var a={};function c(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function l(e){return function t(s){return 0===arguments.length||c(s)?t:e.apply(this,arguments)}}function u(e){return function t(s,r){switch(arguments.length){case 0:return t;case 1:return c(s)?t:l((function(t){return e(s,t)}));default:return c(s)&&c(r)?t:c(s)?l((function(t){return e(t,r)})):c(r)?l((function(t){return e(s,t)})):e(s,r)}}}function m(e){return function t(s,r,n){switch(arguments.length){case 0:return t;case 1:return c(s)?t:u((function(t,r){return e(s,t,r)}));case 2:return c(s)&&c(r)?t:c(s)?u((function(t,s){return e(t,r,s)})):c(r)?u((function(t,r){return e(s,t,r)})):l((function(t){return e(s,r,t)}));default:return c(s)&&c(r)&&c(n)?t:c(s)&&c(r)?u((function(t,s){return e(t,s,n)})):c(s)&&c(n)?u((function(t,s){return e(t,r,s)})):c(r)&&c(n)?u((function(t,r){return e(s,t,r)})):c(s)?l((function(t){return e(t,r,n)})):c(r)?l((function(t){return e(s,t,n)})):c(n)?l((function(t){return e(s,r,t)})):e(s,r,n)}}}__webpack_require__.r(a),__webpack_require__.d(a,{isBooleanJsonSchemaElement:()=>f_,isCallbackElement:()=>Wp,isComponentsElement:()=>zp,isContactElement:()=>Zp,isExampleElement:()=>Kp,isExternalDocumentationElement:()=>Xp,isHeaderElement:()=>Yp,isInfoElement:()=>Qp,isJsonSchemaDialectElement:()=>e_,isLicenseElement:()=>t_,isLinkElement:()=>s_,isMediaTypeElement:()=>E_,isOpenApi3_1Element:()=>n_,isOpenapiElement:()=>r_,isOperationElement:()=>i_,isParameterElement:()=>o_,isPathItemElement:()=>a_,isPathItemElementExternal:()=>c_,isPathsElement:()=>l_,isReferenceElement:()=>u_,isReferenceElementExternal:()=>m_,isRequestBodyElement:()=>d_,isResponseElement:()=>h_,isResponsesElement:()=>p_,isSchemaElement:()=>__,isSecurityRequirementElement:()=>g_,isSecuritySchemeElement:()=>y_,isServerElement:()=>v_,isServerVariableElement:()=>b_});const d=u((function(e,t){return null==t||t!=t?e:t})),h=Number.isInteger||function(e){return(e|0)===e};function p(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return p(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return h(e)?_(e,t):t[e]}));const g=m((function(e,t,s){return d(e,f(t,s))}));var y=u((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 v=y;function b(e,t,s){for(var r=0,n=s.length;r<n;)t=e(t,s[r]),r+=1;return t}const E=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const w=l((function(e){return!!E(e)||!!e&&("object"==typeof e&&(!p(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var x="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function S(e,t,s){return function(r,n,i){if(w(i))return e(r,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(r,n,i,"fantasy-land/reduce");if(null!=i[x])return s(r,n,i[x]());if("function"==typeof i.next)return s(r,n,i);if("function"==typeof i.reduce)return t(r,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function j(e,t,s){for(var r=s.next();!r.done;)t=e(t,r.value),r=s.next();return t}function O(e,t,s,r){return s[r](e,t)}const P=S(b,O,j);function T(e,t,s){return function(){if(0===arguments.length)return s();var r=arguments[arguments.length-1];if(!E(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 A(e,t){for(var s=0,r=t.length,n=Array(r);s<r;)n[s]=e(t[s]),s+=1;return n}const M=function(){return this.xf["@@transducer/init"]()},F=function(e){return this.xf["@@transducer/result"](e)};var R=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const N=function(e){return function(t){return new R(e,t)}};function I(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,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 k(e,t,s){return function(){for(var r=[],n=0,i=e,o=0,a=!1;o<t.length||n<arguments.length;){var l;o<t.length&&(!c(t[o])||n>=arguments.length)?l=t[o]:(l=arguments[n],n+=1),r[o]=l,c(l)?a=!0:i-=1,o+=1}return!a&&i<=0?s.apply(this,r):I(Math.max(0,i),k(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):I(e,k(e,[],t))}));function $(e,t){return Object.prototype.hasOwnProperty.call(t,e)}var D=Object.prototype.toString;const L=function(){return"[object Arguments]"===D.call(arguments)?function(e){return"[object Arguments]"===D.call(e)}:function(e){return $("callee",e)}}();var q=!{toString:null}.propertyIsEnumerable("toString"),B=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],U=function(){return arguments.propertyIsEnumerable("length")}(),V=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},H="function"!=typeof Object.keys||U?l((function(e){if(Object(e)!==e)return[];var t,s,r=[],n=U&&L(e);for(t in e)!$(t,e)||n&&"length"===t||(r[r.length]=t);if(q)for(s=B.length-1;s>=0;)$(t=B[s],e)&&!V(r,t)&&(r[r.length]=t),s-=1;return r})):l((function(e){return Object(e)!==e?[]:Object.keys(e)}));const J=H;const G=u(T(["fantasy-land/map","map"],N,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return C(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return b((function(s,r){return s[r]=e(t[r]),s}),{},J(t));default:return A(e,t)}})));const W=u((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(s){return e(s)(t(s))}:P((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,G(s,t))}),[],e)}));const z=u((function(e,t){var s=C(e,t);return C(e,(function(){return b(W,G(s,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Z=l((function(e){return z(e.length,e)}));const K=Z(l((function(e){return!e})));function X(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function Y(e,t,s){for(var r=0,n=s.length;r<n;){if(e(t,s[r]))return!0;r+=1}return!1}const Q="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};const ee=l((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function te(e,t,s,r){var n=X(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!Y((function(e,t){return!Y(i,t,e)}),X(t),n)}function se(e,t,s,r){if(Q(e,t))return!0;var n,i,o=ee(e);if(o!==ee(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!Q(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!Q(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=s.length-1;a>=0;){if(s[a]===e)return r[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&te(e.entries(),t.entries(),s.concat([e]),r.concat([t]));case"Set":return e.size===t.size&&te(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=J(e);if(c.length!==J(t).length)return!1;var l=s.concat([e]),u=r.concat([t]);for(a=c.length-1;a>=0;){var m=c[a];if(!$(m,t)||!se(t[m],e[m],l,u))return!1;a-=1}return!0}const re=u((function(e,t){return se(e,t,[],[])}));const ne=l((function(e){return function(){return e}}));const ie=ne(void 0);const oe=re(ie());const ae=K(oe);var ce=__webpack_require__(8326);function le(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function ue(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 me=u((function(e,t){return I(e.length,(function(){return e.apply(t,arguments)}))}));function de(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 he(e,t,s,r){return e["@@transducer/result"](s[r](me(e["@@transducer/step"],e),t))}const pe=S(ue,he,de);var _e=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const fe=m((function(e,t,s){return pe("function"==typeof e?new _e(e):e,t,s)}));function ge(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return E(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ye=m(ge("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const ve=l(ge("tail",ye(1,1/0)));function be(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return I(arguments[0].length,fe(le,arguments[0],ve(arguments)))}var Ee=function(e,t){switch(arguments.length){case 0:return Ee;case 1:return function t(s){return 0===arguments.length?t:Q(e,s)};default:return Q(e,t)}};const we=Ee;function xe(e,t){return function(e,t,s){var r,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(r=1/t;s<e.length;){if(0===(n=e[s])&&1/n===r)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(n=e[s])&&n!=n)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(re(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function Se(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var je=function(e){return(e<10?"0":"")+e};const Oe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+je(e.getUTCMonth()+1)+"-"+je(e.getUTCDate())+"T"+je(e.getUTCHours())+":"+je(e.getUTCMinutes())+":"+je(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Pe(e){return"[object Object]"===Object.prototype.toString.call(e)}var Te=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ae(e){return function(t){return new Te(e,t)}}const Me=u(T(["fantasy-land/filter","filter"],Ae,(function(e,t){return Pe(t)?b((function(s,r){return e(t[r])&&(s[r]=t[r]),s}),{},J(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 Fe=u((function(e,t){return Me((s=e,function(){return!s.apply(this,arguments)}),t);var s}));function Re(e,t){var s=function(s){var r=t.concat([e]);return xe(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return Se(t)+": "+s(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+A(s,e).join(", ")+"))";case"[object Array]":return"["+A(s,e).concat(r(e,Fe((function(e){return/^\d+$/.test(e)}),J(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):Se(Oe(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())+")":Se(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,J(e)).join(", ")+"}"}}const Ne=l((function(e){return Re(e,[])}));function Ie(e,t){for(var s=t,r=0;r<e.length;r+=1){if(null==s)return;var n=e[r];s=h(n)?_(n,s):s[n]}return s}const ke=m((function(e,t,s){return e(Ie(t,s))}));function Ce(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const $e=u((function(e,t){return e&&t}));const De=u((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z($e)(e,t)}));const Le=re(null);const qe=K(Le);function Be(e){return Be="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Be(e)}const Ue=function(e){return"object"===Be(e)};const Ve=C(1,De(qe,Ue));const He=u((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=Ne(e),o=s(i,Ne(t));return void 0!==o&&o===i?e:t}));const Je=u((function(e,t){return G(f(e),t)}));const Ge=l((function(e){return C(fe(He,0,Je("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 We=C(1,be(ee,we("GeneratorFunction")));const ze=C(1,be(ee,we("AsyncFunction")));const Ze=Ge([be(ee,we("Function")),We,ze]);var Ke=be(ee,we("Object")),Xe=be(Ne,re(Ne(Object))),Ye=ke(De(Ze,Xe),["constructor"]);const Qe=C(1,(function(e){if(!Ve(e)||!Ke(e))return!1;var t=Object.getPrototypeOf(e);return!!Le(t)||Ye(t)}));class et extends ce.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 tt=et;class st extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const rt=st;class nt extends ce.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(oe(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const it=nt;class ot extends ce.g${constructor(){super(),this.register("annotation",tt),this.register("comment",rt),this.register("parseResult",it)}}const at=new ot,ct=e=>{const t=new ot;return Qe(e)&&t.use(e),t},lt=at;const ut=C(1,be(ee,we("String"))),mt=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",dt=globalThis.fetch;Ze(dt)&&(globalThis.fetch=(...e)=>ut(e[0])&&e[0].endsWith("tree-sitter.wasm")?dt.apply(globalThis,[mt,ve(e)]):dt.apply(globalThis,e));var ht=__webpack_require__(3833),pt=__webpack_require__(1212);const _t=class extends pt{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 ft extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(_t,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const gt=ft,yt=__webpack_require__.p+"8b9a42208b2f0cb650aa7e5c4e293a15.wasm";let vt=null,bt=null,Et=null;const wt=async e=>{var t,s;if(null===(t=Et)||void 0===t||t.delete(),null===(s=vt)||void 0===s||s.reset(),null===vt&&null===bt)bt=ht.init().then((()=>ht.Language.load(yt))).then((e=>{const t=new ht;return t.setLanguage(e),t})).finally((()=>{bt=null})),vt=await bt;else if(null===vt&&null!==bt)vt=await bt;else if(null===vt)throw new gt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return Et=vt.parse(e),Et};const xt=class extends gt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},St=(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},jt={},Ot=e=>null==e?void 0:e.type,Pt=e=>"string"==typeof Ot(e),Tt=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),At=(e,{visitFnGetter:t=St,nodeTypeGetter:s=Ot,breakSymbol:r=jt,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,d,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=a.call(e[l],_,u,m,d,h,g);if("function"==typeof(null==t?void 0:t.then))throw new xt("Async visitor not supported in sync mode",{visitor:e[l],visitFn:a});if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},leave(n,o,l,u,m,d){let h=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=a.call(e[n],h,o,l,u,m,p);if("function"==typeof(null==t?void 0:t.then))throw new xt("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]===h&&(c[n]=a)}}};At[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=St,nodeTypeGetter:s=Ot,breakSymbol:r=jt,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,d,h,p){let _=l,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),_=e}};for(let l=0;l<e.length;l+=1)if(c[l]===a){const a=t(e[l],s(_),!1);if("function"==typeof a){const t=await a.call(e[l],_,u,m,d,h,g);if(t===i)c[l]=_;else if(t===r)c[l]=r;else{if(t===n)return t;if(void 0!==t){if(!o)return t;_=t,f=!0}}}}return f?_:void 0},async leave(n,o,l,u,m,d){let h=n;const p={...d,replaceWith(e,t){d.replaceWith(e,t),h=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(h),!0);if("function"==typeof a){const t=await a.call(e[n],h,o,l,u,m,p);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===h&&(c[n]=a)}}};const Mt=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=jt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=St,nodeTypeGetter:c=Ot,nodePredicate:l=Pt,nodeCloneFn:u=Tt,detectCycles:m=!0,detectCyclesCallback:d=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const E=[],w=[];do{y+=1;const e=y===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===w.length?void 0:E.pop(),b=_,_=w.pop(),j)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;E.push(s)}let O;if(!Array.isArray(b)){var x;if(!l(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(m&&w.includes(b)){"function"==typeof d&&d(b,s,_,E,w),E.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,E,w):_&&(_[s]=t),e||(b=t)}};O=i.call(t,b,s,_,E,w,n)}if("function"==typeof(null===(x=O)||void 0===x?void 0:x.then))throw new xt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(O===n)break;if(O===o){if(!e){E.pop();continue}}else if(void 0!==O&&(v.push([s,O]),!e)){if(!l(O)){E.pop();continue}b=O}}var S;if(void 0===O&&j&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(S=h[c(b)])&&void 0!==S?S:[],y=-1,v=[],_!==i&&void 0!==_&&w.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};function Ft(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}Mt[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=jt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=St,nodeTypeGetter:c=Ot,nodePredicate:l=Pt,nodeCloneFn:u=Tt,detectCycles:m=!0,detectCyclesCallback:d=null}={})=>{const h=s||{};let p,_,f=Array.isArray(e),g=[e],y=-1,v=[],b=e;const E=[],w=[];do{y+=1;const e=y===g.length;let s;const S=e&&0!==v.length;if(e){if(s=0===w.length?void 0:E.pop(),b=_,_=w.pop(),S)if(f){b=b.slice();let e=0;for(const[t,s]of v){const r=t-e;s===i?(b.splice(r,1),e+=1):b[r]=s}}else{b=u(b);for(const[e,t]of v)b[e]=t}y=p.index,g=p.keys,v=p.edits,f=p.inArray,p=p.prev}else if(_!==i&&void 0!==_){if(s=f?y:g[y],b=_[s],b===i||void 0===b)continue;E.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new xt(`Invalid AST Node: ${String(b)}`,{node:b});if(m&&w.includes(b)){"function"==typeof d&&d(b,s,_,E,w),E.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,b,s,_,E,w):_&&(_[s]=t),e||(b=t)}};j=await i.call(t,b,s,_,E,w,n)}if(j===n)break;if(j===o){if(!e){E.pop();continue}}else if(void 0!==j&&(v.push([s,j]),!e)){if(!l(j)){E.pop();continue}b=j}}var x;if(void 0===j&&S&&v.push([s,b]),!e)p={inArray:f,index:y,keys:g,edits:v,prev:p},f=Array.isArray(b),g=f?b:null!==(x=h[c(b)])&&void 0!==x?x:[],y=-1,v=[],_!==i&&void 0!==_&&w.push(_),_=b}while(void 0!==p);return 0!==v.length?v[v.length-1][1]:e};var Rt=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Ft(this.xf["@@transducer/step"](e,!1))),e},e}();function Nt(e){return function(t){return new Rt(e,t)}}const It=u(T(["all"],Nt,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0})));const kt=l((function(e){return C(e.length,(function(t,s){var r=Array.prototype.slice.call(arguments,0);return r[0]=s,r[1]=t,e.apply(this,r)}))}))(u(xe)),Ct=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],$t=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Dt=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Lt=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),qt=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Bt=e=>e({hasMethod:Ct,hasBasicElementProps:$t,primitiveEq:Dt,isElementType:qt,hasClass:Lt}),Ut=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),Vt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Ht=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Jt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Gt=Bt((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),Wt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.Sh||e(r)&&t("object",r)&&s("keys",r)&&s("values",r)&&s("items",r))),zt=Bt((({hasBasicElementProps:e,primitiveEq:t,hasMethod:s})=>r=>r instanceof ce.wE&&!(r instanceof ce.Sh)||e(r)&&t("array",r)&&s("push",r)&&s("unshift",r)&&s("map",r)&&s("reduce",r))),Zt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),Kt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),Xt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),Yt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tt||e(r)&&t("annotation",r)&&s("array",r))),Qt=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rt||e(r)&&t("comment",r)&&s("string",r))),es=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof it||e(r)&&t("parseResult",r)&&s("array",r))),ts=e=>qt("object",e)||qt("array",e)||qt("boolean",e)||qt("number",e)||qt("string",e)||qt("null",e)||qt("member",e),ss=e=>!!Ut(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)),rs=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!zt(s)&&It(kt(s.toValue()),e)},ns=(e,t)=>0===e.length||It(kt(t.classes.toValue()),e);const is=class extends xt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const os=class extends is{};const as=class extends is{};const cs=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const ls=l((function(e){return null==e}));var us=u((function(e,t){if(0===e.length||ls(t))return!1;for(var s=t,r=0;r<e.length;){if(ls(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const ms=us;var ds=u((function(e,t){return ms([e],t)}));const hs=ds;const ps=m((function(e,t,s){return e(f(t,s))}));const _s=u(Ie);const fs=l((function(e){return C(e.length,e)}));const gs=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&Ce(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Ne(s)+' does not have a method named "'+t+'"')}))}));const ys=gs(1,"split");var vs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,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 bs(e){return function(t){return new vs(e,t)}}const Es=u(T(["dropWhile"],bs,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ye(s,1/0,t)})));const ws=gs(1,"join");const xs=fs((function(e,t){return be(ys(""),Es(kt(e)),ws(""))(t)})),Ss=(e,t)=>{const s=d(e,t);return cs((e=>{if(Qe(e)&&hs("$ref",e)&&ps(ut,"$ref",e)){const t=_s(["$ref"],e),r=xs("#/",t);return _s(r.split("/"),s)}return Qe(e)?Ss(e,s):e}),e)},js=(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),Os=(e,t={})=>{const{visited:s=new WeakMap}=t,r={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof ce.KeyValuePair){const{key:t,value:n}=e,i=Ut(t)?Os(t,r):t,o=Ut(n)?Os(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>Os(e,r),n=[...e].map(t),i=new ce.ot(n);return s.set(e,i),i}if(e instanceof ce.G6){const t=e=>Os(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Ut(e)){const t=As(e);if(s.set(e,t),e.content)if(Ut(e.content))t.content=Os(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=Os(e.content,r);else if(Array.isArray(e.content)){const s=e=>Os(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new os("Value provided to cloneDeep function couldn't be cloned",{value:e})};Os.safe=e=>{try{return Os(e)}catch{return e}};const Ps=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},Ts=e=>{const t=new e.constructor;if(t.element=e.element,ss(e)&&js(t,e),e.meta.length>0&&(t._meta=Os(e.meta)),e.attributes.length>0&&(t._attributes=Os(e.attributes)),Ut(e.content)){const s=e.content;t.content=Ts(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=Ps(e.content):t.content=e.content;return t},As=e=>{if(e instanceof ce.KeyValuePair)return Ps(e);if(e instanceof ce.ot)return(e=>{const t=[...e];return new ce.ot(t)})(e);if(e instanceof ce.G6)return(e=>{const t=[...e];return new ce.G6(t)})(e);if(Ut(e))return Ts(e);throw new as("Value provided to cloneShallow function couldn't be cloned",{value:e})};As.safe=e=>{try{return As(e)}catch{return e}};const Ms=e=>Wt(e)?"ObjectElement":zt(e)?"ArrayElement":Zt(e)?"MemberElement":Vt(e)?"StringElement":Gt(e)?"BooleanElement":Ht(e)?"NumberElement":Jt(e)?"NullElement":Kt(e)?"LinkElement":Xt(e)?"RefElement":void 0,Fs=e=>Ut(e)?As(e):Tt(e),Rs=be(Ms,ut),Ns={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"]};const Is=(e,t,{keyMap:s=Ns,...r}={})=>Mt(e,t,{keyMap:s,nodeTypeGetter:Ms,nodePredicate:Rs,nodeCloneFn:Fs,...r});Is[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=Ns,...r}={})=>Mt[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Ms,nodePredicate:Rs,nodeCloneFn:Fs,...r});const ks=m((function(e,t,s){var r,n={};for(r in s=s||{},t=t||{})$(r,t)&&(n[r]=$(r,s)?e(r,t[r],s[r]):t[r]);for(r in s)$(r,s)&&!$(r,n)&&(n[r]=s[r]);return n}));const Cs=m((function e(t,s,r){return ks((function(s,r,n){return Pe(r)&&Pe(n)?e(t,r,n):t(s,r,n)}),s,r)}));const $s=u((function(e,t){return Cs((function(e,t,s){return s}),e,t)}));const Ds=ye(0,-1);const Ls=u((function(e,t){return e.apply(this,t)}));const qs=K(Ze);var Bs=l((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():E(e)?[]:p(e)?"":Pe(e)?{}:L(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 Us=Bs;const Vs=l((function(e){return null!=e&&re(e,Us(e))}));const Hs=C(1,Ze(Array.isArray)?Array.isArray:be(ee,we("Array")));const Js=De(Hs,Vs);const Gs=C(3,(function(e,t,s){var r=_s(e,s),n=_s(Ds(e),s);if(!qs(r)&&!Js(e)){var i=me(r,n);return Ls(i,t)}})),Ws=()=>({predicates:{...e},namespace:lt}),zs={toolboxCreator:Ws,visitorOptions:{nodeTypeGetter:Ms,exposeEdits:!0}},Zs=(e,t,s={})=>{if(0===t.length)return e;const r=$s(zs,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=At(a.map(g({},"visitor")),{...i});a.forEach(Gs(["pre"],[]));const l=Is(e,c,i);return a.forEach(Gs(["post"],[])),l};Zs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=$s(zs,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=At[Symbol.for("nodejs.util.promisify.custom")],l=Is[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map(Gs(["pre"],[])));const m=await l(e,u,i);return await Promise.allSettled(a.map(Gs(["post"],[]))),m};const Ks=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Ut(e)&&(e.meta.length>0&&(r.meta=Os(e.meta)),e.attributes.length>0&&(r.attributes=Os(e.attributes))),Zs(r,s,{toolboxCreator:Ws,visitorOptions:{nodeTypeGetter:Ms}})},Xs=e=>(t,s={})=>Ks(t,{...s,Type:e});ce.Sh.refract=Xs(ce.Sh),ce.wE.refract=Xs(ce.wE),ce.Om.refract=Xs(ce.Om),ce.bd.refract=Xs(ce.bd),ce.Os.refract=Xs(ce.Os),ce.kT.refract=Xs(ce.kT),ce.Ft.refract=Xs(ce.Ft),ce.sI.refract=Xs(ce.sI),tt.refract=Xs(tt),rt.refract=Xs(rt),it.refract=Xs(it);const Ys=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 Qs=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(ts);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}enter(e){if(e instanceof Ys&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s=new tt(`(Missing ${t})`);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}document(e){const t=new it;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new ce.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 ce.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,r){const n=!e.hasError,i=e.text,o=new tt(n?`(Unexpected ${i})`:`(Error ${i})`);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===r.length){const e=new it;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){this.sourceMap&&js(t,e)}};class er{cursor;constructor(e){this.cursor=e}document(){return new Ys(this.cursor)}object(){return new Ys(this.cursor).setFieldName(this.cursor)}array(){return new Ys(this.cursor).setFieldName(this.cursor)}pair(){return new Ys(this.cursor)}string(){return new Ys(this.cursor).setFieldName(this.cursor)}number(){return new Ys(this.cursor).setFieldName(this.cursor)}null(){return new Ys(this.cursor).setFieldName(this.cursor)}true(){return new Ys(this.cursor).setFieldName(this.cursor)}false(){return new Ys(this.cursor).setFieldName(this.cursor)}ERROR(){return new Ys(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Ys(this.cursor),this.cursor.gotoFirstChild()){const[t]=new er(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new er(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const tr=er,sr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Ns},rr=e=>es(e)?"ParseResultElement":Ut(e)?Ms(e):Ot(e),nr=e=>Ut(e)||Pt(e),ir=(e,{sourceMap:t=!1}={})=>{const s=new Qs,r=e.walk(),n=new tr(r),[i]=Array.from(n);return Mt(i,s,{keyMap:sr,nodeTypeGetter:rr,nodePredicate:nr,state:{sourceMap:t}})};const or=l((function(e){return _(0,e)}));const ar=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 cr=class extends ar{};const lr=class extends cr{static type="document";get child(){return or(this.children)}};const ur=class extends ar{static type="parseResult";get rootNode(){return or(this.children)}};const mr=class extends ar{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}},dr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,hr=e=>dr("string",e),pr=e=>dr("false",e),_r=e=>dr("true",e),fr=e=>dr("null",e),gr=e=>dr("number",e),yr=e=>dr("array",e),vr=e=>dr("object",e),br=e=>dr("property",e),Er=e=>dr("key",e);const wr=class extends cr{static type="object";get properties(){return this.children.filter(br)}};const xr=class extends cr{static type="string";get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>dr("stringContent",e))(e)||(e=>dr("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}};const Sr=class extends xr{static type="key"};const jr=class extends cr{static type="property";get key(){return this.children.find(Er)}get value(){return this.children.find((e=>pr(e)||_r(e)||fr(e)||gr(e)||hr(e)||yr(e)||vr(e)))}};const Or=class extends cr{static type="array";get items(){return this.children.filter((e=>pr(e)||_r(e)||fr(e)||gr(e)||hr(e)||yr(e)||vr))}};const Pr=class extends cr{static type="value";value;constructor({value:e,...t}){super({...t}),this.value=e}};const Tr=class extends Pr{static type="stringContent"};const Ar=class extends Pr{static type="number"};const Mr=class extends Pr{static type="null"};const Fr=class extends Pr{static type="true"};const Rr=class extends Pr{static type="false"};const Nr=class extends ar{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}},Ir={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};const kr=class{document={enter:e=>new lr(js({children:e.children,isMissing:e.isMissing},e)),leave:e=>new ur({children:[e]})};enter(e){if(e instanceof Ys&&!e.isNamed){const t=e.type||e.text,{isMissing:s}=e;return new mr(js({value:t,isMissing:s},e))}}object(e){return new wr(js({children:e.children,isMissing:e.isMissing},e))}pair(e){const t=e.children.slice(1),{keyNode:s}=e,r=new Sr(js({children:(null==s?void 0:s.children)||[],isMissing:null!=s&&s.isMissing},s));return new jr(js({children:[r,...t],isMissing:e.isMissing},e))}array(e){return new Or(js({children:e.children,isMissing:e.isMissing},e))}string(e){const t=new Tr({value:JSON.parse(e.text)});return new xr(js({children:[t],isMissing:e.isMissing},e))}number(e){const t=e.text;return new Ar(js({value:t,isMissing:e.isMissing},e))}null(e){const t=e.text;return new Mr(js({value:t,isMissing:e.isMissing},e))}true(e){const t=e.text;return new Fr(js({value:t,isMissing:e.isMissing},e))}false(e){const t=e.text;return new Rr(js({value:t,isMissing:e.isMissing},e))}ERROR(e,t,s,r){const n=new Nr(js({children:e.children,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text},e));return 0===r.length?new ur({children:[n]}):n}},Cr={[ur.type]:["children"],[lr.type]:["children"],[wr.type]:["children"],[jr.type]:["children"],[Or.type]:["children"],[Nr.type]:["children"],...Ns},$r=e=>es(e)?"ParseResultElement":Ut(e)?Ms(e):Ot(e),Dr=e=>Ut(e)||Pt(e);const Lr=class{sourceMap=!1;annotations;ParseResultElement={leave:e=>{const t=e.findElements(ts);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}};constructor(){this.annotations=[]}document(e){const t=new it;return t._content=e.children,t}object(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new ce.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 ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new ce.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new ce.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new ce.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new ce.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new ce.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new tt(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 tt(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new it;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){this.sourceMap&&js(t,e)}},qr=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new tr(s),[n]=Array.from(r),i=new kr,o=new Lr,a=Mt(n,i,{keyMap:Ir,state:{sourceMap:t}});return Mt(a.rootNode,o,{keyMap:Cr,nodeTypeGetter:$r,nodePredicate:Dr,state:{sourceMap:t}})},Br=(ct(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class Ur extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Vr=Ur;class Hr extends ce.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 Jr=Hr;class Gr extends ce.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 Wr=Gr;class zr extends ce.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 Zr=zr;class Kr extends ce.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 Xr=Kr;class Yr extends ce.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 Qr=Yr;class en extends ce.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 tn=en;class sn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.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(sn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const rn=sn;class nn extends ce.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 on=nn;class an extends ce.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 cn=an;class ln extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Vt(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Vt(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const un=ln;class mn extends ce.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 dn=mn;class hn extends ce.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 pn=hn;class _n extends ce.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 fn=_n;class gn extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const yn=gn;class vn extends ce.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 bn=vn;class En extends ce.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 ce.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 wn=En;class xn extends ce.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 ce.bd(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ce.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(xn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Sn=xn;class jn extends ce.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 On=jn;class Pn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const Tn=Pn;class An extends ce.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 Mn=An;class Fn extends ce.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 ce.bd(!1)}set required(e){this.set("required",e)}}const Rn=Fn;class Nn extends ce.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 In=Nn;class kn extends ce.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 Cn=kn;const $n=class extends gt{};class Dn extends ce.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 Ln=Dn;class qn extends ce.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 Bn=qn;class Un extends ce.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 Vn=Un;class Hn extends ce.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 Jn=Hn;const Gn=function(){return!0},Wn=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Ms(e),zn={EphemeralObject:["content"],EphemeralArray:["content"],...Ns},Zn=(e,t,{keyMap:s=zn,...r}={})=>Is(e,t,{keyMap:s,nodeTypeGetter:Wn,nodePredicate:Gn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Zn[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=zn,...s}={})=>Is[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Wn,nodePredicate:Gn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const Kn=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 Xn=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 Yn{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Xn(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 Kn(e.content);return this.references.set(e,t),t}};EphemeralArray={leave:e=>e.toArray()};references=new WeakMap;BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}RefElement(e,...t){var s;const r=t[3];return"EphemeralObject"===(null===(s=r[r.length-1])||void 0===s?void 0:s.type)?Symbol.for("delete-node"):String(e.toValue())}LinkElement(e){return Vt(e.href)?e.href.toValue():""}}const Qn=e=>Ut(e)?Vt(e)||Ht(e)||Gt(e)||Jt(e)?e.toValue():Zn(e,new Yn):e,ei=e=>{const t=e.meta.length>0?Os(e.meta):void 0,s=e.attributes.length>0?Os(e.attributes):void 0;return new e.constructor(void 0,t,s)},ti=(e,t)=>t.clone&&t.isMergeableElement(e)?ri(ei(e),e,t):e,si={clone:!0,isMergeableElement:e=>Wt(e)||zt(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>ti(e,s))),objectElementMerge:(e,t,s)=>{const r=Wt(e)?ei(e):ei(t);return Wt(e)&&e.forEach(((e,t,n)=>{const i=As(n);i.value=ti(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=Qn(n);let a;if(Wt(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=As(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return ri;const s=t.customMerge(e,t);return"function"==typeof s?s:ri})(n,s)(r,t,s)}else a=As(i),a.value=ti(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},ri=(e,t,s)=>{var r,n,i;const o={...si,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:si.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:si.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:si.objectElementMerge;const a=zt(t);if(!(a===zt(e)))return ti(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=>Os(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>Os(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};ri.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new ce.Sh:e.reduce(((e,s)=>ri(e,s,t)),ei(e[0]))};const ni=ri;const ii=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ni(t.meta,e.meta)),ss(e)&&js(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ni(t.attributes,e.attributes))}};const oi=class extends ii{enter(e){return this.element=Os(e),jt}},ai=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},ci=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:ci(s,[...t,s])},li=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>ci(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=ci(n);for(let t of e){let e=ci(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(ai(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},ui=e=>e.filter(((t,s)=>e.indexOf(t)==s)),mi=(e,t)=>{const s=t.map((e=>ci(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++}},di=(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(mi(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==mi(r,e)||void 0!==t[r],get:(s,r)=>(mi(r,e)||t)[r],set(t,s,r){const n=mi(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)))))}),hi=null,pi="copy",_i="copy",fi="deep",gi=new WeakMap,yi=e=>gi.get(e),vi=(e,t)=>{var s,r;const n=ui([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=ui([...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},bi=(e,t)=>{var s,r,n,i;return{property:vi(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:vi(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Ei=(e,t)=>{var s,r,n,i,o,a;return{class:ui([...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:bi(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:bi(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},wi=new Map,xi=(...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=[...ci(e.prototype).map((e=>e.constructor)),...null!==(t=yi(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=>wi.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Ei(e,t)))},Si=e=>{let t=wi.get(e);return t||(t={},wi.set(e,t)),t};function ji(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=hi;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)ai(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===_i?li(n,o):(a=n,c=o,di([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===pi?li(e,null,["prototype"]):di(e,Function.prototype));let l=o;if("none"!==fi){const n="deep"===fi?xi(...e):((...e)=>{const t=e.map((e=>Si(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Ei(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)}Oi(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Oi(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,m;return u=l,m=e,gi.set(u,m),l}const Oi=(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 Pi=l((function(e){return C(fe(He,0,Je("length",e)),(function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ti=l((function(e){return!Vs(e)}));const Ai=u((function(e,t){return e||t}));var Mi=K(C(1,De(qe,u((function(e,t){return Ce(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Ai)(e,t)}))(Ue,Ze))));const Fi=Pi([ut,Mi,Ti]);const Ri=u((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 Ni=class extends ii{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Ri(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=_s(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?_s(["visitors",...e],this.specObj):_s(["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 oi&&(null==r?void 0:r.constructor)===oi?Os(t):(Is(t,r,s),r.element)}};const Ii=class extends Ni{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(Vt(r)&&s.includes(Qn(r))&&!this.ignoredFields.includes(Qn(r))){const s=this.toRefractedElement([...t,"fixedFields",Qn(r)],e),i=new ce.Pr(Os(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Qn(r))||this.element.content.push(Os(n))})),this.copyMetaAndAttributes(e,this.element),jt}};const ki=class{parent;constructor({parent:e}){this.parent=e}},Ci=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ln||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),$i=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bn||e(r)&&t("JSONReference",r)&&s("object",r))),Di=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vn||e(r)&&t("media",r)&&s("object",r))),Li=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jn||e(r)&&t("linkDescription",r)&&s("object",r)));class qi extends(ji(Ii,ki,oi)){constructor(e){super(e),this.element=new Ln,this.specPath=ne(["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,Ii.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!Vt(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Ci(this.parent)&&!Vt(e.get("$schema"))){const e=d(Qn(this.parent.meta.get("inheritedDialectIdentifier")),Qn(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?Os(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=Qn(e.get(t));Fi(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const Bi=qi,Ui=e=>Wt(e)&&e.hasKey("$ref");class Vi extends(ji(Ni,ki,oi)){ObjectElement(e){const t=Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),jt}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const Hi=Vi;const Ji=class extends oi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const Gi=function(){return!1};const Wi=class extends Ni{specPath;ignoredFields;fieldPatternPredicate=Gi;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(Qn(t))&&this.fieldPatternPredicate(Qn(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(Os(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Qn(t))||this.element.content.push(Os(s))})),this.copyMetaAndAttributes(e,this.element),jt}};const zi=class extends Wi{constructor(e){super(e),this.fieldPatternPredicate=Fi}};class Zi extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Ki=Zi;class Xi extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const Yi=Xi;class Qi extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const eo=Qi;const to=class extends oi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const so=class extends oi{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 ro extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const no=ro;class io extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const oo=io;class ao extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const co=ao;class lo extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Ui(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const uo=lo;class mo extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.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),jt}}const ho=mo;class po extends(ji(Ii,oi)){constructor(e){super(e),this.element=new Bn,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Ii.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const _o=po;const fo=class extends oi{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const go=m((function(e,t,s){return C(Math.max(e.length,t.length,s.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)}))}));const yo=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var vo=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const bo=vo;const Eo=l(Ft);const wo=K(ls);const xo=De(Hs,Ti);function So(e){return function(e){if(Array.isArray(e))return jo(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 jo(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)?jo(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 jo(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 Oo=be(bo(yo((function(e,t){return e.length>t.length}))),or,f("length")),Po=fs((function(e,t,s){var r=s.apply(void 0,So(e));return wo(r)?Eo(r):t}));const To=go(xo,(function(e){var t=Oo(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return fe(Po(s),void 0,e)}))}),ie);const Ao=class extends Ni{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>go(e,ne(t),ie))),s=To(t)(e);return this.element=this.toRefractedElement(s,e),jt}};const Mo=class extends Ao{constructor(e){super(e),this.alternator=[{predicate:Ui,specPath:["document","objects","JSONReference"]},{predicate:Gn,specPath:["document","objects","JSONSchema"]}]}};class Fo extends(ji(Ii,oi)){constructor(e){super(e),this.element=new Vn,this.specPath=ne(["document","objects","Media"])}}const Ro=Fo;class No extends(ji(Ii,oi)){constructor(e){super(e),this.element=new Jn,this.specPath=ne(["document","objects","LinkDescription"])}}const Io=No,ko={visitors:{value:oi,JSONSchemaOrJSONReferenceVisitor:Mo,document:{objects:{JSONSchema:{$visitor:Bi,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:Mo,items:Hi,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ji,properties:Ki,additionalProperties:Mo,patternProperties:Yi,dependencies:eo,enum:to,type:so,allOf:no,anyOf:oo,oneOf:co,not:Mo,definitions:uo,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:ho,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:_o,fixedFields:{$ref:fo}},Media:{$visitor:Ro,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:Io,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Mo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Mo}}}}}},Co=e=>{if(Ut(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},$o={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Ns},Do={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ln),t.register("jSONReference",Bn),t.register("media",Vn),t.register("linkDescription",Jn),t}},Lo=()=>{const e=ct(Do);return{predicates:{...t,isStringElement:Vt},namespace:e}},qo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=ko}={})=>{const n=(0,ce.e)(e),i=Ss(r),o=new(_s(t,i))({specObj:i});return Is(n,o),Zs(o.element,s,{toolboxCreator:Lo,visitorOptions:{keyMap:$o,nodeTypeGetter:Co}})},Bo=e=>(t,s={})=>qo(t,{specPath:e,...s});Ln.refract=Bo(["visitors","document","objects","JSONSchema","$visitor"]),Bn.refract=Bo(["visitors","document","objects","JSONReference","$visitor"]),Vn.refract=Bo(["visitors","document","objects","Media","$visitor"]),Jn.refract=Bo(["visitors","document","objects","LinkDescription","$visitor"]);const Uo=class extends Ln{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new $n("idProp getter in Schema class is not not supported.")}set idProp(e){throw new $n("idProp setter in Schema class is not not supported.")}get $schema(){throw new $n("$schema getter in Schema class is not not supported.")}set $schema(e){throw new $n("$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 $n("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new $n("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new $n("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new $n("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 $n("definitions getter in Schema class is not not supported.")}set definitions(e){throw new $n("definitions setter in Schema class is not not supported.")}get base(){throw new $n("base getter in Schema class is not not supported.")}set base(e){throw new $n("base setter in Schema class is not not supported.")}get links(){throw new $n("links getter in Schema class is not not supported.")}set links(e){throw new $n("links setter in Schema class is not not supported.")}get media(){throw new $n("media getter in Schema class is not not supported.")}set media(e){throw new $n("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 Vo extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const Ho=Vo;class Jo extends ce.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 Go=Jo;class Wo extends ce.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 zo=Wo;class Zo extends ce.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 Ko=Zo;class Xo extends ce.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 Yo=Xo;class Qo extends ce.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 ea=Qo;const ta=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=ni(t.meta,e.meta)),ss(e)&&js(t,e),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=ni(t.attributes,e.attributes))}};const sa=class extends ta{enter(e){return this.element=Os(e),jt}};const ra=class extends ta{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 Ri(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=_s(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return ke(Ze,["visitors",...e],this.specObj)?_s(["visitors",...e],this.specObj):_s(["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 sa&&(null==r?void 0:r.constructor)===sa?Os(t):(Is(t,r,s),r.element)}};var na=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=M,e.prototype["@@transducer/result"]=F,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Ft(s):s},e}();function ia(e){return function(t){return new na(e,t)}}const oa=u(T(["take"],ia,(function(e,t){return ye(0,e<0?1/0:e,t)})));const aa=u((function(e,t){return re(oa(e.length,t),e)})),ca=e=>Wt(e)&&e.hasKey("$ref"),la=Wt,ua=Wt,ma=e=>Vt(e.key)&&aa("x-",Qn(e.key));const da=class extends ra{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=ma;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:r,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=this.specPath(e),s=this.retrieveFixedFields(t);return e.forEach(((e,r,n)=>{if(Vt(r)&&s.includes(Qn(r))&&!this.ignoredFields.includes(Qn(r))){const s=this.toRefractedElement([...t,"fixedFields",Qn(r)],e),i=new ce.Pr(Os(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(Qn(r))||this.element.content.push(Os(n))})),this.copyMetaAndAttributes(e,this.element),jt}};class ha extends(ji(da,sa)){constructor(e){super(e),this.element=new bn,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return da.prototype.ObjectElement.call(this,e)}}const pa=ha;class _a extends(ji(ra,sa)){StringElement(e){const t=new yn(Qn(e));return this.copyMetaAndAttributes(e,t),this.element=t,jt}}const fa=_a;const ga=class extends ra{MemberElement(e){return this.element=Os(e),this.element.classes.push("specification-extension"),jt}};class ya extends(ji(da,sa)){constructor(e){super(e),this.element=new on,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const va=ya;const ba=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ea extends(ji(da,sa)){constructor(e){super(e),this.element=new Wr,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const wa=Ea;class xa extends(ji(da,sa)){constructor(e){super(e),this.element=new cn,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Sa=xa;class ja extends(ji(da,sa)){constructor(e){super(e),this.element=new un,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return(Vt(this.element.operationId)||Vt(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const Oa=ja;const Pa=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Ta=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Aa=class extends ra{specPath;ignoredFields;fieldPatternPredicate=Gi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=ma;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(Qn(t))&&this.fieldPatternPredicate(Qn(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(Os(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Qn(t))||this.element.content.push(Os(s))})),this.copyMetaAndAttributes(e,this.element),jt}};const Ma=class extends Aa{constructor(e){super(e),this.fieldPatternPredicate=Fi}};class Fa extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Fa.primaryClass)}}const Ra=Fa;class Na extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Ra,this.specPath=ne(["value"])}}const Ia=Na;class ka extends(ji(da,sa)){constructor(e){super(e),this.element=new zo,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Ca=ka;const $a=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Da extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Da.primaryClass)}}const La=Da;class qa extends(ji(ra,sa)){constructor(e){super(e),this.element=new La}ArrayElement(e){return e.forEach((e=>{const t=la(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const Ba=qa;class Ua extends(ji(da,sa)){constructor(e){super(e),this.element=new Ko,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const Va=Ua;class Ha extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Ha.primaryClass)}}const Ja=Ha;class Ga extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Ja,this.specPath=ne(["document","objects","ServerVariable"])}}const Wa=Ga;class za extends(ji(da,sa)){constructor(e){super(e),this.element=new dn,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const Za=za;const Ka=class extends ra{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>go(e,ne(t),ie))),s=To(t)(e);return this.element=this.toRefractedElement(s,e),jt}},Xa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Vr||e(r)&&t("callback",r)&&s("object",r))),Ya=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jr||e(r)&&t("components",r)&&s("object",r))),Qa=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wr||e(r)&&t("contact",r)&&s("object",r))),ec=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qr||e(r)&&t("example",r)&&s("object",r))),tc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof tn||e(r)&&t("externalDocumentation",r)&&s("object",r))),sc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof rn||e(r)&&t("header",r)&&s("object",r))),rc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof on||e(r)&&t("info",r)&&s("object",r))),nc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof cn||e(r)&&t("license",r)&&s("object",r))),ic=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof un||e(r)&&t("link",r)&&s("object",r))),oc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yn||e(r)&&t("openapi",r)&&s("string",r))),ac=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof bn||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),cc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wn||e(r)&&t("operation",r)&&s("object",r))),lc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sn||e(r)&&t("parameter",r)&&s("object",r))),uc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof On||e(r)&&t("pathItem",r)&&s("object",r))),mc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Tn||e(r)&&t("paths",r)&&s("object",r))),dc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mn||e(r)&&t("reference",r)&&s("object",r))),hc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rn||e(r)&&t("requestBody",r)&&s("object",r))),pc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof In||e(r)&&t("response",r)&&s("object",r))),_c=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cn||e(r)&&t("responses",r)&&s("object",r))),fc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Uo||e(r)&&t("schema",r)&&s("object",r))),gc=e=>Gt(e)&&e.classes.includes("boolean-json-schema"),yc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ho||e(r)&&t("securityRequirement",r)&&s("object",r))),vc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Go||e(r)&&t("securityScheme",r)&&s("object",r))),bc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof zo||e(r)&&t("server",r)&&s("object",r))),Ec=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ko||e(r)&&t("serverVariable",r)&&s("object",r))),wc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof dn||e(r)&&t("mediaType",r)&&s("object",r))),xc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof La||e(n)&&t("array",n)&&s("array",n)&&r("servers",n))),Sc=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zr||e(r)&&t("discriminator",r)&&s("object",r)));class jc extends(ji(Ka,sa)){constructor(e){super(e),this.alternator=[{predicate:ca,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Ka.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Oc=jc;class Pc extends(ji(Ma,sa)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Tc=Pc;class Ac extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ac.primaryClass),this.classes.push("examples")}}const Mc=Ac;const Fc=class extends Tc{constructor(e){super(e),this.element=new Mc}};class Rc extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Rc.primaryClass)}}const Nc=Rc;class Ic extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Nc,this.specPath=ne(["document","objects","Encoding"])}}const kc=Ic;class Cc extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Ho,this.specPath=ne(["value"])}}const $c=Cc;class Dc extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Dc.primaryClass)}}const Lc=Dc;class qc extends(ji(ra,sa)){constructor(e){super(e),this.element=new Lc}ArrayElement(e){return e.forEach((e=>{if(Wt(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Os(e))})),this.copyMetaAndAttributes(e,this.element),jt}}const Bc=qc;class Uc extends(ji(da,sa)){constructor(e){super(e),this.element=new Jr,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const Vc=Uc;class Hc extends(ji(da,sa)){constructor(e){super(e),this.element=new Yo,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const Jc=Hc;class Gc extends(ji(da,sa)){constructor(e){super(e),this.element=new Mn,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Wc=Gc;const zc=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Zc extends(ji(da,sa)){constructor(e){super(e),this.element=new Sn,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Wt(this.element.contentProp)&&this.element.contentProp.filter(wc).forEach(((e,t)=>{e.setMetaProperty("media-type",Qn(t))})),t}}const Kc=Zc;class Xc extends(ji(Ka,sa)){constructor(e){super(e),this.alternator=[{predicate:ca,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Ka.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Yc=Xc;class Qc extends(ji(da,sa)){constructor(e){super(e),this.element=new rn,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const el=Qc;class tl extends(ji(Ka,sa)){constructor(e){super(e),this.alternator=[{predicate:ca,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=Ka.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const sl=tl;class rl extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(rl.primaryClass),this.classes.push("examples")}}const nl=rl;const il=class extends Tc{constructor(e){super(e),this.element=new nl}};class ol extends(ji(Ma,sa)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const al=ol;class cl extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(cl.primaryClass),this.classes.push("content")}}const ll=cl;const ul=class extends al{constructor(e){super(e),this.element=new ll}};class ml extends(ji(da,sa)){constructor(e){super(e),this.element=new Uo,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const dl=ml,hl=ko.visitors.document.objects.JSONSchema.fixedFields.allOf;const pl=class extends hl{ArrayElement(e){const t=hl.prototype.ArrayElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},_l=ko.visitors.document.objects.JSONSchema.fixedFields.anyOf;const fl=class extends _l{ArrayElement(e){const t=_l.prototype.ArrayElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},gl=ko.visitors.document.objects.JSONSchema.fixedFields.oneOf;const yl=class extends gl{ArrayElement(e){const t=gl.prototype.ArrayElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},vl=ko.visitors.document.objects.JSONSchema.fixedFields.items;const bl=class extends vl{ObjectElement(e){const t=vl.prototype.ObjectElement.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},El=ko.visitors.document.objects.JSONSchema.fixedFields.properties;const wl=class extends El{ObjectElement(e){const t=El.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},xl=ko.visitors.document.objects.JSONSchema.fixedFields.type;const Sl=class extends xl{ArrayElement(e){return this.enter(e)}},jl=ko.visitors.JSONSchemaOrJSONReferenceVisitor;const Ol=class extends jl{ObjectElement(e){const t=jl.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class Pl extends(ji(da,sa)){constructor(e){super(e),this.element=new Zr,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Tl=Pl;class Al extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Al.primaryClass)}}const Ml=Al;class Fl extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Ml,this.specPath=ne(["value"])}}const Rl=Fl;class Nl extends(ji(da,sa)){constructor(e){super(e),this.element=new ea,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Il=Nl;class kl extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(kl.primaryClass),this.classes.push("examples")}}const Cl=kl;const $l=class extends Tc{constructor(e){super(e),this.element=new Cl}};class Dl extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Dl.primaryClass),this.classes.push("content")}}const Ll=Dl;const ql=class extends al{constructor(e){super(e),this.element=new Ll}};class Bl extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Bl.primaryClass)}}const Ul=Bl;class Vl extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Ul,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const Hl=Vl;class Jl extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Jl.primaryClass)}}const Gl=Jl;class Wl extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Gl,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(pc).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Qn(t))})),t}}const zl=Wl;class Zl extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Zl.primaryClass),this.classes.push("parameters")}}const Kl=Zl;class Xl extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Kl,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const Yl=Xl;class Ql extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ql.primaryClass),this.classes.push("examples")}}const eu=Ql;class tu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new eu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const su=tu;class ru extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(ru.primaryClass)}}const nu=ru;class iu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new nu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const ou=iu;class au extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(au.primaryClass)}}const cu=au;class lu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new cu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(sc).forEach(((e,t)=>{e.setMetaProperty("header-name",Qn(t))})),t}}const uu=lu;class mu extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(mu.primaryClass)}}const du=mu;class hu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new du,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const pu=hu;class _u extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(_u.primaryClass)}}const fu=_u;class gu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new fu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const yu=gu;class vu extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(vu.primaryClass)}}const bu=vu;class Eu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new bu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const wu=Eu;class xu extends(ji(da,sa)){constructor(e){super(e),this.element=new Qr,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Vt(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const Su=xu;const ju=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ou extends(ji(da,sa)){constructor(e){super(e),this.element=new tn,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const Pu=Ou;class Tu extends(ji(da,sa)){constructor(e){super(e),this.element=new Xr,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Wt(this.element.headers)&&this.element.headers.filter(sc).forEach(((e,t)=>{e.setMetaProperty("header-name",Qn(t))})),t}}const Au=Tu;class Mu extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Mu.primaryClass)}}const Fu=Mu;class Ru extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Fu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!sc(e))return;const s=Qn(t);e.setMetaProperty("headerName",s)})),t}}const Nu=Ru;class Iu extends(ji(Aa,sa)){constructor(e){super(e),this.element=new Tn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Gn}ObjectElement(e){const t=Aa.prototype.ObjectElement.call(this,e);return this.element.filter(uc).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",Os(t))})),t}}const ku=Iu;class Cu extends(ji(da,sa)){constructor(e){super(e),this.element=new Rn,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Wt(this.element.contentProp)&&this.element.contentProp.filter(wc).forEach(((e,t)=>{e.setMetaProperty("media-type",Qn(t))})),t}}const $u=Cu;class Du extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Du.primaryClass),this.classes.push("content")}}const Lu=Du;const qu=class extends al{constructor(e){super(e),this.element=new Lu}};class Bu extends(ji(Aa,sa)){constructor(e){super(e),this.element=new Vr,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(uc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Qn(t))})),t}}const Uu=Bu;class Vu extends(ji(da,sa)){constructor(e){super(e),this.element=new In,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return Wt(this.element.contentProp)&&this.element.contentProp.filter(wc).forEach(((e,t)=>{e.setMetaProperty("media-type",Qn(t))})),Wt(this.element.headers)&&this.element.headers.filter(sc).forEach(((e,t)=>{e.setMetaProperty("header-name",Qn(t))})),t}}const Hu=Vu;class Ju extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Ju.primaryClass)}}const Gu=Ju;class Wu extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Gu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!sc(e))return;const s=Qn(t);e.setMetaProperty("header-name",s)})),t}}const zu=Wu;class Zu extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Zu.primaryClass),this.classes.push("content")}}const Ku=Zu;const Xu=class extends al{constructor(e){super(e),this.element=new Ku}};class Yu extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass)}}const Qu=Yu;class em extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Qu,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const tm=em;function sm(e){return"[object Number]"===Object.prototype.toString.call(e)}const rm=u((function(e,t){if(!sm(e)||!sm(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 nm(e,t,s){var r,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?e in s._items[n]||(t&&(s._items[n][e]=!0),!1):(t&&(s._items[n]={},s._items[n][e]=!0),!1);case"boolean":if(n in s._items){var i=e?1:0;return!!s._items[n][i]||(t&&(s._items[n][i]=!0),!1)}return t&&(s._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(r=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===r):s._nativeSet.has(e):n in s._items?!!xe(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1);case"undefined":return!!s._items[n]||(t&&(s._items[n]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in s._items?!!xe(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const im=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!nm(e,!0,this)},e.prototype.has=function(e){return nm(e,!1,this)},e}();const om=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new im,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 am extends(ji(da,Aa)){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,...om(e.keys(),t)],da.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Aa.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return jt}}const cm=am;class lm extends(ji(cm,sa)){constructor(e){super(e),this.element=new Cn,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>ca(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${rm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=cm.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(pc).forEach(((e,t)=>{const s=Os(t);this.fieldPatternPredicate(Qn(s))&&e.setMetaProperty("http-status-code",s)})),t}}const um=lm;class mm extends(ji(Ka,sa)){constructor(e){super(e),this.alternator=[{predicate:ca,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=Ka.prototype.enter.call(this,e);return dc(this.element)?this.element.setMetaProperty("referenced-element","response"):pc(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const dm=mm;class hm extends(ji(da,sa)){constructor(e){super(e),this.element=new wn,this.specPath=ne(["document","objects","Operation"])}}const pm=hm;class _m extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(_m.primaryClass)}}const fm=_m;const gm=class extends sa{constructor(e){super(e),this.element=new fm}ArrayElement(e){return this.element=this.element.concat(Os(e)),jt}};class ym extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ym.primaryClass),this.classes.push("parameters")}}const vm=ym;class bm extends(ji(ra,sa)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=ca(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);dc(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const Em=bm;const wm=class extends Em{constructor(e){super(e),this.element=new vm}};const xm=class extends Ka{constructor(e){super(e),this.alternator=[{predicate:ca,specPath:["document","objects","Reference"]},{predicate:Gn,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=Ka.prototype.enter.call(this,e);return dc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class Sm extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Sm.primaryClass)}}const jm=Sm;class Om extends(ji(Ma,sa)){specPath;constructor(e){super(e),this.element=new jm,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(dc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Pm=Om;class Tm extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Tm.primaryClass),this.classes.push("security")}}const Am=Tm;class Mm extends(ji(ra,sa)){constructor(e){super(e),this.element=new Am}ArrayElement(e){return e.forEach((e=>{const t=Wt(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const Fm=Mm;class Rm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Rm.primaryClass),this.classes.push("servers")}}const Nm=Rm;const Im=class extends Ba{constructor(e){super(e),this.element=new Nm}};class km extends(ji(da,sa)){constructor(e){super(e),this.element=new On,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=da.prototype.ObjectElement.call(this,e);return this.element.filter(cc).forEach(((e,t)=>{const s=Os(t);s.content=Qn(s).toUpperCase(),e.setMetaProperty("http-method",s)})),Vt(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Cm=km;const $m=class extends sa{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Dm extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Dm.primaryClass),this.classes.push("servers")}}const Lm=Dm;const qm=class extends Ba{constructor(e){super(e),this.element=new Lm}};class Bm extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Bm.primaryClass),this.classes.push("parameters")}}const Um=Bm;const Vm=class extends Em{constructor(e){super(e),this.element=new Um}};class Hm extends(ji(da,sa)){constructor(e){super(e),this.element=new Go,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const Jm=Hm;class Gm extends(ji(da,sa)){constructor(e){super(e),this.element=new fn,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const Wm=Gm;class zm extends(ji(da,sa)){constructor(e){super(e),this.element=new pn,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const Zm=zm;class Km extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Km.primaryClass)}}const Xm=Km;class Ym extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Xm,this.specPath=ne(["value"])}}const Qm=Ym;class ed extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(ed.primaryClass)}}const td=ed;class sd extends(ji(ra,sa)){constructor(e){super(e),this.element=new td}ArrayElement(e){return e.forEach((e=>{const t=ua(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),jt}}const rd=sd,{fixedFields:nd}=ko.visitors.document.objects.JSONSchema,id={visitors:{value:sa,document:{objects:{OpenApi:{$visitor:pa,fixedFields:{openapi:fa,info:{$ref:"#/visitors/document/objects/Info"},servers:Ba,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Bc,tags:rd,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:va,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:ba}},Contact:{$visitor:wa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Sa,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Ca,fixedFields:{url:$a,description:{$ref:"#/visitors/value"},variables:Wa}},ServerVariable:{$visitor:Va,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Vc,fixedFields:{schemas:Hl,responses:zl,parameters:Yl,examples:su,requestBodies:ou,headers:uu,securitySchemes:pu,links:yu,callbacks:wu}},Paths:{$visitor:ku},PathItem:{$visitor:Cm,fixedFields:{$ref:$m,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:qm,parameters:Vm}},Operation:{$visitor:pm,fixedFields:{tags:gm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:wm,requestBody:xm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Pm,deprecated:{$ref:"#/visitors/value"},security:Fm,servers:Im}},ExternalDocumentation:{$visitor:Pu,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Kc,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:Yc,example:{$ref:"#/visitors/value"},examples:$l,content:ql}},RequestBody:{$visitor:$u,fixedFields:{description:{$ref:"#/visitors/value"},content:qu,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Za,fixedFields:{schema:Oc,example:{$ref:"#/visitors/value"},examples:Fc,encoding:kc}},Encoding:{$visitor:Au,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Nu,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:um,fixedFields:{default:dm}},Response:{$visitor:Hu,fixedFields:{description:{$ref:"#/visitors/value"},headers:zu,content:Xu,links:tm}},Callback:{$visitor:Uu},Example:{$visitor:Su,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ju}},Link:{$visitor:Oa,fixedFields:{operationRef:Pa,operationId:Ta,parameters:Ia,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:el,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:sl,example:{$ref:"#/visitors/value"},examples:il,content:ul}},Tag:{$visitor:Jc,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Wc,fixedFields:{$ref:zc}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:dl,fixedFields:{title:nd.title,multipleOf:nd.multipleOf,maximum:nd.maximum,exclusiveMaximum:nd.exclusiveMaximum,minimum:nd.minimum,exclusiveMinimum:nd.exclusiveMinimum,maxLength:nd.maxLength,minLength:nd.minLength,pattern:nd.pattern,maxItems:nd.maxItems,minItems:nd.minItems,uniqueItems:nd.uniqueItems,maxProperties:nd.maxProperties,minProperties:nd.minProperties,required:nd.required,enum:nd.enum,type:Sl,allOf:pl,anyOf:fl,oneOf:yl,not:Ol,items:bl,properties:wl,additionalProperties:Ol,description:nd.description,format:nd.format,default:nd.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:Tl,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Rl}},XML:{$visitor:Il,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:Jm,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:Wm,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:Zm,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Qm}},SecurityRequirement:{$visitor:$c}},extension:{$visitor:ga}}}},od=e=>{if(Ut(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ad={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"],...Ns},cd={namespace:e=>{const{base:t}=e;return t.register("callback",Vr),t.register("components",Jr),t.register("contact",Wr),t.register("discriminator",Zr),t.register("encoding",Xr),t.register("example",Qr),t.register("externalDocumentation",tn),t.register("header",rn),t.register("info",on),t.register("license",cn),t.register("link",un),t.register("mediaType",dn),t.register("oAuthFlow",pn),t.register("oAuthFlows",fn),t.register("openapi",yn),t.register("openApi3_0",bn),t.register("operation",wn),t.register("parameter",Sn),t.register("pathItem",On),t.register("paths",Tn),t.register("reference",Mn),t.register("requestBody",Rn),t.register("response",In),t.register("responses",Cn),t.register("schema",Uo),t.register("securityRequirement",Ho),t.register("securityScheme",Go),t.register("server",zo),t.register("serverVariable",Ko),t.register("tag",Yo),t.register("xml",ea),t}},ld=()=>{const e=ct(cd);return{predicates:{...s,isElement:Ut,isStringElement:Vt,isArrayElement:zt,isObjectElement:Wt,isMemberElement:Zt,includesClasses:ns,hasElementSourceMap:ss},namespace:e}},ud=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Ss(id),i=new(_s(t,n))({specObj:n});return Is(r,i),Zs(i.element,s,{toolboxCreator:ld,visitorOptions:{keyMap:ad,nodeTypeGetter:od}})},md=e=>(t,s={})=>ud(t,{specPath:e,...s});Vr.refract=md(["visitors","document","objects","Callback","$visitor"]),Jr.refract=md(["visitors","document","objects","Components","$visitor"]),Wr.refract=md(["visitors","document","objects","Contact","$visitor"]),Qr.refract=md(["visitors","document","objects","Example","$visitor"]),Zr.refract=md(["visitors","document","objects","Discriminator","$visitor"]),Xr.refract=md(["visitors","document","objects","Encoding","$visitor"]),tn.refract=md(["visitors","document","objects","ExternalDocumentation","$visitor"]),rn.refract=md(["visitors","document","objects","Header","$visitor"]),on.refract=md(["visitors","document","objects","Info","$visitor"]),cn.refract=md(["visitors","document","objects","License","$visitor"]),un.refract=md(["visitors","document","objects","Link","$visitor"]),dn.refract=md(["visitors","document","objects","MediaType","$visitor"]),pn.refract=md(["visitors","document","objects","OAuthFlow","$visitor"]),fn.refract=md(["visitors","document","objects","OAuthFlows","$visitor"]),yn.refract=md(["visitors","document","objects","OpenApi","fixedFields","openapi"]),bn.refract=md(["visitors","document","objects","OpenApi","$visitor"]),wn.refract=md(["visitors","document","objects","Operation","$visitor"]),Sn.refract=md(["visitors","document","objects","Parameter","$visitor"]),On.refract=md(["visitors","document","objects","PathItem","$visitor"]),Tn.refract=md(["visitors","document","objects","Paths","$visitor"]),Mn.refract=md(["visitors","document","objects","Reference","$visitor"]),Rn.refract=md(["visitors","document","objects","RequestBody","$visitor"]),In.refract=md(["visitors","document","objects","Response","$visitor"]),Cn.refract=md(["visitors","document","objects","Responses","$visitor"]),Uo.refract=md(["visitors","document","objects","Schema","$visitor"]),Ho.refract=md(["visitors","document","objects","SecurityRequirement","$visitor"]),Go.refract=md(["visitors","document","objects","SecurityScheme","$visitor"]),zo.refract=md(["visitors","document","objects","Server","$visitor"]),Ko.refract=md(["visitors","document","objects","ServerVariable","$visitor"]),Yo.refract=md(["visitors","document","objects","Tag","$visitor"]),ea.refract=md(["visitors","document","objects","XML","$visitor"]);const dd=class extends Vr{};const hd=class extends Jr{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const pd=class extends Wr{};const _d=class extends Zr{};const fd=class extends Xr{};const gd=class extends Qr{};const yd=class extends tn{};const vd=class extends rn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const bd=class extends on{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Ed extends ce.Om{static default=new Ed("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const wd=Ed;const xd=class extends cn{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Sd=class extends un{};const jd=class extends dn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Od=class extends pn{};const Pd=class extends fn{};const Td=class extends yn{};class Ad extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Md=Ad;const Fd=class extends wn{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Rd=class extends Sn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Nd=class extends On{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const Id=class extends Tn{};class kd extends Mn{}Object.defineProperty(kd.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(kd.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Cd=kd;const $d=class extends Rn{};const Dd=class extends In{};const Ld=class extends Cn{};const qd=class extends Ln{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new $n("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new $n("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const Bd=class extends Jn{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new $n("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new $n("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new $n("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new $n("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new $n("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new $n("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Ud=m((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!ls(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:h(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(h(e)&&E(s)){var r=[].concat(s);return r[e]=t,r}var n={};for(var i in s)n[i]=s[i];return n[e]=t,n}(n,s,r)}));const Vd=Ud;const Hd=m((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var Jd=m((function(e,t,s){return Vd([e],t,s)}));const Gd=Jd;var Wd=u((function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(h(e)&&E(t))return Hd(e,1,t);var s={};for(var r in t)s[r]=t[r];return delete s[e],s}(t[0],s);default:var r=t[0],n=Array.prototype.slice.call(t,1);return null==s[r]?function(e,t){if(h(e)&&E(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):Gd(r,e(n,s[r]),s)}}));const zd=Wd;const Zd=class extends Bi{constructor(e){super(e),this.element=new qd}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){const t=this.enter(e);return this.element.classes.push("boolean-json-schema"),t}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const Kd=class extends Hi{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),jt}};const Xd=class extends oi{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const Yd=class extends Io{constructor(e){super(e),this.element=new Bd}},Qd=be(Vd(["visitors","document","objects","JSONSchema","$visitor"],Zd),zd(["visitors","document","objects","JSONSchema","fixedFields","id"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","$id"],ko.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","contains"],ko.visitors.JSONSchemaOrJSONReferenceVisitor),Vd(["visitors","document","objects","JSONSchema","fixedFields","items"],Kd),Vd(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],ko.visitors.JSONSchemaOrJSONReferenceVisitor),Vd(["visitors","document","objects","JSONSchema","fixedFields","const"],ko.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","examples"],Xd),Vd(["visitors","document","objects","LinkDescription","$visitor"],Yd),Vd(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],ko.visitors.JSONSchemaOrJSONReferenceVisitor),zd(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Vd(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],ko.visitors.JSONSchemaOrJSONReferenceVisitor),zd(["visitors","document","objects","LinkDescription","fixedFields","method"]),zd(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Vd(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],ko.visitors.value))(ko),eh={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Ns},th=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qd||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),sh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bd||e(r)&&t("linkDescription",r)&&s("object",r))),rh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",qd),t.register("jSONReference",Bn),t.register("media",Vn),t.register("linkDescription",Bd),t}},nh=()=>{const e=ct(rh);return{predicates:{...r,isStringElement:Vt},namespace:e}},ih=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Qd}={})=>{const n=(0,ce.e)(e),i=Ss(r),o=new(_s(t,i))({specObj:i});return Is(n,o),Zs(o.element,s,{toolboxCreator:nh,visitorOptions:{keyMap:eh,nodeTypeGetter:Co}})},oh=e=>(t,s={})=>ih(t,{specPath:e,...s});qd.refract=oh(["visitors","document","objects","JSONSchema","$visitor"]),Bd.refract=oh(["visitors","document","objects","LinkDescription","$visitor"]);const ah=class extends qd{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get media(){throw new $n('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new $n('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const ch=class extends Bd{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new $n("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new $n("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new $n("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new $n("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const lh=class extends Zd{constructor(e){super(e),this.element=new ah}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const uh=class extends Yd{constructor(e){super(e),this.element=new ch}},mh=be(Vd(["visitors","document","objects","JSONSchema","$visitor"],lh),Vd(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Qd.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","if"],Qd.visitors.JSONSchemaOrJSONReferenceVisitor),Vd(["visitors","document","objects","JSONSchema","fixedFields","then"],Qd.visitors.JSONSchemaOrJSONReferenceVisitor),Vd(["visitors","document","objects","JSONSchema","fixedFields","else"],Qd.visitors.JSONSchemaOrJSONReferenceVisitor),zd(["visitors","document","objects","JSONSchema","fixedFields","media"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Qd.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Qd.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Qd.visitors.value),Vd(["visitors","document","objects","LinkDescription","$visitor"],uh),Vd(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Qd.visitors.value),Vd(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Qd.visitors.value),zd(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Vd(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Qd.visitors.value),Vd(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Qd.visitors.value),Vd(["visitors","document","objects","LinkDescription","fixedFields","description"],Qd.visitors.value),Vd(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Qd.visitors.value),Vd(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Qd.visitors.JSONSchemaOrJSONReferenceVisitor),zd(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Vd(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Qd.visitors.value))(Qd),dh={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...Ns},hh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ah||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),ph=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ch||e(r)&&t("linkDescription",r)&&s("object",r))),_h={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",ah),t.register("jSONReference",Bn),t.register("linkDescription",ch),t}},fh=()=>{const e=ct(_h);return{predicates:{...n,isStringElement:Vt},namespace:e}},gh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=mh}={})=>{const n=(0,ce.e)(e),i=Ss(r),o=new(_s(t,i))({specObj:i});return Is(n,o),Zs(o.element,s,{toolboxCreator:fh,visitorOptions:{keyMap:dh,nodeTypeGetter:Co}})},yh=e=>(t,s={})=>gh(t,{specPath:e,...s});ah.refract=yh(["visitors","document","objects","JSONSchema","$visitor"]),ch.refract=yh(["visitors","document","objects","LinkDescription","$visitor"]);const vh=class extends ah{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get definitions(){throw new $n("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new $n("definitions keyword from Validation vocabulary has been renamed to $defs.")}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get dependencies(){throw new $n("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new $n("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const bh=class extends ch{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Eh=class extends lh{constructor(e){super(e),this.element=new vh}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Ii.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const wh=class extends oi{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const xh=class extends oi{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Sh extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const jh=Sh;class Oh extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),jt}}const Ph=Oh;class Th extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),jt}}const Ah=Th;class Mh extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),jt}}const Fh=Mh;class Rh extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Nh=Rh;class Ih extends(ji(Ni,ki,oi)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),jt}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),jt}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),jt}}const kh=Ih;class Ch extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const $h=Ch;class Dh extends(ji(zi,ki,oi)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Lh=Dh;const qh=class extends oi{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const Bh=class extends uh{constructor(e){super(e),this.element=new bh}},Uh=be(Vd(["visitors","document","objects","JSONSchema","$visitor"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],wh),Vd(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],mh.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],mh.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],mh.visitors.value),zd(["visitors","document","objects","JSONReference","$visitor"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","$ref"],xh),zd(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","$defs"],jh),Vd(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Ph),Vd(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Ah),Vd(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Fh),Vd(["visitors","document","objects","JSONSchema","fixedFields","not"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","if"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","then"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","else"],Eh),zd(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Nh),Vd(["visitors","document","objects","JSONSchema","fixedFields","items"],kh),Vd(["visitors","document","objects","JSONSchema","fixedFields","contains"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","properties"],$h),Vd(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Lh),Vd(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Eh),Vd(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],mh.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","minContains"],mh.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],qh),Vd(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],mh.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Eh),Vd(["visitors","document","objects","LinkDescription","$visitor"],Bh),Vd(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Eh),Vd(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Eh),Vd(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Eh),Vd(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Eh))(mh),Vh={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...Ns},Hh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vh||e(r)&&t("JSONSchema201909",r)&&s("object",r))),Jh=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("linkDescription",r)&&s("object",r))),Gh={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",vh),t.register("linkDescription",bh),t}},Wh=()=>{const e=ct(Gh);return{predicates:{...i,isStringElement:Vt},namespace:e}},zh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Uh}={})=>{const n=(0,ce.e)(e),i=Ss(r),o=new(_s(t,i))({specObj:i});return Is(n,o),Zs(o.element,s,{toolboxCreator:Wh,visitorOptions:{keyMap:Vh,nodeTypeGetter:Co}})},Zh=e=>(t,s={})=>zh(t,{specPath:e,...s});vh.refract=Zh(["visitors","document","objects","JSONSchema","$visitor"]),bh.refract=Zh(["visitors","document","objects","LinkDescription","$visitor"]);const Kh=class extends vh{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new $n("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new $n("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new $n("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new $n("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Xh=class extends bh{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Yh=class extends Eh{constructor(e){super(e),this.element=new Kh}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class Qh extends(ji(Ni,ki,oi)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),jt}}const ep=Qh;const tp=class extends Bh{constructor(e){super(e),this.element=new Xh}},sp=be(Vd(["visitors","document","objects","JSONSchema","$visitor"],Yh),zd(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Uh.visitors.value),zd(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Uh.visitors.value),Vd(["visitors","document","objects","JSONSchema","fixedFields","not"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","if"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","then"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","else"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],ep),Vd(["visitors","document","objects","JSONSchema","fixedFields","items"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","contains"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Yh),zd(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Vd(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Yh),Vd(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Yh),Vd(["visitors","document","objects","LinkDescription","$visitor"],tp),Vd(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Yh),Vd(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Yh),Vd(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Yh),Vd(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Yh))(Uh),rp={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...Ns},np=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kh||e(r)&&t("JSONSchema202012",r)&&s("object",r))),ip=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xh||e(r)&&t("linkDescription",r)&&s("object",r))),op={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",Kh),t.register("linkDescription",Xh),t}},ap=()=>{const e=ct(op);return{predicates:{...o,isStringElement:Vt},namespace:e}},cp=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=sp}={})=>{const n=(0,ce.e)(e),i=Ss(r),o=new(_s(t,i))({specObj:i});return Is(n,o),Zs(o.element,s,{toolboxCreator:ap,visitorOptions:{keyMap:rp,nodeTypeGetter:Co}})},lp=e=>(t,s={})=>cp(t,{specPath:e,...s});Kh.refract=lp(["visitors","document","objects","JSONSchema","$visitor"]),Xh.refract=lp(["visitors","document","objects","LinkDescription","$visitor"]);const up=class extends Kh{constructor(e,t,s){super(e,t,s),this.element="schema"}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}};const mp=class extends Ho{};const dp=class extends Go{};const hp=class extends zo{};const pp=class extends Ko{};const _p=class extends Yo{};const fp=class extends ea{};class gp extends(ji(da,sa)){constructor(e){super(e),this.element=new Md,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,da.prototype.ObjectElement.call(this,e)}}const yp=gp,vp=id.visitors.document.objects.Info.$visitor;const bp=class extends vp{constructor(e){super(e),this.element=new bd}},Ep=id.visitors.document.objects.Contact.$visitor;const wp=class extends Ep{constructor(e){super(e),this.element=new pd}},xp=id.visitors.document.objects.License.$visitor;const Sp=class extends xp{constructor(e){super(e),this.element=new xd}},jp=id.visitors.document.objects.Link.$visitor;const Op=class extends jp{constructor(e){super(e),this.element=new Sd}};class Pp extends(ji(ra,sa)){StringElement(e){const t=new wd(Qn(e));return this.copyMetaAndAttributes(e,t),this.element=t,jt}}const Tp=Pp,Ap=id.visitors.document.objects.Server.$visitor;const Mp=class extends Ap{constructor(e){super(e),this.element=new hp}},Fp=id.visitors.document.objects.ServerVariable.$visitor;const Rp=class extends Fp{constructor(e){super(e),this.element=new pp}},Np=id.visitors.document.objects.MediaType.$visitor;const Ip=class extends Np{constructor(e){super(e),this.element=new jd}},kp=id.visitors.document.objects.SecurityRequirement.$visitor;const Cp=class extends kp{constructor(e){super(e),this.element=new mp}},$p=id.visitors.document.objects.Components.$visitor;const Dp=class extends $p{constructor(e){super(e),this.element=new hd}},Lp=id.visitors.document.objects.Tag.$visitor;const qp=class extends Lp{constructor(e){super(e),this.element=new _p}},Bp=id.visitors.document.objects.Reference.$visitor;const Up=class extends Bp{constructor(e){super(e),this.element=new Cd}},Vp=id.visitors.document.objects.Parameter.$visitor;const Hp=class extends Vp{constructor(e){super(e),this.element=new Rd}},Jp=id.visitors.document.objects.Header.$visitor;const Gp=class extends Jp{constructor(e){super(e),this.element=new vd}},Wp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof dd||e(r)&&t("callback",r)&&s("object",r))),zp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hd||e(r)&&t("components",r)&&s("object",r))),Zp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pd||e(r)&&t("contact",r)&&s("object",r))),Kp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof gd||e(r)&&t("example",r)&&s("object",r))),Xp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yd||e(r)&&t("externalDocumentation",r)&&s("object",r))),Yp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof vd||e(r)&&t("header",r)&&s("object",r))),Qp=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bd||e(r)&&t("info",r)&&s("object",r))),e_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wd||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),t_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof xd||e(r)&&t("license",r)&&s("object",r))),s_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Sd||e(r)&&t("link",r)&&s("object",r))),r_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Td||e(r)&&t("openapi",r)&&s("string",r))),n_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Md||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),i_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fd||e(r)&&t("operation",r)&&s("object",r))),o_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rd||e(r)&&t("parameter",r)&&s("object",r))),a_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nd||e(r)&&t("pathItem",r)&&s("object",r))),c_=e=>{if(!a_(e))return!1;if(!Vt(e.$ref))return!1;const t=Qn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},l_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Id||e(r)&&t("paths",r)&&s("object",r))),u_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cd||e(r)&&t("reference",r)&&s("object",r))),m_=e=>{if(!u_(e))return!1;if(!Vt(e.$ref))return!1;const t=Qn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},d_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $d||e(r)&&t("requestBody",r)&&s("object",r))),h_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dd||e(r)&&t("response",r)&&s("object",r))),p_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ld||e(r)&&t("responses",r)&&s("object",r))),__=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof up||e(r)&&t("schema",r)&&s("object",r))),f_=e=>Gt(e)&&e.classes.includes("boolean-json-schema"),g_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mp||e(r)&&t("securityRequirement",r)&&s("object",r))),y_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof dp||e(r)&&t("securityScheme",r)&&s("object",r))),v_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hp||e(r)&&t("server",r)&&s("object",r))),b_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof pp||e(r)&&t("serverVariable",r)&&s("object",r))),E_=Bt((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jd||e(r)&&t("mediaType",r)&&s("object",r)));class w_ extends(ji(da,ki,sa)){constructor(e){super(e),this.element=new up,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=wd.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=da.prototype.ObjectElement.call(this,e);return Vt(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return Yh.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&e_(this.openApiSemanticElement.jsonSchemaDialect)?Qn(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&Vt(this.openApiGenericElement.get("jsonSchemaDialect"))?Qn(this.openApiGenericElement.get("jsonSchemaDialect")):Qn(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return Yh.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return Yh.prototype.handleSchemaIdentifier.call(this,e)}}const x_=w_;const S_=class extends jh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const j_=class extends Ph{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const O_=class extends Ah{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const P_=class extends Fh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const T_=class extends Nh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const A_=class extends ep{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const M_=class extends $h{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const F_=class extends Lh{constructor(e){super(e),this.passingOptionsNames.push("parent")}},R_=id.visitors.document.objects.Discriminator.$visitor;const N_=class extends R_{constructor(e){super(e),this.element=new _d,this.canSupportSpecificationExtensions=!0}},I_=id.visitors.document.objects.XML.$visitor;const k_=class extends I_{constructor(e){super(e),this.element=new fp}};class C_ extends(ji(Ma,sa)){constructor(e){super(e),this.element=new Ul,this.specPath=ne(["document","objects","Schema"])}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(__).forEach(((e,t)=>{e.setMetaProperty("schemaName",Qn(t))})),t}}const $_=C_;class D_ extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(D_.primaryClass)}}const L_=D_;class q_ extends(ji(Ma,sa)){constructor(e){super(e),this.element=new L_,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(u_).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const B_=q_,U_=id.visitors.document.objects.Example.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new gd}},H_=id.visitors.document.objects.ExternalDocumentation.$visitor;const J_=class extends H_{constructor(e){super(e),this.element=new yd}},G_=id.visitors.document.objects.Encoding.$visitor;const W_=class extends G_{constructor(e){super(e),this.element=new fd}},z_=id.visitors.document.objects.Paths.$visitor;const Z_=class extends z_{constructor(e){super(e),this.element=new Id}},K_=id.visitors.document.objects.RequestBody.$visitor;const X_=class extends K_{constructor(e){super(e),this.element=new $d}},Y_=id.visitors.document.objects.Callback.$visitor;const Q_=class extends Y_{constructor(e){super(e),this.element=new dd,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Y_.prototype.ObjectElement.call(this,e);return this.element.filter(u_).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},ef=id.visitors.document.objects.Response.$visitor;const tf=class extends ef{constructor(e){super(e),this.element=new Dd}},sf=id.visitors.document.objects.Responses.$visitor;const rf=class extends sf{constructor(e){super(e),this.element=new Ld}},nf=id.visitors.document.objects.Operation.$visitor;const of=class extends nf{constructor(e){super(e),this.element=new Fd}},af=id.visitors.document.objects.PathItem.$visitor;const cf=class extends af{constructor(e){super(e),this.element=new Nd}},lf=id.visitors.document.objects.SecurityScheme.$visitor;const uf=class extends lf{constructor(e){super(e),this.element=new dp}},mf=id.visitors.document.objects.OAuthFlows.$visitor;const df=class extends mf{constructor(e){super(e),this.element=new Pd}},hf=id.visitors.document.objects.OAuthFlow.$visitor;const pf=class extends hf{constructor(e){super(e),this.element=new Od}};class _f extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(_f.primaryClass)}}const ff=_f;class gf extends(ji(Ma,sa)){constructor(e){super(e),this.element=new ff,this.specPath=e=>ca(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Ma.prototype.ObjectElement.call(this,e);return this.element.filter(u_).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(a_).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Qn(t))})),t}}const yf=gf,{JSONSchema:vf,LinkDescription:bf}=sp.visitors.document.objects,Ef={visitors:{value:id.visitors.value,document:{objects:{OpenApi:{$visitor:yp,fixedFields:{openapi:id.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Tp,servers:id.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:yf,components:{$ref:"#/visitors/document/objects/Components"},security:id.visitors.document.objects.OpenApi.fixedFields.security,tags:id.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:bp,fixedFields:{title:id.visitors.document.objects.Info.fixedFields.title,description:id.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:id.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:id.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:wp,fixedFields:{name:id.visitors.document.objects.Contact.fixedFields.name,url:id.visitors.document.objects.Contact.fixedFields.url,email:id.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Sp,fixedFields:{name:id.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:id.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Mp,fixedFields:{url:id.visitors.document.objects.Server.fixedFields.url,description:id.visitors.document.objects.Server.fixedFields.description,variables:id.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Rp,fixedFields:{enum:id.visitors.document.objects.ServerVariable.fixedFields.enum,default:id.visitors.document.objects.ServerVariable.fixedFields.default,description:id.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Dp,fixedFields:{schemas:$_,responses:id.visitors.document.objects.Components.fixedFields.responses,parameters:id.visitors.document.objects.Components.fixedFields.parameters,examples:id.visitors.document.objects.Components.fixedFields.examples,requestBodies:id.visitors.document.objects.Components.fixedFields.requestBodies,headers:id.visitors.document.objects.Components.fixedFields.headers,securitySchemes:id.visitors.document.objects.Components.fixedFields.securitySchemes,links:id.visitors.document.objects.Components.fixedFields.links,callbacks:id.visitors.document.objects.Components.fixedFields.callbacks,pathItems:B_}},Paths:{$visitor:Z_},PathItem:{$visitor:cf,fixedFields:{$ref:id.visitors.document.objects.PathItem.fixedFields.$ref,summary:id.visitors.document.objects.PathItem.fixedFields.summary,description:id.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:id.visitors.document.objects.PathItem.fixedFields.servers,parameters:id.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:of,fixedFields:{tags:id.visitors.document.objects.Operation.fixedFields.tags,summary:id.visitors.document.objects.Operation.fixedFields.summary,description:id.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:id.visitors.document.objects.Operation.fixedFields.operationId,parameters:id.visitors.document.objects.Operation.fixedFields.parameters,requestBody:id.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:id.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:id.visitors.document.objects.Operation.fixedFields.deprecated,security:id.visitors.document.objects.Operation.fixedFields.security,servers:id.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:J_,fixedFields:{description:id.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:id.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Hp,fixedFields:{name:id.visitors.document.objects.Parameter.fixedFields.name,in:id.visitors.document.objects.Parameter.fixedFields.in,description:id.visitors.document.objects.Parameter.fixedFields.description,required:id.visitors.document.objects.Parameter.fixedFields.required,deprecated:id.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:id.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:id.visitors.document.objects.Parameter.fixedFields.style,explode:id.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:id.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:id.visitors.document.objects.Parameter.fixedFields.example,examples:id.visitors.document.objects.Parameter.fixedFields.examples,content:id.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:X_,fixedFields:{description:id.visitors.document.objects.RequestBody.fixedFields.description,content:id.visitors.document.objects.RequestBody.fixedFields.content,required:id.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Ip,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:id.visitors.document.objects.MediaType.fixedFields.example,examples:id.visitors.document.objects.MediaType.fixedFields.examples,encoding:id.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:W_,fixedFields:{contentType:id.visitors.document.objects.Encoding.fixedFields.contentType,headers:id.visitors.document.objects.Encoding.fixedFields.headers,style:id.visitors.document.objects.Encoding.fixedFields.style,explode:id.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:id.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:rf,fixedFields:{default:id.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:tf,fixedFields:{description:id.visitors.document.objects.Response.fixedFields.description,headers:id.visitors.document.objects.Response.fixedFields.headers,content:id.visitors.document.objects.Response.fixedFields.content,links:id.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Q_},Example:{$visitor:V_,fixedFields:{summary:id.visitors.document.objects.Example.fixedFields.summary,description:id.visitors.document.objects.Example.fixedFields.description,value:id.visitors.document.objects.Example.fixedFields.value,externalValue:id.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Op,fixedFields:{operationRef:id.visitors.document.objects.Link.fixedFields.operationRef,operationId:id.visitors.document.objects.Link.fixedFields.operationId,parameters:id.visitors.document.objects.Link.fixedFields.parameters,requestBody:id.visitors.document.objects.Link.fixedFields.requestBody,description:id.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Gp,fixedFields:{description:id.visitors.document.objects.Header.fixedFields.description,required:id.visitors.document.objects.Header.fixedFields.required,deprecated:id.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:id.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:id.visitors.document.objects.Header.fixedFields.style,explode:id.visitors.document.objects.Header.fixedFields.explode,allowReserved:id.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:id.visitors.document.objects.Header.fixedFields.example,examples:id.visitors.document.objects.Header.fixedFields.examples,content:id.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:qp,fixedFields:{name:id.visitors.document.objects.Tag.fixedFields.name,description:id.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Up,fixedFields:{$ref:id.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...bf},Schema:{$visitor:x_,fixedFields:{...vf.fixedFields,$defs:S_,allOf:j_,anyOf:O_,oneOf:P_,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:T_,prefixItems:A_,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:M_,patternProperties:F_,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:N_,fixedFields:{propertyName:id.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:id.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:k_,fixedFields:{name:id.visitors.document.objects.XML.fixedFields.name,namespace:id.visitors.document.objects.XML.fixedFields.namespace,prefix:id.visitors.document.objects.XML.fixedFields.prefix,attribute:id.visitors.document.objects.XML.fixedFields.attribute,wrapped:id.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:uf,fixedFields:{type:id.visitors.document.objects.SecurityScheme.fixedFields.type,description:id.visitors.document.objects.SecurityScheme.fixedFields.description,name:id.visitors.document.objects.SecurityScheme.fixedFields.name,in:id.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:id.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:id.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:id.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:df,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:pf,fixedFields:{authorizationUrl:id.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:id.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:id.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:id.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Cp}},extension:{$visitor:id.visitors.document.extension.$visitor}}}},wf=e=>{if(Ut(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},xf={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Ns},Sf=function(){const e=Of,t=jf,s=this,r="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let n,i,o,a,c,l,u,m=0,d=0,h=0,p=0,_=0,f=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,y,b,E)=>{const w=`${r}parse(): `;m=0,d=0,h=0,p=0,_=0,n=void 0,i=void 0,o=void 0,a=void 0,f.refresh(),c=void 0,l=void 0,u=void 0,a=t.stringToChars(b),n=g.rules,i=g.udts;const x=y.toLowerCase();let S;for(const e in n)if(n.hasOwnProperty(e)&&x===n[e].lower){S=n[e].index;break}if(void 0===S)throw new Error(`${w}start rule name '${startRule}' not recognized`);(()=>{const e=`${r}initializeCallbacks(): `;let t,o;for(c=[],l=[],t=0;t<n.length;t+=1)c[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const a=[];for(t=0;t<n.length;t+=1)a.push(n[t].lower);for(t=0;t<i.length;t+=1)a.push(i[t].lower);for(const r in s.callbacks)if(s.callbacks.hasOwnProperty(r)){if(t=a.indexOf(r.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${r}' not a rule or udt name`);if(o=s.callbacks[r]?s.callbacks[r]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${r}] must be function reference or falsy)`);t<n.length?c[t]=o:l[t-n.length]=o}})(),s.trace&&s.trace.init(n,i,a),s.stats&&s.stats.init(n,i),s.ast&&s.ast.init(n,i,a),u=E,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${w}final state should never be 'ACTIVE'`);case e.NOMATCH:j=!1;break;case e.EMPTY:case e.MATCH:j=f.phraseLength===a.length;break;default:throw new Error("unrecognized state")}return{success:j,state:f.state,stateName:e.idName(f.state),length:a.length,matched:f.phraseLength,maxMatched:_,maxTreeDepth:h,nodeHits:p}};const g=(t,s,n,i)=>{if(s.phraseLength>n){let e=`${r}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${r}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},y=(t,c)=>{let d,h,p;const _=o[t],g=i[_.index];f.UdtIndex=g.index,m||(p=s.ast&&s.ast.udtDefined(_.index),p&&(h=n.length+_.index,d=s.ast.getLength(),s.ast.down(h,g.name)));const y=a.length-c;l[_.index](f,a,c,u),((t,s,n)=>{if(s.phraseLength>n){let e=`${r}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${n}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${r}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${r}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${r}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,f,y),m||p&&(f.state===e.NOMATCH?s.ast.setLength(d):s.ast.up(h,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(p+=1,d>h&&(h=d),d+=1,f.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const r=o[t];for(let t=0;t<r.children.length&&(v(r.children[t],s),f.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,r)=>{let n,i,a,c;const l=o[t];s.ast&&(i=s.ast.getLength()),n=!0,a=r,c=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],a),f.state===e.NOMATCH){n=!1;break}a+=f.phraseLength,c+=f.phraseLength}n?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,r)=>{let n,i,c,l;const u=o[t];if(0===u.max)return f.state=e.EMPTY,void(f.phraseLength=0);for(i=r,c=0,l=0,s.ast&&(n=s.ast.getLength());!(i>=a.length)&&(v(t+1,i),f.state!==e.NOMATCH)&&f.state!==e.EMPTY&&(l+=1,c+=f.phraseLength,i+=f.phraseLength,l!==u.max););f.state===e.EMPTY||l>=u.min?(f.state=0===c?e.EMPTY:e.MATCH,f.phraseLength=c):(f.state=e.NOMATCH,f.phraseLength=0,s.ast&&s.ast.setLength(n))})(t,i);break;case e.RNM:((t,r)=>{let i,l,d;const h=o[t],p=n[h.index],_=c[p.index];if(m||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,n[h.index].name))),_){const t=a.length-r;_(f,a,r,u),g(p,f,t,!0),f.state===e.ACTIVE&&(d=o,o=p.opcodes,v(0,r),o=d,_(f,a,r,u),g(p,f,t,!1))}else d=o,o=p.opcodes,v(0,r,f),o=d;m||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,p.name,r,f.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const r=o[t];f.state=e.NOMATCH,s<a.length&&r.min<=a[s]&&a[s]<=r.max&&(f.state=e.MATCH,f.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const r=o[t],n=r.string.length;if(f.state=e.NOMATCH,s+n<=a.length){for(let e=0;e<n;e+=1)if(a[s+e]!==r.string[e])return;f.state=e.MATCH,f.phraseLength=n}})(t,i);break;case e.TLS:((t,s)=>{let r;const n=o[t];f.state=e.NOMATCH;const i=n.string.length;if(0!==i){if(s+i<=a.length){for(let e=0;e<i;e+=1)if(r=a[s+e],r>=65&&r<=90&&(r+=32),r!==n.string[e])return;f.state=e.MATCH,f.phraseLength=i}}else f.state=e.EMPTY})(t,i);break;case e.UDT:y(t,i);break;case e.AND:((t,s)=>{switch(m+=1,v(t+1,s),m-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.EMPTY;break;case e.NOMATCH:f.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${f.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(m+=1,v(t+1,s),m-=1,f.phraseLength=0,f.state){case e.EMPTY:case e.MATCH:f.state=e.NOMATCH;break;case e.NOMATCH:f.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${f.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}m||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),d-=1}},jf={stringToChars:e=>[...e].map((e=>e.codePointAt(0))),charsToString:(e,t,s)=>{let r=e;for(;!(void 0===t||t<0);){if(void 0===s){r=e.slice(t);break}if(s<=0)return"";r=e.slice(t,t+s);break}return String.fromCodePoint(...r)}},Of={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Of.ALT:return"ALT";case Of.CAT:return"CAT";case Of.REP:return"REP";case Of.RNM:return"RNM";case Of.TRG:return"TRG";case Of.TBS:return"TBS";case Of.TLS:return"TLS";case Of.UDT:return"UDT";case Of.AND:return"AND";case Of.NOT:return"NOT";case Of.ACTIVE:return"ACTIVE";case Of.EMPTY:return"EMPTY";case Of.MATCH:return"MATCH";case Of.NOMATCH:return"NOMATCH";case Of.SEM_PRE:return"SEM_PRE";case Of.SEM_POST:return"SEM_POST";case Of.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Pf(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class Tf extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(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}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Af=Tf;new Pf;new Pf,new Sf,new Pf,new Sf,new Pf,new Sf,new Pf,new Sf;const Mf=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Ff=class extends Af{},Rf=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map((e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Mf(String(e))})).join("/")}`}catch(t){throw new Ff("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Nf={namespace:e=>{const{base:t}=e;return t.register("callback",dd),t.register("components",hd),t.register("contact",pd),t.register("discriminator",_d),t.register("encoding",fd),t.register("example",gd),t.register("externalDocumentation",yd),t.register("header",vd),t.register("info",bd),t.register("jsonSchemaDialect",wd),t.register("license",xd),t.register("link",Sd),t.register("mediaType",jd),t.register("oAuthFlow",Od),t.register("oAuthFlows",Pd),t.register("openapi",Td),t.register("openApi3_1",Md),t.register("operation",Fd),t.register("parameter",Rd),t.register("pathItem",Nd),t.register("paths",Id),t.register("reference",Cd),t.register("requestBody",$d),t.register("response",Dd),t.register("responses",Ld),t.register("schema",up),t.register("securityRequirement",mp),t.register("securityScheme",dp),t.register("server",hp),t.register("serverVariable",pp),t.register("tag",_p),t.register("xml",fp),t}},If=e=>{const t=e.reduce(((t,s,r)=>{if(Zt(s)){const e=String(Qn(s.key));t.push(e)}else if(zt(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Rf(t)},kf=()=>{const e=ct(Nf);return{predicates:{...a,isElement:Ut,isStringElement:Vt,isArrayElement:zt,isObjectElement:Wt,isMemberElement:Zt,isServersElement:xc,includesClasses:ns,hasElementSourceMap:ss},ancestorLineageToJSONPointer:If,namespace:e}},Cf=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=Ss(Ef),i=new(_s(t,n))({specObj:n});return Is(r,i),Zs(i.element,s,{toolboxCreator:kf,visitorOptions:{keyMap:xf,nodeTypeGetter:wf}})},$f=e=>(t,s={})=>Cf(t,{specPath:e,...s});dd.refract=$f(["visitors","document","objects","Callback","$visitor"]),hd.refract=$f(["visitors","document","objects","Components","$visitor"]),pd.refract=$f(["visitors","document","objects","Contact","$visitor"]),gd.refract=$f(["visitors","document","objects","Example","$visitor"]),_d.refract=$f(["visitors","document","objects","Discriminator","$visitor"]),fd.refract=$f(["visitors","document","objects","Encoding","$visitor"]),yd.refract=$f(["visitors","document","objects","ExternalDocumentation","$visitor"]),vd.refract=$f(["visitors","document","objects","Header","$visitor"]),bd.refract=$f(["visitors","document","objects","Info","$visitor"]),wd.refract=$f(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),xd.refract=$f(["visitors","document","objects","License","$visitor"]),Sd.refract=$f(["visitors","document","objects","Link","$visitor"]),jd.refract=$f(["visitors","document","objects","MediaType","$visitor"]),Od.refract=$f(["visitors","document","objects","OAuthFlow","$visitor"]),Pd.refract=$f(["visitors","document","objects","OAuthFlows","$visitor"]),Td.refract=$f(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Md.refract=$f(["visitors","document","objects","OpenApi","$visitor"]),Fd.refract=$f(["visitors","document","objects","Operation","$visitor"]),Rd.refract=$f(["visitors","document","objects","Parameter","$visitor"]),Nd.refract=$f(["visitors","document","objects","PathItem","$visitor"]),Id.refract=$f(["visitors","document","objects","Paths","$visitor"]),Cd.refract=$f(["visitors","document","objects","Reference","$visitor"]),$d.refract=$f(["visitors","document","objects","RequestBody","$visitor"]),Dd.refract=$f(["visitors","document","objects","Response","$visitor"]),Ld.refract=$f(["visitors","document","objects","Responses","$visitor"]),up.refract=$f(["visitors","document","objects","Schema","$visitor"]),mp.refract=$f(["visitors","document","objects","SecurityRequirement","$visitor"]),dp.refract=$f(["visitors","document","objects","SecurityScheme","$visitor"]),hp.refract=$f(["visitors","document","objects","Server","$visitor"]),pp.refract=$f(["visitors","document","objects","ServerVariable","$visitor"]),_p.refract=$f(["visitors","document","objects","Tag","$visitor"]),fp.refract=$f(["visitors","document","objects","XML","$visitor"]);const Df=l((function(e){return _(-1,e)}));const Lf=class extends $n{};const qf=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Lf("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Lf("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Lf("latest method in MediaTypes class is not yet implemented.")}};class Bf extends qf{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(s)))||this.unknownMediaType}latest(e="generic"){return Df(this.filterByFormat(e))}}const Uf=new Bf("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),Vf=new Bf(...Uf.filterByFormat("generic"),...Uf.filterByFormat("json")),Hf=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,Jf=async e=>Hf.test(e)&&await(async e=>{if(!Br.test(e))return!1;try{return"ERROR"!==(await wt(e)).rootNode.type}catch{return!1}})(e),Gf=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:s="direct"}={})=>{const r=await wt(e);let n;return n="indirect"===s?qr(r,{sourceMap:t}):ir(r,{sourceMap:t}),n})(e,r),{result:i}=n;if(ae(i)){const e=Md.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},Wf=ct(Nf)})(),__webpack_exports__})()));
|