@swagger-api/apidom-parser-adapter-yaml-1-2 1.0.0-beta.43 → 1.0.0-beta.45
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
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
# [1.0.0-beta.45](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.44...v1.0.0-beta.45) (2025-08-01)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
|
|
9
|
+
|
|
10
|
+
# [1.0.0-beta.44](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.43...v1.0.0-beta.44) (2025-07-07)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
|
|
13
|
+
|
|
6
14
|
# [1.0.0-beta.43](https://github.com/swagger-api/apidom/compare/v1.0.0-beta.42...v1.0.0-beta.43) (2025-06-13)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-yaml-1-2
|
|
@@ -1050,7 +1050,8 @@ visitor, {
|
|
|
1050
1050
|
nodeTypeGetter = getNodeType,
|
|
1051
1051
|
nodePredicate = isNode,
|
|
1052
1052
|
nodeCloneFn = cloneNode,
|
|
1053
|
-
detectCycles = true
|
|
1053
|
+
detectCycles = true,
|
|
1054
|
+
detectCyclesCallback = null
|
|
1054
1055
|
} = {}) => {
|
|
1055
1056
|
const visitorKeys = keyMap || {};
|
|
1056
1057
|
let stack;
|
|
@@ -1122,6 +1123,10 @@ visitor, {
|
|
|
1122
1123
|
|
|
1123
1124
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
1124
1125
|
if (detectCycles && ancestors.includes(node)) {
|
|
1126
|
+
if (typeof detectCyclesCallback === 'function') {
|
|
1127
|
+
// @ts-ignore
|
|
1128
|
+
detectCyclesCallback(node, key, parent, path, ancestors);
|
|
1129
|
+
}
|
|
1125
1130
|
path.pop();
|
|
1126
1131
|
continue;
|
|
1127
1132
|
}
|
|
@@ -1224,7 +1229,8 @@ visitor, {
|
|
|
1224
1229
|
nodeTypeGetter = getNodeType,
|
|
1225
1230
|
nodePredicate = isNode,
|
|
1226
1231
|
nodeCloneFn = cloneNode,
|
|
1227
|
-
detectCycles = true
|
|
1232
|
+
detectCycles = true,
|
|
1233
|
+
detectCyclesCallback = null
|
|
1228
1234
|
} = {}) => {
|
|
1229
1235
|
const visitorKeys = keyMap || {};
|
|
1230
1236
|
let stack;
|
|
@@ -1295,6 +1301,10 @@ visitor, {
|
|
|
1295
1301
|
|
|
1296
1302
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
1297
1303
|
if (detectCycles && ancestors.includes(node)) {
|
|
1304
|
+
if (typeof detectCyclesCallback === 'function') {
|
|
1305
|
+
// @ts-ignore
|
|
1306
|
+
detectCyclesCallback(node, key, parent, path, ancestors);
|
|
1307
|
+
}
|
|
1298
1308
|
path.pop();
|
|
1299
1309
|
continue;
|
|
1300
1310
|
}
|
|
@@ -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.apidomParserAdapterYaml1_2=t():e.apidomParserAdapterYaml1_2=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(8900),o=r(1811),a=r(6625);for(var i in n)o(s[i],i),a[i]=a.Array},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),o=r(4871),a=r(3410),i=r(2769),_=r(1926),c=r(3671),u=r(3491),l=r(1811),d=r(3999),m=r(3508),p=r(8655),h=r(6625),f=r(2621),g=a.PROPER,y=a.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,E=p("iterator"),v="keys",x="values",T="entries",A=function(){return this};e.exports=function(e,t,r,a,p,f,S){_(r,t,a);var M,O,I,F=function(e){if(e===p&&C)return C;if(!b&&e&&e in R)return R[e];switch(e){case v:case x:case T:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",P=!1,R=e.prototype,k=R[E]||R["@@iterator"]||p&&R[p],C=!b&&k||F(p),j="Array"===t&&R.entries||k;if(j&&(M=c(j.call(new e)))!==Object.prototype&&M.next&&(o||c(M)===w||(u?u(M,w):i(M[E])||m(M,E,A)),l(M,N,!0,!0),o&&(h[N]=A)),g&&p===x&&k&&k.name!==x&&(!o&&y?d(R,"name",x):(P=!0,C=function(){return s(k,this)})),p)if(O={values:F(x),keys:f?C:F(v),entries:F(T)},S)for(I in O)(b||P||!(I in R))&&m(R,I,O[I]);else n({target:t,proto:!0,forced:b||P},O);return o&&!S||R[E]===C||m(R,E,C,{name:p}),h[t]=C,O}},195:(e,t,r)=>{var n=r(4882),s=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),o=r(7235),a=r(459),i=r(2877),_=r(8130),c=r(4317),u=r(1613),l=r(967),d=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;e.exports=function(e,t,r){var f,g,y,w,b,E,v,x=r&&r.that,T=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),O=n(t,x),I=function(e){return f&&d(f,"normal",e),new p(!0,e)},F=function(e){return T?(o(e),M?O(e[0],e[1],I):O(e[0],e[1])):M?O(e,I):O(e)};if(A)f=e.iterator;else if(S)f=e;else{if(!(g=l(e)))throw new m(a(e)+" is not iterable");if(i(g)){for(y=0,w=_(e);w>y;y++)if((b=F(e[y]))&&c(h,b))return b;return new p(!1)}f=u(e,g)}for(E=A?e.next:f.next;!(v=s(E,f)).done;){try{b=F(v.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&c(h,b))return b}return new p(!1)}},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,r)=>{var n=r(1340),s=r(3934),o=r(8861),a=r(1182),i=r(8486),_=r(3142),c=r(5853),u=r(8666),l="[object Arguments]",d="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,f,g){var y=_(e),w=_(t),b=y?d:i(e),E=w?d:i(t),v=(b=b==l?m:b)==m,x=(E=E==l?m:E)==m,T=b==E;if(T&&c(e)){if(!c(t))return!1;y=!0,v=!1}if(T&&!v)return g||(g=new n),y||u(e)?s(e,t,r,h,f,g):o(e,t,b,r,h,f,g);if(!(1&r)){var A=v&&p.call(e,"__wrapped__"),S=x&&p.call(t,"__wrapped__");if(A||S){var M=A?e.value():e,O=S?t.value():t;return g||(g=new n),f(M,O,r,h,g)}}return!!T&&(g||(g=new n),a(e,t,r,h,f,g))}},358:(e,t,r)=>{var n=r(6137),s=r(3283),o=r(3142),a=r(5853),i=r(9632),_=r(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&s(e),l=!r&&!u&&a(e),d=!r&&!u&&!l&&_(e),m=r||u||l||d,p=m?n(e.length,String):[],h=p.length;for(var f in e)!t&&!c.call(e,f)||m&&("length"==f||l&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||i(f,h))||p.push(f);return p}},393:(e,t,r)=>{var n=r(8244),s=r(7979),o=r(1211);e.exports=function(e){return n(e,o,s)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},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,r)=>{"use strict";var n=r(9098),s=r(8900),o=r(7013),a=r(6453),i="WebAssembly",_=s[i],c=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=a(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},l=function(e,t){if(_&&_[e]){var r={};r[e]=a(i+"."+e,t,c),n({target:i,stat:!0,constructor:!0,arity:1,forced:c},r)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),o=r(6281),a=r(4674),i=r(9258),_=r(8655),c=TypeError,u=_("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,_=a(e,u);if(_){if(void 0===t&&(t="default"),r=n(_,e,t),!s(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var n=r(7379),s=r(5387),o=r(547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&s(e.length)&&!!a[n(e)]}},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),o=r(3057),a=r(6625),i=r(8655)("iterator");e.exports=function(e){if(!o(e))return s(e,i)||s(e,"@@iterator")||a[n(e)]}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),o=r(2769),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),o=r(8130),a=function(e){return function(t,r,a){var i=n(t),_=o(i);if(0===_)return!e&&-1;var c,u=s(a,_);if(e&&r!=r){for(;_>u;)if((c=i[u++])!=c)return!0}else for(;_>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!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,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,i){var _=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!_)return!1;for(var l=u;l--;){var d=c[l];if(!(_?d in t:s.call(t,d)))return!1}var m=i.get(e),p=i.get(t);if(m&&p)return m==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var f=_;++l<u;){var g=e[d=c[l]],y=t[d];if(o)var w=_?o(y,g,d,t,e,i):o(g,y,d,e,t,i);if(!(void 0===w?g===y||a(g,y,r,o,i):w)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(h=!1)}return i.delete(e),i.delete(t),h}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var n=r(358),s=r(195),o=r(6529);e.exports=function(e){return o(e)?n(e):s(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++s+o,36)}},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var n=r(1386),s=r(4103),o=r(1779),a=r(4162),i=r(7462),_=r(6638);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=s,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=_,e.exports=c},1386:(e,t,r)=>{var n=r(2393),s=r(2049),o=r(7144),a=r(7452),i=r(3964);function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=a,_.prototype.set=i,e.exports=_},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),o=r(9932),a=Object,i=n("".split);e.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?i(e,""):a(e)}:a},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,r)=>{"use strict";var n=r(4713),s=r(814),o=r(7235),a=r(459),i=r(967),_=TypeError;e.exports=function(e,t){var r=arguments.length<2?i(e):t;if(s(r))return o(n(r,e));throw new _(a(e)+" is not iterable")}},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),o=r(4674);e.exports=function(e,t,r){var a,i;s(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){i=!0,a=e}if("throw"===t)throw r;if(i)throw a;return s(a),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,o=r(3999),a=r(701),i=r(9559),_=r(8655)("toStringTag");e.exports=function(e,t,r,c){var u=r?e:e&&e.prototype;u&&(a(u,_)||s(u,_,{configurable:!0,value:t}),c&&!n&&o(u,"toString",i))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),o=r(480),a=r(1811),i=r(6625),_=function(){return this};e.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=s(n,{next:o(+!c,r)}),a(e,u,!1,!0),i[u]=_,e}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+s(e)+" as a prototype")}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,a=o&&o.exports===s&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},2621:(e,t,r)=>{"use strict";var n,s,o,a=r(1203),i=r(2769),_=r(262),c=r(5780),u=r(3671),l=r(3508),d=r(8655),m=r(4871),p=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(s=u(u(o)))!==Object.prototype&&(n=s):h=!0),!_(n)||a((function(){var e={};return n[p].call(e)!==e}))?n={}:m&&(n=c(n)),i(n[p])||l(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||a[o]===e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),o=r(3671),a=r(3491),i=r(7464),_=r(5780),c=r(3999),u=r(480),l=r(8148),d=r(4279),m=r(208),p=r(4879),h=r(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var r,n=s(w,this);a?r=a(new f,n?o(this):w):(r=n?this:_(w),c(r,h,"Error")),void 0!==t&&c(r,"message",p(t)),d(r,y,r.stack,1),arguments.length>2&&l(r,arguments[2]);var i=[];return m(e,g,{that:i}),c(r,"errors",i),r};a?a(y,f):i(y,f,{name:!0});var w=y.prototype=_(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var n=r(8250),s=r(1877),o=r(8006);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=s,a.prototype.has=o,e.exports=a},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},3283:(e,t,r)=>{var n=r(6027),s=r(547),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,_=n(function(){return arguments}())?n:function(e){return s(e)&&a.call(e,"callee")&&!i.call(e,"callee")};e.exports=_},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class o extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=o},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,i=s(o,"name"),_=i&&"something"===function(){}.name,c=i&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:i,PROPER:_,CONFIGURABLE:c}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),o=r(5426),a=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),a(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),o=r(3491);e.exports=function(e,t,r){var a,i;return o&&n(a=t.constructor)&&a!==r&&s(i=a.prototype)&&i!==r.prototype&&o(e,i),e}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),o=r(2137),a=r(4275),i=r(2871),_=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=i?c.getPrototypeOf:function(e){var t=o(e);if(n(t,_))return t[_];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),o=r(7525),a="__core-js_shared__",i=e.exports=s[a]||o(a,{});(i.versions||(i.versions=[])).push({version:"3.42.0",mode:n?"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(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),o=r(8417),a=r(164),i=r(877),_="String Iterator",c=o.set,u=o.getterFor(_);a(String,"String",(function(e){c(this,{type:_,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?i(void 0,!0):(e=n(r,s),t.index+=e.length,i(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(((r,n)=>{fs.readFile(e,t?void 0:"utf8",((e,s)=>{e?n(e):r(t?s.buffer:s)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&r(n.response),t(n.status)},n.onerror=t,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,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,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"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 r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var o="";t<s;){var a=e[t++];if(128&a){var i=63&e[t++];if(192!=(224&a)){var _=63&e[t++];if((a=224==(240&a)?(15&a)<<12|i<<6|_:(7&a)<<18|i<<12|_<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|i)}else o+=String.fromCharCode(a)}return o},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}function s(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function o(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var i=WebAssembly.Module.customSections(e,a);0===i.length&&(a="dylink",i=WebAssembly.Module.customSections(e,a)),o(0===i.length,"need dylink section"),r=(e=new Uint8Array(i[0])).length}else{var _=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==_[0]||6386541==_[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var c=n();r=t+c,a=s()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){u.memorySize=n(),u.memoryAlign=n(),u.tableSize=n(),u.tableAlign=n();for(var l=n(),d=0;d<l;++d){var m=s();u.neededDynlibs.push(m)}}else{o("dylink.0"!==a);for(;t<r;){var p=e[t++],h=n();if(1===p)u.memorySize=n(),u.memoryAlign=n(),u.tableSize=n(),u.tableAlign=n();else if(2===p)for(l=n(),d=0;d<l;++d)m=s(),u.neededDynlibs.push(m);else if(3===p)for(var f=n();f--;){var g=s();256&n()&&u.tlsExports.add(g)}else if(4===p)for(f=n();f--;){s(),g=s();1==(3&n())&&u.weakImports.add(g)}else t+=h}}return u};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(s[n[o]]);"v"==r?t.push(0):t.push(1,s[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var s=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,s)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},relocateExports=(e,t,r)=>{var n={};for(var s in e){var o=e[s];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),n[s]=o}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var 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 r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;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[r,n]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=n)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n)}},asyncLoad=(e,t,r,n)=>{var s=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),s&&removeRunDependency(s)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),s&&addRunDependency(s)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var s=LDSO.loadedLibsByName[e];if(s)return t.global?s.global||(s.global=!0,mergeLibSymbols(s.exports,e)):r&&Object.assign(r,s.exports),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,n&&(LDSO.loadedLibsByHandle[n]=s),!t.loadAsync||Promise.resolve(!0);function o(){if(n){var r=LE_HEAP_LOAD_U32(4*(n+28>>2)),s=LE_HEAP_LOAD_U32(4*(n+32>>2));if(r&&s){var o=HEAP8.slice(r,r+s);return t.loadAsync?Promise.resolve(o):o}}var a=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(a,e,t)}));if(!readBinary)throw new Error(`${a}: file not found, and synchronous loading of external files is not available`);return readBinary(a)}function a(){return t.loadAsync?o().then((s=>loadWebAssemblyModule(s,t,e,r,n))):loadWebAssemblyModule(o(),t,e,r,n)}function i(t){s.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),s.exports=t}return(s=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,s.global=t.global,t.loadAsync?a().then((e=>(i(e),!0))):(i(a()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("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,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_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 r=getHeapMax();if(e>r)return!1;for(var n,s,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var i=Math.min(r,(n=Math.max(e,a))+((s=65536)-n%s)%s);if(growMemory(i))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,r,n,s){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,n)=>{for(var s=0,o=0;o<r;o++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),i=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var _=0;_<i;_++)printChar(e,HEAPU8[a+_]);s+=i}return LE_HEAP_STORE_U32(4*(n>>2),s),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,s){const o=currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(s,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(s,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,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var s=r,o=r+n-1,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a);if(i<=127){if(r>=o)break;t[r++]=i}else if(i<=2047){if(r+1>=o)break;t[r++]=192|i>>6,t[r++]=128|63&i}else if(i<=65535){if(r+2>=o)break;t[r++]=224|i>>12,t[r++]=128|i>>6&63,t[r++]=128|63&i}else{if(r+3>=o)break;t[r++]=240|i>>18,t[r++]=128|i>>12&63,t[r++]=128|i>>6&63,t[r++]=128|63&i}}return t[r]=0,r-s},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,s=(r-=2)<2*e.length?r/2:e.length,o=0;o<s;++o){var a=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-n},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___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,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_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,r,n)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,n),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_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,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_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,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_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,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,n,s)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,n,s),_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,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_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,r,n,s)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,n,s),_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,r,n,s,o,a)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,n,s,o,a),_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,r,n,s,o,a,i,_,c,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,n,s,o,a,i,_,c,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,n,s,o,a,i,_,c,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,n,s,o,a,i,_,c,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,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_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,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_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,r,n,s)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,n,s),_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 r=e.length,n=stackAlloc(4*(r+1)),s=n;e.forEach((e=>{LE_HEAP_STORE_U32(4*(s>>2),stringToUTF8OnStack(e)),s+=4})),LE_HEAP_STORE_U32(4*(s>>2),0);try{var o=t(r,n);return exitJS(o,!0),o}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 r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r?.includedRanges){n=r.includedRanges.length,s=C._calloc(n,SIZE_OF_RANGE);let e=s;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const o=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(o+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,n.length,t.row,t.column,r.row,r.column);const a=getValue(TRANSFER_BUFFER,"i32"),i=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=new Array(a);if(a>0){let e=i;for(let t=0;t<a;t++)_[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(i),C._free(o),_}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const s=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=getValue(TRANSFER_BUFFER,"i32"),s=UTF8ToString(r,n).length,o=e.substr(s,100).split("\n")[0];let a,i=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:a=new RangeError(`Bad node name '${i}'`);break;case 3:a=new RangeError(`Bad field name '${i}'`);break;case 4:a=new RangeError(`Bad capture name @${i}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${s}: '${o}'...`),i="";break;default:a=new SyntaxError(`Bad syntax at offset ${s}: '${o}'...`),i=""}throw a.index=s,a.length=i.length,C._free(r),a}const s=C._ts_query_string_count(n),o=C._ts_query_capture_count(n),a=C._ts_query_pattern_count(n),i=new Array(o),_=new Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");i[e]=UTF8ToString(t,r)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");_[e]=UTF8ToString(t,r)}const c=new Array(a),u=new Array(a),l=new Array(a),d=new Array(a),m=new Array(a);for(let e=0;e<a;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const s=[];let o=t;for(let t=0;t<r;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const r=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:i[r]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:_[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r,n=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":n=!1;case"any-eq?":case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}"`);if(o=!t.startsWith("any-"),"capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((e=>{const s=[],a=[];for(const n of e)n.name===t&&s.push(n.node),n.name===r&&a.push(n.node);const i=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return o?s.every((e=>a.some((t=>i(e,t,n))))):s.some((e=>a.some((t=>i(e,t,n)))))}))}else{r=s[1].name;const t=s[2].value,a=e=>e.text===t,i=e=>e.text!==t;m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node);const s=n?a:i;return o?t.every(s):t.some(s)}))}break;case"any-not-match?":case"not-match?":n=!1;case"any-match?":case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${s[2].value}.`);r=s[1].name;const a=new RegExp(s[2].value);o=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);const s=(e,t)=>t?a.test(e):!a.test(e);return 0===t.length?!n:o?t.every((e=>s(e,n))):t.some((e=>s(e,n)))}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');c[e]||(c[e]={}),c[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const i="is?"===t?u:l;i[e]||(i[e]={}),i[e][s[1].value]=s[2]?s[2].value:null;break;case"not-any-of?":n=!1;case"any-of?":if(s.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);for(let e=2;e<s.length;e++)if("string"!==s[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=s[1].name;const _=s.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);return 0===t.length?!n:t.every((e=>_.includes(e)))===n}));break;default:d[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(c[e]),Object.freeze(u[e]),Object.freeze(l[e])}return C._free(r),new Query(INTERNAL,n,i,m,d,Object.freeze(c),Object.freeze(u),Object.freeze(l))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new Language(INTERNAL,n)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,n,s,o,a,i){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=o,this.assertedProperties=a,this.refutedProperties=i,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:a=4294967295,timeoutMicros:i=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,a,i);const _=getValue(TRANSFER_BUFFER,"i32"),c=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=new Array(_);this.exceededMatchLimit=Boolean(u);let d=0,m=c;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,n),this.textPredicates[t].every((e=>e(n)))){l[d]={pattern:t,captures:n};const e=this.setProperties[t];e&&(l[d].setProperties=e);const r=this.assertedProperties[t];r&&(l[d].assertedProperties=r);const s=this.refutedProperties[t];s&&(l[d].refutedProperties=s),d++}}return l.length=d,C._free(c),l}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:a=4294967295,timeoutMicros:i=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,a,i);const _=getValue(TRANSFER_BUFFER,"i32"),c=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=[];this.exceededMatchLimit=Boolean(u);const d=[];let m=c;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),l.push(e)}}return C._free(c),l}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function unmarshalCaptures(e,t,r,n){for(let s=0,o=n.length;s<o;s++){const o=getValue(r,"i32"),a=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[o],node:a}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),i=new Node(INTERNAL,e);return i.id=r,i.startIndex=n,i.startPosition={row:s,column:o},i[0]=a,i}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,r)=>{"use strict";var n=r(6100),s=Error,o=n("".replace),a=String(new s("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,_=i.test(a);e.exports=function(e,t){if(_&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=o(e,i,"");return e}},3934:(e,t,r)=>{var n=r(3212),s=r(6465),o=r(5568);e.exports=function(e,t,r,a,i,_){var c=1&r,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var d=_.get(e),m=_.get(t);if(d&&m)return d==t&&m==e;var p=-1,h=!0,f=2&r?new n:void 0;for(_.set(e,t),_.set(t,e);++p<u;){var g=e[p],y=t[p];if(a)var w=c?a(y,g,p,t,e,_):a(g,y,p,e,t,_);if(void 0!==w){if(w)continue;h=!1;break}if(f){if(!s(t,(function(e,t){if(!o(f,t)&&(g===e||i(g,e,r,a,_)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!i(g,y,r,a,_)){h=!1;break}}return _.delete(e),_.delete(t),h}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),o=r(480);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,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,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new o(this.elements.filter(e,t))}reject(e,t){return e=s(e),new o(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),o=r(5791),a=Error.captureStackTrace;e.exports=function(e,t,r,i){o&&(a?a(e,t):n(e,"stack",s(r,i)))}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),o=r(7161),a=r(480),i=r(3273),_=r(5341),c=r(701),u=r(9665),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=i(e),t=_(t),u)try{return l(e,t)}catch(e){}if(c(e,t))return a(!s(o.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),o=r(1780),a=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),o=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,o,a,i){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,o,a,e,i))}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,r)=>{var n,s=r(1950),o=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var n=r(3305),s=r(9361),o=r(1112),a=r(5276),i=r(5071);function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=a,_.prototype.set=i,e.exports=_},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var n,s,o=r(8900),a=r(3531),i=o.process,_=o.Deno,c=i&&i.versions||_&&_.version,u=c&&c.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),o=r(1139),a=r(5426),i=n("".charAt),_=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,r){var n,u,l=o(a(t)),d=s(r),m=l.length;return d<0||d>=m?e?"":void 0:(n=_(l,d))<55296||n>56319||d+1===m||(u=_(l,d+1))<56320||u>57343?e?i(l,d):n:e?c(l,d,d+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),o=r(9796),a=r(7309),i=r(3311);e.exports=class extends o{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new a(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,o)=>{const a=e.bind(t)(n,s,o);a&&r.push(a)})),r}filter(e,t){return new i(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),o=r(5116),a=r(7313),i=r(7235),_=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=a.f;return r?_(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const n=r(9310),s=r(8138),o=r(986),a=r(2563),i=r(1580),_=r(394),c=r(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.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",c.NullElement).register("string",c.StringElement).register("number",c.NumberElement).register("boolean",c.BooleanElement).register("array",c.ArrayElement).register("object",c.ObjectElement).register("member",c.MemberElement).register("ref",c.RefElement).register("link",c.LinkElement),this.detect(n,c.NullElement,!1).detect(s,c.StringElement,!1).detect(o,c.NumberElement,!1).detect(a,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(i,c.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new _(this)}}_.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),o=r(7389),a=r(9683),i=r(5241),_=r(3489),c=r(9619),u=r(4275),l="prototype",d="script",m=u("IE_PROTO"),p=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?f(n):(t=c("iframe"),r="java"+d+":",t.style.display="none",_.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(n);for(var s=a.length;s--;)delete g[l][a[s]];return g()};i[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[l]=s(e),r=new p,p[l]=null,r[m]=e):r=g(),void 0===t?r:o.f(r,t)}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,_=(i?i.isBuffer:void 0)||s;e.exports=_},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.call,a=n&&s.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),o=r(7013),a=r(1203),i=r(6453),_="AggregateError",c=s(_),u=!a((function(){return 1!==c([1]).errors[0]}))&&a((function(){return 7!==c([1],_,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:i(_,(function(e){return function(t,r){return o(e,this,arguments)}}),u,!0)})},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),o=r(4317),a=r(7460),i=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,i(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),o=r(3999),a=r(4317),i=r(3491),_=r(7464),c=r(5516),u=r(3507),l=r(4879),d=r(8148),m=r(4279),p=r(5024),h=r(4871);e.exports=function(e,t,r,f){var g="stackTraceLimit",y=f?2:1,w=e.split("."),b=w[w.length-1],E=n.apply(null,w);if(E){var v=E.prototype;if(!h&&s(v,"cause")&&delete v.cause,!r)return E;var x=n("Error"),T=t((function(e,t){var r=l(f?t:e,void 0),n=f?new E(e):new E;return void 0!==r&&o(n,"message",r),m(n,T,n.stack,2),this&&a(v,this)&&u(n,this,T),arguments.length>y&&d(n,arguments[y]),n}));if(T.prototype=v,"Error"!==b?i?i(T,x):_(T,x,{name:!0}):p&&g in E&&(c(T,E,g),c(T,E,"prepareStackTrace")),_(T,E),!h)try{v.name!==b&&o(v,"name",b),v.constructor=T}catch(e){}return T}}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!s||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},6850:(e,t,r)=>{"use strict";t.MH=void 0;const n=r(8583);function s(e,t,r){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==r&&r!==e.length)throw new SyntaxError(n.errorMessages.get(t));return s}function o(e,t){const r=s(e,n.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}const a=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const i=/\\(?:(\\)|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 _(e,t=!1){return e.replace(i,(function(e,r,i,_,c,u,l,d,m){if(void 0!==r)return"\\";if(void 0!==i)return function(e){const t=s(e,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(i);if(void 0!==_)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var t;const r=s(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(_);if(void 0!==c)return o(c,u);if(void 0!==l)return o(l);if("0"===d)return"\0";if(void 0!==d)return function(e,t=!1){if(t)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(d,!t);if(void 0!==m)return p=m,a.get(p)||p;var p;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}t.MH=_},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.apply,a=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var n=r(5650),s=r(8870),o=r(9005),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?s(e):o(e)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),o=r(9989),a=r(7235),i=r(3273),_=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){a(e);for(var r,n=i(t),s=_(t),c=s.length,u=0;c>u;)o.f(e,r=s[u++],n[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),o=r(4543),a=r(9989);e.exports=function(e,t,r){for(var i=s(t),_=a.f,c=o.f,u=0;u<i.length;u++){var l=i[u];n(e,l)||r&&n(r,l)||_(e,l,c(t,l))}}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},7547:(e,t,r)=>{const n=r(8631),s=r(3004),o=r(8712),a=r(2536),i=r(2555),_=r(9796),c=r(7309),u=r(5642),l=r(9620),d=r(593),m=r(4123),p=r(3311),h=r(2322);function f(e){if(e instanceof n)return e;if("string"==typeof e)return new o(e);if("number"==typeof e)return new a(e);if("boolean"==typeof e)return new i(e);if(null===e)return new s;if(Array.isArray(e))return new _(e.map(f));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=d,n.prototype.MemberElement=c,n.prototype.refract=f,m.prototype.refract=f,e.exports={Element:n,NullElement:s,StringElement:o,NumberElement:a,BooleanElement:i,ArrayElement:_,MemberElement:c,ObjectElement:u,LinkElement:l,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:p,KeyValuePair:h}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:s;e.exports=i},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&o(e)&&"[object String]"==n(e)}},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var o=t(e);return s(e)?o:n(o,r(e))}},8250:(e,t,r)=>{var n=r(9753),s=r(5681),o=r(88),a=r(4732),i=r(9068);function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=a,_.prototype.set=i,e.exports=_},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,s.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),o=r(9932),a=r(8655)("toStringTag"),i=Object,_="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=i(e),a))?r:_?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var n,s,o,a=r(1314),i=r(8900),_=r(262),c=r(3999),u=r(701),l=r(3753),d=r(4275),m=r(5241),p="Object already initialized",h=i.TypeError,f=i.WeakMap;if(a||l.state){var g=l.state||(l.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h(p);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=d("state");m[y]=!0,n=function(e,t){if(u(e,y))throw new h(p);return t.facade=e,c(e,y,t),t},s=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!_(t)||(r=s(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var n=r(3103),s=r(9770),o=r(9413),a=r(4512),i=r(9270),_=r(7379),c=r(4066),u="[object Map]",l="[object Promise]",d="[object Set]",m="[object WeakMap]",p="[object DataView]",h=c(n),f=c(s),g=c(o),y=c(a),w=c(i),b=_;(n&&b(new n(new ArrayBuffer(1)))!=p||s&&b(new s)!=u||o&&b(o.resolve())!=l||a&&b(new a)!=d||i&&b(new i)!=m)&&(b=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case h:return p;case f:return u;case g:return l;case y:return d;case w:return m}return t}),e.exports=b},8583:(e,t)=>{"use strict";var r;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"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),o=r(3273),a=r(1005).indexOf,i=r(5241),_=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!s(i,r)&&s(n,r)&&_(u,r);for(;t.length>c;)s(n,r=t[c++])&&(~a(u,r)||_(u,r));return u}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),o=r(4123);class a{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof a?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new o;const n=(e,t)=>(e.push(t),e),a=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(n,e),r.content instanceof s&&(r.content.key&&a(e,r.content.key),r.content.value&&a(e,r.content.value)),e};return this.content&&(this.content.element&&a(r,this.content),Array.isArray(this.content)&&this.content.reduce(a,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(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 a)this._content=e;else if(e instanceof o)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof s){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof a?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=a},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),o=r(701),a=r(1268),i=r(4603),_=r(7460),c=n.Symbol,u=s("wks"),l=_?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=i&&o(c,e)?c[e]:l("Symbol."+e)),u[e]}},8666:(e,t,r)=>{var n=r(674),s=r(9460),o=r(2306),a=o&&o.isTypedArray,i=a?s(a):n;e.exports=i},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),o=/#|\.prototype\./,a=function(e,t){var r=_[i(e)];return r===u||r!==c&&(s(t)?n(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},_=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),o=r(6285),a=r(3934),i=r(5894),_=r(7447),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,l,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=i;case"[object Set]":var p=1&n;if(m||(m=_),e.size!=t.size&&!p)return!1;var h=d.get(e);if(h)return h==t;n|=2,d.set(e,t);var f=a(m(e),m(t),n,c,l,d);return d.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,o=s.hasOwnProperty,a=s.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(e){}var s=a.call(e);return n&&(t?e[i]=r:delete e[i]),s}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();e.exports=o},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,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),o=r(9344),a=r(2769),i=r(4543).f,_=r(8696),c=r(8099),u=r(4572),l=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,p,h,f,g,y,w,b,E=e.target,v=e.global,x=e.stat,T=e.proto,A=v?n:x?n[E]:n[E]&&n[E].prototype,S=v?c:c[E]||l(c,E,{})[E],M=S.prototype;for(h in t)s=!(r=_(v?h:E+(x?".":"#")+h,e.forced))&&A&&d(A,h),g=S[h],s&&(y=e.dontCallGetSet?(b=i(A,h))&&b.value:A[h]),f=s&&y?y:t[h],(r||T||typeof g!=typeof f)&&(w=e.bind&&s?u(f,n):e.wrap&&s?m(f):T&&a(f)?o(f):f,(e.sham||f&&f.sham||g&&g.sham)&&l(w,"sham",!0),l(S,h,w),T&&(d(c,p=E+"Prototype")||l(c,p,{}),l(c[p],h,f),e.real&&M&&(r||!M[h])&&l(M,h,f)))}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),o=r(262),a=TypeError;e.exports=function(e,t){var r,i;if("string"===t&&s(r=e.toString)&&!o(i=n(r,e)))return i;if(s(r=e.valueOf)&&!o(i=n(r,e)))return i;if("string"!==t&&s(r=e.toString)&&!o(i=n(r,e)))return i;throw new a("Can't convert object to primitive value")}},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(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,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),o=n.document,a=s(o)&&s(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),o=r(1580),a=r(4066),i=/^\[object .+?Constructor\]$/,_=Function.prototype,c=Object.prototype,u=_.toString,l=c.hasOwnProperty,d=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(n(e)?d:i).test(a(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),o=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var n=r(5098),s=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},9796:(e,t,r)=>{const n=r(1517),s=r(8631),o=r(4123);class a extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new o(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,o)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,o)&&s.push(t)})),s}find(e){return new o(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)}}a.empty=function(){return new this},a["fantasy-land/empty"]=a.empty,"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=a},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),o=r(6625),a=r(8417),i=r(9989).f,_=r(164),c=r(877),u=r(4871),l=r(5024),d="Array Iterator",m=a.set,p=a.getterFor(d);e.exports=_(Array,"Array",(function(e,t){m(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var h=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!u&&l&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[s++]=a)}return o}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),o=r(1330),a=r(7235),i=r(5341),_=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",m="writable";t.f=n?o?function(e,t,r){if(a(e),t=i(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=u(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:l in r?r[l]:n[l],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=i(t),a(r),s)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new _("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__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 r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].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:()=>Us,lexicalAnalysis:()=>u,mediaTypes:()=>js,namespace:()=>Ps,parse:()=>Ls,syntacticAnalysis:()=>Ns});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>kn,includesClasses:()=>jn,includesSymbols:()=>Cn,isAnnotationElement:()=>In,isArrayElement:()=>An,isBooleanElement:()=>xn,isCommentElement:()=>Fn,isElement:()=>wn,isLinkElement:()=>Mn,isMemberElement:()=>Sn,isNullElement:()=>vn,isNumberElement:()=>En,isObjectElement:()=>Tn,isParseResultElement:()=>Nn,isPrimitiveElement:()=>Rn,isRefElement:()=>On,isSourceMapElement:()=>Pn,isStringElement:()=>bn});var t=__webpack_require__(3833),r=__webpack_require__.n(t),n=__webpack_require__(1212);const s=class extends n{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class o extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(s,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 a=o,i=__webpack_require__.p+"1496cfca5e4d41188323a914b9705264.wasm";let _=null,c=null;const u=async e=>{if(null===_&&null===c)c=r().init().then((()=>r().Language.load(i))).then((e=>{const t=new(r());return t.setLanguage(e),t})).finally((()=>{c=null})),_=await c;else if(null===_&&null!==c)_=await c;else if(null===_)throw new a("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return _.parse(e)};function l(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function d(e){return function t(r){return 0===arguments.length||l(r)?t:e.apply(this,arguments)}}const m=d((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function p(e,t,r){if(r||(r=new h),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,s=function(n){var s=r.get(e);if(s)return s;for(var o in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=t?p(e[o],!0,r):e[o]);return n};switch(m(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.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 h=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1){if((o=r[n])[0]===e)return o[1]}else{var s=this.hash(e);if(r=this.map[s])for(n=0;n<r.length;n+=1){var o;if((o=r[n])[0]===e)return o[1]}}},e}();const f=d((function(e){return null!=e&&"function"==typeof e.clone?e.clone():p(e,!0)}));const g=class extends a{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const y=class extends g{};const w=class extends y{};const b=class extends w{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 E=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let v=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const x=class extends E{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const T=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const A=class extends T{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===v.Mapping}};const S=class extends T{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===v.Sequence}};const M=class extends T{static uri="tag:yaml.org,2002:str"};function O(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return l(r)?t:d((function(t){return e(r,t)}));default:return l(r)&&l(n)?t:l(r)?d((function(t){return e(t,n)})):l(n)?d((function(t){return e(r,t)})):e(r,n)}}}function I(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return l(r)?t:O((function(t,n){return e(r,t,n)}));case 2:return l(r)&&l(n)?t:l(r)?O((function(t,r){return e(t,n,r)})):l(n)?O((function(t,n){return e(r,t,n)})):d((function(t){return e(r,n,t)}));default:return l(r)&&l(n)&&l(s)?t:l(r)&&l(n)?O((function(t,r){return e(t,r,s)})):l(r)&&l(s)?O((function(t,r){return e(t,n,r)})):l(n)&&l(s)?O((function(t,n){return e(r,t,n)})):l(r)?d((function(t){return e(t,n,s)})):l(n)?d((function(t){return e(r,t,s)})):l(s)?d((function(t){return e(r,n,t)})):e(r,n,s)}}}const F=Number.isInteger||function(e){return(e|0)===e};function N(e){return"[object String]"===Object.prototype.toString.call(e)}function P(e,t){var r=e<0?t.length+e:e;return N(t)?t.charAt(r):t[r]}function R(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=F(s)?P(s,r):r[s]}return r}const k=O((function(e,t){return null==t||t!=t?e:t}));const C=I((function(e,t,r){return k(e,R(t,r))}));function j(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,o){return t.apply(this,arguments)};case 6:return function(e,r,n,s,o,a){return t.apply(this,arguments)};case 7:return function(e,r,n,s,o,a,i){return t.apply(this,arguments)};case 8:return function(e,r,n,s,o,a,i,_){return t.apply(this,arguments)};case 9:return function(e,r,n,s,o,a,i,_,c){return t.apply(this,arguments)};case 10:return function(e,r,n,s,o,a,i,_,c,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 U(e,t,r){return function(){for(var n=[],s=0,o=e,a=0,i=!1;a<t.length||s<arguments.length;){var _;a<t.length&&(!l(t[a])||s>=arguments.length)?_=t[a]:(_=arguments[s],s+=1),n[a]=_,l(_)?i=!0:o-=1,a+=1}return!i&&o<=0?r.apply(this,n):j(Math.max(0,o),U(e,n,r))}}const L=O((function(e,t){return 1===e?d(t):j(e,U(e,[],t))}));const V=d((function(e){return L(e.length,e)}));function D(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const B=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const q=d((function(e){return!!B(e)||!!e&&("object"==typeof e&&(!N(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var W="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function G(e,t,r){return function(n,s,o){if(q(o))return e(n,s,o);if(null==o)return s;if("function"==typeof o["fantasy-land/reduce"])return t(n,s,o,"fantasy-land/reduce");if(null!=o[W])return r(n,s,o[W]());if("function"==typeof o.next)return r(n,s,o);if("function"==typeof o.reduce)return t(n,s,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function H(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const $=O((function(e,t){return j(e.length,(function(){return e.apply(t,arguments)}))}));function Z(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function z(e,t,r,n){return e["@@transducer/result"](r[n]($(e["@@transducer/step"],e),t))}const K=G(H,z,Z);var Y=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 X(e){return new Y(e)}const Q=I((function(e,t,r){return K("function"==typeof e?X(e):e,t,r)}));function J(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return B(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const ee=I(J("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const te=d(J("tail",ee(1,1/0)));function re(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return j(arguments[0].length,Q(D,arguments[0],te(arguments)))}var ne="\t\n\v\f\r \u2028\u2029\ufeff";const se=d("function"==typeof String.prototype.trim&&!ne.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+ne+"]["+ne+"]*"),r=new RegExp("["+ne+"]["+ne+"]*$");return e.replace(t,"").replace(r,"")});function oe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function ae(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ie(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function _e(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ce="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ue=Object.prototype.toString;const le=function(){return"[object Arguments]"===ue.call(arguments)?function(e){return"[object Arguments]"===ue.call(e)}:function(e){return _e("callee",e)}}();var de=!{toString:null}.propertyIsEnumerable("toString"),me=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],pe=function(){return arguments.propertyIsEnumerable("length")}(),he=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},fe="function"!=typeof Object.keys||pe?d((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=pe&&le(e);for(t in e)!_e(t,e)||s&&"length"===t||(n[n.length]=t);if(de)for(r=me.length-1;r>=0;)_e(t=me[r],e)&&!he(n,t)&&(n[n.length]=t),r-=1;return n})):d((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ge=fe;function ye(e,t,r,n){var s=ae(e);function o(e,t){return we(e,t,r.slice(),n.slice())}return!ie((function(e,t){return!ie(o,t,e)}),ae(t),s)}function we(e,t,r,n){if(ce(e,t))return!0;var s,o,a=m(e);if(a!==m(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(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(o=String(s).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!ce(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ce(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=r.length-1;i>=0;){if(r[i]===e)return n[i]===t;i-=1}switch(a){case"Map":return e.size===t.size&&ye(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&ye(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var _=ge(e);if(_.length!==ge(t).length)return!1;var c=r.concat([e]),u=n.concat([t]);for(i=_.length-1;i>=0;){var l=_[i];if(!_e(l,t)||!we(t[l],e[l],c,u))return!1;i-=1}return!0}const be=O((function(e,t){return we(e,t,[],[])}));function Ee(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(be(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ve(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function xe(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Te=function(e){return(e<10?"0":"")+e};const Ae="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Te(e.getUTCMonth()+1)+"-"+Te(e.getUTCDate())+"T"+Te(e.getUTCHours())+":"+Te(e.getUTCMinutes())+":"+Te(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function Me(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!B(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ie=function(){return this.xf["@@transducer/init"]()},Fe=function(e){return this.xf["@@transducer/result"](e)};var Ne=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ie,e.prototype["@@transducer/result"]=Fe,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Pe(e){return function(t){return new Ne(e,t)}}const Re=O(Me(["fantasy-land/filter","filter"],Pe,(function(e,t){return Oe(t)?Se((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},ge(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const ke=O((function(e,t){return Re((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Ce(e,t){var r=function(r){var n=t.concat([e]);return Ee(r,n)?"<Circular>":Ce(r,n)},n=function(e,t){return ve((function(t){return xe(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ve(r,e).join(", ")+"))";case"[object Array]":return"["+ve(r,e).concat(n(e,ke((function(e){return/^\d+$/.test(e)}),ge(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):xe(Ae(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,ge(e)).join(", ")+"}"}}const je=d((function(e){return Ce(e,[])}));const Ue=O((function(e,t){return L(e+1,(function(){var r=arguments[e];if(null!=r&&oe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(je(r)+' does not have a method named "'+t+'"')}))}));const Le=Ue(1,"split");var Ve=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ie,e.prototype["@@transducer/result"]=Fe,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const De=O(Me(["fantasy-land/map","map"],(function(e){return function(t){return new Ve(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return L(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Se((function(r,n){return r[n]=e(t[n]),r}),{},ge(t));default:return ve(e,t)}})));const Be=Ue(1,"join");const qe=d((function(e){return N(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function We(){if(0===arguments.length)throw new Error("compose requires at least one argument");return re.apply(this,qe(arguments))}const Ge=L(4,(function(e,t,r,n){return K(e("function"==typeof t?X(t):t),r,n)}));const He=O((function(e,t){if(B(e)){if(B(t))return e.concat(t);throw new TypeError(je(t)+" is not an array")}if(N(e)){if(N(t))return e+t;throw new TypeError(je(t)+" is not a string")}if(null!=e&&oe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&oe(e.concat))return e.concat(t);throw new TypeError(je(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const $e=be("");const Ze=O((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var o=je(e),a=r(o,je(t));return void 0!==a&&a===o?e:t}));const ze=O((function(e,t){if(null!=t)return F(e)?P(e,t):t[e]}));const Ke=O((function(e,t){return De(ze(e),t)}));const Ye=d((function(e){return L(Q(Ze,0,Ke("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var Xe=function(e,t){switch(arguments.length){case 0:return Xe;case 1:return function t(r){return 0===arguments.length?t:ce(e,r)};default:return ce(e,t)}};const Qe=Xe;const Je=L(1,re(m,Qe("GeneratorFunction")));const et=L(1,re(m,Qe("AsyncFunction")));const tt=Ye([re(m,Qe("Function")),Je,et]);const rt=O((function(e,t){return e&&t}));function nt(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function st(e,t,r,n){return r[n](e,t)}const ot=G(Se,st,nt);const at=O((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:ot((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<s;)o[o.length]=t[r],r+=1;return o}(e,De(r,t))}),[],e)}));const it=O((function(e,t){var r=L(e,t);return L(e,(function(){return Se(at,De(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const _t=d((function(e){return it(e.length,e)}));const ct=O((function(e,t){return oe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:_t(rt)(e,t)}));const ut=O((function(e,t){return L(Q(Ze,0,Ke("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ve((function(e){return e.apply(n,r)}),t))}))}));function lt(e){return e}const dt=d(lt);const mt=L(1,re(m,Qe("Number")));var pt=ct(mt,isFinite);var ht=L(1,pt);const ft=tt(Number.isFinite)?L(1,$(Number.isFinite,Number)):ht;var gt=ct(ft,ut(be,[Math.floor,dt]));var yt=L(1,gt);const wt=tt(Number.isInteger)?L(1,$(Number.isInteger,Number)):yt;const bt=d((function(e){return L(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Et=_t(d((function(e){return!e})));const vt=Et(ft);const xt=L(1,ct(mt,O((function(e,t){return e>t}))(0)));var Tt=V((function(e,t){var r=Number(t);if(r!==t&&(r=0),xt(r))throw new RangeError("repeat count must be non-negative");if(vt(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=e;r;)s+=e,r-=1;return s+=s.substring(0,n-s.length)})),At=bt(Ue(1,"repeat"));const St=tt(String.prototype.repeat)?At:Tt;var Mt=d((function(e){return function(){return e}}))(void 0);const Ot=be(Mt());const It=I((function(e,t,r){return r.replace(e,t)}));var Ft=It(/[\s\uFEFF\xA0]+$/,""),Nt=Ue(0,"trimEnd");const Pt=tt(String.prototype.trimEnd)?Nt:Ft;var Rt=It(/^[\s\uFEFF\xA0]+/,""),kt=Ue(0,"trimStart");const Ct=tt(String.prototype.trimStart)?kt:Rt;var jt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ie,e.prototype["@@transducer/result"]=Fe,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 Ut(e){return function(t){return new jt(e,t)}}const Lt=O(Me(["dropWhile"],Ut,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return ee(r,1/0,t)})));const Vt=bt(O(Ee));const Dt=V((function(e,t){return re(Le(""),Lt(Vt(e)),Be(""))(t)}));const Bt=bt(He);var qt=__webpack_require__(6850);const Wt=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Gt=e=>{const t=(e=>{const t=e.match(Wt),r=C("",["groups","indentation"],t);return $e(r)?void 0:parseInt(r,10)})(e);if(wt(t))return St(" ",t);const r=C("",[1],e.split("\n")),n=C(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return St(" ",n)},Ht=e=>{const t=e.match(Wt),r=C("",["groups","chomping"],t);return $e(r)?void 0:r},$t=(e,t)=>Ot(e)?`${Pt(t)}\n`:"-"===e?Pt(t):t,Zt=e=>e.replace(/\r\n/g,"\n"),zt=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Kt=V(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Yt=re(Zt,se,zt,Le("\n"),De(Ct),Be("\n")),Xt=re(Zt,se,zt,Le("\n"),De(Ct),Be("\n"),Kt("'")),Qt=re(Zt,se,(e=>e.replace(/\\\n\s*/g,"")),zt,qt.MH,Le("\n"),De(Ct),Be("\n"),Kt('"'));let Jt=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}({}),er=function(e){return e.Flow="Flow",e.Block="Block",e}({});const tr=class{static test(e){return e.tag.kind===v.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Jt.Plain?t=Yt(e.content):e.style===Jt.SingleQuoted?t=Xt(e.content):e.style===Jt.DoubleQuoted?t=Qt(e.content):e.style===Jt.Literal?t=(e=>{const t=Gt(e),r=Ht(e),n=Zt(e),s=te(n.split("\n")),o=We(De(Dt(t)),De(Bt("\n"))),a=Ge(o,He,"",s);return $t(r,a)})(e.content):e.style===Jt.Folded&&(t=(e=>{const t=Gt(e),r=Ht(e),n=Zt(e),s=te(n.split("\n")),o=We(De(Dt(t)),De(Bt("\n"))),a=Ge(o,He,"",s),i=zt(a);return $t(r,i)})(e.content)),r.content=t,r}static resolve(e){return e}};const rr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new A),this.registerTag(new S),this.registerTag(new M)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===v.Scalar?t=M.uri:e.tag.kind===v.Sequence?t=S.uri:e.tag.kind===v.Mapping&&(t=A.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 r=e;tr.test(e)&&(r=tr.canonicalFormat(e));const n=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===n)throw new b(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:f(e.tag.position),node:e.clone()});if(!n.test(r))throw new b(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:f(e.tag.position),nodeCanonicalContent:r.content,node:e.clone()});return n.resolve(r)}};const nr=class extends T{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const sr=class extends T{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),r=e.clone();return r.content=t,r}};const or=class extends T{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),r=e.clone();return r.content=t,r}};const ar=class extends T{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const ir=class extends rr{constructor(){super(),this.registerTag(new nr,!0),this.registerTag(new sr,!0),this.registerTag(new or,!0),this.registerTag(new ar,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===v.Sequence)t=S.uri;else if(e.tag.kind===v.Mapping)t=A.uri;else if(e.tag.kind===v.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const _r=class extends E{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:n,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=n}};const cr=class extends _r{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const ur=class extends y{},lr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,dr=e=>lr("mapping",e),mr=e=>lr("sequence",e),pr=e=>lr("keyValuePair",e),hr=e=>lr("scalar",e),fr=e=>lr("alias",e);const gr=class{addAnchor(e){if(!(e=>lr("anchor",e))(e.anchor))throw new ur("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new cr({content:e.content,style:Jt.Plain,styleGroup:er.Flow})}},yr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},wr={},br=e=>null==e?void 0:e.type,Er=e=>"string"==typeof br(e),vr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),xr=(e,{visitFnGetter:t=yr,nodeTypeGetter:r=br,breakSymbol:n=wr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:a=!1}={})=>{const i=Symbol("skip"),_=new Array(e.length).fill(i);return{enter(c,u,l,d,m,p){let h=c,f=!1;const y={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let c=0;c<e.length;c+=1)if(_[c]===i){const i=t(e[c],r(h),!1);if("function"==typeof i){const t=i.call(e[c],h,u,l,d,m,y);if("function"==typeof(null==t?void 0:t.then))throw new g("Async visitor not supported in sync mode",{visitor:e[c],visitFn:i});if(t===o)_[c]=h;else if(t===n)_[c]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;h=t,f=!0}}}}return f?h:void 0},leave(s,a,c,u,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===i){const i=t(e[s],r(m),!0);if("function"==typeof i){const t=i.call(e[s],m,a,c,u,l,p);if("function"==typeof(null==t?void 0:t.then))throw new g("Async visitor not supported in sync mode",{visitor:e[s],visitFn:i});if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=i)}}};xr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=yr,nodeTypeGetter:r=br,breakSymbol:n=wr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:a=!1}={})=>{const i=Symbol("skip"),_=new Array(e.length).fill(i);return{async enter(c,u,l,d,m,p){let h=c,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let c=0;c<e.length;c+=1)if(_[c]===i){const i=t(e[c],r(h),!1);if("function"==typeof i){const t=await i.call(e[c],h,u,l,d,m,g);if(t===o)_[c]=h;else if(t===n)_[c]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;h=t,f=!0}}}}return f?h:void 0},async leave(s,a,c,u,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===i){const i=t(e[s],r(m),!0);if("function"==typeof i){const t=await i.call(e[s],m,a,c,u,l,p);if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=i)}}};const Tr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=wr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:i=yr,nodeTypeGetter:_=br,nodePredicate:c=Er,nodeCloneFn:u=vr,detectCycles:l=!0}={})=>{const d=r||{};let m,p,h=Array.isArray(e),f=[e],y=-1,w=[],b=e;const E=[],v=[];do{y+=1;const e=y===f.length;let r;const A=e&&0!==w.length;if(e){if(r=0===v.length?void 0:E.pop(),b=p,p=v.pop(),A)if(h){b=b.slice();let e=0;for(const[t,r]of w){const n=t-e;r===o?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of w)b[e]=t}y=m.index,f=m.keys,w=m.edits,h=m.inArray,m=m.prev}else if(p!==o&&void 0!==p){if(r=h?y:f[y],b=p[r],b===o||void 0===b)continue;E.push(r)}let S;if(!Array.isArray(b)){var x;if(!c(b))throw new g(`Invalid AST Node: ${String(b)}`,{node:b});if(l&&v.includes(b)){E.pop();continue}const o=i(t,_(b),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,p,E,v):p&&(p[r]=t),e||(b=t)}};S=o.call(t,b,r,p,E,v,s)}if("function"==typeof(null===(x=S)||void 0===x?void 0:x.then))throw new g("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(S===s)break;if(S===a){if(!e){E.pop();continue}}else if(void 0!==S&&(w.push([r,S]),!e)){if(!c(S)){E.pop();continue}b=S}}var T;if(void 0===S&&A&&w.push([r,b]),!e)m={inArray:h,index:y,keys:f,edits:w,prev:m},h=Array.isArray(b),f=h?b:null!==(T=d[_(b)])&&void 0!==T?T:[],y=-1,w=[],p!==o&&void 0!==p&&v.push(p),p=b}while(void 0!==m);return 0!==w.length?w[w.length-1][1]:e};Tr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=wr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:i=yr,nodeTypeGetter:_=br,nodePredicate:c=Er,nodeCloneFn:u=vr,detectCycles:l=!0}={})=>{const d=r||{};let m,p,h=Array.isArray(e),f=[e],y=-1,w=[],b=e;const E=[],v=[];do{y+=1;const e=y===f.length;let r;const T=e&&0!==w.length;if(e){if(r=0===v.length?void 0:E.pop(),b=p,p=v.pop(),T)if(h){b=b.slice();let e=0;for(const[t,r]of w){const n=t-e;r===o?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of w)b[e]=t}y=m.index,f=m.keys,w=m.edits,h=m.inArray,m=m.prev}else if(p!==o&&void 0!==p){if(r=h?y:f[y],b=p[r],b===o||void 0===b)continue;E.push(r)}let A;if(!Array.isArray(b)){if(!c(b))throw new g(`Invalid AST Node: ${String(b)}`,{node:b});if(l&&v.includes(b)){E.pop();continue}const o=i(t,_(b),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,b,r,p,E,v):p&&(p[r]=t),e||(b=t)}};A=await o.call(t,b,r,p,E,v,s)}if(A===s)break;if(A===a){if(!e){E.pop();continue}}else if(void 0!==A&&(w.push([r,A]),!e)){if(!c(A)){E.pop();continue}b=A}}var x;if(void 0===A&&T&&w.push([r,b]),!e)m={inArray:h,index:y,keys:f,edits:w,prev:m},h=Array.isArray(b),f=h?b:null!==(x=d[_(b)])&&void 0!==x?x:[],y=-1,w=[],p!==o&&void 0!==p&&v.push(p),p=b}while(void 0!==m);return 0!==w.length?w[w.length-1][1]:e};class Ar{static type="point";type=Ar.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class Sr{static type="position";type=Sr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Mr=Sr;const Or=class extends E{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class Ir extends E{static type="stream"}Object.defineProperty(Ir.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>lr("document",e))(e)||(e=>lr("comment",e))(e))):[]},enumerable:!0});const Fr=Ir;const Nr=d((function(e){return P(0,e)}));const Pr=class extends E{static type="parseResult";get rootNode(){return Nr(this.children)}};const Rr="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),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var o in s)_e(o,s)&&(t[o]=s[o]);r+=1}return t};const kr=O((function(e,t){return Rr({},e,t)}));const Cr=class extends E{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=kr({version:void 0,handle:void 0,prefix:void 0},t)}};const jr=class extends E{static type="document"};const Ur=class extends _r{};class Lr extends Ur{static type="mapping"}Object.defineProperty(Lr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(pr):[]},enumerable:!0});const Vr=Lr;class Dr extends E{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Dr.prototype,{key:{get(){return this.children.filter((e=>hr(e)||dr(e)||mr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>hr(e)||dr(e)||mr(e)||fr(e))(t)))[0]},enumerable:!0}});const Br=Dr;class qr extends Ur{static type="sequence"}Object.defineProperty(qr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>mr(e)||dr(e)||hr(e)||fr(e))):[]},enumerable:!0});const Wr=qr;const Gr=class extends E{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Hr=class extends E{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const $r=class extends E{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Zr=class extends E{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const zr=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)}},Kr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Yr=e=>Array.isArray(e)||Er(e);class Xr{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 Ar({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new Ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Mr({start:t,end:r})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new Or({name:t.text,position:Xr.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,r=t?.text||("plain_scalar"===e.type?"?":"!"),n=e.type.endsWith("mapping")?v.Mapping:e.type.endsWith("sequence")?v.Sequence:v.Scalar,s=t?Xr.toPosition(t):void 0;return new x({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:e=>{const t=Xr.toPosition(e);return new Fr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Pr({children:[e]})};yaml_directive={enter:e=>{const t=Xr.toPosition(e),r=e?.firstNamedChild?.text;return new Cr({position:t,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Xr.toPosition(e),r=e.children[0],n=e.children[1],s=new Cr({position:t,name:"%TAG",parameters:{handle:r?.text,prefix:n?.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Xr.toPosition(e),r=e.children[0],n=e.children[1],s=e.children[2];return new Cr({position:t,name:r?.text,parameters:{handle:n?.text,prefix:s?.text}})}};document={enter:e=>{const t=Xr.toPosition(e);return new jr({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(Xr.isScalar(t)||Xr.isMapping(t)||Xr.isSequence(t))return e.children;const r=new Ar({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),n=new cr({content:"",anchor:Xr.kindNodeToYamlAnchor(t),tag:Xr.kindNodeToYamlTag(t),position:new Mr({start:r,end:r}),styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(n),[...e.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Vr({children:e.children,position:t,anchor:n,tag:r,styleGroup:er.Block,style:Jt.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Xr.toPosition(e),r=[...e.children];if(Xr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Xr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new Br({children:r,position:t,styleGroup:er.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Vr({children:e.children,position:t,anchor:n,tag:r,styleGroup:er.Flow,style:Jt.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Xr.toPosition(e),r=[...e.children];if(Xr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Xr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new Br({children:r,position:t,styleGroup:er.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Wr({children:e.children,position:t,anchor:n,tag:r,styleGroup:er.Block,style:Jt.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new Ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new cr({content:"",tag:new x({explicitName:"?",kind:v.Scalar}),position:new Mr({start:t,end:t}),styleGroup:er.Flow,style:Jt.Plain})]}};flow_sequence={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Wr({children:e.children.flat(),position:t,anchor:n,tag:r,styleGroup:er.Flow,style:Jt.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Flow,style:Jt.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Flow,style:Jt.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Jt.Literal:e.text.startsWith(">")?Jt.Folded:Jt.Plain,o=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Block,style:s});return this.registerAnchor(o),this.schema.resolve(o)}};comment={enter:e=>new Gr({content:e.text})};alias={enter:e=>{const t=new Hr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof zr&&!e.isNamed){const t=Xr.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return new $r({value:r,position:t,isMissing:n})}}ERROR(e,t,r,n){const s=Xr.toPosition(e),o=new Zr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Pr({children:[o]}):o}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new Ar({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:r}=e,n=r?.children||[],s=n.find(Xr.isKind("tag")),o=n.find(Xr.isKind("anchor")),a=new x(void 0!==s?{explicitName:s.text,kind:v.Scalar,position:Xr.toPosition(s)}:{explicitName:"?",kind:v.Scalar}),i=void 0!==o?new Or({name:o.text,position:Xr.toPosition(o)}):void 0,_=new cr({content:"",position:new Mr({start:t,end:t}),tag:a,anchor:i,styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(_),_}createKeyValuePairEmptyValue(e){const t=new Ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:r}=e,n=r?.children||[],s=n.find(Xr.isKind("tag")),o=n.find(Xr.isKind("anchor")),a=new x(void 0!==s?{explicitName:s.text,kind:v.Scalar,position:Xr.toPosition(s)}:{explicitName:"?",kind:v.Scalar}),i=void 0!==o?new Or({name:o.text,position:Xr.toPosition(o)}):void 0,_=new cr({content:"",position:new Mr({start:t,end:t}),tag:a,anchor:i,styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(_),_}}const Qr=Xr;const Jr=L(1,re(m,Qe("String")));var en=__webpack_require__(8326);var tn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Ie,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){var r;return this.f(t)||(this.all=!1,e=(r=this.xf["@@transducer/step"](e,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),e},e}();function rn(e){return function(t){return new tn(e,t)}}const nn=O(Me(["all"],rn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class sn extends en.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const on=sn;class an extends en.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const _n=an;class cn extends en.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Ot(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const un=cn;class ln extends en.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new en.wE([e.start.row,e.start.column,e.start.char]),r=new en.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const dn=ln,mn=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],pn=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,hn=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),fn=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof en.wE)&&t.classes.includes(e),gn=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,yn=e=>e({hasMethod:mn,hasBasicElementProps:pn,primitiveEq:hn,isElementType:gn,hasClass:fn}),wn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.Hg||e(r)&&t(void 0,r))),bn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.Om||e(r)&&t("string",r))),En=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.kT||e(r)&&t("number",r))),vn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.Os||e(r)&&t("null",r))),xn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.bd||e(r)&&t("boolean",r))),Tn=yn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof en.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),An=yn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof en.wE&&!(n instanceof en.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Sn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof en.Pr||e(n)&&t("member",n)&&r(void 0,n))),Mn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof en.Ft||e(n)&&t("link",n)&&r(void 0,n))),On=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof en.sI||e(n)&&t("ref",n)&&r(void 0,n))),In=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof on||e(n)&&t("annotation",n)&&r("array",n))),Fn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _n||e(n)&&t("comment",n)&&r("string",n))),Nn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof un||e(n)&&t("parseResult",n)&&r("array",n))),Pn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dn||e(n)&&t("sourceMap",n)&&r("array",n))),Rn=e=>gn("object",e)||gn("array",e)||gn("boolean",e)||gn("number",e)||gn("string",e)||gn("null",e)||gn("member",e),kn=e=>Pn(e.meta.get("sourceMap")),Cn=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!An(r)&&nn(Vt(r.toValue()),e)},jn=(e,t)=>0===e.length||nn(Vt(t.classes.toValue()),e);const Un=class extends g{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ln=class extends Un{};const Vn=class extends Un{},Dn=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof en.KeyValuePair){const{key:t,value:s}=e,o=wn(t)?Dn(t,n):t,a=wn(s)?Dn(s,n):s,i=new en.KeyValuePair(o,a);return r.set(e,i),i}if(e instanceof en.ot){const t=e=>Dn(e,n),s=[...e].map(t),o=new en.ot(s);return r.set(e,o),o}if(e instanceof en.G6){const t=e=>Dn(e,n),s=[...e].map(t),o=new en.G6(s);return r.set(e,o),o}if(wn(e)){const t=Wn(e);if(r.set(e,t),e.content)if(wn(e.content))t.content=Dn(e.content,n);else if(e.content instanceof en.KeyValuePair)t.content=Dn(e.content,n);else if(Array.isArray(e.content)){const r=e=>Dn(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ln("Value provided to cloneDeep function couldn't be cloned",{value:e})};Dn.safe=e=>{try{return Dn(e)}catch{return e}};const Bn=e=>{const{key:t,value:r}=e;return new en.KeyValuePair(t,r)},qn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Dn(e.meta)),e.attributes.length>0&&(t._attributes=Dn(e.attributes)),wn(e.content)){const r=e.content;t.content=qn(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof en.KeyValuePair?t.content=Bn(e.content):t.content=e.content;return t},Wn=e=>{if(e instanceof en.KeyValuePair)return Bn(e);if(e instanceof en.ot)return(e=>{const t=[...e];return new en.ot(t)})(e);if(e instanceof en.G6)return(e=>{const t=[...e];return new en.G6(t)})(e);if(wn(e))return qn(e);throw new Vn("Value provided to cloneShallow function couldn't be cloned",{value:e})};Wn.safe=e=>{try{return Wn(e)}catch{return e}};const Gn=e=>Tn(e)?"ObjectElement":An(e)?"ArrayElement":Sn(e)?"MemberElement":bn(e)?"StringElement":xn(e)?"BooleanElement":En(e)?"NumberElement":vn(e)?"NullElement":Mn(e)?"LinkElement":On(e)?"RefElement":void 0,Hn=e=>wn(e)?Wn(e):vr(e),$n=re(Gn,Jr),Zn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const zn=(e,t,{keyMap:r=Zn,...n}={})=>Tr(e,t,{keyMap:r,nodeTypeGetter:Gn,nodePredicate:$n,nodeCloneFn:Hn,...n});zn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Zn,...n}={})=>Tr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Gn,nodePredicate:$n,nodeCloneFn:Hn,...n});const Kn=I((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})_e(n,t)&&(s[n]=_e(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)_e(n,r)&&!_e(n,s)&&(s[n]=r[n]);return s}));const Yn=I((function e(t,r,n){return Kn((function(r,n,s){return Oe(n)&&Oe(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Xn=O((function(e,t){return Yn((function(e,t,r){return r}),e,t)}));const Qn=I((function(e,t,r){return k(e,ze(t,r))}));const Jn=O(R);const es=ee(0,-1);const ts=O((function(e,t){return e.apply(this,t)}));const rs=Et(tt);var ns=d((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():B(e)?[]:N(e)?"":Oe(e)?{}:le(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 ss=ns;const os=d((function(e){return null!=e&&be(e,ss(e))}));const as=ct(L(1,tt(Array.isArray)?Array.isArray:re(m,Qe("Array"))),os);const is=L(3,(function(e,t,r){var n=Jn(e,r),s=Jn(es(e),r);if(!rs(n)&&!as(e)){var o=$(n,s);return ts(o,t)}}));const _s=I((function(e,t,r){return e(R(t,r))}));const cs=be(null);var us=Et(cs);function ls(e){return ls="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},ls(e)}const ds=L(1,ct(us,(function(e){return"object"===ls(e)})));var ms=re(m,Qe("Object")),ps=_s(ct(tt,re(je,be(je(Object)))),["constructor"]);const hs=L(1,(function(e){if(!ds(e)||!ms(e))return!1;var t=Object.getPrototypeOf(e);return!!cs(t)||ps(t)}));class fs extends en.g${constructor(){super(),this.register("annotation",on),this.register("comment",_n),this.register("parseResult",un),this.register("sourceMap",dn)}}const gs=new fs,ys=e=>{const t=new fs;return hs(e)&&t.use(e),t},ws=gs,bs=()=>({predicates:{...e},namespace:ws}),Es={toolboxCreator:bs,visitorOptions:{nodeTypeGetter:Gn,exposeEdits:!0}},vs=(e,t,r={})=>{if(0===t.length)return e;const n=Xn(Es,r),{toolboxCreator:s,visitorOptions:o}=n,a=s(),i=t.map((e=>e(a))),_=xr(i.map(Qn({},"visitor")),{...o});i.forEach(is(["pre"],[]));const c=zn(e,_,o);return i.forEach(is(["post"],[])),c};vs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Xn(Es,r),{toolboxCreator:s,visitorOptions:o}=n,a=s(),i=t.map((e=>e(a))),_=xr[Symbol.for("nodejs.util.promisify.custom")],c=zn[Symbol.for("nodejs.util.promisify.custom")],u=_(i.map(Qn({},"visitor")),{...o});await Promise.allSettled(i.map(is(["pre"],[])));const l=await c(e,u,o);return await Promise.allSettled(i.map(is(["post"],[]))),l};const xs=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return wn(e)&&(e.meta.length>0&&(n.meta=Dn(e.meta)),e.attributes.length>0&&(n.attributes=Dn(e.attributes))),vs(n,r,{toolboxCreator:bs,visitorOptions:{nodeTypeGetter:Gn}})},Ts=e=>(t,r={})=>xs(t,{...r,Type:e});en.Sh.refract=Ts(en.Sh),en.wE.refract=Ts(en.wE),en.Om.refract=Ts(en.Om),en.bd.refract=Ts(en.bd),en.Os.refract=Ts(en.Os),en.kT.refract=Ts(en.kT),en.Ft.refract=Ts(en.Ft),en.sI.refract=Ts(en.sI),on.refract=Ts(on),_n.refract=Ts(_n),un.refract=Ts(un),dn.refract=Ts(dn);const As={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Zn},Ss=e=>wn(e)?Gn(e):br(e),Ms=e=>wn(e)||Er(e)||Array.isArray(e);const Os=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new un;t._content=e.children.flat(1);const r=t.findElements(Rn);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ys()}comment(e){if(0===this.processedDocumentCount){const t=new _n(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new on("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 r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new en.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new en.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 en.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===Jt.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})`,r=new on(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new on(s);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new un;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new dn;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}};class Is{cursor;constructor(e){this.cursor=e}stream(){return new zr(this.cursor)}yaml_directive(){return new zr(this.cursor)}tag_directive(){return new zr(this.cursor)}reserved_directive(){return new zr(this.cursor)}document(){return new zr(this.cursor)}block_node(){return new zr(this.cursor).setFieldName(this.cursor)}flow_node(){return new zr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new zr(this.cursor)}block_mapping_pair(){return new zr(this.cursor)}flow_mapping(){return new zr(this.cursor)}flow_pair(){return new zr(this.cursor)}block_sequence(){return new zr(this.cursor)}block_sequence_item(){return new zr(this.cursor)}flow_sequence(){return new zr(this.cursor)}plain_scalar(){return new zr(this.cursor)}single_quote_scalar(){return new zr(this.cursor)}double_quote_scalar(){return new zr(this.cursor)}block_scalar(){return new zr(this.cursor)}ERROR(){return new zr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new zr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Is(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Is(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Fs=Is,Ns=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new Fs(r),[s]=Array.from(n),o=new Qr,a=new Os,i=new ir,_=new gr,c=Tr(s,o,{keyMap:Kr,nodePredicate:Yr,state:{schema:i,sourceMap:t,referenceManager:_}});return Tr(c.rootNode,a,{keyMap:As,nodeTypeGetter:Ss,nodePredicate:Ms,state:{sourceMap:t}})},Ps=ys();const Rs=class extends a{};const ks=class extends Rs{};const Cs=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ks("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ks("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ks("latest method in MediaTypes class is not yet implemented.")}};const js=new class extends Cs{latest(){return this[1]}}("text/yaml","application/yaml"),Us=async e=>{try{return!(await u(e)).rootNode.isError}catch{return!1}},Ls=async(e,{sourceMap:t=!1}={})=>{const r=await u(e);return Ns(r,{sourceMap:t})}})(),__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.apidomParserAdapterYaml1_2=t():e.apidomParserAdapterYaml1_2=t()}(self,(()=>(()=>{var __webpack_modules__={85:(e,t,r)=>{"use strict";r(9828);var n=r(1100),s=r(8900),o=r(1811),a=r(6625);for(var i in n)o(s[i],i),a[i]=a.Array},88:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).get(e)}},155:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},164:(e,t,r)=>{"use strict";var n=r(9098),s=r(4713),o=r(4871),a=r(3410),i=r(2769),_=r(1926),c=r(3671),u=r(3491),l=r(1811),d=r(3999),m=r(3508),p=r(8655),h=r(6625),f=r(2621),g=a.PROPER,y=a.CONFIGURABLE,w=f.IteratorPrototype,b=f.BUGGY_SAFARI_ITERATORS,E=p("iterator"),v="keys",x="values",T="entries",A=function(){return this};e.exports=function(e,t,r,a,p,f,S){_(r,t,a);var M,O,I,F=function(e){if(e===p&&C)return C;if(!b&&e&&e in R)return R[e];switch(e){case v:case x:case T:return function(){return new r(this,e)}}return function(){return new r(this)}},N=t+" Iterator",P=!1,R=e.prototype,k=R[E]||R["@@iterator"]||p&&R[p],C=!b&&k||F(p),j="Array"===t&&R.entries||k;if(j&&(M=c(j.call(new e)))!==Object.prototype&&M.next&&(o||c(M)===w||(u?u(M,w):i(M[E])||m(M,E,A)),l(M,N,!0,!0),o&&(h[N]=A)),g&&p===x&&k&&k.name!==x&&(!o&&y?d(R,"name",x):(P=!0,C=function(){return s(k,this)})),p)if(O={values:F(x),keys:f?C:F(v),entries:F(T)},S)for(I in O)(b||P||!(I in R))&&m(R,I,O[I]);else n({target:t,proto:!0,forced:b||P},O);return o&&!S||R[E]===C||m(R,E,C,{name:p}),h[t]=C,O}},195:(e,t,r)=>{var n=r(4882),s=r(8121),o=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))o.call(e,r)&&"constructor"!=r&&t.push(r);return t}},208:(e,t,r)=>{"use strict";var n=r(4572),s=r(4713),o=r(7235),a=r(459),i=r(2877),_=r(8130),c=r(4317),u=r(1613),l=r(967),d=r(1743),m=TypeError,p=function(e,t){this.stopped=e,this.result=t},h=p.prototype;e.exports=function(e,t,r){var f,g,y,w,b,E,v,x=r&&r.that,T=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),S=!(!r||!r.IS_ITERATOR),M=!(!r||!r.INTERRUPTED),O=n(t,x),I=function(e){return f&&d(f,"normal",e),new p(!0,e)},F=function(e){return T?(o(e),M?O(e[0],e[1],I):O(e[0],e[1])):M?O(e,I):O(e)};if(A)f=e.iterator;else if(S)f=e;else{if(!(g=l(e)))throw new m(a(e)+" is not iterable");if(i(g)){for(y=0,w=_(e);w>y;y++)if((b=F(e[y]))&&c(h,b))return b;return new p(!1)}f=u(e,g)}for(E=A?e.next:f.next;!(v=s(E,f)).done;){try{b=F(v.value)}catch(e){d(f,"throw",e)}if("object"==typeof b&&b&&c(h,b))return b}return new p(!1)}},239:(e,t,r)=>{"use strict";r(5442);var n=r(6656);r(85),e.exports=n},262:(e,t,r)=>{"use strict";var n=r(2769);e.exports=function(e){return"object"==typeof e?null!==e:n(e)}},353:(e,t,r)=>{var n=r(1340),s=r(3934),o=r(8861),a=r(1182),i=r(8486),_=r(3142),c=r(5853),u=r(8666),l="[object Arguments]",d="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,f,g){var y=_(e),w=_(t),b=y?d:i(e),E=w?d:i(t),v=(b=b==l?m:b)==m,x=(E=E==l?m:E)==m,T=b==E;if(T&&c(e)){if(!c(t))return!1;y=!0,v=!1}if(T&&!v)return g||(g=new n),y||u(e)?s(e,t,r,h,f,g):o(e,t,b,r,h,f,g);if(!(1&r)){var A=v&&p.call(e,"__wrapped__"),S=x&&p.call(t,"__wrapped__");if(A||S){var M=A?e.value():e,O=S?t.value():t;return g||(g=new n),f(M,O,r,h,g)}}return!!T&&(g||(g=new n),a(e,t,r,h,f,g))}},358:(e,t,r)=>{var n=r(6137),s=r(3283),o=r(3142),a=r(5853),i=r(9632),_=r(8666),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=o(e),u=!r&&s(e),l=!r&&!u&&a(e),d=!r&&!u&&!l&&_(e),m=r||u||l||d,p=m?n(e.length,String):[],h=p.length;for(var f in e)!t&&!c.call(e,f)||m&&("length"==f||l&&("offset"==f||"parent"==f)||d&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||i(f,h))||p.push(f);return p}},393:(e,t,r)=>{var n=r(8244),s=r(7979),o=r(1211);e.exports=function(e){return n(e,o,s)}},394:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},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,r)=>{"use strict";var n=r(9098),s=r(8900),o=r(7013),a=r(6453),i="WebAssembly",_=s[i],c=7!==new Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=a(e,t,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},l=function(e,t){if(_&&_[e]){var r={};r[e]=a(i+"."+e,t,c),n({target:i,stat:!0,constructor:!0,arity:1,forced:c},r)}};u("Error",(function(e){return function(t){return o(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return o(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return o(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return o(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return o(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return o(e,this,arguments)}})),u("URIError",(function(e){return function(t){return o(e,this,arguments)}})),l("CompileError",(function(e){return function(t){return o(e,this,arguments)}})),l("LinkError",(function(e){return function(t){return o(e,this,arguments)}})),l("RuntimeError",(function(e){return function(t){return o(e,this,arguments)}}))},493:(e,t,r)=>{"use strict";var n=r(4713),s=r(262),o=r(6281),a=r(4674),i=r(9258),_=r(8655),c=TypeError,u=_("toPrimitive");e.exports=function(e,t){if(!s(e)||o(e))return e;var r,_=a(e,u);if(_){if(void 0===t&&(t="default"),r=n(_,e,t),!s(r)||o(r))return r;throw new c("Can't convert object to primitive value")}return void 0===t&&(t="number"),i(e,t)}},547:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},593:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},674:(e,t,r)=>{var n=r(7379),s=r(5387),o=r(547),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return o(e)&&s(e.length)&&!!a[n(e)]}},701:(e,t,r)=>{"use strict";var n=r(6100),s=r(2137),o=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return o(s(e),t)}},814:(e,t,r)=>{"use strict";var n=r(2769),s=r(459),o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not a function")}},877:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},967:(e,t,r)=>{"use strict";var n=r(8407),s=r(4674),o=r(3057),a=r(6625),i=r(8655)("iterator");e.exports=function(e){if(!o(e))return s(e,i)||s(e,"@@iterator")||a[n(e)]}},986:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},1003:(e,t,r)=>{"use strict";var n=r(8099),s=r(8900),o=r(2769),a=function(e){return o(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?a(n[e])||a(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},1005:(e,t,r)=>{"use strict";var n=r(3273),s=r(4574),o=r(8130),a=function(e){return function(t,r,a){var i=n(t),_=o(i);if(0===_)return!e&&-1;var c,u=s(a,_);if(e&&r!=r){for(;_>u;)if((c=i[u++])!=c)return!0}else for(;_>u;u++)if((e||u in i)&&i[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:a(!0),indexOf:a(!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,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1129:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},1139:(e,t,r)=>{"use strict";var n=r(8407),s=String;e.exports=function(e){if("Symbol"===n(e))throw new TypeError("Cannot convert a Symbol value to a string");return s(e)}},1182:(e,t,r)=>{var n=r(393),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,o,a,i){var _=1&r,c=n(e),u=c.length;if(u!=n(t).length&&!_)return!1;for(var l=u;l--;){var d=c[l];if(!(_?d in t:s.call(t,d)))return!1}var m=i.get(e),p=i.get(t);if(m&&p)return m==t&&p==e;var h=!0;i.set(e,t),i.set(t,e);for(var f=_;++l<u;){var g=e[d=c[l]],y=t[d];if(o)var w=_?o(y,g,d,t,e,i):o(g,y,d,e,t,i);if(!(void 0===w?g===y||a(g,y,r,o,i):w)){h=!1;break}f||(f="constructor"==d)}if(h&&!f){var b=e.constructor,E=t.constructor;b==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(h=!1)}return i.delete(e),i.delete(t),h}},1203:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},1211:(e,t,r)=>{var n=r(358),s=r(195),o=r(6529);e.exports=function(e){return o(e)?n(e):s(e)}},1212:(e,t,r)=>{e.exports=r(8411)},1268:(e,t,r)=>{"use strict";var n=r(6100),s=0,o=Math.random(),a=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+a(++s+o,36)}},1314:(e,t,r)=>{"use strict";var n=r(8900),s=r(2769),o=n.WeakMap;e.exports=s(o)&&/native code/.test(String(o))},1330:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},1340:(e,t,r)=>{var n=r(1386),s=r(4103),o=r(1779),a=r(4162),i=r(7462),_=r(6638);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=s,c.prototype.delete=o,c.prototype.get=a,c.prototype.has=i,c.prototype.set=_,e.exports=c},1386:(e,t,r)=>{var n=r(2393),s=r(2049),o=r(7144),a=r(7452),i=r(3964);function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=a,_.prototype.set=i,e.exports=_},1395:(e,t,r)=>{"use strict";var n=r(6100),s=r(1203),o=r(9932),a=Object,i=n("".split);e.exports=s((function(){return!a("z").propertyIsEnumerable(0)}))?function(e){return"String"===o(e)?i(e,""):a(e)}:a},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,r)=>{"use strict";var n=r(4713),s=r(814),o=r(7235),a=r(459),i=r(967),_=TypeError;e.exports=function(e,t){var r=arguments.length<2?i(e):t;if(s(r))return o(n(r,e));throw new _(a(e)+" is not iterable")}},1623:(e,t,r)=>{var n=r(8942).Uint8Array;e.exports=n},1743:(e,t,r)=>{"use strict";var n=r(4713),s=r(7235),o=r(4674);e.exports=function(e,t,r){var a,i;s(e);try{if(!(a=o(e,"return"))){if("throw"===t)throw r;return r}a=n(a,e)}catch(e){i=!0,a=e}if("throw"===t)throw r;if(i)throw a;return s(a),r}},1779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},1780:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},1811:(e,t,r)=>{"use strict";var n=r(4904),s=r(9989).f,o=r(3999),a=r(701),i=r(9559),_=r(8655)("toStringTag");e.exports=function(e,t,r,c){var u=r?e:e&&e.prototype;u&&(a(u,_)||s(u,_,{configurable:!0,value:t}),c&&!n&&o(u,"toString",i))}},1877:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},1926:(e,t,r)=>{"use strict";var n=r(2621).IteratorPrototype,s=r(5780),o=r(480),a=r(1811),i=r(6625),_=function(){return this};e.exports=function(e,t,r,c){var u=t+" Iterator";return e.prototype=s(n,{next:o(+!c,r)}),a(e,u,!1,!0),i[u]=_,e}},1950:(e,t,r)=>{var n=r(8942)["__core-js_shared__"];e.exports=n},1966:(e,t,r)=>{"use strict";var n=r(2937),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o("Can't set "+s(e)+" as a prototype")}},2049:(e,t,r)=>{var n=r(7034),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2137:(e,t,r)=>{"use strict";var n=r(5426),s=Object;e.exports=function(e){return s(n(e))}},2306:(e,t,r)=>{e=r.nmd(e);var n=r(4967),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,a=o&&o.exports===s&&n.process,i=function(){try{var e=o&&o.require&&o.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=i},2322:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},2393:e=>{e.exports=function(){this.__data__=[],this.size=0}},2536:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},2555:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},2563:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},2621:(e,t,r)=>{"use strict";var n,s,o,a=r(1203),i=r(2769),_=r(262),c=r(5780),u=r(3671),l=r(3508),d=r(8655),m=r(4871),p=d("iterator"),h=!1;[].keys&&("next"in(o=[].keys())?(s=u(u(o)))!==Object.prototype&&(n=s):h=!0),!_(n)||a((function(){var e={};return n[p].call(e)!==e}))?n={}:m&&(n=c(n)),i(n[p])||l(n,p,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:h}},2769:e=>{"use strict";var t="object"==typeof document&&document.all;e.exports=void 0===t&&void 0!==t?function(e){return"function"==typeof e||e===t}:function(e){return"function"==typeof e}},2871:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},2877:(e,t,r)=>{"use strict";var n=r(8655),s=r(6625),o=n("iterator"),a=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||a[o]===e)}},2937:(e,t,r)=>{"use strict";var n=r(262);e.exports=function(e){return n(e)||null===e}},3004:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3057:e=>{"use strict";e.exports=function(e){return null==e}},3078:()=>{},3085:(e,t,r)=>{"use strict";var n=r(9098),s=r(4317),o=r(3671),a=r(3491),i=r(7464),_=r(5780),c=r(3999),u=r(480),l=r(8148),d=r(4279),m=r(208),p=r(4879),h=r(8655)("toStringTag"),f=Error,g=[].push,y=function(e,t){var r,n=s(w,this);a?r=a(new f,n?o(this):w):(r=n?this:_(w),c(r,h,"Error")),void 0!==t&&c(r,"message",p(t)),d(r,y,r.stack,1),arguments.length>2&&l(r,arguments[2]);var i=[];return m(e,g,{that:i}),c(r,"errors",i),r};a?a(y,f):i(y,f,{name:!0});var w=y.prototype=_(f.prototype,{constructor:u(1,y),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:y})},3103:(e,t,r)=>{var n=r(4715)(r(8942),"DataView");e.exports=n},3142:e=>{var t=Array.isArray;e.exports=t},3148:(e,t,r)=>{const n=r(394);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},3212:(e,t,r)=>{var n=r(8250),s=r(1877),o=r(8006);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=s,a.prototype.has=o,e.exports=a},3273:(e,t,r)=>{"use strict";var n=r(1395),s=r(5426);e.exports=function(e){return n(s(e))}},3283:(e,t,r)=>{var n=r(6027),s=r(547),o=Object.prototype,a=o.hasOwnProperty,i=o.propertyIsEnumerable,_=n(function(){return arguments}())?n:function(e){return s(e)&&a.call(e,"callee")&&!i.call(e,"callee")};e.exports=_},3305:(e,t,r)=>{var n=r(4497);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3311:(e,t,r)=>{const n=r(1517),s=r(4123);class o extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new o(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=o},3410:(e,t,r)=>{"use strict";var n=r(5024),s=r(701),o=Function.prototype,a=n&&Object.getOwnPropertyDescriptor,i=s(o,"name"),_=i&&"something"===function(){}.name,c=i&&(!n||n&&a(o,"name").configurable);e.exports={EXISTS:i,PROPER:_,CONFIGURABLE:c}},3489:(e,t,r)=>{"use strict";var n=r(1003);e.exports=n("document","documentElement")},3491:(e,t,r)=>{"use strict";var n=r(3574),s=r(262),o=r(5426),a=r(1966);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return o(r),a(n),s(r)?(t?e(r,n):r.__proto__=n,r):r}}():void 0)},3507:(e,t,r)=>{"use strict";var n=r(2769),s=r(262),o=r(3491);e.exports=function(e,t,r){var a,i;return o&&n(a=t.constructor)&&a!==r&&s(i=a.prototype)&&i!==r.prototype&&o(e,i),e}},3508:(e,t,r)=>{"use strict";var n=r(3999);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},3531:(e,t,r)=>{"use strict";var n=r(8900).navigator,s=n&&n.userAgent;e.exports=s?String(s):""},3574:(e,t,r)=>{"use strict";var n=r(6100),s=r(814);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},3655:(e,t,r)=>{var n=r(7379),s=r(1580);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},3671:(e,t,r)=>{"use strict";var n=r(701),s=r(2769),o=r(2137),a=r(4275),i=r(2871),_=a("IE_PROTO"),c=Object,u=c.prototype;e.exports=i?c.getPrototypeOf:function(e){var t=o(e);if(n(t,_))return t[_];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof c?u:null}},3753:(e,t,r)=>{"use strict";var n=r(4871),s=r(8900),o=r(7525),a="__core-js_shared__",i=e.exports=s[a]||o(a,{});(i.versions||(i.versions=[])).push({version:"3.42.0",mode:n?"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(r){return e(t(r))}}},3832:(e,t,r)=>{"use strict";var n=r(5571).charAt,s=r(1139),o=r(8417),a=r(164),i=r(877),_="String Iterator",c=o.set,u=o.getterFor(_);a(String,"String",(function(e){c(this,{type:_,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?i(void 0,!0):(e=n(r,s),t.index+=e.length,i(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(((r,n)=>{fs.readFile(e,t?void 0:"utf8",((e,s)=>{e?n(e):r(t?s.buffer:s)}))}))),!Module.thisProgram&&process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{throw process.exitCode=e,t}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=scriptDirectory.startsWith("blob:")?"":scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1),ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=e=>isFileURI(e)?new Promise(((t,r)=>{var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=()=>{(200==n.status||0==n.status&&n.response)&&r(n.response),t(n.status)},n.onerror=t,n.send(null)})):fetch(e,{credentials:"same-origin"}).then((e=>e.ok?e.arrayBuffer():Promise.reject(new Error(e.status+" : "+e.url)))));var out=Module.print||console.log.bind(console),err=Module.printErr||console.error.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var dynamicLibraries=Module.dynamicLibraries||[],wasmBinary,wasmMemory;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var ABORT=!1,EXITSTATUS,HEAP8,HEAPU8,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,r){return getBinaryPromise(e).then((e=>WebAssembly.instantiate(e,t))).then(r,(e=>{err(`failed to asynchronously prepare wasm: ${e}`),abort(e)}))}function instantiateAsync(e,t,r,n){return e||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(t)||isFileURI(t)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?instantiateArrayBuffer(t,r,n):fetch(t,{credentials:"same-origin"}).then((e=>WebAssembly.instantiateStreaming(e,r).then(n,(function(e){return err(`wasm streaming compile failed: ${e}`),err("falling back to ArrayBuffer instantiation"),instantiateArrayBuffer(t,r,n)}))))}function getWasmImports(){return{env:wasmImports,wasi_snapshot_preview1:wasmImports,"GOT.mem":new Proxy(wasmImports,GOTHandler),"GOT.func":new Proxy(wasmImports,GOTHandler)}}function createWasm(){var e=getWasmImports();function t(e,t){wasmExports=e.exports,wasmExports=relocateExports(wasmExports,1024);var r=getDylinkMetadata(t);return r.neededDynlibs&&(dynamicLibraries=r.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(wasmExports,"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 r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),currentModuleWeakSymbols.has(t)||(r.required=!0),r}},LE_HEAP_LOAD_F32=e=>HEAP_DATA_VIEW.getFloat32(e,!0),LE_HEAP_LOAD_F64=e=>HEAP_DATA_VIEW.getFloat64(e,!0),LE_HEAP_LOAD_I16=e=>HEAP_DATA_VIEW.getInt16(e,!0),LE_HEAP_LOAD_I32=e=>HEAP_DATA_VIEW.getInt32(e,!0),LE_HEAP_LOAD_U32=e=>HEAP_DATA_VIEW.getUint32(e,!0),LE_HEAP_STORE_F32=(e,t)=>HEAP_DATA_VIEW.setFloat32(e,t,!0),LE_HEAP_STORE_F64=(e,t)=>HEAP_DATA_VIEW.setFloat64(e,t,!0),LE_HEAP_STORE_I16=(e,t)=>HEAP_DATA_VIEW.setInt16(e,t,!0),LE_HEAP_STORE_I32=(e,t)=>HEAP_DATA_VIEW.setInt32(e,t,!0),LE_HEAP_STORE_U32=(e,t)=>HEAP_DATA_VIEW.setUint32(e,t,!0),callRuntimeCallbacks=e=>{for(;e.length>0;)e.shift()(Module)},UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder:void 0,UTF8ArrayToString=(e,t,r)=>{for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,s));for(var o="";t<s;){var a=e[t++];if(128&a){var i=63&e[t++];if(192!=(224&a)){var _=63&e[t++];if((a=224==(240&a)?(15&a)<<12|i<<6|_:(7&a)<<18|i<<12|_<<6|63&e[t++])<65536)o+=String.fromCharCode(a);else{var c=a-65536;o+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else o+=String.fromCharCode((31&a)<<6|i)}else o+=String.fromCharCode(a)}return o},getDylinkMetadata=e=>{var t=0,r=0;function n(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}function s(){var r=n();return UTF8ArrayToString(e,(t+=r)-r,r)}function o(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var i=WebAssembly.Module.customSections(e,a);0===i.length&&(a="dylink",i=WebAssembly.Module.customSections(e,a)),o(0===i.length,"need dylink section"),r=(e=new Uint8Array(i[0])).length}else{var _=new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer);o(!(1836278016==_[0]||6386541==_[0]),"need to see wasm magic number"),o(0!==e[8],"need the dylink section to be first"),t=9;var c=n();r=t+c,a=s()}var u={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){u.memorySize=n(),u.memoryAlign=n(),u.tableSize=n(),u.tableAlign=n();for(var l=n(),d=0;d<l;++d){var m=s();u.neededDynlibs.push(m)}}else{o("dylink.0"!==a);for(;t<r;){var p=e[t++],h=n();if(1===p)u.memorySize=n(),u.memoryAlign=n(),u.tableSize=n(),u.tableAlign=n();else if(2===p)for(l=n(),d=0;d<l;++d)m=s(),u.neededDynlibs.push(m);else if(3===p)for(var f=n();f--;){var g=s();256&n()&&u.tlsExports.add(g)}else if(4===p)for(f=n();f--;){s(),g=s();1==(3&n())&&u.weakImports.add(g)}else t+=h}}return u};function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e];case"i16":return LE_HEAP_LOAD_I16(2*(e>>1));case"i32":return LE_HEAP_LOAD_I32(4*(e>>2));case"i64":abort("to do getValue(i64) use WASM_BIGINT");case"float":return LE_HEAP_LOAD_F32(4*(e>>2));case"double":return LE_HEAP_LOAD_F64(8*(e>>3));case"*":return LE_HEAP_LOAD_U32(4*(e>>2));default:abort(`invalid type for getValue: ${t}`)}}var newDSO=(e,t,r)=>{var n={refcount:1/0,name:e,exports:r,global:!0};return LDSO.loadedLibsByName[e]=n,null!=t&&(LDSO.loadedLibsByHandle[t]=n),n},LDSO={loadedLibsByName:{},loadedLibsByHandle:{},init(){newDSO("__main__",0,wasmImports)}},___heap_base=78112,zeroMemory=(e,t)=>(HEAPU8.fill(0,e,e+t),e),alignMemory=(e,t)=>Math.ceil(e/t)*t,getMemory=e=>{if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+alignMemory(e,16);return ___heap_base=r,GOT.__heap_base.value=r,t},isInternalSym=e=>["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm","__start_em_js","__stop_em_js"].includes(e)||e.startsWith("__em_js__"),uleb128Encode=(e,t)=>{e<128?t.push(e):t.push(e%128|128,e>>7)},sigToWasmTypes=e=>{for(var t={i:"i32",j:"i64",f:"f32",d:"f64",e:"externref",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},n=1;n<e.length;++n)r.parameters.push(t[e[n]]);return r},generateFuncType=(e,t)=>{var r=e.slice(0,1),n=e.slice(1),s={i:127,p:127,j:126,f:125,d:124,e:111};t.push(96),uleb128Encode(n.length,t);for(var o=0;o<n.length;++o)t.push(s[n[o]]);"v"==r?t.push(0):t.push(1,s[r])},convertJsFunctionToWasm=(e,t)=>{if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var n=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,n),n.push(...r),n.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var s=new WebAssembly.Module(new Uint8Array(n));return new WebAssembly.Instance(s,{e:{f:e}}).exports.f},wasmTableMirror=[],wasmTable=new WebAssembly.Table({initial:28,element:"anyfunc"}),getWasmTableEntry=e=>{var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t},updateTableMap=(e,t)=>{if(functionsInTableMap)for(var r=e;r<e+t;r++){var n=getWasmTableEntry(r);n&&functionsInTableMap.set(n,r)}},functionsInTableMap,getFunctionAddress=e=>(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.get(e)||0),freeTableIndexes=[],getEmptyTableSlot=()=>{if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1},setWasmTableEntry=(e,t)=>{wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)},addFunction=(e,t)=>{var r=getFunctionAddress(e);if(r)return r;var n=getEmptyTableSlot();try{setWasmTableEntry(n,e)}catch(r){if(!(r instanceof TypeError))throw r;var s=convertJsFunctionToWasm(e,t);setWasmTableEntry(n,s)}return functionsInTableMap.set(e,n),n},updateGOT=(e,t)=>{for(var r in e)if(!isInternalSym(r)){var n=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||=new WebAssembly.Global({value:"i32",mutable:!0}),(t||0==GOT[r].value)&&("function"==typeof n?GOT[r].value=addFunction(n):"number"==typeof n?GOT[r].value=n:err(`unhandled export type for '${r}': ${typeof n}`))}},relocateExports=(e,t,r)=>{var n={};for(var s in e){var o=e[s];"object"==typeof o&&(o=o.value),"number"==typeof o&&(o+=t),n[s]=o}return updateGOT(n,r),n},isSymbolDefined=e=>{var t=wasmImports[e];return!(!t||t.stub)},dynCallLegacy=(e,t,r)=>(e=e.replace(/p/g,"i"),(0,Module["dynCall_"+e])(t,...r)),dynCall=(e,t,r=[])=>e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t)(...r),stackSave=()=>_emscripten_stack_get_current(),stackRestore=e=>__emscripten_stack_restore(e),createInvokeFunction=e=>(t,...r)=>{var n=stackSave();try{return dynCall(e,t,r)}catch(e){if(stackRestore(n),e!==e+0)throw e;_setThrew(1,0)}},resolveGlobalSymbol=(e,t=!1)=>{var r;return t&&"orig$"+e in wasmImports&&(e="orig$"+e),isSymbolDefined(e)?r=wasmImports[e]:e.startsWith("invoke_")&&(r=wasmImports[e]=createInvokeFunction(e.split("_")[1])),{sym:r,name:e}},UTF8ToString=(e,t)=>e?UTF8ArrayToString(HEAPU8,e,t):"",loadWebAssemblyModule=(binary,flags,libName,localScope,handle)=>{var metadata=getDylinkMetadata(binary);function loadModule(){var 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 r;t in e||(e[t]=(...e)=>(r||=resolveSymbol(t),r(...e)));return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(module,instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func=`(${args}) => { ${body} };`;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[r,n]of Object.entries(e)){const e=e=>{isSymbolDefined(e)||(wasmImports[e]=n)};e(r);const t="__main_argc_argv";"main"==r&&e(t),r==t&&e("main"),r.startsWith("dynCall_")&&!Module.hasOwnProperty(r)&&(Module[r]=n)}},asyncLoad=(e,t,r,n)=>{var s=n?"":getUniqueRunDependency(`al ${e}`);readAsync(e).then((e=>{t(new Uint8Array(e)),s&&removeRunDependency(s)}),(t=>{if(!r)throw`Loading data file "${e}" failed.`;r()})),s&&addRunDependency(s)};function loadDynamicLibrary(e,t={global:!0,nodelete:!0},r,n){var s=LDSO.loadedLibsByName[e];if(s)return t.global?s.global||(s.global=!0,mergeLibSymbols(s.exports,e)):r&&Object.assign(r,s.exports),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,n&&(LDSO.loadedLibsByHandle[n]=s),!t.loadAsync||Promise.resolve(!0);function o(){if(n){var r=LE_HEAP_LOAD_U32(4*(n+28>>2)),s=LE_HEAP_LOAD_U32(4*(n+32>>2));if(r&&s){var o=HEAP8.slice(r,r+s);return t.loadAsync?Promise.resolve(o):o}}var a=locateFile(e);if(t.loadAsync)return new Promise((function(e,t){asyncLoad(a,e,t)}));if(!readBinary)throw new Error(`${a}: file not found, and synchronous loading of external files is not available`);return readBinary(a)}function a(){return t.loadAsync?o().then((s=>loadWebAssemblyModule(s,t,e,r,n))):loadWebAssemblyModule(o(),t,e,r,n)}function i(t){s.global?mergeLibSymbols(t,e):r&&Object.assign(r,t),s.exports=t}return(s=newDSO(e,n,"loading")).refcount=t.nodelete?1/0:1,s.global=t.global,t.loadAsync?a().then((e=>(i(e),!0))):(i(a()),!0)}var reportUndefinedSymbols=()=>{for(var[e,t]of Object.entries(GOT))if(0==t.value){var r=resolveGlobalSymbol(e,!0).sym;if(!r&&!t.required)continue;if("function"==typeof r)t.value=addFunction(r,r.sig);else{if("number"!=typeof r)throw new Error(`bad export type for '${e}': ${typeof r}`);t.value=r}}},loadDylibs=()=>{dynamicLibraries.length?(addRunDependency("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,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e]=t;break;case"i16":LE_HEAP_STORE_I16(2*(e>>1),t);break;case"i32":LE_HEAP_STORE_I32(4*(e>>2),t);break;case"i64":abort("to do setValue(i64) use WASM_BIGINT");case"float":LE_HEAP_STORE_F32(4*(e>>2),t);break;case"double":LE_HEAP_STORE_F64(8*(e>>3),t);break;case"*":LE_HEAP_STORE_U32(4*(e>>2),t);break;default:abort(`invalid type for setValue: ${r}`)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78112),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),__abort_js=()=>{abort("")};__abort_js.sig="v";var nowIsMonotonic=1,__emscripten_get_now_is_monotonic=()=>nowIsMonotonic;__emscripten_get_now_is_monotonic.sig="i";var __emscripten_memcpy_js=(e,t,r)=>HEAPU8.copyWithin(e,t,t+r);__emscripten_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 r=getHeapMax();if(e>r)return!1;for(var n,s,o=1;o<=4;o*=2){var a=t*(1+.2/o);a=Math.min(a,e+100663296);var i=Math.min(r,(n=Math.max(e,a))+((s=65536)-n%s)%s);if(growMemory(i))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,r,n,s){convertI32PairToI53Checked(t,r);return 70}_fd_seek.sig="iiiiip";var printCharBuffers=[null,[],[]],printChar=(e,t)=>{var r=printCharBuffers[e];0===t||10===t?((1===e?out:err)(UTF8ArrayToString(r,0)),r.length=0):r.push(t)},_fd_write=(e,t,r,n)=>{for(var s=0,o=0;o<r;o++){var a=LE_HEAP_LOAD_U32(4*(t>>2)),i=LE_HEAP_LOAD_U32(4*(t+4>>2));t+=8;for(var _=0;_<i;_++)printChar(e,HEAPU8[a+_]);s+=i}return LE_HEAP_STORE_U32(4*(n>>2),s),0};function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,n,s){const o=currentParseCallback(t,{row:r,column:n});"string"==typeof o?(setValue(s,o.length,"i32"),stringToUTF16(o,e,10240)):setValue(s,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,r=0;r<e.length;++r){var n=e.charCodeAt(r);n<=127?t++:n<=2047?t+=2:n>=55296&&n<=57343?(t+=4,++r):t+=3}return t},stringToUTF8Array=(e,t,r,n)=>{if(!(n>0))return 0;for(var s=r,o=r+n-1,a=0;a<e.length;++a){var i=e.charCodeAt(a);if(i>=55296&&i<=57343)i=65536+((1023&i)<<10)|1023&e.charCodeAt(++a);if(i<=127){if(r>=o)break;t[r++]=i}else if(i<=2047){if(r+1>=o)break;t[r++]=192|i>>6,t[r++]=128|63&i}else if(i<=65535){if(r+2>=o)break;t[r++]=224|i>>12,t[r++]=128|i>>6&63,t[r++]=128|63&i}else{if(r+3>=o)break;t[r++]=240|i>>18,t[r++]=128|i>>12&63,t[r++]=128|i>>6&63,t[r++]=128|63&i}}return t[r]=0,r-s},stringToUTF8=(e,t,r)=>stringToUTF8Array(e,HEAPU8,t,r),stackAlloc=e=>__emscripten_stack_alloc(e),stringToUTF8OnStack=e=>{var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8(e,r,t),r},stringToUTF16=(e,t,r)=>{if(r??=2147483647,r<2)return 0;for(var n=t,s=(r-=2)<2*e.length?r/2:e.length,o=0;o<s;++o){var a=e.charCodeAt(o);LE_HEAP_STORE_I16(2*(t>>1),a),t+=2}return LE_HEAP_STORE_I16(2*(t>>1),0),t-n},AsciiToString=e=>{for(var t="";;){var r=HEAPU8[e++];if(!r)return t;t+=String.fromCharCode(r)}},wasmImports={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_abort_js:__abort_js,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,_emscripten_memcpy_js:__emscripten_memcpy_js,emscripten_get_now:_emscripten_get_now,emscripten_resize_heap:_emscripten_resize_heap,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},wasmExports=createWasm(),___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,r)=>(_ts_language_next_state=Module._ts_language_next_state=wasmExports.ts_language_next_state)(e,t,r),_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,r,n)=>(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=wasmExports.ts_language_symbol_for_name)(e,t,r,n),_strncmp=Module._strncmp=(e,t,r)=>(_strncmp=Module._strncmp=wasmExports.strncmp)(e,t,r),_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,r)=>(_ts_lookahead_iterator_reset=Module._ts_lookahead_iterator_reset=wasmExports.ts_lookahead_iterator_reset)(e,t,r),_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,r)=>(_memset=Module._memset=wasmExports.memset)(e,t,r),_memcpy=Module._memcpy=(e,t,r)=>(_memcpy=Module._memcpy=wasmExports.memcpy)(e,t,r),_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,r)=>(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=wasmExports.ts_parser_set_timeout_micros)(e,t,r),_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=(e,t,r)=>(_ts_parser_set_included_ranges=Module._ts_parser_set_included_ranges=wasmExports.ts_parser_set_included_ranges)(e,t,r),_memmove=Module._memmove=(e,t,r)=>(_memmove=Module._memmove=wasmExports.memmove)(e,t,r),_memcmp=Module._memcmp=(e,t,r)=>(_memcmp=Module._memcmp=wasmExports.memcmp)(e,t,r),_ts_query_new=Module._ts_query_new=(e,t,r,n,s)=>(_ts_query_new=Module._ts_query_new=wasmExports.ts_query_new)(e,t,r,n,s),_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,r)=>(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=wasmExports.ts_query_capture_name_for_id)(e,t,r),_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=(e,t,r)=>(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=wasmExports.ts_query_string_value_for_id)(e,t,r),_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=(e,t,r)=>(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=wasmExports.ts_query_predicates_for_pattern)(e,t,r),_ts_query_disable_capture=Module._ts_query_disable_capture=(e,t,r)=>(_ts_query_disable_capture=Module._ts_query_disable_capture=wasmExports.ts_query_disable_capture)(e,t,r),_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,r,n,s)=>(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=wasmExports.ts_parser_parse_wasm)(e,t,r,n,s),_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,r,n,s,o,a)=>(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=wasmExports.ts_node_descendants_of_type_wasm)(e,t,r,n,s,o,a),_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,r,n,s,o,a,i,_,c,u)=>(_ts_query_matches_wasm=Module._ts_query_matches_wasm=wasmExports.ts_query_matches_wasm)(e,t,r,n,s,o,a,i,_,c,u),_ts_query_captures_wasm=Module._ts_query_captures_wasm=(e,t,r,n,s,o,a,i,_,c,u)=>(_ts_query_captures_wasm=Module._ts_query_captures_wasm=wasmExports.ts_query_captures_wasm)(e,t,r,n,s,o,a,i,_,c,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,r)=>(_memchr=Module._memchr=wasmExports.memchr)(e,t,r),_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,r)=>(_strncat=Module._strncat=wasmExports.strncat)(e,t,r),_strncpy=Module._strncpy=(e,t,r)=>(_strncpy=Module._strncpy=wasmExports.strncpy)(e,t,r),_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,r,n,s)=>(dynCall_jiji=Module.dynCall_jiji=wasmExports.dynCall_jiji)(e,t,r,n,s),_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 r=e.length,n=stackAlloc(4*(r+1)),s=n;e.forEach((e=>{LE_HEAP_STORE_U32(4*(s>>2),stringToUTF8OnStack(e)),s+=4})),LE_HEAP_STORE_U32(4*(s>>2),0);try{var o=t(r,n);return exitJS(o,!0),o}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 r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r)=>e.slice(t);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r?.includedRanges){n=r.includedRanges.length,s=C._calloc(n,SIZE_OF_RANGE);let e=s;for(let t=0;t<n;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const o=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!o)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,o,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}getIncludedRanges(){C._ts_parser_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,n){assertInternal(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}rootNodeWithOffset(e,t){const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),marshalPoint(r+SIZE_OF_INT,t),C._ts_tree_root_node_with_offset_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return n}getIncludedRanges(){C._ts_tree_included_ranges_wasm(this[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),r=new Array(e);if(e>0){let n=t;for(let t=0;t<e;t++)r[t]=unmarshalRange(n),n+=SIZE_OF_RANGE;C._free(t)}return r}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get grammarId(){return marshalNode(this),C._ts_node_grammar_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get grammarType(){return this.tree.language.types[this.grammarId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}get parseState(){return marshalNode(this),C._ts_node_parse_state_wasm(this.tree[0])}get nextParseState(){return marshalNode(this),C._ts_node_next_parse_state_wasm(this.tree[0])}get isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}get hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}get hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}get isError(){return marshalNode(this),1===C._ts_node_is_error_wasm(this.tree[0])}get isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}get isExtra(){return marshalNode(this),1===C._ts_node_is_extra_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t?this.childForFieldId(t):null}fieldNameForChild(e){marshalNode(this);const t=C._ts_node_field_name_for_child_wasm(this.tree[0],e);if(!t)return null;return AsciiToString(t)}childrenForFieldName(e){const t=this.tree.language.fields.indexOf(e);return-1!==t&&0!==t?this.childrenForFieldId(t):[]}childrenForFieldId(e){marshalNode(this),C._ts_node_children_by_field_id_wasm(this.tree[0],e);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE;C._free(r)}return n}firstChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}firstNamedChildForIndex(e){marshalNode(this);return setValue(TRANSFER_BUFFER+SIZE_OF_NODE,e,"i32"),C._ts_node_first_named_child_for_byte_wasm(this.tree[0]),unmarshalNode(this.tree)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const o=C._malloc(SIZE_OF_INT*n.length);for(let e=0,t=n.length;e<t;e++)setValue(o+e*SIZE_OF_INT,n[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],o,n.length,t.row,t.column,r.row,r.column);const a=getValue(TRANSFER_BUFFER,"i32"),i=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=new Array(a);if(a>0){let e=i;for(let t=0;t<a;t++)_[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(i),C._free(o),_}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get descendantCount(){return marshalNode(this),C._ts_node_descendant_count_wasm(this.tree[0])}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);const r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}resetTo(e){marshalTreeCursor(this,TRANSFER_BUFFER),marshalTreeCursor(e,TRANSFER_BUFFER+SIZE_OF_CURSOR),C._ts_tree_cursor_reset_to_wasm(this.tree[0],e.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeStateId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_state_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}get currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}get currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}get currentFieldName(){return this.tree.language.fields[this.currentFieldId]}get currentDepth(){return marshalTreeCursor(this),C._ts_tree_cursor_current_depth_wasm(this.tree[0])}get currentDescendantIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_current_descendant_index_wasm(this.tree[0])}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoLastChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_last_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoFirstChildForIndex(e){marshalTreeCursor(this),setValue(TRANSFER_BUFFER+SIZE_OF_CURSOR,e,"i32");const t=C._ts_tree_cursor_goto_first_child_for_index_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoFirstChildForPosition(e){marshalTreeCursor(this),marshalPoint(TRANSFER_BUFFER+SIZE_OF_CURSOR,e);const t=C._ts_tree_cursor_goto_first_child_for_position_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===t}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoPreviousSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_previous_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoDescendant(e){marshalTreeCursor(this),C._ts_tree_cursor_goto_descendant_wasm(this.tree[0],e),unmarshalTreeCursor(this)}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}get stateCount(){return C._ts_language_state_count(this[0])}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),n=C._malloc(r+1);stringToUTF8(e,n,r+1);const s=C._ts_language_symbol_for_name(this[0],n,r,t);return C._free(n),s||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}nextState(e,t){return C._ts_language_next_state(this[0],e,t)}lookaheadIterator(e){const t=C._ts_lookahead_iterator_new(this[0],e);return t?new LookaheadIterable(INTERNAL,t,this):null}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const n=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!n){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),n=getValue(TRANSFER_BUFFER,"i32"),s=UTF8ToString(r,n).length,o=e.substr(s,100).split("\n")[0];let a,i=o.match(QUERY_WORD_REGEX)[0];switch(t){case 2:a=new RangeError(`Bad node name '${i}'`);break;case 3:a=new RangeError(`Bad field name '${i}'`);break;case 4:a=new RangeError(`Bad capture name @${i}`);break;case 5:a=new TypeError(`Bad pattern structure at offset ${s}: '${o}'...`),i="";break;default:a=new SyntaxError(`Bad syntax at offset ${s}: '${o}'...`),i=""}throw a.index=s,a.length=i.length,C._free(r),a}const s=C._ts_query_string_count(n),o=C._ts_query_capture_count(n),a=C._ts_query_pattern_count(n),i=new Array(o),_=new Array(s);for(let e=0;e<o;e++){const t=C._ts_query_capture_name_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");i[e]=UTF8ToString(t,r)}for(let e=0;e<s;e++){const t=C._ts_query_string_value_for_id(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");_[e]=UTF8ToString(t,r)}const c=new Array(a),u=new Array(a),l=new Array(a),d=new Array(a),m=new Array(a);for(let e=0;e<a;e++){const t=C._ts_query_predicates_for_pattern(n,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");d[e]=[],m[e]=[];const s=[];let o=t;for(let t=0;t<r;t++){const t=getValue(o,"i32");o+=SIZE_OF_INT;const r=getValue(o,"i32");if(o+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)s.push({type:"capture",name:i[r]});else if(t===PREDICATE_STEP_TYPE_STRING)s.push({type:"string",value:_[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r,n=!0,o=!0;switch(t){case"any-not-eq?":case"not-eq?":n=!1;case"any-eq?":case"eq?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}"`);if(o=!t.startsWith("any-"),"capture"===s[2].type){const t=s[1].name,r=s[2].name;m[e].push((e=>{const s=[],a=[];for(const n of e)n.name===t&&s.push(n.node),n.name===r&&a.push(n.node);const i=(e,t,r)=>r?e.text===t.text:e.text!==t.text;return o?s.every((e=>a.some((t=>i(e,t,n))))):s.some((e=>a.some((t=>i(e,t,n)))))}))}else{r=s[1].name;const t=s[2].value,a=e=>e.text===t,i=e=>e.text!==t;m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node);const s=n?a:i;return o?t.every(s):t.some(s)}))}break;case"any-not-match?":case"not-match?":n=!1;case"any-match?":case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#${t}\` predicate must be a string. Got @${s[2].value}.`);r=s[1].name;const a=new RegExp(s[2].value);o=!t.startsWith("any-"),m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);const s=(e,t)=>t?a.test(e):!a.test(e);return 0===t.length?!n:o?t.every((e=>s(e,n))):t.some((e=>s(e,n)))}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');c[e]||(c[e]={}),c[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const i="is?"===t?u:l;i[e]||(i[e]={}),i[e][s[1].value]=s[2]?s[2].value:null;break;case"not-any-of?":n=!1;case"any-of?":if(s.length<2)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected at least 1. Got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#${t}\` predicate must be a capture. Got "${s[1].value}".`);for(let e=2;e<s.length;e++)if("string"!==s[e].type)throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);r=s[1].name;const _=s.slice(2).map((e=>e.value));m[e].push((e=>{const t=[];for(const n of e)n.name===r&&t.push(n.node.text);return 0===t.length?!n:t.every((e=>_.includes(e)))===n}));break;default:d[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(c[e]),Object.freeze(u[e]),Object.freeze(l[e])}return C._free(r),new Query(INTERNAL,n,i,m,d,Object.freeze(c),Object.freeze(u),Object.freeze(l))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(3078);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}return t.then((e=>loadWebAssemblyModule(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new Language(INTERNAL,n)}))}}class LookaheadIterable{constructor(e,t,r){assertInternal(e),this[0]=t,this.language=r}get currentTypeId(){return C._ts_lookahead_iterator_current_symbol(this[0])}get currentType(){return this.language.types[this.currentTypeId]||"ERROR"}delete(){C._ts_lookahead_iterator_delete(this[0]),this[0]=0}resetState(e){return C._ts_lookahead_iterator_reset_state(this[0],e)}reset(e,t){return!!C._ts_lookahead_iterator_reset(this[0],e[0],t)&&(this.language=e,!0)}[Symbol.iterator](){const e=this;return{next:()=>C._ts_lookahead_iterator_next(e[0])?{done:!1,value:e.currentType}:{done:!0,value:""}}}}class Query{constructor(e,t,r,n,s,o,a,i){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=o,this.assertedProperties=a,this.refutedProperties=i,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:a=4294967295,timeoutMicros:i=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,a,i);const _=getValue(TRANSFER_BUFFER,"i32"),c=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=new Array(_);this.exceededMatchLimit=Boolean(u);let d=0,m=c;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=new Array(r);if(m=unmarshalCaptures(this,e.tree,m,n),this.textPredicates[t].every((e=>e(n)))){l[d]={pattern:t,captures:n};const e=this.setProperties[t];e&&(l[d].setProperties=e);const r=this.assertedProperties[t];r&&(l[d].assertedProperties=r);const s=this.refutedProperties[t];s&&(l[d].refutedProperties=s),d++}}return l.length=d,C._free(c),l}captures(e,{startPosition:t=ZERO_POINT,endPosition:r=ZERO_POINT,startIndex:n=0,endIndex:s=0,matchLimit:o=4294967295,maxStartDepth:a=4294967295,timeoutMicros:i=0}={}){if("number"!=typeof o)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n,s,o,a,i);const _=getValue(TRANSFER_BUFFER,"i32"),c=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),u=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),l=[];this.exceededMatchLimit=Boolean(u);const d=[];let m=c;for(let t=0;t<_;t++){const t=getValue(m,"i32");m+=SIZE_OF_INT;const r=getValue(m,"i32");m+=SIZE_OF_INT;const n=getValue(m,"i32");if(m+=SIZE_OF_INT,d.length=r,m=unmarshalCaptures(this,e.tree,m,d),this.textPredicates[t].every((e=>e(d)))){const e=d[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),l.push(e)}}return C._free(c),l}predicatesForPattern(e){return this.predicates[e]}disableCapture(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1),C._ts_query_disable_capture(this[0],r,t),C._free(r)}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function unmarshalCaptures(e,t,r,n){for(let s=0,o=n.length;s<o;s++){const o=getValue(r,"i32"),a=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,n[s]={name:e.captureNames[o],node:a}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),i=new Node(INTERNAL,e);return i.id=r,i.startIndex=n,i.startPosition={row:s,column:o},i[0]=a,i}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,r)=>{"use strict";var n=r(6100),s=Error,o=n("".replace),a=String(new s("zxcasd").stack),i=/\n\s*at [^:]*:[^\n]*/,_=i.test(a);e.exports=function(e,t){if(_&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=o(e,i,"");return e}},3934:(e,t,r)=>{var n=r(3212),s=r(6465),o=r(5568);e.exports=function(e,t,r,a,i,_){var c=1&r,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var d=_.get(e),m=_.get(t);if(d&&m)return d==t&&m==e;var p=-1,h=!0,f=2&r?new n:void 0;for(_.set(e,t),_.set(t,e);++p<u;){var g=e[p],y=t[p];if(a)var w=c?a(y,g,p,t,e,_):a(g,y,p,e,t,_);if(void 0!==w){if(w)continue;h=!1;break}if(f){if(!s(t,(function(e,t){if(!o(f,t)&&(g===e||i(g,e,r,a,_)))return f.push(t)}))){h=!1;break}}else if(g!==y&&!i(g,y,r,a,_)){h=!1;break}}return _.delete(e),_.delete(t),h}},3964:(e,t,r)=>{var n=r(7034);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},3999:(e,t,r)=>{"use strict";var n=r(5024),s=r(9989),o=r(480);e.exports=n?function(e,t,r){return s.f(e,t,o(1,r))}:function(e,t,r){return e[t]=r,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,r)=>{var n=r(1386);e.exports=function(){this.__data__=new n,this.size=0}},4123:(e,t,r)=>{const n=r(1517);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class o{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new o(this.elements.filter(e,t))}reject(e,t){return e=s(e),new o(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=o},4142:()=>{},4162:e=>{e.exports=function(e){return this.__data__.get(e)}},4275:(e,t,r)=>{"use strict";var n=r(8141),s=r(1268),o=n("keys");e.exports=function(e){return o[e]||(o[e]=s(e))}},4279:(e,t,r)=>{"use strict";var n=r(3999),s=r(3885),o=r(5791),a=Error.captureStackTrace;e.exports=function(e,t,r,i){o&&(a?a(e,t):n(e,"stack",s(r,i)))}},4317:(e,t,r)=>{"use strict";var n=r(6100);e.exports=n({}.isPrototypeOf)},4497:(e,t,r)=>{var n=r(4715)(Object,"create");e.exports=n},4512:(e,t,r)=>{var n=r(4715)(r(8942),"Set");e.exports=n},4543:(e,t,r)=>{"use strict";var n=r(5024),s=r(4713),o=r(7161),a=r(480),i=r(3273),_=r(5341),c=r(701),u=r(9665),l=Object.getOwnPropertyDescriptor;t.f=n?l:function(e,t){if(e=i(e),t=_(t),u)try{return l(e,t)}catch(e){}if(c(e,t))return a(!s(o.f,e,t),e[t])}},4572:(e,t,r)=>{"use strict";var n=r(9344),s=r(814),o=r(1780),a=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:o?a(e,t):function(){return e.apply(t,arguments)}}},4574:(e,t,r)=>{"use strict";var n=r(9903),s=Math.max,o=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):o(r,t)}},4603:(e,t,r)=>{"use strict";var n=r(5547),s=r(1203),o=r(8900).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!o(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},4674:(e,t,r)=>{"use strict";var n=r(814),s=r(3057);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},4687:(e,t,r)=>{var n=r(353),s=r(547);e.exports=function e(t,r,o,a,i){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,o,a,e,i))}},4700:(e,t,r)=>{var n=r(9067);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},4713:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},4715:(e,t,r)=>{var n=r(9624),s=r(155);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},4732:(e,t,r)=>{var n=r(4700);e.exports=function(e){return n(this,e).has(e)}},4759:(e,t,r)=>{var n,s=r(1950),o=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!o&&o in e}},4772:e=>{e.exports=function(){return!1}},4871:e=>{"use strict";e.exports=!0},4879:(e,t,r)=>{"use strict";var n=r(1139);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},4882:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},4904:(e,t,r)=>{"use strict";var n={};n[r(8655)("toStringTag")]="z",e.exports="[object z]"===String(n)},4967:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},5024:(e,t,r)=>{"use strict";var n=r(1203);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5071:(e,t,r)=>{var n=r(4497);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5098:(e,t,r)=>{var n=r(3305),s=r(9361),o=r(1112),a=r(5276),i=r(5071);function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=a,_.prototype.set=i,e.exports=_},5116:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},5241:e=>{"use strict";e.exports={}},5276:(e,t,r)=>{var n=r(4497),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},5341:(e,t,r)=>{"use strict";var n=r(493),s=r(6281);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},5387:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5426:(e,t,r)=>{"use strict";var n=r(3057),s=TypeError;e.exports=function(e){if(n(e))throw new s("Can't call method on "+e);return e}},5442:(e,t,r)=>{"use strict";r(5695)},5516:(e,t,r)=>{"use strict";var n=r(9989).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},5547:(e,t,r)=>{"use strict";var n,s,o=r(8900),a=r(3531),i=o.process,_=o.Deno,c=i&&i.versions||_&&_.version,u=c&&c.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&a&&(!(n=a.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=a.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},5568:e=>{e.exports=function(e,t){return e.has(t)}},5571:(e,t,r)=>{"use strict";var n=r(6100),s=r(9903),o=r(1139),a=r(5426),i=n("".charAt),_=n("".charCodeAt),c=n("".slice),u=function(e){return function(t,r){var n,u,l=o(a(t)),d=s(r),m=l.length;return d<0||d>=m?e?"":void 0:(n=_(l,d))<55296||n>56319||d+1===m||(u=_(l,d+1))<56320||u>57343?e?i(l,d):n:e?c(l,d,d+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},5642:(e,t,r)=>{const n=r(1517),s=r(1580),o=r(9796),a=r(7309),i=r(3311);e.exports=class extends o{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new a(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,o)=>{const a=e.bind(t)(n,s,o);a&&r.push(a)})),r}filter(e,t){return new i(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},5650:(e,t,r)=>{var n=r(8942).Symbol;e.exports=n},5681:(e,t,r)=>{var n=r(4700);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},5691:(e,t,r)=>{"use strict";var n=r(1003),s=r(6100),o=r(5116),a=r(7313),i=r(7235),_=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=o.f(i(e)),r=a.f;return r?_(t,r(e)):t}},5695:(e,t,r)=>{"use strict";r(3085)},5735:(e,t,r)=>{const n=r(9310),s=r(8138),o=r(986),a=r(2563),i=r(1580),_=r(394),c=r(7547);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.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",c.NullElement).register("string",c.StringElement).register("number",c.NumberElement).register("boolean",c.BooleanElement).register("array",c.ArrayElement).register("object",c.ObjectElement).register("member",c.MemberElement).register("ref",c.RefElement).register("link",c.LinkElement),this.detect(n,c.NullElement,!1).detect(s,c.StringElement,!1).detect(o,c.NumberElement,!1).detect(a,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(i,c.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new _(this)}}_.prototype.Namespace=u,e.exports=u},5777:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},5780:(e,t,r)=>{"use strict";var n,s=r(7235),o=r(7389),a=r(9683),i=r(5241),_=r(3489),c=r(9619),u=r(4275),l="prototype",d="script",m=u("IE_PROTO"),p=function(){},h=function(e){return"<"+d+">"+e+"</"+d+">"},f=function(e){e.write(h("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?f(n):(t=c("iframe"),r="java"+d+":",t.style.display="none",_.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(h("document.F=Object")),e.close(),e.F):f(n);for(var s=a.length;s--;)delete g[l][a[s]];return g()};i[m]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(p[l]=s(e),r=new p,p[l]=null,r[m]=e):r=g(),void 0===t?r:o.f(r,t)}},5791:(e,t,r)=>{"use strict";var n=r(1203),s=r(480);e.exports=!n((function(){var e=new Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},5853:(e,t,r)=>{e=r.nmd(e);var n=r(8942),s=r(4772),o=t&&!t.nodeType&&t,a=o&&e&&!e.nodeType&&e,i=a&&a.exports===o?n.Buffer:void 0,_=(i?i.isBuffer:void 0)||s;e.exports=_},5894:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},6027:(e,t,r)=>{var n=r(7379),s=r(547);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},6100:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.call,a=n&&s.bind.bind(o,o);e.exports=n?a:function(e){return function(){return o.apply(e,arguments)}}},6137:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},6138:(e,t,r)=>{"use strict";var n=r(9098),s=r(1003),o=r(7013),a=r(1203),i=r(6453),_="AggregateError",c=s(_),u=!a((function(){return 1!==c([1]).errors[0]}))&&a((function(){return 7!==c([1],_,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:i(_,(function(e){return function(t,r){return o(e,this,arguments)}}),u,!0)})},6281:(e,t,r)=>{"use strict";var n=r(1003),s=r(2769),o=r(4317),a=r(7460),i=Object;e.exports=a?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&o(t.prototype,i(e))}},6285:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},6343:(e,t,r)=>{var n=r(4687);e.exports=function(e,t){return n(e,t)}},6453:(e,t,r)=>{"use strict";var n=r(1003),s=r(701),o=r(3999),a=r(4317),i=r(3491),_=r(7464),c=r(5516),u=r(3507),l=r(4879),d=r(8148),m=r(4279),p=r(5024),h=r(4871);e.exports=function(e,t,r,f){var g="stackTraceLimit",y=f?2:1,w=e.split("."),b=w[w.length-1],E=n.apply(null,w);if(E){var v=E.prototype;if(!h&&s(v,"cause")&&delete v.cause,!r)return E;var x=n("Error"),T=t((function(e,t){var r=l(f?t:e,void 0),n=f?new E(e):new E;return void 0!==r&&o(n,"message",r),m(n,T,n.stack,2),this&&a(v,this)&&u(n,this,T),arguments.length>y&&d(n,arguments[y]),n}));if(T.prototype=v,"Error"!==b?i?i(T,x):_(T,x,{name:!0}):p&&g in E&&(c(T,E,g),c(T,E,"prepareStackTrace")),_(T,E),!h)try{v.name!==b&&o(v,"name",b),v.constructor=T}catch(e){}return T}}},6465:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},6529:(e,t,r)=>{var n=r(3655),s=r(5387);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},6625:e=>{"use strict";e.exports={}},6638:(e,t,r)=>{var n=r(1386),s=r(9770),o=r(8250);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!s||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new o(a)}return r.set(e,t),this.size=r.size,this}},6656:(e,t,r)=>{"use strict";r(484),r(5695),r(6138),r(9828),r(3832);var n=r(8099);e.exports=n.AggregateError},6850:(e,t,r)=>{"use strict";t.MH=void 0;const n=r(8583);function s(e,t,r){const s=function(e){return e.match(/[^a-f0-9]/i)?NaN:parseInt(e,16)}(e);if(Number.isNaN(s)||void 0!==r&&r!==e.length)throw new SyntaxError(n.errorMessages.get(t));return s}function o(e,t){const r=s(e,n.ErrorType.MalformedUnicode,4);if(void 0!==t){const e=s(t,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,e)}return String.fromCharCode(r)}const a=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const i=/\\(?:(\\)|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 _(e,t=!1){return e.replace(i,(function(e,r,i,_,c,u,l,d,m){if(void 0!==r)return"\\";if(void 0!==i)return function(e){const t=s(e,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(t)}(i);if(void 0!==_)return function(e){if("{"!==(t=e).charAt(0)||"}"!==t.charAt(t.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var t;const r=s(e.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(e){throw e instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):e}}(_);if(void 0!==c)return o(c,u);if(void 0!==l)return o(l);if("0"===d)return"\0";if(void 0!==d)return function(e,t=!1){if(t)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(e,8);return String.fromCharCode(r)}(d,!t);if(void 0!==m)return p=m,a.get(p)||p;var p;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}t.MH=_},7013:(e,t,r)=>{"use strict";var n=r(1780),s=Function.prototype,o=s.apply,a=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?a.bind(o):function(){return a.apply(o,arguments)})},7034:(e,t,r)=>{var n=r(6285);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},7144:(e,t,r)=>{var n=r(7034);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7161:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},7202:(e,t,r)=>{"use strict";var n=r(239);e.exports=n},7235:(e,t,r)=>{"use strict";var n=r(262),s=String,o=TypeError;e.exports=function(e){if(n(e))return e;throw new o(s(e)+" is not an object")}},7309:(e,t,r)=>{const n=r(2322),s=r(8631);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},7313:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},7379:(e,t,r)=>{var n=r(5650),s=r(8870),o=r(9005),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?s(e):o(e)}},7389:(e,t,r)=>{"use strict";var n=r(5024),s=r(1330),o=r(9989),a=r(7235),i=r(3273),_=r(8364);t.f=n&&!s?Object.defineProperties:function(e,t){a(e);for(var r,n=i(t),s=_(t),c=s.length,u=0;c>u;)o.f(e,r=s[u++],n[r]);return e}},7447:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7452:(e,t,r)=>{var n=r(7034);e.exports=function(e){return n(this.__data__,e)>-1}},7460:(e,t,r)=>{"use strict";var n=r(4603);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7462:e=>{e.exports=function(e){return this.__data__.has(e)}},7464:(e,t,r)=>{"use strict";var n=r(701),s=r(5691),o=r(4543),a=r(9989);e.exports=function(e,t,r){for(var i=s(t),_=a.f,c=o.f,u=0;u<i.length;u++){var l=i[u];n(e,l)||r&&n(r,l)||_(e,l,c(t,l))}}},7525:(e,t,r)=>{"use strict";var n=r(8900),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},7547:(e,t,r)=>{const n=r(8631),s=r(3004),o=r(8712),a=r(2536),i=r(2555),_=r(9796),c=r(7309),u=r(5642),l=r(9620),d=r(593),m=r(4123),p=r(3311),h=r(2322);function f(e){if(e instanceof n)return e;if("string"==typeof e)return new o(e);if("number"==typeof e)return new a(e);if("boolean"==typeof e)return new i(e);if(null===e)return new s;if(Array.isArray(e))return new _(e.map(f));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=d,n.prototype.MemberElement=c,n.prototype.refract=f,m.prototype.refract=f,e.exports={Element:n,NullElement:s,StringElement:o,NumberElement:a,BooleanElement:i,ArrayElement:_,MemberElement:c,ObjectElement:u,LinkElement:l,RefElement:d,refract:f,ArraySlice:m,ObjectSlice:p,KeyValuePair:h}},7979:(e,t,r)=>{var n=r(9847),s=r(9306),o=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,i=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return o.call(e,t)})))}:s;e.exports=i},8006:e=>{e.exports=function(e){return this.__data__.has(e)}},8099:e=>{"use strict";e.exports={}},8121:(e,t,r)=>{var n=r(3766)(Object.keys,Object);e.exports=n},8130:(e,t,r)=>{"use strict";var n=r(8146);e.exports=function(e){return n(e.length)}},8137:e=>{"use strict";e.exports=function(){}},8138:(e,t,r)=>{var n=r(7379),s=r(3142),o=r(547);e.exports=function(e){return"string"==typeof e||!s(e)&&o(e)&&"[object String]"==n(e)}},8141:(e,t,r)=>{"use strict";var n=r(3753);e.exports=function(e,t){return n[e]||(n[e]=t||{})}},8146:(e,t,r)=>{"use strict";var n=r(9903),s=Math.min;e.exports=function(e){var t=n(e);return t>0?s(t,9007199254740991):0}},8148:(e,t,r)=>{"use strict";var n=r(262),s=r(3999);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},8244:(e,t,r)=>{var n=r(1129),s=r(3142);e.exports=function(e,t,r){var o=t(e);return s(e)?o:n(o,r(e))}},8250:(e,t,r)=>{var n=r(9753),s=r(5681),o=r(88),a=r(4732),i=r(9068);function _(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}_.prototype.clear=n,_.prototype.delete=s,_.prototype.get=o,_.prototype.has=a,_.prototype.set=i,e.exports=_},8326:(e,t,r)=>{const n=r(5735),s=r(7547);t.g$=n,t.KeyValuePair=r(2322),t.G6=s.ArraySlice,t.ot=s.ObjectSlice,t.Hg=s.Element,t.Om=s.StringElement,t.kT=s.NumberElement,t.bd=s.BooleanElement,t.Os=s.NullElement,t.wE=s.ArrayElement,t.Sh=s.ObjectElement,t.Pr=s.MemberElement,t.sI=s.RefElement,t.Ft=s.LinkElement,s.refract,r(394),r(3148)},8337:(e,t,r)=>{"use strict";r(5442);var n=r(7202);e.exports=n},8364:(e,t,r)=>{"use strict";var n=r(8600),s=r(9683);e.exports=Object.keys||function(e){return n(e,s)}},8407:(e,t,r)=>{"use strict";var n=r(4904),s=r(2769),o=r(9932),a=r(8655)("toStringTag"),i=Object,_="Arguments"===o(function(){return arguments}());e.exports=n?o:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=i(e),a))?r:_?o(t):"Object"===(n=o(t))&&s(t.callee)?"Arguments":n}},8411:(e,t,r)=>{"use strict";e.exports=r(8337)},8417:(e,t,r)=>{"use strict";var n,s,o,a=r(1314),i=r(8900),_=r(262),c=r(3999),u=r(701),l=r(3753),d=r(4275),m=r(5241),p="Object already initialized",h=i.TypeError,f=i.WeakMap;if(a||l.state){var g=l.state||(l.state=new f);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw new h(p);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},o=function(e){return g.has(e)}}else{var y=d("state");m[y]=!0,n=function(e,t){if(u(e,y))throw new h(p);return t.facade=e,c(e,y,t),t},s=function(e){return u(e,y)?e[y]:{}},o=function(e){return u(e,y)}}e.exports={set:n,get:s,has:o,enforce:function(e){return o(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!_(t)||(r=s(t)).type!==e)throw new h("Incompatible receiver, "+e+" required");return r}}}},8486:(e,t,r)=>{var n=r(3103),s=r(9770),o=r(9413),a=r(4512),i=r(9270),_=r(7379),c=r(4066),u="[object Map]",l="[object Promise]",d="[object Set]",m="[object WeakMap]",p="[object DataView]",h=c(n),f=c(s),g=c(o),y=c(a),w=c(i),b=_;(n&&b(new n(new ArrayBuffer(1)))!=p||s&&b(new s)!=u||o&&b(o.resolve())!=l||a&&b(new a)!=d||i&&b(new i)!=m)&&(b=function(e){var t=_(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case h:return p;case f:return u;case g:return l;case y:return d;case w:return m}return t}),e.exports=b},8583:(e,t)=>{"use strict";var r;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"}(r=t.ErrorType||(t.ErrorType={})),t.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},8600:(e,t,r)=>{"use strict";var n=r(6100),s=r(701),o=r(3273),a=r(1005).indexOf,i=r(5241),_=n([].push);e.exports=function(e,t){var r,n=o(e),c=0,u=[];for(r in n)!s(i,r)&&s(n,r)&&_(u,r);for(;t.length>c;)s(n,r=t[c++])&&(~a(u,r)||_(u,r));return u}},8631:(e,t,r)=>{const n=r(6343),s=r(2322),o=r(4123);class a{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof a?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new o;const n=(e,t)=>(e.push(t),e),a=(e,r)=>{r.element===t&&e.push(r);const o=r.findRecursive(t);return o&&o.reduce(n,e),r.content instanceof s&&(r.content.key&&a(e,r.content.key),r.content.value&&a(e,r.content.value)),e};return this.content&&(this.content.element&&a(r,this.content),Array.isArray(this.content)&&this.content.reduce(a,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(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 a)this._content=e;else if(e instanceof o)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new o;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new o(this.content);if(this.content instanceof s){const e=new o([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof a?new o([this.content]):new o}get recursiveChildren(){const e=new o;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=a},8655:(e,t,r)=>{"use strict";var n=r(8900),s=r(8141),o=r(701),a=r(1268),i=r(4603),_=r(7460),c=n.Symbol,u=s("wks"),l=_?c.for||c:c&&c.withoutSetter||a;e.exports=function(e){return o(u,e)||(u[e]=i&&o(c,e)?c[e]:l("Symbol."+e)),u[e]}},8666:(e,t,r)=>{var n=r(674),s=r(9460),o=r(2306),a=o&&o.isTypedArray,i=a?s(a):n;e.exports=i},8696:(e,t,r)=>{"use strict";var n=r(1203),s=r(2769),o=/#|\.prototype\./,a=function(e,t){var r=_[i(e)];return r===u||r!==c&&(s(t)?n(t):!!t)},i=a.normalize=function(e){return String(e).replace(o,".").toLowerCase()},_=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";e.exports=a},8712:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8861:(e,t,r)=>{var n=r(5650),s=r(1623),o=r(6285),a=r(3934),i=r(5894),_=r(7447),c=n?n.prototype:void 0,u=c?c.valueOf:void 0;e.exports=function(e,t,r,n,c,l,d){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!l(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return o(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=i;case"[object Set]":var p=1&n;if(m||(m=_),e.size!=t.size&&!p)return!1;var h=d.get(e);if(h)return h==t;n|=2,d.set(e,t);var f=a(m(e),m(t),n,c,l,d);return d.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},8870:(e,t,r)=>{var n=r(5650),s=Object.prototype,o=s.hasOwnProperty,a=s.toString,i=n?n.toStringTag:void 0;e.exports=function(e){var t=o.call(e,i),r=e[i];try{e[i]=void 0;var n=!0}catch(e){}var s=a.call(e);return n&&(t?e[i]=r:delete e[i]),s}},8900:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},8942:(e,t,r)=>{var n=r(4967),s="object"==typeof self&&self&&self.Object===Object&&self,o=n||s||Function("return this")();e.exports=o},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,r)=>{var n=r(4700);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},9098:(e,t,r)=>{"use strict";var n=r(8900),s=r(7013),o=r(9344),a=r(2769),i=r(4543).f,_=r(8696),c=r(8099),u=r(4572),l=r(3999),d=r(701);r(3753);var m=function(e){var t=function(r,n,o){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,o)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,p,h,f,g,y,w,b,E=e.target,v=e.global,x=e.stat,T=e.proto,A=v?n:x?n[E]:n[E]&&n[E].prototype,S=v?c:c[E]||l(c,E,{})[E],M=S.prototype;for(h in t)s=!(r=_(v?h:E+(x?".":"#")+h,e.forced))&&A&&d(A,h),g=S[h],s&&(y=e.dontCallGetSet?(b=i(A,h))&&b.value:A[h]),f=s&&y?y:t[h],(r||T||typeof g!=typeof f)&&(w=e.bind&&s?u(f,n):e.wrap&&s?m(f):T&&a(f)?o(f):f,(e.sham||f&&f.sham||g&&g.sham)&&l(w,"sham",!0),l(S,h,w),T&&(d(c,p=E+"Prototype")||l(c,p,{}),l(c[p],h,f),e.real&&M&&(r||!M[h])&&l(M,h,f)))}},9258:(e,t,r)=>{"use strict";var n=r(4713),s=r(2769),o=r(262),a=TypeError;e.exports=function(e,t){var r,i;if("string"===t&&s(r=e.toString)&&!o(i=n(r,e)))return i;if(s(r=e.valueOf)&&!o(i=n(r,e)))return i;if("string"!==t&&s(r=e.toString)&&!o(i=n(r,e)))return i;throw new a("Can't convert object to primitive value")}},9270:(e,t,r)=>{var n=r(4715)(r(8942),"WeakMap");e.exports=n},9306:e=>{e.exports=function(){return[]}},9310:e=>{e.exports=function(e){return null===e}},9344:(e,t,r)=>{"use strict";var n=r(9932),s=r(6100);e.exports=function(e){if("Function"===n(e))return s(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,r)=>{var n=r(4715)(r(8942),"Promise");e.exports=n},9460:e=>{e.exports=function(e){return function(t){return e(t)}}},9559:(e,t,r)=>{"use strict";var n=r(4904),s=r(8407);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9619:(e,t,r)=>{"use strict";var n=r(8900),s=r(262),o=n.document,a=s(o)&&s(o.createElement);e.exports=function(e){return a?o.createElement(e):{}}},9620:(e,t,r)=>{const n=r(8631);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},9624:(e,t,r)=>{var n=r(3655),s=r(4759),o=r(1580),a=r(4066),i=/^\[object .+?Constructor\]$/,_=Function.prototype,c=Object.prototype,u=_.toString,l=c.hasOwnProperty,d=RegExp("^"+u.call(l).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!o(e)||s(e))&&(n(e)?d:i).test(a(e))}},9632:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},9665:(e,t,r)=>{"use strict";var n=r(5024),s=r(1203),o=r(9619);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a}))},9683:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},9753:(e,t,r)=>{var n=r(5098),s=r(1386),o=r(9770);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(o||s),string:new n}}},9770:(e,t,r)=>{var n=r(4715)(r(8942),"Map");e.exports=n},9796:(e,t,r)=>{const n=r(1517),s=r(8631),o=r(4123);class a extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new o(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,o)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,o)&&s.push(t)})),s}find(e){return new o(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)}}a.empty=function(){return new this},a["fantasy-land/empty"]=a.empty,"undefined"!=typeof Symbol&&(a.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=a},9828:(e,t,r)=>{"use strict";var n=r(3273),s=r(8137),o=r(6625),a=r(8417),i=r(9989).f,_=r(164),c=r(877),u=r(4871),l=r(5024),d="Array Iterator",m=a.set,p=a.getterFor(d);e.exports=_(Array,"Array",(function(e,t){m(this,{type:d,target:n(e),index:0,kind:t})}),(function(){var e=p(this),t=e.target,r=e.index++;if(!t||r>=t.length)return e.target=null,c(void 0,!0);switch(e.kind){case"keys":return c(r,!1);case"values":return c(t[r],!1)}return c([r,t[r]],!1)}),"values");var h=o.Arguments=o.Array;if(s("keys"),s("values"),s("entries"),!u&&l&&"values"!==h.name)try{i(h,"name",{value:"values"})}catch(e){}},9847:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,o=[];++r<n;){var a=e[r];t(a,r,e)&&(o[s++]=a)}return o}},9903:(e,t,r)=>{"use strict";var n=r(5777);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},9932:(e,t,r)=>{"use strict";var n=r(6100),s=n({}.toString),o=n("".slice);e.exports=function(e){return o(s(e),8,-1)}},9989:(e,t,r)=>{"use strict";var n=r(5024),s=r(9665),o=r(1330),a=r(7235),i=r(5341),_=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor,l="enumerable",d="configurable",m="writable";t.f=n?o?function(e,t,r){if(a(e),t=i(t),a(r),"function"==typeof e&&"prototype"===t&&"value"in r&&m in r&&!r[m]){var n=u(e,t);n&&n[m]&&(e[t]=r.value,r={configurable:d in r?r[d]:n[d],enumerable:l in r?r[l]:n[l],writable:!1})}return c(e,t,r)}:c:function(e,t,r){if(a(e),t=i(t),a(r),s)try{return c(e,t,r)}catch(e){}if("get"in r||"set"in r)throw new _("Accessors not supported");return"value"in r&&(e[t]=r.value),e}}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return __webpack_require__.d(t,{a:t}),t},__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__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 r=t.getElementsByTagName("script");if(r.length)for(var n=r.length-1;n>-1&&(!e||!/^http(s?):/.test(e));)e=r[n--].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:()=>Us,lexicalAnalysis:()=>u,mediaTypes:()=>js,namespace:()=>Ps,parse:()=>Ls,syntacticAnalysis:()=>Ns});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>kn,includesClasses:()=>jn,includesSymbols:()=>Cn,isAnnotationElement:()=>In,isArrayElement:()=>An,isBooleanElement:()=>xn,isCommentElement:()=>Fn,isElement:()=>wn,isLinkElement:()=>Mn,isMemberElement:()=>Sn,isNullElement:()=>vn,isNumberElement:()=>En,isObjectElement:()=>Tn,isParseResultElement:()=>Nn,isPrimitiveElement:()=>Rn,isRefElement:()=>On,isSourceMapElement:()=>Pn,isStringElement:()=>bn});var t=__webpack_require__(3833),r=__webpack_require__.n(t),n=__webpack_require__(1212);const s=class extends n{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class o extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(s,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 a=o,i=__webpack_require__.p+"1496cfca5e4d41188323a914b9705264.wasm";let _=null,c=null;const u=async e=>{if(null===_&&null===c)c=r().init().then((()=>r().Language.load(i))).then((e=>{const t=new(r());return t.setLanguage(e),t})).finally((()=>{c=null})),_=await c;else if(null===_&&null!==c)_=await c;else if(null===_)throw new a("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return _.parse(e)};function l(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function d(e){return function t(r){return 0===arguments.length||l(r)?t:e.apply(this,arguments)}}const m=d((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function p(e,t,r){if(r||(r=new h),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,s=function(n){var s=r.get(e);if(s)return s;for(var o in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=t?p(e[o],!0,r):e[o]);return n};switch(m(e)){case"Object":return s(Object.create(Object.getPrototypeOf(e)));case"Array":return s(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.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 h=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var r=this.hash(e),n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var r=this.map[t],n=0;n<r.length;n+=1){if((o=r[n])[0]===e)return o[1]}else{var s=this.hash(e);if(r=this.map[s])for(n=0;n<r.length;n+=1){var o;if((o=r[n])[0]===e)return o[1]}}},e}();const f=d((function(e){return null!=e&&"function"==typeof e.clone?e.clone():p(e,!0)}));const g=class extends a{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}};const y=class extends g{};const w=class extends y{};const b=class extends w{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 E=class{static type="node";type="node";isMissing;children;position;constructor({children:e=[],position:t,isMissing:r=!1}={}){this.type=this.constructor.type,this.isMissing=r,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}};let v=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});const x=class extends E{static type="tag";explicitName;kind;constructor({explicitName:e,kind:t,...r}){super({...r}),this.explicitName=e,this.kind=t}};const T=class{static uri="";tag="";constructor(){this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}};const A=class extends T{static uri="tag:yaml.org,2002:map";test(e){return e.tag.kind===v.Mapping}};const S=class extends T{static uri="tag:yaml.org,2002:seq";test(e){return e.tag.kind===v.Sequence}};const M=class extends T{static uri="tag:yaml.org,2002:str"};function O(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return l(r)?t:d((function(t){return e(r,t)}));default:return l(r)&&l(n)?t:l(r)?d((function(t){return e(t,n)})):l(n)?d((function(t){return e(r,t)})):e(r,n)}}}function I(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return l(r)?t:O((function(t,n){return e(r,t,n)}));case 2:return l(r)&&l(n)?t:l(r)?O((function(t,r){return e(t,n,r)})):l(n)?O((function(t,n){return e(r,t,n)})):d((function(t){return e(r,n,t)}));default:return l(r)&&l(n)&&l(s)?t:l(r)&&l(n)?O((function(t,r){return e(t,r,s)})):l(r)&&l(s)?O((function(t,r){return e(t,n,r)})):l(n)&&l(s)?O((function(t,n){return e(r,t,n)})):l(r)?d((function(t){return e(t,n,s)})):l(n)?d((function(t){return e(r,t,s)})):l(s)?d((function(t){return e(r,n,t)})):e(r,n,s)}}}const F=Number.isInteger||function(e){return(e|0)===e};function N(e){return"[object String]"===Object.prototype.toString.call(e)}function P(e,t){var r=e<0?t.length+e:e;return N(t)?t.charAt(r):t[r]}function R(e,t){for(var r=t,n=0;n<e.length;n+=1){if(null==r)return;var s=e[n];r=F(s)?P(s,r):r[s]}return r}const k=O((function(e,t){return null==t||t!=t?e:t}));const C=I((function(e,t,r){return k(e,R(t,r))}));function j(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,o){return t.apply(this,arguments)};case 6:return function(e,r,n,s,o,a){return t.apply(this,arguments)};case 7:return function(e,r,n,s,o,a,i){return t.apply(this,arguments)};case 8:return function(e,r,n,s,o,a,i,_){return t.apply(this,arguments)};case 9:return function(e,r,n,s,o,a,i,_,c){return t.apply(this,arguments)};case 10:return function(e,r,n,s,o,a,i,_,c,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 U(e,t,r){return function(){for(var n=[],s=0,o=e,a=0,i=!1;a<t.length||s<arguments.length;){var _;a<t.length&&(!l(t[a])||s>=arguments.length)?_=t[a]:(_=arguments[s],s+=1),n[a]=_,l(_)?i=!0:o-=1,a+=1}return!i&&o<=0?r.apply(this,n):j(Math.max(0,o),U(e,n,r))}}const L=O((function(e,t){return 1===e?d(t):j(e,U(e,[],t))}));const V=d((function(e){return L(e.length,e)}));function D(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const B=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};const q=d((function(e){return!!B(e)||!!e&&("object"==typeof e&&(!N(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var W="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function G(e,t,r){return function(n,s,o){if(q(o))return e(n,s,o);if(null==o)return s;if("function"==typeof o["fantasy-land/reduce"])return t(n,s,o,"fantasy-land/reduce");if(null!=o[W])return r(n,s,o[W]());if("function"==typeof o.next)return r(n,s,o);if("function"==typeof o.reduce)return t(n,s,o,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function H(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const $=O((function(e,t){return j(e.length,(function(){return e.apply(t,arguments)}))}));function Z(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function z(e,t,r,n){return e["@@transducer/result"](r[n]($(e["@@transducer/step"],e),t))}const K=G(H,z,Z);var Y=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 X(e){return new Y(e)}const Q=I((function(e,t,r){return K("function"==typeof e?X(e):e,t,r)}));function J(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return B(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const ee=I(J("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const te=d(J("tail",ee(1,1/0)));function re(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return j(arguments[0].length,Q(D,arguments[0],te(arguments)))}var ne="\t\n\v\f\r \u2028\u2029\ufeff";const se=d("function"==typeof String.prototype.trim&&!ne.trim()&&"".trim()?function(e){return e.trim()}:function(e){var t=new RegExp("^["+ne+"]["+ne+"]*"),r=new RegExp("["+ne+"]["+ne+"]*$");return e.replace(t,"").replace(r,"")});function oe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function ae(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ie(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function _e(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ce="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ue=Object.prototype.toString;const le=function(){return"[object Arguments]"===ue.call(arguments)?function(e){return"[object Arguments]"===ue.call(e)}:function(e){return _e("callee",e)}}();var de=!{toString:null}.propertyIsEnumerable("toString"),me=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],pe=function(){return arguments.propertyIsEnumerable("length")}(),he=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},fe="function"!=typeof Object.keys||pe?d((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=pe&&le(e);for(t in e)!_e(t,e)||s&&"length"===t||(n[n.length]=t);if(de)for(r=me.length-1;r>=0;)_e(t=me[r],e)&&!he(n,t)&&(n[n.length]=t),r-=1;return n})):d((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ge=fe;function ye(e,t,r,n){var s=ae(e);function o(e,t){return we(e,t,r.slice(),n.slice())}return!ie((function(e,t){return!ie(o,t,e)}),ae(t),s)}function we(e,t,r,n){if(ce(e,t))return!0;var s,o,a=m(e);if(a!==m(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(a){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(o=String(s).match(/^function (\w*)/))?"":o[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!ce(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ce(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var i=r.length-1;i>=0;){if(r[i]===e)return n[i]===t;i-=1}switch(a){case"Map":return e.size===t.size&&ye(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&ye(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var _=ge(e);if(_.length!==ge(t).length)return!1;var c=r.concat([e]),u=n.concat([t]);for(i=_.length-1;i>=0;){var l=_[i];if(!_e(l,t)||!we(t[l],e[l],c,u))return!1;i-=1}return!0}const be=O((function(e,t){return we(e,t,[],[])}));function Ee(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(be(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ve(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function xe(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Te=function(e){return(e<10?"0":"")+e};const Ae="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Te(e.getUTCMonth()+1)+"-"+Te(e.getUTCDate())+"T"+Te(e.getUTCHours())+":"+Te(e.getUTCMinutes())+":"+Te(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Se(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function Me(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!B(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function Oe(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ie=function(){return this.xf["@@transducer/init"]()},Fe=function(e){return this.xf["@@transducer/result"](e)};var Ne=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ie,e.prototype["@@transducer/result"]=Fe,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Pe(e){return function(t){return new Ne(e,t)}}const Re=O(Me(["fantasy-land/filter","filter"],Pe,(function(e,t){return Oe(t)?Se((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},ge(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const ke=O((function(e,t){return Re((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function Ce(e,t){var r=function(r){var n=t.concat([e]);return Ee(r,n)?"<Circular>":Ce(r,n)},n=function(e,t){return ve((function(t){return xe(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ve(r,e).join(", ")+"))";case"[object Array]":return"["+ve(r,e).concat(n(e,ke((function(e){return/^\d+$/.test(e)}),ge(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):xe(Ae(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":xe(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,ge(e)).join(", ")+"}"}}const je=d((function(e){return Ce(e,[])}));const Ue=O((function(e,t){return L(e+1,(function(){var r=arguments[e];if(null!=r&&oe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(je(r)+' does not have a method named "'+t+'"')}))}));const Le=Ue(1,"split");var Ve=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ie,e.prototype["@@transducer/result"]=Fe,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const De=O(Me(["fantasy-land/map","map"],(function(e){return function(t){return new Ve(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return L(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Se((function(r,n){return r[n]=e(t[n]),r}),{},ge(t));default:return ve(e,t)}})));const Be=Ue(1,"join");const qe=d((function(e){return N(e)?e.split("").reverse().join(""):Array.prototype.slice.call(e,0).reverse()}));function We(){if(0===arguments.length)throw new Error("compose requires at least one argument");return re.apply(this,qe(arguments))}const Ge=L(4,(function(e,t,r,n){return K(e("function"==typeof t?X(t):t),r,n)}));const He=O((function(e,t){if(B(e)){if(B(t))return e.concat(t);throw new TypeError(je(t)+" is not an array")}if(N(e)){if(N(t))return e+t;throw new TypeError(je(t)+" is not a string")}if(null!=e&&oe(e["fantasy-land/concat"]))return e["fantasy-land/concat"](t);if(null!=e&&oe(e.concat))return e.concat(t);throw new TypeError(je(e)+' does not have a method named "concat" or "fantasy-land/concat"')}));const $e=be("");const Ze=O((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var o=je(e),a=r(o,je(t));return void 0!==a&&a===o?e:t}));const ze=O((function(e,t){if(null!=t)return F(e)?P(e,t):t[e]}));const Ke=O((function(e,t){return De(ze(e),t)}));const Ye=d((function(e){return L(Q(Ze,0,Ke("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));var Xe=function(e,t){switch(arguments.length){case 0:return Xe;case 1:return function t(r){return 0===arguments.length?t:ce(e,r)};default:return ce(e,t)}};const Qe=Xe;const Je=L(1,re(m,Qe("GeneratorFunction")));const et=L(1,re(m,Qe("AsyncFunction")));const tt=Ye([re(m,Qe("Function")),Je,et]);const rt=O((function(e,t){return e&&t}));function nt(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function st(e,t,r,n){return r[n](e,t)}const ot=G(Se,st,nt);const at=O((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:ot((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,o=[];for(r=0;r<n;)o[o.length]=e[r],r+=1;for(r=0;r<s;)o[o.length]=t[r],r+=1;return o}(e,De(r,t))}),[],e)}));const it=O((function(e,t){var r=L(e,t);return L(e,(function(){return Se(at,De(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const _t=d((function(e){return it(e.length,e)}));const ct=O((function(e,t){return oe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:_t(rt)(e,t)}));const ut=O((function(e,t){return L(Q(Ze,0,Ke("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ve((function(e){return e.apply(n,r)}),t))}))}));function lt(e){return e}const dt=d(lt);const mt=L(1,re(m,Qe("Number")));var pt=ct(mt,isFinite);var ht=L(1,pt);const ft=tt(Number.isFinite)?L(1,$(Number.isFinite,Number)):ht;var gt=ct(ft,ut(be,[Math.floor,dt]));var yt=L(1,gt);const wt=tt(Number.isInteger)?L(1,$(Number.isInteger,Number)):yt;const bt=d((function(e){return L(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Et=_t(d((function(e){return!e})));const vt=Et(ft);const xt=L(1,ct(mt,O((function(e,t){return e>t}))(0)));var Tt=V((function(e,t){var r=Number(t);if(r!==t&&(r=0),xt(r))throw new RangeError("repeat count must be non-negative");if(vt(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===e.length||0===r)return"";if(e.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=e.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=e;r;)s+=e,r-=1;return s+=s.substring(0,n-s.length)})),At=bt(Ue(1,"repeat"));const St=tt(String.prototype.repeat)?At:Tt;var Mt=d((function(e){return function(){return e}}))(void 0);const Ot=be(Mt());const It=I((function(e,t,r){return r.replace(e,t)}));var Ft=It(/[\s\uFEFF\xA0]+$/,""),Nt=Ue(0,"trimEnd");const Pt=tt(String.prototype.trimEnd)?Nt:Ft;var Rt=It(/^[\s\uFEFF\xA0]+/,""),kt=Ue(0,"trimStart");const Ct=tt(String.prototype.trimStart)?kt:Rt;var jt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ie,e.prototype["@@transducer/result"]=Fe,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 Ut(e){return function(t){return new jt(e,t)}}const Lt=O(Me(["dropWhile"],Ut,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return ee(r,1/0,t)})));const Vt=bt(O(Ee));const Dt=V((function(e,t){return re(Le(""),Lt(Vt(e)),Be(""))(t)}));const Bt=bt(He);var qt=__webpack_require__(6850);const Wt=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Gt=e=>{const t=(e=>{const t=e.match(Wt),r=C("",["groups","indentation"],t);return $e(r)?void 0:parseInt(r,10)})(e);if(wt(t))return St(" ",t);const r=C("",[1],e.split("\n")),n=C(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return St(" ",n)},Ht=e=>{const t=e.match(Wt),r=C("",["groups","chomping"],t);return $e(r)?void 0:r},$t=(e,t)=>Ot(e)?`${Pt(t)}\n`:"-"===e?Pt(t):t,Zt=e=>e.replace(/\r\n/g,"\n"),zt=e=>e.replace(/(\n)?\n([^\n]+)/g,((e,t,r)=>t?e:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Kt=V(((e,t)=>t.replace(new RegExp(`^${e}`),"").replace(new RegExp(`${e}$`),""))),Yt=re(Zt,se,zt,Le("\n"),De(Ct),Be("\n")),Xt=re(Zt,se,zt,Le("\n"),De(Ct),Be("\n"),Kt("'")),Qt=re(Zt,se,(e=>e.replace(/\\\n\s*/g,"")),zt,qt.MH,Le("\n"),De(Ct),Be("\n"),Kt('"'));let Jt=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}({}),er=function(e){return e.Flow="Flow",e.Block="Block",e}({});const tr=class{static test(e){return e.tag.kind===v.Scalar&&"string"==typeof e.content}static canonicalFormat(e){let t=e.content;const r=e.clone();return e.style===Jt.Plain?t=Yt(e.content):e.style===Jt.SingleQuoted?t=Xt(e.content):e.style===Jt.DoubleQuoted?t=Qt(e.content):e.style===Jt.Literal?t=(e=>{const t=Gt(e),r=Ht(e),n=Zt(e),s=te(n.split("\n")),o=We(De(Dt(t)),De(Bt("\n"))),a=Ge(o,He,"",s);return $t(r,a)})(e.content):e.style===Jt.Folded&&(t=(e=>{const t=Gt(e),r=Ht(e),n=Zt(e),s=te(n.split("\n")),o=We(De(Dt(t)),De(Bt("\n"))),a=Ge(o,He,"",s),i=zt(a);return $t(r,i)})(e.content)),r.content=t,r}static resolve(e){return e}};const rr=class{tags;tagDirectives;constructor(){this.tags=[],this.tagDirectives=[],this.registerTag(new A),this.registerTag(new S),this.registerTag(new M)}toSpecificTagName(e){let t=e.tag.explicitName;return"!"===e.tag.explicitName?e.tag.kind===v.Scalar?t=M.uri:e.tag.kind===v.Sequence?t=S.uri:e.tag.kind===v.Mapping&&(t=A.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 r=e;tr.test(e)&&(r=tr.canonicalFormat(e));const n=this.tags.find((e=>(null==e?void 0:e.tag)===t));if(void 0===n)throw new b(`Tag "${t}" was not recognized.`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:f(e.tag.position),node:e.clone()});if(!n.test(r))throw new b(`Node couldn't be resolved against the tag "${t}"`,{specificTagName:t,explicitTagName:e.tag.explicitName,tagKind:e.tag.kind,tagPosition:f(e.tag.position),nodeCanonicalContent:r.content,node:e.clone()});return n.resolve(r)}};const nr=class extends T{static uri="tag:yaml.org,2002:bool";test(e){return/^(true|false)$/.test(e.content)}resolve(e){const t="true"===e.content,r=e.clone();return r.content=t,r}};const sr=class extends T{static uri="tag:yaml.org,2002:float";test(e){return/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(e.content)}resolve(e){const t=parseFloat(e.content),r=e.clone();return r.content=t,r}};const or=class extends T{static uri="tag:yaml.org,2002:int";test(e){return/^-?(0|[1-9][0-9]*)$/.test(e.content)}resolve(e){const t=parseInt(e.content,10),r=e.clone();return r.content=t,r}};const ar=class extends T{static uri="tag:yaml.org,2002:null";test(e){return/^null$/.test(e.content)}resolve(e){const t=e.clone();return t.content=null,t}};const ir=class extends rr{constructor(){super(),this.registerTag(new nr,!0),this.registerTag(new sr,!0),this.registerTag(new or,!0),this.registerTag(new ar,!0)}toSpecificTagName(e){let t=super.toSpecificTagName(e);if("?"===t)if(e.tag.vkind===v.Sequence)t=S.uri;else if(e.tag.kind===v.Mapping)t=A.uri;else if(e.tag.kind===v.Scalar){const r=this.tags.find((t=>t.test(e)));t=(null==r?void 0:r.tag)||"?"}return t}};const _r=class extends E{anchor;tag;style;styleGroup;constructor({anchor:e,tag:t,style:r,styleGroup:n,...s}){super({...s}),this.anchor=e,this.tag=t,this.style=r,this.styleGroup=n}};const cr=class extends _r{static type="scalar";content;constructor({content:e,...t}){super({...t}),this.content=e}};const ur=class extends y{},lr=(e,t)=>null!=t&&"object"==typeof t&&"type"in t&&t.type===e,dr=e=>lr("mapping",e),mr=e=>lr("sequence",e),pr=e=>lr("keyValuePair",e),hr=e=>lr("scalar",e),fr=e=>lr("alias",e);const gr=class{addAnchor(e){if(!(e=>lr("anchor",e))(e.anchor))throw new ur("Expected YAML anchor to be attached the the YAML AST node.",{node:e})}resolveAlias(e){return new cr({content:e.content,style:Jt.Plain,styleGroup:er.Flow})}},yr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},wr={},br=e=>null==e?void 0:e.type,Er=e=>"string"==typeof br(e),vr=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),xr=(e,{visitFnGetter:t=yr,nodeTypeGetter:r=br,breakSymbol:n=wr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:a=!1}={})=>{const i=Symbol("skip"),_=new Array(e.length).fill(i);return{enter(c,u,l,d,m,p){let h=c,f=!1;const y={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let c=0;c<e.length;c+=1)if(_[c]===i){const i=t(e[c],r(h),!1);if("function"==typeof i){const t=i.call(e[c],h,u,l,d,m,y);if("function"==typeof(null==t?void 0:t.then))throw new g("Async visitor not supported in sync mode",{visitor:e[c],visitFn:i});if(t===o)_[c]=h;else if(t===n)_[c]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;h=t,f=!0}}}}return f?h:void 0},leave(s,a,c,u,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===i){const i=t(e[s],r(m),!0);if("function"==typeof i){const t=i.call(e[s],m,a,c,u,l,p);if("function"==typeof(null==t?void 0:t.then))throw new g("Async visitor not supported in sync mode",{visitor:e[s],visitFn:i});if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=i)}}};xr[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=yr,nodeTypeGetter:r=br,breakSymbol:n=wr,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:o=!1,exposeEdits:a=!1}={})=>{const i=Symbol("skip"),_=new Array(e.length).fill(i);return{async enter(c,u,l,d,m,p){let h=c,f=!1;const g={...p,replaceWith(e,t){p.replaceWith(e,t),h=e}};for(let c=0;c<e.length;c+=1)if(_[c]===i){const i=t(e[c],r(h),!1);if("function"==typeof i){const t=await i.call(e[c],h,u,l,d,m,g);if(t===o)_[c]=h;else if(t===n)_[c]=n;else{if(t===s)return t;if(void 0!==t){if(!a)return t;h=t,f=!0}}}}return f?h:void 0},async leave(s,a,c,u,l,d){let m=s;const p={...d,replaceWith(e,t){d.replaceWith(e,t),m=e}};for(let s=0;s<e.length;s+=1)if(_[s]===i){const i=t(e[s],r(m),!0);if("function"==typeof i){const t=await i.call(e[s],m,a,c,u,l,p);if(t===n)_[s]=n;else if(void 0!==t&&t!==o)return t}}else _[s]===m&&(_[s]=i)}}};const Tr=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=wr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:i=yr,nodeTypeGetter:_=br,nodePredicate:c=Er,nodeCloneFn:u=vr,detectCycles:l=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),y=[e],w=-1,b=[],E=e;const v=[],x=[];do{w+=1;const e=w===y.length;let r;const S=e&&0!==b.length;if(e){if(r=0===x.length?void 0:v.pop(),E=h,h=x.pop(),S)if(f){E=E.slice();let e=0;for(const[t,r]of b){const n=t-e;r===o?(E.splice(n,1),e+=1):E[n]=r}}else{E=u(E);for(const[e,t]of b)E[e]=t}w=p.index,y=p.keys,b=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?w:y[w],E=h[r],E===o||void 0===E)continue;v.push(r)}let M;if(!Array.isArray(E)){var T;if(!c(E))throw new g(`Invalid AST Node: ${String(E)}`,{node:E});if(l&&x.includes(E)){"function"==typeof d&&d(E,r,h,v,x),v.pop();continue}const o=i(t,_(E),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,h,v,x):h&&(h[r]=t),e||(E=t)}};M=o.call(t,E,r,h,v,x,s)}if("function"==typeof(null===(T=M)||void 0===T?void 0:T.then))throw new g("Async visitor not supported in sync mode",{visitor:t,visitFn:o});if(M===s)break;if(M===a){if(!e){v.pop();continue}}else if(void 0!==M&&(b.push([r,M]),!e)){if(!c(M)){v.pop();continue}E=M}}var A;if(void 0===M&&S&&b.push([r,E]),!e)p={inArray:f,index:w,keys:y,edits:b,prev:p},f=Array.isArray(E),y=f?E:null!==(A=m[_(E)])&&void 0!==A?A:[],w=-1,b=[],h!==o&&void 0!==h&&x.push(h),h=E}while(void 0!==p);return 0!==b.length?b[b.length-1][1]:e};Tr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=wr,deleteNodeSymbol:o=null,skipVisitingNodeSymbol:a=!1,visitFnGetter:i=yr,nodeTypeGetter:_=br,nodePredicate:c=Er,nodeCloneFn:u=vr,detectCycles:l=!0,detectCyclesCallback:d=null}={})=>{const m=r||{};let p,h,f=Array.isArray(e),y=[e],w=-1,b=[],E=e;const v=[],x=[];do{w+=1;const e=w===y.length;let r;const A=e&&0!==b.length;if(e){if(r=0===x.length?void 0:v.pop(),E=h,h=x.pop(),A)if(f){E=E.slice();let e=0;for(const[t,r]of b){const n=t-e;r===o?(E.splice(n,1),e+=1):E[n]=r}}else{E=u(E);for(const[e,t]of b)E[e]=t}w=p.index,y=p.keys,b=p.edits,f=p.inArray,p=p.prev}else if(h!==o&&void 0!==h){if(r=f?w:y[w],E=h[r],E===o||void 0===E)continue;v.push(r)}let S;if(!Array.isArray(E)){if(!c(E))throw new g(`Invalid AST Node: ${String(E)}`,{node:E});if(l&&x.includes(E)){"function"==typeof d&&d(E,r,h,v,x),v.pop();continue}const o=i(t,_(E),e);if(o){for(const[e,r]of Object.entries(n))t[e]=r;const s={replaceWith(t,n){"function"==typeof n?n(t,E,r,h,v,x):h&&(h[r]=t),e||(E=t)}};S=await o.call(t,E,r,h,v,x,s)}if(S===s)break;if(S===a){if(!e){v.pop();continue}}else if(void 0!==S&&(b.push([r,S]),!e)){if(!c(S)){v.pop();continue}E=S}}var T;if(void 0===S&&A&&b.push([r,E]),!e)p={inArray:f,index:w,keys:y,edits:b,prev:p},f=Array.isArray(E),y=f?E:null!==(T=m[_(E)])&&void 0!==T?T:[],w=-1,b=[],h!==o&&void 0!==h&&x.push(h),h=E}while(void 0!==p);return 0!==b.length?b[b.length-1][1]:e};class Ar{static type="point";type=Ar.type;row;column;char;constructor({row:e,column:t,char:r}){this.row=e,this.column=t,this.char=r}}class Sr{static type="position";type=Sr.type;start;end;constructor({start:e,end:t}){this.start=e,this.end=t}}const Mr=Sr;const Or=class extends E{static type="anchor";name;constructor({name:e,...t}){super({...t}),this.name=e}};class Ir extends E{static type="stream"}Object.defineProperty(Ir.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter((e=>(e=>lr("document",e))(e)||(e=>lr("comment",e))(e))):[]},enumerable:!0});const Fr=Ir;const Nr=d((function(e){return P(0,e)}));const Pr=class extends E{static type="parseResult";get rootNode(){return Nr(this.children)}};const Rr="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),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var o in s)_e(o,s)&&(t[o]=s[o]);r+=1}return t};const kr=O((function(e,t){return Rr({},e,t)}));const Cr=class extends E{static type="directive";name;parameters;constructor({name:e,parameters:t,...r}){super({...r}),this.name=e,this.parameters=kr({version:void 0,handle:void 0,prefix:void 0},t)}};const jr=class extends E{static type="document"};const Ur=class extends _r{};class Lr extends Ur{static type="mapping"}Object.defineProperty(Lr.prototype,"content",{get(){return Array.isArray(this.children)?this.children.filter(pr):[]},enumerable:!0});const Vr=Lr;class Dr extends E{static type="keyValuePair";styleGroup;constructor({styleGroup:e,...t}){super({...t}),this.styleGroup=e}}Object.defineProperties(Dr.prototype,{key:{get(){return this.children.filter((e=>hr(e)||dr(e)||mr(e)))[0]},enumerable:!0},value:{get(){const{key:e,children:t}=this;return t.filter((t=>(t=>t!==e)(t)&&(e=>hr(e)||dr(e)||mr(e)||fr(e))(t)))[0]},enumerable:!0}});const Br=Dr;class qr extends Ur{static type="sequence"}Object.defineProperty(qr.prototype,"content",{get(){const{children:e}=this;return Array.isArray(e)?e.filter((e=>mr(e)||dr(e)||hr(e)||fr(e))):[]},enumerable:!0});const Wr=qr;const Gr=class extends E{static type="comment";content;constructor({content:e,...t}){super({...t}),this.content=e}};const Hr=class extends E{static type="alias";content;constructor({content:e,...t}){super({...t}),this.content=e}};const $r=class extends E{static type="literal";value;constructor({value:e,...t}={}){super({...t}),this.value=e}};const Zr=class extends E{static type="error";value;isUnexpected;constructor({value:e,isUnexpected:t=!1,...r}={}){super({...r}),this.value=e,this.isUnexpected=t}};const zr=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)}},Kr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Yr=e=>Array.isArray(e)||Er(e);class Xr{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 Ar({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=new Ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Mr({start:t,end:r})}static kindNodeToYamlAnchor(e){const{anchor:t}=e;if(void 0!==t)return new Or({name:t.text,position:Xr.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,r=t?.text||("plain_scalar"===e.type?"?":"!"),n=e.type.endsWith("mapping")?v.Mapping:e.type.endsWith("sequence")?v.Sequence:v.Scalar,s=t?Xr.toPosition(t):void 0;return new x({explicitName:r,kind:n,position:s})}schema;referenceManager;stream={enter:e=>{const t=Xr.toPosition(e);return new Fr({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Pr({children:[e]})};yaml_directive={enter:e=>{const t=Xr.toPosition(e),r=e?.firstNamedChild?.text;return new Cr({position:t,name:"%YAML",parameters:{version:r}})}};tag_directive={enter:e=>{const t=Xr.toPosition(e),r=e.children[0],n=e.children[1],s=new Cr({position:t,name:"%TAG",parameters:{handle:r?.text,prefix:n?.text}});return this.schema.registerTagDirective(s),s}};reserved_directive={enter:e=>{const t=Xr.toPosition(e),r=e.children[0],n=e.children[1],s=e.children[2];return new Cr({position:t,name:r?.text,parameters:{handle:n?.text,prefix:s?.text}})}};document={enter:e=>{const t=Xr.toPosition(e);return new jr({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(Xr.isScalar(t)||Xr.isMapping(t)||Xr.isSequence(t))return e.children;const r=new Ar({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex}),n=new cr({content:"",anchor:Xr.kindNodeToYamlAnchor(t),tag:Xr.kindNodeToYamlTag(t),position:new Mr({start:r,end:r}),styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(n),[...e.children,n]}};tag={enter:()=>null};anchor={enter:()=>null};block_mapping={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Vr({children:e.children,position:t,anchor:n,tag:r,styleGroup:er.Block,style:Jt.NextLine,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};block_mapping_pair={enter:e=>{const t=Xr.toPosition(e),r=[...e.children];if(Xr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Xr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new Br({children:r,position:t,styleGroup:er.Block,isMissing:e.isMissing})}};flow_mapping={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Vr({children:e.children,position:t,anchor:n,tag:r,styleGroup:er.Flow,style:Jt.Explicit,isMissing:e.isMissing});return this.registerAnchor(s),this.schema.resolve(s)}};flow_pair={enter:e=>{const t=Xr.toPosition(e),r=[...e.children];if(Xr.hasKeyValuePairEmptyKey(e)){const t=this.createKeyValuePairEmptyKey(e);r.unshift(t)}if(Xr.hasKeyValuePairEmptyValue(e)){const t=this.createKeyValuePairEmptyValue(e);r.push(t)}return new Br({children:r,position:t,styleGroup:er.Flow,isMissing:e.isMissing})}};keyValuePair={leave:e=>{e.children=e.children.flat()}};block_sequence={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Wr({children:e.children,position:t,anchor:n,tag:r,styleGroup:er.Block,style:Jt.NextLine});return this.registerAnchor(s),this.schema.resolve(s)}};block_sequence_item={enter:e=>{if(e.children.length>1)return e.children;const t=new Ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return[new cr({content:"",tag:new x({explicitName:"?",kind:v.Scalar}),position:new Mr({start:t,end:t}),styleGroup:er.Flow,style:Jt.Plain})]}};flow_sequence={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new Wr({children:e.children.flat(),position:t,anchor:n,tag:r,styleGroup:er.Flow,style:Jt.Explicit});return this.registerAnchor(s),this.schema.resolve(s)}};sequence={leave:e=>{e.children=e.children.flat(1/0)}};plain_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(s),this.schema.resolve(s)}};single_quote_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Flow,style:Jt.SingleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};double_quote_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Flow,style:Jt.DoubleQuoted});return this.registerAnchor(s),this.schema.resolve(s)}};block_scalar={enter:e=>{const t=Xr.toPosition(e),r=Xr.kindNodeToYamlTag(e),n=Xr.kindNodeToYamlAnchor(e),s=e.text.startsWith("|")?Jt.Literal:e.text.startsWith(">")?Jt.Folded:Jt.Plain,o=new cr({content:e.text,anchor:n,tag:r,position:t,styleGroup:er.Block,style:s});return this.registerAnchor(o),this.schema.resolve(o)}};comment={enter:e=>new Gr({content:e.text})};alias={enter:e=>{const t=new Hr({content:e.text});return this.referenceManager.resolveAlias(t)}};constructor(e){this.schema=e}enter(e){if(e instanceof zr&&!e.isNamed){const t=Xr.toPosition(e),r=e.type||e.text,{isMissing:n}=e;return new $r({value:r,position:t,isMissing:n})}}ERROR(e,t,r,n){const s=Xr.toPosition(e),o=new Zr({children:e.children,position:s,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Pr({children:[o]}):o}registerAnchor(e){void 0!==e.anchor&&this.referenceManager.addAnchor(e)}createKeyValuePairEmptyKey(e){const t=new Ar({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:r}=e,n=r?.children||[],s=n.find(Xr.isKind("tag")),o=n.find(Xr.isKind("anchor")),a=new x(void 0!==s?{explicitName:s.text,kind:v.Scalar,position:Xr.toPosition(s)}:{explicitName:"?",kind:v.Scalar}),i=void 0!==o?new Or({name:o.text,position:Xr.toPosition(o)}):void 0,_=new cr({content:"",position:new Mr({start:t,end:t}),tag:a,anchor:i,styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(_),_}createKeyValuePairEmptyValue(e){const t=new Ar({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:r}=e,n=r?.children||[],s=n.find(Xr.isKind("tag")),o=n.find(Xr.isKind("anchor")),a=new x(void 0!==s?{explicitName:s.text,kind:v.Scalar,position:Xr.toPosition(s)}:{explicitName:"?",kind:v.Scalar}),i=void 0!==o?new Or({name:o.text,position:Xr.toPosition(o)}):void 0,_=new cr({content:"",position:new Mr({start:t,end:t}),tag:a,anchor:i,styleGroup:er.Flow,style:Jt.Plain});return this.registerAnchor(_),_}}const Qr=Xr;const Jr=L(1,re(m,Qe("String")));var en=__webpack_require__(8326);var tn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Ie,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){var r;return this.f(t)||(this.all=!1,e=(r=this.xf["@@transducer/step"](e,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),e},e}();function rn(e){return function(t){return new tn(e,t)}}const nn=O(Me(["all"],rn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));class sn extends en.Om{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const on=sn;class an extends en.Om{constructor(e,t,r){super(e,t,r),this.element="comment"}}const _n=an;class cn extends en.wE{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Ot(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const un=cn;class ln extends en.wE{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(void 0===e)return;const t=new en.wE([e.start.row,e.start.column,e.start.char]),r=new en.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const dn=ln,mn=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],pn=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,hn=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),fn=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof en.wE)&&t.classes.includes(e),gn=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,yn=e=>e({hasMethod:mn,hasBasicElementProps:pn,primitiveEq:hn,isElementType:gn,hasClass:fn}),wn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.Hg||e(r)&&t(void 0,r))),bn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.Om||e(r)&&t("string",r))),En=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.kT||e(r)&&t("number",r))),vn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.Os||e(r)&&t("null",r))),xn=yn((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof en.bd||e(r)&&t("boolean",r))),Tn=yn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof en.Sh||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),An=yn((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof en.wE&&!(n instanceof en.Sh)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Sn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof en.Pr||e(n)&&t("member",n)&&r(void 0,n))),Mn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof en.Ft||e(n)&&t("link",n)&&r(void 0,n))),On=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof en.sI||e(n)&&t("ref",n)&&r(void 0,n))),In=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof on||e(n)&&t("annotation",n)&&r("array",n))),Fn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _n||e(n)&&t("comment",n)&&r("string",n))),Nn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof un||e(n)&&t("parseResult",n)&&r("array",n))),Pn=yn((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dn||e(n)&&t("sourceMap",n)&&r("array",n))),Rn=e=>gn("object",e)||gn("array",e)||gn("boolean",e)||gn("number",e)||gn("string",e)||gn("null",e)||gn("member",e),kn=e=>Pn(e.meta.get("sourceMap")),Cn=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!An(r)&&nn(Vt(r.toValue()),e)},jn=(e,t)=>0===e.length||nn(Vt(t.classes.toValue()),e);const Un=class extends g{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Ln=class extends Un{};const Vn=class extends Un{},Dn=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof en.KeyValuePair){const{key:t,value:s}=e,o=wn(t)?Dn(t,n):t,a=wn(s)?Dn(s,n):s,i=new en.KeyValuePair(o,a);return r.set(e,i),i}if(e instanceof en.ot){const t=e=>Dn(e,n),s=[...e].map(t),o=new en.ot(s);return r.set(e,o),o}if(e instanceof en.G6){const t=e=>Dn(e,n),s=[...e].map(t),o=new en.G6(s);return r.set(e,o),o}if(wn(e)){const t=Wn(e);if(r.set(e,t),e.content)if(wn(e.content))t.content=Dn(e.content,n);else if(e.content instanceof en.KeyValuePair)t.content=Dn(e.content,n);else if(Array.isArray(e.content)){const r=e=>Dn(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Ln("Value provided to cloneDeep function couldn't be cloned",{value:e})};Dn.safe=e=>{try{return Dn(e)}catch{return e}};const Bn=e=>{const{key:t,value:r}=e;return new en.KeyValuePair(t,r)},qn=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Dn(e.meta)),e.attributes.length>0&&(t._attributes=Dn(e.attributes)),wn(e.content)){const r=e.content;t.content=qn(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof en.KeyValuePair?t.content=Bn(e.content):t.content=e.content;return t},Wn=e=>{if(e instanceof en.KeyValuePair)return Bn(e);if(e instanceof en.ot)return(e=>{const t=[...e];return new en.ot(t)})(e);if(e instanceof en.G6)return(e=>{const t=[...e];return new en.G6(t)})(e);if(wn(e))return qn(e);throw new Vn("Value provided to cloneShallow function couldn't be cloned",{value:e})};Wn.safe=e=>{try{return Wn(e)}catch{return e}};const Gn=e=>Tn(e)?"ObjectElement":An(e)?"ArrayElement":Sn(e)?"MemberElement":bn(e)?"StringElement":xn(e)?"BooleanElement":En(e)?"NumberElement":vn(e)?"NullElement":Mn(e)?"LinkElement":On(e)?"RefElement":void 0,Hn=e=>wn(e)?Wn(e):vr(e),$n=re(Gn,Jr),Zn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};const zn=(e,t,{keyMap:r=Zn,...n}={})=>Tr(e,t,{keyMap:r,nodeTypeGetter:Gn,nodePredicate:$n,nodeCloneFn:Hn,...n});zn[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Zn,...n}={})=>Tr[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Gn,nodePredicate:$n,nodeCloneFn:Hn,...n});const Kn=I((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})_e(n,t)&&(s[n]=_e(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)_e(n,r)&&!_e(n,s)&&(s[n]=r[n]);return s}));const Yn=I((function e(t,r,n){return Kn((function(r,n,s){return Oe(n)&&Oe(s)?e(t,n,s):t(r,n,s)}),r,n)}));const Xn=O((function(e,t){return Yn((function(e,t,r){return r}),e,t)}));const Qn=I((function(e,t,r){return k(e,ze(t,r))}));const Jn=O(R);const es=ee(0,-1);const ts=O((function(e,t){return e.apply(this,t)}));const rs=Et(tt);var ns=d((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():B(e)?[]:N(e)?"":Oe(e)?{}:le(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 ss=ns;const os=d((function(e){return null!=e&&be(e,ss(e))}));const as=ct(L(1,tt(Array.isArray)?Array.isArray:re(m,Qe("Array"))),os);const is=L(3,(function(e,t,r){var n=Jn(e,r),s=Jn(es(e),r);if(!rs(n)&&!as(e)){var o=$(n,s);return ts(o,t)}}));const _s=I((function(e,t,r){return e(R(t,r))}));const cs=be(null);var us=Et(cs);function ls(e){return ls="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},ls(e)}const ds=L(1,ct(us,(function(e){return"object"===ls(e)})));var ms=re(m,Qe("Object")),ps=_s(ct(tt,re(je,be(je(Object)))),["constructor"]);const hs=L(1,(function(e){if(!ds(e)||!ms(e))return!1;var t=Object.getPrototypeOf(e);return!!cs(t)||ps(t)}));class fs extends en.g${constructor(){super(),this.register("annotation",on),this.register("comment",_n),this.register("parseResult",un),this.register("sourceMap",dn)}}const gs=new fs,ys=e=>{const t=new fs;return hs(e)&&t.use(e),t},ws=gs,bs=()=>({predicates:{...e},namespace:ws}),Es={toolboxCreator:bs,visitorOptions:{nodeTypeGetter:Gn,exposeEdits:!0}},vs=(e,t,r={})=>{if(0===t.length)return e;const n=Xn(Es,r),{toolboxCreator:s,visitorOptions:o}=n,a=s(),i=t.map((e=>e(a))),_=xr(i.map(Qn({},"visitor")),{...o});i.forEach(is(["pre"],[]));const c=zn(e,_,o);return i.forEach(is(["post"],[])),c};vs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(0===t.length)return e;const n=Xn(Es,r),{toolboxCreator:s,visitorOptions:o}=n,a=s(),i=t.map((e=>e(a))),_=xr[Symbol.for("nodejs.util.promisify.custom")],c=zn[Symbol.for("nodejs.util.promisify.custom")],u=_(i.map(Qn({},"visitor")),{...o});await Promise.allSettled(i.map(is(["pre"],[])));const l=await c(e,u,o);return await Promise.allSettled(i.map(is(["post"],[]))),l};const xs=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return wn(e)&&(e.meta.length>0&&(n.meta=Dn(e.meta)),e.attributes.length>0&&(n.attributes=Dn(e.attributes))),vs(n,r,{toolboxCreator:bs,visitorOptions:{nodeTypeGetter:Gn}})},Ts=e=>(t,r={})=>xs(t,{...r,Type:e});en.Sh.refract=Ts(en.Sh),en.wE.refract=Ts(en.wE),en.Om.refract=Ts(en.Om),en.bd.refract=Ts(en.bd),en.Os.refract=Ts(en.Os),en.kT.refract=Ts(en.kT),en.Ft.refract=Ts(en.Ft),en.sI.refract=Ts(en.sI),on.refract=Ts(on),_n.refract=Ts(_n),un.refract=Ts(un),dn.refract=Ts(dn);const As={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Zn},Ss=e=>wn(e)?Gn(e):br(e),Ms=e=>wn(e)||Er(e)||Array.isArray(e);const Os=class{sourceMap=!1;annotations;namespace;processedDocumentCount=0;stream={leave:e=>{const t=new un;t._content=e.children.flat(1);const r=t.findElements(Rn);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((e=>{t.push(e)})),this.annotations=[],t}};constructor(){this.annotations=[],this.namespace=ys()}comment(e){if(0===this.processedDocumentCount){const t=new _n(e.content);return this.maybeAddSourceMap(e,t),t}return null}document(e){const t=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(t){const t=new on("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 r?null:(this.processedDocumentCount+=1,e.children)}mapping(e){const t=new en.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}keyValuePair(e){const t=new en.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 en.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===Jt.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})`,r=new on(t);r.classes.push("warning"),this.maybeAddSourceMap(e,r),this.annotations.push(r)}return null}error(e,t,r,n){const s=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new on(s);if(o.classes.push("error"),this.maybeAddSourceMap(e,o),0===n.length){const e=new un;return e.push(o),e}return this.annotations.push(o),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const r=new dn;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)}};class Is{cursor;constructor(e){this.cursor=e}stream(){return new zr(this.cursor)}yaml_directive(){return new zr(this.cursor)}tag_directive(){return new zr(this.cursor)}reserved_directive(){return new zr(this.cursor)}document(){return new zr(this.cursor)}block_node(){return new zr(this.cursor).setFieldName(this.cursor)}flow_node(){return new zr(this.cursor).setFieldName(this.cursor)}block_mapping(){return new zr(this.cursor)}block_mapping_pair(){return new zr(this.cursor)}flow_mapping(){return new zr(this.cursor)}flow_pair(){return new zr(this.cursor)}block_sequence(){return new zr(this.cursor)}block_sequence_item(){return new zr(this.cursor)}flow_sequence(){return new zr(this.cursor)}plain_scalar(){return new zr(this.cursor)}single_quote_scalar(){return new zr(this.cursor)}double_quote_scalar(){return new zr(this.cursor)}block_scalar(){return new zr(this.cursor)}ERROR(){return new zr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new zr(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Is(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=Array.from(new Is(this.cursor));e.pushChildren(...t)}e.children.reduce(((e,t)=>(t.setPreviousSibling(e),t)),void 0),this.cursor.gotoParent()}yield e}}const Fs=Is,Ns=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=new Fs(r),[s]=Array.from(n),o=new Qr,a=new Os,i=new ir,_=new gr,c=Tr(s,o,{keyMap:Kr,nodePredicate:Yr,state:{schema:i,sourceMap:t,referenceManager:_}});return Tr(c.rootNode,a,{keyMap:As,nodeTypeGetter:Ss,nodePredicate:Ms,state:{sourceMap:t}})},Ps=ys();const Rs=class extends a{};const ks=class extends Rs{};const Cs=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ks("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ks("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ks("latest method in MediaTypes class is not yet implemented.")}};const js=new class extends Cs{latest(){return this[1]}}("text/yaml","application/yaml"),Us=async e=>{try{return!(await u(e)).rootNode.isError}catch{return!1}},Ls=async(e,{sourceMap:t=!1}={})=>{const r=await u(e);return Ns(r,{sourceMap:t})}})(),__webpack_exports__})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-parser-adapter-yaml-1-2",
|
|
3
|
-
"version": "1.0.0-beta.
|
|
3
|
+
"version": "1.0.0-beta.45",
|
|
4
4
|
"description": "Parser adapter for parsing YAML documents into base namespace.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -52,9 +52,9 @@
|
|
|
52
52
|
"license": "Apache-2.0",
|
|
53
53
|
"dependencies": {
|
|
54
54
|
"@babel/runtime-corejs3": "^7.26.10",
|
|
55
|
-
"@swagger-api/apidom-ast": "^1.0.0-beta.
|
|
56
|
-
"@swagger-api/apidom-core": "^1.0.0-beta.
|
|
57
|
-
"@swagger-api/apidom-error": "^1.0.0-beta.
|
|
55
|
+
"@swagger-api/apidom-ast": "^1.0.0-beta.45",
|
|
56
|
+
"@swagger-api/apidom-core": "^1.0.0-beta.45",
|
|
57
|
+
"@swagger-api/apidom-error": "^1.0.0-beta.45",
|
|
58
58
|
"@tree-sitter-grammars/tree-sitter-yaml": "=0.7.1",
|
|
59
59
|
"@types/ramda": "~0.30.0",
|
|
60
60
|
"ramda": "~0.30.0",
|
|
@@ -76,5 +76,5 @@
|
|
|
76
76
|
"README.md",
|
|
77
77
|
"CHANGELOG.md"
|
|
78
78
|
],
|
|
79
|
-
"gitHead": "
|
|
79
|
+
"gitHead": "b2a782845066f2115c373571bc260ca9e2de452a"
|
|
80
80
|
}
|