@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 1.0.0-beta.39 → 1.0.0-beta.40
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.
- package/CHANGELOG.md +4 -0
- package/dist/1496cfca5e4d41188323a914b9705264.wasm +0 -0
- package/dist/apidom-parser-adapter-openapi-yaml-3-1.browser.js +2 -2
- package/dist/apidom-parser-adapter-openapi-yaml-3-1.browser.min.js +1 -1
- package/package.json +5 -5
- package/dist/083dd6647843baf16cbefd09aae31f27.wasm +0 -0
|
@@ -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.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_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),d=s(1811),m=s(3999),p=s(3508),h=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,h,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===h&&I)return I;if(!b&&e&&e in R)return R[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",N=!1,R=e.prototype,k=R[w]||R["@@iterator"]||h&&R[h],I=!b&&k||M(h),C="Array"===t&&R.entries||k;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||p(P,w,j)),d(P,F,!0,!0),i&&(_[F]=j)),g&&h===x&&k&&k.name!==x&&(!i&&y?m(R,"name",x):(N=!0,I=function(){return n(k,this)})),h)if(T={values:M(x),keys:f?I:M(E),entries:M(S)},O)for(A in T)(b||N||!(A in R))&&p(R,A,T[A]);else r({target:t,proto:!0,forced:b||N},T);return i&&!O||R[w]===I||p(R,w,I,{name:h}),_[t]=I,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),d=s(967),m=s(1743),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},_=h.prototype;e.exports=function(e,t,s){var f,g,y,v,b,w,E,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&&m(f,"normal",e),new h(!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=d(e)))throw new p(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 h(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=M(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new h(!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),d="[object Arguments]",m="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?m:a(e),w=v?m:a(t),E=(b=b==d?p:b)==p,x=(w=w==d?p:w)==p,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&h.call(e,"__wrapped__"),O=x&&h.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),d=!s&&!u&&o(e),m=!s&&!u&&!d&&c(e),p=s||u||d||m,h=p?r(e.length,String):[],_=h.length;for(var f in e)!t&&!l.call(e,f)||p&&("length"==f||d&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||h.push(f);return h}},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)},d=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)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("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 d=u;d--;){var m=l[d];if(!(c?m in t:n.call(t,m)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++d<u;){var g=e[m=l[d]],y=t[m];if(i)var v=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!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),d=s(3508),m=s(8655),p=s(4871),h=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=l(r)),a(r[h])||d(r,h,(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),d=s(8148),m=s(4279),p=s(208),h=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",h(t)),m(s,y,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return p(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var 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 d=r(),m=0;m<d;++m){var p=n();u.neededDynlibs.push(p)}}else{i("dylink.0"!==o);for(;t<s;){var h=e[t++],_=r();if(1===h)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===h)for(d=r(),m=0;m<d;++m)p=n(),u.neededDynlibs.push(p);else if(3===h)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===h)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),d=new Array(o),m=new Array(o),p=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],p[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;p[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,r,a,p,m,Object.freeze(l),Object.freeze(u),Object.freeze(d))}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"),d=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=new Array(s);if(p=unmarshalCaptures(this,e.tree,p,r),this.textPredicates[t].every((e=>e(r)))){d[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(d[m].refutedProperties=n),m++}}return d.length=m,C._free(l),d}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"),d=[];this.exceededMatchLimit=Boolean(u);const m=[];let p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=getValue(p,"i32");if(p+=SIZE_OF_INT,m.length=s,p=unmarshalCaptures(this,e.tree,p,m),this.textPredicates[t].every((e=>e(m)))){const e=m[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),d}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,d=t.length;if(u!=d&&!(l&&d>u))return!1;var m=c.get(e),p=c.get(t);if(m&&p)return m==t&&p==e;var h=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],y=t[h];if(o)var v=l?o(y,g,h,t,e,c):o(g,y,h,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),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(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,d=i(o(t)),m=n(s),p=d.length;return m<0||m>=p?e?"":void 0:(r=c(d,m))<55296||r>56319||m+1===p||(u=c(d,m+1))<56320||u>57343?e?a(d,m):r:e?l(d,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},5695:(e,t,s)=>{"use strict";s(3085)},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),d="prototype",m="script",p=u("IE_PROTO"),h=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},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"+m+":",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[d][o[n]];return g()};a[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(h[d]=n(e),s=new h,h[d]=null,s[p]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),d=s(4879),m=s(8148),p=s(4279),h=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],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=d(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),p(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):h&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,d,m,p){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==d)return i(d);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==p)return h=p,o.get(h)||h;var h;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},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 d=a[u];r(e,d)||s&&r(s,d)||c(e,d,l(t,d))}}},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),d=s(9620),m=s(593),p=s(4123),h=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=m,r.prototype.MemberElement=l,r.prototype.refract=f,p.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:d,RefElement:m,refract:f,ArraySlice:p,ObjectSlice:h,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),d=s(3753),m=s(4275),p=s(5241),h="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(h);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new _(h);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]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",h="[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)))!=h||n&&b(new n)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=m||a&&b(new a)!=p)&&(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 h;case f:return u;case g:return d;case y:return m;case v:return p}return t}),e.exports=b},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},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"),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:d("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,d,m){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var _=m.get(e);if(_)return _==t;r|=2,m.set(e,t);var f=o(p(e),p(t),r,l,d,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),d=s(3999),m=s(701);s(3753);var p=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,h,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||d(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(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?p(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(l,h=w+"Prototype")||d(l,h,{}),d(l[h],_,f),e.real&&P&&(s||!P[_])&&d(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,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),d=s(5024),m="Array Iterator",p=o.set,h=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){p(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=h(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&&d&&"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,d="enumerable",m="configurable",p="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&p in s&&!s[p]){var r=u(e,t);r&&r[p]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:d in s?s[d]:r[d],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:()=>ny,detectionRegExp:()=>ry,mediaTypes:()=>sy,namespace:()=>oy,parse:()=>iy});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>ln,includesClasses:()=>dn,includesSymbols:()=>un,isAnnotationElement:()=>rn,isArrayElement:()=>Qr,isBooleanElement:()=>Yr,isCommentElement:()=>nn,isElement:()=>Wr,isLinkElement:()=>tn,isMemberElement:()=>en,isNullElement:()=>Kr,isNumberElement:()=>Zr,isObjectElement:()=>Xr,isParseResultElement:()=>on,isPrimitiveElement:()=>cn,isRefElement:()=>sn,isSourceMapElement:()=>an,isStringElement:()=>zr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>Yo,isLinkDescriptionElement:()=>ea,isMediaElement:()=>Qo});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>Fl,isCallbackElement:()=>dl,isComponentsElement:()=>ml,isContactElement:()=>pl,isExampleElement:()=>hl,isExternalDocumentationElement:()=>_l,isHeaderElement:()=>fl,isInfoElement:()=>gl,isLicenseElement:()=>yl,isLinkElement:()=>vl,isMediaTypeElement:()=>Cl,isOpenApi3_0Element:()=>wl,isOpenapiElement:()=>bl,isOperationElement:()=>El,isParameterElement:()=>xl,isPathItemElement:()=>Sl,isPathsElement:()=>jl,isReferenceElement:()=>Ol,isRequestBodyElement:()=>Pl,isResponseElement:()=>Tl,isResponsesElement:()=>Al,isSchemaElement:()=>Ml,isSecurityRequirementElement:()=>Nl,isSecuritySchemeElement:()=>Rl,isServerElement:()=>kl,isServerVariableElement:()=>Il,isServersElement:()=>$l});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>hh,isLinkDescriptionElement:()=>_h,isMediaElement:()=>Qo});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>Oh,isLinkDescriptionElement:()=>Ph});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>r_,isLinkDescriptionElement:()=>n_});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>g_,isLinkDescriptionElement:()=>y_});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 d(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:()=>Mf,isCallbackElement:()=>af,isComponentsElement:()=>cf,isContactElement:()=>lf,isExampleElement:()=>uf,isExternalDocumentationElement:()=>df,isHeaderElement:()=>mf,isInfoElement:()=>pf,isJsonSchemaDialectElement:()=>hf,isLicenseElement:()=>_f,isLinkElement:()=>ff,isMediaTypeElement:()=>If,isOpenApi3_1Element:()=>yf,isOpenapiElement:()=>gf,isOperationElement:()=>vf,isParameterElement:()=>bf,isPathItemElement:()=>wf,isPathItemElementExternal:()=>Ef,isPathsElement:()=>xf,isReferenceElement:()=>Sf,isReferenceElementExternal:()=>jf,isRequestBodyElement:()=>Of,isResponseElement:()=>Pf,isResponsesElement:()=>Tf,isSchemaElement:()=>Af,isSecurityRequirementElement:()=>Ff,isSecuritySchemeElement:()=>Nf,isServerElement:()=>Rf,isServerVariableElement:()=>kf});const m=u((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return(e|0)===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return h(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return p(e)?_(e,t):t[e]}));const g=d((function(e,t,s){return m(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 w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=l((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!h(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(E(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(!w(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 N=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 R=function(e){return function(t){return new N(e,t)}};function k(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 I(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):k(Math.max(0,i),I(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):k(e,I(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"],R,(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 Y(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function X(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=Y(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!X((function(e,t){return!X(i,t,e)}),Y(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 d=c[a];if(!$(d,t)||!se(t[d],e[d],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 de=u((function(e,t){return k(e.length,(function(){return e.apply(t,arguments)}))}));function me(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 pe(e,t,s,r){return e["@@transducer/result"](s[r](de(e["@@transducer/step"],e),t))}const he=S(ue,pe,me);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}();function fe(e){return new _e(e)}const ge=d((function(e,t,s){return he("function"==typeof e?fe(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ve=d(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const be=l(ye("tail",ve(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return k(arguments[0].length,ge(le,arguments[0],be(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 xe=Ee;function Se(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 je(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 Oe=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Oe(e.getUTCMonth()+1)+"-"+Oe(e.getUTCDate())+"T"+Oe(e.getUTCHours())+":"+Oe(e.getUTCMinutes())+":"+Oe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Te(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=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 Me(e){return function(t){return new Ae(e,t)}}const Fe=u(T(["fantasy-land/filter","filter"],Me,(function(e,t){return Te(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 Ne=u((function(e,t){return Fe((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 Se(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return je(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,Ne((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):je(Pe(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())+")":je(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 ke=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=p(n)?_(n,s):s[n]}return s}const Ce=d((function(e,t,s){return e(Ie(t,s))}));function $e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const De=u((function(e,t){return e&&t}));const Le=u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z(De)(e,t)}));const qe=re(null);const Be=K(qe);function Ue(e){return Ue="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},Ue(e)}const Ve=function(e){return"object"===Ue(e)};const He=C(1,Le(Be,Ve));const Je=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=ke(e),o=s(i,ke(t));return void 0!==o&&o===i?e:t}));const Ge=u((function(e,t){return G(f(e),t)}));const We=l((function(e){return C(ge(Je,0,Ge("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 ze=C(1,we(ee,xe("GeneratorFunction")));const Ze=C(1,we(ee,xe("AsyncFunction")));const Ke=We([we(ee,xe("Function")),ze,Ze]);var Ye=we(ee,xe("Object")),Xe=we(ke,re(ke(Object))),Qe=Ce(Le(Ke,Xe),["constructor"]);const et=C(1,(function(e){if(!He(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class tt 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 st=tt;class rt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const nt=rt;class it 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 ot=it;class at extends ce.wE{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ce.wE([e.start.row,e.start.column,e.start.char]),s=new ce.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const ct=at;class lt extends ce.g${constructor(){super(),this.register("annotation",st),this.register("comment",nt),this.register("parseResult",ot),this.register("sourceMap",ct)}}const ut=new lt,dt=e=>{const t=new lt;return et(e)&&t.use(e),t},mt=ut;const pt=C(1,we(ee,xe("String"))),ht=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",_t=globalThis.fetch;Ke(_t)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?_t.apply(globalThis,[ht,be(e)]):_t.apply(globalThis,e));var ft=__webpack_require__(3833),gt=__webpack_require__(1212);const yt=class extends gt{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 vt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(yt,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 bt=vt,wt=__webpack_require__.p+"083dd6647843baf16cbefd09aae31f27.wasm";let Et=null,xt=null;const St=async e=>{if(null===Et&&null===xt)xt=ft.init().then((()=>ft.Language.load(wt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{xt=null})),Et=await xt;else if(null===Et&&null!==xt)Et=await xt;else if(null===Et)throw new bt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Et.parse(e)};function jt(e,t,s){if(s||(s=new Ot),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r,n=function(r){var n=s.get(e);if(n)return n;for(var i in s.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?jt(e[i],!0,s):e[i]);return r};switch(ee(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return r=e,new RegExp(r.source,r.flags?r.flags:(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.sticky?"y":"")+(r.unicode?"u":"")+(r.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Ot=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),r=this.map[s];r||(this.map[s]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],r=0;r<s.length;r+=1){if((i=s[r])[0]===e)return i[1]}else{var n=this.hash(e);if(s=this.map[n])for(r=0;r<s.length;r+=1){var i;if((i=s[r])[0]===e)return i[1]}}},e}();const Pt=l((function(e){return null!=e&&"function"==typeof e.clone?e.clone():jt(e,!0)}));const Tt=class extends bt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const At=class extends Tt{};const Mt=class extends At{};const Ft=class extends Mt{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Nt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}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}};let Rt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const kt=class extends Nt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const It=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ct=class extends It{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Rt.Mapping}};const $t=class extends It{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Rt.Sequence}};const Dt=class extends It{static uri="tag:yaml.org,2002:str"};const Lt=d((function(e,t,s){return m(e,Ie(t,s))}));const qt=l((function(e){return C(e.length,e)}));var Bt="\t\n\v\f\r \u2028\u2029\ufeff";const Ut=l("function"==typeof String.prototype.trim&&!Bt.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Bt+"]["+Bt+"]*"),s=new RegExp("["+Bt+"]["+Bt+"]*$");return e.replace(t,"").replace(s,"")});const Vt=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&$e(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ke(s)+' does not have a method named "'+t+'"')}))}));const Ht=Vt(1,"split");const Jt=Vt(1,"join");const Gt=l((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Wt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Gt(arguments))}const zt=C(4,(function(e,t,s,r){return he(e("function"==typeof t?fe(t):t),s,r)}));const Zt=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(ke(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(ke(t)+" is not a string")}if(null!=e&&$e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&$e(e.concat))return e.concat(t);throw new TypeError(ke(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Kt=re("");const Yt=u((function(e,t){return C(ge(Je,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,s)}),t))}))}));function Xt(e){return e}const Qt=l(Xt);const es=C(1,we(ee,xe("Number")));var ts=Le(es,isFinite);var ss=C(1,ts);const rs=Ke(Number.isFinite)?C(1,de(Number.isFinite,Number)):ss;var ns=Le(rs,Yt(re,[Math.floor,Qt]));var is=C(1,ns);const os=Ke(Number.isInteger)?C(1,de(Number.isInteger,Number)):is;const as=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)}))}));const cs=K(rs);const ls=C(1,Le(es,u((function(e,t){return e>t}))(0)));var us=qt((function(e,t){var s=Number(t);if(s!==t&&(s=0),ls(s))throw new RangeError("repeat count must be non-negative");if(cs(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),ds=as(Vt(1,"repeat"));const ms=Ke(String.prototype.repeat)?ds:us;const ps=d((function(e,t,s){return s.replace(e,t)}));var hs=ps(/[\s\uFEFF\xA0]+$/,""),_s=Vt(0,"trimEnd");const fs=Ke(String.prototype.trimEnd)?_s:hs;var gs=ps(/^[\s\uFEFF\xA0]+/,""),ys=Vt(0,"trimStart");const vs=Ke(String.prototype.trimStart)?ys:gs;var bs=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 ws(e){return function(t){return new bs(e,t)}}const Es=u(T(["dropWhile"],ws,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ve(s,1/0,t)})));const xs=as(u(Se));const Ss=qt((function(e,t){return we(Ht(""),Es(xs(e)),Jt(""))(t)}));const js=as(Zt);var Os=__webpack_require__(6850);const Ps=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Ts=e=>{const t=(e=>{const t=e.match(Ps),s=Lt("",["groups","indentation"],t);return Kt(s)?void 0:parseInt(s,10)})(e);if(os(t))return ms(" ",t);const s=Lt("",[1],e.split("\n")),r=Lt(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return ms(" ",r)},As=e=>{const t=e.match(Ps),s=Lt("",["groups","chomping"],t);return Kt(s)?void 0:s},Ms=(e,t)=>oe(e)?`${fs(t)}\n`:"-"===e?fs(t):t,Fs=e=>e.replace(/\r\n/g,"\n"),Ns=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Rs=qt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),ks=we(Fs,Ut,Ns,Ht("\n"),G(vs),Jt("\n")),Is=we(Fs,Ut,Ns,Ht("\n"),G(vs),Jt("\n"),Rs("'")),Cs=we(Fs,Ut,(e=>e.replace(/\\\n\s*/g,"")),Ns,Os.MH,Ht("\n"),G(vs),Jt("\n"),Rs('"'));let $s=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Ds=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ls=class{static test(e){return e.tag.kind===Rt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===$s.Plain?t=ks(e.content):e.style===$s.SingleQuoted?t=Is(e.content):e.style===$s.DoubleQuoted?t=Cs(e.content):e.style===$s.Literal?t=(e=>{const t=Ts(e),s=As(e),r=Fs(e),n=be(r.split("\n")),i=Wt(G(Ss(t)),G(js("\n"))),o=zt(i,Zt,"",n);return Ms(s,o)})(e.content):e.style===$s.Folded&&(t=(e=>{const t=Ts(e),s=As(e),r=Fs(e),n=be(r.split("\n")),i=Wt(G(Ss(t)),G(js("\n"))),o=zt(i,Zt,"",n),a=Ns(o);return Ms(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const qs=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ct),this.registerTag(new $t),this.registerTag(new Dt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Rt.Scalar?t=Dt.uri:e.tag.kind===Rt.Sequence?t=$t.uri:e.tag.kind===Rt.Mapping&&(t=Ct.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;Ls.test(e)&&(s=Ls.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Ft(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),node:e.clone()});if(!r.test(s))throw new Ft(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Bs=class extends It{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const Us=class extends It{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const Vs=class extends It{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const Hs=class extends It{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Js=class extends qs{constructor(){super(),this.registerTag(new Bs,!0),this.registerTag(new Us,!0),this.registerTag(new Vs,!0),this.registerTag(new Hs,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Rt.Sequence)t=$t.uri;else if(e.tag.kind===Rt.Mapping)t=Ct.uri;else if(e.tag.kind===Rt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Gs=class extends Nt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Ws=class extends Gs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const zs=class extends At{},Zs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Ks=e=>Zs("mapping",e),Ys=e=>Zs("sequence",e),Xs=e=>Zs("keyValuePair",e),Qs=e=>Zs("scalar",e),er=e=>Zs("alias",e);const tr=class{addAnchor(e){if(!(e=>Zs("anchor",e))(e.anchor))throw new zs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Ws({content:e.content,style:$s.Plain,styleGroup:Ds.Flow})}},sr=(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},rr={},nr=e=>null==e?void 0:e.type,ir=e=>"string"==typeof nr(e),or=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ar=(e,{visitFnGetter:t=sr,nodeTypeGetter:s=nr,breakSymbol:r=rr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,d,m,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.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,d,m,p,g);if("function"==typeof(null==t?void 0:t.then))throw new Tt("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,d,m){let p=n;const h={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=a.call(e[n],p,o,l,u,d,h);if("function"==typeof(null==t?void 0:t.then))throw new Tt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};ar[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=sr,nodeTypeGetter:s=nr,breakSymbol:r=rr,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,d,m,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.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,d,m,p,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,d,m){let p=n;const h={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=await a.call(e[n],p,o,l,u,d,h);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};const cr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=rr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=sr,nodeTypeGetter:c=nr,nodePredicate:l=ir,nodeCloneFn:u=or,detectCycles:d=!0}={})=>{const m=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),S)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){var E;if(!l(v))throw new Tt(`Invalid AST Node: ${String(v)}`,{node:v});if(d&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};j=i.call(t,v,s,h,b,w,n)}if("function"==typeof(null===(E=j)||void 0===E?void 0:E.then))throw new Tt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var x;if(void 0===j&&S&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(x=m[c(v)])&&void 0!==x?x:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};cr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=rr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=sr,nodeTypeGetter:c=nr,nodePredicate:l=ir,nodeCloneFn:u=or,detectCycles:d=!0}={})=>{const m=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const x=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let S;if(!Array.isArray(v)){if(!l(v))throw new Tt(`Invalid AST Node: ${String(v)}`,{node:v});if(d&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};S=await i.call(t,v,s,h,b,w,n)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([s,S]),!e)){if(!l(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(E=m[c(v)])&&void 0!==E?E:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};class lr{static type="point";type=lr.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class ur{static type="position";type=ur.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const dr=ur;const mr=class extends Nt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class pr extends Nt{static type="stream"}Object.defineProperty(pr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Zs("document",e))(e)||(e=>Zs("comment",e))(e))):[]},enumerable:!0});const hr=pr;const _r=l((function(e){return _(0,e)}));const fr=class extends Nt{static type="parseResult";get rootNode(){return _r(this.children)}};const gr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)$(i,n)&&(t[i]=n[i]);s+=1}return t};const yr=u((function(e,t){return gr({},e,t)}));const vr=class extends Nt{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=yr({version:void 0,handle:void 0,prefix:void 0},t)}};const br=class extends Nt{static type="document"};const wr=class extends Gs{};class Er extends wr{static type="mapping"}Object.defineProperty(Er.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Xs):[]},enumerable:!0});const xr=Er;class Sr extends Nt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Sr.prototype,{key:{get(){return this.children.filter((e=>Qs(e)||Ks(e)||Ys(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Qs(e)||Ks(e)||Ys(e)||er(e))(t)))[0]},enumerable:!0}});const jr=Sr;class Or extends wr{static type="sequence"}Object.defineProperty(Or.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Ys(e)||Ks(e)||Qs(e)||er(e))):[]},enumerable:!0});const Pr=Or;const Tr=class extends Nt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ar=class extends Nt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Mr=class extends Nt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Fr=class extends Nt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Nr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Rr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},kr=e=>Array.isArray(e)||ir(e);class Ir{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new dr({start:t,end:s})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new mr({name:t.text,position:Ir.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Rt.Mapping:e.type.endsWith("sequence")?Rt.Sequence:Rt.Scalar,n=t?Ir.toPosition(t):void 0;return new kt({explicitName:s,kind:r,position:n})}schema;referenceManager;stream={enter:e=>{const t=Ir.toPosition(e);return new hr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new fr({children:[e]})};yaml_directive={enter:e=>{var t;const s=Ir.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new vr({position:s,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Ir.toPosition(e),s=e.children[0],r=e.children[1],n=new vr({position:t,name:"%TAG",parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(n),n}};reserved_directive={enter:e=>{const t=Ir.toPosition(e),s=e.children[0],r=e.children[1],n=e.children[2];return new vr({position:t,name:null==s?void 0:s.text,parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}})}};document={enter:e=>{const t=Ir.toPosition(e);return new br({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Ir.isScalar(t)||Ir.isMapping(t)||Ir.isSequence(t))return e.children;const s=new lr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Ws({content:"",anchor:Ir.kindNodeToYamlAnchor(t),tag:Ir.kindNodeToYamlTag(t),position:new dr({start:s,end:s}),styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new xr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Ds.Block,style:$s.NextLine,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};block_mapping_pair={enter:e=>{const t=Ir.toPosition(e),s=[...e.children];if(Ir.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Ir.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new jr({children:s,position:t,styleGroup:Ds.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new xr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Ds.Flow,style:$s.Explicit,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};flow_pair={enter:e=>{const t=Ir.toPosition(e),s=[...e.children];if(Ir.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Ir.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new jr({children:s,position:t,styleGroup:Ds.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Pr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Ds.Block,style:$s.NextLine});return this.registerAnchor(n),this.schema.resolve(n)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Ws({content:"",tag:new kt({explicitName:"?",kind:Rt.Scalar}),position:new dr({start:t,end:t}),styleGroup:Ds.Flow,style:$s.Plain})]}};flow_sequence={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Pr({children:e.children.flat(),position:t,anchor:r,tag:s,styleGroup:Ds.Flow,style:$s.Explicit});return this.registerAnchor(n),this.schema.resolve(n)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(n),this.schema.resolve(n)}};single_quote_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Flow,style:$s.SingleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};double_quote_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Flow,style:$s.DoubleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};block_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=e.text.startsWith("|")?$s.Literal:e.text.startsWith(">")?$s.Folded:$s.Plain,i=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Block,style:n});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Tr({content:e.text})};alias={enter:e=>{const t=new Ar({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Nr&&!e.isNamed){const t=Ir.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Mr({value:s,position:t,isMissing:r})}}ERROR(e,t,s,r){const n=Ir.toPosition(e),i=new Fr({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new fr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Ir.isKind("tag")),i=r.find(Ir.isKind("anchor")),o=new kt(void 0!==n?{explicitName:n.text,kind:Rt.Scalar,position:Ir.toPosition(n)}:{explicitName:"?",kind:Rt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Ir.toPosition(i)}):void 0,c=new Ws({content:"",position:new dr({start:t,end:t}),tag:o,anchor:a,styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Ir.isKind("tag")),i=r.find(Ir.isKind("anchor")),o=new kt(void 0!==n?{explicitName:n.text,kind:Rt.Scalar,position:Ir.toPosition(n)}:{explicitName:"?",kind:Rt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Ir.toPosition(i)}):void 0,c=new Ws({content:"",position:new dr({start:t,end:t}),tag:o,anchor:a,styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(c),c}}const Cr=Ir;function $r(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Dr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=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=$r(this.xf["@@transducer/step"](e,!1))),e},e}();function Lr(e){return function(t){return new Dr(e,t)}}const qr=u(T(["all"],Lr,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Br=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ur=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Vr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Jr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Gr=e=>e({hasMethod:Br,hasBasicElementProps:Ur,primitiveEq:Vr,isElementType:Jr,hasClass:Hr}),Wr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),zr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Zr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Kr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Yr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),Xr=Gr((({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))),Qr=Gr((({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))),en=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),tn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),sn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),rn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("annotation",r)&&s("array",r))),nn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("comment",r)&&s("string",r))),on=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("parseResult",r)&&s("array",r))),an=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ct||e(r)&&t("sourceMap",r)&&s("array",r))),cn=e=>Jr("object",e)||Jr("array",e)||Jr("boolean",e)||Jr("number",e)||Jr("string",e)||Jr("null",e)||Jr("member",e),ln=e=>an(e.meta.get("sourceMap")),un=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Qr(s)&&qr(xs(s.toValue()),e)},dn=(e,t)=>0===e.length||qr(xs(t.classes.toValue()),e);const mn=class extends Tt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pn=class extends mn{};const hn=class extends mn{},_n=(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=Wr(t)?_n(t,r):t,o=Wr(n)?_n(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>_n(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=>_n(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Wr(e)){const t=yn(e);if(s.set(e,t),e.content)if(Wr(e.content))t.content=_n(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=_n(e.content,r);else if(Array.isArray(e.content)){const s=e=>_n(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new pn("Value provided to cloneDeep function couldn't be cloned",{value:e})};_n.safe=e=>{try{return _n(e)}catch{return e}};const fn=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},gn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=_n(e.meta)),e.attributes.length>0&&(t._attributes=_n(e.attributes)),Wr(e.content)){const s=e.content;t.content=gn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=fn(e.content):t.content=e.content;return t},yn=e=>{if(e instanceof ce.KeyValuePair)return fn(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(Wr(e))return gn(e);throw new hn("Value provided to cloneShallow function couldn't be cloned",{value:e})};yn.safe=e=>{try{return yn(e)}catch{return e}};const vn=e=>Xr(e)?"ObjectElement":Qr(e)?"ArrayElement":en(e)?"MemberElement":zr(e)?"StringElement":Yr(e)?"BooleanElement":Zr(e)?"NumberElement":Kr(e)?"NullElement":tn(e)?"LinkElement":sn(e)?"RefElement":void 0,bn=e=>Wr(e)?yn(e):or(e),wn=we(vn,pt),En={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xn=(e,t,{keyMap:s=En,...r}={})=>cr(e,t,{keyMap:s,nodeTypeGetter:vn,nodePredicate:wn,nodeCloneFn:bn,...r});xn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=En,...r}={})=>cr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:vn,nodePredicate:wn,nodeCloneFn:bn,...r});const Sn=d((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 jn=d((function e(t,s,r){return Sn((function(s,r,n){return Te(r)&&Te(n)?e(t,r,n):t(s,r,n)}),s,r)}));const On=u((function(e,t){return jn((function(e,t,s){return s}),e,t)}));const Pn=u(Ie);const Tn=ve(0,-1);const An=u((function(e,t){return e.apply(this,t)}));const Mn=K(Ke);var Fn=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():w(e)?[]:h(e)?"":Te(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 Nn=Fn;const Rn=l((function(e){return null!=e&&re(e,Nn(e))}));const kn=C(1,Ke(Array.isArray)?Array.isArray:we(ee,xe("Array")));const In=Le(kn,Rn);const Cn=C(3,(function(e,t,s){var r=Pn(e,s),n=Pn(Tn(e),s);if(!Mn(r)&&!In(e)){var i=de(r,n);return An(i,t)}})),$n=()=>({predicates:{...e},namespace:mt}),Dn={toolboxCreator:$n,visitorOptions:{nodeTypeGetter:vn,exposeEdits:!0}},Ln=(e,t,s={})=>{if(0===t.length)return e;const r=On(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=ar(a.map(g({},"visitor")),{...i});a.forEach(Cn(["pre"],[]));const l=xn(e,c,i);return a.forEach(Cn(["post"],[])),l};Ln[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=On(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=ar[Symbol.for("nodejs.util.promisify.custom")],l=xn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map(Cn(["pre"],[])));const d=await l(e,u,i);return await Promise.allSettled(a.map(Cn(["post"],[]))),d};const qn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=_n(e.meta)),e.attributes.length>0&&(r.attributes=_n(e.attributes))),Ln(r,s,{toolboxCreator:$n,visitorOptions:{nodeTypeGetter:vn}})},Bn=e=>(t,s={})=>qn(t,{...s,Type:e});ce.Sh.refract=Bn(ce.Sh),ce.wE.refract=Bn(ce.wE),ce.Om.refract=Bn(ce.Om),ce.bd.refract=Bn(ce.bd),ce.Os.refract=Bn(ce.Os),ce.kT.refract=Bn(ce.kT),ce.Ft.refract=Bn(ce.Ft),ce.sI.refract=Bn(ce.sI),st.refract=Bn(st),nt.refract=Bn(nt),ot.refract=Bn(ot),ct.refract=Bn(ct);const Un={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...En},Vn=e=>Wr(e)?vn(e):nr(e),Hn=e=>Wr(e)||ir(e)||Array.isArray(e);const Jn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new ot;t._content=e.children.flat(1);const s=t.findElements(cn);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=dt()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new st("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ce.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===$s.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new st(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 YAML syntax error)":"(Error YAML syntax error)",i=new st(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new ot;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ct;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}};class Gn{cursor;constructor(e){this.cursor=e}stream(){return new Nr(this.cursor)}yaml_directive(){return new Nr(this.cursor)}tag_directive(){return new Nr(this.cursor)}reserved_directive(){return new Nr(this.cursor)}document(){return new Nr(this.cursor)}block_node(){return new Nr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Nr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Nr(this.cursor)}block_mapping_pair(){return new Nr(this.cursor)}flow_mapping(){return new Nr(this.cursor)}flow_pair(){return new Nr(this.cursor)}block_sequence(){return new Nr(this.cursor)}block_sequence_item(){return new Nr(this.cursor)}flow_sequence(){return new Nr(this.cursor)}plain_scalar(){return new Nr(this.cursor)}single_quote_scalar(){return new Nr(this.cursor)}double_quote_scalar(){return new Nr(this.cursor)}block_scalar(){return new Nr(this.cursor)}ERROR(){return new Nr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Nr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Gn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Gn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Wn=Gn,zn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Wn(s),[n]=Array.from(r),i=new Cr,o=new Jn,a=new Js,c=new tr,l=cr(n,i,{keyMap:Rr,nodePredicate:kr,state:{schema:a,sourceMap:t,referenceManager:c}});return cr(l.rootNode,o,{keyMap:Un,nodeTypeGetter:Vn,nodePredicate:Hn,state:{sourceMap:t}})};class Zn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Kn=Zn;class Yn 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 Xn=Yn;class Qn 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 ei=Qn;class ti 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 si=ti;class ri 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 ni=ri;class ii 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 oi=ii;class ai 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 ci=ai;class li 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(li.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ui=li;class di 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 mi=di;class pi 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 hi=pi;class _i 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 zr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):zr(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 fi=_i;class gi 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 yi=gi;class vi 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 bi=vi;class wi 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 Ei=wi;class xi extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Si=xi;class ji 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 Oi=ji;class Pi 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 Ti=Pi;class Ai 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(Ai.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Mi=Ai;class Fi 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 Ni=Fi;class Ri extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const ki=Ri;class Ii 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 Ci=Ii;class $i 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 Di=$i;class Li 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 qi=Li;class Bi 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 Ui=Bi;const Vi=class extends bt{};class Hi 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 Ji=Hi;class Gi 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 Wi=Gi;class zi 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 Zi=zi;class Ki 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 Yi=Ki;const Xi=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const Qi=l((function(e){return null==e}));var eo=u((function(e,t){if(0===e.length||Qi(t))return!1;for(var s=t,r=0;r<e.length;){if(Qi(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const to=eo;var so=u((function(e,t){return to([e],t)}));const ro=so;const no=d((function(e,t,s){return e(f(t,s))})),io=(e,t)=>{const s=m(e,t);return Xi((e=>{if(et(e)&&ro("$ref",e)&&no(pt,"$ref",e)){const t=Pn(["$ref"],e),r=Ss("#/",t);return Pn(r.split("/"),s)}return et(e)?io(e,s):e}),e)};const oo=function(){return!0},ao=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vn(e),co={EphemeralObject:["content"],EphemeralArray:["content"],...En},lo=(e,t,{keyMap:s=co,...r}={})=>xn(e,t,{keyMap:s,nodeTypeGetter:ao,nodePredicate:oo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});lo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=co,...s}={})=>xn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ao,nodePredicate:oo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const uo=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 mo=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 po{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new mo(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 uo(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 zr(e.href)?e.href.toValue():""}}const ho=e=>Wr(e)?zr(e)||Zr(e)||Yr(e)||Kr(e)?e.toValue():lo(e,new po):e,_o=e=>{const t=e.meta.length>0?_n(e.meta):void 0,s=e.attributes.length>0?_n(e.attributes):void 0;return new e.constructor(void 0,t,s)},fo=(e,t)=>t.clone&&t.isMergeableElement(e)?yo(_o(e),e,t):e,go={clone:!0,isMergeableElement:e=>Xr(e)||Qr(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>fo(e,s))),objectElementMerge:(e,t,s)=>{const r=Xr(e)?_o(e):_o(t);return Xr(e)&&e.forEach(((e,t,n)=>{const i=yn(n);i.value=fo(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=ho(n);let a;if(Xr(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=yn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return yo;const s=t.customMerge(e,t);return"function"==typeof s?s:yo})(n,s)(r,t)}else a=yn(i),a.value=fo(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},yo=(e,t,s)=>{var r,n,i;const o={...go,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:go.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:go.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:go.objectElementMerge;const a=Qr(t);if(!(a===Qr(e)))return fo(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=>_n(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>_n(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};yo.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)=>yo(e,s,t)),_o(e[0]))};const vo=yo;const bo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=vo(t.meta,e.meta),ln(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=vo(t.attributes,e.attributes))}};const wo=class extends bo{enter(e){return this.element=_n(e),rr}},Eo=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},xo=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:xo(s,[...t,s])},So=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>xo(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=xo(n);for(let t of e){let e=xo(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Eo(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},jo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),Oo=(e,t)=>{const s=t.map((e=>xo(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++}},Po=(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(Oo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==Oo(r,e)||void 0!==t[r],get:(s,r)=>(Oo(r,e)||t)[r],set(t,s,r){const n=Oo(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)))))}),To=null,Ao="copy",Mo="copy",Fo="deep",No=new WeakMap,Ro=e=>No.get(e),ko=(e,t)=>{var s,r;const n=jo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=jo([...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},Io=(e,t)=>{var s,r,n,i;return{property:ko(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:ko(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Co=(e,t)=>{var s,r,n,i,o,a;return{class:jo([...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:Io(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:Io(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},$o=new Map,Do=(...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=[...xo(e.prototype).map((e=>e.constructor)),...null!==(t=Ro(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=>$o.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Co(e,t)))},Lo=e=>{let t=$o.get(e);return t||(t={},$o.set(e,t)),t};function qo(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=To;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)Eo(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Mo?So(n,o):(a=n,c=o,Po([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Ao?So(e,null,["prototype"]):Po(e,Function.prototype));let l=o;if("none"!==Fo){const n="deep"===Fo?Do(...e):((...e)=>{const t=e.map((e=>Lo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Co(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)}Bo(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Bo(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,d;return u=l,d=e,No.set(u,d),l}const Bo=(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 Uo=l((function(e){return C(ge(Je,0,Ge("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 Vo=l((function(e){return!Rn(e)}));const Ho=u((function(e,t){return e||t}));var Jo=K(C(1,Le(Be,u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Ho)(e,t)}))(Ve,Ke))));const Go=Uo([pt,Jo,Vo]);const Wo=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 zo=class extends bo{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Wo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Pn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Pn(["visitors",...e],this.specObj):Pn(["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 wo&&(null==r?void 0:r.constructor)===wo?_n(t):(xn(t,r,s),r.element)}};const Zo=class extends zo{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(zr(r)&&s.includes(ho(r))&&!this.ignoredFields.includes(ho(r))){const s=this.toRefractedElement([...t,"fixedFields",ho(r)],e),i=new ce.Pr(_n(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ho(r))||this.element.content.push(_n(n))})),this.copyMetaAndAttributes(e,this.element),rr}};const Ko=class{parent;constructor({parent:e}){this.parent=e}},Yo=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ji||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Xo=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wi||e(r)&&t("JSONReference",r)&&s("object",r))),Qo=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zi||e(r)&&t("media",r)&&s("object",r))),ea=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yi||e(r)&&t("linkDescription",r)&&s("object",r)));class ta extends(qo(Zo,Ko,wo)){constructor(e){super(e),this.element=new Ji,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,Zo.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!zr(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Yo(this.parent)&&!zr(e.get("$schema"))){const e=m(ho(this.parent.meta.get("inheritedDialectIdentifier")),ho(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?_n(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=ho(e.get(t));Go(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const sa=ta,ra=e=>Xr(e)&&e.hasKey("$ref");class na extends(qo(zo,Ko,wo)){ObjectElement(e){const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),rr}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const ia=na;const oa=class extends wo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const aa=function(){return!1};const ca=class extends zo{specPath;ignoredFields;fieldPatternPredicate=aa;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(ho(t))&&this.fieldPatternPredicate(ho(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(_n(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ho(t))||this.element.content.push(_n(s))})),this.copyMetaAndAttributes(e,this.element),rr}};const la=class extends ca{constructor(e){super(e),this.fieldPatternPredicate=Go}};class ua extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const da=ua;class ma extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const pa=ma;class ha extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const _a=ha;const fa=class extends wo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ga=class extends wo{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 ya extends(qo(zo,Ko,wo)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const va=ya;class ba extends(qo(zo,Ko,wo)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const wa=ba;class Ea extends(qo(zo,Ko,wo)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const xa=Ea;class Sa extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ja=Sa;class Oa extends(qo(zo,Ko,wo)){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),rr}}const Pa=Oa;class Ta extends(qo(Zo,wo)){constructor(e){super(e),this.element=new Wi,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Zo.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Aa=Ta;const Ma=class extends wo{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Fa=d((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 Na=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var Ra=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ka=Ra;const Ia=l($r);const Ca=K(Qi);const $a=Le(kn,Vo);function Da(e){return function(e){if(Array.isArray(e))return La(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 La(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)?La(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 La(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 qa=we(ka(Na((function(e,t){return e.length>t.length}))),_r,f("length")),Ba=qt((function(e,t,s){var r=s.apply(void 0,Da(e));return Ca(r)?Ia(r):t}));const Ua=Fa($a,(function(e){var t=qa(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return ge(Ba(s),void 0,e)}))}),ie);const Va=class extends zo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Fa(e,ne(t),ie))),s=Ua(t)(e);return this.element=this.toRefractedElement(s,e),rr}};const Ha=class extends Va{constructor(e){super(e),this.alternator=[{predicate:ra,specPath:["document","objects","JSONReference"]},{predicate:oo,specPath:["document","objects","JSONSchema"]}]}};class Ja extends(qo(Zo,wo)){constructor(e){super(e),this.element=new Zi,this.specPath=ne(["document","objects","Media"])}}const Ga=Ja;class Wa extends(qo(Zo,wo)){constructor(e){super(e),this.element=new Yi,this.specPath=ne(["document","objects","LinkDescription"])}}const za=Wa,Za={visitors:{value:wo,JSONSchemaOrJSONReferenceVisitor:Ha,document:{objects:{JSONSchema:{$visitor:sa,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:Ha,items:ia,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:oa,properties:da,additionalProperties:Ha,patternProperties:pa,dependencies:_a,enum:fa,type:ga,allOf:va,anyOf:wa,oneOf:xa,not:Ha,definitions:ja,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Pa,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Aa,fixedFields:{$ref:Ma}},Media:{$visitor:Ga,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:za,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ha,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ha}}}}}},Ka=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ya={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...En},Xa={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ji),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",Yi),t}},Qa=()=>{const e=dt(Xa);return{predicates:{...t,isStringElement:zr},namespace:e}},ec=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Za}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:Qa,visitorOptions:{keyMap:Ya,nodeTypeGetter:Ka}})},tc=e=>(t,s={})=>ec(t,{specPath:e,...s});Ji.refract=tc(["visitors","document","objects","JSONSchema","$visitor"]),Wi.refract=tc(["visitors","document","objects","JSONReference","$visitor"]),Zi.refract=tc(["visitors","document","objects","Media","$visitor"]),Yi.refract=tc(["visitors","document","objects","LinkDescription","$visitor"]);const sc=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Vi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Vi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Vi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Vi("$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 Vi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Vi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Vi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Vi("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 Vi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Vi("definitions setter in Schema class is not not supported.")}get base(){throw new Vi("base getter in Schema class is not not supported.")}set base(e){throw new Vi("base setter in Schema class is not not supported.")}get links(){throw new Vi("links getter in Schema class is not not supported.")}set links(e){throw new Vi("links setter in Schema class is not not supported.")}get media(){throw new Vi("media getter in Schema class is not not supported.")}set media(e){throw new Vi("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 rc extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const nc=rc;class ic 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 oc=ic;class ac 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 cc=ac;class lc 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 uc=lc;class dc 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 mc=dc;class pc 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 hc=pc;const _c=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=vo(t.meta,e.meta),ln(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=vo(t.attributes,e.attributes))}};const fc=class extends _c{enter(e){return this.element=_n(e),rr}};const gc=class extends _c{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 Wo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Pn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Pn(["visitors",...e],this.specObj):Pn(["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 fc&&(null==r?void 0:r.constructor)===fc?_n(t):(xn(t,r,s),r.element)}};var yc=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?$r(s):s},e}();function vc(e){return function(t){return new yc(e,t)}}const bc=u(T(["take"],vc,(function(e,t){return ve(0,e<0?1/0:e,t)})));const wc=u((function(e,t){return re(bc(e.length,t),e)})),Ec=e=>Xr(e)&&e.hasKey("$ref"),xc=Xr,Sc=Xr,jc=e=>zr(e.key)&&wc("x-",ho(e.key));const Oc=class extends gc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=jc;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(zr(r)&&s.includes(ho(r))&&!this.ignoredFields.includes(ho(r))){const s=this.toRefractedElement([...t,"fixedFields",ho(r)],e),i=new ce.Pr(_n(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(ho(r))||this.element.content.push(_n(n))})),this.copyMetaAndAttributes(e,this.element),rr}};class Pc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Oi,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Oc.prototype.ObjectElement.call(this,e)}}const Tc=Pc;class Ac extends(qo(gc,fc)){StringElement(e){const t=new Si(ho(e));return this.copyMetaAndAttributes(e,t),this.element=t,rr}}const Mc=Ac;const Fc=class extends gc{MemberElement(e){return this.element=_n(e),this.element.classes.push("specification-extension"),rr}};class Nc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new mi,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Rc=Nc;const kc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ic extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ei,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Cc=Ic;class $c extends(qo(Oc,fc)){constructor(e){super(e),this.element=new hi,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Dc=$c;class Lc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new fi,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return(zr(this.element.operationId)||zr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const qc=Lc;const Bc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Uc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Vc=class extends gc{specPath;ignoredFields;fieldPatternPredicate=aa;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=jc;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(ho(t))&&this.fieldPatternPredicate(ho(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(_n(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ho(t))||this.element.content.push(_n(s))})),this.copyMetaAndAttributes(e,this.element),rr}};const Hc=class extends Vc{constructor(e){super(e),this.fieldPatternPredicate=Go}};class Jc extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass)}}const Gc=Jc;class Wc extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Gc,this.specPath=ne(["value"])}}const zc=Wc;class Zc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new cc,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Kc=Zc;const Yc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Xc extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass)}}const Qc=Xc;class el extends(qo(gc,fc)){constructor(e){super(e),this.element=new Qc}ArrayElement(e){return e.forEach((e=>{const t=xc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const tl=el;class sl extends(qo(Oc,fc)){constructor(e){super(e),this.element=new uc,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const rl=sl;class nl extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(nl.primaryClass)}}const il=nl;class ol extends(qo(Hc,fc)){constructor(e){super(e),this.element=new il,this.specPath=ne(["document","objects","ServerVariable"])}}const al=ol;class cl extends(qo(Oc,fc)){constructor(e){super(e),this.element=new yi,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ll=cl;const ul=class extends gc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Fa(e,ne(t),ie))),s=Ua(t)(e);return this.element=this.toRefractedElement(s,e),rr}},dl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kn||e(r)&&t("callback",r)&&s("object",r))),ml=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xn||e(r)&&t("components",r)&&s("object",r))),pl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ei||e(r)&&t("contact",r)&&s("object",r))),hl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oi||e(r)&&t("example",r)&&s("object",r))),_l=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ci||e(r)&&t("externalDocumentation",r)&&s("object",r))),fl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ui||e(r)&&t("header",r)&&s("object",r))),gl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("info",r)&&s("object",r))),yl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hi||e(r)&&t("license",r)&&s("object",r))),vl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fi||e(r)&&t("link",r)&&s("object",r))),bl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Si||e(r)&&t("openapi",r)&&s("string",r))),wl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Oi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),El=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ti||e(r)&&t("operation",r)&&s("object",r))),xl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("parameter",r)&&s("object",r))),Sl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ni||e(r)&&t("pathItem",r)&&s("object",r))),jl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ki||e(r)&&t("paths",r)&&s("object",r))),Ol=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("reference",r)&&s("object",r))),Pl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Di||e(r)&&t("requestBody",r)&&s("object",r))),Tl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("response",r)&&s("object",r))),Al=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("responses",r)&&s("object",r))),Ml=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sc||e(r)&&t("schema",r)&&s("object",r))),Fl=e=>Yr(e)&&e.classes.includes("boolean-json-schema"),Nl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nc||e(r)&&t("securityRequirement",r)&&s("object",r))),Rl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oc||e(r)&&t("securityScheme",r)&&s("object",r))),kl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof cc||e(r)&&t("server",r)&&s("object",r))),Il=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof uc||e(r)&&t("serverVariable",r)&&s("object",r))),Cl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yi||e(r)&&t("mediaType",r)&&s("object",r))),$l=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Qc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Dl extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Ll=Dl;class ql extends(qo(Hc,fc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Bl=ql;class Ul extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ul.primaryClass),this.classes.push("examples")}}const Vl=Ul;const Hl=class extends Bl{constructor(e){super(e),this.element=new Vl}};class Jl extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Jl.primaryClass)}}const Gl=Jl;class Wl extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Gl,this.specPath=ne(["document","objects","Encoding"])}}const zl=Wl;class Zl extends(qo(Hc,fc)){constructor(e){super(e),this.element=new nc,this.specPath=ne(["value"])}}const Kl=Zl;class Yl extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Yl.primaryClass)}}const Xl=Yl;class Ql extends(qo(gc,fc)){constructor(e){super(e),this.element=new Xl}ArrayElement(e){return e.forEach((e=>{if(Xr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(_n(e))})),this.copyMetaAndAttributes(e,this.element),rr}}const eu=Ql;class tu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Xn,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const su=tu;class ru extends(qo(Oc,fc)){constructor(e){super(e),this.element=new mc,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const nu=ru;class iu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ci,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ou=iu;const au=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class cu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Mi,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.contentProp)&&this.element.contentProp.filter(Cl).forEach(((e,t)=>{e.setMetaProperty("media-type",ho(t))})),t}}const lu=cu;class uu extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const du=uu;class mu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const pu=mu;class hu extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const _u=hu;class fu extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(fu.primaryClass),this.classes.push("examples")}}const gu=fu;const yu=class extends Bl{constructor(e){super(e),this.element=new gu}};class vu extends(qo(Hc,fc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const bu=vu;class wu extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(wu.primaryClass),this.classes.push("content")}}const Eu=wu;const xu=class extends bu{constructor(e){super(e),this.element=new Eu}};class Su extends(qo(Oc,fc)){constructor(e){super(e),this.element=new sc,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ju=Su,Ou=Za.visitors.document.objects.JSONSchema.fixedFields.allOf;const Pu=class extends Ou{ArrayElement(e){const t=Ou.prototype.ArrayElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Tu=Za.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Au=class extends Tu{ArrayElement(e){const t=Tu.prototype.ArrayElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Mu=Za.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Fu=class extends Mu{ArrayElement(e){const t=Mu.prototype.ArrayElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Nu=Za.visitors.document.objects.JSONSchema.fixedFields.items;const Ru=class extends Nu{ObjectElement(e){const t=Nu.prototype.ObjectElement.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},ku=Za.visitors.document.objects.JSONSchema.fixedFields.properties;const Iu=class extends ku{ObjectElement(e){const t=ku.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Cu=Za.visitors.document.objects.JSONSchema.fixedFields.type;const $u=class extends Cu{ArrayElement(e){return this.enter(e)}},Du=Za.visitors.JSONSchemaOrJSONReferenceVisitor;const Lu=class extends Du{ObjectElement(e){const t=Du.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class qu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new si,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Bu=qu;class Uu extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Uu.primaryClass)}}const Vu=Uu;class Hu extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Vu,this.specPath=ne(["value"])}}const Ju=Hu;class Gu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new hc,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Wu=Gu;class zu extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass),this.classes.push("examples")}}const Zu=zu;const Ku=class extends Bl{constructor(e){super(e),this.element=new Zu}};class Yu extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass),this.classes.push("content")}}const Xu=Yu;const Qu=class extends bu{constructor(e){super(e),this.element=new Xu}};class ed extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(ed.primaryClass)}}const td=ed;class sd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new td,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const rd=sd;class nd extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(nd.primaryClass)}}const id=nd;class od extends(qo(Hc,fc)){constructor(e){super(e),this.element=new id,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ho(t))})),t}}const ad=od;class cd extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(cd.primaryClass),this.classes.push("parameters")}}const ld=cd;class ud extends(qo(Hc,fc)){constructor(e){super(e),this.element=new ld,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const dd=ud;class md extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(md.primaryClass),this.classes.push("examples")}}const pd=md;class hd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new pd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const _d=hd;class fd extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(fd.primaryClass)}}const gd=fd;class yd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new gd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const vd=yd;class bd extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(bd.primaryClass)}}const wd=bd;class Ed extends(qo(Hc,fc)){constructor(e){super(e),this.element=new wd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(fl).forEach(((e,t)=>{e.setMetaProperty("header-name",ho(t))})),t}}const xd=Ed;class Sd extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Sd.primaryClass)}}const jd=Sd;class Od extends(qo(Hc,fc)){constructor(e){super(e),this.element=new jd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Pd=Od;class Td extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Td.primaryClass)}}const Ad=Td;class Md extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Ad,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Fd=Md;class Nd extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Nd.primaryClass)}}const Rd=Nd;class kd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Rd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Id=kd;class Cd extends(qo(Oc,fc)){constructor(e){super(e),this.element=new oi,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return zr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const $d=Cd;const Dd=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ld extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ci,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const qd=Ld;class Bd extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ni,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.headers)&&this.element.headers.filter(fl).forEach(((e,t)=>{e.setMetaProperty("header-name",ho(t))})),t}}const Ud=Bd;class Vd extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Vd.primaryClass)}}const Hd=Vd;class Jd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Hd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!fl(e))return;const s=ho(t);e.setMetaProperty("headerName",s)})),t}}const Gd=Jd;class Wd extends(qo(Vc,fc)){constructor(e){super(e),this.element=new ki,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=oo}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(Sl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",_n(t))})),t}}const zd=Wd;class Zd extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Di,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.contentProp)&&this.element.contentProp.filter(Cl).forEach(((e,t)=>{e.setMetaProperty("media-type",ho(t))})),t}}const Kd=Zd;class Yd extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Yd.primaryClass),this.classes.push("content")}}const Xd=Yd;const Qd=class extends bu{constructor(e){super(e),this.element=new Xd}};class em extends(qo(Vc,fc)){constructor(e){super(e),this.element=new Kn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Sl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ho(t))})),t}}const tm=em;class sm extends(qo(Oc,fc)){constructor(e){super(e),this.element=new qi,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.contentProp)&&this.element.contentProp.filter(Cl).forEach(((e,t)=>{e.setMetaProperty("media-type",ho(t))})),Xr(this.element.headers)&&this.element.headers.filter(fl).forEach(((e,t)=>{e.setMetaProperty("header-name",ho(t))})),t}}const rm=sm;class nm extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(nm.primaryClass)}}const im=nm;class om extends(qo(Hc,fc)){constructor(e){super(e),this.element=new im,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!fl(e))return;const s=ho(t);e.setMetaProperty("header-name",s)})),t}}const am=om;class cm extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(cm.primaryClass),this.classes.push("content")}}const lm=cm;const um=class extends bu{constructor(e){super(e),this.element=new lm}};class dm extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(dm.primaryClass)}}const mm=dm;class pm extends(qo(Hc,fc)){constructor(e){super(e),this.element=new mm,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const hm=pm;function _m(e){return"[object Number]"===Object.prototype.toString.call(e)}const fm=u((function(e,t){if(!_m(e)||!_m(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 gm(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?!!Se(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?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const ym=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!gm(e,!0,this)},e.prototype.has=function(e){return gm(e,!1,this)},e}();const vm=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new ym,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 bm extends(qo(Oc,Vc)){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,...vm(e.keys(),t)],Oc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Vc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return rr}}const wm=bm;class Em extends(qo(wm,fc)){constructor(e){super(e),this.element=new Ui,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${fm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=wm.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tl).forEach(((e,t)=>{const s=_n(t);this.fieldPatternPredicate(ho(s))&&e.setMetaProperty("http-status-code",s)})),t}}const xm=Em;class Sm extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)?this.element.setMetaProperty("referenced-element","response"):Tl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const jm=Sm;class Om extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ti,this.specPath=ne(["document","objects","Operation"])}}const Pm=Om;class Tm extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Tm.primaryClass)}}const Am=Tm;const Mm=class extends fc{constructor(e){super(e),this.element=new Am}ArrayElement(e){return this.element=this.element.concat(_n(e)),rr}};class Fm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Fm.primaryClass),this.classes.push("parameters")}}const Nm=Fm;class Rm extends(qo(gc,fc)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Ec(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ol(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const km=Rm;const Im=class extends km{constructor(e){super(e),this.element=new Nm}};const Cm=class extends ul{constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class $m extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push($m.primaryClass)}}const Dm=$m;class Lm extends(qo(Hc,fc)){specPath;constructor(e){super(e),this.element=new Dm,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const qm=Lm;class Bm extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Bm.primaryClass),this.classes.push("security")}}const Um=Bm;class Vm extends(qo(gc,fc)){constructor(e){super(e),this.element=new Um}ArrayElement(e){return e.forEach((e=>{const t=Xr(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const Hm=Vm;class Jm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jm.primaryClass),this.classes.push("servers")}}const Gm=Jm;const Wm=class extends tl{constructor(e){super(e),this.element=new Gm}};class zm extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ni,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return this.element.filter(El).forEach(((e,t)=>{const s=_n(t);s.content=ho(s).toUpperCase(),e.setMetaProperty("http-method",s)})),zr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Zm=zm;const Km=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ym extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ym.primaryClass),this.classes.push("servers")}}const Xm=Ym;const Qm=class extends tl{constructor(e){super(e),this.element=new Xm}};class ep extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ep.primaryClass),this.classes.push("parameters")}}const tp=ep;const sp=class extends km{constructor(e){super(e),this.element=new tp}};class rp extends(qo(Oc,fc)){constructor(e){super(e),this.element=new oc,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const np=rp;class ip extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ei,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const op=ip;class ap extends(qo(Oc,fc)){constructor(e){super(e),this.element=new bi,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const cp=ap;class lp extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(lp.primaryClass)}}const up=lp;class dp extends(qo(Hc,fc)){constructor(e){super(e),this.element=new up,this.specPath=ne(["value"])}}const mp=dp;class pp extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(pp.primaryClass)}}const hp=pp;class _p extends(qo(gc,fc)){constructor(e){super(e),this.element=new hp}ArrayElement(e){return e.forEach((e=>{const t=Sc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const fp=_p,{fixedFields:gp}=Za.visitors.document.objects.JSONSchema,yp={visitors:{value:fc,document:{objects:{OpenApi:{$visitor:Tc,fixedFields:{openapi:Mc,info:{$ref:"#/visitors/document/objects/Info"},servers:tl,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:eu,tags:fp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Rc,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:kc}},Contact:{$visitor:Cc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Dc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Kc,fixedFields:{url:Yc,description:{$ref:"#/visitors/value"},variables:al}},ServerVariable:{$visitor:rl,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:su,fixedFields:{schemas:rd,responses:ad,parameters:dd,examples:_d,requestBodies:vd,headers:xd,securitySchemes:Pd,links:Fd,callbacks:Id}},Paths:{$visitor:zd},PathItem:{$visitor:Zm,fixedFields:{$ref:Km,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:sp}},Operation:{$visitor:Pm,fixedFields:{tags:Mm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Im,requestBody:Cm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qm,deprecated:{$ref:"#/visitors/value"},security:Hm,servers:Wm}},ExternalDocumentation:{$visitor:qd,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:lu,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:du,example:{$ref:"#/visitors/value"},examples:Ku,content:Qu}},RequestBody:{$visitor:Kd,fixedFields:{description:{$ref:"#/visitors/value"},content:Qd,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ll,fixedFields:{schema:Ll,example:{$ref:"#/visitors/value"},examples:Hl,encoding:zl}},Encoding:{$visitor:Ud,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Gd,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:xm,fixedFields:{default:jm}},Response:{$visitor:rm,fixedFields:{description:{$ref:"#/visitors/value"},headers:am,content:um,links:hm}},Callback:{$visitor:tm},Example:{$visitor:$d,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Dd}},Link:{$visitor:qc,fixedFields:{operationRef:Bc,operationId:Uc,parameters:zc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pu,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:_u,example:{$ref:"#/visitors/value"},examples:yu,content:xu}},Tag:{$visitor:nu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ou,fixedFields:{$ref:au}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ju,fixedFields:{title:gp.title,multipleOf:gp.multipleOf,maximum:gp.maximum,exclusiveMaximum:gp.exclusiveMaximum,minimum:gp.minimum,exclusiveMinimum:gp.exclusiveMinimum,maxLength:gp.maxLength,minLength:gp.minLength,pattern:gp.pattern,maxItems:gp.maxItems,minItems:gp.minItems,uniqueItems:gp.uniqueItems,maxProperties:gp.maxProperties,minProperties:gp.minProperties,required:gp.required,enum:gp.enum,type:$u,allOf:Pu,anyOf:Au,oneOf:Fu,not:Lu,items:Ru,properties:Iu,additionalProperties:Lu,description:gp.description,format:gp.format,default:gp.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:Bu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ju}},XML:{$visitor:Wu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:np,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:op,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:cp,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:mp}},SecurityRequirement:{$visitor:Kl}},extension:{$visitor:Fc}}}},vp=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},bp={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"],...En},wp={namespace:e=>{const{base:t}=e;return t.register("callback",Kn),t.register("components",Xn),t.register("contact",ei),t.register("discriminator",si),t.register("encoding",ni),t.register("example",oi),t.register("externalDocumentation",ci),t.register("header",ui),t.register("info",mi),t.register("license",hi),t.register("link",fi),t.register("mediaType",yi),t.register("oAuthFlow",bi),t.register("oAuthFlows",Ei),t.register("openapi",Si),t.register("openApi3_0",Oi),t.register("operation",Ti),t.register("parameter",Mi),t.register("pathItem",Ni),t.register("paths",ki),t.register("reference",Ci),t.register("requestBody",Di),t.register("response",qi),t.register("responses",Ui),t.register("schema",sc),t.register("securityRequirement",nc),t.register("securityScheme",oc),t.register("server",cc),t.register("serverVariable",uc),t.register("tag",mc),t.register("xml",hc),t}},Ep=()=>{const e=dt(wp);return{predicates:{...s,isElement:Wr,isStringElement:zr,isArrayElement:Qr,isObjectElement:Xr,isMemberElement:en,includesClasses:dn,hasElementSourceMap:ln},namespace:e}},xp=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=io(yp),i=new(Pn(t,n))({specObj:n});return xn(r,i),Ln(i.element,s,{toolboxCreator:Ep,visitorOptions:{keyMap:bp,nodeTypeGetter:vp}})},Sp=e=>(t,s={})=>xp(t,{specPath:e,...s});Kn.refract=Sp(["visitors","document","objects","Callback","$visitor"]),Xn.refract=Sp(["visitors","document","objects","Components","$visitor"]),ei.refract=Sp(["visitors","document","objects","Contact","$visitor"]),oi.refract=Sp(["visitors","document","objects","Example","$visitor"]),si.refract=Sp(["visitors","document","objects","Discriminator","$visitor"]),ni.refract=Sp(["visitors","document","objects","Encoding","$visitor"]),ci.refract=Sp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ui.refract=Sp(["visitors","document","objects","Header","$visitor"]),mi.refract=Sp(["visitors","document","objects","Info","$visitor"]),hi.refract=Sp(["visitors","document","objects","License","$visitor"]),fi.refract=Sp(["visitors","document","objects","Link","$visitor"]),yi.refract=Sp(["visitors","document","objects","MediaType","$visitor"]),bi.refract=Sp(["visitors","document","objects","OAuthFlow","$visitor"]),Ei.refract=Sp(["visitors","document","objects","OAuthFlows","$visitor"]),Si.refract=Sp(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Oi.refract=Sp(["visitors","document","objects","OpenApi","$visitor"]),Ti.refract=Sp(["visitors","document","objects","Operation","$visitor"]),Mi.refract=Sp(["visitors","document","objects","Parameter","$visitor"]),Ni.refract=Sp(["visitors","document","objects","PathItem","$visitor"]),ki.refract=Sp(["visitors","document","objects","Paths","$visitor"]),Ci.refract=Sp(["visitors","document","objects","Reference","$visitor"]),Di.refract=Sp(["visitors","document","objects","RequestBody","$visitor"]),qi.refract=Sp(["visitors","document","objects","Response","$visitor"]),Ui.refract=Sp(["visitors","document","objects","Responses","$visitor"]),sc.refract=Sp(["visitors","document","objects","Schema","$visitor"]),nc.refract=Sp(["visitors","document","objects","SecurityRequirement","$visitor"]),oc.refract=Sp(["visitors","document","objects","SecurityScheme","$visitor"]),cc.refract=Sp(["visitors","document","objects","Server","$visitor"]),uc.refract=Sp(["visitors","document","objects","ServerVariable","$visitor"]),mc.refract=Sp(["visitors","document","objects","Tag","$visitor"]),hc.refract=Sp(["visitors","document","objects","XML","$visitor"]);const jp=class extends Kn{};const Op=class extends Xn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Pp=class extends ei{};const Tp=class extends si{};const Ap=class extends ni{};const Mp=class extends oi{};const Fp=class extends ci{};const Np=class extends ui{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Rp=class extends mi{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 kp extends ce.Om{static default=new kp("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Ip=kp;const Cp=class extends hi{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const $p=class extends fi{};const Dp=class extends yi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Lp=class extends bi{};const qp=class extends Ei{};const Bp=class extends Si{};class Up 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 Vp=Up;const Hp=class extends Ti{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Jp=class extends Mi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Gp=class extends Ni{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 Wp=class extends ki{};class zp extends Ci{}Object.defineProperty(zp.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(zp.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Zp=zp;const Kp=class extends Di{};const Yp=class extends qi{};const Xp=class extends Ui{};const Qp=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Vi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Vi("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 eh=class extends Yi{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 Vi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Vi("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 Vi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Vi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Vi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Vi("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 th=d((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!Qi(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:p(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(p(e)&&w(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 sh=th;const rh=d((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var nh=d((function(e,t,s){return sh([e],t,s)}));const ih=nh;var oh=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(p(e)&&w(t))return rh(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(p(e)&&w(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):ih(r,e(n,s[r]),s)}}));const ah=oh;const ch=class extends sa{constructor(e){super(e),this.element=new Qp}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 lh=class extends ia{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rr}};const uh=class extends wo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const dh=class extends za{constructor(e){super(e),this.element=new eh}},mh=we(sh(["visitors","document","objects","JSONSchema","$visitor"],ch),ah(["visitors","document","objects","JSONSchema","fixedFields","id"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$id"],Za.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","items"],lh),sh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","const"],Za.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","examples"],uh),sh(["visitors","document","objects","LinkDescription","$visitor"],dh),sh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","LinkDescription","fixedFields","schema"]),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","LinkDescription","fixedFields","method"]),ah(["visitors","document","objects","LinkDescription","fixedFields","encType"]),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Za.visitors.value))(Za),ph={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...En},hh=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qp||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),_h=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof eh||e(r)&&t("linkDescription",r)&&s("object",r))),fh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Qp),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",eh),t}},gh=()=>{const e=dt(fh);return{predicates:{...r,isStringElement:zr},namespace:e}},yh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=mh}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:gh,visitorOptions:{keyMap:ph,nodeTypeGetter:Ka}})},vh=e=>(t,s={})=>yh(t,{specPath:e,...s});Qp.refract=vh(["visitors","document","objects","JSONSchema","$visitor"]),eh.refract=vh(["visitors","document","objects","LinkDescription","$visitor"]);const bh=class extends Qp{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 Vi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Vi('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 wh=class extends eh{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 Vi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Vi("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 Vi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Vi("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 Eh=class extends ch{constructor(e){super(e),this.element=new bh}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const xh=class extends dh{constructor(e){super(e),this.element=new wh}},Sh=we(sh(["visitors","document","objects","JSONSchema","$visitor"],Eh),sh(["visitors","document","objects","JSONSchema","fixedFields","$comment"],mh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","if"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","then"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","else"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","JSONSchema","fixedFields","media"]),sh(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],mh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],mh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","$visitor"],xh),sh(["visitors","document","objects","LinkDescription","fixedFields","anchor"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],mh.visitors.value),ah(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),sh(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","description"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","$comment"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],mh.visitors.value))(mh),jh={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...En},Oh=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),Ph=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wh||e(r)&&t("linkDescription",r)&&s("object",r))),Th={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",bh),t.register("jSONReference",Wi),t.register("linkDescription",wh),t}},Ah=()=>{const e=dt(Th);return{predicates:{...n,isStringElement:zr},namespace:e}},Mh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Sh}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:Ah,visitorOptions:{keyMap:jh,nodeTypeGetter:Ka}})},Fh=e=>(t,s={})=>Mh(t,{specPath:e,...s});bh.refract=Fh(["visitors","document","objects","JSONSchema","$visitor"]),wh.refract=Fh(["visitors","document","objects","LinkDescription","$visitor"]);const Nh=class extends bh{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 Vi("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Vi("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 Vi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Vi("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 Rh=class extends wh{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 kh=class extends Eh{constructor(e){super(e),this.element=new Nh}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=Zo.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Ih=class extends wo{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ch=class extends wo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class $h extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Dh=$h;class Lh extends(qo(zo,Ko,wo)){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),rr}}const qh=Lh;class Bh extends(qo(zo,Ko,wo)){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),rr}}const Uh=Bh;class Vh extends(qo(zo,Ko,wo)){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),rr}}const Hh=Vh;class Jh extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Gh=Jh;class Wh extends(qo(zo,Ko,wo)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rr}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),rr}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rr}}const zh=Wh;class Zh extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Kh=Zh;class Yh extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Xh=Yh;const Qh=class extends wo{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const e_=class extends xh{constructor(e){super(e),this.element=new Rh}},t_=we(sh(["visitors","document","objects","JSONSchema","$visitor"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Ih),sh(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Sh.visitors.value),ah(["visitors","document","objects","JSONReference","$visitor"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Ch),ah(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Dh),sh(["visitors","document","objects","JSONSchema","fixedFields","allOf"],qh),sh(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Uh),sh(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Hh),sh(["visitors","document","objects","JSONSchema","fixedFields","not"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","if"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","then"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","else"],kh),ah(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),sh(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Gh),sh(["visitors","document","objects","JSONSchema","fixedFields","items"],zh),sh(["visitors","document","objects","JSONSchema","fixedFields","contains"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","properties"],Kh),sh(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Xh),sh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Qh),sh(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],kh),sh(["visitors","document","objects","LinkDescription","$visitor"],e_),sh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],kh),sh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],kh),sh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],kh),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],kh))(Sh),s_={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...En},r_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nh||e(r)&&t("JSONSchema201909",r)&&s("object",r))),n_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rh||e(r)&&t("linkDescription",r)&&s("object",r))),i_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Nh),t.register("linkDescription",Rh),t}},o_=()=>{const e=dt(i_);return{predicates:{...i,isStringElement:zr},namespace:e}},a_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=t_}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:o_,visitorOptions:{keyMap:s_,nodeTypeGetter:Ka}})},c_=e=>(t,s={})=>a_(t,{specPath:e,...s});Nh.refract=c_(["visitors","document","objects","JSONSchema","$visitor"]),Rh.refract=c_(["visitors","document","objects","LinkDescription","$visitor"]);const l_=class extends Nh{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 Vi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Vi("$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 Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const u_=class extends Rh{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 d_=class extends kh{constructor(e){super(e),this.element=new l_}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class m_ extends(qo(zo,Ko,wo)){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),rr}}const p_=m_;const h_=class extends e_{constructor(e){super(e),this.element=new u_}},__=we(sh(["visitors","document","objects","JSONSchema","$visitor"],d_),ah(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],t_.visitors.value),ah(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],t_.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","not"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","if"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","then"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","else"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],p_),sh(["visitors","document","objects","JSONSchema","fixedFields","items"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","contains"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],d_),ah(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),sh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],d_),sh(["visitors","document","objects","LinkDescription","$visitor"],h_),sh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],d_),sh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],d_),sh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],d_),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],d_))(t_),f_={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...En},g_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof l_||e(r)&&t("JSONSchema202012",r)&&s("object",r))),y_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof u_||e(r)&&t("linkDescription",r)&&s("object",r))),v_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",l_),t.register("linkDescription",u_),t}},b_=()=>{const e=dt(v_);return{predicates:{...o,isStringElement:zr},namespace:e}},w_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=__}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:b_,visitorOptions:{keyMap:f_,nodeTypeGetter:Ka}})},E_=e=>(t,s={})=>w_(t,{specPath:e,...s});l_.refract=E_(["visitors","document","objects","JSONSchema","$visitor"]),u_.refract=E_(["visitors","document","objects","LinkDescription","$visitor"]);const x_=class extends l_{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 S_=class extends nc{};const j_=class extends oc{};const O_=class extends cc{};const P_=class extends uc{};const T_=class extends mc{};const A_=class extends hc{};class M_ extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Vp,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Oc.prototype.ObjectElement.call(this,e)}}const F_=M_,N_=yp.visitors.document.objects.Info.$visitor;const R_=class extends N_{constructor(e){super(e),this.element=new Rp}},k_=yp.visitors.document.objects.Contact.$visitor;const I_=class extends k_{constructor(e){super(e),this.element=new Pp}},C_=yp.visitors.document.objects.License.$visitor;const $_=class extends C_{constructor(e){super(e),this.element=new Cp}},D_=yp.visitors.document.objects.Link.$visitor;const L_=class extends D_{constructor(e){super(e),this.element=new $p}};class q_ extends(qo(gc,fc)){StringElement(e){const t=new Ip(ho(e));return this.copyMetaAndAttributes(e,t),this.element=t,rr}}const B_=q_,U_=yp.visitors.document.objects.Server.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new O_}},H_=yp.visitors.document.objects.ServerVariable.$visitor;const J_=class extends H_{constructor(e){super(e),this.element=new P_}},G_=yp.visitors.document.objects.MediaType.$visitor;const W_=class extends G_{constructor(e){super(e),this.element=new Dp}},z_=yp.visitors.document.objects.SecurityRequirement.$visitor;const Z_=class extends z_{constructor(e){super(e),this.element=new S_}},K_=yp.visitors.document.objects.Components.$visitor;const Y_=class extends K_{constructor(e){super(e),this.element=new Op}},X_=yp.visitors.document.objects.Tag.$visitor;const Q_=class extends X_{constructor(e){super(e),this.element=new T_}},ef=yp.visitors.document.objects.Reference.$visitor;const tf=class extends ef{constructor(e){super(e),this.element=new Zp}},sf=yp.visitors.document.objects.Parameter.$visitor;const rf=class extends sf{constructor(e){super(e),this.element=new Jp}},nf=yp.visitors.document.objects.Header.$visitor;const of=class extends nf{constructor(e){super(e),this.element=new Np}},af=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jp||e(r)&&t("callback",r)&&s("object",r))),cf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("components",r)&&s("object",r))),lf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pp||e(r)&&t("contact",r)&&s("object",r))),uf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mp||e(r)&&t("example",r)&&s("object",r))),df=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fp||e(r)&&t("externalDocumentation",r)&&s("object",r))),mf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Np||e(r)&&t("header",r)&&s("object",r))),pf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rp||e(r)&&t("info",r)&&s("object",r))),hf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ip||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),_f=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cp||e(r)&&t("license",r)&&s("object",r))),ff=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $p||e(r)&&t("link",r)&&s("object",r))),gf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bp||e(r)&&t("openapi",r)&&s("string",r))),yf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Vp||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),vf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hp||e(r)&&t("operation",r)&&s("object",r))),bf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jp||e(r)&&t("parameter",r)&&s("object",r))),wf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gp||e(r)&&t("pathItem",r)&&s("object",r))),Ef=e=>{if(!wf(e))return!1;if(!zr(e.$ref))return!1;const t=ho(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wp||e(r)&&t("paths",r)&&s("object",r))),Sf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zp||e(r)&&t("reference",r)&&s("object",r))),jf=e=>{if(!Sf(e))return!1;if(!zr(e.$ref))return!1;const t=ho(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Of=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kp||e(r)&&t("requestBody",r)&&s("object",r))),Pf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yp||e(r)&&t("response",r)&&s("object",r))),Tf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xp||e(r)&&t("responses",r)&&s("object",r))),Af=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof x_||e(r)&&t("schema",r)&&s("object",r))),Mf=e=>Yr(e)&&e.classes.includes("boolean-json-schema"),Ff=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof S_||e(r)&&t("securityRequirement",r)&&s("object",r))),Nf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof j_||e(r)&&t("securityScheme",r)&&s("object",r))),Rf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof O_||e(r)&&t("server",r)&&s("object",r))),kf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof P_||e(r)&&t("serverVariable",r)&&s("object",r))),If=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dp||e(r)&&t("mediaType",r)&&s("object",r)));class Cf extends(qo(Oc,Ko,fc)){constructor(e){super(e),this.element=new x_,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ip.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Oc.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return d_.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&hf(this.openApiSemanticElement.jsonSchemaDialect)?ho(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&zr(this.openApiGenericElement.get("jsonSchemaDialect"))?ho(this.openApiGenericElement.get("jsonSchemaDialect")):ho(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return d_.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return d_.prototype.handleSchemaIdentifier.call(this,e)}}const $f=Cf;const Df=class extends Dh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Lf=class extends qh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const qf=class extends Uh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Bf=class extends Hh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Uf=class extends Gh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Vf=class extends p_{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Hf=class extends Kh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Jf=class extends Xh{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Gf=yp.visitors.document.objects.Discriminator.$visitor;const Wf=class extends Gf{constructor(e){super(e),this.element=new Tp,this.canSupportSpecificationExtensions=!0}},zf=yp.visitors.document.objects.XML.$visitor;const Zf=class extends zf{constructor(e){super(e),this.element=new A_}};class Kf extends(qo(Hc,fc)){constructor(e){super(e),this.element=new td,this.specPath=ne(["document","objects","Schema"])}}const Yf=Kf;class Xf extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Xf.primaryClass)}}const Qf=Xf;class eg extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Qf,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Sf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const tg=eg,sg=yp.visitors.document.objects.Example.$visitor;const rg=class extends sg{constructor(e){super(e),this.element=new Mp}},ng=yp.visitors.document.objects.ExternalDocumentation.$visitor;const ig=class extends ng{constructor(e){super(e),this.element=new Fp}},og=yp.visitors.document.objects.Encoding.$visitor;const ag=class extends og{constructor(e){super(e),this.element=new Ap}},cg=yp.visitors.document.objects.Paths.$visitor;const lg=class extends cg{constructor(e){super(e),this.element=new Wp}},ug=yp.visitors.document.objects.RequestBody.$visitor;const dg=class extends ug{constructor(e){super(e),this.element=new Kp}},mg=yp.visitors.document.objects.Callback.$visitor;const pg=class extends mg{constructor(e){super(e),this.element=new jp,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=mg.prototype.ObjectElement.call(this,e);return this.element.filter(Sf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},hg=yp.visitors.document.objects.Response.$visitor;const _g=class extends hg{constructor(e){super(e),this.element=new Yp}},fg=yp.visitors.document.objects.Responses.$visitor;const gg=class extends fg{constructor(e){super(e),this.element=new Xp}},yg=yp.visitors.document.objects.Operation.$visitor;const vg=class extends yg{constructor(e){super(e),this.element=new Hp}},bg=yp.visitors.document.objects.PathItem.$visitor;const wg=class extends bg{constructor(e){super(e),this.element=new Gp}},Eg=yp.visitors.document.objects.SecurityScheme.$visitor;const xg=class extends Eg{constructor(e){super(e),this.element=new j_}},Sg=yp.visitors.document.objects.OAuthFlows.$visitor;const jg=class extends Sg{constructor(e){super(e),this.element=new qp}},Og=yp.visitors.document.objects.OAuthFlow.$visitor;const Pg=class extends Og{constructor(e){super(e),this.element=new Lp}};class Tg extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Tg.primaryClass)}}const Ag=Tg;class Mg extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Ag,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Sf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(wf).forEach(((e,t)=>{e.setMetaProperty("webhook-name",ho(t))})),t}}const Fg=Mg,{JSONSchema:Ng,LinkDescription:Rg}=__.visitors.document.objects,kg={visitors:{value:yp.visitors.value,document:{objects:{OpenApi:{$visitor:F_,fixedFields:{openapi:yp.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:B_,servers:yp.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Fg,components:{$ref:"#/visitors/document/objects/Components"},security:yp.visitors.document.objects.OpenApi.fixedFields.security,tags:yp.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:R_,fixedFields:{title:yp.visitors.document.objects.Info.fixedFields.title,description:yp.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:yp.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:yp.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:I_,fixedFields:{name:yp.visitors.document.objects.Contact.fixedFields.name,url:yp.visitors.document.objects.Contact.fixedFields.url,email:yp.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:$_,fixedFields:{name:yp.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:yp.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:V_,fixedFields:{url:yp.visitors.document.objects.Server.fixedFields.url,description:yp.visitors.document.objects.Server.fixedFields.description,variables:yp.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:J_,fixedFields:{enum:yp.visitors.document.objects.ServerVariable.fixedFields.enum,default:yp.visitors.document.objects.ServerVariable.fixedFields.default,description:yp.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Y_,fixedFields:{schemas:Yf,responses:yp.visitors.document.objects.Components.fixedFields.responses,parameters:yp.visitors.document.objects.Components.fixedFields.parameters,examples:yp.visitors.document.objects.Components.fixedFields.examples,requestBodies:yp.visitors.document.objects.Components.fixedFields.requestBodies,headers:yp.visitors.document.objects.Components.fixedFields.headers,securitySchemes:yp.visitors.document.objects.Components.fixedFields.securitySchemes,links:yp.visitors.document.objects.Components.fixedFields.links,callbacks:yp.visitors.document.objects.Components.fixedFields.callbacks,pathItems:tg}},Paths:{$visitor:lg},PathItem:{$visitor:wg,fixedFields:{$ref:yp.visitors.document.objects.PathItem.fixedFields.$ref,summary:yp.visitors.document.objects.PathItem.fixedFields.summary,description:yp.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:yp.visitors.document.objects.PathItem.fixedFields.servers,parameters:yp.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:vg,fixedFields:{tags:yp.visitors.document.objects.Operation.fixedFields.tags,summary:yp.visitors.document.objects.Operation.fixedFields.summary,description:yp.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:yp.visitors.document.objects.Operation.fixedFields.operationId,parameters:yp.visitors.document.objects.Operation.fixedFields.parameters,requestBody:yp.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:yp.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:yp.visitors.document.objects.Operation.fixedFields.deprecated,security:yp.visitors.document.objects.Operation.fixedFields.security,servers:yp.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:ig,fixedFields:{description:yp.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:yp.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:rf,fixedFields:{name:yp.visitors.document.objects.Parameter.fixedFields.name,in:yp.visitors.document.objects.Parameter.fixedFields.in,description:yp.visitors.document.objects.Parameter.fixedFields.description,required:yp.visitors.document.objects.Parameter.fixedFields.required,deprecated:yp.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:yp.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:yp.visitors.document.objects.Parameter.fixedFields.style,explode:yp.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:yp.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:yp.visitors.document.objects.Parameter.fixedFields.example,examples:yp.visitors.document.objects.Parameter.fixedFields.examples,content:yp.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:dg,fixedFields:{description:yp.visitors.document.objects.RequestBody.fixedFields.description,content:yp.visitors.document.objects.RequestBody.fixedFields.content,required:yp.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:W_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:yp.visitors.document.objects.MediaType.fixedFields.example,examples:yp.visitors.document.objects.MediaType.fixedFields.examples,encoding:yp.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:ag,fixedFields:{contentType:yp.visitors.document.objects.Encoding.fixedFields.contentType,headers:yp.visitors.document.objects.Encoding.fixedFields.headers,style:yp.visitors.document.objects.Encoding.fixedFields.style,explode:yp.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:yp.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:gg,fixedFields:{default:yp.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:_g,fixedFields:{description:yp.visitors.document.objects.Response.fixedFields.description,headers:yp.visitors.document.objects.Response.fixedFields.headers,content:yp.visitors.document.objects.Response.fixedFields.content,links:yp.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:pg},Example:{$visitor:rg,fixedFields:{summary:yp.visitors.document.objects.Example.fixedFields.summary,description:yp.visitors.document.objects.Example.fixedFields.description,value:yp.visitors.document.objects.Example.fixedFields.value,externalValue:yp.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:L_,fixedFields:{operationRef:yp.visitors.document.objects.Link.fixedFields.operationRef,operationId:yp.visitors.document.objects.Link.fixedFields.operationId,parameters:yp.visitors.document.objects.Link.fixedFields.parameters,requestBody:yp.visitors.document.objects.Link.fixedFields.requestBody,description:yp.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:of,fixedFields:{description:yp.visitors.document.objects.Header.fixedFields.description,required:yp.visitors.document.objects.Header.fixedFields.required,deprecated:yp.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:yp.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:yp.visitors.document.objects.Header.fixedFields.style,explode:yp.visitors.document.objects.Header.fixedFields.explode,allowReserved:yp.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:yp.visitors.document.objects.Header.fixedFields.example,examples:yp.visitors.document.objects.Header.fixedFields.examples,content:yp.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Q_,fixedFields:{name:yp.visitors.document.objects.Tag.fixedFields.name,description:yp.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:tf,fixedFields:{$ref:yp.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Rg},Schema:{$visitor:$f,fixedFields:{...Ng.fixedFields,$defs:Df,allOf:Lf,anyOf:qf,oneOf:Bf,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:Uf,prefixItems:Vf,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Hf,patternProperties:Jf,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:Wf,fixedFields:{propertyName:yp.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:yp.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Zf,fixedFields:{name:yp.visitors.document.objects.XML.fixedFields.name,namespace:yp.visitors.document.objects.XML.fixedFields.namespace,prefix:yp.visitors.document.objects.XML.fixedFields.prefix,attribute:yp.visitors.document.objects.XML.fixedFields.attribute,wrapped:yp.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:xg,fixedFields:{type:yp.visitors.document.objects.SecurityScheme.fixedFields.type,description:yp.visitors.document.objects.SecurityScheme.fixedFields.description,name:yp.visitors.document.objects.SecurityScheme.fixedFields.name,in:yp.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:yp.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:yp.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:yp.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:jg,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:Pg,fixedFields:{authorizationUrl:yp.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:yp.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:yp.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:yp.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Z_}},extension:{$visitor:yp.visitors.document.extension.$visitor}}}},Ig=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Cg={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"],...En},$g=function(){const e=Lg,t=Dg,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,d=0,m=0,p=0,h=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,w)=>{const E=`${r}parse(): `;d=0,m=0,p=0,h=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(`${E}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=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${E}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:p,nodeHits:h}};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 m,p,h;const _=o[t],g=i[_.index];f.UdtIndex=g.index,d||(h=s.ast&&s.ast.udtDefined(_.index),h&&(p=n.length+_.index,m=s.ast.getLength(),s.ast.down(p,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),d||h&&(f.state===e.NOMATCH?s.ast.setLength(m):s.ast.up(p,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(h+=1,m>p&&(p=m),m+=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,m;const p=o[t],h=n[p.index],_=c[h.index];if(d||(l=s.ast&&s.ast.ruleDefined(p.index),l&&(i=s.ast.getLength(),s.ast.down(p.index,n[p.index].name))),_){const t=a.length-r;_(f,a,r,u),g(h,f,t,!0),f.state===e.ACTIVE&&(m=o,o=h.opcodes,v(0,r),o=m,_(f,a,r,u),g(h,f,t,!1))}else m=o,o=h.opcodes,v(0,r,f),o=m;d||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(p.index,h.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(d+=1,v(t+1,s),d-=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(d+=1,v(t+1,s),d-=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`)}d||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),m-=1}},Dg={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)}},Lg={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 Lg.ALT:return"ALT";case Lg.CAT:return"CAT";case Lg.REP:return"REP";case Lg.RNM:return"RNM";case Lg.TRG:return"TRG";case Lg.TBS:return"TBS";case Lg.TLS:return"TLS";case Lg.UDT:return"UDT";case Lg.AND:return"AND";case Lg.NOT:return"NOT";case Lg.ACTIVE:return"ACTIVE";case Lg.EMPTY:return"EMPTY";case Lg.MATCH:return"MATCH";case Lg.NOMATCH:return"NOMATCH";case Lg.SEM_PRE:return"SEM_PRE";case Lg.SEM_POST:return"SEM_POST";case Lg.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function qg(){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 Bg 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 Ug=Bg;new qg;new qg,new $g,new qg,new $g,new qg,new $g,new qg,new $g;const Vg=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 Hg=class extends Ug{},Jg=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 Vg(String(e))})).join("/")}`}catch(t){throw new Hg("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Gg={namespace:e=>{const{base:t}=e;return t.register("callback",jp),t.register("components",Op),t.register("contact",Pp),t.register("discriminator",Tp),t.register("encoding",Ap),t.register("example",Mp),t.register("externalDocumentation",Fp),t.register("header",Np),t.register("info",Rp),t.register("jsonSchemaDialect",Ip),t.register("license",Cp),t.register("link",$p),t.register("mediaType",Dp),t.register("oAuthFlow",Lp),t.register("oAuthFlows",qp),t.register("openapi",Bp),t.register("openApi3_1",Vp),t.register("operation",Hp),t.register("parameter",Jp),t.register("pathItem",Gp),t.register("paths",Wp),t.register("reference",Zp),t.register("requestBody",Kp),t.register("response",Yp),t.register("responses",Xp),t.register("schema",x_),t.register("securityRequirement",S_),t.register("securityScheme",j_),t.register("server",O_),t.register("serverVariable",P_),t.register("tag",T_),t.register("xml",A_),t}},Wg=e=>{const t=e.reduce(((t,s,r)=>{if(en(s)){const e=String(ho(s.key));t.push(e)}else if(Qr(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Jg(t)},zg=()=>{const e=dt(Gg);return{predicates:{...a,isElement:Wr,isStringElement:zr,isArrayElement:Qr,isObjectElement:Xr,isMemberElement:en,isServersElement:$l,includesClasses:dn,hasElementSourceMap:ln},ancestorLineageToJSONPointer:Wg,namespace:e}},Zg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=io(kg),i=new(Pn(t,n))({specObj:n});return xn(r,i),Ln(i.element,s,{toolboxCreator:zg,visitorOptions:{keyMap:Cg,nodeTypeGetter:Ig}})},Kg=e=>(t,s={})=>Zg(t,{specPath:e,...s});jp.refract=Kg(["visitors","document","objects","Callback","$visitor"]),Op.refract=Kg(["visitors","document","objects","Components","$visitor"]),Pp.refract=Kg(["visitors","document","objects","Contact","$visitor"]),Mp.refract=Kg(["visitors","document","objects","Example","$visitor"]),Tp.refract=Kg(["visitors","document","objects","Discriminator","$visitor"]),Ap.refract=Kg(["visitors","document","objects","Encoding","$visitor"]),Fp.refract=Kg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Np.refract=Kg(["visitors","document","objects","Header","$visitor"]),Rp.refract=Kg(["visitors","document","objects","Info","$visitor"]),Ip.refract=Kg(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Cp.refract=Kg(["visitors","document","objects","License","$visitor"]),$p.refract=Kg(["visitors","document","objects","Link","$visitor"]),Dp.refract=Kg(["visitors","document","objects","MediaType","$visitor"]),Lp.refract=Kg(["visitors","document","objects","OAuthFlow","$visitor"]),qp.refract=Kg(["visitors","document","objects","OAuthFlows","$visitor"]),Bp.refract=Kg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Vp.refract=Kg(["visitors","document","objects","OpenApi","$visitor"]),Hp.refract=Kg(["visitors","document","objects","Operation","$visitor"]),Jp.refract=Kg(["visitors","document","objects","Parameter","$visitor"]),Gp.refract=Kg(["visitors","document","objects","PathItem","$visitor"]),Wp.refract=Kg(["visitors","document","objects","Paths","$visitor"]),Zp.refract=Kg(["visitors","document","objects","Reference","$visitor"]),Kp.refract=Kg(["visitors","document","objects","RequestBody","$visitor"]),Yp.refract=Kg(["visitors","document","objects","Response","$visitor"]),Xp.refract=Kg(["visitors","document","objects","Responses","$visitor"]),x_.refract=Kg(["visitors","document","objects","Schema","$visitor"]),S_.refract=Kg(["visitors","document","objects","SecurityRequirement","$visitor"]),j_.refract=Kg(["visitors","document","objects","SecurityScheme","$visitor"]),O_.refract=Kg(["visitors","document","objects","Server","$visitor"]),P_.refract=Kg(["visitors","document","objects","ServerVariable","$visitor"]),T_.refract=Kg(["visitors","document","objects","Tag","$visitor"]),A_.refract=Kg(["visitors","document","objects","XML","$visitor"]);const Yg=l((function(e){return _(-1,e)}));const Xg=class extends Vi{};const Qg=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Xg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Xg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Xg("latest method in MediaTypes class is not yet implemented.")}};class ey extends Qg{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 Yg(this.filterByFormat(e))}}const ty=new ey("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"),sy=new ey(...ty.filterByFormat("generic"),...ty.filterByFormat("yaml")),ry=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,ny=async e=>ry.test(e)&&await(async e=>{try{return!(await St(e)).rootNode.isError}catch{return!1}})(e),iy=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await St(e);return zn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ae(i)){const e=Vp.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},oy=dt(Gg)})(),__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.apidomParserAdapterOpenApiYaml3_1=t():e.apidomParserAdapterOpenApiYaml3_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),d=s(1811),m=s(3999),p=s(3508),h=s(8655),_=s(6625),f=s(2621),g=o.PROPER,y=o.CONFIGURABLE,v=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",j=function(){return this};e.exports=function(e,t,s,o,h,f,O){c(s,t,o);var P,T,A,M=function(e){if(e===h&&I)return I;if(!b&&e&&e in R)return R[e];switch(e){case E:case x:case S:return function(){return new s(this,e)}}return function(){return new s(this)}},F=t+" Iterator",N=!1,R=e.prototype,k=R[w]||R["@@iterator"]||h&&R[h],I=!b&&k||M(h),C="Array"===t&&R.entries||k;if(C&&(P=l(C.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===v||(u?u(P,v):a(P[w])||p(P,w,j)),d(P,F,!0,!0),i&&(_[F]=j)),g&&h===x&&k&&k.name!==x&&(!i&&y?m(R,"name",x):(N=!0,I=function(){return n(k,this)})),h)if(T={values:M(x),keys:f?I:M(E),entries:M(S)},O)for(A in T)(b||N||!(A in R))&&p(R,A,T[A]);else r({target:t,proto:!0,forced:b||N},T);return i&&!O||R[w]===I||p(R,w,I,{name:h}),_[t]=I,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),d=s(967),m=s(1743),p=TypeError,h=function(e,t){this.stopped=e,this.result=t},_=h.prototype;e.exports=function(e,t,s){var f,g,y,v,b,w,E,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&&m(f,"normal",e),new h(!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=d(e)))throw new p(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 h(!1)}f=u(e,g)}for(w=j?e.next:f.next;!(E=n(w,f)).done;){try{b=M(E.value)}catch(e){m(f,"throw",e)}if("object"==typeof b&&b&&l(_,b))return b}return new h(!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),d="[object Arguments]",m="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,s,_,f,g){var y=c(e),v=c(t),b=y?m:a(e),w=v?m:a(t),E=(b=b==d?p:b)==p,x=(w=w==d?p:w)==p,S=b==w;if(S&&l(e)){if(!l(t))return!1;y=!0,E=!1}if(S&&!E)return g||(g=new r),y||u(e)?n(e,t,s,_,f,g):i(e,t,b,s,_,f,g);if(!(1&s)){var j=E&&h.call(e,"__wrapped__"),O=x&&h.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),d=!s&&!u&&o(e),m=!s&&!u&&!d&&c(e),p=s||u||d||m,h=p?r(e.length,String):[],_=h.length;for(var f in e)!t&&!l.call(e,f)||p&&("length"==f||d&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||h.push(f);return h}},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)},d=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)}})),d("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),d("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),d("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 d=u;d--;){var m=l[d];if(!(c?m in t:n.call(t,m)))return!1}var p=a.get(e),h=a.get(t);if(p&&h)return p==t&&h==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++d<u;){var g=e[m=l[d]],y=t[m];if(i)var v=c?i(y,g,m,t,e,a):i(g,y,m,e,t,a);if(!(void 0===v?g===y||o(g,y,s,i,a):v)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var b=e.constructor,w=t.constructor;b==w||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(_=!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),d=s(3508),m=s(8655),p=s(4871),h=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(r=n):_=!0),!c(r)||o((function(){var e={};return r[h].call(e)!==e}))?r={}:p&&(r=l(r)),a(r[h])||d(r,h,(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),d=s(8148),m=s(4279),p=s(208),h=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",h(t)),m(s,y,s.stack,1),arguments.length>2&&d(s,arguments[2]);var a=[];return p(e,g,{that:a}),l(s,"errors",a),s};o?o(y,f):a(y,f,{name:!0});var 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 d=r(),m=0;m<d;++m){var p=n();u.neededDynlibs.push(p)}}else{i("dylink.0"!==o);for(;t<s;){var h=e[t++],_=r();if(1===h)u.memorySize=r(),u.memoryAlign=r(),u.tableSize=r(),u.tableAlign=r();else if(2===h)for(d=r(),m=0;m<d;++m)p=n(),u.neededDynlibs.push(p);else if(3===h)for(var f=r();f--;){var g=n();256&r()&&u.tlsExports.add(g)}else if(4===h)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),d=new Array(o),m=new Array(o),p=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(r,e,TRANSFER_BUFFER),s=getValue(TRANSFER_BUFFER,"i32");m[e]=[],p[e]=[];const n=[];let i=t;for(let t=0;t<s;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const s=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[s]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[s]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let s,r=!0,i=!0;switch(t){case"any-not-eq?":case"not-eq?":r=!1;case"any-eq?":case"eq?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}"`);if(i=!t.startsWith("any-"),"capture"===n[2].type){const t=n[1].name,s=n[2].name;p[e].push((e=>{const n=[],o=[];for(const r of e)r.name===t&&n.push(r.node),r.name===s&&o.push(r.node);const a=(e,t,s)=>s?e.text===t.text:e.text!==t.text;return i?n.every((e=>o.some((t=>a(e,t,r))))):n.some((e=>o.some((t=>a(e,t,r)))))}))}else{s=n[1].name;const t=n[2].value,o=e=>e.text===t,a=e=>e.text!==t;p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node);const n=r?o:a;return i?t.every(n):t.some(n)}))}break;case"any-not-match?":case"not-match?":r=!1;case"any-match?":case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${n[2].value}.`);s=n[1].name;const o=new RegExp(n[2].value);i=!t.startsWith("any-"),p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);const n=(e,t)=>t?o.test(e):!o.test(e);return 0===t.length?!r:i?t.every((e=>n(e,r))):t.some((e=>n(e,r)))}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;case"not-any-of?":r=!1;case"any-of?":if(n.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${n[1].value}".`);for(let e=2;e<n.length;e++)if("string"!==n[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);s=n[1].name;const c=n.slice(2).map((e=>e.value));p[e].push((e=>{const t=[];for(const r of e)r.name===s&&t.push(r.node.text);return 0===t.length?!r:t.every((e=>c.includes(e)))===r}));break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(s),new Query(INTERNAL,r,a,p,m,Object.freeze(l),Object.freeze(u),Object.freeze(d))}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"),d=new Array(c);this.exceededMatchLimit=Boolean(u);let m=0,p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=new Array(s);if(p=unmarshalCaptures(this,e.tree,p,r),this.textPredicates[t].every((e=>e(r)))){d[m]={pattern:t,captures:r};const e=this.setProperties[t];e&&(d[m].setProperties=e);const s=this.assertedProperties[t];s&&(d[m].assertedProperties=s);const n=this.refutedProperties[t];n&&(d[m].refutedProperties=n),m++}}return d.length=m,C._free(l),d}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"),d=[];this.exceededMatchLimit=Boolean(u);const m=[];let p=l;for(let t=0;t<c;t++){const t=getValue(p,"i32");p+=SIZE_OF_INT;const s=getValue(p,"i32");p+=SIZE_OF_INT;const r=getValue(p,"i32");if(p+=SIZE_OF_INT,m.length=s,p=unmarshalCaptures(this,e.tree,p,m),this.textPredicates[t].every((e=>e(m)))){const e=m[r],s=this.setProperties[t];s&&(e.setProperties=s);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),d.push(e)}}return C._free(l),d}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,d=t.length;if(u!=d&&!(l&&d>u))return!1;var m=c.get(e),p=c.get(t);if(m&&p)return m==t&&p==e;var h=-1,_=!0,f=2&s?new r:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var g=e[h],y=t[h];if(o)var v=l?o(y,g,h,t,e,c):o(g,y,h,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),d=Object.getOwnPropertyDescriptor;t.f=r?d:function(e,t){if(e=a(e),t=c(t),u)try{return d(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,d=i(o(t)),m=n(s),p=d.length;return m<0||m>=p?e?"":void 0:(r=c(d,m))<55296||r>56319||m+1===p||(u=c(d,m+1))<56320||u>57343?e?a(d,m):r:e?l(d,m,m+2):u-56320+(r-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,s)=>{const r=s(1517),n=s(1580),i=s(9796),o=s(7309),a=s(3311);e.exports=class extends i{constructor(e,t,s){super(e||[],t,s),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((s=>s.key.toValue()!==e||(t=s,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const s=e,r=this.getMember(s);return r?r.value=t:this.content.push(new o(s,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((s=>e.bind(t)(s.value,s.key,s)))}compactMap(e,t){const s=[];return this.forEach(((r,n,i)=>{const o=e.bind(t)(r,n,i);o&&s.push(o)})),s}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(r(e),t)}forEach(e,t){return this.content.forEach((s=>e.bind(t)(s.value,s.key,s)))}}},5650:(e,t,s)=>{var r=s(8942).Symbol;e.exports=r},5681:(e,t,s)=>{var r=s(4700);e.exports=function(e){var t=r(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,s)=>{"use strict";var r=s(1003),n=s(6100),i=s(5116),o=s(7313),a=s(7235),c=n([].concat);e.exports=r("Reflect","ownKeys")||function(e){var t=i.f(a(e)),s=o.f;return s?c(t,s(e)):t}},5695:(e,t,s)=>{"use strict";s(3085)},5735:(e,t,s)=>{const r=s(9310),n=s(8138),i=s(986),o=s(2563),a=s(1580),c=s(394),l=s(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(r,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let s=0;s<this.elementDetection.length;s+=1){const r=this.elementDetection[s][0],n=this.elementDetection[s][1];if(r(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,s=Math.floor;e.exports=Math.trunc||function(e){var r=+e;return(r>0?s:t)(r)}},5780:(e,t,s)=>{"use strict";var r,n=s(7235),i=s(7389),o=s(9683),a=s(5241),c=s(3489),l=s(9619),u=s(4275),d="prototype",m="script",p=u("IE_PROTO"),h=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},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"+m+":",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[d][o[n]];return g()};a[p]=!0,e.exports=Object.create||function(e,t){var s;return null!==e?(h[d]=n(e),s=new h,h[d]=null,s[p]=e):s=g(),void 0===t?s:i.f(s,t)}},5791:(e,t,s)=>{"use strict";var r=s(1203),n=s(480);e.exports=!r((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",n(1,7)),7!==e.stack)}))},5853:(e,t,s)=>{e=s.nmd(e);var r=s(8942),n=s(4772),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},5894:e=>{e.exports=function(e){var t=-1,s=Array(e.size);return e.forEach((function(e,r){s[++t]=[r,e]})),s}},6027:(e,t,s)=>{var r=s(7379),n=s(547);e.exports=function(e){return n(e)&&"[object Arguments]"==r(e)}},6100:(e,t,s)=>{"use strict";var r=s(1780),n=Function.prototype,i=n.call,o=r&&n.bind.bind(i,i);e.exports=r?o:function(e){return function(){return i.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var s=-1,r=Array(e);++s<e;)r[s]=t(s);return r}},6138:(e,t,s)=>{"use strict";var r=s(9098),n=s(1003),i=s(7013),o=s(1203),a=s(6453),c="AggregateError",l=n(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,s){return i(e,this,arguments)}}),u,!0)})},6281:(e,t,s)=>{"use strict";var r=s(1003),n=s(2769),i=s(4317),o=s(7460),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=r("Symbol");return n(t)&&i(t.prototype,a(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,s)=>{var r=s(4687);e.exports=function(e,t){return r(e,t)}},6453:(e,t,s)=>{"use strict";var r=s(1003),n=s(701),i=s(3999),o=s(4317),a=s(3491),c=s(7464),l=s(5516),u=s(3507),d=s(4879),m=s(8148),p=s(4279),h=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],w=r.apply(null,v);if(w){var E=w.prototype;if(!_&&n(E,"cause")&&delete E.cause,!s)return w;var x=r("Error"),S=t((function(e,t){var s=d(f?t:e,void 0),r=f?new w(e):new w;return void 0!==s&&i(r,"message",s),p(r,S,r.stack,2),this&&o(E,this)&&u(r,this,S),arguments.length>y&&m(r,arguments[y]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):h&&g in w&&(l(S,w,g),l(S,w,"prepareStackTrace")),c(S,w),!_)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(e){}return S}}},6465:e=>{e.exports=function(e,t){for(var s=-1,r=null==e?0:e.length;++s<r;)if(t(e[s],s,e))return!0;return!1}},6529:(e,t,s)=>{var r=s(3655),n=s(5387);e.exports=function(e){return null!=e&&n(e.length)&&!r(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,s)=>{var r=s(1386),n=s(9770),i=s(8250);e.exports=function(e,t){var s=this.__data__;if(s instanceof r){var o=s.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++s.size,this;s=this.__data__=new i(o)}return s.set(e,t),this.size=s.size,this}},6656:(e,t,s)=>{"use strict";s(484),s(5695),s(6138),s(9828),s(3832);var r=s(8099);e.exports=r.AggregateError},6850:(e,t,s)=>{"use strict";t.MH=void 0;const r=s(8583);function n(e,t,s){const n=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(n)||void 0!==s&&s!==e.length)throw new SyntaxError(r.errorMessages.get(t));return n}function i(e,t){const s=n(e,r.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=n(t,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(s,e)}return String.fromCharCode(s)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(e,t=!1){return e.replace(a,(function(e,s,a,c,l,u,d,m,p){if(void 0!==s)return"\\";if(void 0!==a)return function(e){const t=n(e,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(a);if(void 0!==c)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var t;const s=n(e.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(s)}catch(e){throw e instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):e}}(c);if(void 0!==l)return i(l,u);if(void 0!==d)return i(d);if("0"===m)return"\0";if(void 0!==m)return function(e,t=!1){if(t)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const s=parseInt(e,8);return String.fromCharCode(s)}(m,!t);if(void 0!==p)return h=p,o.get(h)||h;var h;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}t.MH=c},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 d=a[u];r(e,d)||s&&r(s,d)||c(e,d,l(t,d))}}},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),d=s(9620),m=s(593),p=s(4123),h=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=m,r.prototype.MemberElement=l,r.prototype.refract=f,p.prototype.refract=f,e.exports={Element:r,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:d,RefElement:m,refract:f,ArraySlice:p,ObjectSlice:h,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),d=s(3753),m=s(4275),p=s(5241),h="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||d.state){var g=d.state||(d.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,r=function(e,t){if(g.has(e))throw new _(h);return t.facade=e,g.set(e,t),t},n=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var y=m("state");p[y]=!0,r=function(e,t){if(u(e,y))throw new _(h);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]",d="[object Promise]",m="[object Set]",p="[object WeakMap]",h="[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)))!=h||n&&b(new n)!=u||i&&b(i.resolve())!=d||o&&b(new o)!=m||a&&b(new a)!=p)&&(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 h;case f:return u;case g:return d;case y:return m;case v:return p}return t}),e.exports=b},8583:(e,t)=>{"use strict";var s;Object.defineProperty(t,"__esModule",{value:!0}),t.errorMessages=t.ErrorType=void 0,function(e){e.MalformedUnicode="MALFORMED_UNICODE",e.MalformedHexadecimal="MALFORMED_HEXADECIMAL",e.CodePointLimit="CODE_POINT_LIMIT",e.OctalDeprecation="OCTAL_DEPRECATION",e.EndOfString="END_OF_STRING"}(s=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[s.MalformedUnicode,"malformed Unicode character escape sequence"],[s.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[s.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[s.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[s.EndOfString,"malformed escape sequence at end of string"]])},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"),d=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:d("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,d,m){switch(s){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var h=1&r;if(p||(p=c),e.size!=t.size&&!h)return!1;var _=m.get(e);if(_)return _==t;r|=2,m.set(e,t);var f=o(p(e),p(t),r,l,d,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,s)=>{var r=s(5650),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),s=e[a];try{e[a]=void 0;var r=!0}catch(e){}var n=o.call(e);return r&&(t?e[a]=s:delete e[a]),n}},8900:function(e,t,s){"use strict";var r=function(e){return e&&e.Math===Math&&e};e.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof s.g&&s.g)||r("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,s)=>{var r=s(4967),n="object"==typeof self&&self&&self.Object===Object&&self,i=r||n||Function("return this")();e.exports=i},9005:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},9067:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},9068:(e,t,s)=>{var r=s(4700);e.exports=function(e,t){var s=r(this,e),n=s.size;return s.set(e,t),this.size+=s.size==n?0:1,this}},9098:(e,t,s)=>{"use strict";var r=s(8900),n=s(7013),i=s(9344),o=s(2769),a=s(4543).f,c=s(8696),l=s(8099),u=s(4572),d=s(3999),m=s(701);s(3753);var p=function(e){var t=function(s,r,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(s);case 2:return new e(s,r)}return new e(s,r,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var s,n,h,_,f,g,y,v,b,w=e.target,E=e.global,x=e.stat,S=e.proto,j=E?r:x?r[w]:r[w]&&r[w].prototype,O=E?l:l[w]||d(l,w,{})[w],P=O.prototype;for(_ in t)n=!(s=c(E?_:w+(x?".":"#")+_,e.forced))&&j&&m(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?p(f):S&&o(f)?i(f):f,(e.sham||f&&f.sham||g&&g.sham)&&d(v,"sham",!0),d(O,_,v),S&&(m(l,h=w+"Prototype")||d(l,h,{}),d(l[h],_,f),e.real&&P&&(s||!P[_])&&d(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,d=l.hasOwnProperty,m=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(r(e)?m:a).test(o(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,s){var r=typeof e;return!!(s=null==s?9007199254740991:s)&&("number"==r||"symbol"!=r&&t.test(e))&&e>-1&&e%1==0&&e<s}},9665:(e,t,s)=>{"use strict";var r=s(5024),n=s(1203),i=s(9619);e.exports=!r&&!n((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,s)=>{var r=s(5098),n=s(1386),i=s(9770);e.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||n),string:new r}}},9770:(e,t,s)=>{var r=s(4715)(s(8942),"Map");e.exports=r},9796:(e,t,s)=>{const r=s(1517),n=s(8631),i=s(4123);class o extends n{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const s=[];return this.forEach((r=>{const n=e.bind(t)(r);n&&s.push(n)})),s}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(r(e),t)}reduce(e,t){let s,r;void 0!==t?(s=0,r=this.refract(t)):(s=1,r="object"===this.primitive()?this.first.value:this.first);for(let t=s;t<this.length;t+=1){const s=this.content[t];r="object"===this.primitive()?this.refract(e(r,s.value,s.key,s,this)):this.refract(e(r,s,t,this))}return r}forEach(e,t){this.content.forEach(((s,r)=>{e.bind(t)(s,this.refract(r))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const s=t||{},r=!!s.recursive,n=void 0===s.results?[]:s.results;return this.forEach(((t,s,i)=>{r&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:r}),e(t,s,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9828:(e,t,s)=>{"use strict";var r=s(3273),n=s(8137),i=s(6625),o=s(8417),a=s(9989).f,c=s(164),l=s(877),u=s(4871),d=s(5024),m="Array Iterator",p=o.set,h=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){p(this,{type:m,target:r(e),index:0,kind:t})}),(function(){var e=h(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&&d&&"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,d="enumerable",m="configurable",p="writable";t.f=r?i?function(e,t,s){if(o(e),t=a(t),o(s),"function"==typeof e&&"prototype"===t&&"value"in s&&p in s&&!s[p]){var r=u(e,t);r&&r[p]&&(e[t]=s.value,s={configurable:m in s?s[m]:r[m],enumerable:d in s?s[d]:r[d],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:()=>ny,detectionRegExp:()=>ry,mediaTypes:()=>sy,namespace:()=>oy,parse:()=>iy});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>ln,includesClasses:()=>dn,includesSymbols:()=>un,isAnnotationElement:()=>rn,isArrayElement:()=>Qr,isBooleanElement:()=>Yr,isCommentElement:()=>nn,isElement:()=>Wr,isLinkElement:()=>tn,isMemberElement:()=>en,isNullElement:()=>Kr,isNumberElement:()=>Zr,isObjectElement:()=>Xr,isParseResultElement:()=>on,isPrimitiveElement:()=>cn,isRefElement:()=>sn,isSourceMapElement:()=>an,isStringElement:()=>zr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>Yo,isLinkDescriptionElement:()=>ea,isMediaElement:()=>Qo});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>Fl,isCallbackElement:()=>dl,isComponentsElement:()=>ml,isContactElement:()=>pl,isExampleElement:()=>hl,isExternalDocumentationElement:()=>_l,isHeaderElement:()=>fl,isInfoElement:()=>gl,isLicenseElement:()=>yl,isLinkElement:()=>vl,isMediaTypeElement:()=>Cl,isOpenApi3_0Element:()=>wl,isOpenapiElement:()=>bl,isOperationElement:()=>El,isParameterElement:()=>xl,isPathItemElement:()=>Sl,isPathsElement:()=>jl,isReferenceElement:()=>Ol,isRequestBodyElement:()=>Pl,isResponseElement:()=>Tl,isResponsesElement:()=>Al,isSchemaElement:()=>Ml,isSecurityRequirementElement:()=>Nl,isSecuritySchemeElement:()=>Rl,isServerElement:()=>kl,isServerVariableElement:()=>Il,isServersElement:()=>$l});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>hh,isLinkDescriptionElement:()=>_h,isMediaElement:()=>Qo});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isJSONReferenceElement:()=>Xo,isJSONSchemaElement:()=>Oh,isLinkDescriptionElement:()=>Ph});var i={};__webpack_require__.r(i),__webpack_require__.d(i,{isJSONSchemaElement:()=>r_,isLinkDescriptionElement:()=>n_});var o={};__webpack_require__.r(o),__webpack_require__.d(o,{isJSONSchemaElement:()=>g_,isLinkDescriptionElement:()=>y_});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 d(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:()=>Mf,isCallbackElement:()=>af,isComponentsElement:()=>cf,isContactElement:()=>lf,isExampleElement:()=>uf,isExternalDocumentationElement:()=>df,isHeaderElement:()=>mf,isInfoElement:()=>pf,isJsonSchemaDialectElement:()=>hf,isLicenseElement:()=>_f,isLinkElement:()=>ff,isMediaTypeElement:()=>If,isOpenApi3_1Element:()=>yf,isOpenapiElement:()=>gf,isOperationElement:()=>vf,isParameterElement:()=>bf,isPathItemElement:()=>wf,isPathItemElementExternal:()=>Ef,isPathsElement:()=>xf,isReferenceElement:()=>Sf,isReferenceElementExternal:()=>jf,isRequestBodyElement:()=>Of,isResponseElement:()=>Pf,isResponsesElement:()=>Tf,isSchemaElement:()=>Af,isSecurityRequirementElement:()=>Ff,isSecuritySchemeElement:()=>Nf,isServerElement:()=>Rf,isServerVariableElement:()=>kf});const m=u((function(e,t){return null==t||t!=t?e:t})),p=Number.isInteger||function(e){return(e|0)===e};function h(e){return"[object String]"===Object.prototype.toString.call(e)}function _(e,t){var s=e<0?t.length+e:e;return h(t)?t.charAt(s):t[s]}const f=u((function(e,t){if(null!=t)return p(e)?_(e,t):t[e]}));const g=d((function(e,t,s){return m(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 w=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const E=l((function(e){return!!w(e)||!!e&&("object"==typeof e&&(!h(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(E(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(!w(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 N=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 R=function(e){return function(t){return new N(e,t)}};function k(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 I(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):k(Math.max(0,i),I(e,r,s))}}const C=u((function(e,t){return 1===e?l(t):k(e,I(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"],R,(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 Y(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function X(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=Y(e);function i(e,t){return se(e,t,s.slice(),r.slice())}return!X((function(e,t){return!X(i,t,e)}),Y(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 d=c[a];if(!$(d,t)||!se(t[d],e[d],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 de=u((function(e,t){return k(e.length,(function(){return e.apply(t,arguments)}))}));function me(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 pe(e,t,s,r){return e["@@transducer/result"](s[r](de(e["@@transducer/step"],e),t))}const he=S(ue,pe,me);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}();function fe(e){return new _e(e)}const ge=d((function(e,t,s){return he("function"==typeof e?fe(e):e,t,s)}));function ye(e,t){return function(){var s=arguments.length;if(0===s)return t();var r=arguments[s-1];return w(r)||"function"!=typeof r[e]?t.apply(this,arguments):r[e].apply(r,Array.prototype.slice.call(arguments,0,s-1))}}const ve=d(ye("slice",(function(e,t,s){return Array.prototype.slice.call(s,e,t)})));const be=l(ye("tail",ve(1,1/0)));function we(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return k(arguments[0].length,ge(le,arguments[0],be(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 xe=Ee;function Se(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 je(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 Oe=function(e){return(e<10?"0":"")+e};const Pe="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Oe(e.getUTCMonth()+1)+"-"+Oe(e.getUTCDate())+"T"+Oe(e.getUTCHours())+":"+Oe(e.getUTCMinutes())+":"+Oe(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Te(e){return"[object Object]"===Object.prototype.toString.call(e)}var Ae=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=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 Me(e){return function(t){return new Ae(e,t)}}const Fe=u(T(["fantasy-land/filter","filter"],Me,(function(e,t){return Te(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 Ne=u((function(e,t){return Fe((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 Se(s,r)?"<Circular>":Re(s,r)},r=function(e,t){return A((function(t){return je(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,Ne((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):je(Pe(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())+")":je(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 ke=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=p(n)?_(n,s):s[n]}return s}const Ce=d((function(e,t,s){return e(Ie(t,s))}));function $e(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const De=u((function(e,t){return e&&t}));const Le=u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Z(De)(e,t)}));const qe=re(null);const Be=K(qe);function Ue(e){return Ue="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},Ue(e)}const Ve=function(e){return"object"===Ue(e)};const He=C(1,Le(Be,Ve));const Je=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=ke(e),o=s(i,ke(t));return void 0!==o&&o===i?e:t}));const Ge=u((function(e,t){return G(f(e),t)}));const We=l((function(e){return C(ge(Je,0,Ge("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 ze=C(1,we(ee,xe("GeneratorFunction")));const Ze=C(1,we(ee,xe("AsyncFunction")));const Ke=We([we(ee,xe("Function")),ze,Ze]);var Ye=we(ee,xe("Object")),Xe=we(ke,re(ke(Object))),Qe=Ce(Le(Ke,Xe),["constructor"]);const et=C(1,(function(e){if(!He(e)||!Ye(e))return!1;var t=Object.getPrototypeOf(e);return!!qe(t)||Qe(t)}));class tt 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 st=tt;class rt extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const nt=rt;class it 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 ot=it;class at extends ce.wE{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new ce.wE([e.start.row,e.start.column,e.start.char]),s=new ce.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const ct=at;class lt extends ce.g${constructor(){super(),this.register("annotation",st),this.register("comment",nt),this.register("parseResult",ot),this.register("sourceMap",ct)}}const ut=new lt,dt=e=>{const t=new lt;return et(e)&&t.use(e),t},mt=ut;const pt=C(1,we(ee,xe("String"))),ht=__webpack_require__.p+"2f9d346f3bc0cf9ba30b2a61e889fb78.wasm",_t=globalThis.fetch;Ke(_t)&&(globalThis.fetch=(...e)=>pt(e[0])&&e[0].endsWith("tree-sitter.wasm")?_t.apply(globalThis,[ht,be(e)]):_t.apply(globalThis,e));var ft=__webpack_require__(3833),gt=__webpack_require__(1212);const yt=class extends gt{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 vt extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(yt,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 bt=vt,wt=__webpack_require__.p+"1496cfca5e4d41188323a914b9705264.wasm";let Et=null,xt=null;const St=async e=>{if(null===Et&&null===xt)xt=ft.init().then((()=>ft.Language.load(wt))).then((e=>{const t=new ft;return t.setLanguage(e),t})).finally((()=>{xt=null})),Et=await xt;else if(null===Et&&null!==xt)Et=await xt;else if(null===Et)throw new bt("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Et.parse(e)};function jt(e,t,s){if(s||(s=new Ot),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var r,n=function(r){var n=s.get(e);if(n)return n;for(var i in s.set(e,r),e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=t?jt(e[i],!0,s):e[i]);return r};switch(ee(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return r=e,new RegExp(r.source,r.flags?r.flags:(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.sticky?"y":"")+(r.unicode?"u":"")+(r.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Ot=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),r=this.map[s];r||(this.map[s]=r=[]),r.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],r=0;r<s.length;r+=1){if((i=s[r])[0]===e)return i[1]}else{var n=this.hash(e);if(s=this.map[n])for(r=0;r<s.length;r+=1){var i;if((i=s[r])[0]===e)return i[1]}}},e}();const Pt=l((function(e){return null!=e&&"function"==typeof e.clone?e.clone():jt(e,!0)}));const Tt=class extends bt{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const At=class extends Tt{};const Mt=class extends At{};const Ft=class extends Mt{specificTagName;explicitTagName;tagKind;tagPosition;nodeCanonicalContent;node;constructor(e,t){super(e,t),void 0!==t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};const Nt=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:s=!1}={}){this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}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}};let Rt=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const kt=class extends Nt{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...s}){super({...s}),this.explicitName=e,this.kind=t}};const It=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const Ct=class extends It{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===Rt.Mapping}};const $t=class extends It{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===Rt.Sequence}};const Dt=class extends It{static uri="tag:yaml.org,2002:str"};const Lt=d((function(e,t,s){return m(e,Ie(t,s))}));const qt=l((function(e){return C(e.length,e)}));var Bt="\t\n\v\f\r \u2028\u2029\ufeff";const Ut=l("function"==typeof String.prototype.trim&&!Bt.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+Bt+"]["+Bt+"]*"),s=new RegExp("["+Bt+"]["+Bt+"]*$");return e.replace(t,"").replace(s,"")});const Vt=u((function(e,t){return C(e+1,(function(){var s=arguments[e];if(null!=s&&$e(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(ke(s)+' does not have a method named "'+t+'"')}))}));const Ht=Vt(1,"split");const Jt=Vt(1,"join");const Gt=l((function(e){return h(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function Wt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return we.apply(this,Gt(arguments))}const zt=C(4,(function(e,t,s,r){return he(e("function"==typeof t?fe(t):t),s,r)}));const Zt=u((function(e,t){if(w(e)){if(w(t))return e.concat(t);throw new TypeError(ke(t)+" is not an array")}if(h(e)){if(h(t))return e+t;throw new TypeError(ke(t)+" is not a string")}if(null!=e&&$e(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&$e(e.concat))return e.concat(t);throw new TypeError(ke(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Kt=re("");const Yt=u((function(e,t){return C(ge(Je,0,Ge("length",t)),(function(){var s=arguments,r=this;return e.apply(r,A((function(e){return e.apply(r,s)}),t))}))}));function Xt(e){return e}const Qt=l(Xt);const es=C(1,we(ee,xe("Number")));var ts=Le(es,isFinite);var ss=C(1,ts);const rs=Ke(Number.isFinite)?C(1,de(Number.isFinite,Number)):ss;var ns=Le(rs,Yt(re,[Math.floor,Qt]));var is=C(1,ns);const os=Ke(Number.isInteger)?C(1,de(Number.isInteger,Number)):is;const as=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)}))}));const cs=K(rs);const ls=C(1,Le(es,u((function(e,t){return e>t}))(0)));var us=qt((function(e,t){var s=Number(t);if(s!==t&&(s=0),ls(s))throw new RangeError("repeat count must be non-negative");if(cs(s))throw new RangeError("repeat count must be less than infinity");if(s=Math.floor(s),0===e.length||0===s)return"";if(e.length*s>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=e.length*s;s=Math.floor(Math.log(s)/Math.log(2));for(var n=e;s;)n+=e,s-=1;return n+=n.substring(0,r-n.length)})),ds=as(Vt(1,"repeat"));const ms=Ke(String.prototype.repeat)?ds:us;const ps=d((function(e,t,s){return s.replace(e,t)}));var hs=ps(/[\s\uFEFF\xA0]+$/,""),_s=Vt(0,"trimEnd");const fs=Ke(String.prototype.trimEnd)?_s:hs;var gs=ps(/^[\s\uFEFF\xA0]+/,""),ys=Vt(0,"trimStart");const vs=Ke(String.prototype.trimStart)?ys:gs;var bs=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 ws(e){return function(t){return new bs(e,t)}}const Es=u(T(["dropWhile"],ws,(function(e,t){for(var s=0,r=t.length;s<r&&e(t[s]);)s+=1;return ve(s,1/0,t)})));const xs=as(u(Se));const Ss=qt((function(e,t){return we(Ht(""),Es(xs(e)),Jt(""))(t)}));const js=as(Zt);var Os=__webpack_require__(6850);const Ps=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Ts=e=>{const t=(e=>{const t=e.match(Ps),s=Lt("",["groups","indentation"],t);return Kt(s)?void 0:parseInt(s,10)})(e);if(os(t))return ms(" ",t);const s=Lt("",[1],e.split("\n")),r=Lt(0,["groups","indentation","length"],s.match(/^(?<indentation>[ ]*)/));return ms(" ",r)},As=e=>{const t=e.match(Ps),s=Lt("",["groups","chomping"],t);return Kt(s)?void 0:s},Ms=(e,t)=>oe(e)?`${fs(t)}\n`:"-"===e?fs(t):t,Fs=e=>e.replace(/\r\n/g,"\n"),Ns=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,s)=>t?e:` ${s.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Rs=qt(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),ks=we(Fs,Ut,Ns,Ht("\n"),G(vs),Jt("\n")),Is=we(Fs,Ut,Ns,Ht("\n"),G(vs),Jt("\n"),Rs("'")),Cs=we(Fs,Ut,(e=>e.replace(/\\\n\s*/g,"")),Ns,Os.MH,Ht("\n"),G(vs),Jt("\n"),Rs('"'));let $s=function(e){return e.Plain="Plain",e.SingleQuoted="SingleQuoted",e.DoubleQuoted="DoubleQuoted",e.Literal="Literal",e.Folded="Folded",e.Explicit="Explicit",e.SinglePair="SinglePair",e.NextLine="NextLine",e.InLine="InLine",e}({}),Ds=function(e){return e.Flow="Flow",e.Block="Block",e}({});const Ls=class{static test(e){return e.tag.kind===Rt.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const s=e.clone();return e.style===$s.Plain?t=ks(e.content):e.style===$s.SingleQuoted?t=Is(e.content):e.style===$s.DoubleQuoted?t=Cs(e.content):e.style===$s.Literal?t=(e=>{const t=Ts(e),s=As(e),r=Fs(e),n=be(r.split("\n")),i=Wt(G(Ss(t)),G(js("\n"))),o=zt(i,Zt,"",n);return Ms(s,o)})(e.content):e.style===$s.Folded&&(t=(e=>{const t=Ts(e),s=As(e),r=Fs(e),n=be(r.split("\n")),i=Wt(G(Ss(t)),G(js("\n"))),o=zt(i,Zt,"",n),a=Ns(o);return Ms(s,a)})(e.content)),s.content=t,s}static resolve(e){return e}};const qs=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new Ct),this.registerTag(new $t),this.registerTag(new Dt)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===Rt.Scalar?t=Dt.uri:e.tag.kind===Rt.Sequence?t=$t.uri:e.tag.kind===Rt.Mapping&&(t=Ct.uri):e.tag.explicitName.startsWith("!<")?t=e.tag.explicitName.replace(/^!</,"").replace(/>$/,""):e.tag.explicitName.startsWith("!!")&&(t=`tag:yaml.org,2002:${e.tag.explicitName.replace(/^!!/,"")}`),t}registerTagDirective(e){this.tagDirectives.push({handle:e.parameters.handle,prefix:e.parameters.prefix})}registerTag(e,t=!1){return t?this.tags.unshift(e):this.tags.push(e),this}overrideTag(e){return this.tags=this.tags.filter((t=>t.tag===e.tag)),this.tags.push(e),this}resolve(e){const t=this.toSpecificTagName(e);if("?"===t)return e;let s=e;Ls.test(e)&&(s=Ls.canonicalFormat(e));const r=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===r)throw new Ft(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),node:e.clone()});if(!r.test(s))throw new Ft(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:Pt(e.tag.position),nodeCanonicalContent:s.content,node:e.clone()});return r.resolve(s)}};const Bs=class extends It{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,s=e.clone();return s.content=t,s}};const Us=class extends It{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),s=e.clone();return s.content=t,s}};const Vs=class extends It{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),s=e.clone();return s.content=t,s}};const Hs=class extends It{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const Js=class extends qs{constructor(){super(),this.registerTag(new Bs,!0),this.registerTag(new Us,!0),this.registerTag(new Vs,!0),this.registerTag(new Hs,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===Rt.Sequence)t=$t.uri;else if(e.tag.kind===Rt.Mapping)t=Ct.uri;else if(e.tag.kind===Rt.Scalar){const s=this.tags.find((t=>t.test(e)));t=(null==s?void 0:s.tag)||"?"}return t}};const Gs=class extends Nt{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:s,styleGroup:r,...n}){super({...n}),this.anchor=e,this.tag=t,this.style=s,this.styleGroup=r}};const Ws=class extends Gs{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const zs=class extends At{},Zs=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,Ks=e=>Zs("mapping",e),Ys=e=>Zs("sequence",e),Xs=e=>Zs("keyValuePair",e),Qs=e=>Zs("scalar",e),er=e=>Zs("alias",e);const tr=class{addAnchor(e){if(!(e=>Zs("anchor",e))(e.anchor))throw new zs("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new Ws({content:e.content,style:$s.Plain,styleGroup:Ds.Flow})}},sr=(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},rr={},nr=e=>null==e?void 0:e.type,ir=e=>"string"==typeof nr(e),or=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),ar=(e,{visitFnGetter:t=sr,nodeTypeGetter:s=nr,breakSymbol:r=rr,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(e.length).fill(a);return{enter(l,u,d,m,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.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,d,m,p,g);if("function"==typeof(null==t?void 0:t.then))throw new Tt("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,d,m){let p=n;const h={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=a.call(e[n],p,o,l,u,d,h);if("function"==typeof(null==t?void 0:t.then))throw new Tt("Async visitor not supported in sync mode",{visitor:e[n],visitFn:a});if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};ar[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=sr,nodeTypeGetter:s=nr,breakSymbol:r=rr,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,d,m,p,h){let _=l,f=!1;const g={...h,replaceWith(e,t){h.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,d,m,p,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,d,m){let p=n;const h={...m,replaceWith(e,t){m.replaceWith(e,t),p=e}};for(let n=0;n<e.length;n+=1)if(c[n]===a){const a=t(e[n],s(p),!0);if("function"==typeof a){const t=await a.call(e[n],p,o,l,u,d,h);if(t===r)c[n]=r;else if(void 0!==t&&t!==i)return t}}else c[n]===p&&(c[n]=a)}}};const cr=(e,t,{keyMap:s=null,state:r={},breakSymbol:n=rr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=sr,nodeTypeGetter:c=nr,nodePredicate:l=ir,nodeCloneFn:u=or,detectCycles:d=!0}={})=>{const m=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),S)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let j;if(!Array.isArray(v)){var E;if(!l(v))throw new Tt(`Invalid AST Node: ${String(v)}`,{node:v});if(d&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};j=i.call(t,v,s,h,b,w,n)}if("function"==typeof(null===(E=j)||void 0===E?void 0:E.then))throw new Tt("Async visitor not supported in sync mode",{visitor:t,visitFn:i});if(j===n)break;if(j===o){if(!e){b.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){b.pop();continue}v=j}}var x;if(void 0===j&&S&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(x=m[c(v)])&&void 0!==x?x:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};cr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=null,state:r={},breakSymbol:n=rr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=sr,nodeTypeGetter:c=nr,nodePredicate:l=ir,nodeCloneFn:u=or,detectCycles:d=!0}={})=>{const m=s||{};let p,h,_=Array.isArray(e),f=[e],g=-1,y=[],v=e;const b=[],w=[];do{g+=1;const e=g===f.length;let s;const x=e&&0!==y.length;if(e){if(s=0===w.length?void 0:b.pop(),v=h,h=w.pop(),x)if(_){v=v.slice();let e=0;for(const[t,s]of y){const r=t-e;s===i?(v.splice(r,1),e+=1):v[r]=s}}else{v=u(v);for(const[e,t]of y)v[e]=t}g=p.index,f=p.keys,y=p.edits,_=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(s=_?g:f[g],v=h[s],v===i||void 0===v)continue;b.push(s)}let S;if(!Array.isArray(v)){if(!l(v))throw new Tt(`Invalid AST Node: ${String(v)}`,{node:v});if(d&&w.includes(v)){b.pop();continue}const i=a(t,c(v),e);if(i){for(const[e,s]of Object.entries(r))t[e]=s;const n={replaceWith(t,r){"function"==typeof r?r(t,v,s,h,b,w):h&&(h[s]=t),e||(v=t)}};S=await i.call(t,v,s,h,b,w,n)}if(S===n)break;if(S===o){if(!e){b.pop();continue}}else if(void 0!==S&&(y.push([s,S]),!e)){if(!l(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&y.push([s,v]),!e)p={inArray:_,index:g,keys:f,edits:y,prev:p},_=Array.isArray(v),f=_?v:null!==(E=m[c(v)])&&void 0!==E?E:[],g=-1,y=[],h!==i&&void 0!==h&&w.push(h),h=v}while(void 0!==p);return 0!==y.length?y[y.length-1][1]:e};class lr{static type="point";type=lr.type;row;column;char;constructor({row:e,column:t,char:s}){this.row=e,this.column=t,this.char=s}}class ur{static type="position";type=ur.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const dr=ur;const mr=class extends Nt{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class pr extends Nt{static type="stream"}Object.defineProperty(pr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>Zs("document",e))(e)||(e=>Zs("comment",e))(e))):[]},enumerable:!0});const hr=pr;const _r=l((function(e){return _(0,e)}));const fr=class extends Nt{static type="parseResult";get rootNode(){return _r(this.children)}};const gr="function"==typeof Object.assign?Object.assign:function(e){if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var t=Object(e),s=1,r=arguments.length;s<r;){var n=arguments[s];if(null!=n)for(var i in n)$(i,n)&&(t[i]=n[i]);s+=1}return t};const yr=u((function(e,t){return gr({},e,t)}));const vr=class extends Nt{static type="directive";name;parameters;constructor({name:e,parameters:t,...s}){super({...s}),this.name=e,this.parameters=yr({version:void 0,handle:void 0,prefix:void 0},t)}};const br=class extends Nt{static type="document"};const wr=class extends Gs{};class Er extends wr{static type="mapping"}Object.defineProperty(Er.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(Xs):[]},enumerable:!0});const xr=Er;class Sr extends Nt{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Sr.prototype,{key:{get(){return this.children.filter((e=>Qs(e)||Ks(e)||Ys(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>Qs(e)||Ks(e)||Ys(e)||er(e))(t)))[0]},enumerable:!0}});const jr=Sr;class Or extends wr{static type="sequence"}Object.defineProperty(Or.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>Ys(e)||Ks(e)||Qs(e)||er(e))):[]},enumerable:!0});const Pr=Or;const Tr=class extends Nt{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Ar=class extends Nt{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Mr=class extends Nt{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Fr=class extends Nt{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...s}={}){super({...s}),this.value=e,this.isUnexpected=t}};const Nr=class{type;startPosition;endPosition;startIndex;endIndex;text;isNamed;isMissing;fieldName;hasError=!1;children=[];previousSibling;constructor(e){this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}get tag(){let{previousSibling:e}=this;for(;void 0!==e&&"tag"!==e.type;)({previousSibling:e}=e);return e}get anchor(){let{previousSibling:e}=this;for(;void 0!==e&&"anchor"!==e.type;)({previousSibling:e}=e);return e}get firstNamedChild(){return this.children.find((e=>e.isNamed))}setFieldName(e){return this.fieldName=e.currentFieldName,this}setHasError(e){return this.hasError=e.currentNode.hasError,this}setPreviousSibling(e){this.previousSibling=e}pushChildren(...e){this.children.push(...e)}},Rr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},kr=e=>Array.isArray(e)||ir(e);class Ir{static isScalar=this.isKind("scalar");static isMapping=this.isKind("mapping");static isSequence=this.isKind("sequence");static isKind(e){return t=>null!=t&&"object"==typeof t&&"type"in t&&"string"==typeof t.type&&t.type.endsWith(e)}static toPosition(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new dr({start:t,end:s})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new mr({name:t.text,position:Ir.toPosition(t)})}static hasKeyValuePairEmptyKey(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.keyNode}static hasKeyValuePairEmptyValue(e){return("block_mapping_pair"===e.type||"flow_pair"===e.type)&&void 0===e.valueNode}static kindNodeToYamlTag(e){const{tag:t}=e,s=(null==t?void 0:t.text)||("plain_scalar"===e.type?"?":"!"),r=e.type.endsWith("mapping")?Rt.Mapping:e.type.endsWith("sequence")?Rt.Sequence:Rt.Scalar,n=t?Ir.toPosition(t):void 0;return new kt({explicitName:s,kind:r,position:n})}schema;referenceManager;stream={enter:e=>{const t=Ir.toPosition(e);return new hr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new fr({children:[e]})};yaml_directive={enter:e=>{var t;const s=Ir.toPosition(e),r=null==e||null===(t=e.firstNamedChild)||void 0===t?void 0:t.text;return new vr({position:s,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Ir.toPosition(e),s=e.children[0],r=e.children[1],n=new vr({position:t,name:"%TAG",parameters:{handle:null==s?void 0:s.text,prefix:null==r?void 0:r.text}});return this.schema.registerTagDirective(n),n}};reserved_directive={enter:e=>{const t=Ir.toPosition(e),s=e.children[0],r=e.children[1],n=e.children[2];return new vr({position:t,name:null==s?void 0:s.text,parameters:{handle:null==r?void 0:r.text,prefix:null==n?void 0:n.text}})}};document={enter:e=>{const t=Ir.toPosition(e);return new br({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>{e.children=e.children.flat()}};block_node={enter:e=>e.children};flow_node={enter:e=>{const[t]=e.children.slice(-1);if(Ir.isScalar(t)||Ir.isMapping(t)||Ir.isSequence(t))return e.children;const s=new lr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),r=new Ws({content:"",anchor:Ir.kindNodeToYamlAnchor(t),tag:Ir.kindNodeToYamlTag(t),position:new dr({start:s,end:s}),styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(r),[...e.children,r]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new xr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Ds.Block,style:$s.NextLine,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};block_mapping_pair={enter:e=>{const t=Ir.toPosition(e),s=[...e.children];if(Ir.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Ir.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new jr({children:s,position:t,styleGroup:Ds.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new xr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Ds.Flow,style:$s.Explicit,isMissing:e.isMissing});return this.registerAnchor(n),this.schema.resolve(n)}};flow_pair={enter:e=>{const t=Ir.toPosition(e),s=[...e.children];if(Ir.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);s.unshift(t)}if(Ir.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);s.push(t)}return new jr({children:s,position:t,styleGroup:Ds.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Pr({children:e.children,position:t,anchor:r,tag:s,styleGroup:Ds.Block,style:$s.NextLine});return this.registerAnchor(n),this.schema.resolve(n)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new Ws({content:"",tag:new kt({explicitName:"?",kind:Rt.Scalar}),position:new dr({start:t,end:t}),styleGroup:Ds.Flow,style:$s.Plain})]}};flow_sequence={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Pr({children:e.children.flat(),position:t,anchor:r,tag:s,styleGroup:Ds.Flow,style:$s.Explicit});return this.registerAnchor(n),this.schema.resolve(n)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(n),this.schema.resolve(n)}};single_quote_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Flow,style:$s.SingleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};double_quote_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Flow,style:$s.DoubleQuoted});return this.registerAnchor(n),this.schema.resolve(n)}};block_scalar={enter:e=>{const t=Ir.toPosition(e),s=Ir.kindNodeToYamlTag(e),r=Ir.kindNodeToYamlAnchor(e),n=e.text.startsWith("|")?$s.Literal:e.text.startsWith(">")?$s.Folded:$s.Plain,i=new Ws({content:e.text,anchor:r,tag:s,position:t,styleGroup:Ds.Block,style:n});return this.registerAnchor(i),this.schema.resolve(i)}};comment={enter:e=>new Tr({content:e.text})};alias={enter:e=>{const t=new Ar({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof Nr&&!e.isNamed){const t=Ir.toPosition(e),s=e.type||e.text,{isMissing:r}=e;return new Mr({value:s,position:t,isMissing:r})}}ERROR(e,t,s,r){const n=Ir.toPosition(e),i=new Fr({children:e.children,position:n,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===r.length?new fr({children:[i]}):i}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new lr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Ir.isKind("tag")),i=r.find(Ir.isKind("anchor")),o=new kt(void 0!==n?{explicitName:n.text,kind:Rt.Scalar,position:Ir.toPosition(n)}:{explicitName:"?",kind:Rt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Ir.toPosition(i)}):void 0,c=new Ws({content:"",position:new dr({start:t,end:t}),tag:o,anchor:a,styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(c),c}createKeyValuePairEmptyValue(e){const t=new lr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,r=(null==s?void 0:s.children)||[],n=r.find(Ir.isKind("tag")),i=r.find(Ir.isKind("anchor")),o=new kt(void 0!==n?{explicitName:n.text,kind:Rt.Scalar,position:Ir.toPosition(n)}:{explicitName:"?",kind:Rt.Scalar}),a=void 0!==i?new mr({name:i.text,position:Ir.toPosition(i)}):void 0,c=new Ws({content:"",position:new dr({start:t,end:t}),tag:o,anchor:a,styleGroup:Ds.Flow,style:$s.Plain});return this.registerAnchor(c),c}}const Cr=Ir;function $r(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var Dr=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=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=$r(this.xf["@@transducer/step"](e,!1))),e},e}();function Lr(e){return function(t){return new Dr(e,t)}}const qr=u(T(["all"],Lr,(function(e,t){for(var s=0;s<t.length;){if(!e(t[s]))return!1;s+=1}return!0}))),Br=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Ur=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Vr=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Hr=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof ce.wE)&&t.classes.includes(e),Jr=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Gr=e=>e({hasMethod:Br,hasBasicElementProps:Ur,primitiveEq:Vr,isElementType:Jr,hasClass:Hr}),Wr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Hg||e(s)&&t(void 0,s))),zr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Om||e(s)&&t("string",s))),Zr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.kT||e(s)&&t("number",s))),Kr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.Os||e(s)&&t("null",s))),Yr=Gr((({hasBasicElementProps:e,primitiveEq:t})=>s=>s instanceof ce.bd||e(s)&&t("boolean",s))),Xr=Gr((({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))),Qr=Gr((({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))),en=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Pr||e(r)&&t("member",r)&&s(void 0,r))),tn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.Ft||e(r)&&t("link",r)&&s(void 0,r))),sn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ce.sI||e(r)&&t("ref",r)&&s(void 0,r))),rn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof st||e(r)&&t("annotation",r)&&s("array",r))),nn=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nt||e(r)&&t("comment",r)&&s("string",r))),on=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ot||e(r)&&t("parseResult",r)&&s("array",r))),an=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ct||e(r)&&t("sourceMap",r)&&s("array",r))),cn=e=>Jr("object",e)||Jr("array",e)||Jr("boolean",e)||Jr("number",e)||Jr("string",e)||Jr("null",e)||Jr("member",e),ln=e=>an(e.meta.get("sourceMap")),un=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Qr(s)&&qr(xs(s.toValue()),e)},dn=(e,t)=>0===e.length||qr(xs(t.classes.toValue()),e);const mn=class extends Tt{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const pn=class extends mn{};const hn=class extends mn{},_n=(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=Wr(t)?_n(t,r):t,o=Wr(n)?_n(n,r):n,a=new ce.KeyValuePair(i,o);return s.set(e,a),a}if(e instanceof ce.ot){const t=e=>_n(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=>_n(e,r),n=[...e].map(t),i=new ce.G6(n);return s.set(e,i),i}if(Wr(e)){const t=yn(e);if(s.set(e,t),e.content)if(Wr(e.content))t.content=_n(e.content,r);else if(e.content instanceof ce.KeyValuePair)t.content=_n(e.content,r);else if(Array.isArray(e.content)){const s=e=>_n(e,r);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new pn("Value provided to cloneDeep function couldn't be cloned",{value:e})};_n.safe=e=>{try{return _n(e)}catch{return e}};const fn=e=>{const{key:t,value:s}=e;return new ce.KeyValuePair(t,s)},gn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=_n(e.meta)),e.attributes.length>0&&(t._attributes=_n(e.attributes)),Wr(e.content)){const s=e.content;t.content=gn(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof ce.KeyValuePair?t.content=fn(e.content):t.content=e.content;return t},yn=e=>{if(e instanceof ce.KeyValuePair)return fn(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(Wr(e))return gn(e);throw new hn("Value provided to cloneShallow function couldn't be cloned",{value:e})};yn.safe=e=>{try{return yn(e)}catch{return e}};const vn=e=>Xr(e)?"ObjectElement":Qr(e)?"ArrayElement":en(e)?"MemberElement":zr(e)?"StringElement":Yr(e)?"BooleanElement":Zr(e)?"NumberElement":Kr(e)?"NullElement":tn(e)?"LinkElement":sn(e)?"RefElement":void 0,bn=e=>Wr(e)?yn(e):or(e),wn=we(vn,pt),En={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const xn=(e,t,{keyMap:s=En,...r}={})=>cr(e,t,{keyMap:s,nodeTypeGetter:vn,nodePredicate:wn,nodeCloneFn:bn,...r});xn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:s=En,...r}={})=>cr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:vn,nodePredicate:wn,nodeCloneFn:bn,...r});const Sn=d((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 jn=d((function e(t,s,r){return Sn((function(s,r,n){return Te(r)&&Te(n)?e(t,r,n):t(s,r,n)}),s,r)}));const On=u((function(e,t){return jn((function(e,t,s){return s}),e,t)}));const Pn=u(Ie);const Tn=ve(0,-1);const An=u((function(e,t){return e.apply(this,t)}));const Mn=K(Ke);var Fn=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():w(e)?[]:h(e)?"":Te(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 Nn=Fn;const Rn=l((function(e){return null!=e&&re(e,Nn(e))}));const kn=C(1,Ke(Array.isArray)?Array.isArray:we(ee,xe("Array")));const In=Le(kn,Rn);const Cn=C(3,(function(e,t,s){var r=Pn(e,s),n=Pn(Tn(e),s);if(!Mn(r)&&!In(e)){var i=de(r,n);return An(i,t)}})),$n=()=>({predicates:{...e},namespace:mt}),Dn={toolboxCreator:$n,visitorOptions:{nodeTypeGetter:vn,exposeEdits:!0}},Ln=(e,t,s={})=>{if(0===t.length)return e;const r=On(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=ar(a.map(g({},"visitor")),{...i});a.forEach(Cn(["pre"],[]));const l=xn(e,c,i);return a.forEach(Cn(["post"],[])),l};Ln[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const r=On(Dn,s),{toolboxCreator:n,visitorOptions:i}=r,o=n(),a=t.map((e=>e(o))),c=ar[Symbol.for("nodejs.util.promisify.custom")],l=xn[Symbol.for("nodejs.util.promisify.custom")],u=c(a.map(g({},"visitor")),{...i});await Promise.allSettled(a.map(Cn(["pre"],[])));const d=await l(e,u,i);return await Promise.allSettled(a.map(Cn(["post"],[]))),d};const qn=(e,{Type:t,plugins:s=[]})=>{const r=new t(e);return Wr(e)&&(e.meta.length>0&&(r.meta=_n(e.meta)),e.attributes.length>0&&(r.attributes=_n(e.attributes))),Ln(r,s,{toolboxCreator:$n,visitorOptions:{nodeTypeGetter:vn}})},Bn=e=>(t,s={})=>qn(t,{...s,Type:e});ce.Sh.refract=Bn(ce.Sh),ce.wE.refract=Bn(ce.wE),ce.Om.refract=Bn(ce.Om),ce.bd.refract=Bn(ce.bd),ce.Os.refract=Bn(ce.Os),ce.kT.refract=Bn(ce.kT),ce.Ft.refract=Bn(ce.Ft),ce.sI.refract=Bn(ce.sI),st.refract=Bn(st),nt.refract=Bn(nt),ot.refract=Bn(ot),ct.refract=Bn(ct);const Un={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...En},Vn=e=>Wr(e)?vn(e):nr(e),Hn=e=>Wr(e)||ir(e)||Array.isArray(e);const Jn=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new ot;t._content=e.children.flat(1);const s=t.findElements(cn);if(s.length>0){s[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=dt()}comment(e){if(0===this.processedDocumentCount){const t=new nt(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,s=this.processedDocumentCount>=1;if(t){const t=new st("Only first document within YAML stream will be used. Rest will be discarded.");t.classes.push("warning"),this.maybeAddSourceMap(e,t),this.annotations.push(t)}return s?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new ce.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new ce.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}sequence(e){const t=new ce.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}scalar(e){const t=this.namespace.toElement(e.content);return""===e.content&&e.style===$s.Plain&&(t.classes.push("yaml-e-node"),t.classes.push("yaml-e-scalar")),this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t=`(Missing ${e.value})`,s=new st(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 YAML syntax error)":"(Error YAML syntax error)",i=new st(n);if(i.classes.push("error"),this.maybeAddSourceMap(e,i),0===r.length){const e=new ot;return e.push(i),e}return this.annotations.push(i),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new ct;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}};class Gn{cursor;constructor(e){this.cursor=e}stream(){return new Nr(this.cursor)}yaml_directive(){return new Nr(this.cursor)}tag_directive(){return new Nr(this.cursor)}reserved_directive(){return new Nr(this.cursor)}document(){return new Nr(this.cursor)}block_node(){return new Nr(this.cursor).setFieldName(this.cursor)}flow_node(){return new Nr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Nr(this.cursor)}block_mapping_pair(){return new Nr(this.cursor)}flow_mapping(){return new Nr(this.cursor)}flow_pair(){return new Nr(this.cursor)}block_sequence(){return new Nr(this.cursor)}block_sequence_item(){return new Nr(this.cursor)}flow_sequence(){return new Nr(this.cursor)}plain_scalar(){return new Nr(this.cursor)}single_quote_scalar(){return new Nr(this.cursor)}double_quote_scalar(){return new Nr(this.cursor)}block_scalar(){return new Nr(this.cursor)}ERROR(){return new Nr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Nr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Gn(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Gn(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Wn=Gn,zn=(e,{sourceMap:t=!1}={})=>{const s=e.walk(),r=new Wn(s),[n]=Array.from(r),i=new Cr,o=new Jn,a=new Js,c=new tr,l=cr(n,i,{keyMap:Rr,nodePredicate:kr,state:{schema:a,sourceMap:t,referenceManager:c}});return cr(l.rootNode,o,{keyMap:Un,nodeTypeGetter:Vn,nodePredicate:Hn,state:{sourceMap:t}})};class Zn extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="callback"}}const Kn=Zn;class Yn 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 Xn=Yn;class Qn 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 ei=Qn;class ti 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 si=ti;class ri 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 ni=ri;class ii 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 oi=ii;class ai 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 ci=ai;class li 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(li.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ui=li;class di 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 mi=di;class pi 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 hi=pi;class _i 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 zr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):zr(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 fi=_i;class gi 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 yi=gi;class vi 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 bi=vi;class wi 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 Ei=wi;class xi extends ce.Om{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Si=xi;class ji 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 Oi=ji;class Pi 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 Ti=Pi;class Ai 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(Ai.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Mi=Ai;class Fi 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 Ni=Fi;class Ri extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="paths"}}const ki=Ri;class Ii 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 Ci=Ii;class $i 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 Di=$i;class Li 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 qi=Li;class Bi 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 Ui=Bi;const Vi=class extends bt{};class Hi 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 Ji=Hi;class Gi 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 Wi=Gi;class zi 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 Zi=zi;class Ki 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 Yi=Ki;const Xi=u((function(e,t){return b((function(s,r){return s[r]=e(t[r],r,t),s}),{},J(t))}));const Qi=l((function(e){return null==e}));var eo=u((function(e,t){if(0===e.length||Qi(t))return!1;for(var s=t,r=0;r<e.length;){if(Qi(s)||!$(e[r],s))return!1;s=s[e[r]],r+=1}return!0}));const to=eo;var so=u((function(e,t){return to([e],t)}));const ro=so;const no=d((function(e,t,s){return e(f(t,s))})),io=(e,t)=>{const s=m(e,t);return Xi((e=>{if(et(e)&&ro("$ref",e)&&no(pt,"$ref",e)){const t=Pn(["$ref"],e),r=Ss("#/",t);return Pn(r.split("/"),s)}return et(e)?io(e,s):e}),e)};const oo=function(){return!0},ao=e=>"string"==typeof(null==e?void 0:e.type)?e.type:vn(e),co={EphemeralObject:["content"],EphemeralArray:["content"],...En},lo=(e,t,{keyMap:s=co,...r}={})=>xn(e,t,{keyMap:s,nodeTypeGetter:ao,nodePredicate:oo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});lo[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=co,...s}={})=>xn[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:ao,nodePredicate:oo,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s});const uo=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 mo=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 po{ObjectElement={enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new mo(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 uo(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 zr(e.href)?e.href.toValue():""}}const ho=e=>Wr(e)?zr(e)||Zr(e)||Yr(e)||Kr(e)?e.toValue():lo(e,new po):e,_o=e=>{const t=e.meta.length>0?_n(e.meta):void 0,s=e.attributes.length>0?_n(e.attributes):void 0;return new e.constructor(void 0,t,s)},fo=(e,t)=>t.clone&&t.isMergeableElement(e)?yo(_o(e),e,t):e,go={clone:!0,isMergeableElement:e=>Xr(e)||Qr(e),arrayElementMerge:(e,t,s)=>e.concat(t)["fantasy-land/map"]((e=>fo(e,s))),objectElementMerge:(e,t,s)=>{const r=Xr(e)?_o(e):_o(t);return Xr(e)&&e.forEach(((e,t,n)=>{const i=yn(n);i.value=fo(e,s),r.content.push(i)})),t.forEach(((t,n,i)=>{const o=ho(n);let a;if(Xr(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const r=e.get(o);a=yn(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return yo;const s=t.customMerge(e,t);return"function"==typeof s?s:yo})(n,s)(r,t,s)}else a=yn(i),a.value=fo(t,s);r.remove(o),r.content.push(a)})),r},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},yo=(e,t,s)=>{var r,n,i;const o={...go,...s};o.isMergeableElement=null!==(r=o.isMergeableElement)&&void 0!==r?r:go.isMergeableElement,o.arrayElementMerge=null!==(n=o.arrayElementMerge)&&void 0!==n?n:go.arrayElementMerge,o.objectElementMerge=null!==(i=o.objectElementMerge)&&void 0!==i?i:go.objectElementMerge;const a=Qr(t);if(!(a===Qr(e)))return fo(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=>_n(e):e.customMetaMerge)(o)(e.meta,t.meta),c.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>_n(e):e.customAttributesMerge)(o)(e.attributes,t.attributes),c};yo.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)=>yo(e,s,t)),_o(e[0]))};const vo=yo;const bo=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=vo(t.meta,e.meta),ln(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=vo(t.attributes,e.attributes))}};const wo=class extends bo{enter(e){return this.element=_n(e),rr}},Eo=(e,t,s=[])=>{const r=Object.getOwnPropertyDescriptors(t);for(let e of s)delete r[e];Object.defineProperties(e,r)},xo=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:xo(s,[...t,s])},So=(e,t,s=[])=>{var r;const n=null!==(r=((...e)=>{if(0===e.length)return;let t;const s=e.map((e=>xo(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=xo(n);for(let t of e){let e=xo(t);for(let t=e.length-1;t>=0;t--){let r=e[t];-1===o.indexOf(r)&&(Eo(i,r,["constructor",...s]),o.push(r))}}return i.constructor=t,i},jo=e=>e.filter(((t,s)=>e.indexOf(t)==s)),Oo=(e,t)=>{const s=t.map((e=>xo(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++}},Po=(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(Oo(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,r)=>void 0!==Oo(r,e)||void 0!==t[r],get:(s,r)=>(Oo(r,e)||t)[r],set(t,s,r){const n=Oo(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)))))}),To=null,Ao="copy",Mo="copy",Fo="deep",No=new WeakMap,Ro=e=>No.get(e),ko=(e,t)=>{var s,r;const n=jo([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of n)i[o]=jo([...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},Io=(e,t)=>{var s,r,n,i;return{property:ko(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:ko(null!==(n=null==e?void 0:e.method)&&void 0!==n?n:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},Co=(e,t)=>{var s,r,n,i,o,a;return{class:jo([...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:Io(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:Io(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(a=null==t?void 0:t.instance)&&void 0!==a?a:{})}},$o=new Map,Do=(...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=[...xo(e.prototype).map((e=>e.constructor)),...null!==(t=Ro(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=>$o.get(e))).filter((e=>!!e));return 0==t.length?{}:1==t.length?t[0]:t.reduce(((e,t)=>Co(e,t)))},Lo=e=>{let t=$o.get(e);return t||(t={},$o.set(e,t)),t};function qo(...e){var t,s,r;const n=e.map((e=>e.prototype)),i=To;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)Eo(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var a,c;o.prototype="copy"===Mo?So(n,o):(a=n,c=o,Po([...a,{constructor:c}])),Object.setPrototypeOf(o,"copy"===Ao?So(e,null,["prototype"]):Po(e,Function.prototype));let l=o;if("none"!==Fo){const n="deep"===Fo?Do(...e):((...e)=>{const t=e.map((e=>Lo(e)));return 0===t.length?{}:1===t.length?t[0]:t.reduce(((e,t)=>Co(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)}Bo(null!==(s=null==n?void 0:n.static)&&void 0!==s?s:{},l),Bo(null!==(r=null==n?void 0:n.instance)&&void 0!==r?r:{},l.prototype)}var u,d;return u=l,d=e,No.set(u,d),l}const Bo=(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 Uo=l((function(e){return C(ge(Je,0,Ge("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 Vo=l((function(e){return!Rn(e)}));const Ho=u((function(e,t){return e||t}));var Jo=K(C(1,Le(Be,u((function(e,t){return $e(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Z(Ho)(e,t)}))(Ve,Ke))));const Go=Uo([pt,Jo,Vo]);const Wo=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 zo=class extends bo{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Wo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Pn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Pn(["visitors",...e],this.specObj):Pn(["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 wo&&(null==r?void 0:r.constructor)===wo?_n(t):(xn(t,r,s),r.element)}};const Zo=class extends zo{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(zr(r)&&s.includes(ho(r))&&!this.ignoredFields.includes(ho(r))){const s=this.toRefractedElement([...t,"fixedFields",ho(r)],e),i=new ce.Pr(_n(r),s);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(ho(r))||this.element.content.push(_n(n))})),this.copyMetaAndAttributes(e,this.element),rr}};const Ko=class{parent;constructor({parent:e}){this.parent=e}},Yo=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ji||e(r)&&t("JSONSchemaDraft4",r)&&s("object",r))),Xo=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wi||e(r)&&t("JSONReference",r)&&s("object",r))),Qo=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zi||e(r)&&t("media",r)&&s("object",r))),ea=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yi||e(r)&&t("linkDescription",r)&&s("object",r)));class ta extends(qo(Zo,Ko,wo)){constructor(e){super(e),this.element=new Ji,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,Zo.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(oe(this.parent)&&!zr(e.get("$schema")))this.element.setMetaProperty("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(Yo(this.parent)&&!zr(e.get("$schema"))){const e=m(ho(this.parent.meta.get("inheritedDialectIdentifier")),ho(this.parent.$schema));this.element.setMetaProperty("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?_n(this.parent.getMetaProperty("ancestorsSchemaIdentifiers",[])):new ce.wE,r=ho(e.get(t));Go(r)&&s.push(r),this.element.setMetaProperty("ancestorsSchemaIdentifiers",s)}}const sa=ta,ra=e=>Xr(e)&&e.hasKey("$ref");class na extends(qo(zo,Ko,wo)){ObjectElement(e){const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),rr}ArrayElement(e){return this.element=new ce.wE,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const ia=na;const oa=class extends wo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-required"),t}};const aa=function(){return!1};const ca=class extends zo{specPath;ignoredFields;fieldPatternPredicate=aa;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(ho(t))&&this.fieldPatternPredicate(ho(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(_n(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ho(t))||this.element.content.push(_n(s))})),this.copyMetaAndAttributes(e,this.element),rr}};const la=class extends ca{constructor(e){super(e),this.fieldPatternPredicate=Go}};class ua extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const da=ua;class ma extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const pa=ma;class ha extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const _a=ha;const fa=class extends wo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-enum"),t}};const ga=class extends wo{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 ya extends(qo(zo,Ko,wo)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-allOf")}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const va=ya;class ba extends(qo(zo,Ko,wo)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const wa=ba;class Ea extends(qo(zo,Ko,wo)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){return e.forEach((e=>{const t=ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const xa=Ea;class Sa extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-definitions"),this.specPath=e=>ra(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}}const ja=Sa;class Oa extends(qo(zo,Ko,wo)){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),rr}}const Pa=Oa;class Ta extends(qo(Zo,wo)){constructor(e){super(e),this.element=new Wi,this.specPath=ne(["document","objects","JSONReference"])}ObjectElement(e){const t=Zo.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Aa=Ta;const Ma=class extends wo{StringElement(e){const t=this.enter(e);return this.element.classes.push("reference-value"),t}};const Fa=d((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 Na=l((function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}}));var Ra=u((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const ka=Ra;const Ia=l($r);const Ca=K(Qi);const $a=Le(kn,Vo);function Da(e){return function(e){if(Array.isArray(e))return La(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 La(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)?La(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 La(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 qa=we(ka(Na((function(e,t){return e.length>t.length}))),_r,f("length")),Ba=qt((function(e,t,s){var r=s.apply(void 0,Da(e));return Ca(r)?Ia(r):t}));const Ua=Fa($a,(function(e){var t=qa(e);return C(t,(function(){for(var t=arguments.length,s=new Array(t),r=0;r<t;r++)s[r]=arguments[r];return ge(Ba(s),void 0,e)}))}),ie);const Va=class extends zo{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Fa(e,ne(t),ie))),s=Ua(t)(e);return this.element=this.toRefractedElement(s,e),rr}};const Ha=class extends Va{constructor(e){super(e),this.alternator=[{predicate:ra,specPath:["document","objects","JSONReference"]},{predicate:oo,specPath:["document","objects","JSONSchema"]}]}};class Ja extends(qo(Zo,wo)){constructor(e){super(e),this.element=new Zi,this.specPath=ne(["document","objects","Media"])}}const Ga=Ja;class Wa extends(qo(Zo,wo)){constructor(e){super(e),this.element=new Yi,this.specPath=ne(["document","objects","LinkDescription"])}}const za=Wa,Za={visitors:{value:wo,JSONSchemaOrJSONReferenceVisitor:Ha,document:{objects:{JSONSchema:{$visitor:sa,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:Ha,items:ia,maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:oa,properties:da,additionalProperties:Ha,patternProperties:pa,dependencies:_a,enum:fa,type:ga,allOf:va,anyOf:wa,oneOf:xa,not:Ha,definitions:ja,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:Pa,media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{$visitor:Aa,fixedFields:{$ref:Ma}},Media:{$visitor:Ga,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{$visitor:za,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ha,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ha}}}}}},Ka=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ya={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...En},Xa={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",Ji),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",Yi),t}},Qa=()=>{const e=dt(Xa);return{predicates:{...t,isStringElement:zr},namespace:e}},ec=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Za}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:Qa,visitorOptions:{keyMap:Ya,nodeTypeGetter:Ka}})},tc=e=>(t,s={})=>ec(t,{specPath:e,...s});Ji.refract=tc(["visitors","document","objects","JSONSchema","$visitor"]),Wi.refract=tc(["visitors","document","objects","JSONReference","$visitor"]),Zi.refract=tc(["visitors","document","objects","Media","$visitor"]),Yi.refract=tc(["visitors","document","objects","LinkDescription","$visitor"]);const sc=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Vi("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Vi("idProp setter in Schema class is not not supported.")}get $schema(){throw new Vi("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Vi("$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 Vi("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Vi("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Vi("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Vi("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 Vi("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Vi("definitions setter in Schema class is not not supported.")}get base(){throw new Vi("base getter in Schema class is not not supported.")}set base(e){throw new Vi("base setter in Schema class is not not supported.")}get links(){throw new Vi("links getter in Schema class is not not supported.")}set links(e){throw new Vi("links setter in Schema class is not not supported.")}get media(){throw new Vi("media getter in Schema class is not not supported.")}set media(e){throw new Vi("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 rc extends ce.Sh{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}}const nc=rc;class ic 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 oc=ic;class ac 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 cc=ac;class lc 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 uc=lc;class dc 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 mc=dc;class pc 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 hc=pc;const _c=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=vo(t.meta,e.meta),ln(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=vo(t.attributes,e.attributes))}};const fc=class extends _c{enter(e){return this.element=_n(e),rr}};const gc=class extends _c{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 Wo(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=Pn(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Ce(Ke,["visitors",...e],this.specObj)?Pn(["visitors",...e],this.specObj):Pn(["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 fc&&(null==r?void 0:r.constructor)===fc?_n(t):(xn(t,r,s),r.element)}};var yc=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?$r(s):s},e}();function vc(e){return function(t){return new yc(e,t)}}const bc=u(T(["take"],vc,(function(e,t){return ve(0,e<0?1/0:e,t)})));const wc=u((function(e,t){return re(bc(e.length,t),e)})),Ec=e=>Xr(e)&&e.hasKey("$ref"),xc=Xr,Sc=Xr,jc=e=>zr(e.key)&&wc("x-",ho(e.key));const Oc=class extends gc{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=jc;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(zr(r)&&s.includes(ho(r))&&!this.ignoredFields.includes(ho(r))){const s=this.toRefractedElement([...t,"fixedFields",ho(r)],e),i=new ce.Pr(_n(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(ho(r))||this.element.content.push(_n(n))})),this.copyMetaAndAttributes(e,this.element),rr}};class Pc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Oi,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){return Oc.prototype.ObjectElement.call(this,e)}}const Tc=Pc;class Ac extends(qo(gc,fc)){StringElement(e){const t=new Si(ho(e));return this.copyMetaAndAttributes(e,t),this.element=t,rr}}const Mc=Ac;const Fc=class extends gc{MemberElement(e){return this.element=_n(e),this.element.classes.push("specification-extension"),rr}};class Nc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new mi,this.specPath=ne(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const Rc=Nc;const kc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class Ic extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ei,this.specPath=ne(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const Cc=Ic;class $c extends(qo(Oc,fc)){constructor(e){super(e),this.element=new hi,this.specPath=ne(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const Dc=$c;class Lc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new fi,this.specPath=ne(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return(zr(this.element.operationId)||zr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}const qc=Lc;const Bc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Uc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};const Vc=class extends gc{specPath;ignoredFields;fieldPatternPredicate=aa;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=jc;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(ho(t))&&this.fieldPatternPredicate(ho(t))){const r=this.specPath(e),n=this.toRefractedElement(r,e),i=new ce.Pr(_n(t),n);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(ho(t))||this.element.content.push(_n(s))})),this.copyMetaAndAttributes(e,this.element),rr}};const Hc=class extends Vc{constructor(e){super(e),this.fieldPatternPredicate=Go}};class Jc extends ce.Sh{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass)}}const Gc=Jc;class Wc extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Gc,this.specPath=ne(["value"])}}const zc=Wc;class Zc extends(qo(Oc,fc)){constructor(e){super(e),this.element=new cc,this.specPath=ne(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const Kc=Zc;const Yc=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}};class Xc extends ce.wE{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass)}}const Qc=Xc;class el extends(qo(gc,fc)){constructor(e){super(e),this.element=new Qc}ArrayElement(e){return e.forEach((e=>{const t=xc(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const tl=el;class sl extends(qo(Oc,fc)){constructor(e){super(e),this.element=new uc,this.specPath=ne(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const rl=sl;class nl extends ce.Sh{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(nl.primaryClass)}}const il=nl;class ol extends(qo(Hc,fc)){constructor(e){super(e),this.element=new il,this.specPath=ne(["document","objects","ServerVariable"])}}const al=ol;class cl extends(qo(Oc,fc)){constructor(e){super(e),this.element=new yi,this.specPath=ne(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const ll=cl;const ul=class extends gc{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>Fa(e,ne(t),ie))),s=Ua(t)(e);return this.element=this.toRefractedElement(s,e),rr}},dl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kn||e(r)&&t("callback",r)&&s("object",r))),ml=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xn||e(r)&&t("components",r)&&s("object",r))),pl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ei||e(r)&&t("contact",r)&&s("object",r))),hl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oi||e(r)&&t("example",r)&&s("object",r))),_l=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ci||e(r)&&t("externalDocumentation",r)&&s("object",r))),fl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ui||e(r)&&t("header",r)&&s("object",r))),gl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof mi||e(r)&&t("info",r)&&s("object",r))),yl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof hi||e(r)&&t("license",r)&&s("object",r))),vl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof fi||e(r)&&t("link",r)&&s("object",r))),bl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Si||e(r)&&t("openapi",r)&&s("string",r))),wl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Oi||e(n)&&t("openApi3_0",n)&&s("object",n)&&r("api",n))),El=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ti||e(r)&&t("operation",r)&&s("object",r))),xl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mi||e(r)&&t("parameter",r)&&s("object",r))),Sl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ni||e(r)&&t("pathItem",r)&&s("object",r))),jl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof ki||e(r)&&t("paths",r)&&s("object",r))),Ol=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ci||e(r)&&t("reference",r)&&s("object",r))),Pl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Di||e(r)&&t("requestBody",r)&&s("object",r))),Tl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof qi||e(r)&&t("response",r)&&s("object",r))),Al=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ui||e(r)&&t("responses",r)&&s("object",r))),Ml=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof sc||e(r)&&t("schema",r)&&s("object",r))),Fl=e=>Yr(e)&&e.classes.includes("boolean-json-schema"),Nl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof nc||e(r)&&t("securityRequirement",r)&&s("object",r))),Rl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof oc||e(r)&&t("securityScheme",r)&&s("object",r))),kl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof cc||e(r)&&t("server",r)&&s("object",r))),Il=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof uc||e(r)&&t("serverVariable",r)&&s("object",r))),Cl=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof yi||e(r)&&t("mediaType",r)&&s("object",r))),$l=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Qc||e(n)&&t("array",n)&&s("array",n)&&r("servers",n)));class Dl extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const Ll=Dl;class ql extends(qo(Hc,fc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("examples"),this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const Bl=ql;class Ul extends ce.Sh{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ul.primaryClass),this.classes.push("examples")}}const Vl=Ul;const Hl=class extends Bl{constructor(e){super(e),this.element=new Vl}};class Jl extends ce.Sh{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Jl.primaryClass)}}const Gl=Jl;class Wl extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Gl,this.specPath=ne(["document","objects","Encoding"])}}const zl=Wl;class Zl extends(qo(Hc,fc)){constructor(e){super(e),this.element=new nc,this.specPath=ne(["value"])}}const Kl=Zl;class Yl extends ce.wE{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Yl.primaryClass)}}const Xl=Yl;class Ql extends(qo(gc,fc)){constructor(e){super(e),this.element=new Xl}ArrayElement(e){return e.forEach((e=>{if(Xr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(_n(e))})),this.copyMetaAndAttributes(e,this.element),rr}}const eu=Ql;class tu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Xn,this.specPath=ne(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const su=tu;class ru extends(qo(Oc,fc)){constructor(e){super(e),this.element=new mc,this.specPath=ne(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const nu=ru;class iu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ci,this.specPath=ne(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const ou=iu;const au=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class cu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Mi,this.specPath=ne(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.contentProp)&&this.element.contentProp.filter(Cl).forEach(((e,t)=>{e.setMetaProperty("media-type",ho(t))})),t}}const lu=cu;class uu extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const du=uu;class mu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ui,this.specPath=ne(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const pu=mu;class hu extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Schema"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}const _u=hu;class fu extends ce.Sh{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(fu.primaryClass),this.classes.push("examples")}}const gu=fu;const yu=class extends Bl{constructor(e){super(e),this.element=new gu}};class vu extends(qo(Hc,fc)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("content"),this.specPath=ne(["document","objects","MediaType"])}}const bu=vu;class wu extends ce.Sh{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(wu.primaryClass),this.classes.push("content")}}const Eu=wu;const xu=class extends bu{constructor(e){super(e),this.element=new Eu}};class Su extends(qo(Oc,fc)){constructor(e){super(e),this.element=new sc,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const ju=Su,Ou=Za.visitors.document.objects.JSONSchema.fixedFields.allOf;const Pu=class extends Ou{ArrayElement(e){const t=Ou.prototype.ArrayElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Tu=Za.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Au=class extends Tu{ArrayElement(e){const t=Tu.prototype.ArrayElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Mu=Za.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Fu=class extends Mu{ArrayElement(e){const t=Mu.prototype.ArrayElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Nu=Za.visitors.document.objects.JSONSchema.fixedFields.items;const Ru=class extends Nu{ObjectElement(e){const t=Nu.prototype.ObjectElement.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}ArrayElement(e){return this.enter(e)}},ku=Za.visitors.document.objects.JSONSchema.fixedFields.properties;const Iu=class extends ku{ObjectElement(e){const t=ku.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}},Cu=Za.visitors.document.objects.JSONSchema.fixedFields.type;const $u=class extends Cu{ArrayElement(e){return this.enter(e)}},Du=Za.visitors.JSONSchemaOrJSONReferenceVisitor;const Lu=class extends Du{ObjectElement(e){const t=Du.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}};class qu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new si,this.specPath=ne(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const Bu=qu;class Uu extends ce.Sh{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Uu.primaryClass)}}const Vu=Uu;class Hu extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Vu,this.specPath=ne(["value"])}}const Ju=Hu;class Gu extends(qo(Oc,fc)){constructor(e){super(e),this.element=new hc,this.specPath=ne(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const Wu=Gu;class zu extends ce.Sh{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(zu.primaryClass),this.classes.push("examples")}}const Zu=zu;const Ku=class extends Bl{constructor(e){super(e),this.element=new Zu}};class Yu extends ce.Sh{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(Yu.primaryClass),this.classes.push("content")}}const Xu=Yu;const Qu=class extends bu{constructor(e){super(e),this.element=new Xu}};class ed extends ce.Sh{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(ed.primaryClass)}}const td=ed;class sd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new td,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}const rd=sd;class nd extends ce.Sh{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(nd.primaryClass)}}const id=nd;class od extends(qo(Hc,fc)){constructor(e){super(e),this.element=new id,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tl).forEach(((e,t)=>{e.setMetaProperty("http-status-code",ho(t))})),t}}const ad=od;class cd extends ce.Sh{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(cd.primaryClass),this.classes.push("parameters")}}const ld=cd;class ud extends(qo(Hc,fc)){constructor(e){super(e),this.element=new ld,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}const dd=ud;class md extends ce.Sh{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(md.primaryClass),this.classes.push("examples")}}const pd=md;class hd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new pd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}const _d=hd;class fd extends ce.Sh{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(fd.primaryClass)}}const gd=fd;class yd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new gd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}const vd=yd;class bd extends ce.Sh{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(bd.primaryClass)}}const wd=bd;class Ed extends(qo(Hc,fc)){constructor(e){super(e),this.element=new wd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(fl).forEach(((e,t)=>{e.setMetaProperty("header-name",ho(t))})),t}}const xd=Ed;class Sd extends ce.Sh{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Sd.primaryClass)}}const jd=Sd;class Od extends(qo(Hc,fc)){constructor(e){super(e),this.element=new jd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}const Pd=Od;class Td extends ce.Sh{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Td.primaryClass)}}const Ad=Td;class Md extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Ad,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const Fd=Md;class Nd extends ce.Sh{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Nd.primaryClass)}}const Rd=Nd;class kd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Rd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const Id=kd;class Cd extends(qo(Oc,fc)){constructor(e){super(e),this.element=new oi,this.specPath=ne(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return zr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}const $d=Cd;const Dd=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ld extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ci,this.specPath=ne(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const qd=Ld;class Bd extends(qo(Oc,fc)){constructor(e){super(e),this.element=new ni,this.specPath=ne(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.headers)&&this.element.headers.filter(fl).forEach(((e,t)=>{e.setMetaProperty("header-name",ho(t))})),t}}const Ud=Bd;class Vd extends ce.Sh{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Vd.primaryClass)}}const Hd=Vd;class Jd extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Hd,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!fl(e))return;const s=ho(t);e.setMetaProperty("headerName",s)})),t}}const Gd=Jd;class Wd extends(qo(Vc,fc)){constructor(e){super(e),this.element=new ki,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=oo}ObjectElement(e){const t=Vc.prototype.ObjectElement.call(this,e);return this.element.filter(Sl).forEach(((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.setMetaProperty("path",_n(t))})),t}}const zd=Wd;class Zd extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Di,this.specPath=ne(["document","objects","RequestBody"])}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.contentProp)&&this.element.contentProp.filter(Cl).forEach(((e,t)=>{e.setMetaProperty("media-type",ho(t))})),t}}const Kd=Zd;class Yd extends ce.Sh{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Yd.primaryClass),this.classes.push("content")}}const Xd=Yd;const Qd=class extends bu{constructor(e){super(e),this.element=new Xd}};class em extends(qo(Vc,fc)){constructor(e){super(e),this.element=new Kn,this.specPath=ne(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Sl).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",ho(t))})),t}}const tm=em;class sm extends(qo(Oc,fc)){constructor(e){super(e),this.element=new qi,this.specPath=ne(["document","objects","Response"])}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return Xr(this.element.contentProp)&&this.element.contentProp.filter(Cl).forEach(((e,t)=>{e.setMetaProperty("media-type",ho(t))})),Xr(this.element.headers)&&this.element.headers.filter(fl).forEach(((e,t)=>{e.setMetaProperty("header-name",ho(t))})),t}}const rm=sm;class nm extends ce.Sh{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(nm.primaryClass)}}const im=nm;class om extends(qo(Hc,fc)){constructor(e){super(e),this.element=new im,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!fl(e))return;const s=ho(t);e.setMetaProperty("header-name",s)})),t}}const am=om;class cm extends ce.Sh{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(cm.primaryClass),this.classes.push("content")}}const lm=cm;const um=class extends bu{constructor(e){super(e),this.element=new lm}};class dm extends ce.Sh{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(dm.primaryClass)}}const mm=dm;class pm extends(qo(Hc,fc)){constructor(e){super(e),this.element=new mm,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}const hm=pm;function _m(e){return"[object Number]"===Object.prototype.toString.call(e)}const fm=u((function(e,t){if(!_m(e)||!_m(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 gm(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?!!Se(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?!!Se(e,s._items[n])||(t&&s._items[n].push(e),!1):(t&&(s._items[n]=[e]),!1)}}const ym=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!gm(e,!0,this)},e.prototype.has=function(e){return gm(e,!1,this)},e}();const vm=u((function(e,t){for(var s=[],r=0,n=e.length,i=t.length,o=new ym,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 bm extends(qo(Oc,Vc)){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,...vm(e.keys(),t)],Oc.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Vc.prototype.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return rr}}const wm=bm;class Em extends(qo(wm,fc)){constructor(e){super(e),this.element=new Ui,this.specPathFixedFields=ne(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${fm(100,600).join("|")})$`).test(String(e))}ObjectElement(e){const t=wm.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Tl).forEach(((e,t)=>{const s=_n(t);this.fieldPatternPredicate(ho(s))&&e.setMetaProperty("http-status-code",s)})),t}}const xm=Em;class Sm extends(qo(ul,fc)){constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","Response"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)?this.element.setMetaProperty("referenced-element","response"):Tl(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}const jm=Sm;class Om extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ti,this.specPath=ne(["document","objects","Operation"])}}const Pm=Om;class Tm extends ce.wE{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Tm.primaryClass)}}const Am=Tm;const Mm=class extends fc{constructor(e){super(e),this.element=new Am}ArrayElement(e){return this.element=this.element.concat(_n(e)),rr}};class Fm extends ce.wE{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Fm.primaryClass),this.classes.push("parameters")}}const Nm=Fm;class Rm extends(qo(gc,fc)){constructor(e){super(e),this.element=new ce.wE,this.element.classes.push("parameters")}ArrayElement(e){return e.forEach((e=>{const t=Ec(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ol(s)&&s.setMetaProperty("referenced-element","parameter"),this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const km=Rm;const Im=class extends km{constructor(e){super(e),this.element=new Nm}};const Cm=class extends ul{constructor(e){super(e),this.alternator=[{predicate:Ec,specPath:["document","objects","Reference"]},{predicate:oo,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=ul.prototype.enter.call(this,e);return Ol(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}};class $m extends ce.Sh{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push($m.primaryClass)}}const Dm=$m;class Lm extends(qo(Hc,fc)){specPath;constructor(e){super(e),this.element=new Dm,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Ol).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}const qm=Lm;class Bm extends ce.wE{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Bm.primaryClass),this.classes.push("security")}}const Um=Bm;class Vm extends(qo(gc,fc)){constructor(e){super(e),this.element=new Um}ArrayElement(e){return e.forEach((e=>{const t=Xr(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const Hm=Vm;class Jm extends ce.wE{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jm.primaryClass),this.classes.push("servers")}}const Gm=Jm;const Wm=class extends tl{constructor(e){super(e),this.element=new Gm}};class zm extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ni,this.specPath=ne(["document","objects","PathItem"])}ObjectElement(e){const t=Oc.prototype.ObjectElement.call(this,e);return this.element.filter(El).forEach(((e,t)=>{const s=_n(t);s.content=ho(s).toUpperCase(),e.setMetaProperty("http-method",s)})),zr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}const Zm=zm;const Km=class extends fc{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class Ym extends ce.wE{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ym.primaryClass),this.classes.push("servers")}}const Xm=Ym;const Qm=class extends tl{constructor(e){super(e),this.element=new Xm}};class ep extends ce.wE{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ep.primaryClass),this.classes.push("parameters")}}const tp=ep;const sp=class extends km{constructor(e){super(e),this.element=new tp}};class rp extends(qo(Oc,fc)){constructor(e){super(e),this.element=new oc,this.specPath=ne(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const np=rp;class ip extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Ei,this.specPath=ne(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const op=ip;class ap extends(qo(Oc,fc)){constructor(e){super(e),this.element=new bi,this.specPath=ne(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const cp=ap;class lp extends ce.Sh{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(lp.primaryClass)}}const up=lp;class dp extends(qo(Hc,fc)){constructor(e){super(e),this.element=new up,this.specPath=ne(["value"])}}const mp=dp;class pp extends ce.wE{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(pp.primaryClass)}}const hp=pp;class _p extends(qo(gc,fc)){constructor(e){super(e),this.element=new hp}ArrayElement(e){return e.forEach((e=>{const t=Sc(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)})),this.copyMetaAndAttributes(e,this.element),rr}}const fp=_p,{fixedFields:gp}=Za.visitors.document.objects.JSONSchema,yp={visitors:{value:fc,document:{objects:{OpenApi:{$visitor:Tc,fixedFields:{openapi:Mc,info:{$ref:"#/visitors/document/objects/Info"},servers:tl,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:eu,tags:fp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Rc,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:kc}},Contact:{$visitor:Cc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Dc,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Kc,fixedFields:{url:Yc,description:{$ref:"#/visitors/value"},variables:al}},ServerVariable:{$visitor:rl,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:su,fixedFields:{schemas:rd,responses:ad,parameters:dd,examples:_d,requestBodies:vd,headers:xd,securitySchemes:Pd,links:Fd,callbacks:Id}},Paths:{$visitor:zd},PathItem:{$visitor:Zm,fixedFields:{$ref:Km,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:sp}},Operation:{$visitor:Pm,fixedFields:{tags:Mm,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Im,requestBody:Cm,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:qm,deprecated:{$ref:"#/visitors/value"},security:Hm,servers:Wm}},ExternalDocumentation:{$visitor:qd,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:lu,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:du,example:{$ref:"#/visitors/value"},examples:Ku,content:Qu}},RequestBody:{$visitor:Kd,fixedFields:{description:{$ref:"#/visitors/value"},content:Qd,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:ll,fixedFields:{schema:Ll,example:{$ref:"#/visitors/value"},examples:Hl,encoding:zl}},Encoding:{$visitor:Ud,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Gd,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:xm,fixedFields:{default:jm}},Response:{$visitor:rm,fixedFields:{description:{$ref:"#/visitors/value"},headers:am,content:um,links:hm}},Callback:{$visitor:tm},Example:{$visitor:$d,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Dd}},Link:{$visitor:qc,fixedFields:{operationRef:Bc,operationId:Uc,parameters:zc,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:pu,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:_u,example:{$ref:"#/visitors/value"},examples:yu,content:xu}},Tag:{$visitor:nu,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ou,fixedFields:{$ref:au}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:ju,fixedFields:{title:gp.title,multipleOf:gp.multipleOf,maximum:gp.maximum,exclusiveMaximum:gp.exclusiveMaximum,minimum:gp.minimum,exclusiveMinimum:gp.exclusiveMinimum,maxLength:gp.maxLength,minLength:gp.minLength,pattern:gp.pattern,maxItems:gp.maxItems,minItems:gp.minItems,uniqueItems:gp.uniqueItems,maxProperties:gp.maxProperties,minProperties:gp.minProperties,required:gp.required,enum:gp.enum,type:$u,allOf:Pu,anyOf:Au,oneOf:Fu,not:Lu,items:Ru,properties:Iu,additionalProperties:Lu,description:gp.description,format:gp.format,default:gp.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:Bu,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ju}},XML:{$visitor:Wu,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:np,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:op,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:cp,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:mp}},SecurityRequirement:{$visitor:Kl}},extension:{$visitor:Fc}}}},vp=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},bp={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"],...En},wp={namespace:e=>{const{base:t}=e;return t.register("callback",Kn),t.register("components",Xn),t.register("contact",ei),t.register("discriminator",si),t.register("encoding",ni),t.register("example",oi),t.register("externalDocumentation",ci),t.register("header",ui),t.register("info",mi),t.register("license",hi),t.register("link",fi),t.register("mediaType",yi),t.register("oAuthFlow",bi),t.register("oAuthFlows",Ei),t.register("openapi",Si),t.register("openApi3_0",Oi),t.register("operation",Ti),t.register("parameter",Mi),t.register("pathItem",Ni),t.register("paths",ki),t.register("reference",Ci),t.register("requestBody",Di),t.register("response",qi),t.register("responses",Ui),t.register("schema",sc),t.register("securityRequirement",nc),t.register("securityScheme",oc),t.register("server",cc),t.register("serverVariable",uc),t.register("tag",mc),t.register("xml",hc),t}},Ep=()=>{const e=dt(wp);return{predicates:{...s,isElement:Wr,isStringElement:zr,isArrayElement:Qr,isObjectElement:Xr,isMemberElement:en,includesClasses:dn,hasElementSourceMap:ln},namespace:e}},xp=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=io(yp),i=new(Pn(t,n))({specObj:n});return xn(r,i),Ln(i.element,s,{toolboxCreator:Ep,visitorOptions:{keyMap:bp,nodeTypeGetter:vp}})},Sp=e=>(t,s={})=>xp(t,{specPath:e,...s});Kn.refract=Sp(["visitors","document","objects","Callback","$visitor"]),Xn.refract=Sp(["visitors","document","objects","Components","$visitor"]),ei.refract=Sp(["visitors","document","objects","Contact","$visitor"]),oi.refract=Sp(["visitors","document","objects","Example","$visitor"]),si.refract=Sp(["visitors","document","objects","Discriminator","$visitor"]),ni.refract=Sp(["visitors","document","objects","Encoding","$visitor"]),ci.refract=Sp(["visitors","document","objects","ExternalDocumentation","$visitor"]),ui.refract=Sp(["visitors","document","objects","Header","$visitor"]),mi.refract=Sp(["visitors","document","objects","Info","$visitor"]),hi.refract=Sp(["visitors","document","objects","License","$visitor"]),fi.refract=Sp(["visitors","document","objects","Link","$visitor"]),yi.refract=Sp(["visitors","document","objects","MediaType","$visitor"]),bi.refract=Sp(["visitors","document","objects","OAuthFlow","$visitor"]),Ei.refract=Sp(["visitors","document","objects","OAuthFlows","$visitor"]),Si.refract=Sp(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Oi.refract=Sp(["visitors","document","objects","OpenApi","$visitor"]),Ti.refract=Sp(["visitors","document","objects","Operation","$visitor"]),Mi.refract=Sp(["visitors","document","objects","Parameter","$visitor"]),Ni.refract=Sp(["visitors","document","objects","PathItem","$visitor"]),ki.refract=Sp(["visitors","document","objects","Paths","$visitor"]),Ci.refract=Sp(["visitors","document","objects","Reference","$visitor"]),Di.refract=Sp(["visitors","document","objects","RequestBody","$visitor"]),qi.refract=Sp(["visitors","document","objects","Response","$visitor"]),Ui.refract=Sp(["visitors","document","objects","Responses","$visitor"]),sc.refract=Sp(["visitors","document","objects","Schema","$visitor"]),nc.refract=Sp(["visitors","document","objects","SecurityRequirement","$visitor"]),oc.refract=Sp(["visitors","document","objects","SecurityScheme","$visitor"]),cc.refract=Sp(["visitors","document","objects","Server","$visitor"]),uc.refract=Sp(["visitors","document","objects","ServerVariable","$visitor"]),mc.refract=Sp(["visitors","document","objects","Tag","$visitor"]),hc.refract=Sp(["visitors","document","objects","XML","$visitor"]);const jp=class extends Kn{};const Op=class extends Xn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Pp=class extends ei{};const Tp=class extends si{};const Ap=class extends ni{};const Mp=class extends oi{};const Fp=class extends ci{};const Np=class extends ui{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Rp=class extends mi{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 kp extends ce.Om{static default=new kp("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const Ip=kp;const Cp=class extends hi{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const $p=class extends fi{};const Dp=class extends yi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Lp=class extends bi{};const qp=class extends Ei{};const Bp=class extends Si{};class Up 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 Vp=Up;const Hp=class extends Ti{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Jp=class extends Mi{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Gp=class extends Ni{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 Wp=class extends ki{};class zp extends Ci{}Object.defineProperty(zp.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(zp.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Zp=zp;const Kp=class extends Di{};const Yp=class extends qi{};const Xp=class extends Ui{};const Qp=class extends Ji{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idProp(){throw new Vi("id keyword from Core vocabulary has been renamed to $id.")}set idProp(e){throw new Vi("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 eh=class extends Yi{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 Vi("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new Vi("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 Vi("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new Vi("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new Vi("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new Vi("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 th=d((function e(t,s,r){if(0===t.length)return s;var n=t[0];if(t.length>1){var i=!Qi(r)&&$(n,r)&&"object"==typeof r[n]?r[n]:p(t[1])?[]:{};s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(p(e)&&w(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 sh=th;const rh=d((function(e,t,s){var r=Array.prototype.slice.call(s,0);return r.splice(e,t),r}));var nh=d((function(e,t,s){return sh([e],t,s)}));const ih=nh;var oh=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(p(e)&&w(t))return rh(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(p(e)&&w(t))return[].concat(t);var s={};for(var r in t)s[r]=t[r];return s}(r,s):ih(r,e(n,s[r]),s)}}));const ah=oh;const ch=class extends sa{constructor(e){super(e),this.element=new Qp}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 lh=class extends ia{BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rr}};const uh=class extends wo{ArrayElement(e){const t=this.enter(e);return this.element.classes.push("json-schema-examples"),t}};const dh=class extends za{constructor(e){super(e),this.element=new eh}},mh=we(sh(["visitors","document","objects","JSONSchema","$visitor"],ch),ah(["visitors","document","objects","JSONSchema","fixedFields","id"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$id"],Za.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","contains"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","items"],lh),sh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","const"],Za.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","examples"],uh),sh(["visitors","document","objects","LinkDescription","$visitor"],dh),sh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","LinkDescription","fixedFields","schema"]),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Za.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","LinkDescription","fixedFields","method"]),ah(["visitors","document","objects","LinkDescription","fixedFields","encType"]),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],Za.visitors.value))(Za),ph={JSONSchemaDraft6Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...En},hh=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Qp||e(r)&&t("JSONSchemaDraft6",r)&&s("object",r))),_h=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof eh||e(r)&&t("linkDescription",r)&&s("object",r))),fh={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft6",Qp),t.register("jSONReference",Wi),t.register("media",Zi),t.register("linkDescription",eh),t}},gh=()=>{const e=dt(fh);return{predicates:{...r,isStringElement:zr},namespace:e}},yh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=mh}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:gh,visitorOptions:{keyMap:ph,nodeTypeGetter:Ka}})},vh=e=>(t,s={})=>yh(t,{specPath:e,...s});Qp.refract=vh(["visitors","document","objects","JSONSchema","$visitor"]),eh.refract=vh(["visitors","document","objects","LinkDescription","$visitor"]);const bh=class extends Qp{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 Vi('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new Vi('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 wh=class extends eh{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 Vi("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new Vi("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 Vi("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new Vi("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 Eh=class extends ch{constructor(e){super(e),this.element=new bh}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const xh=class extends dh{constructor(e){super(e),this.element=new wh}},Sh=we(sh(["visitors","document","objects","JSONSchema","$visitor"],Eh),sh(["visitors","document","objects","JSONSchema","fixedFields","$comment"],mh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","if"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","then"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),sh(["visitors","document","objects","JSONSchema","fixedFields","else"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","JSONSchema","fixedFields","media"]),sh(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],mh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],mh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","$visitor"],xh),sh(["visitors","document","objects","LinkDescription","fixedFields","anchor"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],mh.visitors.value),ah(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),sh(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","description"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","$comment"],mh.visitors.value),sh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],mh.visitors.JSONSchemaOrJSONReferenceVisitor),ah(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],mh.visitors.value))(mh),jh={JSONSchemaDraft7Element:["content"],JSONReferenceElement:["content"],LinkDescriptionElement:["content"],...En},Oh=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof bh||e(r)&&t("JSONSchemaDraft7",r)&&s("object",r))),Ph=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof wh||e(r)&&t("linkDescription",r)&&s("object",r))),Th={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft7",bh),t.register("jSONReference",Wi),t.register("linkDescription",wh),t}},Ah=()=>{const e=dt(Th);return{predicates:{...n,isStringElement:zr},namespace:e}},Mh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=Sh}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:Ah,visitorOptions:{keyMap:jh,nodeTypeGetter:Ka}})},Fh=e=>(t,s={})=>Mh(t,{specPath:e,...s});bh.refract=Fh(["visitors","document","objects","JSONSchema","$visitor"]),wh.refract=Fh(["visitors","document","objects","LinkDescription","$visitor"]);const Nh=class extends bh{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 Vi("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new Vi("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 Vi("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new Vi("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 Rh=class extends wh{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 kh=class extends Eh{constructor(e){super(e),this.element=new Nh}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=Zo.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}};const Ih=class extends wo{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}};const Ch=class extends wo{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class $h extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=ne(["document","objects","JSONSchema"])}}const Dh=$h;class Lh extends(qo(zo,Ko,wo)){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),rr}}const qh=Lh;class Bh extends(qo(zo,Ko,wo)){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),rr}}const Uh=Bh;class Vh extends(qo(zo,Ko,wo)){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),rr}}const Hh=Vh;class Jh extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=ne(["document","objects","JSONSchema"])}}const Gh=Jh;class Wh extends(qo(zo,Ko,wo)){ObjectElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rr}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),rr}BooleanElement(e){return this.element=this.toRefractedElement(["document","objects","JSONSchema"],e),rr}}const zh=Wh;class Zh extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-properties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Kh=Zh;class Yh extends(qo(la,Ko,wo)){constructor(e){super(e),this.element=new ce.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=ne(["document","objects","JSONSchema"])}}const Xh=Yh;const Qh=class extends wo{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}};const e_=class extends xh{constructor(e){super(e),this.element=new Rh}},t_=we(sh(["visitors","document","objects","JSONSchema","$visitor"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Ih),sh(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Sh.visitors.value),ah(["visitors","document","objects","JSONReference","$visitor"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Ch),ah(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Dh),sh(["visitors","document","objects","JSONSchema","fixedFields","allOf"],qh),sh(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Uh),sh(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Hh),sh(["visitors","document","objects","JSONSchema","fixedFields","not"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","if"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","then"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","else"],kh),ah(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),sh(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Gh),sh(["visitors","document","objects","JSONSchema","fixedFields","items"],zh),sh(["visitors","document","objects","JSONSchema","fixedFields","contains"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","properties"],Kh),sh(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Xh),sh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],kh),sh(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Qh),sh(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Sh.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],kh),sh(["visitors","document","objects","LinkDescription","$visitor"],e_),sh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],kh),sh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],kh),sh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],kh),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],kh))(Sh),s_={JSONSchema201909Element:["content"],LinkDescriptionElement:["content"],...En},r_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Nh||e(r)&&t("JSONSchema201909",r)&&s("object",r))),n_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rh||e(r)&&t("linkDescription",r)&&s("object",r))),i_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema201909",Nh),t.register("linkDescription",Rh),t}},o_=()=>{const e=dt(i_);return{predicates:{...i,isStringElement:zr},namespace:e}},a_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=t_}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:o_,visitorOptions:{keyMap:s_,nodeTypeGetter:Ka}})},c_=e=>(t,s={})=>a_(t,{specPath:e,...s});Nh.refract=c_(["visitors","document","objects","JSONSchema","$visitor"]),Rh.refract=c_(["visitors","document","objects","LinkDescription","$visitor"]);const l_=class extends Nh{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 Vi("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new Vi("$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 Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new Vi("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const u_=class extends Rh{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 d_=class extends kh{constructor(e){super(e),this.element=new l_}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};class m_ extends(qo(zo,Ko,wo)){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),rr}}const p_=m_;const h_=class extends e_{constructor(e){super(e),this.element=new u_}},__=we(sh(["visitors","document","objects","JSONSchema","$visitor"],d_),ah(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],t_.visitors.value),ah(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),sh(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],t_.visitors.value),sh(["visitors","document","objects","JSONSchema","fixedFields","not"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","if"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","then"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","else"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],p_),sh(["visitors","document","objects","JSONSchema","fixedFields","items"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","contains"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],d_),ah(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),sh(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],d_),sh(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],d_),sh(["visitors","document","objects","LinkDescription","$visitor"],h_),sh(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],d_),sh(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],d_),sh(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],d_),sh(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],d_))(t_),f_={JSONSchema202012Element:["content"],LinkDescriptionElement:["content"],...En},g_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof l_||e(r)&&t("JSONSchema202012",r)&&s("object",r))),y_=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof u_||e(r)&&t("linkDescription",r)&&s("object",r))),v_={namespace:e=>{const{base:t}=e;return t.register("jSONSchema202012",l_),t.register("linkDescription",u_),t}},b_=()=>{const e=dt(v_);return{predicates:{...o,isStringElement:zr},namespace:e}},w_=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:s=[],specificationObj:r=__}={})=>{const n=(0,ce.e)(e),i=io(r),o=new(Pn(t,i))({specObj:i});return xn(n,o),Ln(o.element,s,{toolboxCreator:b_,visitorOptions:{keyMap:f_,nodeTypeGetter:Ka}})},E_=e=>(t,s={})=>w_(t,{specPath:e,...s});l_.refract=E_(["visitors","document","objects","JSONSchema","$visitor"]),u_.refract=E_(["visitors","document","objects","LinkDescription","$visitor"]);const x_=class extends l_{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 S_=class extends nc{};const j_=class extends oc{};const O_=class extends cc{};const P_=class extends uc{};const T_=class extends mc{};const A_=class extends hc{};class M_ extends(qo(Oc,fc)){constructor(e){super(e),this.element=new Vp,this.specPath=ne(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){return this.openApiGenericElement=e,Oc.prototype.ObjectElement.call(this,e)}}const F_=M_,N_=yp.visitors.document.objects.Info.$visitor;const R_=class extends N_{constructor(e){super(e),this.element=new Rp}},k_=yp.visitors.document.objects.Contact.$visitor;const I_=class extends k_{constructor(e){super(e),this.element=new Pp}},C_=yp.visitors.document.objects.License.$visitor;const $_=class extends C_{constructor(e){super(e),this.element=new Cp}},D_=yp.visitors.document.objects.Link.$visitor;const L_=class extends D_{constructor(e){super(e),this.element=new $p}};class q_ extends(qo(gc,fc)){StringElement(e){const t=new Ip(ho(e));return this.copyMetaAndAttributes(e,t),this.element=t,rr}}const B_=q_,U_=yp.visitors.document.objects.Server.$visitor;const V_=class extends U_{constructor(e){super(e),this.element=new O_}},H_=yp.visitors.document.objects.ServerVariable.$visitor;const J_=class extends H_{constructor(e){super(e),this.element=new P_}},G_=yp.visitors.document.objects.MediaType.$visitor;const W_=class extends G_{constructor(e){super(e),this.element=new Dp}},z_=yp.visitors.document.objects.SecurityRequirement.$visitor;const Z_=class extends z_{constructor(e){super(e),this.element=new S_}},K_=yp.visitors.document.objects.Components.$visitor;const Y_=class extends K_{constructor(e){super(e),this.element=new Op}},X_=yp.visitors.document.objects.Tag.$visitor;const Q_=class extends X_{constructor(e){super(e),this.element=new T_}},ef=yp.visitors.document.objects.Reference.$visitor;const tf=class extends ef{constructor(e){super(e),this.element=new Zp}},sf=yp.visitors.document.objects.Parameter.$visitor;const rf=class extends sf{constructor(e){super(e),this.element=new Jp}},nf=yp.visitors.document.objects.Header.$visitor;const of=class extends nf{constructor(e){super(e),this.element=new Np}},af=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof jp||e(r)&&t("callback",r)&&s("object",r))),cf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Op||e(r)&&t("components",r)&&s("object",r))),lf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Pp||e(r)&&t("contact",r)&&s("object",r))),uf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Mp||e(r)&&t("example",r)&&s("object",r))),df=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Fp||e(r)&&t("externalDocumentation",r)&&s("object",r))),mf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Np||e(r)&&t("header",r)&&s("object",r))),pf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Rp||e(r)&&t("info",r)&&s("object",r))),hf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Ip||e(r)&&t("jsonSchemaDialect",r)&&s("string",r))),_f=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Cp||e(r)&&t("license",r)&&s("object",r))),ff=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof $p||e(r)&&t("link",r)&&s("object",r))),gf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Bp||e(r)&&t("openapi",r)&&s("string",r))),yf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s,hasClass:r})=>n=>n instanceof Vp||e(n)&&t("openApi3_1",n)&&s("object",n)&&r("api",n))),vf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Hp||e(r)&&t("operation",r)&&s("object",r))),bf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Jp||e(r)&&t("parameter",r)&&s("object",r))),wf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Gp||e(r)&&t("pathItem",r)&&s("object",r))),Ef=e=>{if(!wf(e))return!1;if(!zr(e.$ref))return!1;const t=ho(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Wp||e(r)&&t("paths",r)&&s("object",r))),Sf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Zp||e(r)&&t("reference",r)&&s("object",r))),jf=e=>{if(!Sf(e))return!1;if(!zr(e.$ref))return!1;const t=ho(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Of=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Kp||e(r)&&t("requestBody",r)&&s("object",r))),Pf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Yp||e(r)&&t("response",r)&&s("object",r))),Tf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Xp||e(r)&&t("responses",r)&&s("object",r))),Af=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof x_||e(r)&&t("schema",r)&&s("object",r))),Mf=e=>Yr(e)&&e.classes.includes("boolean-json-schema"),Ff=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof S_||e(r)&&t("securityRequirement",r)&&s("object",r))),Nf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof j_||e(r)&&t("securityScheme",r)&&s("object",r))),Rf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof O_||e(r)&&t("server",r)&&s("object",r))),kf=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof P_||e(r)&&t("serverVariable",r)&&s("object",r))),If=Gr((({hasBasicElementProps:e,isElementType:t,primitiveEq:s})=>r=>r instanceof Dp||e(r)&&t("mediaType",r)&&s("object",r)));class Cf extends(qo(Oc,Ko,fc)){constructor(e){super(e),this.element=new x_,this.specPath=ne(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=Ip.default,this.passingOptionsNames.push("parent")}ObjectElement(e){this.handleDialectIdentifier(e),this.handleSchemaIdentifier(e),this.parent=this.element;const t=Oc.prototype.ObjectElement.call(this,e);return zr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),t}BooleanElement(e){return d_.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&hf(this.openApiSemanticElement.jsonSchemaDialect)?ho(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&zr(this.openApiGenericElement.get("jsonSchemaDialect"))?ho(this.openApiGenericElement.get("jsonSchemaDialect")):ho(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return d_.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return d_.prototype.handleSchemaIdentifier.call(this,e)}}const $f=Cf;const Df=class extends Dh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Lf=class extends qh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const qf=class extends Uh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Bf=class extends Hh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Uf=class extends Gh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Vf=class extends p_{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Hf=class extends Kh{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Jf=class extends Xh{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Gf=yp.visitors.document.objects.Discriminator.$visitor;const Wf=class extends Gf{constructor(e){super(e),this.element=new Tp,this.canSupportSpecificationExtensions=!0}},zf=yp.visitors.document.objects.XML.$visitor;const Zf=class extends zf{constructor(e){super(e),this.element=new A_}};class Kf extends(qo(Hc,fc)){constructor(e){super(e),this.element=new td,this.specPath=ne(["document","objects","Schema"])}}const Yf=Kf;class Xf extends ce.Sh{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Xf.primaryClass)}}const Qf=Xf;class eg extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Qf,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Sf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}const tg=eg,sg=yp.visitors.document.objects.Example.$visitor;const rg=class extends sg{constructor(e){super(e),this.element=new Mp}},ng=yp.visitors.document.objects.ExternalDocumentation.$visitor;const ig=class extends ng{constructor(e){super(e),this.element=new Fp}},og=yp.visitors.document.objects.Encoding.$visitor;const ag=class extends og{constructor(e){super(e),this.element=new Ap}},cg=yp.visitors.document.objects.Paths.$visitor;const lg=class extends cg{constructor(e){super(e),this.element=new Wp}},ug=yp.visitors.document.objects.RequestBody.$visitor;const dg=class extends ug{constructor(e){super(e),this.element=new Kp}},mg=yp.visitors.document.objects.Callback.$visitor;const pg=class extends mg{constructor(e){super(e),this.element=new jp,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=mg.prototype.ObjectElement.call(this,e);return this.element.filter(Sf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}},hg=yp.visitors.document.objects.Response.$visitor;const _g=class extends hg{constructor(e){super(e),this.element=new Yp}},fg=yp.visitors.document.objects.Responses.$visitor;const gg=class extends fg{constructor(e){super(e),this.element=new Xp}},yg=yp.visitors.document.objects.Operation.$visitor;const vg=class extends yg{constructor(e){super(e),this.element=new Hp}},bg=yp.visitors.document.objects.PathItem.$visitor;const wg=class extends bg{constructor(e){super(e),this.element=new Gp}},Eg=yp.visitors.document.objects.SecurityScheme.$visitor;const xg=class extends Eg{constructor(e){super(e),this.element=new j_}},Sg=yp.visitors.document.objects.OAuthFlows.$visitor;const jg=class extends Sg{constructor(e){super(e),this.element=new qp}},Og=yp.visitors.document.objects.OAuthFlow.$visitor;const Pg=class extends Og{constructor(e){super(e),this.element=new Lp}};class Tg extends ce.Sh{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Tg.primaryClass)}}const Ag=Tg;class Mg extends(qo(Hc,fc)){constructor(e){super(e),this.element=new Ag,this.specPath=e=>Ec(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Hc.prototype.ObjectElement.call(this,e);return this.element.filter(Sf).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(wf).forEach(((e,t)=>{e.setMetaProperty("webhook-name",ho(t))})),t}}const Fg=Mg,{JSONSchema:Ng,LinkDescription:Rg}=__.visitors.document.objects,kg={visitors:{value:yp.visitors.value,document:{objects:{OpenApi:{$visitor:F_,fixedFields:{openapi:yp.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:B_,servers:yp.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Fg,components:{$ref:"#/visitors/document/objects/Components"},security:yp.visitors.document.objects.OpenApi.fixedFields.security,tags:yp.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:R_,fixedFields:{title:yp.visitors.document.objects.Info.fixedFields.title,description:yp.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:yp.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:yp.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:I_,fixedFields:{name:yp.visitors.document.objects.Contact.fixedFields.name,url:yp.visitors.document.objects.Contact.fixedFields.url,email:yp.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:$_,fixedFields:{name:yp.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:yp.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:V_,fixedFields:{url:yp.visitors.document.objects.Server.fixedFields.url,description:yp.visitors.document.objects.Server.fixedFields.description,variables:yp.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:J_,fixedFields:{enum:yp.visitors.document.objects.ServerVariable.fixedFields.enum,default:yp.visitors.document.objects.ServerVariable.fixedFields.default,description:yp.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Y_,fixedFields:{schemas:Yf,responses:yp.visitors.document.objects.Components.fixedFields.responses,parameters:yp.visitors.document.objects.Components.fixedFields.parameters,examples:yp.visitors.document.objects.Components.fixedFields.examples,requestBodies:yp.visitors.document.objects.Components.fixedFields.requestBodies,headers:yp.visitors.document.objects.Components.fixedFields.headers,securitySchemes:yp.visitors.document.objects.Components.fixedFields.securitySchemes,links:yp.visitors.document.objects.Components.fixedFields.links,callbacks:yp.visitors.document.objects.Components.fixedFields.callbacks,pathItems:tg}},Paths:{$visitor:lg},PathItem:{$visitor:wg,fixedFields:{$ref:yp.visitors.document.objects.PathItem.fixedFields.$ref,summary:yp.visitors.document.objects.PathItem.fixedFields.summary,description:yp.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:yp.visitors.document.objects.PathItem.fixedFields.servers,parameters:yp.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:vg,fixedFields:{tags:yp.visitors.document.objects.Operation.fixedFields.tags,summary:yp.visitors.document.objects.Operation.fixedFields.summary,description:yp.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:yp.visitors.document.objects.Operation.fixedFields.operationId,parameters:yp.visitors.document.objects.Operation.fixedFields.parameters,requestBody:yp.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:yp.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:yp.visitors.document.objects.Operation.fixedFields.deprecated,security:yp.visitors.document.objects.Operation.fixedFields.security,servers:yp.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:ig,fixedFields:{description:yp.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:yp.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:rf,fixedFields:{name:yp.visitors.document.objects.Parameter.fixedFields.name,in:yp.visitors.document.objects.Parameter.fixedFields.in,description:yp.visitors.document.objects.Parameter.fixedFields.description,required:yp.visitors.document.objects.Parameter.fixedFields.required,deprecated:yp.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:yp.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:yp.visitors.document.objects.Parameter.fixedFields.style,explode:yp.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:yp.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:yp.visitors.document.objects.Parameter.fixedFields.example,examples:yp.visitors.document.objects.Parameter.fixedFields.examples,content:yp.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:dg,fixedFields:{description:yp.visitors.document.objects.RequestBody.fixedFields.description,content:yp.visitors.document.objects.RequestBody.fixedFields.content,required:yp.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:W_,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:yp.visitors.document.objects.MediaType.fixedFields.example,examples:yp.visitors.document.objects.MediaType.fixedFields.examples,encoding:yp.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:ag,fixedFields:{contentType:yp.visitors.document.objects.Encoding.fixedFields.contentType,headers:yp.visitors.document.objects.Encoding.fixedFields.headers,style:yp.visitors.document.objects.Encoding.fixedFields.style,explode:yp.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:yp.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:gg,fixedFields:{default:yp.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:_g,fixedFields:{description:yp.visitors.document.objects.Response.fixedFields.description,headers:yp.visitors.document.objects.Response.fixedFields.headers,content:yp.visitors.document.objects.Response.fixedFields.content,links:yp.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:pg},Example:{$visitor:rg,fixedFields:{summary:yp.visitors.document.objects.Example.fixedFields.summary,description:yp.visitors.document.objects.Example.fixedFields.description,value:yp.visitors.document.objects.Example.fixedFields.value,externalValue:yp.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:L_,fixedFields:{operationRef:yp.visitors.document.objects.Link.fixedFields.operationRef,operationId:yp.visitors.document.objects.Link.fixedFields.operationId,parameters:yp.visitors.document.objects.Link.fixedFields.parameters,requestBody:yp.visitors.document.objects.Link.fixedFields.requestBody,description:yp.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:of,fixedFields:{description:yp.visitors.document.objects.Header.fixedFields.description,required:yp.visitors.document.objects.Header.fixedFields.required,deprecated:yp.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:yp.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:yp.visitors.document.objects.Header.fixedFields.style,explode:yp.visitors.document.objects.Header.fixedFields.explode,allowReserved:yp.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:yp.visitors.document.objects.Header.fixedFields.example,examples:yp.visitors.document.objects.Header.fixedFields.examples,content:yp.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Q_,fixedFields:{name:yp.visitors.document.objects.Tag.fixedFields.name,description:yp.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:tf,fixedFields:{$ref:yp.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Rg},Schema:{$visitor:$f,fixedFields:{...Ng.fixedFields,$defs:Df,allOf:Lf,anyOf:qf,oneOf:Bf,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:Uf,prefixItems:Vf,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Hf,patternProperties:Jf,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:Wf,fixedFields:{propertyName:yp.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:yp.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Zf,fixedFields:{name:yp.visitors.document.objects.XML.fixedFields.name,namespace:yp.visitors.document.objects.XML.fixedFields.namespace,prefix:yp.visitors.document.objects.XML.fixedFields.prefix,attribute:yp.visitors.document.objects.XML.fixedFields.attribute,wrapped:yp.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:xg,fixedFields:{type:yp.visitors.document.objects.SecurityScheme.fixedFields.type,description:yp.visitors.document.objects.SecurityScheme.fixedFields.description,name:yp.visitors.document.objects.SecurityScheme.fixedFields.name,in:yp.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:yp.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:yp.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:yp.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:jg,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:Pg,fixedFields:{authorizationUrl:yp.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:yp.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:yp.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:yp.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Z_}},extension:{$visitor:yp.visitors.document.extension.$visitor}}}},Ig=e=>{if(Wr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Cg={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"],...En},$g=function(){const e=Lg,t=Dg,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,d=0,m=0,p=0,h=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,w)=>{const E=`${r}parse(): `;d=0,m=0,p=0,h=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(`${E}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=w,o=[{type:e.RNM,index:S}],v(0,0),o=void 0;let j=!1;switch(f.state){case e.ACTIVE:throw new Error(`${E}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:p,nodeHits:h}};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 m,p,h;const _=o[t],g=i[_.index];f.UdtIndex=g.index,d||(h=s.ast&&s.ast.udtDefined(_.index),h&&(p=n.length+_.index,m=s.ast.getLength(),s.ast.down(p,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),d||h&&(f.state===e.NOMATCH?s.ast.setLength(m):s.ast.up(p,g.name,c,f.phraseLength))},v=(t,i)=>{const l=`${r}opExecute(): `,b=o[t];switch(h+=1,m>p&&(p=m),m+=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,m;const p=o[t],h=n[p.index],_=c[h.index];if(d||(l=s.ast&&s.ast.ruleDefined(p.index),l&&(i=s.ast.getLength(),s.ast.down(p.index,n[p.index].name))),_){const t=a.length-r;_(f,a,r,u),g(h,f,t,!0),f.state===e.ACTIVE&&(m=o,o=h.opcodes,v(0,r),o=m,_(f,a,r,u),g(h,f,t,!1))}else m=o,o=h.opcodes,v(0,r,f),o=m;d||l&&(f.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(p.index,h.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(d+=1,v(t+1,s),d-=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(d+=1,v(t+1,s),d-=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`)}d||i+f.phraseLength>_&&(_=i+f.phraseLength),s.stats&&s.stats.collect(b,f),s.trace&&s.trace.up(b,f.state,i,f.phraseLength),m-=1}},Dg={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)}},Lg={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 Lg.ALT:return"ALT";case Lg.CAT:return"CAT";case Lg.REP:return"REP";case Lg.RNM:return"RNM";case Lg.TRG:return"TRG";case Lg.TBS:return"TBS";case Lg.TLS:return"TLS";case Lg.UDT:return"UDT";case Lg.AND:return"AND";case Lg.NOT:return"NOT";case Lg.ACTIVE:return"ACTIVE";case Lg.EMPTY:return"EMPTY";case Lg.MATCH:return"MATCH";case Lg.NOMATCH:return"NOMATCH";case Lg.SEM_PRE:return"SEM_PRE";case Lg.SEM_POST:return"SEM_POST";case Lg.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function qg(){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 Bg 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 Ug=Bg;new qg;new qg,new $g,new qg,new $g,new qg,new $g,new qg,new $g;const Vg=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 Hg=class extends Ug{},Jg=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 Vg(String(e))})).join("/")}`}catch(t){throw new Hg("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};const Gg={namespace:e=>{const{base:t}=e;return t.register("callback",jp),t.register("components",Op),t.register("contact",Pp),t.register("discriminator",Tp),t.register("encoding",Ap),t.register("example",Mp),t.register("externalDocumentation",Fp),t.register("header",Np),t.register("info",Rp),t.register("jsonSchemaDialect",Ip),t.register("license",Cp),t.register("link",$p),t.register("mediaType",Dp),t.register("oAuthFlow",Lp),t.register("oAuthFlows",qp),t.register("openapi",Bp),t.register("openApi3_1",Vp),t.register("operation",Hp),t.register("parameter",Jp),t.register("pathItem",Gp),t.register("paths",Wp),t.register("reference",Zp),t.register("requestBody",Kp),t.register("response",Yp),t.register("responses",Xp),t.register("schema",x_),t.register("securityRequirement",S_),t.register("securityScheme",j_),t.register("server",O_),t.register("serverVariable",P_),t.register("tag",T_),t.register("xml",A_),t}},Wg=e=>{const t=e.reduce(((t,s,r)=>{if(en(s)){const e=String(ho(s.key));t.push(e)}else if(Qr(e[r-2])){const n=String(e[r-2].content.indexOf(s));t.push(n)}return t}),[]);return Jg(t)},zg=()=>{const e=dt(Gg);return{predicates:{...a,isElement:Wr,isStringElement:zr,isArrayElement:Qr,isObjectElement:Xr,isMemberElement:en,isServersElement:$l,includesClasses:dn,hasElementSourceMap:ln},ancestorLineageToJSONPointer:Wg,namespace:e}},Zg=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:s=[]}={})=>{const r=(0,ce.e)(e),n=io(kg),i=new(Pn(t,n))({specObj:n});return xn(r,i),Ln(i.element,s,{toolboxCreator:zg,visitorOptions:{keyMap:Cg,nodeTypeGetter:Ig}})},Kg=e=>(t,s={})=>Zg(t,{specPath:e,...s});jp.refract=Kg(["visitors","document","objects","Callback","$visitor"]),Op.refract=Kg(["visitors","document","objects","Components","$visitor"]),Pp.refract=Kg(["visitors","document","objects","Contact","$visitor"]),Mp.refract=Kg(["visitors","document","objects","Example","$visitor"]),Tp.refract=Kg(["visitors","document","objects","Discriminator","$visitor"]),Ap.refract=Kg(["visitors","document","objects","Encoding","$visitor"]),Fp.refract=Kg(["visitors","document","objects","ExternalDocumentation","$visitor"]),Np.refract=Kg(["visitors","document","objects","Header","$visitor"]),Rp.refract=Kg(["visitors","document","objects","Info","$visitor"]),Ip.refract=Kg(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Cp.refract=Kg(["visitors","document","objects","License","$visitor"]),$p.refract=Kg(["visitors","document","objects","Link","$visitor"]),Dp.refract=Kg(["visitors","document","objects","MediaType","$visitor"]),Lp.refract=Kg(["visitors","document","objects","OAuthFlow","$visitor"]),qp.refract=Kg(["visitors","document","objects","OAuthFlows","$visitor"]),Bp.refract=Kg(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Vp.refract=Kg(["visitors","document","objects","OpenApi","$visitor"]),Hp.refract=Kg(["visitors","document","objects","Operation","$visitor"]),Jp.refract=Kg(["visitors","document","objects","Parameter","$visitor"]),Gp.refract=Kg(["visitors","document","objects","PathItem","$visitor"]),Wp.refract=Kg(["visitors","document","objects","Paths","$visitor"]),Zp.refract=Kg(["visitors","document","objects","Reference","$visitor"]),Kp.refract=Kg(["visitors","document","objects","RequestBody","$visitor"]),Yp.refract=Kg(["visitors","document","objects","Response","$visitor"]),Xp.refract=Kg(["visitors","document","objects","Responses","$visitor"]),x_.refract=Kg(["visitors","document","objects","Schema","$visitor"]),S_.refract=Kg(["visitors","document","objects","SecurityRequirement","$visitor"]),j_.refract=Kg(["visitors","document","objects","SecurityScheme","$visitor"]),O_.refract=Kg(["visitors","document","objects","Server","$visitor"]),P_.refract=Kg(["visitors","document","objects","ServerVariable","$visitor"]),T_.refract=Kg(["visitors","document","objects","Tag","$visitor"]),A_.refract=Kg(["visitors","document","objects","XML","$visitor"]);const Yg=l((function(e){return _(-1,e)}));const Xg=class extends Vi{};const Qg=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Xg("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Xg("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Xg("latest method in MediaTypes class is not yet implemented.")}};class ey extends Qg{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 Yg(this.filterByFormat(e))}}const ty=new ey("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"),sy=new ey(...ty.filterByFormat("generic"),...ty.filterByFormat("yaml")),ry=/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m,ny=async e=>ry.test(e)&&await(async e=>{try{return!(await St(e)).rootNode.isError}catch{return!1}})(e),iy=async(e,t={})=>{const s=g({},"refractorOpts",t),r=v(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1}={})=>{const s=await St(e);return zn(s,{sourceMap:t})})(e,r),{result:i}=n;if(ae(i)){const e=Vp.refract(i,s);e.classes.push("result"),n.replaceResult(e)}return n},oy=dt(Gg)})(),__webpack_exports__})()));
|