@swagger-api/apidom-parser-adapter-api-design-systems-yaml 0.76.2 → 0.77.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsYaml=e():t.apidomParserAdapterApiDesignSystemsYaml=e()}(self,(()=>(()=>{var t={42:(t,e,r)=>{var n=r(5846);t.exports=n},6791:(t,e,r)=>{r(4339),r(4242),r(4016),r(8939),r(5454);var n=r(7545);t.exports=n.AggregateError},6762:(t,e,r)=>{t.exports=r(3028)},3028:(t,e,r)=>{r(2752);var n=r(42);t.exports=n},6235:(t,e,r)=>{var n=r(6447),s=r(9288),i=TypeError;t.exports=function(t){if(n(t))return t;throw i(s(t)+" is not a function")}},7757:(t,e,r)=>{var n=r(6447),s=String,i=TypeError;t.exports=function(t){if("object"==typeof t||n(t))return t;throw i("Can't set "+s(t)+" as a prototype")}},7423:t=>{t.exports=function(){}},1138:(t,e,r)=>{var n=r(5744),s=String,i=TypeError;t.exports=function(t){if(n(t))return t;throw i(s(t)+" is not an object")}},8180:(t,e,r)=>{var n=r(101),s=r(7739),i=r(4104),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)}},9272:(t,e,r)=>{var n=r(4120),s=n({}.toString),i=n("".slice);t.exports=function(t){return i(s(t),8,-1)}},4696:(t,e,r)=>{var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("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}},7987:(t,e,r)=>{var n=r(4500),s=r(3011),i=r(5141),o=r(2760);t.exports=function(t,e,r){for(var a=s(e),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];n(t,p)||r&&n(r,p)||c(t,p,u(e,p))}}},4635:(t,e,r)=>{var n=r(6192);t.exports=!n((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7271:t=>{t.exports=function(t,e){return{value:t,done:e}}},8711:(t,e,r)=>{var n=r(69),s=r(2760),i=r(774);t.exports=n?function(t,e,r){return s.f(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},774:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9362:(t,e,r)=>{var n=r(8711);t.exports=function(t,e,r,s){return s&&s.enumerable?t[e]=r:n(t,e,r),t}},5098:(t,e,r)=>{var n=r(8576),s=Object.defineProperty;t.exports=function(t,e){try{s(n,t,{value:e,configurable:!0,writable:!0})}catch(r){n[t]=e}return e}},69:(t,e,r)=>{var n=r(6192);t.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:t=>{var e="object"==typeof document&&document.all,r=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:r}},7449:(t,e,r)=>{var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},7365:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(t,e,r)=>{var n,s,i=r(8576),o=r(8989),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},2952:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(t,e,r)=>{var n=r(4120),s=Error,i=n("".replace),o=String(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}},8266:(t,e,r)=>{var n=r(8711),s=r(4503),i=r(274),o=Error.captureStackTrace;t.exports=function(t,e,r,a){i&&(o?o(t,e):n(t,"stack",s(r,a)))}},274:(t,e,r)=>{var n=r(6192),s=r(774);t.exports=!n((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},3085:(t,e,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),a=r(5141).f,c=r(9245),u=r(7545),l=r(8043),p=r(8711),f=r(4500),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,_,d,m,y,g,v,b,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?n:x?n[w]:(n[w]||{}).prototype,j=E?u:u[w]||p(u,w,{})[w],O=j.prototype;for(d in e)s=!(r=c(E?d:w+(x?".":"#")+d,t.forced))&&A&&f(A,d),y=j[d],s&&(g=t.dontCallGetSet?(b=a(A,d))&&b.value:A[d]),m=s&&g?g:e[d],s&&typeof y==typeof m||(v=t.bind&&s?l(m,n):t.wrap&&s?h(m):S&&o(m)?i(m):m,(t.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,d,v),S&&(f(u,_=w+"Prototype")||p(u,_,{}),p(u[_],d,m),t.real&&O&&(r||!O[d])&&p(O,d,m)))}},6192:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},6298:(t,e,r)=>{var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(t,e,r)=>{var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},2784:(t,e,r)=>{var n=r(6192);t.exports=!n((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8922:(t,e,r)=>{var n=r(2784),s=Function.prototype.call;t.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(t,e,r)=>{var n=r(69),s=r(4500),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}},6419:(t,e,r)=>{var n=r(4120),s=r(6235);t.exports=function(t,e,r){try{return n(s(Object.getOwnPropertyDescriptor(t,e)[r]))}catch(t){}}},4914:(t,e,r)=>{var n=r(9272),s=r(4120);t.exports=function(t){if("Function"===n(t))return s(t)}},4120:(t,e,r)=>{var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);t.exports=n?o:function(t){return function(){return i.apply(t,arguments)}}},150:(t,e,r)=>{var n=r(7545),s=r(8576),i=r(6447),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(n[t])||o(s[t]):n[t]&&n[t][e]||s[t]&&s[t][e]}},8703:(t,e,r)=>{var n=r(4696),s=r(5037),i=r(5646),o=r(7771),a=r(8182)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[n(t)]}},1669:(t,e,r)=>{var n=r(8922),s=r(6235),i=r(1138),o=r(9288),a=r(8703),c=TypeError;t.exports=function(t,e){var r=arguments.length<2?a(t):e;if(s(r))return i(n(r,t));throw c(o(t)+" is not iterable")}},5037:(t,e,r)=>{var n=r(6235),s=r(5646);t.exports=function(t,e){var r=t[e];return s(r)?void 0:n(r)}},8576:function(t,e,r){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(t,e,r)=>{var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},4535:t=>{t.exports={}},7403:(t,e,r)=>{var n=r(150);t.exports=n("document","documentElement")},188:(t,e,r)=>{var n=r(69),s=r(6192),i=r(7449);t.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(t,e,r)=>{var n=r(4120),s=r(6192),i=r(9272),o=Object,a=n("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):o(t)}:o},2643:(t,e,r)=>{var n=r(6447),s=r(5744),i=r(4469);t.exports=function(t,e,r){var o,a;return i&&n(o=e.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(t,a),t}},273:(t,e,r)=>{var n=r(5744),s=r(8711);t.exports=function(t,e){n(e)&&"cause"in e&&s(t,"cause",e.cause)}},3326:(t,e,r)=>{var n,s,i,o=r(5278),a=r(8576),c=r(5744),u=r(8711),l=r(4500),p=r(6434),f=r(9766),h=r(4535),_="Object already initialized",d=a.TypeError,m=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,n=function(t,e){if(y.has(t))throw d(_);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=f("state");h[g]=!0,n=function(t,e){if(l(t,g))throw d(_);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 d("Incompatible receiver, "+t+" required");return r}}}},6109:(t,e,r)=>{var n=r(8182),s=r(7771),i=n("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},6447:(t,e,r)=>{var n=r(8382),s=n.all;t.exports=n.IS_HTMLDDA?function(t){return"function"==typeof t||t===s}:function(t){return"function"==typeof t}},9245:(t,e,r)=>{var n=r(6192),s=r(6447),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},5646:t=>{t.exports=function(t){return null==t}},5744:(t,e,r)=>{var n=r(6447),s=r(8382),i=s.all;t.exports=s.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:n(t)||t===i}:function(t){return"object"==typeof t?null!==t:n(t)}},5546:t=>{t.exports=!0},3236:(t,e,r)=>{var n=r(150),s=r(6447),i=r(8902),o=r(615),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=n("Symbol");return s(e)&&i(e.prototype,a(t))}},3442:(t,e,r)=>{var n=r(8043),s=r(8922),i=r(1138),o=r(9288),a=r(6109),c=r(4104),u=r(8902),l=r(1669),p=r(8703),f=r(6639),h=TypeError,_=function(t,e){this.stopped=t,this.result=e},d=_.prototype;t.exports=function(t,e,r){var m,y,g,v,b,w,E,x=r&&r.that,S=!(!r||!r.AS_ENTRIES),A=!(!r||!r.IS_RECORD),j=!(!r||!r.IS_ITERATOR),O=!(!r||!r.INTERRUPTED),P=n(e,x),k=function(t){return m&&f(m,"normal",t),new _(!0,t)},N=function(t){return S?(i(t),O?P(t[0],t[1],k):P(t[0],t[1])):O?P(t,k):P(t)};if(A)m=t.iterator;else if(j)m=t;else{if(!(y=p(t)))throw h(o(t)+" is not iterable");if(a(y)){for(g=0,v=c(t);v>g;g++)if((b=N(t[g]))&&u(d,b))return b;return new _(!1)}m=l(t,y)}for(w=A?t.next:m.next;!(E=s(w,m)).done;){try{b=N(E.value)}catch(t){f(m,"throw",t)}if("object"==typeof b&&b&&u(d,b))return b}return new _(!1)}},6639:(t,e,r)=>{var n=r(8922),s=r(1138),i=r(5037);t.exports=function(t,e,r){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw r;return r}o=n(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw r;if(a)throw o;return s(o),r}},5695:(t,e,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),a=r(7771),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}},5297:(t,e,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),a=r(6447),c=r(5695),u=r(9341),l=r(4469),p=r(1284),f=r(8711),h=r(9362),_=r(8182),d=r(7771),m=r(4413),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=_("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,r,o,_,m,j){c(r,e,o);var O,P,k,N=function(t){if(t===_&&R)return R;if(!b&&t in T)return T[t];switch(t){case E:case x:case S:return function(){return new r(this,t)}}return function(){return new r(this)}},I=e+" Iterator",M=!1,T=t.prototype,C=T[w]||T["@@iterator"]||_&&T[_],R=!b&&C||N(_),F="Array"==e&&T.entries||C;if(F&&(O=u(F.call(new t)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||h(O,w,A)),p(O,I,!0,!0),i&&(d[I]=A)),y&&_==x&&C&&C.name!==x&&(!i&&g?f(T,"name",x):(M=!0,R=function(){return s(C,this)})),_)if(P={values:N(x),keys:m?R:N(E),entries:N(S)},j)for(k in P)(b||M||!(k in T))&&h(T,k,P[k]);else n({target:e,proto:!0,forced:b||M},P);return i&&!j||T[w]===R||h(T,w,R,{name:_}),d[e]=R,P}},4413:(t,e,r)=>{"use strict";var n,s,i,o=r(6192),a=r(6447),c=r(5744),u=r(2853),l=r(9341),p=r(9362),f=r(8182),h=r(5546),_=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var t={};return n[_].call(t)!==t}))?n={}:h&&(n=u(n)),a(n[_])||p(n,_,(function(){return this})),t.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},7771:t=>{t.exports={}},4104:(t,e,r)=>{var n=r(8445);t.exports=function(t){return n(t.length)}},7679:t=>{var e=Math.ceil,r=Math.floor;t.exports=Math.trunc||function(t){var n=+t;return(n>0?r:e)(n)}},6016:(t,e,r)=>{var n=r(4845);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:n(t)}},2853:(t,e,r)=>{var n,s=r(1138),i=r(1187),o=r(2952),a=r(4535),c=r(7403),u=r(7449),l=r(9766),p="prototype",f="script",h=l("IE_PROTO"),_=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(d("")),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?m(n):(e=u("iframe"),r="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(r),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):m(n);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[h]=!0,t.exports=Object.create||function(t,e){var r;return null!==t?(_[p]=s(t),r=new _,_[p]=null,r[h]=t):r=y(),void 0===e?r:i.f(r,e)}},1187:(t,e,r)=>{var n=r(69),s=r(9600),i=r(2760),o=r(1138),a=r(101),c=r(7653);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}},2760:(t,e,r)=>{var n=r(69),s=r(188),i=r(9600),o=r(1138),a=r(77),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="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:f in r?r[f]:n[f],enumerable:p in r?r[p]:n[p],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 c("Accessors not supported");return"value"in r&&(t[e]=r.value),t}},5141:(t,e,r)=>{var n=r(69),s=r(8922),i=r(6007),o=r(774),a=r(101),c=r(77),u=r(4500),l=r(188),p=Object.getOwnPropertyDescriptor;e.f=n?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},2092:(t,e,r)=>{var n=r(7934),s=r(2952).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return n(t,s)}},4750:(t,e)=>{e.f=Object.getOwnPropertySymbols},9341:(t,e,r)=>{var n=r(4500),s=r(6447),i=r(1795),o=r(9766),a=r(4635),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}},8902:(t,e,r)=>{var n=r(4120);t.exports=n({}.isPrototypeOf)},7934:(t,e,r)=>{var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,a=r(4535),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}},7653:(t,e,r)=>{var n=r(7934),s=r(2952);t.exports=Object.keys||function(t){return n(t,s)}},6007:(t,e)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);e.f=s?function(t){var e=n(this,t);return!!e&&e.enumerable}:r},4469:(t,e,r)=>{var n=r(6419),s=r(1138),i=r(7757);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,r={};try{(t=n(Object.prototype,"__proto__","set"))(r,[]),e=r instanceof Array}catch(t){}return function(r,n){return s(r),i(n),e?t(r,n):r.__proto__=n,r}}():void 0)},158:(t,e,r)=>{"use strict";var n=r(3471),s=r(4696);t.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(t,e,r)=>{var n=r(8922),s=r(6447),i=r(5744),o=TypeError;t.exports=function(t,e){var r,a;if("string"===e&&s(r=t.toString)&&!i(a=n(r,t)))return a;if(s(r=t.valueOf)&&!i(a=n(r,t)))return a;if("string"!==e&&s(r=t.toString)&&!i(a=n(r,t)))return a;throw o("Can't convert object to primitive value")}},3011:(t,e,r)=>{var n=r(150),s=r(4120),i=r(2092),o=r(4750),a=r(1138),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}},7545:t=>{t.exports={}},7656:(t,e,r)=>{var n=r(2760).f;t.exports=function(t,e,r){r in t||n(t,r,{configurable:!0,get:function(){return e[r]},set:function(t){e[r]=t}})}},3209:(t,e,r)=>{var n=r(5646),s=TypeError;t.exports=function(t){if(n(t))throw s("Can't call method on "+t);return t}},1284:(t,e,r)=>{var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),a=r(158),c=r(8182)("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)}}},9766:(t,e,r)=>{var n=r(8717),s=r(2759),i=n("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6434:(t,e,r)=>{var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});t.exports=o},8717:(t,e,r)=>{var n=r(5546),s=r(6434);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(t,e,r)=>{var n=r(4120),s=r(1941),i=r(4845),o=r(3209),a=n("".charAt),c=n("".charCodeAt),u=n("".slice),l=function(t){return function(e,r){var n,l,p=i(o(e)),f=s(r),h=p.length;return f<0||f>=h?t?"":void 0:(n=c(p,f))<55296||n>56319||f+1===h||(l=c(p,f+1))<56320||l>57343?t?a(p,f):n:t?u(p,f,f+2):l-56320+(n-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6770:(t,e,r)=>{var n=r(4218),s=r(6192),i=r(8576).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},7739:(t,e,r)=>{var n=r(1941),s=Math.max,i=Math.min;t.exports=function(t,e){var r=n(t);return r<0?s(r+e,0):i(r,e)}},101:(t,e,r)=>{var n=r(2202),s=r(3209);t.exports=function(t){return n(s(t))}},1941:(t,e,r)=>{var n=r(7679);t.exports=function(t){var e=+t;return e!=e||0===e?0:n(e)}},8445:(t,e,r)=>{var n=r(1941),s=Math.min;t.exports=function(t){return t>0?s(n(t),9007199254740991):0}},1795:(t,e,r)=>{var n=r(3209),s=Object;t.exports=function(t){return s(n(t))}},7888:(t,e,r)=>{var n=r(8922),s=r(5744),i=r(3236),o=r(5037),a=r(380),c=r(8182),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 u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},77:(t,e,r)=>{var n=r(7888),s=r(3236);t.exports=function(t){var e=n(t,"string");return s(e)?e:e+""}},3471:(t,e,r)=>{var n={};n[r(8182)("toStringTag")]="z",t.exports="[object z]"===String(n)},4845:(t,e,r)=>{var n=r(4696),s=String;t.exports=function(t){if("Symbol"===n(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},9288:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},2759:(t,e,r)=>{var n=r(4120),s=0,i=Math.random(),o=n(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},615:(t,e,r)=>{var n=r(6770);t.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(t,e,r)=>{var n=r(69),s=r(6192);t.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(t,e,r)=>{var n=r(8576),s=r(6447),i=n.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8182:(t,e,r)=>{var n=r(8576),s=r(8717),i=r(4500),o=r(2759),a=r(6770),c=r(615),u=n.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:p("Symbol."+t)),l[t]}},426:(t,e,r)=>{"use strict";var n=r(150),s=r(4500),i=r(8711),o=r(8902),a=r(4469),c=r(7987),u=r(7656),l=r(2643),p=r(6016),f=r(273),h=r(8266),_=r(69),d=r(5546);t.exports=function(t,e,r,m){var y="stackTraceLimit",g=m?2:1,v=t.split("."),b=v[v.length-1],w=n.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!r)return w;var x=n("Error"),S=e((function(t,e){var r=p(m?e:t,void 0),n=m?new w(t):new w;return void 0!==r&&i(n,"message",r),h(n,S,n.stack,2),this&&o(E,this)&&l(n,this,S),arguments.length>g&&f(n,arguments[g]),n}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):_&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(t){}return S}}},4016:(t,e,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(6192),a=r(426),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)})},3820:(t,e,r)=>{"use strict";var n=r(3085),s=r(8902),i=r(9341),o=r(4469),a=r(7987),c=r(2853),u=r(8711),l=r(774),p=r(273),f=r(8266),h=r(3442),_=r(6016),d=r(8182)("toStringTag"),m=Error,y=[].push,g=function(t,e){var r,n=s(v,this);o?r=o(m(),n?i(this):v):(r=n?this:c(v),u(r,d,"Error")),void 0!==e&&u(r,"message",_(e)),f(r,g,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return h(t,y,{that:a}),u(r,"errors",a),r};o?o(g,m):a(g,m,{name:!0});var v=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(t,e,r)=>{r(3820)},8939:(t,e,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),a=r(2760).f,c=r(5297),u=r(7271),l=r(5546),p=r(69),f="Array Iterator",h=o.set,_=o.getterFor(f);t.exports=c(Array,"Array",(function(t,e){h(this,{type:f,target:n(t),index:0,kind:e})}),(function(){var t=_(this),e=t.target,r=t.kind,n=t.index++;return!e||n>=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==r?n:"values"==r?e[n]:[n,e[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},4339:(t,e,r)=>{var n=r(3085),s=r(8576),i=r(6298),o=r(426),a="WebAssembly",c=s[a],u=7!==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)},p=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)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},5454:(t,e,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),a=r(7271),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))}))},2752:(t,e,r)=>{r(4242)},162:(t,e,r)=>{r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),a=r(7771),c=r(8182)("toStringTag");for(var u in n){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},5846:(t,e,r)=>{r(2752);var n=r(6791);r(162),t.exports=n},9515:(t,e,r)=>{var n=r(8761)(r(7772),"DataView");t.exports=n},9612:(t,e,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),a=r(7942);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},235:(t,e,r)=>{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<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},326:(t,e,r)=>{var n=r(8761)(r(7772),"Map");t.exports=n},6738:(t,e,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),a=r(4150);function c(t){var e=-1,r=null==t?0:t.length;for(this.clear();++e<r;){var n=t[e];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},1985:(t,e,r)=>{var n=r(8761)(r(7772),"Promise");t.exports=n},2143:(t,e,r)=>{var n=r(8761)(r(7772),"Set");t.exports=n},5386:(t,e,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(t){var e=-1,r=null==t?0:t.length;for(this.__data__=new n;++e<r;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},6571:(t,e,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),a=r(8605),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<n;){var o=t[r];e(o,r,t)&&(i[s++]=o)}return i}},1634:(t,e,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),a=r(9045),c=r(7598),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var r=i(t),l=!r&&s(t),p=!r&&!l&&o(t),f=!r&&!l&&!p&&c(t),h=r||l||p||f,_=h?n(t.length,String):[],d=_.length;for(var m in t)!e&&!u.call(t,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,d))||_.push(m);return _}},5067:t=>{t.exports=function(t,e){for(var r=-1,n=e.length,s=t.length;++r<n;)t[s+r]=e[r];return t}},7064:t=>{t.exports=function(t,e){for(var r=-1,n=null==t?0:t.length;++r<n;)if(e(t[r],r,t))return!0;return!1}},2218:(t,e,r)=>{var n=r(1225);t.exports=function(t,e){for(var r=t.length;r--;)if(n(t[r][0],e))return r;return-1}},1897:(t,e,r)=>{var n=r(5067),s=r(6152);t.exports=function(t,e,r){var i=e(t);return s(t)?i:n(i,r(t))}},3366:(t,e,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":o&&o in Object(t)?s(t):i(t)}},5183:(t,e,r)=>{var n=r(3366),s=r(5125);t.exports=function(t){return s(t)&&"[object Arguments]"==n(t)}},8746:(t,e,r)=>{var n=r(1952),s=r(5125);t.exports=function t(e,r,i,o,a){return e===r||(null==e||null==r||!s(e)&&!s(r)?e!=e&&r!=r:n(e,r,i,o,t,a))}},1952:(t,e,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),a=r(940),c=r(6152),u=r(3226),l=r(7598),p="[object Arguments]",f="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,r,d,m,y){var g=c(t),v=c(e),b=g?f:a(t),w=v?f:a(e),E=(b=b==p?h:b)==h,x=(w=w==p?h:w)==h,S=b==w;if(S&&u(t)){if(!u(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new n),g||l(t)?s(t,e,r,d,m,y):i(t,e,b,r,d,m,y);if(!(1&r)){var A=E&&_.call(t,"__wrapped__"),j=x&&_.call(e,"__wrapped__");if(A||j){var O=A?t.value():t,P=j?e.value():e;return y||(y=new n),m(O,P,r,d,y)}}return!!S&&(y||(y=new n),o(t,e,r,d,m,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,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(n(t)?f:a).test(o(t))}},5522:(t,e,r)=>{var n=r(3366),s=r(1158),i=r(5125),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&s(t.length)&&!!o[n(t)]}},6411:(t,e,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!n(t))return s(t);var e=[];for(var r in Object(t))i.call(t,r)&&"constructor"!=r&&e.push(r);return e}},6473:t=>{t.exports=function(t,e){for(var r=-1,n=Array(t);++r<t;)n[r]=e(r);return n}},7826:t=>{t.exports=function(t){return function(e){return t(e)}}},9950:t=>{t.exports=function(t,e){return t.has(e)}},4019:(t,e,r)=>{var n=r(7772)["__core-js_shared__"];t.exports=n},4871:(t,e,r)=>{var n=r(5386),s=r(7064),i=r(9950);t.exports=function(t,e,r,o,a,c){var u=1&r,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(t),h=c.get(e);if(f&&h)return f==e&&h==t;var _=-1,d=!0,m=2&r?new n:void 0;for(c.set(t,e),c.set(e,t);++_<l;){var y=t[_],g=e[_];if(o)var v=u?o(g,y,_,e,t,c):o(y,g,_,t,e,c);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!s(e,(function(t,e){if(!i(m,e)&&(y===t||a(y,t,r,o,c)))return m.push(e)}))){d=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},1491:(t,e,r)=>{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,p,f){switch(r){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!p(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 d=f.get(t);if(d)return d==e;n|=2,f.set(t,e);var m=o(h(t),h(e),n,u,p,f);return f.delete(t),m;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 p=l;p--;){var f=u[p];if(!(c?f in e:s.call(e,f)))return!1}var h=a.get(t),_=a.get(e);if(h&&_)return h==e&&_==t;var d=!0;a.set(t,e),a.set(e,t);for(var m=c;++p<l;){var y=t[f=u[p]],g=e[f];if(i)var v=c?i(g,y,f,e,t,a):i(y,g,f,t,e,a);if(!(void 0===v?y===g||o(y,g,r,i,a):v)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}},1242:(t,e,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;t.exports=n},3483:(t,e,r)=>{var n=r(1897),s=r(633),i=r(249);t.exports=function(t){return n(t,i,s)}},7937:(t,e,r)=>{var n=r(8304);t.exports=function(t,e){var r=t.__data__;return n(e)?r["string"==typeof e?"string":"hash"]:r.map}},8761:(t,e,r)=>{var n=r(6840),s=r(8109);t.exports=function(t,e){var r=s(t,e);return n(r)?r:void 0}},2107:(t,e,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),r=t[a];try{t[a]=void 0;var n=!0}catch(t){}var s=o.call(t);return n&&(e?t[a]=r:delete t[a]),s}},633:(t,e,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),n(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},940:(t,e,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),a=r(3215),c=r(3366),u=r(7035),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",_="[object DataView]",d=u(n),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(n&&b(new n(new ArrayBuffer(1)))!=_||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=h)&&(b=function(t){var e=c(t),r="[object Object]"==e?t.constructor:void 0,n=r?u(r):"";if(n)switch(n){case d:return _;case m:return l;case y:return p;case g:return f;case v:return h}return e}),t.exports=b},8109:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2118:(t,e,r)=>{var n=r(9191);t.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:t=>{t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},8138:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(n){var r=e[t];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(e,t)?e[t]:void 0}},4174:(t,e,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return n?void 0!==e[t]:s.call(e,t)}},7942:(t,e,r)=>{var n=r(9191);t.exports=function(t,e){var r=this.__data__;return this.size+=this.has(t)?0:1,r[t]=n&&void 0===e?"__lodash_hash_undefined__":e,this}},9045:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,r){var n=typeof t;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&e.test(t))&&t>-1&&t%1==0&&t<r}},8304:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7394:(t,e,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";t.exports=function(t){return!!i&&i in t}},6001:t=>{var e=Object.prototype;t.exports=function(t){var r=t&&t.constructor;return t===("function"==typeof r&&r.prototype||e)}},3945:t=>{t.exports=function(){this.__data__=[],this.size=0}},1846:(t,e,r)=>{var n=r(2218),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,r=n(e,t);return!(r<0)&&(r==e.length-1?e.pop():s.call(e,r,1),--this.size,!0)}},8028:(t,e,r)=>{var n=r(2218);t.exports=function(t){var e=this.__data__,r=n(e,t);return r<0?void 0:e[r][1]}},2344:(t,e,r)=>{var n=r(2218);t.exports=function(t){return n(this.__data__,t)>-1}},4769:(t,e,r)=>{var n=r(2218);t.exports=function(t,e){var r=this.__data__,s=n(r,t);return s<0?(++this.size,r.push([t,e])):r[s][1]=e,this}},2411:(t,e,r)=>{var n=r(9612),s=r(235),i=r(326);t.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(t,e,r)=>{var n=r(7937);t.exports=function(t){var e=n(this,t).delete(t);return this.size-=e?1:0,e}},6928:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).get(t)}},9493:(t,e,r)=>{var n=r(7937);t.exports=function(t){return n(this,t).has(t)}},4150:(t,e,r)=>{var n=r(7937);t.exports=function(t,e){var r=n(this,t),s=r.size;return r.set(t,e),this.size+=r.size==s?0:1,this}},5179:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t,n){r[++e]=[n,t]})),r}},9191:(t,e,r)=>{var n=r(8761)(Object,"create");t.exports=n},4248:(t,e,r)=>{var n=r(241)(Object.keys,Object);t.exports=n},4146:(t,e,r)=>{t=r.nmd(t);var n=r(1242),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&n.process,a=function(){try{var t=i&&i.require&&i.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=a},7157:t=>{var e=Object.prototype.toString;t.exports=function(t){return e.call(t)}},241:t=>{t.exports=function(t,e){return function(r){return t(e(r))}}},7772:(t,e,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();t.exports=i},2842:t=>{t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},2482:t=>{t.exports=function(t){return this.__data__.has(t)}},4207:t=>{t.exports=function(t){var e=-1,r=Array(t.size);return t.forEach((function(t){r[++e]=t})),r}},5243:(t,e,r)=>{var n=r(235);t.exports=function(){this.__data__=new n,this.size=0}},2858:t=>{t.exports=function(t){var e=this.__data__,r=e.delete(t);return this.size=e.size,r}},4417:t=>{t.exports=function(t){return this.__data__.get(t)}},8605:t=>{t.exports=function(t){return this.__data__.has(t)}},1418:(t,e,r)=>{var n=r(235),s=r(326),i=r(6738);t.exports=function(t,e){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(t,e),this.size=r.size,this}},7035:t=>{var e=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return e.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},1225:t=>{t.exports=function(t,e){return t===e||t!=t&&e!=e}},9631:(t,e,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,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<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new 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),p=r(5202),f=r(2320),h=r(1178),_=r(3853),d=r(3026);function m(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(m));if("object"==typeof t){return new l(t)}return t}n.prototype.ObjectElement=l,n.prototype.RefElement=f,n.prototype.MemberElement=u,n.prototype.refract=m,h.prototype.refract=m,t.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:h,ObjectSlice:_,KeyValuePair:d}},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,r(3026),s.ArraySlice,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<this.length;e+=1){const r=this.content[e];n="object"===this.primitive()?this.refract(t(n,r.value,r.key,r,this)):this.refract(t(n,r,e,this))}return n}forEach(t,e){this.content.forEach(((r,n)=>{t.bind(e)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(t){this.content.unshift(this.refract(t))}push(t){return this.content.push(this.refract(t)),this}add(t){this.push(t)}findElements(t,e){const r=e||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((e,r,i)=>{n&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:n}),t(e,r,i)&&s.push(e)})),s}find(t){return new i(this.findElements(t,{recursive:!0}))}findByElement(t){return this.find((e=>e.element===t))}findByClass(t){return this.find((e=>e.classes.includes(t)))}getById(t){return this.find((e=>e.id.toValue()===t)).first}includes(t){return this.content.some((e=>e.equals(t)))}contains(t){return this.includes(t)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(t){return new this.constructor(this.content.concat(t.content))}"fantasy-land/concat"(t){return this.concat(t)}"fantasy-land/map"(t){return new this.constructor(this.map(t))}"fantasy-land/chain"(t){return this.map((e=>t(e)),this).reduce(((t,e)=>t.concat(e)),this.empty())}"fantasy-land/filter"(t){return new this.constructor(this.content.filter(t))}"fantasy-land/reduce"(t,e){return this.content.reduce(t,e)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),t.exports=o},3312:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(t,e,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(t,e,r){e&&(this.meta=e),r&&(this.attributes=r),this.content=t}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((t=>{t.parent=this,t.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const t=new this.constructor;return t.element=this.element,this.meta.length&&(t._meta=this.meta.clone()),this.attributes.length&&(t._attributes=this.attributes.clone()),this.content?this.content.clone?t.content=this.content.clone():Array.isArray(this.content)?t.content=this.content.map((t=>t.clone())):t.content=this.content:t.content=this.content,t}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((t=>t.toValue()),this):this.content}toRef(t){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const e=new this.RefElement(this.id.toValue());return t&&(e.path=t),e}findRecursive(...t){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const e=t.pop();let r=new i;const n=(t,e)=>(t.push(e),t),o=(t,r)=>{r.element===e&&t.push(r);const i=r.findRecursive(e);return i&&i.reduce(n,t),r.content instanceof s&&(r.content.key&&o(t,r.content.key),r.content.value&&o(t,r.content.value)),t};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),t.isEmpty||(r=r.filter((e=>{let r=e.parents.map((t=>t.element));for(const e in t){const n=t[e],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(t){return this.content=t,this}equals(t){return n(this.toValue(),t)}getMetaProperty(t,e){if(!this.meta.hasKey(t)){if(this.isFrozen){const t=this.refract(e);return t.freeze(),t}this.meta.set(t,e)}return this.meta.get(t)}setMetaProperty(t,e){this.meta.set(t,e)}get element(){return this._storedElement||"element"}set element(t){this._storedElement=t}get content(){return this._content}set content(t){if(t instanceof o)this._content=t;else if(t instanceof i)this.content=t.elements;else if("string"==typeof t||"number"==typeof t||"boolean"==typeof t||"null"===t||null==t)this._content=t;else if(t instanceof s)this._content=t;else if(Array.isArray(t))this._content=t.map(this.refract);else{if("object"!=typeof t)throw new Error("Cannot set content to given value");this._content=Object.keys(t).map((e=>new this.MemberElement(e,t[e])))}}get meta(){if(!this._meta){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._meta=new this.ObjectElement}return this._meta}set meta(t){t instanceof this.ObjectElement?this._meta=t:this.meta.set(t||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const t=new this.ObjectElement;return t.freeze(),t}this._attributes=new this.ObjectElement}return this._attributes}set attributes(t){t instanceof this.ObjectElement?this._attributes=t:this.attributes.set(t||{})}get id(){return this.getMetaProperty("id","")}set id(t){this.setMetaProperty("id",t)}get classes(){return this.getMetaProperty("classes",[])}set classes(t){this.setMetaProperty("classes",t)}get title(){return this.getMetaProperty("title","")}set title(t){this.setMetaProperty("title",t)}get description(){return this.getMetaProperty("description","")}set description(t){this.setMetaProperty("description",t)}get links(){return this.getMetaProperty("links",[])}set links(t){this.setMetaProperty("links",t)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:t}=this;const e=new i;for(;t;)e.push(t),t=t.parent;return e}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const t=new i([this.content.key]);return this.content.value&&t.push(this.content.value),t}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const t=new i;return this.children.forEach((e=>{t.push(e),e.recursiveChildren.forEach((e=>{t.push(e)}))})),t}}t.exports=o},8858:(t,e,r)=>{const n=r(3026),s=r(6420);t.exports=class extends s{constructor(t,e,r,s){super(new n,r,s),this.element="member",this.key=t,this.value=e}get key(){return this.content.key}set key(t){this.content.key=this.refract(t)}get value(){return this.content.value}set value(t){this.content.value=this.refract(t)}}},4152:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t||null,e,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="number"}primitive(){return"number"}}},3860:(t,e,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),a=r(3853);t.exports=class extends i{constructor(t,e,r){super(t||[],e,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((t,e)=>(t[e.key.toValue()]=e.value?e.value.toValue():void 0,t)),{})}get(t){const e=this.getMember(t);if(e)return e.value}getMember(t){if(void 0!==t)return this.content.find((e=>e.key.toValue()===t))}remove(t){let e=null;return this.content=this.content.filter((r=>r.key.toValue()!==t||(e=r,!1))),e}getKey(t){const e=this.getMember(t);if(e)return e.key}set(t,e){if(s(t))return Object.keys(t).forEach((e=>{this.set(e,t[e])})),this;const r=t,n=this.getMember(r);return n?n.value=e:this.content.push(new o(r,e)),this}keys(){return this.content.map((t=>t.key.toValue()))}values(){return this.content.map((t=>t.value.toValue()))}hasKey(t){return this.content.some((e=>e.key.equals(t)))}items(){return this.content.map((t=>[t.key.toValue(),t.value.toValue()]))}map(t,e){return this.content.map((r=>t.bind(e)(r.value,r.key,r)))}compactMap(t,e){const r=[];return this.forEach(((n,s,i)=>{const o=t.bind(e)(n,s,i);o&&r.push(o)})),r}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(n(t),e)}forEach(t,e){return this.content.forEach((r=>t.bind(e)(r.value,r.key,r)))}}},9542:(t,e,r)=>{const n=r(6420);t.exports=class extends n{constructor(t,e,r){super(t,e,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(t,e,r)=>{const n=r(2947);t.exports=class extends n{serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);let e;t._attributes&&t.attributes.get("variable")&&(e=t.attributes.get("variable"));const r={element:t.element};t._meta&&t._meta.length>0&&(r.meta=this.serialiseObject(t.meta));const n="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(n){const e=this.enumSerialiseAttributes(t);e&&(r.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:n}=t;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===t.element&&e&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(t,r);else if(this[`${t.element}SerialiseContent`])r.content=this[`${t.element}SerialiseContent`](t,r);else if(void 0!==t.content){let n;e&&t.content.key?(n=t.content.clone(),n.key.attributes.set("variable",e),n=this.serialiseContent(n)):n=this.serialiseContent(t.content),this.shouldSerialiseContent(t,n)&&(r.content=n)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(t,e){return"parseResult"===t.element||"httpRequest"===t.element||"httpResponse"===t.element||"category"===t.element||"link"===t.element||void 0!==e&&(!Array.isArray(e)||0!==e.length)}refSerialiseContent(t,e){return delete e.attributes,{href:t.toValue(),path:t.path.toValue()}}sourceMapSerialiseContent(t){return t.toValue()}dataStructureSerialiseContent(t){return[this.serialiseContent(t.content)]}enumSerialiseAttributes(t){const e=t.attributes.clone(),r=e.remove("enumerations")||new this.namespace.elements.Array([]),n=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==r.length&&s.unshift(t.content),s=s.map((t=>t instanceof this.namespace.elements.Array?[t]:new this.namespace.elements.Array([t.content]))),s.length&&e.set("samples",s),e.length>0)return this.serialiseObject(e)}enumSerialiseContent(t){if(t._attributes){const e=t.attributes.get("enumerations");if(e&&e.length>0)return e.content.map((t=>{const e=t.clone();return e.attributes.remove("typeAttributes"),this.serialise(e)}))}if(t.content){const e=t.content.clone();return e.attributes.remove("typeAttributes"),[this.serialise(e)]}return[]}deserialise(t){if("string"==typeof t)return new this.namespace.elements.String(t);if("number"==typeof t)return new this.namespace.elements.Number(t);if("boolean"==typeof t)return new this.namespace.elements.Boolean(t);if(null===t)return new this.namespace.elements.Null;if(Array.isArray(t))return new this.namespace.elements.Array(t.map(this.deserialise,this));const e=this.namespace.getElementClass(t.element),r=new e;r.element!==t.element&&(r.element=t.element),t.meta&&this.deserialiseObject(t.meta,r.meta),t.attributes&&this.deserialiseObject(t.attributes,r.attributes);const n=this.deserialiseContent(t.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let t=r.attributes.get("samples");if(r.attributes.remove("samples"),t){const n=t;t=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new e(n);s.element=r.element,t.push(s)}))}));const s=t.shift();r.content=s?s.content:void 0,r.attributes.set("samples",t)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const t=new e(n);t.element=r.element,r.attributes.set("default",t)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const t=r.attributes.get("meta");t&&(r.attributes.set("metadata",t),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}return t&&t.map?t.map(this.serialise,this):t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}shouldRefract(t){return!!(t._attributes&&t.attributes.keys().length||t._meta&&t.meta.keys().length)||"enum"!==t.element&&(t.element!==t.primitive()||"member"===t.element)}convertKeyToRefract(t,e){return this.shouldRefract(e)?this.serialise(e):"enum"===e.element?this.serialiseEnum(e):"array"===e.element?e.map((e=>this.shouldRefract(e)||"default"===t?this.serialise(e):"array"===e.element||"object"===e.element||"enum"===e.element?e.children.map((t=>this.serialise(t))):e.toValue())):"object"===e.element?(e.content||[]).map(this.serialise,this):e.toValue()}serialiseEnum(t){return t.children.map((t=>this.serialise(t)))}serialiseObject(t){const e={};return t.forEach(((t,r)=>{if(t){const n=r.toValue();e[n]=this.convertKeyToRefract(n,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},2947:t=>{t.exports=class{constructor(t){this.namespace=t||new this.Namespace}serialise(t){if(!(t instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${t}\` is not an Element instance`);const e={element:t.element};t._meta&&t._meta.length>0&&(e.meta=this.serialiseObject(t.meta)),t._attributes&&t._attributes.length>0&&(e.attributes=this.serialiseObject(t.attributes));const r=this.serialiseContent(t.content);return void 0!==r&&(e.content=r),e}deserialise(t){if(!t.element)throw new Error("Given value is not an object containing an element name");const e=new(this.namespace.getElementClass(t.element));e.element!==t.element&&(e.element=t.element),t.meta&&this.deserialiseObject(t.meta,e.meta),t.attributes&&this.deserialiseObject(t.attributes,e.attributes);const r=this.deserialiseContent(t.content);return void 0===r&&null!==e.content||(e.content=r),e}serialiseContent(t){if(t instanceof this.namespace.elements.Element)return this.serialise(t);if(t instanceof this.namespace.KeyValuePair){const e={key:this.serialise(t.key)};return t.value&&(e.value=this.serialise(t.value)),e}if(t&&t.map){if(0===t.length)return;return t.map(this.serialise,this)}return t}deserialiseContent(t){if(t){if(t.element)return this.deserialise(t);if(t.key){const e=new this.namespace.KeyValuePair(this.deserialise(t.key));return t.value&&(e.value=this.deserialise(t.value)),e}if(t.map)return t.map(this.deserialise,this)}return t}serialiseObject(t){const e={};if(t.forEach(((t,r)=>{t&&(e[r.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((r=>{e.set(r,this.deserialise(t[r]))}))}}},6591:t=>{!function(){"use strict";var e,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",f="configuration",h="deepConfiguration",_="deepProps",d="deepStatics",m="deepConf",y="initializers",g="methods",v="composers",b="compose";function w(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t):[])}function E(t,e){return Array.prototype.slice.call(arguments,2).reduce(t,e)}var x=E.bind(0,(function(t,e){if(e)for(var r=w(e),n=0;n<r.length;n+=1)Object.defineProperty(t,r[n],Object.getOwnPropertyDescriptor(e,r[n]));return t}));function S(t){return"function"==typeof t}function A(t){return t&&"object"==typeof t||S(t)}function j(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var O=E.bind(0,(function t(r,n){if(n===e)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!j(n))return n;for(var s,i,o=w(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==e&&(r[s]=t(j(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function P(){return(r=Array.prototype.concat.apply([],arguments).filter((function(t,e,r){return S(t)&&r.indexOf(t)===e}))).length?r:e}function k(t,e){function n(r,n){A(e[r])&&(A(t[r])||(t[r]={}),(n||x)(t[r],e[r]))}function s(n){(r=P(t[n],e[n]))&&(t[n]=r)}return e&&A(e=e[b]||e)&&(n(g),n(o),n(a,O),n(c),n(u),n(l,O),n(p),n(f),n(h,O),s(y),s(v)),t}function N(){return function(t){return r=function t(r){var n,s,i=t[b]||{},u={__proto__:i[g]},l=i[y],p=Array.prototype.slice.apply(arguments),f=i[a];if(f&&O(u,f),(f=i[o])&&x(u,f),(f=i[c])&&Object.defineProperties(u,f),!l||!l.length)return u;for(r===e&&(r={}),i=0;i<l.length;)S(n=l[i++])&&(u=(s=n.call(u,r,{instance:u,stamp:t,args:p}))===e?u:s);return u},(n=t[l])&&O(r,n),(n=t[u])&&x(r,n),(n=t[p])&&Object.defineProperties(r,n),n=S(r[b])?r[b]:N,x(r[b]=function(){return n.apply(this,arguments)},t),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function I(t){return S(t)&&S(t[b])}var M={};function T(t,i){return function(){return(s={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[b]||n).call(r,s)}}M[g]=T(g,x),M[o]=M.props=T(o,x),M[y]=M.init=T(y,P),M[v]=T(v,P),M[a]=M[_]=T(a,O),M[u]=M.statics=T(u,x),M[l]=M[d]=T(l,O),M[f]=M.conf=T(f,x),M[h]=M[m]=T(h,O),M[c]=T(c,x),M[p]=T(p,x),n=M[b]=x((function(){for(var t,w,E=0,S=[],j=arguments,k=this;E<j.length;)A(t=j[E++])&&S.push(I(t)?t:((s={})[g]=(w=t)[g]||e,n=w.props,s[o]=A((r=w[o])||n)?x({},n,r):e,s[y]=P(w.init,w[y]),s[v]=P(w[v]),n=w[_],s[a]=A((r=w[a])||n)?O({},n,r):e,s[c]=w[c],n=w.statics,s[u]=A((r=w[u])||n)?x({},n,r):e,n=w[d],s[l]=A((r=w[l])||n)?O({},n,r):e,r=w[p],s[p]=A((n=w.name&&{name:{value:w.name}})||r)?x({},r,n):e,n=w.conf,s[f]=A((r=w[f])||n)?x({},n,r):e,n=w[m],s[h]=A((r=w[h])||n)?O({},n,r):e,s));if(t=N.apply(k||i,S),k&&S.unshift(k),Array.isArray(j=t[b][v]))for(E=0;E<j.length;)t=I(k=j[E++]({stamp:t,composables:S}))?k:t;return t}),M),M.create=function(){return this.apply(e,arguments)},(s={})[u]=M,i=N(s),n[b]=n.bind(),n.version="4.3.2","object"!=typeof e?t.exports=n:self.stampit=n}()},2396:(t,e)=>{"use strict";var r;Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0,function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(r=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[r.MalformedUnicode,"malformed Unicode character escape sequence"],[r.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[r.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[r.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[r.EndOfString,"malformed escape sequence at end of string"]])},2770:(t,e,r)=>{"use strict";e.S6=void 0;const n=r(2396);function s(t,e,r){const s=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(s)||void 0!==r&&r!==t.length)throw new SyntaxError(n.errorMessages.get(e));return s}function i(t,e){const r=s(t,n.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=s(e,n.ErrorType.MalformedUnicode,4);return String.fromCharCode(r,t)}return String.fromCharCode(r)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(t,e=!1){return t.replace(a,(function(t,r,a,c,u,l,p,f,h){if(void 0!==r)return"\\";if(void 0!==a)return function(t){const e=s(t,n.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(a);if(void 0!==c)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(n.errorMessages.get(n.ErrorType.MalformedUnicode));var e;const r=s(t.slice(1,-1),n.ErrorType.MalformedUnicode);try{return String.fromCodePoint(r)}catch(t){throw t instanceof RangeError?new SyntaxError(n.errorMessages.get(n.ErrorType.CodePointLimit)):t}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===f)return"\0";if(void 0!==f)return function(t,e=!1){if(e)throw new SyntaxError(n.errorMessages.get(n.ErrorType.OctalDeprecation));const r=parseInt(t,8);return String.fromCharCode(r)}(f,!e);if(void 0!==h)return _=h,o.get(_)||_;var _;throw new SyntaxError(n.errorMessages.get(n.ErrorType.EndOfString))}))}e.S6=c},9794:(t,e,r)=>{var n=void 0!==n?n:{},s=function(){var e,s="object"==typeof window?{currentScript:window.document.currentScript}:null;class i{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(o){return e||(n=Object.assign({},n,o),e=new Promise((e=>{var o,a={};for(o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);var c,u,l,p,f=[],h="./this.program",_=function(t,e){throw e};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,m,y,g,v,b="";c?(b=p?r(6287).dirname(b)+"/":"//",d=function(t,e){return g||(g=r(5530)),v||(v=r(6287)),t=v.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=d(t,!0);return e.buffer||(e=new Uint8Array(e)),T(e.buffer),e},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),t.exports=n,_=function(t){process.exit(t)},n.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=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?f=scriptArgs:void 0!==arguments&&(f=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||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),m=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&&(f=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(_=n.quit);var E,x=16,S=[];function A(t,e){if(!E){E=new WeakMap;for(var r=0;r<Y.length;r++){var n=Y.get(r);n&&E.set(n,r)}}if(E.has(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{Y.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(s,t)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==e[0]?[]:[r[e[0]]]},s=1;s<e.length;++s)n.parameters.push(r[e[s]]);return new WebAssembly.Function(n,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:t}}).exports.f}(t,e);Y.set(s,i)}return E.set(t,s),s}var j,O=n.dynamicLibraries||[];n.wasmBinary&&(j=n.wasmBinary);var P,k=n.noExitRuntime||!0;function N(t,e,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":R[t>>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":D[t>>2]=e;break;case"double":$[t>>3]=e;break;default:at("invalid type for setValue: "+r)}}function I(t,e,r){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return R[t>>0];case"i16":return q[t>>1];case"i32":case"i64":return L[t>>2];case"float":return D[t>>2];case"double":return $[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 C,R,F,q,L,D,$,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function z(t,e,r){for(var n=e+r,s=e;t[s]&&!(s>=n);)++s;if(s-e>16&&t.subarray&&B)return B.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var c=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&t[e++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function V(t,e){return t?z(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<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(r>=i)break;e[r++]=a}else if(a<=2047){if(r+1>=i)break;e[r++]=192|a>>6,e[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;e[r++]=224|a>>12,e[r++]=128|a>>6&63,e[r++]=128|63&a}else{if(r+3>=i)break;e[r++]=240|a>>18,e[r++]=128|a>>12&63,e[r++]=128|a>>6&63,e[r++]=128|63&a}}return e[r]=0,r-s}function G(t,e,r){return U(t,F,e,r)}function W(t){for(var e=0,r=0;r<t.length;++r){var n=t.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&t.charCodeAt(++r)),n<=127?++e:e+=n<=2047?2:n<=65535?3:4}return e}function Z(t){var e=W(t)+1,r=Vt(e);return U(t,R,r,e),r}function K(t){C=t,n.HEAP8=R=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=D=new Float32Array(t),n.HEAPF64=$=new Float64Array(t)}var H=n.INITIAL_MEMORY||33554432;(P=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(C=P.buffer),H=C.byteLength,K(C);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],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 pt(t){return t.startsWith("data:application/octet-stream;base64,")}function ft(t){return t.startsWith("file://")}function ht(t){try{if(t==ct&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}pt(ct="tree-sitter.wasm")||(ct=function(t){return n.locateFile?n.locateFile(t,b):b+t}(ct));var _t={},dt={get:function(t,e){return _t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),_t[e]}};function mt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var r=e.func;"number"==typeof r?void 0===e.arg?Y.get(r)():Y.get(r)(e.arg):r(void 0===e.arg?null:e.arg)}else e(n)}}function yt(t){var e=0;function r(){for(var r=0,n=1;;){var s=t[e++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(t instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(t,"dylink");T(0!=n.length,"need dylink section"),t=new Int8Array(n[0])}else T(1836278016==new Uint32Array(new Uint8Array(t.subarray(0,24)).buffer)[0],"need to see wasm magic number"),T(0===t[8],"need the dylink section to be first"),e=9,r(),T(6===t[e]),T(t[++e]==="d".charCodeAt(0)),T(t[++e]==="y".charCodeAt(0)),T(t[++e]==="l".charCodeAt(0)),T(t[++e]==="i".charCodeAt(0)),T(t[++e]==="n".charCodeAt(0)),T(t[++e]==="k".charCodeAt(0)),e++;var s={};s.memorySize=r(),s.memoryAlign=r(),s.tableSize=r(),s.tableAlign=r();var i=r();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=r(),c=t.subarray(e,e+a);e+=a;var u=z(c,0);s.neededDynlibs.push(u)}return s}var gt=0;function vt(){return k||gt>0}function bt(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=bt(r);n.hasOwnProperty(s)||(n[s]=t[r])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var r={};for(var n in t){var s=t[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),r[n]=s}return function(t){for(var e in t)if(!St(e)){var r=!1,n=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],r=!0),_t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==_t[e].value)&&("function"==typeof n?_t[e].value=A(n):"number"==typeof n?_t[e].value=n:w("unhandled export type for `"+e+"`: "+typeof n))}}(r),r}function jt(t,e){var r,s;return e&&(r=Lt["orig$"+t]),r||(r=Lt[t]),r||(r=n[bt(t)]),!r&&t.startsWith("invoke_")&&(s=t.split("_")[1],r=function(){var t=Bt();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):Y.get(e).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(zt(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 Dt(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=Y.length;Y.grow(r.tableSize);for(var u=a;u<a+r.memorySize;u++)R[u]=0;for(u=c;u<c+r.tableSize;u++)Y.set(u,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return c}return e in Lt?Lt[e]:(e in t||(t[e]=function(){return r||(r=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),r.apply(null,arguments)}),t[e]);var r}}),p={"GOT.mem":new Proxy({},dt),"GOT.func":new Proxy({},dt),env:l,wasi_snapshot_preview1:l};function f(t){for(var n=0;n<r.tableSize;n++){var s=Y.get(c+n);s&&E.set(s,c+n)}o=At(t.exports,a),e.allowUndefined||kt();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():X.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var h=new WebAssembly.Instance(t,p);return Promise.resolve(f(h))}return WebAssembly.instantiate(t,p).then((function(t){return f(t.instance)}))}var _=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return f(h=new WebAssembly.Instance(_,p))}return e.loadAsync?r.neededDynlibs.reduce((function(t,r){return t.then((function(){return Pt(r,e)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(t){Pt(t,e)})),n())}function Pt(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var r,s=Et.loadedLibNames[t];if(s)return r=Et.loadedLibs[s],e.global&&!r.global&&(r.global=!0,"loading"!==r.module&&wt(r.module)),e.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var r=e.fs.readFile(t,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),e.loadAsync?Promise.resolve(r):r}return e.loadAsync?(n=t,fetch(n,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+n+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[t]){var r=n.preloadedWasm[t];return e.loadAsync?Promise.resolve(r):r}return e.loadAsync?i(t).then((function(t){return Ot(t,e)})):Ot(i(t),e)}function a(t){r.global&&wt(t),r.module=t}return s=Et.nextHandle++,r={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=r,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function kt(){for(var t in _t)if(0==_t[t].value){var e=jt(t,!0);"function"==typeof e?_t[t].value=A(e,e.sig):"number"==typeof e?_t[t].value=e:T(!1,"bad export type for `"+t+"`: "+typeof e)}}n.___heap_base=xt;var Nt,It=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Mt(){at()}n._abort=Mt,Mt.sig="v",Nt=c?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Tt(t,e){var r;if(0===t)r=Date.now();else{if(1!==t&&4!==t)return 28,L[$t()>>2]=28,-1;r=Nt()}return L[e>>2]=r/1e3|0,L[e+4>>2]=r%1e3*1e3*1e3|0,0}function Ct(t){try{return P.grow(t-C.byteLength+65535>>>16),K(P.buffer),1}catch(t){}}function Rt(t){Kt(t)}function Ft(t){}Tt.sig="iii",Rt.sig="vi",Ft.sig="vi";var qt,Lt={__heap_base:xt,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:It,__table_base:1,abort:Mt,clock_gettime:Tt,emscripten_memcpy_big:function(t,e,r){F.copyWithin(t,e,e+r)},emscripten_resize_heap:function(t){var e,r=F.length;if((t>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,t+100663296),Ct(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Rt,memory:P,setTempRet0:Ft,tree_sitter_log_callback:function(t,e){if(ue){const r=V(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?(N(s,i.length,"i32"),function(t,e,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*t.length?r/2:t.length,s=0;s<n;++s){var i=t.charCodeAt(s);q[e>>1]=i,e+=2}q[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},Dt=(function(){var t={env:Lt,wasi_snapshot_preview1:Lt,"GOT.mem":new Proxy(Lt,dt),"GOT.func":new Proxy(Lt,dt)};function e(t,e){var r=t.exports;r=At(r,1024),n.asm=r;var s,i=yt(e);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),wt(r),s=n.asm.__wasm_call_ctors,X.unshift(s),ot()}function r(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!ft(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(m)return new Promise((function(t,e){m(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}j||"function"!=typeof WebAssembly.instantiateStreaming||pt(ct)||ft(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(Dt=n._malloc=n.asm.malloc).apply(null,arguments)}),$t=(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($t=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Bt=(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(Bt=n.stackSave=n.asm.stackSave).apply(null,arguments)}),zt=n.stackRestore=function(){return(zt=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},Vt=n.stackAlloc=function(){return(Vt=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ut=n._setThrew=function(){return(Ut=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Gt(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?Vt(t.length):Dt(t.length),t.subarray||t.slice?F.set(t,r):F.set(new Uint8Array(t),r),r},st=function t(){qt||Zt(),qt||(st=t)};var Wt=!1;function Zt(t){function e(){qt||(qt=!0,n.calledRun=!0,M||(et=!0,mt(X),mt(J),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ht&&function(t){var e=n._main;if(e){var r=(t=t||[]).length+1,s=Vt(4*(r+1));L[s>>2]=Z(h);for(var i=1;i<r;i++)L[(s>>2)+i]=Z(t[i-1]);L[(s>>2)+r]=0;try{Kt(e(r,s),!0)}catch(t){if(t instanceof Gt)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;mt(tt)}()))}t=t||f,rt>0||!Wt&&(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()}(),Wt=!0,rt>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)t=n.preRun.shift(),Q.unshift(t);var t;mt(Q)}(),rt>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),e()}),1)):e()))}function Kt(t,e){e&&vt()&&0===t||(vt()||(n.onExit&&n.onExit(t),M=!0),_(t,new Gt(t)))}if(n.run=Zt,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ht=!0;n.noInitialRun&&(Ht=!1),Zt();const Yt=n,Qt={},Xt=4,Jt=5*Xt,te=2*Xt,ee=2*Xt+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=Yt._ts_init(),ie=I(ae,"i32"),oe=I(ae+Xt,"i32")}initialize(){Yt._ts_parser_new_wasm(),this[0]=I(ae,"i32"),this[1]=I(ae+Xt,"i32")}delete(){Yt._ts_parser_delete(this[0]),Yt._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=Yt._ts_language_version(e);if(r<oe||ie<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Yt._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,r){if("string"==typeof t)ce=(e,r,n)=>t.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,Yt._ts_parser_enable_logger_wasm(this[0],1)):(ue=null,Yt._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let t=s=Yt._calloc(n,ee);for(let e=0;e<n;e++)je(t,r.includedRanges[e]),t+=ee}const i=Yt._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,n);if(!i)throw ce=null,ue=null,new Error("Parsing failed");const o=new pe(Qt,i,this.language,ce);return ce=null,ue=null,o}reset(){Yt._ts_parser_reset(this[0])}setTimeoutMicros(t){Yt._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Yt._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class pe{constructor(t,e,r,n){ge(t),this[0]=e,this.language=r,this.textCallback=n}copy(){const t=Yt._ts_tree_copy(this[0]);return new pe(Qt,t,this.language,this.textCallback)}delete(){Yt._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Xt,t.oldEndIndex,"i32"),N(e+=Xt,t.newEndIndex,"i32"),e+=Xt}(t),Yt._ts_tree_edit_wasm(this[0])}get rootNode(){return Yt._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==pe)throw new TypeError("Argument must be a Tree");Yt._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=I(ae,"i32"),r=I(ae+Xt,"i32"),n=new Array(e);if(e>0){let t=r;for(let r=0;r<e;r++)n[r]=Oe(t),t+=ee;Yt._free(r)}return n}}class fe{constructor(t,e){ge(t),this.tree=e}get typeId(){return be(this),Yt._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return be(this),Yt._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return be(this),Yt._ts_node_end_index_wasm(this.tree[0])}get text(){return me(this.tree,this.startIndex,this.endIndex)}isNamed(){return be(this),1===Yt._ts_node_is_named_wasm(this.tree[0])}hasError(){return be(this),1===Yt._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return be(this),1===Yt._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return be(this),1===Yt._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return be(this),Yt._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return be(this),Yt._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return be(this),Yt._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return be(this),Yt._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return be(this),Yt._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){be(this),Yt._ts_node_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Xt,"i32");if(this._children=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,r),r+=Jt;Yt._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){be(this),Yt._ts_node_named_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Xt,"i32");if(this._namedChildren=new Array(t),t>0){let r=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,r),r+=Jt;Yt._free(e)}}return this._namedChildren}descendantsOfType(t,e,r){Array.isArray(t)||(t=[t]),e||(e=re),r||(r=re);const n=[],s=this.tree.language.types;for(let e=0,r=s.length;e<r;e++)t.includes(s[e])&&n.push(e);const i=Yt._malloc(Xt*n.length);for(let t=0,e=n.length;t<e;t++)N(i+t*Xt,n[t],"i32");be(this),Yt._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,e.row,e.column,r.row,r.column);const o=I(ae,"i32"),a=I(ae+Xt,"i32"),c=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)c[e]=we(this.tree,t),t+=Jt}return Yt._free(a),Yt._free(i),c}get nextSibling(){return be(this),Yt._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return be(this),Yt._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return be(this),Yt._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return be(this),Yt._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return be(this),Yt._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let r=ae+Jt;return N(r,t,"i32"),N(r+Xt,e,"i32"),Yt._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let r=ae+Jt;return N(r,t,"i32"),N(r+Xt,e,"i32"),Yt._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let r=ae+Jt;return Se(r,t),Se(r+te,e),Yt._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let r=ae+Jt;return Se(r,t),Se(r+te,e),Yt._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return be(this),Yt._ts_tree_cursor_new_wasm(this.tree[0]),new he(Qt,this.tree)}toString(){be(this);const t=Yt._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var r=F[t++>>0];if(!r)return e;e+=String.fromCharCode(r)}}(t);return Yt._free(t),e}}class he{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Yt._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){be(t),Ee(this,ae+Jt),Yt._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),Yt._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Yt._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Yt._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Yt._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Yt._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Yt._ts_tree_cursor_end_index_wasm(this.tree[0]);return me(this.tree,t,e)}get startPosition(){return Ee(this),Yt._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Yt._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Yt._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Yt._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Yt._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Yt._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Yt._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Yt._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Yt._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(Yt._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Yt._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=V(Yt._ts_language_symbol_name(this[0],t)));this.fields=new Array(Yt._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Yt._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?V(e):null}}get version(){return Yt._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const r=W(t),n=Yt._malloc(r+1);G(t,n,r+1);const s=Yt._ts_language_symbol_for_name(this[0],n,r,e);return Yt._free(n),s||null}get nodeTypeCount(){return Yt._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Yt._ts_language_symbol_name(this[0],t);return e?V(e):null}nodeTypeIsNamed(t){return!!Yt._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Yt._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=W(t),r=Yt._malloc(e+1);G(t,r,e+1);const n=Yt._ts_query_new(this[0],r,e,ae,ae+Xt);if(!n){const e=I(ae+Xt,"i32"),n=V(r,I(ae,"i32")).length,s=t.substr(n,100).split("\n")[0];let i,o=s.match(ne)[0];switch(e){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${n}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${n}: '${s}'...`),o=""}throw i.index=n,i.length=o.length,Yt._free(r),i}const s=Yt._ts_query_string_count(n),i=Yt._ts_query_capture_count(n),o=Yt._ts_query_pattern_count(n),a=new Array(i),c=new Array(s);for(let t=0;t<i;t++){const e=Yt._ts_query_capture_name_for_id(n,t,ae),r=I(ae,"i32");a[t]=V(e,r)}for(let t=0;t<s;t++){const e=Yt._ts_query_string_value_for_id(n,t,ae),r=I(ae,"i32");c[t]=V(e,r)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),h=new Array(o);for(let t=0;t<o;t++){const e=Yt._ts_query_predicates_for_pattern(n,t,ae),r=I(ae,"i32");f[t]=[],h[t]=[];const s=[];let i=e;for(let e=0;e<r;e++){const e=I(i,"i32"),r=I(i+=Xt,"i32");if(i+=Xt,1===e)s.push({type:"capture",name:a[r]});else if(2===e)s.push({type:"string",value:c[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const e=s[0].value;let r=!0;switch(e){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const e=s[1].name,n=s[2].name;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:p;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:f[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(u[t]),Object.freeze(l[t]),Object.freeze(p[t])}return Yt._free(r),new de(Qt,n,a,h,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}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(Qt,n)}))}}class de{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(){Yt._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");be(t),Yt._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Xt,"i32"),a=I(ae+2*Xt,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let e=0;e<i;e++){const r=I(l,"i32"),n=I(l+=Xt,"i32");l+=Xt;const s=new Array(n);if(l=ye(this,t.tree,l,s),this.textPredicates[r].every((t=>t(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,Yt._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");be(t),Yt._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,r.row,r.column,s);const i=I(ae,"i32"),o=I(ae+Xt,"i32"),a=I(ae+2*Xt,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let e=0;e<i;e++){const e=I(l,"i32"),r=I(l+=Xt,"i32"),n=I(l+=Xt,"i32");if(l+=Xt,u.length=r,l=ye(this,t.tree,l,u),this.textPredicates[e].every((t=>t(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 Yt._free(o),c}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function me(t,e,r){const n=r-e;let s=t.textCallback(e,null,r);for(e+=s.length;e<r;){const n=t.textCallback(e,null,r);if(!(n&&n.length>0))break;e+=n.length,s+=n}return e>r&&(s=s.slice(0,n)),s}function ye(t,e,r,n){for(let s=0,i=n.length;s<i;s++){const i=I(r,"i32"),o=we(e,r+=Xt);r+=Jt,n[s]={name:t.captureNames[i],node:o}}return r}function ge(t){if(t!==Qt)throw new Error("Illegal constructor")}function ve(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function be(t){let e=ae;N(e,t.id,"i32"),N(e+=Xt,t.startIndex,"i32"),N(e+=Xt,t.startPosition.row,"i32"),N(e+=Xt,t.startPosition.column,"i32"),N(e+=Xt,t[0],"i32")}function we(t,e=ae){const r=I(e,"i32");if(0===r)return null;const n=I(e+=Xt,"i32"),s=I(e+=Xt,"i32"),i=I(e+=Xt,"i32"),o=I(e+=Xt,"i32"),a=new fe(Qt,t);return a.id=r,a.startIndex=n,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Xt,t[0],"i32"),N(e+1*Xt,t[1],"i32"),N(e+2*Xt,t[2],"i32")}function xe(t){t[0]=I(ae+0*Xt,"i32"),t[1]=I(ae+1*Xt,"i32"),t[2]=I(ae+2*Xt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Xt,e.column,"i32")}function Ae(t){return{row:I(t,"i32"),column:I(t+Xt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Xt,e.endIndex,"i32"),t+=Xt}function Oe(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=I(t,"i32"),t+=Xt,e.endIndex=I(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=_e,n.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},5530:()=>{},6287:()=>{},1427:(t,e,r)=>{t.exports=r(6762)}},e={};function r(n){var s=e[n];if(void 0!==s)return s.exports;var i=e[n]={id:n,loaded:!1,exports:{}};return t[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.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:()=>Bi,detectionRegExp:()=>$i,mediaTypes:()=>Di,namespace:()=>Vi,parse:()=>zi});var t={};r.r(t),r.d(t,{hasElementSourceMap:()=>fs,includesClasses:()=>_s,includesSymbols:()=>hs,isAnnotationElement:()=>as,isArrayElement:()=>ns,isBooleanElement:()=>es,isCommentElement:()=>cs,isElement:()=>Qn,isLinkElement:()=>is,isMemberElement:()=>ss,isNullElement:()=>ts,isNumberElement:()=>Jn,isObjectElement:()=>rs,isParseResultElement:()=>us,isPrimitiveElement:()=>ps,isRefElement:()=>os,isSourceMapElement:()=>ls,isStringElement:()=>Xn});var e={};r.r(e),r.d(e,{isInfoElement:()=>xi,isMainElement:()=>Ei,isPrincipleElement:()=>Si,isRequirementElement:()=>Ai,isRequirementLevelElement:()=>ji,isScenarioElement:()=>Oi,isStandardElement:()=>Pi,isStandardIdentifierElement:()=>ki});const s=function(){return!1};function i(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function o(t){return function e(r){return 0===arguments.length||i(r)?e:t.apply(this,arguments)}}function a(t){return function e(r,n){switch(arguments.length){case 0:return e;case 1:return i(r)?e:o((function(e){return t(r,e)}));default:return i(r)&&i(n)?e:i(r)?o((function(e){return t(e,n)})):i(n)?o((function(e){return t(r,e)})):t(r,n)}}}const c=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function u(t,e,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!c(n)){for(var s=0;s<t.length;){if("function"==typeof n[t[s]])return n[t[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(n))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}const l=function(){return this.xf["@@transducer/init"]()},p=function(t){return this.xf["@@transducer/result"](t)};var f=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=l,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 h(t){return function(e){return new f(t,e)}}const _=a(u(["all"],h,(function(t,e){for(var r=0;r<e.length;){if(!t(e[r]))return!1;r+=1}return!0})));function d(t){for(var e,r=[];!(e=t.next()).done;)r.push(e.value);return r}function m(t,e,r){for(var n=0,s=r.length;n<s;){if(t(e,r[n]))return!0;n+=1}return!1}function y(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const g="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var v=Object.prototype.toString;const b=function(){return"[object Arguments]"===v.call(arguments)?function(t){return"[object Arguments]"===v.call(t)}:function(t){return y("callee",t)}}();var w=!{toString:null}.propertyIsEnumerable("toString"),E=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],x=function(){return arguments.propertyIsEnumerable("length")}(),S=function(t,e){for(var r=0;r<t.length;){if(t[r]===e)return!0;r+=1}return!1};const A="function"!=typeof Object.keys||x?o((function(t){if(Object(t)!==t)return[];var e,r,n=[],s=x&&b(t);for(e in t)!y(e,t)||s&&"length"===e||(n[n.length]=e);if(w)for(r=E.length-1;r>=0;)y(e=E[r],t)&&!S(n,e)&&(n[n.length]=e),r-=1;return n})):o((function(t){return Object(t)!==t?[]:Object.keys(t)}));const j=o((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function O(t,e,r,n){var s=d(t);function i(t,e){return P(t,e,r.slice(),n.slice())}return!m((function(t,e){return!m(i,e,t)}),d(e),s)}function P(t,e,r,n){if(g(t,e))return!0;var s,i,o=j(t);if(o!==j(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!g(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!g(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===t)return n[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&O(t.entries(),e.entries(),r.concat([t]),n.concat([e]));case"Set":return t.size===e.size&&O(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=A(t);if(c.length!==A(e).length)return!1;var u=r.concat([t]),l=n.concat([e]);for(a=c.length-1;a>=0;){var p=c[a];if(!y(p,e)||!P(e[p],t[p],u,l))return!1;a-=1}return!0}const k=a((function(t,e){return P(t,e,[],[])}));function N(t,e){return function(t,e,r){var n,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(n=1/e;r<t.length;){if(0===(s=t[r])&&1/s===n)return r;r+=1}return-1}if(e!=e){for(;r<t.length;){if("number"==typeof(s=t[r])&&s!=s)return r;r+=1}return-1}return t.indexOf(e,r);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,r);case"object":if(null===e)return t.indexOf(e,r)}for(;r<t.length;){if(k(t[r],e))return r;r+=1}return-1}(e,t,0)>=0}function I(t,e){for(var r=0,n=e.length,s=Array(n);r<n;)s[r]=t(e[r]),r+=1;return s}function M(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 T=function(t){return(t<10?"0":"")+t};const C="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+T(t.getUTCMonth()+1)+"-"+T(t.getUTCDate())+"T"+T(t.getUTCHours())+":"+T(t.getUTCMinutes())+":"+T(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function R(t,e,r){for(var n=0,s=r.length;n<s;)e=t(e,r[n]),n+=1;return e}function F(t){return"[object Object]"===Object.prototype.toString.call(t)}var q=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=l,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function L(t){return function(e){return new q(t,e)}}const D=a(u(["fantasy-land/filter","filter"],L,(function(t,e){return F(e)?R((function(r,n){return t(e[n])&&(r[n]=e[n]),r}),{},A(e)):function(t,e){for(var r=0,n=e.length,s=[];r<n;)t(e[r])&&(s[s.length]=e[r]),r+=1;return s}(t,e)})));const $=a((function(t,e){return D((r=t,function(){return!r.apply(this,arguments)}),e);var r}));function B(t,e){var r=function(r){var n=e.concat([t]);return N(r,n)?"<Circular>":B(r,n)},n=function(t,e){return I((function(e){return M(e)+": "+r(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+I(r,t).join(", ")+"))";case"[object Array]":return"["+I(r,t).concat(n(t,$((function(t){return/^\d+$/.test(t)}),A(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):M(C(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())+")":M(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,A(t)).join(", ")+"}"}}const z=o((function(t){return B(t,[])}));const V=a((function(t,e){if(t===e)return e;function r(t,e){if(t>e!=e>t)return e>t?e:t}var n=r(t,e);if(void 0!==n)return n;var s=r(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=z(t),o=r(i,z(e));return void 0!==o&&o===i?t:e}));var U=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=l,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const G=function(t){return function(e){return new U(t,e)}};function W(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,r){return e.apply(this,arguments)};case 3:return function(t,r,n){return e.apply(this,arguments)};case 4:return function(t,r,n,s){return e.apply(this,arguments)};case 5:return function(t,r,n,s,i){return e.apply(this,arguments)};case 6:return function(t,r,n,s,i,o){return e.apply(this,arguments)};case 7:return function(t,r,n,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,r,n,s,i,o,a,c){return e.apply(this,arguments)};case 9:return function(t,r,n,s,i,o,a,c,u){return e.apply(this,arguments)};case 10:return function(t,r,n,s,i,o,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Z(t,e,r){return function(){for(var n=[],s=0,o=t,a=0;a<e.length||s<arguments.length;){var c;a<e.length&&(!i(e[a])||s>=arguments.length)?c=e[a]:(c=arguments[s],s+=1),n[a]=c,i(c)||(o-=1),a+=1}return o<=0?r.apply(this,n):W(o,Z(t,n,r))}}const K=a((function(t,e){return 1===t?o(e):W(t,Z(t,[],e))}));const H=a(u(["fantasy-land/map","map"],G,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return K(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return R((function(r,n){return r[n]=t(e[n]),r}),{},A(e));default:return I(t,e)}}))),Y=Number.isInteger||function(t){return t<<0===t};function Q(t){return"[object String]"===Object.prototype.toString.call(t)}const X=a((function(t,e){var r=t<0?e.length+t:t;return Q(e)?e.charAt(r):e[r]}));const J=a((function(t,e){if(null!=e)return Y(t)?X(t,e):e[t]}));const tt=a((function(t,e){return H(J(t),e)}));function et(t){return function e(r,n,s){switch(arguments.length){case 0:return e;case 1:return i(r)?e:a((function(e,n){return t(r,e,n)}));case 2:return i(r)&&i(n)?e:i(r)?a((function(e,r){return t(e,n,r)})):i(n)?a((function(e,n){return t(r,e,n)})):o((function(e){return t(r,n,e)}));default:return i(r)&&i(n)&&i(s)?e:i(r)&&i(n)?a((function(e,r){return t(e,r,s)})):i(r)&&i(s)?a((function(e,r){return t(e,n,r)})):i(n)&&i(s)?a((function(e,n){return t(r,e,n)})):i(r)?o((function(e){return t(e,n,s)})):i(n)?o((function(e){return t(r,e,s)})):i(s)?o((function(e){return t(r,n,e)})):t(r,n,s)}}}const rt=o((function(t){return!!c(t)||!!t&&("object"==typeof t&&(!Q(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var nt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function st(t,e,r){return function(n,s,i){if(rt(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[nt])return r(n,s,i[nt]());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 it(t,e,r){for(var n=0,s=r.length;n<s;){if((e=t["@@transducer/step"](e,r[n]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n+=1}return t["@@transducer/result"](e)}const ot=a((function(t,e){return W(t.length,(function(){return t.apply(e,arguments)}))}));function at(t,e,r){for(var n=r.next();!n.done;){if((e=t["@@transducer/step"](e,n.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}n=r.next()}return t["@@transducer/result"](e)}function ct(t,e,r,n){return t["@@transducer/result"](r[n](ot(t["@@transducer/step"],t),e))}const ut=st(it,ct,at);var lt=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function pt(t){return new lt(t)}const ft=et((function(t,e,r){return ut("function"==typeof t?pt(t):t,e,r)}));const ht=o((function(t){return function(){return t}}));const _t=o((function(t){return K(ft(V,0,tt("length",t)),(function(){for(var e=0,r=t.length;e<r;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function dt(t,e,r){for(var n=r.next();!n.done;)e=t(e,n.value),n=r.next();return e}function mt(t,e,r,n){return r[n](t,e)}const yt=st(R,mt,dt);const gt=a((function(t,e){return"function"==typeof e["fantasy-land/ap"]?e["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(e):"function"==typeof t?function(r){return t(r)(e(r))}:yt((function(t,r){return function(t,e){var r;e=e||[];var n=(t=t||[]).length,s=e.length,i=[];for(r=0;r<n;)i[i.length]=t[r],r+=1;for(r=0;r<s;)i[i.length]=e[r],r+=1;return i}(t,H(r,e))}),[],t)}));const vt=a((function(t,e){return t.apply(this,e)}));function bt(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const wt=a((function(t,e){return t&&e}));const Et=a((function(t,e){var r=K(t,e);return K(t,(function(){return R(gt,H(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const xt=o((function(t){return Et(t.length,t)}));const St=a((function(t,e){return bt(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:xt(wt)(t,e)}));function At(t,e,r){if(r||(r=new jt),function(t){var e=typeof t;return null==t||"object"!=e&&"function"!=e}(t))return t;var n,s=function(n){var s=r.get(t);if(s)return s;for(var i in r.set(t,n),t)Object.prototype.hasOwnProperty.call(t,i)&&(n[i]=e?At(t[i],!0,r):t[i]);return n};switch(j(t)){case"Object":return s(Object.create(Object.getPrototypeOf(t)));case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return n=t,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var jt=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){const r=this.hash(t);let n=this.map[r];n||(this.map[r]=n=[]),n.push([t,e]),this.length+=1},t.prototype.hash=function(t){let e=[];for(var r in t)e.push(Object.prototype.toString.call(t[r]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(const e in this.map){const r=this.map[e];for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}}return}const e=this.hash(t),r=this.map[e];if(r)for(let e=0;e<r.length;e+=1){const n=r[e];if(n[0]===t)return n[1]}},t}();const Ot=o((function(t){return null!=t&&"function"==typeof t.clone?t.clone():At(t,!0)}));const Pt=xt(o((function(t){return!t})));function kt(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function Nt(t,e){return function(){var r=arguments.length;if(0===r)return e();var n=arguments[r-1];return c(n)||"function"!=typeof n[t]?e.apply(this,arguments):n[t].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const It=et(Nt("slice",(function(t,e,r){return Array.prototype.slice.call(r,t,e)})));const Mt=o(Nt("tail",It(1,1/0)));function Tt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return W(arguments[0].length,ft(kt,arguments[0],Mt(arguments)))}const Ct=o((function(t){return Q(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Rt(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Tt.apply(this,Ct(arguments))}const Ft=a((function(t,e){if(c(t)){if(c(e))return t.concat(e);throw new TypeError(z(e)+" is not an array")}if(Q(t)){if(Q(e))return t+e;throw new TypeError(z(e)+" is not a string")}if(null!=t&&bt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&bt(t.concat))return t.concat(e);throw new TypeError(z(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const qt=a((function(t,e){return K(ft(V,0,tt("length",e)),(function(){var r=arguments,n=this;return t.apply(n,I((function(t){return t.apply(n,r)}),e))}))}));const Lt=o((function(t){return K(t.length,t)}));const Dt=a((function(t,e){return null==e||e!=e?t:e}));var $t=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=l,t.prototype["@@transducer/result"]=p,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function Bt(t){return function(e){return new $t(t,e)}}const zt=a(u(["dropWhile"],Bt,(function(t,e){for(var r=0,n=e.length;r<n&&t(e[r]);)r+=1;return It(r,1/0,e)})));var Vt=o((function(t){return null!=t&&"function"==typeof t["fantasy-land/empty"]?t["fantasy-land/empty"]():null!=t&&null!=t.constructor&&"function"==typeof t.constructor["fantasy-land/empty"]?t.constructor["fantasy-land/empty"]():null!=t&&"function"==typeof t.empty?t.empty():null!=t&&null!=t.constructor&&"function"==typeof t.constructor.empty?t.constructor.empty():c(t)?[]:Q(t)?"":F(t)?{}:b(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 Ut=Vt;const Gt=o((function(t){return K(t.length,(function(e,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=e,t.apply(this,n)}))}));const Wt=a((function(t,e){return t>e}));const Zt=o((function(t){return null==t}));const Kt=a((function(t,e){if(0===t.length||Zt(e))return!1;for(var r=e,n=0;n<t.length;){if(Zt(r)||!y(t[n],r))return!1;r=r[t[n]],n+=1}return!0}));const Ht=a((function(t,e){return Kt([t],e)}));const Yt=a((function(t,e){return!Zt(e)&&t in e}));const Qt=X(0);var Xt=function(t,e){switch(arguments.length){case 0:return Xt;case 1:return function e(r){return 0===arguments.length?e:g(t,r)};default:return g(t,e)}};const Jt=Xt;function te(t){return t}const ee=o(te);const re=a(N);const ne=It(0,-1);const se="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),r=1,n=arguments.length;r<n;){var s=arguments[r];if(null!=s)for(var i in s)y(i,s)&&(e[i]=s[i]);r+=1}return e};const ie=a((function(t,e){return K(t+1,(function(){var r=arguments[t];if(null!=r&&bt(r[e]))return r[e].apply(r,Array.prototype.slice.call(arguments,0,t));throw new TypeError(z(r)+' does not have a method named "'+e+'"')}))}));const oe=o((function(t){return null!=t&&k(t,Ut(t))}));const ae=ie(1,"join");const ce=X(-1);const ue=a((function(t,e){return t.map((function(t){for(var r,n=e,s=0;s<t.length;){if(null==n)return;r=t[s],n=Y(r)?X(r,n):n[r],s+=1}return n}))}));const le=a((function(t,e){return ue([t],e)[0]}));const pe=a((function(t,e){return R((function(r,n){return r[n]=t(e[n],n,e),r}),{},A(e))}));const fe=a((function(t,e){return se({},t,e)}));const he=a((function(t,e){for(var r={},n={},s=0,i=t.length;s<i;)n[t[s]]=1,s+=1;for(var o in e)n.hasOwnProperty(o)||(r[o]=e[o]);return r}));const _e=et((function(t,e,r){return Dt(t,le(e,r))}));const de=et((function(t,e,r){return t(le(e,r))}));const me=a((function(t,e){for(var r={},n=0;n<t.length;)t[n]in e&&(r[t[n]]=e[t[n]]),n+=1;return r}));const ye=et((function(t,e,r){return Dt(t,J(e,r))}));const ge=et((function(t,e,r){return t(J(e,r))}));const ve=et((function(t,e,r){return r.replace(t,e)}));const be=ie(1,"split");const we=K(4,(function(t,e,r,n){return ut(t("function"==typeof e?pt(e):e),r,n)}));var Ee="\t\n\v\f\r                 \u2028\u2029\ufeff";const xe=o("function"==typeof String.prototype.trim&&!Ee.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+Ee+"]["+Ee+"]*"),r=new RegExp("["+Ee+"]["+Ee+"]*$");return t.replace(e,"").replace(r,"")});const Se=ht(void 0);const Ae=k(Se());const je=Pt(Ae);var Oe=r(7952);const Pe=k(null);var ke=Pt(Pe);function Ne(t){return Ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ne(t)}const Ie=K(1,St(ke,(function(t){return"object"===Ne(t)})));const Me=K(1,Tt(j,Jt("GeneratorFunction")));const Te=K(1,Tt(j,Jt("AsyncFunction")));const Ce=_t([Tt(j,Jt("Function")),Me,Te]);var Re=Tt(j,Jt("Object")),Fe=Tt(z,k(z(Object))),qe=de(St(Ce,Fe),["constructor"]);const Le=K(1,(function(t){if(!Ie(t)||!Re(t))return!1;var e=Object.getPrototypeOf(t);return!!Pe(e)||qe(e)}));class De extends Oe.RP{constructor(t,e,r){super(t,e,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const $e=De;class Be extends Oe.RP{constructor(t,e,r){super(t,e,r),this.element="comment"}}const ze=Be;class Ve extends Oe.ON{constructor(t,e,r){super(t,e,r),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(Ae(e))return!1;const r=this.content.findIndex((t=>t===e));return-1!==r&&(this.content[r]=t,!0)}}const Ue=Ve;class Ge extends Oe.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 Oe.ON([t.start.row,t.start.column,t.start.char]),r=new Oe.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),r.classes.push("position"),this.push(e).push(r)}}const We=Ge;class Ze extends Oe.lS{constructor(){super(),this.register("annotation",$e),this.register("comment",ze),this.register("parseResult",Ue),this.register("sourceMap",We)}}const Ke=new Ze,He=t=>{const e=new Ze;return Le(t)&&e.use(t),e},Ye=Ke;const Qe=K(1,Tt(j,Jt("String"))),Xe=r.p+"23aac571c96605dc25219087ad291441.wasm",Je=globalThis.fetch;Ce(Je)&&(globalThis.fetch=(...t)=>Qe(t[0])&&t[0].endsWith("tree-sitter.wasm")?Je.apply(globalThis,[Xe,Mt(t)]):Je.apply(globalThis,t));var tr=r(9794),er=r(1427);const rr=class extends er{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,Le(r)&&Yt("cause",r)&&!Yt("cause",this)){const{cause:t}=r;this.cause=t,t instanceof Error&&Yt("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}};class nr extends Error{static[Symbol.hasInstance](t){return Function.prototype[Symbol.hasInstance].call(nr,t)||Function.prototype[Symbol.hasInstance].call(rr,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,Le(e)&&Yt("cause",e)&&!Yt("cause",this)){const{cause:t}=e;this.cause=t,t instanceof Error&&Yt("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}}const sr=nr,ir=r.p+"d396281e11774e0afa7a40d620779b6d.wasm";let or=null,ar=null;const cr=async t=>{if(null===or&&null===ar)ar=tr.init().then((()=>tr.Language.load(ir))).then((t=>{const e=new tr;return e.setLanguage(t),e})).finally((()=>{ar=null})),or=await ar;else if(null===or&&null!==ar)or=await ar;else if(null===or)throw new sr("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return or.parse(t)};var ur=r(6591);const lr=class extends sr{constructor(t,e){super(t,e),void 0!==e&&Object.assign(this,he(["cause"],e))}};const pr=class extends lr{};const fr=class extends pr{constructor(t,e){super(t,e),void 0!==e&&(this.specificTagName=e.specificTagName,this.explicitTagName=e.explicitTagName,this.tagKind=e.tagKind,this.tagPosition=e.tagPosition,this.nodeCanonicalContent=e.nodeCanonicalContent)}},hr=ur({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}}});let _r=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const dr=ur(hr,{statics:{type:"tag"},props:{explicitName:"",kind:null},init({explicitName:t,kind:e}={}){this.explicitName=t,this.kind=e}});const mr=k("");const yr=K(1,Tt(j,Jt("Number")));var gr=St(yr,isFinite);var vr=K(1,gr);const br=Ce(Number.isFinite)?K(1,ot(Number.isFinite,Number)):vr;var wr=St(br,qt(k,[Math.floor,ee]));var Er=K(1,wr);const xr=Ce(Number.isInteger)?K(1,ot(Number.isInteger,Number)):Er;const Sr=Pt(br);const Ar=K(1,St(yr,Wt(0)));const jr=function(t,e){var r=Number(e);if(r!==e&&(r=0),Ar(r))throw new RangeError("repeat count must be non-negative");if(Sr(r))throw new RangeError("repeat count must be less than infinity");if(r=Math.floor(r),0===t.length||0===r)return"";if(t.length*r>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var n=t.length*r;r=Math.floor(Math.log(r)/Math.log(2));for(var s=t;r;)s+=t,r-=1;return s+=s.substring(0,n-s.length)};var Or=Lt(jr),Pr=Gt(ie(1,"repeat"));const kr=Ce(String.prototype.repeat)?Pr:Or;var Nr=ve(/[\s\uFEFF\xA0]+$/,""),Ir=ie(0,"trimEnd");const Mr=Ce(String.prototype.trimEnd)?Ir:Nr;var Tr=ve(/^[\s\uFEFF\xA0]+/,""),Cr=ie(0,"trimStart");const Rr=Ce(String.prototype.trimStart)?Cr:Tr;const Fr=Gt(re);const qr=Lt((function(t,e){return Tt(be(""),zt(Fr(t)),ae(""))(e)}));const Lr=Gt(Ft);var Dr=r(2770);const $r=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,Br=t=>{const e=(t=>{const e=t.match($r),r=_e("",["groups","indentation"],e);return mr(r)?void 0:parseInt(r,10)})(t);if(xr(e))return kr(" ",e);const r=_e("",[1],t.split("\n")),n=_e(0,["groups","indentation","length"],r.match(/^(?<indentation>[ ]*)/));return kr(" ",n)},zr=t=>{const e=t.match($r),r=_e("",["groups","chomping"],e);return mr(r)?void 0:r},Vr=(t,e)=>Ae(t)?`${Mr(e)}\n`:"-"===t?Mr(e):e,Ur=t=>t.replace(/\r\n/g,"\n"),Gr=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,r)=>e?t:` ${r.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Wr=Lt(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),Zr=Tt(Ur,xe,Gr,be("\n"),H(Rr),ae("\n")),Kr=Tt(Ur,xe,Wr("'"),Gr,be("\n"),H(Rr),ae("\n")),Hr=Tt(Ur,xe,Wr('"'),(t=>t.replace(/\\\n\s*/g,"")),Gr,Dr.S6,be("\n"),H(Rr),ae("\n"));let Yr=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),Qr=function(t){return t.Flow="Flow",t.Block="Block",t}({});const Xr=ur({props:{styleGroup:null,style:null}}),Jr=ur({methods:{test:t=>t.tag.kind===_r.Scalar&&"string"==typeof t.content,canonicalFormat(t){let e=t.content;const r=t.clone();return t.style===Yr.Plain?e=Zr(t.content):t.style===Yr.SingleQuoted?e=Kr(t.content):t.style===Yr.DoubleQuoted?e=Hr(t.content):t.style===Yr.Literal?e=(t=>{const e=Br(t),r=zr(t),n=Ur(t),s=Mt(n.split("\n")),i=Rt(H(qr(e)),H(Lr("\n"))),o=we(i,Ft,"",s);return Vr(r,o)})(t.content):t.style===Yr.Folded&&(e=(t=>{const e=Br(t),r=zr(t),n=Ur(t),s=Mt(n.split("\n")),i=Rt(H(qr(e)),H(Lr("\n"))),o=we(i,Ft,"",s),a=Gr(o);return Vr(r,a)})(t.content)),r.content=e,r},resolve:t=>t}}),tn=ur(Jr,{props:{tag:""}}),en=ur(tn,{statics:{uri:"tag:yaml.org,2002:map"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===_r.Mapping,resolve:t=>t}}),rn=ur(tn,{statics:{uri:"tag:yaml.org,2002:seq"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===_r.Sequence,resolve:t=>t}}),nn=ur(tn,{statics:{uri:"tag:yaml.org,2002:str"},init(t,{stamp:e}){this.tag=e.uri},methods:{resolve:t=>t}}),sn=ur({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(en()),this.registerTag(rn()),this.registerTag(nn())},methods:{toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===_r.Scalar?e=nn.uri:t.tag.kind===_r.Sequence?e=rn.uri:t.tag.kind===_r.Mapping&&(e=en.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e},registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})},registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this},overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this},resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let r=t;t.tag.kind===_r.Scalar&&(r=Jr().canonicalFormat(t));const n=this.tags.find((t=>(null==t?void 0:t.tag)===e));if(void 0===n)throw new fr(`Tag "${e}" was not recognized.`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:Ot(t.tag.position)});if(!n.test(r))throw new fr(`Node couldn't be resolved against the tag "${e}"`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:Ot(t.tag.position),nodeCanonicalContent:r.content});return n.resolve(r)}}}),on=ur(tn,{statics:{uri:"tag:yaml.org,2002:bool"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^(true|false)$/.test(t.content),resolve(t){const e="true"===t.content,r=t.clone();return r.content=e,r}}}),an=ur(tn,{statics:{uri:"tag:yaml.org,2002:float"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content),resolve(t){const e=parseFloat(t.content),r=t.clone();return r.content=e,r}}}),cn=ur(tn,{statics:{uri:"tag:yaml.org,2002:int"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)$/.test(t.content),resolve(t){const e=parseInt(t.content,10),r=t.clone();return r.content=e,r}}}),un=ur(tn,{statics:{uri:"tag:yaml.org,2002:null"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^null$/.test(t.content),resolve(t){const e=t.clone();return e.content=null,e}}}),ln=ur(sn,{init(){this.registerTag(on(),!0),this.registerTag(an(),!0),this.registerTag(cn(),!0),this.registerTag(un(),!0)},methods:{toSpecificTagName(t){let e=sn.compose.methods.toSpecificTagName.call(this,t);if("?"===e)if(t.tag.vkind===_r.Sequence)e=rn.uri;else if(t.tag.kind===_r.Mapping)e=en.uri;else if(t.tag.kind===_r.Scalar){const r=this.tags.find((e=>e.test(t)));e=(null==r?void 0:r.tag)||"?"}return e}}}),pn=(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},fn={},hn=t=>null==t?void 0:t.type,_n=t=>"string"==typeof hn(t),dn=(t,e,{keyMap:r=null,state:n={},breakSymbol:s=fn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=pn,nodeTypeGetter:c=hn,nodePredicate:u=_n,detectCycles:l=!0}={})=>{const p=r||{};let f,h,_=Array.isArray(t),d=[t],m=-1,y=[];const g=[],v=[];let b=t;do{m+=1;const t=m===d.length;let r,w;const E=t&&0!==y.length;if(t){if(r=0===v.length?void 0:g.pop(),w=h,h=v.pop(),E){w=_?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let t=0;for(let e=0;e<y.length;e+=1){let r=y[e][0];const n=y[e][1];_&&(r-=t),_&&n===i?(w.splice(r,1),t+=1):w[r]=n}}m=f.index,d=f.keys,y=f.edits,_=f.inArray,f=f.prev}else{if(r=h?_?m:d[m]:void 0,w=h?h[r]:b,w===i||void 0===w)continue;h&&g.push(r)}if(v.includes(w))continue;let x;if(!Array.isArray(w)){if(!u(w))throw new sr(`Invalid AST Node: ${JSON.stringify(w)}`);if(l&&v.includes(w)){g.pop();continue}const i=a(e,c(w),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;if(x=i.call(e,w,r,h,g,v),x===s)break;if(x===o){if(!t){g.pop();continue}}else if(void 0!==x&&(y.push([r,x]),!t)){if(!u(x)){g.pop();continue}w=x}}}void 0===x&&E&&y.push([r,w]),t||(f={inArray:_,index:m,keys:d,edits:y,prev:f},_=Array.isArray(w),d=_?w:p[c(w)]||[],m=-1,y=[],h&&v.push(h),h=w)}while(void 0!==f);return 0!==y.length&&([,b]=y[y.length-1]),b};dn[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=null,state:n={},breakSymbol:s=fn,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=pn,nodeTypeGetter:c=hn,nodePredicate:u=_n,detectCycles:l=!0}={})=>{const p=r||{};let f,h,_=Array.isArray(t),d=[t],m=-1,y=[];const g=[],v=[];let b=t;do{m+=1;const t=m===d.length;let r,w;const E=t&&0!==y.length;if(t){if(r=0===v.length?void 0:g.pop(),w=h,h=v.pop(),E){w=_?w.slice():Object.create(Object.getPrototypeOf(w),Object.getOwnPropertyDescriptors(w));let t=0;for(let e=0;e<y.length;e+=1){let r=y[e][0];const n=y[e][1];_&&(r-=t),_&&n===i?(w.splice(r,1),t+=1):w[r]=n}}m=f.index,d=f.keys,y=f.edits,_=f.inArray,f=f.prev}else{if(r=h?_?m:d[m]:void 0,w=h?h[r]:b,w===i||void 0===w)continue;h&&g.push(r)}let x;if(!Array.isArray(w)){if(!u(w))throw new sr(`Invalid AST Node: ${JSON.stringify(w)}`);if(l&&v.includes(w)){g.pop();continue}const i=a(e,c(w),t);if(i){for(const[t,r]of Object.entries(n))e[t]=r;if(x=await i.call(e,w,r,h,g,v),x===s)break;if(x===o){if(!t){g.pop();continue}}else if(void 0!==x&&(y.push([r,x]),!t)){if(!u(x)){g.pop();continue}w=x}}}void 0===x&&E&&y.push([r,w]),t||(f={inArray:_,index:m,keys:d,edits:y,prev:f},_=Array.isArray(w),d=_?w:p[c(w)]||[],m=-1,y=[],h&&v.push(h),h=w)}while(void 0!==f);return 0!==y.length&&([,b]=y[y.length-1]),b};const mn=ur({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}}),yn=ur({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),gn=ur(hr,{statics:{type:"anchor"},props:{name:null},init({name:t=null}={}){this.name=t}}),vn=ur(hr,{props:{anchor:null,tag:null,style:null,styleGroup:null},init({anchor:t=null,tag:e=null,style:r=null,styleGroup:n=null}={}){this.anchor=t,this.tag=e,this.style=r,this.styleGroup=n}}),bn=ur(vn,{statics:{type:"scalar"},props:{content:""},init({content:t}={}){this.content=t}}),wn=ur(hr,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}}),En=(t,e)=>(null==e?void 0:e.type)===t,xn=(En.bind(void 0,"literal"),En.bind(void 0,"position"),En.bind(void 0,"point"),En.bind(void 0,"parseResult"),En.bind(void 0,"stream"),En.bind(void 0,"document")),Sn=En.bind(void 0,"mapping"),An=En.bind(void 0,"sequence"),jn=En.bind(void 0,"keyValuePair"),On=(En.bind(void 0,"tag"),En.bind(void 0,"scalar")),Pn=En.bind(void 0,"alias"),kn=(En.bind(void 0,"directive"),En.bind(void 0,"comment")),Nn=ur(hr,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((t=>xn(t)||kn(t))):[]},enumerable:!0}}}),In=ur(hr,{statics:{type:"parseResult"},methods:{get rootNode(){return Qt(this.children)}}}),Mn=ur(hr,{statics:{type:"directive"},props:{name:null,parameters:null},init({name:t=null,parameters:e={}}={}){this.name=t,this.parameters=fe({version:null,handle:null,prefix:null},e)}}),Tn=ur(hr,{statics:{type:"document"}}),Cn=ur(vn,{}),Rn=ur(Cn,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(jn):[]},enumerable:!0}}}),Fn=ur(hr,Xr,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((t=>On(t)||Sn(t)||An(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>On(t)||Sn(t)||An(t)||Pn(t))(e)))[0]},enumerable:!0}}}),qn=ur(Cn,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>An(t)||Sn(t)||On(t)||Pn(t))):[]},enumerable:!0}}}),Ln=ur(hr,{statics:{type:"comment"},props:{content:null},init({content:t=null}={}){this.content=t}}),Dn=ur(hr,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}});const $n=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("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}get tag(){let{previousSibling:t}=this;for(;void 0!==t&&"tag"!==t.type;)({previousSibling:t}=t);return t}get anchor(){let{previousSibling:t}=this;for(;void 0!==t&&"anchor"!==t.type;)({previousSibling:t}=t);return t}get firstNamedChild(){return this.children.find((t=>t.isNamed))}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}setPreviousSibling(t){this.previousSibling=t}pushChildren(...t){this.children.push(...t)}},Bn={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},zn=t=>Array.isArray(t)||_n(t),Vn=ur({props:{schema:null},init(){const t=t=>{const e=mn({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),r=mn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return yn({start:e,end:r})},e=e=>{const{tag:r}=e,n=(null==r?void 0:r.text)||("plain_scalar"===e.type?"?":"!"),s=e.type.endsWith("mapping")?_r.Mapping:e.type.endsWith("sequence")?_r.Sequence:_r.Scalar,i=r?t(r):null;return dr({explicitName:n,kind:s,position:i})},r=e=>{const{anchor:r}=e;return void 0===r?null:gn({name:r.text,position:t(r)})},n=t=>e=>"string"==typeof(null==e?void 0:e.type)&&e.type.endsWith(t),s=n("scalar"),i=n("mapping"),o=n("sequence"),a=t=>("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.keyNode,c=t=>("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.valueNode,u=e=>{const r=mn({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,i=(null==s?void 0:s.children)||[],o=i.find(n("tag")),a=i.find(n("anchor")),c=dr(void 0!==o?{explicitName:o.text,kind:_r.Scalar,position:t(o)}:{explicitName:"?",kind:_r.Scalar}),u=void 0!==a?gn({name:a.text,position:t(a)}):null;return bn({content:"",position:yn({start:r,end:r}),tag:c,anchor:u,styleGroup:Qr.Flow,style:Yr.Plain})},l=e=>{const r=mn({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,i=(null==s?void 0:s.children)||[],o=i.find(n("tag")),a=i.find(n("anchor")),c=dr(void 0!==o?{explicitName:o.text,kind:_r.Scalar,position:t(o)}:{explicitName:"?",kind:_r.Scalar}),u=void 0!==a?gn({name:a.text,position:t(a)}):null;return bn({content:"",position:yn({start:r,end:r}),tag:c,anchor:u,styleGroup:Qr.Flow,style:Yr.Plain})};this.enter=function(e){if(e instanceof $n&&!e.isNamed){const r=t(e),n=e.type||e.text,{isMissing:s}=e;return wn({value:n,position:r,isMissing:s})}},this.stream={enter(e){const r=t(e);return Nn({children:e.children,position:r,isMissing:e.isMissing})},leave:t=>In({children:[t]})},this.yaml_directive={enter(e){var r;const n=t(e),s=(null==e||null===(r=e.firstNamedChild)||void 0===r?void 0:r.text)||null;return Mn({position:n,name:"%YAML",parameters:{version:s}})}},this.tag_directive={enter(e){const r=t(e),n=e.children[0],s=e.children[1],i=Mn({position:r,name:"%TAG",parameters:{handle:(null==n?void 0:n.text)||null,prefix:(null==s?void 0:s.text)||null}});return this.schema.registerTagDirective(i),i}},this.reserved_directive={enter(e){const r=t(e),n=e.children[0],s=e.children[1],i=e.children[2];return Mn({position:r,name:(null==n?void 0:n.text)||null,parameters:{handle:(null==s?void 0:s.text)||null,prefix:(null==i?void 0:i.text)||null}})}},this.document={enter(e){const r=t(e);return Tn({children:e.children,position:r,isMissing:e.isMissing})},leave(t){t.children=t.children.flat()}},this.block_node={enter:t=>t.children},this.flow_node={enter(t){const[n]=t.children.slice(-1);if(s(n)||i(n)||o(n))return t.children;const a=mn({row:n.endPosition.row,column:n.endPosition.column,char:n.endIndex}),c=bn({content:"",anchor:r(n),tag:e(n),position:yn({start:a,end:a}),styleGroup:Qr.Flow,style:Yr.Plain});return[...t.children,c]}},this.tag={enter:()=>null},this.anchor={enter:()=>null},this.block_mapping={enter(n){const s=t(n),i=e(n),o=r(n),a=Rn({children:n.children,position:s,anchor:o,tag:i,styleGroup:Qr.Block,style:Yr.NextLine,isMissing:n.isMissing});return this.schema.resolve(a)}},this.block_mapping_pair={enter(e){const r=t(e),n=[...e.children];if(a(e)){const t=u(e);n.unshift(t)}if(c(e)){const t=l(e);n.push(t)}return Fn({children:n,position:r,styleGroup:Qr.Block,isMissing:e.isMissing})}},this.flow_mapping={enter(n){const s=t(n),i=e(n),o=r(n),a=Rn({children:n.children,position:s,anchor:o,tag:i,styleGroup:Qr.Flow,style:Yr.Explicit,isMissing:n.isMissing});return this.schema.resolve(a)}},this.flow_pair={enter(e){const r=t(e),n=[...e.children];if(a(e)){const t=u(e);n.unshift(t)}if(c(e)){const t=l(e);n.push(t)}return Fn({children:n,position:r,styleGroup:Qr.Flow,isMissing:e.isMissing})}},this.keyValuePair={leave(t){t.children=t.children.flat()}},this.block_sequence={enter(n){const s=t(n),i=e(n),o=r(n),a=qn({children:n.children,position:s,anchor:o,tag:i,styleGroup:Qr.Block,style:Yr.NextLine});return this.schema.resolve(a)}},this.block_sequence_item={enter(t){if(t.children.length>1)return t.children;const e=mn({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return[bn({content:"",anchor:null,tag:dr({explicitName:"?",kind:_r.Scalar}),position:yn({start:e,end:e}),styleGroup:Qr.Flow,style:Yr.Plain})]}},this.flow_sequence={enter(n){const s=t(n),i=e(n),o=r(n),a=qn({children:n.children.flat(),position:s,anchor:o,tag:i,styleGroup:Qr.Flow,style:Yr.Explicit});return this.schema.resolve(a)}},this.sequence={leave(t){t.children=t.children.flat(1/0)}},this.plain_scalar={enter(n){const s=t(n),i=e(n),o=r(n),a=bn({content:n.text,anchor:o,tag:i,position:s,styleGroup:Qr.Flow,style:Yr.Plain});return this.schema.resolve(a)}},this.single_quote_scalar={enter(n){const s=t(n),i=e(n),o=r(n),a=bn({content:n.text,anchor:o,tag:i,position:s,styleGroup:Qr.Flow,style:Yr.SingleQuoted});return this.schema.resolve(a)}},this.double_quote_scalar={enter(n){const s=t(n),i=e(n),o=r(n),a=bn({content:n.text,anchor:o,tag:i,position:s,styleGroup:Qr.Flow,style:Yr.DoubleQuoted});return this.schema.resolve(a)}},this.block_scalar={enter(n){const s=t(n),i=e(n),o=r(n),a=n.text.startsWith("|")?Yr.Literal:n.text.startsWith(">")?Yr.Folded:null,c=bn({content:n.text,anchor:o,tag:i,position:s,styleGroup:Qr.Block,style:a});return this.schema.resolve(c)}},this.comment={enter:t=>Ln({content:t.text})},this.ERROR=function(e,r,n,s){const i=t(e),o=Dn({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?In({children:[o]}):o}}}),Un=Vn,Gn=(t,e)=>"function"==typeof(null==e?void 0:e[t]),Wn=t=>null!=t&&Object.prototype.hasOwnProperty.call(t,"_storedElement")&&Object.prototype.hasOwnProperty.call(t,"_content"),Zn=(t,e)=>{var r;return(null==e||null===(r=e.primitive)||void 0===r?void 0:r.call(e))===t},Kn=(t,e)=>{var r,n;return(null==e||null===(r=e.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,t))||!1},Hn=(t,e)=>(null==e?void 0:e.element)===t,Yn=t=>t({hasMethod:Gn,hasBasicElementProps:Wn,primitiveEq:Zn,isElementType:Hn,hasClass:Kn}),Qn=Yn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Oe.W_||t(r)&&e(void 0,r))),Xn=Yn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Oe.RP||t(r)&&e("string",r))),Jn=Yn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Oe.VL||t(r)&&e("number",r))),ts=Yn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Oe.zr||t(r)&&e("null",r))),es=Yn((({hasBasicElementProps:t,primitiveEq:e})=>r=>r instanceof Oe.hh||t(r)&&e("boolean",r))),rs=Yn((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Oe.Sb||t(n)&&e("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),ns=Yn((({hasBasicElementProps:t,primitiveEq:e,hasMethod:r})=>n=>n instanceof Oe.ON&&!(n instanceof Oe.Sb)||t(n)&&e("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),ss=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oe.c6||t(n)&&e("member",n)&&r(void 0,n))),is=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oe.EA||t(n)&&e("link",n)&&r(void 0,n))),os=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Oe.tK||t(n)&&e("ref",n)&&r(void 0,n))),as=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $e||t(n)&&e("annotation",n)&&r("array",n))),cs=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ze||t(n)&&e("comment",n)&&r("string",n))),us=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ue||t(n)&&e("parseResult",n)&&r("array",n))),ls=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof We||t(n)&&e("sourceMap",n)&&r("array",n))),ps=t=>Hn("object",t)||Hn("array",t)||Hn("boolean",t)||Hn("number",t)||Hn("string",t)||Hn("null",t)||Hn("member",t),fs=t=>{var e,r;return ls(null==t||null===(e=t.meta)||void 0===e||null===(r=e.get)||void 0===r?void 0:r.call(e,"sourceMap"))},hs=(t,e)=>{if(0===t.length)return!0;const r=e.attributes.get("symbols");return!!ns(r)&&_(Fr(r.toValue()),t)},_s=(t,e)=>0===t.length||_(Fr(e.classes.toValue()),t),ds=t=>rs(t)?"ObjectElement":ns(t)?"ArrayElement":ss(t)?"MemberElement":Xn(t)?"StringElement":es(t)?"BooleanElement":Jn(t)?"NumberElement":ts(t)?"NullElement":is(t)?"LinkElement":os(t)?"RefElement":void 0,ms=Tt(ds,Qe),ys={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},gs=(ur({props:{result:[],predicate:s,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=ys,...n}={})=>dn(t,e,{keyMap:r,nodeTypeGetter:ds,nodePredicate:ms,...n}));gs[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:r=ys,...n}={})=>dn[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:r,nodeTypeGetter:ds,nodePredicate:ms,...n});const vs=Pt(Ce);const bs=St(K(1,Ce(Array.isArray)?Array.isArray:Tt(j,Jt("Array"))),oe);const ws=K(3,(function(t,e,r){var n=le(t,r),s=le(ne(t),r);if(!vs(n)&&!bs(t)){var i=ot(n,s);return vt(i,e)}})),Es=()=>({predicates:{...t},namespace:Ye}),xs=(t,e,r={})=>{if(0===e.length)return t;const n=ye(Es,"toolboxCreator",r),s=ye({},"visitorOptions",r),i=ye(ds,"nodeTypeGetter",s),o=n(),a=e.map((t=>t(o))),c=((t,{visitFnGetter:e=pn,nodeTypeGetter:r=hn}={})=>{const n=new Array(t.length);return{enter(s,...i){for(let o=0;o<t.length;o+=1)if(null==n[o]){const a=e(t[o],r(s),!1);if("function"==typeof a){const e=a.call(t[o],s,...i);if(!1===e)n[o]=s;else if(e===fn)n[o]=fn;else if(void 0!==e)return e}}},leave(s,...i){for(let o=0;o<t.length;o+=1)if(null==n[o]){const a=e(t[o],r(s),!0);if("function"==typeof a){const e=a.call(t[o],s,...i);if(e===fn)n[o]=fn;else if(void 0!==e&&!1!==e)return e}}else n[o]===s&&(n[o]=null)}}})(a.map(ye({},"visitor")),{nodeTypeGetter:i});a.forEach(ws(["pre"],[]));const u=gs(t,c,s);return a.forEach(ws(["post"],[])),u},Ss=(t,{Type:e,plugins:r=[]})=>{const n=new e(t);return xs(n,r,{toolboxCreator:Es,visitorOptions:{nodeTypeGetter:ds}})},As=t=>(e,r={})=>Ss(e,{...r,Type:t});Oe.Sb.refract=As(Oe.Sb),Oe.ON.refract=As(Oe.ON),Oe.RP.refract=As(Oe.RP),Oe.hh.refract=As(Oe.hh),Oe.zr.refract=As(Oe.zr),Oe.VL.refract=As(Oe.VL),Oe.EA.refract=As(Oe.EA),Oe.tK.refract=As(Oe.tK),$e.refract=As($e),ze.refract=As(ze),Ue.refract=As(Ue),We.refract=As(We);const js={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...ys},Os=t=>Qn(t)?ds(t):hn(t),Ps=t=>Qn(t)||_n(t)||Array.isArray(t),ks=ur({props:{sourceMap:!1,processedDocumentCount:0,annotations:[],namespace:null},init(){const t=(t,e)=>{if(!this.sourceMap)return;const r=new We;r.position=t.position,r.astNode=t,e.meta.set("sourceMap",r)};this.namespace=He(),this.annotations=[],this.stream={leave(t){const e=new Ue;e._content=t.children.flat(1);const r=e.findElements(ps);if(r.length>0){r[0].classes.push("result")}return this.annotations.forEach((t=>{e.push(t)})),this.annotations=[],e}},this.comment=function(e){if(0===this.processedDocumentCount){const r=new ze(e.content);return t(e,r),r}return null},this.document=function(e){const r=1===this.processedDocumentCount,n=this.processedDocumentCount>=1;if(r){const r=new $e("Only first document within YAML stream will be used. Rest will be discarded.");r.classes.push("warning"),t(e,r),this.annotations.push(r)}return n?null:(this.processedDocumentCount+=1,e.children)},this.mapping=function(e){const r=new Oe.Sb;return r._content=e.children,t(e,r),r},this.keyValuePair=function(e){const r=new Oe.c6;return r.content.key=e.key,r.content.value=e.value,t(e,r),e.children.filter((t=>"error"===t.type)).forEach((t=>{this.error(t,e,[],[e])})),r},this.sequence=function(e){const r=new Oe.ON;return r._content=e.children,t(e,r),r},this.scalar=function(e){const r=this.namespace.toElement(e.content);return""===e.content&&e.style===Yr.Plain&&(r.classes.push("yaml-e-node"),r.classes.push("yaml-e-scalar")),t(e,r),r},this.literal=function(e){if(e.isMissing){const r=`(Missing ${e.value})`,n=new $e(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 YAML syntax error)":"(Error YAML syntax error)",o=new $e(i);if(o.classes.push("error"),t(e,o),0===s.length){const t=new Ue;return t.push(o),t}return this.annotations.push(o),null}}});class Ns{constructor(t){this.cursor=t}stream(){return new $n(this.cursor)}yaml_directive(){return new $n(this.cursor)}tag_directive(){return new $n(this.cursor)}reserved_directive(){return new $n(this.cursor)}document(){return new $n(this.cursor)}block_node(){return new $n(this.cursor).setFieldName(this.cursor)}flow_node(){return new $n(this.cursor).setFieldName(this.cursor)}block_mapping(){return new $n(this.cursor)}block_mapping_pair(){return new $n(this.cursor)}flow_mapping(){return new $n(this.cursor)}flow_pair(){return new $n(this.cursor)}block_sequence(){return new $n(this.cursor)}block_sequence_item(){return new $n(this.cursor)}flow_sequence(){return new $n(this.cursor)}plain_scalar(){return new $n(this.cursor)}single_quote_scalar(){return new $n(this.cursor)}double_quote_scalar(){return new $n(this.cursor)}block_scalar(){return new $n(this.cursor)}ERROR(){return new $n(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new $n(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Ns(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=Array.from(new Ns(this.cursor));t.pushChildren(...e)}t.children.reduce(((t,e)=>(e.setPreviousSibling(t),e)),void 0),this.cursor.gotoParent()}yield t}}const Is=Ns,Ms=(t,{sourceMap:e=!1}={})=>{const r=t.walk(),n=[...new Is(r)].at(0),s=Un(),i=ks(),o=ln(),a=dn(n,s,{keyMap:Bn,nodePredicate:zn,state:{schema:o,sourceMap:e}});return dn(a.rootNode,i,{keyMap:js,nodeTypeGetter:Os,nodePredicate:Ps,state:{sourceMap:e}})},Ts=(t,e)=>{const r=Dt(t,e);return pe((t=>{if(Le(t)&&Ht("$ref",t)&&ge(Qe,"$ref",t)){const e=le(["$ref"],t),n=qr("#/",e);return le(n.split("/"),r)}return Le(t)?Ts(t,r):t}),t)},Cs=ur({props:{element:null},methods:{copyMetaAndAttributes(t,e){fs(t)&&e.meta.set("sourceMap",t.meta.get("sourceMap"))}}}),Rs=ur(Cs,{methods:{enter(t){return this.element=t.clone(),fn}}}),Fs=t=>{if(Qn(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},qs={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...ys},Ls=ur(Cs,{props:{specObj:null},init({specObj:t=this.specObj}){this.specObj=t},methods:{retrievePassingOptions(){return me(["namespace","specObj"],this)},retrieveFixedFields(t){return Tt(le(["visitors",...t,"fixedFields"]),A)(this.specObj)},retrieveVisitor(t){return de(Ce,["visitors",...t],this.specObj)?le(["visitors",...t],this.specObj):le(["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 Ae(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?e.clone():(gs(e,n,{keyMap:qs,...r,nodeTypeGetter:Fs}),n.element)}}});class Ds extends Oe.RP{constructor(t,e,r){super(t,e,r),this.element="requirementLevel"}}const $s=Ds,Bs=ur(Ls,Rs,{methods:{StringElement(t){const e=new $s(t.toValue());return this.copyMetaAndAttributes(t,e),this.element=e,fn}}});class zs extends Oe.ON{constructor(t,e,r){super(t,e,r),this.element="standardIdentifier"}}const Vs=zs,Us=ur(Ls,Rs,{init(){this.element=new Vs},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","StandardIdentifier"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),fn}}});class Gs extends Oe.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 Ws=Gs;const Zs=ur(Ls,{props:{specPath:ht(Se()),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(Xn(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...e,"fixedFields",n.toValue()],t),i=new Oe.c6(n.clone(),r);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(t,this.element),fn}}}),Ks=ur(Zs,Rs,{props:{specPath:ht(["document","objects","Requirement"])},init(){this.element=new Ws}}),Hs=Rs,Ys=Rs;class Qs extends Oe.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 Xs=Qs,Js=ur(Zs,Rs,{props:{specPath:ht(["document","objects","Scenario"])},init(){this.element=new Xs}}),ti=Rs,ei=ur(Ls,Rs,{init(){this.element=new Oe.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),fn}}});class ri extends Oe.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 ni=ri,si=ur(Zs,Rs,{props:{specPath:ht(["document","objects","Standard"])},init(){this.element=new ni}}),ii=Rs,oi=Rs,ai=Rs;class ci extends Oe.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 ui=ci,li=ur(Zs,Rs,{props:{specPath:ht(["document","objects","Principle"])},init(){this.element=new ui}}),pi=Rs,fi=Rs,hi=Rs;class _i extends Oe.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 di=_i,mi=ur(Zs,Rs,{props:{specPath:ht(["document","objects","Info"])},init(){this.element=new di}}),yi=Rs,gi=Rs;class vi extends Oe.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 bi=vi,wi={visitors:{value:Rs,document:{objects:{Main:{$visitor:ur(Zs,Rs,{props:{specPath:ht(["document","objects","Main"])},init(){this.element=new bi}}),fixedFields:{version:Rs,info:{$ref:"#/visitors/document/objects/Info"},principles:ur(Ls,Rs,{init(){this.element=new Oe.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),fn}}}),standards:ur(Ls,Rs,{init(){this.element=new Oe.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),fn}}}),scenarios:ur(Ls,Rs,{init(){this.element=new Oe.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),fn}}})}},Info:{$visitor:mi,fixedFields:{title:yi,description:gi}},Principle:{$visitor:li,fixedFields:{name:pi,description:fi,iri:hi,level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:si,fixedFields:{name:ii,description:oi,level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:ai}},Scenario:{$visitor:Js,fixedFields:{description:ti,when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:ei}},Requirement:{$visitor:Ks,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:Hs,follows:Ys}},StandardIdentifier:Us,RequirementLevel:Bs}}}},Ei=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof bi||t(n)&&e("main",n)&&r("object",n))),xi=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof di||t(n)&&e("info",n)&&r("object",n))),Si=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ui||t(n)&&e("principle",n)&&r("object",n))),Ai=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Ws||t(n)&&e("requirement",n)&&r("object",n))),ji=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof $s||t(n)&&e("requirementLevel",n)&&r("string",n))),Oi=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Xs||t(n)&&e("scenario",n)&&r("object",n))),Pi=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof ni||t(n)&&e("standard",n)&&r("object",n))),ki=Yn((({hasBasicElementProps:t,isElementType:e,primitiveEq:r})=>n=>n instanceof Vs||t(n)&&e("standardIdentifier",n)&&r("array",n))),Ni={namespace:t=>{const{base:e}=t;return e.register("info",di),e.register("main",bi),e.register("principle",ui),e.register("requirement",Ws),e.register("requirementLevel",$s),e.register("scenario",Xs),e.register("standard",ni),e.register("standardIdentifier",Vs),e}},Ii=()=>{const t=He(Ni);return{predicates:{...e,isStringElement:Xn},namespace:t}},Mi=(t,{specPath:e=["visitors","document","objects","Main","$visitor"],plugins:r=[]}={})=>{const n=(0,Oe.Qc)(t),s=Ts(wi),i=ws(e,[],s);return gs(n,i,{state:{specObj:s}}),xs(i.element,r,{toolboxCreator:Ii,visitorOptions:{keyMap:qs,nodeTypeGetter:Fs}})},Ti=t=>(e,r={})=>Mi(e,{...r,specPath:t});bi.refract=Ti(["visitors","document","objects","Main","$visitor"]),di.refract=Ti(["visitors","document","objects","Info","$visitor"]),ui.refract=Ti(["visitors","document","objects","Principle","$visitor"]),Ws.refract=Ti(["visitors","document","objects","Requirement","$visitor"]),$s.refract=Ti(["visitors","document","objects","RequirementLevel","$visitor"]),Xs.refract=Ti(["visitors","document","objects","Scenario","$visitor"]),ni.refract=Ti(["visitors","document","objects","Standards","$visitor"]),Vs.refract=Ti(["visitors","document","objects","StandardIdentifier","$visitor"]);const Ci=class extends sr{};const Ri=class extends Ci{};const Fi=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Ri('"filterByFormat" method is not implemented.')}findBy(){throw new Ri('"findBy" method is not implemented.')}latest(){throw new Ri('"latest" method is not implemented.')}};class qi extends Fi{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 ce(this.filterByFormat(t))}}const Li=new qi("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"),Di=new qi(...Li.filterByFormat("generic"),...Li.filterByFormat("yaml")),$i=/(?<YAML>^(["']?)version\2\s*:\s*(["']?)(?<version_yaml>2021-05-07)\3)|(?<JSON>"version"\s*:\s*"(?<version_json>2021-05-07)")/m,Bi=async t=>$i.test(t)&&await(async t=>{try{return"ERROR"!==(await cr(t)).rootNode.type}catch{return!1}})(t),zi=async(t,e={})=>{const r=ye({},"refractorOpts",e),n=he(["refractorOpts"],e),s=await(async(t,{sourceMap:e=!1}={})=>{const r=await cr(t);return Ms(r,{sourceMap:e})})(t,n),{result:i}=s;if(je(i)){const t=bi.refract(i,r);t.classes.push("result"),s.replaceResult(t)}return s},Vi=He(Ni)})(),n})()));
1
+ !function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports.apidomParserAdapterApiDesignSystemsYaml=e():t.apidomParserAdapterApiDesignSystemsYaml=e()}(self,(()=>(()=>{var t={42:(t,e,n)=>{var r=n(5846);t.exports=r},6791:(t,e,n)=>{n(4339),n(4242),n(4016),n(8939),n(5454);var r=n(7545);t.exports=r.AggregateError},6762:(t,e,n)=>{t.exports=n(3028)},3028:(t,e,n)=>{n(2752);var r=n(42);t.exports=r},6235:(t,e,n)=>{var r=n(6447),s=n(9288),i=TypeError;t.exports=function(t){if(r(t))return t;throw i(s(t)+" is not a function")}},7757:(t,e,n)=>{var r=n(6447),s=String,i=TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw i("Can't set "+s(t)+" as a prototype")}},7423:t=>{t.exports=function(){}},1138:(t,e,n)=>{var r=n(5744),s=String,i=TypeError;t.exports=function(t){if(r(t))return t;throw i(s(t)+" is not an object")}},8180:(t,e,n)=>{var r=n(101),s=n(7739),i=n(4104),o=function(t){return function(e,n,o){var a,c=r(e),u=i(c),l=s(o,u);if(t&&n!=n){for(;u>l;)if((a=c[l++])!=a)return!0}else for(;u>l;l++)if((t||l in c)&&c[l]===n)return t||l||0;return!t&&-1}};t.exports={includes:o(!0),indexOf:o(!1)}},9272:(t,e,n)=>{var r=n(4120),s=r({}.toString),i=r("".slice);t.exports=function(t){return i(s(t),8,-1)}},4696:(t,e,n)=>{var r=n(3471),s=n(6447),i=n(9272),o=n(8182)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());t.exports=r?i:function(t){var e,n,r;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=a(t),o))?n:c?i(e):"Object"==(r=i(e))&&s(e.callee)?"Arguments":r}},7987:(t,e,n)=>{var r=n(4500),s=n(3011),i=n(5141),o=n(2760);t.exports=function(t,e,n){for(var a=s(e),c=o.f,u=i.f,l=0;l<a.length;l++){var p=a[l];r(t,p)||n&&r(n,p)||c(t,p,u(e,p))}}},4635:(t,e,n)=>{var r=n(6192);t.exports=!r((function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype}))},7271:t=>{t.exports=function(t,e){return{value:t,done:e}}},8711:(t,e,n)=>{var r=n(69),s=n(2760),i=n(774);t.exports=r?function(t,e,n){return s.f(t,e,i(1,n))}:function(t,e,n){return t[e]=n,t}},774:t=>{t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},9362:(t,e,n)=>{var r=n(8711);t.exports=function(t,e,n,s){return s&&s.enumerable?t[e]=n:r(t,e,n),t}},5098:(t,e,n)=>{var r=n(8576),s=Object.defineProperty;t.exports=function(t,e){try{s(r,t,{value:e,configurable:!0,writable:!0})}catch(n){r[t]=e}return e}},69:(t,e,n)=>{var r=n(6192);t.exports=!r((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:t=>{var e="object"==typeof document&&document.all,n=void 0===e&&void 0!==e;t.exports={all:e,IS_HTMLDDA:n}},7449:(t,e,n)=>{var r=n(8576),s=n(5744),i=r.document,o=s(i)&&s(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},7365:t=>{t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:t=>{t.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(t,e,n)=>{var r,s,i=n(8576),o=n(8989),a=i.process,c=i.Deno,u=a&&a.versions||c&&c.version,l=u&&u.v8;l&&(s=(r=l.split("."))[0]>0&&r[0]<4?1:+(r[0]+r[1])),!s&&o&&(!(r=o.match(/Edge\/(\d+)/))||r[1]>=74)&&(r=o.match(/Chrome\/(\d+)/))&&(s=+r[1]),t.exports=s},2952:t=>{t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},4503:(t,e,n)=>{var r=n(4120),s=Error,i=r("".replace),o=String(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}},8266:(t,e,n)=>{var r=n(8711),s=n(4503),i=n(274),o=Error.captureStackTrace;t.exports=function(t,e,n,a){i&&(o?o(t,e):r(t,"stack",s(n,a)))}},274:(t,e,n)=>{var r=n(6192),s=n(774);t.exports=!r((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},3085:(t,e,n)=>{"use strict";var r=n(8576),s=n(6298),i=n(4914),o=n(6447),a=n(5141).f,c=n(9245),u=n(7545),l=n(8043),p=n(8711),f=n(4500),h=function(t){var e=function(n,r,i){if(this instanceof e){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,r)}return new t(n,r,i)}return s(t,this,arguments)};return e.prototype=t.prototype,e};t.exports=function(t,e){var n,s,_,d,m,y,g,v,b,w=t.target,E=t.global,x=t.stat,S=t.proto,A=E?r:x?r[w]:(r[w]||{}).prototype,j=E?u:u[w]||p(u,w,{})[w],O=j.prototype;for(d in e)s=!(n=c(E?d:w+(x?".":"#")+d,t.forced))&&A&&f(A,d),y=j[d],s&&(g=t.dontCallGetSet?(b=a(A,d))&&b.value:A[d]),m=s&&g?g:e[d],s&&typeof y==typeof m||(v=t.bind&&s?l(m,r):t.wrap&&s?h(m):S&&o(m)?i(m):m,(t.sham||m&&m.sham||y&&y.sham)&&p(v,"sham",!0),p(j,d,v),S&&(f(u,_=w+"Prototype")||p(u,_,{}),p(u[_],d,m),t.real&&O&&(n||!O[d])&&p(O,d,m)))}},6192:t=>{t.exports=function(t){try{return!!t()}catch(t){return!0}}},6298:(t,e,n)=>{var r=n(2784),s=Function.prototype,i=s.apply,o=s.call;t.exports="object"==typeof Reflect&&Reflect.apply||(r?o.bind(i):function(){return o.apply(i,arguments)})},8043:(t,e,n)=>{var r=n(4914),s=n(6235),i=n(2784),o=r(r.bind);t.exports=function(t,e){return s(t),void 0===e?t:i?o(t,e):function(){return t.apply(e,arguments)}}},2784:(t,e,n)=>{var r=n(6192);t.exports=!r((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},8922:(t,e,n)=>{var r=n(2784),s=Function.prototype.call;t.exports=r?s.bind(s):function(){return s.apply(s,arguments)}},2282:(t,e,n)=>{var r=n(69),s=n(4500),i=Function.prototype,o=r&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,u=a&&(!r||r&&o(i,"name").configurable);t.exports={EXISTS:a,PROPER:c,CONFIGURABLE:u}},6419:(t,e,n)=>{var r=n(4120),s=n(6235);t.exports=function(t,e,n){try{return r(s(Object.getOwnPropertyDescriptor(t,e)[n]))}catch(t){}}},4914:(t,e,n)=>{var r=n(9272),s=n(4120);t.exports=function(t){if("Function"===r(t))return s(t)}},4120:(t,e,n)=>{var r=n(2784),s=Function.prototype,i=s.call,o=r&&s.bind.bind(i,i);t.exports=r?o:function(t){return function(){return i.apply(t,arguments)}}},150:(t,e,n)=>{var r=n(7545),s=n(8576),i=n(6447),o=function(t){return i(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?o(r[t])||o(s[t]):r[t]&&r[t][e]||s[t]&&s[t][e]}},8703:(t,e,n)=>{var r=n(4696),s=n(5037),i=n(5646),o=n(7771),a=n(8182)("iterator");t.exports=function(t){if(!i(t))return s(t,a)||s(t,"@@iterator")||o[r(t)]}},1669:(t,e,n)=>{var r=n(8922),s=n(6235),i=n(1138),o=n(9288),a=n(8703),c=TypeError;t.exports=function(t,e){var n=arguments.length<2?a(t):e;if(s(n))return i(r(n,t));throw c(o(t)+" is not iterable")}},5037:(t,e,n)=>{var r=n(6235),s=n(5646);t.exports=function(t,e){var n=t[e];return s(n)?void 0:r(n)}},8576:function(t,e,n){var r=function(t){return t&&t.Math==Math&&t};t.exports=r("object"==typeof globalThis&&globalThis)||r("object"==typeof window&&window)||r("object"==typeof self&&self)||r("object"==typeof n.g&&n.g)||function(){return this}()||this||Function("return this")()},4500:(t,e,n)=>{var r=n(4120),s=n(1795),i=r({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return i(s(t),e)}},4535:t=>{t.exports={}},7403:(t,e,n)=>{var r=n(150);t.exports=r("document","documentElement")},188:(t,e,n)=>{var r=n(69),s=n(6192),i=n(7449);t.exports=!r&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(t,e,n)=>{var r=n(4120),s=n(6192),i=n(9272),o=Object,a=r("".split);t.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(t){return"String"==i(t)?a(t,""):o(t)}:o},2643:(t,e,n)=>{var r=n(6447),s=n(5744),i=n(4469);t.exports=function(t,e,n){var o,a;return i&&r(o=e.constructor)&&o!==n&&s(a=o.prototype)&&a!==n.prototype&&i(t,a),t}},273:(t,e,n)=>{var r=n(5744),s=n(8711);t.exports=function(t,e){r(e)&&"cause"in e&&s(t,"cause",e.cause)}},3326:(t,e,n)=>{var r,s,i,o=n(5278),a=n(8576),c=n(5744),u=n(8711),l=n(4500),p=n(6434),f=n(9766),h=n(4535),_="Object already initialized",d=a.TypeError,m=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new m);y.get=y.get,y.has=y.has,y.set=y.set,r=function(t,e){if(y.has(t))throw d(_);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=f("state");h[g]=!0,r=function(t,e){if(l(t,g))throw d(_);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:r,get:s,has:i,enforce:function(t){return i(t)?s(t):r(t,{})},getterFor:function(t){return function(e){var n;if(!c(e)||(n=s(e)).type!==t)throw d("Incompatible receiver, "+t+" required");return n}}}},6109:(t,e,n)=>{var r=n(8182),s=n(7771),i=r("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(s.Array===t||o[i]===t)}},6447:(t,e,n)=>{var r=n(8382),s=r.all;t.exports=r.IS_HTMLDDA?function(t){return"function"==typeof t||t===s}:function(t){return"function"==typeof t}},9245:(t,e,n)=>{var r=n(6192),s=n(6447),i=/#|\.prototype\./,o=function(t,e){var n=c[a(t)];return n==l||n!=u&&(s(e)?r(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},5646:t=>{t.exports=function(t){return null==t}},5744:(t,e,n)=>{var r=n(6447),s=n(8382),i=s.all;t.exports=s.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:r(t)||t===i}:function(t){return"object"==typeof t?null!==t:r(t)}},5546:t=>{t.exports=!0},3236:(t,e,n)=>{var r=n(150),s=n(6447),i=n(8902),o=n(615),a=Object;t.exports=o?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return s(e)&&i(e.prototype,a(t))}},3442:(t,e,n)=>{var r=n(8043),s=n(8922),i=n(1138),o=n(9288),a=n(6109),c=n(4104),u=n(8902),l=n(1669),p=n(8703),f=n(6639),h=TypeError,_=function(t,e){this.stopped=t,this.result=e},d=_.prototype;t.exports=function(t,e,n){var m,y,g,v,b,w,E,x=n&&n.that,S=!(!n||!n.AS_ENTRIES),A=!(!n||!n.IS_RECORD),j=!(!n||!n.IS_ITERATOR),O=!(!n||!n.INTERRUPTED),P=r(e,x),k=function(t){return m&&f(m,"normal",t),new _(!0,t)},N=function(t){return S?(i(t),O?P(t[0],t[1],k):P(t[0],t[1])):O?P(t,k):P(t)};if(A)m=t.iterator;else if(j)m=t;else{if(!(y=p(t)))throw h(o(t)+" is not iterable");if(a(y)){for(g=0,v=c(t);v>g;g++)if((b=N(t[g]))&&u(d,b))return b;return new _(!1)}m=l(t,y)}for(w=A?t.next:m.next;!(E=s(w,m)).done;){try{b=N(E.value)}catch(t){f(m,"throw",t)}if("object"==typeof b&&b&&u(d,b))return b}return new _(!1)}},6639:(t,e,n)=>{var r=n(8922),s=n(1138),i=n(5037);t.exports=function(t,e,n){var o,a;s(t);try{if(!(o=i(t,"return"))){if("throw"===e)throw n;return n}o=r(o,t)}catch(t){a=!0,o=t}if("throw"===e)throw n;if(a)throw o;return s(o),n}},5695:(t,e,n)=>{"use strict";var r=n(4413).IteratorPrototype,s=n(2853),i=n(774),o=n(1284),a=n(7771),c=function(){return this};t.exports=function(t,e,n,u){var l=e+" Iterator";return t.prototype=s(r,{next:i(+!u,n)}),o(t,l,!1,!0),a[l]=c,t}},5297:(t,e,n)=>{"use strict";var r=n(3085),s=n(8922),i=n(5546),o=n(2282),a=n(6447),c=n(5695),u=n(9341),l=n(4469),p=n(1284),f=n(8711),h=n(9362),_=n(8182),d=n(7771),m=n(4413),y=o.PROPER,g=o.CONFIGURABLE,v=m.IteratorPrototype,b=m.BUGGY_SAFARI_ITERATORS,w=_("iterator"),E="keys",x="values",S="entries",A=function(){return this};t.exports=function(t,e,n,o,_,m,j){c(n,e,o);var O,P,k,N=function(t){if(t===_&&R)return R;if(!b&&t in T)return T[t];switch(t){case E:case x:case S:return function(){return new n(this,t)}}return function(){return new n(this)}},I=e+" Iterator",M=!1,T=t.prototype,C=T[w]||T["@@iterator"]||_&&T[_],R=!b&&C||N(_),F="Array"==e&&T.entries||C;if(F&&(O=u(F.call(new t)))!==Object.prototype&&O.next&&(i||u(O)===v||(l?l(O,v):a(O[w])||h(O,w,A)),p(O,I,!0,!0),i&&(d[I]=A)),y&&_==x&&C&&C.name!==x&&(!i&&g?f(T,"name",x):(M=!0,R=function(){return s(C,this)})),_)if(P={values:N(x),keys:m?R:N(E),entries:N(S)},j)for(k in P)(b||M||!(k in T))&&h(T,k,P[k]);else r({target:e,proto:!0,forced:b||M},P);return i&&!j||T[w]===R||h(T,w,R,{name:_}),d[e]=R,P}},4413:(t,e,n)=>{"use strict";var r,s,i,o=n(6192),a=n(6447),c=n(5744),u=n(2853),l=n(9341),p=n(9362),f=n(8182),h=n(5546),_=f("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=l(l(i)))!==Object.prototype&&(r=s):d=!0),!c(r)||o((function(){var t={};return r[_].call(t)!==t}))?r={}:h&&(r=u(r)),a(r[_])||p(r,_,(function(){return this})),t.exports={IteratorPrototype:r,BUGGY_SAFARI_ITERATORS:d}},7771:t=>{t.exports={}},4104:(t,e,n)=>{var r=n(8445);t.exports=function(t){return r(t.length)}},7679:t=>{var e=Math.ceil,n=Math.floor;t.exports=Math.trunc||function(t){var r=+t;return(r>0?n:e)(r)}},6016:(t,e,n)=>{var r=n(4845);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:r(t)}},2853:(t,e,n)=>{var r,s=n(1138),i=n(1187),o=n(2952),a=n(4535),c=n(7403),u=n(7449),l=n(9766),p="prototype",f="script",h=l("IE_PROTO"),_=function(){},d=function(t){return"<"+f+">"+t+"</"+f+">"},m=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},y=function(){try{r=new ActiveXObject("htmlfile")}catch(t){}var t,e,n;y="undefined"!=typeof document?document.domain&&r?m(r):(e=u("iframe"),n="java"+f+":",e.style.display="none",c.appendChild(e),e.src=String(n),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):m(r);for(var s=o.length;s--;)delete y[p][o[s]];return y()};a[h]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(_[p]=s(t),n=new _,_[p]=null,n[h]=t):n=y(),void 0===e?n:i.f(n,e)}},1187:(t,e,n)=>{var r=n(69),s=n(9600),i=n(2760),o=n(1138),a=n(101),c=n(7653);e.f=r&&!s?Object.defineProperties:function(t,e){o(t);for(var n,r=a(e),s=c(e),u=s.length,l=0;u>l;)i.f(t,n=s[l++],r[n]);return t}},2760:(t,e,n)=>{var r=n(69),s=n(188),i=n(9600),o=n(1138),a=n(77),c=TypeError,u=Object.defineProperty,l=Object.getOwnPropertyDescriptor,p="enumerable",f="configurable",h="writable";e.f=r?i?function(t,e,n){if(o(t),e=a(e),o(n),"function"==typeof t&&"prototype"===e&&"value"in n&&h in n&&!n[h]){var r=l(t,e);r&&r[h]&&(t[e]=n.value,n={configurable:f in n?n[f]:r[f],enumerable:p in n?n[p]:r[p],writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(o(t),e=a(e),o(n),s)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw c("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},5141:(t,e,n)=>{var r=n(69),s=n(8922),i=n(6007),o=n(774),a=n(101),c=n(77),u=n(4500),l=n(188),p=Object.getOwnPropertyDescriptor;e.f=r?p:function(t,e){if(t=a(t),e=c(e),l)try{return p(t,e)}catch(t){}if(u(t,e))return o(!s(i.f,t,e),t[e])}},2092:(t,e,n)=>{var r=n(7934),s=n(2952).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,s)}},4750:(t,e)=>{e.f=Object.getOwnPropertySymbols},9341:(t,e,n)=>{var r=n(4500),s=n(6447),i=n(1795),o=n(9766),a=n(4635),c=o("IE_PROTO"),u=Object,l=u.prototype;t.exports=a?u.getPrototypeOf:function(t){var e=i(t);if(r(e,c))return e[c];var n=e.constructor;return s(n)&&e instanceof n?n.prototype:e instanceof u?l:null}},8902:(t,e,n)=>{var r=n(4120);t.exports=r({}.isPrototypeOf)},7934:(t,e,n)=>{var r=n(4120),s=n(4500),i=n(101),o=n(8180).indexOf,a=n(4535),c=r([].push);t.exports=function(t,e){var n,r=i(t),u=0,l=[];for(n in r)!s(a,n)&&s(r,n)&&c(l,n);for(;e.length>u;)s(r,n=e[u++])&&(~o(l,n)||c(l,n));return l}},7653:(t,e,n)=>{var r=n(7934),s=n(2952);t.exports=Object.keys||function(t){return r(t,s)}},6007:(t,e)=>{"use strict";var n={}.propertyIsEnumerable,r=Object.getOwnPropertyDescriptor,s=r&&!n.call({1:2},1);e.f=s?function(t){var e=r(this,t);return!!e&&e.enumerable}:n},4469:(t,e,n)=>{var r=n(6419),s=n(1138),i=n(7757);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=r(Object.prototype,"__proto__","set"))(n,[]),e=n instanceof Array}catch(t){}return function(n,r){return s(n),i(r),e?t(n,r):n.__proto__=r,n}}():void 0)},158:(t,e,n)=>{"use strict";var r=n(3471),s=n(4696);t.exports=r?{}.toString:function(){return"[object "+s(this)+"]"}},380:(t,e,n)=>{var r=n(8922),s=n(6447),i=n(5744),o=TypeError;t.exports=function(t,e){var n,a;if("string"===e&&s(n=t.toString)&&!i(a=r(n,t)))return a;if(s(n=t.valueOf)&&!i(a=r(n,t)))return a;if("string"!==e&&s(n=t.toString)&&!i(a=r(n,t)))return a;throw o("Can't convert object to primitive value")}},3011:(t,e,n)=>{var r=n(150),s=n(4120),i=n(2092),o=n(4750),a=n(1138),c=s([].concat);t.exports=r("Reflect","ownKeys")||function(t){var e=i.f(a(t)),n=o.f;return n?c(e,n(t)):e}},7545:t=>{t.exports={}},7656:(t,e,n)=>{var r=n(2760).f;t.exports=function(t,e,n){n in t||r(t,n,{configurable:!0,get:function(){return e[n]},set:function(t){e[n]=t}})}},3209:(t,e,n)=>{var r=n(5646),s=TypeError;t.exports=function(t){if(r(t))throw s("Can't call method on "+t);return t}},1284:(t,e,n)=>{var r=n(3471),s=n(2760).f,i=n(8711),o=n(4500),a=n(158),c=n(8182)("toStringTag");t.exports=function(t,e,n,u){if(t){var l=n?t:t.prototype;o(l,c)||s(l,c,{configurable:!0,value:e}),u&&!r&&i(l,"toString",a)}}},9766:(t,e,n)=>{var r=n(8717),s=n(2759),i=r("keys");t.exports=function(t){return i[t]||(i[t]=s(t))}},6434:(t,e,n)=>{var r=n(8576),s=n(5098),i="__core-js_shared__",o=r[i]||s(i,{});t.exports=o},8717:(t,e,n)=>{var r=n(5546),s=n(6434);(t.exports=function(t,e){return s[t]||(s[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.31.1",mode:r?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(t,e,n)=>{var r=n(4120),s=n(1941),i=n(4845),o=n(3209),a=r("".charAt),c=r("".charCodeAt),u=r("".slice),l=function(t){return function(e,n){var r,l,p=i(o(e)),f=s(n),h=p.length;return f<0||f>=h?t?"":void 0:(r=c(p,f))<55296||r>56319||f+1===h||(l=c(p,f+1))<56320||l>57343?t?a(p,f):r:t?u(p,f,f+2):l-56320+(r-55296<<10)+65536}};t.exports={codeAt:l(!1),charAt:l(!0)}},6770:(t,e,n)=>{var r=n(4218),s=n(6192),i=n(8576).String;t.exports=!!Object.getOwnPropertySymbols&&!s((function(){var t=Symbol();return!i(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&r&&r<41}))},7739:(t,e,n)=>{var r=n(1941),s=Math.max,i=Math.min;t.exports=function(t,e){var n=r(t);return n<0?s(n+e,0):i(n,e)}},101:(t,e,n)=>{var r=n(2202),s=n(3209);t.exports=function(t){return r(s(t))}},1941:(t,e,n)=>{var r=n(7679);t.exports=function(t){var e=+t;return e!=e||0===e?0:r(e)}},8445:(t,e,n)=>{var r=n(1941),s=Math.min;t.exports=function(t){return t>0?s(r(t),9007199254740991):0}},1795:(t,e,n)=>{var r=n(3209),s=Object;t.exports=function(t){return s(r(t))}},7888:(t,e,n)=>{var r=n(8922),s=n(5744),i=n(3236),o=n(5037),a=n(380),c=n(8182),u=TypeError,l=c("toPrimitive");t.exports=function(t,e){if(!s(t)||i(t))return t;var n,c=o(t,l);if(c){if(void 0===e&&(e="default"),n=r(c,t,e),!s(n)||i(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),a(t,e)}},77:(t,e,n)=>{var r=n(7888),s=n(3236);t.exports=function(t){var e=r(t,"string");return s(e)?e:e+""}},3471:(t,e,n)=>{var r={};r[n(8182)("toStringTag")]="z",t.exports="[object z]"===String(r)},4845:(t,e,n)=>{var r=n(4696),s=String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return s(t)}},9288:t=>{var e=String;t.exports=function(t){try{return e(t)}catch(t){return"Object"}}},2759:(t,e,n)=>{var r=n(4120),s=0,i=Math.random(),o=r(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+o(++s+i,36)}},615:(t,e,n)=>{var r=n(6770);t.exports=r&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(t,e,n)=>{var r=n(69),s=n(6192);t.exports=r&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(t,e,n)=>{var r=n(8576),s=n(6447),i=r.WeakMap;t.exports=s(i)&&/native code/.test(String(i))},8182:(t,e,n)=>{var r=n(8576),s=n(8717),i=n(4500),o=n(2759),a=n(6770),c=n(615),u=r.Symbol,l=s("wks"),p=c?u.for||u:u&&u.withoutSetter||o;t.exports=function(t){return i(l,t)||(l[t]=a&&i(u,t)?u[t]:p("Symbol."+t)),l[t]}},426:(t,e,n)=>{"use strict";var r=n(150),s=n(4500),i=n(8711),o=n(8902),a=n(4469),c=n(7987),u=n(7656),l=n(2643),p=n(6016),f=n(273),h=n(8266),_=n(69),d=n(5546);t.exports=function(t,e,n,m){var y="stackTraceLimit",g=m?2:1,v=t.split("."),b=v[v.length-1],w=r.apply(null,v);if(w){var E=w.prototype;if(!d&&s(E,"cause")&&delete E.cause,!n)return w;var x=r("Error"),S=e((function(t,e){var n=p(m?e:t,void 0),r=m?new w(t):new w;return void 0!==n&&i(r,"message",n),h(r,S,r.stack,2),this&&o(E,this)&&l(r,this,S),arguments.length>g&&f(r,arguments[g]),r}));if(S.prototype=E,"Error"!==b?a?a(S,x):c(S,x,{name:!0}):_&&y in w&&(u(S,w,y),u(S,w,"prepareStackTrace")),c(S,w),!d)try{E.name!==b&&i(E,"name",b),E.constructor=S}catch(t){}return S}}},4016:(t,e,n)=>{var r=n(3085),s=n(150),i=n(6298),o=n(6192),a=n(426),c="AggregateError",u=s(c),l=!o((function(){return 1!==u([1]).errors[0]}))&&o((function(){return 7!==u([1],c,{cause:7}).cause}));r({global:!0,constructor:!0,arity:2,forced:l},{AggregateError:a(c,(function(t){return function(e,n){return i(t,this,arguments)}}),l,!0)})},3820:(t,e,n)=>{"use strict";var r=n(3085),s=n(8902),i=n(9341),o=n(4469),a=n(7987),c=n(2853),u=n(8711),l=n(774),p=n(273),f=n(8266),h=n(3442),_=n(6016),d=n(8182)("toStringTag"),m=Error,y=[].push,g=function(t,e){var n,r=s(v,this);o?n=o(m(),r?i(this):v):(n=r?this:c(v),u(n,d,"Error")),void 0!==e&&u(n,"message",_(e)),f(n,g,n.stack,1),arguments.length>2&&p(n,arguments[2]);var a=[];return h(t,y,{that:a}),u(n,"errors",a),n};o?o(g,m):a(g,m,{name:!0});var v=g.prototype=c(m.prototype,{constructor:l(1,g),message:l(1,""),name:l(1,"AggregateError")});r({global:!0,constructor:!0,arity:2},{AggregateError:g})},4242:(t,e,n)=>{n(3820)},8939:(t,e,n)=>{"use strict";var r=n(101),s=n(7423),i=n(7771),o=n(3326),a=n(2760).f,c=n(5297),u=n(7271),l=n(5546),p=n(69),f="Array Iterator",h=o.set,_=o.getterFor(f);t.exports=c(Array,"Array",(function(t,e){h(this,{type:f,target:r(t),index:0,kind:e})}),(function(){var t=_(this),e=t.target,n=t.kind,r=t.index++;return!e||r>=e.length?(t.target=void 0,u(void 0,!0)):u("keys"==n?r:"values"==n?e[r]:[r,e[r]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!l&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(t){}},4339:(t,e,n)=>{var r=n(3085),s=n(8576),i=n(6298),o=n(426),a="WebAssembly",c=s[a],u=7!==Error("e",{cause:7}).cause,l=function(t,e){var n={};n[t]=o(t,e,u),r({global:!0,constructor:!0,arity:1,forced:u},n)},p=function(t,e){if(c&&c[t]){var n={};n[t]=o(a+"."+t,e,u),r({target:a,stat:!0,constructor:!0,arity:1,forced:u},n)}};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)}})),p("CompileError",(function(t){return function(e){return i(t,this,arguments)}})),p("LinkError",(function(t){return function(e){return i(t,this,arguments)}})),p("RuntimeError",(function(t){return function(e){return i(t,this,arguments)}}))},5454:(t,e,n)=>{"use strict";var r=n(863).charAt,s=n(4845),i=n(3326),o=n(5297),a=n(7271),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),n=e.string,s=e.index;return s>=n.length?a(void 0,!0):(t=r(n,s),e.index+=t.length,a(t,!1))}))},2752:(t,e,n)=>{n(4242)},162:(t,e,n)=>{n(8939);var r=n(7365),s=n(8576),i=n(4696),o=n(8711),a=n(7771),c=n(8182)("toStringTag");for(var u in r){var l=s[u],p=l&&l.prototype;p&&i(p)!==c&&o(p,c,u),a[u]=a.Array}},5846:(t,e,n)=>{n(2752);var r=n(6791);n(162),t.exports=r},9515:(t,e,n)=>{var r=n(8761)(n(7772),"DataView");t.exports=r},9612:(t,e,n)=>{var r=n(2118),s=n(6909),i=n(8138),o=n(4174),a=n(7942);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},235:(t,e,n)=>{var r=n(3945),s=n(1846),i=n(8028),o=n(2344),a=n(4769);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},326:(t,e,n)=>{var r=n(8761)(n(7772),"Map");t.exports=r},6738:(t,e,n)=>{var r=n(2411),s=n(6417),i=n(6928),o=n(9493),a=n(4150);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,t.exports=c},1985:(t,e,n)=>{var r=n(8761)(n(7772),"Promise");t.exports=r},2143:(t,e,n)=>{var r=n(8761)(n(7772),"Set");t.exports=r},5386:(t,e,n)=>{var r=n(6738),s=n(2842),i=n(2482);function o(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,t.exports=o},6571:(t,e,n)=>{var r=n(235),s=n(5243),i=n(2858),o=n(4417),a=n(8605),c=n(1418);function u(t){var e=this.__data__=new r(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,n)=>{var r=n(7772).Symbol;t.exports=r},9162:(t,e,n)=>{var r=n(7772).Uint8Array;t.exports=r},3215:(t,e,n)=>{var r=n(8761)(n(7772),"WeakMap");t.exports=r},7552:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,s=0,i=[];++n<r;){var o=t[n];e(o,n,t)&&(i[s++]=o)}return i}},1634:(t,e,n)=>{var r=n(6473),s=n(9631),i=n(6152),o=n(3226),a=n(9045),c=n(7598),u=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=i(t),l=!n&&s(t),p=!n&&!l&&o(t),f=!n&&!l&&!p&&c(t),h=n||l||p||f,_=h?r(t.length,String):[],d=_.length;for(var m in t)!e&&!u.call(t,m)||h&&("length"==m||p&&("offset"==m||"parent"==m)||f&&("buffer"==m||"byteLength"==m||"byteOffset"==m)||a(m,d))||_.push(m);return _}},5067:t=>{t.exports=function(t,e){for(var n=-1,r=e.length,s=t.length;++n<r;)t[s+n]=e[n];return t}},7064:t=>{t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},2218:(t,e,n)=>{var r=n(1225);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},1897:(t,e,n)=>{var r=n(5067),s=n(6152);t.exports=function(t,e,n){var i=e(t);return s(t)?i:r(i,n(t))}},3366:(t,e,n)=>{var r=n(857),s=n(2107),i=n(7157),o=r?r.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,n)=>{var r=n(3366),s=n(5125);t.exports=function(t){return s(t)&&"[object Arguments]"==r(t)}},8746:(t,e,n)=>{var r=n(1952),s=n(5125);t.exports=function t(e,n,i,o,a){return e===n||(null==e||null==n||!s(e)&&!s(n)?e!=e&&n!=n:r(e,n,i,o,t,a))}},1952:(t,e,n)=>{var r=n(6571),s=n(4871),i=n(1491),o=n(7416),a=n(940),c=n(6152),u=n(3226),l=n(7598),p="[object Arguments]",f="[object Array]",h="[object Object]",_=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,d,m,y){var g=c(t),v=c(e),b=g?f:a(t),w=v?f:a(e),E=(b=b==p?h:b)==h,x=(w=w==p?h:w)==h,S=b==w;if(S&&u(t)){if(!u(e))return!1;g=!0,E=!1}if(S&&!E)return y||(y=new r),g||l(t)?s(t,e,n,d,m,y):i(t,e,b,n,d,m,y);if(!(1&n)){var A=E&&_.call(t,"__wrapped__"),j=x&&_.call(e,"__wrapped__");if(A||j){var O=A?t.value():t,P=j?e.value():e;return y||(y=new r),m(O,P,n,d,y)}}return!!S&&(y||(y=new r),o(t,e,n,d,m,y))}},6840:(t,e,n)=>{var r=n(1049),s=n(7394),i=n(9259),o=n(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,u=Object.prototype,l=c.toString,p=u.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||s(t))&&(r(t)?f:a).test(o(t))}},5522:(t,e,n)=>{var r=n(3366),s=n(1158),i=n(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[r(t)]}},6411:(t,e,n)=>{var r=n(6001),s=n(4248),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return s(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},6473:t=>{t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},7826:t=>{t.exports=function(t){return function(e){return t(e)}}},9950:t=>{t.exports=function(t,e){return t.has(e)}},4019:(t,e,n)=>{var r=n(7772)["__core-js_shared__"];t.exports=r},4871:(t,e,n)=>{var r=n(5386),s=n(7064),i=n(9950);t.exports=function(t,e,n,o,a,c){var u=1&n,l=t.length,p=e.length;if(l!=p&&!(u&&p>l))return!1;var f=c.get(t),h=c.get(e);if(f&&h)return f==e&&h==t;var _=-1,d=!0,m=2&n?new r:void 0;for(c.set(t,e),c.set(e,t);++_<l;){var y=t[_],g=e[_];if(o)var v=u?o(g,y,_,e,t,c):o(y,g,_,t,e,c);if(void 0!==v){if(v)continue;d=!1;break}if(m){if(!s(e,(function(t,e){if(!i(m,e)&&(y===t||a(y,t,n,o,c)))return m.push(e)}))){d=!1;break}}else if(y!==g&&!a(y,g,n,o,c)){d=!1;break}}return c.delete(t),c.delete(e),d}},1491:(t,e,n)=>{var r=n(857),s=n(9162),i=n(1225),o=n(4871),a=n(5179),c=n(4207),u=r?r.prototype:void 0,l=u?u.valueOf:void 0;t.exports=function(t,e,n,r,u,p,f){switch(n){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||!p(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&r;if(h||(h=c),t.size!=e.size&&!_)return!1;var d=f.get(t);if(d)return d==e;r|=2,f.set(t,e);var m=o(h(t),h(e),r,u,p,f);return f.delete(t),m;case"[object Symbol]":if(l)return l.call(t)==l.call(e)}return!1}},7416:(t,e,n)=>{var r=n(3483),s=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,i,o,a){var c=1&n,u=r(t),l=u.length;if(l!=r(e).length&&!c)return!1;for(var p=l;p--;){var f=u[p];if(!(c?f in e:s.call(e,f)))return!1}var h=a.get(t),_=a.get(e);if(h&&_)return h==e&&_==t;var d=!0;a.set(t,e),a.set(e,t);for(var m=c;++p<l;){var y=t[f=u[p]],g=e[f];if(i)var v=c?i(g,y,f,e,t,a):i(y,g,f,t,e,a);if(!(void 0===v?y===g||o(y,g,n,i,a):v)){d=!1;break}m||(m="constructor"==f)}if(d&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(d=!1)}return a.delete(t),a.delete(e),d}},1242:(t,e,n)=>{var r="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;t.exports=r},3483:(t,e,n)=>{var r=n(1897),s=n(633),i=n(249);t.exports=function(t){return r(t,i,s)}},7937:(t,e,n)=>{var r=n(8304);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},8761:(t,e,n)=>{var r=n(6840),s=n(8109);t.exports=function(t,e){var n=s(t,e);return r(n)?n:void 0}},2107:(t,e,n)=>{var r=n(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,a),n=t[a];try{t[a]=void 0;var r=!0}catch(t){}var s=o.call(t);return r&&(e?t[a]=n:delete t[a]),s}},633:(t,e,n)=>{var r=n(7552),s=n(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(t){return null==t?[]:(t=Object(t),r(o(t),(function(e){return i.call(t,e)})))}:s;t.exports=a},940:(t,e,n)=>{var r=n(9515),s=n(326),i=n(1985),o=n(2143),a=n(3215),c=n(3366),u=n(7035),l="[object Map]",p="[object Promise]",f="[object Set]",h="[object WeakMap]",_="[object DataView]",d=u(r),m=u(s),y=u(i),g=u(o),v=u(a),b=c;(r&&b(new r(new ArrayBuffer(1)))!=_||s&&b(new s)!=l||i&&b(i.resolve())!=p||o&&b(new o)!=f||a&&b(new a)!=h)&&(b=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?u(n):"";if(r)switch(r){case d:return _;case m:return l;case y:return p;case g:return f;case v:return h}return e}),t.exports=b},8109:t=>{t.exports=function(t,e){return null==t?void 0:t[e]}},2118:(t,e,n)=>{var r=n(9191);t.exports=function(){this.__data__=r?r(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,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return s.call(e,t)?e[t]:void 0}},4174:(t,e,n)=>{var r=n(9191),s=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:s.call(e,t)}},7942:(t,e,n)=>{var r=n(9191);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},9045:t=>{var e=/^(?:0|[1-9]\d*)$/;t.exports=function(t,n){var r=typeof t;return!!(n=null==n?9007199254740991:n)&&("number"==r||"symbol"!=r&&e.test(t))&&t>-1&&t%1==0&&t<n}},8304:t=>{t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},7394:(t,e,n)=>{var r,s=n(4019),i=(r=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},6001:t=>{var e=Object.prototype;t.exports=function(t){var n=t&&t.constructor;return t===("function"==typeof n&&n.prototype||e)}},3945:t=>{t.exports=function(){this.__data__=[],this.size=0}},1846:(t,e,n)=>{var r=n(2218),s=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0)&&(n==e.length-1?e.pop():s.call(e,n,1),--this.size,!0)}},8028:(t,e,n)=>{var r=n(2218);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},2344:(t,e,n)=>{var r=n(2218);t.exports=function(t){return r(this.__data__,t)>-1}},4769:(t,e,n)=>{var r=n(2218);t.exports=function(t,e){var n=this.__data__,s=r(n,t);return s<0?(++this.size,n.push([t,e])):n[s][1]=e,this}},2411:(t,e,n)=>{var r=n(9612),s=n(235),i=n(326);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||s),string:new r}}},6417:(t,e,n)=>{var r=n(7937);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},6928:(t,e,n)=>{var r=n(7937);t.exports=function(t){return r(this,t).get(t)}},9493:(t,e,n)=>{var r=n(7937);t.exports=function(t){return r(this,t).has(t)}},4150:(t,e,n)=>{var r=n(7937);t.exports=function(t,e){var n=r(this,t),s=n.size;return n.set(t,e),this.size+=n.size==s?0:1,this}},5179:t=>{t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,r){n[++e]=[r,t]})),n}},9191:(t,e,n)=>{var r=n(8761)(Object,"create");t.exports=r},4248:(t,e,n)=>{var r=n(241)(Object.keys,Object);t.exports=r},4146:(t,e,n)=>{t=n.nmd(t);var r=n(1242),s=e&&!e.nodeType&&e,i=s&&t&&!t.nodeType&&t,o=i&&i.exports===s&&r.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(n){return t(e(n))}}},7772:(t,e,n)=>{var r=n(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=r||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,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n}},5243:(t,e,n)=>{var r=n(235);t.exports=function(){this.__data__=new r,this.size=0}},2858:t=>{t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},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,n)=>{var r=n(235),s=n(326),i=n(6738);t.exports=function(t,e){var n=this.__data__;if(n instanceof r){var o=n.__data__;if(!s||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new i(o)}return n.set(t,e),this.size=n.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,n)=>{var r=n(5183),s=n(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=r(function(){return arguments}())?r: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,n)=>{var r=n(1049),s=n(1158);t.exports=function(t){return null!=t&&s(t.length)&&!r(t)}},4335:(t,e,n)=>{var r=n(3366),s=n(5125);t.exports=function(t){return!0===t||!1===t||s(t)&&"[object Boolean]"==r(t)}},3226:(t,e,n)=>{t=n.nmd(t);var r=n(7772),s=n(6330),i=e&&!e.nodeType&&e,o=i&&t&&!t.nodeType&&t,a=o&&o.exports===i?r.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;t.exports=c},8149:(t,e,n)=>{var r=n(8746);t.exports=function(t,e){return r(t,e)}},1049:(t,e,n)=>{var r=n(3366),s=n(9259);t.exports=function(t){if(!s(t))return!1;var e=r(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,n)=>{var r=n(3366),s=n(5125);t.exports=function(t){return"number"==typeof t||s(t)&&"[object Number]"==r(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,n)=>{var r=n(3366),s=n(6152),i=n(5125);t.exports=function(t){return"string"==typeof t||!s(t)&&i(t)&&"[object String]"==r(t)}},7598:(t,e,n)=>{var r=n(5522),s=n(7826),i=n(4146),o=i&&i.isTypedArray,a=o?s(o):r;t.exports=a},249:(t,e,n)=>{var r=n(1634),s=n(6411),i=n(7878);t.exports=function(t){return i(t)?r(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,n)=>{const r=n(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 n=[];return this.forEach((r=>{const s=t.bind(e)(r);s&&n.push(s)})),n}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(r(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,n)=>{const r=n(5877),s=n(5505),i=n(537),o=n(4335),a=n(9259),c=n(2947),u=n(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(r,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,n){return void 0===n||n?this.elementDetection.unshift([t,e]):this.elementDetection.push([t,e]),this}toElement(t){if(t instanceof this.Element)return t;let e;for(let n=0;n<this.elementDetection.length;n+=1){const r=this.elementDetection[n][0],s=this.elementDetection[n][1];if(r(t)){e=new s(t);break}}return e}getElementClass(t){const e=this.elementMap[t];return void 0===e?this.Element:e}fromRefract(t){return this.serialiser.deserialise(t)}toRefract(t){return this.serialiser.serialise(t)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((t=>{const e=t[0].toUpperCase()+t.substr(1);this._elements[e]=this.elementMap[t]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=l,t.exports=l},3853:(t,e,n)=>{const r=n(1570),s=n(1178);class i extends s{map(t,e){return this.elements.map((n=>t.bind(e)(n.value,n.key,n)))}filter(t,e){return new i(this.elements.filter((n=>t.bind(e)(n.value,n.key,n))))}reject(t,e){return this.filter(r(t.bind(e)))}forEach(t,e){return this.elements.forEach(((n,r)=>{t.bind(e)(n.value,n.key,n,r)}))}keys(){return this.map(((t,e)=>e.toValue()))}values(){return this.map((t=>t.toValue()))}}t.exports=i},3756:(t,e,n)=>{const r=n(6420),s=n(4152),i=n(9542),o=n(3710),a=n(3312),c=n(1641),u=n(8858),l=n(3860),p=n(5202),f=n(2320),h=n(1178),_=n(3853),d=n(3026);function m(t){if(t instanceof r)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(m));if("object"==typeof t){return new l(t)}return t}r.prototype.ObjectElement=l,r.prototype.RefElement=f,r.prototype.MemberElement=u,r.prototype.refract=m,h.prototype.refract=m,t.exports={Element:r,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:u,ObjectElement:l,LinkElement:p,RefElement:f,refract:m,ArraySlice:h,ObjectSlice:_,KeyValuePair:d}},5202:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t||[],e,n),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,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t||[],e,n),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,n)=>{const r=n(5140),s=n(3756);e.lS=r,e.KeyValuePair=n(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,n(2947),n(8910)},1641:(t,e,n)=>{const r=n(1570),s=n(6420),i=n(1178);class o extends s{constructor(t,e,n){super(t||[],e,n),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 n=[];return this.forEach((r=>{const s=t.bind(e)(r);s&&n.push(s)})),n}filter(t,e){return new i(this.content.filter(t,e))}reject(t,e){return this.filter(r(t),e)}reduce(t,e){let n,r;void 0!==e?(n=0,r=this.refract(e)):(n=1,r="object"===this.primitive()?this.first.value:this.first);for(let e=n;e<this.length;e+=1){const n=this.content[e];r="object"===this.primitive()?this.refract(t(r,n.value,n.key,n,this)):this.refract(t(r,n,e,this))}return r}forEach(t,e){this.content.forEach(((n,r)=>{t.bind(e)(n,this.refract(r))}))}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 n=e||{},r=!!n.recursive,s=void 0===n.results?[]:n.results;return this.forEach(((e,n,i)=>{r&&void 0!==e.findElements&&e.findElements(t,{results:s,recursive:r}),t(e,n,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,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t,e,n),this.element="boolean"}primitive(){return"boolean"}}},6420:(t,e,n)=>{const r=n(8149),s=n(3026),i=n(1178);class o{constructor(t,e,n){e&&(this.meta=e),n&&(this.attributes=n),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 n=new i;const r=(t,e)=>(t.push(e),t),o=(t,n)=>{n.element===e&&t.push(n);const i=n.findRecursive(e);return i&&i.reduce(r,t),n.content instanceof s&&(n.content.key&&o(t,n.content.key),n.content.value&&o(t,n.content.value)),t};return this.content&&(this.content.element&&o(n,this.content),Array.isArray(this.content)&&this.content.reduce(o,n)),t.isEmpty||(n=n.filter((e=>{let n=e.parents.map((t=>t.element));for(const e in t){const r=t[e],s=n.indexOf(r);if(-1===s)return!1;n=n.splice(0,s)}return!0}))),n}set(t){return this.content=t,this}equals(t){return r(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,n)=>{const r=n(3026),s=n(6420);t.exports=class extends s{constructor(t,e,n,s){super(new r,n,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,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t||null,e,n),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t,e,n),this.element="number"}primitive(){return"number"}}},3860:(t,e,n)=>{const r=n(1570),s=n(9259),i=n(1641),o=n(8858),a=n(3853);t.exports=class extends i{constructor(t,e,n){super(t||[],e,n),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((n=>n.key.toValue()!==t||(e=n,!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 n=t,r=this.getMember(n);return r?r.value=e:this.content.push(new o(n,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((n=>t.bind(e)(n.value,n.key,n)))}compactMap(t,e){const n=[];return this.forEach(((r,s,i)=>{const o=t.bind(e)(r,s,i);o&&n.push(o)})),n}filter(t,e){return new a(this.content).filter(t,e)}reject(t,e){return this.filter(r(t),e)}forEach(t,e){return this.content.forEach((n=>t.bind(e)(n.value,n.key,n)))}}},9542:(t,e,n)=>{const r=n(6420);t.exports=class extends r{constructor(t,e,n){super(t,e,n),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(t,e,n)=>{const r=n(2947);t.exports=class extends r{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 n={element:t.element};t._meta&&t._meta.length>0&&(n.meta=this.serialiseObject(t.meta));const r="enum"===t.element||-1!==t.attributes.keys().indexOf("enumerations");if(r){const e=this.enumSerialiseAttributes(t);e&&(n.attributes=e)}else if(t._attributes&&t._attributes.length>0){let{attributes:r}=t;r.get("metadata")&&(r=r.clone(),r.set("meta",r.get("metadata")),r.remove("metadata")),"member"===t.element&&e&&(r=r.clone(),r.remove("variable")),r.length>0&&(n.attributes=this.serialiseObject(r))}if(r)n.content=this.enumSerialiseContent(t,n);else if(this[`${t.element}SerialiseContent`])n.content=this[`${t.element}SerialiseContent`](t,n);else if(void 0!==t.content){let r;e&&t.content.key?(r=t.content.clone(),r.key.attributes.set("variable",e),r=this.serialiseContent(r)):r=this.serialiseContent(t.content),this.shouldSerialiseContent(t,r)&&(n.content=r)}else this.shouldSerialiseContent(t,t.content)&&t instanceof this.namespace.elements.Array&&(n.content=[]);return n}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(),n=e.remove("enumerations")||new this.namespace.elements.Array([]),r=e.get("default");let s=e.get("samples")||new this.namespace.elements.Array([]);if(r&&r.content&&(r.content.attributes&&r.content.attributes.remove("typeAttributes"),e.set("default",new this.namespace.elements.Array([r.content]))),s.forEach((t=>{t.content&&t.content.element&&t.content.attributes.remove("typeAttributes")})),t.content&&0!==n.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),n=new e;n.element!==t.element&&(n.element=t.element),t.meta&&this.deserialiseObject(t.meta,n.meta),t.attributes&&this.deserialiseObject(t.attributes,n.attributes);const r=this.deserialiseContent(t.content);if(void 0===r&&null!==n.content||(n.content=r),"enum"===n.element){n.content&&n.attributes.set("enumerations",n.content);let t=n.attributes.get("samples");if(n.attributes.remove("samples"),t){const r=t;t=new this.namespace.elements.Array,r.forEach((r=>{r.forEach((r=>{const s=new e(r);s.element=n.element,t.push(s)}))}));const s=t.shift();n.content=s?s.content:void 0,n.attributes.set("samples",t)}else n.content=void 0;let r=n.attributes.get("default");if(r&&r.length>0){r=r.get(0);const t=new e(r);t.element=n.element,n.attributes.set("default",t)}}else if("dataStructure"===n.element&&Array.isArray(n.content))[n.content]=n.content;else if("category"===n.element){const t=n.attributes.get("meta");t&&(n.attributes.set("metadata",t),n.attributes.remove("meta"))}else"member"===n.element&&n.key&&n.key._attributes&&n.key._attributes.getValue("variable")&&(n.attributes.set("variable",n.key.attributes.get("variable")),n.key.attributes.remove("variable"));return n}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,n)=>{if(t){const r=n.toValue();e[r]=this.convertKeyToRefract(r,t)}})),e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}}},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 n=this.serialiseContent(t.content);return void 0!==n&&(e.content=n),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 n=this.deserialiseContent(t.content);return void 0===n&&null!==e.content||(e.content=n),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,n)=>{t&&(e[n.toValue()]=this.serialise(t))})),0!==Object.keys(e).length)return e}deserialiseObject(t,e){Object.keys(t).forEach((n=>{e.set(n,this.deserialise(t[n]))}))}}},6591:t=>{!function(){"use strict";var e,n,r,s,i,o="properties",a="deepProperties",c="propertyDescriptors",u="staticProperties",l="staticDeepProperties",p="staticPropertyDescriptors",f="configuration",h="deepConfiguration",_="deepProps",d="deepStatics",m="deepConf",y="initializers",g="methods",v="composers",b="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 n=w(e),r=0;r<n.length;r+=1)Object.defineProperty(t,n[r],Object.getOwnPropertyDescriptor(e,n[r]));return t}));function S(t){return"function"==typeof t}function A(t){return t&&"object"==typeof t||S(t)}function j(t){return t&&"object"==typeof t&&t.__proto__==Object.prototype}var O=E.bind(0,(function t(n,r){if(r===e)return n;if(Array.isArray(r))return(Array.isArray(n)?n:[]).concat(r);if(!j(r))return r;for(var s,i,o=w(r),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(r,s)).hasOwnProperty("value")?i.value!==e&&(n[s]=t(j(n[s])||Array.isArray(r[s])?n[s]:{},r[s])):Object.defineProperty(n,s,i);return n}));function P(){return(n=Array.prototype.concat.apply([],arguments).filter((function(t,e,n){return S(t)&&n.indexOf(t)===e}))).length?n:e}function k(t,e){function r(n,r){A(e[n])&&(A(t[n])||(t[n]={}),(r||x)(t[n],e[n]))}function s(r){(n=P(t[r],e[r]))&&(t[r]=n)}return e&&A(e=e[b]||e)&&(r(g),r(o),r(a,O),r(c),r(u),r(l,O),r(p),r(f),r(h,O),s(y),s(v)),t}function N(){return function(t){return n=function t(n){var r,s,i=t[b]||{},u={__proto__:i[g]},l=i[y],p=Array.prototype.slice.apply(arguments),f=i[a];if(f&&O(u,f),(f=i[o])&&x(u,f),(f=i[c])&&Object.defineProperties(u,f),!l||!l.length)return u;for(n===e&&(n={}),i=0;i<l.length;)S(r=l[i++])&&(u=(s=r.call(u,n,{instance:u,stamp:t,args:p}))===e?u:s);return u},(r=t[l])&&O(n,r),(r=t[u])&&x(n,r),(r=t[p])&&Object.defineProperties(n,r),r=S(n[b])?n[b]:N,x(n[b]=function(){return r.apply(this,arguments)},t),n}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function I(t){return S(t)&&S(t[b])}var M={};function T(t,i){return function(){return(s={})[t]=i.apply(e,Array.prototype.concat.apply([{}],arguments)),((n=this)&&n[b]||r).call(n,s)}}M[g]=T(g,x),M[o]=M.props=T(o,x),M[y]=M.init=T(y,P),M[v]=T(v,P),M[a]=M[_]=T(a,O),M[u]=M.statics=T(u,x),M[l]=M[d]=T(l,O),M[f]=M.conf=T(f,x),M[h]=M[m]=T(h,O),M[c]=T(c,x),M[p]=T(p,x),r=M[b]=x((function(){for(var t,w,E=0,S=[],j=arguments,k=this;E<j.length;)A(t=j[E++])&&S.push(I(t)?t:((s={})[g]=(w=t)[g]||e,r=w.props,s[o]=A((n=w[o])||r)?x({},r,n):e,s[y]=P(w.init,w[y]),s[v]=P(w[v]),r=w[_],s[a]=A((n=w[a])||r)?O({},r,n):e,s[c]=w[c],r=w.statics,s[u]=A((n=w[u])||r)?x({},r,n):e,r=w[d],s[l]=A((n=w[l])||r)?O({},r,n):e,n=w[p],s[p]=A((r=w.name&&{name:{value:w.name}})||n)?x({},n,r):e,r=w.conf,s[f]=A((n=w[f])||r)?x({},r,n):e,r=w[m],s[h]=A((n=w[h])||r)?O({},r,n):e,s));if(t=N.apply(k||i,S),k&&S.unshift(k),Array.isArray(j=t[b][v]))for(E=0;E<j.length;)t=I(k=j[E++]({stamp:t,composables:S}))?k:t;return t}),M),M.create=function(){return this.apply(e,arguments)},(s={})[u]=M,i=N(s),r[b]=r.bind(),r.version="4.3.2","object"!=typeof e?t.exports=r:self.stampit=r}()},2396:(t,e)=>{"use strict";var n;Object.defineProperty(e,"__esModule",{value:!0}),e.errorMessages=e.ErrorType=void 0,function(t){t.MalformedUnicode="MALFORMED_UNICODE",t.MalformedHexadecimal="MALFORMED_HEXADECIMAL",t.CodePointLimit="CODE_POINT_LIMIT",t.OctalDeprecation="OCTAL_DEPRECATION",t.EndOfString="END_OF_STRING"}(n=e.ErrorType||(e.ErrorType={})),e.errorMessages=new Map([[n.MalformedUnicode,"malformed Unicode character escape sequence"],[n.MalformedHexadecimal,"malformed hexadecimal character escape sequence"],[n.CodePointLimit,"Unicode codepoint must not be greater than 0x10FFFF in escape sequence"],[n.OctalDeprecation,'"0"-prefixed octal literals and octal escape sequences are deprecated; for octal literals use the "0o" prefix instead'],[n.EndOfString,"malformed escape sequence at end of string"]])},2770:(t,e,n)=>{"use strict";e.S6=void 0;const r=n(2396);function s(t,e,n){const s=function(t){return t.match(/[^a-f0-9]/i)?NaN:parseInt(t,16)}(t);if(Number.isNaN(s)||void 0!==n&&n!==t.length)throw new SyntaxError(r.errorMessages.get(e));return s}function i(t,e){const n=s(t,r.ErrorType.MalformedUnicode,4);if(void 0!==e){const t=s(e,r.ErrorType.MalformedUnicode,4);return String.fromCharCode(n,t)}return String.fromCharCode(n)}const o=new Map([["b","\b"],["f","\f"],["n","\n"],["r","\r"],["t","\t"],["v","\v"],["0","\0"]]);const a=/\\(?:(\\)|x([\s\S]{0,2})|u(\{[^}]*\}?)|u([\s\S]{4})\\u([^{][\s\S]{0,3})|u([\s\S]{0,4})|([0-3]?[0-7]{1,2})|([\s\S])|$)/g;function c(t,e=!1){return t.replace(a,(function(t,n,a,c,u,l,p,f,h){if(void 0!==n)return"\\";if(void 0!==a)return function(t){const e=s(t,r.ErrorType.MalformedHexadecimal,2);return String.fromCharCode(e)}(a);if(void 0!==c)return function(t){if("{"!==(e=t).charAt(0)||"}"!==e.charAt(e.length-1))throw new SyntaxError(r.errorMessages.get(r.ErrorType.MalformedUnicode));var e;const n=s(t.slice(1,-1),r.ErrorType.MalformedUnicode);try{return String.fromCodePoint(n)}catch(t){throw t instanceof RangeError?new SyntaxError(r.errorMessages.get(r.ErrorType.CodePointLimit)):t}}(c);if(void 0!==u)return i(u,l);if(void 0!==p)return i(p);if("0"===f)return"\0";if(void 0!==f)return function(t,e=!1){if(e)throw new SyntaxError(r.errorMessages.get(r.ErrorType.OctalDeprecation));const n=parseInt(t,8);return String.fromCharCode(n)}(f,!e);if(void 0!==h)return _=h,o.get(_)||_;var _;throw new SyntaxError(r.errorMessages.get(r.ErrorType.EndOfString))}))}e.S6=c},9794:(t,e,n)=>{var r=void 0!==r?r:{},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||(r=Object.assign({},r,o),e=new Promise((e=>{var o,a={};for(o in r)r.hasOwnProperty(o)&&(a[o]=r[o]);var c,u,l,p,f=[],h="./this.program",_=function(t,e){throw e};l="object"==typeof window,p="function"==typeof importScripts,c="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,u=!l&&!c&&!p;var d,m,y,g,v,b="";c?(b=p?n(6287).dirname(b)+"/":"//",d=function(t,e){return g||(g=n(5530)),v||(v=n(6287)),t=v.normalize(t),g.readFileSync(t,e?null:"utf8")},y=function(t){var e=d(t,!0);return e.buffer||(e=new Uint8Array(e)),T(e.buffer),e},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),f=process.argv.slice(2),t.exports=r,_=function(t){process.exit(t)},r.inspect=function(){return"[Emscripten Module object]"}):u?("undefined"!=typeof read&&(d=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?f=scriptArgs:void 0!==arguments&&(f=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||p)&&(p?b=self.location.href:void 0!==s&&s.currentScript&&(b=s.currentScript.src),b=0!==b.indexOf("blob:")?b.substr(0,b.lastIndexOf("/")+1):"",d=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.send(null),e.responseText},p&&(y=function(t){var e=new XMLHttpRequest;return e.open("GET",t,!1),e.responseType="arraybuffer",e.send(null),new Uint8Array(e.response)}),m=function(t,e,n){var r=new XMLHttpRequest;r.open("GET",t,!0),r.responseType="arraybuffer",r.onload=function(){200==r.status||0==r.status&&r.response?e(r.response):n()},r.onerror=n,r.send(null)}),r.print||console.log.bind(console);var w=r.printErr||console.warn.bind(console);for(o in a)a.hasOwnProperty(o)&&(r[o]=a[o]);a=null,r.arguments&&(f=r.arguments),r.thisProgram&&(h=r.thisProgram),r.quit&&(_=r.quit);var E,x=16,S=[];function A(t,e){if(!E){E=new WeakMap;for(var n=0;n<Y.length;n++){var r=Y.get(n);r&&E.set(r,n)}}if(E.has(t))return E.get(t);var s=function(){if(S.length)return S.pop();try{Y.grow(1)}catch(t){if(!(t instanceof RangeError))throw t;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Y.length-1}();try{Y.set(s,t)}catch(n){if(!(n instanceof TypeError))throw n;var i=function(t,e){if("function"==typeof WebAssembly.Function){for(var n={i:"i32",j:"i64",f:"f32",d:"f64"},r={parameters:[],results:"v"==e[0]?[]:[n[e[0]]]},s=1;s<e.length;++s)r.parameters.push(n[e[s]]);return new WebAssembly.Function(r,t)}var i=[1,0,1,96],o=e.slice(0,1),a=e.slice(1),c={i:127,j:126,f:125,d:124};for(i.push(a.length),s=0;s<a.length;++s)i.push(c[a[s]]);"v"==o?i.push(0):i=i.concat([1,c[o]]),i[1]=i.length-2;var u=new Uint8Array([0,97,115,109,1,0,0,0].concat(i,[2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0])),l=new WebAssembly.Module(u);return new WebAssembly.Instance(l,{e:{f:t}}).exports.f}(t,e);Y.set(s,i)}return E.set(t,s),s}var j,O=r.dynamicLibraries||[];r.wasmBinary&&(j=r.wasmBinary);var P,k=r.noExitRuntime||!0;function N(t,e,n,r){switch("*"===(n=n||"i8").charAt(n.length-1)&&(n="i32"),n){case"i1":case"i8":R[t>>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":D[t>>2]=e;break;case"double":$[t>>3]=e;break;default:at("invalid type for setValue: "+n)}}function I(t,e,n){switch("*"===(e=e||"i8").charAt(e.length-1)&&(e="i32"),e){case"i1":case"i8":return R[t>>0];case"i16":return q[t>>1];case"i32":case"i64":return L[t>>2];case"float":return D[t>>2];case"double":return $[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 C,R,F,q,L,D,$,V="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function B(t,e,n){for(var r=e+n,s=e;t[s]&&!(s>=r);)++s;if(s-e>16&&t.subarray&&V)return V.decode(t.subarray(e,s));for(var i="";e<s;){var o=t[e++];if(128&o){var a=63&t[e++];if(192!=(224&o)){var c=63&t[e++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&t[e++])<65536)i+=String.fromCharCode(o);else{var u=o-65536;i+=String.fromCharCode(55296|u>>10,56320|1023&u)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function z(t,e){return t?B(F,t,e):""}function U(t,e,n,r){if(!(r>0))return 0;for(var s=n,i=n+r-1,o=0;o<t.length;++o){var a=t.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&t.charCodeAt(++o)),a<=127){if(n>=i)break;e[n++]=a}else if(a<=2047){if(n+1>=i)break;e[n++]=192|a>>6,e[n++]=128|63&a}else if(a<=65535){if(n+2>=i)break;e[n++]=224|a>>12,e[n++]=128|a>>6&63,e[n++]=128|63&a}else{if(n+3>=i)break;e[n++]=240|a>>18,e[n++]=128|a>>12&63,e[n++]=128|a>>6&63,e[n++]=128|63&a}}return e[n]=0,n-s}function G(t,e,n){return U(t,F,e,n)}function W(t){for(var e=0,n=0;n<t.length;++n){var r=t.charCodeAt(n);r>=55296&&r<=57343&&(r=65536+((1023&r)<<10)|1023&t.charCodeAt(++n)),r<=127?++e:e+=r<=2047?2:r<=65535?3:4}return e}function K(t){var e=W(t)+1,n=zt(e);return U(t,R,n,e),n}function Z(t){C=t,r.HEAP8=R=new Int8Array(t),r.HEAP16=q=new Int16Array(t),r.HEAP32=L=new Int32Array(t),r.HEAPU8=F=new Uint8Array(t),r.HEAPU16=new Uint16Array(t),r.HEAPU32=new Uint32Array(t),r.HEAPF32=D=new Float32Array(t),r.HEAPF64=$=new Float64Array(t)}var H=r.INITIAL_MEMORY||33554432;(P=r.wasmMemory?r.wasmMemory:new WebAssembly.Memory({initial:H/65536,maximum:32768}))&&(C=P.buffer),H=C.byteLength,Z(C);var Y=new WebAssembly.Table({initial:17,element:"anyfunc"}),Q=[],X=[],J=[],tt=[],et=!1,nt=0,rt=null,st=null;function it(t){nt++,r.monitorRunDependencies&&r.monitorRunDependencies(nt)}function ot(t){if(nt--,r.monitorRunDependencies&&r.monitorRunDependencies(nt),0==nt&&(null!==rt&&(clearInterval(rt),rt=null),st)){var e=st;st=null,e()}}function at(t){throw r.onAbort&&r.onAbort(t),w(t+=""),M=!0,t="abort("+t+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(t)}r.preloadedImages={},r.preloadedAudios={},r.preloadedWasm={};var ct,ut,lt;function pt(t){return t.startsWith("data:application/octet-stream;base64,")}function ft(t){return t.startsWith("file://")}function ht(t){try{if(t==ct&&j)return new Uint8Array(j);if(y)return y(t);throw"both async and sync fetching of the wasm failed"}catch(t){at(t)}}pt(ct="tree-sitter.wasm")||(ct=function(t){return r.locateFile?r.locateFile(t,b):b+t}(ct));var _t={},dt={get:function(t,e){return _t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),_t[e]}};function mt(t){for(;t.length>0;){var e=t.shift();if("function"!=typeof e){var n=e.func;"number"==typeof n?void 0===e.arg?Y.get(n)():Y.get(n)(e.arg):n(void 0===e.arg?null:e.arg)}else e(r)}}function yt(t){var e=0;function n(){for(var n=0,r=1;;){var s=t[e++];if(n+=(127&s)*r,r*=128,!(128&s))break}return n}if(t instanceof WebAssembly.Module){var r=WebAssembly.Module.customSections(t,"dylink");T(0!=r.length,"need dylink section"),t=new Int8Array(r[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,n(),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=n(),s.memoryAlign=n(),s.tableSize=n(),s.tableAlign=n();var i=n();s.neededDynlibs=[];for(var o=0;o<i;++o){var a=n(),c=t.subarray(e,e+a);e+=a;var u=B(c,0);s.neededDynlibs.push(u)}return s}var gt=0;function vt(){return k||gt>0}function bt(t){return 0==t.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(t)?t:"_"+t}function wt(t,e){for(var n in t)if(t.hasOwnProperty(n)){Lt.hasOwnProperty(n)||(Lt[n]=t[n]);var s=bt(n);r.hasOwnProperty(s)||(r[s]=t[n])}}var Et={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var xt=5250880;function St(t){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(t)}function At(t,e){var n={};for(var r in t){var s=t[r];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=e),n[r]=s}return function(t){for(var e in t)if(!St(e)){var n=!1,r=t[e];e.startsWith("orig$")&&(e=e.split("$")[1],n=!0),_t[e]||(_t[e]=new WebAssembly.Global({value:"i32",mutable:!0})),(n||0==_t[e].value)&&("function"==typeof r?_t[e].value=A(r):"number"==typeof r?_t[e].value=r:w("unhandled export type for `"+e+"`: "+typeof r))}}(n),n}function jt(t,e){var n,s;return e&&(n=Lt["orig$"+t]),n||(n=Lt[t]),n||(n=r[bt(t)]),!n&&t.startsWith("invoke_")&&(s=t.split("_")[1],n=function(){var t=Vt();try{return function(t,e,n){return t.includes("j")?function(t,e,n){var s=r["dynCall_"+t];return n&&n.length?s.apply(null,[e].concat(n)):s.call(null,e)}(t,e,n):Y.get(e).apply(null,n)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(Bt(t),e!==e+0&&"longjmp"!==e)throw e;Ut(1,0)}}),n}function Ot(t,e){var n=yt(t);function r(){var r=Math.pow(2,n.memoryAlign);r=Math.max(r,x);var s,i,o,a=(s=function(t){if(et)return Dt(t);var e=xt,n=e+t+15&-16;return xt=n,_t.__heap_base.value=n,e}(n.memorySize+r),(i=r)||(i=x),Math.ceil(s/i)*i),c=Y.length;Y.grow(n.tableSize);for(var u=a;u<a+n.memorySize;u++)R[u]=0;for(u=c;u<c+n.tableSize;u++)Y.set(u,null);var l=new Proxy({},{get:function(t,e){switch(e){case"__memory_base":return a;case"__table_base":return c}return e in Lt?Lt[e]:(e in t||(t[e]=function(){return n||(n=function(t){var e=jt(t,!1);return e||(e=o[t]),e}(e)),n.apply(null,arguments)}),t[e]);var n}}),p={"GOT.mem":new Proxy({},dt),"GOT.func":new Proxy({},dt),env:l,wasi_snapshot_preview1:l};function f(t){for(var r=0;r<n.tableSize;r++){var s=Y.get(c+r);s&&E.set(s,c+r)}o=At(t.exports,a),e.allowUndefined||kt();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(et?i():X.push(i)),o}if(e.loadAsync){if(t instanceof WebAssembly.Module){var h=new WebAssembly.Instance(t,p);return Promise.resolve(f(h))}return WebAssembly.instantiate(t,p).then((function(t){return f(t.instance)}))}var _=t instanceof WebAssembly.Module?t:new WebAssembly.Module(t);return f(h=new WebAssembly.Instance(_,p))}return e.loadAsync?n.neededDynlibs.reduce((function(t,n){return t.then((function(){return Pt(n,e)}))}),Promise.resolve()).then((function(){return r()})):(n.neededDynlibs.forEach((function(t){Pt(t,e)})),r())}function Pt(t,e){"__main__"!=t||Et.loadedLibNames[t]||(Et.loadedLibs[-1]={refcount:1/0,name:"__main__",module:r.asm,global:!0},Et.loadedLibNames.__main__=-1),e=e||{global:!0,nodelete:!0};var n,s=Et.loadedLibNames[t];if(s)return n=Et.loadedLibs[s],e.global&&!n.global&&(n.global=!0,"loading"!==n.module&&wt(n.module)),e.nodelete&&n.refcount!==1/0&&(n.refcount=1/0),n.refcount++,e.loadAsync?Promise.resolve(s):s;function i(t){if(e.fs){var n=e.fs.readFile(t,{encoding:"binary"});return n instanceof Uint8Array||(n=new Uint8Array(n)),e.loadAsync?Promise.resolve(n):n}return e.loadAsync?(r=t,fetch(r,{credentials:"same-origin"}).then((function(t){if(!t.ok)throw"failed to load binary file at '"+r+"'";return t.arrayBuffer()})).then((function(t){return new Uint8Array(t)}))):y(t);var r}function o(){if(void 0!==r.preloadedWasm&&void 0!==r.preloadedWasm[t]){var n=r.preloadedWasm[t];return e.loadAsync?Promise.resolve(n):n}return e.loadAsync?i(t).then((function(t){return Ot(t,e)})):Ot(i(t),e)}function a(t){n.global&&wt(t),n.module=t}return s=Et.nextHandle++,n={refcount:e.nodelete?1/0:1,name:t,module:"loading",global:e.global},Et.loadedLibNames[t]=s,Et.loadedLibs[s]=n,e.loadAsync?o().then((function(t){return a(t),s})):(a(o()),s)}function kt(){for(var t in _t)if(0==_t[t].value){var e=jt(t,!0);"function"==typeof e?_t[t].value=A(e,e.sig):"number"==typeof e?_t[t].value=e:T(!1,"bad export type for `"+t+"`: "+typeof e)}}r.___heap_base=xt;var Nt,It=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Mt(){at()}r._abort=Mt,Mt.sig="v",Nt=c?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Tt(t,e){var n;if(0===t)n=Date.now();else{if(1!==t&&4!==t)return 28,L[$t()>>2]=28,-1;n=Nt()}return L[e>>2]=n/1e3|0,L[e+4>>2]=n%1e3*1e3*1e3|0,0}function Ct(t){try{return P.grow(t-C.byteLength+65535>>>16),Z(P.buffer),1}catch(t){}}function Rt(t){Zt(t)}function Ft(t){}Tt.sig="iii",Rt.sig="vi",Ft.sig="vi";var qt,Lt={__heap_base:xt,__indirect_function_table:Y,__memory_base:1024,__stack_pointer:It,__table_base:1,abort:Mt,clock_gettime:Tt,emscripten_memcpy_big:function(t,e,n){F.copyWithin(t,e,e+n)},emscripten_resize_heap:function(t){var e,n=F.length;if((t>>>=0)>2147483648)return!1;for(var r=1;r<=4;r*=2){var s=n*(1+.2/r);if(s=Math.min(s,t+100663296),Ct(Math.min(2147483648,((e=Math.max(t,s))%65536>0&&(e+=65536-e%65536),e))))return!0}return!1},exit:Rt,memory:P,setTempRet0:Ft,tree_sitter_log_callback:function(t,e){if(ue){const n=z(e);ue(n,0!==t)}},tree_sitter_parse_callback:function(t,e,n,r,s){var i=ce(e,{row:n,column:r});"string"==typeof i?(N(s,i.length,"i32"),function(t,e,n){if(void 0===n&&(n=2147483647),n<2)return 0;for(var r=(n-=2)<2*t.length?n/2:t.length,s=0;s<r;++s){var i=t.charCodeAt(s);q[e>>1]=i,e+=2}q[e>>1]=0}(i,t,10240)):N(s,0,"i32")}},Dt=(function(){var t={env:Lt,wasi_snapshot_preview1:Lt,"GOT.mem":new Proxy(Lt,dt),"GOT.func":new Proxy(Lt,dt)};function e(t,e){var n=t.exports;n=At(n,1024),r.asm=n;var s,i=yt(e);i.neededDynlibs&&(O=i.neededDynlibs.concat(O)),wt(n),s=r.asm.__wasm_call_ctors,X.unshift(s),ot()}function n(t){e(t.instance,t.module)}function s(e){return function(){if(!j&&(l||p)){if("function"==typeof fetch&&!ft(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(m)return new Promise((function(t,e){m(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(),r.instantiateWasm)try{return r.instantiateWasm(t,e)}catch(t){return w("Module.instantiateWasm callback failed with error: "+t),!1}j||"function"!=typeof WebAssembly.instantiateStreaming||pt(ct)||ft(ct)||"function"!=typeof fetch?s(n):fetch(ct,{credentials:"same-origin"}).then((function(e){return WebAssembly.instantiateStreaming(e,t).then(n,(function(t){return w("wasm streaming compile failed: "+t),w("falling back to ArrayBuffer instantiation"),s(n)}))}))}(),r.___wasm_call_ctors=function(){return(r.___wasm_call_ctors=r.asm.__wasm_call_ctors).apply(null,arguments)},r._malloc=function(){return(Dt=r._malloc=r.asm.malloc).apply(null,arguments)}),$t=(r._calloc=function(){return(r._calloc=r.asm.calloc).apply(null,arguments)},r._realloc=function(){return(r._realloc=r.asm.realloc).apply(null,arguments)},r._free=function(){return(r._free=r.asm.free).apply(null,arguments)},r._ts_language_symbol_count=function(){return(r._ts_language_symbol_count=r.asm.ts_language_symbol_count).apply(null,arguments)},r._ts_language_version=function(){return(r._ts_language_version=r.asm.ts_language_version).apply(null,arguments)},r._ts_language_field_count=function(){return(r._ts_language_field_count=r.asm.ts_language_field_count).apply(null,arguments)},r._ts_language_symbol_name=function(){return(r._ts_language_symbol_name=r.asm.ts_language_symbol_name).apply(null,arguments)},r._ts_language_symbol_for_name=function(){return(r._ts_language_symbol_for_name=r.asm.ts_language_symbol_for_name).apply(null,arguments)},r._ts_language_symbol_type=function(){return(r._ts_language_symbol_type=r.asm.ts_language_symbol_type).apply(null,arguments)},r._ts_language_field_name_for_id=function(){return(r._ts_language_field_name_for_id=r.asm.ts_language_field_name_for_id).apply(null,arguments)},r._memcpy=function(){return(r._memcpy=r.asm.memcpy).apply(null,arguments)},r._ts_parser_delete=function(){return(r._ts_parser_delete=r.asm.ts_parser_delete).apply(null,arguments)},r._ts_parser_reset=function(){return(r._ts_parser_reset=r.asm.ts_parser_reset).apply(null,arguments)},r._ts_parser_set_language=function(){return(r._ts_parser_set_language=r.asm.ts_parser_set_language).apply(null,arguments)},r._ts_parser_timeout_micros=function(){return(r._ts_parser_timeout_micros=r.asm.ts_parser_timeout_micros).apply(null,arguments)},r._ts_parser_set_timeout_micros=function(){return(r._ts_parser_set_timeout_micros=r.asm.ts_parser_set_timeout_micros).apply(null,arguments)},r._memmove=function(){return(r._memmove=r.asm.memmove).apply(null,arguments)},r._memcmp=function(){return(r._memcmp=r.asm.memcmp).apply(null,arguments)},r._ts_query_new=function(){return(r._ts_query_new=r.asm.ts_query_new).apply(null,arguments)},r._ts_query_delete=function(){return(r._ts_query_delete=r.asm.ts_query_delete).apply(null,arguments)},r._iswspace=function(){return(r._iswspace=r.asm.iswspace).apply(null,arguments)},r._iswalnum=function(){return(r._iswalnum=r.asm.iswalnum).apply(null,arguments)},r._ts_query_pattern_count=function(){return(r._ts_query_pattern_count=r.asm.ts_query_pattern_count).apply(null,arguments)},r._ts_query_capture_count=function(){return(r._ts_query_capture_count=r.asm.ts_query_capture_count).apply(null,arguments)},r._ts_query_string_count=function(){return(r._ts_query_string_count=r.asm.ts_query_string_count).apply(null,arguments)},r._ts_query_capture_name_for_id=function(){return(r._ts_query_capture_name_for_id=r.asm.ts_query_capture_name_for_id).apply(null,arguments)},r._ts_query_string_value_for_id=function(){return(r._ts_query_string_value_for_id=r.asm.ts_query_string_value_for_id).apply(null,arguments)},r._ts_query_predicates_for_pattern=function(){return(r._ts_query_predicates_for_pattern=r.asm.ts_query_predicates_for_pattern).apply(null,arguments)},r._ts_tree_copy=function(){return(r._ts_tree_copy=r.asm.ts_tree_copy).apply(null,arguments)},r._ts_tree_delete=function(){return(r._ts_tree_delete=r.asm.ts_tree_delete).apply(null,arguments)},r._ts_init=function(){return(r._ts_init=r.asm.ts_init).apply(null,arguments)},r._ts_parser_new_wasm=function(){return(r._ts_parser_new_wasm=r.asm.ts_parser_new_wasm).apply(null,arguments)},r._ts_parser_enable_logger_wasm=function(){return(r._ts_parser_enable_logger_wasm=r.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},r._ts_parser_parse_wasm=function(){return(r._ts_parser_parse_wasm=r.asm.ts_parser_parse_wasm).apply(null,arguments)},r._ts_language_type_is_named_wasm=function(){return(r._ts_language_type_is_named_wasm=r.asm.ts_language_type_is_named_wasm).apply(null,arguments)},r._ts_language_type_is_visible_wasm=function(){return(r._ts_language_type_is_visible_wasm=r.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},r._ts_tree_root_node_wasm=function(){return(r._ts_tree_root_node_wasm=r.asm.ts_tree_root_node_wasm).apply(null,arguments)},r._ts_tree_edit_wasm=function(){return(r._ts_tree_edit_wasm=r.asm.ts_tree_edit_wasm).apply(null,arguments)},r._ts_tree_get_changed_ranges_wasm=function(){return(r._ts_tree_get_changed_ranges_wasm=r.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},r._ts_tree_cursor_new_wasm=function(){return(r._ts_tree_cursor_new_wasm=r.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},r._ts_tree_cursor_delete_wasm=function(){return(r._ts_tree_cursor_delete_wasm=r.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},r._ts_tree_cursor_reset_wasm=function(){return(r._ts_tree_cursor_reset_wasm=r.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_first_child_wasm=function(){return(r._ts_tree_cursor_goto_first_child_wasm=r.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_next_sibling_wasm=function(){return(r._ts_tree_cursor_goto_next_sibling_wasm=r.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},r._ts_tree_cursor_goto_parent_wasm=function(){return(r._ts_tree_cursor_goto_parent_wasm=r.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_type_id_wasm=function(){return(r._ts_tree_cursor_current_node_type_id_wasm=r.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_named_wasm=function(){return(r._ts_tree_cursor_current_node_is_named_wasm=r.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_is_missing_wasm=function(){return(r._ts_tree_cursor_current_node_is_missing_wasm=r.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_id_wasm=function(){return(r._ts_tree_cursor_current_node_id_wasm=r.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},r._ts_tree_cursor_start_position_wasm=function(){return(r._ts_tree_cursor_start_position_wasm=r.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},r._ts_tree_cursor_end_position_wasm=function(){return(r._ts_tree_cursor_end_position_wasm=r.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},r._ts_tree_cursor_start_index_wasm=function(){return(r._ts_tree_cursor_start_index_wasm=r.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},r._ts_tree_cursor_end_index_wasm=function(){return(r._ts_tree_cursor_end_index_wasm=r.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},r._ts_tree_cursor_current_field_id_wasm=function(){return(r._ts_tree_cursor_current_field_id_wasm=r.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},r._ts_tree_cursor_current_node_wasm=function(){return(r._ts_tree_cursor_current_node_wasm=r.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},r._ts_node_symbol_wasm=function(){return(r._ts_node_symbol_wasm=r.asm.ts_node_symbol_wasm).apply(null,arguments)},r._ts_node_child_count_wasm=function(){return(r._ts_node_child_count_wasm=r.asm.ts_node_child_count_wasm).apply(null,arguments)},r._ts_node_named_child_count_wasm=function(){return(r._ts_node_named_child_count_wasm=r.asm.ts_node_named_child_count_wasm).apply(null,arguments)},r._ts_node_child_wasm=function(){return(r._ts_node_child_wasm=r.asm.ts_node_child_wasm).apply(null,arguments)},r._ts_node_named_child_wasm=function(){return(r._ts_node_named_child_wasm=r.asm.ts_node_named_child_wasm).apply(null,arguments)},r._ts_node_child_by_field_id_wasm=function(){return(r._ts_node_child_by_field_id_wasm=r.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},r._ts_node_next_sibling_wasm=function(){return(r._ts_node_next_sibling_wasm=r.asm.ts_node_next_sibling_wasm).apply(null,arguments)},r._ts_node_prev_sibling_wasm=function(){return(r._ts_node_prev_sibling_wasm=r.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},r._ts_node_next_named_sibling_wasm=function(){return(r._ts_node_next_named_sibling_wasm=r.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},r._ts_node_prev_named_sibling_wasm=function(){return(r._ts_node_prev_named_sibling_wasm=r.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},r._ts_node_parent_wasm=function(){return(r._ts_node_parent_wasm=r.asm.ts_node_parent_wasm).apply(null,arguments)},r._ts_node_descendant_for_index_wasm=function(){return(r._ts_node_descendant_for_index_wasm=r.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_index_wasm=function(){return(r._ts_node_named_descendant_for_index_wasm=r.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},r._ts_node_descendant_for_position_wasm=function(){return(r._ts_node_descendant_for_position_wasm=r.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_named_descendant_for_position_wasm=function(){return(r._ts_node_named_descendant_for_position_wasm=r.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},r._ts_node_start_point_wasm=function(){return(r._ts_node_start_point_wasm=r.asm.ts_node_start_point_wasm).apply(null,arguments)},r._ts_node_end_point_wasm=function(){return(r._ts_node_end_point_wasm=r.asm.ts_node_end_point_wasm).apply(null,arguments)},r._ts_node_start_index_wasm=function(){return(r._ts_node_start_index_wasm=r.asm.ts_node_start_index_wasm).apply(null,arguments)},r._ts_node_end_index_wasm=function(){return(r._ts_node_end_index_wasm=r.asm.ts_node_end_index_wasm).apply(null,arguments)},r._ts_node_to_string_wasm=function(){return(r._ts_node_to_string_wasm=r.asm.ts_node_to_string_wasm).apply(null,arguments)},r._ts_node_children_wasm=function(){return(r._ts_node_children_wasm=r.asm.ts_node_children_wasm).apply(null,arguments)},r._ts_node_named_children_wasm=function(){return(r._ts_node_named_children_wasm=r.asm.ts_node_named_children_wasm).apply(null,arguments)},r._ts_node_descendants_of_type_wasm=function(){return(r._ts_node_descendants_of_type_wasm=r.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},r._ts_node_is_named_wasm=function(){return(r._ts_node_is_named_wasm=r.asm.ts_node_is_named_wasm).apply(null,arguments)},r._ts_node_has_changes_wasm=function(){return(r._ts_node_has_changes_wasm=r.asm.ts_node_has_changes_wasm).apply(null,arguments)},r._ts_node_has_error_wasm=function(){return(r._ts_node_has_error_wasm=r.asm.ts_node_has_error_wasm).apply(null,arguments)},r._ts_node_is_missing_wasm=function(){return(r._ts_node_is_missing_wasm=r.asm.ts_node_is_missing_wasm).apply(null,arguments)},r._ts_query_matches_wasm=function(){return(r._ts_query_matches_wasm=r.asm.ts_query_matches_wasm).apply(null,arguments)},r._ts_query_captures_wasm=function(){return(r._ts_query_captures_wasm=r.asm.ts_query_captures_wasm).apply(null,arguments)},r._iswdigit=function(){return(r._iswdigit=r.asm.iswdigit).apply(null,arguments)},r._iswalpha=function(){return(r._iswalpha=r.asm.iswalpha).apply(null,arguments)},r._iswlower=function(){return(r._iswlower=r.asm.iswlower).apply(null,arguments)},r._towupper=function(){return(r._towupper=r.asm.towupper).apply(null,arguments)},r.___errno_location=function(){return($t=r.___errno_location=r.asm.__errno_location).apply(null,arguments)}),Vt=(r._memchr=function(){return(r._memchr=r.asm.memchr).apply(null,arguments)},r._strlen=function(){return(r._strlen=r.asm.strlen).apply(null,arguments)},r.stackSave=function(){return(Vt=r.stackSave=r.asm.stackSave).apply(null,arguments)}),Bt=r.stackRestore=function(){return(Bt=r.stackRestore=r.asm.stackRestore).apply(null,arguments)},zt=r.stackAlloc=function(){return(zt=r.stackAlloc=r.asm.stackAlloc).apply(null,arguments)},Ut=r._setThrew=function(){return(Ut=r._setThrew=r.asm.setThrew).apply(null,arguments)};function Gt(t){this.name="ExitStatus",this.message="Program terminated with exit("+t+")",this.status=t}r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(r.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=r.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(r.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=r.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(r.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=r.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},r.__Znwm=function(){return(r.__Znwm=r.asm._Znwm).apply(null,arguments)},r.__ZdlPv=function(){return(r.__ZdlPv=r.asm._ZdlPv).apply(null,arguments)},r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(r.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=r.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},r._orig$ts_parser_timeout_micros=function(){return(r._orig$ts_parser_timeout_micros=r.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},r._orig$ts_parser_set_timeout_micros=function(){return(r._orig$ts_parser_set_timeout_micros=r.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},r.allocate=function(t,e){var n;return n=1==e?zt(t.length):Dt(t.length),t.subarray||t.slice?F.set(t,n):F.set(new Uint8Array(t),n),n},st=function t(){qt||Kt(),qt||(st=t)};var Wt=!1;function Kt(t){function e(){qt||(qt=!0,r.calledRun=!0,M||(et=!0,mt(X),mt(J),r.onRuntimeInitialized&&r.onRuntimeInitialized(),Ht&&function(t){var e=r._main;if(e){var n=(t=t||[]).length+1,s=zt(4*(n+1));L[s>>2]=K(h);for(var i=1;i<n;i++)L[(s>>2)+i]=K(t[i-1]);L[(s>>2)+n]=0;try{Zt(e(n,s),!0)}catch(t){if(t instanceof Gt)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(r.postRun)for("function"==typeof r.postRun&&(r.postRun=[r.postRun]);r.postRun.length;)t=r.postRun.shift(),tt.unshift(t);var t;mt(tt)}()))}t=t||f,nt>0||!Wt&&(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()}(),Wt=!0,nt>0)||(function(){if(r.preRun)for("function"==typeof r.preRun&&(r.preRun=[r.preRun]);r.preRun.length;)t=r.preRun.shift(),Q.unshift(t);var t;mt(Q)}(),nt>0||(r.setStatus?(r.setStatus("Running..."),setTimeout((function(){setTimeout((function(){r.setStatus("")}),1),e()}),1)):e()))}function Zt(t,e){e&&vt()&&0===t||(vt()||(r.onExit&&r.onExit(t),M=!0),_(t,new Gt(t)))}if(r.run=Kt,r.preInit)for("function"==typeof r.preInit&&(r.preInit=[r.preInit]);r.preInit.length>0;)r.preInit.pop()();var Ht=!0;r.noInitialRun&&(Ht=!1),Kt();const Yt=r,Qt={},Xt=4,Jt=5*Xt,te=2*Xt,ee=2*Xt+2*te,ne={row:0,column:0},re=/[\w-.]*/g,se=/^_?tree_sitter_\w+/;var ie,oe,ae,ce,ue;class le{static init(){ae=Yt._ts_init(),ie=I(ae,"i32"),oe=I(ae+Xt,"i32")}initialize(){Yt._ts_parser_new_wasm(),this[0]=I(ae,"i32"),this[1]=I(ae+Xt,"i32")}delete(){Yt._ts_parser_delete(this[0]),Yt._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 n=Yt._ts_language_version(e);if(n<oe||ie<n)throw new Error(`Incompatible language version ${n}. Compatibility range ${oe} through ${ie}.`)}}else e=0,t=null;return this.language=t,Yt._ts_parser_set_language(this[0],e),this}getLanguage(){return this.language}parse(t,e,n){if("string"==typeof t)ce=(e,n,r)=>t.slice(e,r);else{if("function"!=typeof t)throw new Error("Argument must be a string or a function");ce=t}this.logCallback?(ue=this.logCallback,Yt._ts_parser_enable_logger_wasm(this[0],1)):(ue=null,Yt._ts_parser_enable_logger_wasm(this[0],0));let r=0,s=0;if(n&&n.includedRanges){r=n.includedRanges.length;let t=s=Yt._calloc(r,ee);for(let e=0;e<r;e++)je(t,n.includedRanges[e]),t+=ee}const i=Yt._ts_parser_parse_wasm(this[0],this[1],e?e[0]:0,s,r);if(!i)throw ce=null,ue=null,new Error("Parsing failed");const o=new pe(Qt,i,this.language,ce);return ce=null,ue=null,o}reset(){Yt._ts_parser_reset(this[0])}setTimeoutMicros(t){Yt._ts_parser_set_timeout_micros(this[0],t)}getTimeoutMicros(){return Yt._ts_parser_timeout_micros(this[0])}setLogger(t){if(t){if("function"!=typeof t)throw new Error("Logger callback must be a function")}else t=null;return this.logCallback=t,this}getLogger(){return this.logCallback}}class pe{constructor(t,e,n,r){ge(t),this[0]=e,this.language=n,this.textCallback=r}copy(){const t=Yt._ts_tree_copy(this[0]);return new pe(Qt,t,this.language,this.textCallback)}delete(){Yt._ts_tree_delete(this[0]),this[0]=0}edit(t){!function(t){let e=ae;Se(e,t.startPosition),Se(e+=te,t.oldEndPosition),Se(e+=te,t.newEndPosition),N(e+=te,t.startIndex,"i32"),N(e+=Xt,t.oldEndIndex,"i32"),N(e+=Xt,t.newEndIndex,"i32"),e+=Xt}(t),Yt._ts_tree_edit_wasm(this[0])}get rootNode(){return Yt._ts_tree_root_node_wasm(this[0]),we(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(t){if(t.constructor!==pe)throw new TypeError("Argument must be a Tree");Yt._ts_tree_get_changed_ranges_wasm(this[0],t[0]);const e=I(ae,"i32"),n=I(ae+Xt,"i32"),r=new Array(e);if(e>0){let t=n;for(let n=0;n<e;n++)r[n]=Oe(t),t+=ee;Yt._free(n)}return r}}class fe{constructor(t,e){ge(t),this.tree=e}get typeId(){return be(this),Yt._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return be(this),Yt._ts_node_end_point_wasm(this.tree[0]),Ae(ae)}get endIndex(){return be(this),Yt._ts_node_end_index_wasm(this.tree[0])}get text(){return me(this.tree,this.startIndex,this.endIndex)}isNamed(){return be(this),1===Yt._ts_node_is_named_wasm(this.tree[0])}hasError(){return be(this),1===Yt._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return be(this),1===Yt._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return be(this),1===Yt._ts_node_is_missing_wasm(this.tree[0])}equals(t){return this.id===t.id}child(t){return be(this),Yt._ts_node_child_wasm(this.tree[0],t),we(this.tree)}namedChild(t){return be(this),Yt._ts_node_named_child_wasm(this.tree[0],t),we(this.tree)}childForFieldId(t){return be(this),Yt._ts_node_child_by_field_id_wasm(this.tree[0],t),we(this.tree)}childForFieldName(t){const e=this.tree.language.fields.indexOf(t);if(-1!==e)return this.childForFieldId(e)}get childCount(){return be(this),Yt._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return be(this),Yt._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){be(this),Yt._ts_node_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Xt,"i32");if(this._children=new Array(t),t>0){let n=e;for(let e=0;e<t;e++)this._children[e]=we(this.tree,n),n+=Jt;Yt._free(e)}}return this._children}get namedChildren(){if(!this._namedChildren){be(this),Yt._ts_node_named_children_wasm(this.tree[0]);const t=I(ae,"i32"),e=I(ae+Xt,"i32");if(this._namedChildren=new Array(t),t>0){let n=e;for(let e=0;e<t;e++)this._namedChildren[e]=we(this.tree,n),n+=Jt;Yt._free(e)}}return this._namedChildren}descendantsOfType(t,e,n){Array.isArray(t)||(t=[t]),e||(e=ne),n||(n=ne);const r=[],s=this.tree.language.types;for(let e=0,n=s.length;e<n;e++)t.includes(s[e])&&r.push(e);const i=Yt._malloc(Xt*r.length);for(let t=0,e=r.length;t<e;t++)N(i+t*Xt,r[t],"i32");be(this),Yt._ts_node_descendants_of_type_wasm(this.tree[0],i,r.length,e.row,e.column,n.row,n.column);const o=I(ae,"i32"),a=I(ae+Xt,"i32"),c=new Array(o);if(o>0){let t=a;for(let e=0;e<o;e++)c[e]=we(this.tree,t),t+=Jt}return Yt._free(a),Yt._free(i),c}get nextSibling(){return be(this),Yt._ts_node_next_sibling_wasm(this.tree[0]),we(this.tree)}get previousSibling(){return be(this),Yt._ts_node_prev_sibling_wasm(this.tree[0]),we(this.tree)}get nextNamedSibling(){return be(this),Yt._ts_node_next_named_sibling_wasm(this.tree[0]),we(this.tree)}get previousNamedSibling(){return be(this),Yt._ts_node_prev_named_sibling_wasm(this.tree[0]),we(this.tree)}get parent(){return be(this),Yt._ts_node_parent_wasm(this.tree[0]),we(this.tree)}descendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let n=ae+Jt;return N(n,t,"i32"),N(n+Xt,e,"i32"),Yt._ts_node_descendant_for_index_wasm(this.tree[0]),we(this.tree)}namedDescendantForIndex(t,e=t){if("number"!=typeof t||"number"!=typeof e)throw new Error("Arguments must be numbers");be(this);let n=ae+Jt;return N(n,t,"i32"),N(n+Xt,e,"i32"),Yt._ts_node_named_descendant_for_index_wasm(this.tree[0]),we(this.tree)}descendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let n=ae+Jt;return Se(n,t),Se(n+te,e),Yt._ts_node_descendant_for_position_wasm(this.tree[0]),we(this.tree)}namedDescendantForPosition(t,e=t){if(!ve(t)||!ve(e))throw new Error("Arguments must be {row, column} objects");be(this);let n=ae+Jt;return Se(n,t),Se(n+te,e),Yt._ts_node_named_descendant_for_position_wasm(this.tree[0]),we(this.tree)}walk(){return be(this),Yt._ts_tree_cursor_new_wasm(this.tree[0]),new he(Qt,this.tree)}toString(){be(this);const t=Yt._ts_node_to_string_wasm(this.tree[0]),e=function(t){for(var e="";;){var n=F[t++>>0];if(!n)return e;e+=String.fromCharCode(n)}}(t);return Yt._free(t),e}}class he{constructor(t,e){ge(t),this.tree=e,xe(this)}delete(){Ee(this),Yt._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(t){be(t),Ee(this,ae+Jt),Yt._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),Yt._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ee(this),Yt._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ee(this),1===Yt._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ee(this),1===Yt._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ee(this);const t=Yt._ts_tree_cursor_start_index_wasm(this.tree[0]),e=Yt._ts_tree_cursor_end_index_wasm(this.tree[0]);return me(this.tree,t,e)}get startPosition(){return Ee(this),Yt._ts_tree_cursor_start_position_wasm(this.tree[0]),Ae(ae)}get endPosition(){return Ee(this),Yt._ts_tree_cursor_end_position_wasm(this.tree[0]),Ae(ae)}get startIndex(){return Ee(this),Yt._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ee(this),Yt._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ee(this),Yt._ts_tree_cursor_current_node_wasm(this.tree[0]),we(this.tree)}currentFieldId(){return Ee(this),Yt._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ee(this);const t=Yt._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return xe(this),1===t}gotoNextSibling(){Ee(this);const t=Yt._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return xe(this),1===t}gotoParent(){Ee(this);const t=Yt._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(Yt._ts_language_symbol_count(this[0]));for(let t=0,e=this.types.length;t<e;t++)Yt._ts_language_symbol_type(this[0],t)<2&&(this.types[t]=z(Yt._ts_language_symbol_name(this[0],t)));this.fields=new Array(Yt._ts_language_field_count(this[0])+1);for(let t=0,e=this.fields.length;t<e;t++){const e=Yt._ts_language_field_name_for_id(this[0],t);this.fields[t]=0!==e?z(e):null}}get version(){return Yt._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(t){const e=this.fields.indexOf(t);return-1!==e?e:null}fieldNameForId(t){return this.fields[t]||null}idForNodeType(t,e){const n=W(t),r=Yt._malloc(n+1);G(t,r,n+1);const s=Yt._ts_language_symbol_for_name(this[0],r,n,e);return Yt._free(r),s||null}get nodeTypeCount(){return Yt._ts_language_symbol_count(this[0])}nodeTypeForId(t){const e=Yt._ts_language_symbol_name(this[0],t);return e?z(e):null}nodeTypeIsNamed(t){return!!Yt._ts_language_type_is_named_wasm(this[0],t)}nodeTypeIsVisible(t){return!!Yt._ts_language_type_is_visible_wasm(this[0],t)}query(t){const e=W(t),n=Yt._malloc(e+1);G(t,n,e+1);const r=Yt._ts_query_new(this[0],n,e,ae,ae+Xt);if(!r){const e=I(ae+Xt,"i32"),r=z(n,I(ae,"i32")).length,s=t.substr(r,100).split("\n")[0];let i,o=s.match(re)[0];switch(e){case 2:i=new RangeError(`Bad node name '${o}'`);break;case 3:i=new RangeError(`Bad field name '${o}'`);break;case 4:i=new RangeError(`Bad capture name @${o}`);break;case 5:i=new TypeError(`Bad pattern structure at offset ${r}: '${s}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${r}: '${s}'...`),o=""}throw i.index=r,i.length=o.length,Yt._free(n),i}const s=Yt._ts_query_string_count(r),i=Yt._ts_query_capture_count(r),o=Yt._ts_query_pattern_count(r),a=new Array(i),c=new Array(s);for(let t=0;t<i;t++){const e=Yt._ts_query_capture_name_for_id(r,t,ae),n=I(ae,"i32");a[t]=z(e,n)}for(let t=0;t<s;t++){const e=Yt._ts_query_string_value_for_id(r,t,ae),n=I(ae,"i32");c[t]=z(e,n)}const u=new Array(o),l=new Array(o),p=new Array(o),f=new Array(o),h=new Array(o);for(let t=0;t<o;t++){const e=Yt._ts_query_predicates_for_pattern(r,t,ae),n=I(ae,"i32");f[t]=[],h[t]=[];const s=[];let i=e;for(let e=0;e<n;e++){const e=I(i,"i32"),n=I(i+=Xt,"i32");if(i+=Xt,1===e)s.push({type:"capture",name:a[n]});else if(2===e)s.push({type:"string",value:c[n]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const e=s[0].value;let n=!0;switch(e){case"not-eq?":n=!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,r=s[2].name;h[t].push((function(t){let s,i;for(const n of t)n.name===e&&(s=n.node),n.name===r&&(i=n.node);return void 0===s||void 0===i||s.text===i.text===n}))}else{const e=s[1].name,r=s[2].value;h[t].push((function(t){for(const s of t)if(s.name===e)return s.node.text===r===n;return!0}))}break;case"not-match?":n=!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 r=s[1].name,i=new RegExp(s[2].value);h[t].push((function(t){for(const e of t)if(e.name===r)return i.test(e.node.text)===n;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:p;o[t]||(o[t]={}),o[t][s[1].value]=s[2]?s[2].value:null;break;default:f[t].push({operator:e,operands:s.slice(1)})}s.length=0}}Object.freeze(u[t]),Object.freeze(l[t]),Object.freeze(p[t])}return Yt._free(n),new de(Qt,r,a,h,f,Object.freeze(u),Object.freeze(l),Object.freeze(p))}static load(t){let e;if(t instanceof Uint8Array)e=Promise.resolve(t);else{const r=t;if("undefined"!=typeof process&&process.versions&&process.versions.node){const t=n(5530);e=Promise.resolve(t.readFileSync(r))}else e=fetch(r).then((t=>t.arrayBuffer().then((e=>{if(t.ok)return new Uint8Array(e);{const n=new TextDecoder("utf-8").decode(e);throw new Error(`Language.load failed with status ${t.status}.\n\n${n}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:Ot;return e.then((t=>r(t,{loadAsync:!0}))).then((t=>{const e=Object.keys(t),n=e.find((t=>se.test(t)&&!t.includes("external_scanner_")));n||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(e,null,2)}`);const r=t[n]();return new _e(Qt,r)}))}}class de{constructor(t,e,n,r,s,i,o,a){ge(t),this[0]=e,this.captureNames=n,this.textPredicates=r,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){Yt._ts_query_delete(this[0]),this[0]=0}matches(t,e,n,r){e||(e=ne),n||(n=ne),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Yt._ts_query_matches_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,s);const i=I(ae,"i32"),o=I(ae+Xt,"i32"),a=I(ae+2*Xt,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let u=0,l=o;for(let e=0;e<i;e++){const n=I(l,"i32"),r=I(l+=Xt,"i32");l+=Xt;const s=new Array(r);if(l=ye(this,t.tree,l,s),this.textPredicates[n].every((t=>t(s)))){c[u++]={pattern:n,captures:s};const t=this.setProperties[n];t&&(c[e].setProperties=t);const r=this.assertedProperties[n];r&&(c[e].assertedProperties=r);const i=this.refutedProperties[n];i&&(c[e].refutedProperties=i)}}return c.length=u,Yt._free(o),c}captures(t,e,n,r){e||(e=ne),n||(n=ne),r||(r={});let s=r.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");be(t),Yt._ts_query_captures_wasm(this[0],t.tree[0],e.row,e.column,n.row,n.column,s);const i=I(ae,"i32"),o=I(ae+Xt,"i32"),a=I(ae+2*Xt,"i32"),c=[];this.exceededMatchLimit=!!a;const u=[];let l=o;for(let e=0;e<i;e++){const e=I(l,"i32"),n=I(l+=Xt,"i32"),r=I(l+=Xt,"i32");if(l+=Xt,u.length=n,l=ye(this,t.tree,l,u),this.textPredicates[e].every((t=>t(u)))){const t=u[r],n=this.setProperties[e];n&&(t.setProperties=n);const s=this.assertedProperties[e];s&&(t.assertedProperties=s);const i=this.refutedProperties[e];i&&(t.refutedProperties=i),c.push(t)}}return Yt._free(o),c}predicatesForPattern(t){return this.predicates[t]}didExceedMatchLimit(){return this.exceededMatchLimit}}function me(t,e,n){const r=n-e;let s=t.textCallback(e,null,n);for(e+=s.length;e<n;){const r=t.textCallback(e,null,n);if(!(r&&r.length>0))break;e+=r.length,s+=r}return e>n&&(s=s.slice(0,r)),s}function ye(t,e,n,r){for(let s=0,i=r.length;s<i;s++){const i=I(n,"i32"),o=we(e,n+=Xt);n+=Jt,r[s]={name:t.captureNames[i],node:o}}return n}function ge(t){if(t!==Qt)throw new Error("Illegal constructor")}function ve(t){return t&&"number"==typeof t.row&&"number"==typeof t.column}function be(t){let e=ae;N(e,t.id,"i32"),N(e+=Xt,t.startIndex,"i32"),N(e+=Xt,t.startPosition.row,"i32"),N(e+=Xt,t.startPosition.column,"i32"),N(e+=Xt,t[0],"i32")}function we(t,e=ae){const n=I(e,"i32");if(0===n)return null;const r=I(e+=Xt,"i32"),s=I(e+=Xt,"i32"),i=I(e+=Xt,"i32"),o=I(e+=Xt,"i32"),a=new fe(Qt,t);return a.id=n,a.startIndex=r,a.startPosition={row:s,column:i},a[0]=o,a}function Ee(t,e=ae){N(e+0*Xt,t[0],"i32"),N(e+1*Xt,t[1],"i32"),N(e+2*Xt,t[2],"i32")}function xe(t){t[0]=I(ae+0*Xt,"i32"),t[1]=I(ae+1*Xt,"i32"),t[2]=I(ae+2*Xt,"i32")}function Se(t,e){N(t,e.row,"i32"),N(t+Xt,e.column,"i32")}function Ae(t){return{row:I(t,"i32"),column:I(t+Xt,"i32")}}function je(t,e){Se(t,e.startPosition),Se(t+=te,e.endPosition),N(t+=te,e.startIndex,"i32"),N(t+=Xt,e.endIndex,"i32"),t+=Xt}function Oe(t){const e={};return e.startPosition=Ae(t),t+=te,e.endPosition=Ae(t),t+=te,e.startIndex=I(t,"i32"),t+=Xt,e.endIndex=I(t,"i32"),e}for(const t of Object.getOwnPropertyNames(le.prototype))Object.defineProperty(i.prototype,t,{value:le.prototype[t],enumerable:!1,writable:!1});i.Language=_e,r.onRuntimeInitialized=()=>{le.init(),e()}})))}}return i}();t.exports=s},5530:()=>{},6287:()=>{},1427:(t,e,n)=>{t.exports=n(6762)}},e={};function n(r){var s=e[r];if(void 0!==s)return s.exports;var i=e[r]={id:r,loaded:!1,exports:{}};return t[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(t,e)=>{for(var r in e)n.o(e,r)&&!n.o(t,r)&&Object.defineProperty(t,r,{enumerable:!0,get:e[r]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.nmd=t=>(t.paths=[],t.children||(t.children=[]),t),(()=>{var t;n.g.importScripts&&(t=n.g.location+"");var e=n.g.document;if(!t&&e&&(e.currentScript&&(t=e.currentScript.src),!t)){var r=e.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!t;)t=r[s--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),n.p=t})();var r={};return(()=>{"use strict";n.r(r),n.d(r,{detect:()=>io,detectionRegExp:()=>so,mediaTypes:()=>ro,namespace:()=>ao,parse:()=>oo});var t={};n.r(t),n.d(t,{hasElementSourceMap:()=>_s,includesClasses:()=>ms,includesSymbols:()=>ds,isAnnotationElement:()=>us,isArrayElement:()=>is,isBooleanElement:()=>rs,isCommentElement:()=>ls,isElement:()=>Jr,isLinkElement:()=>as,isMemberElement:()=>os,isNullElement:()=>ns,isNumberElement:()=>es,isObjectElement:()=>ss,isParseResultElement:()=>ps,isPrimitiveElement:()=>hs,isRefElement:()=>cs,isSourceMapElement:()=>fs,isStringElement:()=>ts});var e={};n.r(e),n.d(e,{isInfoElement:()=>Vi,isMainElement:()=>$i,isPrincipleElement:()=>Bi,isRequirementElement:()=>zi,isRequirementLevelElement:()=>Ui,isScenarioElement:()=>Gi,isStandardElement:()=>Wi,isStandardIdentifierElement:()=>Ki});const s=function(){return!1};const i=function(){return!0};function o(t){return null!=t&&"object"==typeof t&&!0===t["@@functional/placeholder"]}function a(t){return function e(n){return 0===arguments.length||o(n)?e:t.apply(this,arguments)}}function c(t){return function e(n,r){switch(arguments.length){case 0:return e;case 1:return o(n)?e:a((function(e){return t(n,e)}));default:return o(n)&&o(r)?e:o(n)?a((function(e){return t(e,r)})):o(r)?a((function(e){return t(n,e)})):t(n,r)}}}const u=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function l(t,e,n){return function(){if(0===arguments.length)return n();var r=arguments[arguments.length-1];if(!u(r)){for(var s=0;s<t.length;){if("function"==typeof r[t[s]])return r[t[s]].apply(r,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(t){return null!=t&&"function"==typeof t["@@transducer/step"]}(r))return e.apply(null,Array.prototype.slice.call(arguments,0,-1))(r)}return n.apply(this,arguments)}}const p=function(){return this.xf["@@transducer/init"]()},f=function(t){return this.xf["@@transducer/result"](t)};var h=function(){function t(t,e){this.xf=e,this.f=t,this.all=!0}return t.prototype["@@transducer/init"]=p,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 n;return this.f(e)||(this.all=!1,t=(n=this.xf["@@transducer/step"](t,!1))&&n["@@transducer/reduced"]?n:{"@@transducer/value":n,"@@transducer/reduced":!0}),t},t}();function _(t){return function(e){return new h(t,e)}}const d=c(l(["all"],_,(function(t,e){for(var n=0;n<e.length;){if(!t(e[n]))return!1;n+=1}return!0})));function m(t){for(var e,n=[];!(e=t.next()).done;)n.push(e.value);return n}function y(t,e,n){for(var r=0,s=n.length;r<s;){if(t(e,n[r]))return!0;r+=1}return!1}function g(t,e){return Object.prototype.hasOwnProperty.call(e,t)}const v="function"==typeof Object.is?Object.is:function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e};var b=Object.prototype.toString;const w=function(){return"[object Arguments]"===b.call(arguments)?function(t){return"[object Arguments]"===b.call(t)}:function(t){return g("callee",t)}}();var E=!{toString:null}.propertyIsEnumerable("toString"),x=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],S=function(){return arguments.propertyIsEnumerable("length")}(),A=function(t,e){for(var n=0;n<t.length;){if(t[n]===e)return!0;n+=1}return!1};const j="function"!=typeof Object.keys||S?a((function(t){if(Object(t)!==t)return[];var e,n,r=[],s=S&&w(t);for(e in t)!g(e,t)||s&&"length"===e||(r[r.length]=e);if(E)for(n=x.length-1;n>=0;)g(e=x[n],t)&&!A(r,e)&&(r[r.length]=e),n-=1;return r})):a((function(t){return Object(t)!==t?[]:Object.keys(t)}));const O=a((function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)}));function P(t,e,n,r){var s=m(t);function i(t,e){return k(t,e,n.slice(),r.slice())}return!y((function(t,e){return!y(i,e,t)}),m(e),s)}function k(t,e,n,r){if(v(t,e))return!0;var s,i,o=O(t);if(o!==O(e))return!1;if("function"==typeof t["fantasy-land/equals"]||"function"==typeof e["fantasy-land/equals"])return"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e)&&"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t);if("function"==typeof t.equals||"function"==typeof e.equals)return"function"==typeof t.equals&&t.equals(e)&&"function"==typeof e.equals&&e.equals(t);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof t.constructor&&"Promise"===(s=t.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return t===e;break;case"Boolean":case"Number":case"String":if(typeof t!=typeof e||!v(t.valueOf(),e.valueOf()))return!1;break;case"Date":if(!v(t.valueOf(),e.valueOf()))return!1;break;case"Error":return t.name===e.name&&t.message===e.message;case"RegExp":if(t.source!==e.source||t.global!==e.global||t.ignoreCase!==e.ignoreCase||t.multiline!==e.multiline||t.sticky!==e.sticky||t.unicode!==e.unicode)return!1}for(var a=n.length-1;a>=0;){if(n[a]===t)return r[a]===e;a-=1}switch(o){case"Map":return t.size===e.size&&P(t.entries(),e.entries(),n.concat([t]),r.concat([e]));case"Set":return t.size===e.size&&P(t.values(),e.values(),n.concat([t]),r.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=j(t);if(c.length!==j(e).length)return!1;var u=n.concat([t]),l=r.concat([e]);for(a=c.length-1;a>=0;){var p=c[a];if(!g(p,e)||!k(e[p],t[p],u,l))return!1;a-=1}return!0}const N=c((function(t,e){return k(t,e,[],[])}));function I(t,e){return function(t,e,n){var r,s;if("function"==typeof t.indexOf)switch(typeof e){case"number":if(0===e){for(r=1/e;n<t.length;){if(0===(s=t[n])&&1/s===r)return n;n+=1}return-1}if(e!=e){for(;n<t.length;){if("number"==typeof(s=t[n])&&s!=s)return n;n+=1}return-1}return t.indexOf(e,n);case"string":case"boolean":case"function":case"undefined":return t.indexOf(e,n);case"object":if(null===e)return t.indexOf(e,n)}for(;n<t.length;){if(N(t[n],e))return n;n+=1}return-1}(e,t,0)>=0}function M(t,e){for(var n=0,r=e.length,s=Array(r);n<r;)s[n]=t(e[n]),n+=1;return s}function T(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 C=function(t){return(t<10?"0":"")+t};const R="function"==typeof Date.prototype.toISOString?function(t){return t.toISOString()}:function(t){return t.getUTCFullYear()+"-"+C(t.getUTCMonth()+1)+"-"+C(t.getUTCDate())+"T"+C(t.getUTCHours())+":"+C(t.getUTCMinutes())+":"+C(t.getUTCSeconds())+"."+(t.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function F(t,e,n){for(var r=0,s=n.length;r<s;)e=t(e,n[r]),r+=1;return e}function q(t){return"[object Object]"===Object.prototype.toString.call(t)}var L=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=p,t.prototype["@@transducer/result"]=f,t.prototype["@@transducer/step"]=function(t,e){return this.f(e)?this.xf["@@transducer/step"](t,e):t},t}();function D(t){return function(e){return new L(t,e)}}const $=c(l(["fantasy-land/filter","filter"],D,(function(t,e){return q(e)?F((function(n,r){return t(e[r])&&(n[r]=e[r]),n}),{},j(e)):function(t,e){for(var n=0,r=e.length,s=[];n<r;)t(e[n])&&(s[s.length]=e[n]),n+=1;return s}(t,e)})));const V=c((function(t,e){return $((n=t,function(){return!n.apply(this,arguments)}),e);var n}));function B(t,e){var n=function(n){var r=e.concat([t]);return I(n,r)?"<Circular>":B(n,r)},r=function(t,e){return M((function(e){return T(e)+": "+n(t[e])}),e.slice().sort())};switch(Object.prototype.toString.call(t)){case"[object Arguments]":return"(function() { return arguments; }("+M(n,t).join(", ")+"))";case"[object Array]":return"["+M(n,t).concat(r(t,V((function(t){return/^\d+$/.test(t)}),j(t)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof t?"new Boolean("+n(t.valueOf())+")":t.toString();case"[object Date]":return"new Date("+(isNaN(t.valueOf())?n(NaN):T(R(t)))+")";case"[object Map]":return"new Map("+n(Array.from(t))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof t?"new Number("+n(t.valueOf())+")":1/t==-1/0?"-0":t.toString(10);case"[object Set]":return"new Set("+n(Array.from(t).sort())+")";case"[object String]":return"object"==typeof t?"new String("+n(t.valueOf())+")":T(t);case"[object Undefined]":return"undefined";default:if("function"==typeof t.toString){var s=t.toString();if("[object Object]"!==s)return s}return"{"+r(t,j(t)).join(", ")+"}"}}const z=a((function(t){return B(t,[])}));const U=c((function(t,e){if(t===e)return e;function n(t,e){if(t>e!=e>t)return e>t?e:t}var r=n(t,e);if(void 0!==r)return r;var s=n(typeof t,typeof e);if(void 0!==s)return s===typeof t?t:e;var i=z(t),o=n(i,z(e));return void 0!==o&&o===i?t:e}));var G=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=p,t.prototype["@@transducer/result"]=f,t.prototype["@@transducer/step"]=function(t,e){return this.xf["@@transducer/step"](t,this.f(e))},t}();const W=function(t){return function(e){return new G(t,e)}};function K(t,e){switch(t){case 0:return function(){return e.apply(this,arguments)};case 1:return function(t){return e.apply(this,arguments)};case 2:return function(t,n){return e.apply(this,arguments)};case 3:return function(t,n,r){return e.apply(this,arguments)};case 4:return function(t,n,r,s){return e.apply(this,arguments)};case 5:return function(t,n,r,s,i){return e.apply(this,arguments)};case 6:return function(t,n,r,s,i,o){return e.apply(this,arguments)};case 7:return function(t,n,r,s,i,o,a){return e.apply(this,arguments)};case 8:return function(t,n,r,s,i,o,a,c){return e.apply(this,arguments)};case 9:return function(t,n,r,s,i,o,a,c,u){return e.apply(this,arguments)};case 10:return function(t,n,r,s,i,o,a,c,u,l){return e.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Z(t,e,n){return function(){for(var r=[],s=0,i=t,a=0;a<e.length||s<arguments.length;){var c;a<e.length&&(!o(e[a])||s>=arguments.length)?c=e[a]:(c=arguments[s],s+=1),r[a]=c,o(c)||(i-=1),a+=1}return i<=0?n.apply(this,r):K(i,Z(t,r,n))}}const H=c((function(t,e){return 1===t?a(e):K(t,Z(t,[],e))}));const Y=c(l(["fantasy-land/map","map"],W,(function(t,e){switch(Object.prototype.toString.call(e)){case"[object Function]":return H(e.length,(function(){return t.call(this,e.apply(this,arguments))}));case"[object Object]":return F((function(n,r){return n[r]=t(e[r]),n}),{},j(e));default:return M(t,e)}}))),Q=Number.isInteger||function(t){return t<<0===t};function X(t){return"[object String]"===Object.prototype.toString.call(t)}const J=c((function(t,e){var n=t<0?e.length+t:t;return X(e)?e.charAt(n):e[n]}));const tt=c((function(t,e){if(null!=e)return Q(t)?J(t,e):e[t]}));const et=c((function(t,e){return Y(tt(t),e)}));function nt(t){return function e(n,r,s){switch(arguments.length){case 0:return e;case 1:return o(n)?e:c((function(e,r){return t(n,e,r)}));case 2:return o(n)&&o(r)?e:o(n)?c((function(e,n){return t(e,r,n)})):o(r)?c((function(e,r){return t(n,e,r)})):a((function(e){return t(n,r,e)}));default:return o(n)&&o(r)&&o(s)?e:o(n)&&o(r)?c((function(e,n){return t(e,n,s)})):o(n)&&o(s)?c((function(e,n){return t(e,r,n)})):o(r)&&o(s)?c((function(e,r){return t(n,e,r)})):o(n)?a((function(e){return t(e,r,s)})):o(r)?a((function(e){return t(n,e,s)})):o(s)?a((function(e){return t(n,r,e)})):t(n,r,s)}}}const rt=a((function(t){return!!u(t)||!!t&&("object"==typeof t&&(!X(t)&&(0===t.length||t.length>0&&(t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1)))))}));var st="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function it(t,e,n){return function(r,s,i){if(rt(i))return t(r,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return e(r,s,i,"fantasy-land/reduce");if(null!=i[st])return n(r,s,i[st]());if("function"==typeof i.next)return n(r,s,i);if("function"==typeof i.reduce)return e(r,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ot(t,e,n){for(var r=0,s=n.length;r<s;){if((e=t["@@transducer/step"](e,n[r]))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r+=1}return t["@@transducer/result"](e)}const at=c((function(t,e){return K(t.length,(function(){return t.apply(e,arguments)}))}));function ct(t,e,n){for(var r=n.next();!r.done;){if((e=t["@@transducer/step"](e,r.value))&&e["@@transducer/reduced"]){e=e["@@transducer/value"];break}r=n.next()}return t["@@transducer/result"](e)}function ut(t,e,n,r){return t["@@transducer/result"](n[r](at(t["@@transducer/step"],t),e))}const lt=it(ot,ut,ct);var pt=function(){function t(t){this.f=t}return t.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},t.prototype["@@transducer/result"]=function(t){return t},t.prototype["@@transducer/step"]=function(t,e){return this.f(t,e)},t}();function ft(t){return new pt(t)}const ht=nt((function(t,e,n){return lt("function"==typeof t?ft(t):t,e,n)}));const _t=a((function(t){return function(){return t}}));const dt=a((function(t){return H(ht(U,0,et("length",t)),(function(){for(var e=0,n=t.length;e<n;){if(t[e].apply(this,arguments))return!0;e+=1}return!1}))}));function mt(t,e,n){for(var r=n.next();!r.done;)e=t(e,r.value),r=n.next();return e}function yt(t,e,n,r){return n[r](t,e)}const gt=it(F,yt,mt);const vt=c((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(n){return t(n)(e(n))}:gt((function(t,n){return function(t,e){var n;e=e||[];var r=(t=t||[]).length,s=e.length,i=[];for(n=0;n<r;)i[i.length]=t[n],n+=1;for(n=0;n<s;)i[i.length]=e[n],n+=1;return i}(t,Y(n,e))}),[],t)}));const bt=c((function(t,e){return t.apply(this,e)}));function wt(t){var e=Object.prototype.toString.call(t);return"[object Function]"===e||"[object AsyncFunction]"===e||"[object GeneratorFunction]"===e||"[object AsyncGeneratorFunction]"===e}const Et=c((function(t,e){return t&&e}));const xt=c((function(t,e){var n=H(t,e);return H(t,(function(){return F(vt,Y(n,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const St=a((function(t){return xt(t.length,t)}));const At=c((function(t,e){return wt(t)?function(){return t.apply(this,arguments)&&e.apply(this,arguments)}:St(Et)(t,e)}));function jt(t,e,n){if(n||(n=new Ot),function(t){var e=typeof t;return null==t||"object"!=e&&"function"!=e}(t))return t;var r,s=function(r){var s=n.get(t);if(s)return s;for(var i in n.set(t,r),t)Object.prototype.hasOwnProperty.call(t,i)&&(r[i]=e?jt(t[i],!0,n):t[i]);return r};switch(O(t)){case"Object":return s(Object.create(Object.getPrototypeOf(t)));case"Array":return s([]);case"Date":return new Date(t.valueOf());case"RegExp":return r=t,new RegExp(r.source,r.flags?r.flags:(r.global?"g":"")+(r.ignoreCase?"i":"")+(r.multiline?"m":"")+(r.sticky?"y":"")+(r.unicode?"u":"")+(r.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return t.slice();default:return t}}var Ot=function(){function t(){this.map={},this.length=0}return t.prototype.set=function(t,e){const n=this.hash(t);let r=this.map[n];r||(this.map[n]=r=[]),r.push([t,e]),this.length+=1},t.prototype.hash=function(t){let e=[];for(var n in t)e.push(Object.prototype.toString.call(t[n]));return e.join()},t.prototype.get=function(t){if(this.length<=180){for(const e in this.map){const n=this.map[e];for(let e=0;e<n.length;e+=1){const r=n[e];if(r[0]===t)return r[1]}}return}const e=this.hash(t),n=this.map[e];if(n)for(let e=0;e<n.length;e+=1){const r=n[e];if(r[0]===t)return r[1]}},t}();const Pt=a((function(t){return null!=t&&"function"==typeof t.clone?t.clone():jt(t,!0)}));const kt=St(a((function(t){return!t})));function Nt(t,e){return function(){return e.call(this,t.apply(this,arguments))}}function It(t,e){return function(){var n=arguments.length;if(0===n)return e();var r=arguments[n-1];return u(r)||"function"!=typeof r[t]?e.apply(this,arguments):r[t].apply(r,Array.prototype.slice.call(arguments,0,n-1))}}const Mt=nt(It("slice",(function(t,e,n){return Array.prototype.slice.call(n,t,e)})));const Tt=a(It("tail",Mt(1,1/0)));function Ct(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return K(arguments[0].length,ht(Nt,arguments[0],Tt(arguments)))}const Rt=a((function(t){return X(t)?t.split("").reverse().join(""):Array.prototype.slice.call(t,0).reverse()}));function Ft(){if(0===arguments.length)throw new Error("compose requires at least one argument");return Ct.apply(this,Rt(arguments))}const qt=c((function(t,e){if(u(t)){if(u(e))return t.concat(e);throw new TypeError(z(e)+" is not an array")}if(X(t)){if(X(e))return t+e;throw new TypeError(z(e)+" is not a string")}if(null!=t&&wt(t["fantasy-land/concat"]))return t["fantasy-land/concat"](e);if(null!=t&&wt(t.concat))return t.concat(e);throw new TypeError(z(t)+' does not have a method named "concat" or "fantasy-land/concat"')}));const Lt=c((function(t,e){return H(ht(U,0,et("length",e)),(function(){var n=arguments,r=this;return t.apply(r,M((function(t){return t.apply(r,n)}),e))}))}));const Dt=a((function(t){return H(t.length,t)}));const $t=c((function(t,e){return null==e||e!=e?t:e}));var Vt=function(){function t(t,e){this.xf=e,this.f=t}return t.prototype["@@transducer/init"]=p,t.prototype["@@transducer/result"]=f,t.prototype["@@transducer/step"]=function(t,e){if(this.f){if(this.f(e))return t;this.f=null}return this.xf["@@transducer/step"](t,e)},t}();function Bt(t){return function(e){return new Vt(t,e)}}const zt=c(l(["dropWhile"],Bt,(function(t,e){for(var n=0,r=e.length;n<r&&t(e[n]);)n+=1;return Mt(n,1/0,e)})));var Ut=a((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():u(t)?[]:X(t)?"":q(t)?{}:w(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 Gt=Ut;const Wt=a((function(t){return H(t.length,(function(e,n){var r=Array.prototype.slice.call(arguments,0);return r[0]=n,r[1]=e,t.apply(this,r)}))}));const Kt=c((function(t,e){return t>e}));const Zt=a((function(t){return null==t}));const Ht=c((function(t,e){if(0===t.length||Zt(e))return!1;for(var n=e,r=0;r<t.length;){if(Zt(n)||!g(t[r],n))return!1;n=n[t[r]],r+=1}return!0}));const Yt=c((function(t,e){return Ht([t],e)}));const Qt=c((function(t,e){return!Zt(e)&&t in e}));const Xt=J(0);var Jt=function(t,e){switch(arguments.length){case 0:return Jt;case 1:return function e(n){return 0===arguments.length?e:v(t,n)};default:return v(t,e)}};const te=Jt;function ee(t){return t}const ne=a(ee);const re=c(I);const se=Mt(0,-1);const ie="function"==typeof Object.assign?Object.assign:function(t){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1,r=arguments.length;n<r;){var s=arguments[n];if(null!=s)for(var i in s)g(i,s)&&(e[i]=s[i]);n+=1}return e};const oe=c((function(t,e){return H(t+1,(function(){var n=arguments[t];if(null!=n&&wt(n[e]))return n[e].apply(n,Array.prototype.slice.call(arguments,0,t));throw new TypeError(z(n)+' does not have a method named "'+e+'"')}))}));const ae=a((function(t){return null!=t&&N(t,Gt(t))}));const ce=oe(1,"join");const ue=J(-1);const le=c((function(t,e){return t.map((function(t){for(var n,r=e,s=0;s<t.length;){if(null==r)return;n=t[s],r=Q(n)?J(n,r):r[n],s+=1}return r}))}));const pe=c((function(t,e){return le([t],e)[0]}));const fe=c((function(t,e){return F((function(n,r){return n[r]=t(e[r],r,e),n}),{},j(e))}));const he=c((function(t,e){return ie({},t,e)}));const _e=c((function(t,e){for(var n={},r={},s=0,i=t.length;s<i;)r[t[s]]=1,s+=1;for(var o in e)r.hasOwnProperty(o)||(n[o]=e[o]);return n}));const de=nt((function(t,e,n){return $t(t,pe(e,n))}));const me=nt((function(t,e,n){return t(pe(e,n))}));const ye=c((function(t,e){for(var n={},r=0;r<t.length;)t[r]in e&&(n[t[r]]=e[t[r]]),r+=1;return n}));const ge=nt((function(t,e,n){return $t(t,tt(e,n))}));const ve=nt((function(t,e,n){return t(tt(e,n))}));const be=nt((function(t,e,n){return n.replace(t,e)}));const we=oe(1,"split");const Ee=H(4,(function(t,e,n,r){return lt(t("function"==typeof e?ft(e):e),n,r)}));var xe="\t\n\v\f\r                 \u2028\u2029\ufeff";const Se=a("function"==typeof String.prototype.trim&&!xe.trim()&&"​".trim()?function(t){return t.trim()}:function(t){var e=new RegExp("^["+xe+"]["+xe+"]*"),n=new RegExp("["+xe+"]["+xe+"]*$");return t.replace(e,"").replace(n,"")});const Ae=_t(void 0);const je=N(Ae());const Oe=kt(je);var Pe=n(7952);const ke=N(null);var Ne=kt(ke);function Ie(t){return Ie="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Ie(t)}const Me=H(1,At(Ne,(function(t){return"object"===Ie(t)})));const Te=H(1,Ct(O,te("GeneratorFunction")));const Ce=H(1,Ct(O,te("AsyncFunction")));const Re=dt([Ct(O,te("Function")),Te,Ce]);var Fe=Ct(O,te("Object")),qe=Ct(z,N(z(Object))),Le=me(At(Re,qe),["constructor"]);const De=H(1,(function(t){if(!Me(t)||!Fe(t))return!1;var e=Object.getPrototypeOf(t);return!!ke(e)||Le(e)}));class $e extends Pe.RP{constructor(t,e,n){super(t,e,n),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const Ve=$e;class Be extends Pe.RP{constructor(t,e,n){super(t,e,n),this.element="comment"}}const ze=Be;class Ue extends Pe.ON{constructor(t,e,n){super(t,e,n),this.element="parseResult"}get api(){return this.children.filter((t=>t.classes.contains("api"))).first}get results(){return this.children.filter((t=>t.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((t=>"annotation"===t.element))}get warnings(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("warning")))}get errors(){return this.children.filter((t=>"annotation"===t.element&&t.classes.contains("error")))}get isEmpty(){return this.children.reject((t=>"annotation"===t.element)).isEmpty}replaceResult(t){const{result:e}=this;if(je(e))return!1;const n=this.content.findIndex((t=>t===e));return-1!==n&&(this.content[n]=t,!0)}}const Ge=Ue;class We extends Pe.ON{constructor(t,e,n){super(t,e,n),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 Pe.ON([t.start.row,t.start.column,t.start.char]),n=new Pe.ON([t.end.row,t.end.column,t.end.char]);e.classes.push("position"),n.classes.push("position"),this.push(e).push(n)}}const Ke=We;class Ze extends Pe.lS{constructor(){super(),this.register("annotation",Ve),this.register("comment",ze),this.register("parseResult",Ge),this.register("sourceMap",Ke)}}const He=new Ze,Ye=t=>{const e=new Ze;return De(t)&&e.use(t),e},Qe=He;const Xe=H(1,Ct(O,te("String"))),Je=n.p+"23aac571c96605dc25219087ad291441.wasm",tn=globalThis.fetch;Re(tn)&&(globalThis.fetch=(...t)=>Xe(t[0])&&t[0].endsWith("tree-sitter.wasm")?tn.apply(globalThis,[Je,Tt(t)]):tn.apply(globalThis,t));var en=n(9794),nn=n(1427);const rn=class extends nn{constructor(t,e,n){if(super(t,e,n),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,De(n)&&Qt("cause",n)&&!Qt("cause",this)){const{cause:t}=n;this.cause=t,t instanceof Error&&Qt("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}};class sn extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(rn,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,De(e)&&Qt("cause",e)&&!Qt("cause",this)){const{cause:t}=e;this.cause=t,t instanceof Error&&Qt("stack",t)&&(this.stack=`${this.stack}\nCAUSE: ${null==t?void 0:t.stack}`)}}}const on=sn,an=n.p+"d396281e11774e0afa7a40d620779b6d.wasm";let cn=null,un=null;const ln=async t=>{if(null===cn&&null===un)un=en.init().then((()=>en.Language.load(an))).then((t=>{const e=new en;return e.setLanguage(t),e})).finally((()=>{un=null})),cn=await un;else if(null===cn&&null!==un)cn=await un;else if(null===cn)throw new on("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return cn.parse(t)};var pn=n(6591);const fn=class extends on{constructor(t,e){super(t,e),void 0!==e&&Object.assign(this,_e(["cause"],e))}};const hn=class extends fn{};const _n=class extends hn{constructor(t,e){super(t,e),void 0!==e&&(this.specificTagName=e.specificTagName,this.explicitTagName=e.explicitTagName,this.tagKind=e.tagKind,this.tagPosition=e.tagPosition,this.nodeCanonicalContent=e.nodeCanonicalContent)}},dn=pn({props:{type:null,position:null,children:[]},init({children:t=[],position:e=null,isMissing:n=!1}={},{stamp:r={}}){this.type=r.type,this.isMissing=n,this.children=t,this.position=e},methods:{clone(){const t=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((e=>{const n=Object.getOwnPropertyDescriptor(this,e);Object.defineProperty(t,e,n)})),t}}});let mn=function(t){return t.Scalar="Scalar",t.Sequence="Sequence",t.Mapping="Mapping",t}({});const yn=pn(dn,{statics:{type:"tag"},props:{explicitName:"",kind:null},init({explicitName:t,kind:e}={}){this.explicitName=t,this.kind=e}});const gn=N("");const vn=H(1,Ct(O,te("Number")));var bn=At(vn,isFinite);var wn=H(1,bn);const En=Re(Number.isFinite)?H(1,at(Number.isFinite,Number)):wn;var xn=At(En,Lt(N,[Math.floor,ne]));var Sn=H(1,xn);const An=Re(Number.isInteger)?H(1,at(Number.isInteger,Number)):Sn;const jn=kt(En);const On=H(1,At(vn,Kt(0)));const Pn=function(t,e){var n=Number(e);if(n!==e&&(n=0),On(n))throw new RangeError("repeat count must be non-negative");if(jn(n))throw new RangeError("repeat count must be less than infinity");if(n=Math.floor(n),0===t.length||0===n)return"";if(t.length*n>=1<<28)throw new RangeError("repeat count must not overflow maximum string size");var r=t.length*n;n=Math.floor(Math.log(n)/Math.log(2));for(var s=t;n;)s+=t,n-=1;return s+=s.substring(0,r-s.length)};var kn=Dt(Pn),Nn=Wt(oe(1,"repeat"));const In=Re(String.prototype.repeat)?Nn:kn;var Mn=be(/[\s\uFEFF\xA0]+$/,""),Tn=oe(0,"trimEnd");const Cn=Re(String.prototype.trimEnd)?Tn:Mn;var Rn=be(/^[\s\uFEFF\xA0]+/,""),Fn=oe(0,"trimStart");const qn=Re(String.prototype.trimStart)?Fn:Rn;const Ln=Wt(re);const Dn=Dt((function(t,e){return Ct(we(""),zt(Ln(t)),ce(""))(e)}));const $n=Wt(qt);var Vn=n(2770);const Bn=/^(?<style>[|>])(?<chomping>[+-]?)(?<indentation>[0-9]*)\s/,zn=t=>{const e=(t=>{const e=t.match(Bn),n=de("",["groups","indentation"],e);return gn(n)?void 0:parseInt(n,10)})(t);if(An(e))return In(" ",e);const n=de("",[1],t.split("\n")),r=de(0,["groups","indentation","length"],n.match(/^(?<indentation>[ ]*)/));return In(" ",r)},Un=t=>{const e=t.match(Bn),n=de("",["groups","chomping"],e);return gn(n)?void 0:n},Gn=(t,e)=>je(t)?`${Cn(e)}\n`:"-"===t?Cn(e):e,Wn=t=>t.replace(/\r\n/g,"\n"),Kn=t=>t.replace(/(\n)?\n([^\n]+)/g,((t,e,n)=>e?t:` ${n.trimStart()}`)).replace(/[\n]{2}/g,"\n"),Zn=Dt(((t,e)=>e.replace(new RegExp(`^${t}`),"").replace(new RegExp(`${t}$`),""))),Hn=Ct(Wn,Se,Kn,we("\n"),Y(qn),ce("\n")),Yn=Ct(Wn,Se,Zn("'"),Kn,we("\n"),Y(qn),ce("\n")),Qn=Ct(Wn,Se,Zn('"'),(t=>t.replace(/\\\n\s*/g,"")),Kn,Vn.S6,we("\n"),Y(qn),ce("\n"));let Xn=function(t){return t.Plain="Plain",t.SingleQuoted="SingleQuoted",t.DoubleQuoted="DoubleQuoted",t.Literal="Literal",t.Folded="Folded",t.Explicit="Explicit",t.SinglePair="SinglePair",t.NextLine="NextLine",t.InLine="InLine",t}({}),Jn=function(t){return t.Flow="Flow",t.Block="Block",t}({});const tr=pn({props:{styleGroup:null,style:null}}),er=pn({methods:{test:t=>t.tag.kind===mn.Scalar&&"string"==typeof t.content,canonicalFormat(t){let e=t.content;const n=t.clone();return t.style===Xn.Plain?e=Hn(t.content):t.style===Xn.SingleQuoted?e=Yn(t.content):t.style===Xn.DoubleQuoted?e=Qn(t.content):t.style===Xn.Literal?e=(t=>{const e=zn(t),n=Un(t),r=Wn(t),s=Tt(r.split("\n")),i=Ft(Y(Dn(e)),Y($n("\n"))),o=Ee(i,qt,"",s);return Gn(n,o)})(t.content):t.style===Xn.Folded&&(e=(t=>{const e=zn(t),n=Un(t),r=Wn(t),s=Tt(r.split("\n")),i=Ft(Y(Dn(e)),Y($n("\n"))),o=Ee(i,qt,"",s),a=Kn(o);return Gn(n,a)})(t.content)),n.content=e,n},resolve:t=>t}}),nr=pn(er,{props:{tag:""}}),rr=pn(nr,{statics:{uri:"tag:yaml.org,2002:map"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===mn.Mapping,resolve:t=>t}}),sr=pn(nr,{statics:{uri:"tag:yaml.org,2002:seq"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>t.tag.kind===mn.Sequence,resolve:t=>t}}),ir=pn(nr,{statics:{uri:"tag:yaml.org,2002:str"},init(t,{stamp:e}){this.tag=e.uri},methods:{resolve:t=>t}}),or=pn({props:{tags:[],tagDirectives:[]},init(){this.tags=[],this.tagDirectives=[],this.registerTag(rr()),this.registerTag(sr()),this.registerTag(ir())},methods:{toSpecificTagName(t){let e=t.tag.explicitName;return"!"===t.tag.explicitName?t.tag.kind===mn.Scalar?e=ir.uri:t.tag.kind===mn.Sequence?e=sr.uri:t.tag.kind===mn.Mapping&&(e=rr.uri):t.tag.explicitName.startsWith("!<")?e=t.tag.explicitName.replace(/^!</,"").replace(/>$/,""):t.tag.explicitName.startsWith("!!")&&(e=`tag:yaml.org,2002:${t.tag.explicitName.replace(/^!!/,"")}`),e},registerTagDirective(t){this.tagDirectives.push({handle:t.parameters.handle,prefix:t.parameters.prefix})},registerTag(t,e=!1){return e?this.tags.unshift(t):this.tags.push(t),this},overrideTag(t){return this.tags=this.tags.filter((e=>e.tag===t.tag)),this.tags.push(t),this},resolve(t){const e=this.toSpecificTagName(t);if("?"===e)return t;let n=t;t.tag.kind===mn.Scalar&&(n=er().canonicalFormat(t));const r=this.tags.find((t=>(null==t?void 0:t.tag)===e));if(void 0===r)throw new _n(`Tag "${e}" was not recognized.`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:Pt(t.tag.position)});if(!r.test(n))throw new _n(`Node couldn't be resolved against the tag "${e}"`,{specificTagName:e,explicitTagName:t.tag.explicitName,tagKind:t.tag.kind,tagPosition:Pt(t.tag.position),nodeCanonicalContent:n.content});return r.resolve(n)}}}),ar=pn(nr,{statics:{uri:"tag:yaml.org,2002:bool"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^(true|false)$/.test(t.content),resolve(t){const e="true"===t.content,n=t.clone();return n.content=e,n}}}),cr=pn(nr,{statics:{uri:"tag:yaml.org,2002:float"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)(\.[0-9]*)?([eE][-+]?[0-9]+)?$/.test(t.content),resolve(t){const e=parseFloat(t.content),n=t.clone();return n.content=e,n}}}),ur=pn(nr,{statics:{uri:"tag:yaml.org,2002:int"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^-?(0|[1-9][0-9]*)$/.test(t.content),resolve(t){const e=parseInt(t.content,10),n=t.clone();return n.content=e,n}}}),lr=pn(nr,{statics:{uri:"tag:yaml.org,2002:null"},init(t,{stamp:e}){this.tag=e.uri},methods:{test:t=>/^null$/.test(t.content),resolve(t){const e=t.clone();return e.content=null,e}}}),pr=pn(or,{init(){this.registerTag(ar(),!0),this.registerTag(cr(),!0),this.registerTag(ur(),!0),this.registerTag(lr(),!0)},methods:{toSpecificTagName(t){let e=or.compose.methods.toSpecificTagName.call(this,t);if("?"===e)if(t.tag.vkind===mn.Sequence)e=sr.uri;else if(t.tag.kind===mn.Mapping)e=rr.uri;else if(t.tag.kind===mn.Scalar){const n=this.tags.find((e=>e.test(t)));e=(null==n?void 0:n.tag)||"?"}return e}}}),fr=(t,e,n)=>{const r=t[e];if(null!=r){if(!n&&"function"==typeof r)return r;const t=n?r.leave:r.enter;if("function"==typeof t)return t}else{const r=n?t.leave:t.enter;if(null!=r){if("function"==typeof r)return r;const t=r[e];if("function"==typeof t)return t}}return null},hr={},_r=t=>null==t?void 0:t.type,dr=t=>"string"==typeof _r(t),mr=t=>Object.create(Object.getPrototypeOf(t),Object.getOwnPropertyDescriptors(t)),yr=(t,e,{keyMap:n=null,state:r={},breakSymbol:s=hr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=fr,nodeTypeGetter:c=_r,nodePredicate:u=dr,nodeCloneFn:l=mr,detectCycles:p=!0}={})=>{const f=n||{};let h,_,d=Array.isArray(t),m=[t],y=-1,g=[],v=t;const b=[],w=[];do{y+=1;const t=y===m.length;let n;const x=t&&0!==g.length;if(t){if(n=0===w.length?void 0:b.pop(),v=_,_=w.pop(),x)if(d){v=v.slice();let t=0;for(const[e,n]of g){const r=e-t;n===i?(v.splice(r,1),t+=1):v[r]=n}}else{v=l(v);for(const[t,e]of g)v[t]=e}y=h.index,m=h.keys,g=h.edits,d=h.inArray,h=h.prev}else if(_!==i&&void 0!==_){if(n=d?y:m[y],v=_[n],v===i||void 0===v)continue;b.push(n)}if(w.includes(v))continue;let S;if(!Array.isArray(v)){if(!u(v))throw new on(`Invalid AST Node: ${JSON.stringify(v)}`);if(p&&w.includes(v)){b.pop();continue}const i=a(e,c(v),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;S=i.call(e,v,n,_,b,w)}if(S===s)break;if(S===o){if(!t){b.pop();continue}}else if(void 0!==S&&(g.push([n,S]),!t)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([n,v]),!t)h={inArray:d,index:y,keys:m,edits:g,prev:h},d=Array.isArray(v),m=d?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],_!==i&&void 0!==_&&w.push(_),_=v}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:t};yr[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=null,state:r={},breakSymbol:s=hr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=fr,nodeTypeGetter:c=_r,nodePredicate:u=dr,nodeCloneFn:l=mr,detectCycles:p=!0}={})=>{const f=n||{};let h,_,d=Array.isArray(t),m=[t],y=-1,g=[],v=t;const b=[],w=[];do{y+=1;const t=y===m.length;let n;const x=t&&0!==g.length;if(t){if(n=0===w.length?void 0:b.pop(),v=_,_=w.pop(),x)if(d){v=v.slice();let t=0;for(const[e,n]of g){const r=e-t;n===i?(v.splice(r,1),t+=1):v[r]=n}}else{v=l(v);for(const[t,e]of g)v[t]=e}y=h.index,m=h.keys,g=h.edits,d=h.inArray,h=h.prev}else if(_!==i&&void 0!==_){if(n=d?y:m[y],v=_[n],v===i||void 0===v)continue;b.push(n)}let S;if(!Array.isArray(v)){if(!u(v))throw new on(`Invalid AST Node: ${JSON.stringify(v)}`);if(p&&w.includes(v)){b.pop();continue}const i=a(e,c(v),t);if(i){for(const[t,n]of Object.entries(r))e[t]=n;S=await i.call(e,v,n,_,b,w)}if(S===s)break;if(S===o){if(!t){b.pop();continue}}else if(void 0!==S&&(g.push([n,S]),!t)){if(!u(S)){b.pop();continue}v=S}}var E;if(void 0===S&&x&&g.push([n,v]),!t)h={inArray:d,index:y,keys:m,edits:g,prev:h},d=Array.isArray(v),m=d?v:null!==(E=f[c(v)])&&void 0!==E?E:[],y=-1,g=[],_!==i&&void 0!==_&&w.push(_),_=v}while(void 0!==h);return 0!==g.length?g.at(-1)[1]:t};const gr=pn({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:t=null,column:e=null,char:n=null}={}){this.row=t,this.column=e,this.char=n}}),vr=pn({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:t=null,end:e=null}={}){this.start=t,this.end=e}}),br=pn(dn,{statics:{type:"anchor"},props:{name:null},init({name:t=null}={}){this.name=t}}),wr=pn(dn,{props:{anchor:null,tag:null,style:null,styleGroup:null},init({anchor:t=null,tag:e=null,style:n=null,styleGroup:r=null}={}){this.anchor=t,this.tag=e,this.style=n,this.styleGroup=r}}),Er=pn(wr,{statics:{type:"scalar"},props:{content:""},init({content:t}={}){this.content=t}}),xr=pn(dn,{statics:{type:"literal"},props:{value:null},init({value:t=null}={}){this.value=t}}),Sr=(t,e)=>(null==e?void 0:e.type)===t,Ar=(Sr.bind(void 0,"literal"),Sr.bind(void 0,"position"),Sr.bind(void 0,"point"),Sr.bind(void 0,"parseResult"),Sr.bind(void 0,"stream"),Sr.bind(void 0,"document")),jr=Sr.bind(void 0,"mapping"),Or=Sr.bind(void 0,"sequence"),Pr=Sr.bind(void 0,"keyValuePair"),kr=(Sr.bind(void 0,"tag"),Sr.bind(void 0,"scalar")),Nr=Sr.bind(void 0,"alias"),Ir=(Sr.bind(void 0,"directive"),Sr.bind(void 0,"comment")),Mr=pn(dn,{statics:{type:"stream"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter((t=>Ar(t)||Ir(t))):[]},enumerable:!0}}}),Tr=pn(dn,{statics:{type:"parseResult"},methods:{get rootNode(){return Xt(this.children)}}}),Cr=pn(dn,{statics:{type:"directive"},props:{name:null,parameters:null},init({name:t=null,parameters:e={}}={}){this.name=t,this.parameters=he({version:null,handle:null,prefix:null},e)}}),Rr=pn(dn,{statics:{type:"document"}}),Fr=pn(wr,{}),qr=pn(Fr,{statics:{type:"mapping"},propertyDescriptors:{content:{get(){return Array.isArray(this.children)?this.children.filter(Pr):[]},enumerable:!0}}}),Lr=pn(dn,tr,{statics:{type:"keyValuePair"},propertyDescriptors:{key:{get(){return this.children.filter((t=>kr(t)||jr(t)||Or(t)))[0]},enumerable:!0},value:{get(){const{key:t,children:e}=this;return e.filter((e=>(e=>e!==t)(e)&&(t=>kr(t)||jr(t)||Or(t)||Nr(t))(e)))[0]},enumerable:!0}}}),Dr=pn(Fr,{statics:{type:"sequence"},propertyDescriptors:{content:{get(){const{children:t}=this;return Array.isArray(t)?t.filter((t=>Or(t)||jr(t)||kr(t)||Nr(t))):[]},enumerable:!0}}}),$r=pn(dn,{statics:{type:"comment"},props:{content:null},init({content:t=null}={}){this.content=t}}),Vr=pn(dn,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:t=null,isUnexpected:e=!1}={}){this.value=t,this.isUnexpected=e}});const Br=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("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"key"===t.fieldName))}get valueNode(){if("flow_pair"===this.type||"block_mapping_pair"===this.type)return this.children.find((t=>"value"===t.fieldName))}get tag(){let{previousSibling:t}=this;for(;void 0!==t&&"tag"!==t.type;)({previousSibling:t}=t);return t}get anchor(){let{previousSibling:t}=this;for(;void 0!==t&&"anchor"!==t.type;)({previousSibling:t}=t);return t}get firstNamedChild(){return this.children.find((t=>t.isNamed))}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}setPreviousSibling(t){this.previousSibling=t}pushChildren(...t){this.children.push(...t)}},zr={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"]},Ur=t=>Array.isArray(t)||dr(t),Gr=pn({props:{schema:null},init(){const t=t=>{const e=gr({row:t.startPosition.row,column:t.startPosition.column,char:t.startIndex}),n=gr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return vr({start:e,end:n})},e=e=>{const{tag:n}=e,r=(null==n?void 0:n.text)||("plain_scalar"===e.type?"?":"!"),s=e.type.endsWith("mapping")?mn.Mapping:e.type.endsWith("sequence")?mn.Sequence:mn.Scalar,i=n?t(n):null;return yn({explicitName:r,kind:s,position:i})},n=e=>{const{anchor:n}=e;return void 0===n?null:br({name:n.text,position:t(n)})},r=t=>e=>"string"==typeof(null==e?void 0:e.type)&&e.type.endsWith(t),s=r("scalar"),i=r("mapping"),o=r("sequence"),a=t=>("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.keyNode,c=t=>("block_mapping_pair"===t.type||"flow_pair"===t.type)&&void 0===t.valueNode,u=e=>{const n=gr({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),{keyNode:s}=e,i=(null==s?void 0:s.children)||[],o=i.find(r("tag")),a=i.find(r("anchor")),c=yn(void 0!==o?{explicitName:o.text,kind:mn.Scalar,position:t(o)}:{explicitName:"?",kind:mn.Scalar}),u=void 0!==a?br({name:a.text,position:t(a)}):null;return Er({content:"",position:vr({start:n,end:n}),tag:c,anchor:u,styleGroup:Jn.Flow,style:Xn.Plain})},l=e=>{const n=gr({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex}),{valueNode:s}=e,i=(null==s?void 0:s.children)||[],o=i.find(r("tag")),a=i.find(r("anchor")),c=yn(void 0!==o?{explicitName:o.text,kind:mn.Scalar,position:t(o)}:{explicitName:"?",kind:mn.Scalar}),u=void 0!==a?br({name:a.text,position:t(a)}):null;return Er({content:"",position:vr({start:n,end:n}),tag:c,anchor:u,styleGroup:Jn.Flow,style:Xn.Plain})};this.enter=function(e){if(e instanceof Br&&!e.isNamed){const n=t(e),r=e.type||e.text,{isMissing:s}=e;return xr({value:r,position:n,isMissing:s})}},this.stream={enter(e){const n=t(e);return Mr({children:e.children,position:n,isMissing:e.isMissing})},leave:t=>Tr({children:[t]})},this.yaml_directive={enter(e){var n;const r=t(e),s=(null==e||null===(n=e.firstNamedChild)||void 0===n?void 0:n.text)||null;return Cr({position:r,name:"%YAML",parameters:{version:s}})}},this.tag_directive={enter(e){const n=t(e),r=e.children[0],s=e.children[1],i=Cr({position:n,name:"%TAG",parameters:{handle:(null==r?void 0:r.text)||null,prefix:(null==s?void 0:s.text)||null}});return this.schema.registerTagDirective(i),i}},this.reserved_directive={enter(e){const n=t(e),r=e.children[0],s=e.children[1],i=e.children[2];return Cr({position:n,name:(null==r?void 0:r.text)||null,parameters:{handle:(null==s?void 0:s.text)||null,prefix:(null==i?void 0:i.text)||null}})}},this.document={enter(e){const n=t(e);return Rr({children:e.children,position:n,isMissing:e.isMissing})},leave(t){t.children=t.children.flat()}},this.block_node={enter:t=>t.children},this.flow_node={enter(t){const[r]=t.children.slice(-1);if(s(r)||i(r)||o(r))return t.children;const a=gr({row:r.endPosition.row,column:r.endPosition.column,char:r.endIndex}),c=Er({content:"",anchor:n(r),tag:e(r),position:vr({start:a,end:a}),styleGroup:Jn.Flow,style:Xn.Plain});return[...t.children,c]}},this.tag={enter:()=>null},this.anchor={enter:()=>null},this.block_mapping={enter(r){const s=t(r),i=e(r),o=n(r),a=qr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Jn.Block,style:Xn.NextLine,isMissing:r.isMissing});return this.schema.resolve(a)}},this.block_mapping_pair={enter(e){const n=t(e),r=[...e.children];if(a(e)){const t=u(e);r.unshift(t)}if(c(e)){const t=l(e);r.push(t)}return Lr({children:r,position:n,styleGroup:Jn.Block,isMissing:e.isMissing})}},this.flow_mapping={enter(r){const s=t(r),i=e(r),o=n(r),a=qr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Jn.Flow,style:Xn.Explicit,isMissing:r.isMissing});return this.schema.resolve(a)}},this.flow_pair={enter(e){const n=t(e),r=[...e.children];if(a(e)){const t=u(e);r.unshift(t)}if(c(e)){const t=l(e);r.push(t)}return Lr({children:r,position:n,styleGroup:Jn.Flow,isMissing:e.isMissing})}},this.keyValuePair={leave(t){t.children=t.children.flat()}},this.block_sequence={enter(r){const s=t(r),i=e(r),o=n(r),a=Dr({children:r.children,position:s,anchor:o,tag:i,styleGroup:Jn.Block,style:Xn.NextLine});return this.schema.resolve(a)}},this.block_sequence_item={enter(t){if(t.children.length>1)return t.children;const e=gr({row:t.endPosition.row,column:t.endPosition.column,char:t.endIndex});return[Er({content:"",anchor:null,tag:yn({explicitName:"?",kind:mn.Scalar}),position:vr({start:e,end:e}),styleGroup:Jn.Flow,style:Xn.Plain})]}},this.flow_sequence={enter(r){const s=t(r),i=e(r),o=n(r),a=Dr({children:r.children.flat(),position:s,anchor:o,tag:i,styleGroup:Jn.Flow,style:Xn.Explicit});return this.schema.resolve(a)}},this.sequence={leave(t){t.children=t.children.flat(1/0)}},this.plain_scalar={enter(r){const s=t(r),i=e(r),o=n(r),a=Er({content:r.text,anchor:o,tag:i,position:s,styleGroup:Jn.Flow,style:Xn.Plain});return this.schema.resolve(a)}},this.single_quote_scalar={enter(r){const s=t(r),i=e(r),o=n(r),a=Er({content:r.text,anchor:o,tag:i,position:s,styleGroup:Jn.Flow,style:Xn.SingleQuoted});return this.schema.resolve(a)}},this.double_quote_scalar={enter(r){const s=t(r),i=e(r),o=n(r),a=Er({content:r.text,anchor:o,tag:i,position:s,styleGroup:Jn.Flow,style:Xn.DoubleQuoted});return this.schema.resolve(a)}},this.block_scalar={enter(r){const s=t(r),i=e(r),o=n(r),a=r.text.startsWith("|")?Xn.Literal:r.text.startsWith(">")?Xn.Folded:null,c=Er({content:r.text,anchor:o,tag:i,position:s,styleGroup:Jn.Block,style:a});return this.schema.resolve(c)}},this.comment={enter:t=>$r({content:t.text})},this.ERROR=function(e,n,r,s){const i=t(e),o=Vr({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===s.length?Tr({children:[o]}):o}}}),Wr=Gr,Kr=(t,e)=>"function"==typeof(null==e?void 0:e[t]),Zr=t=>null!=t&&Object.prototype.hasOwnProperty.call(t,"_storedElement")&&Object.prototype.hasOwnProperty.call(t,"_content"),Hr=(t,e)=>{var n;return(null==e||null===(n=e.primitive)||void 0===n?void 0:n.call(e))===t},Yr=(t,e)=>{var n,r;return(null==e||null===(n=e.classes)||void 0===n||null===(r=n.includes)||void 0===r?void 0:r.call(n,t))||!1},Qr=(t,e)=>(null==e?void 0:e.element)===t,Xr=t=>t({hasMethod:Kr,hasBasicElementProps:Zr,primitiveEq:Hr,isElementType:Qr,hasClass:Yr}),Jr=Xr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof Pe.W_||t(n)&&e(void 0,n))),ts=Xr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof Pe.RP||t(n)&&e("string",n))),es=Xr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof Pe.VL||t(n)&&e("number",n))),ns=Xr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof Pe.zr||t(n)&&e("null",n))),rs=Xr((({hasBasicElementProps:t,primitiveEq:e})=>n=>n instanceof Pe.hh||t(n)&&e("boolean",n))),ss=Xr((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof Pe.Sb||t(r)&&e("object",r)&&n("keys",r)&&n("values",r)&&n("items",r))),is=Xr((({hasBasicElementProps:t,primitiveEq:e,hasMethod:n})=>r=>r instanceof Pe.ON&&!(r instanceof Pe.Sb)||t(r)&&e("array",r)&&n("push",r)&&n("unshift",r)&&n("map",r)&&n("reduce",r))),os=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Pe.c6||t(r)&&e("member",r)&&n(void 0,r))),as=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Pe.EA||t(r)&&e("link",r)&&n(void 0,r))),cs=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Pe.tK||t(r)&&e("ref",r)&&n(void 0,r))),us=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ve||t(r)&&e("annotation",r)&&n("array",r))),ls=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ze||t(r)&&e("comment",r)&&n("string",r))),ps=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ge||t(r)&&e("parseResult",r)&&n("array",r))),fs=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ke||t(r)&&e("sourceMap",r)&&n("array",r))),hs=t=>Qr("object",t)||Qr("array",t)||Qr("boolean",t)||Qr("number",t)||Qr("string",t)||Qr("null",t)||Qr("member",t),_s=t=>{var e,n;return fs(null==t||null===(e=t.meta)||void 0===e||null===(n=e.get)||void 0===n?void 0:n.call(e,"sourceMap"))},ds=(t,e)=>{if(0===t.length)return!0;const n=e.attributes.get("symbols");return!!is(n)&&d(Ln(n.toValue()),t)},ms=(t,e)=>0===t.length||d(Ln(e.classes.toValue()),t);const ys=class extends fn{};const gs=class extends ys{};const vs=class extends ys{},bs=t=>"function"==typeof(null==t?void 0:t.clone)?t.clone():t,ws=t=>{if(t instanceof Pe.rm){const e=[...t].map(bs);return new Pe.rm(e)}if(t instanceof Pe.O4){const e=[...t].map(bs);return new Pe.O4(e)}if("function"==typeof(null==t?void 0:t.clone))return t.clone();throw new gs("Value provided to cloneDeep function couldn't be cloned",{value:t})};ws.safe=t=>{try{return ws(t)}catch{return t}};const Es=t=>{const{key:e,value:n}=t;return new Pe.KeyValuePair(e,n)},xs=t=>{const e=new t.constructor;if(e.element=t.element,t.meta.length>0&&(e._meta=ws(t.meta)),t.attributes.length>0&&(e._attributes=ws(t.attributes)),Jr(t.content)){const n=t.content;e.content=xs(n)}else Array.isArray(t.content)?e.content=[...t.content]:t.content instanceof Pe.KeyValuePair?e.content=Es(t.content):e.content=t.content;return e},Ss=t=>{if(t instanceof Pe.KeyValuePair)return Es(t);if(t instanceof Pe.rm)return(t=>{const e=[...t];return new Pe.rm(e)})(t);if(t instanceof Pe.O4)return(t=>{const e=[...t];return new Pe.O4(e)})(t);if(Jr(t))return xs(t);throw new vs("Value provided to cloneShallow function couldn't be cloned",{value:t})};Ss.safe=t=>{try{return Ss(t)}catch{return t}};const As=t=>ss(t)?"ObjectElement":is(t)?"ArrayElement":os(t)?"MemberElement":ts(t)?"StringElement":rs(t)?"BooleanElement":es(t)?"NumberElement":ns(t)?"NullElement":as(t)?"LinkElement":cs(t)?"RefElement":void 0,js=t=>Jr(t)?Ss(t):mr(t),Os=Ct(As,Xe),Ps={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},ks=(pn({props:{result:[],predicate:s,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:t=this.predicate,returnOnTrue:e=this.returnOnTrue,returnOnFalse:n=this.returnOnFalse}={}){this.result=[],this.predicate=t,this.returnOnTrue=e,this.returnOnFalse=n},methods:{enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}}),(t,e,{keyMap:n=Ps,...r}={})=>yr(t,e,{keyMap:n,nodeTypeGetter:As,nodePredicate:Os,nodeCloneFn:js,...r}));ks[Symbol.for("nodejs.util.promisify.custom")]=async(t,e,{keyMap:n=Ps,...r}={})=>yr[Symbol.for("nodejs.util.promisify.custom")](t,e,{keyMap:n,nodeTypeGetter:As,nodePredicate:Os,nodeCloneFn:js,...r});const Ns=kt(Re);const Is=At(H(1,Re(Array.isArray)?Array.isArray:Ct(O,te("Array"))),ae);const Ms=H(3,(function(t,e,n){var r=pe(t,n),s=pe(se(t),n);if(!Ns(r)&&!Is(t)){var i=at(r,s);return bt(i,e)}})),Ts=()=>({predicates:{...t},namespace:Qe}),Cs=(t,e,n={})=>{if(0===e.length)return t;const r=ge(Ts,"toolboxCreator",n),s=ge({},"visitorOptions",n),i=ge(As,"nodeTypeGetter",s),o=r(),a=e.map((t=>t(o))),c=((t,{visitFnGetter:e=fr,nodeTypeGetter:n=_r}={})=>{const r=new Array(t.length).fill(null);return{enter(s,...i){for(let o=0;o<t.length;o+=1)if(null===r[o]){const a=e(t[o],n(s),!1);if("function"==typeof a){const e=a.call(t[o],s,...i);if(!1===e)r[o]=s;else if(e===hr)r[o]=hr;else if(void 0!==e)return e}}},leave(s,...i){for(let o=0;o<t.length;o+=1)if(null===r[o]){const a=e(t[o],n(s),!0);if("function"==typeof a){const e=a.call(t[o],s,...i);if(e===hr)r[o]=hr;else if(void 0!==e&&!1!==e)return e}}else r[o]===s&&(r[o]=null)}}})(a.map(ge({},"visitor")),{nodeTypeGetter:i});a.forEach(Ms(["pre"],[]));const u=ks(t,c,s);return a.forEach(Ms(["post"],[])),u},Rs=(t,{Type:e,plugins:n=[]})=>{const r=new e(t);return Cs(r,n,{toolboxCreator:Ts,visitorOptions:{nodeTypeGetter:As}})},Fs=t=>(e,n={})=>Rs(e,{...n,Type:t});Pe.Sb.refract=Fs(Pe.Sb),Pe.ON.refract=Fs(Pe.ON),Pe.RP.refract=Fs(Pe.RP),Pe.hh.refract=Fs(Pe.hh),Pe.zr.refract=Fs(Pe.zr),Pe.VL.refract=Fs(Pe.VL),Pe.EA.refract=Fs(Pe.EA),Pe.tK.refract=Fs(Pe.tK),Ve.refract=Fs(Ve),ze.refract=Fs(ze),Ge.refract=Fs(Ge),Ke.refract=Fs(Ke);const qs={stream:["children"],document:["children"],mapping:["children"],keyValuePair:["children"],sequence:["children"],error:["children"],...Ps},Ls=t=>Jr(t)?As(t):_r(t),Ds=t=>Jr(t)||dr(t)||Array.isArray(t),$s=pn({props:{sourceMap:!1,processedDocumentCount:0,annotations:[],namespace:null},init(){const t=(t,e)=>{if(!this.sourceMap)return;const n=new Ke;n.position=t.position,n.astNode=t,e.meta.set("sourceMap",n)};this.namespace=Ye(),this.annotations=[],this.stream={leave(t){const e=new Ge;e._content=t.children.flat(1);const n=e.findElements(hs);if(n.length>0){n[0].classes.push("result")}return this.annotations.forEach((t=>{e.push(t)})),this.annotations=[],e}},this.comment=function(e){if(0===this.processedDocumentCount){const n=new ze(e.content);return t(e,n),n}return null},this.document=function(e){const n=1===this.processedDocumentCount,r=this.processedDocumentCount>=1;if(n){const n=new Ve("Only first document within YAML stream will be used. Rest will be discarded.");n.classes.push("warning"),t(e,n),this.annotations.push(n)}return r?null:(this.processedDocumentCount+=1,e.children)},this.mapping=function(e){const n=new Pe.Sb;return n._content=e.children,t(e,n),n},this.keyValuePair=function(e){const n=new Pe.c6;return n.content.key=e.key,n.content.value=e.value,t(e,n),e.children.filter((t=>"error"===t.type)).forEach((t=>{this.error(t,e,[],[e])})),n},this.sequence=function(e){const n=new Pe.ON;return n._content=e.children,t(e,n),n},this.scalar=function(e){const n=this.namespace.toElement(e.content);return""===e.content&&e.style===Xn.Plain&&(n.classes.push("yaml-e-node"),n.classes.push("yaml-e-scalar")),t(e,n),n},this.literal=function(e){if(e.isMissing){const n=`(Missing ${e.value})`,r=new Ve(n);r.classes.push("warning"),t(e,r),this.annotations.push(r)}return null},this.error=function(e,n,r,s){const i=e.isUnexpected?"(Unexpected YAML syntax error)":"(Error YAML syntax error)",o=new Ve(i);if(o.classes.push("error"),t(e,o),0===s.length){const t=new Ge;return t.push(o),t}return this.annotations.push(o),null}}});class Vs{constructor(t){this.cursor=t}stream(){return new Br(this.cursor)}yaml_directive(){return new Br(this.cursor)}tag_directive(){return new Br(this.cursor)}reserved_directive(){return new Br(this.cursor)}document(){return new Br(this.cursor)}block_node(){return new Br(this.cursor).setFieldName(this.cursor)}flow_node(){return new Br(this.cursor).setFieldName(this.cursor)}block_mapping(){return new Br(this.cursor)}block_mapping_pair(){return new Br(this.cursor)}flow_mapping(){return new Br(this.cursor)}flow_pair(){return new Br(this.cursor)}block_sequence(){return new Br(this.cursor)}block_sequence_item(){return new Br(this.cursor)}flow_sequence(){return new Br(this.cursor)}plain_scalar(){return new Br(this.cursor)}single_quote_scalar(){return new Br(this.cursor)}double_quote_scalar(){return new Br(this.cursor)}block_scalar(){return new Br(this.cursor)}ERROR(){return new Br(this.cursor).setHasError(this.cursor)}*[Symbol.iterator](){let t;if(t=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Br(this.cursor),this.cursor.gotoFirstChild()){const[e]=new Vs(this.cursor);for(t.pushChildren(e);this.cursor.gotoNextSibling();){const e=Array.from(new Vs(this.cursor));t.pushChildren(...e)}t.children.reduce(((t,e)=>(e.setPreviousSibling(t),e)),void 0),this.cursor.gotoParent()}yield t}}const Bs=Vs,zs=(t,{sourceMap:e=!1}={})=>{const n=t.walk(),r=[...new Bs(n)].at(0),s=Wr(),i=$s(),o=pr(),a=yr(r,s,{keyMap:zr,nodePredicate:Ur,state:{schema:o,sourceMap:e}});return yr(a.rootNode,i,{keyMap:qs,nodeTypeGetter:Ls,nodePredicate:Ds,state:{sourceMap:e}})},Us=(t,e)=>{const n=$t(t,e);return fe((t=>{if(De(t)&&Yt("$ref",t)&&ve(Xe,"$ref",t)){const e=pe(["$ref"],t),r=Dn("#/",e);return pe(r.split("/"),n)}return De(t)?Us(t,n):t}),t)},Gs=pn({props:{element:null},methods:{copyMetaAndAttributes(t,e){_s(t)&&e.meta.set("sourceMap",t.meta.get("sourceMap"))}}}),Ws=pn(Gs,{methods:{enter(t){return this.element=ws(t),hr}}}),Ks=t=>"string"==typeof(null==t?void 0:t.type)?t.type:As(t),Zs={EphemeralObject:["content"],EphemeralArray:["content"],...Ps},Hs=(t,e,{keyMap:n=Zs,...r}={})=>ks(t,e,{keyMap:n,nodeTypeGetter:Ks,nodePredicate:i,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});Hs[Symbol.for("nodejs.util.promisify.custom")]=async(t,{keyMap:e=Zs,...n}={})=>ks[Symbol.for("nodejs.util.promisify.custom")](t,visitor,{keyMap:e,nodeTypeGetter:Ks,nodePredicate:i,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});const Ys=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 Qs=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))}},Xs=pn.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 n=new Qs(e.content);return t.set(e,n),n}},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 n=new Ys(e.content);return t.set(e,n),n}},this.EphemeralArray={leave:t=>t.toArray()}})),Js=t=>Jr(t)?ts(t)||es(t)||rs(t)||ns(t)?t.toValue():Hs(t,Xs()):t,ti=t=>{if(Jr(t))return`${t.element.charAt(0).toUpperCase()+t.element.slice(1)}Element`},ei={MainElement:["content"],InfoElement:["content"],PrincipleElement:["content"],StandardElement:["content"],ScenarioElement:["content"],RequirementElement:["content"],StandardIdentifierElement:["content"],RequirementLevelElement:[],...Ps},ni=pn(Gs,{props:{specObj:null},init({specObj:t=this.specObj}){this.specObj=t},methods:{retrievePassingOptions(){return ye(["namespace","specObj"],this)},retrieveFixedFields(t){return Ct(pe(["visitors",...t,"fixedFields"]),j)(this.specObj)},retrieveVisitor(t){return me(Re,["visitors",...t],this.specObj)?pe(["visitors",...t],this.specObj):pe(["visitors",...t,"$visitor"],this.specObj)},retrieveVisitorInstance(t,e={}){const n=this.retrievePassingOptions();return this.retrieveVisitor(t)({...n,...e})},toRefractedElement(t,e,n={}){const r=this.retrieveVisitorInstance(t,n),s=Object.getPrototypeOf(r);return je(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?ws(e):(ks(e,r,{keyMap:ei,...n,nodeTypeGetter:ti}),r.element)}}});class ri extends Pe.RP{constructor(t,e,n){super(t,e,n),this.element="requirementLevel"}}const si=ri,ii=pn(ni,Ws,{methods:{StringElement(t){const e=new si(Js(t));return this.copyMetaAndAttributes(t,e),this.element=e,hr}}});class oi extends Pe.ON{constructor(t,e,n){super(t,e,n),this.element="standardIdentifier"}}const ai=oi,ci=pn(ni,Ws,{init(){this.element=new ai},methods:{ArrayElement(t){return t.forEach((t=>{const e=this.toRefractedElement(["document","objects","StandardIdentifier"],t);this.element.push(e)})),this.copyMetaAndAttributes(t,this.element),hr}}});class ui extends Pe.Sb{constructor(t,e,n){super(t,e,n),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 li=ui;const pi=pn(ni,{props:{specPath:_t(Ae()),ignoredFields:[]},init({specPath:t=this.specPath,ignoredFields:e=this.ignoredFields}={}){this.specPath=t,this.ignoredFields=e},methods:{ObjectElement(t){const e=this.specPath(t),n=this.retrieveFixedFields(e);return t.forEach(((t,r,s)=>{if(ts(r)&&n.includes(Js(r))&&!this.ignoredFields.includes(Js(r))){const n=this.toRefractedElement([...e,"fixedFields",Js(r)],t),i=new Pe.c6(ws(r),n);i.classes.push("fixed-field"),this.copyMetaAndAttributes(s,i),this.element.content.push(i)}else this.ignoredFields.includes(Js(r))||this.element.content.push(ws(s))})),this.copyMetaAndAttributes(t,this.element),hr}}}),fi=pn(pi,Ws,{props:{specPath:_t(["document","objects","Requirement"])},init(){this.element=new li}}),hi=Ws,_i=Ws;class di extends Pe.Sb{constructor(t,e,n){super(t,e,n),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 mi=di,yi=pn(pi,Ws,{props:{specPath:_t(["document","objects","Scenario"])},init(){this.element=new mi}}),gi=Ws,vi=pn(ni,Ws,{init(){this.element=new Pe.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),hr}}});class bi extends Pe.Sb{constructor(t,e,n){super(t,e,n),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 wi=bi,Ei=pn(pi,Ws,{props:{specPath:_t(["document","objects","Standard"])},init(){this.element=new wi}}),xi=Ws,Si=Ws,Ai=Ws;class ji extends Pe.Sb{constructor(t,e,n){super(t,e,n),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 Oi=ji,Pi=pn(pi,Ws,{props:{specPath:_t(["document","objects","Principle"])},init(){this.element=new Oi}}),ki=Ws,Ni=Ws,Ii=Ws;class Mi extends Pe.Sb{constructor(t,e,n){super(t,e,n),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 Ti=Mi,Ci=pn(pi,Ws,{props:{specPath:_t(["document","objects","Info"])},init(){this.element=new Ti}}),Ri=Ws,Fi=Ws;class qi extends Pe.Sb{constructor(t,e,n){super(t,e,n),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 Li=qi,Di={visitors:{value:Ws,document:{objects:{Main:{$visitor:pn(pi,Ws,{props:{specPath:_t(["document","objects","Main"])},init(){this.element=new Li}}),fixedFields:{version:Ws,info:{$ref:"#/visitors/document/objects/Info"},principles:pn(ni,Ws,{init(){this.element=new Pe.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),hr}}}),standards:pn(ni,Ws,{init(){this.element=new Pe.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),hr}}}),scenarios:pn(ni,Ws,{init(){this.element=new Pe.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),hr}}})}},Info:{$visitor:Ci,fixedFields:{title:Ri,description:Fi}},Principle:{$visitor:Pi,fixedFields:{name:ki,description:Ni,iri:Ii,level:{$ref:"#/visitors/document/objects/RequirementLevel"}}},Standard:{$visitor:Ei,fixedFields:{name:xi,description:Si,level:{$ref:"#/visitors/document/objects/RequirementLevel"},iri:Ai}},Scenario:{$visitor:yi,fixedFields:{description:gi,when:{$ref:"#/visitors/document/objects/StandardIdentifier"},then:vi}},Requirement:{$visitor:fi,fixedFields:{subject:{$ref:"#/visitors/document/objects/StandardIdentifier"},level:{$ref:"#/visitors/document/objects/RequirementLevel"},values:hi,follows:_i}},StandardIdentifier:ci,RequirementLevel:ii}}}},$i=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Li||t(r)&&e("main",r)&&n("object",r))),Vi=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Ti||t(r)&&e("info",r)&&n("object",r))),Bi=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof Oi||t(r)&&e("principle",r)&&n("object",r))),zi=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof li||t(r)&&e("requirement",r)&&n("object",r))),Ui=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof si||t(r)&&e("requirementLevel",r)&&n("string",r))),Gi=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof mi||t(r)&&e("scenario",r)&&n("object",r))),Wi=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof wi||t(r)&&e("standard",r)&&n("object",r))),Ki=Xr((({hasBasicElementProps:t,isElementType:e,primitiveEq:n})=>r=>r instanceof ai||t(r)&&e("standardIdentifier",r)&&n("array",r))),Zi={namespace:t=>{const{base:e}=t;return e.register("info",Ti),e.register("main",Li),e.register("principle",Oi),e.register("requirement",li),e.register("requirementLevel",si),e.register("scenario",mi),e.register("standard",wi),e.register("standardIdentifier",ai),e}},Hi=()=>{const t=Ye(Zi);return{predicates:{...e,isStringElement:ts},namespace:t}},Yi=(t,{specPath:e=["visitors","document","objects","Main","$visitor"],plugins:n=[]}={})=>{const r=(0,Pe.Qc)(t),s=Us(Di),i=Ms(e,[],s);return ks(r,i,{state:{specObj:s}}),Cs(i.element,n,{toolboxCreator:Hi,visitorOptions:{keyMap:ei,nodeTypeGetter:ti}})},Qi=t=>(e,n={})=>Yi(e,{...n,specPath:t});Li.refract=Qi(["visitors","document","objects","Main","$visitor"]),Ti.refract=Qi(["visitors","document","objects","Info","$visitor"]),Oi.refract=Qi(["visitors","document","objects","Principle","$visitor"]),li.refract=Qi(["visitors","document","objects","Requirement","$visitor"]),si.refract=Qi(["visitors","document","objects","RequirementLevel","$visitor"]),mi.refract=Qi(["visitors","document","objects","Scenario","$visitor"]),wi.refract=Qi(["visitors","document","objects","Standards","$visitor"]),ai.refract=Qi(["visitors","document","objects","StandardIdentifier","$visitor"]);const Xi=class extends on{};const Ji=class extends Xi{};const to=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new Ji('"filterByFormat" method is not implemented.')}findBy(){throw new Ji('"findBy" method is not implemented.')}latest(){throw new Ji('"latest" method is not implemented.')}};class eo extends to{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 n="generic"===e?`apidesignsystems;version=${t}`:`apidesignsystems+${e};version=${t}`;return this.find((t=>t.includes(n)))||this.unknownMediaType}latest(t="generic"){return ue(this.filterByFormat(t))}}const no=new eo("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"),ro=new eo(...no.filterByFormat("generic"),...no.filterByFormat("yaml")),so=/(?<YAML>^(["']?)version\2\s*:\s*(["']?)(?<version_yaml>2021-05-07)\3)|(?<JSON>"version"\s*:\s*"(?<version_json>2021-05-07)")/m,io=async t=>so.test(t)&&await(async t=>{try{return"ERROR"!==(await ln(t)).rootNode.type}catch{return!1}})(t),oo=async(t,e={})=>{const n=ge({},"refractorOpts",e),r=_e(["refractorOpts"],e),s=await(async(t,{sourceMap:e=!1}={})=>{const n=await ln(t);return zs(n,{sourceMap:e})})(t,r),{result:i}=s;if(Oe(i)){const t=Li.refract(i,n);t.classes.push("result"),s.replaceResult(t)}return s},ao=Ye(Zi)})(),r})()));