@swagger-api/apidom-parser-adapter-json 0.79.0 → 0.81.0
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
|
+
# [0.81.0](https://github.com/swagger-api/apidom/compare/v0.80.0...v0.81.0) (2023-10-30)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
|
|
9
|
+
|
|
10
|
+
# [0.80.0](https://github.com/swagger-api/apidom/compare/v0.79.0...v0.80.0) (2023-10-26)
|
|
11
|
+
|
|
12
|
+
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
|
|
13
|
+
|
|
6
14
|
# [0.79.0](https://github.com/swagger-api/apidom/compare/v0.78.0...v0.79.0) (2023-10-24)
|
|
7
15
|
|
|
8
16
|
**Note:** Version bump only for package @swagger-api/apidom-parser-adapter-json
|
|
@@ -14893,7 +14893,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14893
14893
|
/* harmony export */ mergeAll: () => (/* binding */ mergeAll),
|
|
14894
14894
|
/* harmony export */ visit: () => (/* binding */ visit)
|
|
14895
14895
|
/* harmony export */ });
|
|
14896
|
-
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
14896
|
+
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9985);
|
|
14897
14897
|
|
|
14898
14898
|
|
|
14899
14899
|
/**
|
|
@@ -15164,7 +15164,9 @@ visitor, {
|
|
|
15164
15164
|
let result;
|
|
15165
15165
|
if (!Array.isArray(node)) {
|
|
15166
15166
|
if (!nodePredicate(node)) {
|
|
15167
|
-
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${
|
|
15167
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
15168
|
+
node
|
|
15169
|
+
});
|
|
15168
15170
|
}
|
|
15169
15171
|
|
|
15170
15172
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
@@ -15313,7 +15315,9 @@ visitor, {
|
|
|
15313
15315
|
let result;
|
|
15314
15316
|
if (!Array.isArray(node)) {
|
|
15315
15317
|
if (!nodePredicate(node)) {
|
|
15316
|
-
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node:
|
|
15318
|
+
throw new _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"](`Invalid AST Node: ${String(node)}`, {
|
|
15319
|
+
node
|
|
15320
|
+
});
|
|
15317
15321
|
}
|
|
15318
15322
|
|
|
15319
15323
|
// cycle detected; skipping over a sub-tree to avoid recursion
|
|
@@ -15395,7 +15399,14 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15395
15399
|
/* harmony export */ });
|
|
15396
15400
|
/* harmony import */ var _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(9985);
|
|
15397
15401
|
|
|
15398
|
-
class CloneError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
15402
|
+
class CloneError extends _swagger_api_apidom_error__WEBPACK_IMPORTED_MODULE_0__["default"] {
|
|
15403
|
+
constructor(message, structuredOptions) {
|
|
15404
|
+
super(message, structuredOptions);
|
|
15405
|
+
if (typeof structuredOptions !== 'undefined') {
|
|
15406
|
+
this.value = structuredOptions.source;
|
|
15407
|
+
}
|
|
15408
|
+
}
|
|
15409
|
+
}
|
|
15399
15410
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (CloneError);
|
|
15400
15411
|
|
|
15401
15412
|
/***/ }),
|
|
@@ -15440,32 +15451,72 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
15440
15451
|
/* harmony export */ cloneShallow: () => (/* binding */ cloneShallow)
|
|
15441
15452
|
/* harmony export */ });
|
|
15442
15453
|
/* harmony import */ var minim__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7952);
|
|
15443
|
-
/* harmony import */ var
|
|
15444
|
-
/* harmony import */ var
|
|
15454
|
+
/* harmony import */ var _predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6903);
|
|
15455
|
+
/* harmony import */ var _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(4646);
|
|
15445
15456
|
/* harmony import */ var _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(219);
|
|
15446
15457
|
|
|
15447
15458
|
|
|
15448
15459
|
|
|
15449
15460
|
|
|
15450
|
-
const
|
|
15451
|
-
|
|
15452
|
-
|
|
15461
|
+
const cloneDeep = (value, options = {}) => {
|
|
15462
|
+
const {
|
|
15463
|
+
visited = new WeakMap()
|
|
15464
|
+
} = options;
|
|
15465
|
+
const passThroughOptions = {
|
|
15466
|
+
...options,
|
|
15467
|
+
visited
|
|
15468
|
+
};
|
|
15469
|
+
|
|
15470
|
+
// detect cycle and return memoized value
|
|
15471
|
+
if (visited.has(value)) {
|
|
15472
|
+
return visited.get(value);
|
|
15473
|
+
}
|
|
15474
|
+
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.KeyValuePair) {
|
|
15475
|
+
const {
|
|
15476
|
+
key,
|
|
15477
|
+
value: val
|
|
15478
|
+
} = value;
|
|
15479
|
+
const keyCopy = (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(key) ? cloneDeep(key, passThroughOptions) : key;
|
|
15480
|
+
const valueCopy = (0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(val) ? cloneDeep(val, passThroughOptions) : val;
|
|
15481
|
+
const copy = new minim__WEBPACK_IMPORTED_MODULE_0__.KeyValuePair(keyCopy, valueCopy);
|
|
15482
|
+
visited.set(value, copy);
|
|
15483
|
+
return copy;
|
|
15453
15484
|
}
|
|
15454
|
-
return value;
|
|
15455
|
-
};
|
|
15456
|
-
const cloneDeep = value => {
|
|
15457
15485
|
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ObjectSlice) {
|
|
15458
|
-
const
|
|
15459
|
-
|
|
15486
|
+
const mapper = element => cloneDeep(element, passThroughOptions);
|
|
15487
|
+
const items = [...value].map(mapper);
|
|
15488
|
+
const copy = new minim__WEBPACK_IMPORTED_MODULE_0__.ObjectSlice(items);
|
|
15489
|
+
visited.set(value, copy);
|
|
15490
|
+
return copy;
|
|
15460
15491
|
}
|
|
15461
15492
|
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ArraySlice) {
|
|
15462
|
-
const
|
|
15463
|
-
|
|
15493
|
+
const mapper = element => cloneDeep(element, passThroughOptions);
|
|
15494
|
+
const items = [...value].map(mapper);
|
|
15495
|
+
const copy = new minim__WEBPACK_IMPORTED_MODULE_0__.ArraySlice(items);
|
|
15496
|
+
visited.set(value, copy);
|
|
15497
|
+
return copy;
|
|
15464
15498
|
}
|
|
15465
|
-
if (
|
|
15466
|
-
|
|
15499
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
15500
|
+
const copy = cloneShallow(value); // eslint-disable-line @typescript-eslint/no-use-before-define
|
|
15501
|
+
|
|
15502
|
+
visited.set(value, copy);
|
|
15503
|
+
if (value.content) {
|
|
15504
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value.content)) {
|
|
15505
|
+
copy.content = cloneDeep(value.content, passThroughOptions);
|
|
15506
|
+
} else if (value.content instanceof minim__WEBPACK_IMPORTED_MODULE_0__.KeyValuePair) {
|
|
15507
|
+
copy.content = cloneDeep(value.content, passThroughOptions);
|
|
15508
|
+
} else if (Array.isArray(value.content)) {
|
|
15509
|
+
const mapper = element => cloneDeep(element, passThroughOptions);
|
|
15510
|
+
copy.content = value.content.map(mapper);
|
|
15511
|
+
} else {
|
|
15512
|
+
copy.content = value.content;
|
|
15513
|
+
}
|
|
15514
|
+
} else {
|
|
15515
|
+
copy.content = value.content;
|
|
15516
|
+
}
|
|
15517
|
+
return copy;
|
|
15467
15518
|
}
|
|
15468
|
-
throw new
|
|
15519
|
+
throw new _errors_DeepCloneError_mjs__WEBPACK_IMPORTED_MODULE_2__["default"]("Value provided to cloneDeep function couldn't be cloned", {
|
|
15469
15520
|
value
|
|
15470
15521
|
});
|
|
15471
15522
|
};
|
|
@@ -15503,7 +15554,7 @@ const cloneShallowElement = element => {
|
|
|
15503
15554
|
if (element.attributes.length > 0) {
|
|
15504
15555
|
copy._attributes = cloneDeep(element.attributes);
|
|
15505
15556
|
}
|
|
15506
|
-
if ((0,
|
|
15557
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(element.content)) {
|
|
15507
15558
|
const content = element.content;
|
|
15508
15559
|
copy.content = cloneShallowElement(content);
|
|
15509
15560
|
} else if (Array.isArray(element.content)) {
|
|
@@ -15527,7 +15578,7 @@ const cloneShallow = value => {
|
|
|
15527
15578
|
if (value instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ArraySlice) {
|
|
15528
15579
|
return cloneShallowArraySlice(value);
|
|
15529
15580
|
}
|
|
15530
|
-
if ((0,
|
|
15581
|
+
if ((0,_predicates_index_mjs__WEBPACK_IMPORTED_MODULE_1__.isElement)(value)) {
|
|
15531
15582
|
return cloneShallowElement(value);
|
|
15532
15583
|
}
|
|
15533
15584
|
throw new _errors_ShallowCloneError_mjs__WEBPACK_IMPORTED_MODULE_3__["default"]("Value provided to cloneShallow function couldn't be cloned", {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterJson=e():t.apidomParserAdapterJson=e()}(self,(()=>(()=>{var t={42:(t,e,r)=>{"use strict";var n=r(5846);t.exports=n},6791:(t,e,r)=>{"use strict";r(4339),r(4242),r(4016),r(8939),r(5454);var n=r(7545);t.exports=n.AggregateError},6762:(t,e,r)=>{"use strict";t.exports=r(3028)},3028:(t,e,r)=>{"use strict";r(2752);var n=r(42);t.exports=n},6235:(t,e,r)=>{"use strict";var n=r(6447),s=r(9288),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},7757:(t,e,r)=>{"use strict";var n=r(6447),s=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},7423:t=>{"use strict";t.exports=function(){}},1138:(t,e,r)=>{"use strict";var n=r(5744),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},8180:(t,e,r)=>{"use strict";var n=r(101),s=r(7739),i=r(4104),o=function(t){return function(e,r,o){var a,u=n(e),c=i(u),l=s(o,c);if(t&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9272:(t,e,r)=>{"use strict";var n=r(4120),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},4696:(t,e,r)=>{"use strict";var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:u?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},7987:(t,e,r)=>{"use strict";var n=r(4500),s=r(3011),i=r(5141),o=r(2760);t.exports=function(t,e,r){for(var a=s(e),u=o.f,c=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||u(t,f,c(e,f))}}},4635:(t,e,r)=>{"use strict";var n=r(6192);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7271:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},8711:(t,e,r)=>{"use strict";var n=r(69),s=r(2760),i=r(774);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},774:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9362:(t,e,r)=>{"use strict";var n=r(8711);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},5098:(t,e,r)=>{"use strict";var n=r(8576),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},69:(t,e,r)=>{"use strict";var n=r(6192);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:t=>{"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},7449:(t,e,r)=>{"use strict";var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},7365:t=>{"use strict";t.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}},8989:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(t,e,r)=>{"use strict";var n,s,i=r(8576),o=r(8989),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},2952:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(t,e,r)=>{"use strict";var n=r(4120),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},8266:(t,e,r)=>{"use strict";var n=r(8711),s=r(4503),i=r(274),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},274:(t,e,r)=>{"use strict";var n=r(6192),s=r(774);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},3085:(t,e,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),a=r(5141).f,u=r(9245),c=r(7545),l=r(8043),f=r(8711),_=r(4500),p=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,h,m,d,y,g,b,v,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?n:x?n[w]:(n[w]||{}).prototype,j=E?c:c[w]||f(c,w,{})[w],O=j.prototype;for(m in e)s=!(r=u(E?m:w+(x?".":"#")+m,t.forced))&&A&&_(A,m),y=j[m],s&&(g=t.dontCallGetSet?(v=a(A,m))&&v.value:A[m]),d=s&&g?g:e[m],s&&typeof y==typeof d||(b=t.bind&&s?l(d,n):t.wrap&&s?p(d):S&&o(d)?i(d):d,(t.sham||d&&d.sham||y&&y.sham)&&f(b,"sham",!0),f(j,m,b),S&&(_(c,h=w+"Prototype")||f(c,h,{}),f(c[h],m,d),t.real&&O&&(r||!O[m])&&f(O,m,d)))}},6192:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6298:(t,e,r)=>{"use strict";var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(t,e,r)=>{"use strict";var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},2784:(t,e,r)=>{"use strict";var n=r(6192);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8922:(t,e,r)=>{"use strict";var n=r(2784),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(t,e,r)=>{"use strict";var n=r(69),s=r(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6419:(t,e,r)=>{"use strict";var n=r(4120),s=r(6235);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},4914:(t,e,r)=>{"use strict";var n=r(9272),s=r(4120);t.exports=function(t){if("Function"===n(t))return s(t)}},4120:(t,e,r)=>{"use strict";var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},150:(t,e,r)=>{"use strict";var n=r(7545),s=r(8576),i=r(6447),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},8703:(t,e,r)=>{"use strict";var n=r(4696),s=r(5037),i=r(5646),o=r(7771),a=r(8182)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},1669:(t,e,r)=>{"use strict";var n=r(8922),s=r(6235),i=r(1138),o=r(9288),a=r(8703),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw new u(o(t)+" is not iterable")}},5037:(t,e,r)=>{"use strict";var n=r(6235),s=r(5646);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},8576:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(t,e,r)=>{"use strict";var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},4535:t=>{"use strict";t.exports={}},7403:(t,e,r)=>{"use strict";var n=r(150);t.exports=n("document","documentElement")},188:(t,e,r)=>{"use strict";var n=r(69),s=r(6192),i=r(7449);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(t,e,r)=>{"use strict";var n=r(4120),s=r(6192),i=r(9272),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},2643:(t,e,r)=>{"use strict";var n=r(6447),s=r(5744),i=r(4469);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},273:(t,e,r)=>{"use strict";var n=r(5744),s=r(8711);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},3326:(t,e,r)=>{"use strict";var n,s,i,o=r(5278),a=r(8576),u=r(5744),c=r(8711),l=r(4500),f=r(6434),_=r(9766),p=r(4535),h="Object already initialized",m=a.TypeError,d=a.WeakMap;if(o||f.state){var y=f.state||(f.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new m(h);return e.facade=t,y.set(t,e),e},s=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=_("state");p[g]=!0,n=function(t,e){if(l(t,g))throw new m(h);return e.facade=t,c(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}}}},6109:(t,e,r)=>{"use strict";var n=r(8182),s=r(7771),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},6447:(t,e,r)=>{"use strict";var n=r(8382),s=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===s}:function(t){return"function"==typeof t}},9245:(t,e,r)=>{"use strict";var n=r(6192),s=r(6447),i=/#|\.prototype\./,o=function(t,e){var r=u[a(t)];return r===l||r!==c&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},5646:t=>{"use strict";t.exports=function(t){return null==t}},5744:(t,e,r)=>{"use strict";var n=r(6447),s=r(8382),i=s.all;t.exports=s.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},5546:t=>{"use strict";t.exports=!0},3236:(t,e,r)=>{"use strict";var n=r(150),s=r(6447),i=r(8902),o=r(615),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},3442:(t,e,r)=>{"use strict";var n=r(8043),s=r(8922),i=r(1138),o=r(9288),a=r(6109),u=r(4104),c=r(8902),l=r(1669),f=r(8703),_=r(6639),p=TypeError,h=function(t,e){this.stopped=t,this.result=e},m=h.prototype;t.exports=function(t,e,r){var d,y,g,b,v,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(e,x),k=function(t){return d&&_(d,"normal",t),new h(!0,t)},N=function(t){return S?(i(t),O?P(t[0],t[1],k):P(t[0],t[1])):O?P(t,k):P(t)};if(A)d=t.iterator;else if(j)d=t;else{if(!(y=f(t)))throw new p(o(t)+" is not iterable");if(a(y)){for(g=0,b=u(t);b>g;g++)if((v=N(t[g]))&&c(m,v))return v;return new h(!1)}d=l(t,y)}for(w=A?t.next:d.next;!(E=s(w,d)).done;){try{v=N(E.value)}catch(t){_(d,"throw",t)}if("object"==typeof v&&v&&c(m,v))return v}return new h(!1)}},6639:(t,e,r)=>{"use strict";var n=r(8922),s=r(1138),i=r(5037);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},5695:(t,e,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),a=r(7771),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!c,r)}),o(t,l,!1,!0),a[l]=u,t}},5297:(t,e,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),a=r(6447),u=r(5695),c=r(9341),l=r(4469),f=r(1284),_=r(8711),p=r(9362),h=r(8182),m=r(7771),d=r(4413),y=o.PROPER,g=o.CONFIGURABLE,b=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,r,o,h,d,j){u(r,e,o);var O,P,k,N=function(t){if(t===h&&C)return C;if(!v&&t&&t in T)return T[t];switch(t){case E:case x:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",M=!1,T=t.prototype,R=T[w]||T["@@iterator"]||h&&T[h],C=!v&&R||N(h),F="Array"===e&&T.entries||R;if(F&&(O=c(F.call(new t)))!==Object.prototype&&O.next&&(i||c(O)===b||(l?l(O,b):a(O[w])||p(O,w,A)),f(O,I,!0,!0),i&&(m[I]=A)),y&&h===x&&R&&R.name!==x&&(!i&&g?_(T,"name",x):(M=!0,C=function(){return s(R,this)})),h)if(P={values:N(x),keys:d?C:N(E),entries:N(S)},j)for(k in P)(v||M||!(k in T))&&p(T,k,P[k]);else n({target:e,proto:!0,forced:v||M},P);return i&&!j||T[w]===C||p(T,w,C,{name:h}),m[e]=C,P}},4413:(t,e,r)=>{"use strict";var n,s,i,o=r(6192),a=r(6447),u=r(5744),c=r(2853),l=r(9341),f=r(9362),_=r(8182),p=r(5546),h=_("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):m=!0),!u(n)||o((function(){var t={};return n[h].call(t)!==t}))?n={}:p&&(n=c(n)),a(n[h])||f(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},7771:t=>{"use strict";t.exports={}},4104:(t,e,r)=>{"use strict";var n=r(8445);t.exports=function(t){return n(t.length)}},7679:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},6016:(t,e,r)=>{"use strict";var n=r(4845);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},2853:(t,e,r)=>{"use strict";var n,s=r(1138),i=r(1187),o=r(2952),a=r(4535),u=r(7403),c=r(7449),l=r(9766),f="prototype",_="script",p=l("IE_PROTO"),h=function(){},m=function(t){return"<"+_+">"+t+"</"+_+">"},d=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?d(n):(e=c("iframe"),r="java"+_+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):d(n);for(var s=o.length;s--;)delete y[f][o[s]];return y()};a[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h[f]=s(t),r=new h,h[f]=null,r[p]=t):r=y(),void 0===e?r:i.f(r,e)}},1187:(t,e,r)=>{"use strict";var n=r(69),s=r(9600),i=r(2760),o=r(1138),a=r(101),u=r(7653);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=u(e),c=s.length,l=0;c>l;)i.f(t,r=s[l++],n[r]);return t}},2760:(t,e,r)=>{"use strict";var n=r(69),s=r(188),i=r(9600),o=r(1138),a=r(77),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",_="configurable",p="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=l(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:_ in r?r[_]:n[_],enumerable:f in r?r[f]:n[f],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5141:(t,e,r)=>{"use strict";var n=r(69),s=r(8922),i=r(6007),o=r(774),a=r(101),u=r(77),c=r(4500),l=r(188),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!s(i.f,t,e),t[e])}},2092:(t,e,r)=>{"use strict";var n=r(7934),s=r(2952).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},4750:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},9341:(t,e,r)=>{"use strict";var n=r(4500),s=r(6447),i=r(1795),o=r(9766),a=r(4635),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},8902:(t,e,r)=>{"use strict";var n=r(4120);t.exports=n({}.isPrototypeOf)},7934:(t,e,r)=>{"use strict";var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,a=r(4535),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&u(l,r);for(;e.length>c;)s(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},7653:(t,e,r)=>{"use strict";var n=r(7934),s=r(2952);t.exports=Object.keys||function(t){return n(t,s)}},6007:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},4469:(t,e,r)=>{"use strict";var n=r(6419),s=r(1138),i=r(7757);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return s(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},158:(t,e,r)=>{"use strict";var n=r(3471),s=r(4696);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(t,e,r)=>{"use strict";var n=r(8922),s=r(6447),i=r(5744),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},3011:(t,e,r)=>{"use strict";var n=r(150),s=r(4120),i=r(2092),o=r(4750),a=r(1138),u=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?u(e,r(t)):e}},7545:t=>{"use strict";t.exports={}},7656:(t,e,r)=>{"use strict";var n=r(2760).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},3209:(t,e,r)=>{"use strict";var n=r(5646),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},1284:(t,e,r)=>{"use strict";var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),a=r(158),u=r(8182)("toStringTag");t.exports=function(t,e,r,c){if(t){var l=r?t:t.prototype;o(l,u)||s(l,u,{configurable:!0,value:e}),c&&!n&&i(l,"toString",a)}}},9766:(t,e,r)=>{"use strict";var n=r(8717),s=r(2759),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6434:(t,e,r)=>{"use strict";var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});t.exports=o},8717:(t,e,r)=>{"use strict";var n=r(5546),s=r(6434);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(t,e,r)=>{"use strict";var n=r(4120),s=r(1941),i=r(4845),o=r(3209),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,f=i(o(e)),_=s(r),p=f.length;return _<0||_>=p?t?"":void 0:(n=u(f,_))<55296||n>56319||_+1===p||(l=u(f,_+1))<56320||l>57343?t?a(f,_):n:t?c(f,_,_+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6770:(t,e,r)=>{"use strict";var n=r(4218),s=r(6192),i=r(8576).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7739:(t,e,r)=>{"use strict";var n=r(1941),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},101:(t,e,r)=>{"use strict";var n=r(2202),s=r(3209);t.exports=function(t){return n(s(t))}},1941:(t,e,r)=>{"use strict";var n=r(7679);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8445:(t,e,r)=>{"use strict";var n=r(1941),s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},1795:(t,e,r)=>{"use strict";var n=r(3209),s=Object;t.exports=function(t){return s(n(t))}},7888:(t,e,r)=>{"use strict";var n=r(8922),s=r(5744),i=r(3236),o=r(5037),a=r(380),u=r(8182),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!s(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},77:(t,e,r)=>{"use strict";var n=r(7888),s=r(3236);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},3471:(t,e,r)=>{"use strict";var n={};n[r(8182)("toStringTag")]="z",t.exports="[object z]"===String(n)},4845:(t,e,r)=>{"use strict";var n=r(4696),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},9288:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},2759:(t,e,r)=>{"use strict";var n=r(4120),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},615:(t,e,r)=>{"use strict";var n=r(6770);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(t,e,r)=>{"use strict";var n=r(69),s=r(6192);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(t,e,r)=>{"use strict";var n=r(8576),s=r(6447),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8182:(t,e,r)=>{"use strict";var n=r(8576),s=r(8717),i=r(4500),o=r(2759),a=r(6770),u=r(615),c=n.Symbol,l=s("wks"),f=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},426:(t,e,r)=>{"use strict";var n=r(150),s=r(4500),i=r(8711),o=r(8902),a=r(4469),u=r(7987),c=r(7656),l=r(2643),f=r(6016),_=r(273),p=r(8266),h=r(69),m=r(5546);t.exports=function(t,e,r,d){var y="stackTraceLimit",g=d?2:1,b=t.split("."),v=b[b.length-1],w=n.apply(null,b);if(w){var E=w.prototype;if(!m&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=e((function(t,e){var r=f(d?e:t,void 0),n=d?new w(t):new w;return void 0!==r&&i(n,"message",r),p(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&_(n,arguments[g]),n}));if(S.prototype=E,"Error"!==v?a?a(S,x):u(S,x,{name:!0}):h&&y in w&&(c(S,w,y),c(S,w,"prepareStackTrace")),u(S,w),!m)try{E.name!==v&&i(E,"name",v),E.constructor=S}catch(t){}return S}}},4016:(t,e,r)=>{"use strict";var n=r(3085),s=r(150),i=r(6298),o=r(6192),a=r(426),u="AggregateError",c=s(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(u,(function(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},3820:(t,e,r)=>{"use strict";var n=r(3085),s=r(8902),i=r(9341),o=r(4469),a=r(7987),u=r(2853),c=r(8711),l=r(774),f=r(273),_=r(8266),p=r(3442),h=r(6016),m=r(8182)("toStringTag"),d=Error,y=[].push,g=function(t,e){var r,n=s(b,this);o?r=o(new d,n?i(this):b):(r=n?this:u(b),c(r,m,"Error")),void 0!==e&&c(r,"message",h(e)),_(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return p(t,y,{that:a}),c(r,"errors",a),r};o?o(g,d):a(g,d,{name:!0});var b=g.prototype=u(d.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(t,e,r)=>{"use strict";r(3820)},8939:(t,e,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),a=r(2760).f,u=r(5297),c=r(7271),l=r(5546),f=r(69),_="Array Iterator",p=o.set,h=o.getterFor(_);t.exports=u(Array,"Array",(function(t,e){p(this,{type:_,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,c(void 0,!0);switch(r){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(t){}},4339:(t,e,r)=>{"use strict";var n=r(3085),s=r(8576),i=r(6298),o=r(426),a="WebAssembly",u=s[a],c=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=o(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},f=function(t,e){if(u&&u[t]){var r={};r[t]=o(a+"."+t,e,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},5454:(t,e,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),a=r(7271),u="String Iterator",c=i.set,l=i.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},2752:(t,e,r)=>{"use strict";r(4242)},162:(t,e,r)=>{"use strict";r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),a=r(7771),u=r(8182)("toStringTag");for(var c in n){var l=s[c],f=l&&l.prototype;f&&i(f)!==u&&o(f,u,c),a[c]=a.Array}},5846:(t,e,r)=>{"use strict";r(2752);var n=r(6791);r(162),t.exports=n},9515:(t,e,r)=>{var n=r(8761)(r(7772),"DataView");t.exports=n},9612:(t,e,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,t.exports=u},235:(t,e,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),a=r(4769);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,t.exports=u},326:(t,e,r)=>{var n=r(8761)(r(7772),"Map");t.exports=n},6738:(t,e,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,t.exports=u},1985:(t,e,r)=>{var n=r(8761)(r(7772),"Promise");t.exports=n},2143:(t,e,r)=>{var n=r(8761)(r(7772),"Set");t.exports=n},5386:(t,e,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},6571:(t,e,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),u=r(1418);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},857:(t,e,r)=>{var n=r(7772).Symbol;t.exports=n},9162:(t,e,r)=>{var n=r(7772).Uint8Array;t.exports=n},3215:(t,e,r)=>{var n=r(8761)(r(7772),"WeakMap");t.exports=n},7552:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}},1634:(t,e,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),u=r(7598),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),f=!r&&!l&&o(t),_=!r&&!l&&!f&&u(t),p=r||l||f||_,h=p?n(t.length,String):[],m=h.length;for(var d in t)!e&&!c.call(t,d)||p&&("length"==d||f&&("offset"==d||"parent"==d)||_&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,m))||h.push(d);return h}},5067:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}},7064:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},2218:(t,e,r)=>{var n=r(1225);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},1897:(t,e,r)=>{var n=r(5067),s=r(6152);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},3366:(t,e,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},5183:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},8746:(t,e,r)=>{var n=r(1952),s=r(5125);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},1952:(t,e,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),u=r(6152),c=r(3226),l=r(7598),f="[object Arguments]",_="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,m,d,y){var g=u(t),b=u(e),v=g?_:a(t),w=b?_:a(e),E=(v=v==f?p:v)==p,x=(w=w==f?p:w)==p,S=v==w;if(S&&c(t)){if(!c(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(t)?s(t,e,r,m,d,y):i(t,e,v,r,m,d,y);if(!(1&r)){var A=E&&h.call(t,"__wrapped__"),j=x&&h.call(e,"__wrapped__");if(A||j){var O=A?t.value():t,P=j?e.value():e;return y||(y=new n),d(O,P,r,m,y)}}return!!S&&(y||(y=new n),o(t,e,r,m,d,y))}},6840:(t,e,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,_=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?_:a).test(o(t))}},5522:(t,e,r)=>{var n=r(3366),s=r(1158),i=r(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},6411:(t,e,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6473:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7826:t=>{t.exports=function(t){return function(e){return t(e)}}},9950:t=>{t.exports=function(t,e){return t.has(e)}},4019:(t,e,r)=>{var n=r(7772)["__core-js_shared__"];t.exports=n},4871:(t,e,r)=>{var n=r(5386),s=r(7064),i=r(9950);t.exports=function(t,e,r,o,a,u){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var _=u.get(t),p=u.get(e);if(_&&p)return _==e&&p==t;var h=-1,m=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++h<l;){var y=t[h],g=e[h];if(o)var b=c?o(g,y,h,e,t,u):o(y,g,h,t,e,u);if(void 0!==b){if(b)continue;m=!1;break}if(d){if(!s(e,(function(t,e){if(!i(d,e)&&(y===t||a(y,t,r,o,u)))return d.push(e)}))){m=!1;break}}else if(y!==g&&!a(y,g,r,o,u)){m=!1;break}}return u.delete(t),u.delete(e),m}},1491:(t,e,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),a=r(5179),u=r(4207),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,f,_){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var h=1&n;if(p||(p=u),t.size!=e.size&&!h)return!1;var m=_.get(t);if(m)return m==e;n|=2,_.set(t,e);var d=o(p(t),p(e),n,c,f,_);return _.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},7416:(t,e,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,o,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var _=c[f];if(!(u?_ in e:s.call(e,_)))return!1}var p=a.get(t),h=a.get(e);if(p&&h)return p==e&&h==t;var m=!0;a.set(t,e),a.set(e,t);for(var d=u;++f<l;){var y=t[_=c[f]],g=e[_];if(i)var b=u?i(g,y,_,e,t,a):i(y,g,_,t,e,a);if(!(void 0===b?y===g||o(y,g,r,i,a):b)){m=!1;break}d||(d="constructor"==_)}if(m&&!d){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(t),a.delete(e),m}},1242:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},3483:(t,e,r)=>{var n=r(1897),s=r(633),i=r(249);t.exports=function(t){return n(t,i,s)}},7937:(t,e,r)=>{var n=r(8304);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},8761:(t,e,r)=>{var n=r(6840),s=r(8109);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},2107:(t,e,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},633:(t,e,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},940:(t,e,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),a=r(3215),u=r(3366),c=r(7035),l="[object Map]",f="[object Promise]",_="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(n),d=c(s),y=c(i),g=c(o),b=c(a),v=u;(n&&v(new n(new ArrayBuffer(1)))!=h||s&&v(new s)!=l||i&&v(i.resolve())!=f||o&&v(new o)!=_||a&&v(new a)!=p)&&(v=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return h;case d:return l;case y:return f;case g:return _;case b:return p}return e}),t.exports=v},8109:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2118:(t,e,r)=>{var n=r(9191);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8138:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},4174:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},7942:(t,e,r)=>{var n=r(9191);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9045:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8304:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7394:(t,e,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},6001:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3945:t=>{t.exports=function(){this.__data__=[],this.size=0}},1846:(t,e,r)=>{var n=r(2218),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},8028:(t,e,r)=>{var n=r(2218);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},2344:(t,e,r)=>{var n=r(2218);t.exports=function(t){return n(this.__data__,t)>-1}},4769:(t,e,r)=>{var n=r(2218);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},2411:(t,e,r)=>{var n=r(9612),s=r(235),i=r(326);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(t,e,r)=>{var n=r(7937);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6928:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).get(t)}},9493:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).has(t)}},4150:(t,e,r)=>{var n=r(7937);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},5179:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},9191:(t,e,r)=>{var n=r(8761)(Object,"create");t.exports=n},4248:(t,e,r)=>{var n=r(241)(Object.keys,Object);t.exports=n},4146:(t,e,r)=>{t=r.nmd(t);var n=r(1242),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},7157:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},241:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},7772:(t,e,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},2842:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2482:t=>{t.exports=function(t){return this.__data__.has(t)}},4207:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},5243:(t,e,r)=>{var n=r(235);t.exports=function(){this.__data__=new n,this.size=0}},2858:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4417:t=>{t.exports=function(t){return this.__data__.get(t)}},8605:t=>{t.exports=function(t){return this.__data__.has(t)}},1418:(t,e,r)=>{var n=r(235),s=r(326),i=r(6738);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},7035:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1225:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9631:(t,e,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},6152:t=>{var e=Array.isArray;t.exports=e},7878:(t,e,r)=>{var n=r(1049),s=r(1158);t.exports=function(t){return null!=t&&s(t.length)&&!n(t)}},4335:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==n(t)}},3226:(t,e,r)=>{t=r.nmd(t);var n=r(7772),s=r(6330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||s;t.exports=u},8149:(t,e,r)=>{var n=r(8746);t.exports=function(t,e){return n(t,e)}},1049:(t,e,r)=>{var n=r(3366),s=r(9259);t.exports=function(t){if(!s(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1158:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5877:t=>{t.exports=function(t){return null===t}},537:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==n(t)}},9259:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5125:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},5505:(t,e,r)=>{var n=r(3366),s=r(6152),i=r(5125);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},7598:(t,e,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?s(o):n;t.exports=a},249:(t,e,r)=>{var n=r(1634),s=r(6411),i=r(7878);t.exports=function(t){return i(t)?n(t):s(t)}},1570:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},981:t=>{t.exports=function(){return[]}},6330:t=>{t.exports=function(){return!1}},1178:(t,e,r)=>{const n=r(1570);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),t.exports=i},3026:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5140:(t,e,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),a=r(9259),u=r(2947),c=r(3756);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.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(i,c.NumberElement,!1).detect(o,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(a,c.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new u(this)}}u.prototype.Namespace=l,t.exports=l},3853:(t,e,r)=>{const n=r(1570),s=r(1178);class i extends s{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},3756:(t,e,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),a=r(3312),u=r(1641),c=r(8858),l=r(3860),f=r(5202),_=r(2320),p=r(1178),h=r(3853),m=r(3026);function d(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new u(t.map(d));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=_,n.prototype.MemberElement=c,n.prototype.refract=d,p.prototype.refract=d,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:u,MemberElement:c,ObjectElement:l,LinkElement:f,RefElement:_,refract:d,ArraySlice:p,ObjectSlice:h,KeyValuePair:m}},5202:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},2320:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},7952:(t,e,r)=>{const n=r(5140),s=r(3756);e.lS=n,e.KeyValuePair=r(3026),e.O4=s.ArraySlice,e.rm=s.ObjectSlice,e.W_=s.Element,e.RP=s.StringElement,e.VL=s.NumberElement,e.hh=s.BooleanElement,e.zr=s.NullElement,e.ON=s.ArrayElement,e.Sb=s.ObjectElement,e.c6=s.MemberElement,e.tK=s.RefElement,e.EA=s.LinkElement,s.refract,r(2947),r(8910)},1641:(t,e,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=o},3312:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(t,e,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},8858:(t,e,r)=>{const n=r(3026),s=r(6420);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},4152:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},3860:(t,e,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},9542:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(t,e,r)=>{const n=r(2947);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),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(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},2947:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},6591:t=>{!function(){"use strict";var e,r,n,s,i,o="properties",a="deepProperties",u="propertyDescriptors",c="staticProperties",l="staticDeepProperties",f="staticPropertyDescriptors",_="configuration",p="deepConfiguration",h="deepProps",m="deepStatics",d="deepConf",y="initializers",g="methods",b="composers",v="compose";function w(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function E(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var x=E.bind(0,(function(t,e){if(e)for(var r=w(e),n=0;n<r.length;n+=1)Object.defineProperty(t,r[n],Object.getOwnPropertyDescriptor(e,r[n]));return t}));function S(t){return"function"==typeof t}function A(t){return t&&"object"==typeof t||S(t)}function j(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var O=E.bind(0,(function t(r,n){if(n===e)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!j(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==e&&(r[s]=t(j(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function P(){return(r=Array.prototype.concat.apply([],arguments).filter((function(t,e,r){return S(t)&&r.indexOf(t)===e}))).length?r:e}function k(t,e){function n(r,n){A(e[r])&&(A(t[r])||(t[r]={}),(n||x)(t[r],e[r]))}function s(n){(r=P(t[n],e[n]))&&(t[n]=r)}return e&&A(e=e[v]||e)&&(n(g),n(o),n(a,O),n(u),n(c),n(l,O),n(f),n(_),n(p,O),s(y),s(b)),t}function N(){return function(t){return r=function t(r){var n,s,i=t[v]||{},c={__proto__:i[g]},l=i[y],f=Array.prototype.slice.apply(arguments),_=i[a];if(_&&O(c,_),(_=i[o])&&x(c,_),(_=i[u])&&Object.defineProperties(c,_),!l||!l.length)return c;for(r===e&&(r={}),i=0;i<l.length;)S(n=l[i++])&&(c=(s=n.call(c,r,{instance:c,stamp:t,args:f}))===e?c:s);return c},(n=t[l])&&O(r,n),(n=t[c])&&x(r,n),(n=t[f])&&Object.defineProperties(r,n),n=S(r[v])?r[v]:N,x(r[v]=function(){return n.apply(this,arguments)},t),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function I(t){return S(t)&&S(t[v])}var M={};function T(t,i){return function(){return(s={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}M[g]=T(g,x),M[o]=M.props=T(o,x),M[y]=M.init=T(y,P),M[b]=T(b,P),M[a]=M[h]=T(a,O),M[c]=M.statics=T(c,x),M[l]=M[m]=T(l,O),M[_]=M.conf=T(_,x),M[p]=M[d]=T(p,O),M[u]=T(u,x),M[f]=T(f,x),n=M[v]=x((function(){for(var t,w,E=0,S=[],j=arguments,k=this;E<j.length;)A(t=j[E++])&&S.push(I(t)?t:((s={})[g]=(w=t)[g]||e,n=w.props,s[o]=A((r=w[o])||n)?x({},n,r):e,s[y]=P(w.init,w[y]),s[b]=P(w[b]),n=w[h],s[a]=A((r=w[a])||n)?O({},n,r):e,s[u]=w[u],n=w.statics,s[c]=A((r=w[c])||n)?x({},n,r):e,n=w[m],s[l]=A((r=w[l])||n)?O({},n,r):e,r=w[f],s[f]=A((n=w.name&&{name:{value:w.name}})||r)?x({},r,n):e,n=w.conf,s[_]=A((r=w[_])||n)?x({},n,r):e,n=w[d],s[p]=A((r=w[p])||n)?O({},n,r):e,s));if(t=N.apply(k||i,S),k&&S.unshift(k),Array.isArray(j=t[v][b]))for(E=0;E<j.length;)t=I(k=j[E++]({stamp:t,composables:S}))?k:t;return t}),M),M.create=function(){return this.apply(e,arguments)},(s={})[c]=M,i=N(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof e?t.exports=n:self.stampit=n}()},9794:(t,e,r)=>{var n=void 0!==n?n:{},s=function(){var e,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return e||(n=Object.assign({},n,o),e=new Promise((e=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var u,c,l,f,_=[],p="./this.program",h=function(t,e){throw e};l="object"==typeof window,f="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,c=!l&&!u&&!f;var m,d,y,g,b,v="";u?(v=f?r(6287).dirname(v)+"/":"//",m=function(t,e){return g||(g=r(5530)),b||(b=r(6287)),t=b.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=m(t,!0);return e.buffer||(e=new Uint8Array(e)),T(e.buffer),e},process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),_=process.argv.slice(2),t.exports=n,h=function(t){process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(m=function(t){return read(t)}),y=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(T("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?_=scriptArgs:void 0!==arguments&&(_=arguments),"function"==typeof quit&&(h=function(t){quit(t)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||f)&&(f?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",m=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},f&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(_=n.arguments),n.thisProgram&&(p=n.thisProgram),n.quit&&(h=n.quit);var E,x=16,S=[];function A(t,e){if(!E){E=new WeakMap;for(var r=0;r<J.length;r++){var n=J.get(r);n&&E.set(n,r)}}if(E.has(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{J.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return J.length-1}();try{J.set(s,t)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},s=1;s<e.length;++s)n.parameters.push(r[e[s]]);return new WebAssembly.Function(n,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.slice(1),u={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(u[a[s]]);"v"==o?i.push(0):i=i.concat([1,u[o]]),i[1]=i.length-2;var c=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(c);return new WebAssembly.Instance(l,{e:{f:t}}).exports.f}(t,e);J.set(s,i)}return E.set(t,s),s}var j,O=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var P,k=n.noExitRuntime||!0;function N(t,e,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[t>>0]=e;break;case"i16":L[t>>1]=e;break;case"i32":q[t>>2]=e;break;case"i64":lt=[e>>>0,(ct=e,+Math.abs(ct)>=1?ct>0?(0|Math.min(+Math.floor(ct/4294967296),4294967295))>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],q[t>>2]=lt[0],q[t+4>>2]=lt[1];break;case"float":z[t>>2]=e;break;case"double":D[t>>3]=e;break;default:at("invalid type for setValue: "+r)}}function I(t,e,r){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return C[t>>0];case"i16":return L[t>>1];case"i32":case"i64":return q[t>>2];case"float":return z[t>>2];case"double":return D[t>>3];default:at("invalid type for getValue: "+e)}return null}"object"!=typeof WebAssembly&&at("no native wasm support detected");var M=!1;function T(t,e){t||at("Assertion failed: "+e)}var R,C,F,L,q,z,D,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function U(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.subarray&&V)return V.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var u=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|u:(7&o)<<18|a<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function B(t,e){return t?U(F,t,e):""}function $(t,e,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function W(t,e,r){return $(t,F,e,r)}function G(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function Z(t){var e=G(t)+1,r=Bt(e);return $(t,C,r,e),r}function K(t){R=t,n.HEAP8=C=new Int8Array(t),n.HEAP16=L=new Int16Array(t),n.HEAP32=q=new Int32Array(t),n.HEAPU8=F=new Uint8Array(t),n.HEAPU16=new Uint16Array(t),n.HEAPU32=new Uint32Array(t),n.HEAPF32=z=new Float32Array(t),n.HEAPF64=D=new Float64Array(t)}var H=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=P.buffer),H=R.byteLength,K(R);var J=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Y=[],Q=[],tt=[],et=!1,rt=0,nt=null,st=null;function it(t){rt++,n.monitorRunDependencies&&n.monitorRunDependencies(rt)}function ot(t){if(rt--,n.monitorRunDependencies&&n.monitorRunDependencies(rt),0==rt&&(null!==nt&&(clearInterval(nt),nt=null),st)){var e=st;st=null,e()}}function at(t){throw n.onAbort&&n.onAbort(t),w(t+=""),M=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ut,ct,lt;function ft(t){return t.startsWith("data:application/octet-stream;base64,")}function _t(t){return t.startsWith("file://")}function pt(t){try{if(t==ut&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}ft(ut="tree-sitter.wasm")||(ut=function(t){return n.locateFile?n.locateFile(t,v):v+t}(ut));var ht={},mt={get:function(t,e){return ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),ht[e]}};function dt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?J.get(r)():J.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}function yt(t){var e=0;function r(){for(var r=0,n=1;;){var s=t[e++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(t instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(t,"dylink");T(0!=n.length,"need dylink section"),t=new Int8Array(n[0])}else T(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===t[8],"need the dylink section to be first"),e=9,r(),T(6===t[e]),T(t[++e]==="d".charCodeAt(0)),T(t[++e]==="y".charCodeAt(0)),T(t[++e]==="l".charCodeAt(0)),T(t[++e]==="i".charCodeAt(0)),T(t[++e]==="n".charCodeAt(0)),T(t[++e]==="k".charCodeAt(0)),e++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),u=t.subarray(e,e+a);e+=a;var c=U(u,0);s.neededDynlibs.push(c)}return s}var gt=0;function bt(){return k||gt>0}function vt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var r in t)if(t.hasOwnProperty(r)){qt.hasOwnProperty(r)||(qt[r]=t[r]);var s=vt(r);n.hasOwnProperty(s)||(n[s]=t[r])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var r={};for(var n in t){var s=t[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),r[n]=s}return function(t){for(var e in t)if(!St(e)){var r=!1,n=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],r=!0),ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==ht[e].value)&&("function"==typeof n?ht[e].value=A(n):"number"==typeof n?ht[e].value=n:w("unhandled export type for `"+e+"`: "+typeof n))}}(r),r}function jt(t,e){var r,s;return e&&(r=qt["orig$"+t]),r||(r=qt[t]),r||(r=n[vt(t)]),!r&&t.startsWith("invoke_")&&(s=t.split("_")[1],r=function(){var t=Vt();try{return function(t,e,r){return t.includes("j")?function(t,e,r){var s=n["dynCall_"+t];return r&&r.length?s.apply(null,[e].concat(r)):s.call(null,e)}(t,e,r):J.get(e).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Ut(t),e!==e+0&&"longjmp"!==e)throw e;$t(1,0)}}),r}function Ot(t,e){var r=yt(t);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(t){if(et)return zt(t);var e=xt,r=e+t+15&-16;return xt=r,ht.__heap_base.value=r,e}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),u=J.length;J.grow(r.tableSize);for(var c=a;c<a+r.memorySize;c++)C[c]=0;for(c=u;c<u+r.tableSize;c++)J.set(c,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return u}return e in qt?qt[e]:(e in t||(t[e]=function(){return r||(r=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),r.apply(null,arguments)}),t[e]);var r}}),f={"GOT.mem":new Proxy({},mt),"GOT.func":new Proxy({},mt),env:l,wasi_snapshot_preview1:l};function _(t){for(var n=0;n<r.tableSize;n++){var s=J.get(u+n);s&&E.set(s,u+n)}o=At(t.exports,a),e.allowUndefined||kt();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():Y.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var p=new WebAssembly.Instance(t,f);return Promise.resolve(_(p))}return WebAssembly.instantiate(t,f).then((function(t){return _(t.instance)}))}var h=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return _(p=new WebAssembly.Instance(h,f))}return e.loadAsync?r.neededDynlibs.reduce((function(t,r){return t.then((function(){return Pt(r,e)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(t){Pt(t,e)})),n())}function Pt(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var r,s=Et.loadedLibNames[t];if(s)return r=Et.loadedLibs[s],e.global&&!r.global&&(r.global=!0,"loading"!==r.module&&wt(r.module)),e.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var r=e.fs.readFile(t,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),e.loadAsync?Promise.resolve(r):r}return e.loadAsync?(n=t,fetch(n,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+n+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[t]){var r=n.preloadedWasm[t];return e.loadAsync?Promise.resolve(r):r}return e.loadAsync?i(t).then((function(t){return Ot(t,e)})):Ot(i(t),e)}function a(t){r.global&&wt(t),r.module=t}return s=Et.nextHandle++,r={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=r,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function kt(){for(var t in ht)if(0==ht[t].value){var e=jt(t,!0);"function"==typeof e?ht[t].value=A(e,e.sig):"number"==typeof e?ht[t].value=e:T(!1,"bad export type for `"+t+"`: "+typeof e)}}n.___heap_base=xt;var Nt,It=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Mt(){at()}n._abort=Mt,Mt.sig="v",Nt=u?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Tt(t,e){var r;if(0===t)r=Date.now();else{if(1!==t&&4!==t)return 28,q[Dt()>>2]=28,-1;r=Nt()}return q[e>>2]=r/1e3|0,q[e+4>>2]=r%1e3*1e3*1e3|0,0}function Rt(t){try{return P.grow(t-R.byteLength+65535>>>16),K(P.buffer),1}catch(t){}}function Ct(t){Kt(t)}function Ft(t){}Tt.sig="iii",Ct.sig="vi",Ft.sig="vi";var Lt,qt={__heap_base:xt,__indirect_function_table:J,__memory_base:1024,__stack_pointer:It,__table_base:1,abort:Mt,clock_gettime:Tt,emscripten_memcpy_big:function(t,e,r){F.copyWithin(t,e,e+r)},emscripten_resize_heap:function(t){var e,r=F.length;if((t>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),Rt(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Ct,memory:P,setTempRet0:Ft,tree_sitter_log_callback:function(t,e){if(ce){const r=B(e);ce(r,0!==t)}},tree_sitter_parse_callback:function(t,e,r,n,s){var i=ue(e,{row:r,column:n});"string"==typeof i?(N(s,i.length,"i32"),function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*t.length?r/2:t.length,s=0;s<n;++s){var i=t.charCodeAt(s);L[e>>1]=i,e+=2}L[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},zt=(function(){var t={env:qt,wasi_snapshot_preview1:qt,"GOT.mem":new Proxy(qt,mt),"GOT.func":new Proxy(qt,mt)};function e(t,e){var r=t.exports;r=At(r,1024),n.asm=r;var s,i=yt(e);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),wt(r),s=n.asm.__wasm_call_ctors,Y.unshift(s),ot()}function r(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||f)){if("function"==typeof fetch&&!_t(ut))return fetch(ut,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ut+"'";return t.arrayBuffer()})).catch((function(){return pt(ut)}));if(d)return new Promise((function(t,e){d(ut,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return pt(ut)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),at(t)}))}if(it(),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||ft(ut)||_t(ut)||"function"!=typeof fetch?s(r):fetch(ut,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return(zt=n._malloc=n.asm.malloc).apply(null,arguments)}),Dt=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Dt=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Vt=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(Vt=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ut=n.stackRestore=function(){return(Ut=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Bt=n.stackAlloc=function(){return(Bt=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},$t=n._setThrew=function(){return($t=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Wt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(t,e){var r;return r=1==e?Bt(t.length):zt(t.length),t.subarray||t.slice?F.set(t,r):F.set(new Uint8Array(t),r),r},st=function t(){Lt||Zt(),Lt||(st=t)};var Gt=!1;function Zt(t){function e(){Lt||(Lt=!0,n.calledRun=!0,M||(et=!0,dt(Y),dt(Q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ht&&function(t){var e=n._main;if(e){var r=(t=t||[]).length+1,s=Bt(4*(r+1));q[s>>2]=Z(p);for(var i=1;i<r;i++)q[(s>>2)+i]=Z(t[i-1]);q[(s>>2)+r]=0;try{Kt(e(r,s),!0)}catch(t){if(t instanceof Wt)return;if("unwind"==t)return;var o=t;t&&"object"==typeof t&&t.stack&&(o=[t,t.stack]),w("exception thrown: "+o),h(1,t)}}}(t),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),tt.unshift(t);var t;dt(tt)}()))}t=t||_,rt>0||!Gt&&(function(){if(O.length){if(!y)return it(),void O.reduce((function(t,e){return t.then((function(){return Pt(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ot(),kt()}));O.forEach((function(t){Pt(t,{global:!0,nodelete:!0,allowUndefined:!0})})),kt()}else kt()}(),Gt=!0,rt>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),X.unshift(t);var t;dt(X)}(),rt>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}function Kt(t,e){e&&bt()&&0===t||(bt()||(n.onExit&&n.onExit(t),M=!0),h(t,new Wt(t)))}if(n.run=Zt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ht=!0;n.noInitialRun&&(Ht=!1),Zt();const Jt=n,Xt={},Yt=4,Qt=5*Yt,te=2*Yt,ee=2*Yt+2*te,re={row:0,column:0},ne=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ue,ce;class le{static init(){ae=Jt._ts_init(),ie=I(ae,"i32"),oe=I(ae+Yt,"i32")}initialize(){Jt._ts_parser_new_wasm(),this[0]=I(ae,"i32"),this[1]=I(ae+Yt,"i32")}delete(){Jt._ts_parser_delete(this[0]),Jt._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let e;if(t){if(t.constructor!==he)throw new Error("Argument must be a Language");{e=t[0];const r=Jt._ts_language_version(e);if(r<oe||ie<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Jt._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,r){if("string"==typeof t)ue=(e,r,n)=>t.slice(e,n);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ue=t}this.logCallback?(ce=this.logCallback,Jt._ts_parser_enable_logger_wasm(this[0],1)):(ce=null,Jt._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let t=s=Jt._calloc(n,ee);for(let e=0;e<n;e++)je(t,r.includedRanges[e]),t+=ee}const i=Jt._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,n);if(!i)throw ue=null,ce=null,new Error("Parsing failed");const o=new fe(Xt,i,this.language,ue);return ue=null,ce=null,o}reset(){Jt._ts_parser_reset(this[0])}setTimeoutMicros(t){Jt._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Jt._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class fe{constructor(t,e,r,n){ge(t),this[0]=e,this.language=r,this.textCallback=n}copy(){const t=Jt._ts_tree_copy(this[0]);return new fe(Xt,t,this.language,this.textCallback)}delete(){Jt._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Yt,t.oldEndIndex,"i32"),N(e+=Yt,t.newEndIndex,"i32"),e+=Yt}(t),Jt._ts_tree_edit_wasm(this[0])}get rootNode(){return Jt._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==fe)throw new TypeError("Argument must be a Tree");Jt._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=I(ae,"i32"),r=I(ae+Yt,"i32"),n=new Array(e);if(e>0){let t=r;for(let r=0;r<e;r++)n[r]=Oe(t),t+=ee;Jt._free(r)}return n}}class _e{constructor(t,e){ge(t),this.tree=e}get typeId(){return ve(this),Jt._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return ve(this),Jt._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return ve(this),Jt._ts_node_end_index_wasm(this.tree[0])}get text(){return de(this.tree,this.startIndex,this.endIndex)}isNamed(){return ve(this),1===Jt._ts_node_is_named_wasm(this.tree[0])}hasError(){return ve(this),1===Jt._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return ve(this),1===Jt._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return ve(this),1===Jt._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return ve(this),Jt._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return ve(this),Jt._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return ve(this),Jt._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return ve(this),Jt._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return ve(this),Jt._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){ve(this),Jt._ts_node_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Yt,"i32");if(this._children=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,r),r+=Qt;Jt._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){ve(this),Jt._ts_node_named_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Yt,"i32");if(this._namedChildren=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,r),r+=Qt;Jt._free(e)}}return this._namedChildren}descendantsOfType(t,e,r){Array.isArray(t)||(t=[t]),e||(e=re),r||(r=re);const n=[],s=this.tree.language.types;for(let e=0,r=s.length;e<r;e++)t.includes(s[e])&&n.push(e);const i=Jt._malloc(Yt*n.length);for(let t=0,e=n.length;t<e;t++)N(i+t*Yt,n[t],"i32");ve(this),Jt._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,e.row,e.column,r.row,r.column);const o=I(ae,"i32"),a=I(ae+Yt,"i32"),u=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)u[e]=we(this.tree,t),t+=Qt}return Jt._free(a),Jt._free(i),u}get nextSibling(){return ve(this),Jt._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return ve(this),Jt._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return ve(this),Jt._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return ve(this),Jt._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return ve(this),Jt._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");ve(this);let r=ae+Qt;return N(r,t,"i32"),N(r+Yt,e,"i32"),Jt._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");ve(this);let r=ae+Qt;return N(r,t,"i32"),N(r+Yt,e,"i32"),Jt._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!be(t)||!be(e))throw new Error("Arguments must be {row, column} objects");ve(this);let r=ae+Qt;return Se(r,t),Se(r+te,e),Jt._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!be(t)||!be(e))throw new Error("Arguments must be {row, column} objects");ve(this);let r=ae+Qt;return Se(r,t),Se(r+te,e),Jt._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return ve(this),Jt._ts_tree_cursor_new_wasm(this.tree[0]),new pe(Xt,this.tree)}toString(){ve(this);const t=Jt._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var r=F[t++>>0];if(!r)return e;e+=String.fromCharCode(r)}}(t);return Jt._free(t),e}}class pe{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Jt._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){ve(t),Ee(this,ae+Qt),Jt._ts_tree_cursor_reset_wasm(this.tree[0]),xe(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ee(this),Jt._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Jt._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Jt._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Jt._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Jt._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Jt._ts_tree_cursor_end_index_wasm(this.tree[0]);return de(this.tree,t,e)}get startPosition(){return Ee(this),Jt._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Jt._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Jt._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Jt._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Jt._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Jt._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Jt._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Jt._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Jt._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xe(this),1===t}}class he{constructor(t,e){ge(t),this[0]=e,this.types=new Array(Jt._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Jt._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=B(Jt._ts_language_symbol_name(this[0],t)));this.fields=new Array(Jt._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Jt._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?B(e):null}}get version(){return Jt._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const r=G(t),n=Jt._malloc(r+1);W(t,n,r+1);const s=Jt._ts_language_symbol_for_name(this[0],n,r,e);return Jt._free(n),s||null}get nodeTypeCount(){return Jt._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Jt._ts_language_symbol_name(this[0],t);return e?B(e):null}nodeTypeIsNamed(t){return!!Jt._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Jt._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=G(t),r=Jt._malloc(e+1);W(t,r,e+1);const n=Jt._ts_query_new(this[0],r,e,ae,ae+Yt);if(!n){const e=I(ae+Yt,"i32"),n=B(r,I(ae,"i32")).length,s=t.substr(n,100).split("\n")[0];let i,o=s.match(ne)[0];switch(e){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Jt._free(r),i}const s=Jt._ts_query_string_count(n),i=Jt._ts_query_capture_count(n),o=Jt._ts_query_pattern_count(n),a=new Array(i),u=new Array(s);for(let t=0;t<i;t++){const e=Jt._ts_query_capture_name_for_id(n,t,ae),r=I(ae,"i32");a[t]=B(e,r)}for(let t=0;t<s;t++){const e=Jt._ts_query_string_value_for_id(n,t,ae),r=I(ae,"i32");u[t]=B(e,r)}const c=new Array(o),l=new Array(o),f=new Array(o),_=new Array(o),p=new Array(o);for(let t=0;t<o;t++){const e=Jt._ts_query_predicates_for_pattern(n,t,ae),r=I(ae,"i32");_[t]=[],p[t]=[];const s=[];let i=e;for(let e=0;e<r;e++){const e=I(i,"i32"),r=I(i+=Yt,"i32");if(i+=Yt,1===e)s.push({type:"capture",name:a[r]});else if(2===e)s.push({type:"string",value:u[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const e=s[0].value;let r=!0;switch(e){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const e=s[1].name,n=s[2].name;p[t].push((function(t){let s,i;for(const r of t)r.name===e&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const e=s[1].name,n=s[2].value;p[t].push((function(t){for(const s of t)if(s.name===e)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);p[t].push((function(t){for(const e of t)if(e.name===n)return i.test(e.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');c[t]||(c[t]={}),c[t][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 \`#${e}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error(`Arguments to \`#${e}\` predicate must be a strings.".`);const o="is?"===e?l:f;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:_[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(c[t]),Object.freeze(l[t]),Object.freeze(f[t])}return Jt._free(r),new me(Xt,n,a,p,_,Object.freeze(c),Object.freeze(l),Object.freeze(f))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const n=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=r(5530);e=Promise.resolve(t.readFileSync(n))}else e=fetch(n).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const r=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Ot;return e.then((t=>n(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),r=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const n=t[r]();return new he(Xt,n)}))}}class me{constructor(t,e,r,n,s,i,o,a){ge(t),this[0]=e,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Jt._ts_query_delete(this[0]),this[0]=0}matches(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");ve(t),Jt._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Yt,"i32"),a=I(ae+2*Yt,"i32"),u=new Array(i);this.exceededMatchLimit=!!a;let c=0,l=o;for(let e=0;e<i;e++){const r=I(l,"i32"),n=I(l+=Yt,"i32");l+=Yt;const s=new Array(n);if(l=ye(this,t.tree,l,s),this.textPredicates[r].every((t=>t(s)))){u[c++]={pattern:r,captures:s};const t=this.setProperties[r];t&&(u[e].setProperties=t);const n=this.assertedProperties[r];n&&(u[e].assertedProperties=n);const i=this.refutedProperties[r];i&&(u[e].refutedProperties=i)}}return u.length=c,Jt._free(o),u}captures(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");ve(t),Jt._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Yt,"i32"),a=I(ae+2*Yt,"i32"),u=[];this.exceededMatchLimit=!!a;const c=[];let l=o;for(let e=0;e<i;e++){const e=I(l,"i32"),r=I(l+=Yt,"i32"),n=I(l+=Yt,"i32");if(l+=Yt,c.length=r,l=ye(this,t.tree,l,c),this.textPredicates[e].every((t=>t(c)))){const t=c[n],r=this.setProperties[e];r&&(t.setProperties=r);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),u.push(t)}}return Jt._free(o),u}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function de(t,e,r){const n=r-e;let s=t.textCallback(e,null,r);for(e+=s.length;e<r;){const n=t.textCallback(e,null,r);if(!(n&&n.length>0))break;e+=n.length,s+=n}return e>r&&(s=s.slice(0,n)),s}function ye(t,e,r,n){for(let s=0,i=n.length;s<i;s++){const i=I(r,"i32"),o=we(e,r+=Yt);r+=Qt,n[s]={name:t.captureNames[i],node:o}}return r}function ge(t){if(t!==Xt)throw new Error("Illegal constructor")}function be(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function ve(t){let e=ae;N(e,t.id,"i32"),N(e+=Yt,t.startIndex,"i32"),N(e+=Yt,t.startPosition.row,"i32"),N(e+=Yt,t.startPosition.column,"i32"),N(e+=Yt,t[0],"i32")}function we(t,e=ae){const r=I(e,"i32");if(0===r)return null;const n=I(e+=Yt,"i32"),s=I(e+=Yt,"i32"),i=I(e+=Yt,"i32"),o=I(e+=Yt,"i32"),a=new _e(Xt,t);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Yt,t[0],"i32"),N(e+1*Yt,t[1],"i32"),N(e+2*Yt,t[2],"i32")}function xe(t){t[0]=I(ae+0*Yt,"i32"),t[1]=I(ae+1*Yt,"i32"),t[2]=I(ae+2*Yt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Yt,e.column,"i32")}function Ae(t){return{row:I(t,"i32"),column:I(t+Yt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Yt,e.endIndex,"i32"),t+=Yt}function Oe(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=I(t,"i32"),t+=Yt,e.endIndex=I(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=he,n.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},5530:()=>{},6287:()=>{},1427:(t,e,r)=>{t.exports=r(6762)}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!t;)t=n[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>Pn,detectionRegExp:()=>xn,lexicalAnalysis:()=>Xt,mediaTypes:()=>On,namespace:()=>En,parse:()=>kn,syntacticAnalysis:()=>Tr,syntacticAnalysisDirect:()=>Tr,syntacticAnalysisIndirect:()=>wn});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>$e,includesClasses:()=>Ge,includesSymbols:()=>We,isAnnotationElement:()=>ze,isArrayElement:()=>Ce,isBooleanElement:()=>Te,isCommentElement:()=>De,isElement:()=>ke,isLinkElement:()=>Le,isMemberElement:()=>Fe,isNullElement:()=>Me,isNumberElement:()=>Ie,isObjectElement:()=>Re,isParseResultElement:()=>Ve,isPrimitiveElement:()=>Be,isRefElement:()=>qe,isSourceMapElement:()=>Ue,isStringElement:()=>Ne});var e=r(9794),s=r.n(e);function i(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function o(t){return function e(r){return 0===arguments.length||i(r)?e:t.apply(this,arguments)}}function a(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return i(r)?e:o((function(e){return t(r,e)}));default:return i(r)&&i(n)?e:i(r)?o((function(e){return t(e,n)})):i(n)?o((function(e){return t(r,e)})):t(r,n)}}}const u=o((function(t){return null==t}));var c=a((function(t,e){return!u(e)&&t in e}));const l=c;function f(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,s){return e.apply(this,arguments)};case 5:return function(t,r,n,s,i){return e.apply(this,arguments)};case 6:return function(t,r,n,s,i,o){return e.apply(this,arguments)};case 7:return function(t,r,n,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,r,n,s,i,o,a,u){return e.apply(this,arguments)};case 9:return function(t,r,n,s,i,o,a,u,c){return e.apply(this,arguments)};case 10:return function(t,r,n,s,i,o,a,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function p(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return i(r)?e:a((function(e,n){return t(r,e,n)}));case 2:return i(r)&&i(n)?e:i(r)?a((function(e,r){return t(e,n,r)})):i(n)?a((function(e,n){return t(r,e,n)})):o((function(e){return t(r,n,e)}));default:return i(r)&&i(n)&&i(s)?e:i(r)&&i(n)?a((function(e,r){return t(e,r,s)})):i(r)&&i(s)?a((function(e,r){return t(e,n,r)})):i(n)&&i(s)?a((function(e,n){return t(r,e,n)})):i(r)?o((function(e){return t(e,n,s)})):i(n)?o((function(e){return t(r,e,s)})):i(s)?o((function(e){return t(r,n,e)})):t(r,n,s)}}}const h=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function m(t){return"[object String]"===Object.prototype.toString.call(t)}const d=o((function(t){return!!h(t)||!!t&&("object"==typeof t&&(!m(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function g(t,e,r){return function(n,s,i){if(d(i))return t(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(n,s,i,"fantasy-land/reduce");if(null!=i[y])return r(n,s,i[y]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return e(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function b(t,e,r){for(var n=0,s=r.length;n<s;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const v=a((function(t,e){return f(t.length,(function(){return t.apply(e,arguments)}))}));function w(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function E(t,e,r,n){return t["@@transducer/result"](r[n](v(t["@@transducer/step"],t),e))}const x=g(b,E,w);var S=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();const A=p((function(t,e,r){return x("function"==typeof t?new S(t):t,e,r)}));function j(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return h(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const O=p(j("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const P=o(j("tail",O(1,1/0)));function k(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return f(arguments[0].length,A(_,arguments[0],P(arguments)))}const N=o((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));const I="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var M=function(t,e){switch(arguments.length){case 0:return M;case 1:return function e(r){return 0===arguments.length?e:I(t,r)};default:return I(t,e)}};const T=M;function R(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function C(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function F(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var L=Object.prototype.toString;const q=function(){return"[object Arguments]"===L.call(arguments)?function(t){return"[object Arguments]"===L.call(t)}:function(t){return F("callee",t)}}();var z=!{toString:null}.propertyIsEnumerable("toString"),D=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],V=function(){return arguments.propertyIsEnumerable("length")}(),U=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},B="function"!=typeof Object.keys||V?o((function(t){if(Object(t)!==t)return[];var e,r,n=[],s=V&&q(t);for(e in t)!F(e,t)||s&&"length"===e||(n[n.length]=e);if(z)for(r=D.length-1;r>=0;)F(e=D[r],t)&&!U(n,e)&&(n[n.length]=e),r-=1;return n})):o((function(t){return Object(t)!==t?[]:Object.keys(t)}));const $=B;function W(t,e,r,n){var s=R(t);function i(t,e){return G(t,e,r.slice(),n.slice())}return!C((function(t,e){return!C(i,e,t)}),R(e),s)}function G(t,e,r,n){if(I(t,e))return!0;var s,i,o=N(t);if(o!==N(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!I(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!I(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&W(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&W(t.values(),e.values(),r.concat([t]),n.concat([e]));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 u=$(t);if(u.length!==$(e).length)return!1;var c=r.concat([t]),l=n.concat([e]);for(a=u.length-1;a>=0;){var f=u[a];if(!F(f,e)||!G(e[f],t[f],c,l))return!1;a-=1}return!0}const Z=a((function(t,e){return G(t,e,[],[])}));function K(t,e){return function(t,e,r){var n,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(s=t[r])&&1/s===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(s=t[r])&&s!=s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(Z(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function H(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function J(t){return'"'+t.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 X=function(t){return(t<10?"0":"")+t};const Y="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+X(t.getUTCMonth()+1)+"-"+X(t.getUTCDate())+"T"+X(t.getUTCHours())+":"+X(t.getUTCMinutes())+":"+X(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Q(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function tt(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!h(n)){for(var s=0;s<t.length;){if("function"==typeof n[t[s]])return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function et(t){return"[object Object]"===Object.prototype.toString.call(t)}const rt=function(){return this.xf["@@transducer/init"]()},nt=function(t){return this.xf["@@transducer/result"](t)};var st=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=rt,t.prototype["@@transducer/result"]=nt,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function it(t){return function(e){return new st(t,e)}}const ot=a(tt(["fantasy-land/filter","filter"],it,(function(t,e){return et(e)?Q((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},$(e)):function(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}(t,e)})));const at=a((function(t,e){return ot((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function ut(t,e){var r=function(r){var n=e.concat([t]);return K(r,n)?"<Circular>":ut(r,n)},n=function(t,e){return H((function(e){return J(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+H(r,t).join(", ")+"))";case"[object Array]":return"["+H(r,t).concat(n(t,at((function(t){return/^\d+$/.test(t)}),$(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):J(Y(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":J(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+n(t,$(t)).join(", ")+"}"}}const ct=o((function(t){return ut(t,[])})),lt=Number.isInteger||function(t){return t<<0===t};const ft=a((function(t,e){var r=t<0?e.length+t:t;return m(e)?e.charAt(r):e[r]}));const _t=a((function(t,e){return t.map((function(t){for(var r,n=e,s=0;s<t.length;){if(null==n)return;r=t[s],n=lt(r)?ft(r,n):n[r],s+=1}return n}))}));const pt=a((function(t,e){return _t([t],e)[0]}));const ht=p((function(t,e,r){return t(pt(e,r))}));const mt=a((function(t,e){return t&&e}));function dt(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function yt(t,e,r,n){return r[n](t,e)}const gt=g(Q,yt,dt);var bt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=rt,t.prototype["@@transducer/result"]=nt,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const vt=function(t){return function(e){return new bt(t,e)}};function wt(t,e,r){return function(){for(var n=[],s=0,o=t,a=0,u=!1;a<e.length||s<arguments.length;){var c;a<e.length&&(!i(e[a])||s>=arguments.length)?c=e[a]:(c=arguments[s],s+=1),n[a]=c,i(c)?u=!0:o-=1,a+=1}return!u&&o<=0?r.apply(this,n):f(Math.max(0,o),wt(t,n,r))}}const Et=a((function(t,e){return 1===t?o(e):f(t,wt(t,[],e))}));const xt=a(tt(["fantasy-land/map","map"],vt,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Et(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return Q((function(r,n){return r[n]=t(e[n]),r}),{},$(e));default:return H(t,e)}})));const St=a((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:gt((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}(t,xt(r,e))}),[],t)}));const At=a((function(t,e){var r=Et(t,e);return Et(t,(function(){return Q(St,xt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const jt=o((function(t){return At(t.length,t)}));var Ot=a((function(t,e){return function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:jt(mt)(t,e)}));const Pt=Ot;const kt=Z(null);const Nt=jt(o((function(t){return!t})));var It=Nt(kt);function Mt(t){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(t)}const Tt=Et(1,Pt(It,(function(t){return"object"===Mt(t)})));const Rt=a((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=ct(t),o=r(i,ct(e));return void 0!==o&&o===i?t:e}));const Ct=a((function(t,e){if(null!=e)return lt(t)?ft(t,e):e[t]}));const Ft=a((function(t,e){return xt(Ct(t),e)}));const Lt=o((function(t){return Et(A(Rt,0,Ft("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));const qt=Et(1,k(N,T("GeneratorFunction")));const zt=Et(1,k(N,T("AsyncFunction")));const Dt=Lt([k(N,T("Function")),qt,zt]);var Vt=k(N,T("Object")),Ut=ht(Pt(Dt,k(ct,Z(ct(Object)))),["constructor"]);const Bt=Et(1,(function(t){if(!Tt(t)||!Vt(t))return!1;var e=Object.getPrototypeOf(t);return!!kt(e)||Ut(e)}));var $t=r(1427);const Wt=class extends $t{constructor(t,e,r){if(super(t,e,r),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,Bt(r)&&l("cause",r)&&!l("cause",this)){const{cause:t}=r;this.cause=t,t instanceof Error&&l("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}};class Gt extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Wt,t)}constructor(t,e){if(super(t,e),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,Bt(e)&&l("cause",e)&&!l("cause",this)){const{cause:t}=e;this.cause=t,t instanceof Error&&l("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}}const Zt=Gt,Kt=r.p+"13ee407b2f9bd26c94370902ddeb5bcf.wasm";let Ht=null,Jt=null;const Xt=async t=>{if(null===Ht&&null===Jt)Jt=s().init().then((()=>s().Language.load(Kt))).then((t=>{const e=new(s());return e.setLanguage(t),e})).finally((()=>{Jt=null})),Ht=await Jt;else if(null===Ht&&null!==Jt)Ht=await Jt;else if(null===Ht)throw new Zt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return Ht.parse(t)},Yt=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Qt={},te=t=>null==t?void 0:t.type,ee=t=>"string"==typeof te(t),re=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),ne=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Qt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Yt,nodeTypeGetter:u=te,nodePredicate:c=ee,nodeCloneFn:l=re,detectCycles:f=!0}={})=>{const _=r||{};let p,h,m=Array.isArray(t),d=[t],y=-1,g=[],b=t;const v=[],w=[];do{y+=1;const t=y===d.length;let r;const x=t&&0!==g.length;if(t){if(r=0===w.length?void 0:v.pop(),b=h,h=w.pop(),x)if(m){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=p.index,d=p.keys,g=p.edits,m=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(r=m?y:d[y],b=h[r],b===i||void 0===b)continue;v.push(r)}if(w.includes(b))continue;let S;if(!Array.isArray(b)){if(!c(b))throw new Zt(`Invalid AST Node: ${JSON.stringify(b)}`);if(f&&w.includes(b)){v.pop();continue}const i=a(e,u(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;S=i.call(e,b,r,h,v,w)}if(S===s)break;if(S===o){if(!t){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!t)){if(!c(S)){v.pop();continue}b=S}}var E;if(void 0===S&&x&&g.push([r,b]),!t)p={inArray:m,index:y,keys:d,edits:g,prev:p},m=Array.isArray(b),d=m?b:null!==(E=_[u(b)])&&void 0!==E?E:[],y=-1,g=[],h!==i&&void 0!==h&&w.push(h),h=b}while(void 0!==p);return 0!==g.length?g.at(-1)[1]:t};ne[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Qt,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=Yt,nodeTypeGetter:u=te,nodePredicate:c=ee,nodeCloneFn:l=re,detectCycles:f=!0}={})=>{const _=r||{};let p,h,m=Array.isArray(t),d=[t],y=-1,g=[],b=t;const v=[],w=[];do{y+=1;const t=y===d.length;let r;const x=t&&0!==g.length;if(t){if(r=0===w.length?void 0:v.pop(),b=h,h=w.pop(),x)if(m){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=p.index,d=p.keys,g=p.edits,m=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(r=m?y:d[y],b=h[r],b===i||void 0===b)continue;v.push(r)}let S;if(!Array.isArray(b)){if(!c(b))throw new Zt(`Invalid AST Node: ${JSON.stringify(b)}`);if(f&&w.includes(b)){v.pop();continue}const i=a(e,u(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;S=await i.call(e,b,r,h,v,w)}if(S===s)break;if(S===o){if(!t){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!t)){if(!c(S)){v.pop();continue}b=S}}var E;if(void 0===S&&x&&g.push([r,b]),!t)p={inArray:m,index:y,keys:d,edits:g,prev:p},m=Array.isArray(b),d=m?b:null!==(E=_[u(b)])&&void 0!==E?E:[],y=-1,g=[],h!==i&&void 0!==h&&w.push(h),h=b}while(void 0!==p);return 0!==g.length?g.at(-1)[1]:t};var se=r(6591),ie=r.n(se);const oe=function(){return!1};const ae=Et(1,k(N,T("String")));var ue=r(7952);var ce=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=rt,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r;return this.f(e)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},t}();function le(t){return function(e){return new ce(t,e)}}const fe=a(tt(["all"],le,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));const _e=o((function(t){return Et(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}))(a(K));class pe extends ue.RP{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const he=pe;class me extends ue.RP{constructor(t,e,r){super(t,e,r),this.element="comment"}}const de=me;var ye=o((function(t){return function(){return t}}))(void 0);const ge=Z(ye());class be extends ue.ON{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(ge(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const ve=be;class we extends ue.ON{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(null===t)return;const e=new ue.ON([t.start.row,t.start.column,t.start.char]),r=new ue.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const Ee=we,xe=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],Se=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,Ae=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),je=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof ue.ON)&&e.classes.includes(t),Oe=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,Pe=t=>t({hasMethod:xe,hasBasicElementProps:Se,primitiveEq:Ae,isElementType:Oe,hasClass:je}),ke=Pe((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ue.W_||t(r)&&e(void 0,r))),Ne=Pe((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ue.RP||t(r)&&e("string",r))),Ie=Pe((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ue.VL||t(r)&&e("number",r))),Me=Pe((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ue.zr||t(r)&&e("null",r))),Te=Pe((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof ue.hh||t(r)&&e("boolean",r))),Re=Pe((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof ue.Sb||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Ce=Pe((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof ue.ON&&!(n instanceof ue.Sb)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Fe=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ue.c6||t(n)&&e("member",n)&&r(void 0,n))),Le=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ue.EA||t(n)&&e("link",n)&&r(void 0,n))),qe=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ue.tK||t(n)&&e("ref",n)&&r(void 0,n))),ze=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof he||t(n)&&e("annotation",n)&&r("array",n))),De=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof de||t(n)&&e("comment",n)&&r("string",n))),Ve=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ve||t(n)&&e("parseResult",n)&&r("array",n))),Ue=Pe((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ee||t(n)&&e("sourceMap",n)&&r("array",n))),Be=t=>Oe("object",t)||Oe("array",t)||Oe("boolean",t)||Oe("number",t)||Oe("string",t)||Oe("null",t)||Oe("member",t),$e=t=>Ue(t.meta.get("sourceMap")),We=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!Ce(r)&&fe(_e(r.toValue()),t)},Ge=(t,e)=>0===t.length||fe(_e(e.classes.toValue()),t);var Ze=a((function(t,e){for(var r={},n={},s=0,i=t.length;s<i;)n[t[s]]=1,s+=1;for(var o in e)n.hasOwnProperty(o)||(r[o]=e[o]);return r}));const Ke=Ze;const He=class extends Zt{constructor(t,e){super(t,e),void 0!==e&&Object.assign(this,Ke(["cause"],e))}};const Je=class extends He{};const Xe=class extends Je{};const Ye=class extends Je{},Qe=t=>"function"==typeof(null==t?void 0:t.clone)?t.clone():t,tr=t=>{if(t instanceof ue.rm){const e=[...t].map(Qe);return new ue.rm(e)}if(t instanceof ue.O4){const e=[...t].map(Qe);return new ue.O4(e)}if("function"==typeof(null==t?void 0:t.clone))return t.clone();throw new Xe("Value provided to cloneDeep function couldn't be cloned",{value:t})};tr.safe=t=>{try{return tr(t)}catch{return t}};const er=t=>{const{key:e,value:r}=t;return new ue.KeyValuePair(e,r)},rr=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=tr(t.meta)),t.attributes.length>0&&(e._attributes=tr(t.attributes)),ke(t.content)){const r=t.content;e.content=rr(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof ue.KeyValuePair?e.content=er(t.content):e.content=t.content;return e},nr=t=>{if(t instanceof ue.KeyValuePair)return er(t);if(t instanceof ue.rm)return(t=>{const e=[...t];return new ue.rm(e)})(t);if(t instanceof ue.O4)return(t=>{const e=[...t];return new ue.O4(e)})(t);if(ke(t))return rr(t);throw new Ye("Value provided to cloneShallow function couldn't be cloned",{value:t})};nr.safe=t=>{try{return nr(t)}catch{return t}};const sr=t=>Re(t)?"ObjectElement":Ce(t)?"ArrayElement":Fe(t)?"MemberElement":Ne(t)?"StringElement":Te(t)?"BooleanElement":Ie(t)?"NumberElement":Me(t)?"NullElement":Le(t)?"LinkElement":qe(t)?"RefElement":void 0,ir=t=>ke(t)?nr(t):re(t),or=k(sr,ae),ar={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},ur=(se({props:{result:[],predicate:oe,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:t=this.predicate,returnOnTrue:e=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=t,this.returnOnTrue=e,this.returnOnFalse=r},methods:{enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}}),(t,e,{keyMap:r=ar,...n}={})=>ne(t,e,{keyMap:r,nodeTypeGetter:sr,nodePredicate:or,nodeCloneFn:ir,...n}));ur[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=ar,...n}={})=>ne[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:sr,nodePredicate:or,nodeCloneFn:ir,...n});const cr=a((function(t,e){return null==e||e!=e?t:e}));const lr=p((function(t,e,r){return cr(t,Ct(e,r))}));const fr=O(0,-1);const _r=a((function(t,e){return t.apply(this,e)}));const pr=Nt(Dt);var hr=o((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():h(t)?[]:m(t)?"":et(t)?{}:q(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const mr=hr;const dr=o((function(t){return null!=t&&Z(t,mr(t))}));const yr=Pt(Et(1,Dt(Array.isArray)?Array.isArray:k(N,T("Array"))),dr);const gr=Et(3,(function(t,e,r){var n=pt(t,r),s=pt(fr(t),r);if(!pr(n)&&!yr(t)){var i=v(n,s);return _r(i,e)}}));class br extends ue.lS{constructor(){super(),this.register("annotation",he),this.register("comment",de),this.register("parseResult",ve),this.register("sourceMap",Ee)}}const vr=new br,wr=()=>({predicates:{...t},namespace:vr}),Er=(t,e,r={})=>{if(0===e.length)return t;const n=lr(wr,"toolboxCreator",r),s=lr({},"visitorOptions",r),i=lr(sr,"nodeTypeGetter",s),o=n(),a=e.map((t=>t(o))),u=((t,{visitFnGetter:e=Yt,nodeTypeGetter:r=te}={})=>{const n=new Array(t.length).fill(null);return{enter(s,...i){for(let o=0;o<t.length;o+=1)if(null===n[o]){const a=e(t[o],r(s),!1);if("function"==typeof a){const e=a.call(t[o],s,...i);if(!1===e)n[o]=s;else if(e===Qt)n[o]=Qt;else if(void 0!==e)return e}}},leave(s,...i){for(let o=0;o<t.length;o+=1)if(null===n[o]){const a=e(t[o],r(s),!0);if("function"==typeof a){const e=a.call(t[o],s,...i);if(e===Qt)n[o]=Qt;else if(void 0!==e&&!1!==e)return e}}else n[o]===s&&(n[o]=null)}}})(a.map(lr({},"visitor")),{nodeTypeGetter:i});a.forEach(gr(["pre"],[]));const c=ur(t,u,s);return a.forEach(gr(["post"],[])),c},xr=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return Er(n,r,{toolboxCreator:wr,visitorOptions:{nodeTypeGetter:sr}})},Sr=t=>(e,r={})=>xr(e,{...r,Type:t});ue.Sb.refract=Sr(ue.Sb),ue.ON.refract=Sr(ue.ON),ue.RP.refract=Sr(ue.RP),ue.hh.refract=Sr(ue.hh),ue.zr.refract=Sr(ue.zr),ue.VL.refract=Sr(ue.VL),ue.EA.refract=Sr(ue.EA),ue.tK.refract=Sr(ue.tK),he.refract=Sr(he),de.refract=Sr(de),ve.refract=Sr(ve),Ee.refract=Sr(Ee);const Ar=class{hasError=!1;children=[];constructor(t){this.type=t.nodeType,this.startPosition=t.startPosition,this.endPosition=t.endPosition,this.startIndex=t.startIndex,this.endIndex=t.endIndex,this.text=t.nodeText,this.isNamed=t.nodeIsNamed,this.isMissing=t.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}setFieldName(t){return"function"==typeof t.currentFieldName?this.fieldName=t.currentFieldName():this.fieldName=t.currentFieldName,this}setHasError(t){return"function"==typeof t.currentNode?this.hasError=t.currentNode().hasError():this.hasError=t.currentNode.hasError(),this}pushChildren(...t){this.children.push(...t)}},jr=ie()({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const t=(t,e)=>{if(!this.sourceMap)return;const r=new Ee,n=(t=>{const e=new ue.ON([t.startPosition.row,t.startPosition.column,t.startIndex]),r=new ue.ON([t.endPosition.row,t.endPosition.column,t.endIndex]);return e.classes.push("position"),r.classes.push("position"),[e,r]})(t);if(null!==n){const[t,e]=n;r.push(t),r.push(e)}r.astNode=t,e.meta.set("sourceMap",r)};this.enter=function(e){if(e instanceof Ar&&!e.isNamed&&e.isMissing){const r=e.type||e.text,n=new he(`(Missing ${r})`);n.classes.push("warning"),t(e,n),this.annotations.push(n)}return null},this.document=function(e){const r=new ve;return r._content=e.children,t(e,r),r},this.ParseResultElement={leave(t){const e=t.findElements(Be);if(e.length>0){e[0].classes.push("result")}this.annotations.forEach((e=>{t.push(e)})),this.annotations=[]}},this.object=function(e){const r=new ue.Sb;return r._content=e.children,t(e,r),r},this.array=function(e){const r=new ue.ON;return r._content=e.children,t(e,r),r},this.pair=function(e){const r=new ue.c6;return r.content.key=e.keyNode,r.content.value=e.valueNode,t(e,r),e.children.length>3&&e.children.filter((t=>"ERROR"===t.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),r},this.string=function(e){const r=new ue.RP(JSON.parse(e.text));return t(e,r),r},this.number=function(e){const r=new ue.VL(Number(e.text));return t(e,r),r},this.null=function(e){const r=new ue.zr;return t(e,r),r},this.true=function(e){const r=new ue.hh(!0);return t(e,r),r},this.false=function(e){const r=new ue.hh(!1);return t(e,r),r},this.ERROR=function(e,r,n,s){const i=!e.hasError,o=e.text,a=new he(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),t(e,a),0===s.length){const t=new ve;return t.push(a),t}return this.annotations.push(a),null}}}),Or=jr;class Pr{constructor(t){this.cursor=t}document(){return new Ar(this.cursor)}object(){return new Ar(this.cursor).setFieldName(this.cursor)}array(){return new Ar(this.cursor).setFieldName(this.cursor)}pair(){return new Ar(this.cursor)}string(){return new Ar(this.cursor).setFieldName(this.cursor)}number(){return new Ar(this.cursor).setFieldName(this.cursor)}null(){return new Ar(this.cursor).setFieldName(this.cursor)}true(){return new Ar(this.cursor).setFieldName(this.cursor)}false(){return new Ar(this.cursor).setFieldName(this.cursor)}ERROR(){return new Ar(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Ar(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Pr(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=new Pr(this.cursor);t.pushChildren(...e)}this.cursor.gotoParent()}yield t}}const kr=Pr,Nr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...ar},Ir=t=>Ve(t)?"ParseResultElement":ke(t)?sr(t):te(t),Mr=t=>ke(t)||ee(t),Tr=(t,{sourceMap:e=!1}={})=>{const r=Or(),n=t.walk(),s=[...new kr(n)].at(0);return ne(s,r,{keyMap:Nr,nodeTypeGetter:Ir,nodePredicate:Mr,state:{sourceMap:e}})},Rr=se({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:t=null,column:e=null,char:r=null}={}){this.row=t,this.column=e,this.char=r}}),Cr=se({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),Fr=se({props:{type:null,position:null,children:[]},init({children:t=[],position:e=null,isMissing:r=!1}={},{stamp:n={}}){this.type=n.type,this.isMissing=r,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const r=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,r)})),t}}}),Lr=se(Fr,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}});const qr=ft(0),zr=se(Fr),Dr=se(zr,{statics:{type:"document"},methods:{get child(){return qr(this.children)}}}),Vr=se(Fr,{statics:{type:"parseResult"},methods:{get rootNode(){return qr(this.children)}}}),Ur=(t,e)=>(null==e?void 0:e.type)===t,Br=(Ur.bind(void 0,"literal"),Ur.bind(void 0,"position"),Ur.bind(void 0,"point"),Ur.bind(void 0,"parseResult"),Ur.bind(void 0,"document"),Ur.bind(void 0,"string")),$r=Ur.bind(void 0,"false"),Wr=Ur.bind(void 0,"true"),Gr=Ur.bind(void 0,"null"),Zr=Ur.bind(void 0,"number"),Kr=Ur.bind(void 0,"array"),Hr=Ur.bind(void 0,"object"),Jr=Ur.bind(void 0,"stringContent"),Xr=Ur.bind(void 0,"escapeSequence"),Yr=Ur.bind(void 0,"property"),Qr=Ur.bind(void 0,"key"),tn=se(zr,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Yr)}}}),en=se(zr,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((t=>Jr(t)||Xr(t))).reduce(((t,e)=>t+e.value),"")}}}),rn=se(en,{statics:{type:"key"}}),nn=se(zr,{statics:{type:"property"},methods:{get key(){return this.children.find(Qr)},get value(){return this.children.find((t=>$r(t)||Wr(t)||Gr(t)||Zr(t)||Br(t)||Kr(t)||Hr(t)))}}}),sn=se(zr,{statics:{type:"array"},methods:{get items(){return this.children.filter((t=>$r(t)||Wr(t)||Gr(t)||Zr(t)||Br(t)||Kr(t)||Hr))}}}),on=se(zr,{statics:{type:"value"},props:{value:null},init({value:t=null}={}){this.value=t}}),an=se(on,{statics:{type:"stringContent"}}),un=se(on,{statics:{type:"number"}}),cn=se(on,{statics:{type:"null"}}),ln=se(on,{statics:{type:"true"}}),fn=se(on,{statics:{type:"false"}}),_n=se(Fr,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}}),pn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},hn=ie()({init(){const t=t=>{const e=Rr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),r=Rr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return Cr({start:e,end:r})};this.enter=function(e){if(e instanceof Ar&&!e.isNamed){const r=t(e),n=e.type||e.text,{isMissing:s}=e;return Lr({value:n,position:r,isMissing:s})}},this.document={enter(e){const r=t(e);return Dr({children:e.children,position:r,isMissing:e.isMissing})},leave:t=>Vr({children:[t]})},this.object=function(e){const r=t(e);return tn({children:e.children,position:r,isMissing:e.isMissing})},this.pair=function(e){const r=t(e),n=e.children.slice(1),{keyNode:s}=e,i=rn({children:s?.children||[],position:null!=s?t(s):null,isMissing:null!=s&&s.isMissing});return nn({children:[i,...n],position:r,isMissing:e.isMissing})},this.array=function(e){const r=t(e);return sn({children:e.children,position:r,isMissing:e.isMissing})},this.string=function(e){const r=t(e),n=an({value:JSON.parse(e.text)});return en({children:[n],position:r,isMissing:e.isMissing})},this.number=function(e){const r=t(e),n=e.text;return un({value:n,position:r,isMissing:e.isMissing})},this.null=function(e){const r=t(e),n=e.text;return cn({value:n,position:r,isMissing:e.isMissing})},this.true=function(e){const r=t(e),n=e.text;return ln({value:n,position:r,isMissing:e.isMissing})},this.false=function(e){const r=t(e),n=e.text;return fn({value:n,position:r,isMissing:e.isMissing})},this.ERROR=function(e,r,n,s){const i=t(e),o=_n({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?Vr({children:[o]}):o}}}),mn=hn,dn={[Vr.type]:["children"],[Dr.type]:["children"],[tn.type]:["children"],[nn.type]:["children"],[sn.type]:["children"],[_n.type]:["children"],...ar},yn=t=>Ve(t)?"ParseResultElement":ke(t)?sr(t):te(t),gn=t=>ke(t)||ee(t),bn=ie()({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const t=(t,e)=>{if(!this.sourceMap)return;const r=new Ee;r.position=t.position,r.astNode=t,e.meta.set("sourceMap",r)};this.document=function(t){const e=new ve;return e._content=t.children,e},this.ParseResultElement={leave(t){const e=t.findElements(Be);if(e.length>0){e[0].classes.push("result")}this.annotations.forEach((e=>{t.push(e)})),this.annotations=[]}},this.object=function(e){const r=new ue.Sb;return r._content=e.children,t(e,r),r},this.property=function(e){const r=new ue.c6;return r.content.key=e.key,r.content.value=e.value,t(e,r),e.children.length>3&&e.children.filter((t=>"error"===t.type)).forEach((t=>{this.error(t,e,[],[e])})),r},this.key=function(e){const r=new ue.RP(e.value);return t(e,r),r},this.array=function(e){const r=new ue.ON;return r._content=e.children,t(e,r),r},this.string=function(e){const r=new ue.RP(e.value);return t(e,r),r},this.number=function(e){const r=new ue.VL(Number(e.value));return t(e,r),r},this.null=function(e){const r=new ue.zr;return t(e,r),r},this.true=function(e){const r=new ue.hh(!0);return t(e,r),r},this.false=function(e){const r=new ue.hh(!1);return t(e,r),r},this.literal=function(e){if(e.isMissing){const r=`(Missing ${e.value})`,n=new he(r);n.classes.push("warning"),t(e,n),this.annotations.push(n)}return null},this.error=function(e,r,n,s){const i=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,o=new he(i);if(o.classes.push("error"),t(e,o),0===s.length){const t=new ve;return t.push(o),t}return this.annotations.push(o),null}}}),vn=bn,wn=(t,{sourceMap:e=!1}={})=>{const r=t.walk(),n=[...new kr(r)].at(0),s=mn(),i=vn(),o=ne(n,s,{keyMap:pn,state:{sourceMap:e}});return ne(o.rootNode,i,{keyMap:dn,nodeTypeGetter:yn,nodePredicate:gn,state:{sourceMap:e}})},En=(t=>{const e=new br;return Bt(t)&&e.use(t),e})(),xn=/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/;const Sn=class extends Zt{};const An=class extends Sn{};const jn=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new An("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new An("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new An("latest method in MediaTypes class is not yet implemented.")}};const On=new class extends jn{latest(){return this[0]}}("application/json"),Pn=async t=>{if(!xn.test(t))return!1;try{return"ERROR"!==(await Xt(t)).rootNode.type}catch{return!1}},kn=async(t,{sourceMap:e=!1,syntacticAnalysis:r="direct"}={})=>{const n=await Xt(t);let s;return s="indirect"===r?wn(n,{sourceMap:e}):Tr(n,{sourceMap:e}),s}})(),n})()));
|
|
1
|
+
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterJson=e():t.apidomParserAdapterJson=e()}(self,(()=>(()=>{var t={42:(t,e,r)=>{"use strict";var n=r(5846);t.exports=n},6791:(t,e,r)=>{"use strict";r(4339),r(4242),r(4016),r(8939),r(5454);var n=r(7545);t.exports=n.AggregateError},6762:(t,e,r)=>{"use strict";t.exports=r(3028)},3028:(t,e,r)=>{"use strict";r(2752);var n=r(42);t.exports=n},6235:(t,e,r)=>{"use strict";var n=r(6447),s=r(9288),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},7757:(t,e,r)=>{"use strict";var n=r(6447),s=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},7423:t=>{"use strict";t.exports=function(){}},1138:(t,e,r)=>{"use strict";var n=r(5744),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},8180:(t,e,r)=>{"use strict";var n=r(101),s=r(7739),i=r(4104),o=function(t){return function(e,r,o){var a,u=n(e),c=i(u),l=s(o,c);if(t&&r!=r){for(;c>l;)if((a=u[l++])!=a)return!0}else for(;c>l;l++)if((t||l in u)&&u[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9272:(t,e,r)=>{"use strict";var n=r(4120),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},4696:(t,e,r)=>{"use strict";var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("toStringTag"),a=Object,u="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:u?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},7987:(t,e,r)=>{"use strict";var n=r(4500),s=r(3011),i=r(5141),o=r(2760);t.exports=function(t,e,r){for(var a=s(e),u=o.f,c=i.f,l=0;l<a.length;l++){var f=a[l];n(t,f)||r&&n(r,f)||u(t,f,c(e,f))}}},4635:(t,e,r)=>{"use strict";var n=r(6192);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7271:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},8711:(t,e,r)=>{"use strict";var n=r(69),s=r(2760),i=r(774);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},774:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9362:(t,e,r)=>{"use strict";var n=r(8711);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},5098:(t,e,r)=>{"use strict";var n=r(8576),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},69:(t,e,r)=>{"use strict";var n=r(6192);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:t=>{"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},7449:(t,e,r)=>{"use strict";var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},7365:t=>{"use strict";t.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}},8989:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(t,e,r)=>{"use strict";var n,s,i=r(8576),o=r(8989),a=i.process,u=i.Deno,c=a&&a.versions||u&&u.version,l=c&&c.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},2952:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(t,e,r)=>{"use strict";var n=r(4120),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,u=a.test(o);t.exports=function(t,e){if(u&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},8266:(t,e,r)=>{"use strict";var n=r(8711),s=r(4503),i=r(274),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},274:(t,e,r)=>{"use strict";var n=r(6192),s=r(774);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},3085:(t,e,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),a=r(5141).f,u=r(9245),c=r(7545),l=r(8043),f=r(8711),_=r(4500),p=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,h,m,d,y,g,b,v,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?n:x?n[w]:(n[w]||{}).prototype,j=E?c:c[w]||f(c,w,{})[w],O=j.prototype;for(m in e)s=!(r=u(E?m:w+(x?".":"#")+m,t.forced))&&A&&_(A,m),y=j[m],s&&(g=t.dontCallGetSet?(v=a(A,m))&&v.value:A[m]),d=s&&g?g:e[m],s&&typeof y==typeof d||(b=t.bind&&s?l(d,n):t.wrap&&s?p(d):S&&o(d)?i(d):d,(t.sham||d&&d.sham||y&&y.sham)&&f(b,"sham",!0),f(j,m,b),S&&(_(c,h=w+"Prototype")||f(c,h,{}),f(c[h],m,d),t.real&&O&&(r||!O[m])&&f(O,m,d)))}},6192:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},6298:(t,e,r)=>{"use strict";var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(t,e,r)=>{"use strict";var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},2784:(t,e,r)=>{"use strict";var n=r(6192);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8922:(t,e,r)=>{"use strict";var n=r(2784),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(t,e,r)=>{"use strict";var n=r(69),s=r(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),u=a&&"something"===function(){}.name,c=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:u,CONFIGURABLE:c}},6419:(t,e,r)=>{"use strict";var n=r(4120),s=r(6235);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},4914:(t,e,r)=>{"use strict";var n=r(9272),s=r(4120);t.exports=function(t){if("Function"===n(t))return s(t)}},4120:(t,e,r)=>{"use strict";var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},150:(t,e,r)=>{"use strict";var n=r(7545),s=r(8576),i=r(6447),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},8703:(t,e,r)=>{"use strict";var n=r(4696),s=r(5037),i=r(5646),o=r(7771),a=r(8182)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},1669:(t,e,r)=>{"use strict";var n=r(8922),s=r(6235),i=r(1138),o=r(9288),a=r(8703),u=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw new u(o(t)+" is not iterable")}},5037:(t,e,r)=>{"use strict";var n=r(6235),s=r(5646);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},8576:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(t,e,r)=>{"use strict";var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},4535:t=>{"use strict";t.exports={}},7403:(t,e,r)=>{"use strict";var n=r(150);t.exports=n("document","documentElement")},188:(t,e,r)=>{"use strict";var n=r(69),s=r(6192),i=r(7449);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(t,e,r)=>{"use strict";var n=r(4120),s=r(6192),i=r(9272),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},2643:(t,e,r)=>{"use strict";var n=r(6447),s=r(5744),i=r(4469);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},273:(t,e,r)=>{"use strict";var n=r(5744),s=r(8711);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},3326:(t,e,r)=>{"use strict";var n,s,i,o=r(5278),a=r(8576),u=r(5744),c=r(8711),l=r(4500),f=r(6434),_=r(9766),p=r(4535),h="Object already initialized",m=a.TypeError,d=a.WeakMap;if(o||f.state){var y=f.state||(f.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new m(h);return e.facade=t,y.set(t,e),e},s=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=_("state");p[g]=!0,n=function(t,e){if(l(t,g))throw new m(h);return e.facade=t,c(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!u(e)||(r=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}}}},6109:(t,e,r)=>{"use strict";var n=r(8182),s=r(7771),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},6447:(t,e,r)=>{"use strict";var n=r(8382),s=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===s}:function(t){return"function"==typeof t}},9245:(t,e,r)=>{"use strict";var n=r(6192),s=r(6447),i=/#|\.prototype\./,o=function(t,e){var r=u[a(t)];return r===l||r!==c&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},u=o.data={},c=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},5646:t=>{"use strict";t.exports=function(t){return null==t}},5744:(t,e,r)=>{"use strict";var n=r(6447),s=r(8382),i=s.all;t.exports=s.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},5546:t=>{"use strict";t.exports=!0},3236:(t,e,r)=>{"use strict";var n=r(150),s=r(6447),i=r(8902),o=r(615),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},3442:(t,e,r)=>{"use strict";var n=r(8043),s=r(8922),i=r(1138),o=r(9288),a=r(6109),u=r(4104),c=r(8902),l=r(1669),f=r(8703),_=r(6639),p=TypeError,h=function(t,e){this.stopped=t,this.result=e},m=h.prototype;t.exports=function(t,e,r){var d,y,g,b,v,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(e,x),k=function(t){return d&&_(d,"normal",t),new h(!0,t)},N=function(t){return S?(i(t),O?P(t[0],t[1],k):P(t[0],t[1])):O?P(t,k):P(t)};if(A)d=t.iterator;else if(j)d=t;else{if(!(y=f(t)))throw new p(o(t)+" is not iterable");if(a(y)){for(g=0,b=u(t);b>g;g++)if((v=N(t[g]))&&c(m,v))return v;return new h(!1)}d=l(t,y)}for(w=A?t.next:d.next;!(E=s(w,d)).done;){try{v=N(E.value)}catch(t){_(d,"throw",t)}if("object"==typeof v&&v&&c(m,v))return v}return new h(!1)}},6639:(t,e,r)=>{"use strict";var n=r(8922),s=r(1138),i=r(5037);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},5695:(t,e,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),a=r(7771),u=function(){return this};t.exports=function(t,e,r,c){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!c,r)}),o(t,l,!1,!0),a[l]=u,t}},5297:(t,e,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),a=r(6447),u=r(5695),c=r(9341),l=r(4469),f=r(1284),_=r(8711),p=r(9362),h=r(8182),m=r(7771),d=r(4413),y=o.PROPER,g=o.CONFIGURABLE,b=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,w=h("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,r,o,h,d,j){u(r,e,o);var O,P,k,N=function(t){if(t===h&&C)return C;if(!v&&t&&t in T)return T[t];switch(t){case E:case x:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",M=!1,T=t.prototype,R=T[w]||T["@@iterator"]||h&&T[h],C=!v&&R||N(h),F="Array"===e&&T.entries||R;if(F&&(O=c(F.call(new t)))!==Object.prototype&&O.next&&(i||c(O)===b||(l?l(O,b):a(O[w])||p(O,w,A)),f(O,I,!0,!0),i&&(m[I]=A)),y&&h===x&&R&&R.name!==x&&(!i&&g?_(T,"name",x):(M=!0,C=function(){return s(R,this)})),h)if(P={values:N(x),keys:d?C:N(E),entries:N(S)},j)for(k in P)(v||M||!(k in T))&&p(T,k,P[k]);else n({target:e,proto:!0,forced:v||M},P);return i&&!j||T[w]===C||p(T,w,C,{name:h}),m[e]=C,P}},4413:(t,e,r)=>{"use strict";var n,s,i,o=r(6192),a=r(6447),u=r(5744),c=r(2853),l=r(9341),f=r(9362),_=r(8182),p=r(5546),h=_("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):m=!0),!u(n)||o((function(){var t={};return n[h].call(t)!==t}))?n={}:p&&(n=c(n)),a(n[h])||f(n,h,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},7771:t=>{"use strict";t.exports={}},4104:(t,e,r)=>{"use strict";var n=r(8445);t.exports=function(t){return n(t.length)}},7679:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},6016:(t,e,r)=>{"use strict";var n=r(4845);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},2853:(t,e,r)=>{"use strict";var n,s=r(1138),i=r(1187),o=r(2952),a=r(4535),u=r(7403),c=r(7449),l=r(9766),f="prototype",_="script",p=l("IE_PROTO"),h=function(){},m=function(t){return"<"+_+">"+t+"</"+_+">"},d=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?d(n):(e=c("iframe"),r="java"+_+":",e.style.display="none",u.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):d(n);for(var s=o.length;s--;)delete y[f][o[s]];return y()};a[p]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(h[f]=s(t),r=new h,h[f]=null,r[p]=t):r=y(),void 0===e?r:i.f(r,e)}},1187:(t,e,r)=>{"use strict";var n=r(69),s=r(9600),i=r(2760),o=r(1138),a=r(101),u=r(7653);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=u(e),c=s.length,l=0;c>l;)i.f(t,r=s[l++],n[r]);return t}},2760:(t,e,r)=>{"use strict";var n=r(69),s=r(188),i=r(9600),o=r(1138),a=r(77),u=TypeError,c=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",_="configurable",p="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&p in r&&!r[p]){var n=l(t,e);n&&n[p]&&(t[e]=r.value,r={configurable:_ in r?r[_]:n[_],enumerable:f in r?r[f]:n[f],writable:!1})}return c(t,e,r)}:c:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return c(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new u("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5141:(t,e,r)=>{"use strict";var n=r(69),s=r(8922),i=r(6007),o=r(774),a=r(101),u=r(77),c=r(4500),l=r(188),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=u(e),l)try{return f(t,e)}catch(t){}if(c(t,e))return o(!s(i.f,t,e),t[e])}},2092:(t,e,r)=>{"use strict";var n=r(7934),s=r(2952).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},4750:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},9341:(t,e,r)=>{"use strict";var n=r(4500),s=r(6447),i=r(1795),o=r(9766),a=r(4635),u=o("IE_PROTO"),c=Object,l=c.prototype;t.exports=a?c.getPrototypeOf:function(t){var e=i(t);if(n(e,u))return e[u];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof c?l:null}},8902:(t,e,r)=>{"use strict";var n=r(4120);t.exports=n({}.isPrototypeOf)},7934:(t,e,r)=>{"use strict";var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,a=r(4535),u=n([].push);t.exports=function(t,e){var r,n=i(t),c=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&u(l,r);for(;e.length>c;)s(n,r=e[c++])&&(~o(l,r)||u(l,r));return l}},7653:(t,e,r)=>{"use strict";var n=r(7934),s=r(2952);t.exports=Object.keys||function(t){return n(t,s)}},6007:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},4469:(t,e,r)=>{"use strict";var n=r(6419),s=r(1138),i=r(7757);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return s(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},158:(t,e,r)=>{"use strict";var n=r(3471),s=r(4696);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(t,e,r)=>{"use strict";var n=r(8922),s=r(6447),i=r(5744),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},3011:(t,e,r)=>{"use strict";var n=r(150),s=r(4120),i=r(2092),o=r(4750),a=r(1138),u=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?u(e,r(t)):e}},7545:t=>{"use strict";t.exports={}},7656:(t,e,r)=>{"use strict";var n=r(2760).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},3209:(t,e,r)=>{"use strict";var n=r(5646),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},1284:(t,e,r)=>{"use strict";var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),a=r(158),u=r(8182)("toStringTag");t.exports=function(t,e,r,c){if(t){var l=r?t:t.prototype;o(l,u)||s(l,u,{configurable:!0,value:e}),c&&!n&&i(l,"toString",a)}}},9766:(t,e,r)=>{"use strict";var n=r(8717),s=r(2759),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6434:(t,e,r)=>{"use strict";var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});t.exports=o},8717:(t,e,r)=>{"use strict";var n=r(5546),s=r(6434);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.0",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.0/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(t,e,r)=>{"use strict";var n=r(4120),s=r(1941),i=r(4845),o=r(3209),a=n("".charAt),u=n("".charCodeAt),c=n("".slice),l=function(t){return function(e,r){var n,l,f=i(o(e)),_=s(r),p=f.length;return _<0||_>=p?t?"":void 0:(n=u(f,_))<55296||n>56319||_+1===p||(l=u(f,_+1))<56320||l>57343?t?a(f,_):n:t?c(f,_,_+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6770:(t,e,r)=>{"use strict";var n=r(4218),s=r(6192),i=r(8576).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7739:(t,e,r)=>{"use strict";var n=r(1941),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},101:(t,e,r)=>{"use strict";var n=r(2202),s=r(3209);t.exports=function(t){return n(s(t))}},1941:(t,e,r)=>{"use strict";var n=r(7679);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8445:(t,e,r)=>{"use strict";var n=r(1941),s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},1795:(t,e,r)=>{"use strict";var n=r(3209),s=Object;t.exports=function(t){return s(n(t))}},7888:(t,e,r)=>{"use strict";var n=r(8922),s=r(5744),i=r(3236),o=r(5037),a=r(380),u=r(8182),c=TypeError,l=u("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,u=o(t,l);if(u){if(void 0===e&&(e="default"),r=n(u,t,e),!s(r)||i(r))return r;throw new c("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},77:(t,e,r)=>{"use strict";var n=r(7888),s=r(3236);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},3471:(t,e,r)=>{"use strict";var n={};n[r(8182)("toStringTag")]="z",t.exports="[object z]"===String(n)},4845:(t,e,r)=>{"use strict";var n=r(4696),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},9288:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},2759:(t,e,r)=>{"use strict";var n=r(4120),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},615:(t,e,r)=>{"use strict";var n=r(6770);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(t,e,r)=>{"use strict";var n=r(69),s=r(6192);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(t,e,r)=>{"use strict";var n=r(8576),s=r(6447),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8182:(t,e,r)=>{"use strict";var n=r(8576),s=r(8717),i=r(4500),o=r(2759),a=r(6770),u=r(615),c=n.Symbol,l=s("wks"),f=u?c.for||c:c&&c.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(c,t)?c[t]:f("Symbol."+t)),l[t]}},426:(t,e,r)=>{"use strict";var n=r(150),s=r(4500),i=r(8711),o=r(8902),a=r(4469),u=r(7987),c=r(7656),l=r(2643),f=r(6016),_=r(273),p=r(8266),h=r(69),m=r(5546);t.exports=function(t,e,r,d){var y="stackTraceLimit",g=d?2:1,b=t.split("."),v=b[b.length-1],w=n.apply(null,b);if(w){var E=w.prototype;if(!m&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=e((function(t,e){var r=f(d?e:t,void 0),n=d?new w(t):new w;return void 0!==r&&i(n,"message",r),p(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&_(n,arguments[g]),n}));if(S.prototype=E,"Error"!==v?a?a(S,x):u(S,x,{name:!0}):h&&y in w&&(c(S,w,y),c(S,w,"prepareStackTrace")),u(S,w),!m)try{E.name!==v&&i(E,"name",v),E.constructor=S}catch(t){}return S}}},4016:(t,e,r)=>{"use strict";var n=r(3085),s=r(150),i=r(6298),o=r(6192),a=r(426),u="AggregateError",c=s(u),l=!o((function(){return 1!==c([1]).errors[0]}))&&o((function(){return 7!==c([1],u,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(u,(function(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},3820:(t,e,r)=>{"use strict";var n=r(3085),s=r(8902),i=r(9341),o=r(4469),a=r(7987),u=r(2853),c=r(8711),l=r(774),f=r(273),_=r(8266),p=r(3442),h=r(6016),m=r(8182)("toStringTag"),d=Error,y=[].push,g=function(t,e){var r,n=s(b,this);o?r=o(new d,n?i(this):b):(r=n?this:u(b),c(r,m,"Error")),void 0!==e&&c(r,"message",h(e)),_(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return p(t,y,{that:a}),c(r,"errors",a),r};o?o(g,d):a(g,d,{name:!0});var b=g.prototype=u(d.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(t,e,r)=>{"use strict";r(3820)},8939:(t,e,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),a=r(2760).f,u=r(5297),c=r(7271),l=r(5546),f=r(69),_="Array Iterator",p=o.set,h=o.getterFor(_);t.exports=u(Array,"Array",(function(t,e){p(this,{type:_,target:n(t),index:0,kind:e})}),(function(){var t=h(this),e=t.target,r=t.kind,n=t.index++;if(!e||n>=e.length)return t.target=void 0,c(void 0,!0);switch(r){case"keys":return c(n,!1);case"values":return c(e[n],!1)}return c([n,e[n]],!1)}),"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(t){}},4339:(t,e,r)=>{"use strict";var n=r(3085),s=r(8576),i=r(6298),o=r(426),a="WebAssembly",u=s[a],c=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=o(t,e,c),n({global:!0,constructor:!0,arity:1,forced:c},r)},f=function(t,e){if(u&&u[t]){var r={};r[t]=o(a+"."+t,e,c),n({target:a,stat:!0,constructor:!0,arity:1,forced:c},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},5454:(t,e,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),a=r(7271),u="String Iterator",c=i.set,l=i.getterFor(u);o(String,"String",(function(t){c(this,{type:u,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},2752:(t,e,r)=>{"use strict";r(4242)},162:(t,e,r)=>{"use strict";r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),a=r(7771),u=r(8182)("toStringTag");for(var c in n){var l=s[c],f=l&&l.prototype;f&&i(f)!==u&&o(f,u,c),a[c]=a.Array}},5846:(t,e,r)=>{"use strict";r(2752);var n=r(6791);r(162),t.exports=n},9515:(t,e,r)=>{var n=r(8761)(r(7772),"DataView");t.exports=n},9612:(t,e,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,t.exports=u},235:(t,e,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),a=r(4769);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,t.exports=u},326:(t,e,r)=>{var n=r(8761)(r(7772),"Map");t.exports=n},6738:(t,e,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function u(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}u.prototype.clear=n,u.prototype.delete=s,u.prototype.get=i,u.prototype.has=o,u.prototype.set=a,t.exports=u},1985:(t,e,r)=>{var n=r(8761)(r(7772),"Promise");t.exports=n},2143:(t,e,r)=>{var n=r(8761)(r(7772),"Set");t.exports=n},5386:(t,e,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},6571:(t,e,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),u=r(1418);function c(t){var e=this.__data__=new n(t);this.size=e.size}c.prototype.clear=s,c.prototype.delete=i,c.prototype.get=o,c.prototype.has=a,c.prototype.set=u,t.exports=c},857:(t,e,r)=>{var n=r(7772).Symbol;t.exports=n},9162:(t,e,r)=>{var n=r(7772).Uint8Array;t.exports=n},3215:(t,e,r)=>{var n=r(8761)(r(7772),"WeakMap");t.exports=n},7552:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,s=0,i=[];++r<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}},1634:(t,e,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),u=r(7598),c=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),f=!r&&!l&&o(t),_=!r&&!l&&!f&&u(t),p=r||l||f||_,h=p?n(t.length,String):[],m=h.length;for(var d in t)!e&&!c.call(t,d)||p&&("length"==d||f&&("offset"==d||"parent"==d)||_&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,m))||h.push(d);return h}},5067:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}},7064:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},2218:(t,e,r)=>{var n=r(1225);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},1897:(t,e,r)=>{var n=r(5067),s=r(6152);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},3366:(t,e,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},5183:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},8746:(t,e,r)=>{var n=r(1952),s=r(5125);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},1952:(t,e,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),u=r(6152),c=r(3226),l=r(7598),f="[object Arguments]",_="[object Array]",p="[object Object]",h=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,m,d,y){var g=u(t),b=u(e),v=g?_:a(t),w=b?_:a(e),E=(v=v==f?p:v)==p,x=(w=w==f?p:w)==p,S=v==w;if(S&&c(t)){if(!c(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(t)?s(t,e,r,m,d,y):i(t,e,v,r,m,d,y);if(!(1&r)){var A=E&&h.call(t,"__wrapped__"),j=x&&h.call(e,"__wrapped__");if(A||j){var O=A?t.value():t,P=j?e.value():e;return y||(y=new n),d(O,P,r,m,y)}}return!!S&&(y||(y=new n),o(t,e,r,m,d,y))}},6840:(t,e,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),a=/^\[object .+?Constructor\]$/,u=Function.prototype,c=Object.prototype,l=u.toString,f=c.hasOwnProperty,_=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?_:a).test(o(t))}},5522:(t,e,r)=>{var n=r(3366),s=r(1158),i=r(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},6411:(t,e,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6473:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7826:t=>{t.exports=function(t){return function(e){return t(e)}}},9950:t=>{t.exports=function(t,e){return t.has(e)}},4019:(t,e,r)=>{var n=r(7772)["__core-js_shared__"];t.exports=n},4871:(t,e,r)=>{var n=r(5386),s=r(7064),i=r(9950);t.exports=function(t,e,r,o,a,u){var c=1&r,l=t.length,f=e.length;if(l!=f&&!(c&&f>l))return!1;var _=u.get(t),p=u.get(e);if(_&&p)return _==e&&p==t;var h=-1,m=!0,d=2&r?new n:void 0;for(u.set(t,e),u.set(e,t);++h<l;){var y=t[h],g=e[h];if(o)var b=c?o(g,y,h,e,t,u):o(y,g,h,t,e,u);if(void 0!==b){if(b)continue;m=!1;break}if(d){if(!s(e,(function(t,e){if(!i(d,e)&&(y===t||a(y,t,r,o,u)))return d.push(e)}))){m=!1;break}}else if(y!==g&&!a(y,g,r,o,u)){m=!1;break}}return u.delete(t),u.delete(e),m}},1491:(t,e,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),a=r(5179),u=r(4207),c=n?n.prototype:void 0,l=c?c.valueOf:void 0;t.exports=function(t,e,r,n,c,f,_){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var p=a;case"[object Set]":var h=1&n;if(p||(p=u),t.size!=e.size&&!h)return!1;var m=_.get(t);if(m)return m==e;n|=2,_.set(t,e);var d=o(p(t),p(e),n,c,f,_);return _.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},7416:(t,e,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,o,a){var u=1&r,c=n(t),l=c.length;if(l!=n(e).length&&!u)return!1;for(var f=l;f--;){var _=c[f];if(!(u?_ in e:s.call(e,_)))return!1}var p=a.get(t),h=a.get(e);if(p&&h)return p==e&&h==t;var m=!0;a.set(t,e),a.set(e,t);for(var d=u;++f<l;){var y=t[_=c[f]],g=e[_];if(i)var b=u?i(g,y,_,e,t,a):i(y,g,_,t,e,a);if(!(void 0===b?y===g||o(y,g,r,i,a):b)){m=!1;break}d||(d="constructor"==_)}if(m&&!d){var v=t.constructor,w=e.constructor;v==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof v&&v instanceof v&&"function"==typeof w&&w instanceof w||(m=!1)}return a.delete(t),a.delete(e),m}},1242:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},3483:(t,e,r)=>{var n=r(1897),s=r(633),i=r(249);t.exports=function(t){return n(t,i,s)}},7937:(t,e,r)=>{var n=r(8304);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},8761:(t,e,r)=>{var n=r(6840),s=r(8109);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},2107:(t,e,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},633:(t,e,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},940:(t,e,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),a=r(3215),u=r(3366),c=r(7035),l="[object Map]",f="[object Promise]",_="[object Set]",p="[object WeakMap]",h="[object DataView]",m=c(n),d=c(s),y=c(i),g=c(o),b=c(a),v=u;(n&&v(new n(new ArrayBuffer(1)))!=h||s&&v(new s)!=l||i&&v(i.resolve())!=f||o&&v(new o)!=_||a&&v(new a)!=p)&&(v=function(t){var e=u(t),r="[object Object]"==e?t.constructor:void 0,n=r?c(r):"";if(n)switch(n){case m:return h;case d:return l;case y:return f;case g:return _;case b:return p}return e}),t.exports=v},8109:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2118:(t,e,r)=>{var n=r(9191);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8138:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},4174:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},7942:(t,e,r)=>{var n=r(9191);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9045:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8304:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7394:(t,e,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},6001:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3945:t=>{t.exports=function(){this.__data__=[],this.size=0}},1846:(t,e,r)=>{var n=r(2218),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},8028:(t,e,r)=>{var n=r(2218);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},2344:(t,e,r)=>{var n=r(2218);t.exports=function(t){return n(this.__data__,t)>-1}},4769:(t,e,r)=>{var n=r(2218);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},2411:(t,e,r)=>{var n=r(9612),s=r(235),i=r(326);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(t,e,r)=>{var n=r(7937);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6928:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).get(t)}},9493:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).has(t)}},4150:(t,e,r)=>{var n=r(7937);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},5179:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},9191:(t,e,r)=>{var n=r(8761)(Object,"create");t.exports=n},4248:(t,e,r)=>{var n=r(241)(Object.keys,Object);t.exports=n},4146:(t,e,r)=>{t=r.nmd(t);var n=r(1242),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},7157:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},241:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},7772:(t,e,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},2842:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2482:t=>{t.exports=function(t){return this.__data__.has(t)}},4207:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},5243:(t,e,r)=>{var n=r(235);t.exports=function(){this.__data__=new n,this.size=0}},2858:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4417:t=>{t.exports=function(t){return this.__data__.get(t)}},8605:t=>{t.exports=function(t){return this.__data__.has(t)}},1418:(t,e,r)=>{var n=r(235),s=r(326),i=r(6738);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},7035:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1225:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9631:(t,e,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,u=n(function(){return arguments}())?n:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=u},6152:t=>{var e=Array.isArray;t.exports=e},7878:(t,e,r)=>{var n=r(1049),s=r(1158);t.exports=function(t){return null!=t&&s(t.length)&&!n(t)}},4335:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==n(t)}},3226:(t,e,r)=>{t=r.nmd(t);var n=r(7772),s=r(6330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,u=(a?a.isBuffer:void 0)||s;t.exports=u},8149:(t,e,r)=>{var n=r(8746);t.exports=function(t,e){return n(t,e)}},1049:(t,e,r)=>{var n=r(3366),s=r(9259);t.exports=function(t){if(!s(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1158:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5877:t=>{t.exports=function(t){return null===t}},537:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==n(t)}},9259:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5125:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},5505:(t,e,r)=>{var n=r(3366),s=r(6152),i=r(5125);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},7598:(t,e,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?s(o):n;t.exports=a},249:(t,e,r)=>{var n=r(1634),s=r(6411),i=r(7878);t.exports=function(t){return i(t)?n(t):s(t)}},1570:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},981:t=>{t.exports=function(){return[]}},6330:t=>{t.exports=function(){return!1}},1178:(t,e,r)=>{const n=r(1570);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),t.exports=i},3026:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5140:(t,e,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),a=r(9259),u=r(2947),c=r(3756);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=c.Element,this.KeyValuePair=c.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.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(i,c.NumberElement,!1).detect(o,c.BooleanElement,!1).detect(Array.isArray,c.ArrayElement,!1).detect(a,c.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new u(this)}}u.prototype.Namespace=l,t.exports=l},3853:(t,e,r)=>{const n=r(1570),s=r(1178);class i extends s{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},3756:(t,e,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),a=r(3312),u=r(1641),c=r(8858),l=r(3860),f=r(5202),_=r(2320),p=r(1178),h=r(3853),m=r(3026);function d(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new u(t.map(d));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=_,n.prototype.MemberElement=c,n.prototype.refract=d,p.prototype.refract=d,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:u,MemberElement:c,ObjectElement:l,LinkElement:f,RefElement:_,refract:d,ArraySlice:p,ObjectSlice:h,KeyValuePair:m}},5202:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},2320:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},7952:(t,e,r)=>{const n=r(5140),s=r(3756);e.lS=n,e.KeyValuePair=r(3026),e.O4=s.ArraySlice,e.rm=s.ObjectSlice,e.W_=s.Element,e.RP=s.StringElement,e.VL=s.NumberElement,e.hh=s.BooleanElement,e.zr=s.NullElement,e.ON=s.ArrayElement,e.Sb=s.ObjectElement,e.c6=s.MemberElement,e.tK=s.RefElement,e.EA=s.LinkElement,s.refract,r(2947),r(8910)},1641:(t,e,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=o},3312:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(t,e,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}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((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){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 e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},8858:(t,e,r)=>{const n=r(3026),s=r(6420);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},4152:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},3860:(t,e,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},9542:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(t,e,r)=>{const n=r(2947);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),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(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},2947:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},6591:t=>{!function(){"use strict";var e,r,n,s,i,o="properties",a="deepProperties",u="propertyDescriptors",c="staticProperties",l="staticDeepProperties",f="staticPropertyDescriptors",_="configuration",p="deepConfiguration",h="deepProps",m="deepStatics",d="deepConf",y="initializers",g="methods",b="composers",v="compose";function w(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function E(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var x=E.bind(0,(function(t,e){if(e)for(var r=w(e),n=0;n<r.length;n+=1)Object.defineProperty(t,r[n],Object.getOwnPropertyDescriptor(e,r[n]));return t}));function S(t){return"function"==typeof t}function A(t){return t&&"object"==typeof t||S(t)}function j(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var O=E.bind(0,(function t(r,n){if(n===e)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!j(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==e&&(r[s]=t(j(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function P(){return(r=Array.prototype.concat.apply([],arguments).filter((function(t,e,r){return S(t)&&r.indexOf(t)===e}))).length?r:e}function k(t,e){function n(r,n){A(e[r])&&(A(t[r])||(t[r]={}),(n||x)(t[r],e[r]))}function s(n){(r=P(t[n],e[n]))&&(t[n]=r)}return e&&A(e=e[v]||e)&&(n(g),n(o),n(a,O),n(u),n(c),n(l,O),n(f),n(_),n(p,O),s(y),s(b)),t}function N(){return function(t){return r=function t(r){var n,s,i=t[v]||{},c={__proto__:i[g]},l=i[y],f=Array.prototype.slice.apply(arguments),_=i[a];if(_&&O(c,_),(_=i[o])&&x(c,_),(_=i[u])&&Object.defineProperties(c,_),!l||!l.length)return c;for(r===e&&(r={}),i=0;i<l.length;)S(n=l[i++])&&(c=(s=n.call(c,r,{instance:c,stamp:t,args:f}))===e?c:s);return c},(n=t[l])&&O(r,n),(n=t[c])&&x(r,n),(n=t[f])&&Object.defineProperties(r,n),n=S(r[v])?r[v]:N,x(r[v]=function(){return n.apply(this,arguments)},t),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function I(t){return S(t)&&S(t[v])}var M={};function T(t,i){return function(){return(s={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}M[g]=T(g,x),M[o]=M.props=T(o,x),M[y]=M.init=T(y,P),M[b]=T(b,P),M[a]=M[h]=T(a,O),M[c]=M.statics=T(c,x),M[l]=M[m]=T(l,O),M[_]=M.conf=T(_,x),M[p]=M[d]=T(p,O),M[u]=T(u,x),M[f]=T(f,x),n=M[v]=x((function(){for(var t,w,E=0,S=[],j=arguments,k=this;E<j.length;)A(t=j[E++])&&S.push(I(t)?t:((s={})[g]=(w=t)[g]||e,n=w.props,s[o]=A((r=w[o])||n)?x({},n,r):e,s[y]=P(w.init,w[y]),s[b]=P(w[b]),n=w[h],s[a]=A((r=w[a])||n)?O({},n,r):e,s[u]=w[u],n=w.statics,s[c]=A((r=w[c])||n)?x({},n,r):e,n=w[m],s[l]=A((r=w[l])||n)?O({},n,r):e,r=w[f],s[f]=A((n=w.name&&{name:{value:w.name}})||r)?x({},r,n):e,n=w.conf,s[_]=A((r=w[_])||n)?x({},n,r):e,n=w[d],s[p]=A((r=w[p])||n)?O({},n,r):e,s));if(t=N.apply(k||i,S),k&&S.unshift(k),Array.isArray(j=t[v][b]))for(E=0;E<j.length;)t=I(k=j[E++]({stamp:t,composables:S}))?k:t;return t}),M),M.create=function(){return this.apply(e,arguments)},(s={})[c]=M,i=N(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof e?t.exports=n:self.stampit=n}()},9794:(t,e,r)=>{var n=void 0!==n?n:{},s=function(){var e,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return e||(n=Object.assign({},n,o),e=new Promise((e=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var u,c,l,f,_=[],p="./this.program",h=function(t,e){throw e};l="object"==typeof window,f="function"==typeof importScripts,u="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,c=!l&&!u&&!f;var m,d,y,g,b,v="";u?(v=f?r(6287).dirname(v)+"/":"//",m=function(t,e){return g||(g=r(5530)),b||(b=r(6287)),t=b.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=m(t,!0);return e.buffer||(e=new Uint8Array(e)),T(e.buffer),e},process.argv.length>1&&(p=process.argv[1].replace(/\\/g,"/")),_=process.argv.slice(2),t.exports=n,h=function(t){process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):c?("undefined"!=typeof read&&(m=function(t){return read(t)}),y=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(T("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?_=scriptArgs:void 0!==arguments&&(_=arguments),"function"==typeof quit&&(h=function(t){quit(t)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||f)&&(f?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",m=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},f&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(_=n.arguments),n.thisProgram&&(p=n.thisProgram),n.quit&&(h=n.quit);var E,x=16,S=[];function A(t,e){if(!E){E=new WeakMap;for(var r=0;r<X.length;r++){var n=X.get(r);n&&E.set(n,r)}}if(E.has(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{X.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return X.length-1}();try{X.set(s,t)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},s=1;s<e.length;++s)n.parameters.push(r[e[s]]);return new WebAssembly.Function(n,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.slice(1),u={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(u[a[s]]);"v"==o?i.push(0):i=i.concat([1,u[o]]),i[1]=i.length-2;var c=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(c);return new WebAssembly.Instance(l,{e:{f:t}}).exports.f}(t,e);X.set(s,i)}return E.set(t,s),s}var j,O=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var P,k=n.noExitRuntime||!0;function N(t,e,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[t>>0]=e;break;case"i16":L[t>>1]=e;break;case"i32":q[t>>2]=e;break;case"i64":lt=[e>>>0,(ct=e,+Math.abs(ct)>=1?ct>0?(0|Math.min(+Math.floor(ct/4294967296),4294967295))>>>0:~~+Math.ceil((ct-+(~~ct>>>0))/4294967296)>>>0:0)],q[t>>2]=lt[0],q[t+4>>2]=lt[1];break;case"float":z[t>>2]=e;break;case"double":V[t>>3]=e;break;default:at("invalid type for setValue: "+r)}}function I(t,e,r){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return C[t>>0];case"i16":return L[t>>1];case"i32":case"i64":return q[t>>2];case"float":return z[t>>2];case"double":return V[t>>3];default:at("invalid type for getValue: "+e)}return null}"object"!=typeof WebAssembly&&at("no native wasm support detected");var M=!1;function T(t,e){t||at("Assertion failed: "+e)}var R,C,F,L,q,z,V,D="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function U(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.subarray&&D)return D.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var u=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|u:(7&o)<<18|a<<12|u<<6|63&t[e++])<65536)i+=String.fromCharCode(o);else{var c=o-65536;i+=String.fromCharCode(55296|c>>10,56320|1023&c)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function B(t,e){return t?U(F,t,e):""}function $(t,e,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function W(t,e,r){return $(t,F,e,r)}function G(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function K(t){var e=G(t)+1,r=Bt(e);return $(t,C,r,e),r}function Z(t){R=t,n.HEAP8=C=new Int8Array(t),n.HEAP16=L=new Int16Array(t),n.HEAP32=q=new Int32Array(t),n.HEAPU8=F=new Uint8Array(t),n.HEAPU16=new Uint16Array(t),n.HEAPU32=new Uint32Array(t),n.HEAPF32=z=new Float32Array(t),n.HEAPF64=V=new Float64Array(t)}var H=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=P.buffer),H=R.byteLength,Z(R);var X=new WebAssembly.Table({initial:17,element:"anyfunc"}),J=[],Y=[],Q=[],tt=[],et=!1,rt=0,nt=null,st=null;function it(t){rt++,n.monitorRunDependencies&&n.monitorRunDependencies(rt)}function ot(t){if(rt--,n.monitorRunDependencies&&n.monitorRunDependencies(rt),0==rt&&(null!==nt&&(clearInterval(nt),nt=null),st)){var e=st;st=null,e()}}function at(t){throw n.onAbort&&n.onAbort(t),w(t+=""),M=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ut,ct,lt;function ft(t){return t.startsWith("data:application/octet-stream;base64,")}function _t(t){return t.startsWith("file://")}function pt(t){try{if(t==ut&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}ft(ut="tree-sitter.wasm")||(ut=function(t){return n.locateFile?n.locateFile(t,v):v+t}(ut));var ht={},mt={get:function(t,e){return ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),ht[e]}};function dt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?X.get(r)():X.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}function yt(t){var e=0;function r(){for(var r=0,n=1;;){var s=t[e++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(t instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(t,"dylink");T(0!=n.length,"need dylink section"),t=new Int8Array(n[0])}else T(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===t[8],"need the dylink section to be first"),e=9,r(),T(6===t[e]),T(t[++e]==="d".charCodeAt(0)),T(t[++e]==="y".charCodeAt(0)),T(t[++e]==="l".charCodeAt(0)),T(t[++e]==="i".charCodeAt(0)),T(t[++e]==="n".charCodeAt(0)),T(t[++e]==="k".charCodeAt(0)),e++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),u=t.subarray(e,e+a);e+=a;var c=U(u,0);s.neededDynlibs.push(c)}return s}var gt=0;function bt(){return k||gt>0}function vt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var r in t)if(t.hasOwnProperty(r)){qt.hasOwnProperty(r)||(qt[r]=t[r]);var s=vt(r);n.hasOwnProperty(s)||(n[s]=t[r])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var r={};for(var n in t){var s=t[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),r[n]=s}return function(t){for(var e in t)if(!St(e)){var r=!1,n=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],r=!0),ht[e]||(ht[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==ht[e].value)&&("function"==typeof n?ht[e].value=A(n):"number"==typeof n?ht[e].value=n:w("unhandled export type for `"+e+"`: "+typeof n))}}(r),r}function jt(t,e){var r,s;return e&&(r=qt["orig$"+t]),r||(r=qt[t]),r||(r=n[vt(t)]),!r&&t.startsWith("invoke_")&&(s=t.split("_")[1],r=function(){var t=Dt();try{return function(t,e,r){return t.includes("j")?function(t,e,r){var s=n["dynCall_"+t];return r&&r.length?s.apply(null,[e].concat(r)):s.call(null,e)}(t,e,r):X.get(e).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Ut(t),e!==e+0&&"longjmp"!==e)throw e;$t(1,0)}}),r}function Ot(t,e){var r=yt(t);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(t){if(et)return zt(t);var e=xt,r=e+t+15&-16;return xt=r,ht.__heap_base.value=r,e}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),u=X.length;X.grow(r.tableSize);for(var c=a;c<a+r.memorySize;c++)C[c]=0;for(c=u;c<u+r.tableSize;c++)X.set(c,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return u}return e in qt?qt[e]:(e in t||(t[e]=function(){return r||(r=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),r.apply(null,arguments)}),t[e]);var r}}),f={"GOT.mem":new Proxy({},mt),"GOT.func":new Proxy({},mt),env:l,wasi_snapshot_preview1:l};function _(t){for(var n=0;n<r.tableSize;n++){var s=X.get(u+n);s&&E.set(s,u+n)}o=At(t.exports,a),e.allowUndefined||kt();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():Y.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var p=new WebAssembly.Instance(t,f);return Promise.resolve(_(p))}return WebAssembly.instantiate(t,f).then((function(t){return _(t.instance)}))}var h=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return _(p=new WebAssembly.Instance(h,f))}return e.loadAsync?r.neededDynlibs.reduce((function(t,r){return t.then((function(){return Pt(r,e)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(t){Pt(t,e)})),n())}function Pt(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var r,s=Et.loadedLibNames[t];if(s)return r=Et.loadedLibs[s],e.global&&!r.global&&(r.global=!0,"loading"!==r.module&&wt(r.module)),e.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var r=e.fs.readFile(t,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),e.loadAsync?Promise.resolve(r):r}return e.loadAsync?(n=t,fetch(n,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+n+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[t]){var r=n.preloadedWasm[t];return e.loadAsync?Promise.resolve(r):r}return e.loadAsync?i(t).then((function(t){return Ot(t,e)})):Ot(i(t),e)}function a(t){r.global&&wt(t),r.module=t}return s=Et.nextHandle++,r={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=r,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function kt(){for(var t in ht)if(0==ht[t].value){var e=jt(t,!0);"function"==typeof e?ht[t].value=A(e,e.sig):"number"==typeof e?ht[t].value=e:T(!1,"bad export type for `"+t+"`: "+typeof e)}}n.___heap_base=xt;var Nt,It=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Mt(){at()}n._abort=Mt,Mt.sig="v",Nt=u?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Tt(t,e){var r;if(0===t)r=Date.now();else{if(1!==t&&4!==t)return 28,q[Vt()>>2]=28,-1;r=Nt()}return q[e>>2]=r/1e3|0,q[e+4>>2]=r%1e3*1e3*1e3|0,0}function Rt(t){try{return P.grow(t-R.byteLength+65535>>>16),Z(P.buffer),1}catch(t){}}function Ct(t){Zt(t)}function Ft(t){}Tt.sig="iii",Ct.sig="vi",Ft.sig="vi";var Lt,qt={__heap_base:xt,__indirect_function_table:X,__memory_base:1024,__stack_pointer:It,__table_base:1,abort:Mt,clock_gettime:Tt,emscripten_memcpy_big:function(t,e,r){F.copyWithin(t,e,e+r)},emscripten_resize_heap:function(t){var e,r=F.length;if((t>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),Rt(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Ct,memory:P,setTempRet0:Ft,tree_sitter_log_callback:function(t,e){if(ce){const r=B(e);ce(r,0!==t)}},tree_sitter_parse_callback:function(t,e,r,n,s){var i=ue(e,{row:r,column:n});"string"==typeof i?(N(s,i.length,"i32"),function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*t.length?r/2:t.length,s=0;s<n;++s){var i=t.charCodeAt(s);L[e>>1]=i,e+=2}L[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},zt=(function(){var t={env:qt,wasi_snapshot_preview1:qt,"GOT.mem":new Proxy(qt,mt),"GOT.func":new Proxy(qt,mt)};function e(t,e){var r=t.exports;r=At(r,1024),n.asm=r;var s,i=yt(e);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),wt(r),s=n.asm.__wasm_call_ctors,Y.unshift(s),ot()}function r(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||f)){if("function"==typeof fetch&&!_t(ut))return fetch(ut,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ut+"'";return t.arrayBuffer()})).catch((function(){return pt(ut)}));if(d)return new Promise((function(t,e){d(ut,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return pt(ut)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),at(t)}))}if(it(),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||ft(ut)||_t(ut)||"function"!=typeof fetch?s(r):fetch(ut,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return(zt=n._malloc=n.asm.malloc).apply(null,arguments)}),Vt=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Vt=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Dt=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(Dt=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ut=n.stackRestore=function(){return(Ut=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Bt=n.stackAlloc=function(){return(Bt=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},$t=n._setThrew=function(){return($t=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Wt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(t,e){var r;return r=1==e?Bt(t.length):zt(t.length),t.subarray||t.slice?F.set(t,r):F.set(new Uint8Array(t),r),r},st=function t(){Lt||Kt(),Lt||(st=t)};var Gt=!1;function Kt(t){function e(){Lt||(Lt=!0,n.calledRun=!0,M||(et=!0,dt(Y),dt(Q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ht&&function(t){var e=n._main;if(e){var r=(t=t||[]).length+1,s=Bt(4*(r+1));q[s>>2]=K(p);for(var i=1;i<r;i++)q[(s>>2)+i]=K(t[i-1]);q[(s>>2)+r]=0;try{Zt(e(r,s),!0)}catch(t){if(t instanceof Wt)return;if("unwind"==t)return;var o=t;t&&"object"==typeof t&&t.stack&&(o=[t,t.stack]),w("exception thrown: "+o),h(1,t)}}}(t),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),tt.unshift(t);var t;dt(tt)}()))}t=t||_,rt>0||!Gt&&(function(){if(O.length){if(!y)return it(),void O.reduce((function(t,e){return t.then((function(){return Pt(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ot(),kt()}));O.forEach((function(t){Pt(t,{global:!0,nodelete:!0,allowUndefined:!0})})),kt()}else kt()}(),Gt=!0,rt>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),J.unshift(t);var t;dt(J)}(),rt>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}function Zt(t,e){e&&bt()&&0===t||(bt()||(n.onExit&&n.onExit(t),M=!0),h(t,new Wt(t)))}if(n.run=Kt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ht=!0;n.noInitialRun&&(Ht=!1),Kt();const Xt=n,Jt={},Yt=4,Qt=5*Yt,te=2*Yt,ee=2*Yt+2*te,re={row:0,column:0},ne=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ue,ce;class le{static init(){ae=Xt._ts_init(),ie=I(ae,"i32"),oe=I(ae+Yt,"i32")}initialize(){Xt._ts_parser_new_wasm(),this[0]=I(ae,"i32"),this[1]=I(ae+Yt,"i32")}delete(){Xt._ts_parser_delete(this[0]),Xt._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let e;if(t){if(t.constructor!==he)throw new Error("Argument must be a Language");{e=t[0];const r=Xt._ts_language_version(e);if(r<oe||ie<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Xt._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,r){if("string"==typeof t)ue=(e,r,n)=>t.slice(e,n);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ue=t}this.logCallback?(ce=this.logCallback,Xt._ts_parser_enable_logger_wasm(this[0],1)):(ce=null,Xt._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let t=s=Xt._calloc(n,ee);for(let e=0;e<n;e++)je(t,r.includedRanges[e]),t+=ee}const i=Xt._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,n);if(!i)throw ue=null,ce=null,new Error("Parsing failed");const o=new fe(Jt,i,this.language,ue);return ue=null,ce=null,o}reset(){Xt._ts_parser_reset(this[0])}setTimeoutMicros(t){Xt._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Xt._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class fe{constructor(t,e,r,n){ge(t),this[0]=e,this.language=r,this.textCallback=n}copy(){const t=Xt._ts_tree_copy(this[0]);return new fe(Jt,t,this.language,this.textCallback)}delete(){Xt._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Yt,t.oldEndIndex,"i32"),N(e+=Yt,t.newEndIndex,"i32"),e+=Yt}(t),Xt._ts_tree_edit_wasm(this[0])}get rootNode(){return Xt._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==fe)throw new TypeError("Argument must be a Tree");Xt._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=I(ae,"i32"),r=I(ae+Yt,"i32"),n=new Array(e);if(e>0){let t=r;for(let r=0;r<e;r++)n[r]=Oe(t),t+=ee;Xt._free(r)}return n}}class _e{constructor(t,e){ge(t),this.tree=e}get typeId(){return ve(this),Xt._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return ve(this),Xt._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return ve(this),Xt._ts_node_end_index_wasm(this.tree[0])}get text(){return de(this.tree,this.startIndex,this.endIndex)}isNamed(){return ve(this),1===Xt._ts_node_is_named_wasm(this.tree[0])}hasError(){return ve(this),1===Xt._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return ve(this),1===Xt._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return ve(this),1===Xt._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return ve(this),Xt._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return ve(this),Xt._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return ve(this),Xt._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return ve(this),Xt._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return ve(this),Xt._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){ve(this),Xt._ts_node_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Yt,"i32");if(this._children=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,r),r+=Qt;Xt._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){ve(this),Xt._ts_node_named_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Yt,"i32");if(this._namedChildren=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,r),r+=Qt;Xt._free(e)}}return this._namedChildren}descendantsOfType(t,e,r){Array.isArray(t)||(t=[t]),e||(e=re),r||(r=re);const n=[],s=this.tree.language.types;for(let e=0,r=s.length;e<r;e++)t.includes(s[e])&&n.push(e);const i=Xt._malloc(Yt*n.length);for(let t=0,e=n.length;t<e;t++)N(i+t*Yt,n[t],"i32");ve(this),Xt._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,e.row,e.column,r.row,r.column);const o=I(ae,"i32"),a=I(ae+Yt,"i32"),u=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)u[e]=we(this.tree,t),t+=Qt}return Xt._free(a),Xt._free(i),u}get nextSibling(){return ve(this),Xt._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return ve(this),Xt._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return ve(this),Xt._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return ve(this),Xt._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return ve(this),Xt._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");ve(this);let r=ae+Qt;return N(r,t,"i32"),N(r+Yt,e,"i32"),Xt._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");ve(this);let r=ae+Qt;return N(r,t,"i32"),N(r+Yt,e,"i32"),Xt._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!be(t)||!be(e))throw new Error("Arguments must be {row, column} objects");ve(this);let r=ae+Qt;return Se(r,t),Se(r+te,e),Xt._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!be(t)||!be(e))throw new Error("Arguments must be {row, column} objects");ve(this);let r=ae+Qt;return Se(r,t),Se(r+te,e),Xt._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return ve(this),Xt._ts_tree_cursor_new_wasm(this.tree[0]),new pe(Jt,this.tree)}toString(){ve(this);const t=Xt._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var r=F[t++>>0];if(!r)return e;e+=String.fromCharCode(r)}}(t);return Xt._free(t),e}}class pe{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Xt._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){ve(t),Ee(this,ae+Qt),Xt._ts_tree_cursor_reset_wasm(this.tree[0]),xe(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ee(this),Xt._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Xt._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Xt._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Xt._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Xt._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Xt._ts_tree_cursor_end_index_wasm(this.tree[0]);return de(this.tree,t,e)}get startPosition(){return Ee(this),Xt._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Xt._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Xt._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Xt._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Xt._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Xt._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Xt._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Xt._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Xt._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xe(this),1===t}}class he{constructor(t,e){ge(t),this[0]=e,this.types=new Array(Xt._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Xt._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=B(Xt._ts_language_symbol_name(this[0],t)));this.fields=new Array(Xt._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Xt._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?B(e):null}}get version(){return Xt._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const r=G(t),n=Xt._malloc(r+1);W(t,n,r+1);const s=Xt._ts_language_symbol_for_name(this[0],n,r,e);return Xt._free(n),s||null}get nodeTypeCount(){return Xt._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Xt._ts_language_symbol_name(this[0],t);return e?B(e):null}nodeTypeIsNamed(t){return!!Xt._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Xt._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=G(t),r=Xt._malloc(e+1);W(t,r,e+1);const n=Xt._ts_query_new(this[0],r,e,ae,ae+Yt);if(!n){const e=I(ae+Yt,"i32"),n=B(r,I(ae,"i32")).length,s=t.substr(n,100).split("\n")[0];let i,o=s.match(ne)[0];switch(e){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Xt._free(r),i}const s=Xt._ts_query_string_count(n),i=Xt._ts_query_capture_count(n),o=Xt._ts_query_pattern_count(n),a=new Array(i),u=new Array(s);for(let t=0;t<i;t++){const e=Xt._ts_query_capture_name_for_id(n,t,ae),r=I(ae,"i32");a[t]=B(e,r)}for(let t=0;t<s;t++){const e=Xt._ts_query_string_value_for_id(n,t,ae),r=I(ae,"i32");u[t]=B(e,r)}const c=new Array(o),l=new Array(o),f=new Array(o),_=new Array(o),p=new Array(o);for(let t=0;t<o;t++){const e=Xt._ts_query_predicates_for_pattern(n,t,ae),r=I(ae,"i32");_[t]=[],p[t]=[];const s=[];let i=e;for(let e=0;e<r;e++){const e=I(i,"i32"),r=I(i+=Yt,"i32");if(i+=Yt,1===e)s.push({type:"capture",name:a[r]});else if(2===e)s.push({type:"string",value:u[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const e=s[0].value;let r=!0;switch(e){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const e=s[1].name,n=s[2].name;p[t].push((function(t){let s,i;for(const r of t)r.name===e&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const e=s[1].name,n=s[2].value;p[t].push((function(t){for(const s of t)if(s.name===e)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);p[t].push((function(t){for(const e of t)if(e.name===n)return i.test(e.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');c[t]||(c[t]={}),c[t][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 \`#${e}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error(`Arguments to \`#${e}\` predicate must be a strings.".`);const o="is?"===e?l:f;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:_[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(c[t]),Object.freeze(l[t]),Object.freeze(f[t])}return Xt._free(r),new me(Jt,n,a,p,_,Object.freeze(c),Object.freeze(l),Object.freeze(f))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const n=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=r(5530);e=Promise.resolve(t.readFileSync(n))}else e=fetch(n).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const r=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Ot;return e.then((t=>n(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),r=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const n=t[r]();return new he(Jt,n)}))}}class me{constructor(t,e,r,n,s,i,o,a){ge(t),this[0]=e,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Xt._ts_query_delete(this[0]),this[0]=0}matches(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");ve(t),Xt._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Yt,"i32"),a=I(ae+2*Yt,"i32"),u=new Array(i);this.exceededMatchLimit=!!a;let c=0,l=o;for(let e=0;e<i;e++){const r=I(l,"i32"),n=I(l+=Yt,"i32");l+=Yt;const s=new Array(n);if(l=ye(this,t.tree,l,s),this.textPredicates[r].every((t=>t(s)))){u[c++]={pattern:r,captures:s};const t=this.setProperties[r];t&&(u[e].setProperties=t);const n=this.assertedProperties[r];n&&(u[e].assertedProperties=n);const i=this.refutedProperties[r];i&&(u[e].refutedProperties=i)}}return u.length=c,Xt._free(o),u}captures(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");ve(t),Xt._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Yt,"i32"),a=I(ae+2*Yt,"i32"),u=[];this.exceededMatchLimit=!!a;const c=[];let l=o;for(let e=0;e<i;e++){const e=I(l,"i32"),r=I(l+=Yt,"i32"),n=I(l+=Yt,"i32");if(l+=Yt,c.length=r,l=ye(this,t.tree,l,c),this.textPredicates[e].every((t=>t(c)))){const t=c[n],r=this.setProperties[e];r&&(t.setProperties=r);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),u.push(t)}}return Xt._free(o),u}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function de(t,e,r){const n=r-e;let s=t.textCallback(e,null,r);for(e+=s.length;e<r;){const n=t.textCallback(e,null,r);if(!(n&&n.length>0))break;e+=n.length,s+=n}return e>r&&(s=s.slice(0,n)),s}function ye(t,e,r,n){for(let s=0,i=n.length;s<i;s++){const i=I(r,"i32"),o=we(e,r+=Yt);r+=Qt,n[s]={name:t.captureNames[i],node:o}}return r}function ge(t){if(t!==Jt)throw new Error("Illegal constructor")}function be(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function ve(t){let e=ae;N(e,t.id,"i32"),N(e+=Yt,t.startIndex,"i32"),N(e+=Yt,t.startPosition.row,"i32"),N(e+=Yt,t.startPosition.column,"i32"),N(e+=Yt,t[0],"i32")}function we(t,e=ae){const r=I(e,"i32");if(0===r)return null;const n=I(e+=Yt,"i32"),s=I(e+=Yt,"i32"),i=I(e+=Yt,"i32"),o=I(e+=Yt,"i32"),a=new _e(Jt,t);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Yt,t[0],"i32"),N(e+1*Yt,t[1],"i32"),N(e+2*Yt,t[2],"i32")}function xe(t){t[0]=I(ae+0*Yt,"i32"),t[1]=I(ae+1*Yt,"i32"),t[2]=I(ae+2*Yt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Yt,e.column,"i32")}function Ae(t){return{row:I(t,"i32"),column:I(t+Yt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Yt,e.endIndex,"i32"),t+=Yt}function Oe(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=I(t,"i32"),t+=Yt,e.endIndex=I(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=he,n.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},5530:()=>{},6287:()=>{},1427:(t,e,r)=>{t.exports=r(6762)}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return r.d(e,{a:e}),e},r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!t;)t=n[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>On,detectionRegExp:()=>En,lexicalAnalysis:()=>Jt,mediaTypes:()=>jn,namespace:()=>wn,parse:()=>Pn,syntacticAnalysis:()=>Mr,syntacticAnalysisDirect:()=>Mr,syntacticAnalysisIndirect:()=>vn});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>Ke,includesClasses:()=>He,includesSymbols:()=>Ze,isAnnotationElement:()=>Ue,isArrayElement:()=>qe,isBooleanElement:()=>Fe,isCommentElement:()=>Be,isElement:()=>Me,isLinkElement:()=>Ve,isMemberElement:()=>ze,isNullElement:()=>Ce,isNumberElement:()=>Re,isObjectElement:()=>Le,isParseResultElement:()=>$e,isPrimitiveElement:()=>Ge,isRefElement:()=>De,isSourceMapElement:()=>We,isStringElement:()=>Te});var e=r(9794),s=r.n(e);function i(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function o(t){return function e(r){return 0===arguments.length||i(r)?e:t.apply(this,arguments)}}function a(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return i(r)?e:o((function(e){return t(r,e)}));default:return i(r)&&i(n)?e:i(r)?o((function(e){return t(e,n)})):i(n)?o((function(e){return t(r,e)})):t(r,n)}}}const u=o((function(t){return null==t}));var c=a((function(t,e){return!u(e)&&t in e}));const l=c;function f(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,s){return e.apply(this,arguments)};case 5:return function(t,r,n,s,i){return e.apply(this,arguments)};case 6:return function(t,r,n,s,i,o){return e.apply(this,arguments)};case 7:return function(t,r,n,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,r,n,s,i,o,a,u){return e.apply(this,arguments)};case 9:return function(t,r,n,s,i,o,a,u,c){return e.apply(this,arguments)};case 10:return function(t,r,n,s,i,o,a,u,c,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function _(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function p(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return i(r)?e:a((function(e,n){return t(r,e,n)}));case 2:return i(r)&&i(n)?e:i(r)?a((function(e,r){return t(e,n,r)})):i(n)?a((function(e,n){return t(r,e,n)})):o((function(e){return t(r,n,e)}));default:return i(r)&&i(n)&&i(s)?e:i(r)&&i(n)?a((function(e,r){return t(e,r,s)})):i(r)&&i(s)?a((function(e,r){return t(e,n,r)})):i(n)&&i(s)?a((function(e,n){return t(r,e,n)})):i(r)?o((function(e){return t(e,n,s)})):i(n)?o((function(e){return t(r,e,s)})):i(s)?o((function(e){return t(r,n,e)})):t(r,n,s)}}}const h=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function m(t){return"[object String]"===Object.prototype.toString.call(t)}const d=o((function(t){return!!h(t)||!!t&&("object"==typeof t&&(!m(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var y="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function g(t,e,r){return function(n,s,i){if(d(i))return t(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(n,s,i,"fantasy-land/reduce");if(null!=i[y])return r(n,s,i[y]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return e(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function b(t,e,r){for(var n=0,s=r.length;n<s;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const v=a((function(t,e){return f(t.length,(function(){return t.apply(e,arguments)}))}));function w(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function E(t,e,r,n){return t["@@transducer/result"](r[n](v(t["@@transducer/step"],t),e))}const x=g(b,E,w);var S=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();const A=p((function(t,e,r){return x("function"==typeof t?new S(t):t,e,r)}));function j(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return h(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const O=p(j("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const P=o(j("tail",O(1,1/0)));function k(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return f(arguments[0].length,A(_,arguments[0],P(arguments)))}const N=o((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));const I="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var M=function(t,e){switch(arguments.length){case 0:return M;case 1:return function e(r){return 0===arguments.length?e:I(t,r)};default:return I(t,e)}};const T=M;function R(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function C(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function F(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var L=Object.prototype.toString;const q=function(){return"[object Arguments]"===L.call(arguments)?function(t){return"[object Arguments]"===L.call(t)}:function(t){return F("callee",t)}}();var z=!{toString:null}.propertyIsEnumerable("toString"),V=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],D=function(){return arguments.propertyIsEnumerable("length")}(),U=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1},B="function"!=typeof Object.keys||D?o((function(t){if(Object(t)!==t)return[];var e,r,n=[],s=D&&q(t);for(e in t)!F(e,t)||s&&"length"===e||(n[n.length]=e);if(z)for(r=V.length-1;r>=0;)F(e=V[r],t)&&!U(n,e)&&(n[n.length]=e),r-=1;return n})):o((function(t){return Object(t)!==t?[]:Object.keys(t)}));const $=B;function W(t,e,r,n){var s=R(t);function i(t,e){return G(t,e,r.slice(),n.slice())}return!C((function(t,e){return!C(i,e,t)}),R(e),s)}function G(t,e,r,n){if(I(t,e))return!0;var s,i,o=N(t);if(o!==N(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!I(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!I(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&W(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&W(t.values(),e.values(),r.concat([t]),n.concat([e]));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 u=$(t);if(u.length!==$(e).length)return!1;var c=r.concat([t]),l=n.concat([e]);for(a=u.length-1;a>=0;){var f=u[a];if(!F(f,e)||!G(e[f],t[f],c,l))return!1;a-=1}return!0}const K=a((function(t,e){return G(t,e,[],[])}));function Z(t,e){return function(t,e,r){var n,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(s=t[r])&&1/s===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(s=t[r])&&s!=s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(K(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function H(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function X(t){return'"'+t.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 J=function(t){return(t<10?"0":"")+t};const Y="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+J(t.getUTCMonth()+1)+"-"+J(t.getUTCDate())+"T"+J(t.getUTCHours())+":"+J(t.getUTCMinutes())+":"+J(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Q(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function tt(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!h(n)){for(var s=0;s<t.length;){if("function"==typeof n[t[s]])return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function et(t){return"[object Object]"===Object.prototype.toString.call(t)}const rt=function(){return this.xf["@@transducer/init"]()},nt=function(t){return this.xf["@@transducer/result"](t)};var st=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=rt,t.prototype["@@transducer/result"]=nt,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function it(t){return function(e){return new st(t,e)}}const ot=a(tt(["fantasy-land/filter","filter"],it,(function(t,e){return et(e)?Q((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},$(e)):function(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}(t,e)})));const at=a((function(t,e){return ot((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function ut(t,e){var r=function(r){var n=e.concat([t]);return Z(r,n)?"<Circular>":ut(r,n)},n=function(t,e){return H((function(e){return X(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+H(r,t).join(", ")+"))";case"[object Array]":return"["+H(r,t).concat(n(t,at((function(t){return/^\d+$/.test(t)}),$(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):X(Y(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":X(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+n(t,$(t)).join(", ")+"}"}}const ct=o((function(t){return ut(t,[])})),lt=Number.isInteger||function(t){return t<<0===t};const ft=a((function(t,e){var r=t<0?e.length+t:t;return m(e)?e.charAt(r):e[r]}));const _t=a((function(t,e){return t.map((function(t){for(var r,n=e,s=0;s<t.length;){if(null==n)return;r=t[s],n=lt(r)?ft(r,n):n[r],s+=1}return n}))}));const pt=a((function(t,e){return _t([t],e)[0]}));const ht=p((function(t,e,r){return t(pt(e,r))}));const mt=a((function(t,e){return t&&e}));function dt(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function yt(t,e,r,n){return r[n](t,e)}const gt=g(Q,yt,dt);var bt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=rt,t.prototype["@@transducer/result"]=nt,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const vt=function(t){return function(e){return new bt(t,e)}};function wt(t,e,r){return function(){for(var n=[],s=0,o=t,a=0,u=!1;a<e.length||s<arguments.length;){var c;a<e.length&&(!i(e[a])||s>=arguments.length)?c=e[a]:(c=arguments[s],s+=1),n[a]=c,i(c)?u=!0:o-=1,a+=1}return!u&&o<=0?r.apply(this,n):f(Math.max(0,o),wt(t,n,r))}}const Et=a((function(t,e){return 1===t?o(e):f(t,wt(t,[],e))}));const xt=a(tt(["fantasy-land/map","map"],vt,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return Et(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return Q((function(r,n){return r[n]=t(e[n]),r}),{},$(e));default:return H(t,e)}})));const St=a((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:gt((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}(t,xt(r,e))}),[],t)}));const At=a((function(t,e){var r=Et(t,e);return Et(t,(function(){return Q(St,xt(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const jt=o((function(t){return At(t.length,t)}));var Ot=a((function(t,e){return function(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:jt(mt)(t,e)}));const Pt=Ot;const kt=K(null);const Nt=jt(o((function(t){return!t})));var It=Nt(kt);function Mt(t){return Mt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Mt(t)}const Tt=Et(1,Pt(It,(function(t){return"object"===Mt(t)})));const Rt=a((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=ct(t),o=r(i,ct(e));return void 0!==o&&o===i?t:e}));const Ct=a((function(t,e){if(null!=e)return lt(t)?ft(t,e):e[t]}));const Ft=a((function(t,e){return xt(Ct(t),e)}));const Lt=o((function(t){return Et(A(Rt,0,Ft("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));const qt=Et(1,k(N,T("GeneratorFunction")));const zt=Et(1,k(N,T("AsyncFunction")));const Vt=Lt([k(N,T("Function")),qt,zt]);var Dt=k(N,T("Object")),Ut=ht(Pt(Vt,k(ct,K(ct(Object)))),["constructor"]);const Bt=Et(1,(function(t){if(!Tt(t)||!Dt(t))return!1;var e=Object.getPrototypeOf(t);return!!kt(e)||Ut(e)}));var $t=r(1427);const Wt=class extends $t{constructor(t,e,r){if(super(t,e,r),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,Bt(r)&&l("cause",r)&&!l("cause",this)){const{cause:t}=r;this.cause=t,t instanceof Error&&l("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}};class Gt extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(Wt,t)}constructor(t,e){if(super(t,e),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,Bt(e)&&l("cause",e)&&!l("cause",this)){const{cause:t}=e;this.cause=t,t instanceof Error&&l("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}}const Kt=Gt,Zt=r.p+"13ee407b2f9bd26c94370902ddeb5bcf.wasm";let Ht=null,Xt=null;const Jt=async t=>{if(null===Ht&&null===Xt)Xt=s().init().then((()=>s().Language.load(Zt))).then((t=>{const e=new(s());return e.setLanguage(t),e})).finally((()=>{Xt=null})),Ht=await Xt;else if(null===Ht&&null!==Xt)Ht=await Xt;else if(null===Ht)throw new Kt("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return Ht.parse(t)};var Yt=a((function(t,e){for(var r={},n={},s=0,i=t.length;s<i;)n[t[s]]=1,s+=1;for(var o in e)n.hasOwnProperty(o)||(r[o]=e[o]);return r}));const Qt=Yt;const te=class extends Kt{constructor(t,e){super(t,e),void 0!==e&&Object.assign(this,Qt(["cause"],e))}},ee=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},re={},ne=t=>null==t?void 0:t.type,se=t=>"string"==typeof ne(t),ie=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),oe=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=re,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=ee,nodeTypeGetter:u=ne,nodePredicate:c=se,nodeCloneFn:l=ie,detectCycles:f=!0}={})=>{const _=r||{};let p,h,m=Array.isArray(t),d=[t],y=-1,g=[],b=t;const v=[],w=[];do{y+=1;const t=y===d.length;let r;const x=t&&0!==g.length;if(t){if(r=0===w.length?void 0:v.pop(),b=h,h=w.pop(),x)if(m){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=p.index,d=p.keys,g=p.edits,m=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(r=m?y:d[y],b=h[r],b===i||void 0===b)continue;v.push(r)}if(w.includes(b))continue;let S;if(!Array.isArray(b)){if(!c(b))throw new te(`Invalid AST Node: ${String(b)}`,{node:b});if(f&&w.includes(b)){v.pop();continue}const i=a(e,u(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;S=i.call(e,b,r,h,v,w)}if(S===s)break;if(S===o){if(!t){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!t)){if(!c(S)){v.pop();continue}b=S}}var E;if(void 0===S&&x&&g.push([r,b]),!t)p={inArray:m,index:y,keys:d,edits:g,prev:p},m=Array.isArray(b),d=m?b:null!==(E=_[u(b)])&&void 0!==E?E:[],y=-1,g=[],h!==i&&void 0!==h&&w.push(h),h=b}while(void 0!==p);return 0!==g.length?g.at(-1)[1]:t};oe[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=re,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=ee,nodeTypeGetter:u=ne,nodePredicate:c=se,nodeCloneFn:l=ie,detectCycles:f=!0}={})=>{const _=r||{};let p,h,m=Array.isArray(t),d=[t],y=-1,g=[],b=t;const v=[],w=[];do{y+=1;const t=y===d.length;let r;const x=t&&0!==g.length;if(t){if(r=0===w.length?void 0:v.pop(),b=h,h=w.pop(),x)if(m){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=p.index,d=p.keys,g=p.edits,m=p.inArray,p=p.prev}else if(h!==i&&void 0!==h){if(r=m?y:d[y],b=h[r],b===i||void 0===b)continue;v.push(r)}let S;if(!Array.isArray(b)){if(!c(b))throw new te(`Invalid AST Node: ${String(b)}`,{node:b});if(f&&w.includes(b)){v.pop();continue}const i=a(e,u(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;S=await i.call(e,b,r,h,v,w)}if(S===s)break;if(S===o){if(!t){v.pop();continue}}else if(void 0!==S&&(g.push([r,S]),!t)){if(!c(S)){v.pop();continue}b=S}}var E;if(void 0===S&&x&&g.push([r,b]),!t)p={inArray:m,index:y,keys:d,edits:g,prev:p},m=Array.isArray(b),d=m?b:null!==(E=_[u(b)])&&void 0!==E?E:[],y=-1,g=[],h!==i&&void 0!==h&&w.push(h),h=b}while(void 0!==p);return 0!==g.length?g.at(-1)[1]:t};var ae=r(6591),ue=r.n(ae);const ce=function(){return!1};const le=Et(1,k(N,T("String")));var fe=r(7952);var _e=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=rt,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r;return this.f(e)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},t}();function pe(t){return function(e){return new _e(t,e)}}const he=a(tt(["all"],pe,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));const me=o((function(t){return Et(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}))(a(Z));class de extends fe.RP{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const ye=de;class ge extends fe.RP{constructor(t,e,r){super(t,e,r),this.element="comment"}}const be=ge;var ve=o((function(t){return function(){return t}}))(void 0);const we=K(ve());class Ee extends fe.ON{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(we(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const xe=Ee;class Se extends fe.ON{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(null===t)return;const e=new fe.ON([t.start.row,t.start.column,t.start.char]),r=new fe.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const Ae=Se,je=(t,e)=>"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],Oe=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,Pe=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),ke=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof fe.ON)&&e.classes.includes(t),Ne=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,Ie=t=>t({hasMethod:je,hasBasicElementProps:Oe,primitiveEq:Pe,isElementType:Ne,hasClass:ke}),Me=Ie((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof fe.W_||t(r)&&e(void 0,r))),Te=Ie((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof fe.RP||t(r)&&e("string",r))),Re=Ie((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof fe.VL||t(r)&&e("number",r))),Ce=Ie((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof fe.zr||t(r)&&e("null",r))),Fe=Ie((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof fe.hh||t(r)&&e("boolean",r))),Le=Ie((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof fe.Sb||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),qe=Ie((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof fe.ON&&!(n instanceof fe.Sb)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ze=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fe.c6||t(n)&&e("member",n)&&r(void 0,n))),Ve=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fe.EA||t(n)&&e("link",n)&&r(void 0,n))),De=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fe.tK||t(n)&&e("ref",n)&&r(void 0,n))),Ue=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ye||t(n)&&e("annotation",n)&&r("array",n))),Be=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof be||t(n)&&e("comment",n)&&r("string",n))),$e=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof xe||t(n)&&e("parseResult",n)&&r("array",n))),We=Ie((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ae||t(n)&&e("sourceMap",n)&&r("array",n))),Ge=t=>Ne("object",t)||Ne("array",t)||Ne("boolean",t)||Ne("number",t)||Ne("string",t)||Ne("null",t)||Ne("member",t),Ke=t=>We(t.meta.get("sourceMap")),Ze=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!qe(r)&&he(me(r.toValue()),t)},He=(t,e)=>0===t.length||he(me(e.classes.toValue()),t);const Xe=class extends te{constructor(t,e){super(t,e),void 0!==e&&(this.value=e.source)}};const Je=class extends Xe{};const Ye=class extends Xe{},Qe=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof fe.KeyValuePair){const{key:e,value:s}=t,i=Me(e)?Qe(e,n):e,o=Me(s)?Qe(s,n):s,a=new fe.KeyValuePair(i,o);return r.set(t,a),a}if(t instanceof fe.rm){const e=t=>Qe(t,n),s=[...t].map(e),i=new fe.rm(s);return r.set(t,i),i}if(t instanceof fe.O4){const e=t=>Qe(t,n),s=[...t].map(e),i=new fe.O4(s);return r.set(t,i),i}if(Me(t)){const e=rr(t);if(r.set(t,e),t.content)if(Me(t.content))e.content=Qe(t.content,n);else if(t.content instanceof fe.KeyValuePair)e.content=Qe(t.content,n);else if(Array.isArray(t.content)){const r=t=>Qe(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new Je("Value provided to cloneDeep function couldn't be cloned",{value:t})};Qe.safe=t=>{try{return Qe(t)}catch{return t}};const tr=t=>{const{key:e,value:r}=t;return new fe.KeyValuePair(e,r)},er=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=Qe(t.meta)),t.attributes.length>0&&(e._attributes=Qe(t.attributes)),Me(t.content)){const r=t.content;e.content=er(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof fe.KeyValuePair?e.content=tr(t.content):e.content=t.content;return e},rr=t=>{if(t instanceof fe.KeyValuePair)return tr(t);if(t instanceof fe.rm)return(t=>{const e=[...t];return new fe.rm(e)})(t);if(t instanceof fe.O4)return(t=>{const e=[...t];return new fe.O4(e)})(t);if(Me(t))return er(t);throw new Ye("Value provided to cloneShallow function couldn't be cloned",{value:t})};rr.safe=t=>{try{return rr(t)}catch{return t}};const nr=t=>Le(t)?"ObjectElement":qe(t)?"ArrayElement":ze(t)?"MemberElement":Te(t)?"StringElement":Fe(t)?"BooleanElement":Re(t)?"NumberElement":Ce(t)?"NullElement":Ve(t)?"LinkElement":De(t)?"RefElement":void 0,sr=t=>Me(t)?rr(t):ie(t),ir=k(nr,le),or={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},ar=(ae({props:{result:[],predicate:ce,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:t=this.predicate,returnOnTrue:e=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=t,this.returnOnTrue=e,this.returnOnFalse=r},methods:{enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}}),(t,e,{keyMap:r=or,...n}={})=>oe(t,e,{keyMap:r,nodeTypeGetter:nr,nodePredicate:ir,nodeCloneFn:sr,...n}));ar[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=or,...n}={})=>oe[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:nr,nodePredicate:ir,nodeCloneFn:sr,...n});const ur=a((function(t,e){return null==e||e!=e?t:e}));const cr=p((function(t,e,r){return ur(t,Ct(e,r))}));const lr=O(0,-1);const fr=a((function(t,e){return t.apply(this,e)}));const _r=Nt(Vt);var pr=o((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():h(t)?[]:m(t)?"":et(t)?{}:q(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const hr=pr;const mr=o((function(t){return null!=t&&K(t,hr(t))}));const dr=Pt(Et(1,Vt(Array.isArray)?Array.isArray:k(N,T("Array"))),mr);const yr=Et(3,(function(t,e,r){var n=pt(t,r),s=pt(lr(t),r);if(!_r(n)&&!dr(t)){var i=v(n,s);return fr(i,e)}}));class gr extends fe.lS{constructor(){super(),this.register("annotation",ye),this.register("comment",be),this.register("parseResult",xe),this.register("sourceMap",Ae)}}const br=new gr,vr=()=>({predicates:{...t},namespace:br}),wr=(t,e,r={})=>{if(0===e.length)return t;const n=cr(vr,"toolboxCreator",r),s=cr({},"visitorOptions",r),i=cr(nr,"nodeTypeGetter",s),o=n(),a=e.map((t=>t(o))),u=((t,{visitFnGetter:e=ee,nodeTypeGetter:r=ne}={})=>{const n=new Array(t.length).fill(null);return{enter(s,...i){for(let o=0;o<t.length;o+=1)if(null===n[o]){const a=e(t[o],r(s),!1);if("function"==typeof a){const e=a.call(t[o],s,...i);if(!1===e)n[o]=s;else if(e===re)n[o]=re;else if(void 0!==e)return e}}},leave(s,...i){for(let o=0;o<t.length;o+=1)if(null===n[o]){const a=e(t[o],r(s),!0);if("function"==typeof a){const e=a.call(t[o],s,...i);if(e===re)n[o]=re;else if(void 0!==e&&!1!==e)return e}}else n[o]===s&&(n[o]=null)}}})(a.map(cr({},"visitor")),{nodeTypeGetter:i});a.forEach(yr(["pre"],[]));const c=ar(t,u,s);return a.forEach(yr(["post"],[])),c},Er=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return wr(n,r,{toolboxCreator:vr,visitorOptions:{nodeTypeGetter:nr}})},xr=t=>(e,r={})=>Er(e,{...r,Type:t});fe.Sb.refract=xr(fe.Sb),fe.ON.refract=xr(fe.ON),fe.RP.refract=xr(fe.RP),fe.hh.refract=xr(fe.hh),fe.zr.refract=xr(fe.zr),fe.VL.refract=xr(fe.VL),fe.EA.refract=xr(fe.EA),fe.tK.refract=xr(fe.tK),ye.refract=xr(ye),be.refract=xr(be),xe.refract=xr(xe),Ae.refract=xr(Ae);const Sr=class{hasError=!1;children=[];constructor(t){this.type=t.nodeType,this.startPosition=t.startPosition,this.endPosition=t.endPosition,this.startIndex=t.startIndex,this.endIndex=t.endIndex,this.text=t.nodeText,this.isNamed=t.nodeIsNamed,this.isMissing=t.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}setFieldName(t){return"function"==typeof t.currentFieldName?this.fieldName=t.currentFieldName():this.fieldName=t.currentFieldName,this}setHasError(t){return"function"==typeof t.currentNode?this.hasError=t.currentNode().hasError():this.hasError=t.currentNode.hasError(),this}pushChildren(...t){this.children.push(...t)}},Ar=ue()({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const t=(t,e)=>{if(!this.sourceMap)return;const r=new Ae,n=(t=>{const e=new fe.ON([t.startPosition.row,t.startPosition.column,t.startIndex]),r=new fe.ON([t.endPosition.row,t.endPosition.column,t.endIndex]);return e.classes.push("position"),r.classes.push("position"),[e,r]})(t);if(null!==n){const[t,e]=n;r.push(t),r.push(e)}r.astNode=t,e.meta.set("sourceMap",r)};this.enter=function(e){if(e instanceof Sr&&!e.isNamed&&e.isMissing){const r=e.type||e.text,n=new ye(`(Missing ${r})`);n.classes.push("warning"),t(e,n),this.annotations.push(n)}return null},this.document=function(e){const r=new xe;return r._content=e.children,t(e,r),r},this.ParseResultElement={leave(t){const e=t.findElements(Ge);if(e.length>0){e[0].classes.push("result")}this.annotations.forEach((e=>{t.push(e)})),this.annotations=[]}},this.object=function(e){const r=new fe.Sb;return r._content=e.children,t(e,r),r},this.array=function(e){const r=new fe.ON;return r._content=e.children,t(e,r),r},this.pair=function(e){const r=new fe.c6;return r.content.key=e.keyNode,r.content.value=e.valueNode,t(e,r),e.children.length>3&&e.children.filter((t=>"ERROR"===t.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),r},this.string=function(e){const r=new fe.RP(JSON.parse(e.text));return t(e,r),r},this.number=function(e){const r=new fe.VL(Number(e.text));return t(e,r),r},this.null=function(e){const r=new fe.zr;return t(e,r),r},this.true=function(e){const r=new fe.hh(!0);return t(e,r),r},this.false=function(e){const r=new fe.hh(!1);return t(e,r),r},this.ERROR=function(e,r,n,s){const i=!e.hasError,o=e.text,a=new ye(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),t(e,a),0===s.length){const t=new xe;return t.push(a),t}return this.annotations.push(a),null}}}),jr=Ar;class Or{constructor(t){this.cursor=t}document(){return new Sr(this.cursor)}object(){return new Sr(this.cursor).setFieldName(this.cursor)}array(){return new Sr(this.cursor).setFieldName(this.cursor)}pair(){return new Sr(this.cursor)}string(){return new Sr(this.cursor).setFieldName(this.cursor)}number(){return new Sr(this.cursor).setFieldName(this.cursor)}null(){return new Sr(this.cursor).setFieldName(this.cursor)}true(){return new Sr(this.cursor).setFieldName(this.cursor)}false(){return new Sr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Sr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Sr(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Or(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=new Or(this.cursor);t.pushChildren(...e)}this.cursor.gotoParent()}yield t}}const Pr=Or,kr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...or},Nr=t=>$e(t)?"ParseResultElement":Me(t)?nr(t):ne(t),Ir=t=>Me(t)||se(t),Mr=(t,{sourceMap:e=!1}={})=>{const r=jr(),n=t.walk(),s=[...new Pr(n)].at(0);return oe(s,r,{keyMap:kr,nodeTypeGetter:Nr,nodePredicate:Ir,state:{sourceMap:e}})},Tr=ae({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:t=null,column:e=null,char:r=null}={}){this.row=t,this.column=e,this.char=r}}),Rr=ae({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),Cr=ae({props:{type:null,position:null,children:[]},init({children:t=[],position:e=null,isMissing:r=!1}={},{stamp:n={}}){this.type=n.type,this.isMissing=r,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const r=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,r)})),t}}}),Fr=ae(Cr,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}});const Lr=ft(0),qr=ae(Cr),zr=ae(qr,{statics:{type:"document"},methods:{get child(){return Lr(this.children)}}}),Vr=ae(Cr,{statics:{type:"parseResult"},methods:{get rootNode(){return Lr(this.children)}}}),Dr=(t,e)=>(null==e?void 0:e.type)===t,Ur=(Dr.bind(void 0,"literal"),Dr.bind(void 0,"position"),Dr.bind(void 0,"point"),Dr.bind(void 0,"parseResult"),Dr.bind(void 0,"document"),Dr.bind(void 0,"string")),Br=Dr.bind(void 0,"false"),$r=Dr.bind(void 0,"true"),Wr=Dr.bind(void 0,"null"),Gr=Dr.bind(void 0,"number"),Kr=Dr.bind(void 0,"array"),Zr=Dr.bind(void 0,"object"),Hr=Dr.bind(void 0,"stringContent"),Xr=Dr.bind(void 0,"escapeSequence"),Jr=Dr.bind(void 0,"property"),Yr=Dr.bind(void 0,"key"),Qr=ae(qr,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Jr)}}}),tn=ae(qr,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((t=>Hr(t)||Xr(t))).reduce(((t,e)=>t+e.value),"")}}}),en=ae(tn,{statics:{type:"key"}}),rn=ae(qr,{statics:{type:"property"},methods:{get key(){return this.children.find(Yr)},get value(){return this.children.find((t=>Br(t)||$r(t)||Wr(t)||Gr(t)||Ur(t)||Kr(t)||Zr(t)))}}}),nn=ae(qr,{statics:{type:"array"},methods:{get items(){return this.children.filter((t=>Br(t)||$r(t)||Wr(t)||Gr(t)||Ur(t)||Kr(t)||Zr))}}}),sn=ae(qr,{statics:{type:"value"},props:{value:null},init({value:t=null}={}){this.value=t}}),on=ae(sn,{statics:{type:"stringContent"}}),an=ae(sn,{statics:{type:"number"}}),un=ae(sn,{statics:{type:"null"}}),cn=ae(sn,{statics:{type:"true"}}),ln=ae(sn,{statics:{type:"false"}}),fn=ae(Cr,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}}),_n={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},pn=ue()({init(){const t=t=>{const e=Tr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),r=Tr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return Rr({start:e,end:r})};this.enter=function(e){if(e instanceof Sr&&!e.isNamed){const r=t(e),n=e.type||e.text,{isMissing:s}=e;return Fr({value:n,position:r,isMissing:s})}},this.document={enter(e){const r=t(e);return zr({children:e.children,position:r,isMissing:e.isMissing})},leave:t=>Vr({children:[t]})},this.object=function(e){const r=t(e);return Qr({children:e.children,position:r,isMissing:e.isMissing})},this.pair=function(e){const r=t(e),n=e.children.slice(1),{keyNode:s}=e,i=en({children:s?.children||[],position:null!=s?t(s):null,isMissing:null!=s&&s.isMissing});return rn({children:[i,...n],position:r,isMissing:e.isMissing})},this.array=function(e){const r=t(e);return nn({children:e.children,position:r,isMissing:e.isMissing})},this.string=function(e){const r=t(e),n=on({value:JSON.parse(e.text)});return tn({children:[n],position:r,isMissing:e.isMissing})},this.number=function(e){const r=t(e),n=e.text;return an({value:n,position:r,isMissing:e.isMissing})},this.null=function(e){const r=t(e),n=e.text;return un({value:n,position:r,isMissing:e.isMissing})},this.true=function(e){const r=t(e),n=e.text;return cn({value:n,position:r,isMissing:e.isMissing})},this.false=function(e){const r=t(e),n=e.text;return ln({value:n,position:r,isMissing:e.isMissing})},this.ERROR=function(e,r,n,s){const i=t(e),o=fn({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?Vr({children:[o]}):o}}}),hn=pn,mn={[Vr.type]:["children"],[zr.type]:["children"],[Qr.type]:["children"],[rn.type]:["children"],[nn.type]:["children"],[fn.type]:["children"],...or},dn=t=>$e(t)?"ParseResultElement":Me(t)?nr(t):ne(t),yn=t=>Me(t)||se(t),gn=ue()({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const t=(t,e)=>{if(!this.sourceMap)return;const r=new Ae;r.position=t.position,r.astNode=t,e.meta.set("sourceMap",r)};this.document=function(t){const e=new xe;return e._content=t.children,e},this.ParseResultElement={leave(t){const e=t.findElements(Ge);if(e.length>0){e[0].classes.push("result")}this.annotations.forEach((e=>{t.push(e)})),this.annotations=[]}},this.object=function(e){const r=new fe.Sb;return r._content=e.children,t(e,r),r},this.property=function(e){const r=new fe.c6;return r.content.key=e.key,r.content.value=e.value,t(e,r),e.children.length>3&&e.children.filter((t=>"error"===t.type)).forEach((t=>{this.error(t,e,[],[e])})),r},this.key=function(e){const r=new fe.RP(e.value);return t(e,r),r},this.array=function(e){const r=new fe.ON;return r._content=e.children,t(e,r),r},this.string=function(e){const r=new fe.RP(e.value);return t(e,r),r},this.number=function(e){const r=new fe.VL(Number(e.value));return t(e,r),r},this.null=function(e){const r=new fe.zr;return t(e,r),r},this.true=function(e){const r=new fe.hh(!0);return t(e,r),r},this.false=function(e){const r=new fe.hh(!1);return t(e,r),r},this.literal=function(e){if(e.isMissing){const r=`(Missing ${e.value})`,n=new ye(r);n.classes.push("warning"),t(e,n),this.annotations.push(n)}return null},this.error=function(e,r,n,s){const i=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,o=new ye(i);if(o.classes.push("error"),t(e,o),0===s.length){const t=new xe;return t.push(o),t}return this.annotations.push(o),null}}}),bn=gn,vn=(t,{sourceMap:e=!1}={})=>{const r=t.walk(),n=[...new Pr(r)].at(0),s=hn(),i=bn(),o=oe(n,s,{keyMap:_n,state:{sourceMap:e}});return oe(o.rootNode,i,{keyMap:mn,nodeTypeGetter:dn,nodePredicate:yn,state:{sourceMap:e}})},wn=(t=>{const e=new gr;return Bt(t)&&e.use(t),e})(),En=/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/;const xn=class extends Kt{};const Sn=class extends xn{};const An=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Sn("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Sn("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Sn("latest method in MediaTypes class is not yet implemented.")}};const jn=new class extends An{latest(){return this[0]}}("application/json"),On=async t=>{if(!En.test(t))return!1;try{return"ERROR"!==(await Jt(t)).rootNode.type}catch{return!1}},Pn=async(t,{sourceMap:e=!1,syntacticAnalysis:r="direct"}={})=>{const n=await Jt(t);let s;return s="indirect"===r?vn(n,{sourceMap:e}):Mr(n,{sourceMap:e}),s}})(),n})()));
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@swagger-api/apidom-parser-adapter-json",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.81.0",
|
|
4
4
|
"description": "Parser adapter for parsing JSON documents into base namespace.",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public",
|
|
@@ -53,9 +53,9 @@
|
|
|
53
53
|
"license": "Apache-2.0",
|
|
54
54
|
"dependencies": {
|
|
55
55
|
"@babel/runtime-corejs3": "^7.20.7",
|
|
56
|
-
"@swagger-api/apidom-ast": "^0.
|
|
57
|
-
"@swagger-api/apidom-core": "^0.
|
|
58
|
-
"@swagger-api/apidom-error": "^0.
|
|
56
|
+
"@swagger-api/apidom-ast": "^0.81.0",
|
|
57
|
+
"@swagger-api/apidom-core": "^0.81.0",
|
|
58
|
+
"@swagger-api/apidom-error": "^0.81.0",
|
|
59
59
|
"@types/ramda": "~0.29.6",
|
|
60
60
|
"ramda": "~0.29.0",
|
|
61
61
|
"ramda-adjunct": "^4.1.1",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"README.md",
|
|
79
79
|
"CHANGELOG.md"
|
|
80
80
|
],
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "06960c4ddf3aaaaf394b4ffcb4e42201f9bcbad6"
|
|
82
82
|
}
|