@swagger-api/apidom-parser-adapter-openapi-yaml-3-1 0.70.2 → 0.71.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 +12 -0
- package/dist/23aac571c96605dc25219087ad291441.wasm +0 -0
- package/dist/apidom-parser-adapter-openapi-yaml-3-1.browser.js +686 -752
- package/dist/apidom-parser-adapter-openapi-yaml-3-1.browser.min.js +1 -1
- package/dist/{c0da590675c708b5efeb89f8248097c1.wasm → d396281e11774e0afa7a40d620779b6d.wasm} +0 -0
- package/package.json +6 -6
- package/dist/3055f0c5f4843ded29b10894f35a54d2.wasm +0 -0
|
@@ -71,7 +71,9 @@ module.exports = parent;
|
|
|
71
71
|
|
|
72
72
|
var parent = __webpack_require__(42285);
|
|
73
73
|
|
|
74
|
+
__webpack_require__(17148);
|
|
74
75
|
__webpack_require__(9031);
|
|
76
|
+
__webpack_require__(71875);
|
|
75
77
|
|
|
76
78
|
module.exports = parent;
|
|
77
79
|
|
|
@@ -265,13 +267,14 @@ module.exports = parent;
|
|
|
265
267
|
|
|
266
268
|
var parent = __webpack_require__(89821);
|
|
267
269
|
__webpack_require__(60177);
|
|
268
|
-
__webpack_require__(
|
|
269
|
-
__webpack_require__(
|
|
270
|
+
__webpack_require__(23346);
|
|
271
|
+
__webpack_require__(83520);
|
|
270
272
|
__webpack_require__(96658);
|
|
271
|
-
__webpack_require__(54212);
|
|
272
273
|
__webpack_require__(18658);
|
|
273
274
|
// TODO: Remove from `core-js@4`
|
|
274
|
-
__webpack_require__(
|
|
275
|
+
__webpack_require__(32725);
|
|
276
|
+
__webpack_require__(71806);
|
|
277
|
+
__webpack_require__(54212);
|
|
275
278
|
__webpack_require__(54592);
|
|
276
279
|
__webpack_require__(26680);
|
|
277
280
|
|
|
@@ -2398,10 +2401,10 @@ var store = __webpack_require__(46434);
|
|
|
2398
2401
|
(module.exports = function (key, value) {
|
|
2399
2402
|
return store[key] || (store[key] = value !== undefined ? value : {});
|
|
2400
2403
|
})('versions', []).push({
|
|
2401
|
-
version: '3.
|
|
2404
|
+
version: '3.31.1',
|
|
2402
2405
|
mode: IS_PURE ? 'pure' : 'global',
|
|
2403
2406
|
copyright: '© 2014-2023 Denis Pushkarev (zloirock.ru)',
|
|
2404
|
-
license: 'https://github.com/zloirock/core-js/blob/v3.
|
|
2407
|
+
license: 'https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE',
|
|
2405
2408
|
source: 'https://github.com/zloirock/core-js'
|
|
2406
2409
|
});
|
|
2407
2410
|
|
|
@@ -2501,6 +2504,69 @@ module.exports = function () {
|
|
|
2501
2504
|
};
|
|
2502
2505
|
|
|
2503
2506
|
|
|
2507
|
+
/***/ }),
|
|
2508
|
+
|
|
2509
|
+
/***/ 78743:
|
|
2510
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2511
|
+
|
|
2512
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
2513
|
+
var uncurryThis = __webpack_require__(84120);
|
|
2514
|
+
|
|
2515
|
+
var Symbol = getBuiltIn('Symbol');
|
|
2516
|
+
var keyFor = Symbol.keyFor;
|
|
2517
|
+
var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
2518
|
+
|
|
2519
|
+
// `Symbol.isRegisteredSymbol` method
|
|
2520
|
+
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
2521
|
+
module.exports = Symbol.isRegisteredSymbol || function isRegisteredSymbol(value) {
|
|
2522
|
+
try {
|
|
2523
|
+
return keyFor(thisSymbolValue(value)) !== undefined;
|
|
2524
|
+
} catch (error) {
|
|
2525
|
+
return false;
|
|
2526
|
+
}
|
|
2527
|
+
};
|
|
2528
|
+
|
|
2529
|
+
|
|
2530
|
+
/***/ }),
|
|
2531
|
+
|
|
2532
|
+
/***/ 75128:
|
|
2533
|
+
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
2534
|
+
|
|
2535
|
+
var shared = __webpack_require__(98717);
|
|
2536
|
+
var getBuiltIn = __webpack_require__(10150);
|
|
2537
|
+
var uncurryThis = __webpack_require__(84120);
|
|
2538
|
+
var isSymbol = __webpack_require__(23236);
|
|
2539
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
2540
|
+
|
|
2541
|
+
var Symbol = getBuiltIn('Symbol');
|
|
2542
|
+
var $isWellKnownSymbol = Symbol.isWellKnownSymbol;
|
|
2543
|
+
var getOwnPropertyNames = getBuiltIn('Object', 'getOwnPropertyNames');
|
|
2544
|
+
var thisSymbolValue = uncurryThis(Symbol.prototype.valueOf);
|
|
2545
|
+
var WellKnownSymbolsStore = shared('wks');
|
|
2546
|
+
|
|
2547
|
+
for (var i = 0, symbolKeys = getOwnPropertyNames(Symbol), symbolKeysLength = symbolKeys.length; i < symbolKeysLength; i++) {
|
|
2548
|
+
// some old engines throws on access to some keys like `arguments` or `caller`
|
|
2549
|
+
try {
|
|
2550
|
+
var symbolKey = symbolKeys[i];
|
|
2551
|
+
if (isSymbol(Symbol[symbolKey])) wellKnownSymbol(symbolKey);
|
|
2552
|
+
} catch (error) { /* empty */ }
|
|
2553
|
+
}
|
|
2554
|
+
|
|
2555
|
+
// `Symbol.isWellKnownSymbol` method
|
|
2556
|
+
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
2557
|
+
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected
|
|
2558
|
+
module.exports = function isWellKnownSymbol(value) {
|
|
2559
|
+
if ($isWellKnownSymbol && $isWellKnownSymbol(value)) return true;
|
|
2560
|
+
try {
|
|
2561
|
+
var symbol = thisSymbolValue(value);
|
|
2562
|
+
for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {
|
|
2563
|
+
if (WellKnownSymbolsStore[keys[j]] == symbol) return true;
|
|
2564
|
+
}
|
|
2565
|
+
} catch (error) { /* empty */ }
|
|
2566
|
+
return false;
|
|
2567
|
+
};
|
|
2568
|
+
|
|
2569
|
+
|
|
2504
2570
|
/***/ }),
|
|
2505
2571
|
|
|
2506
2572
|
/***/ 20031:
|
|
@@ -3696,6 +3762,26 @@ var defineWellKnownSymbol = __webpack_require__(48332);
|
|
|
3696
3762
|
defineWellKnownSymbol('unscopables');
|
|
3697
3763
|
|
|
3698
3764
|
|
|
3765
|
+
/***/ }),
|
|
3766
|
+
|
|
3767
|
+
/***/ 17148:
|
|
3768
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3769
|
+
|
|
3770
|
+
var wellKnownSymbol = __webpack_require__(18182);
|
|
3771
|
+
var defineProperty = (__webpack_require__(42760).f);
|
|
3772
|
+
|
|
3773
|
+
var METADATA = wellKnownSymbol('metadata');
|
|
3774
|
+
var FunctionPrototype = Function.prototype;
|
|
3775
|
+
|
|
3776
|
+
// Function.prototype[@@metadata]
|
|
3777
|
+
// https://github.com/tc39/proposal-decorator-metadata
|
|
3778
|
+
if (FunctionPrototype[METADATA] === undefined) {
|
|
3779
|
+
defineProperty(FunctionPrototype, METADATA, {
|
|
3780
|
+
value: null
|
|
3781
|
+
});
|
|
3782
|
+
}
|
|
3783
|
+
|
|
3784
|
+
|
|
3699
3785
|
/***/ }),
|
|
3700
3786
|
|
|
3701
3787
|
/***/ 60177:
|
|
@@ -3722,70 +3808,63 @@ defineWellKnownSymbol('dispose');
|
|
|
3722
3808
|
|
|
3723
3809
|
/***/ }),
|
|
3724
3810
|
|
|
3725
|
-
/***/
|
|
3811
|
+
/***/ 23346:
|
|
3726
3812
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3727
3813
|
|
|
3728
3814
|
var $ = __webpack_require__(93085);
|
|
3729
|
-
var
|
|
3730
|
-
|
|
3815
|
+
var isRegisteredSymbol = __webpack_require__(78743);
|
|
3816
|
+
|
|
3817
|
+
// `Symbol.isRegisteredSymbol` method
|
|
3818
|
+
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
3819
|
+
$({ target: 'Symbol', stat: true }, {
|
|
3820
|
+
isRegisteredSymbol: isRegisteredSymbol
|
|
3821
|
+
});
|
|
3731
3822
|
|
|
3732
|
-
|
|
3733
|
-
|
|
3734
|
-
|
|
3823
|
+
|
|
3824
|
+
/***/ }),
|
|
3825
|
+
|
|
3826
|
+
/***/ 32725:
|
|
3827
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3828
|
+
|
|
3829
|
+
var $ = __webpack_require__(93085);
|
|
3830
|
+
var isRegisteredSymbol = __webpack_require__(78743);
|
|
3735
3831
|
|
|
3736
3832
|
// `Symbol.isRegistered` method
|
|
3737
|
-
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-
|
|
3738
|
-
$({ target: 'Symbol', stat: true }, {
|
|
3739
|
-
isRegistered:
|
|
3740
|
-
try {
|
|
3741
|
-
return keyFor(thisSymbolValue(value)) !== undefined;
|
|
3742
|
-
} catch (error) {
|
|
3743
|
-
return false;
|
|
3744
|
-
}
|
|
3745
|
-
}
|
|
3833
|
+
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-isregisteredsymbol
|
|
3834
|
+
$({ target: 'Symbol', stat: true, name: 'isRegisteredSymbol' }, {
|
|
3835
|
+
isRegistered: isRegisteredSymbol
|
|
3746
3836
|
});
|
|
3747
3837
|
|
|
3748
3838
|
|
|
3749
3839
|
/***/ }),
|
|
3750
3840
|
|
|
3751
|
-
/***/
|
|
3841
|
+
/***/ 83520:
|
|
3752
3842
|
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3753
3843
|
|
|
3754
3844
|
var $ = __webpack_require__(93085);
|
|
3755
|
-
var
|
|
3756
|
-
var getBuiltIn = __webpack_require__(10150);
|
|
3757
|
-
var uncurryThis = __webpack_require__(84120);
|
|
3758
|
-
var isSymbol = __webpack_require__(23236);
|
|
3759
|
-
var wellKnownSymbol = __webpack_require__(18182);
|
|
3845
|
+
var isWellKnownSymbol = __webpack_require__(75128);
|
|
3760
3846
|
|
|
3761
|
-
|
|
3762
|
-
|
|
3763
|
-
|
|
3764
|
-
|
|
3765
|
-
|
|
3847
|
+
// `Symbol.isWellKnownSymbol` method
|
|
3848
|
+
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
3849
|
+
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected
|
|
3850
|
+
$({ target: 'Symbol', stat: true, forced: true }, {
|
|
3851
|
+
isWellKnownSymbol: isWellKnownSymbol
|
|
3852
|
+
});
|
|
3766
3853
|
|
|
3767
|
-
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3771
|
-
|
|
3772
|
-
|
|
3773
|
-
|
|
3854
|
+
|
|
3855
|
+
/***/ }),
|
|
3856
|
+
|
|
3857
|
+
/***/ 71806:
|
|
3858
|
+
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {
|
|
3859
|
+
|
|
3860
|
+
var $ = __webpack_require__(93085);
|
|
3861
|
+
var isWellKnownSymbol = __webpack_require__(75128);
|
|
3774
3862
|
|
|
3775
3863
|
// `Symbol.isWellKnown` method
|
|
3776
|
-
// https://tc39.es/proposal-symbol-predicates/#sec-symbol-
|
|
3864
|
+
// obsolete version of https://tc39.es/proposal-symbol-predicates/#sec-symbol-iswellknownsymbol
|
|
3777
3865
|
// We should patch it for newly added well-known symbols. If it's not required, this module just will not be injected
|
|
3778
|
-
$({ target: 'Symbol', stat: true, forced: true }, {
|
|
3779
|
-
isWellKnown:
|
|
3780
|
-
if ($isWellKnown && $isWellKnown(value)) return true;
|
|
3781
|
-
try {
|
|
3782
|
-
var symbol = thisSymbolValue(value);
|
|
3783
|
-
for (var j = 0, keys = getOwnPropertyNames(WellKnownSymbolsStore), keysLength = keys.length; j < keysLength; j++) {
|
|
3784
|
-
if (WellKnownSymbolsStore[keys[j]] == symbol) return true;
|
|
3785
|
-
}
|
|
3786
|
-
} catch (error) { /* empty */ }
|
|
3787
|
-
return false;
|
|
3788
|
-
}
|
|
3866
|
+
$({ target: 'Symbol', stat: true, name: 'isWellKnownSymbol', forced: true }, {
|
|
3867
|
+
isWellKnown: isWellKnownSymbol
|
|
3789
3868
|
});
|
|
3790
3869
|
|
|
3791
3870
|
|
|
@@ -3969,7 +4048,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3969
4048
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3970
4049
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3971
4050
|
/* harmony export */ });
|
|
3972
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "
|
|
4051
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "23aac571c96605dc25219087ad291441.wasm");
|
|
3973
4052
|
|
|
3974
4053
|
/***/ }),
|
|
3975
4054
|
|
|
@@ -3981,7 +4060,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
3981
4060
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
3982
4061
|
/* harmony export */ "default": () => (__WEBPACK_DEFAULT_EXPORT__)
|
|
3983
4062
|
/* harmony export */ });
|
|
3984
|
-
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "
|
|
4063
|
+
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (__webpack_require__.p + "d396281e11774e0afa7a40d620779b6d.wasm");
|
|
3985
4064
|
|
|
3986
4065
|
/***/ }),
|
|
3987
4066
|
|
|
@@ -11521,7 +11600,7 @@ exports["default"] = unraw;
|
|
|
11521
11600
|
/***/ ((module, __unused_webpack_exports, __webpack_require__) => {
|
|
11522
11601
|
|
|
11523
11602
|
var __dirname = "/";
|
|
11524
|
-
var Module=void 0!==Module?Module:{},TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="",read_,readAsync,readBinary,setWindowTitle;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}function logExceptionOnExit(e){if(e instanceof ExitStatus)return;err("exiting due to exception: "+e)}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(65530),nodePath=__webpack_require__(56287);scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,t)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,t?void 0:"utf8")),readBinary=e=>{var t=read_(e,!0);return t.buffer||(t=new Uint8Array(t)),t},readAsync=(e,t,r)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,(function(e,_){e?r(e):t(_.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2), true&&(module.exports=Module),quit_=(e,t)=>{if(keepRuntimeAlive())throw process.exitCode=e,t;logExceptionOnExit(t),process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var _=new XMLHttpRequest;_.open("GET",e,!0),_.responseType="arraybuffer",_.onload=()=>{200==_.status||0==_.status&&_.response?t(_.response):r()},_.onerror=r,_.send(null)},setWindowTitle=e=>document.title=e);var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var STACK_ALIGN=16,dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0,wasmMemory;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var ABORT=!1,EXITSTATUS,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function UTF8ArrayToString(e,t,r){for(var _=t+r,n=t;e[n]&&!(n>=_);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var s="";t<n;){var a=e[t++];if(128&a){var o=63&e[t++];if(192!=(224&a)){var i=63&e[t++];if((a=224==(240&a)?(15&a)<<12|o<<6|i:(7&a)<<18|o<<12|i<<6|63&e[t++])<65536)s+=String.fromCharCode(a);else{var l=a-65536;s+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else s+=String.fromCharCode((31&a)<<6|o)}else s+=String.fromCharCode(a)}return s}function UTF8ToString(e,t){return e?UTF8ArrayToString(HEAPU8,e,t):""}function stringToUTF8Array(e,t,r,_){if(!(_>0))return 0;for(var n=r,s=r+_-1,a=0;a<e.length;++a){var o=e.charCodeAt(a);if(o>=55296&&o<=57343)o=65536+((1023&o)<<10)|1023&e.charCodeAt(++a);if(o<=127){if(r>=s)break;t[r++]=o}else if(o<=2047){if(r+1>=s)break;t[r++]=192|o>>6,t[r++]=128|63&o}else if(o<=65535){if(r+2>=s)break;t[r++]=224|o>>12,t[r++]=128|o>>6&63,t[r++]=128|63&o}else{if(r+3>=s)break;t[r++]=240|o>>18,t[r++]=128|o>>12&63,t[r++]=128|o>>6&63,t[r++]=128|63&o}}return t[r]=0,r-n}function stringToUTF8(e,t,r){return stringToUTF8Array(e,HEAPU8,t,r)}function lengthBytesUTF8(e){for(var t=0,r=0;r<e.length;++r){var _=e.charCodeAt(r);_<=127?t++:_<=2047?t+=2:_>=55296&&_<=57343?(t+=4,++r):t+=3}return t}function updateGlobalBufferAndViews(e){buffer=e,Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768}),wasmMemory&&(buffer=wasmMemory.buffer),INITIAL_MEMORY=buffer.byteLength,updateGlobalBufferAndViews(buffer);var wasmTable=new WebAssembly.Table({initial:20,element:"anyfunc"}),__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function keepRuntimeAlive(){return noExitRuntime}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",wasmBinaryFile,tempDouble,tempI64;function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}function getBinary(e){try{if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if("function"==typeof fetch&&!isFileURI(wasmBinaryFile))return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}));if(readAsync)return new Promise((function(e,t){readAsync(wasmBinaryFile,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var e={env:asmLibraryArg,wasi_snapshot_preview1:asmLibraryArg,"GOT.mem":new Proxy(asmLibraryArg,GOTHandler),"GOT.func":new Proxy(asmLibraryArg,GOTHandler)};function t(e,t){var r=e.exports;r=relocateExports(r,1024);var _=getDylinkMetadata(t);_.neededDynlibs&&(dynamicLibraries=_.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(r,"main"),Module.asm=r,addOnInit(Module.asm.__wasm_call_ctors),__RELOC_FUNCS__.push(Module.asm.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate")}function r(e){t(e.instance,e.module)}function _(t){return getBinaryPromise().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)}))}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err("Module.instantiateWasm callback failed with error: "+e),!1}return wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?_(r):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),_(r)}))})),{}}wasmBinaryFile="tree-sitter.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}var GOT={},CurrentModuleWeakSymbols=new Set([]),GOTHandler={get:function(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),CurrentModuleWeakSymbols.has(t)||(r.required=!0),r}};function callRuntimeCallbacks(e){for(;e.length>0;)e.shift()(Module)}function getDylinkMetadata(e){var t=0,r=0;function _(){for(var r=0,_=1;;){var n=e[t++];if(r+=(127&n)*_,_*=128,!(128&n))break}return r}function n(){var r=_();return UTF8ArrayToString(e,(t+=r)-r,r)}function s(e,t){if(e)throw new Error(t)}var a="dylink.0";if(e instanceof WebAssembly.Module){var o=WebAssembly.Module.customSections(e,a);0===o.length&&(a="dylink",o=WebAssembly.Module.customSections(e,a)),s(0===o.length,"need dylink section"),r=(e=new Uint8Array(o[0])).length}else{s(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),s(0!==e[8],"need the dylink section to be first"),t=9;var i=_();r=t+i,a=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==a){l.memorySize=_(),l.memoryAlign=_(),l.tableSize=_(),l.tableAlign=_();for(var u=_(),d=0;d<u;++d){var c=n();l.neededDynlibs.push(c)}}else{s("dylink.0"!==a);for(;t<r;){var m=e[t++],p=_();if(1===m)l.memorySize=_(),l.memoryAlign=_(),l.tableSize=_(),l.tableAlign=_();else if(2===m)for(u=_(),d=0;d<u;++d)c=n(),l.neededDynlibs.push(c);else if(3===m)for(var f=_();f--;){var h=n();256&_()&&l.tlsExports.add(h)}else if(4===m)for(f=_();f--;){n(),h=n();1==(3&_())&&l.weakImports.add(h)}else t+=p}}return l}function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e>>0];case"i16":return HEAP16[e>>1];case"i32":case"i64":return HEAP32[e>>2];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort("invalid type for getValue: "+t)}return null}function asmjsMangle(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e}function mergeLibSymbols(e,t){for(var r in e)if(e.hasOwnProperty(r)){asmLibraryArg.hasOwnProperty(r)||(asmLibraryArg[r]=e[r]);var _=asmjsMangle(r);Module.hasOwnProperty(_)||(Module[_]=e[r]),"__main_argc_argv"==r&&(Module._main=e[r])}}var LDSO={loadedLibsByName:{},loadedLibsByHandle:{}};function dynCallLegacy(e,t,r){var _=Module["dynCall_"+e];return r&&r.length?_.apply(null,[t].concat(r)):_.call(null,t)}var wasmTableMirror=[];function getWasmTableEntry(e){var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t}function dynCall(e,t,r){return e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t).apply(null,r)}function createInvokeFunction(e){return function(){var t=stackSave();try{return dynCall(e,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}}var ___heap_base=78144;function zeroMemory(e,t){return HEAPU8.fill(0,e,e+t),e}function getMemory(e){if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+e+15&-16;return ___heap_base=r,GOT.__heap_base.value=r,t}function isInternalSym(e){return["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm"].includes(e)}function uleb128Encode(e,t){e<128?t.push(e):t.push(e%128|128,e>>7)}function sigToWasmTypes(e){for(var t={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},_=1;_<e.length;++_)r.parameters.push(t[e[_]]),"j"===e[_]&&r.parameters.push("i32");return r}function generateFuncType(e,t){var r=e.slice(0,1),_=e.slice(1),n={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(_.length,t);for(var s=0;s<_.length;++s)t.push(n[_[s]]);"v"==r?t.push(0):t.push(1,n[r])}function convertJsFunctionToWasm(e,t){if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var _=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,_),_.push.apply(_,r),_.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(_));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f}function updateTableMap(e,t){if(functionsInTableMap)for(var r=e;r<e+t;r++){var _=getWasmTableEntry(r);_&&functionsInTableMap.set(_,r)}}var functionsInTableMap=void 0,freeTableIndexes=[];function getEmptyTableSlot(){if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function setWasmTableEntry(e,t){wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)}function addFunction(e,t){if(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.has(e))return functionsInTableMap.get(e);var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(_){if(!(_ instanceof TypeError))throw _;setWasmTableEntry(r,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,r),r}function updateGOT(e,t){for(var r in e)if(!isInternalSym(r)){var _=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof _?GOT[r].value=addFunction(_):"number"==typeof _?GOT[r].value=_:err("unhandled export type for `"+r+"`: "+typeof _))}}function relocateExports(e,t,r){var _={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),_[n]=s}return updateGOT(_,r),_}function resolveGlobalSymbol(e,t){var r;return t&&(r=asmLibraryArg["orig$"+e]),r||(r=asmLibraryArg[e])&&r.stub&&(r=void 0),r||(r=Module[asmjsMangle(e)]),!r&&e.startsWith("invoke_")&&(r=createInvokeFunction(e.split("_")[1])),r}function alignMemory(e,t){return Math.ceil(e/t)*t}function loadWebAssemblyModule(binary,flags,handle){var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+12>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign);memAlign=Math.max(memAlign,STACK_ALIGN);var memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+12>>0]=1,HEAPU32[handle+16>>2]=memoryBase,HEAP32[handle+20>>2]=metadata.memorySize,HEAPU32[handle+24>>2]=tableBase,HEAP32[handle+28>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+16>>2],tableBase=HEAPU32[handle+24>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e,!1);return t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get:function(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}if(t in asmLibraryArg)return asmLibraryArg[t];var r;t in e||(e[t]=function(){return r||(r=resolveSymbol(t)),r.apply(null,arguments)});return e[t]}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="("+args+" ) => { "+body+"};";ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(instance))}return WebAssembly.instantiate(binary,info).then((function(e){return postInstantiation(e.instance)}))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(instance)}return CurrentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,flags)}))}),Promise.resolve()).then((function(){return loadModule()})):(metadata.neededDynlibs.forEach((function(e){loadDynamicLibrary(e,flags)})),loadModule())}function loadDynamicLibrary(e,t,r){t=t||{global:!0,nodelete:!0};var _=LDSO.loadedLibsByName[e];if(_)return t.global&&!_.global&&(_.global=!0,"loading"!==_.module&&mergeLibSymbols(_.module,e)),t.nodelete&&_.refcount!==1/0&&(_.refcount=1/0),_.refcount++,r&&(LDSO.loadedLibsByHandle[r]=_),!t.loadAsync||Promise.resolve(!0);function n(e){if(t.fs&&t.fs.findObject(e)){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}if(e=locateFile(e),t.loadAsync)return new Promise((function(t,r){readAsync(e,(e=>t(new Uint8Array(e))),r)}));if(!readBinary)throw new Error(e+": file not found, and synchronous loading of external files is not available");return readBinary(e)}function s(){if("undefined"!=typeof preloadedWasm&&preloadedWasm[e]){var _=preloadedWasm[e];return t.loadAsync?Promise.resolve(_):_}return t.loadAsync?n(e).then((function(e){return loadWebAssemblyModule(e,t,r)})):loadWebAssemblyModule(n(e),t,r)}function a(t){_.global&&mergeLibSymbols(t,e),_.module=t}return _={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},LDSO.loadedLibsByName[e]=_,r&&(LDSO.loadedLibsByHandle[r]=_),t.loadAsync?s().then((function(e){return a(e),!0})):(a(s()),!0)}function reportUndefinedSymbols(){for(var e in GOT)if(0==GOT[e].value){var t=resolveGlobalSymbol(e,!0);if(!t&&!GOT[e].required)continue;if("function"==typeof t)GOT[e].value=addFunction(t,t.sig);else{if("number"!=typeof t)throw new Error("bad export type for `"+e+"`: "+typeof t);GOT[e].value=t}}}function preloadDylibs(){dynamicLibraries.length?(addRunDependency("preloadDylibs"),dynamicLibraries.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){reportUndefinedSymbols(),removeRunDependency("preloadDylibs")}))):reportUndefinedSymbols()}function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e>>0]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":tempI64=[t>>>0,(tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[e>>2]=t;break;default:abort("invalid type for setValue: "+r)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78144),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),nowIsMonotonic=!0,_emscripten_get_now;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function _abort(){abort("")}function _emscripten_date_now(){return Date.now()}function _emscripten_memcpy_big(e,t,r){HEAPU8.copyWithin(e,t,t+r)}function getHeapMax(){return 2147483648}function emscripten_realloc_buffer(e){try{return wasmMemory.grow(e-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(e){}}function _emscripten_resize_heap(e){var t=HEAPU8.length;e>>>=0;var r=getHeapMax();if(e>r)return!1;for(var _=1;_<=4;_*=2){var n=t*(1+.2/_);if(n=Math.min(n,e+100663296),emscripten_realloc_buffer(Math.min(r,(s=Math.max(e,n))+((a=65536)-s%a)%a)))return!0}var s,a;return!1}__emscripten_get_now_is_monotonic.sig="i",Module._abort=_abort,_abort.sig="v",_emscripten_date_now.sig="d",_emscripten_get_now=ENVIRONMENT_IS_NODE?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),_emscripten_get_now.sig="d",_emscripten_memcpy_big.sig="vppp",_emscripten_resize_heap.sig="ip";var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(PATH.isAbs(t))return t;var _;-100===e?_=FS.cwd():_=SYSCALLS.getStreamFromFD(e).path;if(0==t.length){if(!r)throw new FS.ErrnoError(44);return _}return PATH.join2(_,t)},doStat:function(e,t,r){try{var _=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[r>>2]=_.dev,HEAP32[r+8>>2]=_.ino,HEAP32[r+12>>2]=_.mode,HEAPU32[r+16>>2]=_.nlink,HEAP32[r+20>>2]=_.uid,HEAP32[r+24>>2]=_.gid,HEAP32[r+28>>2]=_.rdev,tempI64=[_.size>>>0,(tempDouble=_.size,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>2]=tempI64[0],HEAP32[r+44>>2]=tempI64[1],HEAP32[r+48>>2]=4096,HEAP32[r+52>>2]=_.blocks;var n=_.atime.getTime(),s=_.mtime.getTime(),a=_.ctime.getTime();return tempI64=[Math.floor(n/1e3)>>>0,(tempDouble=Math.floor(n/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>2]=tempI64[0],HEAP32[r+60>>2]=tempI64[1],HEAPU32[r+64>>2]=n%1e3*1e3,tempI64=[Math.floor(s/1e3)>>>0,(tempDouble=Math.floor(s/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>2]=tempI64[0],HEAP32[r+76>>2]=tempI64[1],HEAPU32[r+80>>2]=s%1e3*1e3,tempI64=[Math.floor(a/1e3)>>>0,(tempDouble=Math.floor(a/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>2]=tempI64[0],HEAP32[r+92>>2]=tempI64[1],HEAPU32[r+96>>2]=a%1e3*1e3,tempI64=[_.ino>>>0,(tempDouble=_.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+104>>2]=tempI64[0],HEAP32[r+108>>2]=tempI64[1],0},doMsync:function(e,t,r,_,n){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&_)return 0;var s=HEAPU8.slice(e,e+r);FS.msync(t,s,n,r,_)},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(e){return UTF8ToString(e)},getStreamFromFD:function(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t}};function _proc_exit(e){EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}function exitJS(e,t){EXITSTATUS=e,_proc_exit(e)}_proc_exit.sig="vi";var _exit=exitJS;function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function convertI32PairToI53Checked(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function _fd_seek(e,t,r,_,n){try{var s=convertI32PairToI53Checked(t,r);if(isNaN(s))return 61;var a=SYSCALLS.getStreamFromFD(e);return FS.llseek(a,s,_),tempI64=[a.position>>>0,(tempDouble=a.position,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n>>2]=tempI64[0],HEAP32[n+4>>2]=tempI64[1],a.getdents&&0===s&&0===_&&(a.getdents=null),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function doWritev(e,t,r,_){for(var n=0,s=0;s<r;s++){var a=HEAPU32[t>>2],o=HEAPU32[t+4>>2];t+=8;var i=FS.write(e,HEAP8,a,o,_);if(i<0)return-1;n+=i,void 0!==_&&(_+=i)}return n}function _fd_write(e,t,r,_){try{var n=doWritev(SYSCALLS.getStreamFromFD(e),t,r);return HEAPU32[_>>2]=n,0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,_,n){var s=currentParseCallback(t,{row:r,column:_});"string"==typeof s?(setValue(n,s.length,"i32"),stringToUTF16(s,e,10240)):setValue(n,0,"i32")}function handleException(e){if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)}function allocateUTF8OnStack(e){var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8Array(e,HEAP8,r,t),r}function stringToUTF16(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var _=t,n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var a=e.charCodeAt(s);HEAP16[t>>1]=a,t+=2}return HEAP16[t>>1]=0,t-_}function AsciiToString(e){for(var t="";;){var r=HEAPU8[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}_exit.sig="vi",_fd_close.sig="ii",_fd_seek.sig="iijip",_fd_write.sig="iippp";var asmLibraryArg={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,abort:_abort,emscripten_get_now:_emscripten_get_now,emscripten_memcpy_big:_emscripten_memcpy_big,emscripten_resize_heap:_emscripten_resize_heap,exit:_exit,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=function(){return(___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=Module.asm.__wasm_apply_data_relocs).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.malloc).apply(null,arguments)},_calloc=Module._calloc=function(){return(_calloc=Module._calloc=Module.asm.calloc).apply(null,arguments)},_realloc=Module._realloc=function(){return(_realloc=Module._realloc=Module.asm.realloc).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.free).apply(null,arguments)},_ts_language_symbol_count=Module._ts_language_symbol_count=function(){return(_ts_language_symbol_count=Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},_ts_language_version=Module._ts_language_version=function(){return(_ts_language_version=Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},_ts_language_field_count=Module._ts_language_field_count=function(){return(_ts_language_field_count=Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},_ts_language_symbol_name=Module._ts_language_symbol_name=function(){return(_ts_language_symbol_name=Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=function(){return(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},_ts_language_symbol_type=Module._ts_language_symbol_type=function(){return(_ts_language_symbol_type=Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=function(){return(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},_memset=Module._memset=function(){return(_memset=Module._memset=Module.asm.memset).apply(null,arguments)},_memcpy=Module._memcpy=function(){return(_memcpy=Module._memcpy=Module.asm.memcpy).apply(null,arguments)},_ts_parser_delete=Module._ts_parser_delete=function(){return(_ts_parser_delete=Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},_ts_parser_reset=Module._ts_parser_reset=function(){return(_ts_parser_reset=Module._ts_parser_reset=Module.asm.ts_parser_reset).apply(null,arguments)},_ts_parser_set_language=Module._ts_parser_set_language=function(){return(_ts_parser_set_language=Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=function(){return(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=function(){return(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},_memmove=Module._memmove=function(){return(_memmove=Module._memmove=Module.asm.memmove).apply(null,arguments)},_memcmp=Module._memcmp=function(){return(_memcmp=Module._memcmp=Module.asm.memcmp).apply(null,arguments)},_ts_query_new=Module._ts_query_new=function(){return(_ts_query_new=Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},_ts_query_delete=Module._ts_query_delete=function(){return(_ts_query_delete=Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},_iswspace=Module._iswspace=function(){return(_iswspace=Module._iswspace=Module.asm.iswspace).apply(null,arguments)},_iswalnum=Module._iswalnum=function(){return(_iswalnum=Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},_ts_query_pattern_count=Module._ts_query_pattern_count=function(){return(_ts_query_pattern_count=Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},_ts_query_capture_count=Module._ts_query_capture_count=function(){return(_ts_query_capture_count=Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},_ts_query_string_count=Module._ts_query_string_count=function(){return(_ts_query_string_count=Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=function(){return(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=function(){return(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=function(){return(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},_ts_tree_copy=Module._ts_tree_copy=function(){return(_ts_tree_copy=Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},_ts_tree_delete=Module._ts_tree_delete=function(){return(_ts_tree_delete=Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},_ts_init=Module._ts_init=function(){return(_ts_init=Module._ts_init=Module.asm.ts_init).apply(null,arguments)},_ts_parser_new_wasm=Module._ts_parser_new_wasm=function(){return(_ts_parser_new_wasm=Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=function(){return(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=function(){return(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=function(){return(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=function(){return(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=function(){return(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=function(){return(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=function(){return(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=function(){return(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=function(){return(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=function(){return(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=function(){return(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=function(){return(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=function(){return(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=function(){return(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=function(){return(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=function(){return(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=function(){return(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=function(){return(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=function(){return(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=function(){return(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=function(){return(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=function(){return(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},_ts_node_child_wasm=Module._ts_node_child_wasm=function(){return(_ts_node_child_wasm=Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=function(){return(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=function(){return(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=function(){return(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=function(){return(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=function(){return(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=function(){return(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},_ts_node_parent_wasm=Module._ts_node_parent_wasm=function(){return(_ts_node_parent_wasm=Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=function(){return(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=function(){return(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=function(){return(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=function(){return(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=function(){return(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=function(){return(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=function(){return(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=function(){return(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=function(){return(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},_ts_node_children_wasm=Module._ts_node_children_wasm=function(){return(_ts_node_children_wasm=Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=function(){return(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=function(){return(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=function(){return(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=function(){return(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=function(){return(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=function(){return(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},_ts_query_matches_wasm=Module._ts_query_matches_wasm=function(){return(_ts_query_matches_wasm=Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},_ts_query_captures_wasm=Module._ts_query_captures_wasm=function(){return(_ts_query_captures_wasm=Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},___cxa_atexit=Module.___cxa_atexit=function(){return(___cxa_atexit=Module.___cxa_atexit=Module.asm.__cxa_atexit).apply(null,arguments)},_iswdigit=Module._iswdigit=function(){return(_iswdigit=Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},_iswalpha=Module._iswalpha=function(){return(_iswalpha=Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},_iswlower=Module._iswlower=function(){return(_iswlower=Module._iswlower=Module.asm.iswlower).apply(null,arguments)},_memchr=Module._memchr=function(){return(_memchr=Module._memchr=Module.asm.memchr).apply(null,arguments)},_strlen=Module._strlen=function(){return(_strlen=Module._strlen=Module.asm.strlen).apply(null,arguments)},_towupper=Module._towupper=function(){return(_towupper=Module._towupper=Module.asm.towupper).apply(null,arguments)},_setThrew=Module._setThrew=function(){return(_setThrew=Module._setThrew=Module.asm.setThrew).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.stackSave).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},__Znwm=Module.__Znwm=function(){return(__Znwm=Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},__ZdlPv=Module.__ZdlPv=function(){return(__ZdlPv=Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw).apply(null,arguments)},dynCall_jiji=Module.dynCall_jiji=function(){return(dynCall_jiji=Module.dynCall_jiji=Module.asm.dynCall_jiji).apply(null,arguments)},_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=function(){return(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=function(){return(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},calledRun;function callMain(e){var t=Module._main;if(t){(e=e||[]).unshift(thisProgram);var r=e.length,_=stackAlloc(4*(r+1)),n=_>>2;e.forEach((e=>{HEAP32[n++]=allocateUTF8OnStack(e)})),HEAP32[n]=0;try{var s=t(r,_);return exitJS(s,!0),s}catch(e){return handleException(e)}}}Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var dylibsLoaded=!1;function run(e){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}e=e||arguments_,runDependencies>0||!dylibsLoaded&&(preloadDylibs(),dylibsLoaded=!0,runDependencies>0)||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;var VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r,_)=>e.slice(t,_);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let _=0,n=0;if(r&&r.includedRanges){_=r.includedRanges.length,n=C._calloc(_,SIZE_OF_RANGE);let e=n;for(let t=0;t<_;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const s=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,_);if(!s)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const a=new Tree(INTERNAL,s,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,a}reset(){C._ts_parser_reset(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,_){assertInternal(e),this[0]=t,this.language=r,this.textCallback=_}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)_[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return _}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const _=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&_.push(t);const s=C._malloc(SIZE_OF_INT*_.length);for(let e=0,t=_.length;e<t;e++)setValue(s+e*SIZE_OF_INT,_[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],s,_.length,t.row,t.column,r.row,r.column);const a=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),i=new Array(a);if(a>0){let e=o;for(let t=0;t<a;t++)i[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(o),C._free(s),i}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),_=C._malloc(r+1);stringToUTF8(e,_,r+1);const n=C._ts_language_symbol_for_name(this[0],_,r,t);return C._free(_),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const _=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!_){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),_=UTF8ToString(r,getValue(TRANSFER_BUFFER,"i32")).length,n=e.substr(_,100).split("\n")[0];let s,a=n.match(QUERY_WORD_REGEX)[0];switch(t){case 2:s=new RangeError(`Bad node name '${a}'`);break;case 3:s=new RangeError(`Bad field name '${a}'`);break;case 4:s=new RangeError(`Bad capture name @${a}`);break;case 5:s=new TypeError(`Bad pattern structure at offset ${_}: '${n}'...`),a="";break;default:s=new SyntaxError(`Bad syntax at offset ${_}: '${n}'...`),a=""}throw s.index=_,s.length=a.length,C._free(r),s}const n=C._ts_query_string_count(_),s=C._ts_query_capture_count(_),a=C._ts_query_pattern_count(_),o=new Array(s),i=new Array(n);for(let e=0;e<s;e++){const t=C._ts_query_capture_name_for_id(_,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");o[e]=UTF8ToString(t,r)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(_,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");i[e]=UTF8ToString(t,r)}const l=new Array(a),u=new Array(a),d=new Array(a),c=new Array(a),m=new Array(a);for(let e=0;e<a;e++){const t=C._ts_query_predicates_for_pattern(_,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=[],m[e]=[];const n=[];let s=t;for(let t=0;t<r;t++){const t=getValue(s,"i32");s+=SIZE_OF_INT;const r=getValue(s,"i32");if(s+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:o[r]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:i[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${n[1].value}"`);if("capture"===n[2].type){const t=n[1].name,_=n[2].name;m[e].push((function(e){let n,s;for(const r of e)r.name===t&&(n=r.node),r.name===_&&(s=r.node);return void 0===n||void 0===s||n.text===s.text===r}))}else{const t=n[1].name,_=n[2].value;m[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===_===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${n[2].value}.`);const _=n[1].name,s=new RegExp(n[2].value);m[e].push((function(e){for(const t of e)if(t.name===_)return s.test(t.node.text)===r;return!0}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const a="is?"===t?u:d;a[e]||(a[e]={}),a[e][n[1].value]=n[2]?n[2].value:null;break;default:c[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(d[e])}return C._free(r),new Query(INTERNAL,_,o,m,c,Object.freeze(l),Object.freeze(u),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(65530);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:loadWebAssemblyModule;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const _=e[r]();return new Language(INTERNAL,_)}))}}class Query{constructor(e,t,r,_,n,s,a,o){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=_,this.predicates=n,this.setProperties=s,this.assertedProperties=a,this.refutedProperties=o,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,_){t||(t=ZERO_POINT),r||(r=ZERO_POINT),_||(_={});let n=_.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const s=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),o=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),i=new Array(s);this.exceededMatchLimit=!!o;let l=0,u=a;for(let t=0;t<s;t++){const r=getValue(u,"i32");u+=SIZE_OF_INT;const _=getValue(u,"i32");u+=SIZE_OF_INT;const n=new Array(_);if(u=unmarshalCaptures(this,e.tree,u,n),this.textPredicates[r].every((e=>e(n)))){i[l++]={pattern:r,captures:n};const e=this.setProperties[r];e&&(i[t].setProperties=e);const _=this.assertedProperties[r];_&&(i[t].assertedProperties=_);const s=this.refutedProperties[r];s&&(i[t].refutedProperties=s)}}return i.length=l,C._free(a),i}captures(e,t,r,_){t||(t=ZERO_POINT),r||(r=ZERO_POINT),_||(_={});let n=_.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const s=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),o=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),i=[];this.exceededMatchLimit=!!o;const l=[];let u=a;for(let t=0;t<s;t++){const t=getValue(u,"i32");u+=SIZE_OF_INT;const r=getValue(u,"i32");u+=SIZE_OF_INT;const _=getValue(u,"i32");if(u+=SIZE_OF_INT,l.length=r,u=unmarshalCaptures(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[_],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const s=this.refutedProperties[t];s&&(e.refutedProperties=s),i.push(e)}}return C._free(a),i}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const _=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const _=e.textCallback(t,null,r);if(!(_&&_.length>0))break;t+=_.length,n+=_}return t>r&&(n=n.slice(0,_)),n}function unmarshalCaptures(e,t,r,_){for(let n=0,s=_.length;n<s;n++){const s=getValue(r,"i32"),a=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,_[n]={name:e.captureNames[s],node:a}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const _=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),s=getValue(t+=SIZE_OF_INT,"i32"),a=getValue(t+=SIZE_OF_INT,"i32"),o=new Node(INTERNAL,e);return o.id=r,o.startIndex=_,o.startPosition={row:n,column:s},o[0]=a,o}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32"),column:getValue(e+SIZE_OF_INT,"i32")}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32"),e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32"),t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}(); true&&(module.exports=TreeSitter);
|
|
11603
|
+
var Module=void 0!==Module?Module:{},TreeSitter=function(){var e,t="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(r){return e||(Module=Object.assign({},Module,r),e=new Promise(e=>{var r,n={};for(r in Module)Module.hasOwnProperty(r)&&(n[r]=Module[r]);var s,o,_=[],a="./this.program",u=function(e,t){throw t},i=!1,l=!1;i="object"==typeof window,l="function"==typeof importScripts,s="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,o=!i&&!s&&!l;var d,c,m,f,p,h="";s?(h=l?(__webpack_require__(56287).dirname)(h)+"/":__dirname+"/",d=function(e,t){return f||(f=__webpack_require__(65530)),p||(p=__webpack_require__(56287)),e=p.normalize(e),f.readFileSync(e,t?null:"utf8")},m=function(e){var t=d(e,!0);return t.buffer||(t=new Uint8Array(t)),k(t.buffer),t},process.argv.length>1&&(a=process.argv[1].replace(/\\/g,"/")),_=process.argv.slice(2), true&&(module.exports=Module),u=function(e){process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}):o?("undefined"!=typeof read&&(d=function(e){return read(e)}),m=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(k("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?_=scriptArgs:void 0!==arguments&&(_=arguments),"function"==typeof quit&&(u=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(i||l)&&(l?h=self.location.href:void 0!==t&&t.currentScript&&(h=t.currentScript.src),h=0!==h.indexOf("blob:")?h.substr(0,h.lastIndexOf("/")+1):"",d=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},l&&(m=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),c=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)});Module.print||console.log.bind(console);var g=Module.printErr||console.warn.bind(console);for(r in n)n.hasOwnProperty(r)&&(Module[r]=n[r]);n=null,Module.arguments&&(_=Module.arguments),Module.thisProgram&&(a=Module.thisProgram),Module.quit&&(u=Module.quit);var w=16;var y,M=[];function b(e,t){if(!y){y=new WeakMap;for(var r=0;r<K.length;r++){var n=K.get(r);n&&y.set(n,r)}}if(y.has(e))return y.get(e);var s=function(){if(M.length)return M.pop();try{K.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return K.length-1}();try{K.set(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var o=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var o=[1,0,1,96],_=t.slice(0,1),a=t.slice(1),u={i:127,j:126,f:125,d:124};for(o.push(a.length),s=0;s<a.length;++s)o.push(u[a[s]]);"v"==_?o.push(0):o=o.concat([1,u[_]]),o[1]=o.length-2;var i=new Uint8Array([0,97,115,109,1,0,0,0].concat(o,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(i);return new WebAssembly.Instance(l,{e:{f:e}}).exports.f}(e,t);K.set(s,o)}return y.set(e,s),s}var v,E=function(e){e},I=Module.dynamicLibraries||[];Module.wasmBinary&&(v=Module.wasmBinary);var A,S=Module.noExitRuntime||!0;function x(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":R[e>>0]=t;break;case"i16":L[e>>1]=t;break;case"i32":W[e>>2]=t;break;case"i64":ue=[t>>>0,(ae=t,+Math.abs(ae)>=1?ae>0?(0|Math.min(+Math.floor(ae/4294967296),4294967295))>>>0:~~+Math.ceil((ae-+(~~ae>>>0))/4294967296)>>>0:0)],W[e>>2]=ue[0],W[e+4>>2]=ue[1];break;case"float":O[e>>2]=t;break;case"double":Z[e>>3]=t;break;default:oe("invalid type for setValue: "+r)}}function N(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return R[e>>0];case"i16":return L[e>>1];case"i32":case"i64":return W[e>>2];case"float":return O[e>>2];case"double":return Z[e>>3];default:oe("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&oe("no native wasm support detected");var P=!1;function k(e,t){e||oe("Assertion failed: "+t)}var C=1;var q,R,T,L,W,O,Z,F="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function $(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&F)return F.decode(e.subarray(t,s));for(var o="";t<s;){var _=e[t++];if(128&_){var a=63&e[t++];if(192!=(224&_)){var u=63&e[t++];if((_=224==(240&_)?(15&_)<<12|a<<6|u:(7&_)<<18|a<<12|u<<6|63&e[t++])<65536)o+=String.fromCharCode(_);else{var i=_-65536;o+=String.fromCharCode(55296|i>>10,56320|1023&i)}}else o+=String.fromCharCode((31&_)<<6|a)}else o+=String.fromCharCode(_)}return o}function j(e,t){return e?$(T,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,o=r+n-1,_=0;_<e.length;++_){var a=e.charCodeAt(_);if(a>=55296&&a<=57343)a=65536+((1023&a)<<10)|1023&e.charCodeAt(++_);if(a<=127){if(r>=o)break;t[r++]=a}else if(a<=2047){if(r+1>=o)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=o)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=o)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-s}function D(e,t,r){return U(e,T,t,r)}function z(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function G(e){var t=z(e)+1,r=ze(t);return U(e,R,r,t),r}function H(e){q=e,Module.HEAP8=R=new Int8Array(e),Module.HEAP16=L=new Int16Array(e),Module.HEAP32=W=new Int32Array(e),Module.HEAPU8=T=new Uint8Array(e),Module.HEAPU16=new Uint16Array(e),Module.HEAPU32=new Uint32Array(e),Module.HEAPF32=O=new Float32Array(e),Module.HEAPF64=Z=new Float64Array(e)}var B=Module.INITIAL_MEMORY||33554432;(A=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:B/65536,maximum:32768}))&&(q=A.buffer),B=q.byteLength,H(q);var K=new WebAssembly.Table({initial:17,element:"anyfunc"}),V=[],X=[],Q=[],J=[],Y=!1;var ee=0,te=null,re=null;function ne(e){ee++,Module.monitorRunDependencies&&Module.monitorRunDependencies(ee)}function se(e){if(ee--,Module.monitorRunDependencies&&Module.monitorRunDependencies(ee),0==ee&&(null!==te&&(clearInterval(te),te=null),re)){var t=re;re=null,t()}}function oe(e){throw Module.onAbort&&Module.onAbort(e),g(e+=""),P=!0,1,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}Module.preloadedImages={},Module.preloadedAudios={},Module.preloadedWasm={};var _e,ae,ue,ie="data:application/octet-stream;base64,";function le(e){return e.startsWith(ie)}function de(e){return e.startsWith("file://")}function ce(e){try{if(e==_e&&v)return new Uint8Array(v);if(m)return m(e);throw"both async and sync fetching of the wasm failed"}catch(e){oe(e)}}le(_e="tree-sitter.wasm")||(_e=function(e){return Module.locateFile?Module.locateFile(e,h):h+e}(_e));var me={},fe={get:function(e,t){return me[t]||(me[t]=new WebAssembly.Global({value:"i32",mutable:!0})),me[t]}};function pe(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?K.get(r)():K.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(Module)}}function he(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");k(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else{k(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),k(0===e[8],"need the dylink section to be first"),t=9,r(),k(6===e[t]),k(e[++t]==="d".charCodeAt(0)),k(e[++t]==="y".charCodeAt(0)),k(e[++t]==="l".charCodeAt(0)),k(e[++t]==="i".charCodeAt(0)),k(e[++t]==="n".charCodeAt(0)),k(e[++t]==="k".charCodeAt(0)),t++}var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var o=r();s.neededDynlibs=[];for(var _=0;_<o;++_){var a=r(),u=e.subarray(t,t+a);t+=a;var i=$(u,0);s.neededDynlibs.push(i)}return s}var ge=0;function we(){return S||ge>0}function ye(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function Me(e,t){for(var r in e)if(e.hasOwnProperty(r)){Fe.hasOwnProperty(r)||(Fe[r]=e[r]);var n=ye(r);Module.hasOwnProperty(n)||(Module[n]=e[r])}}var be={nextHandle:1,loadedLibs:{},loadedLibNames:{}};function ve(e,t,r){return e.includes("j")?function(e,t,r){var n=Module["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):K.get(t).apply(null,r)}var Ee=5250880;function Ie(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Ae(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!Ie(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),me[t]||(me[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==me[t].value)&&("function"==typeof n?me[t].value=b(n):"number"==typeof n?me[t].value=n:g("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function Se(e,t){var r,n;return t&&(r=Fe["orig$"+e]),r||(r=Fe[e]),r||(r=Module[ye(e)]),!r&&e.startsWith("invoke_")&&(n=e.split("_")[1],r=function(){var e=Ue();try{return ve(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(De(e),t!==t+0&&"longjmp"!==t)throw t;Ge(1,0)}}),r}function xe(e,t){var r=he(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,w);var s,o,_,a=(s=function(e){if(Y)return $e(e);var t=Ee,r=t+e+15&-16;return Ee=r,me.__heap_base.value=r,t}(r.memorySize+n),(o=n)||(o=w),Math.ceil(s/o)*o),u=K.length;K.grow(r.tableSize);for(var i=a;i<a+r.memorySize;i++)R[i]=0;for(i=u;i<u+r.tableSize;i++)K.set(i,null);var l=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return a;case"__table_base":return u}if(t in Fe)return Fe[t];var r;t in e||(e[t]=function(){return r||(r=function(e){var t=Se(e,!1);return t||(t=_[e]),t}(t)),r.apply(null,arguments)});return e[t]}}),d={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:l,wasi_snapshot_preview1:l};function c(e){for(var n=0;n<r.tableSize;n++){var s=K.get(u+n);s&&y.set(s,u+n)}_=Ae(e.exports,a),t.allowUndefined||Pe();var o=_.__wasm_call_ctors;return o||(o=_.__post_instantiate),o&&(Y?o():X.push(o)),_}if(t.loadAsync){if(e instanceof WebAssembly.Module){var m=new WebAssembly.Instance(e,d);return Promise.resolve(c(m))}return WebAssembly.instantiate(e,d).then(function(e){return c(e.instance)})}var f=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return c(m=new WebAssembly.Instance(f,d))}return t.loadAsync?r.neededDynlibs.reduce(function(e,r){return e.then(function(){return Ne(r,t)})},Promise.resolve()).then(function(){return n()}):(r.neededDynlibs.forEach(function(e){Ne(e,t)}),n())}function Ne(e,t){"__main__"!=e||be.loadedLibNames[e]||(be.loadedLibs[-1]={refcount:1/0,name:"__main__",module:Module.asm,global:!0},be.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,n=be.loadedLibNames[e];if(n)return r=be.loadedLibs[n],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&Me(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(n):n;function s(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()}).then(function(e){return new Uint8Array(e)})):m(e);var n}function o(){if(void 0!==Module.preloadedWasm&&void 0!==Module.preloadedWasm[e]){var r=Module.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?s(e).then(function(e){return xe(e,t)}):xe(s(e),t)}function _(e){r.global&&Me(e),r.module=e}return n=be.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},be.loadedLibNames[e]=n,be.loadedLibs[n]=r,t.loadAsync?o().then(function(e){return _(e),n}):(_(o()),n)}function Pe(){for(var e in me)if(0==me[e].value){var t=Se(e,!0);"function"==typeof t?me[e].value=b(t,t.sig):"number"==typeof t?me[e].value=t:k(!1,"bad export type for `"+e+"`: "+typeof t)}}Module.___heap_base=Ee;var ke,Ce=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function qe(){oe()}Module._abort=qe,qe.sig="v",ke=s?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};var Re=!0;function Te(e,t){var r,n;if(0===e)r=Date.now();else{if(1!==e&&4!==e||!Re)return n=28,W[je()>>2]=n,-1;r=ke()}return W[t>>2]=r/1e3|0,W[t+4>>2]=r%1e3*1e3*1e3|0,0}function Le(e){try{return A.grow(e-q.byteLength+65535>>>16),H(A.buffer),1}catch(e){}}function We(e){Ve(e)}function Oe(e){E(e)}Te.sig="iii",We.sig="vi",Oe.sig="vi";var Ze,Fe={__heap_base:Ee,__indirect_function_table:K,__memory_base:1024,__stack_pointer:Ce,__table_base:1,abort:qe,clock_gettime:Te,emscripten_memcpy_big:function(e,t,r){T.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r,n=T.length;if((e>>>=0)>2147483648)return!1;for(var s=1;s<=4;s*=2){var o=n*(1+.2/s);if(o=Math.min(o,e+100663296),Le(Math.min(2147483648,((t=Math.max(e,o))%(r=65536)>0&&(t+=r-t%r),t))))return!0}return!1},exit:We,memory:A,setTempRet0:Oe,tree_sitter_log_callback:function(e,t){if(ct){const r=j(t);ct(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var o=dt(t,{row:r,column:n});"string"==typeof o?(x(s,o.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var o=e.charCodeAt(s);L[t>>1]=o,t+=2}L[t>>1]=0}(o,e,10240)):x(s,0,"i32")}},$e=(function(){var e={env:Fe,wasi_snapshot_preview1:Fe,"GOT.mem":new Proxy(Fe,fe),"GOT.func":new Proxy(Fe,fe)};function t(e,t){var r=e.exports;r=Ae(r,1024),Module.asm=r;var n,s=he(t);s.neededDynlibs&&(I=s.neededDynlibs.concat(I)),Me(r),n=Module.asm.__wasm_call_ctors,X.unshift(n),se()}function r(e){t(e.instance,e.module)}function n(t){return function(){if(!v&&(i||l)){if("function"==typeof fetch&&!de(_e))return fetch(_e,{credentials:"same-origin"}).then(function(e){if(!e.ok)throw"failed to load wasm binary file at '"+_e+"'";return e.arrayBuffer()}).catch(function(){return ce(_e)});if(c)return new Promise(function(e,t){c(_e,function(t){e(new Uint8Array(t))},t)})}return Promise.resolve().then(function(){return ce(_e)})}().then(function(t){return WebAssembly.instantiate(t,e)}).then(t,function(e){g("failed to asynchronously prepare wasm: "+e),oe(e)})}if(ne(),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return g("Module.instantiateWasm callback failed with error: "+e),!1}v||"function"!=typeof WebAssembly.instantiateStreaming||le(_e)||de(_e)||"function"!=typeof fetch?n(r):fetch(_e,{credentials:"same-origin"}).then(function(t){return WebAssembly.instantiateStreaming(t,e).then(r,function(e){return g("wasm streaming compile failed: "+e),g("falling back to ArrayBuffer instantiation"),n(r)})})}(),Module.___wasm_call_ctors=function(){return(Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},Module._malloc=function(){return($e=Module._malloc=Module.asm.malloc).apply(null,arguments)}),je=(Module._calloc=function(){return(Module._calloc=Module.asm.calloc).apply(null,arguments)},Module._realloc=function(){return(Module._realloc=Module.asm.realloc).apply(null,arguments)},Module._free=function(){return(Module._free=Module.asm.free).apply(null,arguments)},Module._ts_language_symbol_count=function(){return(Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},Module._ts_language_version=function(){return(Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},Module._ts_language_field_count=function(){return(Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},Module._ts_language_symbol_name=function(){return(Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},Module._ts_language_symbol_for_name=function(){return(Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},Module._ts_language_symbol_type=function(){return(Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},Module._ts_language_field_name_for_id=function(){return(Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},Module._memcpy=function(){return(Module._memcpy=Module.asm.memcpy).apply(null,arguments)},Module._ts_parser_delete=function(){return(Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},Module._ts_parser_reset=function(){return(Module._ts_parser_reset=Module.asm.ts_parser_reset).apply(null,arguments)},Module._ts_parser_set_language=function(){return(Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},Module._ts_parser_timeout_micros=function(){return(Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},Module._ts_parser_set_timeout_micros=function(){return(Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},Module._memmove=function(){return(Module._memmove=Module.asm.memmove).apply(null,arguments)},Module._memcmp=function(){return(Module._memcmp=Module.asm.memcmp).apply(null,arguments)},Module._ts_query_new=function(){return(Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},Module._ts_query_delete=function(){return(Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},Module._iswspace=function(){return(Module._iswspace=Module.asm.iswspace).apply(null,arguments)},Module._iswalnum=function(){return(Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},Module._ts_query_pattern_count=function(){return(Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},Module._ts_query_capture_count=function(){return(Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},Module._ts_query_string_count=function(){return(Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},Module._ts_query_capture_name_for_id=function(){return(Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},Module._ts_query_string_value_for_id=function(){return(Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},Module._ts_query_predicates_for_pattern=function(){return(Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},Module._ts_tree_copy=function(){return(Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},Module._ts_tree_delete=function(){return(Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},Module._ts_init=function(){return(Module._ts_init=Module.asm.ts_init).apply(null,arguments)},Module._ts_parser_new_wasm=function(){return(Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},Module._ts_parser_enable_logger_wasm=function(){return(Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},Module._ts_parser_parse_wasm=function(){return(Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},Module._ts_language_type_is_named_wasm=function(){return(Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},Module._ts_language_type_is_visible_wasm=function(){return(Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},Module._ts_tree_root_node_wasm=function(){return(Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},Module._ts_tree_edit_wasm=function(){return(Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},Module._ts_tree_get_changed_ranges_wasm=function(){return(Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},Module._ts_tree_cursor_new_wasm=function(){return(Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},Module._ts_tree_cursor_delete_wasm=function(){return(Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},Module._ts_tree_cursor_reset_wasm=function(){return(Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},Module._ts_tree_cursor_goto_first_child_wasm=function(){return(Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},Module._ts_tree_cursor_goto_parent_wasm=function(){return(Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_id_wasm=function(){return(Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},Module._ts_tree_cursor_start_position_wasm=function(){return(Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},Module._ts_tree_cursor_end_position_wasm=function(){return(Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},Module._ts_tree_cursor_start_index_wasm=function(){return(Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},Module._ts_tree_cursor_end_index_wasm=function(){return(Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_field_id_wasm=function(){return(Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},Module._ts_tree_cursor_current_node_wasm=function(){return(Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},Module._ts_node_symbol_wasm=function(){return(Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},Module._ts_node_child_count_wasm=function(){return(Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},Module._ts_node_named_child_count_wasm=function(){return(Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},Module._ts_node_child_wasm=function(){return(Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},Module._ts_node_named_child_wasm=function(){return(Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},Module._ts_node_child_by_field_id_wasm=function(){return(Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},Module._ts_node_next_sibling_wasm=function(){return(Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},Module._ts_node_prev_sibling_wasm=function(){return(Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},Module._ts_node_next_named_sibling_wasm=function(){return(Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},Module._ts_node_prev_named_sibling_wasm=function(){return(Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},Module._ts_node_parent_wasm=function(){return(Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},Module._ts_node_descendant_for_index_wasm=function(){return(Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},Module._ts_node_named_descendant_for_index_wasm=function(){return(Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},Module._ts_node_descendant_for_position_wasm=function(){return(Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},Module._ts_node_named_descendant_for_position_wasm=function(){return(Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},Module._ts_node_start_point_wasm=function(){return(Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},Module._ts_node_end_point_wasm=function(){return(Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},Module._ts_node_start_index_wasm=function(){return(Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},Module._ts_node_end_index_wasm=function(){return(Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},Module._ts_node_to_string_wasm=function(){return(Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},Module._ts_node_children_wasm=function(){return(Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},Module._ts_node_named_children_wasm=function(){return(Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},Module._ts_node_descendants_of_type_wasm=function(){return(Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},Module._ts_node_is_named_wasm=function(){return(Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},Module._ts_node_has_changes_wasm=function(){return(Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},Module._ts_node_has_error_wasm=function(){return(Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},Module._ts_node_is_missing_wasm=function(){return(Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},Module._ts_query_matches_wasm=function(){return(Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},Module._ts_query_captures_wasm=function(){return(Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},Module._iswdigit=function(){return(Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},Module._iswalpha=function(){return(Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},Module._iswlower=function(){return(Module._iswlower=Module.asm.iswlower).apply(null,arguments)},Module._towupper=function(){return(Module._towupper=Module.asm.towupper).apply(null,arguments)},Module.___errno_location=function(){return(je=Module.___errno_location=Module.asm.__errno_location).apply(null,arguments)}),Ue=(Module._memchr=function(){return(Module._memchr=Module.asm.memchr).apply(null,arguments)},Module._strlen=function(){return(Module._strlen=Module.asm.strlen).apply(null,arguments)},Module.stackSave=function(){return(Ue=Module.stackSave=Module.asm.stackSave).apply(null,arguments)}),De=Module.stackRestore=function(){return(De=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},ze=Module.stackAlloc=function(){return(ze=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},Ge=Module._setThrew=function(){return(Ge=Module._setThrew=Module.asm.setThrew).apply(null,arguments)};Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},Module.__Znwm=function(){return(Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},Module.__ZdlPv=function(){return(Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},Module.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(Module.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=Module.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},Module._orig$ts_parser_timeout_micros=function(){return(Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},Module._orig$ts_parser_set_timeout_micros=function(){return(Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)};function He(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}Module.allocate=function(e,t){var r;return r=t==C?ze(e.length):$e(e.length),e.subarray||e.slice?T.set(e,r):T.set(new Uint8Array(e),r),r};re=function e(){Ze||Ke(),Ze||(re=e)};var Be=!1;function Ke(e){function t(){Ze||(Ze=!0,Module.calledRun=!0,P||(Y=!0,pe(X),pe(Q),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),Xe&&function(e){var t=Module._main;if(t){var r=(e=e||[]).length+1,n=ze(4*(r+1));W[n>>2]=G(a);for(var s=1;s<r;s++)W[(n>>2)+s]=G(e[s-1]);W[(n>>2)+r]=0;try{Ve(t(r,n),!0)}catch(e){if(e instanceof He)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),g("exception thrown: "+o),u(1,e)}finally{!0}}}(e),function(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)e=Module.postRun.shift(),J.unshift(e);var e;pe(J)}()))}e=e||_,ee>0||!Be&&(function(){if(I.length){if(!m)return ne(),void I.reduce(function(e,t){return e.then(function(){return Ne(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})})},Promise.resolve()).then(function(){se(),Pe()});I.forEach(function(e){Ne(e,{global:!0,nodelete:!0,allowUndefined:!0})}),Pe()}else Pe()}(),Be=!0,ee>0)||(!function(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)e=Module.preRun.shift(),V.unshift(e);var e;pe(V)}(),ee>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout(function(){setTimeout(function(){Module.setStatus("")},1),t()},1)):t()))}function Ve(e,t){e,t&&we()&&0===e||(we()||(!0,Module.onExit&&Module.onExit(e),P=!0),u(e,new He(e)))}if(Module.run=Ke,Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var Xe=!0;Module.noInitialRun&&(Xe=!1),Ke();const Qe=Module,Je={},Ye=4,et=5*Ye,tt=2*Ye,rt=2*Ye+2*tt,nt={row:0,column:0},st=/[\w-.]*/g,ot=1,_t=2,at=/^_?tree_sitter_\w+/;var ut,it,lt,dt,ct;class ParserImpl{static init(){lt=Qe._ts_init(),ut=N(lt,"i32"),it=N(lt+Ye,"i32")}initialize(){Qe._ts_parser_new_wasm(),this[0]=N(lt,"i32"),this[1]=N(lt+Ye,"i32")}delete(){Qe._ts_parser_delete(this[0]),Qe._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=Qe._ts_language_version(t);if(r<it||ut<r)throw new Error(`Incompatible language version ${r}. `+`Compatibility range ${it} through ${ut}.`)}}else t=0,e=null;return this.language=e,Qe._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)dt=((t,r,n)=>e.slice(t,n));else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");dt=e}this.logCallback?(ct=this.logCallback,Qe._ts_parser_enable_logger_wasm(this[0],1)):(ct=null,Qe._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Qe._calloc(n,rt);for(let t=0;t<n;t++)Et(e,r.includedRanges[t]),e+=rt}const o=Qe._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!o)throw dt=null,ct=null,new Error("Parsing failed");const _=new Tree(Je,o,this.language,dt);return dt=null,ct=null,_}reset(){Qe._ts_parser_reset(this[0])}setTimeoutMicros(e){Qe._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Qe._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,n){pt(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=Qe._ts_tree_copy(this[0]);return new Tree(Je,e,this.language,this.textCallback)}delete(){Qe._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=lt;bt(t,e.startPosition),bt(t+=tt,e.oldEndPosition),bt(t+=tt,e.newEndPosition),x(t+=tt,e.startIndex,"i32"),x(t+=Ye,e.oldEndIndex,"i32"),x(t+=Ye,e.newEndIndex,"i32"),t+=Ye}(e),Qe._ts_tree_edit_wasm(this[0])}get rootNode(){return Qe._ts_tree_root_node_wasm(this[0]),wt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");Qe._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=N(lt,"i32"),r=N(lt+Ye,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=It(e),e+=rt;Qe._free(r)}return n}}class Node{constructor(e,t){pt(e),this.tree=t}get typeId(){return gt(this),Qe._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return gt(this),Qe._ts_node_end_point_wasm(this.tree[0]),vt(lt)}get endIndex(){return gt(this),Qe._ts_node_end_index_wasm(this.tree[0])}get text(){return mt(this.tree,this.startIndex,this.endIndex)}isNamed(){return gt(this),1===Qe._ts_node_is_named_wasm(this.tree[0])}hasError(){return gt(this),1===Qe._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return gt(this),1===Qe._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return gt(this),1===Qe._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return gt(this),Qe._ts_node_child_wasm(this.tree[0],e),wt(this.tree)}namedChild(e){return gt(this),Qe._ts_node_named_child_wasm(this.tree[0],e),wt(this.tree)}childForFieldId(e){return gt(this),Qe._ts_node_child_by_field_id_wasm(this.tree[0],e),wt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return gt(this),Qe._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return gt(this),Qe._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){gt(this),Qe._ts_node_children_wasm(this.tree[0]);const e=N(lt,"i32"),t=N(lt+Ye,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=wt(this.tree,r),r+=et;Qe._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){gt(this),Qe._ts_node_named_children_wasm(this.tree[0]);const e=N(lt,"i32"),t=N(lt+Ye,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=wt(this.tree,r),r+=et;Qe._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=nt),r||(r=nt);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const o=Qe._malloc(Ye*n.length);for(let e=0,t=n.length;e<t;e++)x(o+e*Ye,n[e],"i32");gt(this),Qe._ts_node_descendants_of_type_wasm(this.tree[0],o,n.length,t.row,t.column,r.row,r.column);const _=N(lt,"i32"),a=N(lt+Ye,"i32"),u=new Array(_);if(_>0){let e=a;for(let t=0;t<_;t++)u[t]=wt(this.tree,e),e+=et}return Qe._free(a),Qe._free(o),u}get nextSibling(){return gt(this),Qe._ts_node_next_sibling_wasm(this.tree[0]),wt(this.tree)}get previousSibling(){return gt(this),Qe._ts_node_prev_sibling_wasm(this.tree[0]),wt(this.tree)}get nextNamedSibling(){return gt(this),Qe._ts_node_next_named_sibling_wasm(this.tree[0]),wt(this.tree)}get previousNamedSibling(){return gt(this),Qe._ts_node_prev_named_sibling_wasm(this.tree[0]),wt(this.tree)}get parent(){return gt(this),Qe._ts_node_parent_wasm(this.tree[0]),wt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");gt(this);let r=lt+et;return x(r,e,"i32"),x(r+Ye,t,"i32"),Qe._ts_node_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");gt(this);let r=lt+et;return x(r,e,"i32"),x(r+Ye,t,"i32"),Qe._ts_node_named_descendant_for_index_wasm(this.tree[0]),wt(this.tree)}descendantForPosition(e,t=e){if(!ht(e)||!ht(t))throw new Error("Arguments must be {row, column} objects");gt(this);let r=lt+et;return bt(r,e),bt(r+tt,t),Qe._ts_node_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}namedDescendantForPosition(e,t=e){if(!ht(e)||!ht(t))throw new Error("Arguments must be {row, column} objects");gt(this);let r=lt+et;return bt(r,e),bt(r+tt,t),Qe._ts_node_named_descendant_for_position_wasm(this.tree[0]),wt(this.tree)}walk(){return gt(this),Qe._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(Je,this.tree)}toString(){gt(this);const e=Qe._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=T[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Qe._free(e),t}}class TreeCursor{constructor(e,t){pt(e),this.tree=t,Mt(this)}delete(){yt(this),Qe._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){gt(e),yt(this,lt+et),Qe._ts_tree_cursor_reset_wasm(this.tree[0]),Mt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return yt(this),Qe._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return yt(this),Qe._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return yt(this),1===Qe._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return yt(this),1===Qe._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){yt(this);const e=Qe._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Qe._ts_tree_cursor_end_index_wasm(this.tree[0]);return mt(this.tree,e,t)}get startPosition(){return yt(this),Qe._ts_tree_cursor_start_position_wasm(this.tree[0]),vt(lt)}get endPosition(){return yt(this),Qe._ts_tree_cursor_end_position_wasm(this.tree[0]),vt(lt)}get startIndex(){return yt(this),Qe._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return yt(this),Qe._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return yt(this),Qe._ts_tree_cursor_current_node_wasm(this.tree[0]),wt(this.tree)}currentFieldId(){return yt(this),Qe._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){yt(this);const e=Qe._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return Mt(this),1===e}gotoNextSibling(){yt(this);const e=Qe._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return Mt(this),1===e}gotoParent(){yt(this);const e=Qe._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return Mt(this),1===e}}class Language{constructor(e,t){pt(e),this[0]=t,this.types=new Array(Qe._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Qe._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=j(Qe._ts_language_symbol_name(this[0],e)));this.fields=new Array(Qe._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Qe._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?j(t):null}}get version(){return Qe._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=z(e),n=Qe._malloc(r+1);D(e,n,r+1);const s=Qe._ts_language_symbol_for_name(this[0],n,r,t);return Qe._free(n),s||null}get nodeTypeCount(){return Qe._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Qe._ts_language_symbol_name(this[0],e);return t?j(t):null}nodeTypeIsNamed(e){return!!Qe._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Qe._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=z(e),r=Qe._malloc(t+1);D(e,r,t+1);const n=Qe._ts_query_new(this[0],r,t,lt,lt+Ye);if(!n){const t=N(lt+Ye,"i32"),n=j(r,N(lt,"i32")).length,s=e.substr(n,100).split("\n")[0];let o,_=s.match(st)[0];switch(t){case 2:o=new RangeError(`Bad node name '${_}'`);break;case 3:o=new RangeError(`Bad field name '${_}'`);break;case 4:o=new RangeError(`Bad capture name @${_}`);break;case 5:o=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),_="";break;default:o=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),_=""}throw o.index=n,o.length=_.length,Qe._free(r),o}const s=Qe._ts_query_string_count(n),o=Qe._ts_query_capture_count(n),_=Qe._ts_query_pattern_count(n),a=new Array(o),u=new Array(s);for(let e=0;e<o;e++){const t=Qe._ts_query_capture_name_for_id(n,e,lt),r=N(lt,"i32");a[e]=j(t,r)}for(let e=0;e<s;e++){const t=Qe._ts_query_string_value_for_id(n,e,lt),r=N(lt,"i32");u[e]=j(t,r)}const i=new Array(_),l=new Array(_),d=new Array(_),c=new Array(_),m=new Array(_);for(let e=0;e<_;e++){const t=Qe._ts_query_predicates_for_pattern(n,e,lt),r=N(lt,"i32");c[e]=[],m[e]=[];const s=[];let o=t;for(let t=0;t<r;t++){const t=N(o,"i32"),r=N(o+=Ye,"i32");if(o+=Ye,t===ot)s.push({type:"capture",name:a[r]});else if(t===_t)s.push({type:"string",value:u[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){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 t=s[1].name,n=s[2].name;m[e].push(function(e){let s,o;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(o=r.node);return void 0===s||void 0===o||s.text===o.text===r})}else{const t=s[1].name,n=s[2].value;m[e].push(function(e){for(const s of e)if(s.name===t)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,o=new RegExp(s[2].value);m[e].push(function(e){for(const t of e)if(t.name===n)return o.test(t.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(e=>"string"!==e.type))throw new Error('Arguments to `#set!` predicate must be a strings.".');i[e]||(i[e]={}),i[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some(e=>"string"!==e.type))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const _="is?"===t?l:d;_[e]||(_[e]={}),_[e][s[1].value]=s[2]?s[2].value:null;break;default:c[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(i[e]),Object.freeze(l[e]),Object.freeze(d[e])}return Qe._free(r),new Query(Je,n,a,m,c,Object.freeze(i),Object.freeze(l),Object.freeze(d))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(65530);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then(e=>e.arrayBuffer().then(t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))}const r="function"==typeof loadSideModule?loadSideModule:xe;return t.then(e=>r(e,{loadAsync:!0})).then(e=>{const t=Object.keys(e),r=t.find(e=>at.test(e)&&!e.includes("external_scanner_"));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new Language(Je,n)})}}class Query{constructor(e,t,r,n,s,o,_,a){pt(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=o,this.assertedProperties=_,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Qe._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=nt),r||(r=nt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");gt(e),Qe._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const o=N(lt,"i32"),_=N(lt+Ye,"i32"),a=N(lt+2*Ye,"i32"),u=new Array(o);this.exceededMatchLimit=!!a;let i=0,l=_;for(let t=0;t<o;t++){const r=N(l,"i32"),n=N(l+=Ye,"i32");l+=Ye;const s=new Array(n);if(l=ft(this,e.tree,l,s),this.textPredicates[r].every(e=>e(s))){u[i++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(u[t].setProperties=e);const n=this.assertedProperties[r];n&&(u[t].assertedProperties=n);const o=this.refutedProperties[r];o&&(u[t].refutedProperties=o)}}return u.length=i,Qe._free(_),u}captures(e,t,r,n){t||(t=nt),r||(r=nt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");gt(e),Qe._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const o=N(lt,"i32"),_=N(lt+Ye,"i32"),a=N(lt+2*Ye,"i32"),u=[];this.exceededMatchLimit=!!a;const i=[];let l=_;for(let t=0;t<o;t++){const t=N(l,"i32"),r=N(l+=Ye,"i32"),n=N(l+=Ye,"i32");if(l+=Ye,i.length=r,l=ft(this,e.tree,l,i),this.textPredicates[t].every(e=>e(i))){const e=i[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const o=this.refutedProperties[t];o&&(e.refutedProperties=o),u.push(e)}}return Qe._free(_),u}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function mt(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function ft(e,t,r,n){for(let s=0,o=n.length;s<o;s++){const o=N(r,"i32"),_=wt(t,r+=Ye);r+=et,n[s]={name:e.captureNames[o],node:_}}return r}function pt(e){if(e!==Je)throw new Error("Illegal constructor")}function ht(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function gt(e){let t=lt;x(t,e.id,"i32"),x(t+=Ye,e.startIndex,"i32"),x(t+=Ye,e.startPosition.row,"i32"),x(t+=Ye,e.startPosition.column,"i32"),x(t+=Ye,e[0],"i32")}function wt(e,t=lt){const r=N(t,"i32");if(0===r)return null;const n=N(t+=Ye,"i32"),s=N(t+=Ye,"i32"),o=N(t+=Ye,"i32"),_=N(t+=Ye,"i32"),a=new Node(Je,e);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:o},a[0]=_,a}function yt(e,t=lt){x(t+0*Ye,e[0],"i32"),x(t+1*Ye,e[1],"i32"),x(t+2*Ye,e[2],"i32")}function Mt(e){e[0]=N(lt+0*Ye,"i32"),e[1]=N(lt+1*Ye,"i32"),e[2]=N(lt+2*Ye,"i32")}function bt(e,t){x(e,t.row,"i32"),x(e+Ye,t.column,"i32")}function vt(e){return{row:N(e,"i32"),column:N(e+Ye,"i32")}}function Et(e,t){bt(e,t.startPosition),bt(e+=tt,t.endPosition),x(e+=tt,t.startIndex,"i32"),x(e+=Ye,t.endIndex,"i32"),e+=Ye}function It(e){const t={};return t.startPosition=vt(e),e+=tt,t.endPosition=vt(e),e+=tt,t.startIndex=N(e,"i32"),e+=Ye,t.endIndex=N(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=(()=>{ParserImpl.init(),e()})}))}}return Parser}(); true&&(module.exports=TreeSitter);
|
|
11525
11604
|
|
|
11526
11605
|
|
|
11527
11606
|
/***/ }),
|
|
@@ -11716,11 +11795,10 @@ const Error = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMPORTED_MO
|
|
|
11716
11795
|
value: null,
|
|
11717
11796
|
isUnexpected: false
|
|
11718
11797
|
},
|
|
11719
|
-
init(
|
|
11720
|
-
|
|
11721
|
-
|
|
11722
|
-
|
|
11723
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11798
|
+
init({
|
|
11799
|
+
value = null,
|
|
11800
|
+
isUnexpected = false
|
|
11801
|
+
} = {}) {
|
|
11724
11802
|
this.value = value;
|
|
11725
11803
|
this.isUnexpected = isUnexpected;
|
|
11726
11804
|
}
|
|
@@ -11748,10 +11826,9 @@ const Literal = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMPORTED_
|
|
|
11748
11826
|
props: {
|
|
11749
11827
|
value: null
|
|
11750
11828
|
},
|
|
11751
|
-
init(
|
|
11752
|
-
|
|
11753
|
-
|
|
11754
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11829
|
+
init({
|
|
11830
|
+
value = null
|
|
11831
|
+
} = {}) {
|
|
11755
11832
|
this.value = value;
|
|
11756
11833
|
}
|
|
11757
11834
|
});
|
|
@@ -11776,15 +11853,13 @@ const Node = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
11776
11853
|
children: []
|
|
11777
11854
|
},
|
|
11778
11855
|
// eslint-disable-next-line @typescript-eslint/default-param-last
|
|
11779
|
-
init(
|
|
11780
|
-
|
|
11781
|
-
|
|
11782
|
-
|
|
11783
|
-
|
|
11784
|
-
|
|
11785
|
-
|
|
11786
|
-
stamp = {}
|
|
11787
|
-
} = arguments.length > 1 ? arguments[1] : undefined;
|
|
11856
|
+
init({
|
|
11857
|
+
children = [],
|
|
11858
|
+
position = null,
|
|
11859
|
+
isMissing = false
|
|
11860
|
+
} = {}, {
|
|
11861
|
+
stamp = {}
|
|
11862
|
+
}) {
|
|
11788
11863
|
this.type = stamp.type;
|
|
11789
11864
|
this.isMissing = isMissing;
|
|
11790
11865
|
this.children = children;
|
|
@@ -11864,12 +11939,11 @@ const Point = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
11864
11939
|
column: null,
|
|
11865
11940
|
char: null
|
|
11866
11941
|
},
|
|
11867
|
-
init(
|
|
11868
|
-
|
|
11869
|
-
|
|
11870
|
-
|
|
11871
|
-
|
|
11872
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11942
|
+
init({
|
|
11943
|
+
row = null,
|
|
11944
|
+
column = null,
|
|
11945
|
+
char = null
|
|
11946
|
+
} = {}) {
|
|
11873
11947
|
this.row = row;
|
|
11874
11948
|
this.column = column;
|
|
11875
11949
|
this.char = char;
|
|
@@ -11884,11 +11958,10 @@ const Position = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
11884
11958
|
start: null,
|
|
11885
11959
|
end: null
|
|
11886
11960
|
},
|
|
11887
|
-
init(
|
|
11888
|
-
|
|
11889
|
-
|
|
11890
|
-
|
|
11891
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
11961
|
+
init({
|
|
11962
|
+
start = null,
|
|
11963
|
+
end = null
|
|
11964
|
+
} = {}) {
|
|
11892
11965
|
this.start = start;
|
|
11893
11966
|
this.end = end;
|
|
11894
11967
|
}
|
|
@@ -11979,17 +12052,13 @@ const isNode = node => typeof getNodeType(node) === 'string';
|
|
|
11979
12052
|
*
|
|
11980
12053
|
* If a prior visitor edits a node, no following visitors will see that node.
|
|
11981
12054
|
*/
|
|
11982
|
-
const mergeAll =
|
|
11983
|
-
|
|
11984
|
-
|
|
11985
|
-
|
|
11986
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
12055
|
+
const mergeAll = (visitors, {
|
|
12056
|
+
visitFnGetter = getVisitFn,
|
|
12057
|
+
nodeTypeGetter = getNodeType
|
|
12058
|
+
} = {}) => {
|
|
11987
12059
|
const skipping = new Array(visitors.length);
|
|
11988
12060
|
return {
|
|
11989
|
-
enter(node) {
|
|
11990
|
-
for (var _len = arguments.length, rest = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
11991
|
-
rest[_key - 1] = arguments[_key];
|
|
11992
|
-
}
|
|
12061
|
+
enter(node, ...rest) {
|
|
11993
12062
|
for (let i = 0; i < visitors.length; i += 1) {
|
|
11994
12063
|
if (skipping[i] == null) {
|
|
11995
12064
|
const fn = visitFnGetter(visitors[i], nodeTypeGetter(node), /* isLeaving */false);
|
|
@@ -12007,10 +12076,7 @@ const mergeAll = function (visitors) {
|
|
|
12007
12076
|
}
|
|
12008
12077
|
return undefined;
|
|
12009
12078
|
},
|
|
12010
|
-
leave(node) {
|
|
12011
|
-
for (var _len2 = arguments.length, rest = new Array(_len2 > 1 ? _len2 - 1 : 0), _key2 = 1; _key2 < _len2; _key2++) {
|
|
12012
|
-
rest[_key2 - 1] = arguments[_key2];
|
|
12013
|
-
}
|
|
12079
|
+
leave(node, ...rest) {
|
|
12014
12080
|
for (let i = 0; i < visitors.length; i += 1) {
|
|
12015
12081
|
if (skipping[i] == null) {
|
|
12016
12082
|
const fn = visitFnGetter(visitors[i], nodeTypeGetter(node), /* isLeaving */true);
|
|
@@ -12121,22 +12187,21 @@ const mergeAll = function (visitors) {
|
|
|
12121
12187
|
* @sig visit :: (Node, Visitor, Options)
|
|
12122
12188
|
* @sig Options = { keyMap: Object, state: Object }
|
|
12123
12189
|
*/
|
|
12124
|
-
const visit =
|
|
12190
|
+
const visit = (
|
|
12125
12191
|
// @ts-ignore
|
|
12126
12192
|
root,
|
|
12127
12193
|
// @ts-ignore
|
|
12128
|
-
visitor
|
|
12129
|
-
|
|
12130
|
-
|
|
12131
|
-
|
|
12132
|
-
|
|
12133
|
-
|
|
12134
|
-
|
|
12135
|
-
|
|
12136
|
-
|
|
12137
|
-
|
|
12138
|
-
|
|
12139
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12194
|
+
visitor, {
|
|
12195
|
+
keyMap = null,
|
|
12196
|
+
state = {},
|
|
12197
|
+
breakSymbol = BREAK,
|
|
12198
|
+
deleteNodeSymbol = null,
|
|
12199
|
+
skipVisitingNodeSymbol = false,
|
|
12200
|
+
visitFnGetter = getVisitFn,
|
|
12201
|
+
nodeTypeGetter = getNodeType,
|
|
12202
|
+
nodePredicate = isNode,
|
|
12203
|
+
detectCycles = true
|
|
12204
|
+
} = {}) => {
|
|
12140
12205
|
const visitorKeys = keyMap || {};
|
|
12141
12206
|
let stack;
|
|
12142
12207
|
let inArray = Array.isArray(root);
|
|
@@ -12274,22 +12339,21 @@ visitor) {
|
|
|
12274
12339
|
* Asynchronous version of visit.
|
|
12275
12340
|
*/
|
|
12276
12341
|
// @ts-ignore
|
|
12277
|
-
visit[Symbol.for('nodejs.util.promisify.custom')] = async
|
|
12342
|
+
visit[Symbol.for('nodejs.util.promisify.custom')] = async (
|
|
12278
12343
|
// @ts-ignore
|
|
12279
12344
|
root,
|
|
12280
12345
|
// @ts-ignore
|
|
12281
|
-
visitor
|
|
12282
|
-
|
|
12283
|
-
|
|
12284
|
-
|
|
12285
|
-
|
|
12286
|
-
|
|
12287
|
-
|
|
12288
|
-
|
|
12289
|
-
|
|
12290
|
-
|
|
12291
|
-
|
|
12292
|
-
} = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
12346
|
+
visitor, {
|
|
12347
|
+
keyMap = null,
|
|
12348
|
+
state = {},
|
|
12349
|
+
breakSymbol = BREAK,
|
|
12350
|
+
deleteNodeSymbol = null,
|
|
12351
|
+
skipVisitingNodeSymbol = false,
|
|
12352
|
+
visitFnGetter = getVisitFn,
|
|
12353
|
+
nodeTypeGetter = getNodeType,
|
|
12354
|
+
nodePredicate = isNode,
|
|
12355
|
+
detectCycles = true
|
|
12356
|
+
} = {}) => {
|
|
12293
12357
|
const visitorKeys = keyMap || {};
|
|
12294
12358
|
let stack;
|
|
12295
12359
|
let inArray = Array.isArray(root);
|
|
@@ -12444,10 +12508,9 @@ const YamlAnchor = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMPORT
|
|
|
12444
12508
|
props: {
|
|
12445
12509
|
name: null
|
|
12446
12510
|
},
|
|
12447
|
-
init(
|
|
12448
|
-
|
|
12449
|
-
|
|
12450
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12511
|
+
init({
|
|
12512
|
+
name = null
|
|
12513
|
+
} = {}) {
|
|
12451
12514
|
this.name = name;
|
|
12452
12515
|
}
|
|
12453
12516
|
});
|
|
@@ -12491,10 +12554,9 @@ const YamlComment = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMPOR
|
|
|
12491
12554
|
props: {
|
|
12492
12555
|
content: null
|
|
12493
12556
|
},
|
|
12494
|
-
init(
|
|
12495
|
-
|
|
12496
|
-
|
|
12497
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12557
|
+
init({
|
|
12558
|
+
content = null
|
|
12559
|
+
} = {}) {
|
|
12498
12560
|
this.content = content;
|
|
12499
12561
|
}
|
|
12500
12562
|
});
|
|
@@ -12524,11 +12586,10 @@ const YamlDirective = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMP
|
|
|
12524
12586
|
name: null,
|
|
12525
12587
|
parameters: null
|
|
12526
12588
|
},
|
|
12527
|
-
init(
|
|
12528
|
-
|
|
12529
|
-
|
|
12530
|
-
|
|
12531
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12589
|
+
init({
|
|
12590
|
+
name = null,
|
|
12591
|
+
parameters = {}
|
|
12592
|
+
} = {}) {
|
|
12532
12593
|
this.name = name;
|
|
12533
12594
|
this.parameters = (0,ramda__WEBPACK_IMPORTED_MODULE_1__.mergeRight)({
|
|
12534
12595
|
version: null,
|
|
@@ -12662,13 +12723,12 @@ const YamlNode = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMPORTED
|
|
|
12662
12723
|
style: null,
|
|
12663
12724
|
styleGroup: null
|
|
12664
12725
|
},
|
|
12665
|
-
init(
|
|
12666
|
-
|
|
12667
|
-
|
|
12668
|
-
|
|
12669
|
-
|
|
12670
|
-
|
|
12671
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12726
|
+
init({
|
|
12727
|
+
anchor = null,
|
|
12728
|
+
tag = null,
|
|
12729
|
+
style = null,
|
|
12730
|
+
styleGroup = null
|
|
12731
|
+
} = {}) {
|
|
12672
12732
|
this.anchor = anchor;
|
|
12673
12733
|
this.tag = tag;
|
|
12674
12734
|
this.style = style;
|
|
@@ -12698,10 +12758,9 @@ const YamlScalar = stampit__WEBPACK_IMPORTED_MODULE_0__(_YamlNode_js__WEBPACK_IM
|
|
|
12698
12758
|
props: {
|
|
12699
12759
|
content: ''
|
|
12700
12760
|
},
|
|
12701
|
-
init(
|
|
12702
|
-
|
|
12703
|
-
|
|
12704
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12761
|
+
init({
|
|
12762
|
+
content
|
|
12763
|
+
} = {}) {
|
|
12705
12764
|
this.content = content;
|
|
12706
12765
|
}
|
|
12707
12766
|
});
|
|
@@ -12844,11 +12903,10 @@ const YamlTag = stampit__WEBPACK_IMPORTED_MODULE_0__(_Node_js__WEBPACK_IMPORTED_
|
|
|
12844
12903
|
explicitName: '',
|
|
12845
12904
|
kind: null
|
|
12846
12905
|
},
|
|
12847
|
-
init(
|
|
12848
|
-
|
|
12849
|
-
|
|
12850
|
-
|
|
12851
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12906
|
+
init({
|
|
12907
|
+
explicitName,
|
|
12908
|
+
kind
|
|
12909
|
+
} = {}) {
|
|
12852
12910
|
this.explicitName = explicitName;
|
|
12853
12911
|
this.kind = kind;
|
|
12854
12912
|
}
|
|
@@ -13127,10 +13185,9 @@ const GenericMapping = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IMP
|
|
|
13127
13185
|
statics: {
|
|
13128
13186
|
uri: 'tag:yaml.org,2002:map'
|
|
13129
13187
|
},
|
|
13130
|
-
init(args,
|
|
13131
|
-
|
|
13132
|
-
|
|
13133
|
-
} = _ref;
|
|
13188
|
+
init(args, {
|
|
13189
|
+
stamp
|
|
13190
|
+
}) {
|
|
13134
13191
|
this.tag = stamp.uri;
|
|
13135
13192
|
},
|
|
13136
13193
|
methods: {
|
|
@@ -13165,10 +13222,9 @@ const GenericSequence = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IM
|
|
|
13165
13222
|
statics: {
|
|
13166
13223
|
uri: 'tag:yaml.org,2002:seq'
|
|
13167
13224
|
},
|
|
13168
|
-
init(args,
|
|
13169
|
-
|
|
13170
|
-
|
|
13171
|
-
} = _ref;
|
|
13225
|
+
init(args, {
|
|
13226
|
+
stamp
|
|
13227
|
+
}) {
|
|
13172
13228
|
this.tag = stamp.uri;
|
|
13173
13229
|
},
|
|
13174
13230
|
methods: {
|
|
@@ -13201,10 +13257,9 @@ const GenericString = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IMPO
|
|
|
13201
13257
|
statics: {
|
|
13202
13258
|
uri: 'tag:yaml.org,2002:str'
|
|
13203
13259
|
},
|
|
13204
|
-
init(args,
|
|
13205
|
-
|
|
13206
|
-
|
|
13207
|
-
} = _ref;
|
|
13260
|
+
init(args, {
|
|
13261
|
+
stamp
|
|
13262
|
+
}) {
|
|
13208
13263
|
this.tag = stamp.uri;
|
|
13209
13264
|
},
|
|
13210
13265
|
methods: {
|
|
@@ -13279,8 +13334,7 @@ const FailsafeSchema = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
13279
13334
|
prefix: tagDirective.parameters.prefix
|
|
13280
13335
|
});
|
|
13281
13336
|
},
|
|
13282
|
-
registerTag(tag) {
|
|
13283
|
-
let beginning = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
13337
|
+
registerTag(tag, beginning = false) {
|
|
13284
13338
|
if (beginning) {
|
|
13285
13339
|
this.tags.unshift(tag);
|
|
13286
13340
|
} else {
|
|
@@ -13341,10 +13395,9 @@ const Boolean = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IMPORTED_M
|
|
|
13341
13395
|
statics: {
|
|
13342
13396
|
uri: 'tag:yaml.org,2002:bool'
|
|
13343
13397
|
},
|
|
13344
|
-
init(args,
|
|
13345
|
-
|
|
13346
|
-
|
|
13347
|
-
} = _ref;
|
|
13398
|
+
init(args, {
|
|
13399
|
+
stamp
|
|
13400
|
+
}) {
|
|
13348
13401
|
this.tag = stamp.uri;
|
|
13349
13402
|
},
|
|
13350
13403
|
methods: {
|
|
@@ -13379,10 +13432,9 @@ const FloatingPoint = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IMPO
|
|
|
13379
13432
|
statics: {
|
|
13380
13433
|
uri: 'tag:yaml.org,2002:float'
|
|
13381
13434
|
},
|
|
13382
|
-
init(args,
|
|
13383
|
-
|
|
13384
|
-
|
|
13385
|
-
} = _ref;
|
|
13435
|
+
init(args, {
|
|
13436
|
+
stamp
|
|
13437
|
+
}) {
|
|
13386
13438
|
this.tag = stamp.uri;
|
|
13387
13439
|
},
|
|
13388
13440
|
methods: {
|
|
@@ -13417,10 +13469,9 @@ const Integer = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IMPORTED_M
|
|
|
13417
13469
|
statics: {
|
|
13418
13470
|
uri: 'tag:yaml.org,2002:int'
|
|
13419
13471
|
},
|
|
13420
|
-
init(args,
|
|
13421
|
-
|
|
13422
|
-
|
|
13423
|
-
} = _ref;
|
|
13472
|
+
init(args, {
|
|
13473
|
+
stamp
|
|
13474
|
+
}) {
|
|
13424
13475
|
this.tag = stamp.uri;
|
|
13425
13476
|
},
|
|
13426
13477
|
methods: {
|
|
@@ -13455,10 +13506,9 @@ const Null = stampit__WEBPACK_IMPORTED_MODULE_0__(_Tag_js__WEBPACK_IMPORTED_MODU
|
|
|
13455
13506
|
statics: {
|
|
13456
13507
|
uri: 'tag:yaml.org,2002:null'
|
|
13457
13508
|
},
|
|
13458
|
-
init(args,
|
|
13459
|
-
|
|
13460
|
-
|
|
13461
|
-
} = _ref;
|
|
13509
|
+
init(args, {
|
|
13510
|
+
stamp
|
|
13511
|
+
}) {
|
|
13462
13512
|
this.tag = stamp.uri;
|
|
13463
13513
|
},
|
|
13464
13514
|
methods: {
|
|
@@ -13691,8 +13741,8 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13691
13741
|
/* harmony import */ var _babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(28936);
|
|
13692
13742
|
|
|
13693
13743
|
class MediaTypes extends Array {
|
|
13694
|
-
constructor() {
|
|
13695
|
-
super(...
|
|
13744
|
+
constructor(...args) {
|
|
13745
|
+
super(...args);
|
|
13696
13746
|
(0,_babel_runtime_corejs3_helpers_esm_defineProperty__WEBPACK_IMPORTED_MODULE_0__["default"])(this, "unknownMediaType", 'application/octet-stream');
|
|
13697
13747
|
}
|
|
13698
13748
|
// eslint-disable-next-line class-methods-use-this
|
|
@@ -13770,11 +13820,11 @@ const hasMethod = (name, obj) => typeof (obj === null || obj === void 0 ? void 0
|
|
|
13770
13820
|
const hasBasicElementProps = element => element != null && Object.prototype.hasOwnProperty.call(element, '_storedElement') && Object.prototype.hasOwnProperty.call(element, '_content');
|
|
13771
13821
|
const primitiveEq = (val, obj) => {
|
|
13772
13822
|
var _obj$primitive;
|
|
13773
|
-
return (obj === null || obj === void 0
|
|
13823
|
+
return (obj === null || obj === void 0 || (_obj$primitive = obj.primitive) === null || _obj$primitive === void 0 ? void 0 : _obj$primitive.call(obj)) === val;
|
|
13774
13824
|
};
|
|
13775
13825
|
const hasClass = (cls, obj) => {
|
|
13776
13826
|
var _obj$classes, _obj$classes$includes;
|
|
13777
|
-
return (obj === null || obj === void 0
|
|
13827
|
+
return (obj === null || obj === void 0 || (_obj$classes = obj.classes) === null || _obj$classes === void 0 || (_obj$classes$includes = _obj$classes.includes) === null || _obj$classes$includes === void 0 ? void 0 : _obj$classes$includes.call(_obj$classes, cls)) || false;
|
|
13778
13828
|
};
|
|
13779
13829
|
const isElementType = (name, element) => (element === null || element === void 0 ? void 0 : element.element) === name;
|
|
13780
13830
|
const createPredicate = predicateCreator => {
|
|
@@ -13832,111 +13882,97 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
13832
13882
|
|
|
13833
13883
|
|
|
13834
13884
|
|
|
13835
|
-
const isElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13836
|
-
|
|
13837
|
-
|
|
13838
|
-
|
|
13839
|
-
} = _ref;
|
|
13885
|
+
const isElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13886
|
+
hasBasicElementProps,
|
|
13887
|
+
primitiveEq
|
|
13888
|
+
}) => {
|
|
13840
13889
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.Element || hasBasicElementProps(element) && primitiveEq(undefined, element);
|
|
13841
13890
|
});
|
|
13842
|
-
const isStringElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13843
|
-
|
|
13844
|
-
|
|
13845
|
-
|
|
13846
|
-
} = _ref2;
|
|
13891
|
+
const isStringElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13892
|
+
hasBasicElementProps,
|
|
13893
|
+
primitiveEq
|
|
13894
|
+
}) => {
|
|
13847
13895
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.StringElement || hasBasicElementProps(element) && primitiveEq('string', element);
|
|
13848
13896
|
});
|
|
13849
|
-
const isNumberElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13850
|
-
|
|
13851
|
-
|
|
13852
|
-
|
|
13853
|
-
} = _ref3;
|
|
13897
|
+
const isNumberElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13898
|
+
hasBasicElementProps,
|
|
13899
|
+
primitiveEq
|
|
13900
|
+
}) => {
|
|
13854
13901
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.NumberElement || hasBasicElementProps(element) && primitiveEq('number', element);
|
|
13855
13902
|
});
|
|
13856
|
-
const isNullElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13857
|
-
|
|
13858
|
-
|
|
13859
|
-
|
|
13860
|
-
} = _ref4;
|
|
13903
|
+
const isNullElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13904
|
+
hasBasicElementProps,
|
|
13905
|
+
primitiveEq
|
|
13906
|
+
}) => {
|
|
13861
13907
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.NullElement || hasBasicElementProps(element) && primitiveEq('null', element);
|
|
13862
13908
|
});
|
|
13863
|
-
const isBooleanElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13864
|
-
|
|
13865
|
-
|
|
13866
|
-
|
|
13867
|
-
} = _ref5;
|
|
13909
|
+
const isBooleanElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13910
|
+
hasBasicElementProps,
|
|
13911
|
+
primitiveEq
|
|
13912
|
+
}) => {
|
|
13868
13913
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.BooleanElement || hasBasicElementProps(element) && primitiveEq('boolean', element);
|
|
13869
13914
|
});
|
|
13870
|
-
const isObjectElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13871
|
-
|
|
13872
|
-
|
|
13873
|
-
|
|
13874
|
-
|
|
13875
|
-
} = _ref6;
|
|
13915
|
+
const isObjectElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13916
|
+
hasBasicElementProps,
|
|
13917
|
+
primitiveEq,
|
|
13918
|
+
hasMethod
|
|
13919
|
+
}) => {
|
|
13876
13920
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement || hasBasicElementProps(element) && primitiveEq('object', element) && hasMethod('keys', element) && hasMethod('values', element) && hasMethod('items', element);
|
|
13877
13921
|
});
|
|
13878
|
-
const isArrayElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13879
|
-
|
|
13880
|
-
|
|
13881
|
-
|
|
13882
|
-
|
|
13883
|
-
} = _ref7;
|
|
13922
|
+
const isArrayElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13923
|
+
hasBasicElementProps,
|
|
13924
|
+
primitiveEq,
|
|
13925
|
+
hasMethod
|
|
13926
|
+
}) => {
|
|
13884
13927
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ArrayElement && !(element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.ObjectElement) || hasBasicElementProps(element) && primitiveEq('array', element) && hasMethod('push', element) && hasMethod('unshift', element) && hasMethod('map', element) && hasMethod('reduce', element);
|
|
13885
13928
|
});
|
|
13886
|
-
const isMemberElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13887
|
-
|
|
13888
|
-
|
|
13889
|
-
|
|
13890
|
-
|
|
13891
|
-
} = _ref8;
|
|
13929
|
+
const isMemberElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13930
|
+
hasBasicElementProps,
|
|
13931
|
+
isElementType,
|
|
13932
|
+
primitiveEq
|
|
13933
|
+
}) => {
|
|
13892
13934
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.MemberElement || hasBasicElementProps(element) && isElementType('member', element) && primitiveEq(undefined, element);
|
|
13893
13935
|
});
|
|
13894
|
-
const isLinkElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13895
|
-
|
|
13896
|
-
|
|
13897
|
-
|
|
13898
|
-
|
|
13899
|
-
} = _ref9;
|
|
13936
|
+
const isLinkElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13937
|
+
hasBasicElementProps,
|
|
13938
|
+
isElementType,
|
|
13939
|
+
primitiveEq
|
|
13940
|
+
}) => {
|
|
13900
13941
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.LinkElement || hasBasicElementProps(element) && isElementType('link', element) && primitiveEq(undefined, element);
|
|
13901
13942
|
});
|
|
13902
|
-
const isRefElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13903
|
-
|
|
13904
|
-
|
|
13905
|
-
|
|
13906
|
-
|
|
13907
|
-
} = _ref10;
|
|
13943
|
+
const isRefElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13944
|
+
hasBasicElementProps,
|
|
13945
|
+
isElementType,
|
|
13946
|
+
primitiveEq
|
|
13947
|
+
}) => {
|
|
13908
13948
|
return element => element instanceof minim__WEBPACK_IMPORTED_MODULE_0__.RefElement || hasBasicElementProps(element) && isElementType('ref', element) && primitiveEq(undefined, element);
|
|
13909
13949
|
});
|
|
13910
|
-
const isAnnotationElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13911
|
-
|
|
13912
|
-
|
|
13913
|
-
|
|
13914
|
-
|
|
13915
|
-
} = _ref11;
|
|
13950
|
+
const isAnnotationElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13951
|
+
hasBasicElementProps,
|
|
13952
|
+
isElementType,
|
|
13953
|
+
primitiveEq
|
|
13954
|
+
}) => {
|
|
13916
13955
|
return element => element instanceof _elements_Annotation_js__WEBPACK_IMPORTED_MODULE_3__["default"] || hasBasicElementProps(element) && isElementType('annotation', element) && primitiveEq('array', element);
|
|
13917
13956
|
});
|
|
13918
|
-
const isCommentElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13919
|
-
|
|
13920
|
-
|
|
13921
|
-
|
|
13922
|
-
|
|
13923
|
-
} = _ref12;
|
|
13957
|
+
const isCommentElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13958
|
+
hasBasicElementProps,
|
|
13959
|
+
isElementType,
|
|
13960
|
+
primitiveEq
|
|
13961
|
+
}) => {
|
|
13924
13962
|
return element => element instanceof _elements_Comment_js__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('comment', element) && primitiveEq('string', element);
|
|
13925
13963
|
});
|
|
13926
|
-
const isParseResultElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13927
|
-
|
|
13928
|
-
|
|
13929
|
-
|
|
13930
|
-
|
|
13931
|
-
} = _ref13;
|
|
13964
|
+
const isParseResultElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13965
|
+
hasBasicElementProps,
|
|
13966
|
+
isElementType,
|
|
13967
|
+
primitiveEq
|
|
13968
|
+
}) => {
|
|
13932
13969
|
return element => element instanceof _elements_ParseResult_js__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('parseResult', element) && primitiveEq('array', element);
|
|
13933
13970
|
});
|
|
13934
|
-
const isSourceMapElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(
|
|
13935
|
-
|
|
13936
|
-
|
|
13937
|
-
|
|
13938
|
-
|
|
13939
|
-
} = _ref14;
|
|
13971
|
+
const isSourceMapElement = (0,_helpers_js__WEBPACK_IMPORTED_MODULE_2__["default"])(({
|
|
13972
|
+
hasBasicElementProps,
|
|
13973
|
+
isElementType,
|
|
13974
|
+
primitiveEq
|
|
13975
|
+
}) => {
|
|
13940
13976
|
return element => element instanceof _elements_SourceMap_js__WEBPACK_IMPORTED_MODULE_6__["default"] || hasBasicElementProps(element) && isElementType('sourceMap', element) && primitiveEq('array', element);
|
|
13941
13977
|
});
|
|
13942
13978
|
const isPrimitiveElement = element => {
|
|
@@ -13944,7 +13980,7 @@ const isPrimitiveElement = element => {
|
|
|
13944
13980
|
};
|
|
13945
13981
|
const hasElementSourceMap = element => {
|
|
13946
13982
|
var _element$meta, _element$meta$get;
|
|
13947
|
-
return isSourceMapElement(element === null || element === void 0
|
|
13983
|
+
return isSourceMapElement(element === null || element === void 0 || (_element$meta = element.meta) === null || _element$meta === void 0 || (_element$meta$get = _element$meta.get) === null || _element$meta$get === void 0 ? void 0 : _element$meta$get.call(_element$meta, 'sourceMap'));
|
|
13948
13984
|
};
|
|
13949
13985
|
const includesSymbols = (symbols, element) => {
|
|
13950
13986
|
if (symbols.length === 0) {
|
|
@@ -14003,11 +14039,10 @@ function _objectSpread(target) {
|
|
|
14003
14039
|
|
|
14004
14040
|
|
|
14005
14041
|
|
|
14006
|
-
const refract = (value,
|
|
14007
|
-
|
|
14008
|
-
|
|
14009
|
-
|
|
14010
|
-
} = _ref;
|
|
14042
|
+
const refract = (value, {
|
|
14043
|
+
Type,
|
|
14044
|
+
plugins = []
|
|
14045
|
+
}) => {
|
|
14011
14046
|
/**
|
|
14012
14047
|
* This is where values gets refracted into generic ApiDOM.
|
|
14013
14048
|
* We don't allow consumers to hook into this translation.
|
|
@@ -14026,12 +14061,9 @@ const refract = (value, _ref) => {
|
|
|
14026
14061
|
}
|
|
14027
14062
|
});
|
|
14028
14063
|
};
|
|
14029
|
-
const createRefractor = Type =>
|
|
14030
|
-
|
|
14031
|
-
|
|
14032
|
-
Type
|
|
14033
|
-
}));
|
|
14034
|
-
};
|
|
14064
|
+
const createRefractor = Type => (value, options = {}) => refract(value, _objectSpread(_objectSpread({}, options), {}, {
|
|
14065
|
+
Type
|
|
14066
|
+
}));
|
|
14035
14067
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (refract);
|
|
14036
14068
|
|
|
14037
14069
|
/***/ }),
|
|
@@ -14053,8 +14085,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14053
14085
|
|
|
14054
14086
|
|
|
14055
14087
|
// eslint-disable-next-line import/prefer-default-export
|
|
14056
|
-
const dispatchPlugins =
|
|
14057
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
14088
|
+
const dispatchPlugins = (element, plugins, options = {}) => {
|
|
14058
14089
|
if (plugins.length === 0) return element;
|
|
14059
14090
|
const toolboxCreator = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.propOr)(_toolbox_js__WEBPACK_IMPORTED_MODULE_1__["default"], 'toolboxCreator', options);
|
|
14060
14091
|
const visitorOptions = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.propOr)({}, 'visitorOptions', options);
|
|
@@ -14256,15 +14287,14 @@ const PredicateVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__({
|
|
|
14256
14287
|
returnOnTrue: undefined,
|
|
14257
14288
|
returnOnFalse: undefined
|
|
14258
14289
|
},
|
|
14259
|
-
init(
|
|
14260
|
-
|
|
14261
|
-
|
|
14262
|
-
|
|
14263
|
-
|
|
14264
|
-
|
|
14265
|
-
|
|
14266
|
-
|
|
14267
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
14290
|
+
init({
|
|
14291
|
+
// @ts-ignore
|
|
14292
|
+
predicate = this.predicate,
|
|
14293
|
+
// @ts-ignore
|
|
14294
|
+
returnOnTrue = this.returnOnTrue,
|
|
14295
|
+
// @ts-ignore
|
|
14296
|
+
returnOnFalse = this.returnOnFalse
|
|
14297
|
+
} = {}) {
|
|
14268
14298
|
this.result = [];
|
|
14269
14299
|
this.predicate = predicate;
|
|
14270
14300
|
this.returnOnTrue = returnOnTrue;
|
|
@@ -14282,10 +14312,9 @@ const PredicateVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__({
|
|
|
14282
14312
|
});
|
|
14283
14313
|
|
|
14284
14314
|
// @ts-ignore
|
|
14285
|
-
const visit =
|
|
14315
|
+
const visit = (root,
|
|
14286
14316
|
// @ts-ignore
|
|
14287
|
-
visitor) {
|
|
14288
|
-
let _ref = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
14317
|
+
visitor, _ref = {}) => {
|
|
14289
14318
|
let {
|
|
14290
14319
|
keyMap = keyMapDefault
|
|
14291
14320
|
} = _ref,
|
|
@@ -14301,10 +14330,9 @@ visitor) {
|
|
|
14301
14330
|
};
|
|
14302
14331
|
|
|
14303
14332
|
// @ts-ignore
|
|
14304
|
-
visit[Symbol.for('nodejs.util.promisify.custom')] = async
|
|
14333
|
+
visit[Symbol.for('nodejs.util.promisify.custom')] = async (root,
|
|
14305
14334
|
// @ts-ignore
|
|
14306
|
-
visitor) {
|
|
14307
|
-
let _ref2 = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
14335
|
+
visitor, _ref2 = {}) => {
|
|
14308
14336
|
let {
|
|
14309
14337
|
keyMap = keyMapDefault
|
|
14310
14338
|
} = _ref2,
|
|
@@ -14859,36 +14887,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
14859
14887
|
|
|
14860
14888
|
|
|
14861
14889
|
|
|
14862
|
-
const isJSONSchemaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
} = _ref;
|
|
14890
|
+
const isJSONSchemaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
14891
|
+
hasBasicElementProps,
|
|
14892
|
+
isElementType,
|
|
14893
|
+
primitiveEq
|
|
14894
|
+
}) => {
|
|
14868
14895
|
return element => element instanceof _elements_JSONSchema_js__WEBPACK_IMPORTED_MODULE_1__["default"] || hasBasicElementProps(element) && isElementType('JSONSchemaDraft4', element) && primitiveEq('object', element);
|
|
14869
14896
|
});
|
|
14870
|
-
const isJSONReferenceElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
14871
|
-
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
} = _ref2;
|
|
14897
|
+
const isJSONReferenceElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
14898
|
+
hasBasicElementProps,
|
|
14899
|
+
isElementType,
|
|
14900
|
+
primitiveEq
|
|
14901
|
+
}) => {
|
|
14876
14902
|
return element => element instanceof _elements_JSONReference_js__WEBPACK_IMPORTED_MODULE_2__["default"] || hasBasicElementProps(element) && isElementType('JSONReference', element) && primitiveEq('object', element);
|
|
14877
14903
|
});
|
|
14878
|
-
const isMediaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
} = _ref3;
|
|
14904
|
+
const isMediaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
14905
|
+
hasBasicElementProps,
|
|
14906
|
+
isElementType,
|
|
14907
|
+
primitiveEq
|
|
14908
|
+
}) => {
|
|
14884
14909
|
return element => element instanceof _elements_Media_js__WEBPACK_IMPORTED_MODULE_3__["default"] || hasBasicElementProps(element) && isElementType('media', element) && primitiveEq('object', element);
|
|
14885
14910
|
});
|
|
14886
|
-
const isLinkDescriptionElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
14887
|
-
|
|
14888
|
-
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
} = _ref4;
|
|
14911
|
+
const isLinkDescriptionElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
14912
|
+
hasBasicElementProps,
|
|
14913
|
+
isElementType,
|
|
14914
|
+
primitiveEq
|
|
14915
|
+
}) => {
|
|
14892
14916
|
return element => element instanceof _elements_LinkDescription_js__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('linkDescription', element) && primitiveEq('object', element);
|
|
14893
14917
|
});
|
|
14894
14918
|
|
|
@@ -14939,12 +14963,11 @@ function _objectSpread(target) {
|
|
|
14939
14963
|
|
|
14940
14964
|
|
|
14941
14965
|
|
|
14942
|
-
const refract =
|
|
14943
|
-
|
|
14944
|
-
|
|
14945
|
-
|
|
14946
|
-
|
|
14947
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
14966
|
+
const refract = (value, {
|
|
14967
|
+
specPath = ['visitors', 'document', 'objects', 'JSONSchema', '$visitor'],
|
|
14968
|
+
plugins = [],
|
|
14969
|
+
specificationObj = _specification_js__WEBPACK_IMPORTED_MODULE_1__["default"]
|
|
14970
|
+
} = {}) => {
|
|
14948
14971
|
const element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.refract)(value);
|
|
14949
14972
|
const resolvedSpec = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_3__.dereference)(specificationObj);
|
|
14950
14973
|
|
|
@@ -14972,12 +14995,9 @@ const refract = function (value) {
|
|
|
14972
14995
|
}
|
|
14973
14996
|
});
|
|
14974
14997
|
};
|
|
14975
|
-
const createRefractor = specPath =>
|
|
14976
|
-
|
|
14977
|
-
|
|
14978
|
-
specPath
|
|
14979
|
-
}, options));
|
|
14980
|
-
};
|
|
14998
|
+
const createRefractor = specPath => (value, options = {}) => refract(value, _objectSpread({
|
|
14999
|
+
specPath
|
|
15000
|
+
}, options));
|
|
14981
15001
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (refract);
|
|
14982
15002
|
|
|
14983
15003
|
/***/ }),
|
|
@@ -15373,11 +15393,10 @@ const SpecificationVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__(_Visitor_js__W
|
|
|
15373
15393
|
specObj: null,
|
|
15374
15394
|
passingOptionsNames: ['specObj']
|
|
15375
15395
|
},
|
|
15376
|
-
init(
|
|
15377
|
-
|
|
15378
|
-
|
|
15379
|
-
|
|
15380
|
-
} = _ref;
|
|
15396
|
+
init({
|
|
15397
|
+
// @ts-ignore
|
|
15398
|
+
specObj = this.specObj
|
|
15399
|
+
}) {
|
|
15381
15400
|
this.specObj = specObj;
|
|
15382
15401
|
},
|
|
15383
15402
|
methods: {
|
|
@@ -15393,13 +15412,11 @@ const SpecificationVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__(_Visitor_js__W
|
|
|
15393
15412
|
}
|
|
15394
15413
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__.path)(['visitors', ...specPath, '$visitor'], this.specObj);
|
|
15395
15414
|
},
|
|
15396
|
-
retrieveVisitorInstance(specPath) {
|
|
15397
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
15415
|
+
retrieveVisitorInstance(specPath, options = {}) {
|
|
15398
15416
|
const passingOpts = this.retrievePassingOptions();
|
|
15399
15417
|
return this.retrieveVisitor(specPath)(_objectSpread(_objectSpread({}, passingOpts), options));
|
|
15400
15418
|
},
|
|
15401
|
-
toRefractedElement(specPath, element) {
|
|
15402
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
15419
|
+
toRefractedElement(specPath, element, options = {}) {
|
|
15403
15420
|
/**
|
|
15404
15421
|
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
15405
15422
|
* it by basic node cloning.
|
|
@@ -15485,13 +15502,10 @@ const AlternatingVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVi
|
|
|
15485
15502
|
},
|
|
15486
15503
|
methods: {
|
|
15487
15504
|
enter(element) {
|
|
15488
|
-
const functions = this.alternator.map(
|
|
15489
|
-
|
|
15490
|
-
|
|
15491
|
-
|
|
15492
|
-
} = _ref;
|
|
15493
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__.ifElse)(predicate, (0,ramda__WEBPACK_IMPORTED_MODULE_1__.always)(specPath), ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
15494
|
-
});
|
|
15505
|
+
const functions = this.alternator.map(({
|
|
15506
|
+
predicate,
|
|
15507
|
+
specPath
|
|
15508
|
+
}) => (0,ramda__WEBPACK_IMPORTED_MODULE_1__.ifElse)(predicate, (0,ramda__WEBPACK_IMPORTED_MODULE_1__.always)(specPath), ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"]));
|
|
15495
15509
|
const specPath = (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(functions)(element);
|
|
15496
15510
|
this.element = this.toRefractedElement(specPath, element);
|
|
15497
15511
|
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
@@ -15525,13 +15539,12 @@ const FixedFieldsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVi
|
|
|
15525
15539
|
specPath: ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"],
|
|
15526
15540
|
ignoredFields: []
|
|
15527
15541
|
},
|
|
15528
|
-
init(
|
|
15529
|
-
|
|
15530
|
-
|
|
15531
|
-
|
|
15532
|
-
|
|
15533
|
-
|
|
15534
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
15542
|
+
init({
|
|
15543
|
+
// @ts-ignore
|
|
15544
|
+
specPath = this.specPath,
|
|
15545
|
+
// @ts-ignore
|
|
15546
|
+
ignoredFields = this.ignoredFields
|
|
15547
|
+
} = {}) {
|
|
15535
15548
|
this.specPath = specPath;
|
|
15536
15549
|
this.ignoredFields = ignoredFields;
|
|
15537
15550
|
},
|
|
@@ -15607,13 +15620,12 @@ const PatternedFieldsJsonObjectVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_S
|
|
|
15607
15620
|
specPath: ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"],
|
|
15608
15621
|
ignoredFields: []
|
|
15609
15622
|
},
|
|
15610
|
-
init(
|
|
15611
|
-
|
|
15612
|
-
|
|
15613
|
-
|
|
15614
|
-
|
|
15615
|
-
|
|
15616
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
15623
|
+
init({
|
|
15624
|
+
// @ts-ignore
|
|
15625
|
+
specPath = this.specPath,
|
|
15626
|
+
// @ts-ignore
|
|
15627
|
+
ignoredFields = this.ignoredFields
|
|
15628
|
+
} = {}) {
|
|
15617
15629
|
this.specPath = specPath;
|
|
15618
15630
|
this.ignoredFields = ignoredFields;
|
|
15619
15631
|
},
|
|
@@ -16245,10 +16257,9 @@ const ParentSchemaAwareVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
16245
16257
|
parent: null
|
|
16246
16258
|
},
|
|
16247
16259
|
// @ts-ignore
|
|
16248
|
-
init(
|
|
16249
|
-
|
|
16250
|
-
|
|
16251
|
-
} = _ref;
|
|
16260
|
+
init({
|
|
16261
|
+
parent = this.parent
|
|
16262
|
+
}) {
|
|
16252
16263
|
this.parent = parent;
|
|
16253
16264
|
this.passingOptionsNames = [...this.passingOptionsNames, 'parent'];
|
|
16254
16265
|
}
|
|
@@ -19362,76 +19373,67 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
19362
19373
|
|
|
19363
19374
|
|
|
19364
19375
|
|
|
19365
|
-
const isCallbackElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19366
|
-
|
|
19367
|
-
|
|
19368
|
-
|
|
19369
|
-
|
|
19370
|
-
} = _ref;
|
|
19376
|
+
const isCallbackElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19377
|
+
hasBasicElementProps,
|
|
19378
|
+
isElementType,
|
|
19379
|
+
primitiveEq
|
|
19380
|
+
}) => {
|
|
19371
19381
|
return element => element instanceof _elements_Callback_js__WEBPACK_IMPORTED_MODULE_1__["default"] || hasBasicElementProps(element) && isElementType('callback', element) && primitiveEq('object', element);
|
|
19372
19382
|
});
|
|
19373
|
-
const isComponentsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19374
|
-
|
|
19375
|
-
|
|
19376
|
-
|
|
19377
|
-
|
|
19378
|
-
} = _ref2;
|
|
19383
|
+
const isComponentsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19384
|
+
hasBasicElementProps,
|
|
19385
|
+
isElementType,
|
|
19386
|
+
primitiveEq
|
|
19387
|
+
}) => {
|
|
19379
19388
|
return element => element instanceof _elements_Components_js__WEBPACK_IMPORTED_MODULE_2__["default"] || hasBasicElementProps(element) && isElementType('components', element) && primitiveEq('object', element);
|
|
19380
19389
|
});
|
|
19381
|
-
const isContactElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19382
|
-
|
|
19383
|
-
|
|
19384
|
-
|
|
19385
|
-
|
|
19386
|
-
} = _ref3;
|
|
19390
|
+
const isContactElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19391
|
+
hasBasicElementProps,
|
|
19392
|
+
isElementType,
|
|
19393
|
+
primitiveEq
|
|
19394
|
+
}) => {
|
|
19387
19395
|
return element => element instanceof _elements_Contact_js__WEBPACK_IMPORTED_MODULE_3__["default"] || hasBasicElementProps(element) && isElementType('contact', element) && primitiveEq('object', element);
|
|
19388
19396
|
});
|
|
19389
|
-
const isExampleElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19390
|
-
|
|
19391
|
-
|
|
19392
|
-
|
|
19393
|
-
|
|
19394
|
-
} = _ref4;
|
|
19397
|
+
const isExampleElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19398
|
+
hasBasicElementProps,
|
|
19399
|
+
isElementType,
|
|
19400
|
+
primitiveEq
|
|
19401
|
+
}) => {
|
|
19395
19402
|
return element => element instanceof _elements_Example_js__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('example', element) && primitiveEq('object', element);
|
|
19396
19403
|
});
|
|
19397
|
-
const isExternalDocumentationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19398
|
-
|
|
19399
|
-
|
|
19400
|
-
|
|
19401
|
-
|
|
19402
|
-
} = _ref5;
|
|
19404
|
+
const isExternalDocumentationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19405
|
+
hasBasicElementProps,
|
|
19406
|
+
isElementType,
|
|
19407
|
+
primitiveEq
|
|
19408
|
+
}) => {
|
|
19403
19409
|
return element => element instanceof _elements_ExternalDocumentation_js__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('externalDocumentation', element) && primitiveEq('object', element);
|
|
19404
19410
|
});
|
|
19405
|
-
const isHeaderElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19406
|
-
|
|
19407
|
-
|
|
19408
|
-
|
|
19409
|
-
|
|
19410
|
-
} = _ref6;
|
|
19411
|
+
const isHeaderElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19412
|
+
hasBasicElementProps,
|
|
19413
|
+
isElementType,
|
|
19414
|
+
primitiveEq
|
|
19415
|
+
}) => {
|
|
19411
19416
|
return element => element instanceof _elements_Header_js__WEBPACK_IMPORTED_MODULE_6__["default"] || hasBasicElementProps(element) && isElementType('header', element) && primitiveEq('object', element);
|
|
19412
19417
|
});
|
|
19413
|
-
const isInfoElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19414
|
-
|
|
19415
|
-
|
|
19416
|
-
|
|
19417
|
-
|
|
19418
|
-
} = _ref7;
|
|
19418
|
+
const isInfoElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19419
|
+
hasBasicElementProps,
|
|
19420
|
+
isElementType,
|
|
19421
|
+
primitiveEq
|
|
19422
|
+
}) => {
|
|
19419
19423
|
return element => element instanceof _elements_Info_js__WEBPACK_IMPORTED_MODULE_7__["default"] || hasBasicElementProps(element) && isElementType('info', element) && primitiveEq('object', element);
|
|
19420
19424
|
});
|
|
19421
|
-
const isLicenseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19422
|
-
|
|
19423
|
-
|
|
19424
|
-
|
|
19425
|
-
|
|
19426
|
-
} = _ref8;
|
|
19425
|
+
const isLicenseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19426
|
+
hasBasicElementProps,
|
|
19427
|
+
isElementType,
|
|
19428
|
+
primitiveEq
|
|
19429
|
+
}) => {
|
|
19427
19430
|
return element => element instanceof _elements_License_js__WEBPACK_IMPORTED_MODULE_8__["default"] || hasBasicElementProps(element) && isElementType('license', element) && primitiveEq('object', element);
|
|
19428
19431
|
});
|
|
19429
|
-
const isLinkElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19430
|
-
|
|
19431
|
-
|
|
19432
|
-
|
|
19433
|
-
|
|
19434
|
-
} = _ref9;
|
|
19432
|
+
const isLinkElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19433
|
+
hasBasicElementProps,
|
|
19434
|
+
isElementType,
|
|
19435
|
+
primitiveEq
|
|
19436
|
+
}) => {
|
|
19435
19437
|
return element => element instanceof _elements_Link_js__WEBPACK_IMPORTED_MODULE_9__["default"] || hasBasicElementProps(element) && isElementType('link', element) && primitiveEq('object', element);
|
|
19436
19438
|
});
|
|
19437
19439
|
const isLinkElementExternal = element => {
|
|
@@ -19444,47 +19446,42 @@ const isLinkElementExternal = element => {
|
|
|
19444
19446
|
const value = element.operationRef.toValue();
|
|
19445
19447
|
return typeof value === 'string' && value.length > 0 && !value.startsWith('#');
|
|
19446
19448
|
};
|
|
19447
|
-
const isOpenapiElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19448
|
-
|
|
19449
|
-
|
|
19450
|
-
|
|
19451
|
-
|
|
19452
|
-
} = _ref10;
|
|
19449
|
+
const isOpenapiElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19450
|
+
hasBasicElementProps,
|
|
19451
|
+
isElementType,
|
|
19452
|
+
primitiveEq
|
|
19453
|
+
}) => {
|
|
19453
19454
|
return element => element instanceof _elements_Openapi_js__WEBPACK_IMPORTED_MODULE_11__["default"] || hasBasicElementProps(element) && isElementType('openapi', element) && primitiveEq('string', element);
|
|
19454
19455
|
});
|
|
19455
19456
|
|
|
19456
19457
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
19457
|
-
const isOpenApi3_0Element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19458
|
-
|
|
19459
|
-
|
|
19460
|
-
|
|
19461
|
-
|
|
19462
|
-
|
|
19463
|
-
} = _ref11;
|
|
19458
|
+
const isOpenApi3_0Element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19459
|
+
hasBasicElementProps,
|
|
19460
|
+
isElementType,
|
|
19461
|
+
primitiveEq,
|
|
19462
|
+
hasClass
|
|
19463
|
+
}) => {
|
|
19464
19464
|
return element => element instanceof _elements_OpenApi3_0_js__WEBPACK_IMPORTED_MODULE_12__["default"] || hasBasicElementProps(element) && isElementType('openApi3_0', element) && primitiveEq('object', element) && hasClass('api', element);
|
|
19465
19465
|
});
|
|
19466
|
-
const isOperationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19467
|
-
|
|
19468
|
-
|
|
19469
|
-
|
|
19470
|
-
|
|
19471
|
-
} = _ref12;
|
|
19466
|
+
const isOperationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19467
|
+
hasBasicElementProps,
|
|
19468
|
+
isElementType,
|
|
19469
|
+
primitiveEq
|
|
19470
|
+
}) => {
|
|
19472
19471
|
return element => element instanceof _elements_Operation_js__WEBPACK_IMPORTED_MODULE_13__["default"] || hasBasicElementProps(element) && isElementType('operation', element) && primitiveEq('object', element);
|
|
19473
19472
|
});
|
|
19474
|
-
const isParameterElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19475
|
-
|
|
19476
|
-
|
|
19477
|
-
|
|
19478
|
-
|
|
19479
|
-
} = _ref13;
|
|
19473
|
+
const isParameterElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19474
|
+
hasBasicElementProps,
|
|
19475
|
+
isElementType,
|
|
19476
|
+
primitiveEq
|
|
19477
|
+
}) => {
|
|
19480
19478
|
return element => element instanceof _elements_Parameter_js__WEBPACK_IMPORTED_MODULE_14__["default"] || hasBasicElementProps(element) && isElementType('parameter', element) && primitiveEq('object', element);
|
|
19481
19479
|
});
|
|
19482
|
-
const isPathItemElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19483
|
-
|
|
19484
|
-
|
|
19485
|
-
|
|
19486
|
-
|
|
19487
|
-
} = _ref14;
|
|
19480
|
+
const isPathItemElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19481
|
+
hasBasicElementProps,
|
|
19482
|
+
isElementType,
|
|
19483
|
+
primitiveEq
|
|
19484
|
+
}) => {
|
|
19488
19485
|
return element => element instanceof _elements_PathItem_js__WEBPACK_IMPORTED_MODULE_15__["default"] || hasBasicElementProps(element) && isElementType('pathItem', element) && primitiveEq('object', element);
|
|
19489
19486
|
});
|
|
19490
19487
|
const isPathItemElementExternal = element => {
|
|
@@ -19497,20 +19494,18 @@ const isPathItemElementExternal = element => {
|
|
|
19497
19494
|
const value = element.$ref.toValue();
|
|
19498
19495
|
return typeof value === 'string' && value.length > 0 && !value.startsWith('#');
|
|
19499
19496
|
};
|
|
19500
|
-
const isPathsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19501
|
-
|
|
19502
|
-
|
|
19503
|
-
|
|
19504
|
-
|
|
19505
|
-
} = _ref15;
|
|
19497
|
+
const isPathsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19498
|
+
hasBasicElementProps,
|
|
19499
|
+
isElementType,
|
|
19500
|
+
primitiveEq
|
|
19501
|
+
}) => {
|
|
19506
19502
|
return element => element instanceof _elements_Paths_js__WEBPACK_IMPORTED_MODULE_16__["default"] || hasBasicElementProps(element) && isElementType('paths', element) && primitiveEq('object', element);
|
|
19507
19503
|
});
|
|
19508
|
-
const isReferenceElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19509
|
-
|
|
19510
|
-
|
|
19511
|
-
|
|
19512
|
-
|
|
19513
|
-
} = _ref16;
|
|
19504
|
+
const isReferenceElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19505
|
+
hasBasicElementProps,
|
|
19506
|
+
isElementType,
|
|
19507
|
+
primitiveEq
|
|
19508
|
+
}) => {
|
|
19514
19509
|
return element => element instanceof _elements_Reference_js__WEBPACK_IMPORTED_MODULE_17__["default"] || hasBasicElementProps(element) && isElementType('reference', element) && primitiveEq('object', element);
|
|
19515
19510
|
});
|
|
19516
19511
|
const isReferenceElementExternal = element => {
|
|
@@ -19523,71 +19518,63 @@ const isReferenceElementExternal = element => {
|
|
|
19523
19518
|
const value = element.$ref.toValue();
|
|
19524
19519
|
return typeof value === 'string' && value.length > 0 && !value.startsWith('#');
|
|
19525
19520
|
};
|
|
19526
|
-
const isRequestBodyElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19527
|
-
|
|
19528
|
-
|
|
19529
|
-
|
|
19530
|
-
|
|
19531
|
-
} = _ref17;
|
|
19521
|
+
const isRequestBodyElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19522
|
+
hasBasicElementProps,
|
|
19523
|
+
isElementType,
|
|
19524
|
+
primitiveEq
|
|
19525
|
+
}) => {
|
|
19532
19526
|
return element => element instanceof _elements_RequestBody_js__WEBPACK_IMPORTED_MODULE_18__["default"] || hasBasicElementProps(element) && isElementType('requestBody', element) && primitiveEq('object', element);
|
|
19533
19527
|
});
|
|
19534
|
-
const isResponseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19535
|
-
|
|
19536
|
-
|
|
19537
|
-
|
|
19538
|
-
|
|
19539
|
-
} = _ref18;
|
|
19528
|
+
const isResponseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19529
|
+
hasBasicElementProps,
|
|
19530
|
+
isElementType,
|
|
19531
|
+
primitiveEq
|
|
19532
|
+
}) => {
|
|
19540
19533
|
return element => element instanceof _elements_Response_js__WEBPACK_IMPORTED_MODULE_19__["default"] || hasBasicElementProps(element) && isElementType('response', element) && primitiveEq('object', element);
|
|
19541
19534
|
});
|
|
19542
|
-
const isResponsesElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19543
|
-
|
|
19544
|
-
|
|
19545
|
-
|
|
19546
|
-
|
|
19547
|
-
} = _ref19;
|
|
19535
|
+
const isResponsesElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19536
|
+
hasBasicElementProps,
|
|
19537
|
+
isElementType,
|
|
19538
|
+
primitiveEq
|
|
19539
|
+
}) => {
|
|
19548
19540
|
return element => element instanceof _elements_Responses_js__WEBPACK_IMPORTED_MODULE_20__["default"] || hasBasicElementProps(element) && isElementType('responses', element) && primitiveEq('object', element);
|
|
19549
19541
|
});
|
|
19550
|
-
const isSchemaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19551
|
-
|
|
19552
|
-
|
|
19553
|
-
|
|
19554
|
-
|
|
19555
|
-
} = _ref20;
|
|
19542
|
+
const isSchemaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19543
|
+
hasBasicElementProps,
|
|
19544
|
+
isElementType,
|
|
19545
|
+
primitiveEq
|
|
19546
|
+
}) => {
|
|
19556
19547
|
return element => element instanceof _elements_Schema_js__WEBPACK_IMPORTED_MODULE_21__["default"] || hasBasicElementProps(element) && isElementType('schema', element) && primitiveEq('object', element);
|
|
19557
19548
|
});
|
|
19558
19549
|
const isBooleanJsonSchemaElement = element => {
|
|
19559
19550
|
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_10__.isBooleanElement)(element) && element.classes.includes('boolean-json-schema');
|
|
19560
19551
|
};
|
|
19561
|
-
const isSecurityRequirementElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19562
|
-
|
|
19563
|
-
|
|
19564
|
-
|
|
19565
|
-
|
|
19566
|
-
} = _ref21;
|
|
19552
|
+
const isSecurityRequirementElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19553
|
+
hasBasicElementProps,
|
|
19554
|
+
isElementType,
|
|
19555
|
+
primitiveEq
|
|
19556
|
+
}) => {
|
|
19567
19557
|
return element => element instanceof _elements_SecurityRequirement_js__WEBPACK_IMPORTED_MODULE_22__["default"] || hasBasicElementProps(element) && isElementType('securityRequirement', element) && primitiveEq('object', element);
|
|
19568
19558
|
});
|
|
19569
|
-
const isServerElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19570
|
-
|
|
19571
|
-
|
|
19572
|
-
|
|
19573
|
-
|
|
19574
|
-
} = _ref22;
|
|
19559
|
+
const isServerElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19560
|
+
hasBasicElementProps,
|
|
19561
|
+
isElementType,
|
|
19562
|
+
primitiveEq
|
|
19563
|
+
}) => {
|
|
19575
19564
|
return element => element instanceof _elements_Server_js__WEBPACK_IMPORTED_MODULE_23__["default"] || hasBasicElementProps(element) && isElementType('server', element) && primitiveEq('object', element);
|
|
19576
19565
|
});
|
|
19577
|
-
const isServerVariableElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19578
|
-
|
|
19579
|
-
|
|
19580
|
-
|
|
19581
|
-
|
|
19582
|
-
} = _ref23;
|
|
19566
|
+
const isServerVariableElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19567
|
+
hasBasicElementProps,
|
|
19568
|
+
isElementType,
|
|
19569
|
+
primitiveEq
|
|
19570
|
+
}) => {
|
|
19583
19571
|
return element => element instanceof _elements_ServerVariable_js__WEBPACK_IMPORTED_MODULE_24__["default"] || hasBasicElementProps(element) && isElementType('serverVariable', element) && primitiveEq('object', element);
|
|
19584
19572
|
});
|
|
19585
|
-
const isMediaTypeElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
19586
|
-
|
|
19587
|
-
|
|
19588
|
-
|
|
19589
|
-
|
|
19590
|
-
} = _ref24;
|
|
19573
|
+
const isMediaTypeElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
19574
|
+
hasBasicElementProps,
|
|
19575
|
+
isElementType,
|
|
19576
|
+
primitiveEq
|
|
19577
|
+
}) => {
|
|
19591
19578
|
return element => element instanceof _elements_MediaType_js__WEBPACK_IMPORTED_MODULE_25__["default"] || hasBasicElementProps(element) && isElementType('mediaType', element) && primitiveEq('object', element);
|
|
19592
19579
|
});
|
|
19593
19580
|
|
|
@@ -19638,11 +19625,10 @@ function _objectSpread(target) {
|
|
|
19638
19625
|
|
|
19639
19626
|
|
|
19640
19627
|
|
|
19641
|
-
const refract =
|
|
19642
|
-
|
|
19643
|
-
|
|
19644
|
-
|
|
19645
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
19628
|
+
const refract = (value, {
|
|
19629
|
+
specPath = ['visitors', 'document', 'objects', 'OpenApi', '$visitor'],
|
|
19630
|
+
plugins = []
|
|
19631
|
+
} = {}) => {
|
|
19646
19632
|
const element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.refract)(value);
|
|
19647
19633
|
const resolvedSpec = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.dereference)(_specification_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
19648
19634
|
|
|
@@ -19670,12 +19656,9 @@ const refract = function (value) {
|
|
|
19670
19656
|
}
|
|
19671
19657
|
});
|
|
19672
19658
|
};
|
|
19673
|
-
const createRefractor = specPath =>
|
|
19674
|
-
|
|
19675
|
-
|
|
19676
|
-
specPath
|
|
19677
|
-
}, options));
|
|
19678
|
-
};
|
|
19659
|
+
const createRefractor = specPath => (value, options = {}) => refract(value, _objectSpread({
|
|
19660
|
+
specPath
|
|
19661
|
+
}, options));
|
|
19679
19662
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (refract);
|
|
19680
19663
|
|
|
19681
19664
|
/***/ }),
|
|
@@ -20760,15 +20743,14 @@ const SpecificationVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__(_Visitor_js__W
|
|
|
20760
20743
|
openApiGenericElement: null,
|
|
20761
20744
|
openApiSemanticElement: null
|
|
20762
20745
|
},
|
|
20763
|
-
init(
|
|
20764
|
-
|
|
20765
|
-
|
|
20766
|
-
|
|
20767
|
-
|
|
20768
|
-
|
|
20769
|
-
|
|
20770
|
-
|
|
20771
|
-
} = _ref;
|
|
20746
|
+
init({
|
|
20747
|
+
// @ts-ignore
|
|
20748
|
+
specObj = this.specObj,
|
|
20749
|
+
// @ts-ignore
|
|
20750
|
+
openApiGenericElement = this.openApiGenericElement,
|
|
20751
|
+
// @ts-ignore
|
|
20752
|
+
openApiSemanticElement = this.openApiSemanticElement
|
|
20753
|
+
}) {
|
|
20772
20754
|
this.specObj = specObj;
|
|
20773
20755
|
this.openApiGenericElement = openApiGenericElement;
|
|
20774
20756
|
this.openApiSemanticElement = openApiSemanticElement;
|
|
@@ -20786,13 +20768,11 @@ const SpecificationVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__(_Visitor_js__W
|
|
|
20786
20768
|
}
|
|
20787
20769
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_2__.path)(['visitors', ...specPath, '$visitor'], this.specObj);
|
|
20788
20770
|
},
|
|
20789
|
-
retrieveVisitorInstance(specPath) {
|
|
20790
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
20771
|
+
retrieveVisitorInstance(specPath, options = {}) {
|
|
20791
20772
|
const passingOpts = this.retrievePassingOptions();
|
|
20792
20773
|
return this.retrieveVisitor(specPath)(_objectSpread(_objectSpread({}, passingOpts), options));
|
|
20793
20774
|
},
|
|
20794
|
-
toRefractedElement(specPath, element) {
|
|
20795
|
-
let options = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : {};
|
|
20775
|
+
toRefractedElement(specPath, element, options = {}) {
|
|
20796
20776
|
/**
|
|
20797
20777
|
* This is `Visitor shortcut`: mechanism for short circuiting the traversal and replacing
|
|
20798
20778
|
* it by basic node cloning.
|
|
@@ -20878,13 +20858,10 @@ const AlternatingVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVi
|
|
|
20878
20858
|
},
|
|
20879
20859
|
methods: {
|
|
20880
20860
|
enter(element) {
|
|
20881
|
-
const functions = this.alternator.map(
|
|
20882
|
-
|
|
20883
|
-
|
|
20884
|
-
|
|
20885
|
-
} = _ref;
|
|
20886
|
-
return (0,ramda__WEBPACK_IMPORTED_MODULE_1__.ifElse)(predicate, (0,ramda__WEBPACK_IMPORTED_MODULE_1__.always)(specPath), ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
20887
|
-
});
|
|
20861
|
+
const functions = this.alternator.map(({
|
|
20862
|
+
predicate,
|
|
20863
|
+
specPath
|
|
20864
|
+
}) => (0,ramda__WEBPACK_IMPORTED_MODULE_1__.ifElse)(predicate, (0,ramda__WEBPACK_IMPORTED_MODULE_1__.always)(specPath), ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"]));
|
|
20888
20865
|
const specPath = (0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_4__["default"])(functions)(element);
|
|
20889
20866
|
this.element = this.toRefractedElement(specPath, element);
|
|
20890
20867
|
return _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.BREAK;
|
|
@@ -20922,17 +20899,16 @@ const FixedFieldsVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_SpecificationVi
|
|
|
20922
20899
|
canSupportSpecificationExtensions: true,
|
|
20923
20900
|
specificationExtensionPredicate: _predicates_js__WEBPACK_IMPORTED_MODULE_3__.isOpenApiExtension
|
|
20924
20901
|
},
|
|
20925
|
-
init(
|
|
20926
|
-
|
|
20927
|
-
|
|
20928
|
-
|
|
20929
|
-
|
|
20930
|
-
|
|
20931
|
-
|
|
20932
|
-
|
|
20933
|
-
|
|
20934
|
-
|
|
20935
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
20902
|
+
init({
|
|
20903
|
+
// @ts-ignore
|
|
20904
|
+
specPath = this.specPath,
|
|
20905
|
+
// @ts-ignore
|
|
20906
|
+
ignoredFields = this.ignoredFields,
|
|
20907
|
+
// @ts-ignore
|
|
20908
|
+
canSupportSpecificationExtensions = this.canSupportSpecificationExtensions,
|
|
20909
|
+
// @ts-ignore
|
|
20910
|
+
specificationExtensionPredicate = this.specificationExtensionPredicate
|
|
20911
|
+
} = {}) {
|
|
20936
20912
|
this.specPath = specPath;
|
|
20937
20913
|
this.ignoredFields = ignoredFields;
|
|
20938
20914
|
this.canSupportSpecificationExtensions = canSupportSpecificationExtensions;
|
|
@@ -21071,17 +21047,16 @@ const PatternedFieldsJsonObjectVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__(_S
|
|
|
21071
21047
|
canSupportSpecificationExtensions: false,
|
|
21072
21048
|
specificationExtensionPredicate: _predicates_js__WEBPACK_IMPORTED_MODULE_4__.isOpenApiExtension
|
|
21073
21049
|
},
|
|
21074
|
-
init(
|
|
21075
|
-
|
|
21076
|
-
|
|
21077
|
-
|
|
21078
|
-
|
|
21079
|
-
|
|
21080
|
-
|
|
21081
|
-
|
|
21082
|
-
|
|
21083
|
-
|
|
21084
|
-
} = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
21050
|
+
init({
|
|
21051
|
+
// @ts-ignore
|
|
21052
|
+
specPath = this.specPath,
|
|
21053
|
+
// @ts-ignore
|
|
21054
|
+
ignoredFields = this.ignoredFields,
|
|
21055
|
+
// @ts-ignore
|
|
21056
|
+
canSupportSpecificationExtensions = this.canSupportSpecificationExtensions,
|
|
21057
|
+
// @ts-ignore
|
|
21058
|
+
specificationExtensionPredicate = this.specificationExtensionPredicate
|
|
21059
|
+
} = {}) {
|
|
21085
21060
|
this.specPath = specPath;
|
|
21086
21061
|
this.ignoredFields = ignoredFields;
|
|
21087
21062
|
this.canSupportSpecificationExtensions = canSupportSpecificationExtensions;
|
|
@@ -24760,8 +24735,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
24760
24735
|
/* harmony import */ var _SchemaOrReferenceVisitor_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(12956);
|
|
24761
24736
|
|
|
24762
24737
|
|
|
24763
|
-
const inheritedFixedFields = Object.fromEntries(Object.entries(_swagger_api_apidom_ns_json_schema_draft_4__WEBPACK_IMPORTED_MODULE_0__["default"].visitors.document.objects.JSONSchema.fixedFields).map(
|
|
24764
|
-
let [fieldName, visitor] = _ref;
|
|
24738
|
+
const inheritedFixedFields = Object.fromEntries(Object.entries(_swagger_api_apidom_ns_json_schema_draft_4__WEBPACK_IMPORTED_MODULE_0__["default"].visitors.document.objects.JSONSchema.fixedFields).map(([fieldName, visitor]) => {
|
|
24765
24739
|
if (visitor === _swagger_api_apidom_ns_json_schema_draft_4__WEBPACK_IMPORTED_MODULE_0__["default"].visitors.JSONSchemaOrJSONReferenceVisitor) {
|
|
24766
24740
|
return [fieldName, _SchemaOrReferenceVisitor_js__WEBPACK_IMPORTED_MODULE_1__["default"]];
|
|
24767
24741
|
}
|
|
@@ -26572,20 +26546,16 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26572
26546
|
|
|
26573
26547
|
|
|
26574
26548
|
class OpenAPIMediaTypes extends _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__["default"] {
|
|
26575
|
-
filterByFormat() {
|
|
26576
|
-
let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'generic';
|
|
26549
|
+
filterByFormat(format = 'generic') {
|
|
26577
26550
|
const effectiveFormat = format === 'generic' ? 'openapi;version' : format;
|
|
26578
26551
|
return this.filter(mediaType => mediaType.includes(effectiveFormat));
|
|
26579
26552
|
}
|
|
26580
|
-
findBy() {
|
|
26581
|
-
let version = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '3.1.0';
|
|
26582
|
-
let format = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'generic';
|
|
26553
|
+
findBy(version = '3.1.0', format = 'generic') {
|
|
26583
26554
|
const search = format === 'generic' ? `vnd.oai.openapi;version=${version}` : `vnd.oai.openapi+${format};version=${version}`;
|
|
26584
26555
|
const found = this.find(mediaType => mediaType.includes(search));
|
|
26585
26556
|
return found || this.unknownMediaType;
|
|
26586
26557
|
}
|
|
26587
|
-
latest() {
|
|
26588
|
-
let format = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : 'generic';
|
|
26558
|
+
latest(format = 'generic') {
|
|
26589
26559
|
return (0,ramda__WEBPACK_IMPORTED_MODULE_0__.last)(this.filterByFormat(format));
|
|
26590
26560
|
}
|
|
26591
26561
|
}
|
|
@@ -26799,84 +26769,74 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
26799
26769
|
|
|
26800
26770
|
|
|
26801
26771
|
|
|
26802
|
-
const isCallbackElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26803
|
-
|
|
26804
|
-
|
|
26805
|
-
|
|
26806
|
-
|
|
26807
|
-
} = _ref;
|
|
26772
|
+
const isCallbackElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26773
|
+
hasBasicElementProps,
|
|
26774
|
+
isElementType,
|
|
26775
|
+
primitiveEq
|
|
26776
|
+
}) => {
|
|
26808
26777
|
return element => element instanceof _elements_Callback_js__WEBPACK_IMPORTED_MODULE_1__["default"] || hasBasicElementProps(element) && isElementType('callback', element) && primitiveEq('object', element);
|
|
26809
26778
|
});
|
|
26810
|
-
const isComponentsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26811
|
-
|
|
26812
|
-
|
|
26813
|
-
|
|
26814
|
-
|
|
26815
|
-
} = _ref2;
|
|
26779
|
+
const isComponentsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26780
|
+
hasBasicElementProps,
|
|
26781
|
+
isElementType,
|
|
26782
|
+
primitiveEq
|
|
26783
|
+
}) => {
|
|
26816
26784
|
return element => element instanceof _elements_Components_js__WEBPACK_IMPORTED_MODULE_2__["default"] || hasBasicElementProps(element) && isElementType('components', element) && primitiveEq('object', element);
|
|
26817
26785
|
});
|
|
26818
|
-
const isContactElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26819
|
-
|
|
26820
|
-
|
|
26821
|
-
|
|
26822
|
-
|
|
26823
|
-
} = _ref3;
|
|
26786
|
+
const isContactElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26787
|
+
hasBasicElementProps,
|
|
26788
|
+
isElementType,
|
|
26789
|
+
primitiveEq
|
|
26790
|
+
}) => {
|
|
26824
26791
|
return element => element instanceof _elements_Contact_js__WEBPACK_IMPORTED_MODULE_3__["default"] || hasBasicElementProps(element) && isElementType('contact', element) && primitiveEq('object', element);
|
|
26825
26792
|
});
|
|
26826
|
-
const isExampleElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26827
|
-
|
|
26828
|
-
|
|
26829
|
-
|
|
26830
|
-
|
|
26831
|
-
} = _ref4;
|
|
26793
|
+
const isExampleElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26794
|
+
hasBasicElementProps,
|
|
26795
|
+
isElementType,
|
|
26796
|
+
primitiveEq
|
|
26797
|
+
}) => {
|
|
26832
26798
|
return element => element instanceof _elements_Example_js__WEBPACK_IMPORTED_MODULE_4__["default"] || hasBasicElementProps(element) && isElementType('example', element) && primitiveEq('object', element);
|
|
26833
26799
|
});
|
|
26834
|
-
const isExternalDocumentationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26835
|
-
|
|
26836
|
-
|
|
26837
|
-
|
|
26838
|
-
|
|
26839
|
-
} = _ref5;
|
|
26800
|
+
const isExternalDocumentationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26801
|
+
hasBasicElementProps,
|
|
26802
|
+
isElementType,
|
|
26803
|
+
primitiveEq
|
|
26804
|
+
}) => {
|
|
26840
26805
|
return element => element instanceof _elements_ExternalDocumentation_js__WEBPACK_IMPORTED_MODULE_5__["default"] || hasBasicElementProps(element) && isElementType('externalDocumentation', element) && primitiveEq('object', element);
|
|
26841
26806
|
});
|
|
26842
|
-
const isHeaderElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26843
|
-
|
|
26844
|
-
|
|
26845
|
-
|
|
26846
|
-
|
|
26847
|
-
} = _ref6;
|
|
26807
|
+
const isHeaderElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26808
|
+
hasBasicElementProps,
|
|
26809
|
+
isElementType,
|
|
26810
|
+
primitiveEq
|
|
26811
|
+
}) => {
|
|
26848
26812
|
return element => element instanceof _elements_Header_js__WEBPACK_IMPORTED_MODULE_6__["default"] || hasBasicElementProps(element) && isElementType('header', element) && primitiveEq('object', element);
|
|
26849
26813
|
});
|
|
26850
|
-
const isInfoElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26851
|
-
|
|
26852
|
-
|
|
26853
|
-
|
|
26854
|
-
|
|
26855
|
-
} = _ref7;
|
|
26814
|
+
const isInfoElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26815
|
+
hasBasicElementProps,
|
|
26816
|
+
isElementType,
|
|
26817
|
+
primitiveEq
|
|
26818
|
+
}) => {
|
|
26856
26819
|
return element => element instanceof _elements_Info_js__WEBPACK_IMPORTED_MODULE_7__["default"] || hasBasicElementProps(element) && isElementType('info', element) && primitiveEq('object', element);
|
|
26857
26820
|
});
|
|
26858
|
-
const isJsonSchemaDialectElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26859
|
-
|
|
26860
|
-
|
|
26861
|
-
|
|
26862
|
-
|
|
26863
|
-
} = _ref8;
|
|
26821
|
+
const isJsonSchemaDialectElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26822
|
+
hasBasicElementProps,
|
|
26823
|
+
isElementType,
|
|
26824
|
+
primitiveEq
|
|
26825
|
+
}) => {
|
|
26864
26826
|
return element => element instanceof _elements_JsonSchemaDialect_js__WEBPACK_IMPORTED_MODULE_8__["default"] || hasBasicElementProps(element) && isElementType('jsonSchemaDialect', element) && primitiveEq('string', element);
|
|
26865
26827
|
});
|
|
26866
|
-
const isLicenseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26867
|
-
|
|
26868
|
-
|
|
26869
|
-
|
|
26870
|
-
|
|
26871
|
-
} = _ref9;
|
|
26828
|
+
const isLicenseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26829
|
+
hasBasicElementProps,
|
|
26830
|
+
isElementType,
|
|
26831
|
+
primitiveEq
|
|
26832
|
+
}) => {
|
|
26872
26833
|
return element => element instanceof _elements_License_js__WEBPACK_IMPORTED_MODULE_9__["default"] || hasBasicElementProps(element) && isElementType('license', element) && primitiveEq('object', element);
|
|
26873
26834
|
});
|
|
26874
|
-
const isLinkElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26875
|
-
|
|
26876
|
-
|
|
26877
|
-
|
|
26878
|
-
|
|
26879
|
-
} = _ref10;
|
|
26835
|
+
const isLinkElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26836
|
+
hasBasicElementProps,
|
|
26837
|
+
isElementType,
|
|
26838
|
+
primitiveEq
|
|
26839
|
+
}) => {
|
|
26880
26840
|
return element => element instanceof _elements_Link_js__WEBPACK_IMPORTED_MODULE_10__["default"] || hasBasicElementProps(element) && isElementType('link', element) && primitiveEq('object', element);
|
|
26881
26841
|
});
|
|
26882
26842
|
const isLinkElementExternal = element => {
|
|
@@ -26889,47 +26849,42 @@ const isLinkElementExternal = element => {
|
|
|
26889
26849
|
const value = element.operationRef.toValue();
|
|
26890
26850
|
return typeof value === 'string' && value.length > 0 && !value.startsWith('#');
|
|
26891
26851
|
};
|
|
26892
|
-
const isOpenapiElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26893
|
-
|
|
26894
|
-
|
|
26895
|
-
|
|
26896
|
-
|
|
26897
|
-
} = _ref11;
|
|
26852
|
+
const isOpenapiElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26853
|
+
hasBasicElementProps,
|
|
26854
|
+
isElementType,
|
|
26855
|
+
primitiveEq
|
|
26856
|
+
}) => {
|
|
26898
26857
|
return element => element instanceof _elements_Openapi_js__WEBPACK_IMPORTED_MODULE_12__["default"] || hasBasicElementProps(element) && isElementType('openapi', element) && primitiveEq('string', element);
|
|
26899
26858
|
});
|
|
26900
26859
|
|
|
26901
26860
|
// eslint-disable-next-line @typescript-eslint/naming-convention
|
|
26902
|
-
const isOpenApi3_1Element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26903
|
-
|
|
26904
|
-
|
|
26905
|
-
|
|
26906
|
-
|
|
26907
|
-
|
|
26908
|
-
} = _ref12;
|
|
26861
|
+
const isOpenApi3_1Element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26862
|
+
hasBasicElementProps,
|
|
26863
|
+
isElementType,
|
|
26864
|
+
primitiveEq,
|
|
26865
|
+
hasClass
|
|
26866
|
+
}) => {
|
|
26909
26867
|
return element => element instanceof _elements_OpenApi3_1_js__WEBPACK_IMPORTED_MODULE_13__["default"] || hasBasicElementProps(element) && isElementType('openApi3_1', element) && primitiveEq('object', element) && hasClass('api', element);
|
|
26910
26868
|
});
|
|
26911
|
-
const isOperationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26912
|
-
|
|
26913
|
-
|
|
26914
|
-
|
|
26915
|
-
|
|
26916
|
-
} = _ref13;
|
|
26869
|
+
const isOperationElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26870
|
+
hasBasicElementProps,
|
|
26871
|
+
isElementType,
|
|
26872
|
+
primitiveEq
|
|
26873
|
+
}) => {
|
|
26917
26874
|
return element => element instanceof _elements_Operation_js__WEBPACK_IMPORTED_MODULE_14__["default"] || hasBasicElementProps(element) && isElementType('operation', element) && primitiveEq('object', element);
|
|
26918
26875
|
});
|
|
26919
|
-
const isParameterElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26920
|
-
|
|
26921
|
-
|
|
26922
|
-
|
|
26923
|
-
|
|
26924
|
-
} = _ref14;
|
|
26876
|
+
const isParameterElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26877
|
+
hasBasicElementProps,
|
|
26878
|
+
isElementType,
|
|
26879
|
+
primitiveEq
|
|
26880
|
+
}) => {
|
|
26925
26881
|
return element => element instanceof _elements_Parameter_js__WEBPACK_IMPORTED_MODULE_15__["default"] || hasBasicElementProps(element) && isElementType('parameter', element) && primitiveEq('object', element);
|
|
26926
26882
|
});
|
|
26927
|
-
const isPathItemElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26928
|
-
|
|
26929
|
-
|
|
26930
|
-
|
|
26931
|
-
|
|
26932
|
-
} = _ref15;
|
|
26883
|
+
const isPathItemElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26884
|
+
hasBasicElementProps,
|
|
26885
|
+
isElementType,
|
|
26886
|
+
primitiveEq
|
|
26887
|
+
}) => {
|
|
26933
26888
|
return element => element instanceof _elements_PathItem_js__WEBPACK_IMPORTED_MODULE_16__["default"] || hasBasicElementProps(element) && isElementType('pathItem', element) && primitiveEq('object', element);
|
|
26934
26889
|
});
|
|
26935
26890
|
const isPathItemElementExternal = element => {
|
|
@@ -26942,20 +26897,18 @@ const isPathItemElementExternal = element => {
|
|
|
26942
26897
|
const value = element.$ref.toValue();
|
|
26943
26898
|
return typeof value === 'string' && value.length > 0 && !value.startsWith('#');
|
|
26944
26899
|
};
|
|
26945
|
-
const isPathsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26946
|
-
|
|
26947
|
-
|
|
26948
|
-
|
|
26949
|
-
|
|
26950
|
-
} = _ref16;
|
|
26900
|
+
const isPathsElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26901
|
+
hasBasicElementProps,
|
|
26902
|
+
isElementType,
|
|
26903
|
+
primitiveEq
|
|
26904
|
+
}) => {
|
|
26951
26905
|
return element => element instanceof _elements_Paths_js__WEBPACK_IMPORTED_MODULE_17__["default"] || hasBasicElementProps(element) && isElementType('paths', element) && primitiveEq('object', element);
|
|
26952
26906
|
});
|
|
26953
|
-
const isReferenceElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26954
|
-
|
|
26955
|
-
|
|
26956
|
-
|
|
26957
|
-
|
|
26958
|
-
} = _ref17;
|
|
26907
|
+
const isReferenceElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26908
|
+
hasBasicElementProps,
|
|
26909
|
+
isElementType,
|
|
26910
|
+
primitiveEq
|
|
26911
|
+
}) => {
|
|
26959
26912
|
return element => element instanceof _elements_Reference_js__WEBPACK_IMPORTED_MODULE_18__["default"] || hasBasicElementProps(element) && isElementType('reference', element) && primitiveEq('object', element);
|
|
26960
26913
|
});
|
|
26961
26914
|
const isReferenceElementExternal = element => {
|
|
@@ -26968,71 +26921,63 @@ const isReferenceElementExternal = element => {
|
|
|
26968
26921
|
const value = element.$ref.toValue();
|
|
26969
26922
|
return typeof value === 'string' && value.length > 0 && !value.startsWith('#');
|
|
26970
26923
|
};
|
|
26971
|
-
const isRequestBodyElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26972
|
-
|
|
26973
|
-
|
|
26974
|
-
|
|
26975
|
-
|
|
26976
|
-
} = _ref18;
|
|
26924
|
+
const isRequestBodyElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26925
|
+
hasBasicElementProps,
|
|
26926
|
+
isElementType,
|
|
26927
|
+
primitiveEq
|
|
26928
|
+
}) => {
|
|
26977
26929
|
return element => element instanceof _elements_RequestBody_js__WEBPACK_IMPORTED_MODULE_19__["default"] || hasBasicElementProps(element) && isElementType('requestBody', element) && primitiveEq('object', element);
|
|
26978
26930
|
});
|
|
26979
|
-
const isResponseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26980
|
-
|
|
26981
|
-
|
|
26982
|
-
|
|
26983
|
-
|
|
26984
|
-
} = _ref19;
|
|
26931
|
+
const isResponseElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26932
|
+
hasBasicElementProps,
|
|
26933
|
+
isElementType,
|
|
26934
|
+
primitiveEq
|
|
26935
|
+
}) => {
|
|
26985
26936
|
return element => element instanceof _elements_Response_js__WEBPACK_IMPORTED_MODULE_20__["default"] || hasBasicElementProps(element) && isElementType('response', element) && primitiveEq('object', element);
|
|
26986
26937
|
});
|
|
26987
|
-
const isResponsesElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26988
|
-
|
|
26989
|
-
|
|
26990
|
-
|
|
26991
|
-
|
|
26992
|
-
} = _ref20;
|
|
26938
|
+
const isResponsesElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26939
|
+
hasBasicElementProps,
|
|
26940
|
+
isElementType,
|
|
26941
|
+
primitiveEq
|
|
26942
|
+
}) => {
|
|
26993
26943
|
return element => element instanceof _elements_Responses_js__WEBPACK_IMPORTED_MODULE_21__["default"] || hasBasicElementProps(element) && isElementType('responses', element) && primitiveEq('object', element);
|
|
26994
26944
|
});
|
|
26995
|
-
const isSchemaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
26996
|
-
|
|
26997
|
-
|
|
26998
|
-
|
|
26999
|
-
|
|
27000
|
-
} = _ref21;
|
|
26945
|
+
const isSchemaElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26946
|
+
hasBasicElementProps,
|
|
26947
|
+
isElementType,
|
|
26948
|
+
primitiveEq
|
|
26949
|
+
}) => {
|
|
27001
26950
|
return element => element instanceof _elements_Schema_js__WEBPACK_IMPORTED_MODULE_22__["default"] || hasBasicElementProps(element) && isElementType('schema', element) && primitiveEq('object', element);
|
|
27002
26951
|
});
|
|
27003
26952
|
const isBooleanJsonSchemaElement = element => {
|
|
27004
26953
|
return (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_11__.isBooleanElement)(element) && element.classes.includes('boolean-json-schema');
|
|
27005
26954
|
};
|
|
27006
|
-
const isSecurityRequirementElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
27007
|
-
|
|
27008
|
-
|
|
27009
|
-
|
|
27010
|
-
|
|
27011
|
-
} = _ref22;
|
|
26955
|
+
const isSecurityRequirementElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26956
|
+
hasBasicElementProps,
|
|
26957
|
+
isElementType,
|
|
26958
|
+
primitiveEq
|
|
26959
|
+
}) => {
|
|
27012
26960
|
return element => element instanceof _elements_SecurityRequirement_js__WEBPACK_IMPORTED_MODULE_23__["default"] || hasBasicElementProps(element) && isElementType('securityRequirement', element) && primitiveEq('object', element);
|
|
27013
26961
|
});
|
|
27014
|
-
const isServerElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
27015
|
-
|
|
27016
|
-
|
|
27017
|
-
|
|
27018
|
-
|
|
27019
|
-
} = _ref23;
|
|
26962
|
+
const isServerElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26963
|
+
hasBasicElementProps,
|
|
26964
|
+
isElementType,
|
|
26965
|
+
primitiveEq
|
|
26966
|
+
}) => {
|
|
27020
26967
|
return element => element instanceof _elements_Server_js__WEBPACK_IMPORTED_MODULE_24__["default"] || hasBasicElementProps(element) && isElementType('server', element) && primitiveEq('object', element);
|
|
27021
26968
|
});
|
|
27022
|
-
const isServerVariableElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
27023
|
-
|
|
27024
|
-
|
|
27025
|
-
|
|
27026
|
-
|
|
27027
|
-
} = _ref24;
|
|
26969
|
+
const isServerVariableElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26970
|
+
hasBasicElementProps,
|
|
26971
|
+
isElementType,
|
|
26972
|
+
primitiveEq
|
|
26973
|
+
}) => {
|
|
27028
26974
|
return element => element instanceof _elements_ServerVariable_js__WEBPACK_IMPORTED_MODULE_25__["default"] || hasBasicElementProps(element) && isElementType('serverVariable', element) && primitiveEq('object', element);
|
|
27029
26975
|
});
|
|
27030
|
-
const isMediaTypeElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(
|
|
27031
|
-
|
|
27032
|
-
|
|
27033
|
-
|
|
27034
|
-
|
|
27035
|
-
} = _ref25;
|
|
26976
|
+
const isMediaTypeElement = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_0__["default"])(({
|
|
26977
|
+
hasBasicElementProps,
|
|
26978
|
+
isElementType,
|
|
26979
|
+
primitiveEq
|
|
26980
|
+
}) => {
|
|
27036
26981
|
return element => element instanceof _elements_MediaType_js__WEBPACK_IMPORTED_MODULE_26__["default"] || hasBasicElementProps(element) && isElementType('mediaType', element) && primitiveEq('object', element);
|
|
27037
26982
|
});
|
|
27038
26983
|
|
|
@@ -27083,11 +27028,10 @@ function _objectSpread(target) {
|
|
|
27083
27028
|
|
|
27084
27029
|
|
|
27085
27030
|
|
|
27086
|
-
const refract =
|
|
27087
|
-
|
|
27088
|
-
|
|
27089
|
-
|
|
27090
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
27031
|
+
const refract = (value, {
|
|
27032
|
+
specPath = ['visitors', 'document', 'objects', 'OpenApi', '$visitor'],
|
|
27033
|
+
plugins = []
|
|
27034
|
+
} = {}) => {
|
|
27091
27035
|
const element = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_1__.refract)(value);
|
|
27092
27036
|
const resolvedSpec = (0,_swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_2__.dereference)(_specification_js__WEBPACK_IMPORTED_MODULE_3__["default"]);
|
|
27093
27037
|
|
|
@@ -27115,12 +27059,9 @@ const refract = function (value) {
|
|
|
27115
27059
|
}
|
|
27116
27060
|
});
|
|
27117
27061
|
};
|
|
27118
|
-
const createRefractor = specPath =>
|
|
27119
|
-
|
|
27120
|
-
|
|
27121
|
-
specPath
|
|
27122
|
-
}, options));
|
|
27123
|
-
};
|
|
27062
|
+
const createRefractor = specPath => (value, options = {}) => refract(value, _objectSpread({
|
|
27063
|
+
specPath
|
|
27064
|
+
}, options));
|
|
27124
27065
|
/* harmony default export */ const __WEBPACK_DEFAULT_EXPORT__ = (refract);
|
|
27125
27066
|
|
|
27126
27067
|
/***/ }),
|
|
@@ -29742,10 +29683,9 @@ const ParentSchemaAwareVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
29742
29683
|
parent: null
|
|
29743
29684
|
},
|
|
29744
29685
|
// @ts-ignore
|
|
29745
|
-
init(
|
|
29746
|
-
|
|
29747
|
-
|
|
29748
|
-
} = _ref;
|
|
29686
|
+
init({
|
|
29687
|
+
parent = this.parent
|
|
29688
|
+
}) {
|
|
29749
29689
|
this.parent = parent;
|
|
29750
29690
|
this.passingOptionsNames = [...this.passingOptionsNames, 'parent'];
|
|
29751
29691
|
}
|
|
@@ -30435,10 +30375,9 @@ const detect = async source => {
|
|
|
30435
30375
|
return false;
|
|
30436
30376
|
}
|
|
30437
30377
|
};
|
|
30438
|
-
const parse = async
|
|
30439
|
-
|
|
30440
|
-
|
|
30441
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
30378
|
+
const parse = async (source, {
|
|
30379
|
+
sourceMap = false
|
|
30380
|
+
} = {}) => {
|
|
30442
30381
|
const cst = await (0,_lexical_analysis_browser_js__WEBPACK_IMPORTED_MODULE_2__["default"])(source);
|
|
30443
30382
|
return (0,_syntactic_analysis_index_js__WEBPACK_IMPORTED_MODULE_3__["default"])(cst, {
|
|
30444
30383
|
sourceMap
|
|
@@ -30481,10 +30420,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30481
30420
|
// patch fetch() to let emscripten load the WASM file
|
|
30482
30421
|
const realFetch = globalThis.fetch;
|
|
30483
30422
|
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_2__["default"])(realFetch)) {
|
|
30484
|
-
globalThis.fetch =
|
|
30485
|
-
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
|
|
30486
|
-
args[_key] = arguments[_key];
|
|
30487
|
-
}
|
|
30423
|
+
globalThis.fetch = (...args) => {
|
|
30488
30424
|
// @ts-ignore
|
|
30489
30425
|
if ((0,ramda_adjunct__WEBPACK_IMPORTED_MODULE_3__["default"])(args[0]) && args[0].endsWith('tree-sitter.wasm')) {
|
|
30490
30426
|
// @ts-ignore
|
|
@@ -30587,10 +30523,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
30587
30523
|
* TreeSitter CST -> YAML AST -> ApiDOM
|
|
30588
30524
|
* Two traversals passes are needed to get from CST to ApiDOM.
|
|
30589
30525
|
*/
|
|
30590
|
-
const analyze =
|
|
30591
|
-
|
|
30592
|
-
|
|
30593
|
-
} = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
30526
|
+
const analyze = (cst, {
|
|
30527
|
+
sourceMap = false
|
|
30528
|
+
} = {}) => {
|
|
30594
30529
|
const cstVisitor = (0,_visitors_CstVisitor_js__WEBPACK_IMPORTED_MODULE_0__["default"])();
|
|
30595
30530
|
const astVisitor = (0,_visitors_YamlAstVisitor_js__WEBPACK_IMPORTED_MODULE_1__["default"])();
|
|
30596
30531
|
const schema = (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_2__["default"])();
|
|
@@ -30874,7 +30809,7 @@ const CstVisitor = stampit__WEBPACK_IMPORTED_MODULE_0__({
|
|
|
30874
30809
|
enter(node) {
|
|
30875
30810
|
var _node$firstNamedChild;
|
|
30876
30811
|
const position = toPosition(node);
|
|
30877
|
-
const version = (node === null || node === void 0
|
|
30812
|
+
const version = (node === null || node === void 0 || (_node$firstNamedChild = node.firstNamedChild) === null || _node$firstNamedChild === void 0 ? void 0 : _node$firstNamedChild.text) || null;
|
|
30878
30813
|
return (0,_swagger_api_apidom_ast__WEBPACK_IMPORTED_MODULE_10__["default"])({
|
|
30879
30814
|
position,
|
|
30880
30815
|
name: '%YAML',
|
|
@@ -31409,7 +31344,7 @@ const YamlAstVisitor = stampit__WEBPACK_IMPORTED_MODULE_1__({
|
|
|
31409
31344
|
return null;
|
|
31410
31345
|
};
|
|
31411
31346
|
this.error = function error(node, key, parent, path) {
|
|
31412
|
-
const message = node.isUnexpected ?
|
|
31347
|
+
const message = node.isUnexpected ? '(Unexpected YAML syntax error)' : '(Error YAML syntax error)';
|
|
31413
31348
|
const element = new _swagger_api_apidom_core__WEBPACK_IMPORTED_MODULE_5__.AnnotationElement(message);
|
|
31414
31349
|
element.classes.push('error');
|
|
31415
31350
|
maybeAddSourceMap(node, element);
|
|
@@ -49774,8 +49709,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
49774
49709
|
|
|
49775
49710
|
const detectionRegExp = /(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m;
|
|
49776
49711
|
const detect = async source => detectionRegExp.test(source) && (await (0,_swagger_api_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_2__.detect)(source));
|
|
49777
|
-
const parse = async
|
|
49778
|
-
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
49712
|
+
const parse = async (source, options = {}) => {
|
|
49779
49713
|
const refractorOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.propOr)({}, 'refractorOpts', options);
|
|
49780
49714
|
const parserOpts = (0,ramda__WEBPACK_IMPORTED_MODULE_0__.omit)(['refractorOpts'], options);
|
|
49781
49715
|
const parseResultElement = await (0,_swagger_api_apidom_parser_adapter_yaml_1_2__WEBPACK_IMPORTED_MODULE_2__.parse)(source, parserOpts);
|