All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.apidom-parser-adapter-api-design-systems-json.browser.min.js Maven / Gradle / Ivy

There is a newer version: 0.99.2
Show newest version
!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsJson=e():t.apidomParserAdapterApiDesignSystemsJson=e()}(self,(()=>(()=>{var t={9515:(t,e,r)=>{var n=r(8761)(r(7772),"DataView");t.exports=n},9612:(t,e,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),a=r(4769);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(8761)(r(7772),"Map");t.exports=n},6738:(t,e,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e{var n=r(8761)(r(7772),"Promise");t.exports=n},2143:(t,e,r)=>{var n=r(8761)(r(7772),"Set");t.exports=n},5386:(t,e,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),c=r(1418);function u(t){var e=this.__data__=new n(t);this.size=e.size}u.prototype.clear=s,u.prototype.delete=i,u.prototype.get=o,u.prototype.has=a,u.prototype.set=c,t.exports=u},857:(t,e,r)=>{var n=r(7772).Symbol;t.exports=n},9162:(t,e,r)=>{var n=r(7772).Uint8Array;t.exports=n},3215:(t,e,r)=>{var n=r(8761)(r(7772),"WeakMap");t.exports=n},7552:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length,s=0,i=[];++r{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),c=r(7598),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),f=!r&&!l&&o(t),p=!r&&!l&&!f&&c(t),h=r||l||f||p,_=h?n(t.length,String):[],m=_.length;for(var d in t)!e&&!u.call(t,d)||h&&("length"==d||f&&("offset"==d||"parent"==d)||p&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||a(d,m))||_.push(d);return _}},5067:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r{var n=r(1225);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},1897:(t,e,r)=>{var n=r(5067),s=r(6152);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},3366:(t,e,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},5183:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},8746:(t,e,r)=>{var n=r(1952),s=r(5125);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},1952:(t,e,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),c=r(6152),u=r(3226),l=r(7598),f="[object Arguments]",p="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,m,d,y){var g=c(t),b=c(e),v=g?p:a(t),w=b?p:a(e),E=(v=v==f?h:v)==h,x=(w=w==f?h:w)==h,j=v==w;if(j&&u(t)){if(!u(e))return!1;g=!0,E=!1}if(j&&!E)return y||(y=new n),g||l(t)?s(t,e,r,m,d,y):i(t,e,v,r,m,d,y);if(!(1&r)){var S=E&&_.call(t,"__wrapped__"),A=x&&_.call(e,"__wrapped__");if(S||A){var O=S?t.value():t,P=A?e.value():e;return y||(y=new n),d(O,P,r,m,y)}}return!!j&&(y||(y=new n),o(t,e,r,m,d,y))}},6840:(t,e,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,f=u.hasOwnProperty,p=RegExp("^"+l.call(f).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?p:a).test(o(t))}},5522:(t,e,r)=>{var n=r(3366),s=r(1158),i=r(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},6411:(t,e,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6473:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r{t.exports=function(t){return function(e){return t(e)}}},9950:t=>{t.exports=function(t,e){return t.has(e)}},4019:(t,e,r)=>{var n=r(7772)["__core-js_shared__"];t.exports=n},4871:(t,e,r)=>{var n=r(5386),s=r(7064),i=r(9950);t.exports=function(t,e,r,o,a,c){var u=1&r,l=t.length,f=e.length;if(l!=f&&!(u&&f>l))return!1;var p=c.get(t),h=c.get(e);if(p&&h)return p==e&&h==t;var _=-1,m=!0,d=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++_{var n=r(857),s=r(9162),i=r(1225),o=r(4871),a=r(5179),c=r(4207),u=n?n.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,r,n,u,f,p){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!f(new s(t),new s(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var h=a;case"[object Set]":var _=1&n;if(h||(h=c),t.size!=e.size&&!_)return!1;var m=p.get(t);if(m)return m==e;n|=2,p.set(t,e);var d=o(h(t),h(e),n,u,f,p);return p.delete(t),d;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},7416:(t,e,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,i,o,a){var c=1&r,u=n(t),l=u.length;if(l!=n(e).length&&!c)return!1;for(var f=l;f--;){var p=u[f];if(!(c?p in e:s.call(e,p)))return!1}var h=a.get(t),_=a.get(e);if(h&&_)return h==e&&_==t;var m=!0;a.set(t,e),a.set(e,t);for(var d=c;++f{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},3483:(t,e,r)=>{var n=r(1897),s=r(633),i=r(249);t.exports=function(t){return n(t,i,s)}},7937:(t,e,r)=>{var n=r(8304);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},8761:(t,e,r)=>{var n=r(6840),s=r(8109);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},2107:(t,e,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},633:(t,e,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},940:(t,e,r)=>{var n=r(9515),s=r(326),i=r(2760),o=r(2143),a=r(3215),c=r(3366),u=r(7035),l="[object Map]",f="[object Promise]",p="[object Set]",h="[object WeakMap]",_="[object DataView]",m=u(n),d=u(s),y=u(i),g=u(o),b=u(a),v=c;(n&&v(new n(new ArrayBuffer(1)))!=_||s&&v(new s)!=l||i&&v(i.resolve())!=f||o&&v(new o)!=p||a&&v(new a)!=h)&&(v=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case m:return _;case d:return l;case y:return f;case g:return p;case b:return h}return e}),t.exports=v},8109:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2118:(t,e,r)=>{var n=r(9191);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8138:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},4174:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},7942:(t,e,r)=>{var n=r(9191);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9045:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7394:(t,e,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},6001:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3945:t=>{t.exports=function(){this.__data__=[],this.size=0}},1846:(t,e,r)=>{var n=r(2218),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},8028:(t,e,r)=>{var n=r(2218);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},2344:(t,e,r)=>{var n=r(2218);t.exports=function(t){return n(this.__data__,t)>-1}},4769:(t,e,r)=>{var n=r(2218);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},2411:(t,e,r)=>{var n=r(9612),s=r(235),i=r(326);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(t,e,r)=>{var n=r(7937);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6928:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).get(t)}},9493:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).has(t)}},4150:(t,e,r)=>{var n=r(7937);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},5179:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},9191:(t,e,r)=>{var n=r(8761)(Object,"create");t.exports=n},4248:(t,e,r)=>{var n=r(241)(Object.keys,Object);t.exports=n},4146:(t,e,r)=>{t=r.nmd(t);var n=r(1242),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},7157:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},241:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},7772:(t,e,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},2842:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2482:t=>{t.exports=function(t){return this.__data__.has(t)}},4207:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},5243:(t,e,r)=>{var n=r(235);t.exports=function(){this.__data__=new n,this.size=0}},2858:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4417:t=>{t.exports=function(t){return this.__data__.get(t)}},8605:t=>{t.exports=function(t){return this.__data__.has(t)}},1418:(t,e,r)=>{var n=r(235),s=r(326),i=r(6738);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},7035:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1225:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9631:(t,e,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(t){return s(t)&&o.call(t,"callee")&&!a.call(t,"callee")};t.exports=c},6152:t=>{var e=Array.isArray;t.exports=e},7878:(t,e,r)=>{var n=r(1049),s=r(1158);t.exports=function(t){return null!=t&&s(t.length)&&!n(t)}},4335:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==n(t)}},3226:(t,e,r)=>{t=r.nmd(t);var n=r(7772),s=r(6330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},8149:(t,e,r)=>{var n=r(8746);t.exports=function(t,e){return n(t,e)}},1049:(t,e,r)=>{var n=r(3366),s=r(9259);t.exports=function(t){if(!s(t))return!1;var e=n(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},1158:t=>{t.exports=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991}},5877:t=>{t.exports=function(t){return null===t}},537:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==n(t)}},9259:t=>{t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},5125:t=>{t.exports=function(t){return null!=t&&"object"==typeof t}},5505:(t,e,r)=>{var n=r(3366),s=r(6152),i=r(5125);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==n(t)}},7598:(t,e,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?s(o):n;t.exports=a},249:(t,e,r)=>{var n=r(1634),s=r(6411),i=r(7878);t.exports=function(t){return i(t)?n(t):s(t)}},1570:t=>{t.exports=function(t){if("function"!=typeof t)throw new TypeError("Expected a function");return function(){var e=arguments;switch(e.length){case 0:return!t.call(this);case 1:return!t.call(this,e[0]);case 2:return!t.call(this,e[0],e[1]);case 3:return!t.call(this,e[0],e[1],e[2])}return!t.apply(this,e)}}},981:t=>{t.exports=function(){return[]}},6330:t=>{t.exports=function(){return!1}},1178:(t,e,r)=>{const n=r(1570);function s(t){return"string"==typeof t?e=>e.element===t:t.constructor&&t.extend?e=>e instanceof t:t}class i{constructor(t){this.elements=t||[]}toValue(){return this.elements.map((t=>t.toValue()))}map(t,e){return this.elements.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return t=s(t),new i(this.elements.filter(t,e))}reject(t,e){return t=s(t),new i(this.elements.filter(n(t),e))}find(t,e){return t=s(t),this.elements.find(t,e)}forEach(t,e){this.elements.forEach(t,e)}reduce(t,e){return this.elements.reduce(t,e)}includes(t){return this.elements.some((e=>e.equals(t)))}shift(){return this.elements.shift()}unshift(t){this.elements.unshift(this.refract(t))}push(t){return this.elements.push(this.refract(t)),this}add(t){this.push(t)}get(t){return this.elements[t]}getValue(t){const e=this.elements[t];if(e)return e.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),t.exports=i},3026:t=>{class e{constructor(t,e){this.key=t,this.value=e}clone(){const t=new e;return this.key&&(t.key=this.key.clone()),this.value&&(t.value=this.value.clone()),t}}t.exports=e},5140:(t,e,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),a=r(9259),c=r(2947),u=r(3756);class l{constructor(t){this.elementMap={},this.elementDetection=[],this.Element=u.Element,this.KeyValuePair=u.KeyValuePair,t&&t.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(t){return t.namespace&&t.namespace({base:this}),t.load&&t.load({base:this}),this}useDefault(){return this.register("null",u.NullElement).register("string",u.StringElement).register("number",u.NumberElement).register("boolean",u.BooleanElement).register("array",u.ArrayElement).register("object",u.ObjectElement).register("member",u.MemberElement).register("ref",u.RefElement).register("link",u.LinkElement),this.detect(n,u.NullElement,!1).detect(s,u.StringElement,!1).detect(i,u.NumberElement,!1).detect(o,u.BooleanElement,!1).detect(Array.isArray,u.ArrayElement,!1).detect(a,u.ObjectElement,!1),this}register(t,e){return this._elements=void 0,this.elementMap[t]=e,this}unregister(t){return this._elements=void 0,delete this.elementMap[t],this}detect(t,e,r){return void 0===r||r?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let r=0;r{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3853:(t,e,r)=>{const n=r(1570),s=r(1178);class i extends s{map(t,e){return this.elements.map((r=>t.bind(e)(r.value,r.key,r)))}filter(t,e){return new i(this.elements.filter((r=>t.bind(e)(r.value,r.key,r))))}reject(t,e){return this.filter(n(t.bind(e)))}forEach(t,e){return this.elements.forEach(((r,n)=>{t.bind(e)(r.value,r.key,r,n)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},3756:(t,e,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),a=r(3312),c=r(1641),u=r(8858),l=r(3860),f=r(5202),p=r(2320),h=r(1178),_=r(3853),m=r(3026);function d(t){if(t instanceof n)return t;if("string"==typeof t)return new i(t);if("number"==typeof t)return new o(t);if("boolean"==typeof t)return new a(t);if(null===t)return new s;if(Array.isArray(t))return new c(t.map(d));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=p,n.prototype.MemberElement=u,n.prototype.refract=d,h.prototype.refract=d,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:f,RefElement:p,refract:d,ArraySlice:h,ObjectSlice:_,KeyValuePair:m}},5202:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(t){this.attributes.set("relation",t)}get href(){return this.attributes.get("href")}set href(t){this.attributes.set("href",t)}}},2320:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||[],e,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(t){this.attributes.set("path",t)}}},7952:(t,e,r)=>{const n=r(5140),s=r(3756);e.lS=n,e.KeyValuePair=r(3026),e.O4=s.ArraySlice,e.rm=s.ObjectSlice,e.W_=s.Element,e.RP=s.StringElement,e.VL=s.NumberElement,e.hh=s.BooleanElement,e.zr=s.NullElement,e.ON=s.ArrayElement,e.Sb=s.ObjectElement,e.c6=s.MemberElement,e.tK=s.RefElement,e.EA=s.LinkElement,e.Qc=s.refract,r(2947),r(8910)},1641:(t,e,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(t,e,r){super(t||[],e,r),this.element="array"}primitive(){return"array"}get(t){return this.content[t]}getValue(t){const e=this.get(t);if(e)return e.toValue()}getIndex(t){return this.content[t]}set(t,e){return this.content[t]=this.refract(e),this}remove(t){const e=this.content.splice(t,1);return e.length?e[0]:null}map(t,e){return this.content.map(t,e)}flatMap(t,e){return this.map(t,e).reduce(((t,e)=>t.concat(e)),[])}compactMap(t,e){const r=[];return this.forEach((n=>{const s=t.bind(e)(n);s&&r.push(s)})),r}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(n(t),e)}reduce(t,e){let r,n;void 0!==e?(r=0,n=this.refract(e)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let e=r;e{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=o},3312:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(t,e,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},8858:(t,e,r)=>{const n=r(3026),s=r(6420);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},4152:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},3860:(t,e,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},9542:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(t,e,r)=>{const n=r(2947);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},2947:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},6591:t=>{!function(){"use strict";var e,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",f="staticPropertyDescriptors",p="configuration",h="deepConfiguration",_="deepProps",m="deepStatics",d="deepConf",y="initializers",g="methods",b="composers",v="compose";function w(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function E(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var x=E.bind(0,(function(t,e){if(e)for(var r=w(e),n=0;n{var n=void 0!==n?n:{},s=function(){var e,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return e||(n=Object.assign({},n,o),e=new Promise((e=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,f,p=[],h="./this.program",_=function(t,e){throw e};l="object"==typeof window,f="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!f;var m,d,y,g,b,v="";c?(v=f?r(6287).dirname(v)+"/":"//",m=function(t,e){return g||(g=r(5530)),b||(b=r(6287)),t=b.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=m(t,!0);return e.buffer||(e=new Uint8Array(e)),T(e.buffer),e},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),p=process.argv.slice(2),t.exports=n,_=function(t){process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(m=function(t){return read(t)}),y=function(t){var e;return"function"==typeof readbuffer?new Uint8Array(readbuffer(t)):(T("object"==typeof(e=read(t,"binary"))),e)},"undefined"!=typeof scriptArgs?p=scriptArgs:void 0!==arguments&&(p=arguments),"function"==typeof quit&&(_=function(t){quit(t)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(l||f)&&(f?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",m=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},f&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),d=function(t,e,r){var n=new XMLHttpRequest;n.open("GET",t,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?e(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var w=n.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(n[o]=a[o]);a=null,n.arguments&&(p=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(_=n.quit);var E,x=16,j=[];function S(t,e){if(!E){E=new WeakMap;for(var r=0;r>0]=e;break;case"i16":q[t>>1]=e;break;case"i32":L[t>>2]=e;break;case"i64":lt=[e>>>0,(ut=e,+Math.abs(ut)>=1?ut>0?(0|Math.min(+Math.floor(ut/4294967296),4294967295))>>>0:~~+Math.ceil((ut-+(~~ut>>>0))/4294967296)>>>0:0)],L[t>>2]=lt[0],L[t+4>>2]=lt[1];break;case"float":$[t>>2]=e;break;case"double":V[t>>3]=e;break;default:at("invalid type for setValue: "+r)}}function N(t,e,r){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return C[t>>0];case"i16":return q[t>>1];case"i32":case"i64":return L[t>>2];case"float":return $[t>>2];case"double":return V[t>>3];default:at("invalid type for getValue: "+e)}return null}"object"!=typeof WebAssembly&&at("no native wasm support detected");var M=!1;function T(t,e){t||at("Assertion failed: "+e)}var R,C,F,q,L,$,V,z="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.subarray&&z)return z.decode(t.subarray(e,s));for(var i="";e>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function D(t,e){return t?B(F,t,e):""}function U(t,e,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function W(t,e,r){return U(t,F,e,r)}function G(t){for(var e=0,r=0;r=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function K(t){var e=G(t)+1,r=Dt(e);return U(t,C,r,e),r}function Z(t){R=t,n.HEAP8=C=new Int8Array(t),n.HEAP16=q=new Int16Array(t),n.HEAP32=L=new Int32Array(t),n.HEAPU8=F=new Uint8Array(t),n.HEAPU16=new Uint16Array(t),n.HEAPU32=new Uint32Array(t),n.HEAPF32=$=new Float32Array(t),n.HEAPF64=V=new Float64Array(t)}var H=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(R=P.buffer),H=R.byteLength,Z(R);var X=new WebAssembly.Table({initial:17,element:"anyfunc"}),J=[],Y=[],Q=[],tt=[],et=!1,rt=0,nt=null,st=null;function it(t){rt++,n.monitorRunDependencies&&n.monitorRunDependencies(rt)}function ot(t){if(rt--,n.monitorRunDependencies&&n.monitorRunDependencies(rt),0==rt&&(null!==nt&&(clearInterval(nt),nt=null),st)){var e=st;st=null,e()}}function at(t){throw n.onAbort&&n.onAbort(t),w(t+=""),M=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ct,ut,lt;function ft(t){return t.startsWith("data:application/octet-stream;base64,")}function pt(t){return t.startsWith("file://")}function ht(t){try{if(t==ct&&A)return new Uint8Array(A);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}ft(ct="tree-sitter.wasm")||(ct=function(t){return n.locateFile?n.locateFile(t,v):v+t}(ct));var _t={},mt={get:function(t,e){return _t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),_t[e]}};function dt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?X.get(r)():X.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}function yt(t){var e=0;function r(){for(var r=0,n=1;;){var s=t[e++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(t instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(t,"dylink");T(0!=n.length,"need dylink section"),t=new Int8Array(n[0])}else T(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===t[8],"need the dylink section to be first"),e=9,r(),T(6===t[e]),T(t[++e]==="d".charCodeAt(0)),T(t[++e]==="y".charCodeAt(0)),T(t[++e]==="l".charCodeAt(0)),T(t[++e]==="i".charCodeAt(0)),T(t[++e]==="n".charCodeAt(0)),T(t[++e]==="k".charCodeAt(0)),e++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o0}function vt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var r in t)if(t.hasOwnProperty(r)){Lt.hasOwnProperty(r)||(Lt[r]=t[r]);var s=vt(r);n.hasOwnProperty(s)||(n[s]=t[r])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function jt(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function St(t,e){var r={};for(var n in t){var s=t[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),r[n]=s}return function(t){for(var e in t)if(!jt(e)){var r=!1,n=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],r=!0),_t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==_t[e].value)&&("function"==typeof n?_t[e].value=S(n):"number"==typeof n?_t[e].value=n:w("unhandled export type for `"+e+"`: "+typeof n))}}(r),r}function At(t,e){var r,s;return e&&(r=Lt["orig$"+t]),r||(r=Lt[t]),r||(r=n[vt(t)]),!r&&t.startsWith("invoke_")&&(s=t.split("_")[1],r=function(){var t=zt();try{return function(t,e,r){return t.includes("j")?function(t,e,r){var s=n["dynCall_"+t];return r&&r.length?s.apply(null,[e].concat(r)):s.call(null,e)}(t,e,r):X.get(e).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Bt(t),e!==e+0&&"longjmp"!==e)throw e;Ut(1,0)}}),r}function Ot(t,e){var r=yt(t);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,x);var s,i,o,a=(s=function(t){if(et)return $t(t);var e=xt,r=e+t+15&-16;return xt=r,_t.__heap_base.value=r,e}(r.memorySize+n),(i=n)||(i=x),Math.ceil(s/i)*i),c=X.length;X.grow(r.tableSize);for(var u=a;u>2]=28,-1;r=It()}return L[e>>2]=r/1e3|0,L[e+4>>2]=r%1e3*1e3*1e3|0,0}function Rt(t){try{return P.grow(t-R.byteLength+65535>>>16),Z(P.buffer),1}catch(t){}}function Ct(t){Zt(t)}function Ft(t){}Tt.sig="iii",Ct.sig="vi",Ft.sig="vi";var qt,Lt={__heap_base:xt,__indirect_function_table:X,__memory_base:1024,__stack_pointer:Nt,__table_base:1,abort:Mt,clock_gettime:Tt,emscripten_memcpy_big:function(t,e,r){F.copyWithin(t,e,e+r)},emscripten_resize_heap:function(t){var e,r=F.length;if((t>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),Rt(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Ct,memory:P,setTempRet0:Ft,tree_sitter_log_callback:function(t,e){if(ue){const r=D(e);ue(r,0!==t)}},tree_sitter_parse_callback:function(t,e,r,n,s){var i=ce(e,{row:r,column:n});"string"==typeof i?(I(s,i.length,"i32"),function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*t.length?r/2:t.length,s=0;s>1]=i,e+=2}q[e>>1]=0}(i,t,10240)):I(s,0,"i32")}},$t=(function(){var t={env:Lt,wasi_snapshot_preview1:Lt,"GOT.mem":new Proxy(Lt,mt),"GOT.func":new Proxy(Lt,mt)};function e(t,e){var r=t.exports;r=St(r,1024),n.asm=r;var s,i=yt(e);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),wt(r),s=n.asm.__wasm_call_ctors,Y.unshift(s),ot()}function r(t){e(t.instance,t.module)}function s(e){return function(){if(!A&&(l||f)){if("function"==typeof fetch&&!pt(ct))return fetch(ct,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load wasm binary file at '"+ct+"'";return t.arrayBuffer()})).catch((function(){return ht(ct)}));if(d)return new Promise((function(t,e){d(ct,(function(e){t(new Uint8Array(e))}),e)}))}return Promise.resolve().then((function(){return ht(ct)}))}().then((function(e){return WebAssembly.instantiate(e,t)})).then(e,(function(t){w("failed to asynchronously prepare wasm: "+t),at(t)}))}if(it(),n.instantiateWasm)try{return n.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}A||"function"!=typeof WebAssembly.instantiateStreaming||ft(ct)||pt(ct)||"function"!=typeof fetch?s(r):fetch(ct,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(r,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),s(r)}))}))}(),n.___wasm_call_ctors=function(){return(n.___wasm_call_ctors=n.asm.__wasm_call_ctors).apply(null,arguments)},n._malloc=function(){return($t=n._malloc=n.asm.malloc).apply(null,arguments)}),Vt=(n._calloc=function(){return(n._calloc=n.asm.calloc).apply(null,arguments)},n._realloc=function(){return(n._realloc=n.asm.realloc).apply(null,arguments)},n._free=function(){return(n._free=n.asm.free).apply(null,arguments)},n._ts_language_symbol_count=function(){return(n._ts_language_symbol_count=n.asm.ts_language_symbol_count).apply(null,arguments)},n._ts_language_version=function(){return(n._ts_language_version=n.asm.ts_language_version).apply(null,arguments)},n._ts_language_field_count=function(){return(n._ts_language_field_count=n.asm.ts_language_field_count).apply(null,arguments)},n._ts_language_symbol_name=function(){return(n._ts_language_symbol_name=n.asm.ts_language_symbol_name).apply(null,arguments)},n._ts_language_symbol_for_name=function(){return(n._ts_language_symbol_for_name=n.asm.ts_language_symbol_for_name).apply(null,arguments)},n._ts_language_symbol_type=function(){return(n._ts_language_symbol_type=n.asm.ts_language_symbol_type).apply(null,arguments)},n._ts_language_field_name_for_id=function(){return(n._ts_language_field_name_for_id=n.asm.ts_language_field_name_for_id).apply(null,arguments)},n._memcpy=function(){return(n._memcpy=n.asm.memcpy).apply(null,arguments)},n._ts_parser_delete=function(){return(n._ts_parser_delete=n.asm.ts_parser_delete).apply(null,arguments)},n._ts_parser_reset=function(){return(n._ts_parser_reset=n.asm.ts_parser_reset).apply(null,arguments)},n._ts_parser_set_language=function(){return(n._ts_parser_set_language=n.asm.ts_parser_set_language).apply(null,arguments)},n._ts_parser_timeout_micros=function(){return(n._ts_parser_timeout_micros=n.asm.ts_parser_timeout_micros).apply(null,arguments)},n._ts_parser_set_timeout_micros=function(){return(n._ts_parser_set_timeout_micros=n.asm.ts_parser_set_timeout_micros).apply(null,arguments)},n._memmove=function(){return(n._memmove=n.asm.memmove).apply(null,arguments)},n._memcmp=function(){return(n._memcmp=n.asm.memcmp).apply(null,arguments)},n._ts_query_new=function(){return(n._ts_query_new=n.asm.ts_query_new).apply(null,arguments)},n._ts_query_delete=function(){return(n._ts_query_delete=n.asm.ts_query_delete).apply(null,arguments)},n._iswspace=function(){return(n._iswspace=n.asm.iswspace).apply(null,arguments)},n._iswalnum=function(){return(n._iswalnum=n.asm.iswalnum).apply(null,arguments)},n._ts_query_pattern_count=function(){return(n._ts_query_pattern_count=n.asm.ts_query_pattern_count).apply(null,arguments)},n._ts_query_capture_count=function(){return(n._ts_query_capture_count=n.asm.ts_query_capture_count).apply(null,arguments)},n._ts_query_string_count=function(){return(n._ts_query_string_count=n.asm.ts_query_string_count).apply(null,arguments)},n._ts_query_capture_name_for_id=function(){return(n._ts_query_capture_name_for_id=n.asm.ts_query_capture_name_for_id).apply(null,arguments)},n._ts_query_string_value_for_id=function(){return(n._ts_query_string_value_for_id=n.asm.ts_query_string_value_for_id).apply(null,arguments)},n._ts_query_predicates_for_pattern=function(){return(n._ts_query_predicates_for_pattern=n.asm.ts_query_predicates_for_pattern).apply(null,arguments)},n._ts_tree_copy=function(){return(n._ts_tree_copy=n.asm.ts_tree_copy).apply(null,arguments)},n._ts_tree_delete=function(){return(n._ts_tree_delete=n.asm.ts_tree_delete).apply(null,arguments)},n._ts_init=function(){return(n._ts_init=n.asm.ts_init).apply(null,arguments)},n._ts_parser_new_wasm=function(){return(n._ts_parser_new_wasm=n.asm.ts_parser_new_wasm).apply(null,arguments)},n._ts_parser_enable_logger_wasm=function(){return(n._ts_parser_enable_logger_wasm=n.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},n._ts_parser_parse_wasm=function(){return(n._ts_parser_parse_wasm=n.asm.ts_parser_parse_wasm).apply(null,arguments)},n._ts_language_type_is_named_wasm=function(){return(n._ts_language_type_is_named_wasm=n.asm.ts_language_type_is_named_wasm).apply(null,arguments)},n._ts_language_type_is_visible_wasm=function(){return(n._ts_language_type_is_visible_wasm=n.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},n._ts_tree_root_node_wasm=function(){return(n._ts_tree_root_node_wasm=n.asm.ts_tree_root_node_wasm).apply(null,arguments)},n._ts_tree_edit_wasm=function(){return(n._ts_tree_edit_wasm=n.asm.ts_tree_edit_wasm).apply(null,arguments)},n._ts_tree_get_changed_ranges_wasm=function(){return(n._ts_tree_get_changed_ranges_wasm=n.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},n._ts_tree_cursor_new_wasm=function(){return(n._ts_tree_cursor_new_wasm=n.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},n._ts_tree_cursor_delete_wasm=function(){return(n._ts_tree_cursor_delete_wasm=n.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},n._ts_tree_cursor_reset_wasm=function(){return(n._ts_tree_cursor_reset_wasm=n.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_first_child_wasm=function(){return(n._ts_tree_cursor_goto_first_child_wasm=n.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_next_sibling_wasm=function(){return(n._ts_tree_cursor_goto_next_sibling_wasm=n.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},n._ts_tree_cursor_goto_parent_wasm=function(){return(n._ts_tree_cursor_goto_parent_wasm=n.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_type_id_wasm=function(){return(n._ts_tree_cursor_current_node_type_id_wasm=n.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_named_wasm=function(){return(n._ts_tree_cursor_current_node_is_named_wasm=n.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_is_missing_wasm=function(){return(n._ts_tree_cursor_current_node_is_missing_wasm=n.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_id_wasm=function(){return(n._ts_tree_cursor_current_node_id_wasm=n.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},n._ts_tree_cursor_start_position_wasm=function(){return(n._ts_tree_cursor_start_position_wasm=n.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},n._ts_tree_cursor_end_position_wasm=function(){return(n._ts_tree_cursor_end_position_wasm=n.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},n._ts_tree_cursor_start_index_wasm=function(){return(n._ts_tree_cursor_start_index_wasm=n.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},n._ts_tree_cursor_end_index_wasm=function(){return(n._ts_tree_cursor_end_index_wasm=n.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},n._ts_tree_cursor_current_field_id_wasm=function(){return(n._ts_tree_cursor_current_field_id_wasm=n.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},n._ts_tree_cursor_current_node_wasm=function(){return(n._ts_tree_cursor_current_node_wasm=n.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},n._ts_node_symbol_wasm=function(){return(n._ts_node_symbol_wasm=n.asm.ts_node_symbol_wasm).apply(null,arguments)},n._ts_node_child_count_wasm=function(){return(n._ts_node_child_count_wasm=n.asm.ts_node_child_count_wasm).apply(null,arguments)},n._ts_node_named_child_count_wasm=function(){return(n._ts_node_named_child_count_wasm=n.asm.ts_node_named_child_count_wasm).apply(null,arguments)},n._ts_node_child_wasm=function(){return(n._ts_node_child_wasm=n.asm.ts_node_child_wasm).apply(null,arguments)},n._ts_node_named_child_wasm=function(){return(n._ts_node_named_child_wasm=n.asm.ts_node_named_child_wasm).apply(null,arguments)},n._ts_node_child_by_field_id_wasm=function(){return(n._ts_node_child_by_field_id_wasm=n.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},n._ts_node_next_sibling_wasm=function(){return(n._ts_node_next_sibling_wasm=n.asm.ts_node_next_sibling_wasm).apply(null,arguments)},n._ts_node_prev_sibling_wasm=function(){return(n._ts_node_prev_sibling_wasm=n.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},n._ts_node_next_named_sibling_wasm=function(){return(n._ts_node_next_named_sibling_wasm=n.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},n._ts_node_prev_named_sibling_wasm=function(){return(n._ts_node_prev_named_sibling_wasm=n.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},n._ts_node_parent_wasm=function(){return(n._ts_node_parent_wasm=n.asm.ts_node_parent_wasm).apply(null,arguments)},n._ts_node_descendant_for_index_wasm=function(){return(n._ts_node_descendant_for_index_wasm=n.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_index_wasm=function(){return(n._ts_node_named_descendant_for_index_wasm=n.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},n._ts_node_descendant_for_position_wasm=function(){return(n._ts_node_descendant_for_position_wasm=n.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_named_descendant_for_position_wasm=function(){return(n._ts_node_named_descendant_for_position_wasm=n.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},n._ts_node_start_point_wasm=function(){return(n._ts_node_start_point_wasm=n.asm.ts_node_start_point_wasm).apply(null,arguments)},n._ts_node_end_point_wasm=function(){return(n._ts_node_end_point_wasm=n.asm.ts_node_end_point_wasm).apply(null,arguments)},n._ts_node_start_index_wasm=function(){return(n._ts_node_start_index_wasm=n.asm.ts_node_start_index_wasm).apply(null,arguments)},n._ts_node_end_index_wasm=function(){return(n._ts_node_end_index_wasm=n.asm.ts_node_end_index_wasm).apply(null,arguments)},n._ts_node_to_string_wasm=function(){return(n._ts_node_to_string_wasm=n.asm.ts_node_to_string_wasm).apply(null,arguments)},n._ts_node_children_wasm=function(){return(n._ts_node_children_wasm=n.asm.ts_node_children_wasm).apply(null,arguments)},n._ts_node_named_children_wasm=function(){return(n._ts_node_named_children_wasm=n.asm.ts_node_named_children_wasm).apply(null,arguments)},n._ts_node_descendants_of_type_wasm=function(){return(n._ts_node_descendants_of_type_wasm=n.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},n._ts_node_is_named_wasm=function(){return(n._ts_node_is_named_wasm=n.asm.ts_node_is_named_wasm).apply(null,arguments)},n._ts_node_has_changes_wasm=function(){return(n._ts_node_has_changes_wasm=n.asm.ts_node_has_changes_wasm).apply(null,arguments)},n._ts_node_has_error_wasm=function(){return(n._ts_node_has_error_wasm=n.asm.ts_node_has_error_wasm).apply(null,arguments)},n._ts_node_is_missing_wasm=function(){return(n._ts_node_is_missing_wasm=n.asm.ts_node_is_missing_wasm).apply(null,arguments)},n._ts_query_matches_wasm=function(){return(n._ts_query_matches_wasm=n.asm.ts_query_matches_wasm).apply(null,arguments)},n._ts_query_captures_wasm=function(){return(n._ts_query_captures_wasm=n.asm.ts_query_captures_wasm).apply(null,arguments)},n._iswdigit=function(){return(n._iswdigit=n.asm.iswdigit).apply(null,arguments)},n._iswalpha=function(){return(n._iswalpha=n.asm.iswalpha).apply(null,arguments)},n._iswlower=function(){return(n._iswlower=n.asm.iswlower).apply(null,arguments)},n._towupper=function(){return(n._towupper=n.asm.towupper).apply(null,arguments)},n.___errno_location=function(){return(Vt=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),zt=(n._memchr=function(){return(n._memchr=n.asm.memchr).apply(null,arguments)},n._strlen=function(){return(n._strlen=n.asm.strlen).apply(null,arguments)},n.stackSave=function(){return(zt=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Bt=n.stackRestore=function(){return(Bt=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Dt=n.stackAlloc=function(){return(Dt=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ut=n._setThrew=function(){return(Ut=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Wt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(n.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=n.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(n.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=n.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(n.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=n.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},n.__Znwm=function(){return(n.__Znwm=n.asm._Znwm).apply(null,arguments)},n.__ZdlPv=function(){return(n.__ZdlPv=n.asm._ZdlPv).apply(null,arguments)},n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(t,e){var r;return r=1==e?Dt(t.length):$t(t.length),t.subarray||t.slice?F.set(t,r):F.set(new Uint8Array(t),r),r},st=function t(){qt||Kt(),qt||(st=t)};var Gt=!1;function Kt(t){function e(){qt||(qt=!0,n.calledRun=!0,M||(et=!0,dt(Y),dt(Q),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ht&&function(t){var e=n._main;if(e){var r=(t=t||[]).length+1,s=Dt(4*(r+1));L[s>>2]=K(h);for(var i=1;i>2)+i]=K(t[i-1]);L[(s>>2)+r]=0;try{Zt(e(r,s),!0)}catch(t){if(t instanceof Wt)return;if("unwind"==t)return;var o=t;t&&"object"==typeof t&&t.stack&&(o=[t,t.stack]),w("exception thrown: "+o),_(1,t)}}}(t),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)t=n.postRun.shift(),tt.unshift(t);var t;dt(tt)}()))}t=t||p,rt>0||!Gt&&(function(){if(O.length){if(!y)return it(),void O.reduce((function(t,e){return t.then((function(){return Pt(e,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){ot(),kt()}));O.forEach((function(t){Pt(t,{global:!0,nodelete:!0,allowUndefined:!0})})),kt()}else kt()}(),Gt=!0,rt>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),J.unshift(t);var t;dt(J)}(),rt>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}function Zt(t,e){e&&bt()&&0===t||(bt()||(n.onExit&&n.onExit(t),M=!0),_(t,new Wt(t)))}if(n.run=Kt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ht=!0;n.noInitialRun&&(Ht=!1),Kt();const Xt=n,Jt={},Yt=4,Qt=5*Yt,te=2*Yt,ee=2*Yt+2*te,re={row:0,column:0},ne=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ce,ue;class le{static init(){ae=Xt._ts_init(),ie=N(ae,"i32"),oe=N(ae+Yt,"i32")}initialize(){Xt._ts_parser_new_wasm(),this[0]=N(ae,"i32"),this[1]=N(ae+Yt,"i32")}delete(){Xt._ts_parser_delete(this[0]),Xt._free(this[1]),this[0]=0,this[1]=0}setLanguage(t){let e;if(t){if(t.constructor!==_e)throw new Error("Argument must be a Language");{e=t[0];const r=Xt._ts_language_version(e);if(rt.slice(e,n);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ce=t}this.logCallback?(ue=this.logCallback,Xt._ts_parser_enable_logger_wasm(this[0],1)):(ue=null,Xt._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let t=s=Xt._calloc(n,ee);for(let e=0;e0){let t=r;for(let r=0;r0){let r=e;for(let e=0;e0){let r=e;for(let e=0;e0){let t=a;for(let e=0;e>0];if(!r)return e;e+=String.fromCharCode(r)}}(t);return Xt._free(t),e}}class he{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Xt._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){ve(t),Ee(this,ae+Qt),Xt._ts_tree_cursor_reset_wasm(this.tree[0]),xe(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ee(this),Xt._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Xt._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Xt._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Xt._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Xt._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Xt._ts_tree_cursor_end_index_wasm(this.tree[0]);return de(this.tree,t,e)}get startPosition(){return Ee(this),Xt._ts_tree_cursor_start_position_wasm(this.tree[0]),Se(ae)}get endPosition(){return Ee(this),Xt._ts_tree_cursor_end_position_wasm(this.tree[0]),Se(ae)}get startIndex(){return Ee(this),Xt._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Xt._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Xt._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Xt._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Xt._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Xt._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Xt._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return xe(this),1===t}}class _e{constructor(t,e){ge(t),this[0]=e,this.types=new Array(Xt._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const e=s[0].value;let r=!0;switch(e){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const e=s[1].name,n=s[2].name;h[t].push((function(t){let s,i;for(const r of t)r.name===e&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const e=s[1].name,n=s[2].value;h[t].push((function(t){for(const s of t)if(s.name===e)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);h[t].push((function(t){for(const e of t)if(e.name===n)return i.test(e.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');u[t]||(u[t]={}),u[t][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${e}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((t=>"string"!==t.type)))throw new Error(`Arguments to \`#${e}\` predicate must be a strings.".`);const o="is?"===e?l:f;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:p[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(u[t]),Object.freeze(l[t]),Object.freeze(f[t])}return Xt._free(r),new me(Jt,n,a,h,p,Object.freeze(u),Object.freeze(l),Object.freeze(f))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const n=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=r(5530);e=Promise.resolve(t.readFileSync(n))}else e=fetch(n).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const r=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Ot;return e.then((t=>n(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),r=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const n=t[r]();return new _e(Jt,n)}))}}class me{constructor(t,e,r,n,s,i,o,a){ge(t),this[0]=e,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Xt._ts_query_delete(this[0]),this[0]=0}matches(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");ve(t),Xt._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=N(ae,"i32"),o=N(ae+Yt,"i32"),a=N(ae+2*Yt,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let e=0;et(s)))){c[u++]={pattern:r,captures:s};const t=this.setProperties[r];t&&(c[e].setProperties=t);const n=this.assertedProperties[r];n&&(c[e].assertedProperties=n);const i=this.refutedProperties[r];i&&(c[e].refutedProperties=i)}}return c.length=u,Xt._free(o),c}captures(t,e,r,n){e||(e=re),r||(r=re),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");ve(t),Xt._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=N(ae,"i32"),o=N(ae+Yt,"i32"),a=N(ae+2*Yt,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let e=0;et(u)))){const t=u[n],r=this.setProperties[e];r&&(t.setProperties=r);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),c.push(t)}}return Xt._free(o),c}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function de(t,e,r){const n=r-e;let s=t.textCallback(e,null,r);for(e+=s.length;e0))break;e+=n.length,s+=n}return e>r&&(s=s.slice(0,n)),s}function ye(t,e,r,n){for(let s=0,i=n.length;s{le.init(),e()}})))}}return i}();t.exports=s},5530:()=>{},6287:()=>{},1427:(t,e,r)=>{t.exports=r(1125)},1681:(t,e,r)=>{"use strict";var n=r(7497);t.exports=n},3258:(t,e,r)=>{"use strict";r(2777),r(733),r(1835),r(6449),r(9383);var n=r(8422);t.exports=n.AggregateError},1125:(t,e,r)=>{"use strict";t.exports=r(3985)},3985:(t,e,r)=>{"use strict";r(3584);var n=r(1681);t.exports=n},5375:(t,e,r)=>{"use strict";var n=r(8563),s=r(5787),i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not a function")}},692:(t,e,r)=>{"use strict";var n=r(8563),s=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw new i("Can't set "+s(t)+" as a prototype")}},7171:t=>{"use strict";t.exports=function(){}},457:(t,e,r)=>{"use strict";var n=r(8257),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw new i(s(t)+" is not an object")}},3346:(t,e,r)=>{"use strict";var n=r(4312),s=r(1940),i=r(8960),o=function(t){return function(e,r,o){var a,c=n(e),u=i(c),l=s(o,u);if(t&&r!=r){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===r)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},88:(t,e,r)=>{"use strict";var n=r(8814),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},2327:(t,e,r)=>{"use strict";var n=r(6694),s=r(8563),i=r(88),o=r(379)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());t.exports=n?i:function(t){var e,r,n;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(r=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?r:c?i(e):"Object"===(n=i(e))&&s(e.callee)?"Arguments":n}},1318:(t,e,r)=>{"use strict";var n=r(3941),s=r(5956),i=r(3335),o=r(4376);t.exports=function(t,e,r){for(var a=s(e),c=o.f,u=i.f,l=0;l{"use strict";var n=r(2998);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},9497:t=>{"use strict";t.exports=function(t,e){return{value:t,done:e}}},1370:(t,e,r)=>{"use strict";var n=r(1815),s=r(4376),i=r(7971);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},7971:t=>{"use strict";t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},4500:(t,e,r)=>{"use strict";var n=r(1370);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},8194:(t,e,r)=>{"use strict";var n=r(8426),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},1815:(t,e,r)=>{"use strict";var n=r(2998);t.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},5361:t=>{"use strict";var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},6327:(t,e,r)=>{"use strict";var n=r(8426),s=r(8257),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},8987:t=>{"use strict";t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9954:t=>{"use strict";t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},5057:(t,e,r)=>{"use strict";var n,s,i=r(8426),o=r(9954),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(n=l.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),t.exports=s},8573:t=>{"use strict";t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4456:(t,e,r)=>{"use strict";var n=r(8814),s=Error,i=n("".replace),o=String(new s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);t.exports=function(t,e){if(c&&"string"==typeof t&&!s.prepareStackTrace)for(;e--;)t=i(t,a,"");return t}},4151:(t,e,r)=>{"use strict";var n=r(1370),s=r(4456),i=r(5111),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},5111:(t,e,r)=>{"use strict";var n=r(2998),s=r(7971);t.exports=!n((function(){var t=new Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},9011:(t,e,r)=>{"use strict";var n=r(8426),s=r(4877),i=r(9730),o=r(8563),a=r(3335).f,c=r(8722),u=r(8422),l=r(1207),f=r(1370),p=r(3941),h=function(t){var e=function(r,n,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(r);case 2:return new t(r,n)}return new t(r,n,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var r,s,_,m,d,y,g,b,v,w=t.target,E=t.global,x=t.stat,j=t.proto,S=E?n:x?n[w]:(n[w]||{}).prototype,A=E?u:u[w]||f(u,w,{})[w],O=A.prototype;for(m in e)s=!(r=c(E?m:w+(x?".":"#")+m,t.forced))&&S&&p(S,m),y=A[m],s&&(g=t.dontCallGetSet?(v=a(S,m))&&v.value:S[m]),d=s&&g?g:e[m],s&&typeof y==typeof d||(b=t.bind&&s?l(d,n):t.wrap&&s?h(d):j&&o(d)?i(d):d,(t.sham||d&&d.sham||y&&y.sham)&&f(b,"sham",!0),f(A,m,b),j&&(p(u,_=w+"Prototype")||f(u,_,{}),f(u[_],m,d),t.real&&O&&(r||!O[m])&&f(O,m,d)))}},2998:t=>{"use strict";t.exports=function(t){try{return!!t()}catch(t){return!0}}},4877:(t,e,r)=>{"use strict";var n=r(5083),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},1207:(t,e,r)=>{"use strict";var n=r(9730),s=r(5375),i=r(5083),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},5083:(t,e,r)=>{"use strict";var n=r(2998);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},200:(t,e,r)=>{"use strict";var n=r(5083),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},5339:(t,e,r)=>{"use strict";var n=r(1815),s=r(3941),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!n||n&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},2799:(t,e,r)=>{"use strict";var n=r(8814),s=r(5375);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},9730:(t,e,r)=>{"use strict";var n=r(88),s=r(8814);t.exports=function(t){if("Function"===n(t))return s(t)}},8814:(t,e,r)=>{"use strict";var n=r(5083),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},6589:(t,e,r)=>{"use strict";var n=r(8422),s=r(8426),i=r(8563),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},2630:(t,e,r)=>{"use strict";var n=r(2327),s=r(2833),i=r(5157),o=r(2444),a=r(379)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},1291:(t,e,r)=>{"use strict";var n=r(200),s=r(5375),i=r(457),o=r(5787),a=r(2630),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw new c(o(t)+" is not iterable")}},2833:(t,e,r)=>{"use strict";var n=r(5375),s=r(5157);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},8426:function(t,e,r){"use strict";var n=function(t){return t&&t.Math===Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||n("object"==typeof this&&this)||function(){return this}()||Function("return this")()},3941:(t,e,r)=>{"use strict";var n=r(8814),s=r(8389),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},3006:t=>{"use strict";t.exports={}},4812:(t,e,r)=>{"use strict";var n=r(6589);t.exports=n("document","documentElement")},4632:(t,e,r)=>{"use strict";var n=r(1815),s=r(2998),i=r(6327);t.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},6541:(t,e,r)=>{"use strict";var n=r(8814),s=r(2998),i=r(88),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"===i(t)?a(t,""):o(t)}:o},9330:(t,e,r)=>{"use strict";var n=r(8563),s=r(8257),i=r(8597);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},1609:(t,e,r)=>{"use strict";var n=r(8257),s=r(1370);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},8551:(t,e,r)=>{"use strict";var n,s,i,o=r(8268),a=r(8426),c=r(8257),u=r(1370),l=r(3941),f=r(6028),p=r(5430),h=r(3006),_="Object already initialized",m=a.TypeError,d=a.WeakMap;if(o||f.state){var y=f.state||(f.state=new d);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw new m(_);return e.facade=t,y.set(t,e),e},s=function(t){return y.get(t)||{}},i=function(t){return y.has(t)}}else{var g=p("state");h[g]=!0,n=function(t,e){if(l(t,g))throw new m(_);return e.facade=t,u(t,g,e),e},s=function(t){return l(t,g)?t[g]:{}},i=function(t){return l(t,g)}}t.exports={set:n,get:s,has:i,enforce:function(t){return i(t)?s(t):n(t,{})},getterFor:function(t){return function(e){var r;if(!c(e)||(r=s(e)).type!==t)throw new m("Incompatible receiver, "+t+" required");return r}}}},2576:(t,e,r)=>{"use strict";var n=r(379),s=r(2444),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},8563:(t,e,r)=>{"use strict";var n=r(5361),s=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===s}:function(t){return"function"==typeof t}},8722:(t,e,r)=>{"use strict";var n=r(2998),s=r(8563),i=/#|\.prototype\./,o=function(t,e){var r=c[a(t)];return r===l||r!==u&&(s(e)?n(e):!!e)},a=o.normalize=function(t){return String(t).replace(i,".").toLowerCase()},c=o.data={},u=o.NATIVE="N",l=o.POLYFILL="P";t.exports=o},5157:t=>{"use strict";t.exports=function(t){return null==t}},8257:(t,e,r)=>{"use strict";var n=r(8563),s=r(5361),i=s.all;t.exports=s.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},7736:t=>{"use strict";t.exports=!0},6753:(t,e,r)=>{"use strict";var n=r(6589),s=r(8563),i=r(7367),o=r(9378),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},3490:(t,e,r)=>{"use strict";var n=r(1207),s=r(200),i=r(457),o=r(5787),a=r(2576),c=r(8960),u=r(7367),l=r(1291),f=r(2630),p=r(6889),h=TypeError,_=function(t,e){this.stopped=t,this.result=e},m=_.prototype;t.exports=function(t,e,r){var d,y,g,b,v,w,E,x=r&&r.that,j=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),A=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(e,x),k=function(t){return d&&p(d,"normal",t),new _(!0,t)},I=function(t){return j?(i(t),O?P(t[0],t[1],k):P(t[0],t[1])):O?P(t,k):P(t)};if(S)d=t.iterator;else if(A)d=t;else{if(!(y=f(t)))throw new h(o(t)+" is not iterable");if(a(y)){for(g=0,b=c(t);b>g;g++)if((v=I(t[g]))&&u(m,v))return v;return new _(!1)}d=l(t,y)}for(w=S?t.next:d.next;!(E=s(w,d)).done;){try{v=I(E.value)}catch(t){p(d,"throw",t)}if("object"==typeof v&&v&&u(m,v))return v}return new _(!1)}},6889:(t,e,r)=>{"use strict";var n=r(200),s=r(457),i=r(2833);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},7323:(t,e,r)=>{"use strict";var n=r(374).IteratorPrototype,s=r(1504),i=r(7971),o=r(9468),a=r(2444),c=function(){return this};t.exports=function(t,e,r,u){var l=e+" Iterator";return t.prototype=s(n,{next:i(+!u,r)}),o(t,l,!1,!0),a[l]=c,t}},5994:(t,e,r)=>{"use strict";var n=r(9011),s=r(200),i=r(7736),o=r(5339),a=r(8563),c=r(7323),u=r(9814),l=r(8597),f=r(9468),p=r(1370),h=r(4500),_=r(379),m=r(2444),d=r(374),y=o.PROPER,g=o.CONFIGURABLE,b=d.IteratorPrototype,v=d.BUGGY_SAFARI_ITERATORS,w=_("iterator"),E="keys",x="values",j="entries",S=function(){return this};t.exports=function(t,e,r,o,_,d,A){c(r,e,o);var O,P,k,I=function(t){if(t===_&&C)return C;if(!v&&t&&t in T)return T[t];switch(t){case E:case x:case j:return function(){return new r(this,t)}}return function(){return new r(this)}},N=e+" Iterator",M=!1,T=t.prototype,R=T[w]||T["@@iterator"]||_&&T[_],C=!v&&R||I(_),F="Array"===e&&T.entries||R;if(F&&(O=u(F.call(new t)))!==Object.prototype&&O.next&&(i||u(O)===b||(l?l(O,b):a(O[w])||h(O,w,S)),f(O,N,!0,!0),i&&(m[N]=S)),y&&_===x&&R&&R.name!==x&&(!i&&g?p(T,"name",x):(M=!0,C=function(){return s(R,this)})),_)if(P={values:I(x),keys:d?C:I(E),entries:I(j)},A)for(k in P)(v||M||!(k in T))&&h(T,k,P[k]);else n({target:e,proto:!0,forced:v||M},P);return i&&!A||T[w]===C||h(T,w,C,{name:_}),m[e]=C,P}},374:(t,e,r)=>{"use strict";var n,s,i,o=r(2998),a=r(8563),c=r(8257),u=r(1504),l=r(9814),f=r(4500),p=r(379),h=r(7736),_=p("iterator"),m=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):m=!0),!c(n)||o((function(){var t={};return n[_].call(t)!==t}))?n={}:h&&(n=u(n)),a(n[_])||f(n,_,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:m}},2444:t=>{"use strict";t.exports={}},8960:(t,e,r)=>{"use strict";var n=r(9261);t.exports=function(t){return n(t.length)}},5703:t=>{"use strict";var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},5517:(t,e,r)=>{"use strict";var n=r(4809);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},1504:(t,e,r)=>{"use strict";var n,s=r(457),i=r(8253),o=r(8573),a=r(3006),c=r(4812),u=r(6327),l=r(5430),f="prototype",p="script",h=l("IE_PROTO"),_=function(){},m=function(t){return"<"+p+">"+t+""},d=function(t){t.write(m("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{n=new ActiveXObject("htmlfile")}catch(t){}var t,e,r;y="undefined"!=typeof document?document.domain&&n?d(n):(e=u("iframe"),r="java"+p+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(m("document.F=Object")),t.close(),t.F):d(n);for(var s=o.length;s--;)delete y[f][o[s]];return y()};a[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(_[f]=s(t),r=new _,_[f]=null,r[h]=t):r=y(),void 0===e?r:i.f(r,e)}},8253:(t,e,r)=>{"use strict";var n=r(1815),s=r(4210),i=r(4376),o=r(457),a=r(4312),c=r(4230);e.f=n&&!s?Object.defineProperties:function(t,e){o(t);for(var r,n=a(e),s=c(e),u=s.length,l=0;u>l;)i.f(t,r=s[l++],n[r]);return t}},4376:(t,e,r)=>{"use strict";var n=r(1815),s=r(4632),i=r(4210),o=r(457),a=r(9722),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,f="enumerable",p="configurable",h="writable";e.f=n?i?function(t,e,r){if(o(t),e=a(e),o(r),"function"==typeof t&&"prototype"===e&&"value"in r&&h in r&&!r[h]){var n=l(t,e);n&&n[h]&&(t[e]=r.value,r={configurable:p in r?r[p]:n[p],enumerable:f in r?r[f]:n[f],writable:!1})}return u(t,e,r)}:u:function(t,e,r){if(o(t),e=a(e),o(r),s)try{return u(t,e,r)}catch(t){}if("get"in r||"set"in r)throw new c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},3335:(t,e,r)=>{"use strict";var n=r(1815),s=r(200),i=r(2886),o=r(7971),a=r(4312),c=r(9722),u=r(3941),l=r(4632),f=Object.getOwnPropertyDescriptor;e.f=n?f:function(t,e){if(t=a(t),e=c(e),l)try{return f(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},4243:(t,e,r)=>{"use strict";var n=r(4062),s=r(8573).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},2306:(t,e)=>{"use strict";e.f=Object.getOwnPropertySymbols},9814:(t,e,r)=>{"use strict";var n=r(3941),s=r(8563),i=r(8389),o=r(5430),a=r(8536),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(n(e,c))return e[c];var r=e.constructor;return s(r)&&e instanceof r?r.prototype:e instanceof u?l:null}},7367:(t,e,r)=>{"use strict";var n=r(8814);t.exports=n({}.isPrototypeOf)},4062:(t,e,r)=>{"use strict";var n=r(8814),s=r(3941),i=r(4312),o=r(3346).indexOf,a=r(3006),c=n([].push);t.exports=function(t,e){var r,n=i(t),u=0,l=[];for(r in n)!s(a,r)&&s(n,r)&&c(l,r);for(;e.length>u;)s(n,r=e[u++])&&(~o(l,r)||c(l,r));return l}},4230:(t,e,r)=>{"use strict";var n=r(4062),s=r(8573);t.exports=Object.keys||function(t){return n(t,s)}},2886:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},8597:(t,e,r)=>{"use strict";var n=r(2799),s=r(457),i=r(692);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return s(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},3024:(t,e,r)=>{"use strict";var n=r(6694),s=r(2327);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},2483:(t,e,r)=>{"use strict";var n=r(200),s=r(8563),i=r(8257),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw new o("Can't convert object to primitive value")}},5956:(t,e,r)=>{"use strict";var n=r(6589),s=r(8814),i=r(4243),o=r(2306),a=r(457),c=s([].concat);t.exports=n("Reflect","ownKeys")||function(t){var e=i.f(a(t)),r=o.f;return r?c(e,r(t)):e}},8422:t=>{"use strict";t.exports={}},3142:(t,e,r)=>{"use strict";var n=r(4376).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},8280:(t,e,r)=>{"use strict";var n=r(5157),s=TypeError;t.exports=function(t){if(n(t))throw new s("Can't call method on "+t);return t}},9468:(t,e,r)=>{"use strict";var n=r(6694),s=r(4376).f,i=r(1370),o=r(3941),a=r(3024),c=r(379)("toStringTag");t.exports=function(t,e,r,u){if(t){var l=r?t:t.prototype;o(l,c)||s(l,c,{configurable:!0,value:e}),u&&!n&&i(l,"toString",a)}}},5430:(t,e,r)=>{"use strict";var n=r(3771),s=r(9216),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6028:(t,e,r)=>{"use strict";var n=r(8426),s=r(8194),i="__core-js_shared__",o=n[i]||s(i,{});t.exports=o},3771:(t,e,r)=>{"use strict";var n=r(7736),s=r(6028);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.33.3",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.33.3/LICENSE",source:"https://github.com/zloirock/core-js"})},7415:(t,e,r)=>{"use strict";var n=r(8814),s=r(1061),i=r(4809),o=r(8280),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,f=i(o(e)),p=s(r),h=f.length;return p<0||p>=h?t?"":void 0:(n=c(f,p))<55296||n>56319||p+1===h||(l=c(f,p+1))<56320||l>57343?t?a(f,p):n:t?u(f,p,p+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},3772:(t,e,r)=>{"use strict";var n=r(5057),s=r(2998),i=r(8426).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol("symbol detection");return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},1940:(t,e,r)=>{"use strict";var n=r(1061),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},4312:(t,e,r)=>{"use strict";var n=r(6541),s=r(8280);t.exports=function(t){return n(s(t))}},1061:(t,e,r)=>{"use strict";var n=r(5703);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},9261:(t,e,r)=>{"use strict";var n=r(1061),s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},8389:(t,e,r)=>{"use strict";var n=r(8280),s=Object;t.exports=function(t){return s(n(t))}},6561:(t,e,r)=>{"use strict";var n=r(200),s=r(8257),i=r(6753),o=r(2833),a=r(2483),c=r(379),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var r,c=o(t,l);if(c){if(void 0===e&&(e="default"),r=n(c,t,e),!s(r)||i(r))return r;throw new u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},9722:(t,e,r)=>{"use strict";var n=r(6561),s=r(6753);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},6694:(t,e,r)=>{"use strict";var n={};n[r(379)("toStringTag")]="z",t.exports="[object z]"===String(n)},4809:(t,e,r)=>{"use strict";var n=r(2327),s=String;t.exports=function(t){if("Symbol"===n(t))throw new TypeError("Cannot convert a Symbol value to a string");return s(t)}},5787:t=>{"use strict";var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},9216:(t,e,r)=>{"use strict";var n=r(8814),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},9378:(t,e,r)=>{"use strict";var n=r(3772);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},4210:(t,e,r)=>{"use strict";var n=r(1815),s=r(2998);t.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},8268:(t,e,r)=>{"use strict";var n=r(8426),s=r(8563),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},379:(t,e,r)=>{"use strict";var n=r(8426),s=r(3771),i=r(3941),o=r(9216),a=r(3772),c=r(9378),u=n.Symbol,l=s("wks"),f=c?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:f("Symbol."+t)),l[t]}},9791:(t,e,r)=>{"use strict";var n=r(6589),s=r(3941),i=r(1370),o=r(7367),a=r(8597),c=r(1318),u=r(3142),l=r(9330),f=r(5517),p=r(1609),h=r(4151),_=r(1815),m=r(7736);t.exports=function(t,e,r,d){var y="stackTraceLimit",g=d?2:1,b=t.split("."),v=b[b.length-1],w=n.apply(null,b);if(w){var E=w.prototype;if(!m&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),j=e((function(t,e){var r=f(d?e:t,void 0),n=d?new w(t):new w;return void 0!==r&&i(n,"message",r),h(n,j,n.stack,2),this&&o(E,this)&&l(n,this,j),arguments.length>g&&p(n,arguments[g]),n}));if(j.prototype=E,"Error"!==v?a?a(j,x):c(j,x,{name:!0}):_&&y in w&&(u(j,w,y),u(j,w,"prepareStackTrace")),c(j,w),!m)try{E.name!==v&&i(E,"name",v),E.constructor=j}catch(t){}return j}}},1835:(t,e,r)=>{"use strict";var n=r(9011),s=r(6589),i=r(4877),o=r(2998),a=r(9791),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(t){return function(e,r){return i(t,this,arguments)}}),l,!0)})},1320:(t,e,r)=>{"use strict";var n=r(9011),s=r(7367),i=r(9814),o=r(8597),a=r(1318),c=r(1504),u=r(1370),l=r(7971),f=r(1609),p=r(4151),h=r(3490),_=r(5517),m=r(379)("toStringTag"),d=Error,y=[].push,g=function(t,e){var r,n=s(b,this);o?r=o(new d,n?i(this):b):(r=n?this:c(b),u(r,m,"Error")),void 0!==e&&u(r,"message",_(e)),p(r,g,r.stack,1),arguments.length>2&&f(r,arguments[2]);var a=[];return h(t,y,{that:a}),u(r,"errors",a),r};o?o(g,d):a(g,d,{name:!0});var b=g.prototype=c(d.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},733:(t,e,r)=>{"use strict";r(1320)},6449:(t,e,r)=>{"use strict";var n=r(4312),s=r(7171),i=r(2444),o=r(8551),a=r(4376).f,c=r(5994),u=r(9497),l=r(7736),f=r(1815),p="Array Iterator",h=o.set,_=o.getterFor(p);t.exports=c(Array,"Array",(function(t,e){h(this,{type:p,target:n(t),index:0,kind:e})}),(function(){var t=_(this),e=t.target,r=t.index++;if(!e||r>=e.length)return t.target=void 0,u(void 0,!0);switch(t.kind){case"keys":return u(r,!1);case"values":return u(e[r],!1)}return u([r,e[r]],!1)}),"values");var m=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&f&&"values"!==m.name)try{a(m,"name",{value:"values"})}catch(t){}},2777:(t,e,r)=>{"use strict";var n=r(9011),s=r(8426),i=r(4877),o=r(9791),a="WebAssembly",c=s[a],u=7!==new Error("e",{cause:7}).cause,l=function(t,e){var r={};r[t]=o(t,e,u),n({global:!0,constructor:!0,arity:1,forced:u},r)},f=function(t,e){if(c&&c[t]){var r={};r[t]=o(a+"."+t,e,u),n({target:a,stat:!0,constructor:!0,arity:1,forced:u},r)}};l("Error",(function(t){return function(e){return i(t,this,arguments)}})),l("EvalError",(function(t){return function(e){return i(t,this,arguments)}})),l("RangeError",(function(t){return function(e){return i(t,this,arguments)}})),l("ReferenceError",(function(t){return function(e){return i(t,this,arguments)}})),l("SyntaxError",(function(t){return function(e){return i(t,this,arguments)}})),l("TypeError",(function(t){return function(e){return i(t,this,arguments)}})),l("URIError",(function(t){return function(e){return i(t,this,arguments)}})),f("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),f("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),f("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},9383:(t,e,r)=>{"use strict";var n=r(7415).charAt,s=r(4809),i=r(8551),o=r(5994),a=r(9497),c="String Iterator",u=i.set,l=i.getterFor(c);o(String,"String",(function(t){u(this,{type:c,string:s(t),index:0})}),(function(){var t,e=l(this),r=e.string,s=e.index;return s>=r.length?a(void 0,!0):(t=n(r,s),e.index+=t.length,a(t,!1))}))},3584:(t,e,r)=>{"use strict";r(733)},6128:(t,e,r)=>{"use strict";r(6449);var n=r(8987),s=r(8426),i=r(2327),o=r(1370),a=r(2444),c=r(379)("toStringTag");for(var u in n){var l=s[u],f=l&&l.prototype;f&&i(f)!==c&&o(f,c,u),a[u]=a.Array}},7497:(t,e,r)=>{"use strict";r(3584);var n=r(3258);r(6128),t.exports=n}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(t,e)=>{for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},r.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var n=e.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!t;)t=n[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>ai,detectionRegExp:()=>oi,mediaTypes:()=>ii,namespace:()=>ui,parse:()=>ci});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>tr,includesClasses:()=>rr,includesSymbols:()=>er,isAnnotationElement:()=>He,isArrayElement:()=>We,isBooleanElement:()=>De,isCommentElement:()=>Xe,isElement:()=>$e,isLinkElement:()=>Ke,isMemberElement:()=>Ge,isNullElement:()=>Be,isNumberElement:()=>ze,isObjectElement:()=>Ue,isParseResultElement:()=>Je,isPrimitiveElement:()=>Qe,isRefElement:()=>Ze,isSourceMapElement:()=>Ye,isStringElement:()=>Ve});var e={};function s(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function i(t){return function e(r){return 0===arguments.length||s(r)?e:t.apply(this,arguments)}}function o(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return s(r)?e:i((function(e){return t(r,e)}));default:return s(r)&&s(n)?e:s(r)?i((function(e){return t(e,n)})):s(n)?i((function(e){return t(r,e)})):t(r,n)}}}function a(t){return function e(r,n,a){switch(arguments.length){case 0:return e;case 1:return s(r)?e:o((function(e,n){return t(r,e,n)}));case 2:return s(r)&&s(n)?e:s(r)?o((function(e,r){return t(e,n,r)})):s(n)?o((function(e,n){return t(r,e,n)})):i((function(e){return t(r,n,e)}));default:return s(r)&&s(n)&&s(a)?e:s(r)&&s(n)?o((function(e,r){return t(e,r,a)})):s(r)&&s(a)?o((function(e,r){return t(e,n,r)})):s(n)&&s(a)?o((function(e,n){return t(r,e,n)})):s(r)?i((function(e){return t(e,n,a)})):s(n)?i((function(e){return t(r,e,a)})):s(a)?i((function(e){return t(r,n,e)})):t(r,n,a)}}}r.r(e),r.d(e,{isInfoElement:()=>Bs,isMainElement:()=>zs,isPrincipleElement:()=>Ds,isRequirementElement:()=>Us,isRequirementLevelElement:()=>Ws,isScenarioElement:()=>Gs,isStandardElement:()=>Ks,isStandardIdentifierElement:()=>Zs});const c=o((function(t,e){return null==e||e!=e?t:e})),u=Number.isInteger||function(t){return t<<0===t};function l(t){return"[object String]"===Object.prototype.toString.call(t)}const f=o((function(t,e){var r=t<0?e.length+t:t;return l(e)?e.charAt(r):e[r]}));const p=o((function(t,e){if(null!=e)return u(t)?f(t,e):e[t]}));const h=a((function(t,e,r){return c(t,p(e,r))}));var _=o((function(t,e){for(var r={},n={},s=0,i=t.length;s=0&&"[object Array]"===Object.prototype.toString.call(t)};const g=i((function(t){return!!y(t)||!!t&&("object"==typeof t&&(!l(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var b="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function v(t,e,r){return function(n,s,i){if(g(i))return t(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(n,s,i,"fantasy-land/reduce");if(null!=i[b])return r(n,s,i[b]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return e(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function w(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function E(t,e,r,n){return r[n](t,e)}const x=v(d,E,w);function j(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!y(n)){for(var s=0;s=arguments.length)?u=e[a]:(u=arguments[i],i+=1),n[a]=u,s(u)?c=!0:o-=1,a+=1}return!c&&o<=0?r.apply(this,n):I(Math.max(0,o),N(t,n,r))}}const M=o((function(t,e){return 1===t?i(e):I(t,N(t,[],e))}));function T(t,e){return Object.prototype.hasOwnProperty.call(e,t)}var R=Object.prototype.toString;const C=function(){return"[object Arguments]"===R.call(arguments)?function(t){return"[object Arguments]"===R.call(t)}:function(t){return T("callee",t)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),q=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],L=function(){return arguments.propertyIsEnumerable("length")}(),$=function(t,e){for(var r=0;r=0;)T(e=q[r],t)&&!$(n,e)&&(n[n.length]=e),r-=1;return n})):i((function(t){return Object(t)!==t?[]:Object.keys(t)}));const z=V;const B=o(j(["fantasy-land/map","map"],k,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return M(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return d((function(r,n){return r[n]=t(e[n]),r}),{},z(e));default:return S(t,e)}})));const D=o((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:x((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&J(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&J(t.values(),e.values(),r.concat([t]),n.concat([e]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=z(t);if(c.length!==z(e).length)return!1;var u=r.concat([t]),l=n.concat([e]);for(a=c.length-1;a>=0;){var f=c[a];if(!T(f,e)||!Y(e[f],t[f],u,l))return!1;a-=1}return!0}const Q=o((function(t,e){return Y(t,e,[],[])}));const tt=i((function(t){return function(){return t}}));const et=tt(void 0);const rt=Q(et());const nt=G(rt);var st=r(7952);function it(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function ot(t,e,r){for(var n=0,s=r.length;n=0}function vt(t){return'"'+t.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var wt=function(t){return(t<10?"0":"")+t};const Et="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+wt(t.getUTCMonth()+1)+"-"+wt(t.getUTCDate())+"T"+wt(t.getUTCHours())+":"+wt(t.getUTCMinutes())+":"+wt(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function xt(t){return"[object Object]"===Object.prototype.toString.call(t)}var jt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=A,t.prototype["@@transducer/result"]=O,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function St(t){return function(e){return new jt(t,e)}}const At=o(j(["fantasy-land/filter","filter"],St,(function(t,e){return xt(e)?d((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},z(e)):function(t,e){for(var r=0,n=e.length,s=[];r":Pt(r,n)},n=function(t,e){return S((function(e){return vt(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+S(r,t).join(", ")+"))";case"[object Array]":return"["+S(r,t).concat(n(t,Ot((function(t){return/^\d+$/.test(t)}),z(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+r(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?r(NaN):vt(Et(t)))+")";case"[object Map]":return"new Map("+r(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+r(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+r(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+r(t.valueOf())+")":vt(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+n(t,z(t)).join(", ")+"}"}}const kt=i((function(t){return Pt(t,[])}));const It=o((function(t,e){return t.map((function(t){for(var r,n=e,s=0;se!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=kt(t),o=r(i,kt(e));return void 0!==o&&o===i?t:e}));const zt=o((function(t,e){return B(p(t),e)}));const Bt=i((function(t){return M(pt(Vt,0,zt("length",t)),(function(){for(var e=0,r=t.length;et.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(rt(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const ee=te;class re extends st.ON{constructor(t,e,r){super(t,e,r),this.element="sourceMap"}get positionStart(){return this.children.filter((t=>t.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((t=>t.classes.contains("position"))).get(1)}set position(t){if(null===t)return;const e=new st.ON([t.start.row,t.start.column,t.start.char]),r=new st.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const ne=re;class se extends st.lS{constructor(){super(),this.register("annotation",Jt),this.register("comment",Qt),this.register("parseResult",ee),this.register("sourceMap",ne)}}const ie=new se,oe=t=>{const e=new se;return Ht(t)&&e.use(t),e},ae=ie;const ce=M(1,dt(X,gt("String"))),ue=r.p+"23aac571c96605dc25219087ad291441.wasm",le=globalThis.fetch;Wt(le)&&(globalThis.fetch=(...t)=>ce(t[0])&&t[0].endsWith("tree-sitter.wasm")?le.apply(globalThis,[ue,mt(t)]):le.apply(globalThis,t));var fe=r(9794),pe=r(1427);const he=class extends pe{constructor(t,e,r){if(super(t,e,r),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:t}=r;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}};class _e extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(he,t)}constructor(t,e){if(super(t,e),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=e&&"object"==typeof e&&Object.hasOwn(e,"cause")&&!("cause"in this)){const{cause:t}=e;this.cause=t,t instanceof Error&&"stack"in t&&(this.stack=`${this.stack}\nCAUSE: ${t.stack}`)}}}const me=_e,de=r.p+"13ee407b2f9bd26c94370902ddeb5bcf.wasm";let ye=null,ge=null;const be=async t=>{if(null===ye&&null===ge)ge=fe.init().then((()=>fe.Language.load(de))).then((t=>{const e=new fe;return e.setLanguage(t),e})).finally((()=>{ge=null})),ye=await ge;else if(null===ye&&null!==ge)ye=await ge;else if(null===ye)throw new me("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return ye.parse(t)};const ve=class extends me{constructor(t,e){if(super(t,e),null!=e&&"object"==typeof e){const{cause:t,...r}=e;Object.assign(this,r)}}},we=(t,e,r)=>{const n=t[e];if(null!=n){if(!r&&"function"==typeof n)return n;const t=r?n.leave:n.enter;if("function"==typeof t)return t}else{const n=r?t.leave:t.enter;if(null!=n){if("function"==typeof n)return n;const t=n[e];if("function"==typeof t)return t}}return null},Ee={},xe=t=>null==t?void 0:t.type,je=t=>"string"==typeof xe(t),Se=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),Ae=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Ee,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=we,nodeTypeGetter:c=xe,nodePredicate:u=je,nodeCloneFn:l=Se,detectCycles:f=!0}={})=>{const p=r||{};let h,_,m=Array.isArray(t),d=[t],y=-1,g=[],b=t;const v=[],w=[];do{y+=1;const t=y===d.length;let r;const x=t&&0!==g.length;if(t){if(r=0===w.length?void 0:v.pop(),b=_,_=w.pop(),x)if(m){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=h.index,d=h.keys,g=h.edits,m=h.inArray,h=h.prev}else if(_!==i&&void 0!==_){if(r=m?y:d[y],b=_[r],b===i||void 0===b)continue;v.push(r)}let j;if(!Array.isArray(b)){if(!u(b))throw new ve(`Invalid AST Node:  ${String(b)}`,{node:b});if(f&&w.includes(b)){v.pop();continue}const i=a(e,c(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;j=i.call(e,b,r,_,v,w)}if(j===s)break;if(j===o){if(!t){v.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!t)){if(!u(j)){v.pop();continue}b=j}}var E;if(void 0===j&&x&&g.push([r,b]),!t)h={inArray:m,index:y,keys:d,edits:g,prev:h},m=Array.isArray(b),d=m?b:null!==(E=p[c(b)])&&void 0!==E?E:[],y=-1,g=[],_!==i&&void 0!==_&&w.push(_),_=b}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:t};Ae[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=Ee,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=we,nodeTypeGetter:c=xe,nodePredicate:u=je,nodeCloneFn:l=Se,detectCycles:f=!0}={})=>{const p=r||{};let h,_,m=Array.isArray(t),d=[t],y=-1,g=[],b=t;const v=[],w=[];do{y+=1;const t=y===d.length;let r;const x=t&&0!==g.length;if(t){if(r=0===w.length?void 0:v.pop(),b=_,_=w.pop(),x)if(m){b=b.slice();let t=0;for(const[e,r]of g){const n=e-t;r===i?(b.splice(n,1),t+=1):b[n]=r}}else{b=l(b);for(const[t,e]of g)b[t]=e}y=h.index,d=h.keys,g=h.edits,m=h.inArray,h=h.prev}else if(_!==i&&void 0!==_){if(r=m?y:d[y],b=_[r],b===i||void 0===b)continue;v.push(r)}let j;if(!Array.isArray(b)){if(!u(b))throw new ve(`Invalid AST Node: ${String(b)}`,{node:b});if(f&&w.includes(b)){v.pop();continue}const i=a(e,c(b),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;j=await i.call(e,b,r,_,v,w)}if(j===s)break;if(j===o){if(!t){v.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!t)){if(!u(j)){v.pop();continue}b=j}}var E;if(void 0===j&&x&&g.push([r,b]),!t)h={inArray:m,index:y,keys:d,edits:g,prev:h},m=Array.isArray(b),d=m?b:null!==(E=p[c(b)])&&void 0!==E?E:[],y=-1,g=[],_!==i&&void 0!==_&&w.push(_),_=b}while(void 0!==h);return 0!==g.length?g[g.length-1][1]:t};var Oe=r(6591);const Pe=function(){return!1};var ke=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=A,t.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},t.prototype["@@transducer/step"]=function(t,e){var r;return this.f(e)||(this.all=!1,t=(r=this.xf["@@transducer/step"](t,!1))&&r["@@transducer/reduced"]?r:{"@@transducer/value":r,"@@transducer/reduced":!0}),t},t}();function Ie(t){return function(e){return new ke(t,e)}}const Ne=o(j(["all"],Ie,(function(t,e){for(var r=0;r"object"==typeof e&&null!==e&&t in e&&"function"==typeof e[t],Re=t=>"object"==typeof t&&null!=t&&"_storedElement"in t&&"string"==typeof t._storedElement&&"_content"in t,Ce=(t,e)=>"object"==typeof e&&null!==e&&"primitive"in e&&("function"==typeof e.primitive&&e.primitive()===t),Fe=(t,e)=>"object"==typeof e&&null!==e&&"classes"in e&&(Array.isArray(e.classes)||e.classes instanceof st.ON)&&e.classes.includes(t),qe=(t,e)=>"object"==typeof e&&null!==e&&"element"in e&&e.element===t,Le=t=>t({hasMethod:Te,hasBasicElementProps:Re,primitiveEq:Ce,isElementType:qe,hasClass:Fe}),$e=Le((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof st.W_||t(r)&&e(void 0,r))),Ve=Le((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof st.RP||t(r)&&e("string",r))),ze=Le((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof st.VL||t(r)&&e("number",r))),Be=Le((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof st.zr||t(r)&&e("null",r))),De=Le((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof st.hh||t(r)&&e("boolean",r))),Ue=Le((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof st.Sb||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),We=Le((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof st.ON&&!(n instanceof st.Sb)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Ge=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof st.c6||t(n)&&e("member",n)&&r(void 0,n))),Ke=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof st.EA||t(n)&&e("link",n)&&r(void 0,n))),Ze=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof st.tK||t(n)&&e("ref",n)&&r(void 0,n))),He=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Jt||t(n)&&e("annotation",n)&&r("array",n))),Xe=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Qt||t(n)&&e("comment",n)&&r("string",n))),Je=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ee||t(n)&&e("parseResult",n)&&r("array",n))),Ye=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ne||t(n)&&e("sourceMap",n)&&r("array",n))),Qe=t=>qe("object",t)||qe("array",t)||qe("boolean",t)||qe("number",t)||qe("string",t)||qe("null",t)||qe("member",t),tr=t=>Ye(t.meta.get("sourceMap")),er=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!We(r)&&Ne(Me(r.toValue()),t)},rr=(t,e)=>0===t.length||Ne(Me(e.classes.toValue()),t);const nr=class extends ve{constructor(t,e){super(t,e),void 0!==e&&(this.value=e.value)}};const sr=class extends nr{};const ir=class extends nr{},or=(t,e={})=>{const{visited:r=new WeakMap}=e,n={...e,visited:r};if(r.has(t))return r.get(t);if(t instanceof st.KeyValuePair){const{key:e,value:s}=t,i=$e(e)?or(e,n):e,o=$e(s)?or(s,n):s,a=new st.KeyValuePair(i,o);return r.set(t,a),a}if(t instanceof st.rm){const e=t=>or(t,n),s=[...t].map(e),i=new st.rm(s);return r.set(t,i),i}if(t instanceof st.O4){const e=t=>or(t,n),s=[...t].map(e),i=new st.O4(s);return r.set(t,i),i}if($e(t)){const e=ur(t);if(r.set(t,e),t.content)if($e(t.content))e.content=or(t.content,n);else if(t.content instanceof st.KeyValuePair)e.content=or(t.content,n);else if(Array.isArray(t.content)){const r=t=>or(t,n);e.content=t.content.map(r)}else e.content=t.content;else e.content=t.content;return e}throw new sr("Value provided to cloneDeep function couldn't be cloned",{value:t})};or.safe=t=>{try{return or(t)}catch{return t}};const ar=t=>{const{key:e,value:r}=t;return new st.KeyValuePair(e,r)},cr=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=or(t.meta)),t.attributes.length>0&&(e._attributes=or(t.attributes)),$e(t.content)){const r=t.content;e.content=cr(r)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof st.KeyValuePair?e.content=ar(t.content):e.content=t.content;return e},ur=t=>{if(t instanceof st.KeyValuePair)return ar(t);if(t instanceof st.rm)return(t=>{const e=[...t];return new st.rm(e)})(t);if(t instanceof st.O4)return(t=>{const e=[...t];return new st.O4(e)})(t);if($e(t))return cr(t);throw new ir("Value provided to cloneShallow function couldn't be cloned",{value:t})};ur.safe=t=>{try{return ur(t)}catch{return t}};const lr=t=>Ue(t)?"ObjectElement":We(t)?"ArrayElement":Ge(t)?"MemberElement":Ve(t)?"StringElement":De(t)?"BooleanElement":ze(t)?"NumberElement":Be(t)?"NullElement":Ke(t)?"LinkElement":Ze(t)?"RefElement":void 0,fr=t=>$e(t)?ur(t):Se(t),pr=dt(lr,ce),hr={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},_r=(Oe({props:{result:[],predicate:Pe,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:t=this.predicate,returnOnTrue:e=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=t,this.returnOnTrue=e,this.returnOnFalse=r},methods:{enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}}),(t,e,{keyMap:r=hr,...n}={})=>Ae(t,e,{keyMap:r,nodeTypeGetter:lr,nodePredicate:pr,nodeCloneFn:fr,...n}));_r[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=hr,...n}={})=>Ae[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:lr,nodePredicate:pr,nodeCloneFn:fr,...n});const mr=a((function(t,e,r){var n,s={};for(n in r=r||{},e=e||{})T(n,e)&&(s[n]=T(n,r)?t(n,e[n],r[n]):e[n]);for(n in r)T(n,r)&&!T(n,s)&&(s[n]=r[n]);return s}));const dr=a((function t(e,r,n){return mr((function(r,n,s){return xt(n)&&xt(s)?t(e,n,s):e(r,n,s)}),r,n)}));const yr=o((function(t,e){return dr((function(t,e,r){return r}),t,e)}));const gr=_t(0,-1);const br=o((function(t,e){return t.apply(this,e)}));const vr=G(Wt);var wr=i((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():y(t)?[]:l(t)?"":xt(t)?{}:C(t)?function(){return arguments}():function(t){var e=Object.prototype.toString.call(t);return"[object Uint8ClampedArray]"===e||"[object Int8Array]"===e||"[object Uint8Array]"===e||"[object Int16Array]"===e||"[object Uint16Array]"===e||"[object Int32Array]"===e||"[object Uint32Array]"===e||"[object Float32Array]"===e||"[object Float64Array]"===e||"[object BigInt64Array]"===e||"[object BigUint64Array]"===e}(t)?t.constructor.from(""):void 0}));const Er=wr;const xr=i((function(t){return null!=t&&Q(t,Er(t))}));const jr=Ct(M(1,Wt(Array.isArray)?Array.isArray:dt(X,gt("Array"))),xr);const Sr=M(3,(function(t,e,r){var n=Nt(t,r),s=Nt(gr(t),r);if(!vr(n)&&!jr(t)){var i=at(n,s);return br(i,e)}})),Ar=()=>({predicates:{...t},namespace:ae}),Or={toolboxCreator:Ar,visitorOptions:{nodeTypeGetter:lr,exposeEdits:!0}},Pr=(t,e,r={})=>{if(0===e.length)return t;const n=yr(Or,r),{toolboxCreator:s,visitorOptions:i}=n,o=s(),a=e.map((t=>t(o))),c=((t,{visitFnGetter:e=we,nodeTypeGetter:r=xe,breakSymbol:n=Ee,deleteNodeSymbol:s=null,skipVisitingNodeSymbol:i=!1,exposeEdits:o=!1}={})=>{const a=Symbol("skip"),c=new Array(t.length).fill(a);return{enter(u,...l){let f=u,p=!1;for(let h=0;h{const n=new e(t);return Pr(n,r,{toolboxCreator:Ar,visitorOptions:{nodeTypeGetter:lr}})},Ir=t=>(e,r={})=>kr(e,{...r,Type:t});st.Sb.refract=Ir(st.Sb),st.ON.refract=Ir(st.ON),st.RP.refract=Ir(st.RP),st.hh.refract=Ir(st.hh),st.zr.refract=Ir(st.zr),st.VL.refract=Ir(st.VL),st.EA.refract=Ir(st.EA),st.tK.refract=Ir(st.tK),Jt.refract=Ir(Jt),Qt.refract=Ir(Qt),ee.refract=Ir(ee),ne.refract=Ir(ne);const Nr=class{hasError=!1;children=[];constructor(t){this.type=t.nodeType,this.startPosition=t.startPosition,this.endPosition=t.endPosition,this.startIndex=t.startIndex,this.endIndex=t.endIndex,this.text=t.nodeText,this.isNamed=t.nodeIsNamed,this.isMissing=t.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}setFieldName(t){return"function"==typeof t.currentFieldName?this.fieldName=t.currentFieldName():this.fieldName=t.currentFieldName,this}setHasError(t){return"function"==typeof t.currentNode?this.hasError=t.currentNode().hasError():this.hasError=t.currentNode.hasError(),this}pushChildren(...t){this.children.push(...t)}},Mr=Oe({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const t=(t,e)=>{if(!this.sourceMap)return;const r=new ne,n=(t=>{const e=new st.ON([t.startPosition.row,t.startPosition.column,t.startIndex]),r=new st.ON([t.endPosition.row,t.endPosition.column,t.endIndex]);return e.classes.push("position"),r.classes.push("position"),[e,r]})(t);if(null!==n){const[t,e]=n;r.push(t),r.push(e)}r.astNode=t,e.meta.set("sourceMap",r)};this.enter=function(e){if(e instanceof Nr&&!e.isNamed&&e.isMissing){const r=e.type||e.text,n=new Jt(`(Missing ${r})`);n.classes.push("warning"),t(e,n),this.annotations.push(n)}return null},this.document=function(e){const r=new ee;return r._content=e.children,t(e,r),r},this.ParseResultElement={leave(t){const e=t.findElements(Qe);if(e.length>0){e[0].classes.push("result")}this.annotations.forEach((e=>{t.push(e)})),this.annotations=[]}},this.object=function(e){const r=new st.Sb;return r._content=e.children,t(e,r),r},this.array=function(e){const r=new st.ON;return r._content=e.children,t(e,r),r},this.pair=function(e){const r=new st.c6;return r.content.key=e.keyNode,r.content.value=e.valueNode,t(e,r),e.children.length>3&&e.children.filter((t=>"ERROR"===t.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),r},this.string=function(e){const r=new st.RP(JSON.parse(e.text));return t(e,r),r},this.number=function(e){const r=new st.VL(Number(e.text));return t(e,r),r},this.null=function(e){const r=new st.zr;return t(e,r),r},this.true=function(e){const r=new st.hh(!0);return t(e,r),r},this.false=function(e){const r=new st.hh(!1);return t(e,r),r},this.ERROR=function(e,r,n,s){const i=!e.hasError,o=e.text,a=new Jt(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),t(e,a),0===s.length){const t=new ee;return t.push(a),t}return this.annotations.push(a),null}}}),Tr=Mr;class Rr{constructor(t){this.cursor=t}document(){return new Nr(this.cursor)}object(){return new Nr(this.cursor).setFieldName(this.cursor)}array(){return new Nr(this.cursor).setFieldName(this.cursor)}pair(){return new Nr(this.cursor)}string(){return new Nr(this.cursor).setFieldName(this.cursor)}number(){return new Nr(this.cursor).setFieldName(this.cursor)}null(){return new Nr(this.cursor).setFieldName(this.cursor)}true(){return new Nr(this.cursor).setFieldName(this.cursor)}false(){return new Nr(this.cursor).setFieldName(this.cursor)}ERROR(){return new Nr(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Nr(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Rr(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=new Rr(this.cursor);t.pushChildren(...e)}this.cursor.gotoParent()}yield t}}const Cr=Rr,Fr={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...hr},qr=t=>Je(t)?"ParseResultElement":$e(t)?lr(t):xe(t),Lr=t=>$e(t)||je(t),$r=(t,{sourceMap:e=!1}={})=>{const r=Tr(),n=t.walk(),s=new Cr(n),[i]=Array.from(s);return Ae(i,r,{keyMap:Fr,nodeTypeGetter:qr,nodePredicate:Lr,state:{sourceMap:e}})},Vr=Oe({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:t=null,column:e=null,char:r=null}={}){this.row=t,this.column=e,this.char=r}}),zr=Oe({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),Br=Oe({props:{type:null,position:null,children:[]},init({children:t=[],position:e=null,isMissing:r=!1}={},{stamp:n={}}){this.type=n.type,this.isMissing=r,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const r=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,r)})),t}}}),Dr=Oe(Br,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}});const Ur=f(0),Wr=Oe(Br),Gr=Oe(Wr,{statics:{type:"document"},methods:{get child(){return Ur(this.children)}}}),Kr=Oe(Br,{statics:{type:"parseResult"},methods:{get rootNode(){return Ur(this.children)}}}),Zr=(t,e)=>(null==e?void 0:e.type)===t,Hr=(Zr.bind(void 0,"literal"),Zr.bind(void 0,"position"),Zr.bind(void 0,"point"),Zr.bind(void 0,"parseResult"),Zr.bind(void 0,"document"),Zr.bind(void 0,"string")),Xr=Zr.bind(void 0,"false"),Jr=Zr.bind(void 0,"true"),Yr=Zr.bind(void 0,"null"),Qr=Zr.bind(void 0,"number"),tn=Zr.bind(void 0,"array"),en=Zr.bind(void 0,"object"),rn=Zr.bind(void 0,"stringContent"),nn=Zr.bind(void 0,"escapeSequence"),sn=Zr.bind(void 0,"property"),on=Zr.bind(void 0,"key"),an=Oe(Wr,{statics:{type:"object"},methods:{get properties(){return this.children.filter(sn)}}}),cn=Oe(Wr,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((t=>rn(t)||nn(t))).reduce(((t,e)=>t+e.value),"")}}}),un=Oe(cn,{statics:{type:"key"}}),ln=Oe(Wr,{statics:{type:"property"},methods:{get key(){return this.children.find(on)},get value(){return this.children.find((t=>Xr(t)||Jr(t)||Yr(t)||Qr(t)||Hr(t)||tn(t)||en(t)))}}}),fn=Oe(Wr,{statics:{type:"array"},methods:{get items(){return this.children.filter((t=>Xr(t)||Jr(t)||Yr(t)||Qr(t)||Hr(t)||tn(t)||en))}}}),pn=Oe(Wr,{statics:{type:"value"},props:{value:null},init({value:t=null}={}){this.value=t}}),hn=Oe(pn,{statics:{type:"stringContent"}}),_n=Oe(pn,{statics:{type:"number"}}),mn=Oe(pn,{statics:{type:"null"}}),dn=Oe(pn,{statics:{type:"true"}}),yn=Oe(pn,{statics:{type:"false"}}),gn=Oe(Br,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}}),bn={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},vn=Oe({init(){const t=t=>{const e=Vr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),r=Vr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return zr({start:e,end:r})};this.enter=function(e){if(e instanceof Nr&&!e.isNamed){const r=t(e),n=e.type||e.text,{isMissing:s}=e;return Dr({value:n,position:r,isMissing:s})}},this.document={enter(e){const r=t(e);return Gr({children:e.children,position:r,isMissing:e.isMissing})},leave:t=>Kr({children:[t]})},this.object=function(e){const r=t(e);return an({children:e.children,position:r,isMissing:e.isMissing})},this.pair=function(e){const r=t(e),n=e.children.slice(1),{keyNode:s}=e,i=un({children:(null==s?void 0:s.children)||[],position:null!=s?t(s):null,isMissing:null!=s&&s.isMissing});return ln({children:[i,...n],position:r,isMissing:e.isMissing})},this.array=function(e){const r=t(e);return fn({children:e.children,position:r,isMissing:e.isMissing})},this.string=function(e){const r=t(e),n=hn({value:JSON.parse(e.text)});return cn({children:[n],position:r,isMissing:e.isMissing})},this.number=function(e){const r=t(e),n=e.text;return _n({value:n,position:r,isMissing:e.isMissing})},this.null=function(e){const r=t(e),n=e.text;return mn({value:n,position:r,isMissing:e.isMissing})},this.true=function(e){const r=t(e),n=e.text;return dn({value:n,position:r,isMissing:e.isMissing})},this.false=function(e){const r=t(e),n=e.text;return yn({value:n,position:r,isMissing:e.isMissing})},this.ERROR=function(e,r,n,s){const i=t(e),o=gn({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?Kr({children:[o]}):o}}}),wn=vn,En={[Kr.type]:["children"],[Gr.type]:["children"],[an.type]:["children"],[ln.type]:["children"],[fn.type]:["children"],[gn.type]:["children"],...hr},xn=t=>Je(t)?"ParseResultElement":$e(t)?lr(t):xe(t),jn=t=>$e(t)||je(t),Sn=Oe({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const t=(t,e)=>{if(!this.sourceMap)return;const r=new ne;r.position=t.position,r.astNode=t,e.meta.set("sourceMap",r)};this.document=function(t){const e=new ee;return e._content=t.children,e},this.ParseResultElement={leave(t){const e=t.findElements(Qe);if(e.length>0){e[0].classes.push("result")}this.annotations.forEach((e=>{t.push(e)})),this.annotations=[]}},this.object=function(e){const r=new st.Sb;return r._content=e.children,t(e,r),r},this.property=function(e){const r=new st.c6;return r.content.key=e.key,r.content.value=e.value,t(e,r),e.children.length>3&&e.children.filter((t=>"error"===t.type)).forEach((t=>{this.error(t,e,[],[e])})),r},this.key=function(e){const r=new st.RP(e.value);return t(e,r),r},this.array=function(e){const r=new st.ON;return r._content=e.children,t(e,r),r},this.string=function(e){const r=new st.RP(e.value);return t(e,r),r},this.number=function(e){const r=new st.VL(Number(e.value));return t(e,r),r},this.null=function(e){const r=new st.zr;return t(e,r),r},this.true=function(e){const r=new st.hh(!0);return t(e,r),r},this.false=function(e){const r=new st.hh(!1);return t(e,r),r},this.literal=function(e){if(e.isMissing){const r=`(Missing ${e.value})`,n=new Jt(r);n.classes.push("warning"),t(e,n),this.annotations.push(n)}return null},this.error=function(e,r,n,s){const i=e.isUnexpected?`(Unexpected ${e.value})`:`(Error ${e.value})`,o=new Jt(i);if(o.classes.push("error"),t(e,o),0===s.length){const t=new ee;return t.push(o),t}return this.annotations.push(o),null}}}),An=Sn,On=(t,{sourceMap:e=!1}={})=>{const r=t.walk(),n=new Cr(r),[s]=Array.from(n),i=wn(),o=An(),a=Ae(s,i,{keyMap:bn,state:{sourceMap:e}});return Ae(a.rootNode,o,{keyMap:En,nodeTypeGetter:xn,nodePredicate:jn,state:{sourceMap:e}})},Pn=(oe(),/(?^\s*true\s*$)|(?^\s*false\s*$)|(?^\s*null\s*$)|(?^\s*\d+\s*$)|(?^\s*{\s*)|(?^\s*\[\s*)|(?^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);const kn=o((function(t,e){return d((function(r,n){return r[n]=t(e[n],n,e),r}),{},z(e))}));const In=i((function(t){return null==t}));const Nn=o((function(t,e){if(0===t.length||In(e))return!1;for(var r=e,n=0;n{const r=c(t,e);return kn((t=>{if(Ht(t)&&Tn("$ref",t)&&Rn(ce,"$ref",t)){const e=Nt(["$ref"],t),n=Bn("#/",e);return Nt(n.split("/"),r)}return Ht(t)?Dn(t,r):t}),t)},Un=Oe({props:{element:null},methods:{copyMetaAndAttributes(t,e){tr(t)&&e.meta.set("sourceMap",t.meta.get("sourceMap"))}}}),Wn=Oe(Un,{methods:{enter(t){return this.element=or(t),Ee}}});const Gn=function(){return!0},Kn=t=>"string"==typeof(null==t?void 0:t.type)?t.type:lr(t),Zn={EphemeralObject:["content"],EphemeralArray:["content"],...hr},Hn=(t,e,{keyMap:r=Zn,...n}={})=>_r(t,e,{keyMap:r,nodeTypeGetter:Kn,nodePredicate:Gn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Hn[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=Zn,...r}={})=>_r[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:Kn,nodePredicate:Gn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Xn=class{type="EphemeralArray";content=[];reference=void 0;constructor(t){this.content=t,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Jn=class{type="EphemeralObject";content=[];reference=void 0;constructor(t){this.content=t,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Yn=Oe.init((function(){const t=new WeakMap;this.BooleanElement=function(t){return t.toValue()},this.NumberElement=function(t){return t.toValue()},this.StringElement=function(t){return t.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(e){if(t.has(e))return t.get(e).toReference();const r=new Jn(e.content);return t.set(e,r),r}},this.EphemeralObject={leave:t=>t.toObject()},this.MemberElement={enter:t=>[t.key,t.value]},this.ArrayElement={enter(e){if(t.has(e))return t.get(e).toReference();const r=new Xn(e.content);return t.set(e,r),r}},this.EphemeralArray={leave:t=>t.toArray()}})),Qn=t=>$e(t)?Ve(t)||ze(t)||De(t)||Be(t)?t.toValue():Hn(t,Yn()):t;const ts=o((function(t,e){for(var r={},n=0;n{if($e(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},rs={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...hr},ns=Oe(Un,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:t=this.specObj}){this.specObj=t},methods:{retrievePassingOptions(){return ts(this.passingOptionsNames,this)},retrieveFixedFields(t){const e=Nt(["visitors",...t,"fixedFields"],this.specObj);return"object"==typeof e&&null!==e?Object.keys(e):[]},retrieveVisitor(t){return Mt(Wt,["visitors",...t],this.specObj)?Nt(["visitors",...t],this.specObj):Nt(["visitors",...t,"$visitor"],this.specObj)},retrieveVisitorInstance(t,e={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(t)({...r,...e})},toRefractedElement(t,e,r={}){const n=this.retrieveVisitorInstance(t,r),s=Object.getPrototypeOf(n);return rt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?or(e):(_r(e,n,{keyMap:rs,...r,nodeTypeGetter:es}),n.element)}}});class ss extends st.RP{constructor(t,e,r){super(t,e,r),this.element="requirementLevel"}}const is=ss,os=Oe(ns,Wn,{methods:{StringElement(t){const e=new is(Qn(t));return this.copyMetaAndAttributes(t,e),this.element=e,Ee}}});class as extends st.ON{constructor(t,e,r){super(t,e,r),this.element="standardIdentifier"}}const cs=as,us=Oe(ns,Wn,{init(){this.element=new cs},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","StandardIdentifier"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),Ee}}});class ls extends st.Sb{constructor(t,e,r){super(t,e,r),this.element="requirement"}get subject(){return this.get("subject")}set subject(t){this.set("subject",t)}get level(){return this.get("level")}set level(t){this.set("level",t)}get values(){return this.get("values")}set values(t){this.set("values",t)}get follows(){return this.get("follows")}set follows(t){this.set("follows",t)}}const fs=ls;const ps=Oe(ns,{props:{specPath:tt(et()),ignoredFields:[]},init({specPath:t=this.specPath,ignoredFields:e=this.ignoredFields}={}){this.specPath=t,this.ignoredFields=e},methods:{ObjectElement(t){const e=this.specPath(t),r=this.retrieveFixedFields(e);return t.forEach(((t,n,s)=>{if(Ve(n)&&r.includes(Qn(n))&&!this.ignoredFields.includes(Qn(n))){const r=this.toRefractedElement([...e,"fixedFields",Qn(n)],t),i=new st.c6(or(n),r);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(Qn(n))||this.element.content.push(or(s))})),this.copyMetaAndAttributes(t,this.element),Ee}}}),hs=Oe(ps,Wn,{props:{specPath:tt(["document","objects","Requirement"])},init(){this.element=new fs}}),_s=Wn,ms=Wn;class ds extends st.Sb{constructor(t,e,r){super(t,e,r),this.element="scenario"}get description(){return this.get("description")}set description(t){this.set("description",t)}get when(){return this.get("when")}set when(t){this.set("when",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}}const ys=ds,gs=Oe(ps,Wn,{props:{specPath:tt(["document","objects","Scenario"])},init(){this.element=new ys}}),bs=Wn,vs=Oe(ns,Wn,{init(){this.element=new st.ON,this.element.classes.push("scenario-then")},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Requirement"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),Ee}}});class ws extends st.Sb{constructor(t,e,r){super(t,e,r),this.element="standard"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get iri(){return this.get("iri")}set iri(t){this.set("iri",t)}get level(){return this.get("level")}set level(t){this.set("level",t)}}const Es=ws,xs=Oe(ps,Wn,{props:{specPath:tt(["document","objects","Standard"])},init(){this.element=new Es}}),js=Wn,Ss=Wn,As=Wn;class Os extends st.Sb{constructor(t,e,r){super(t,e,r),this.element="principle"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get iri(){return this.get("iri")}set iri(t){this.set("iri",t)}get level(){return this.get("level")}set level(t){this.set("level",t)}}const Ps=Os,ks=Oe(ps,Wn,{props:{specPath:tt(["document","objects","Principle"])},init(){this.element=new Ps}}),Is=Wn,Ns=Wn,Ms=Wn;class Ts extends st.Sb{constructor(t,e,r){super(t,e,r),this.element="info"}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const Rs=Ts,Cs=Oe(ps,Wn,{props:{specPath:tt(["document","objects","Info"])},init(){this.element=new Rs}}),Fs=Wn,qs=Wn;class Ls extends st.Sb{constructor(t,e,r){super(t,e,r),this.element="main",this.classes.push("api")}get version(){return this.get("version")}set version(t){this.set("version",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get principles(){return this.get("principles")}set principles(t){this.set("principles",t)}get standards(){return this.get("standards")}set standards(t){this.set("standards",t)}get scenarios(){return this.get("scenarios")}set scenarios(t){this.set("scenarios",t)}}const $s=Ls,Vs={visitors:{value:Wn,document:{objects:{Main:{$visitor:Oe(ps,Wn,{props:{specPath:tt(["document","objects","Main"])},init(){this.element=new $s}}),fixedFields:{version:Wn,info:{$ref:"#/visitors/document/objects/Info"},principles:Oe(ns,Wn,{init(){this.element=new st.ON,this.element.classes.push("main-principles")},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Principle"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),Ee}}}),standards:Oe(ns,Wn,{init(){this.element=new st.ON,this.element.classes.push("main-standards")},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Standard"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),Ee}}}),scenarios:Oe(ns,Wn,{init(){this.element=new st.ON,this.element.classes.push("main-scenarios")},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","Scenario"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),Ee}}})}},Info:{$visitor:Cs,fixedFields:{title:Fs,description:qs}},Principle:{$visitor:ks,fixedFields:{name:Is,description:Ns,iri:Ms,level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:xs,fixedFields:{name:js,description:Ss,level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:As}},Scenario:{$visitor:gs,fixedFields:{description:bs,when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:vs}},Requirement:{$visitor:hs,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:_s,follows:ms}},StandardIdentifier:us,RequirementLevel:os}}}},zs=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $s||t(n)&&e("main",n)&&r("object",n))),Bs=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Rs||t(n)&&e("info",n)&&r("object",n))),Ds=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ps||t(n)&&e("principle",n)&&r("object",n))),Us=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof fs||t(n)&&e("requirement",n)&&r("object",n))),Ws=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof is||t(n)&&e("requirementLevel",n)&&r("string",n))),Gs=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ys||t(n)&&e("scenario",n)&&r("object",n))),Ks=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Es||t(n)&&e("standard",n)&&r("object",n))),Zs=Le((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof cs||t(n)&&e("standardIdentifier",n)&&r("array",n))),Hs={namespace:t=>{const{base:e}=t;return e.register("info",Rs),e.register("main",$s),e.register("principle",Ps),e.register("requirement",fs),e.register("requirementLevel",is),e.register("scenario",ys),e.register("standard",Es),e.register("standardIdentifier",cs),e}},Xs=()=>{const t=oe(Hs);return{predicates:{...e,isStringElement:Ve},namespace:t}},Js=(t,{specPath:e=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,st.Qc)(t),s=Dn(Vs),i=Sr(e,[],s);return _r(n,i,{state:{specObj:s}}),Pr(i.element,r,{toolboxCreator:Xs,visitorOptions:{keyMap:rs,nodeTypeGetter:es}})},Ys=t=>(e,r={})=>Js(e,{...r,specPath:t});$s.refract=Ys(["visitors","document","objects","Main","$visitor"]),Rs.refract=Ys(["visitors","document","objects","Info","$visitor"]),Ps.refract=Ys(["visitors","document","objects","Principle","$visitor"]),fs.refract=Ys(["visitors","document","objects","Requirement","$visitor"]),is.refract=Ys(["visitors","document","objects","RequirementLevel","$visitor"]),ys.refract=Ys(["visitors","document","objects","Scenario","$visitor"]),Es.refract=Ys(["visitors","document","objects","Standards","$visitor"]),cs.refract=Ys(["visitors","document","objects","StandardIdentifier","$visitor"]);const Qs=f(-1);const ti=class extends me{};const ei=class extends ti{};const ri=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new ei("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ei("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ei("latest method in MediaTypes class is not yet implemented.")}};class ni extends ri{filterByFormat(t="generic"){const e="generic"===t?"apidesignsystems;version":t;return this.filter((t=>t.includes(e)))}findBy(t="2021-05-07",e="generic"){const r="generic"===e?`apidesignsystems;version=${t}`:`apidesignsystems+${e};version=${t}`;return this.find((t=>t.includes(r)))||this.unknownMediaType}latest(t="generic"){return Qs(this.filterByFormat(t))}}const si=new ni("application/vnd.aai.apidesignsystems;version=2021-05-07","application/vnd.aai.apidesignsystems+json;version=2021-05-07","application/vnd.aai.apidesignsystems+yaml;version=2021-05-07"),ii=new ni(...si.filterByFormat("generic"),...si.filterByFormat("json")),oi=/"version"\s*:\s*"(?2021-05-07)"/,ai=async t=>oi.test(t)&&await(async t=>{if(!Pn.test(t))return!1;try{return"ERROR"!==(await be(t)).rootNode.type}catch{return!1}})(t),ci=async(t,e={})=>{const r=h({},"refractorOpts",e),n=m(["refractorOpts"],e),s=await(async(t,{sourceMap:e=!1,syntacticAnalysis:r="direct"}={})=>{const n=await be(t);let s;return s="indirect"===r?On(n,{sourceMap:e}):$r(n,{sourceMap:e}),s})(t,n),{result:i}=s;if(nt(i)){const t=$s.refract(i,r);t.classes.push("result"),s.replaceResult(t)}return s},ui=oe(Hs)})(),n})()));