@swagger-api/apidom-parser-adapter-openapi-json-3-1 0.70.0 → 0.70.2

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(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_1=t()}(self,(()=>(()=>{var e={8385:(e,t,r)=>{var n=r(6174);e.exports=n},5271:(e,t,r)=>{var n=r(7820);e.exports=n},7574:(e,t,r)=>{var n=r(2);e.exports=n},33:(e,t,r)=>{var n=r(5636);e.exports=n},9821:(e,t,r)=>{var n=r(2285);r(9031),e.exports=n},8008:(e,t,r)=>{var n=r(8535);e.exports=n},164:(e,t,r)=>{var n=r(6042);e.exports=n},2089:(e,t,r)=>{r(2276);var n=r(5607);e.exports=n("Array").indexOf},2604:(e,t,r)=>{var n=r(8902),s=r(2089),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||n(i,e)&&t===i.indexOf?s:t}},3512:(e,t,r)=>{r(297);var n=r(7545).Object,s=e.exports=function(e,t,r){return n.defineProperty(e,t,r)};n.defineProperty.sham&&(s.sham=!0)},2921:(e,t,r)=>{r(6187);var n=r(7545);e.exports=n.Object.getOwnPropertySymbols},8651:(e,t,r)=>{r(2647);var n=r(7545);e.exports=n.Object.keys},5008:(e,t,r)=>{r(9106),r(6663),r(6187),r(9781),r(492),r(6681),r(9594),r(3665),r(9017),r(1250),r(9786),r(503),r(6565),r(9322),r(3610),r(6886),r(3514),r(8671),r(8556),r(1367);var n=r(7545);e.exports=n.Symbol},994:(e,t,r)=>{r(8939),r(6663),r(5454),r(3665);var n=r(9207);e.exports=n.f("iterator")},290:(e,t,r)=>{r(2432),r(3610);var n=r(9207);e.exports=n.f("toPrimitive")},5159:(e,t,r)=>{e.exports=r(2747)},8026:(e,t,r)=>{e.exports=r(229)},1903:(e,t,r)=>{e.exports=r(5090)},902:(e,t,r)=>{e.exports=r(5483)},9256:(e,t,r)=>{e.exports=r(2185)},5659:(e,t,r)=>{e.exports=r(9982)},3698:(e,t,r)=>{e.exports=r(8241)},2747:(e,t,r)=>{var n=r(8385);e.exports=n},229:(e,t,r)=>{var n=r(5271);e.exports=n},5090:(e,t,r)=>{var n=r(7574);e.exports=n},5483:(e,t,r)=>{var n=r(33);e.exports=n},2185:(e,t,r)=>{var n=r(9821);r(177),r(2725),r(1806),r(6658),r(4212),r(8658),r(1875),r(4592),r(6680),e.exports=n},9982:(e,t,r)=>{var n=r(8008);e.exports=n},8241:(e,t,r)=>{var n=r(164);e.exports=n},6235:(e,t,r)=>{var n=r(6447),s=r(9288),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},7757:(e,t,r)=>{var n=r(6447),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,r)=>{var n=r(5744),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},8180:(e,t,r)=>{var n=r(101),s=r(7739),i=r(4104),o=function(e){return function(t,r,o){var c,a=n(t),l=i(a),u=s(o,l);if(e&&r!=r){for(;l>u;)if((c=a[u++])!=c)return!0}else for(;l>u;u++)if((e||u in a)&&a[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},454:(e,t,r)=>{var n=r(8043),s=r(4120),i=r(2202),o=r(1795),c=r(4104),a=r(1321),l=s([].push),u=function(e){var t=1==e,r=2==e,s=3==e,u=4==e,p=6==e,m=7==e,h=5==e||p;return function(d,f,y,g){for(var _,b,v=o(d),E=i(v),w=n(f,y),j=c(E),x=0,O=g||a,S=t?O(d,j):r||m?O(d,0):void 0;j>x;x++)if((h||x in E)&&(b=w(_=E[x],x,v),e))if(t)S[x]=b;else if(b)switch(e){case 3:return!0;case 5:return _;case 6:return x;case 2:l(S,_)}else switch(e){case 4:return!1;case 7:l(S,_)}return p?-1:s||u?u:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},242:(e,t,r)=>{var n=r(6192),s=r(8182),i=r(4218),o=s("species");e.exports=function(e){return i>=51||!n((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},424:(e,t,r)=>{"use strict";var n=r(6192);e.exports=function(e,t){var r=[][e];return!!r&&n((function(){r.call(null,t||function(){return 1},1)}))}},1923:(e,t,r)=>{var n=r(7739),s=r(4104),i=r(9361),o=Array,c=Math.max;e.exports=function(e,t,r){for(var a=s(e),l=n(t,a),u=n(void 0===r?a:r,a),p=o(c(u-l,0)),m=0;l<u;l++,m++)i(p,m,e[l]);return p.length=m,p}},3096:(e,t,r)=>{var n=r(4120);e.exports=n([].slice)},3712:(e,t,r)=>{var n=r(4770),s=r(2091),i=r(5744),o=r(8182)("species"),c=Array;e.exports=function(e){var t;return n(e)&&(t=e.constructor,(s(t)&&(t===c||n(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?c:t}},1321:(e,t,r)=>{var n=r(3712);e.exports=function(e,t){return new(n(e))(0===t?0:t)}},9272:(e,t,r)=>{var n=r(4120),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},4696:(e,t,r)=>{var n=r(3471),s=r(6447),i=r(9272),o=r(8182)("toStringTag"),c=Object,a="Arguments"==i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=c(e),o))?r:a?i(t):"Object"==(n=i(t))&&s(t.callee)?"Arguments":n}},4635:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,r)=>{var n=r(69),s=r(2760),i=r(774);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9361:(e,t,r)=>{"use strict";var n=r(77),s=r(2760),i=r(774);e.exports=function(e,t,r){var o=n(t);o in e?s.f(e,o,i(0,r)):e[o]=r}},2807:(e,t,r)=>{var n=r(2760);e.exports=function(e,t,r){return n.f(e,t,r)}},9362:(e,t,r)=>{var n=r(8711);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5098:(e,t,r)=>{var n=r(8576),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},69:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},7449:(e,t,r)=>{var n=r(8576),s=r(5744),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9425:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7365:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,r)=>{var n,s,i=r(8576),o=r(8989),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.version,u=l&&l.v8;u&&(s=(n=u.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]),e.exports=s},5607:(e,t,r)=>{var n=r(7545);e.exports=function(e){return n[e+"Prototype"]}},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3085:(e,t,r)=>{"use strict";var n=r(8576),s=r(6298),i=r(4914),o=r(6447),c=r(5141).f,a=r(9245),l=r(7545),u=r(8043),p=r(8711),m=r(4500),h=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,d,f,y,g,_,b,v,E=e.target,w=e.global,j=e.stat,x=e.proto,O=w?n:j?n[E]:(n[E]||{}).prototype,S=w?l:l[E]||p(l,E,{})[E],P=S.prototype;for(f in t)s=!(r=a(w?f:E+(j?".":"#")+f,e.forced))&&O&&m(O,f),g=S[f],s&&(_=e.dontCallGetSet?(v=c(O,f))&&v.value:O[f]),y=s&&_?_:t[f],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?h(y):x&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(S,f,b),x&&(m(l,d=E+"Prototype")||p(l,d,{}),p(l[d],f,y),e.real&&P&&(r||!P[f])&&p(P,f,y)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,r)=>{var n=r(4914),s=r(6235),i=r(2784),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,r)=>{var n=r(6192);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,r)=>{var n=r(2784),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},2282:(e,t,r)=>{var n=r(69),s=r(4500),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,c=s(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,CONFIGURABLE:l}},6419:(e,t,r)=>{var n=r(4120),s=r(6235);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4914:(e,t,r)=>{var n=r(9272),s=r(4120);e.exports=function(e){if("Function"===n(e))return s(e)}},4120:(e,t,r)=>{var n=r(2784),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,r)=>{var n=r(7545),s=r(8576),i=r(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},9202:(e,t,r)=>{var n=r(4120),s=r(4770),i=r(6447),o=r(9272),c=r(4845),a=n([].push);e.exports=function(e){if(i(e))return e;if(s(e)){for(var t=e.length,r=[],n=0;n<t;n++){var l=e[n];"string"==typeof l?a(r,l):"number"!=typeof l&&"Number"!=o(l)&&"String"!=o(l)||a(r,c(l))}var u=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(s(this))return t;for(var n=0;n<u;n++)if(r[n]===e)return t}}}},5037:(e,t,r)=>{var n=r(6235),s=r(5646);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},8576:(e,t,r)=>{var n=function(e){return e&&e.Math==Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||Function("return this")()},4500:(e,t,r)=>{var n=r(4120),s=r(1795),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},4535:e=>{e.exports={}},7403:(e,t,r)=>{var n=r(150);e.exports=n("document","documentElement")},188:(e,t,r)=>{var n=r(69),s=r(6192),i=r(7449);e.exports=!n&&!s((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(9272),o=Object,c=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?c(e,""):o(e)}:o},9516:(e,t,r)=>{var n=r(4120),s=r(6447),i=r(6434),o=n(Function.toString);s(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},3326:(e,t,r)=>{var n,s,i,o=r(5278),c=r(8576),a=r(5744),l=r(8711),u=r(4500),p=r(6434),m=r(9766),h=r(4535),d="Object already initialized",f=c.TypeError,y=c.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw f(d);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var _=m("state");h[_]=!0,n=function(e,t){if(u(e,_))throw f(d);return t.facade=e,l(e,_,t),t},s=function(e){return u(e,_)?e[_]:{}},i=function(e){return u(e,_)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!a(t)||(r=s(t)).type!==e)throw f("Incompatible receiver, "+e+" required");return r}}}},4770:(e,t,r)=>{var n=r(9272);e.exports=Array.isArray||function(e){return"Array"==n(e)}},6447:(e,t,r)=>{var n=r(8382),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},2091:(e,t,r)=>{var n=r(4120),s=r(6192),i=r(6447),o=r(4696),c=r(150),a=r(9516),l=function(){},u=[],p=c("Reflect","construct"),m=/^\s*(?:class|function)\b/,h=n(m.exec),d=!m.exec(l),f=function(e){if(!i(e))return!1;try{return p(l,u,e),!0}catch(e){return!1}},y=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return d||!!h(m,a(e))}catch(e){return!0}};y.sham=!0,e.exports=!p||s((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?y:f},9245:(e,t,r)=>{var n=r(6192),s=r(6447),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r==u||r!=l&&(s(t)?n(t):!!t)},c=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},a=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,r)=>{var n=r(6447),s=r(8382),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},5546:e=>{e.exports=!0},3236:(e,t,r)=>{var n=r(150),s=r(6447),i=r(8902),o=r(615),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,c(e))}},5695:(e,t,r)=>{"use strict";var n=r(4413).IteratorPrototype,s=r(2853),i=r(774),o=r(1284),c=r(7771),a=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:i(+!l,r)}),o(e,u,!1,!0),c[u]=a,e}},5297:(e,t,r)=>{"use strict";var n=r(3085),s=r(8922),i=r(5546),o=r(2282),c=r(6447),a=r(5695),l=r(9341),u=r(4469),p=r(1284),m=r(8711),h=r(9362),d=r(8182),f=r(7771),y=r(4413),g=o.PROPER,_=o.CONFIGURABLE,b=y.IteratorPrototype,v=y.BUGGY_SAFARI_ITERATORS,E=d("iterator"),w="keys",j="values",x="entries",O=function(){return this};e.exports=function(e,t,r,o,d,y,S){a(r,t,o);var P,A,F,$=function(e){if(e===d&&C)return C;if(!v&&e in R)return R[e];switch(e){case w:case j:case x:return function(){return new r(this,e)}}return function(){return new r(this)}},k=t+" Iterator",M=!1,R=e.prototype,I=R[E]||R["@@iterator"]||d&&R[d],C=!v&&I||$(d),T="Array"==t&&R.entries||I;if(T&&(P=l(T.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):c(P[E])||h(P,E,O)),p(P,k,!0,!0),i&&(f[k]=O)),g&&d==j&&I&&I.name!==j&&(!i&&_?m(R,"name",j):(M=!0,C=function(){return s(I,this)})),d)if(A={values:$(j),keys:y?C:$(w),entries:$(x)},S)for(F in A)(v||M||!(F in R))&&h(R,F,A[F]);else n({target:t,proto:!0,forced:v||M},A);return i&&!S||R[E]===C||h(R,E,C,{name:d}),f[t]=C,A}},4413:(e,t,r)=>{"use strict";var n,s,i,o=r(6192),c=r(6447),a=r(5744),l=r(2853),u=r(9341),p=r(9362),m=r(8182),h=r(5546),d=m("iterator"),f=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):f=!0),!a(n)||o((function(){var e={};return n[d].call(e)!==e}))?n={}:h&&(n=l(n)),c(n[d])||p(n,d,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:f}},7771:e=>{e.exports={}},4104:(e,t,r)=>{var n=r(8445);e.exports=function(e){return n(e.length)}},7679:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},2853:(e,t,r)=>{var n,s=r(1138),i=r(1187),o=r(2952),c=r(4535),a=r(7403),l=r(7449),u=r(9766),p="prototype",m="script",h=u("IE_PROTO"),d=function(){},f=function(e){return"<"+m+">"+e+"</"+m+">"},y=function(e){e.write(f("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+m+":",t.style.display="none",a.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(f("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=s(e),r=new d,d[p]=null,r[h]=e):r=g(),void 0===t?r:i.f(r,t)}},1187:(e,t,r)=>{var n=r(69),s=r(9600),i=r(2760),o=r(1138),c=r(101),a=r(7653);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=c(t),s=a(t),l=s.length,u=0;l>u;)i.f(e,r=s[u++],n[r]);return e}},2760:(e,t,r)=>{var n=r(69),s=r(188),i=r(9600),o=r(1138),c=r(77),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",h="writable";t.f=n?i?function(e,t,r){if(o(e),t=c(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&h in r&&!r[h]){var n=u(e,t);n&&n[h]&&(e[t]=r.value,r={configurable:m in r?r[m]:n[m],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=c(t),o(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw a("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5141:(e,t,r)=>{var n=r(69),s=r(8922),i=r(6007),o=r(774),c=r(101),a=r(77),l=r(4500),u=r(188),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=c(e),t=a(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},4052:(e,t,r)=>{var n=r(9272),s=r(101),i=r(2092).f,o=r(1923),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"Window"==n(e)?function(e){try{return i(e)}catch(e){return o(c)}}(e):i(s(e))}},2092:(e,t,r)=>{var n=r(7934),s=r(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,r)=>{var n=r(4500),s=r(6447),i=r(1795),o=r(9766),c=r(4635),a=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=i(e);if(n(t,a))return t[a];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8902:(e,t,r)=>{var n=r(4120);e.exports=n({}.isPrototypeOf)},7934:(e,t,r)=>{var n=r(4120),s=r(4500),i=r(101),o=r(8180).indexOf,c=r(4535),a=n([].push);e.exports=function(e,t){var r,n=i(e),l=0,u=[];for(r in n)!s(c,r)&&s(n,r)&&a(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~o(u,r)||a(u,r));return u}},7653:(e,t,r)=>{var n=r(7934),s=r(2952);e.exports=Object.keys||function(e){return n(e,s)}},6007:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},4469:(e,t,r)=>{var n=r(6419),s=r(1138),i=r(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},158:(e,t,r)=>{"use strict";var n=r(3471),s=r(4696);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},380:(e,t,r)=>{var n=r(8922),s=r(6447),i=r(5744),o=TypeError;e.exports=function(e,t){var r,c;if("string"===t&&s(r=e.toString)&&!i(c=n(r,e)))return c;if(s(r=e.valueOf)&&!i(c=n(r,e)))return c;if("string"!==t&&s(r=e.toString)&&!i(c=n(r,e)))return c;throw o("Can't convert object to primitive value")}},7545:e=>{e.exports={}},3209:(e,t,r)=>{var n=r(5646),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},1284:(e,t,r)=>{var n=r(3471),s=r(2760).f,i=r(8711),o=r(4500),c=r(158),a=r(8182)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,a)||s(u,a,{configurable:!0,value:t}),l&&!n&&i(u,"toString",c)}}},9766:(e,t,r)=>{var n=r(8717),s=r(2759),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},6434:(e,t,r)=>{var n=r(8576),s=r(5098),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8717:(e,t,r)=>{var n=r(5546),s=r(6434);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,r)=>{var n=r(4120),s=r(1941),i=r(4845),o=r(3209),c=n("".charAt),a=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=i(o(t)),m=s(r),h=p.length;return m<0||m>=h?e?"":void 0:(n=a(p,m))<55296||n>56319||m+1===h||(u=a(p,m+1))<56320||u>57343?e?c(p,m):n:e?l(p,m,m+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},6770:(e,t,r)=>{var n=r(4218),s=r(6192);e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!String(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},3407:(e,t,r)=>{var n=r(8922),s=r(150),i=r(8182),o=r(9362);e.exports=function(){var e=s("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,c=i("toPrimitive");t&&!t[c]&&o(t,c,(function(e){return n(r,this)}),{arity:1})}},31:(e,t,r)=>{var n=r(6770);e.exports=n&&!!Symbol.for&&!!Symbol.keyFor},7739:(e,t,r)=>{var n=r(1941),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},101:(e,t,r)=>{var n=r(2202),s=r(3209);e.exports=function(e){return n(s(e))}},1941:(e,t,r)=>{var n=r(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},8445:(e,t,r)=>{var n=r(1941),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},1795:(e,t,r)=>{var n=r(3209),s=Object;e.exports=function(e){return s(n(e))}},7888:(e,t,r)=>{var n=r(8922),s=r(5744),i=r(3236),o=r(5037),c=r(380),a=r(8182),l=TypeError,u=a("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,a=o(e,u);if(a){if(void 0===t&&(t="default"),r=n(a,e,t),!s(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),c(e,t)}},77:(e,t,r)=>{var n=r(7888),s=r(3236);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},3471:(e,t,r)=>{var n={};n[r(8182)("toStringTag")]="z",e.exports="[object z]"===String(n)},4845:(e,t,r)=>{var n=r(4696),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9288:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,r)=>{var n=r(4120),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},615:(e,t,r)=>{var n=r(6770);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,r)=>{var n=r(69),s=r(6192);e.exports=n&&s((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,r)=>{var n=r(8576),s=r(6447),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},8332:(e,t,r)=>{var n=r(7545),s=r(4500),i=r(9207),o=r(2760).f;e.exports=function(e){var t=n.Symbol||(n.Symbol={});s(t,e)||o(t,e,{value:i.f(e)})}},9207:(e,t,r)=>{var n=r(8182);t.f=n},8182:(e,t,r)=>{var n=r(8576),s=r(8717),i=r(4500),o=r(2759),c=r(6770),a=r(615),l=n.Symbol,u=s("wks"),p=a?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=c&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9106:(e,t,r)=>{"use strict";var n=r(3085),s=r(6192),i=r(4770),o=r(5744),c=r(1795),a=r(4104),l=r(9425),u=r(9361),p=r(1321),m=r(242),h=r(8182),d=r(4218),f=h("isConcatSpreadable"),y=d>=51||!s((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),g=function(e){if(!o(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};n({target:"Array",proto:!0,arity:1,forced:!y||!m("concat")},{concat:function(e){var t,r,n,s,i,o=c(this),m=p(o,0),h=0;for(t=-1,n=arguments.length;t<n;t++)if(g(i=-1===t?o:arguments[t]))for(s=a(i),l(h+s),r=0;r<s;r++,h++)r in i&&u(m,h,i[r]);else l(h+1),u(m,h++,i);return m.length=h,m}})},2276:(e,t,r)=>{"use strict";var n=r(3085),s=r(4914),i=r(8180).indexOf,o=r(424),c=s([].indexOf),a=!!c&&1/c([1],1,-0)<0;n({target:"Array",proto:!0,forced:a||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return a?c(this,e,t)||0:i(this,e,t)}})},8939:(e,t,r)=>{"use strict";var n=r(101),s=r(7423),i=r(7771),o=r(3326),c=r(2760).f,a=r(5297),l=r(7271),u=r(5546),p=r(69),m="Array Iterator",h=o.set,d=o.getterFor(m);e.exports=a(Array,"Array",(function(e,t){h(this,{type:m,target:n(e),index:0,kind:t})}),(function(){var e=d(this),t=e.target,r=e.kind,n=e.index++;return!t||n>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==r?n:"values"==r?t[n]:[n,t[n]],!1)}),"values");var f=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},2432:()=>{},9704:(e,t,r)=>{var n=r(3085),s=r(150),i=r(6298),o=r(8922),c=r(4120),a=r(6192),l=r(6447),u=r(3236),p=r(3096),m=r(9202),h=r(6770),d=String,f=s("JSON","stringify"),y=c(/./.exec),g=c("".charAt),_=c("".charCodeAt),b=c("".replace),v=c(1..toString),E=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,j=/^[\uDC00-\uDFFF]$/,x=!h||a((function(){var e=s("Symbol")();return"[null]"!=f([e])||"{}"!=f({a:e})||"{}"!=f(Object(e))})),O=a((function(){return'"\\udf06\\ud834"'!==f("\udf06\ud834")||'"\\udead"'!==f("\udead")})),S=function(e,t){var r=p(arguments),n=m(t);if(l(n)||void 0!==e&&!u(e))return r[1]=function(e,t){if(l(n)&&(t=o(n,this,d(e),t)),!u(t))return t},i(f,null,r)},P=function(e,t,r){var n=g(r,t-1),s=g(r,t+1);return y(w,e)&&!y(j,s)||y(j,e)&&!y(w,n)?"\\u"+v(_(e,0),16):e};f&&n({target:"JSON",stat:!0,arity:3,forced:x||O},{stringify:function(e,t,r){var n=p(arguments),s=i(x?S:f,null,n);return O&&"string"==typeof s?b(s,E,P):s}})},8671:(e,t,r)=>{var n=r(8576);r(1284)(n.JSON,"JSON",!0)},8556:()=>{},297:(e,t,r)=>{var n=r(3085),s=r(69),i=r(2760).f;n({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!s},{defineProperty:i})},7895:(e,t,r)=>{var n=r(3085),s=r(6770),i=r(6192),o=r(4750),c=r(1795);n({target:"Object",stat:!0,forced:!s||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(c(e)):[]}})},2647:(e,t,r)=>{var n=r(3085),s=r(1795),i=r(7653);n({target:"Object",stat:!0,forced:r(6192)((function(){i(1)}))},{keys:function(e){return i(s(e))}})},6663:()=>{},1367:()=>{},5454:(e,t,r)=>{"use strict";var n=r(863).charAt,s=r(4845),i=r(3326),o=r(5297),c=r(7271),a="String Iterator",l=i.set,u=i.getterFor(a);o(String,"String",(function(e){l(this,{type:a,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?c(void 0,!0):(e=n(r,s),t.index+=e.length,c(e,!1))}))},9781:(e,t,r)=>{r(8332)("asyncIterator")},9351:(e,t,r)=>{"use strict";var n=r(3085),s=r(8576),i=r(8922),o=r(4120),c=r(5546),a=r(69),l=r(6770),u=r(6192),p=r(4500),m=r(8902),h=r(1138),d=r(101),f=r(77),y=r(4845),g=r(774),_=r(2853),b=r(7653),v=r(2092),E=r(4052),w=r(4750),j=r(5141),x=r(2760),O=r(1187),S=r(6007),P=r(9362),A=r(2807),F=r(8717),$=r(9766),k=r(4535),M=r(2759),R=r(8182),I=r(9207),C=r(8332),T=r(3407),N=r(1284),q=r(3326),D=r(454).forEach,L=$("hidden"),B="Symbol",V="prototype",z=q.set,U=q.getterFor(B),G=Object[V],W=s.Symbol,H=W&&W[V],J=s.TypeError,K=s.QObject,Z=j.f,X=x.f,Q=E.f,Y=S.f,ee=o([].push),te=F("symbols"),re=F("op-symbols"),ne=F("wks"),se=!K||!K[V]||!K[V].findChild,ie=a&&u((function(){return 7!=_(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var n=Z(G,t);n&&delete G[t],X(e,t,r),n&&e!==G&&X(G,t,n)}:X,oe=function(e,t){var r=te[e]=_(H);return z(r,{type:B,tag:e,description:t}),a||(r.description=t),r},ce=function(e,t,r){e===G&&ce(re,t,r),h(e);var n=f(t);return h(r),p(te,n)?(r.enumerable?(p(e,L)&&e[L][n]&&(e[L][n]=!1),r=_(r,{enumerable:g(0,!1)})):(p(e,L)||X(e,L,g(1,{})),e[L][n]=!0),ie(e,n,r)):X(e,n,r)},ae=function(e,t){h(e);var r=d(t),n=b(r).concat(me(r));return D(n,(function(t){a&&!i(le,r,t)||ce(e,t,r[t])})),e},le=function(e){var t=f(e),r=i(Y,this,t);return!(this===G&&p(te,t)&&!p(re,t))&&(!(r||!p(this,t)||!p(te,t)||p(this,L)&&this[L][t])||r)},ue=function(e,t){var r=d(e),n=f(t);if(r!==G||!p(te,n)||p(re,n)){var s=Z(r,n);return!s||!p(te,n)||p(r,L)&&r[L][n]||(s.enumerable=!0),s}},pe=function(e){var t=Q(d(e)),r=[];return D(t,(function(e){p(te,e)||p(k,e)||ee(r,e)})),r},me=function(e){var t=e===G,r=Q(t?re:d(e)),n=[];return D(r,(function(e){!p(te,e)||t&&!p(G,e)||ee(n,te[e])})),n};l||(P(H=(W=function(){if(m(H,this))throw J("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=M(e),r=function(e){this===G&&i(r,re,e),p(this,L)&&p(this[L],t)&&(this[L][t]=!1),ie(this,t,g(1,e))};return a&&se&&ie(G,t,{configurable:!0,set:r}),oe(t,e)})[V],"toString",(function(){return U(this).tag})),P(W,"withoutSetter",(function(e){return oe(M(e),e)})),S.f=le,x.f=ce,O.f=ae,j.f=ue,v.f=E.f=pe,w.f=me,I.f=function(e){return oe(R(e),e)},a&&(A(H,"description",{configurable:!0,get:function(){return U(this).description}}),c||P(G,"propertyIsEnumerable",le,{unsafe:!0}))),n({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:W}),D(b(ne),(function(e){C(e)})),n({target:B,stat:!0,forced:!l},{useSetter:function(){se=!0},useSimple:function(){se=!1}}),n({target:"Object",stat:!0,forced:!l,sham:!a},{create:function(e,t){return void 0===t?_(e):ae(_(e),t)},defineProperty:ce,defineProperties:ae,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),T(),N(W,B),k[L]=!0},492:()=>{},9148:(e,t,r)=>{var n=r(3085),s=r(150),i=r(4500),o=r(4845),c=r(8717),a=r(31),l=c("string-to-symbol-registry"),u=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!a},{for:function(e){var t=o(e);if(i(l,t))return l[t];var r=s("Symbol")(t);return l[t]=r,u[r]=t,r}})},6681:(e,t,r)=>{r(8332)("hasInstance")},9594:(e,t,r)=>{r(8332)("isConcatSpreadable")},3665:(e,t,r)=>{r(8332)("iterator")},6187:(e,t,r)=>{r(9351),r(9148),r(5991),r(9704),r(7895)},5991:(e,t,r)=>{var n=r(3085),s=r(4500),i=r(3236),o=r(9288),c=r(8717),a=r(31),l=c("symbol-to-string-registry");n({target:"Symbol",stat:!0,forced:!a},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(s(l,e))return l[e]}})},1250:(e,t,r)=>{r(8332)("matchAll")},9017:(e,t,r)=>{r(8332)("match")},9786:(e,t,r)=>{r(8332)("replace")},503:(e,t,r)=>{r(8332)("search")},6565:(e,t,r)=>{r(8332)("species")},9322:(e,t,r)=>{r(8332)("split")},3610:(e,t,r)=>{var n=r(8332),s=r(3407);n("toPrimitive"),s()},6886:(e,t,r)=>{var n=r(150),s=r(8332),i=r(1284);s("toStringTag"),i(n("Symbol"),"Symbol")},3514:(e,t,r)=>{r(8332)("unscopables")},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},2725:(e,t,r)=>{var n=r(3085),s=r(150),i=r(4120),o=s("Symbol"),c=o.keyFor,a=i(o.prototype.valueOf);n({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==c(a(e))}catch(e){return!1}}})},1806:(e,t,r)=>{for(var n=r(3085),s=r(8717),i=r(150),o=r(4120),c=r(3236),a=r(8182),l=i("Symbol"),u=l.isWellKnown,p=i("Object","getOwnPropertyNames"),m=o(l.prototype.valueOf),h=s("wks"),d=0,f=p(l),y=f.length;d<y;d++)try{var g=f[d];c(l[g])&&a(g)}catch(e){}n({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(u&&u(e))return!0;try{for(var t=m(e),r=0,n=p(h),s=n.length;r<s;r++)if(h[n[r]]==t)return!0}catch(e){}return!1}})},6658:(e,t,r)=>{r(8332)("matcher")},4212:(e,t,r)=>{r(8332)("metadataKey")},1875:(e,t,r)=>{r(8332)("metadata")},8658:(e,t,r)=>{r(8332)("observable")},4592:(e,t,r)=>{r(8332)("patternMatch")},6680:(e,t,r)=>{r(8332)("replaceAll")},162:(e,t,r)=>{r(8939);var n=r(7365),s=r(8576),i=r(4696),o=r(8711),c=r(7771),a=r(8182)("toStringTag");for(var l in n){var u=s[l],p=u&&u.prototype;p&&i(p)!==a&&o(p,a,l),c[l]=c.Array}},6174:(e,t,r)=>{var n=r(2604);e.exports=n},7820:(e,t,r)=>{var n=r(3512);e.exports=n},2:(e,t,r)=>{var n=r(2921);e.exports=n},5636:(e,t,r)=>{var n=r(8651);e.exports=n},2285:(e,t,r)=>{var n=r(5008);r(162),e.exports=n},8535:(e,t,r)=>{var n=r(994);r(162),e.exports=n},6042:(e,t,r)=>{var n=r(290);e.exports=n},9515:(e,t,r)=>{var n=r(8761)(r(7772),"DataView");e.exports=n},9612:(e,t,r)=>{var n=r(2118),s=r(6909),i=r(8138),o=r(4174),c=r(7942);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},235:(e,t,r)=>{var n=r(3945),s=r(1846),i=r(8028),o=r(2344),c=r(4769);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},326:(e,t,r)=>{var n=r(8761)(r(7772),"Map");e.exports=n},6738:(e,t,r)=>{var n=r(2411),s=r(6417),i=r(6928),o=r(9493),c=r(4150);function a(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}a.prototype.clear=n,a.prototype.delete=s,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},1985:(e,t,r)=>{var n=r(8761)(r(7772),"Promise");e.exports=n},2143:(e,t,r)=>{var n=r(8761)(r(7772),"Set");e.exports=n},5386:(e,t,r)=>{var n=r(6738),s=r(2842),i=r(2482);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6571:(e,t,r)=>{var n=r(235),s=r(5243),i=r(2858),o=r(4417),c=r(8605),a=r(1418);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=c,l.prototype.set=a,e.exports=l},857:(e,t,r)=>{var n=r(7772).Symbol;e.exports=n},9162:(e,t,r)=>{var n=r(7772).Uint8Array;e.exports=n},3215:(e,t,r)=>{var n=r(8761)(r(7772),"WeakMap");e.exports=n},7552:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},1634:(e,t,r)=>{var n=r(6473),s=r(9631),i=r(6152),o=r(3226),c=r(9045),a=r(7598),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&s(e),p=!r&&!u&&o(e),m=!r&&!u&&!p&&a(e),h=r||u||p||m,d=h?n(e.length,String):[],f=d.length;for(var y in e)!t&&!l.call(e,y)||h&&("length"==y||p&&("offset"==y||"parent"==y)||m&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||c(y,f))||d.push(y);return d}},5067:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},7064:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},2218:(e,t,r)=>{var n=r(1225);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},1897:(e,t,r)=>{var n=r(5067),s=r(6152);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},3366:(e,t,r)=>{var n=r(857),s=r(2107),i=r(7157),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},5183:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},8746:(e,t,r)=>{var n=r(1952),s=r(5125);e.exports=function e(t,r,i,o,c){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,c))}},1952:(e,t,r)=>{var n=r(6571),s=r(4871),i=r(1491),o=r(7416),c=r(940),a=r(6152),l=r(3226),u=r(7598),p="[object Arguments]",m="[object Array]",h="[object Object]",d=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,f,y,g){var _=a(e),b=a(t),v=_?m:c(e),E=b?m:c(t),w=(v=v==p?h:v)==h,j=(E=E==p?h:E)==h,x=v==E;if(x&&l(e)){if(!l(t))return!1;_=!0,w=!1}if(x&&!w)return g||(g=new n),_||u(e)?s(e,t,r,f,y,g):i(e,t,v,r,f,y,g);if(!(1&r)){var O=w&&d.call(e,"__wrapped__"),S=j&&d.call(t,"__wrapped__");if(O||S){var P=O?e.value():e,A=S?t.value():t;return g||(g=new n),y(P,A,r,f,g)}}return!!x&&(g||(g=new n),o(e,t,r,f,y,g))}},6840:(e,t,r)=>{var n=r(1049),s=r(7394),i=r(9259),o=r(7035),c=/^\[object .+?Constructor\]$/,a=Function.prototype,l=Object.prototype,u=a.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?m:c).test(o(e))}},5522:(e,t,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,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},6411:(e,t,r)=>{var n=r(6001),s=r(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6473:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,r)=>{var n=r(7772)["__core-js_shared__"];e.exports=n},4871:(e,t,r)=>{var n=r(5386),s=r(7064),i=r(9950);e.exports=function(e,t,r,o,c,a){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=a.get(e),h=a.get(t);if(m&&h)return m==t&&h==e;var d=-1,f=!0,y=2&r?new n:void 0;for(a.set(e,t),a.set(t,e);++d<u;){var g=e[d],_=t[d];if(o)var b=l?o(_,g,d,t,e,a):o(g,_,d,e,t,a);if(void 0!==b){if(b)continue;f=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||c(g,e,r,o,a)))return y.push(t)}))){f=!1;break}}else if(g!==_&&!c(g,_,r,o,a)){f=!1;break}}return a.delete(e),a.delete(t),f}},1491:(e,t,r)=>{var n=r(857),s=r(9162),i=r(1225),o=r(4871),c=r(5179),a=r(4207),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,m){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var h=c;case"[object Set]":var d=1&n;if(h||(h=a),e.size!=t.size&&!d)return!1;var f=m.get(e);if(f)return f==t;n|=2,m.set(e,t);var y=o(h(e),h(t),n,l,p,m);return m.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},7416:(e,t,r)=>{var n=r(3483),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!a)return!1;for(var p=u;p--;){var m=l[p];if(!(a?m in t:s.call(t,m)))return!1}var h=c.get(e),d=c.get(t);if(h&&d)return h==t&&d==e;var f=!0;c.set(e,t),c.set(t,e);for(var y=a;++p<u;){var g=e[m=l[p]],_=t[m];if(i)var b=a?i(_,g,m,t,e,c):i(g,_,m,e,t,c);if(!(void 0===b?g===_||o(g,_,r,i,c):b)){f=!1;break}y||(y="constructor"==m)}if(f&&!y){var v=e.constructor,E=t.constructor;v==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E||(f=!1)}return c.delete(e),c.delete(t),f}},1242:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},3483:(e,t,r)=>{var n=r(1897),s=r(633),i=r(249);e.exports=function(e){return n(e,i,s)}},7937:(e,t,r)=>{var n=r(8304);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},8761:(e,t,r)=>{var n=r(6840),s=r(8109);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},2107:(e,t,r)=>{var n=r(857),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,c=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[c]=r:delete e[c]),s}},633:(e,t,r)=>{var n=r(7552),s=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=c},940:(e,t,r)=>{var n=r(9515),s=r(326),i=r(1985),o=r(2143),c=r(3215),a=r(3366),l=r(7035),u="[object Map]",p="[object Promise]",m="[object Set]",h="[object WeakMap]",d="[object DataView]",f=l(n),y=l(s),g=l(i),_=l(o),b=l(c),v=a;(n&&v(new n(new ArrayBuffer(1)))!=d||s&&v(new s)!=u||i&&v(i.resolve())!=p||o&&v(new o)!=m||c&&v(new c)!=h)&&(v=function(e){var t=a(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case f:return d;case y:return u;case g:return p;case _:return m;case b:return h}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,r)=>{var n=r(9191);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},4174:(e,t,r)=>{var n=r(9191),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},7942:(e,t,r)=>{var n=r(9191);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,r)=>{var n,s=r(4019),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,r)=>{var n=r(2218),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},8028:(e,t,r)=>{var n=r(2218);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},2344:(e,t,r)=>{var n=r(2218);e.exports=function(e){return n(this.__data__,e)>-1}},4769:(e,t,r)=>{var n=r(2218);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},2411:(e,t,r)=>{var n=r(9612),s=r(235),i=r(326);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},6417:(e,t,r)=>{var n=r(7937);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).get(e)}},9493:(e,t,r)=>{var n=r(7937);e.exports=function(e){return n(this,e).has(e)}},4150:(e,t,r)=>{var n=r(7937);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},9191:(e,t,r)=>{var n=r(8761)(Object,"create");e.exports=n},4248:(e,t,r)=>{var n=r(241)(Object.keys,Object);e.exports=n},4146:(e,t,r)=>{e=r.nmd(e);var n=r(1242),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,c=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=c},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7772:(e,t,r)=>{var n=r(1242),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5243:(e,t,r)=>{var n=r(235);e.exports=function(){this.__data__=new n,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,r)=>{var n=r(235),s=r(326),i=r(6738);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,r)=>{var n=r(5183),s=r(5125),i=Object.prototype,o=i.hasOwnProperty,c=i.propertyIsEnumerable,a=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!c.call(e,"callee")};e.exports=a},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,r)=>{var n=r(1049),s=r(1158);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},4335:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},3226:(e,t,r)=>{e=r.nmd(e);var n=r(7772),s=r(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,c=o&&o.exports===i?n.Buffer:void 0,a=(c?c.isBuffer:void 0)||s;e.exports=a},8149:(e,t,r)=>{var n=r(8746);e.exports=function(e,t){return n(e,t)}},1049:(e,t,r)=>{var n=r(3366),s=r(9259);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,r)=>{var n=r(3366),s=r(5125);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,r)=>{var n=r(3366),s=r(6152),i=r(5125);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},7598:(e,t,r)=>{var n=r(5522),s=r(7826),i=r(4146),o=i&&i.isTypedArray,c=o?s(o):n;e.exports=c},249:(e,t,r)=>{var n=r(1634),s=r(6411),i=r(7878);e.exports=function(e){return i(e)?n(e):s(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,r)=>{const n=r(1570);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,r)=>{const n=r(5877),s=r(5505),i=r(537),o=r(4335),c=r(9259),a=r(2947),l=r(3756);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(c,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new a(this)}}a.prototype.Namespace=u,e.exports=u},3853:(e,t,r)=>{const n=r(1570),s=r(1178);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,r)=>{const n=r(6420),s=r(4152),i=r(9542),o=r(3710),c=r(3312),a=r(1641),l=r(8858),u=r(3860),p=r(5202),m=r(2320),h=r(1178),d=r(3853),f=r(3026);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new c(e);if(null===e)return new s;if(Array.isArray(e))return new a(e.map(y));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=m,n.prototype.MemberElement=l,n.prototype.refract=y,h.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:c,ArrayElement:a,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:m,refract:y,ArraySlice:h,ObjectSlice:d,KeyValuePair:f}},5202:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,r)=>{const n=r(5140),s=r(3756);t.lS=n,r(3026),s.ArraySlice,s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(2947),r(8910)},1641:(e,t,r)=>{const n=r(1570),s=r(6420),i=r(1178);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}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]()}),e.exports=o},3312:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,r)=>{const n=r(8149),s=r(3026),i=r(1178);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof 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((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,r)=>{const n=r(3026),s=r(6420);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},3860:(e,t,r)=>{const n=r(1570),s=r(9259),i=r(1641),o=r(8858),c=r(3853);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new c(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},9542:(e,t,r)=>{const n=r(6420);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,r)=>{const n=r(2947);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},6591:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",c="deepProperties",a="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",g="initializers",_="methods",b="composers",v="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=w.bind(0,(function(e,t){if(t)for(var r=E(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function x(e){return"function"==typeof e}function O(e){return e&&"object"==typeof e||x(e)}function S(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!S(n))return n;for(var s,i,o=E(n),c=0;c<o.length;)s=o[c++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(S(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function A(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return x(e)&&r.indexOf(e)===t}))).length?r:t}function F(e,t){function n(r,n){O(t[r])&&(O(e[r])||(e[r]={}),(n||j)(e[r],t[r]))}function s(n){(r=A(e[n],t[n]))&&(e[n]=r)}return t&&O(t=t[v]||t)&&(n(_),n(o),n(c,P),n(a),n(l),n(u,P),n(p),n(m),n(h,P),s(g),s(b)),e}function $(){return function(e){return r=function e(r){var n,s,i=e[v]||{},l={__proto__:i[_]},u=i[g],p=Array.prototype.slice.apply(arguments),m=i[c];if(m&&P(l,m),(m=i[o])&&j(l,m),(m=i[a])&&Object.defineProperties(l,m),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)x(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&P(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=x(r[v])?r[v]:$,j(r[v]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(F,{}))}function k(e){return x(e)&&x(e[v])}var M={};function R(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}M[_]=R(_,j),M[o]=M.props=R(o,j),M[g]=M.init=R(g,A),M[b]=R(b,A),M[c]=M[d]=R(c,P),M[l]=M.statics=R(l,j),M[u]=M[f]=R(u,P),M[m]=M.conf=R(m,j),M[h]=M[y]=R(h,P),M[a]=R(a,j),M[p]=R(p,j),n=M[v]=j((function(){for(var e,E,w=0,x=[],S=arguments,F=this;w<S.length;)O(e=S[w++])&&x.push(k(e)?e:((s={})[_]=(E=e)[_]||t,n=E.props,s[o]=O((r=E[o])||n)?j({},n,r):t,s[g]=A(E.init,E[g]),s[b]=A(E[b]),n=E[d],s[c]=O((r=E[c])||n)?P({},n,r):t,s[a]=E[a],n=E.statics,s[l]=O((r=E[l])||n)?j({},n,r):t,n=E[f],s[u]=O((r=E[u])||n)?P({},n,r):t,r=E[p],s[p]=O((n=E.name&&{name:{value:E.name}})||r)?j({},r,n):t,n=E.conf,s[m]=O((r=E[m])||n)?j({},n,r):t,n=E[y],s[h]=O((r=E[h])||n)?P({},n,r):t,s));if(e=$.apply(F||i,x),F&&x.unshift(F),Array.isArray(S=e[v][b]))for(w=0;w<S.length;)e=k(F=S[w++]({stamp:e,composables:x}))?F:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[l]=M,i=$(s),n[v]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},9794:(e,t,r)=>{var n=void 0!==n?n:{},s=function(){var t,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 t||(n=Object.assign({},n,o),t=new Promise((t=>{var o,c={};for(o in n)n.hasOwnProperty(o)&&(c[o]=n[o]);var a,l,u,p,m=[],h="./this.program",d=function(e,t){throw t};u="object"==typeof window,p="function"==typeof importScripts,a="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,l=!u&&!a&&!p;var f,y,g,_,b,v="";a?(v=p?r(6287).dirname(v)+"/":"//",f=function(e,t){return _||(_=r(5530)),b||(b=r(6287)),e=b.normalize(e),_.readFileSync(e,t?null:"utf8")},g=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),R(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),e.exports=n,d=function(e){process.exit(e)},n.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(f=function(e){return read(e)}),g=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(R("object"==typeof(t=read(e,"binary"))),t)},"undefined"!=typeof scriptArgs?m=scriptArgs:void 0!==arguments&&(m=arguments),"function"==typeof quit&&(d=function(e){quit(e)}),"undefined"!=typeof print&&("undefined"==typeof console&&(console={}),console.log=print,console.warn=console.error="undefined"!=typeof printErr?printErr:print)):(u||p)&&(p?v=self.location.href:void 0!==s&&s.currentScript&&(v=s.currentScript.src),v=0!==v.indexOf("blob:")?v.substr(0,v.lastIndexOf("/")+1):"",f=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},p&&(g=function(e){var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),y=function(e,t,r){var n=new XMLHttpRequest;n.open("GET",e,!0),n.responseType="arraybuffer",n.onload=function(){200==n.status||0==n.status&&n.response?t(n.response):r()},n.onerror=r,n.send(null)}),n.print||console.log.bind(console);var E=n.printErr||console.warn.bind(console);for(o in c)c.hasOwnProperty(o)&&(n[o]=c[o]);c=null,n.arguments&&(m=n.arguments),n.thisProgram&&(h=n.thisProgram),n.quit&&(d=n.quit);var w,j=16,x=[];function O(e,t){if(!w){w=new WeakMap;for(var r=0;r<Z.length;r++){var n=Z.get(r);n&&w.set(n,r)}}if(w.has(e))return w.get(e);var s=function(){if(x.length)return x.pop();try{Z.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return Z.length-1}();try{Z.set(s,e)}catch(r){if(!(r instanceof TypeError))throw r;var i=function(e,t){if("function"==typeof WebAssembly.Function){for(var r={i:"i32",j:"i64",f:"f32",d:"f64"},n={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},s=1;s<t.length;++s)n.parameters.push(r[t[s]]);return new WebAssembly.Function(n,e)}var i=[1,0,1,96],o=t.slice(0,1),c=t.slice(1),a={i:127,j:126,f:125,d:124};for(i.push(c.length),s=0;s<c.length;++s)i.push(a[c[s]]);"v"==o?i.push(0):i=i.concat([1,a[o]]),i[1]=i.length-2;var l=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])),u=new WebAssembly.Module(l);return new WebAssembly.Instance(u,{e:{f:e}}).exports.f}(e,t);Z.set(s,i)}return w.set(e,s),s}var S,P=n.dynamicLibraries||[];n.wasmBinary&&(S=n.wasmBinary);var A,F=n.noExitRuntime||!0;function $(e,t,r,n){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":C[e>>0]=t;break;case"i16":N[e>>1]=t;break;case"i32":q[e>>2]=t;break;case"i64":ue=[t>>>0,(le=t,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[e>>2]=ue[0],q[e+4>>2]=ue[1];break;case"float":D[e>>2]=t;break;case"double":L[e>>3]=t;break;default:ce("invalid type for setValue: "+r)}}function k(e,t,r){switch("*"===(t=t||"i8").charAt(t.length-1)&&(t="i32"),t){case"i1":case"i8":return C[e>>0];case"i16":return N[e>>1];case"i32":case"i64":return q[e>>2];case"float":return D[e>>2];case"double":return L[e>>3];default:ce("invalid type for getValue: "+t)}return null}"object"!=typeof WebAssembly&&ce("no native wasm support detected");var M=!1;function R(e,t){e||ce("Assertion failed: "+t)}var I,C,T,N,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var n=t+r,s=t;e[s]&&!(s>=n);)++s;if(s-t>16&&e.subarray&&B)return B.decode(e.subarray(t,s));for(var i="";t<s;){var o=e[t++];if(128&o){var c=63&e[t++];if(192!=(224&o)){var a=63&e[t++];if((o=224==(240&o)?(15&o)<<12|c<<6|a:(7&o)<<18|c<<12|a<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|c)}else i+=String.fromCharCode(o)}return i}function z(e,t){return e?V(T,e,t):""}function U(e,t,r,n){if(!(n>0))return 0;for(var s=r,i=r+n-1,o=0;o<e.length;++o){var c=e.charCodeAt(o);if(c>=55296&&c<=57343&&(c=65536+((1023&c)<<10)|1023&e.charCodeAt(++o)),c<=127){if(r>=i)break;t[r++]=c}else if(c<=2047){if(r+1>=i)break;t[r++]=192|c>>6,t[r++]=128|63&c}else if(c<=65535){if(r+2>=i)break;t[r++]=224|c>>12,t[r++]=128|c>>6&63,t[r++]=128|63&c}else{if(r+3>=i)break;t[r++]=240|c>>18,t[r++]=128|c>>12&63,t[r++]=128|c>>6&63,t[r++]=128|63&c}}return t[r]=0,r-s}function G(e,t,r){return U(e,T,t,r)}function W(e){for(var t=0,r=0;r<e.length;++r){var n=e.charCodeAt(r);n>=55296&&n<=57343&&(n=65536+((1023&n)<<10)|1023&e.charCodeAt(++r)),n<=127?++t:t+=n<=2047?2:n<=65535?3:4}return t}function H(e){var t=W(e)+1,r=We(t);return U(e,C,r,t),r}function J(e){I=e,n.HEAP8=C=new Int8Array(e),n.HEAP16=N=new Int16Array(e),n.HEAP32=q=new Int32Array(e),n.HEAPU8=T=new Uint8Array(e),n.HEAPU16=new Uint16Array(e),n.HEAPU32=new Uint32Array(e),n.HEAPF32=D=new Float32Array(e),n.HEAPF64=L=new Float64Array(e)}var K=n.INITIAL_MEMORY||33554432;(A=n.wasmMemory?n.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(I=A.buffer),K=I.byteLength,J(I);var Z=new WebAssembly.Table({initial:20,element:"anyfunc"}),X=[],Q=[],Y=[],ee=[],te=!1,re=0,ne=null,se=null;function ie(e){re++,n.monitorRunDependencies&&n.monitorRunDependencies(re)}function oe(e){if(re--,n.monitorRunDependencies&&n.monitorRunDependencies(re),0==re&&(null!==ne&&(clearInterval(ne),ne=null),se)){var t=se;se=null,t()}}function ce(e){throw n.onAbort&&n.onAbort(e),E(e+=""),M=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}n.preloadedImages={},n.preloadedAudios={},n.preloadedWasm={};var ae,le,ue;function pe(e){return e.startsWith("data:application/octet-stream;base64,")}function me(e){return e.startsWith("file://")}function he(e){try{if(e==ae&&S)return new Uint8Array(S);if(g)return g(e);throw"both async and sync fetching of the wasm failed"}catch(e){ce(e)}}pe(ae="tree-sitter.wasm")||(ae=function(e){return n.locateFile?n.locateFile(e,v):v+e}(ae));var de={},fe={get:function(e,t){return de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),de[t]}};function ye(e){for(;e.length>0;){var t=e.shift();if("function"!=typeof t){var r=t.func;"number"==typeof r?void 0===t.arg?Z.get(r)():Z.get(r)(t.arg):r(void 0===t.arg?null:t.arg)}else t(n)}}function ge(e){var t=0;function r(){for(var r=0,n=1;;){var s=e[t++];if(r+=(127&s)*n,n*=128,!(128&s))break}return r}if(e instanceof WebAssembly.Module){var n=WebAssembly.Module.customSections(e,"dylink");R(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}else R(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0],"need to see wasm magic number"),R(0===e[8],"need the dylink section to be first"),t=9,r(),R(6===e[t]),R(e[++t]==="d".charCodeAt(0)),R(e[++t]==="y".charCodeAt(0)),R(e[++t]==="l".charCodeAt(0)),R(e[++t]==="i".charCodeAt(0)),R(e[++t]==="n".charCodeAt(0)),R(e[++t]==="k".charCodeAt(0)),t++;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 c=r(),a=e.subarray(t,t+c);t+=c;var l=V(a,0);s.neededDynlibs.push(l)}return s}var _e=0;function be(){return F||_e>0}function ve(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore"].includes(e)?e:"_"+e}function Ee(e,t){for(var r in e)if(e.hasOwnProperty(r)){Be.hasOwnProperty(r)||(Be[r]=e[r]);var s=ve(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var we={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var je=5251072;function xe(e){return["__cpp_exception","__wasm_apply_data_relocs","__dso_handle","__set_stack_limits"].includes(e)}function Oe(e,t){var r={};for(var n in e){var s=e[n];"object"==typeof s&&(s=s.value),"number"==typeof s&&(s+=t),r[n]=s}return function(e){for(var t in e)if(!xe(t)){var r=!1,n=e[t];t.startsWith("orig$")&&(t=t.split("$")[1],r=!0),de[t]||(de[t]=new WebAssembly.Global({value:"i32",mutable:!0})),(r||0==de[t].value)&&("function"==typeof n?de[t].value=O(n):"number"==typeof n?de[t].value=n:E("unhandled export type for `"+t+"`: "+typeof n))}}(r),r}function Se(e,t){var r,s;return t&&(r=Be["orig$"+e]),r||(r=Be[e]),r||(r=n[ve(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=Ue();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var s=n["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(s,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ge(e),t!==t+0&&"longjmp"!==t)throw t;He(1,0)}}),r}function Pe(e,t){var r=ge(e);function n(){var n=Math.pow(2,r.memoryAlign);n=Math.max(n,j);var s,i,o,c=(s=function(e){if(te)return Ve(e);var t=je,r=t+e+15&-16;return je=r,de.__heap_base.value=r,t}(r.memorySize+n),(i=n)||(i=j),Math.ceil(s/i)*i),a=Z.length;Z.grow(r.tableSize);for(var l=c;l<c+r.memorySize;l++)C[l]=0;for(l=a;l<a+r.tableSize;l++)Z.set(l,null);var u=new Proxy({},{get:function(e,t){switch(t){case"__memory_base":return c;case"__table_base":return a}return t in Be?Be[t]:(t in e||(e[t]=function(){return r||(r=function(e){var t=Se(e,!1);return t||(t=o[e]),t}(t)),r.apply(null,arguments)}),e[t]);var r}}),p={"GOT.mem":new Proxy({},fe),"GOT.func":new Proxy({},fe),env:u,wasi_snapshot_preview1:u};function m(e){for(var n=0;n<r.tableSize;n++){var s=Z.get(a+n);s&&w.set(s,a+n)}o=Oe(e.exports,c),t.allowUndefined||Fe();var i=o.__wasm_call_ctors;return i||(i=o.__post_instantiate),i&&(te?i():Q.push(i)),o}if(t.loadAsync){if(e instanceof WebAssembly.Module){var h=new WebAssembly.Instance(e,p);return Promise.resolve(m(h))}return WebAssembly.instantiate(e,p).then((function(e){return m(e.instance)}))}var d=e instanceof WebAssembly.Module?e:new WebAssembly.Module(e);return m(h=new WebAssembly.Instance(d,p))}return t.loadAsync?r.neededDynlibs.reduce((function(e,r){return e.then((function(){return Ae(r,t)}))}),Promise.resolve()).then((function(){return n()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),n())}function Ae(e,t){"__main__"!=e||we.loadedLibNames[e]||(we.loadedLibs[-1]={refcount:1/0,name:"__main__",module:n.asm,global:!0},we.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,s=we.loadedLibNames[e];if(s)return r=we.loadedLibs[s],t.global&&!r.global&&(r.global=!0,"loading"!==r.module&&Ee(r.module)),t.nodelete&&r.refcount!==1/0&&(r.refcount=1/0),r.refcount++,t.loadAsync?Promise.resolve(s):s;function i(e){if(t.fs){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}return t.loadAsync?(n=e,fetch(n,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+n+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):g(e);var n}function o(){if(void 0!==n.preloadedWasm&&void 0!==n.preloadedWasm[e]){var r=n.preloadedWasm[e];return t.loadAsync?Promise.resolve(r):r}return t.loadAsync?i(e).then((function(e){return Pe(e,t)})):Pe(i(e),t)}function c(e){r.global&&Ee(e),r.module=e}return s=we.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},we.loadedLibNames[e]=s,we.loadedLibs[s]=r,t.loadAsync?o().then((function(e){return c(e),s})):(c(o()),s)}function Fe(){for(var e in de)if(0==de[e].value){var t=Se(e,!0);"function"==typeof t?de[e].value=O(t,t.sig):"number"==typeof t?de[e].value=t:R(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=je;var $e,ke=new WebAssembly.Global({value:"i32",mutable:!0},5251072);function Me(){ce()}n._abort=Me,Me.sig="v",$e=a?function(){var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:"undefined"!=typeof dateNow?dateNow:function(){return performance.now()};function Re(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[ze()>>2]=28,-1;r=$e()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Ie(e){try{return A.grow(e-I.byteLength+65535>>>16),J(A.buffer),1}catch(e){}}function Ce(e){Xe(e)}Re.sig="iii",Ce.sig="vi";var Te={mappings:{},DEFAULT_POLLMASK:5,umask:511,calculateAt:function(e,t,r){if("/"===t[0])return t;var n;if(-100===e)n=FS.cwd();else{var s=FS.getStream(e);if(!s)throw new FS.ErrnoError(8);n=s.path}if(0==t.length){if(!r)throw new FS.ErrnoError(44);return n}return PATH.join2(n,t)},doStat:function(e,t,r){try{var n=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}return q[r>>2]=n.dev,q[r+4>>2]=0,q[r+8>>2]=n.ino,q[r+12>>2]=n.mode,q[r+16>>2]=n.nlink,q[r+20>>2]=n.uid,q[r+24>>2]=n.gid,q[r+28>>2]=n.rdev,q[r+32>>2]=0,ue=[n.size>>>0,(le=n.size,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[r+40>>2]=ue[0],q[r+44>>2]=ue[1],q[r+48>>2]=4096,q[r+52>>2]=n.blocks,q[r+56>>2]=n.atime.getTime()/1e3|0,q[r+60>>2]=0,q[r+64>>2]=n.mtime.getTime()/1e3|0,q[r+68>>2]=0,q[r+72>>2]=n.ctime.getTime()/1e3|0,q[r+76>>2]=0,ue=[n.ino>>>0,(le=n.ino,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[r+80>>2]=ue[0],q[r+84>>2]=ue[1],0},doMsync:function(e,t,r,n,s){var i=T.slice(e,e+r);FS.msync(t,i,s,r,n)},doMkdir:function(e,t){return"/"===(e=PATH.normalize(e))[e.length-1]&&(e=e.substr(0,e.length-1)),FS.mkdir(e,t,0),0},doMknod:function(e,t,r){switch(61440&t){case 32768:case 8192:case 24576:case 4096:case 49152:break;default:return-28}return FS.mknod(e,t,r),0},doReadlink:function(e,t,r){if(r<=0)return-28;var n=FS.readlink(e),s=Math.min(r,W(n)),i=C[t+s];return G(n,t,r+1),C[t+s]=i,s},doAccess:function(e,t){if(-8&t)return-28;var r;if(!(r=FS.lookupPath(e,{follow:!0}).node))return-44;var n="";return 4&t&&(n+="r"),2&t&&(n+="w"),1&t&&(n+="x"),n&&FS.nodePermissions(r,n)?-2:0},doDup:function(e,t,r){var n=FS.getStream(r);return n&&FS.close(n),FS.open(e,t,0,r,r).fd},doReadv:function(e,t,r,n){for(var s=0,i=0;i<r;i++){var o=q[t+8*i>>2],c=q[t+(8*i+4)>>2],a=FS.read(e,C,o,c,n);if(a<0)return-1;if(s+=a,a<c)break}return s},doWritev:function(e,t,r,n){for(var s=0,i=0;i<r;i++){var o=q[t+8*i>>2],c=q[t+(8*i+4)>>2],a=FS.write(e,C,o,c,n);if(a<0)return-1;s+=a}return s},varargs:void 0,get:function(){return Te.varargs+=4,q[Te.varargs-4>>2]},getStr:function(e){return z(e)},getStreamFromFD:function(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t},get64:function(e,t){return e}};function Ne(e){try{var t=Te.getStreamFromFD(e);return FS.close(t),0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||ce(e),e.errno}}function qe(e,t,r,n){try{var s=Te.getStreamFromFD(e),i=Te.doWritev(s,t,r);return q[n>>2]=i,0}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||ce(e),e.errno}}function De(e){}Ne.sig="ii",qe.sig="iiiii",De.sig="vi";var Le,Be={__heap_base:je,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:ke,__table_base:1,abort:Me,clock_gettime:Re,emscripten_memcpy_big:function(e,t,r){T.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=T.length;if((e>>>=0)>2147483648)return!1;for(var n=1;n<=4;n*=2){var s=r*(1+.2/n);if(s=Math.min(s,e+100663296),Ie(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ce,fd_close:Ne,fd_seek:function(e,t,r,n,s){try{var i=Te.getStreamFromFD(e),o=4294967296*r+(t>>>0);return o<=-9007199254740992||o>=9007199254740992?-61:(FS.llseek(i,o,n),ue=[i.position>>>0,(le=i.position,+Math.abs(le)>=1?le>0?(0|Math.min(+Math.floor(le/4294967296),4294967295))>>>0:~~+Math.ceil((le-+(~~le>>>0))/4294967296)>>>0:0)],q[s>>2]=ue[0],q[s+4>>2]=ue[1],i.getdents&&0===o&&0===n&&(i.getdents=null),0)}catch(e){return"undefined"!=typeof FS&&e instanceof FS.ErrnoError||ce(e),e.errno}},fd_write:qe,memory:A,setTempRet0:De,tree_sitter_log_callback:function(e,t){if(mt){const r=z(t);mt(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=pt(t,{row:r,column:n});"string"==typeof i?($(s,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var n=(r-=2)<2*e.length?r/2:e.length,s=0;s<n;++s){var i=e.charCodeAt(s);N[t>>1]=i,t+=2}N[t>>1]=0}(i,e,10240)):$(s,0,"i32")}},Ve=(function(){var e={env:Be,wasi_snapshot_preview1:Be,"GOT.mem":new Proxy(Be,fe),"GOT.func":new Proxy(Be,fe)};function t(e,t){var r=e.exports;r=Oe(r,1024),n.asm=r;var s,i=ge(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),Ee(r),s=n.asm.__wasm_call_ctors,Q.unshift(s),oe()}function r(e){t(e.instance,e.module)}function s(t){return function(){if(!S&&(u||p)){if("function"==typeof fetch&&!me(ae))return fetch(ae,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+ae+"'";return e.arrayBuffer()})).catch((function(){return he(ae)}));if(y)return new Promise((function(e,t){y(ae,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return he(ae)}))}().then((function(t){return WebAssembly.instantiate(t,e)})).then(t,(function(e){E("failed to asynchronously prepare wasm: "+e),ce(e)}))}if(ie(),n.instantiateWasm)try{return n.instantiateWasm(e,t)}catch(e){return E("Module.instantiateWasm callback failed with error: "+e),!1}S||"function"!=typeof WebAssembly.instantiateStreaming||pe(ae)||me(ae)||"function"!=typeof fetch?s(r):fetch(ae,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return E("wasm streaming compile failed: "+e),E("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(Ve=n._malloc=n.asm.malloc).apply(null,arguments)}),ze=(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(ze=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Ue=(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(Ue=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ge=n.stackRestore=function(){return(Ge=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},We=n.stackAlloc=function(){return(We=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},He=n._setThrew=function(){return(He=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Je(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}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.dynCall_jiji=function(){return(n.dynCall_jiji=n.asm.dynCall_jiji).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(e,t){var r;return r=1==t?We(e.length):Ve(e.length),e.subarray||e.slice?T.set(e,r):T.set(new Uint8Array(e),r),r},se=function e(){Le||Ze(),Le||(se=e)};var Ke=!1;function Ze(e){function t(){Le||(Le=!0,n.calledRun=!0,M||(te=!0,ye(Q),ye(Y),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Qe&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=We(4*(r+1));q[s>>2]=H(h);for(var i=1;i<r;i++)q[(s>>2)+i]=H(e[i-1]);q[(s>>2)+r]=0;try{Xe(t(r,s),!0)}catch(e){if(e instanceof Je)return;if("unwind"==e)return;var o=e;e&&"object"==typeof e&&e.stack&&(o=[e,e.stack]),E("exception thrown: "+o),d(1,e)}}}(e),function(){if(n.postRun)for("function"==typeof n.postRun&&(n.postRun=[n.postRun]);n.postRun.length;)e=n.postRun.shift(),ee.unshift(e);var e;ye(ee)}()))}e=e||m,re>0||!Ke&&(function(){if(P.length){if(!g)return ie(),void P.reduce((function(e,t){return e.then((function(){return Ae(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){oe(),Fe()}));P.forEach((function(e){Ae(e,{global:!0,nodelete:!0,allowUndefined:!0})})),Fe()}else Fe()}(),Ke=!0,re>0)||(function(){if(n.preRun)for("function"==typeof n.preRun&&(n.preRun=[n.preRun]);n.preRun.length;)e=n.preRun.shift(),X.unshift(e);var e;ye(X)}(),re>0||(n.setStatus?(n.setStatus("Running..."),setTimeout((function(){setTimeout((function(){n.setStatus("")}),1),t()}),1)):t()))}function Xe(e,t){t&&be()&&0===e||(be()||(n.onExit&&n.onExit(e),M=!0),d(e,new Je(e)))}if(n.run=Ze,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Qe=!0;n.noInitialRun&&(Qe=!1),Ze();const Ye=n,et={},tt=4,rt=5*tt,nt=2*tt,st=2*tt+2*nt,it={row:0,column:0},ot=/[\w-.]*/g,ct=/^_?tree_sitter_\w+/;var at,lt,ut,pt,mt;class ht{static init(){ut=Ye._ts_init(),at=k(ut,"i32"),lt=k(ut+tt,"i32")}initialize(){Ye._ts_parser_new_wasm(),this[0]=k(ut,"i32"),this[1]=k(ut+tt,"i32")}delete(){Ye._ts_parser_delete(this[0]),Ye._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==gt)throw new Error("Argument must be a Language");{t=e[0];const r=Ye._ts_language_version(t);if(r<lt||at<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${lt} through ${at}.`)}}else t=0,e=null;return this.language=e,Ye._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)pt=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");pt=e}this.logCallback?(mt=this.logCallback,Ye._ts_parser_enable_logger_wasm(this[0],1)):(mt=null,Ye._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Ye._calloc(n,st);for(let t=0;t<n;t++)Ft(e,r.includedRanges[t]),e+=st}const i=Ye._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw pt=null,mt=null,new Error("Parsing failed");const o=new dt(et,i,this.language,pt);return pt=null,mt=null,o}reset(){Ye._ts_parser_reset(this[0])}setTimeoutMicros(e){Ye._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ye._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class dt{constructor(e,t,r,n){Et(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=Ye._ts_tree_copy(this[0]);return new dt(et,e,this.language,this.textCallback)}delete(){Ye._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=ut;Pt(t,e.startPosition),Pt(t+=nt,e.oldEndPosition),Pt(t+=nt,e.newEndPosition),$(t+=nt,e.startIndex,"i32"),$(t+=tt,e.oldEndIndex,"i32"),$(t+=tt,e.newEndIndex,"i32"),t+=tt}(e),Ye._ts_tree_edit_wasm(this[0])}get rootNode(){return Ye._ts_tree_root_node_wasm(this[0]),xt(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==dt)throw new TypeError("Argument must be a Tree");Ye._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=k(ut,"i32"),r=k(ut+tt,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=$t(e),e+=st;Ye._free(r)}return n}}class ft{constructor(e,t){Et(e),this.tree=t}get typeId(){return jt(this),Ye._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return jt(this),Ye._ts_node_end_point_wasm(this.tree[0]),At(ut)}get endIndex(){return jt(this),Ye._ts_node_end_index_wasm(this.tree[0])}get text(){return bt(this.tree,this.startIndex,this.endIndex)}isNamed(){return jt(this),1===Ye._ts_node_is_named_wasm(this.tree[0])}hasError(){return jt(this),1===Ye._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return jt(this),1===Ye._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return jt(this),1===Ye._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return jt(this),Ye._ts_node_child_wasm(this.tree[0],e),xt(this.tree)}namedChild(e){return jt(this),Ye._ts_node_named_child_wasm(this.tree[0],e),xt(this.tree)}childForFieldId(e){return jt(this),Ye._ts_node_child_by_field_id_wasm(this.tree[0],e),xt(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return jt(this),Ye._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return jt(this),Ye._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){jt(this),Ye._ts_node_children_wasm(this.tree[0]);const e=k(ut,"i32"),t=k(ut+tt,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=xt(this.tree,r),r+=rt;Ye._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){jt(this),Ye._ts_node_named_children_wasm(this.tree[0]);const e=k(ut,"i32"),t=k(ut+tt,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=xt(this.tree,r),r+=rt;Ye._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=it),r||(r=it);const n=[],s=this.tree.language.types;for(let t=0,r=s.length;t<r;t++)e.includes(s[t])&&n.push(t);const i=Ye._malloc(tt*n.length);for(let e=0,t=n.length;e<t;e++)$(i+e*tt,n[e],"i32");jt(this),Ye._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=k(ut,"i32"),c=k(ut+tt,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=xt(this.tree,e),e+=rt}return Ye._free(c),Ye._free(i),a}get nextSibling(){return jt(this),Ye._ts_node_next_sibling_wasm(this.tree[0]),xt(this.tree)}get previousSibling(){return jt(this),Ye._ts_node_prev_sibling_wasm(this.tree[0]),xt(this.tree)}get nextNamedSibling(){return jt(this),Ye._ts_node_next_named_sibling_wasm(this.tree[0]),xt(this.tree)}get previousNamedSibling(){return jt(this),Ye._ts_node_prev_named_sibling_wasm(this.tree[0]),xt(this.tree)}get parent(){return jt(this),Ye._ts_node_parent_wasm(this.tree[0]),xt(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");jt(this);let r=ut+rt;return $(r,e,"i32"),$(r+tt,t,"i32"),Ye._ts_node_descendant_for_index_wasm(this.tree[0]),xt(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");jt(this);let r=ut+rt;return $(r,e,"i32"),$(r+tt,t,"i32"),Ye._ts_node_named_descendant_for_index_wasm(this.tree[0]),xt(this.tree)}descendantForPosition(e,t=e){if(!wt(e)||!wt(t))throw new Error("Arguments must be {row, column} objects");jt(this);let r=ut+rt;return Pt(r,e),Pt(r+nt,t),Ye._ts_node_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}namedDescendantForPosition(e,t=e){if(!wt(e)||!wt(t))throw new Error("Arguments must be {row, column} objects");jt(this);let r=ut+rt;return Pt(r,e),Pt(r+nt,t),Ye._ts_node_named_descendant_for_position_wasm(this.tree[0]),xt(this.tree)}walk(){return jt(this),Ye._ts_tree_cursor_new_wasm(this.tree[0]),new yt(et,this.tree)}toString(){jt(this);const e=Ye._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=T[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ye._free(e),t}}class yt{constructor(e,t){Et(e),this.tree=t,St(this)}delete(){Ot(this),Ye._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){jt(e),Ot(this,ut+rt),Ye._ts_tree_cursor_reset_wasm(this.tree[0]),St(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return Ot(this),Ye._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return Ot(this),Ye._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return Ot(this),1===Ye._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return Ot(this),1===Ye._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){Ot(this);const e=Ye._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ye._ts_tree_cursor_end_index_wasm(this.tree[0]);return bt(this.tree,e,t)}get startPosition(){return Ot(this),Ye._ts_tree_cursor_start_position_wasm(this.tree[0]),At(ut)}get endPosition(){return Ot(this),Ye._ts_tree_cursor_end_position_wasm(this.tree[0]),At(ut)}get startIndex(){return Ot(this),Ye._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return Ot(this),Ye._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return Ot(this),Ye._ts_tree_cursor_current_node_wasm(this.tree[0]),xt(this.tree)}currentFieldId(){return Ot(this),Ye._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){Ot(this);const e=Ye._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return St(this),1===e}gotoNextSibling(){Ot(this);const e=Ye._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return St(this),1===e}gotoParent(){Ot(this);const e=Ye._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return St(this),1===e}}class gt{constructor(e,t){Et(e),this[0]=t,this.types=new Array(Ye._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ye._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=z(Ye._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ye._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ye._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?z(t):null}}get version(){return Ye._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=W(e),n=Ye._malloc(r+1);G(e,n,r+1);const s=Ye._ts_language_symbol_for_name(this[0],n,r,t);return Ye._free(n),s||null}get nodeTypeCount(){return Ye._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ye._ts_language_symbol_name(this[0],e);return t?z(t):null}nodeTypeIsNamed(e){return!!Ye._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ye._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=W(e),r=Ye._malloc(t+1);G(e,r,t+1);const n=Ye._ts_query_new(this[0],r,t,ut,ut+tt);if(!n){const t=k(ut+tt,"i32"),n=z(r,k(ut,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(ot)[0];switch(t){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,Ye._free(r),i}const s=Ye._ts_query_string_count(n),i=Ye._ts_query_capture_count(n),o=Ye._ts_query_pattern_count(n),c=new Array(i),a=new Array(s);for(let e=0;e<i;e++){const t=Ye._ts_query_capture_name_for_id(n,e,ut),r=k(ut,"i32");c[e]=z(t,r)}for(let e=0;e<s;e++){const t=Ye._ts_query_string_value_for_id(n,e,ut),r=k(ut,"i32");a[e]=z(t,r)}const l=new Array(o),u=new Array(o),p=new Array(o),m=new Array(o),h=new Array(o);for(let e=0;e<o;e++){const t=Ye._ts_query_predicates_for_pattern(n,e,ut),r=k(ut,"i32");m[e]=[],h[e]=[];const s=[];let i=t;for(let t=0;t<r;t++){const t=k(i,"i32"),r=k(i+=tt,"i32");if(i+=tt,1===t)s.push({type:"capture",name:c[r]});else if(2===t)s.push({type:"string",value:a[r]});else if(s.length>0){if("string"!==s[0].type)throw new Error("Predicates must begin with a literal value");const t=s[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==s.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(s.length-1));if("capture"!==s[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${s[1].value}"`);if("capture"===s[2].type){const t=s[1].name,n=s[2].name;h[e].push((function(e){let s,i;for(const r of e)r.name===t&&(s=r.node),r.name===n&&(i=r.node);return void 0===s||void 0===i||s.text===i.text===r}))}else{const t=s[1].name,n=s[2].value;h[e].push((function(e){for(const s of e)if(s.name===t)return s.node.text===n===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==s.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${s.length-1}.`);if("capture"!==s[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${s[1].value}".`);if("string"!==s[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${s[2].value}.`);const n=s[1].name,i=new RegExp(s[2].value);h[e].push((function(e){for(const t of e)if(t.name===n)return i.test(t.node.text)===r;return!0}));break;case"set!":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][s[1].value]=s[2]?s[2].value:null;break;case"is?":case"is-not?":if(s.length<2||s.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${s.length-1}.`);if(s.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?u:p;o[e]||(o[e]={}),o[e][s[1].value]=s[2]?s[2].value:null;break;default:m[e].push({operator:t,operands:s.slice(1)})}s.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(p[e])}return Ye._free(r),new _t(et,n,c,h,m,Object.freeze(l),Object.freeze(u),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const n=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(5530);t=Promise.resolve(e.readFileSync(n))}else t=fetch(n).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const n="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>n(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>ct.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const n=e[r]();return new gt(et,n)}))}}class _t{constructor(e,t,r,n,s,i,o,c){Et(e),this[0]=t,this.captureNames=r,this.textPredicates=n,this.predicates=s,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=c,this.exceededMatchLimit=!1}delete(){Ye._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=it),r||(r=it),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");jt(e),Ye._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=k(ut,"i32"),o=k(ut+tt,"i32"),c=k(ut+2*tt,"i32"),a=new Array(i);this.exceededMatchLimit=!!c;let l=0,u=o;for(let t=0;t<i;t++){const r=k(u,"i32"),n=k(u+=tt,"i32");u+=tt;const s=new Array(n);if(u=vt(this,e.tree,u,s),this.textPredicates[r].every((e=>e(s)))){a[l++]={pattern:r,captures:s};const e=this.setProperties[r];e&&(a[t].setProperties=e);const n=this.assertedProperties[r];n&&(a[t].assertedProperties=n);const i=this.refutedProperties[r];i&&(a[t].refutedProperties=i)}}return a.length=l,Ye._free(o),a}captures(e,t,r,n){t||(t=it),r||(r=it),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");jt(e),Ye._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=k(ut,"i32"),o=k(ut+tt,"i32"),c=k(ut+2*tt,"i32"),a=[];this.exceededMatchLimit=!!c;const l=[];let u=o;for(let t=0;t<i;t++){const t=k(u,"i32"),r=k(u+=tt,"i32"),n=k(u+=tt,"i32");if(u+=tt,l.length=r,u=vt(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[n],r=this.setProperties[t];r&&(e.setProperties=r);const s=this.assertedProperties[t];s&&(e.assertedProperties=s);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),a.push(e)}}return Ye._free(o),a}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function bt(e,t,r){const n=r-t;let s=e.textCallback(t,null,r);for(t+=s.length;t<r;){const n=e.textCallback(t,null,r);if(!(n&&n.length>0))break;t+=n.length,s+=n}return t>r&&(s=s.slice(0,n)),s}function vt(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=k(r,"i32"),o=xt(t,r+=tt);r+=rt,n[s]={name:e.captureNames[i],node:o}}return r}function Et(e){if(e!==et)throw new Error("Illegal constructor")}function wt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function jt(e){let t=ut;$(t,e.id,"i32"),$(t+=tt,e.startIndex,"i32"),$(t+=tt,e.startPosition.row,"i32"),$(t+=tt,e.startPosition.column,"i32"),$(t+=tt,e[0],"i32")}function xt(e,t=ut){const r=k(t,"i32");if(0===r)return null;const n=k(t+=tt,"i32"),s=k(t+=tt,"i32"),i=k(t+=tt,"i32"),o=k(t+=tt,"i32"),c=new ft(et,e);return c.id=r,c.startIndex=n,c.startPosition={row:s,column:i},c[0]=o,c}function Ot(e,t=ut){$(t+0*tt,e[0],"i32"),$(t+1*tt,e[1],"i32"),$(t+2*tt,e[2],"i32")}function St(e){e[0]=k(ut+0*tt,"i32"),e[1]=k(ut+1*tt,"i32"),e[2]=k(ut+2*tt,"i32")}function Pt(e,t){$(e,t.row,"i32"),$(e+tt,t.column,"i32")}function At(e){return{row:k(e,"i32"),column:k(e+tt,"i32")}}function Ft(e,t){Pt(e,t.startPosition),Pt(e+=nt,t.endPosition),$(e+=nt,t.startIndex,"i32"),$(e+=tt,t.endIndex,"i32"),e+=tt}function $t(e){const t={};return t.startPosition=At(e),e+=nt,t.endPosition=At(e),e+=nt,t.startIndex=k(e,"i32"),e+=tt,t.endIndex=k(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ht.prototype))Object.defineProperty(i.prototype,e,{value:ht.prototype[e],enumerable:!1,writable:!1});i.Language=gt,n.onRuntimeInitialized=()=>{ht.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{},6405:(e,t,r)=>{e.exports=r(5159)},9800:(e,t,r)=>{e.exports=r(8026)},4463:(e,t,r)=>{e.exports=r(1903)},5575:(e,t,r)=>{e.exports=r(902)},7829:(e,t,r)=>{e.exports=r(9256)},2876:(e,t,r)=>{e.exports=r(5659)},2903:(e,t,r)=>{e.exports=r(3698)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;r.g.importScripts&&(e=r.g.location+"");var t=r.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var s=n.length-1;s>-1&&!e;)e=n[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var n={};return(()=>{"use strict";r.r(n),r.d(n,{detect:()=>sy,detectionRegExp:()=>ny,mediaTypes:()=>ry,namespace:()=>oy,parse:()=>iy});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>Yr,includesClasses:()=>tn,includesSymbols:()=>en,isAnnotationElement:()=>Jr,isArrayElement:()=>Ur,isBooleanElement:()=>Vr,isCommentElement:()=>Kr,isElement:()=>qr,isLinkElement:()=>Wr,isMemberElement:()=>Gr,isNullElement:()=>Br,isNumberElement:()=>Lr,isObjectElement:()=>zr,isParseResultElement:()=>Zr,isPrimitiveElement:()=>Qr,isRefElement:()=>Hr,isSourceMapElement:()=>Xr,isStringElement:()=>Dr});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Fo,isJSONSchemaElement:()=>Ao,isLinkDescriptionElement:()=>ko,isMediaElement:()=>$o});var s={};r.r(s),r.d(s,{isOpenApi3_0LikeElement:()=>ic,isOpenApiExtension:()=>mc,isParameterLikeElement:()=>oc,isReferenceLikeElement:()=>cc,isRequestBodyLikeElement:()=>ac,isResponseLikeElement:()=>lc,isServerLikeElement:()=>uc,isTagLikeElement:()=>pc});var i={};r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>xa,isCallbackElement:()=>ta,isComponentsElement:()=>ra,isContactElement:()=>na,isExampleElement:()=>sa,isExternalDocumentationElement:()=>ia,isHeaderElement:()=>oa,isInfoElement:()=>ca,isLicenseElement:()=>aa,isLinkElement:()=>la,isLinkElementExternal:()=>ua,isMediaTypeElement:()=>Aa,isOpenApi3_0Element:()=>ma,isOpenapiElement:()=>pa,isOperationElement:()=>ha,isParameterElement:()=>da,isPathItemElement:()=>fa,isPathItemElementExternal:()=>ya,isPathsElement:()=>ga,isReferenceElement:()=>_a,isReferenceElementExternal:()=>ba,isRequestBodyElement:()=>va,isResponseElement:()=>Ea,isResponsesElement:()=>wa,isSchemaElement:()=>ja,isSecurityRequirementElement:()=>Oa,isServerElement:()=>Sa,isServerVariableElement:()=>Pa});var o={};r.r(o),r.d(o,{isBooleanJsonSchemaElement:()=>sd,isCallbackElement:()=>Ih,isComponentsElement:()=>Ch,isContactElement:()=>Th,isExampleElement:()=>Nh,isExternalDocumentationElement:()=>qh,isHeaderElement:()=>Dh,isInfoElement:()=>Lh,isJsonSchemaDialectElement:()=>Bh,isLicenseElement:()=>Vh,isLinkElement:()=>zh,isLinkElementExternal:()=>Uh,isMediaTypeElement:()=>ad,isOpenApi3_1Element:()=>Wh,isOpenapiElement:()=>Gh,isOperationElement:()=>Hh,isParameterElement:()=>Jh,isPathItemElement:()=>Kh,isPathItemElementExternal:()=>Zh,isPathsElement:()=>Xh,isReferenceElement:()=>Qh,isReferenceElementExternal:()=>Yh,isRequestBodyElement:()=>ed,isResponseElement:()=>td,isResponsesElement:()=>rd,isSchemaElement:()=>nd,isSecurityRequirementElement:()=>id,isServerElement:()=>od,isServerVariableElement:()=>cd});const c=function(){return!1};const a=function(){return!0};function l(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function u(e){return function t(r){return 0===arguments.length||l(r)?t:e.apply(this,arguments)}}function p(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return l(r)?t:u((function(t){return e(r,t)}));default:return l(r)&&l(n)?t:l(r)?u((function(t){return e(t,n)})):l(n)?u((function(t){return e(r,t)})):e(r,n)}}}const m=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function h(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!m(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function d(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const f=function(){return this.xf["@@transducer/init"]()},y=function(e){return this.xf["@@transducer/result"](e)};var g=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=d(this.xf["@@transducer/step"](e,!1))),e},e}();function _(e){return function(t){return new g(e,t)}}const b=p(h(["all"],_,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function v(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,c){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,c,a,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function E(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var c;o<t.length&&(!l(t[o])||s>=arguments.length)?c=t[o]:(c=arguments[s],s+=1),n[o]=c,l(c)||(i-=1),o+=1}return i<=0?r.apply(this,n):v(i,E(e,n,r))}}const w=p((function(e,t){return 1===e?u(t):v(e,E(e,[],t))}));function j(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function x(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const S="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var P=Object.prototype.toString;const A=function(){return"[object Arguments]"===P.call(arguments)?function(e){return"[object Arguments]"===P.call(e)}:function(e){return O("callee",e)}}();var F=!{toString:null}.propertyIsEnumerable("toString"),$=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],k=function(){return arguments.propertyIsEnumerable("length")}(),M=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const R="function"!=typeof Object.keys||k?u((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=k&&A(e);for(t in e)!O(t,e)||s&&"length"===t||(n[n.length]=t);if(F)for(r=$.length-1;r>=0;)O(t=$[r],e)&&!M(n,t)&&(n[n.length]=t),r-=1;return n})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const I=u((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function C(e,t,r,n){var s=j(e);function i(e,t){return T(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function T(e,t,r,n){if(S(e,t))return!0;var s,i,o=I(e);if(o!==I(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!S(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!S(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var c=r.length-1;c>=0;){if(r[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&C(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&C(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var a=R(e);if(a.length!==R(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!O(p,t)||!T(t[p],e[p],l,u))return!1;c-=1}return!0}const N=p((function(e,t){return T(e,t,[],[])}));function q(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(N(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function D(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function L(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var B=function(e){return(e<10?"0":"")+e};const V="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+B(e.getUTCMonth()+1)+"-"+B(e.getUTCDate())+"T"+B(e.getUTCHours())+":"+B(e.getUTCMinutes())+":"+B(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function z(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function U(e){return"[object Object]"===Object.prototype.toString.call(e)}var G=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function W(e){return function(t){return new G(e,t)}}const H=p(h(["fantasy-land/filter","filter"],W,(function(e,t){return U(t)?z((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},R(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const J=p((function(e,t){return H((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function K(e,t){var r=function(r){var n=t.concat([e]);return q(r,n)?"<Circular>":K(r,n)},n=function(e,t){return D((function(t){return L(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+D(r,e).join(", ")+"))";case"[object Array]":return"["+D(r,e).concat(n(e,J((function(e){return/^\d+$/.test(e)}),R(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):L(V(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":L(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,R(e)).join(", ")+"}"}}const Z=u((function(e){return K(e,[])}));const X=p((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=Z(e),o=r(i,Z(t));return void 0!==o&&o===i?e:t}));var Q=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Y=function(e){return function(t){return new Q(e,t)}};const ee=p(h(["fantasy-land/map","map"],Y,(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return w(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return z((function(r,n){return r[n]=e(t[n]),r}),{},R(t));default:return D(e,t)}}))),te=Number.isInteger||function(e){return e<<0===e};function re(e){return"[object String]"===Object.prototype.toString.call(e)}const ne=p((function(e,t){var r=e<0?t.length+e:e;return re(t)?t.charAt(r):t[r]}));const se=p((function(e,t){if(null!=t)return te(e)?ne(e,t):t[e]}));const ie=p((function(e,t){return ee(se(e),t)}));function oe(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return l(r)?t:p((function(t,n){return e(r,t,n)}));case 2:return l(r)&&l(n)?t:l(r)?p((function(t,r){return e(t,n,r)})):l(n)?p((function(t,n){return e(r,t,n)})):u((function(t){return e(r,n,t)}));default:return l(r)&&l(n)&&l(s)?t:l(r)&&l(n)?p((function(t,r){return e(t,r,s)})):l(r)&&l(s)?p((function(t,r){return e(t,n,r)})):l(n)&&l(s)?p((function(t,n){return e(r,t,n)})):l(r)?u((function(t){return e(t,n,s)})):l(n)?u((function(t){return e(r,t,s)})):l(s)?u((function(t){return e(r,n,t)})):e(r,n,s)}}}const ce=u((function(e){return!!m(e)||!!e&&("object"==typeof e&&(!re(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ae="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function le(e,t,r){return function(n,s,i){if(ce(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[ae])return r(n,s,i[ae]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ue(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const pe=p((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));function me(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function he(e,t,r,n){return e["@@transducer/result"](r[n](pe(e["@@transducer/step"],e),t))}const de=le(ue,he,me);var fe=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function ye(e){return new fe(e)}const ge=oe((function(e,t,r){return de("function"==typeof e?ye(e):e,t,r)}));const _e=u((function(e){return w(ge(X,0,ie("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const be=u((function(e){return function(){return e}}));const ve=u((function(e){return w(ge(X,0,ie("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Ee(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}function we(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function je(e,t,r,n){return r[n](e,t)}const xe=le(z,je,we);const Oe=p((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:xe((function(e,r){return Ee(e,ee(r,t))}),[],e)}));const Se=p((function(e,t){return e.apply(this,t)}));function Pe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Ae=p((function(e,t){return e&&t}));const Fe=p((function(e,t){var r=w(e,t);return w(e,(function(){return z(Oe,ee(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const $e=u((function(e){return Fe(e.length,e)}));const ke=p((function(e,t){return Pe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:$e(Ae)(e,t)}));const Me=u((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const Re=$e(u((function(e){return!e})));function Ie(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Ce(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return m(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const Te=oe(Ce("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Ne=u(Ce("tail",Te(1,1/0)));function qe(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,ge(Ie,arguments[0],Ne(arguments)))}function De(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}const Le=u((function(e){return w(e.length,e)}));const Be=p((function(e,t){return null==t||t!=t?e:t}));function Ve(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!q(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!q(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const ze=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Ve(e,!0,this)},e.prototype.has=function(e){return Ve(e,!1,this)},e}();const Ue=p((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new ze,c=0;c<i;c+=1)o.add(t[c]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));var Ge=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?d(r):r},e}();function We(e){return function(t){return new Ge(e,t)}}const He=p(h(["take"],We,(function(e,t){return Te(0,e<0?1/0:e,t)})));const Je=ne(-1);var Ke=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=f,e.prototype["@@transducer/result"]=y,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Ze(e){return function(t){return new Ke(e,t)}}const Xe=p(h(["dropWhile"],Ze,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Te(r,1/0,t)})));const Qe=p((function(e,t){return e||t}));const Ye=p((function(e,t){return Pe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:$e(Qe)(e,t)}));var et=u((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():m(e)?[]:re(e)?"":U(e)?{}:A(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const tt=et;const rt=u((function(e){return w(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const nt=u((function(e){return null==e}));const st=p((function(e,t){if(0===e.length||nt(t))return!1;for(var r=t,n=0;n<e.length;){if(nt(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const it=p((function(e,t){return st([e],t)}));const ot=ne(0);var ct=function(e,t){switch(arguments.length){case 0:return ct;case 1:return function t(r){return 0===arguments.length?t:S(e,r)};default:return S(e,t)}};const at=ct;const lt=oe((function(e,t,r){return w(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const ut=p(q);const pt=Te(0,-1);"function"==typeof Object.assign&&Object.assign;const mt=p((function(e,t){return w(e+1,(function(){var r=arguments[e];if(null!=r&&Pe(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Z(r)+' does not have a method named "'+t+'"')}))}));const ht=u((function(e){return null!=e&&N(e,tt(e))}));const dt=mt(1,"join");const ft=p((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=te(r)?ne(r,n):n[r],s+=1}return n}))}));const yt=p((function(e,t){return ft([e],t)[0]}));const gt=p((function(e,t){return z((function(r,n){return r[n]=e(t[n],n,t),r}),{},R(t))}));const _t=p((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));const bt=oe((function(e,t,r){return e(yt(t,r))}));const vt=p((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const Et=oe((function(e,t,r){return Be(e,se(t,r))}));const wt=oe((function(e,t,r){return e(se(t,r))}));function jt(e){return"[object Number]"===Object.prototype.toString.call(e)}const xt=p((function(e,t){if(!jt(e)||!jt(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const Ot=u(d);var St=p((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Pt=St;const At=mt(1,"split");const Ft=p((function(e,t){return N(He(e.length,t),e)}));const $t=p((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+Z(e));var r;return De(e).test(t)}));var kt="\t\n\v\f\r                 \u2028\u2029\ufeff";String.prototype.trim;const Mt=be(void 0);const Rt=N(Mt());const It=Re(Rt);var Ct=r(7952);const Tt=N(null);const Nt=Re(Tt);function qt(e){return qt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},qt(e)}const Dt=function(e){return"object"===qt(e)};const Lt=w(1,ke(Nt,Dt));const Bt=w(1,qe(I,at("GeneratorFunction")));const Vt=w(1,qe(I,at("AsyncFunction")));const zt=ve([qe(I,at("Function")),Bt,Vt]);var Ut=qe(I,at("Object")),Gt=qe(Z,N(Z(Object))),Wt=bt(ke(zt,Gt),["constructor"]);const Ht=w(1,(function(e){if(!Lt(e)||!Ut(e))return!1;var t=Object.getPrototypeOf(e);return!!Tt(t)||Wt(t)}));class Jt extends Ct.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Kt=Jt;class Zt extends Ct.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Xt=Zt;class Qt extends Ct.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Rt(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Yt=Qt;class er extends Ct.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new Ct.ON([e.start.row,e.start.column,e.start.char]),r=new Ct.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const tr=er;class rr extends Ct.lS{constructor(){super(),this.register("annotation",Kt),this.register("comment",Xt),this.register("parseResult",Yt),this.register("sourceMap",tr)}}const nr=new rr,sr=e=>{const t=new rr;return Ht(e)&&t.use(e),t},ir=nr;const or=w(1,qe(I,at("String"))),cr=r.p+"fba0b3cc0d7ee926ea482deee298a5fe.wasm",ar=globalThis.fetch;zt(ar)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return or(t[0])&&t[0].endsWith("tree-sitter.wasm")?ar.apply(globalThis,[cr,Ne(t)]):ar.apply(globalThis,t)});var lr=r(9794);const ur=r.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let pr=null,mr=null;const hr=async e=>{if(null===pr&&null===mr)mr=lr.init().then((()=>lr.Language.load(ur))).then((e=>{const t=new lr;return t.setLanguage(e),t})).finally((()=>{mr=null})),pr=await mr;else if(null===pr&&null!==mr)pr=await mr;else if(null===pr)throw new Error("Error while initializing web-tree-sitter");return pr.parse(e)};var dr=r(9800),fr=r(7829),yr=r(2876);function gr(e){return gr="function"==typeof fr&&"symbol"==typeof yr?function(e){return typeof e}:function(e){return e&&"function"==typeof fr&&e.constructor===fr&&e!==fr.prototype?"symbol":typeof e},gr(e)}var _r=r(2903);function br(e){var t=function(e,t){if("object"!==gr(e)||null===e)return e;var r=e[_r];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==gr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===gr(t)?t:String(t)}function vr(e,t,r){return(t=br(t))in e?dr(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Er=r(6591);const wr=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},jr={},xr=e=>null==e?void 0:e.type,Or=e=>"string"==typeof xr(e),Sr=function(e,t){let{keyMap:r=null,state:n={},breakSymbol:s=jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=wr,nodeTypeGetter:a=xr,nodePredicate:l=Or,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,g=[];const _=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==g.length;if(e){if(r=0===b.length?void 0:_.pop(),E=h,h=b.pop(),w){E=d?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];d&&(r-=e),d&&n===i?(E.splice(r,1),e+=1):E[r]=n}}y=m.index,f=m.keys,g=m.edits,d=m.inArray,m=m.prev}else{if(r=h?d?y:f[y]:void 0,E=h?h[r]:v,E===i||void 0===E)continue;h&&_.push(r)}if(b.includes(E))continue;let j;if(!Array.isArray(E)){if(!l(E))throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){_.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(j=i.call(t,E,r,h,_,b),j===s)break;if(j===o){if(!e){_.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!l(j)){_.pop();continue}E=j}}}void 0===j&&w&&g.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:g,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,g=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==g.length&&([,v]=g[g.length-1]),v};Sr[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:r=null,state:n={},breakSymbol:s=jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=wr,nodeTypeGetter:a=xr,nodePredicate:l=Or,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,g=[];const _=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==g.length;if(e){if(r=0===b.length?void 0:_.pop(),E=h,h=b.pop(),w){E=d?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<g.length;t+=1){let r=g[t][0];const n=g[t][1];d&&(r-=e),d&&n===i?(E.splice(r,1),e+=1):E[r]=n}}y=m.index,f=m.keys,g=m.edits,d=m.inArray,m=m.prev}else{if(r=h?d?y:f[y]:void 0,E=h?h[r]:v,E===i||void 0===E)continue;h&&_.push(r)}let j;if(!Array.isArray(E)){if(!l(E))throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){_.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;if(j=await i.call(t,E,r,h,_,b),j===s)break;if(j===o){if(!e){_.pop();continue}}else if(void 0!==j&&(g.push([r,j]),!e)){if(!l(j)){_.pop();continue}E=j}}}void 0===j&&w&&g.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:g,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,g=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==g.length&&([,v]=g[g.length-1]),v};var Pr=r(4463),Ar=r(6405),Fr=r(5575);function $r(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=Fr(e);for(n=0;n<i.length;n++)r=i[n],Ar(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(Pr){var i=Pr(e);for(n=0;n<i.length;n++)r=i[n],Ar(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}const kr=rt(ut),Mr=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Rr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Ir=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},Cr=(e,t)=>{var r,n;return(null==t||null===(r=t.classes)||void 0===r||null===(n=r.includes)||void 0===n?void 0:n.call(r,e))||!1},Tr=(e,t)=>(null==t?void 0:t.element)===e,Nr=e=>e({hasMethod:Mr,hasBasicElementProps:Rr,primitiveEq:Ir,isElementType:Tr,hasClass:Cr}),qr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Ct.W_||t(e)&&r(void 0,e)})),Dr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Ct.RP||t(e)&&r("string",e)})),Lr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Ct.VL||t(e)&&r("number",e)})),Br=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Ct.zr||t(e)&&r("null",e)})),Vr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof Ct.hh||t(e)&&r("boolean",e)})),zr=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:n}=e;return e=>e instanceof Ct.Sb||t(e)&&r("object",e)&&n("keys",e)&&n("values",e)&&n("items",e)})),Ur=Nr((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:n}=e;return e=>e instanceof Ct.ON&&!(e instanceof Ct.Sb)||t(e)&&r("array",e)&&n("push",e)&&n("unshift",e)&&n("map",e)&&n("reduce",e)})),Gr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ct.c6||t(e)&&r("member",e)&&n(void 0,e)})),Wr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ct.EA||t(e)&&r("link",e)&&n(void 0,e)})),Hr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ct.tK||t(e)&&r("ref",e)&&n(void 0,e)})),Jr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Kt||t(e)&&r("annotation",e)&&n("array",e)})),Kr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Xt||t(e)&&r("comment",e)&&n("string",e)})),Zr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Yt||t(e)&&r("parseResult",e)&&n("array",e)})),Xr=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof tr||t(e)&&r("sourceMap",e)&&n("array",e)})),Qr=e=>Tr("object",e)||Tr("array",e)||Tr("boolean",e)||Tr("number",e)||Tr("string",e)||Tr("null",e)||Tr("member",e),Yr=e=>{var t,r;return Xr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},en=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Ur(r)&&b(kr(r.toValue()),e)},tn=(e,t)=>0===e.length||b(kr(t.classes.toValue()),e),rn=["keyMap"],nn=["keyMap"];function sn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function on(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?sn(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):sn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const cn=e=>zr(e)?"ObjectElement":Ur(e)?"ArrayElement":Gr(e)?"MemberElement":Dr(e)?"StringElement":Vr(e)?"BooleanElement":Lr(e)?"NumberElement":Br(e)?"NullElement":Wr(e)?"LinkElement":Hr(e)?"RefElement":void 0,an=qe(cn,or),ln={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},un=(Er({props:{result:[],predicate:c,returnOnTrue:void 0,returnOnFalse:void 0},init(){let{predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:n=ln}=r,s=$r(r,rn);return Sr(e,t,on({keyMap:n,nodeTypeGetter:cn,nodePredicate:an},s))});un[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:n=ln}=r,s=$r(r,nn);return Sr[Symbol.for("nodejs.util.promisify.custom")](e,t,on({keyMap:n,nodeTypeGetter:cn,nodePredicate:an},s))};const pn=Re(zt);const mn=w(1,zt(Array.isArray)?Array.isArray:qe(I,at("Array")));const hn=ke(mn,ht);const dn=w(3,(function(e,t,r){var n=yt(e,r),s=yt(pt(e),r);if(!pn(n)&&!hn(e)){var i=pe(n,s);return Se(i,t)}}));function fn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const yn=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fn(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:ir}),gn=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=Et(yn,"toolboxCreator",r),s=Et({},"visitorOptions",r),i=Et(cn,"nodeTypeGetter",s),o=n(),c=t.map((e=>e(o))),a=function(e){let{visitFnGetter:t=wr,nodeTypeGetter:r=xr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=new Array(e.length);return{enter(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];for(let i=0;i<e.length;i+=1)if(null==n[i]){const c=t(e[i],r(s),!1);if("function"==typeof c){const t=c.call(e[i],s,...o);if(!1===t)n[i]=s;else if(t===jr)n[i]=jr;else if(void 0!==t)return t}}},leave(s){for(var i=arguments.length,o=new Array(i>1?i-1:0),c=1;c<i;c++)o[c-1]=arguments[c];for(let i=0;i<e.length;i+=1)if(null==n[i]){const c=t(e[i],r(s),!0);if("function"==typeof c){const t=c.call(e[i],s,...o);if(t===jr)n[i]=jr;else if(void 0!==t&&!1!==t)return t}}else n[i]===s&&(n[i]=null)}}}(c.map(Et({},"visitor")),{nodeTypeGetter:i});c.forEach(dn(["pre"],[]));const l=un(e,a,s);return c.forEach(dn(["post"],[])),l};function _n(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_n(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_n(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const vn=(e,t)=>{let{Type:r,plugins:n=[]}=t;const s=new r(e);return gn(s,n,{toolboxCreator:yn,visitorOptions:{nodeTypeGetter:cn}})},En=e=>function(t){return vn(t,bn(bn({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{Type:e}))};function wn(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}Ct.Sb.refract=En(Ct.Sb),Ct.ON.refract=En(Ct.ON),Ct.RP.refract=En(Ct.RP),Ct.hh.refract=En(Ct.hh),Ct.zr.refract=En(Ct.zr),Ct.VL.refract=En(Ct.VL),Ct.EA.refract=En(Ct.EA),Ct.tK.refract=En(Ct.tK),Kt.refract=En(Kt),Xt.refract=En(Xt),Yt.refract=En(Yt),tr.refract=En(tr);const jn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?wn(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):wn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},ln),xn=e=>Zr(e)?"ParseResultElement":qr(e)?cn(e):xr(e),On=e=>qr(e)||Or(e),Sn=Er({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new tr,n=(e=>{if(null===e)return null;const t=new Ct.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new Ct.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]})(e);if(null!==n){const[e,t]=n;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)},t=(e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null};this.enter=function(t){if(("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed)&&t.isMissing()){const r=t.type||t.text,n=new Kt(`(Missing ${r})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const r=new Yt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(Qr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Ct.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new Ct.ON;return r._content=t.children,e(t,r),r},this.pair=function(r){const n=new Ct.c6;return n.content.key=t("key",r),n.content.value=t("value",r),e(r,n),r.children.length>3&&r.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,r,[],[r])})),n},this.string=function(t){const r=new Ct.RP(t.text.slice(1,-1));return e(t,r),r},this.number=function(t){const r=new Ct.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new Ct.zr;return e(t,r),r},this.true=function(t){const r=new Ct.hh(!0);return e(t,r),r},this.false=function(t){const r=new Ct.hh(!1);return e(t,r),r},this.ERROR=function(t,r,n,s){const i=!t.hasError(),o=t.text,c=new Kt(i?`(Unexpected ${o})`:`(Error ${o})`);if(c.classes.push("error"),e(t,c),0===s.length){const e=new Yt;return e.push(c),e}return this.annotations.push(c),null}}}),Pn=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Sn();return Sr(e.rootNode,r,{keyMap:jn,nodeTypeGetter:xn,nodePredicate:On,state:{sourceMap:t}})},An=Er({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init(){let{row:e=null,column:t=null,char:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.row=e,this.column=t,this.char=r}}),Fn=Er({statics:{type:"position"},props:{type:"position",start:null,end:null},init(){let{start:e=null,end:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.start=e,this.end=t}}),$n=Er({props:{type:null,position:null,children:[]},init(){let{children:e=[],position:t=null,isMissing:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:n={}}=arguments.length>1?arguments[1]:void 0;this.type=n.type,this.isMissing=r,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}}),kn=Er($n,{statics:{type:"literal"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),Mn=Er($n),Rn=Er(Mn,{statics:{type:"document"},methods:{get child(){return ot(this.children)}}}),In=Er($n,{statics:{type:"parseResult"},methods:{get rootNode(){return ot(this.children)}}}),Cn=(e,t)=>(null==t?void 0:t.type)===e,Tn=(Cn.bind(void 0,"literal"),Cn.bind(void 0,"position"),Cn.bind(void 0,"point"),Cn.bind(void 0,"parseResult"),Cn.bind(void 0,"document"),Cn.bind(void 0,"string")),Nn=Cn.bind(void 0,"false"),qn=Cn.bind(void 0,"true"),Dn=Cn.bind(void 0,"null"),Ln=Cn.bind(void 0,"number"),Bn=Cn.bind(void 0,"array"),Vn=Cn.bind(void 0,"object"),zn=Cn.bind(void 0,"stringContent"),Un=Cn.bind(void 0,"escapeSequence"),Gn=Cn.bind(void 0,"property"),Wn=Cn.bind(void 0,"key"),Hn=Er(Mn,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Gn)}}}),Jn=Er(Mn,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>zn(e)||Un(e))).reduce(((e,t)=>e+t.value),"")}}}),Kn=Er(Jn,{statics:{type:"key"}}),Zn=Er(Mn,{statics:{type:"property"},methods:{get key(){return this.children.find(Wn)},get value(){return this.children.find((e=>Nn(e)||qn(e)||Dn(e)||Ln(e)||Tn(e)||Bn(e)||Vn(e)))}}}),Xn=Er(Mn,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Nn(e)||qn(e)||Dn(e)||Ln(e)||Tn(e)||Bn(e)||Vn))}}}),Qn=Er(Mn,{statics:{type:"value"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),Yn=Er(Qn,{statics:{type:"stringContent"}}),es=Er(Qn,{statics:{type:"number"}}),ts=Er(Qn,{statics:{type:"null"}}),rs=Er(Qn,{statics:{type:"true"}}),ns=Er(Qn,{statics:{type:"false"}}),ss=Er($n,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init(){let{value:e=null,isUnexpected:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e,this.isUnexpected=t}}),is={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},os=Er({init(){const e=e=>{if(null===e)return null;const t=An({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=An({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return Fn({start:t,end:r})};this.enter=function(t){if("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed){const r=e(t),n=t.type||t.text,s=t.isMissing();return kn({value:n,position:r,isMissing:s})}},this.document={enter(t){const r=e(t);return Rn({children:t.children,position:r,isMissing:t.isMissing()})},leave:e=>In({children:[e]})},this.object=function(t){const r=e(t);return Hn({children:t.children,position:r,isMissing:t.isMissing()})},this.pair=function(t){const r=e(t),n=t.children.slice(1),s=((e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null})("key",t),i=Kn({children:(null==s?void 0:s.children)||[],position:e(s),isMissing:(null==s?void 0:s.isMissing())||!1});return Zn({children:[i,...n],position:r,isMissing:t.isMissing()})},this.array=function(t){const r=e(t);return Xn({children:t.children,position:r,isMissing:t.isMissing()})},this.string=function(t){const r=e(t),n=Yn({value:t.text.slice(1,-1)});return Jn({children:[n],position:r,isMissing:t.isMissing()})},this.number=function(t){const r=e(t),n=t.text;return es({value:n,position:r,isMissing:t.isMissing()})},this.null=function(t){const r=e(t),n=t.text;return ts({value:n,position:r,isMissing:t.isMissing()})},this.true=function(t){const r=e(t),n=t.text;return rs({value:n,position:r,isMissing:t.isMissing()})},this.false=function(t){const r=e(t),n=t.text;return ns({value:n,position:r,isMissing:t.isMissing()})},this.ERROR=function(t,r,n,s){const i=e(t),o=ss({children:t.children,position:i,isUnexpected:!t.hasError(),isMissing:t.isMissing(),value:t.text});return 0===s.length?In({children:[o]}):o}}});function cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const as=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[In.type]:["children"],[Rn.type]:["children"],[Hn.type]:["children"],[Zn.type]:["children"],[Xn.type]:["children"],[ss.type]:["children"]},ln),ls=e=>Zr(e)?"ParseResultElement":qr(e)?cn(e):xr(e),us=e=>qr(e)||Or(e),ps=Er({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new tr;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Yt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(Qr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new Ct.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new Ct.c6;return r.content.key=t.key,r.content.value=t.value,e(t,r),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),r},this.key=function(t){const r=new Ct.RP(t.value);return e(t,r),r},this.array=function(t){const r=new Ct.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new Ct.RP(t.value);return e(t,r),r},this.number=function(t){const r=new Ct.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new Ct.zr;return e(t,r),r},this.true=function(t){const r=new Ct.hh(!0);return e(t,r),r},this.false=function(t){const r=new Ct.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,n=new Kt(r);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.error=function(t,r,n,s){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Kt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new Yt;return e.push(o),e}return this.annotations.push(o),null}}}),ms=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=os(),n=ps(),s=Sr(e.rootNode,r,{keyMap:is,state:{sourceMap:t}});return Sr(s.rootNode,n,{keyMap:as,nodeTypeGetter:ls,nodePredicate:us,state:{sourceMap:t}})},hs=(sr(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class ds extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const fs=ds;class ys extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const gs=ys;class _s extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const bs=_s;class vs extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Es=vs;class ws extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const js=ws;class xs extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Os=xs;class Ss extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Ps=Ss;class As extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Ct.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ct.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(As.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Fs=As;class $s extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const ks=$s;class Ms extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Rs=Ms;class Is extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Dr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Dr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Cs=Is;class Ts extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Ns=Ts;class qs extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Ds=qs;class Ls extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Bs=Ls;class Vs extends Ct.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const zs=Vs;class Us extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Gs=Us;class Ws extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ct.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Hs=Ws;class Js extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new Ct.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Ct.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Js.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ks=Js;class Zs extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Xs=Zs;class Qs extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Ys=Qs;class ei extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ti=ei;class ri extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new Ct.hh(!1)}set required(e){this.set("required",e)}}const ni=ri;class si extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const ii=si;class oi extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ci=oi;class ai extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const li=ai;class ui extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const pi=ui;class mi extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const hi=mi;class di extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const fi=di;const yi=Le((function(e,t){return qe(At(""),Xe(kr(e)),dt(""))(t)})),gi=(e,t)=>{const r=Be(e,t);return gt((e=>{if(Ht(e)&&it("$ref",e)&&wt(or,"$ref",e)){const t=yt(["$ref"],e),n=yi("#/",t);return yt(n.split("/"),r)}return Ht(e)?gi(e,r):e}),e)},_i=Er({props:{element:null},methods:{copyMetaAndAttributes(e,t){Yr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),bi=Er(_i,{methods:{enter(e){return this.element=e.clone(),jr}}});const vi=be(Mt());function Ei(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const wi=e=>{if(qr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ji=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ei(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ei(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},ln);function xi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Oi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?xi(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):xi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Si=Er(_i,{props:{specObj:null,passingOptionsNames:["specObj"]},init(e){let{specObj:t=this.specObj}=e;this.specObj=t},methods:{retrievePassingOptions(){return vt(this.passingOptionsNames,this)},retrieveFixedFields(e){return qe(yt(["visitors",...e,"fixedFields"]),R)(this.specObj)},retrieveVisitor(e){return bt(zt,["visitors",...e],this.specObj)?yt(["visitors",...e],this.specObj):yt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Oi(Oi({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Rt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(un(t,n,Oi({keyMap:ji,nodeTypeGetter:wi},r)),n.element)}}}),Pi=Er(Si,{props:{specPath:vi,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Dr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Ct.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),jr}}}),Ai=Er(Pi,bi,{props:{specPath:be(["document","objects","JSONSchema"])},init(){this.element=new li}}),Fi=bi,$i=bi,ki=bi,Mi=bi,Ri=bi,Ii=bi,Ci=bi,Ti=bi,Ni=bi,qi=bi,Di=Er({props:{parent:null},init(e){let{parent:t=this.parent}=e;this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Li=e=>zr(e)&&e.hasKey("$ref"),Bi=Er(Si,Di,bi,{methods:{ObjectElement(e){const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),jr},ArrayElement(e){return this.element=new Ct.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),Vi=bi,zi=bi,Ui=bi,Gi=bi,Wi=bi,Hi=Er(bi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),jr}}});const Ji=Re(w(1,ke(Nt,Ye(Dt,zt))));const Ki=Re(ht);const Zi=_e([or,Ji,Ki]),Xi=Er(Si,{props:{fieldPatternPredicate:c,specPath:vi,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Ct.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),jr}}}),Qi=Er(Xi,{props:{fieldPatternPredicate:Zi}}),Yi=Er(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-properties")}}),eo=Er(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-patternProperties")}}),to=Er(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-dependencies")}}),ro=Er(bi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),jr}}}),no=Er(bi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),jr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),jr}}}),so=Er(Si,Di,bi,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),io=Er(Si,Di,bi,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),oo=Er(Si,Di,bi,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),co=Er(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-definitions")}}),ao=bi,lo=bi,uo=bi,po=bi,mo=bi,ho=Er(Si,Di,bi,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),jr}}}),fo=bi,yo=Er(Pi,bi,{props:{specPath:be(["document","objects","JSONReference"])},init(){this.element=new pi},methods:{ObjectElement(e){const t=Pi.compose.methods.ObjectElement.call(this,e);return Dr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),go=Er(bi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}});const _o=Re(nt);const bo=ke(mn,Ki);function vo(e){return function(e){if(Array.isArray(e))return Eo(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Eo(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Eo(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Eo(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var wo=qe(Pt(Me((function(e,t){return e.length>t.length}))),ot,se("length")),jo=Le((function(e,t,r){var n=r.apply(void 0,vo(e));return _o(n)?Ot(n):t}));const xo=lt(bo,(function(e){var t=wo(e);return w(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return ge(jo(r),void 0,e)}))}),Mt),Oo=Er(Si,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return lt(t,be(r),Mt)})),r=xo(t)(e);return this.element=this.toRefractedElement(r,e),jr}}}),So=Er(Oo,{props:{alternator:[{predicate:Li,specPath:["document","objects","JSONReference"]},{predicate:a,specPath:["document","objects","JSONSchema"]}]}}),Po={visitors:{value:bi,JSONSchemaOrJSONReferenceVisitor:So,document:{objects:{JSONSchema:{$visitor:Ai,fixedFields:{id:Fi,$schema:$i,multipleOf:ki,maximum:Mi,exclusiveMaximum:Ri,minimum:Ii,exclusiveMinimum:Ci,maxLength:Ti,minLength:Ni,pattern:qi,additionalItems:So,items:Bi,maxItems:Vi,minItems:zi,uniqueItems:Ui,maxProperties:Gi,minProperties:Wi,required:Hi,properties:Yi,additionalProperties:So,patternProperties:eo,dependencies:to,enum:ro,type:no,allOf:so,anyOf:io,oneOf:oo,not:So,definitions:co,title:ao,description:lo,default:uo,format:po,base:mo,links:ho,media:{$ref:"#/visitors/document/objects/Media"},readOnly:fo}},JSONReference:{$visitor:yo,fixedFields:{$ref:go}},Media:{$visitor:Er(Pi,bi,{props:{specPath:be(["document","objects","Media"])},init(){this.element=new hi}}),fixedFields:{binaryEncoding:bi,type:bi}},LinkDescription:{$visitor:Er(Pi,bi,{props:{specPath:be(["document","objects","LinkDescription"])},init(){this.element=new fi}}),fixedFields:{href:bi,rel:bi,title:bi,targetSchema:So,mediaType:bi,method:bi,encType:bi,schema:So}}}}}},Ao=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof li||t(e)&&r("JSONSchemaDraft4",e)&&n("object",e)})),Fo=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof pi||t(e)&&r("JSONReference",e)&&n("object",e)})),$o=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof hi||t(e)&&r("media",e)&&n("object",e)})),ko=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof fi||t(e)&&r("linkDescription",e)&&n("object",e)})),Mo={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",li),t.register("jSONReference",pi),t.register("media",hi),t.register("linkDescription",fi),t}};function Ro(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Io(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ro(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ro(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Co=()=>{const e=sr(Mo);return{predicates:Io(Io({},t),{},{isStringElement:Dr}),namespace:e}};function To(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const No=function(e){let{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Po}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=(0,Ct.Qc)(e),i=gi(n),o=dn(t,[],i);return un(s,o,{state:{specObj:i}}),gn(o.element,r,{toolboxCreator:Co,visitorOptions:{keyMap:ji,nodeTypeGetter:wi}})},qo=e=>function(t){return No(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?To(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):To(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};li.refract=qo(["visitors","document","objects","JSONSchema","$visitor"]),pi.refract=qo(["visitors","document","objects","JSONReference","$visitor"]),hi.refract=qo(["visitors","document","objects","Media","$visitor"]),fi.refract=qo(["visitors","document","objects","LinkDescription","$visitor"]);const Do=class extends li{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Lo extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Bo=Lo;class Vo extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const zo=Vo;class Uo extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Go=Uo;class Wo extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Ho=Wo;class Jo extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Ko=Jo;class Zo extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Xo=Zo,Qo=Er({props:{element:null},methods:{copyMetaAndAttributes(e,t){Yr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function Yo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const ec=e=>{if(qr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},tc=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yo(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},ln);function rc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function nc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rc(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const sc=Er(Qo,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init(e){let{specObj:t=this.specObj,openApiGenericElement:r=this.openApiGenericElement,openApiSemanticElement:n=this.openApiSemanticElement}=e;this.specObj=t,this.openApiGenericElement=r,this.openApiSemanticElement=n},methods:{retrievePassingOptions(){return vt(this.passingOptionsNames,this)},retrieveFixedFields(e){return qe(yt(["visitors",...e,"fixedFields"]),R)(this.specObj)},retrieveVisitor(e){return bt(zt,["visitors",...e],this.specObj)?yt(["visitors",...e],this.specObj):yt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(nc(nc({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Rt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(un(t,n,nc({keyMap:tc,nodeTypeGetter:ec},r)),n.element)}}}),ic=e=>zr(e)&&e.hasKey("openapi")&&e.hasKey("info"),oc=e=>zr(e)&&e.hasKey("name")&&e.hasKey("in"),cc=e=>zr(e)&&e.hasKey("$ref"),ac=e=>zr(e)&&e.hasKey("content"),lc=e=>zr(e)&&e.hasKey("description"),uc=zr,pc=zr,mc=e=>Dr(e.key)&&Ft("x-",e.key.toValue()),hc=Er(sc,{props:{specPath:vi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:mc},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Dr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new Ct.c6(n.clone(),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(n.toValue())||this.element.content.push(s.clone())})),this.copyMetaAndAttributes(e,this.element),jr}}}),dc=Er(Qo,{methods:{enter(e){return this.element=e.clone(),jr}}}),fc=Er(hc,dc,{props:{specPath:be(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Gs},methods:{ObjectElement(e){return this.unrefractedElement=e,hc.compose.methods.ObjectElement.call(this,e)}}}),yc=Er(sc,dc,{methods:{StringElement(e){const t=new zs(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,jr}}}),gc=Er(sc,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),jr}}}),_c=Er(hc,dc,{props:{specPath:be(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new ks}}),bc=dc,vc=dc,Ec=dc,wc=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),jr}}}),jc=Er(hc,dc,{props:{specPath:be(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new bs}}),xc=dc,Oc=dc,Sc=dc,Pc=Er(hc,dc,{props:{specPath:be(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Rs}}),Ac=dc,Fc=dc,$c=Er(hc,dc,{props:{specPath:be(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cs},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return(Dr(this.element.operationId)||Dr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),kc=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Mc=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Rc=Er(sc,{props:{fieldPatternPredicate:c,specPath:vi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:mc},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new Ct.c6(t.clone(),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),jr}}}),Ic=Er(Rc,{props:{fieldPatternPredicate:Zi}});class Cc extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Cc.primaryClass)}}vr(Cc,"primaryClass","link-parameters");const Tc=Cc,Nc=Er(Ic,dc,{props:{specPath:be(["value"])},init(){this.element=new Tc}}),qc=dc,Dc=dc,Lc=Er(hc,dc,{props:{specPath:be(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Go}}),Bc=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),jr}}}),Vc=dc;class zc extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(zc.primaryClass)}}vr(zc,"primaryClass","servers");const Uc=zc,Gc=Er(sc,dc,{init(){this.element=new Uc},methods:{ArrayElement(e){return e.forEach((e=>{const t=uc(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),Wc=Er(hc,dc,{props:{specPath:be(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ho}}),Hc=dc,Jc=dc,Kc=dc;class Zc extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Zc.primaryClass)}}vr(Zc,"primaryClass","server-variables");const Xc=Zc,Qc=Er(Ic,dc,{props:{specPath:be(["document","objects","ServerVariable"])},init(){this.element=new Xc}}),Yc=Er(hc,dc,{props:{specPath:be(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ns}}),ea=Er(sc,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return lt(t,be(r),Mt)})),r=xo(t)(e);return this.element=this.toRefractedElement(r,e),jr}}}),ta=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof fs||t(e)&&r("callback",e)&&n("object",e)})),ra=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof gs||t(e)&&r("components",e)&&n("object",e)})),na=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof bs||t(e)&&r("contact",e)&&n("object",e)})),sa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Os||t(e)&&r("example",e)&&n("object",e)})),ia=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ps||t(e)&&r("externalDocumentation",e)&&n("object",e)})),oa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Fs||t(e)&&r("header",e)&&n("object",e)})),ca=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ks||t(e)&&r("info",e)&&n("object",e)})),aa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Rs||t(e)&&r("license",e)&&n("object",e)})),la=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Cs||t(e)&&r("link",e)&&n("object",e)})),ua=e=>{if(!la(e))return!1;if(!Dr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},pa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof zs||t(e)&&r("openapi",e)&&n("string",e)})),ma=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n,hasClass:s}=e;return e=>e instanceof Gs||t(e)&&r("openApi3_0",e)&&n("object",e)&&s("api",e)})),ha=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Hs||t(e)&&r("operation",e)&&n("object",e)})),da=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ks||t(e)&&r("parameter",e)&&n("object",e)})),fa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Xs||t(e)&&r("pathItem",e)&&n("object",e)})),ya=e=>{if(!fa(e))return!1;if(!Dr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ga=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ys||t(e)&&r("paths",e)&&n("object",e)})),_a=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ti||t(e)&&r("reference",e)&&n("object",e)})),ba=e=>{if(!_a(e))return!1;if(!Dr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},va=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ni||t(e)&&r("requestBody",e)&&n("object",e)})),Ea=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ii||t(e)&&r("response",e)&&n("object",e)})),wa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof ci||t(e)&&r("responses",e)&&n("object",e)})),ja=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Do||t(e)&&r("schema",e)&&n("object",e)})),xa=e=>Vr(e)&&e.classes.includes("boolean-json-schema"),Oa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Bo||t(e)&&r("securityRequirement",e)&&n("object",e)})),Sa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Go||t(e)&&r("server",e)&&n("object",e)})),Pa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ho||t(e)&&r("serverVariable",e)&&n("object",e)})),Aa=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ns||t(e)&&r("mediaType",e)&&n("object",e)})),Fa=Er(ea,dc,{props:{alternator:[{predicate:cc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ea.compose.methods.enter.call(this,e);return _a(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),$a=dc,ka=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Ct.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Ma extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ma.primaryClass),this.classes.push("examples")}}vr(Ma,"primaryClass","media-type-examples");const Ra=Ma,Ia=Er(ka,{init(){this.element=new Ra}});class Ca extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ca.primaryClass)}}vr(Ca,"primaryClass","media-type-encoding");const Ta=Ca,Na=Er(Ic,dc,{props:{specPath:be(["document","objects","Encoding"])},init(){this.element=new Ta}}),qa=Er(Ic,dc,{props:{specPath:be(["value"])},init(){this.element=new Bo}});class Da extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass)}}vr(Da,"primaryClass","security");const La=Da,Ba=Er(sc,dc,{init(){this.element=new La},methods:{ArrayElement(e){return e.forEach((e=>{if(zr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),jr}}}),Va=Er(hc,dc,{props:{specPath:be(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new gs}}),za=Er(hc,dc,{props:{specPath:be(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ko}}),Ua=dc,Ga=dc,Wa=Er(hc,dc,{props:{specPath:be(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new ti},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Dr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Ha=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Ja=Er(hc,dc,{props:{specPath:be(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ks},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return zr(this.element.contentProp)&&this.element.contentProp.filter(Aa).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Ka=dc,Za=dc,Xa=dc,Qa=dc,Ya=dc,el=dc,tl=dc,rl=dc,nl=dc,sl=Er(ea,dc,{props:{alternator:[{predicate:cc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ea.compose.methods.enter.call(this,e);return _a(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),il=Er(hc,dc,{props:{specPath:be(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fs}}),ol=dc,cl=dc,al=dc,ll=dc,ul=dc,pl=dc,ml=dc,hl=Er(ea,dc,{props:{alternator:[{predicate:cc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ea.compose.methods.enter.call(this,e);return _a(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),dl=dc;class fl extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(fl.primaryClass),this.classes.push("examples")}}vr(fl,"primaryClass","header-examples");const yl=fl,gl=Er(ka,{init(){this.element=new yl}}),_l=Er(Ic,dc,{props:{specPath:be(["document","objects","MediaType"])},init(){this.element=new Ct.Sb,this.element.classes.push("content")}});class bl extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(bl.primaryClass),this.classes.push("content")}}vr(bl,"primaryClass","header-content");const vl=bl,El=Er(_l,{init(){this.element=new vl}}),wl=Er(hc,dc,{props:{specPath:be(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Do}}),{items:jl}=Po.visitors.document.objects.JSONSchema.fixedFields,xl=Er(jl,{methods:{ObjectElement(e){const t=jl.compose.methods.ObjectElement.call(this,e);return _a(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),jr}}}),{properties:Ol}=Po.visitors.document.objects.JSONSchema.fixedFields,Sl=Er(Ol,{methods:{ObjectElement(e){const t=Ol.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Pl}=Po.visitors.document.objects.JSONSchema.fixedFields,Al=Er(Pl,{methods:{ArrayElement(e){return this.element=e.clone(),jr}}}),Fl=dc,$l=dc,kl=dc,Ml=dc,{JSONSchemaOrJSONReferenceVisitor:Rl}=Po.visitors,Il=Er(Rl,{methods:{ObjectElement(e){const t=Rl.compose.methods.enter.call(this,e);return _a(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Cl=Object.fromEntries(Object.entries(Po.visitors.document.objects.JSONSchema.fixedFields).map((e=>{let[t,r]=e;return r===Po.visitors.JSONSchemaOrJSONReferenceVisitor?[t,Il]:[t,r]}))),Tl=Er(hc,dc,{props:{specPath:be(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Es}}),Nl=dc;class ql extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ql.primaryClass)}}vr(ql,"primaryClass","discriminator-mapping");const Dl=ql,Ll=Er(Ic,dc,{props:{specPath:be(["value"])},init(){this.element=new Dl}}),Bl=Er(hc,dc,{props:{specPath:be(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xo}}),Vl=dc,zl=dc,Ul=dc,Gl=dc,Wl=dc,Hl=dc;class Jl extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Jl.primaryClass),this.classes.push("examples")}}vr(Jl,"primaryClass","parameter-examples");const Kl=Jl,Zl=Er(ka,{init(){this.element=new Kl}});class Xl extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Xl.primaryClass),this.classes.push("content")}}vr(Xl,"primaryClass","parameter-content");const Ql=Xl,Yl=Er(_l,{init(){this.element=new Ql}});class eu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(eu.primaryClass)}}vr(eu,"primaryClass","components-schemas");const tu=eu,ru=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new tu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class nu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(nu.primaryClass)}}vr(nu,"primaryClass","components-responses");const su=nu,iu=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new su},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Ea).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class ou extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ou.primaryClass),this.classes.push("parameters")}}vr(ou,"primaryClass","components-parameters");const cu=ou,au=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new cu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class lu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(lu.primaryClass),this.classes.push("examples")}}vr(lu,"primaryClass","components-examples");const uu=lu,pu=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new uu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class mu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(mu.primaryClass)}}vr(mu,"primaryClass","components-request-bodies");const hu=mu,du=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new hu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class fu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(fu.primaryClass)}}vr(fu,"primaryClass","components-headers");const yu=fu,gu=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new yu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(oa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class _u extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(_u.primaryClass)}}vr(_u,"primaryClass","components-security-schemes");const bu=_u,vu=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new bu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class Eu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Eu.primaryClass)}}vr(Eu,"primaryClass","components-links");const wu=Eu,ju=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new wu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class xu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(xu.primaryClass)}}vr(xu,"primaryClass","components-callbacks");const Ou=xu,Su=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Ou},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Pu=Er(hc,dc,{props:{specPath:be(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Os},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Dr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Au=dc,Fu=dc,$u=dc,ku=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Mu=Er(hc,dc,{props:{specPath:be(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ps}}),Ru=dc,Iu=dc,Cu=Er(hc,dc,{props:{specPath:be(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new js},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return zr(this.element.headers)&&this.element.headers.filter(oa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Tu=dc;class Nu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Nu.primaryClass)}}vr(Nu,"primaryClass","encoding-headers");const qu=Nu,Du=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new qu},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!oa(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),Lu=dc,Bu=dc,Vu=dc,zu=Er(Rc,dc,{props:{fieldPatternPredicate:$t(/^\/(?<path>.*)$/),specPath:be(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ys},methods:{ObjectElement(e){const t=Rc.compose.methods.ObjectElement.call(this,e);return this.element.filter(fa).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),Uu=Er(hc,dc,{props:{specPath:be(["document","objects","RequestBody"])},init(){this.element=new ni},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return zr(this.element.contentProp)&&this.element.contentProp.filter(Aa).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Gu=dc;class Wu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Wu.primaryClass),this.classes.push("content")}}vr(Wu,"primaryClass","request-body-content");const Hu=Wu,Ju=Er(_l,{init(){this.element=new Hu}}),Ku=dc,Zu=Er(Rc,dc,{props:{fieldPatternPredicate:$t(/{(?<expression>.*)}/),specPath:be(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new fs},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(fa).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),Xu=Er(hc,dc,{props:{specPath:be(["document","objects","Response"])},init(){this.element=new ii},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return zr(this.element.contentProp)&&this.element.contentProp.filter(Aa).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),zr(this.element.headers)&&this.element.headers.filter(oa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Qu=dc;class Yu extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Yu.primaryClass)}}vr(Yu,"primaryClass","response-headers");const ep=Yu,tp=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new ep},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!oa(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class rp extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(rp.primaryClass),this.classes.push("content")}}vr(rp,"primaryClass","response-content");const np=rp,sp=Er(_l,{init(){this.element=new np}});class ip extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ip.primaryClass)}}vr(ip,"primaryClass","response-links");const op=ip,cp=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new op},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),ap=Er(hc,Rc,{props:{specPathFixedFields:vi,specPathPatternedFields:vi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Ue(e.keys(),t)],hc.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Rc.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return jr}}}),lp=Er(ap,dc,{props:{specPathFixedFields:be(["document","objects","Responses"]),specPathPatternedFields:e=>cc(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:$t(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${xt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ci},methods:{ObjectElement(e){const t=ap.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Ea).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),up=Er(ea,dc,{props:{alternator:[{predicate:cc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=ea.compose.methods.enter.call(this,e);return _a(this.element)?this.element.setMetaProperty("referenced-element","response"):Ea(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),pp=Er(hc,dc,{props:{specPath:be(["document","objects","Operation"])},init(){this.element=new Hs}});class mp extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(mp.primaryClass)}}vr(mp,"primaryClass","operation-tags");const hp=mp,dp=Er(dc,{init(){this.element=new hp},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),jr}}}),fp=dc,yp=dc,gp=dc;class _p extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(_p.primaryClass),this.classes.push("parameters")}}vr(_p,"primaryClass","operation-parameters");const bp=_p,vp=Er(sc,dc,{init(){this.element=new Ct.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=cc(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);_a(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),Ep=Er(vp,{init(){this.element=new bp}}),wp=Er(ea,{props:{alternator:[{predicate:cc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=ea.compose.methods.enter.call(this,e);return _a(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class jp extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(jp.primaryClass)}}vr(jp,"primaryClass","operation-callbacks");const xp=jp,Op=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new xp},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(_a).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Sp=dc;class Pp extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Pp.primaryClass),this.classes.push("security")}}vr(Pp,"primaryClass","operation-security");const Ap=Pp,Fp=Er(sc,dc,{init(){this.element=new Ap},methods:{ArrayElement(e){return e.forEach((e=>{const t=zr(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}});class $p extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push($p.primaryClass),this.classes.push("servers")}}vr($p,"primaryClass","operation-servers");const kp=$p,Mp=Er(Gc,{init(){this.element=new kp}}),Rp=Er(hc,dc,{props:{specPath:be(["document","objects","PathItem"])},init(){this.element=new Xs},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ha).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Dr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Ip=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Cp=dc,Tp=dc;class Np extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass),this.classes.push("servers")}}vr(Np,"primaryClass","path-item-servers");const qp=Np,Dp=Er(Gc,{init(){this.element=new qp}});class Lp extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Lp.primaryClass),this.classes.push("parameters")}}vr(Lp,"primaryClass","path-item-parameters");const Bp=Lp,Vp=Er(vp,{init(){this.element=new Bp}}),zp=Er(hc,dc,{props:{specPath:be(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new zo}}),Up=dc,Gp=dc,Wp=dc,Hp=dc,Jp=dc,Kp=dc,Zp=dc,Xp=Er(hc,dc,{props:{specPath:be(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bs}}),Qp=Er(hc,dc,{props:{specPath:be(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ds}}),Yp=dc,em=dc,tm=dc;class rm extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(rm.primaryClass)}}vr(rm,"primaryClass","oauth-flow-scopes");const nm=rm,sm=Er(Ic,dc,{props:{specPath:be(["value"])},init(){this.element=new nm}});class im extends Ct.ON{constructor(e,t,r){super(e,t,r),this.classes.push(im.primaryClass)}}vr(im,"primaryClass","tags");const om=im,cm=Er(sc,dc,{init(){this.element=new om},methods:{ArrayElement(e){return e.forEach((e=>{const t=pc(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}});function am(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?am(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):am(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const um={$visitor:Wa,fixedFields:{$ref:Ha}},pm={$visitor:wl,fixedFields:lm(lm({},Cl),{},{items:xl,properties:Sl,type:Al,nullable:Fl,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:$l,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:kl,deprecated:Ml})},mm={visitors:{value:dc,document:{objects:{OpenApi:{$visitor:fc,fixedFields:{openapi:yc,info:{$ref:"#/visitors/document/objects/Info"},servers:Gc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Ba,tags:cm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:_c,fixedFields:{title:bc,description:vc,termsOfService:Ec,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:wc}},Contact:{$visitor:jc,fixedFields:{name:xc,url:Oc,email:Sc}},License:{$visitor:Pc,fixedFields:{name:Ac,url:Fc}},Server:{$visitor:Lc,fixedFields:{url:Bc,description:Vc,variables:Qc}},ServerVariable:{$visitor:Wc,fixedFields:{enum:Hc,default:Jc,description:Kc}},Components:{$visitor:Va,fixedFields:{schemas:ru,responses:iu,parameters:au,examples:pu,requestBodies:du,headers:gu,securitySchemes:vu,links:ju,callbacks:Su}},Paths:{$visitor:zu},PathItem:{$visitor:Rp,fixedFields:{$ref:Ip,summary:Cp,description:Tp,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Dp,parameters:Vp}},Operation:{$visitor:pp,fixedFields:{tags:dp,summary:fp,description:yp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:gp,parameters:Ep,requestBody:wp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Op,deprecated:Sp,security:Fp,servers:Mp}},ExternalDocumentation:{$visitor:Mu,fixedFields:{description:Ru,url:Iu}},Parameter:{$visitor:Ja,fixedFields:{name:Ka,in:Za,description:Xa,required:Qa,deprecated:Ya,allowEmptyValue:el,style:tl,explode:rl,allowReserved:nl,schema:sl,example:Hl,examples:Zl,content:Yl}},RequestBody:{$visitor:Uu,fixedFields:{description:Gu,content:Ju,required:Ku}},MediaType:{$visitor:Yc,fixedFields:{schema:Fa,example:$a,examples:Ia,encoding:Na}},Encoding:{$visitor:Cu,fixedFields:{contentType:Tu,headers:Du,style:Lu,explode:Bu,allowReserved:Vu}},Responses:{$visitor:lp,fixedFields:{default:up}},Response:{$visitor:Xu,fixedFields:{description:Qu,headers:tp,content:sp,links:cp}},Callback:{$visitor:Zu},Example:{$visitor:Pu,fixedFields:{summary:Au,description:Fu,value:$u,externalValue:ku}},Link:{$visitor:$c,fixedFields:{operationRef:kc,operationId:Mc,parameters:Nc,requestBody:qc,description:Dc,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:il,fixedFields:{description:ol,required:cl,deprecated:al,allowEmptyValue:ll,style:ul,explode:pl,allowReserved:ml,schema:hl,example:dl,examples:gl,content:El}},Tag:{$visitor:za,fixedFields:{name:Ua,description:Ga,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:um,Reference:um,JSONSchema:pm,Schema:pm,LinkDescription:Po.visitors.document.objects.LinkDescription,Media:Po.visitors.document.objects.Media,Discriminator:{$visitor:Tl,fixedFields:{propertyName:Nl,mapping:Ll}},XML:{$visitor:Bl,fixedFields:{name:Vl,namespace:zl,prefix:Ul,attribute:Gl,wrapped:Wl}},SecurityScheme:{$visitor:zp,fixedFields:{type:Up,description:Gp,name:Wp,in:Hp,scheme:Jp,bearerFormat:Kp,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Zp}},OAuthFlows:{$visitor:Xp,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:Qp,fixedFields:{authorizationUrl:Yp,tokenUrl:em,refreshUrl:tm,scopes:sm}},SecurityRequirement:{$visitor:qa}},extension:{$visitor:gc}}}},hm={namespace:e=>{const{base:t}=e;return t.register("callback",fs),t.register("components",gs),t.register("contact",bs),t.register("discriminator",Es),t.register("encoding",js),t.register("example",Os),t.register("externalDocumentation",Ps),t.register("header",Fs),t.register("info",ks),t.register("license",Rs),t.register("link",Cs),t.register("mediaType",Ns),t.register("oAuthFlow",Ds),t.register("oAuthFlows",Bs),t.register("openapi",zs),t.register("openApi3_0",Gs),t.register("operation",Hs),t.register("parameter",Ks),t.register("pathItem",Xs),t.register("paths",Ys),t.register("reference",ti),t.register("requestBody",ni),t.register("response",ii),t.register("responses",ci),t.register("schema",Do),t.register("securityRequirement",Bo),t.register("securityScheme",zo),t.register("server",Go),t.register("serverVariable",Ho),t.register("tag",Ko),t.register("xml",Xo),t}};function dm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function fm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dm(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ym=()=>{const e=sr(hm);return{predicates:fm(fm(fm({},s),i),{},{isStringElement:Dr}),namespace:e}};function gm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const _m=function(e){let{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,Ct.Qc)(e),s=gi(mm),i=dn(t,[],s);return un(n,i,{state:{specObj:s}}),gn(i.element,r,{toolboxCreator:ym,visitorOptions:{keyMap:tc,nodeTypeGetter:ec}})},bm=e=>function(t){return _m(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gm(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};fs.refract=bm(["visitors","document","objects","Callback","$visitor"]),gs.refract=bm(["visitors","document","objects","Components","$visitor"]),bs.refract=bm(["visitors","document","objects","Contact","$visitor"]),Os.refract=bm(["visitors","document","objects","Example","$visitor"]),Es.refract=bm(["visitors","document","objects","Discriminator","$visitor"]),js.refract=bm(["visitors","document","objects","Encoding","$visitor"]),Ps.refract=bm(["visitors","document","objects","ExternalDocumentation","$visitor"]),Fs.refract=bm(["visitors","document","objects","Header","$visitor"]),ks.refract=bm(["visitors","document","objects","Info","$visitor"]),Rs.refract=bm(["visitors","document","objects","License","$visitor"]),Cs.refract=bm(["visitors","document","objects","Link","$visitor"]),Ns.refract=bm(["visitors","document","objects","MediaType","$visitor"]),Ds.refract=bm(["visitors","document","objects","OAuthFlow","$visitor"]),Bs.refract=bm(["visitors","document","objects","OAuthFlows","$visitor"]),zs.refract=bm(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Gs.refract=bm(["visitors","document","objects","OpenApi","$visitor"]),Hs.refract=bm(["visitors","document","objects","Operation","$visitor"]),Ks.refract=bm(["visitors","document","objects","Parameter","$visitor"]),Xs.refract=bm(["visitors","document","objects","PathItem","$visitor"]),Ys.refract=bm(["visitors","document","objects","Paths","$visitor"]),ti.refract=bm(["visitors","document","objects","Reference","$visitor"]),ni.refract=bm(["visitors","document","objects","RequestBody","$visitor"]),ii.refract=bm(["visitors","document","objects","Response","$visitor"]),ci.refract=bm(["visitors","document","objects","Responses","$visitor"]),Do.refract=bm(["visitors","document","objects","Schema","$visitor"]),Bo.refract=bm(["visitors","document","objects","SecurityRequirement","$visitor"]),zo.refract=bm(["visitors","document","objects","SecurityScheme","$visitor"]),Go.refract=bm(["visitors","document","objects","Server","$visitor"]),Ho.refract=bm(["visitors","document","objects","ServerVariable","$visitor"]),Ko.refract=bm(["visitors","document","objects","Tag","$visitor"]),Xo.refract=bm(["visitors","document","objects","XML","$visitor"]);const vm=class extends fs{};const Em=class extends gs{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const wm=class extends bs{};const jm=class extends Es{};const xm=class extends js{};const Om=class extends Os{};const Sm=class extends Ps{};const Pm=class extends Fs{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Am=class extends ks{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Fm extends Ct.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}vr(Fm,"default",new Fm("https://spec.openapis.org/oas/3.1/dialect/base"));const $m=Fm;const km=class extends Rs{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Mm=class extends Cs{};const Rm=class extends Ns{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Im=class extends Ds{};const Cm=class extends Bs{};const Tm=class extends zs{};class Nm extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const qm=Nm;const Dm=class extends Hs{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Lm=class extends Ks{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Bm=class extends Xs{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const Vm=class extends Ys{};class zm extends ti{}Object.defineProperty(zm.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(zm.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Um=zm;const Gm=class extends ni{};const Wm=class extends ii{};const Hm=class extends ci{};class Jm extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Km=Jm;const Zm=class extends Bo{};const Xm=class extends zo{};const Qm=class extends Go{};const Ym=class extends Ho{};const eh=class extends Ko{};const th=class extends Xo{},rh=Er(hc,dc,{props:{specPath:be(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new qm,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,hc.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:nh}}}}}=mm,sh=Er(nh,{init(){this.element=new Am}}),ih=dc,{visitors:{document:{objects:{Contact:{$visitor:oh}}}}}=mm,ch=Er(oh,{init(){this.element=new wm}}),{visitors:{document:{objects:{License:{$visitor:ah}}}}}=mm,lh=Er(ah,{init(){this.element=new km}}),uh=dc,{visitors:{document:{objects:{Link:{$visitor:ph}}}}}=mm,mh=Er(ph,{init(){this.element=new Mm}}),hh=Er(sc,dc,{methods:{StringElement(e){const t=new $m(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,jr}}}),{visitors:{document:{objects:{Server:{$visitor:dh}}}}}=mm,fh=Er(dh,{init(){this.element=new Qm}}),{visitors:{document:{objects:{ServerVariable:{$visitor:yh}}}}}=mm,gh=Er(yh,{init(){this.element=new Ym}}),{visitors:{document:{objects:{MediaType:{$visitor:_h}}}}}=mm,bh=Er(_h,{init(){this.element=new Rm}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:vh}}}}}=mm,Eh=Er(vh,{init(){this.element=new Zm}}),{visitors:{document:{objects:{Components:{$visitor:wh}}}}}=mm,jh=Er(wh,{init(){this.element=new Em}}),{visitors:{document:{objects:{Tag:{$visitor:xh}}}}}=mm,Oh=Er(xh,{init(){this.element=new eh}}),{visitors:{document:{objects:{Reference:{$visitor:Sh}}}}}=mm,Ph=Er(Sh,{init(){this.element=new Um}}),Ah=dc,Fh=dc,{visitors:{document:{objects:{Parameter:{$visitor:$h}}}}}=mm,kh=Er($h,{init(){this.element=new Lm}}),{visitors:{document:{objects:{Header:{$visitor:Mh}}}}}=mm,Rh=Er(Mh,{init(){this.element=new Pm}}),Ih=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof vm||t(e)&&r("callback",e)&&n("object",e)})),Ch=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Em||t(e)&&r("components",e)&&n("object",e)})),Th=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof wm||t(e)&&r("contact",e)&&n("object",e)})),Nh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Om||t(e)&&r("example",e)&&n("object",e)})),qh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Sm||t(e)&&r("externalDocumentation",e)&&n("object",e)})),Dh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Pm||t(e)&&r("header",e)&&n("object",e)})),Lh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Am||t(e)&&r("info",e)&&n("object",e)})),Bh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof $m||t(e)&&r("jsonSchemaDialect",e)&&n("string",e)})),Vh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof km||t(e)&&r("license",e)&&n("object",e)})),zh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Mm||t(e)&&r("link",e)&&n("object",e)})),Uh=e=>{if(!zh(e))return!1;if(!Dr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Gh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Tm||t(e)&&r("openapi",e)&&n("string",e)})),Wh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n,hasClass:s}=e;return e=>e instanceof qm||t(e)&&r("openApi3_1",e)&&n("object",e)&&s("api",e)})),Hh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Dm||t(e)&&r("operation",e)&&n("object",e)})),Jh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Lm||t(e)&&r("parameter",e)&&n("object",e)})),Kh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Bm||t(e)&&r("pathItem",e)&&n("object",e)})),Zh=e=>{if(!Kh(e))return!1;if(!Dr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Xh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Vm||t(e)&&r("paths",e)&&n("object",e)})),Qh=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Um||t(e)&&r("reference",e)&&n("object",e)})),Yh=e=>{if(!Qh(e))return!1;if(!Dr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ed=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Gm||t(e)&&r("requestBody",e)&&n("object",e)})),td=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Wm||t(e)&&r("response",e)&&n("object",e)})),rd=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Hm||t(e)&&r("responses",e)&&n("object",e)})),nd=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Km||t(e)&&r("schema",e)&&n("object",e)})),sd=e=>Vr(e)&&e.classes.includes("boolean-json-schema"),id=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Zm||t(e)&&r("securityRequirement",e)&&n("object",e)})),od=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Qm||t(e)&&r("server",e)&&n("object",e)})),cd=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Ym||t(e)&&r("serverVariable",e)&&n("object",e)})),ad=Nr((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:n}=e;return e=>e instanceof Rm||t(e)&&r("mediaType",e)&&n("object",e)})),ld=Er({props:{parent:null},init(e){let{parent:t=this.parent}=e;this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),ud=Er(hc,ld,dc,{props:{specPath:be(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&Bh(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Dr(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():$m.default.toValue(),e},t=t=>{if(Tt(this.parent)&&!Dr(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(nd(this.parent)&&!Dr(t.get("$schema"))){var r,n;const e=Be(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(n=this.parent.$schema)||void 0===n?void 0:n.toValue());this.element.setMetaProperty("inherited$schema",e)}},r=e=>{var t;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new Ct.ON,n=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();Zi(n)&&r.push(n),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new Km,t(e),r(e),this.parent=this.element;const n=hc.compose.methods.ObjectElement.call(this,e);return Dr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=e.clone(),this.element.classes.push("boolean-json-schema"),jr}}}),pd=dc,md=Er(dc,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),jr}}}),hd=dc,dd=dc,fd=dc,yd=dc,gd=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),_d=Er(Ic,ld,dc,{props:{specPath:be(["document","objects","Schema"])},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-$defs")}}),bd=dc,vd=Er(sc,ld,dc,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),jr}}}),Ed=Er(sc,ld,dc,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),jr}}}),wd=Er(sc,ld,dc,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),jr}}}),jd=Er(Ic,ld,dc,{props:{specPath:be(["document","objects","Schema"])},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),xd=Er(sc,ld,dc,{init(){this.element=new Ct.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(zr(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),jr}}}),Od=Er(Ic,ld,dc,{props:{specPath:be(["document","objects","Schema"])},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-properties")}}),Sd=Er(Ic,ld,dc,{props:{specPath:be(["document","objects","Schema"])},init(){this.element=new Ct.Sb,this.element.classes.push("json-schema-patternProperties")}}),Pd=Er(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),jr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),jr}}}),Ad=Er(dc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),jr}}}),Fd=dc,$d=dc,kd=dc,Md=dc,Rd=dc,Id=dc,Cd=dc,Td=dc,Nd=dc,qd=dc,Dd=dc,Ld=dc,Bd=dc,Vd=dc,zd=dc,Ud=dc,Gd=Er(dc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),jr}}}),Wd=Er(dc,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),jr}}}),Hd=dc,Jd=dc,Kd=dc,Zd=dc,Xd=dc,Qd=dc,Yd=Er(dc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),jr}}}),ef=dc,tf=dc,rf=dc,nf=dc,{visitors:{document:{objects:{Discriminator:{$visitor:sf}}}}}=mm,of=Er(sf,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new jm}}),{visitors:{document:{objects:{XML:{$visitor:cf}}}}}=mm,af=Er(cf,{init(){this.element=new th}}),lf=Er(Ic,dc,{props:{specPath:be(["document","objects","Schema"])},init(){this.element=new tu}});class uf extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(uf.primaryClass)}}vr(uf,"primaryClass","components-path-items");const pf=uf,mf=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new pf},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(Qh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:hf}}}}}=mm,df=Er(hf,{init(){this.element=new Om}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:ff}}}}}=mm,yf=Er(ff,{init(){this.element=new Sm}}),{visitors:{document:{objects:{Encoding:{$visitor:gf}}}}}=mm,_f=Er(gf,{init(){this.element=new xm}}),{visitors:{document:{objects:{Paths:{$visitor:bf}}}}}=mm,vf=Er(bf,{init(){this.element=new Vm}}),{visitors:{document:{objects:{RequestBody:{$visitor:Ef}}}}}=mm,wf=Er(Ef,{init(){this.element=new Gm}}),{visitors:{document:{objects:{Callback:{$visitor:jf}}}}}=mm,xf=Er(jf,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new vm},methods:{ObjectElement(e){const t=jf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Qh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:Of}}}}}=mm,Sf=Er(Of,{init(){this.element=new Wm}}),{visitors:{document:{objects:{Responses:{$visitor:Pf}}}}}=mm,Af=Er(Pf,{init(){this.element=new Hm}}),{visitors:{document:{objects:{Operation:{$visitor:Ff}}}}}=mm,$f=Er(Ff,{init(){this.element=new Dm}}),{visitors:{document:{objects:{PathItem:{$visitor:kf}}}}}=mm,Mf=Er(kf,{init(){this.element=new Bm}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:Rf}}}}}=mm,If=Er(Rf,{init(){this.element=new Xm}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:Cf}}}}}=mm,Tf=Er(Cf,{init(){this.element=new Cm}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:Nf}}}}}=mm,qf=Er(Nf,{init(){this.element=new Im}});class Df extends Ct.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Df.primaryClass)}}vr(Df,"primaryClass","webhooks");const Lf=Df,Bf=Er(Ic,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Lf},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(Qh).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Kh).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),Vf={visitors:{value:mm.visitors.value,document:{objects:{OpenApi:{$visitor:rh,fixedFields:{openapi:mm.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:hh,servers:mm.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Bf,components:{$ref:"#/visitors/document/objects/Components"},security:mm.visitors.document.objects.OpenApi.fixedFields.security,tags:mm.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:sh,fixedFields:{title:mm.visitors.document.objects.Info.fixedFields.title,description:mm.visitors.document.objects.Info.fixedFields.description,summary:ih,termsOfService:mm.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:mm.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:ch,fixedFields:{name:mm.visitors.document.objects.Contact.fixedFields.name,url:mm.visitors.document.objects.Contact.fixedFields.url,email:mm.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:lh,fixedFields:{name:mm.visitors.document.objects.License.fixedFields.name,identifier:uh,url:mm.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:fh,fixedFields:{url:mm.visitors.document.objects.Server.fixedFields.url,description:mm.visitors.document.objects.Server.fixedFields.description,variables:mm.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:gh,fixedFields:{enum:mm.visitors.document.objects.ServerVariable.fixedFields.enum,default:mm.visitors.document.objects.ServerVariable.fixedFields.default,description:mm.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:jh,fixedFields:{schemas:lf,responses:mm.visitors.document.objects.Components.fixedFields.responses,parameters:mm.visitors.document.objects.Components.fixedFields.parameters,examples:mm.visitors.document.objects.Components.fixedFields.examples,requestBodies:mm.visitors.document.objects.Components.fixedFields.requestBodies,headers:mm.visitors.document.objects.Components.fixedFields.headers,securitySchemes:mm.visitors.document.objects.Components.fixedFields.securitySchemes,links:mm.visitors.document.objects.Components.fixedFields.links,callbacks:mm.visitors.document.objects.Components.fixedFields.callbacks,pathItems:mf}},Paths:{$visitor:vf},PathItem:{$visitor:Mf,fixedFields:{$ref:mm.visitors.document.objects.PathItem.fixedFields.$ref,summary:mm.visitors.document.objects.PathItem.fixedFields.summary,description:mm.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:mm.visitors.document.objects.PathItem.fixedFields.servers,parameters:mm.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:$f,fixedFields:{tags:mm.visitors.document.objects.Operation.fixedFields.tags,summary:mm.visitors.document.objects.Operation.fixedFields.summary,description:mm.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:mm.visitors.document.objects.Operation.fixedFields.operationId,parameters:mm.visitors.document.objects.Operation.fixedFields.parameters,requestBody:mm.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:mm.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:mm.visitors.document.objects.Operation.fixedFields.deprecated,security:mm.visitors.document.objects.Operation.fixedFields.security,servers:mm.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:yf,fixedFields:{description:mm.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:mm.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:kh,fixedFields:{name:mm.visitors.document.objects.Parameter.fixedFields.name,in:mm.visitors.document.objects.Parameter.fixedFields.in,description:mm.visitors.document.objects.Parameter.fixedFields.description,required:mm.visitors.document.objects.Parameter.fixedFields.required,deprecated:mm.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:mm.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:mm.visitors.document.objects.Parameter.fixedFields.style,explode:mm.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:mm.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mm.visitors.document.objects.Parameter.fixedFields.example,examples:mm.visitors.document.objects.Parameter.fixedFields.examples,content:mm.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:wf,fixedFields:{description:mm.visitors.document.objects.RequestBody.fixedFields.description,content:mm.visitors.document.objects.RequestBody.fixedFields.content,required:mm.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:bh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:mm.visitors.document.objects.MediaType.fixedFields.example,examples:mm.visitors.document.objects.MediaType.fixedFields.examples,encoding:mm.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:_f,fixedFields:{contentType:mm.visitors.document.objects.Encoding.fixedFields.contentType,headers:mm.visitors.document.objects.Encoding.fixedFields.headers,style:mm.visitors.document.objects.Encoding.fixedFields.style,explode:mm.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:mm.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Af,fixedFields:{default:mm.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Sf,fixedFields:{description:mm.visitors.document.objects.Response.fixedFields.description,headers:mm.visitors.document.objects.Response.fixedFields.headers,content:mm.visitors.document.objects.Response.fixedFields.content,links:mm.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:xf},Example:{$visitor:df,fixedFields:{summary:mm.visitors.document.objects.Example.fixedFields.summary,description:mm.visitors.document.objects.Example.fixedFields.description,value:mm.visitors.document.objects.Example.fixedFields.value,externalValue:mm.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:mh,fixedFields:{operationRef:mm.visitors.document.objects.Link.fixedFields.operationRef,operationId:mm.visitors.document.objects.Link.fixedFields.operationId,parameters:mm.visitors.document.objects.Link.fixedFields.parameters,requestBody:mm.visitors.document.objects.Link.fixedFields.requestBody,description:mm.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Rh,fixedFields:{description:mm.visitors.document.objects.Header.fixedFields.description,required:mm.visitors.document.objects.Header.fixedFields.required,deprecated:mm.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:mm.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:mm.visitors.document.objects.Header.fixedFields.style,explode:mm.visitors.document.objects.Header.fixedFields.explode,allowReserved:mm.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:mm.visitors.document.objects.Header.fixedFields.example,examples:mm.visitors.document.objects.Header.fixedFields.examples,content:mm.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Oh,fixedFields:{name:mm.visitors.document.objects.Tag.fixedFields.name,description:mm.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Ph,fixedFields:{$ref:mm.visitors.document.objects.Reference.fixedFields.$ref,summary:Ah,description:Fh}},Schema:{$visitor:ud,fixedFields:{$schema:pd,$vocabulary:md,$id:hd,$anchor:dd,$dynamicAnchor:fd,$dynamicRef:yd,$ref:gd,$defs:_d,$comment:bd,allOf:vd,anyOf:Ed,oneOf:wd,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:jd,prefixItems:xd,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Od,patternProperties:Sd,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:Pd,enum:Ad,const:Fd,multipleOf:$d,maximum:kd,exclusiveMaximum:Md,minimum:Rd,exclusiveMinimum:Id,maxLength:Cd,minLength:Td,pattern:Nd,maxItems:qd,minItems:Dd,uniqueItems:Ld,maxContains:Bd,minContains:Vd,maxProperties:zd,minProperties:Ud,required:Gd,dependentRequired:Wd,title:Hd,description:Jd,default:Kd,deprecated:Zd,readOnly:Xd,writeOnly:Qd,examples:Yd,format:ef,contentEncoding:tf,contentMediaType:rf,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:nf}},Discriminator:{$visitor:of,fixedFields:{propertyName:mm.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:mm.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:af,fixedFields:{name:mm.visitors.document.objects.XML.fixedFields.name,namespace:mm.visitors.document.objects.XML.fixedFields.namespace,prefix:mm.visitors.document.objects.XML.fixedFields.prefix,attribute:mm.visitors.document.objects.XML.fixedFields.attribute,wrapped:mm.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:If,fixedFields:{type:mm.visitors.document.objects.SecurityScheme.fixedFields.type,description:mm.visitors.document.objects.SecurityScheme.fixedFields.description,name:mm.visitors.document.objects.SecurityScheme.fixedFields.name,in:mm.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:mm.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:mm.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:mm.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Tf,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:qf,fixedFields:{authorizationUrl:mm.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:mm.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:mm.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:mm.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Eh}},extension:{$visitor:mm.visitors.document.extension.$visitor}}}};function zf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Uf=e=>{if(qr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Gf=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?zf(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):zf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},ln),Wf={namespace:e=>{const{base:t}=e;return t.register("callback",vm),t.register("components",Em),t.register("contact",wm),t.register("discriminator",jm),t.register("encoding",xm),t.register("example",Om),t.register("externalDocumentation",Sm),t.register("header",Pm),t.register("info",Am),t.register("jsonSchemaDialect",$m),t.register("license",km),t.register("link",Mm),t.register("mediaType",Rm),t.register("oAuthFlow",Im),t.register("oAuthFlows",Cm),t.register("openapi",Tm),t.register("openApi3_1",qm),t.register("operation",Dm),t.register("parameter",Lm),t.register("pathItem",Bm),t.register("paths",Vm),t.register("reference",Um),t.register("requestBody",Gm),t.register("response",Wm),t.register("responses",Hm),t.register("schema",Km),t.register("securityRequirement",Zm),t.register("securityScheme",Xm),t.register("server",Qm),t.register("serverVariable",Ym),t.register("tag",eh),t.register("xml",th),t}};function Hf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Jf(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Hf(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Hf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Kf=()=>{const e=sr(Wf);return{predicates:Jf(Jf({},o),{},{isStringElement:Dr,isArrayElement:Ur,isObjectElement:zr,includesClasses:tn}),namespace:e}};function Zf(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}const Xf=function(e){let{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,Ct.Qc)(e),s=gi(Vf),i=dn(t,[],s);return un(n,i,{state:{specObj:s}}),gn(i.element,r,{toolboxCreator:Kf,visitorOptions:{keyMap:Gf,nodeTypeGetter:Uf}})},Qf=e=>function(t){return Xf(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Zf(Object(r),!0).forEach((function(t){vr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Zf(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};vm.refract=Qf(["visitors","document","objects","Callback","$visitor"]),Em.refract=Qf(["visitors","document","objects","Components","$visitor"]),wm.refract=Qf(["visitors","document","objects","Contact","$visitor"]),Om.refract=Qf(["visitors","document","objects","Example","$visitor"]),jm.refract=Qf(["visitors","document","objects","Discriminator","$visitor"]),xm.refract=Qf(["visitors","document","objects","Encoding","$visitor"]),Sm.refract=Qf(["visitors","document","objects","ExternalDocumentation","$visitor"]),Pm.refract=Qf(["visitors","document","objects","Header","$visitor"]),Am.refract=Qf(["visitors","document","objects","Info","$visitor"]),$m.refract=Qf(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),km.refract=Qf(["visitors","document","objects","License","$visitor"]),Mm.refract=Qf(["visitors","document","objects","Link","$visitor"]),Rm.refract=Qf(["visitors","document","objects","MediaType","$visitor"]),Im.refract=Qf(["visitors","document","objects","OAuthFlow","$visitor"]),Cm.refract=Qf(["visitors","document","objects","OAuthFlows","$visitor"]),Tm.refract=Qf(["visitors","document","objects","OpenApi","fixedFields","openapi"]),qm.refract=Qf(["visitors","document","objects","OpenApi","$visitor"]),Dm.refract=Qf(["visitors","document","objects","Operation","$visitor"]),Lm.refract=Qf(["visitors","document","objects","Parameter","$visitor"]),Bm.refract=Qf(["visitors","document","objects","PathItem","$visitor"]),Vm.refract=Qf(["visitors","document","objects","Paths","$visitor"]),Um.refract=Qf(["visitors","document","objects","Reference","$visitor"]),Gm.refract=Qf(["visitors","document","objects","RequestBody","$visitor"]),Wm.refract=Qf(["visitors","document","objects","Response","$visitor"]),Hm.refract=Qf(["visitors","document","objects","Responses","$visitor"]),Km.refract=Qf(["visitors","document","objects","Schema","$visitor"]),Zm.refract=Qf(["visitors","document","objects","SecurityRequirement","$visitor"]),Xm.refract=Qf(["visitors","document","objects","SecurityScheme","$visitor"]),Qm.refract=Qf(["visitors","document","objects","Server","$visitor"]),Ym.refract=Qf(["visitors","document","objects","ServerVariable","$visitor"]),eh.refract=Qf(["visitors","document","objects","Tag","$visitor"]),th.refract=Qf(["visitors","document","objects","XML","$visitor"]);const Yf=class extends Array{constructor(){super(...arguments),vr(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class ey extends Yf{filterByFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"3.1.0",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"generic";const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";return Je(this.filterByFormat(e))}}const ty=new ey("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),ry=new ey(...ty.filterByFormat("generic"),...ty.filterByFormat("json")),ny=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,sy=async e=>ny.test(e)&&await(async e=>{if(!hs.test(e))return!1;try{return"ERROR"!==(await hr(e)).rootNode.type}catch{return!1}})(e),iy=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Et({},"refractorOpts",t),n=_t(["refractorOpts"],t),s=await async function(e){let{sourceMap:t=!1,syntacticAnalysis:r="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await hr(e);let s;return s="indirect"===r?ms(n,{sourceMap:t}):Pn(n,{sourceMap:t}),s}(e,n),{result:i}=s;if(It(i)){const e=qm.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},oy=sr(Wf)})(),n})()));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomParserAdapterOpenApiJson3_1=t():e.apidomParserAdapterOpenApiJson3_1=t()}(self,(()=>(()=>{var __webpack_modules__={8385:(e,t,r)=>{var s=r(6174);e.exports=s},5271:(e,t,r)=>{var s=r(7820);e.exports=s},7574:(e,t,r)=>{var s=r(2);e.exports=s},33:(e,t,r)=>{var s=r(5636);e.exports=s},9821:(e,t,r)=>{var s=r(2285);r(9031),e.exports=s},8008:(e,t,r)=>{var s=r(8535);e.exports=s},164:(e,t,r)=>{var s=r(6042);e.exports=s},2089:(e,t,r)=>{r(2276);var s=r(5607);e.exports=s("Array").indexOf},2604:(e,t,r)=>{var s=r(8902),n=r(2089),i=Array.prototype;e.exports=function(e){var t=e.indexOf;return e===i||s(i,e)&&t===i.indexOf?n:t}},3512:(e,t,r)=>{r(297);var s=r(7545).Object,n=e.exports=function(e,t,r){return s.defineProperty(e,t,r)};s.defineProperty.sham&&(n.sham=!0)},2921:(e,t,r)=>{r(6187);var s=r(7545);e.exports=s.Object.getOwnPropertySymbols},8651:(e,t,r)=>{r(2647);var s=r(7545);e.exports=s.Object.keys},5008:(e,t,r)=>{r(9106),r(6663),r(6187),r(9781),r(492),r(6681),r(9594),r(3665),r(9017),r(1250),r(9786),r(503),r(6565),r(9322),r(3610),r(6886),r(3514),r(8671),r(8556),r(1367);var s=r(7545);e.exports=s.Symbol},994:(e,t,r)=>{r(8939),r(6663),r(5454),r(3665);var s=r(9207);e.exports=s.f("iterator")},290:(e,t,r)=>{r(2432),r(3610);var s=r(9207);e.exports=s.f("toPrimitive")},2747:(e,t,r)=>{var s=r(8385);e.exports=s},229:(e,t,r)=>{var s=r(5271);e.exports=s},5090:(e,t,r)=>{var s=r(7574);e.exports=s},5483:(e,t,r)=>{var s=r(33);e.exports=s},2185:(e,t,r)=>{var s=r(9821);r(177),r(2725),r(1806),r(6658),r(4212),r(8658),r(1875),r(4592),r(6680),e.exports=s},9982:(e,t,r)=>{var s=r(8008);e.exports=s},8241:(e,t,r)=>{var s=r(164);e.exports=s},6235:(e,t,r)=>{var s=r(6447),n=r(9288),i=TypeError;e.exports=function(e){if(s(e))return e;throw i(n(e)+" is not a function")}},7757:(e,t,r)=>{var s=r(6447),n=String,i=TypeError;e.exports=function(e){if("object"==typeof e||s(e))return e;throw i("Can't set "+n(e)+" as a prototype")}},7423:e=>{e.exports=function(){}},1138:(e,t,r)=>{var s=r(5744),n=String,i=TypeError;e.exports=function(e){if(s(e))return e;throw i(n(e)+" is not an object")}},8180:(e,t,r)=>{var s=r(101),n=r(7739),i=r(4104),o=function(e){return function(t,r,o){var a,c=s(t),l=i(c),u=n(o,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},454:(e,t,r)=>{var s=r(8043),n=r(4120),i=r(2202),o=r(1795),a=r(4104),c=r(1321),l=n([].push),u=function(e){var t=1==e,r=2==e,n=3==e,u=4==e,p=6==e,m=7==e,d=5==e||p;return function(h,_,f,y){for(var g,b,v=o(h),E=i(v),w=s(_,f),O=a(E),x=0,j=y||c,S=t?j(h,O):r||m?j(h,0):void 0;O>x;x++)if((d||x in E)&&(b=w(g=E[x],x,v),e))if(t)S[x]=b;else if(b)switch(e){case 3:return!0;case 5:return g;case 6:return x;case 2:l(S,g)}else switch(e){case 4:return!1;case 7:l(S,g)}return p?-1:n||u?u:S}};e.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},242:(e,t,r)=>{var s=r(6192),n=r(8182),i=r(4218),o=n("species");e.exports=function(e){return i>=51||!s((function(){var t=[];return(t.constructor={})[o]=function(){return{foo:1}},1!==t[e](Boolean).foo}))}},424:(e,t,r)=>{"use strict";var s=r(6192);e.exports=function(e,t){var r=[][e];return!!r&&s((function(){r.call(null,t||function(){return 1},1)}))}},1923:(e,t,r)=>{var s=r(7739),n=r(4104),i=r(9361),o=Array,a=Math.max;e.exports=function(e,t,r){for(var c=n(e),l=s(t,c),u=s(void 0===r?c:r,c),p=o(a(u-l,0)),m=0;l<u;l++,m++)i(p,m,e[l]);return p.length=m,p}},3096:(e,t,r)=>{var s=r(4120);e.exports=s([].slice)},3712:(e,t,r)=>{var s=r(4770),n=r(2091),i=r(5744),o=r(8182)("species"),a=Array;e.exports=function(e){var t;return s(e)&&(t=e.constructor,(n(t)&&(t===a||s(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?a:t}},1321:(e,t,r)=>{var s=r(3712);e.exports=function(e,t){return new(s(e))(0===t?0:t)}},9272:(e,t,r)=>{var s=r(4120),n=s({}.toString),i=s("".slice);e.exports=function(e){return i(n(e),8,-1)}},4696:(e,t,r)=>{var s=r(3471),n=r(6447),i=r(9272),o=r(8182)("toStringTag"),a=Object,c="Arguments"==i(function(){return arguments}());e.exports=s?i:function(e){var t,r,s;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"==(s=i(t))&&n(t.callee)?"Arguments":s}},4635:(e,t,r)=>{var s=r(6192);e.exports=!s((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},7271:e=>{e.exports=function(e,t){return{value:e,done:t}}},8711:(e,t,r)=>{var s=r(69),n=r(2760),i=r(774);e.exports=s?function(e,t,r){return n.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},774:e=>{e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},9361:(e,t,r)=>{"use strict";var s=r(77),n=r(2760),i=r(774);e.exports=function(e,t,r){var o=s(t);o in e?n.f(e,o,i(0,r)):e[o]=r}},2807:(e,t,r)=>{var s=r(2760);e.exports=function(e,t,r){return s.f(e,t,r)}},9362:(e,t,r)=>{var s=r(8711);e.exports=function(e,t,r,n){return n&&n.enumerable?e[t]=r:s(e,t,r),e}},5098:(e,t,r)=>{var s=r(8576),n=Object.defineProperty;e.exports=function(e,t){try{n(s,e,{value:t,configurable:!0,writable:!0})}catch(r){s[e]=t}return t}},69:(e,t,r)=>{var s=r(6192);e.exports=!s((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]}))},8382:e=>{var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},7449:(e,t,r)=>{var s=r(8576),n=r(5744),i=s.document,o=n(i)&&n(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},9425:e=>{var t=TypeError;e.exports=function(e){if(e>9007199254740991)throw t("Maximum allowed index exceeded");return e}},7365:e=>{e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},8989:e=>{e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},4218:(e,t,r)=>{var s,n,i=r(8576),o=r(8989),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(n=(s=u.split("."))[0]>0&&s[0]<4?1:+(s[0]+s[1])),!n&&o&&(!(s=o.match(/Edge\/(\d+)/))||s[1]>=74)&&(s=o.match(/Chrome\/(\d+)/))&&(n=+s[1]),e.exports=n},5607:(e,t,r)=>{var s=r(7545);e.exports=function(e){return s[e+"Prototype"]}},2952:e=>{e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3085:(e,t,r)=>{"use strict";var s=r(8576),n=r(6298),i=r(4914),o=r(6447),a=r(5141).f,c=r(9245),l=r(7545),u=r(8043),p=r(8711),m=r(4500),d=function(e){var t=function(r,s,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,s)}return new e(r,s,i)}return n(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,n,h,_,f,y,g,b,v,E=e.target,w=e.global,O=e.stat,x=e.proto,j=w?s:O?s[E]:(s[E]||{}).prototype,S=w?l:l[E]||p(l,E,{})[E],P=S.prototype;for(_ in t)n=!(r=c(w?_:E+(O?".":"#")+_,e.forced))&&j&&m(j,_),y=S[_],n&&(g=e.dontCallGetSet?(v=a(j,_))&&v.value:j[_]),f=n&&g?g:t[_],n&&typeof y==typeof f||(b=e.bind&&n?u(f,s):e.wrap&&n?d(f):x&&o(f)?i(f):f,(e.sham||f&&f.sham||y&&y.sham)&&p(b,"sham",!0),p(S,_,b),x&&(m(l,h=E+"Prototype")||p(l,h,{}),p(l[h],_,f),e.real&&P&&(r||!P[_])&&p(P,_,f)))}},6192:e=>{e.exports=function(e){try{return!!e()}catch(e){return!0}}},6298:(e,t,r)=>{var s=r(2784),n=Function.prototype,i=n.apply,o=n.call;e.exports="object"==typeof Reflect&&Reflect.apply||(s?o.bind(i):function(){return o.apply(i,arguments)})},8043:(e,t,r)=>{var s=r(4914),n=r(6235),i=r(2784),o=s(s.bind);e.exports=function(e,t){return n(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},2784:(e,t,r)=>{var s=r(6192);e.exports=!s((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8922:(e,t,r)=>{var s=r(2784),n=Function.prototype.call;e.exports=s?n.bind(n):function(){return n.apply(n,arguments)}},2282:(e,t,r)=>{var s=r(69),n=r(4500),i=Function.prototype,o=s&&Object.getOwnPropertyDescriptor,a=n(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},6419:(e,t,r)=>{var s=r(4120),n=r(6235);e.exports=function(e,t,r){try{return s(n(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},4914:(e,t,r)=>{var s=r(9272),n=r(4120);e.exports=function(e){if("Function"===s(e))return n(e)}},4120:(e,t,r)=>{var s=r(2784),n=Function.prototype,i=n.call,o=s&&n.bind.bind(i,i);e.exports=s?o:function(e){return function(){return i.apply(e,arguments)}}},150:(e,t,r)=>{var s=r(7545),n=r(8576),i=r(6447),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(s[e])||o(n[e]):s[e]&&s[e][t]||n[e]&&n[e][t]}},9202:(e,t,r)=>{var s=r(4120),n=r(4770),i=r(6447),o=r(9272),a=r(4845),c=s([].push);e.exports=function(e){if(i(e))return e;if(n(e)){for(var t=e.length,r=[],s=0;s<t;s++){var l=e[s];"string"==typeof l?c(r,l):"number"!=typeof l&&"Number"!=o(l)&&"String"!=o(l)||c(r,a(l))}var u=r.length,p=!0;return function(e,t){if(p)return p=!1,t;if(n(this))return t;for(var s=0;s<u;s++)if(r[s]===e)return t}}}},5037:(e,t,r)=>{var s=r(6235),n=r(5646);e.exports=function(e,t){var r=e[t];return n(r)?void 0:s(r)}},8576:function(e,t,r){var s=function(e){return e&&e.Math==Math&&e};e.exports=s("object"==typeof globalThis&&globalThis)||s("object"==typeof window&&window)||s("object"==typeof self&&self)||s("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},4500:(e,t,r)=>{var s=r(4120),n=r(1795),i=s({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(n(e),t)}},4535:e=>{e.exports={}},7403:(e,t,r)=>{var s=r(150);e.exports=s("document","documentElement")},188:(e,t,r)=>{var s=r(69),n=r(6192),i=r(7449);e.exports=!s&&!n((function(){return 7!=Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},2202:(e,t,r)=>{var s=r(4120),n=r(6192),i=r(9272),o=Object,a=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?a(e,""):o(e)}:o},9516:(e,t,r)=>{var s=r(4120),n=r(6447),i=r(6434),o=s(Function.toString);n(i.inspectSource)||(i.inspectSource=function(e){return o(e)}),e.exports=i.inspectSource},3326:(e,t,r)=>{var s,n,i,o=r(5278),a=r(8576),c=r(5744),l=r(8711),u=r(4500),p=r(6434),m=r(9766),d=r(4535),h="Object already initialized",_=a.TypeError,f=a.WeakMap;if(o||p.state){var y=p.state||(p.state=new f);y.get=y.get,y.has=y.has,y.set=y.set,s=function(e,t){if(y.has(e))throw _(h);return t.facade=e,y.set(e,t),t},n=function(e){return y.get(e)||{}},i=function(e){return y.has(e)}}else{var g=m("state");d[g]=!0,s=function(e,t){if(u(e,g))throw _(h);return t.facade=e,l(e,g,t),t},n=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}e.exports={set:s,get:n,has:i,enforce:function(e){return i(e)?n(e):s(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=n(t)).type!==e)throw _("Incompatible receiver, "+e+" required");return r}}}},4770:(e,t,r)=>{var s=r(9272);e.exports=Array.isArray||function(e){return"Array"==s(e)}},6447:(e,t,r)=>{var s=r(8382),n=s.all;e.exports=s.IS_HTMLDDA?function(e){return"function"==typeof e||e===n}:function(e){return"function"==typeof e}},2091:(e,t,r)=>{var s=r(4120),n=r(6192),i=r(6447),o=r(4696),a=r(150),c=r(9516),l=function(){},u=[],p=a("Reflect","construct"),m=/^\s*(?:class|function)\b/,d=s(m.exec),h=!m.exec(l),_=function(e){if(!i(e))return!1;try{return p(l,u,e),!0}catch(e){return!1}},f=function(e){if(!i(e))return!1;switch(o(e)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return h||!!d(m,c(e))}catch(e){return!0}};f.sham=!0,e.exports=!p||n((function(){var e;return _(_.call)||!_(Object)||!_((function(){e=!0}))||e}))?f:_},9245:(e,t,r)=>{var s=r(6192),n=r(6447),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r==u||r!=l&&(n(t)?s(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},5646:e=>{e.exports=function(e){return null==e}},5744:(e,t,r)=>{var s=r(6447),n=r(8382),i=n.all;e.exports=n.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:s(e)||e===i}:function(e){return"object"==typeof e?null!==e:s(e)}},5546:e=>{e.exports=!0},3236:(e,t,r)=>{var s=r(150),n=r(6447),i=r(8902),o=r(615),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,a(e))}},5695:(e,t,r)=>{"use strict";var s=r(4413).IteratorPrototype,n=r(2853),i=r(774),o=r(1284),a=r(7771),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},5297:(e,t,r)=>{"use strict";var s=r(3085),n=r(8922),i=r(5546),o=r(2282),a=r(6447),c=r(5695),l=r(9341),u=r(4469),p=r(1284),m=r(8711),d=r(9362),h=r(8182),_=r(7771),f=r(4413),y=o.PROPER,g=o.CONFIGURABLE,b=f.IteratorPrototype,v=f.BUGGY_SAFARI_ITERATORS,E=h("iterator"),w="keys",O="values",x="entries",j=function(){return this};e.exports=function(e,t,r,o,h,f,S){c(r,t,o);var P,M,A,F=function(e){if(e===h&&C)return C;if(!v&&e in N)return N[e];switch(e){case w:case O:case x:return function(){return new r(this,e)}}return function(){return new r(this)}},I=t+" Iterator",T=!1,N=e.prototype,R=N[E]||N["@@iterator"]||h&&N[h],C=!v&&R||F(h),k="Array"==t&&N.entries||R;if(k&&(P=l(k.call(new e)))!==Object.prototype&&P.next&&(i||l(P)===b||(u?u(P,b):a(P[E])||d(P,E,j)),p(P,I,!0,!0),i&&(_[I]=j)),y&&h==O&&R&&R.name!==O&&(!i&&g?m(N,"name",O):(T=!0,C=function(){return n(R,this)})),h)if(M={values:F(O),keys:f?C:F(w),entries:F(x)},S)for(A in M)(v||T||!(A in N))&&d(N,A,M[A]);else s({target:t,proto:!0,forced:v||T},M);return i&&!S||N[E]===C||d(N,E,C,{name:h}),_[t]=C,M}},4413:(e,t,r)=>{"use strict";var s,n,i,o=r(6192),a=r(6447),c=r(5744),l=r(2853),u=r(9341),p=r(9362),m=r(8182),d=r(5546),h=m("iterator"),_=!1;[].keys&&("next"in(i=[].keys())?(n=u(u(i)))!==Object.prototype&&(s=n):_=!0),!c(s)||o((function(){var e={};return s[h].call(e)!==e}))?s={}:d&&(s=l(s)),a(s[h])||p(s,h,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:_}},7771:e=>{e.exports={}},4104:(e,t,r)=>{var s=r(8445);e.exports=function(e){return s(e.length)}},7679:e=>{var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var s=+e;return(s>0?r:t)(s)}},2853:(e,t,r)=>{var s,n=r(1138),i=r(1187),o=r(2952),a=r(4535),c=r(7403),l=r(7449),u=r(9766),p="prototype",m="script",d=u("IE_PROTO"),h=function(){},_=function(e){return"<"+m+">"+e+"</"+m+">"},f=function(e){e.write(_("")),e.close();var t=e.parentWindow.Object;return e=null,t},y=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;y="undefined"!=typeof document?document.domain&&s?f(s):(t=l("iframe"),r="java"+m+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(_("document.F=Object")),e.close(),e.F):f(s);for(var n=o.length;n--;)delete y[p][o[n]];return y()};a[d]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(h[p]=n(e),r=new h,h[p]=null,r[d]=e):r=y(),void 0===t?r:i.f(r,t)}},1187:(e,t,r)=>{var s=r(69),n=r(9600),i=r(2760),o=r(1138),a=r(101),c=r(7653);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=a(t),n=c(t),l=n.length,u=0;l>u;)i.f(e,r=n[u++],s[r]);return e}},2760:(e,t,r)=>{var s=r(69),n=r(188),i=r(9600),o=r(1138),a=r(77),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",d="writable";t.f=s?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&d in r&&!r[d]){var s=u(e,t);s&&s[d]&&(e[t]=r.value,r={configurable:m in r?r[m]:s[m],enumerable:p in r?r[p]:s[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),n)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},5141:(e,t,r)=>{var s=r(69),n=r(8922),i=r(6007),o=r(774),a=r(101),c=r(77),l=r(4500),u=r(188),p=Object.getOwnPropertyDescriptor;t.f=s?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!n(i.f,e,t),e[t])}},4052:(e,t,r)=>{var s=r(9272),n=r(101),i=r(2092).f,o=r(1923),a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"Window"==s(e)?function(e){try{return i(e)}catch(e){return o(a)}}(e):i(n(e))}},2092:(e,t,r)=>{var s=r(7934),n=r(2952).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return s(e,n)}},4750:(e,t)=>{t.f=Object.getOwnPropertySymbols},9341:(e,t,r)=>{var s=r(4500),n=r(6447),i=r(1795),o=r(9766),a=r(4635),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(s(t,c))return t[c];var r=t.constructor;return n(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},8902:(e,t,r)=>{var s=r(4120);e.exports=s({}.isPrototypeOf)},7934:(e,t,r)=>{var s=r(4120),n=r(4500),i=r(101),o=r(8180).indexOf,a=r(4535),c=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(a,r)&&n(s,r)&&c(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||c(u,r));return u}},7653:(e,t,r)=>{var s=r(7934),n=r(2952);e.exports=Object.keys||function(e){return s(e,n)}},6007:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,s=Object.getOwnPropertyDescriptor,n=s&&!r.call({1:2},1);t.f=n?function(e){var t=s(this,e);return!!t&&t.enumerable}:r},4469:(e,t,r)=>{var s=r(6419),n=r(1138),i=r(7757);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=s(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,s){return n(r),i(s),t?e(r,s):r.__proto__=s,r}}():void 0)},158:(e,t,r)=>{"use strict";var s=r(3471),n=r(4696);e.exports=s?{}.toString:function(){return"[object "+n(this)+"]"}},380:(e,t,r)=>{var s=r(8922),n=r(6447),i=r(5744),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&n(r=e.toString)&&!i(a=s(r,e)))return a;if(n(r=e.valueOf)&&!i(a=s(r,e)))return a;if("string"!==t&&n(r=e.toString)&&!i(a=s(r,e)))return a;throw o("Can't convert object to primitive value")}},7545:e=>{e.exports={}},3209:(e,t,r)=>{var s=r(5646),n=TypeError;e.exports=function(e){if(s(e))throw n("Can't call method on "+e);return e}},1284:(e,t,r)=>{var s=r(3471),n=r(2760).f,i=r(8711),o=r(4500),a=r(158),c=r(8182)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,c)||n(u,c,{configurable:!0,value:t}),l&&!s&&i(u,"toString",a)}}},9766:(e,t,r)=>{var s=r(8717),n=r(2759),i=s("keys");e.exports=function(e){return i[e]||(i[e]=n(e))}},6434:(e,t,r)=>{var s=r(8576),n=r(5098),i="__core-js_shared__",o=s[i]||n(i,{});e.exports=o},8717:(e,t,r)=>{var s=r(5546),n=r(6434);(e.exports=function(e,t){return n[e]||(n[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.30.2",mode:s?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.30.2/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,r)=>{var s=r(4120),n=r(1941),i=r(4845),o=r(3209),a=s("".charAt),c=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),m=n(r),d=p.length;return m<0||m>=d?e?"":void 0:(s=c(p,m))<55296||s>56319||m+1===d||(u=c(p,m+1))<56320||u>57343?e?a(p,m):s:e?l(p,m,m+2):u-56320+(s-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},6770:(e,t,r)=>{var s=r(4218),n=r(6192),i=r(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!n((function(){var e=Symbol();return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&s&&s<41}))},3407:(e,t,r)=>{var s=r(8922),n=r(150),i=r(8182),o=r(9362);e.exports=function(){var e=n("Symbol"),t=e&&e.prototype,r=t&&t.valueOf,a=i("toPrimitive");t&&!t[a]&&o(t,a,(function(e){return s(r,this)}),{arity:1})}},31:(e,t,r)=>{var s=r(6770);e.exports=s&&!!Symbol.for&&!!Symbol.keyFor},7739:(e,t,r)=>{var s=r(1941),n=Math.max,i=Math.min;e.exports=function(e,t){var r=s(e);return r<0?n(r+t,0):i(r,t)}},101:(e,t,r)=>{var s=r(2202),n=r(3209);e.exports=function(e){return s(n(e))}},1941:(e,t,r)=>{var s=r(7679);e.exports=function(e){var t=+e;return t!=t||0===t?0:s(t)}},8445:(e,t,r)=>{var s=r(1941),n=Math.min;e.exports=function(e){return e>0?n(s(e),9007199254740991):0}},1795:(e,t,r)=>{var s=r(3209),n=Object;e.exports=function(e){return n(s(e))}},7888:(e,t,r)=>{var s=r(8922),n=r(5744),i=r(3236),o=r(5037),a=r(380),c=r(8182),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=s(c,e,t),!n(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},77:(e,t,r)=>{var s=r(7888),n=r(3236);e.exports=function(e){var t=s(e,"string");return n(t)?t:t+""}},3471:(e,t,r)=>{var s={};s[r(8182)("toStringTag")]="z",e.exports="[object z]"===String(s)},4845:(e,t,r)=>{var s=r(4696),n=String;e.exports=function(e){if("Symbol"===s(e))throw TypeError("Cannot convert a Symbol value to a string");return n(e)}},9288:e=>{var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},2759:(e,t,r)=>{var s=r(4120),n=0,i=Math.random(),o=s(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++n+i,36)}},615:(e,t,r)=>{var s=r(6770);e.exports=s&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},9600:(e,t,r)=>{var s=r(69),n=r(6192);e.exports=s&&n((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},5278:(e,t,r)=>{var s=r(8576),n=r(6447),i=s.WeakMap;e.exports=n(i)&&/native code/.test(String(i))},8332:(e,t,r)=>{var s=r(7545),n=r(4500),i=r(9207),o=r(2760).f;e.exports=function(e){var t=s.Symbol||(s.Symbol={});n(t,e)||o(t,e,{value:i.f(e)})}},9207:(e,t,r)=>{var s=r(8182);t.f=s},8182:(e,t,r)=>{var s=r(8576),n=r(8717),i=r(4500),o=r(2759),a=r(6770),c=r(615),l=s.Symbol,u=n("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},9106:(e,t,r)=>{"use strict";var s=r(3085),n=r(6192),i=r(4770),o=r(5744),a=r(1795),c=r(4104),l=r(9425),u=r(9361),p=r(1321),m=r(242),d=r(8182),h=r(4218),_=d("isConcatSpreadable"),f=h>=51||!n((function(){var e=[];return e[_]=!1,e.concat()[0]!==e})),y=function(e){if(!o(e))return!1;var t=e[_];return void 0!==t?!!t:i(e)};s({target:"Array",proto:!0,arity:1,forced:!f||!m("concat")},{concat:function(e){var t,r,s,n,i,o=a(this),m=p(o,0),d=0;for(t=-1,s=arguments.length;t<s;t++)if(y(i=-1===t?o:arguments[t]))for(n=c(i),l(d+n),r=0;r<n;r++,d++)r in i&&u(m,d,i[r]);else l(d+1),u(m,d++,i);return m.length=d,m}})},2276:(e,t,r)=>{"use strict";var s=r(3085),n=r(4914),i=r(8180).indexOf,o=r(424),a=n([].indexOf),c=!!a&&1/a([1],1,-0)<0;s({target:"Array",proto:!0,forced:c||!o("indexOf")},{indexOf:function(e){var t=arguments.length>1?arguments[1]:void 0;return c?a(this,e,t)||0:i(this,e,t)}})},8939:(e,t,r)=>{"use strict";var s=r(101),n=r(7423),i=r(7771),o=r(3326),a=r(2760).f,c=r(5297),l=r(7271),u=r(5546),p=r(69),m="Array Iterator",d=o.set,h=o.getterFor(m);e.exports=c(Array,"Array",(function(e,t){d(this,{type:m,target:s(e),index:0,kind:t})}),(function(){var e=h(this),t=e.target,r=e.kind,s=e.index++;return!t||s>=t.length?(e.target=void 0,l(void 0,!0)):l("keys"==r?s:"values"==r?t[s]:[s,t[s]],!1)}),"values");var _=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==_.name)try{a(_,"name",{value:"values"})}catch(e){}},2432:()=>{},9704:(e,t,r)=>{var s=r(3085),n=r(150),i=r(6298),o=r(8922),a=r(4120),c=r(6192),l=r(6447),u=r(3236),p=r(3096),m=r(9202),d=r(6770),h=String,_=n("JSON","stringify"),f=a(/./.exec),y=a("".charAt),g=a("".charCodeAt),b=a("".replace),v=a(1..toString),E=/[\uD800-\uDFFF]/g,w=/^[\uD800-\uDBFF]$/,O=/^[\uDC00-\uDFFF]$/,x=!d||c((function(){var e=n("Symbol")();return"[null]"!=_([e])||"{}"!=_({a:e})||"{}"!=_(Object(e))})),j=c((function(){return'"\\udf06\\ud834"'!==_("\udf06\ud834")||'"\\udead"'!==_("\udead")})),S=function(e,t){var r=p(arguments),s=m(t);if(l(s)||void 0!==e&&!u(e))return r[1]=function(e,t){if(l(s)&&(t=o(s,this,h(e),t)),!u(t))return t},i(_,null,r)},P=function(e,t,r){var s=y(r,t-1),n=y(r,t+1);return f(w,e)&&!f(O,n)||f(O,e)&&!f(w,s)?"\\u"+v(g(e,0),16):e};_&&s({target:"JSON",stat:!0,arity:3,forced:x||j},{stringify:function(e,t,r){var s=p(arguments),n=i(x?S:_,null,s);return j&&"string"==typeof n?b(n,E,P):n}})},8671:(e,t,r)=>{var s=r(8576);r(1284)(s.JSON,"JSON",!0)},8556:()=>{},297:(e,t,r)=>{var s=r(3085),n=r(69),i=r(2760).f;s({target:"Object",stat:!0,forced:Object.defineProperty!==i,sham:!n},{defineProperty:i})},7895:(e,t,r)=>{var s=r(3085),n=r(6770),i=r(6192),o=r(4750),a=r(1795);s({target:"Object",stat:!0,forced:!n||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(a(e)):[]}})},2647:(e,t,r)=>{var s=r(3085),n=r(1795),i=r(7653);s({target:"Object",stat:!0,forced:r(6192)((function(){i(1)}))},{keys:function(e){return i(n(e))}})},6663:()=>{},1367:()=>{},5454:(e,t,r)=>{"use strict";var s=r(863).charAt,n=r(4845),i=r(3326),o=r(5297),a=r(7271),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?a(void 0,!0):(e=s(r,n),t.index+=e.length,a(e,!1))}))},9781:(e,t,r)=>{r(8332)("asyncIterator")},9351:(e,t,r)=>{"use strict";var s=r(3085),n=r(8576),i=r(8922),o=r(4120),a=r(5546),c=r(69),l=r(6770),u=r(6192),p=r(4500),m=r(8902),d=r(1138),h=r(101),_=r(77),f=r(4845),y=r(774),g=r(2853),b=r(7653),v=r(2092),E=r(4052),w=r(4750),O=r(5141),x=r(2760),j=r(1187),S=r(6007),P=r(9362),M=r(2807),A=r(8717),F=r(9766),I=r(4535),T=r(2759),N=r(8182),R=r(9207),C=r(8332),k=r(3407),$=r(1284),D=r(3326),q=r(454).forEach,B=F("hidden"),L="Symbol",V="prototype",U=D.set,H=D.getterFor(L),Z=Object[V],z=n.Symbol,G=z&&z[V],W=n.TypeError,J=n.QObject,K=O.f,X=x.f,Y=E.f,Q=S.f,ee=o([].push),te=A("symbols"),re=A("op-symbols"),se=A("wks"),ne=!J||!J[V]||!J[V].findChild,ie=c&&u((function(){return 7!=g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var s=K(Z,t);s&&delete Z[t],X(e,t,r),s&&e!==Z&&X(Z,t,s)}:X,oe=function(e,t){var r=te[e]=g(G);return U(r,{type:L,tag:e,description:t}),c||(r.description=t),r},ae=function(e,t,r){e===Z&&ae(re,t,r),d(e);var s=_(t);return d(r),p(te,s)?(r.enumerable?(p(e,B)&&e[B][s]&&(e[B][s]=!1),r=g(r,{enumerable:y(0,!1)})):(p(e,B)||X(e,B,y(1,{})),e[B][s]=!0),ie(e,s,r)):X(e,s,r)},ce=function(e,t){d(e);var r=h(t),s=b(r).concat(me(r));return q(s,(function(t){c&&!i(le,r,t)||ae(e,t,r[t])})),e},le=function(e){var t=_(e),r=i(Q,this,t);return!(this===Z&&p(te,t)&&!p(re,t))&&(!(r||!p(this,t)||!p(te,t)||p(this,B)&&this[B][t])||r)},ue=function(e,t){var r=h(e),s=_(t);if(r!==Z||!p(te,s)||p(re,s)){var n=K(r,s);return!n||!p(te,s)||p(r,B)&&r[B][s]||(n.enumerable=!0),n}},pe=function(e){var t=Y(h(e)),r=[];return q(t,(function(e){p(te,e)||p(I,e)||ee(r,e)})),r},me=function(e){var t=e===Z,r=Y(t?re:h(e)),s=[];return q(r,(function(e){!p(te,e)||t&&!p(Z,e)||ee(s,te[e])})),s};l||(P(G=(z=function(){if(m(G,this))throw W("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?f(arguments[0]):void 0,t=T(e),r=function(e){this===Z&&i(r,re,e),p(this,B)&&p(this[B],t)&&(this[B][t]=!1),ie(this,t,y(1,e))};return c&&ne&&ie(Z,t,{configurable:!0,set:r}),oe(t,e)})[V],"toString",(function(){return H(this).tag})),P(z,"withoutSetter",(function(e){return oe(T(e),e)})),S.f=le,x.f=ae,j.f=ce,O.f=ue,v.f=E.f=pe,w.f=me,R.f=function(e){return oe(N(e),e)},c&&(M(G,"description",{configurable:!0,get:function(){return H(this).description}}),a||P(Z,"propertyIsEnumerable",le,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:z}),q(b(se),(function(e){C(e)})),s({target:L,stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),s({target:"Object",stat:!0,forced:!l,sham:!c},{create:function(e,t){return void 0===t?g(e):ce(g(e),t)},defineProperty:ae,defineProperties:ce,getOwnPropertyDescriptor:ue}),s({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),k(),$(z,L),I[B]=!0},492:()=>{},9148:(e,t,r)=>{var s=r(3085),n=r(150),i=r(4500),o=r(4845),a=r(8717),c=r(31),l=a("string-to-symbol-registry"),u=a("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!c},{for:function(e){var t=o(e);if(i(l,t))return l[t];var r=n("Symbol")(t);return l[t]=r,u[r]=t,r}})},6681:(e,t,r)=>{r(8332)("hasInstance")},9594:(e,t,r)=>{r(8332)("isConcatSpreadable")},3665:(e,t,r)=>{r(8332)("iterator")},6187:(e,t,r)=>{r(9351),r(9148),r(5991),r(9704),r(7895)},5991:(e,t,r)=>{var s=r(3085),n=r(4500),i=r(3236),o=r(9288),a=r(8717),c=r(31),l=a("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!c},{keyFor:function(e){if(!i(e))throw TypeError(o(e)+" is not a symbol");if(n(l,e))return l[e]}})},1250:(e,t,r)=>{r(8332)("matchAll")},9017:(e,t,r)=>{r(8332)("match")},9786:(e,t,r)=>{r(8332)("replace")},503:(e,t,r)=>{r(8332)("search")},6565:(e,t,r)=>{r(8332)("species")},9322:(e,t,r)=>{r(8332)("split")},3610:(e,t,r)=>{var s=r(8332),n=r(3407);s("toPrimitive"),n()},6886:(e,t,r)=>{var s=r(150),n=r(8332),i=r(1284);n("toStringTag"),i(s("Symbol"),"Symbol")},3514:(e,t,r)=>{r(8332)("unscopables")},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},2725:(e,t,r)=>{var s=r(3085),n=r(150),i=r(4120),o=n("Symbol"),a=o.keyFor,c=i(o.prototype.valueOf);s({target:"Symbol",stat:!0},{isRegistered:function(e){try{return void 0!==a(c(e))}catch(e){return!1}}})},1806:(e,t,r)=>{for(var s=r(3085),n=r(8717),i=r(150),o=r(4120),a=r(3236),c=r(8182),l=i("Symbol"),u=l.isWellKnown,p=i("Object","getOwnPropertyNames"),m=o(l.prototype.valueOf),d=n("wks"),h=0,_=p(l),f=_.length;h<f;h++)try{var y=_[h];a(l[y])&&c(y)}catch(e){}s({target:"Symbol",stat:!0,forced:!0},{isWellKnown:function(e){if(u&&u(e))return!0;try{for(var t=m(e),r=0,s=p(d),n=s.length;r<n;r++)if(d[s[r]]==t)return!0}catch(e){}return!1}})},6658:(e,t,r)=>{r(8332)("matcher")},4212:(e,t,r)=>{r(8332)("metadataKey")},1875:(e,t,r)=>{r(8332)("metadata")},8658:(e,t,r)=>{r(8332)("observable")},4592:(e,t,r)=>{r(8332)("patternMatch")},6680:(e,t,r)=>{r(8332)("replaceAll")},162:(e,t,r)=>{r(8939);var s=r(7365),n=r(8576),i=r(4696),o=r(8711),a=r(7771),c=r(8182)("toStringTag");for(var l in s){var u=n[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},6174:(e,t,r)=>{var s=r(2604);e.exports=s},7820:(e,t,r)=>{var s=r(3512);e.exports=s},2:(e,t,r)=>{var s=r(2921);e.exports=s},5636:(e,t,r)=>{var s=r(8651);e.exports=s},2285:(e,t,r)=>{var s=r(5008);r(162),e.exports=s},8535:(e,t,r)=>{var s=r(994);r(162),e.exports=s},6042:(e,t,r)=>{var s=r(290);e.exports=s},9515:(e,t,r)=>{var s=r(8761)(r(7772),"DataView");e.exports=s},9612:(e,t,r)=>{var s=r(2118),n=r(6909),i=r(8138),o=r(4174),a=r(7942);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},235:(e,t,r)=>{var s=r(3945),n=r(1846),i=r(8028),o=r(2344),a=r(4769);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},326:(e,t,r)=>{var s=r(8761)(r(7772),"Map");e.exports=s},6738:(e,t,r)=>{var s=r(2411),n=r(6417),i=r(6928),o=r(9493),a=r(4150);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var s=e[t];this.set(s[0],s[1])}}c.prototype.clear=s,c.prototype.delete=n,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},1985:(e,t,r)=>{var s=r(8761)(r(7772),"Promise");e.exports=s},2143:(e,t,r)=>{var s=r(8761)(r(7772),"Set");e.exports=s},5386:(e,t,r)=>{var s=r(6738),n=r(2842),i=r(2482);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new s;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=n,o.prototype.has=i,e.exports=o},6571:(e,t,r)=>{var s=r(235),n=r(5243),i=r(2858),o=r(4417),a=r(8605),c=r(1418);function l(e){var t=this.__data__=new s(e);this.size=t.size}l.prototype.clear=n,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},857:(e,t,r)=>{var s=r(7772).Symbol;e.exports=s},9162:(e,t,r)=>{var s=r(7772).Uint8Array;e.exports=s},3215:(e,t,r)=>{var s=r(8761)(r(7772),"WeakMap");e.exports=s},7552:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length,n=0,i=[];++r<s;){var o=e[r];t(o,r,e)&&(i[n++]=o)}return i}},1634:(e,t,r)=>{var s=r(6473),n=r(9631),i=r(6152),o=r(3226),a=r(9045),c=r(7598),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&n(e),p=!r&&!u&&o(e),m=!r&&!u&&!p&&c(e),d=r||u||p||m,h=d?s(e.length,String):[],_=h.length;for(var f in e)!t&&!l.call(e,f)||d&&("length"==f||p&&("offset"==f||"parent"==f)||m&&("buffer"==f||"byteLength"==f||"byteOffset"==f)||a(f,_))||h.push(f);return h}},5067:e=>{e.exports=function(e,t){for(var r=-1,s=t.length,n=e.length;++r<s;)e[n+r]=t[r];return e}},7064:e=>{e.exports=function(e,t){for(var r=-1,s=null==e?0:e.length;++r<s;)if(t(e[r],r,e))return!0;return!1}},2218:(e,t,r)=>{var s=r(1225);e.exports=function(e,t){for(var r=e.length;r--;)if(s(e[r][0],t))return r;return-1}},1897:(e,t,r)=>{var s=r(5067),n=r(6152);e.exports=function(e,t,r){var i=t(e);return n(e)?i:s(i,r(e))}},3366:(e,t,r)=>{var s=r(857),n=r(2107),i=r(7157),o=s?s.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?n(e):i(e)}},5183:(e,t,r)=>{var s=r(3366),n=r(5125);e.exports=function(e){return n(e)&&"[object Arguments]"==s(e)}},8746:(e,t,r)=>{var s=r(1952),n=r(5125);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,a))}},1952:(e,t,r)=>{var s=r(6571),n=r(4871),i=r(1491),o=r(7416),a=r(940),c=r(6152),l=r(3226),u=r(7598),p="[object Arguments]",m="[object Array]",d="[object Object]",h=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,_,f,y){var g=c(e),b=c(t),v=g?m:a(e),E=b?m:a(t),w=(v=v==p?d:v)==d,O=(E=E==p?d:E)==d,x=v==E;if(x&&l(e)){if(!l(t))return!1;g=!0,w=!1}if(x&&!w)return y||(y=new s),g||u(e)?n(e,t,r,_,f,y):i(e,t,v,r,_,f,y);if(!(1&r)){var j=w&&h.call(e,"__wrapped__"),S=O&&h.call(t,"__wrapped__");if(j||S){var P=j?e.value():e,M=S?t.value():t;return y||(y=new s),f(P,M,r,_,y)}}return!!x&&(y||(y=new s),o(e,t,r,_,f,y))}},6840:(e,t,r)=>{var s=r(1049),n=r(7394),i=r(9259),o=r(7035),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,m=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||n(e))&&(s(e)?m:a).test(o(e))}},5522:(e,t,r)=>{var s=r(3366),n=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,e.exports=function(e){return i(e)&&n(e.length)&&!!o[s(e)]}},6411:(e,t,r)=>{var s=r(6001),n=r(4248),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!s(e))return n(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},6473:e=>{e.exports=function(e,t){for(var r=-1,s=Array(e);++r<e;)s[r]=t(r);return s}},7826:e=>{e.exports=function(e){return function(t){return e(t)}}},9950:e=>{e.exports=function(e,t){return e.has(t)}},4019:(e,t,r)=>{var s=r(7772)["__core-js_shared__"];e.exports=s},4871:(e,t,r)=>{var s=r(5386),n=r(7064),i=r(9950);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var m=c.get(e),d=c.get(t);if(m&&d)return m==t&&d==e;var h=-1,_=!0,f=2&r?new s:void 0;for(c.set(e,t),c.set(t,e);++h<u;){var y=e[h],g=t[h];if(o)var b=l?o(g,y,h,t,e,c):o(y,g,h,e,t,c);if(void 0!==b){if(b)continue;_=!1;break}if(f){if(!n(t,(function(e,t){if(!i(f,t)&&(y===e||a(y,e,r,o,c)))return f.push(t)}))){_=!1;break}}else if(y!==g&&!a(y,g,r,o,c)){_=!1;break}}return c.delete(e),c.delete(t),_}},1491:(e,t,r)=>{var s=r(857),n=r(9162),i=r(1225),o=r(4871),a=r(5179),c=r(4207),l=s?s.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,s,l,p,m){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new n(e),new n(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var d=a;case"[object Set]":var h=1&s;if(d||(d=c),e.size!=t.size&&!h)return!1;var _=m.get(e);if(_)return _==t;s|=2,m.set(e,t);var f=o(d(e),d(t),s,l,p,m);return m.delete(e),f;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},7416:(e,t,r)=>{var s=r(3483),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!c)return!1;for(var p=u;p--;){var m=l[p];if(!(c?m in t:n.call(t,m)))return!1}var d=a.get(e),h=a.get(t);if(d&&h)return d==t&&h==e;var _=!0;a.set(e,t),a.set(t,e);for(var f=c;++p<u;){var y=e[m=l[p]],g=t[m];if(i)var b=c?i(g,y,m,t,e,a):i(y,g,m,e,t,a);if(!(void 0===b?y===g||o(y,g,r,i,a):b)){_=!1;break}f||(f="constructor"==m)}if(_&&!f){var v=e.constructor,E=t.constructor;v==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof v&&v instanceof v&&"function"==typeof E&&E instanceof E||(_=!1)}return a.delete(e),a.delete(t),_}},1242:(e,t,r)=>{var s="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=s},3483:(e,t,r)=>{var s=r(1897),n=r(633),i=r(249);e.exports=function(e){return s(e,i,n)}},7937:(e,t,r)=>{var s=r(8304);e.exports=function(e,t){var r=e.__data__;return s(t)?r["string"==typeof t?"string":"hash"]:r.map}},8761:(e,t,r)=>{var s=r(6840),n=r(8109);e.exports=function(e,t){var r=n(e,t);return s(r)?r:void 0}},2107:(e,t,r)=>{var s=r(857),n=Object.prototype,i=n.hasOwnProperty,o=n.toString,a=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[a]=r:delete e[a]),n}},633:(e,t,r)=>{var s=r(7552),n=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=a},940:(e,t,r)=>{var s=r(9515),n=r(326),i=r(1985),o=r(2143),a=r(3215),c=r(3366),l=r(7035),u="[object Map]",p="[object Promise]",m="[object Set]",d="[object WeakMap]",h="[object DataView]",_=l(s),f=l(n),y=l(i),g=l(o),b=l(a),v=c;(s&&v(new s(new ArrayBuffer(1)))!=h||n&&v(new n)!=u||i&&v(i.resolve())!=p||o&&v(new o)!=m||a&&v(new a)!=d)&&(v=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,s=r?l(r):"";if(s)switch(s){case _:return h;case f:return u;case y:return p;case g:return m;case b:return d}return t}),e.exports=v},8109:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},2118:(e,t,r)=>{var s=r(9191);e.exports=function(){this.__data__=s?s(null):{},this.size=0}},6909:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},8138:(e,t,r)=>{var s=r(9191),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(s){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return n.call(t,e)?t[e]:void 0}},4174:(e,t,r)=>{var s=r(9191),n=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return s?void 0!==t[e]:n.call(t,e)}},7942:(e,t,r)=>{var s=r(9191);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=s&&void 0===t?"__lodash_hash_undefined__":t,this}},9045:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var s=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==s||"symbol"!=s&&t.test(e))&&e>-1&&e%1==0&&e<r}},8304:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7394:(e,t,r)=>{var s,n=r(4019),i=(s=/[^.]+$/.exec(n&&n.keys&&n.keys.IE_PROTO||""))?"Symbol(src)_1."+s:"";e.exports=function(e){return!!i&&i in e}},6001:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3945:e=>{e.exports=function(){this.__data__=[],this.size=0}},1846:(e,t,r)=>{var s=r(2218),n=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=s(t,e);return!(r<0)&&(r==t.length-1?t.pop():n.call(t,r,1),--this.size,!0)}},8028:(e,t,r)=>{var s=r(2218);e.exports=function(e){var t=this.__data__,r=s(t,e);return r<0?void 0:t[r][1]}},2344:(e,t,r)=>{var s=r(2218);e.exports=function(e){return s(this.__data__,e)>-1}},4769:(e,t,r)=>{var s=r(2218);e.exports=function(e,t){var r=this.__data__,n=s(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this}},2411:(e,t,r)=>{var s=r(9612),n=r(235),i=r(326);e.exports=function(){this.size=0,this.__data__={hash:new s,map:new(i||n),string:new s}}},6417:(e,t,r)=>{var s=r(7937);e.exports=function(e){var t=s(this,e).delete(e);return this.size-=t?1:0,t}},6928:(e,t,r)=>{var s=r(7937);e.exports=function(e){return s(this,e).get(e)}},9493:(e,t,r)=>{var s=r(7937);e.exports=function(e){return s(this,e).has(e)}},4150:(e,t,r)=>{var s=r(7937);e.exports=function(e,t){var r=s(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this}},5179:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,s){r[++t]=[s,e]})),r}},9191:(e,t,r)=>{var s=r(8761)(Object,"create");e.exports=s},4248:(e,t,r)=>{var s=r(241)(Object.keys,Object);e.exports=s},4146:(e,t,r)=>{e=r.nmd(e);var s=r(1242),n=t&&!t.nodeType&&t,i=n&&e&&!e.nodeType&&e,o=i&&i.exports===n&&s.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},7157:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},241:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},7772:(e,t,r)=>{var s=r(1242),n="object"==typeof self&&self&&self.Object===Object&&self,i=s||n||Function("return this")();e.exports=i},2842:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2482:e=>{e.exports=function(e){return this.__data__.has(e)}},4207:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},5243:(e,t,r)=>{var s=r(235);e.exports=function(){this.__data__=new s,this.size=0}},2858:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},4417:e=>{e.exports=function(e){return this.__data__.get(e)}},8605:e=>{e.exports=function(e){return this.__data__.has(e)}},1418:(e,t,r)=>{var s=r(235),n=r(326),i=r(6738);e.exports=function(e,t){var r=this.__data__;if(r instanceof s){var o=r.__data__;if(!n||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},7035:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},1225:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},9631:(e,t,r)=>{var s=r(5183),n=r(5125),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=s(function(){return arguments}())?s:function(e){return n(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},6152:e=>{var t=Array.isArray;e.exports=t},7878:(e,t,r)=>{var s=r(1049),n=r(1158);e.exports=function(e){return null!=e&&n(e.length)&&!s(e)}},4335:(e,t,r)=>{var s=r(3366),n=r(5125);e.exports=function(e){return!0===e||!1===e||n(e)&&"[object Boolean]"==s(e)}},3226:(e,t,r)=>{e=r.nmd(e);var s=r(7772),n=r(6330),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?s.Buffer:void 0,c=(a?a.isBuffer:void 0)||n;e.exports=c},8149:(e,t,r)=>{var s=r(8746);e.exports=function(e,t){return s(e,t)}},1049:(e,t,r)=>{var s=r(3366),n=r(9259);e.exports=function(e){if(!n(e))return!1;var t=s(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1158:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5877:e=>{e.exports=function(e){return null===e}},537:(e,t,r)=>{var s=r(3366),n=r(5125);e.exports=function(e){return"number"==typeof e||n(e)&&"[object Number]"==s(e)}},9259:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},5125:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},5505:(e,t,r)=>{var s=r(3366),n=r(6152),i=r(5125);e.exports=function(e){return"string"==typeof e||!n(e)&&i(e)&&"[object String]"==s(e)}},7598:(e,t,r)=>{var s=r(5522),n=r(7826),i=r(4146),o=i&&i.isTypedArray,a=o?n(o):s;e.exports=a},249:(e,t,r)=>{var s=r(1634),n=r(6411),i=r(7878);e.exports=function(e){return i(e)?s(e):n(e)}},1570:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},981:e=>{e.exports=function(){return[]}},6330:e=>{e.exports=function(){return!1}},1178:(e,t,r)=>{const s=r(1570);function n(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return e=n(e),new i(this.elements.filter(e,t))}reject(e,t){return e=n(e),new i(this.elements.filter(s(e),t))}find(e,t){return e=n(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},3026:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},5140:(e,t,r)=>{const s=r(5877),n=r(5505),i=r(537),o=r(4335),a=r(9259),c=r(2947),l=r(3756);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(s,l.NullElement,!1).detect(n,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const s=this.elementDetection[r][0],n=this.elementDetection[r][1];if(s(e)){t=new n(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},3853:(e,t,r)=>{const s=r(1570),n=r(1178);class i extends n{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(s(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,s)=>{e.bind(t)(r.value,r.key,r,s)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},3756:(e,t,r)=>{const s=r(6420),n=r(4152),i=r(9542),o=r(3710),a=r(3312),c=r(1641),l=r(8858),u=r(3860),p=r(5202),m=r(2320),d=r(1178),h=r(3853),_=r(3026);function f(e){if(e instanceof s)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new n;if(Array.isArray(e))return new c(e.map(f));if("object"==typeof e){return new u(e)}return e}s.prototype.ObjectElement=u,s.prototype.RefElement=m,s.prototype.MemberElement=l,s.prototype.refract=f,d.prototype.refract=f,e.exports={Element:s,NullElement:n,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:m,refract:f,ArraySlice:d,ObjectSlice:h,KeyValuePair:_}},5202:(e,t,r)=>{const s=r(6420);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},2320:(e,t,r)=>{const s=r(6420);e.exports=class extends s{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},7952:(e,t,r)=>{const s=r(5140),n=r(3756);t.lS=s,r(3026),n.ArraySlice,n.ObjectSlice,t.W_=n.Element,t.RP=n.StringElement,t.VL=n.NumberElement,t.hh=n.BooleanElement,t.zr=n.NullElement,t.ON=n.ArrayElement,t.Sb=n.ObjectElement,t.c6=n.MemberElement,t.tK=n.RefElement,t.EA=n.LinkElement,t.Qc=n.refract,r(2947),r(8910)},1641:(e,t,r)=>{const s=r(1570),n=r(6420),i=r(1178);class o extends n{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((s=>{const n=e.bind(t)(s);n&&r.push(n)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(s(e),t)}reduce(e,t){let r,s;void 0!==t?(r=0,s=this.refract(t)):(r=1,s="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];s="object"===this.primitive()?this.refract(e(s,r.value,r.key,r,this)):this.refract(e(s,r,t,this))}return s}forEach(e,t){this.content.forEach(((r,s)=>{e.bind(t)(r,this.refract(s))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},s=!!r.recursive,n=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{s&&void 0!==t.findElements&&t.findElements(e,{results:n,recursive:s}),e(t,r,i)&&n.push(t)})),n}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}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]()}),e.exports=o},3312:(e,t,r)=>{const s=r(6420);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},6420:(e,t,r)=>{const s=r(8149),n=r(3026),i=r(1178);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof n?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const s=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(s,e),r.content instanceof n&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const s=e[t],n=r.indexOf(s);if(-1===n)return!1;r=r.splice(0,n)}return!0}))),r}set(e){return this.content=e,this}equals(e){return s(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof n)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof n){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},8858:(e,t,r)=>{const s=r(3026),n=r(6420);e.exports=class extends n{constructor(e,t,r,n){super(new s,r,n),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},4152:(e,t,r)=>{const s=r(6420);e.exports=class extends s{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},3710:(e,t,r)=>{const s=r(6420);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},3860:(e,t,r)=>{const s=r(1570),n=r(9259),i=r(1641),o=r(8858),a=r(3853);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(n(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,s=this.getMember(r);return s?s.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((s,n,i)=>{const o=e.bind(t)(s,n,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(s(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},9542:(e,t,r)=>{const s=r(6420);e.exports=class extends s{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},8910:(e,t,r)=>{const s=r(2947);e.exports=class extends s{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const s="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(s){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:s}=e;s.get("metadata")&&(s=s.clone(),s.set("meta",s.get("metadata")),s.remove("metadata")),"member"===e.element&&t&&(s=s.clone(),s.remove("variable")),s.length>0&&(r.attributes=this.serialiseObject(s))}if(s)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let s;t&&e.content.key?(s=e.content.clone(),s.key.attributes.set("variable",t),s=this.serialiseContent(s)):s=this.serialiseContent(e.content),this.shouldSerialiseContent(e,s)&&(r.content=s)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),s=t.get("default");let n=t.get("samples")||new this.namespace.elements.Array([]);if(s&&s.content&&(s.content.attributes&&s.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([s.content]))),n.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&n.unshift(e.content),n=n.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),n.length&&t.set("samples",n),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const s=this.deserialiseContent(e.content);if(void 0===s&&null!==r.content||(r.content=s),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const s=e;e=new this.namespace.elements.Array,s.forEach((s=>{s.forEach((s=>{const n=new t(s);n.element=r.element,e.push(n)}))}));const n=e.shift();r.content=n?n.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let s=r.attributes.get("default");if(s&&s.length>0){s=s.get(0);const e=new t(s);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const s=r.toValue();t[s]=this.convertKeyToRefract(s,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},2947:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},6591:e=>{!function(){"use strict";var t,r,s,n,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",d="deepConfiguration",h="deepProps",_="deepStatics",f="deepConf",y="initializers",g="methods",b="composers",v="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var O=w.bind(0,(function(e,t){if(t)for(var r=E(t),s=0;s<r.length;s+=1)Object.defineProperty(e,r[s],Object.getOwnPropertyDescriptor(t,r[s]));return e}));function x(e){return"function"==typeof e}function j(e){return e&&"object"==typeof e||x(e)}function S(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var P=w.bind(0,(function e(r,s){if(s===t)return r;if(Array.isArray(s))return(Array.isArray(r)?r:[]).concat(s);if(!S(s))return s;for(var n,i,o=E(s),a=0;a<o.length;)n=o[a++],(i=Object.getOwnPropertyDescriptor(s,n)).hasOwnProperty("value")?i.value!==t&&(r[n]=e(S(r[n])||Array.isArray(s[n])?r[n]:{},s[n])):Object.defineProperty(r,n,i);return r}));function M(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return x(e)&&r.indexOf(e)===t}))).length?r:t}function A(e,t){function s(r,s){j(t[r])&&(j(e[r])||(e[r]={}),(s||O)(e[r],t[r]))}function n(s){(r=M(e[s],t[s]))&&(e[s]=r)}return t&&j(t=t[v]||t)&&(s(g),s(o),s(a,P),s(c),s(l),s(u,P),s(p),s(m),s(d,P),n(y),n(b)),e}function F(){return function(e){return r=function e(r){var s,n,i=e[v]||{},l={__proto__:i[g]},u=i[y],p=Array.prototype.slice.apply(arguments),m=i[a];if(m&&P(l,m),(m=i[o])&&O(l,m),(m=i[c])&&Object.defineProperties(l,m),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)x(s=u[i++])&&(l=(n=s.call(l,r,{instance:l,stamp:e,args:p}))===t?l:n);return l},(s=e[u])&&P(r,s),(s=e[l])&&O(r,s),(s=e[p])&&Object.defineProperties(r,s),s=x(r[v])?r[v]:F,O(r[v]=function(){return s.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(A,{}))}function I(e){return x(e)&&x(e[v])}var T={};function N(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||s).call(r,n)}}T[g]=N(g,O),T[o]=T.props=N(o,O),T[y]=T.init=N(y,M),T[b]=N(b,M),T[a]=T[h]=N(a,P),T[l]=T.statics=N(l,O),T[u]=T[_]=N(u,P),T[m]=T.conf=N(m,O),T[d]=T[f]=N(d,P),T[c]=N(c,O),T[p]=N(p,O),s=T[v]=O((function(){for(var e,E,w=0,x=[],S=arguments,A=this;w<S.length;)j(e=S[w++])&&x.push(I(e)?e:((n={})[g]=(E=e)[g]||t,s=E.props,n[o]=j((r=E[o])||s)?O({},s,r):t,n[y]=M(E.init,E[y]),n[b]=M(E[b]),s=E[h],n[a]=j((r=E[a])||s)?P({},s,r):t,n[c]=E[c],s=E.statics,n[l]=j((r=E[l])||s)?O({},s,r):t,s=E[_],n[u]=j((r=E[u])||s)?P({},s,r):t,r=E[p],n[p]=j((s=E.name&&{name:{value:E.name}})||r)?O({},r,s):t,s=E.conf,n[m]=j((r=E[m])||s)?O({},s,r):t,s=E[f],n[d]=j((r=E[d])||s)?P({},s,r):t,n));if(e=F.apply(A||i,x),A&&x.unshift(A),Array.isArray(S=e[v][b]))for(w=0;w<S.length;)e=I(A=S[w++]({stamp:e,composables:x}))?A:e;return e}),T),T.create=function(){return this.apply(t,arguments)},(n={})[l]=T,i=F(n),s[v]=s.bind(),s.version="4.3.2","object"!=typeof t?e.exports=s:self.stampit=s}()},9794:(module,__unused_webpack_exports,__webpack_require__)=>{var __dirname="/",Module=void 0!==Module?Module:{},TreeSitter=function(){var initPromise,document="object"==typeof window?{currentScript:window.document.currentScript}:null;class Parser{constructor(){this.initialize()}initialize(){throw new Error("cannot construct a Parser before calling `init()`")}static init(moduleOptions){return initPromise||(Module=Object.assign({},Module,moduleOptions),initPromise=new Promise((resolveInitPromise=>{var moduleOverrides=Object.assign({},Module),arguments_=[],thisProgram="./this.program",quit_=(e,t)=>{throw t},ENVIRONMENT_IS_WEB="object"==typeof window,ENVIRONMENT_IS_WORKER="function"==typeof importScripts,ENVIRONMENT_IS_NODE="object"==typeof process&&"object"==typeof process.versions&&"string"==typeof process.versions.node,scriptDirectory="",read_,readAsync,readBinary,setWindowTitle;function locateFile(e){return Module.locateFile?Module.locateFile(e,scriptDirectory):scriptDirectory+e}function logExceptionOnExit(e){e instanceof ExitStatus||err("exiting due to exception: "+e)}if(ENVIRONMENT_IS_NODE){var fs=__webpack_require__(5530),nodePath=__webpack_require__(6287);scriptDirectory=ENVIRONMENT_IS_WORKER?nodePath.dirname(scriptDirectory)+"/":__dirname+"/",read_=(e,t)=>(e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFileSync(e,t?void 0:"utf8")),readBinary=e=>{var t=read_(e,!0);return t.buffer||(t=new Uint8Array(t)),t},readAsync=(e,t,r)=>{e=isFileURI(e)?new URL(e):nodePath.normalize(e),fs.readFile(e,(function(e,s){e?r(e):t(s.buffer)}))},process.argv.length>1&&(thisProgram=process.argv[1].replace(/\\/g,"/")),arguments_=process.argv.slice(2),module.exports=Module,quit_=(e,t)=>{if(keepRuntimeAlive())throw process.exitCode=e,t;logExceptionOnExit(t),process.exit(e)},Module.inspect=function(){return"[Emscripten Module object]"}}else(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)&&(ENVIRONMENT_IS_WORKER?scriptDirectory=self.location.href:void 0!==document&&document.currentScript&&(scriptDirectory=document.currentScript.src),scriptDirectory=0!==scriptDirectory.indexOf("blob:")?scriptDirectory.substr(0,scriptDirectory.replace(/[?#].*/,"").lastIndexOf("/")+1):"",read_=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.send(null),t.responseText},ENVIRONMENT_IS_WORKER&&(readBinary=e=>{var t=new XMLHttpRequest;return t.open("GET",e,!1),t.responseType="arraybuffer",t.send(null),new Uint8Array(t.response)}),readAsync=(e,t,r)=>{var s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=()=>{200==s.status||0==s.status&&s.response?t(s.response):r()},s.onerror=r,s.send(null)},setWindowTitle=e=>document.title=e);var out=Module.print||console.log.bind(console),err=Module.printErr||console.warn.bind(console);Object.assign(Module,moduleOverrides),moduleOverrides=null,Module.arguments&&(arguments_=Module.arguments),Module.thisProgram&&(thisProgram=Module.thisProgram),Module.quit&&(quit_=Module.quit);var STACK_ALIGN=16,dynamicLibraries=Module.dynamicLibraries||[],wasmBinary;Module.wasmBinary&&(wasmBinary=Module.wasmBinary);var noExitRuntime=Module.noExitRuntime||!0,wasmMemory;"object"!=typeof WebAssembly&&abort("no native wasm support detected");var ABORT=!1,EXITSTATUS,UTF8Decoder="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0,buffer,HEAP8,HEAPU8,HEAP16,HEAPU16,HEAP32,HEAPU32,HEAPF32,HEAPF64;function UTF8ArrayToString(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.buffer&&UTF8Decoder)return UTF8Decoder.decode(e.subarray(t,n));for(var i="";t<n;){var o=e[t++];if(128&o){var a=63&e[t++];if(192!=(224&o)){var c=63&e[t++];if((o=224==(240&o)?(15&o)<<12|a<<6|c:(7&o)<<18|a<<12|c<<6|63&e[t++])<65536)i+=String.fromCharCode(o);else{var l=o-65536;i+=String.fromCharCode(55296|l>>10,56320|1023&l)}}else i+=String.fromCharCode((31&o)<<6|a)}else i+=String.fromCharCode(o)}return i}function UTF8ToString(e,t){return e?UTF8ArrayToString(HEAPU8,e,t):""}function stringToUTF8Array(e,t,r,s){if(!(s>0))return 0;for(var n=r,i=r+s-1,o=0;o<e.length;++o){var a=e.charCodeAt(o);if(a>=55296&&a<=57343&&(a=65536+((1023&a)<<10)|1023&e.charCodeAt(++o)),a<=127){if(r>=i)break;t[r++]=a}else if(a<=2047){if(r+1>=i)break;t[r++]=192|a>>6,t[r++]=128|63&a}else if(a<=65535){if(r+2>=i)break;t[r++]=224|a>>12,t[r++]=128|a>>6&63,t[r++]=128|63&a}else{if(r+3>=i)break;t[r++]=240|a>>18,t[r++]=128|a>>12&63,t[r++]=128|a>>6&63,t[r++]=128|63&a}}return t[r]=0,r-n}function stringToUTF8(e,t,r){return stringToUTF8Array(e,HEAPU8,t,r)}function lengthBytesUTF8(e){for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s<=127?t++:s<=2047?t+=2:s>=55296&&s<=57343?(t+=4,++r):t+=3}return t}function updateGlobalBufferAndViews(e){buffer=e,Module.HEAP8=HEAP8=new Int8Array(e),Module.HEAP16=HEAP16=new Int16Array(e),Module.HEAP32=HEAP32=new Int32Array(e),Module.HEAPU8=HEAPU8=new Uint8Array(e),Module.HEAPU16=HEAPU16=new Uint16Array(e),Module.HEAPU32=HEAPU32=new Uint32Array(e),Module.HEAPF32=HEAPF32=new Float32Array(e),Module.HEAPF64=HEAPF64=new Float64Array(e)}var INITIAL_MEMORY=Module.INITIAL_MEMORY||33554432;wasmMemory=Module.wasmMemory?Module.wasmMemory:new WebAssembly.Memory({initial:INITIAL_MEMORY/65536,maximum:32768}),wasmMemory&&(buffer=wasmMemory.buffer),INITIAL_MEMORY=buffer.byteLength,updateGlobalBufferAndViews(buffer);var wasmTable=new WebAssembly.Table({initial:20,element:"anyfunc"}),__ATPRERUN__=[],__ATINIT__=[],__ATMAIN__=[],__ATPOSTRUN__=[],__RELOC_FUNCS__=[],runtimeInitialized=!1;function keepRuntimeAlive(){return noExitRuntime}function preRun(){if(Module.preRun)for("function"==typeof Module.preRun&&(Module.preRun=[Module.preRun]);Module.preRun.length;)addOnPreRun(Module.preRun.shift());callRuntimeCallbacks(__ATPRERUN__)}function initRuntime(){runtimeInitialized=!0,callRuntimeCallbacks(__RELOC_FUNCS__),callRuntimeCallbacks(__ATINIT__)}function preMain(){callRuntimeCallbacks(__ATMAIN__)}function postRun(){if(Module.postRun)for("function"==typeof Module.postRun&&(Module.postRun=[Module.postRun]);Module.postRun.length;)addOnPostRun(Module.postRun.shift());callRuntimeCallbacks(__ATPOSTRUN__)}function addOnPreRun(e){__ATPRERUN__.unshift(e)}function addOnInit(e){__ATINIT__.unshift(e)}function addOnPostRun(e){__ATPOSTRUN__.unshift(e)}var runDependencies=0,runDependencyWatcher=null,dependenciesFulfilled=null;function addRunDependency(e){runDependencies++,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies)}function removeRunDependency(e){if(runDependencies--,Module.monitorRunDependencies&&Module.monitorRunDependencies(runDependencies),0==runDependencies&&(null!==runDependencyWatcher&&(clearInterval(runDependencyWatcher),runDependencyWatcher=null),dependenciesFulfilled)){var t=dependenciesFulfilled;dependenciesFulfilled=null,t()}}function abort(e){throw Module.onAbort&&Module.onAbort(e),err(e="Aborted("+e+")"),ABORT=!0,EXITSTATUS=1,e+=". Build with -sASSERTIONS for more info.",new WebAssembly.RuntimeError(e)}var dataURIPrefix="data:application/octet-stream;base64,",wasmBinaryFile,tempDouble,tempI64;function isDataURI(e){return e.startsWith(dataURIPrefix)}function isFileURI(e){return e.startsWith("file://")}function getBinary(e){try{if(e==wasmBinaryFile&&wasmBinary)return new Uint8Array(wasmBinary);if(readBinary)return readBinary(e);throw"both async and sync fetching of the wasm failed"}catch(e){abort(e)}}function getBinaryPromise(){if(!wasmBinary&&(ENVIRONMENT_IS_WEB||ENVIRONMENT_IS_WORKER)){if("function"==typeof fetch&&!isFileURI(wasmBinaryFile))return fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load wasm binary file at '"+wasmBinaryFile+"'";return e.arrayBuffer()})).catch((function(){return getBinary(wasmBinaryFile)}));if(readAsync)return new Promise((function(e,t){readAsync(wasmBinaryFile,(function(t){e(new Uint8Array(t))}),t)}))}return Promise.resolve().then((function(){return getBinary(wasmBinaryFile)}))}function createWasm(){var e={env:asmLibraryArg,wasi_snapshot_preview1:asmLibraryArg,"GOT.mem":new Proxy(asmLibraryArg,GOTHandler),"GOT.func":new Proxy(asmLibraryArg,GOTHandler)};function t(e,t){var r=e.exports;r=relocateExports(r,1024);var s=getDylinkMetadata(t);s.neededDynlibs&&(dynamicLibraries=s.neededDynlibs.concat(dynamicLibraries)),mergeLibSymbols(r,"main"),Module.asm=r,addOnInit(Module.asm.__wasm_call_ctors),__RELOC_FUNCS__.push(Module.asm.__wasm_apply_data_relocs),removeRunDependency("wasm-instantiate")}function r(e){t(e.instance,e.module)}function s(t){return getBinaryPromise().then((function(t){return WebAssembly.instantiate(t,e)})).then((function(e){return e})).then(t,(function(e){err("failed to asynchronously prepare wasm: "+e),abort(e)}))}if(addRunDependency("wasm-instantiate"),Module.instantiateWasm)try{return Module.instantiateWasm(e,t)}catch(e){return err("Module.instantiateWasm callback failed with error: "+e),!1}return wasmBinary||"function"!=typeof WebAssembly.instantiateStreaming||isDataURI(wasmBinaryFile)||isFileURI(wasmBinaryFile)||ENVIRONMENT_IS_NODE||"function"!=typeof fetch?s(r):fetch(wasmBinaryFile,{credentials:"same-origin"}).then((function(t){return WebAssembly.instantiateStreaming(t,e).then(r,(function(e){return err("wasm streaming compile failed: "+e),err("falling back to ArrayBuffer instantiation"),s(r)}))})),{}}wasmBinaryFile="tree-sitter.wasm",isDataURI(wasmBinaryFile)||(wasmBinaryFile=locateFile(wasmBinaryFile));var ASM_CONSTS={};function ExitStatus(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}var GOT={},CurrentModuleWeakSymbols=new Set([]),GOTHandler={get:function(e,t){var r=GOT[t];return r||(r=GOT[t]=new WebAssembly.Global({value:"i32",mutable:!0})),CurrentModuleWeakSymbols.has(t)||(r.required=!0),r}};function callRuntimeCallbacks(e){for(;e.length>0;)e.shift()(Module)}function getDylinkMetadata(e){var t=0,r=0;function s(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}function n(){var r=s();return UTF8ArrayToString(e,(t+=r)-r,r)}function i(e,t){if(e)throw new Error(t)}var o="dylink.0";if(e instanceof WebAssembly.Module){var a=WebAssembly.Module.customSections(e,o);0===a.length&&(o="dylink",a=WebAssembly.Module.customSections(e,o)),i(0===a.length,"need dylink section"),r=(e=new Uint8Array(a[0])).length}else{i(!(1836278016==new Uint32Array(new Uint8Array(e.subarray(0,24)).buffer)[0]),"need to see wasm magic number"),i(0!==e[8],"need the dylink section to be first"),t=9;var c=s();r=t+c,o=n()}var l={neededDynlibs:[],tlsExports:new Set,weakImports:new Set};if("dylink"==o){l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();for(var u=s(),p=0;p<u;++p){var m=n();l.neededDynlibs.push(m)}}else for(i("dylink.0"!==o);t<r;){var d=e[t++],h=s();if(1===d)l.memorySize=s(),l.memoryAlign=s(),l.tableSize=s(),l.tableAlign=s();else if(2===d)for(u=s(),p=0;p<u;++p)m=n(),l.neededDynlibs.push(m);else if(3===d)for(var _=s();_--;){var f=n();256&s()&&l.tlsExports.add(f)}else if(4===d)for(_=s();_--;)n(),f=n(),1==(3&s())&&l.weakImports.add(f);else t+=h}return l}function getValue(e,t="i8"){switch(t.endsWith("*")&&(t="*"),t){case"i1":case"i8":return HEAP8[e>>0];case"i16":return HEAP16[e>>1];case"i32":case"i64":return HEAP32[e>>2];case"float":return HEAPF32[e>>2];case"double":return HEAPF64[e>>3];case"*":return HEAPU32[e>>2];default:abort("invalid type for getValue: "+t)}return null}function asmjsMangle(e){return 0==e.indexOf("dynCall_")||["stackAlloc","stackSave","stackRestore","getTempRet0","setTempRet0"].includes(e)?e:"_"+e}function mergeLibSymbols(e,t){for(var r in e)if(e.hasOwnProperty(r)){asmLibraryArg.hasOwnProperty(r)||(asmLibraryArg[r]=e[r]);var s=asmjsMangle(r);Module.hasOwnProperty(s)||(Module[s]=e[r]),"__main_argc_argv"==r&&(Module._main=e[r])}}var LDSO={loadedLibsByName:{},loadedLibsByHandle:{}};function dynCallLegacy(e,t,r){var s=Module["dynCall_"+e];return r&&r.length?s.apply(null,[t].concat(r)):s.call(null,t)}var wasmTableMirror=[];function getWasmTableEntry(e){var t=wasmTableMirror[e];return t||(e>=wasmTableMirror.length&&(wasmTableMirror.length=e+1),wasmTableMirror[e]=t=wasmTable.get(e)),t}function dynCall(e,t,r){return e.includes("j")?dynCallLegacy(e,t,r):getWasmTableEntry(t).apply(null,r)}function createInvokeFunction(e){return function(){var t=stackSave();try{return dynCall(e,arguments[0],Array.prototype.slice.call(arguments,1))}catch(e){if(stackRestore(t),e!==e+0)throw e;_setThrew(1,0)}}}var ___heap_base=78144;function zeroMemory(e,t){return HEAPU8.fill(0,e,e+t),e}function getMemory(e){if(runtimeInitialized)return zeroMemory(_malloc(e),e);var t=___heap_base,r=t+e+15&-16;return ___heap_base=r,GOT.__heap_base.value=r,t}function isInternalSym(e){return["__cpp_exception","__c_longjmp","__wasm_apply_data_relocs","__dso_handle","__tls_size","__tls_align","__set_stack_limits","_emscripten_tls_init","__wasm_init_tls","__wasm_call_ctors","__start_em_asm","__stop_em_asm"].includes(e)}function uleb128Encode(e,t){e<128?t.push(e):t.push(e%128|128,e>>7)}function sigToWasmTypes(e){for(var t={i:"i32",j:"i32",f:"f32",d:"f64",p:"i32"},r={parameters:[],results:"v"==e[0]?[]:[t[e[0]]]},s=1;s<e.length;++s)r.parameters.push(t[e[s]]),"j"===e[s]&&r.parameters.push("i32");return r}function generateFuncType(e,t){var r=e.slice(0,1),s=e.slice(1),n={i:127,p:127,j:126,f:125,d:124};t.push(96),uleb128Encode(s.length,t);for(var i=0;i<s.length;++i)t.push(n[s[i]]);"v"==r?t.push(0):t.push(1,n[r])}function convertJsFunctionToWasm(e,t){if("function"==typeof WebAssembly.Function)return new WebAssembly.Function(sigToWasmTypes(t),e);var r=[1];generateFuncType(t,r);var s=[0,97,115,109,1,0,0,0,1];uleb128Encode(r.length,s),s.push.apply(s,r),s.push(2,7,1,1,101,1,102,0,0,7,5,1,1,102,0,0);var n=new WebAssembly.Module(new Uint8Array(s));return new WebAssembly.Instance(n,{e:{f:e}}).exports.f}function updateTableMap(e,t){if(functionsInTableMap)for(var r=e;r<e+t;r++){var s=getWasmTableEntry(r);s&&functionsInTableMap.set(s,r)}}var functionsInTableMap=void 0,freeTableIndexes=[];function getEmptyTableSlot(){if(freeTableIndexes.length)return freeTableIndexes.pop();try{wasmTable.grow(1)}catch(e){if(!(e instanceof RangeError))throw e;throw"Unable to grow wasm table. Set ALLOW_TABLE_GROWTH."}return wasmTable.length-1}function setWasmTableEntry(e,t){wasmTable.set(e,t),wasmTableMirror[e]=wasmTable.get(e)}function addFunction(e,t){if(functionsInTableMap||(functionsInTableMap=new WeakMap,updateTableMap(0,wasmTable.length)),functionsInTableMap.has(e))return functionsInTableMap.get(e);var r=getEmptyTableSlot();try{setWasmTableEntry(r,e)}catch(s){if(!(s instanceof TypeError))throw s;setWasmTableEntry(r,convertJsFunctionToWasm(e,t))}return functionsInTableMap.set(e,r),r}function updateGOT(e,t){for(var r in e)if(!isInternalSym(r)){var s=e[r];r.startsWith("orig$")&&(r=r.split("$")[1],t=!0),GOT[r]||(GOT[r]=new WebAssembly.Global({value:"i32",mutable:!0})),(t||0==GOT[r].value)&&("function"==typeof s?GOT[r].value=addFunction(s):"number"==typeof s?GOT[r].value=s:err("unhandled export type for `"+r+"`: "+typeof s))}}function relocateExports(e,t,r){var s={};for(var n in e){var i=e[n];"object"==typeof i&&(i=i.value),"number"==typeof i&&(i+=t),s[n]=i}return updateGOT(s,r),s}function resolveGlobalSymbol(e,t){var r;return t&&(r=asmLibraryArg["orig$"+e]),r||(r=asmLibraryArg[e])&&r.stub&&(r=void 0),r||(r=Module[asmjsMangle(e)]),!r&&e.startsWith("invoke_")&&(r=createInvokeFunction(e.split("_")[1])),r}function alignMemory(e,t){return Math.ceil(e/t)*t}function loadWebAssemblyModule(binary,flags,handle){var metadata=getDylinkMetadata(binary);function loadModule(){var firstLoad=!handle||!HEAP8[handle+12>>0];if(firstLoad){var memAlign=Math.pow(2,metadata.memoryAlign);memAlign=Math.max(memAlign,STACK_ALIGN);var memoryBase=metadata.memorySize?alignMemory(getMemory(metadata.memorySize+memAlign),memAlign):0,tableBase=metadata.tableSize?wasmTable.length:0;handle&&(HEAP8[handle+12>>0]=1,HEAPU32[handle+16>>2]=memoryBase,HEAP32[handle+20>>2]=metadata.memorySize,HEAPU32[handle+24>>2]=tableBase,HEAP32[handle+28>>2]=metadata.tableSize)}else memoryBase=HEAPU32[handle+16>>2],tableBase=HEAPU32[handle+24>>2];var tableGrowthNeeded=tableBase+metadata.tableSize-wasmTable.length,moduleExports;function resolveSymbol(e){var t=resolveGlobalSymbol(e,!1);return t||(t=moduleExports[e]),t}tableGrowthNeeded>0&&wasmTable.grow(tableGrowthNeeded);var proxyHandler={get:function(e,t){switch(t){case"__memory_base":return memoryBase;case"__table_base":return tableBase}return t in asmLibraryArg?asmLibraryArg[t]:(t in e||(e[t]=function(){return r||(r=resolveSymbol(t)),r.apply(null,arguments)}),e[t]);var r}},proxy=new Proxy({},proxyHandler),info={"GOT.mem":new Proxy({},GOTHandler),"GOT.func":new Proxy({},GOTHandler),env:proxy,wasi_snapshot_preview1:proxy};function postInstantiation(instance){function addEmAsm(addr,body){for(var args=[],arity=0;arity<16&&-1!=body.indexOf("$"+arity);arity++)args.push("$"+arity);args=args.join(",");var func="("+args+" ) => { "+body+"};";ASM_CONSTS[start]=eval(func)}if(updateTableMap(tableBase,metadata.tableSize),moduleExports=relocateExports(instance.exports,memoryBase),flags.allowUndefined||reportUndefinedSymbols(),"__start_em_asm"in moduleExports)for(var start=moduleExports.__start_em_asm,stop=moduleExports.__stop_em_asm;start<stop;){var jsString=UTF8ToString(start);addEmAsm(start,jsString),start=HEAPU8.indexOf(0,start)+1}var applyRelocs=moduleExports.__wasm_apply_data_relocs;applyRelocs&&(runtimeInitialized?applyRelocs():__RELOC_FUNCS__.push(applyRelocs));var init=moduleExports.__wasm_call_ctors;return init&&(runtimeInitialized?init():__ATINIT__.push(init)),moduleExports}if(flags.loadAsync){if(binary instanceof WebAssembly.Module){var instance=new WebAssembly.Instance(binary,info);return Promise.resolve(postInstantiation(instance))}return WebAssembly.instantiate(binary,info).then((function(e){return postInstantiation(e.instance)}))}var module=binary instanceof WebAssembly.Module?binary:new WebAssembly.Module(binary),instance=new WebAssembly.Instance(module,info);return postInstantiation(instance)}return CurrentModuleWeakSymbols=metadata.weakImports,flags.loadAsync?metadata.neededDynlibs.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,flags)}))}),Promise.resolve()).then((function(){return loadModule()})):(metadata.neededDynlibs.forEach((function(e){loadDynamicLibrary(e,flags)})),loadModule())}function loadDynamicLibrary(e,t,r){t=t||{global:!0,nodelete:!0};var s=LDSO.loadedLibsByName[e];if(s)return t.global&&!s.global&&(s.global=!0,"loading"!==s.module&&mergeLibSymbols(s.module,e)),t.nodelete&&s.refcount!==1/0&&(s.refcount=1/0),s.refcount++,r&&(LDSO.loadedLibsByHandle[r]=s),!t.loadAsync||Promise.resolve(!0);function n(e){if(t.fs&&t.fs.findObject(e)){var r=t.fs.readFile(e,{encoding:"binary"});return r instanceof Uint8Array||(r=new Uint8Array(r)),t.loadAsync?Promise.resolve(r):r}if(e=locateFile(e),t.loadAsync)return new Promise((function(t,r){readAsync(e,(e=>t(new Uint8Array(e))),r)}));if(!readBinary)throw new Error(e+": file not found, and synchronous loading of external files is not available");return readBinary(e)}function i(){if("undefined"!=typeof preloadedWasm&&preloadedWasm[e]){var s=preloadedWasm[e];return t.loadAsync?Promise.resolve(s):s}return t.loadAsync?n(e).then((function(e){return loadWebAssemblyModule(e,t,r)})):loadWebAssemblyModule(n(e),t,r)}function o(t){s.global&&mergeLibSymbols(t,e),s.module=t}return s={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},LDSO.loadedLibsByName[e]=s,r&&(LDSO.loadedLibsByHandle[r]=s),t.loadAsync?i().then((function(e){return o(e),!0})):(o(i()),!0)}function reportUndefinedSymbols(){for(var e in GOT)if(0==GOT[e].value){var t=resolveGlobalSymbol(e,!0);if(!t&&!GOT[e].required)continue;if("function"==typeof t)GOT[e].value=addFunction(t,t.sig);else{if("number"!=typeof t)throw new Error("bad export type for `"+e+"`: "+typeof t);GOT[e].value=t}}}function preloadDylibs(){dynamicLibraries.length?(addRunDependency("preloadDylibs"),dynamicLibraries.reduce((function(e,t){return e.then((function(){return loadDynamicLibrary(t,{loadAsync:!0,global:!0,nodelete:!0,allowUndefined:!0})}))}),Promise.resolve()).then((function(){reportUndefinedSymbols(),removeRunDependency("preloadDylibs")}))):reportUndefinedSymbols()}function setValue(e,t,r="i8"){switch(r.endsWith("*")&&(r="*"),r){case"i1":case"i8":HEAP8[e>>0]=t;break;case"i16":HEAP16[e>>1]=t;break;case"i32":HEAP32[e>>2]=t;break;case"i64":tempI64=[t>>>0,(tempDouble=t,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[e>>2]=tempI64[0],HEAP32[e+4>>2]=tempI64[1];break;case"float":HEAPF32[e>>2]=t;break;case"double":HEAPF64[e>>3]=t;break;case"*":HEAPU32[e>>2]=t;break;default:abort("invalid type for setValue: "+r)}}var ___memory_base=new WebAssembly.Global({value:"i32",mutable:!1},1024),___stack_pointer=new WebAssembly.Global({value:"i32",mutable:!0},78144),___table_base=new WebAssembly.Global({value:"i32",mutable:!1},1),nowIsMonotonic=!0,_emscripten_get_now;function __emscripten_get_now_is_monotonic(){return nowIsMonotonic}function _abort(){abort("")}function _emscripten_date_now(){return Date.now()}function _emscripten_memcpy_big(e,t,r){HEAPU8.copyWithin(e,t,t+r)}function getHeapMax(){return 2147483648}function emscripten_realloc_buffer(e){try{return wasmMemory.grow(e-buffer.byteLength+65535>>>16),updateGlobalBufferAndViews(wasmMemory.buffer),1}catch(e){}}function _emscripten_resize_heap(e){var t=HEAPU8.length;e>>>=0;var r,s=getHeapMax();if(e>s)return!1;for(var n=1;n<=4;n*=2){var i=t*(1+.2/n);if(i=Math.min(i,e+100663296),emscripten_realloc_buffer(Math.min(s,(r=Math.max(e,i))+(65536-r%65536)%65536)))return!0}return!1}__emscripten_get_now_is_monotonic.sig="i",Module._abort=_abort,_abort.sig="v",_emscripten_date_now.sig="d",_emscripten_get_now=ENVIRONMENT_IS_NODE?()=>{var e=process.hrtime();return 1e3*e[0]+e[1]/1e6}:()=>performance.now(),_emscripten_get_now.sig="d",_emscripten_memcpy_big.sig="vppp",_emscripten_resize_heap.sig="ip";var SYSCALLS={DEFAULT_POLLMASK:5,calculateAt:function(e,t,r){if(PATH.isAbs(t))return t;var s;if(s=-100===e?FS.cwd():SYSCALLS.getStreamFromFD(e).path,0==t.length){if(!r)throw new FS.ErrnoError(44);return s}return PATH.join2(s,t)},doStat:function(e,t,r){try{var s=e(t)}catch(e){if(e&&e.node&&PATH.normalize(t)!==PATH.normalize(FS.getPath(e.node)))return-54;throw e}HEAP32[r>>2]=s.dev,HEAP32[r+8>>2]=s.ino,HEAP32[r+12>>2]=s.mode,HEAPU32[r+16>>2]=s.nlink,HEAP32[r+20>>2]=s.uid,HEAP32[r+24>>2]=s.gid,HEAP32[r+28>>2]=s.rdev,tempI64=[s.size>>>0,(tempDouble=s.size,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+40>>2]=tempI64[0],HEAP32[r+44>>2]=tempI64[1],HEAP32[r+48>>2]=4096,HEAP32[r+52>>2]=s.blocks;var n=s.atime.getTime(),i=s.mtime.getTime(),o=s.ctime.getTime();return tempI64=[Math.floor(n/1e3)>>>0,(tempDouble=Math.floor(n/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+56>>2]=tempI64[0],HEAP32[r+60>>2]=tempI64[1],HEAPU32[r+64>>2]=n%1e3*1e3,tempI64=[Math.floor(i/1e3)>>>0,(tempDouble=Math.floor(i/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+72>>2]=tempI64[0],HEAP32[r+76>>2]=tempI64[1],HEAPU32[r+80>>2]=i%1e3*1e3,tempI64=[Math.floor(o/1e3)>>>0,(tempDouble=Math.floor(o/1e3),+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+88>>2]=tempI64[0],HEAP32[r+92>>2]=tempI64[1],HEAPU32[r+96>>2]=o%1e3*1e3,tempI64=[s.ino>>>0,(tempDouble=s.ino,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[r+104>>2]=tempI64[0],HEAP32[r+108>>2]=tempI64[1],0},doMsync:function(e,t,r,s,n){if(!FS.isFile(t.node.mode))throw new FS.ErrnoError(43);if(2&s)return 0;var i=HEAPU8.slice(e,e+r);FS.msync(t,i,n,r,s)},varargs:void 0,get:function(){return SYSCALLS.varargs+=4,HEAP32[SYSCALLS.varargs-4>>2]},getStr:function(e){return UTF8ToString(e)},getStreamFromFD:function(e){var t=FS.getStream(e);if(!t)throw new FS.ErrnoError(8);return t}};function _proc_exit(e){EXITSTATUS=e,keepRuntimeAlive()||(Module.onExit&&Module.onExit(e),ABORT=!0),quit_(e,new ExitStatus(e))}function exitJS(e,t){EXITSTATUS=e,_proc_exit(e)}_proc_exit.sig="vi";var _exit=exitJS;function _fd_close(e){try{var t=SYSCALLS.getStreamFromFD(e);return FS.close(t),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function convertI32PairToI53Checked(e,t){return t+2097152>>>0<4194305-!!e?(e>>>0)+4294967296*t:NaN}function _fd_seek(e,t,r,s,n){try{var i=convertI32PairToI53Checked(t,r);if(isNaN(i))return 61;var o=SYSCALLS.getStreamFromFD(e);return FS.llseek(o,i,s),tempI64=[o.position>>>0,(tempDouble=o.position,+Math.abs(tempDouble)>=1?tempDouble>0?(0|Math.min(+Math.floor(tempDouble/4294967296),4294967295))>>>0:~~+Math.ceil((tempDouble-+(~~tempDouble>>>0))/4294967296)>>>0:0)],HEAP32[n>>2]=tempI64[0],HEAP32[n+4>>2]=tempI64[1],o.getdents&&0===i&&0===s&&(o.getdents=null),0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function doWritev(e,t,r,s){for(var n=0,i=0;i<r;i++){var o=HEAPU32[t>>2],a=HEAPU32[t+4>>2];t+=8;var c=FS.write(e,HEAP8,o,a,s);if(c<0)return-1;n+=c,void 0!==s&&(s+=c)}return n}function _fd_write(e,t,r,s){try{var n=doWritev(SYSCALLS.getStreamFromFD(e),t,r);return HEAPU32[s>>2]=n,0}catch(e){if("undefined"==typeof FS||!(e instanceof FS.ErrnoError))throw e;return e.errno}}function _tree_sitter_log_callback(e,t){if(currentLogCallback){const r=UTF8ToString(t);currentLogCallback(r,0!==e)}}function _tree_sitter_parse_callback(e,t,r,s,n){var i=currentParseCallback(t,{row:r,column:s});"string"==typeof i?(setValue(n,i.length,"i32"),stringToUTF16(i,e,10240)):setValue(n,0,"i32")}function handleException(e){if(e instanceof ExitStatus||"unwind"==e)return EXITSTATUS;quit_(1,e)}function allocateUTF8OnStack(e){var t=lengthBytesUTF8(e)+1,r=stackAlloc(t);return stringToUTF8Array(e,HEAP8,r,t),r}function stringToUTF16(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var s=t,n=(r-=2)<2*e.length?r/2:e.length,i=0;i<n;++i){var o=e.charCodeAt(i);HEAP16[t>>1]=o,t+=2}return HEAP16[t>>1]=0,t-s}function AsciiToString(e){for(var t="";;){var r=HEAPU8[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}_exit.sig="vi",_fd_close.sig="ii",_fd_seek.sig="iijip",_fd_write.sig="iippp";var asmLibraryArg={__heap_base:___heap_base,__indirect_function_table:wasmTable,__memory_base:___memory_base,__stack_pointer:___stack_pointer,__table_base:___table_base,_emscripten_get_now_is_monotonic:__emscripten_get_now_is_monotonic,abort:_abort,emscripten_get_now:_emscripten_get_now,emscripten_memcpy_big:_emscripten_memcpy_big,emscripten_resize_heap:_emscripten_resize_heap,exit:_exit,fd_close:_fd_close,fd_seek:_fd_seek,fd_write:_fd_write,memory:wasmMemory,tree_sitter_log_callback:_tree_sitter_log_callback,tree_sitter_parse_callback:_tree_sitter_parse_callback},asm=createWasm(),___wasm_call_ctors=Module.___wasm_call_ctors=function(){return(___wasm_call_ctors=Module.___wasm_call_ctors=Module.asm.__wasm_call_ctors).apply(null,arguments)},___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=function(){return(___wasm_apply_data_relocs=Module.___wasm_apply_data_relocs=Module.asm.__wasm_apply_data_relocs).apply(null,arguments)},_malloc=Module._malloc=function(){return(_malloc=Module._malloc=Module.asm.malloc).apply(null,arguments)},_calloc=Module._calloc=function(){return(_calloc=Module._calloc=Module.asm.calloc).apply(null,arguments)},_realloc=Module._realloc=function(){return(_realloc=Module._realloc=Module.asm.realloc).apply(null,arguments)},_free=Module._free=function(){return(_free=Module._free=Module.asm.free).apply(null,arguments)},_ts_language_symbol_count=Module._ts_language_symbol_count=function(){return(_ts_language_symbol_count=Module._ts_language_symbol_count=Module.asm.ts_language_symbol_count).apply(null,arguments)},_ts_language_version=Module._ts_language_version=function(){return(_ts_language_version=Module._ts_language_version=Module.asm.ts_language_version).apply(null,arguments)},_ts_language_field_count=Module._ts_language_field_count=function(){return(_ts_language_field_count=Module._ts_language_field_count=Module.asm.ts_language_field_count).apply(null,arguments)},_ts_language_symbol_name=Module._ts_language_symbol_name=function(){return(_ts_language_symbol_name=Module._ts_language_symbol_name=Module.asm.ts_language_symbol_name).apply(null,arguments)},_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=function(){return(_ts_language_symbol_for_name=Module._ts_language_symbol_for_name=Module.asm.ts_language_symbol_for_name).apply(null,arguments)},_ts_language_symbol_type=Module._ts_language_symbol_type=function(){return(_ts_language_symbol_type=Module._ts_language_symbol_type=Module.asm.ts_language_symbol_type).apply(null,arguments)},_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=function(){return(_ts_language_field_name_for_id=Module._ts_language_field_name_for_id=Module.asm.ts_language_field_name_for_id).apply(null,arguments)},_memset=Module._memset=function(){return(_memset=Module._memset=Module.asm.memset).apply(null,arguments)},_memcpy=Module._memcpy=function(){return(_memcpy=Module._memcpy=Module.asm.memcpy).apply(null,arguments)},_ts_parser_delete=Module._ts_parser_delete=function(){return(_ts_parser_delete=Module._ts_parser_delete=Module.asm.ts_parser_delete).apply(null,arguments)},_ts_parser_reset=Module._ts_parser_reset=function(){return(_ts_parser_reset=Module._ts_parser_reset=Module.asm.ts_parser_reset).apply(null,arguments)},_ts_parser_set_language=Module._ts_parser_set_language=function(){return(_ts_parser_set_language=Module._ts_parser_set_language=Module.asm.ts_parser_set_language).apply(null,arguments)},_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=function(){return(_ts_parser_timeout_micros=Module._ts_parser_timeout_micros=Module.asm.ts_parser_timeout_micros).apply(null,arguments)},_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=function(){return(_ts_parser_set_timeout_micros=Module._ts_parser_set_timeout_micros=Module.asm.ts_parser_set_timeout_micros).apply(null,arguments)},_memmove=Module._memmove=function(){return(_memmove=Module._memmove=Module.asm.memmove).apply(null,arguments)},_memcmp=Module._memcmp=function(){return(_memcmp=Module._memcmp=Module.asm.memcmp).apply(null,arguments)},_ts_query_new=Module._ts_query_new=function(){return(_ts_query_new=Module._ts_query_new=Module.asm.ts_query_new).apply(null,arguments)},_ts_query_delete=Module._ts_query_delete=function(){return(_ts_query_delete=Module._ts_query_delete=Module.asm.ts_query_delete).apply(null,arguments)},_iswspace=Module._iswspace=function(){return(_iswspace=Module._iswspace=Module.asm.iswspace).apply(null,arguments)},_iswalnum=Module._iswalnum=function(){return(_iswalnum=Module._iswalnum=Module.asm.iswalnum).apply(null,arguments)},_ts_query_pattern_count=Module._ts_query_pattern_count=function(){return(_ts_query_pattern_count=Module._ts_query_pattern_count=Module.asm.ts_query_pattern_count).apply(null,arguments)},_ts_query_capture_count=Module._ts_query_capture_count=function(){return(_ts_query_capture_count=Module._ts_query_capture_count=Module.asm.ts_query_capture_count).apply(null,arguments)},_ts_query_string_count=Module._ts_query_string_count=function(){return(_ts_query_string_count=Module._ts_query_string_count=Module.asm.ts_query_string_count).apply(null,arguments)},_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=function(){return(_ts_query_capture_name_for_id=Module._ts_query_capture_name_for_id=Module.asm.ts_query_capture_name_for_id).apply(null,arguments)},_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=function(){return(_ts_query_string_value_for_id=Module._ts_query_string_value_for_id=Module.asm.ts_query_string_value_for_id).apply(null,arguments)},_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=function(){return(_ts_query_predicates_for_pattern=Module._ts_query_predicates_for_pattern=Module.asm.ts_query_predicates_for_pattern).apply(null,arguments)},_ts_tree_copy=Module._ts_tree_copy=function(){return(_ts_tree_copy=Module._ts_tree_copy=Module.asm.ts_tree_copy).apply(null,arguments)},_ts_tree_delete=Module._ts_tree_delete=function(){return(_ts_tree_delete=Module._ts_tree_delete=Module.asm.ts_tree_delete).apply(null,arguments)},_ts_init=Module._ts_init=function(){return(_ts_init=Module._ts_init=Module.asm.ts_init).apply(null,arguments)},_ts_parser_new_wasm=Module._ts_parser_new_wasm=function(){return(_ts_parser_new_wasm=Module._ts_parser_new_wasm=Module.asm.ts_parser_new_wasm).apply(null,arguments)},_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=function(){return(_ts_parser_enable_logger_wasm=Module._ts_parser_enable_logger_wasm=Module.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=function(){return(_ts_parser_parse_wasm=Module._ts_parser_parse_wasm=Module.asm.ts_parser_parse_wasm).apply(null,arguments)},_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=function(){return(_ts_language_type_is_named_wasm=Module._ts_language_type_is_named_wasm=Module.asm.ts_language_type_is_named_wasm).apply(null,arguments)},_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=function(){return(_ts_language_type_is_visible_wasm=Module._ts_language_type_is_visible_wasm=Module.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=function(){return(_ts_tree_root_node_wasm=Module._ts_tree_root_node_wasm=Module.asm.ts_tree_root_node_wasm).apply(null,arguments)},_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=function(){return(_ts_tree_edit_wasm=Module._ts_tree_edit_wasm=Module.asm.ts_tree_edit_wasm).apply(null,arguments)},_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=function(){return(_ts_tree_get_changed_ranges_wasm=Module._ts_tree_get_changed_ranges_wasm=Module.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=function(){return(_ts_tree_cursor_new_wasm=Module._ts_tree_cursor_new_wasm=Module.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=function(){return(_ts_tree_cursor_delete_wasm=Module._ts_tree_cursor_delete_wasm=Module.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=function(){return(_ts_tree_cursor_reset_wasm=Module._ts_tree_cursor_reset_wasm=Module.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=function(){return(_ts_tree_cursor_goto_first_child_wasm=Module._ts_tree_cursor_goto_first_child_wasm=Module.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=function(){return(_ts_tree_cursor_goto_next_sibling_wasm=Module._ts_tree_cursor_goto_next_sibling_wasm=Module.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=function(){return(_ts_tree_cursor_goto_parent_wasm=Module._ts_tree_cursor_goto_parent_wasm=Module.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=function(){return(_ts_tree_cursor_current_node_type_id_wasm=Module._ts_tree_cursor_current_node_type_id_wasm=Module.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=function(){return(_ts_tree_cursor_current_node_is_named_wasm=Module._ts_tree_cursor_current_node_is_named_wasm=Module.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=function(){return(_ts_tree_cursor_current_node_is_missing_wasm=Module._ts_tree_cursor_current_node_is_missing_wasm=Module.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=function(){return(_ts_tree_cursor_current_node_id_wasm=Module._ts_tree_cursor_current_node_id_wasm=Module.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=function(){return(_ts_tree_cursor_start_position_wasm=Module._ts_tree_cursor_start_position_wasm=Module.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=function(){return(_ts_tree_cursor_end_position_wasm=Module._ts_tree_cursor_end_position_wasm=Module.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=function(){return(_ts_tree_cursor_start_index_wasm=Module._ts_tree_cursor_start_index_wasm=Module.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=function(){return(_ts_tree_cursor_end_index_wasm=Module._ts_tree_cursor_end_index_wasm=Module.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=function(){return(_ts_tree_cursor_current_field_id_wasm=Module._ts_tree_cursor_current_field_id_wasm=Module.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=function(){return(_ts_tree_cursor_current_node_wasm=Module._ts_tree_cursor_current_node_wasm=Module.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=function(){return(_ts_node_symbol_wasm=Module._ts_node_symbol_wasm=Module.asm.ts_node_symbol_wasm).apply(null,arguments)},_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=function(){return(_ts_node_child_count_wasm=Module._ts_node_child_count_wasm=Module.asm.ts_node_child_count_wasm).apply(null,arguments)},_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=function(){return(_ts_node_named_child_count_wasm=Module._ts_node_named_child_count_wasm=Module.asm.ts_node_named_child_count_wasm).apply(null,arguments)},_ts_node_child_wasm=Module._ts_node_child_wasm=function(){return(_ts_node_child_wasm=Module._ts_node_child_wasm=Module.asm.ts_node_child_wasm).apply(null,arguments)},_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=function(){return(_ts_node_named_child_wasm=Module._ts_node_named_child_wasm=Module.asm.ts_node_named_child_wasm).apply(null,arguments)},_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=function(){return(_ts_node_child_by_field_id_wasm=Module._ts_node_child_by_field_id_wasm=Module.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=function(){return(_ts_node_next_sibling_wasm=Module._ts_node_next_sibling_wasm=Module.asm.ts_node_next_sibling_wasm).apply(null,arguments)},_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=function(){return(_ts_node_prev_sibling_wasm=Module._ts_node_prev_sibling_wasm=Module.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=function(){return(_ts_node_next_named_sibling_wasm=Module._ts_node_next_named_sibling_wasm=Module.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=function(){return(_ts_node_prev_named_sibling_wasm=Module._ts_node_prev_named_sibling_wasm=Module.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},_ts_node_parent_wasm=Module._ts_node_parent_wasm=function(){return(_ts_node_parent_wasm=Module._ts_node_parent_wasm=Module.asm.ts_node_parent_wasm).apply(null,arguments)},_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=function(){return(_ts_node_descendant_for_index_wasm=Module._ts_node_descendant_for_index_wasm=Module.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=function(){return(_ts_node_named_descendant_for_index_wasm=Module._ts_node_named_descendant_for_index_wasm=Module.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=function(){return(_ts_node_descendant_for_position_wasm=Module._ts_node_descendant_for_position_wasm=Module.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=function(){return(_ts_node_named_descendant_for_position_wasm=Module._ts_node_named_descendant_for_position_wasm=Module.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=function(){return(_ts_node_start_point_wasm=Module._ts_node_start_point_wasm=Module.asm.ts_node_start_point_wasm).apply(null,arguments)},_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=function(){return(_ts_node_end_point_wasm=Module._ts_node_end_point_wasm=Module.asm.ts_node_end_point_wasm).apply(null,arguments)},_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=function(){return(_ts_node_start_index_wasm=Module._ts_node_start_index_wasm=Module.asm.ts_node_start_index_wasm).apply(null,arguments)},_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=function(){return(_ts_node_end_index_wasm=Module._ts_node_end_index_wasm=Module.asm.ts_node_end_index_wasm).apply(null,arguments)},_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=function(){return(_ts_node_to_string_wasm=Module._ts_node_to_string_wasm=Module.asm.ts_node_to_string_wasm).apply(null,arguments)},_ts_node_children_wasm=Module._ts_node_children_wasm=function(){return(_ts_node_children_wasm=Module._ts_node_children_wasm=Module.asm.ts_node_children_wasm).apply(null,arguments)},_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=function(){return(_ts_node_named_children_wasm=Module._ts_node_named_children_wasm=Module.asm.ts_node_named_children_wasm).apply(null,arguments)},_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=function(){return(_ts_node_descendants_of_type_wasm=Module._ts_node_descendants_of_type_wasm=Module.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=function(){return(_ts_node_is_named_wasm=Module._ts_node_is_named_wasm=Module.asm.ts_node_is_named_wasm).apply(null,arguments)},_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=function(){return(_ts_node_has_changes_wasm=Module._ts_node_has_changes_wasm=Module.asm.ts_node_has_changes_wasm).apply(null,arguments)},_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=function(){return(_ts_node_has_error_wasm=Module._ts_node_has_error_wasm=Module.asm.ts_node_has_error_wasm).apply(null,arguments)},_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=function(){return(_ts_node_is_missing_wasm=Module._ts_node_is_missing_wasm=Module.asm.ts_node_is_missing_wasm).apply(null,arguments)},_ts_query_matches_wasm=Module._ts_query_matches_wasm=function(){return(_ts_query_matches_wasm=Module._ts_query_matches_wasm=Module.asm.ts_query_matches_wasm).apply(null,arguments)},_ts_query_captures_wasm=Module._ts_query_captures_wasm=function(){return(_ts_query_captures_wasm=Module._ts_query_captures_wasm=Module.asm.ts_query_captures_wasm).apply(null,arguments)},___cxa_atexit=Module.___cxa_atexit=function(){return(___cxa_atexit=Module.___cxa_atexit=Module.asm.__cxa_atexit).apply(null,arguments)},_iswdigit=Module._iswdigit=function(){return(_iswdigit=Module._iswdigit=Module.asm.iswdigit).apply(null,arguments)},_iswalpha=Module._iswalpha=function(){return(_iswalpha=Module._iswalpha=Module.asm.iswalpha).apply(null,arguments)},_iswlower=Module._iswlower=function(){return(_iswlower=Module._iswlower=Module.asm.iswlower).apply(null,arguments)},_memchr=Module._memchr=function(){return(_memchr=Module._memchr=Module.asm.memchr).apply(null,arguments)},_strlen=Module._strlen=function(){return(_strlen=Module._strlen=Module.asm.strlen).apply(null,arguments)},_towupper=Module._towupper=function(){return(_towupper=Module._towupper=Module.asm.towupper).apply(null,arguments)},_setThrew=Module._setThrew=function(){return(_setThrew=Module._setThrew=Module.asm.setThrew).apply(null,arguments)},stackSave=Module.stackSave=function(){return(stackSave=Module.stackSave=Module.asm.stackSave).apply(null,arguments)},stackRestore=Module.stackRestore=function(){return(stackRestore=Module.stackRestore=Module.asm.stackRestore).apply(null,arguments)},stackAlloc=Module.stackAlloc=function(){return(stackAlloc=Module.stackAlloc=Module.asm.stackAlloc).apply(null,arguments)},__Znwm=Module.__Znwm=function(){return(__Znwm=Module.__Znwm=Module.asm._Znwm).apply(null,arguments)},__ZdlPv=Module.__ZdlPv=function(){return(__ZdlPv=Module.__ZdlPv=Module.asm._ZdlPv).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=Module.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=Module.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=function(){return(__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw=Module.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE6resizeEmw).apply(null,arguments)},dynCall_jiji=Module.dynCall_jiji=function(){return(dynCall_jiji=Module.dynCall_jiji=Module.asm.dynCall_jiji).apply(null,arguments)},_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=function(){return(_orig$ts_parser_timeout_micros=Module._orig$ts_parser_timeout_micros=Module.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=function(){return(_orig$ts_parser_set_timeout_micros=Module._orig$ts_parser_set_timeout_micros=Module.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},calledRun;function callMain(e){var t=Module._main;if(t){(e=e||[]).unshift(thisProgram);var r=e.length,s=stackAlloc(4*(r+1)),n=s>>2;e.forEach((e=>{HEAP32[n++]=allocateUTF8OnStack(e)})),HEAP32[n]=0;try{var i=t(r,s);return exitJS(i,!0),i}catch(e){return handleException(e)}}}Module.AsciiToString=AsciiToString,Module.stringToUTF16=stringToUTF16,dependenciesFulfilled=function e(){calledRun||run(),calledRun||(dependenciesFulfilled=e)};var dylibsLoaded=!1;function run(e){function t(){calledRun||(calledRun=!0,Module.calledRun=!0,ABORT||(initRuntime(),preMain(),Module.onRuntimeInitialized&&Module.onRuntimeInitialized(),shouldRunNow&&callMain(e),postRun()))}e=e||arguments_,runDependencies>0||!dylibsLoaded&&(preloadDylibs(),dylibsLoaded=!0,runDependencies>0)||(preRun(),runDependencies>0||(Module.setStatus?(Module.setStatus("Running..."),setTimeout((function(){setTimeout((function(){Module.setStatus("")}),1),t()}),1)):t()))}if(Module.preInit)for("function"==typeof Module.preInit&&(Module.preInit=[Module.preInit]);Module.preInit.length>0;)Module.preInit.pop()();var shouldRunNow=!0;Module.noInitialRun&&(shouldRunNow=!1),run();const C=Module,INTERNAL={},SIZE_OF_INT=4,SIZE_OF_NODE=5*SIZE_OF_INT,SIZE_OF_POINT=2*SIZE_OF_INT,SIZE_OF_RANGE=2*SIZE_OF_INT+2*SIZE_OF_POINT,ZERO_POINT={row:0,column:0},QUERY_WORD_REGEX=/[\w-.]*/g,PREDICATE_STEP_TYPE_CAPTURE=1,PREDICATE_STEP_TYPE_STRING=2,LANGUAGE_FUNCTION_REGEX=/^_?tree_sitter_\w+/;var VERSION,MIN_COMPATIBLE_VERSION,TRANSFER_BUFFER,currentParseCallback,currentLogCallback;class ParserImpl{static init(){TRANSFER_BUFFER=C._ts_init(),VERSION=getValue(TRANSFER_BUFFER,"i32"),MIN_COMPATIBLE_VERSION=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}initialize(){C._ts_parser_new_wasm(),this[0]=getValue(TRANSFER_BUFFER,"i32"),this[1]=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32")}delete(){C._ts_parser_delete(this[0]),C._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==Language)throw new Error("Argument must be a Language");{t=e[0];const r=C._ts_language_version(t);if(r<MIN_COMPATIBLE_VERSION||VERSION<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${MIN_COMPATIBLE_VERSION} through ${VERSION}.`)}}else t=0,e=null;return this.language=e,C._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)currentParseCallback=(t,r,s)=>e.slice(t,s);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");currentParseCallback=e}this.logCallback?(currentLogCallback=this.logCallback,C._ts_parser_enable_logger_wasm(this[0],1)):(currentLogCallback=null,C._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r&&r.includedRanges){s=r.includedRanges.length,n=C._calloc(s,SIZE_OF_RANGE);let e=n;for(let t=0;t<s;t++)marshalRange(e,r.includedRanges[t]),e+=SIZE_OF_RANGE}const i=C._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!i)throw currentParseCallback=null,currentLogCallback=null,new Error("Parsing failed");const o=new Tree(INTERNAL,i,this.language,currentParseCallback);return currentParseCallback=null,currentLogCallback=null,o}reset(){C._ts_parser_reset(this[0])}setTimeoutMicros(e){C._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return C._ts_parser_timeout_micros(this[0])}setLogger(e){if(e){if("function"!=typeof e)throw new Error("Logger callback must be a function")}else e=null;return this.logCallback=e,this}getLogger(){return this.logCallback}}class Tree{constructor(e,t,r,s){assertInternal(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=C._ts_tree_copy(this[0]);return new Tree(INTERNAL,e,this.language,this.textCallback)}delete(){C._ts_tree_delete(this[0]),this[0]=0}edit(e){marshalEdit(e),C._ts_tree_edit_wasm(this[0])}get rootNode(){return C._ts_tree_root_node_wasm(this[0]),unmarshalNode(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==Tree)throw new TypeError("Argument must be a Tree");C._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=getValue(TRANSFER_BUFFER,"i32"),r=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=unmarshalRange(e),e+=SIZE_OF_RANGE;C._free(r)}return s}}class Node{constructor(e,t){assertInternal(e),this.tree=t}get typeId(){return marshalNode(this),C._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return marshalNode(this),C._ts_node_end_point_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endIndex(){return marshalNode(this),C._ts_node_end_index_wasm(this.tree[0])}get text(){return getText(this.tree,this.startIndex,this.endIndex)}isNamed(){return marshalNode(this),1===C._ts_node_is_named_wasm(this.tree[0])}hasError(){return marshalNode(this),1===C._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return marshalNode(this),1===C._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return marshalNode(this),1===C._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return marshalNode(this),C._ts_node_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}namedChild(e){return marshalNode(this),C._ts_node_named_child_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldId(e){return marshalNode(this),C._ts_node_child_by_field_id_wasm(this.tree[0],e),unmarshalNode(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return marshalNode(this),C._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return marshalNode(this),C._ts_node_named_child_count_wasm(this.tree[0])}get firstChild(){return this.child(0)}get firstNamedChild(){return this.namedChild(0)}get lastChild(){return this.child(this.childCount-1)}get lastNamedChild(){return this.namedChild(this.namedChildCount-1)}get children(){if(!this._children){marshalNode(this),C._ts_node_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){marshalNode(this),C._ts_node_named_children_wasm(this.tree[0]);const e=getValue(TRANSFER_BUFFER,"i32"),t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=unmarshalNode(this.tree,r),r+=SIZE_OF_NODE;C._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=ZERO_POINT),r||(r=ZERO_POINT);const s=[],n=this.tree.language.types;for(let t=0,r=n.length;t<r;t++)e.includes(n[t])&&s.push(t);const i=C._malloc(SIZE_OF_INT*s.length);for(let e=0,t=s.length;e<t;e++)setValue(i+e*SIZE_OF_INT,s[e],"i32");marshalNode(this),C._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.column);const o=getValue(TRANSFER_BUFFER,"i32"),a=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),c=new Array(o);if(o>0){let e=a;for(let t=0;t<o;t++)c[t]=unmarshalNode(this.tree,e),e+=SIZE_OF_NODE}return C._free(a),C._free(i),c}get nextSibling(){return marshalNode(this),C._ts_node_next_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousSibling(){return marshalNode(this),C._ts_node_prev_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get nextNamedSibling(){return marshalNode(this),C._ts_node_next_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get previousNamedSibling(){return marshalNode(this),C._ts_node_prev_named_sibling_wasm(this.tree[0]),unmarshalNode(this.tree)}get parent(){return marshalNode(this),C._ts_node_parent_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return setValue(r,e,"i32"),setValue(r+SIZE_OF_INT,t,"i32"),C._ts_node_named_descendant_for_index_wasm(this.tree[0]),unmarshalNode(this.tree)}descendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}namedDescendantForPosition(e,t=e){if(!isPoint(e)||!isPoint(t))throw new Error("Arguments must be {row, column} objects");marshalNode(this);let r=TRANSFER_BUFFER+SIZE_OF_NODE;return marshalPoint(r,e),marshalPoint(r+SIZE_OF_POINT,t),C._ts_node_named_descendant_for_position_wasm(this.tree[0]),unmarshalNode(this.tree)}walk(){return marshalNode(this),C._ts_tree_cursor_new_wasm(this.tree[0]),new TreeCursor(INTERNAL,this.tree)}toString(){marshalNode(this);const e=C._ts_node_to_string_wasm(this.tree[0]),t=AsciiToString(e);return C._free(e),t}}class TreeCursor{constructor(e,t){assertInternal(e),this.tree=t,unmarshalTreeCursor(this)}delete(){marshalTreeCursor(this),C._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){marshalNode(e),marshalTreeCursor(this,TRANSFER_BUFFER+SIZE_OF_NODE),C._ts_tree_cursor_reset_wasm(this.tree[0]),unmarshalTreeCursor(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return marshalTreeCursor(this),1===C._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){marshalTreeCursor(this);const e=C._ts_tree_cursor_start_index_wasm(this.tree[0]),t=C._ts_tree_cursor_end_index_wasm(this.tree[0]);return getText(this.tree,e,t)}get startPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_start_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get endPosition(){return marshalTreeCursor(this),C._ts_tree_cursor_end_position_wasm(this.tree[0]),unmarshalPoint(TRANSFER_BUFFER)}get startIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return marshalTreeCursor(this),C._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return marshalTreeCursor(this),C._ts_tree_cursor_current_node_wasm(this.tree[0]),unmarshalNode(this.tree)}currentFieldId(){return marshalTreeCursor(this),C._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoNextSibling(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}gotoParent(){marshalTreeCursor(this);const e=C._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return unmarshalTreeCursor(this),1===e}}class Language{constructor(e,t){assertInternal(e),this[0]=t,this.types=new Array(C._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)C._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=UTF8ToString(C._ts_language_symbol_name(this[0],e)));this.fields=new Array(C._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=C._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?UTF8ToString(t):null}}get version(){return C._ts_language_version(this[0])}get fieldCount(){return this.fields.length-1}fieldIdForName(e){const t=this.fields.indexOf(e);return-1!==t?t:null}fieldNameForId(e){return this.fields[e]||null}idForNodeType(e,t){const r=lengthBytesUTF8(e),s=C._malloc(r+1);stringToUTF8(e,s,r+1);const n=C._ts_language_symbol_for_name(this[0],s,r,t);return C._free(s),n||null}get nodeTypeCount(){return C._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=C._ts_language_symbol_name(this[0],e);return t?UTF8ToString(t):null}nodeTypeIsNamed(e){return!!C._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!C._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=lengthBytesUTF8(e),r=C._malloc(t+1);stringToUTF8(e,r,t+1);const s=C._ts_query_new(this[0],r,t,TRANSFER_BUFFER,TRANSFER_BUFFER+SIZE_OF_INT);if(!s){const t=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),s=UTF8ToString(r,getValue(TRANSFER_BUFFER,"i32")).length,n=e.substr(s,100).split("\n")[0];let i,o=n.match(QUERY_WORD_REGEX)[0];switch(t){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 ${s}: '${n}'...`),o="";break;default:i=new SyntaxError(`Bad syntax at offset ${s}: '${n}'...`),o=""}throw i.index=s,i.length=o.length,C._free(r),i}const n=C._ts_query_string_count(s),i=C._ts_query_capture_count(s),o=C._ts_query_pattern_count(s),a=new Array(i),c=new Array(n);for(let e=0;e<i;e++){const t=C._ts_query_capture_name_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");a[e]=UTF8ToString(t,r)}for(let e=0;e<n;e++){const t=C._ts_query_string_value_for_id(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");c[e]=UTF8ToString(t,r)}const l=new Array(o),u=new Array(o),p=new Array(o),m=new Array(o),d=new Array(o);for(let e=0;e<o;e++){const t=C._ts_query_predicates_for_pattern(s,e,TRANSFER_BUFFER),r=getValue(TRANSFER_BUFFER,"i32");m[e]=[],d[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=getValue(i,"i32");i+=SIZE_OF_INT;const r=getValue(i,"i32");if(i+=SIZE_OF_INT,t===PREDICATE_STEP_TYPE_CAPTURE)n.push({type:"capture",name:a[r]});else if(t===PREDICATE_STEP_TYPE_STRING)n.push({type:"string",value:c[r]});else if(n.length>0){if("string"!==n[0].type)throw new Error("Predicates must begin with a literal value");const t=n[0].value;let r=!0;switch(t){case"not-eq?":r=!1;case"eq?":if(3!==n.length)throw new Error("Wrong number of arguments to `#eq?` predicate. Expected 2, got "+(n.length-1));if("capture"!==n[1].type)throw new Error(`First argument of \`#eq?\` predicate must be a capture. Got "${n[1].value}"`);if("capture"===n[2].type){const t=n[1].name,s=n[2].name;d[e].push((function(e){let n,i;for(const r of e)r.name===t&&(n=r.node),r.name===s&&(i=r.node);return void 0===n||void 0===i||n.text===i.text===r}))}else{const t=n[1].name,s=n[2].value;d[e].push((function(e){for(const n of e)if(n.name===t)return n.node.text===s===r;return!0}))}break;case"not-match?":r=!1;case"match?":if(3!==n.length)throw new Error(`Wrong number of arguments to \`#match?\` predicate. Expected 2, got ${n.length-1}.`);if("capture"!==n[1].type)throw new Error(`First argument of \`#match?\` predicate must be a capture. Got "${n[1].value}".`);if("string"!==n[2].type)throw new Error(`Second argument of \`#match?\` predicate must be a string. Got @${n[2].value}.`);const s=n[1].name,i=new RegExp(n[2].value);d[e].push((function(e){for(const t of e)if(t.name===s)return i.test(t.node.text)===r;return!0}));break;case"set!":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#set!\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error('Arguments to `#set!` predicate must be a strings.".');l[e]||(l[e]={}),l[e][n[1].value]=n[2]?n[2].value:null;break;case"is?":case"is-not?":if(n.length<2||n.length>3)throw new Error(`Wrong number of arguments to \`#${t}\` predicate. Expected 1 or 2. Got ${n.length-1}.`);if(n.some((e=>"string"!==e.type)))throw new Error(`Arguments to \`#${t}\` predicate must be a strings.".`);const o="is?"===t?u:p;o[e]||(o[e]={}),o[e][n[1].value]=n[2]?n[2].value:null;break;default:m[e].push({operator:t,operands:n.slice(1)})}n.length=0}}Object.freeze(l[e]),Object.freeze(u[e]),Object.freeze(p[e])}return C._free(r),new Query(INTERNAL,s,a,d,m,Object.freeze(l),Object.freeze(u),Object.freeze(p))}static load(e){let t;if(e instanceof Uint8Array)t=Promise.resolve(e);else{const r=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=__webpack_require__(5530);t=Promise.resolve(e.readFileSync(r))}else t=fetch(r).then((e=>e.arrayBuffer().then((t=>{if(e.ok)return new Uint8Array(t);{const r=new TextDecoder("utf-8").decode(t);throw new Error(`Language.load failed with status ${e.status}.\n\n${r}`)}}))))}const r="function"==typeof loadSideModule?loadSideModule:loadWebAssemblyModule;return t.then((e=>r(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>LANGUAGE_FUNCTION_REGEX.test(e)&&!e.includes("external_scanner_")));r||console.log(`Couldn't find language function in WASM file. Symbols:\n${JSON.stringify(t,null,2)}`);const s=e[r]();return new Language(INTERNAL,s)}))}}class Query{constructor(e,t,r,s,n,i,o,a){assertInternal(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=a,this.exceededMatchLimit=!1}delete(){C._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,s){t||(t=ZERO_POINT),r||(r=ZERO_POINT),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),c=new Array(i);this.exceededMatchLimit=!!a;let l=0,u=o;for(let t=0;t<i;t++){const r=getValue(u,"i32");u+=SIZE_OF_INT;const s=getValue(u,"i32");u+=SIZE_OF_INT;const n=new Array(s);if(u=unmarshalCaptures(this,e.tree,u,n),this.textPredicates[r].every((e=>e(n)))){c[l++]={pattern:r,captures:n};const e=this.setProperties[r];e&&(c[t].setProperties=e);const s=this.assertedProperties[r];s&&(c[t].assertedProperties=s);const i=this.refutedProperties[r];i&&(c[t].refutedProperties=i)}}return c.length=l,C._free(o),c}captures(e,t,r,s){t||(t=ZERO_POINT),r||(r=ZERO_POINT),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");marshalNode(e),C._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=getValue(TRANSFER_BUFFER,"i32"),o=getValue(TRANSFER_BUFFER+SIZE_OF_INT,"i32"),a=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32"),c=[];this.exceededMatchLimit=!!a;const l=[];let u=o;for(let t=0;t<i;t++){const t=getValue(u,"i32");u+=SIZE_OF_INT;const r=getValue(u,"i32");u+=SIZE_OF_INT;const s=getValue(u,"i32");if(u+=SIZE_OF_INT,l.length=r,u=unmarshalCaptures(this,e.tree,u,l),this.textPredicates[t].every((e=>e(l)))){const e=l[s],r=this.setProperties[t];r&&(e.setProperties=r);const n=this.assertedProperties[t];n&&(e.assertedProperties=n);const i=this.refutedProperties[t];i&&(e.refutedProperties=i),c.push(e)}}return C._free(o),c}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function getText(e,t,r){const s=r-t;let n=e.textCallback(t,null,r);for(t+=n.length;t<r;){const s=e.textCallback(t,null,r);if(!(s&&s.length>0))break;t+=s.length,n+=s}return t>r&&(n=n.slice(0,s)),n}function unmarshalCaptures(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=getValue(r,"i32"),o=unmarshalNode(t,r+=SIZE_OF_INT);r+=SIZE_OF_NODE,s[n]={name:e.captureNames[i],node:o}}return r}function assertInternal(e){if(e!==INTERNAL)throw new Error("Illegal constructor")}function isPoint(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function marshalNode(e){let t=TRANSFER_BUFFER;setValue(t,e.id,"i32"),t+=SIZE_OF_INT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.row,"i32"),t+=SIZE_OF_INT,setValue(t,e.startPosition.column,"i32"),t+=SIZE_OF_INT,setValue(t,e[0],"i32")}function unmarshalNode(e,t=TRANSFER_BUFFER){const r=getValue(t,"i32");if(0===r)return null;const s=getValue(t+=SIZE_OF_INT,"i32"),n=getValue(t+=SIZE_OF_INT,"i32"),i=getValue(t+=SIZE_OF_INT,"i32"),o=getValue(t+=SIZE_OF_INT,"i32"),a=new Node(INTERNAL,e);return a.id=r,a.startIndex=s,a.startPosition={row:n,column:i},a[0]=o,a}function marshalTreeCursor(e,t=TRANSFER_BUFFER){setValue(t+0*SIZE_OF_INT,e[0],"i32"),setValue(t+1*SIZE_OF_INT,e[1],"i32"),setValue(t+2*SIZE_OF_INT,e[2],"i32")}function unmarshalTreeCursor(e){e[0]=getValue(TRANSFER_BUFFER+0*SIZE_OF_INT,"i32"),e[1]=getValue(TRANSFER_BUFFER+1*SIZE_OF_INT,"i32"),e[2]=getValue(TRANSFER_BUFFER+2*SIZE_OF_INT,"i32")}function marshalPoint(e,t){setValue(e,t.row,"i32"),setValue(e+SIZE_OF_INT,t.column,"i32")}function unmarshalPoint(e){return{row:getValue(e,"i32"),column:getValue(e+SIZE_OF_INT,"i32")}}function marshalRange(e,t){marshalPoint(e,t.startPosition),marshalPoint(e+=SIZE_OF_POINT,t.endPosition),setValue(e+=SIZE_OF_POINT,t.startIndex,"i32"),setValue(e+=SIZE_OF_INT,t.endIndex,"i32"),e+=SIZE_OF_INT}function unmarshalRange(e){const t={};return t.startPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.endPosition=unmarshalPoint(e),e+=SIZE_OF_POINT,t.startIndex=getValue(e,"i32"),e+=SIZE_OF_INT,t.endIndex=getValue(e,"i32"),t}function marshalEdit(e){let t=TRANSFER_BUFFER;marshalPoint(t,e.startPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.oldEndPosition),t+=SIZE_OF_POINT,marshalPoint(t,e.newEndPosition),t+=SIZE_OF_POINT,setValue(t,e.startIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.oldEndIndex,"i32"),t+=SIZE_OF_INT,setValue(t,e.newEndIndex,"i32"),t+=SIZE_OF_INT}for(const e of Object.getOwnPropertyNames(ParserImpl.prototype))Object.defineProperty(Parser.prototype,e,{value:ParserImpl.prototype[e],enumerable:!1,writable:!1});Parser.Language=Language,Module.onRuntimeInitialized=()=>{ParserImpl.init(),resolveInitPromise()}})))}}return Parser}();module.exports=TreeSitter},5530:()=>{},6287:()=>{}},__webpack_module_cache__={};function __webpack_require__(e){var t=__webpack_module_cache__[e];if(void 0!==t)return t.exports;var r=__webpack_module_cache__[e]={id:e,loaded:!1,exports:{}};return __webpack_modules__[e].call(r.exports,r,r.exports,__webpack_require__),r.loaded=!0,r.exports}__webpack_require__.d=(e,t)=>{for(var r in t)__webpack_require__.o(t,r)&&!__webpack_require__.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),__webpack_require__.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),__webpack_require__.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},__webpack_require__.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e;__webpack_require__.g.importScripts&&(e=__webpack_require__.g.location+"");var t=__webpack_require__.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var r=t.getElementsByTagName("script");if(r.length)for(var s=r.length-1;s>-1&&!e;)e=r[s--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),__webpack_require__.p=e})();var __webpack_exports__={};return(()=>{"use strict";__webpack_require__.r(__webpack_exports__),__webpack_require__.d(__webpack_exports__,{detect:()=>X_,detectionRegExp:()=>K_,mediaTypes:()=>J_,namespace:()=>Q_,parse:()=>Y_});var e={};__webpack_require__.r(e),__webpack_require__.d(e,{hasElementSourceMap:()=>Gr,includesClasses:()=>Jr,includesSymbols:()=>Wr,isAnnotationElement:()=>Vr,isArrayElement:()=>Dr,isBooleanElement:()=>kr,isCommentElement:()=>Ur,isElement:()=>Tr,isLinkElement:()=>Br,isMemberElement:()=>qr,isNullElement:()=>Cr,isNumberElement:()=>Rr,isObjectElement:()=>$r,isParseResultElement:()=>Hr,isPrimitiveElement:()=>zr,isRefElement:()=>Lr,isSourceMapElement:()=>Zr,isStringElement:()=>Nr});var t={};__webpack_require__.r(t),__webpack_require__.d(t,{isJSONReferenceElement:()=>Oo,isJSONSchemaElement:()=>wo,isLinkDescriptionElement:()=>jo,isMediaElement:()=>xo});var r={};__webpack_require__.r(r),__webpack_require__.d(r,{isOpenApi3_0LikeElement:()=>Qo,isOpenApiExtension:()=>oa,isParameterLikeElement:()=>ea,isReferenceLikeElement:()=>ta,isRequestBodyLikeElement:()=>ra,isResponseLikeElement:()=>sa,isServerLikeElement:()=>na,isTagLikeElement:()=>ia});var s={};__webpack_require__.r(s),__webpack_require__.d(s,{isBooleanJsonSchemaElement:()=>gc,isCallbackElement:()=>Ja,isComponentsElement:()=>Ka,isContactElement:()=>Xa,isExampleElement:()=>Ya,isExternalDocumentationElement:()=>Qa,isHeaderElement:()=>ec,isInfoElement:()=>tc,isLicenseElement:()=>rc,isLinkElement:()=>sc,isLinkElementExternal:()=>nc,isMediaTypeElement:()=>wc,isOpenApi3_0Element:()=>oc,isOpenapiElement:()=>ic,isOperationElement:()=>ac,isParameterElement:()=>cc,isPathItemElement:()=>lc,isPathItemElementExternal:()=>uc,isPathsElement:()=>pc,isReferenceElement:()=>mc,isReferenceElementExternal:()=>dc,isRequestBodyElement:()=>hc,isResponseElement:()=>_c,isResponsesElement:()=>fc,isSchemaElement:()=>yc,isSecurityRequirementElement:()=>bc,isServerElement:()=>vc,isServerVariableElement:()=>Ec});var n={};__webpack_require__.r(n),__webpack_require__.d(n,{isBooleanJsonSchemaElement:()=>Yd,isCallbackElement:()=>Md,isComponentsElement:()=>Ad,isContactElement:()=>Fd,isExampleElement:()=>Id,isExternalDocumentationElement:()=>Td,isHeaderElement:()=>Nd,isInfoElement:()=>Rd,isJsonSchemaDialectElement:()=>Cd,isLicenseElement:()=>kd,isLinkElement:()=>$d,isLinkElementExternal:()=>Dd,isMediaTypeElement:()=>rh,isOpenApi3_1Element:()=>Bd,isOpenapiElement:()=>qd,isOperationElement:()=>Ld,isParameterElement:()=>Vd,isPathItemElement:()=>Ud,isPathItemElementExternal:()=>Hd,isPathsElement:()=>Zd,isReferenceElement:()=>zd,isReferenceElementExternal:()=>Gd,isRequestBodyElement:()=>Wd,isResponseElement:()=>Jd,isResponsesElement:()=>Kd,isSchemaElement:()=>Xd,isSecurityRequirementElement:()=>Qd,isServerElement:()=>eh,isServerVariableElement:()=>th});const i=function(){return!1};const o=function(){return!0};function a(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function c(e){return function t(r){return 0===arguments.length||a(r)?t:e.apply(this,arguments)}}function l(e){return function t(r,s){switch(arguments.length){case 0:return t;case 1:return a(r)?t:c((function(t){return e(r,t)}));default:return a(r)&&a(s)?t:a(r)?c((function(t){return e(t,s)})):a(s)?c((function(t){return e(r,t)})):e(r,s)}}}const u=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function p(e,t,r){return function(){if(0===arguments.length)return r();var s=arguments[arguments.length-1];if(!u(s)){for(var n=0;n<e.length;){if("function"==typeof s[e[n]])return s[e[n]].apply(s,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(s))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(s)}return r.apply(this,arguments)}}function m(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const d=function(){return this.xf["@@transducer/init"]()},h=function(e){return this.xf["@@transducer/result"](e)};var _=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=m(this.xf["@@transducer/step"](e,!1))),e},e}();function f(e){return function(t){return new _(e,t)}}const y=l(p(["all"],f,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function g(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,s){return t.apply(this,arguments)};case 4:return function(e,r,s,n){return t.apply(this,arguments)};case 5:return function(e,r,s,n,i){return t.apply(this,arguments)};case 6:return function(e,r,s,n,i,o){return t.apply(this,arguments)};case 7:return function(e,r,s,n,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function b(e,t,r){return function(){for(var s=[],n=0,i=e,o=0;o<t.length||n<arguments.length;){var c;o<t.length&&(!a(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,a(c)||(i-=1),o+=1}return i<=0?r.apply(this,s):g(i,b(e,s,r))}}const v=l((function(e,t){return 1===e?c(t):g(e,b(e,[],t))}));function E(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function w(e,t,r){for(var s=0,n=r.length;s<n;){if(e(t,r[s]))return!0;s+=1}return!1}function O(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const x="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var j=Object.prototype.toString;const S=function(){return"[object Arguments]"===j.call(arguments)?function(e){return"[object Arguments]"===j.call(e)}:function(e){return O("callee",e)}}();var P=!{toString:null}.propertyIsEnumerable("toString"),M=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],A=function(){return arguments.propertyIsEnumerable("length")}(),F=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const I="function"!=typeof Object.keys||A?c((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=A&&S(e);for(t in e)!O(t,e)||n&&"length"===t||(s[s.length]=t);if(P)for(r=M.length-1;r>=0;)O(t=M[r],e)&&!F(s,t)&&(s[s.length]=t),r-=1;return s})):c((function(e){return Object(e)!==e?[]:Object.keys(e)}));const T=c((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function N(e,t,r,s){var n=E(e);function i(e,t){return R(e,t,r.slice(),s.slice())}return!w((function(e,t){return!w(i,t,e)}),E(t),n)}function R(e,t,r,s){if(x(e,t))return!0;var n,i,o=T(e);if(o!==T(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(n=e.constructor,null==(i=String(n).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!x(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!x(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var a=r.length-1;a>=0;){if(r[a]===e)return s[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&N(e.entries(),t.entries(),r.concat([e]),s.concat([t]));case"Set":return e.size===t.size&&N(e.values(),t.values(),r.concat([e]),s.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=I(e);if(c.length!==I(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!O(p,t)||!R(t[p],e[p],l,u))return!1;a-=1}return!0}const C=l((function(e,t){return R(e,t,[],[])}));function k(e,t){return function(e,t,r){var s,n;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(s=1/t;r<e.length;){if(0===(n=e[r])&&1/n===s)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(n=e[r])&&n!=n)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(C(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function $(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}function D(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var q=function(e){return(e<10?"0":"")+e};const B="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+q(e.getUTCMonth()+1)+"-"+q(e.getUTCDate())+"T"+q(e.getUTCHours())+":"+q(e.getUTCMinutes())+":"+q(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function L(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function V(e){return"[object Object]"===Object.prototype.toString.call(e)}var U=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function H(e){return function(t){return new U(e,t)}}const Z=l(p(["fantasy-land/filter","filter"],H,(function(e,t){return V(t)?L((function(r,s){return e(t[s])&&(r[s]=t[s]),r}),{},I(t)):function(e,t){for(var r=0,s=t.length,n=[];r<s;)e(t[r])&&(n[n.length]=t[r]),r+=1;return n}(e,t)})));const z=l((function(e,t){return Z((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function G(e,t){var r=function(r){var s=t.concat([e]);return k(r,s)?"<Circular>":G(r,s)},s=function(e,t){return $((function(t){return D(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+$(r,e).join(", ")+"))";case"[object Array]":return"["+$(r,e).concat(s(e,z((function(e){return/^\d+$/.test(e)}),I(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):D(B(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+r(e.valueOf())+")":D(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,I(e)).join(", ")+"}"}}const W=c((function(e){return G(e,[])}));const J=l((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var s=r(e,t);if(void 0!==s)return s;var n=r(typeof e,typeof t);if(void 0!==n)return n===typeof e?e:t;var i=W(e),o=r(i,W(t));return void 0!==o&&o===i?e:t}));var K=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const X=l(p(["fantasy-land/map","map"],(function(e){return function(t){return new K(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return v(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return L((function(r,s){return r[s]=e(t[s]),r}),{},I(t));default:return $(e,t)}}))),Y=Number.isInteger||function(e){return e<<0===e};function Q(e){return"[object String]"===Object.prototype.toString.call(e)}const ee=l((function(e,t){var r=e<0?t.length+e:e;return Q(t)?t.charAt(r):t[r]}));const te=l((function(e,t){if(null!=t)return Y(e)?ee(e,t):t[e]}));const re=l((function(e,t){return X(te(e),t)}));function se(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return a(r)?t:l((function(t,s){return e(r,t,s)}));case 2:return a(r)&&a(s)?t:a(r)?l((function(t,r){return e(t,s,r)})):a(s)?l((function(t,s){return e(r,t,s)})):c((function(t){return e(r,s,t)}));default:return a(r)&&a(s)&&a(n)?t:a(r)&&a(s)?l((function(t,r){return e(t,r,n)})):a(r)&&a(n)?l((function(t,r){return e(t,s,r)})):a(s)&&a(n)?l((function(t,s){return e(r,t,s)})):a(r)?c((function(t){return e(t,s,n)})):a(s)?c((function(t){return e(r,t,n)})):a(n)?c((function(t){return e(r,s,t)})):e(r,s,n)}}}const ne=c((function(e){return!!u(e)||!!e&&("object"==typeof e&&(!Q(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ie="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function oe(e,t,r){return function(s,n,i){if(ne(i))return e(s,n,i);if(null==i)return n;if("function"==typeof i["fantasy-land/reduce"])return t(s,n,i,"fantasy-land/reduce");if(null!=i[ie])return r(s,n,i[ie]());if("function"==typeof i.next)return r(s,n,i);if("function"==typeof i.reduce)return t(s,n,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function ae(e,t,r){for(var s=0,n=r.length;s<n;){if((t=e["@@transducer/step"](t,r[s]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s+=1}return e["@@transducer/result"](t)}const ce=l((function(e,t){return g(e.length,(function(){return e.apply(t,arguments)}))}));function le(e,t,r){for(var s=r.next();!s.done;){if((t=e["@@transducer/step"](t,s.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}s=r.next()}return e["@@transducer/result"](t)}function ue(e,t,r,s){return e["@@transducer/result"](r[s](ce(e["@@transducer/step"],e),t))}const pe=oe(ae,ue,le);var me=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();const de=se((function(e,t,r){return pe("function"==typeof e?new me(e):e,t,r)}));const he=c((function(e){return v(de(J,0,re("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const _e=c((function(e){return function(){return e}}));const fe=c((function(e){return v(de(J,0,re("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function ye(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function ge(e,t,r,s){return r[s](e,t)}const be=oe(L,ge,ye);const ve=l((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:be((function(e,r){return function(e,t){var r;t=t||[];var s=(e=e||[]).length,n=t.length,i=[];for(r=0;r<s;)i[i.length]=e[r],r+=1;for(r=0;r<n;)i[i.length]=t[r],r+=1;return i}(e,X(r,t))}),[],e)}));const Ee=l((function(e,t){return e.apply(this,t)}));function we(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Oe=l((function(e,t){return e&&t}));const xe=l((function(e,t){var r=v(e,t);return v(e,(function(){return L(ve,X(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const je=c((function(e){return xe(e.length,e)}));const Se=l((function(e,t){return we(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:je(Oe)(e,t)}));const Pe=c((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const Me=je(c((function(e){return!e})));function Ae(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Fe(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return u(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Ie=se(Fe("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Te=c(Fe("tail",Ie(1,1/0)));function Ne(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return g(arguments[0].length,de(Ae,arguments[0],Te(arguments)))}const Re=c((function(e){return v(e.length,e)}));const Ce=l((function(e,t){return null==t||t!=t?e:t}));function ke(e,t,r){var s,n=typeof e;switch(n){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var i=e?1:0;return!!r._items[n][i]||(t&&(r._items[n][i]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(s=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===s):r._nativeSet.has(e):n in r._items?!!k(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!k(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const $e=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ke(e,!0,this)},e.prototype.has=function(e){return ke(e,!1,this)},e}();const De=l((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new $e,a=0;a<i;a+=1)o.add(t[a]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));var qe=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?m(r):r},e}();function Be(e){return function(t){return new qe(e,t)}}const Le=l(p(["take"],Be,(function(e,t){return Ie(0,e<0?1/0:e,t)})));var Ve=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=d,e.prototype["@@transducer/result"]=h,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Ue(e){return function(t){return new Ve(e,t)}}const He=l(p(["dropWhile"],Ue,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Ie(r,1/0,t)})));const Ze=l((function(e,t){return e||t}));const ze=l((function(e,t){return we(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:je(Ze)(e,t)}));var Ge=c((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():u(e)?[]:Q(e)?"":V(e)?{}:S(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const We=Ge;const Je=c((function(e){return v(e.length,(function(t,r){var s=Array.prototype.slice.call(arguments,0);return s[0]=r,s[1]=t,e.apply(this,s)}))}));const Ke=c((function(e){return null==e}));const Xe=l((function(e,t){if(0===e.length||Ke(t))return!1;for(var r=t,s=0;s<e.length;){if(Ke(r)||!O(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const Ye=l((function(e,t){return Xe([e],t)}));const Qe=ee(0);var et=function(e,t){switch(arguments.length){case 0:return et;case 1:return function t(r){return 0===arguments.length?t:x(e,r)};default:return x(e,t)}};const tt=et;const rt=se((function(e,t,r){return v(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const st=l(k);const nt=Ie(0,-1);"function"==typeof Object.assign&&Object.assign;const it=l((function(e,t){return v(e+1,(function(){var r=arguments[e];if(null!=r&&we(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(W(r)+' does not have a method named "'+t+'"')}))}));const ot=c((function(e){return null!=e&&C(e,We(e))}));const at=it(1,"join");const ct=ee(-1);const lt=l((function(e,t){return e.map((function(e){for(var r,s=t,n=0;n<e.length;){if(null==s)return;r=e[n],s=Y(r)?ee(r,s):s[r],n+=1}return s}))}));const ut=l((function(e,t){return lt([e],t)[0]}));const pt=l((function(e,t){return L((function(r,s){return r[s]=e(t[s],s,t),r}),{},I(t))}));const mt=l((function(e,t){for(var r={},s={},n=0,i=e.length;n<i;)s[e[n]]=1,n+=1;for(var o in t)s.hasOwnProperty(o)||(r[o]=t[o]);return r}));const dt=se((function(e,t,r){return e(ut(t,r))}));const ht=l((function(e,t){for(var r={},s=0;s<e.length;)e[s]in t&&(r[e[s]]=t[e[s]]),s+=1;return r}));const _t=se((function(e,t,r){return Ce(e,te(t,r))}));const ft=se((function(e,t,r){return e(te(t,r))}));function yt(e){return"[object Number]"===Object.prototype.toString.call(e)}const gt=l((function(e,t){if(!yt(e)||!yt(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],s=e;s<t;)r.push(s),s+=1;return r}));const bt=c(m);var vt=l((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Et=vt;const wt=it(1,"split");const Ot=l((function(e,t){return C(Le(e.length,t),e)}));const xt=l((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+W(e));var r;return function(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}(e).test(t)}));var jt="\t\n\v\f\r                 \u2028\u2029\ufeff";String.prototype.trim;const St=_e(void 0);const Pt=C(St());const Mt=Me(Pt);var At=__webpack_require__(7952);const Ft=C(null);const It=Me(Ft);function Tt(e){return Tt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Tt(e)}const Nt=function(e){return"object"===Tt(e)};const Rt=v(1,Se(It,Nt));const Ct=v(1,Ne(T,tt("GeneratorFunction")));const kt=v(1,Ne(T,tt("AsyncFunction")));const $t=fe([Ne(T,tt("Function")),Ct,kt]);var Dt=Ne(T,tt("Object")),qt=Ne(W,C(W(Object))),Bt=dt(Se($t,qt),["constructor"]);const Lt=v(1,(function(e){if(!Rt(e)||!Dt(e))return!1;var t=Object.getPrototypeOf(e);return!!Ft(t)||Bt(t)}));class Vt extends At.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const Ut=Vt;class Ht extends At.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Zt=Ht;class zt extends At.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Pt(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Gt=zt;class Wt extends At.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new At.ON([e.start.row,e.start.column,e.start.char]),r=new At.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Jt=Wt;class Kt extends At.lS{constructor(){super(),this.register("annotation",Ut),this.register("comment",Zt),this.register("parseResult",Gt),this.register("sourceMap",Jt)}}const Xt=new Kt,Yt=e=>{const t=new Kt;return Lt(e)&&t.use(e),t},Qt=Xt;const er=v(1,Ne(T,tt("String"))),tr=__webpack_require__.p+"3055f0c5f4843ded29b10894f35a54d2.wasm",rr=globalThis.fetch;$t(rr)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return er(t[0])&&t[0].endsWith("tree-sitter.wasm")?rr.apply(globalThis,[tr,Te(t)]):rr.apply(globalThis,t)});var sr=__webpack_require__(9794);const nr=__webpack_require__.p+"6d9fed5aefa3863691924a69721182bc.wasm";let ir=null,or=null;const ar=async e=>{if(null===ir&&null===or)or=sr.init().then((()=>sr.Language.load(nr))).then((e=>{const t=new sr;return t.setLanguage(e),t})).finally((()=>{or=null})),ir=await or;else if(null===ir&&null!==or)ir=await or;else if(null===ir)throw new Error("Error while initializing web-tree-sitter");return ir.parse(e)};var cr=__webpack_require__(229),lr=__webpack_require__(2185),ur=__webpack_require__(9982);function pr(e){return pr="function"==typeof lr&&"symbol"==typeof ur?function(e){return typeof e}:function(e){return e&&"function"==typeof lr&&e.constructor===lr&&e!==lr.prototype?"symbol":typeof e},pr(e)}var mr=__webpack_require__(8241);function dr(e){var t=function(e,t){if("object"!==pr(e)||null===e)return e;var r=e[mr];if(void 0!==r){var s=r.call(e,t||"default");if("object"!==pr(s))return s;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===pr(t)?t:String(t)}function hr(e,t,r){return(t=dr(t))in e?cr(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _r=__webpack_require__(6591);const fr=(e,t,r)=>{const s=e[t];if(null!=s){if(!r&&"function"==typeof s)return s;const e=r?s.leave:s.enter;if("function"==typeof e)return e}else{const s=r?e.leave:e.enter;if(null!=s){if("function"==typeof s)return s;const e=s[t];if("function"==typeof e)return e}}return null},yr={},gr=e=>null==e?void 0:e.type,br=e=>"string"==typeof gr(e),vr=function(e,t){let{keyMap:r=null,state:s={},breakSymbol:n=yr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=fr,nodeTypeGetter:c=gr,nodePredicate:l=br,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let m,d,h=Array.isArray(e),_=[e],f=-1,y=[];const g=[],b=[];let v=e;do{f+=1;const e=f===_.length;let r,E;const w=e&&0!==y.length;if(e){if(r=0===b.length?void 0:g.pop(),E=d,d=b.pop(),w){E=h?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<y.length;t+=1){let r=y[t][0];const s=y[t][1];h&&(r-=e),h&&s===i?(E.splice(r,1),e+=1):E[r]=s}}f=m.index,_=m.keys,y=m.edits,h=m.inArray,m=m.prev}else{if(r=d?h?f:_[f]:void 0,E=d?d[r]:v,E===i||void 0===E)continue;d&&g.push(r)}if(b.includes(E))continue;let O;if(!Array.isArray(E)){if(!l(E))throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){g.pop();continue}const i=a(t,c(E),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;if(O=i.call(t,E,r,d,g,b),O===n)break;if(O===o){if(!e){g.pop();continue}}else if(void 0!==O&&(y.push([r,O]),!e)){if(!l(O)){g.pop();continue}E=O}}}void 0===O&&w&&y.push([r,E]),e||(m={inArray:h,index:f,keys:_,edits:y,prev:m},h=Array.isArray(E),_=h?E:p[c(E)]||[],f=-1,y=[],d&&b.push(d),d=E)}while(void 0!==m);return 0!==y.length&&([,v]=y[y.length-1]),v};vr[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:r=null,state:s={},breakSymbol:n=yr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=fr,nodeTypeGetter:c=gr,nodePredicate:l=br,detectCycles:u=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const p=r||{};let m,d,h=Array.isArray(e),_=[e],f=-1,y=[];const g=[],b=[];let v=e;do{f+=1;const e=f===_.length;let r,E;const w=e&&0!==y.length;if(e){if(r=0===b.length?void 0:g.pop(),E=d,d=b.pop(),w){E=h?E.slice():Object.create(Object.getPrototypeOf(E),Object.getOwnPropertyDescriptors(E));let e=0;for(let t=0;t<y.length;t+=1){let r=y[t][0];const s=y[t][1];h&&(r-=e),h&&s===i?(E.splice(r,1),e+=1):E[r]=s}}f=m.index,_=m.keys,y=m.edits,h=m.inArray,m=m.prev}else{if(r=d?h?f:_[f]:void 0,E=d?d[r]:v,E===i||void 0===E)continue;d&&g.push(r)}let O;if(!Array.isArray(E)){if(!l(E))throw new Error(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){g.pop();continue}const i=a(t,c(E),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;if(O=await i.call(t,E,r,d,g,b),O===n)break;if(O===o){if(!e){g.pop();continue}}else if(void 0!==O&&(y.push([r,O]),!e)){if(!l(O)){g.pop();continue}E=O}}}void 0===O&&w&&y.push([r,E]),e||(m={inArray:h,index:f,keys:_,edits:y,prev:m},h=Array.isArray(E),_=h?E:p[c(E)]||[],f=-1,y=[],d&&b.push(d),d=E)}while(void 0!==m);return 0!==y.length&&([,v]=y[y.length-1]),v};var Er=__webpack_require__(5090),wr=__webpack_require__(2747),Or=__webpack_require__(5483);function xr(e,t){if(null==e)return{};var r,s,n=function(e,t){if(null==e)return{};var r,s,n={},i=Or(e);for(s=0;s<i.length;s++)r=i[s],wr(t).call(t,r)>=0||(n[r]=e[r]);return n}(e,t);if(Er){var i=Er(e);for(s=0;s<i.length;s++)r=i[s],wr(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}const jr=Je(st),Sr=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Pr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Mr=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},Ar=(e,t)=>{var r,s;return(null==t||null===(r=t.classes)||void 0===r||null===(s=r.includes)||void 0===s?void 0:s.call(r,e))||!1},Fr=(e,t)=>(null==t?void 0:t.element)===e,Ir=e=>e({hasMethod:Sr,hasBasicElementProps:Pr,primitiveEq:Mr,isElementType:Fr,hasClass:Ar}),Tr=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof At.W_||t(e)&&r(void 0,e)})),Nr=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof At.RP||t(e)&&r("string",e)})),Rr=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof At.VL||t(e)&&r("number",e)})),Cr=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof At.zr||t(e)&&r("null",e)})),kr=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r}=e;return e=>e instanceof At.hh||t(e)&&r("boolean",e)})),$r=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:s}=e;return e=>e instanceof At.Sb||t(e)&&r("object",e)&&s("keys",e)&&s("values",e)&&s("items",e)})),Dr=Ir((e=>{let{hasBasicElementProps:t,primitiveEq:r,hasMethod:s}=e;return e=>e instanceof At.ON&&!(e instanceof At.Sb)||t(e)&&r("array",e)&&s("push",e)&&s("unshift",e)&&s("map",e)&&s("reduce",e)})),qr=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof At.c6||t(e)&&r("member",e)&&s(void 0,e)})),Br=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof At.EA||t(e)&&r("link",e)&&s(void 0,e)})),Lr=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof At.tK||t(e)&&r("ref",e)&&s(void 0,e)})),Vr=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Ut||t(e)&&r("annotation",e)&&s("array",e)})),Ur=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Zt||t(e)&&r("comment",e)&&s("string",e)})),Hr=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Gt||t(e)&&r("parseResult",e)&&s("array",e)})),Zr=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Jt||t(e)&&r("sourceMap",e)&&s("array",e)})),zr=e=>Fr("object",e)||Fr("array",e)||Fr("boolean",e)||Fr("number",e)||Fr("string",e)||Fr("null",e)||Fr("member",e),Gr=e=>{var t,r;return Zr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},Wr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Dr(r)&&y(jr(r.toValue()),e)},Jr=(e,t)=>0===e.length||y(jr(t.classes.toValue()),e),Kr=["keyMap"],Xr=["keyMap"];function Yr(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function Qr(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Yr(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Yr(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const es=e=>$r(e)?"ObjectElement":Dr(e)?"ArrayElement":qr(e)?"MemberElement":Nr(e)?"StringElement":kr(e)?"BooleanElement":Rr(e)?"NumberElement":Cr(e)?"NullElement":Br(e)?"LinkElement":Lr(e)?"RefElement":void 0,ts=Ne(es,er),rs={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},ss=(_r({props:{result:[],predicate:i,returnOnTrue:void 0,returnOnFalse:void 0},init(){let{predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:s=rs}=r,n=xr(r,Kr);return vr(e,t,Qr({keyMap:s,nodeTypeGetter:es,nodePredicate:ts},n))});ss[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{keyMap:s=rs}=r,n=xr(r,Xr);return vr[Symbol.for("nodejs.util.promisify.custom")](e,t,Qr({keyMap:s,nodeTypeGetter:es,nodePredicate:ts},n))};const ns=Me($t);const is=v(1,$t(Array.isArray)?Array.isArray:Ne(T,tt("Array")));const os=Se(is,ot);const as=v(3,(function(e,t,r){var s=ut(e,r),n=ut(nt(e),r);if(!ns(s)&&!os(e)){var i=ce(s,n);return Ee(i,t)}}));function cs(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const ls=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cs(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:Qt}),us=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const s=_t(ls,"toolboxCreator",r),n=_t({},"visitorOptions",r),i=_t(es,"nodeTypeGetter",n),o=s(),a=t.map((e=>e(o))),c=function(e){let{visitFnGetter:t=fr,nodeTypeGetter:r=gr}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new Array(e.length);return{enter(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let i=0;i<e.length;i+=1)if(null==s[i]){const a=t(e[i],r(n),!1);if("function"==typeof a){const t=a.call(e[i],n,...o);if(!1===t)s[i]=n;else if(t===yr)s[i]=yr;else if(void 0!==t)return t}}},leave(n){for(var i=arguments.length,o=new Array(i>1?i-1:0),a=1;a<i;a++)o[a-1]=arguments[a];for(let i=0;i<e.length;i+=1)if(null==s[i]){const a=t(e[i],r(n),!0);if("function"==typeof a){const t=a.call(e[i],n,...o);if(t===yr)s[i]=yr;else if(void 0!==t&&!1!==t)return t}}else s[i]===n&&(s[i]=null)}}}(a.map(_t({},"visitor")),{nodeTypeGetter:i});a.forEach(as(["pre"],[]));const l=ss(e,c,n);return a.forEach(as(["post"],[])),l};function ps(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function ms(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ps(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ps(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ds=(e,t)=>{let{Type:r,plugins:s=[]}=t;const n=new r(e);return us(n,s,{toolboxCreator:ls,visitorOptions:{nodeTypeGetter:es}})},hs=e=>function(t){return ds(t,ms(ms({},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}),{},{Type:e}))};function _s(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}At.Sb.refract=hs(At.Sb),At.ON.refract=hs(At.ON),At.RP.refract=hs(At.RP),At.hh.refract=hs(At.hh),At.zr.refract=hs(At.zr),At.VL.refract=hs(At.VL),At.EA.refract=hs(At.EA),At.tK.refract=hs(At.tK),Ut.refract=hs(Ut),Zt.refract=hs(Zt),Gt.refract=hs(Gt),Jt.refract=hs(Jt);const fs=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_s(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_s(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},rs),ys=e=>Hr(e)?"ParseResultElement":Tr(e)?es(e):gr(e),gs=e=>Tr(e)||br(e),bs=_r({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Jt,s=(e=>{if(null===e)return null;const t=new At.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new At.ON([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),r.classes.push("position"),[t,r]})(e);if(null!==s){const[e,t]=s;r.push(e),r.push(t)}r.astNode=e,t.meta.set("sourceMap",r)},t=(e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null};this.enter=function(t){if(("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed)&&t.isMissing()){const r=t.type||t.text,s=new Ut(`(Missing ${r})`);s.classes.push("warning"),e(t,s),this.annotations.push(s)}return null},this.document=function(t){const r=new Gt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(zr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new At.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new At.ON;return r._content=t.children,e(t,r),r},this.pair=function(r){const s=new At.c6;return s.content.key=t("key",r),s.content.value=t("value",r),e(r,s),r.children.length>3&&r.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,r,[],[r])})),s},this.string=function(t){const r=new At.RP(t.text.slice(1,-1));return e(t,r),r},this.number=function(t){const r=new At.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new At.zr;return e(t,r),r},this.true=function(t){const r=new At.hh(!0);return e(t,r),r},this.false=function(t){const r=new At.hh(!1);return e(t,r),r},this.ERROR=function(t,r,s,n){const i=!t.hasError(),o=t.text,a=new Ut(i?`(Unexpected ${o})`:`(Error ${o})`);if(a.classes.push("error"),e(t,a),0===n.length){const e=new Gt;return e.push(a),e}return this.annotations.push(a),null}}}),vs=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=bs();return vr(e.rootNode,r,{keyMap:fs,nodeTypeGetter:ys,nodePredicate:gs,state:{sourceMap:t}})},Es=_r({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init(){let{row:e=null,column:t=null,char:r=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.row=e,this.column=t,this.char=r}}),ws=_r({statics:{type:"position"},props:{type:"position",start:null,end:null},init(){let{start:e=null,end:t=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.start=e,this.end=t}}),Os=_r({props:{type:null,position:null,children:[]},init(){let{children:e=[],position:t=null,isMissing:r=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{stamp:s={}}=arguments.length>1?arguments[1]:void 0;this.type=s.type,this.isMissing=r,this.children=e,this.position=t},methods:{clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const r=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,r)})),e}}}),xs=_r(Os,{statics:{type:"literal"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),js=_r(Os),Ss=_r(js,{statics:{type:"document"},methods:{get child(){return Qe(this.children)}}}),Ps=_r(Os,{statics:{type:"parseResult"},methods:{get rootNode(){return Qe(this.children)}}}),Ms=(e,t)=>(null==t?void 0:t.type)===e,As=(Ms.bind(void 0,"literal"),Ms.bind(void 0,"position"),Ms.bind(void 0,"point"),Ms.bind(void 0,"parseResult"),Ms.bind(void 0,"document"),Ms.bind(void 0,"string")),Fs=Ms.bind(void 0,"false"),Is=Ms.bind(void 0,"true"),Ts=Ms.bind(void 0,"null"),Ns=Ms.bind(void 0,"number"),Rs=Ms.bind(void 0,"array"),Cs=Ms.bind(void 0,"object"),ks=Ms.bind(void 0,"stringContent"),$s=Ms.bind(void 0,"escapeSequence"),Ds=Ms.bind(void 0,"property"),qs=Ms.bind(void 0,"key"),Bs=_r(js,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Ds)}}}),Ls=_r(js,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>ks(e)||$s(e))).reduce(((e,t)=>e+t.value),"")}}}),Vs=_r(Ls,{statics:{type:"key"}}),Us=_r(js,{statics:{type:"property"},methods:{get key(){return this.children.find(qs)},get value(){return this.children.find((e=>Fs(e)||Is(e)||Ts(e)||Ns(e)||As(e)||Rs(e)||Cs(e)))}}}),Hs=_r(js,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Fs(e)||Is(e)||Ts(e)||Ns(e)||As(e)||Rs(e)||Cs))}}}),Zs=_r(js,{statics:{type:"value"},props:{value:null},init(){let{value:e=null}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e}}),zs=_r(Zs,{statics:{type:"stringContent"}}),Gs=_r(Zs,{statics:{type:"number"}}),Ws=_r(Zs,{statics:{type:"null"}}),Js=_r(Zs,{statics:{type:"true"}}),Ks=_r(Zs,{statics:{type:"false"}}),Xs=_r(Os,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init(){let{value:e=null,isUnexpected:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.value=e,this.isUnexpected=t}}),Ys={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},Qs=_r({init(){const e=e=>{if(null===e)return null;const t=Es({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=Es({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return ws({start:t,end:r})};this.enter=function(t){if("function"==typeof t.isNamed&&!t.isNamed()||!1===t.isNamed){const r=e(t),s=t.type||t.text,n=t.isMissing();return xs({value:s,position:r,isMissing:n})}},this.document={enter(t){const r=e(t);return Ss({children:t.children,position:r,isMissing:t.isMissing()})},leave:e=>Ps({children:[e]})},this.object=function(t){const r=e(t);return Bs({children:t.children,position:r,isMissing:t.isMissing()})},this.pair=function(t){const r=e(t),s=t.children.slice(1),n=((e,t)=>{var r;return`${e}Node`in t?t[`${e}Node`]:"childForFieldName"in t?null===(r=t.childForFieldName)||void 0===r?void 0:r.call(t,e):null})("key",t),i=Vs({children:(null==n?void 0:n.children)||[],position:e(n),isMissing:(null==n?void 0:n.isMissing())||!1});return Us({children:[i,...s],position:r,isMissing:t.isMissing()})},this.array=function(t){const r=e(t);return Hs({children:t.children,position:r,isMissing:t.isMissing()})},this.string=function(t){const r=e(t),s=zs({value:t.text.slice(1,-1)});return Ls({children:[s],position:r,isMissing:t.isMissing()})},this.number=function(t){const r=e(t),s=t.text;return Gs({value:s,position:r,isMissing:t.isMissing()})},this.null=function(t){const r=e(t),s=t.text;return Ws({value:s,position:r,isMissing:t.isMissing()})},this.true=function(t){const r=e(t),s=t.text;return Js({value:s,position:r,isMissing:t.isMissing()})},this.false=function(t){const r=e(t),s=t.text;return Ks({value:s,position:r,isMissing:t.isMissing()})},this.ERROR=function(t,r,s,n){const i=e(t),o=Xs({children:t.children,position:i,isUnexpected:!t.hasError(),isMissing:t.isMissing(),value:t.text});return 0===n.length?Ps({children:[o]}):o}}});function en(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const tn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?en(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):en(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[Ps.type]:["children"],[Ss.type]:["children"],[Bs.type]:["children"],[Us.type]:["children"],[Hs.type]:["children"],[Xs.type]:["children"]},rs),rn=e=>Hr(e)?"ParseResultElement":Tr(e)?es(e):gr(e),sn=e=>Tr(e)||br(e),nn=_r({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Jt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Gt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(zr);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}},this.object=function(t){const r=new At.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new At.c6;return r.content.key=t.key,r.content.value=t.value,e(t,r),t.children.length>3&&t.children.filter((e=>"error"===e.type)).forEach((e=>{this.error(e,t,[],[t])})),r},this.key=function(t){const r=new At.RP(t.value);return e(t,r),r},this.array=function(t){const r=new At.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new At.RP(t.value);return e(t,r),r},this.number=function(t){const r=new At.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new At.zr;return e(t,r),r},this.true=function(t){const r=new At.hh(!0);return e(t,r),r},this.false=function(t){const r=new At.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,s=new Ut(r);s.classes.push("warning"),e(t,s),this.annotations.push(s)}return null},this.error=function(t,r,s,n){const i=t.isUnexpected?`(Unexpected ${t.value})`:`(Error ${t.value})`,o=new Ut(i);if(o.classes.push("error"),e(t,o),0===n.length){const e=new Gt;return e.push(o),e}return this.annotations.push(o),null}}}),on=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=Qs(),s=nn(),n=vr(e.rootNode,r,{keyMap:Ys,state:{sourceMap:t}});return vr(n.rootNode,s,{keyMap:tn,nodeTypeGetter:rn,nodePredicate:sn,state:{sourceMap:t}})},an=(Yt(),/(?<true>^\s*true\s*$)|(?<false>^\s*false\s*$)|(?<null>^\s*null\s*$)|(?<number>^\s*\d+\s*$)|(?<object>^\s*{\s*)|(?<array>^\s*\[\s*)|(?<string>^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/);class cn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const ln=cn;class un extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const pn=un;class mn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const dn=mn;class hn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const _n=hn;class fn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const yn=fn;class gn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const bn=gn;class vn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const En=vn;class wn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new At.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new At.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(wn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const On=wn;class xn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const jn=xn;class Sn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Pn=Sn;class Mn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Nr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Nr(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const An=Mn;class Fn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const In=Fn;class Tn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Nn=Tn;class Rn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Cn=Rn;class kn extends At.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const $n=kn;class Dn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const qn=Dn;class Bn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new At.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Ln=Bn;class Vn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new At.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new At.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Vn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Un=Vn;class Hn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Zn=Hn;class zn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Gn=zn;class Wn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const Jn=Wn;class Kn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new At.hh(!1)}set required(e){this.set("required",e)}}const Xn=Kn;class Yn extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const Qn=Yn;class ei extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ti=ei;class ri extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const si=ri;class ni extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const ii=ni;class oi extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const ai=oi;class ci extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const li=ci;const ui=Re((function(e,t){return Ne(wt(""),He(jr(e)),at(""))(t)})),pi=(e,t)=>{const r=Ce(e,t);return pt((e=>{if(Lt(e)&&Ye("$ref",e)&&ft(er,"$ref",e)){const t=ut(["$ref"],e),s=ui("#/",t);return ut(s.split("/"),r)}return Lt(e)?pi(e,r):e}),e)},mi=_r({props:{element:null},methods:{copyMetaAndAttributes(e,t){Gr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),di=_r(mi,{methods:{enter(e){return this.element=e.clone(),yr}}});const hi=_e(St());function _i(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const fi=e=>{if(Tr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},yi=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_i(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_i(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},rs);function gi(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function bi(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gi(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const vi=_r(mi,{props:{specObj:null,passingOptionsNames:["specObj"]},init(e){let{specObj:t=this.specObj}=e;this.specObj=t},methods:{retrievePassingOptions(){return ht(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(ut(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return dt($t,["visitors",...e],this.specObj)?ut(["visitors",...e],this.specObj):ut(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(bi(bi({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=this.retrieveVisitorInstance(e,r),n=Object.getPrototypeOf(s);return Pt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?t.clone():(ss(t,s,bi({keyMap:yi,nodeTypeGetter:fi},r)),s.element)}}}),Ei=_r(vi,{props:{specPath:hi,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Nr(s)&&r.includes(s.toValue())&&!this.ignoredFields.includes(s.toValue())){const r=this.toRefractedElement([...t,"fixedFields",s.toValue()],e),i=new At.c6(s.clone(),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(s.toValue())||this.element.content.push(n.clone())})),this.copyMetaAndAttributes(e,this.element),yr}}}),wi=_r(Ei,di,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new si}}),Oi=di,xi=di,ji=di,Si=di,Pi=di,Mi=di,Ai=di,Fi=di,Ii=di,Ti=di,Ni=_r({props:{parent:null},init(e){let{parent:t=this.parent}=e;this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Ri=e=>$r(e)&&e.hasKey("$ref"),Ci=_r(vi,Ni,di,{methods:{ObjectElement(e){const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),yr},ArrayElement(e){return this.element=new At.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}}),ki=di,$i=di,Di=di,qi=di,Bi=di,Li=_r(di,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),yr}}});const Vi=Me(v(1,Se(It,ze(Nt,$t))));const Ui=Me(ot);const Hi=he([er,Vi,Ui]),Zi=_r(vi,{props:{fieldPatternPredicate:i,specPath:hi,ignoredFields:[]},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new At.c6(t.clone(),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),yr}}}),zi=_r(Zi,{props:{fieldPatternPredicate:Hi}}),Gi=_r(zi,Ni,di,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new At.Sb,this.element.classes.push("json-schema-properties")}}),Wi=_r(zi,Ni,di,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new At.Sb,this.element.classes.push("json-schema-patternProperties")}}),Ji=_r(zi,Ni,di,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new At.Sb,this.element.classes.push("json-schema-dependencies")}}),Ki=_r(di,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),yr}}}),Xi=_r(di,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),yr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),yr}}}),Yi=_r(vi,Ni,di,{init(){this.element=new At.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}}),Qi=_r(vi,Ni,di,{init(){this.element=new At.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}}),eo=_r(vi,Ni,di,{init(){this.element=new At.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}}),to=_r(zi,Ni,di,{props:{specPath:e=>Ri(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new At.Sb,this.element.classes.push("json-schema-definitions")}}),ro=di,so=di,no=di,io=di,oo=di,ao=_r(vi,Ni,di,{init(){this.element=new At.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),yr}}}),co=di,lo=_r(Ei,di,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new ii},methods:{ObjectElement(e){const t=Ei.compose.methods.ObjectElement.call(this,e);return Nr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),uo=_r(di,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}});const po=Me(Ke);const mo=Se(is,Ui);function ho(e){return function(e){if(Array.isArray(e))return _o(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return _o(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return _o(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,s=new Array(t);r<t;r++)s[r]=e[r];return s}var fo=Ne(Et(Pe((function(e,t){return e.length>t.length}))),Qe,te("length")),yo=Re((function(e,t,r){var s=r.apply(void 0,ho(e));return po(s)?bt(s):t}));const go=rt(mo,(function(e){var t=fo(e);return v(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return de(yo(r),void 0,e)}))}),St),bo=_r(vi,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return rt(t,_e(r),St)})),r=go(t)(e);return this.element=this.toRefractedElement(r,e),yr}}}),vo=_r(bo,{props:{alternator:[{predicate:Ri,specPath:["document","objects","JSONReference"]},{predicate:o,specPath:["document","objects","JSONSchema"]}]}}),Eo={visitors:{value:di,JSONSchemaOrJSONReferenceVisitor:vo,document:{objects:{JSONSchema:{$visitor:wi,fixedFields:{id:Oi,$schema:xi,multipleOf:ji,maximum:Si,exclusiveMaximum:Pi,minimum:Mi,exclusiveMinimum:Ai,maxLength:Fi,minLength:Ii,pattern:Ti,additionalItems:vo,items:Ci,maxItems:ki,minItems:$i,uniqueItems:Di,maxProperties:qi,minProperties:Bi,required:Li,properties:Gi,additionalProperties:vo,patternProperties:Wi,dependencies:Ji,enum:Ki,type:Xi,allOf:Yi,anyOf:Qi,oneOf:eo,not:vo,definitions:to,title:ro,description:so,default:no,format:io,base:oo,links:ao,media:{$ref:"#/visitors/document/objects/Media"},readOnly:co}},JSONReference:{$visitor:lo,fixedFields:{$ref:uo}},Media:{$visitor:_r(Ei,di,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new ai}}),fixedFields:{binaryEncoding:di,type:di}},LinkDescription:{$visitor:_r(Ei,di,{props:{specPath:_e(["document","objects","LinkDescription"])},init(){this.element=new li}}),fixedFields:{href:di,rel:di,title:di,targetSchema:vo,mediaType:di,method:di,encType:di,schema:vo}}}}}},wo=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof si||t(e)&&r("JSONSchemaDraft4",e)&&s("object",e)})),Oo=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof ii||t(e)&&r("JSONReference",e)&&s("object",e)})),xo=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof ai||t(e)&&r("media",e)&&s("object",e)})),jo=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof li||t(e)&&r("linkDescription",e)&&s("object",e)})),So={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",si),t.register("jSONReference",ii),t.register("media",ai),t.register("linkDescription",li),t}};function Po(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Po(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Po(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Ao=()=>{const e=Yt(So);return{predicates:Mo(Mo({},t),{},{isStringElement:Nr}),namespace:e}};function Fo(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const Io=function(e){let{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Eo}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(0,At.Qc)(e),i=pi(s),o=as(t,[],i);return ss(n,o,{state:{specObj:i}}),us(o.element,r,{toolboxCreator:Ao,visitorOptions:{keyMap:yi,nodeTypeGetter:fi}})},To=e=>function(t){return Io(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fo(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};si.refract=To(["visitors","document","objects","JSONSchema","$visitor"]),ii.refract=To(["visitors","document","objects","JSONReference","$visitor"]),ai.refract=To(["visitors","document","objects","Media","$visitor"]),li.refract=To(["visitors","document","objects","LinkDescription","$visitor"]);const No=class extends si{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class Ro extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Co=Ro;class ko extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const $o=ko;class Do extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const qo=Do;class Bo extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Lo=Bo;class Vo extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Uo=Vo;class Ho extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Zo=Ho,zo=_r({props:{element:null},methods:{copyMetaAndAttributes(e,t){Gr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function Go(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const Wo=e=>{if(Tr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Jo=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Go(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Go(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},rs);function Ko(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function Xo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ko(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ko(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Yo=_r(zo,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init(e){let{specObj:t=this.specObj,openApiGenericElement:r=this.openApiGenericElement,openApiSemanticElement:s=this.openApiSemanticElement}=e;this.specObj=t,this.openApiGenericElement=r,this.openApiSemanticElement=s},methods:{retrievePassingOptions(){return ht(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(ut(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return dt($t,["visitors",...e],this.specObj)?ut(["visitors",...e],this.specObj):ut(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Xo(Xo({},r),t))},toRefractedElement(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const s=this.retrieveVisitorInstance(e,r),n=Object.getPrototypeOf(s);return Pt(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?t.clone():(ss(t,s,Xo({keyMap:Jo,nodeTypeGetter:Wo},r)),s.element)}}}),Qo=e=>$r(e)&&e.hasKey("openapi")&&e.hasKey("info"),ea=e=>$r(e)&&e.hasKey("name")&&e.hasKey("in"),ta=e=>$r(e)&&e.hasKey("$ref"),ra=e=>$r(e)&&e.hasKey("content"),sa=e=>$r(e)&&e.hasKey("description"),na=$r,ia=$r,oa=e=>Nr(e.key)&&Ot("x-",e.key.toValue()),aa=_r(Yo,{props:{specPath:hi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:oa},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:s=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=s},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,s,n)=>{if(Nr(s)&&r.includes(s.toValue())&&!this.ignoredFields.includes(s.toValue())){const r=this.toRefractedElement([...t,"fixedFields",s.toValue()],e),i=new At.c6(s.clone(),r);this.copyMetaAndAttributes(n,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const e=this.toRefractedElement(["document","extension"],n);this.element.content.push(e)}else this.ignoredFields.includes(s.toValue())||this.element.content.push(n.clone())})),this.copyMetaAndAttributes(e,this.element),yr}}}),ca=_r(zo,{methods:{enter(e){return this.element=e.clone(),yr}}}),la=_r(aa,ca,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new qn},methods:{ObjectElement(e){return this.unrefractedElement=e,aa.compose.methods.ObjectElement.call(this,e)}}}),ua=_r(Yo,ca,{methods:{StringElement(e){const t=new $n(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,yr}}}),pa=_r(Yo,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),yr}}}),ma=_r(aa,ca,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new jn}}),da=ca,ha=ca,_a=ca,fa=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),yr}}}),ya=_r(aa,ca,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new dn}}),ga=ca,ba=ca,va=ca,Ea=_r(aa,ca,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Pn}}),wa=ca,Oa=ca,xa=_r(aa,ca,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new An},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return(Nr(this.element.operationId)||Nr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),ja=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}}),Sa=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}}),Pa=_r(Yo,{props:{fieldPatternPredicate:i,specPath:hi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:oa},init(){let{specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:s=this.specificationExtensionPredicate}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=s},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(t.toValue())&&this.fieldPatternPredicate(t.toValue())){const s=this.specPath(e),n=this.toRefractedElement(s,e),i=new At.c6(t.clone(),n);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(t.toValue())||this.element.content.push(r.clone())})),this.copyMetaAndAttributes(e,this.element),yr}}}),Ma=_r(Pa,{props:{fieldPatternPredicate:Hi}});class Aa extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Aa.primaryClass)}}hr(Aa,"primaryClass","link-parameters");const Fa=Aa,Ia=_r(Ma,ca,{props:{specPath:_e(["value"])},init(){this.element=new Fa}}),Ta=ca,Na=ca,Ra=_r(aa,ca,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new qo}}),Ca=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),yr}}}),ka=ca;class $a extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push($a.primaryClass)}}hr($a,"primaryClass","servers");const Da=$a,qa=_r(Yo,ca,{init(){this.element=new Da},methods:{ArrayElement(e){return e.forEach((e=>{const t=na(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}}),Ba=_r(aa,ca,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Lo}}),La=ca,Va=ca,Ua=ca;class Ha extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ha.primaryClass)}}hr(Ha,"primaryClass","server-variables");const Za=Ha,za=_r(Ma,ca,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new Za}}),Ga=_r(aa,ca,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new In}}),Wa=_r(Yo,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((e=>{let{predicate:t,specPath:r}=e;return rt(t,_e(r),St)})),r=go(t)(e);return this.element=this.toRefractedElement(r,e),yr}}}),Ja=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof ln||t(e)&&r("callback",e)&&s("object",e)})),Ka=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof pn||t(e)&&r("components",e)&&s("object",e)})),Xa=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof dn||t(e)&&r("contact",e)&&s("object",e)})),Ya=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof bn||t(e)&&r("example",e)&&s("object",e)})),Qa=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof En||t(e)&&r("externalDocumentation",e)&&s("object",e)})),ec=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof On||t(e)&&r("header",e)&&s("object",e)})),tc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof jn||t(e)&&r("info",e)&&s("object",e)})),rc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Pn||t(e)&&r("license",e)&&s("object",e)})),sc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof An||t(e)&&r("link",e)&&s("object",e)})),nc=e=>{if(!sc(e))return!1;if(!Nr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ic=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof $n||t(e)&&r("openapi",e)&&s("string",e)})),oc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s,hasClass:n}=e;return e=>e instanceof qn||t(e)&&r("openApi3_0",e)&&s("object",e)&&n("api",e)})),ac=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Ln||t(e)&&r("operation",e)&&s("object",e)})),cc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Un||t(e)&&r("parameter",e)&&s("object",e)})),lc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Zn||t(e)&&r("pathItem",e)&&s("object",e)})),uc=e=>{if(!lc(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},pc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Gn||t(e)&&r("paths",e)&&s("object",e)})),mc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Jn||t(e)&&r("reference",e)&&s("object",e)})),dc=e=>{if(!mc(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},hc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Xn||t(e)&&r("requestBody",e)&&s("object",e)})),_c=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Qn||t(e)&&r("response",e)&&s("object",e)})),fc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof ti||t(e)&&r("responses",e)&&s("object",e)})),yc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof No||t(e)&&r("schema",e)&&s("object",e)})),gc=e=>kr(e)&&e.classes.includes("boolean-json-schema"),bc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Co||t(e)&&r("securityRequirement",e)&&s("object",e)})),vc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof qo||t(e)&&r("server",e)&&s("object",e)})),Ec=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Lo||t(e)&&r("serverVariable",e)&&s("object",e)})),wc=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof In||t(e)&&r("mediaType",e)&&s("object",e)})),Oc=_r(Wa,ca,{props:{alternator:[{predicate:ta,specPath:["document","objects","Reference"]},{predicate:o,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),xc=ca,jc=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new At.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Sc extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Sc.primaryClass),this.classes.push("examples")}}hr(Sc,"primaryClass","media-type-examples");const Pc=Sc,Mc=_r(jc,{init(){this.element=new Pc}});class Ac extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ac.primaryClass)}}hr(Ac,"primaryClass","media-type-encoding");const Fc=Ac,Ic=_r(Ma,ca,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Fc}}),Tc=_r(Ma,ca,{props:{specPath:_e(["value"])},init(){this.element=new Co}});class Nc extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Nc.primaryClass)}}hr(Nc,"primaryClass","security");const Rc=Nc,Cc=_r(Yo,ca,{init(){this.element=new Rc},methods:{ArrayElement(e){return e.forEach((e=>{if($r(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),yr}}}),kc=_r(aa,ca,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new pn}}),$c=_r(aa,ca,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Uo}}),Dc=ca,qc=ca,Bc=_r(aa,ca,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new Jn},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return Nr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Lc=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}}),Vc=_r(aa,ca,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Un},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return $r(this.element.contentProp)&&this.element.contentProp.filter(wc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),Uc=ca,Hc=ca,Zc=ca,zc=ca,Gc=ca,Wc=ca,Jc=ca,Kc=ca,Xc=ca,Yc=_r(Wa,ca,{props:{alternator:[{predicate:ta,specPath:["document","objects","Reference"]},{predicate:o,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Qc=_r(aa,ca,{props:{specPath:_e(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new On}}),el=ca,tl=ca,rl=ca,sl=ca,nl=ca,il=ca,ol=ca,al=_r(Wa,ca,{props:{alternator:[{predicate:ta,specPath:["document","objects","Reference"]},{predicate:o,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),cl=ca;class ll extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ll.primaryClass),this.classes.push("examples")}}hr(ll,"primaryClass","header-examples");const ul=ll,pl=_r(jc,{init(){this.element=new ul}}),ml=_r(Ma,ca,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new At.Sb,this.element.classes.push("content")}});class dl extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(dl.primaryClass),this.classes.push("content")}}hr(dl,"primaryClass","header-content");const hl=dl,_l=_r(ml,{init(){this.element=new hl}}),fl=_r(aa,ca,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new No}}),{items:yl}=Eo.visitors.document.objects.JSONSchema.fixedFields,gl=_r(yl,{methods:{ObjectElement(e){const t=yl.compose.methods.ObjectElement.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),yr}}}),{properties:bl}=Eo.visitors.document.objects.JSONSchema.fixedFields,vl=_r(bl,{methods:{ObjectElement(e){const t=bl.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:El}=Eo.visitors.document.objects.JSONSchema.fixedFields,wl=_r(El,{methods:{ArrayElement(e){return this.element=e.clone(),yr}}}),Ol=ca,xl=ca,jl=ca,Sl=ca,{JSONSchemaOrJSONReferenceVisitor:Pl}=Eo.visitors,Ml=_r(Pl,{methods:{ObjectElement(e){const t=Pl.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Al=Object.fromEntries(Object.entries(Eo.visitors.document.objects.JSONSchema.fixedFields).map((e=>{let[t,r]=e;return r===Eo.visitors.JSONSchemaOrJSONReferenceVisitor?[t,Ml]:[t,r]}))),Fl=_r(aa,ca,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new _n}}),Il=ca;class Tl extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Tl.primaryClass)}}hr(Tl,"primaryClass","discriminator-mapping");const Nl=Tl,Rl=_r(Ma,ca,{props:{specPath:_e(["value"])},init(){this.element=new Nl}}),Cl=_r(aa,ca,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zo}}),kl=ca,$l=ca,Dl=ca,ql=ca,Bl=ca,Ll=ca;class Vl extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Vl.primaryClass),this.classes.push("examples")}}hr(Vl,"primaryClass","parameter-examples");const Ul=Vl,Hl=_r(jc,{init(){this.element=new Ul}});class Zl extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Zl.primaryClass),this.classes.push("content")}}hr(Zl,"primaryClass","parameter-content");const zl=Zl,Gl=_r(ml,{init(){this.element=new zl}});class Wl extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Wl.primaryClass)}}hr(Wl,"primaryClass","components-schemas");const Jl=Wl,Kl=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new Jl},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class Xl extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Xl.primaryClass)}}hr(Xl,"primaryClass","components-responses");const Yl=Xl,Ql=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Yl},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(_c).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class eu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(eu.primaryClass),this.classes.push("parameters")}}hr(eu,"primaryClass","components-parameters");const tu=eu,ru=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new tu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class su extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(su.primaryClass),this.classes.push("examples")}}hr(su,"primaryClass","components-examples");const nu=su,iu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new nu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class ou extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ou.primaryClass)}}hr(ou,"primaryClass","components-request-bodies");const au=ou,cu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new au},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class lu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(lu.primaryClass)}}hr(lu,"primaryClass","components-headers");const uu=lu,pu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new uu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(ec).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class mu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(mu.primaryClass)}}hr(mu,"primaryClass","components-security-schemes");const du=mu,hu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new du},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class _u extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(_u.primaryClass)}}hr(_u,"primaryClass","components-links");const fu=_u,yu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new fu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class gu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(gu.primaryClass)}}hr(gu,"primaryClass","components-callbacks");const bu=gu,vu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new bu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Eu=_r(aa,ca,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new bn},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return Nr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),wu=ca,Ou=ca,xu=ca,ju=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}}),Su=_r(aa,ca,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new En}}),Pu=ca,Mu=ca,Au=_r(aa,ca,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new yn},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return $r(this.element.headers)&&this.element.headers.filter(ec).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Fu=ca;class Iu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Iu.primaryClass)}}hr(Iu,"primaryClass","encoding-headers");const Tu=Iu,Nu=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Tu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ec(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),Ru=ca,Cu=ca,ku=ca,$u=_r(Pa,ca,{props:{fieldPatternPredicate:xt(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Gn},methods:{ObjectElement(e){const t=Pa.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),Du=_r(aa,ca,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new Xn},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return $r(this.element.contentProp)&&this.element.contentProp.filter(wc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),qu=ca;class Bu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Bu.primaryClass),this.classes.push("content")}}hr(Bu,"primaryClass","request-body-content");const Lu=Bu,Vu=_r(ml,{init(){this.element=new Lu}}),Uu=ca,Hu=_r(Pa,ca,{props:{fieldPatternPredicate:xt(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ln},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(lc).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),Zu=_r(aa,ca,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new Qn},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return $r(this.element.contentProp)&&this.element.contentProp.filter(wc).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),$r(this.element.headers)&&this.element.headers.filter(ec).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),zu=ca;class Gu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Gu.primaryClass)}}hr(Gu,"primaryClass","response-headers");const Wu=Gu,Ju=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Wu},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!ec(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class Ku extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ku.primaryClass),this.classes.push("content")}}hr(Ku,"primaryClass","response-content");const Xu=Ku,Yu=_r(ml,{init(){this.element=new Xu}});class Qu extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Qu.primaryClass)}}hr(Qu,"primaryClass","response-links");const ep=Qu,tp=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new ep},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),rp=_r(aa,Pa,{props:{specPathFixedFields:hi,specPathPatternedFields:hi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...De(e.keys(),t)],aa.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Pa.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return yr}}}),sp=_r(rp,ca,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>ta(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:xt(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${gt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ti},methods:{ObjectElement(e){const t=rp.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(_c).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),np=_r(Wa,ca,{props:{alternator:[{predicate:ta,specPath:["document","objects","Reference"]},{predicate:o,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return mc(this.element)?this.element.setMetaProperty("referenced-element","response"):_c(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),ip=_r(aa,ca,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new Ln}});class op extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(op.primaryClass)}}hr(op,"primaryClass","operation-tags");const ap=op,cp=_r(ca,{init(){this.element=new ap},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),yr}}}),lp=ca,up=ca,pp=ca;class mp extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(mp.primaryClass),this.classes.push("parameters")}}hr(mp,"primaryClass","operation-parameters");const dp=mp,hp=_r(Yo,ca,{init(){this.element=new At.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=ta(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);mc(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}}),_p=_r(hp,{init(){this.element=new dp}}),fp=_r(Wa,{props:{alternator:[{predicate:ta,specPath:["document","objects","Reference"]},{predicate:o,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Wa.compose.methods.enter.call(this,e);return mc(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class yp extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yp.primaryClass)}}hr(yp,"primaryClass","operation-callbacks");const gp=yp,bp=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new gp},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(mc).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),vp=ca;class Ep extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Ep.primaryClass),this.classes.push("security")}}hr(Ep,"primaryClass","operation-security");const wp=Ep,Op=_r(Yo,ca,{init(){this.element=new wp},methods:{ArrayElement(e){return e.forEach((e=>{const t=$r(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}});class xp extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(xp.primaryClass),this.classes.push("servers")}}hr(xp,"primaryClass","operation-servers");const jp=xp,Sp=_r(qa,{init(){this.element=new jp}}),Pp=_r(aa,ca,{props:{specPath:_e(["document","objects","PathItem"])},init(){this.element=new Zn},methods:{ObjectElement(e){const t=aa.compose.methods.ObjectElement.call(this,e);return this.element.filter(ac).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Nr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Mp=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}}),Ap=ca,Fp=ca;class Ip extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Ip.primaryClass),this.classes.push("servers")}}hr(Ip,"primaryClass","path-item-servers");const Tp=Ip,Np=_r(qa,{init(){this.element=new Tp}});class Rp extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Rp.primaryClass),this.classes.push("parameters")}}hr(Rp,"primaryClass","path-item-parameters");const Cp=Rp,kp=_r(hp,{init(){this.element=new Cp}}),$p=_r(aa,ca,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new $o}}),Dp=ca,qp=ca,Bp=ca,Lp=ca,Vp=ca,Up=ca,Hp=ca,Zp=_r(aa,ca,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cn}}),zp=_r(aa,ca,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Nn}}),Gp=ca,Wp=ca,Jp=ca;class Kp extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Kp.primaryClass)}}hr(Kp,"primaryClass","oauth-flow-scopes");const Xp=Kp,Yp=_r(Ma,ca,{props:{specPath:_e(["value"])},init(){this.element=new Xp}});class Qp extends At.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Qp.primaryClass)}}hr(Qp,"primaryClass","tags");const em=Qp,tm=_r(Yo,ca,{init(){this.element=new em},methods:{ArrayElement(e){return e.forEach((e=>{const t=ia(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),yr}}});function rm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function sm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?rm(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):rm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const nm={$visitor:Bc,fixedFields:{$ref:Lc}},im={$visitor:fl,fixedFields:sm(sm({},Al),{},{items:gl,properties:vl,type:wl,nullable:Ol,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:xl,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:jl,deprecated:Sl})},om={visitors:{value:ca,document:{objects:{OpenApi:{$visitor:la,fixedFields:{openapi:ua,info:{$ref:"#/visitors/document/objects/Info"},servers:qa,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Cc,tags:tm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ma,fixedFields:{title:da,description:ha,termsOfService:_a,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:fa}},Contact:{$visitor:ya,fixedFields:{name:ga,url:ba,email:va}},License:{$visitor:Ea,fixedFields:{name:wa,url:Oa}},Server:{$visitor:Ra,fixedFields:{url:Ca,description:ka,variables:za}},ServerVariable:{$visitor:Ba,fixedFields:{enum:La,default:Va,description:Ua}},Components:{$visitor:kc,fixedFields:{schemas:Kl,responses:Ql,parameters:ru,examples:iu,requestBodies:cu,headers:pu,securitySchemes:hu,links:yu,callbacks:vu}},Paths:{$visitor:$u},PathItem:{$visitor:Pp,fixedFields:{$ref:Mp,summary:Ap,description:Fp,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Np,parameters:kp}},Operation:{$visitor:ip,fixedFields:{tags:cp,summary:lp,description:up,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:pp,parameters:_p,requestBody:fp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:bp,deprecated:vp,security:Op,servers:Sp}},ExternalDocumentation:{$visitor:Su,fixedFields:{description:Pu,url:Mu}},Parameter:{$visitor:Vc,fixedFields:{name:Uc,in:Hc,description:Zc,required:zc,deprecated:Gc,allowEmptyValue:Wc,style:Jc,explode:Kc,allowReserved:Xc,schema:Yc,example:Ll,examples:Hl,content:Gl}},RequestBody:{$visitor:Du,fixedFields:{description:qu,content:Vu,required:Uu}},MediaType:{$visitor:Ga,fixedFields:{schema:Oc,example:xc,examples:Mc,encoding:Ic}},Encoding:{$visitor:Au,fixedFields:{contentType:Fu,headers:Nu,style:Ru,explode:Cu,allowReserved:ku}},Responses:{$visitor:sp,fixedFields:{default:np}},Response:{$visitor:Zu,fixedFields:{description:zu,headers:Ju,content:Yu,links:tp}},Callback:{$visitor:Hu},Example:{$visitor:Eu,fixedFields:{summary:wu,description:Ou,value:xu,externalValue:ju}},Link:{$visitor:xa,fixedFields:{operationRef:ja,operationId:Sa,parameters:Ia,requestBody:Ta,description:Na,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Qc,fixedFields:{description:el,required:tl,deprecated:rl,allowEmptyValue:sl,style:nl,explode:il,allowReserved:ol,schema:al,example:cl,examples:pl,content:_l}},Tag:{$visitor:$c,fixedFields:{name:Dc,description:qc,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:nm,Reference:nm,JSONSchema:im,Schema:im,LinkDescription:Eo.visitors.document.objects.LinkDescription,Media:Eo.visitors.document.objects.Media,Discriminator:{$visitor:Fl,fixedFields:{propertyName:Il,mapping:Rl}},XML:{$visitor:Cl,fixedFields:{name:kl,namespace:$l,prefix:Dl,attribute:ql,wrapped:Bl}},SecurityScheme:{$visitor:$p,fixedFields:{type:Dp,description:qp,name:Bp,in:Lp,scheme:Vp,bearerFormat:Up,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Hp}},OAuthFlows:{$visitor:Zp,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:zp,fixedFields:{authorizationUrl:Gp,tokenUrl:Wp,refreshUrl:Jp,scopes:Yp}},SecurityRequirement:{$visitor:Tc}},extension:{$visitor:pa}}}},am={namespace:e=>{const{base:t}=e;return t.register("callback",ln),t.register("components",pn),t.register("contact",dn),t.register("discriminator",_n),t.register("encoding",yn),t.register("example",bn),t.register("externalDocumentation",En),t.register("header",On),t.register("info",jn),t.register("license",Pn),t.register("link",An),t.register("mediaType",In),t.register("oAuthFlow",Nn),t.register("oAuthFlows",Cn),t.register("openapi",$n),t.register("openApi3_0",qn),t.register("operation",Ln),t.register("parameter",Un),t.register("pathItem",Zn),t.register("paths",Gn),t.register("reference",Jn),t.register("requestBody",Xn),t.register("response",Qn),t.register("responses",ti),t.register("schema",No),t.register("securityRequirement",Co),t.register("securityScheme",$o),t.register("server",qo),t.register("serverVariable",Lo),t.register("tag",Uo),t.register("xml",Zo),t}};function cm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function lm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cm(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const um=()=>{const e=Yt(am);return{predicates:lm(lm(lm({},r),s),{},{isStringElement:Nr}),namespace:e}};function pm(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const mm=function(e){let{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=(0,At.Qc)(e),n=pi(om),i=as(t,[],n);return ss(s,i,{state:{specObj:n}}),us(i.element,r,{toolboxCreator:um,visitorOptions:{keyMap:Jo,nodeTypeGetter:Wo}})},dm=e=>function(t){return mm(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pm(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};ln.refract=dm(["visitors","document","objects","Callback","$visitor"]),pn.refract=dm(["visitors","document","objects","Components","$visitor"]),dn.refract=dm(["visitors","document","objects","Contact","$visitor"]),bn.refract=dm(["visitors","document","objects","Example","$visitor"]),_n.refract=dm(["visitors","document","objects","Discriminator","$visitor"]),yn.refract=dm(["visitors","document","objects","Encoding","$visitor"]),En.refract=dm(["visitors","document","objects","ExternalDocumentation","$visitor"]),On.refract=dm(["visitors","document","objects","Header","$visitor"]),jn.refract=dm(["visitors","document","objects","Info","$visitor"]),Pn.refract=dm(["visitors","document","objects","License","$visitor"]),An.refract=dm(["visitors","document","objects","Link","$visitor"]),In.refract=dm(["visitors","document","objects","MediaType","$visitor"]),Nn.refract=dm(["visitors","document","objects","OAuthFlow","$visitor"]),Cn.refract=dm(["visitors","document","objects","OAuthFlows","$visitor"]),$n.refract=dm(["visitors","document","objects","OpenApi","fixedFields","openapi"]),qn.refract=dm(["visitors","document","objects","OpenApi","$visitor"]),Ln.refract=dm(["visitors","document","objects","Operation","$visitor"]),Un.refract=dm(["visitors","document","objects","Parameter","$visitor"]),Zn.refract=dm(["visitors","document","objects","PathItem","$visitor"]),Gn.refract=dm(["visitors","document","objects","Paths","$visitor"]),Jn.refract=dm(["visitors","document","objects","Reference","$visitor"]),Xn.refract=dm(["visitors","document","objects","RequestBody","$visitor"]),Qn.refract=dm(["visitors","document","objects","Response","$visitor"]),ti.refract=dm(["visitors","document","objects","Responses","$visitor"]),No.refract=dm(["visitors","document","objects","Schema","$visitor"]),Co.refract=dm(["visitors","document","objects","SecurityRequirement","$visitor"]),$o.refract=dm(["visitors","document","objects","SecurityScheme","$visitor"]),qo.refract=dm(["visitors","document","objects","Server","$visitor"]),Lo.refract=dm(["visitors","document","objects","ServerVariable","$visitor"]),Uo.refract=dm(["visitors","document","objects","Tag","$visitor"]),Zo.refract=dm(["visitors","document","objects","XML","$visitor"]);const hm=class extends ln{};const _m=class extends pn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const fm=class extends dn{};const ym=class extends _n{};const gm=class extends yn{};const bm=class extends bn{};const vm=class extends En{};const Em=class extends On{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const wm=class extends jn{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}};class Om extends At.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}hr(Om,"default",new Om("https://spec.openapis.org/oas/3.1/dialect/base"));const xm=Om;const jm=class extends Pn{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Sm=class extends An{};const Pm=class extends In{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Mm=class extends Nn{};const Am=class extends Cn{};const Fm=class extends $n{};class Im extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Tm=Im;const Nm=class extends Ln{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Rm=class extends Un{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Cm=class extends Zn{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}};const km=class extends Gn{};class $m extends Jn{}Object.defineProperty($m.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty($m.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Dm=$m;const qm=class extends Xn{};const Bm=class extends Qn{};const Lm=class extends ti{};class Vm extends At.Sb{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Um=Vm;const Hm=class extends Co{};const Zm=class extends $o{};const zm=class extends qo{};const Gm=class extends Lo{};const Wm=class extends Uo{};const Jm=class extends Zo{},Km=_r(aa,ca,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Tm,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,aa.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:Xm}}}}}=om,Ym=_r(Xm,{init(){this.element=new wm}}),Qm=ca,{visitors:{document:{objects:{Contact:{$visitor:ed}}}}}=om,td=_r(ed,{init(){this.element=new fm}}),{visitors:{document:{objects:{License:{$visitor:rd}}}}}=om,sd=_r(rd,{init(){this.element=new jm}}),nd=ca,{visitors:{document:{objects:{Link:{$visitor:id}}}}}=om,od=_r(id,{init(){this.element=new Sm}}),ad=_r(Yo,ca,{methods:{StringElement(e){const t=new xm(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,yr}}}),{visitors:{document:{objects:{Server:{$visitor:cd}}}}}=om,ld=_r(cd,{init(){this.element=new zm}}),{visitors:{document:{objects:{ServerVariable:{$visitor:ud}}}}}=om,pd=_r(ud,{init(){this.element=new Gm}}),{visitors:{document:{objects:{MediaType:{$visitor:md}}}}}=om,dd=_r(md,{init(){this.element=new Pm}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:hd}}}}}=om,_d=_r(hd,{init(){this.element=new Hm}}),{visitors:{document:{objects:{Components:{$visitor:fd}}}}}=om,yd=_r(fd,{init(){this.element=new _m}}),{visitors:{document:{objects:{Tag:{$visitor:gd}}}}}=om,bd=_r(gd,{init(){this.element=new Wm}}),{visitors:{document:{objects:{Reference:{$visitor:vd}}}}}=om,Ed=_r(vd,{init(){this.element=new Dm}}),wd=ca,Od=ca,{visitors:{document:{objects:{Parameter:{$visitor:xd}}}}}=om,jd=_r(xd,{init(){this.element=new Rm}}),{visitors:{document:{objects:{Header:{$visitor:Sd}}}}}=om,Pd=_r(Sd,{init(){this.element=new Em}}),Md=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof hm||t(e)&&r("callback",e)&&s("object",e)})),Ad=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof _m||t(e)&&r("components",e)&&s("object",e)})),Fd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof fm||t(e)&&r("contact",e)&&s("object",e)})),Id=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof bm||t(e)&&r("example",e)&&s("object",e)})),Td=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof vm||t(e)&&r("externalDocumentation",e)&&s("object",e)})),Nd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Em||t(e)&&r("header",e)&&s("object",e)})),Rd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof wm||t(e)&&r("info",e)&&s("object",e)})),Cd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof xm||t(e)&&r("jsonSchemaDialect",e)&&s("string",e)})),kd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof jm||t(e)&&r("license",e)&&s("object",e)})),$d=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Sm||t(e)&&r("link",e)&&s("object",e)})),Dd=e=>{if(!$d(e))return!1;if(!Nr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},qd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Fm||t(e)&&r("openapi",e)&&s("string",e)})),Bd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s,hasClass:n}=e;return e=>e instanceof Tm||t(e)&&r("openApi3_1",e)&&s("object",e)&&n("api",e)})),Ld=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Nm||t(e)&&r("operation",e)&&s("object",e)})),Vd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Rm||t(e)&&r("parameter",e)&&s("object",e)})),Ud=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Cm||t(e)&&r("pathItem",e)&&s("object",e)})),Hd=e=>{if(!Ud(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Zd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof km||t(e)&&r("paths",e)&&s("object",e)})),zd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Dm||t(e)&&r("reference",e)&&s("object",e)})),Gd=e=>{if(!zd(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Wd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof qm||t(e)&&r("requestBody",e)&&s("object",e)})),Jd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Bm||t(e)&&r("response",e)&&s("object",e)})),Kd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Lm||t(e)&&r("responses",e)&&s("object",e)})),Xd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Um||t(e)&&r("schema",e)&&s("object",e)})),Yd=e=>kr(e)&&e.classes.includes("boolean-json-schema"),Qd=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Hm||t(e)&&r("securityRequirement",e)&&s("object",e)})),eh=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof zm||t(e)&&r("server",e)&&s("object",e)})),th=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Gm||t(e)&&r("serverVariable",e)&&s("object",e)})),rh=Ir((e=>{let{hasBasicElementProps:t,isElementType:r,primitiveEq:s}=e;return e=>e instanceof Pm||t(e)&&r("mediaType",e)&&s("object",e)})),sh=_r({props:{parent:null},init(e){let{parent:t=this.parent}=e;this.parent=t,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),nh=_r(aa,sh,ca,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&Cd(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Nr(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():xm.default.toValue(),e},t=t=>{if(Ft(this.parent)&&!Nr(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(Xd(this.parent)&&!Nr(t.get("$schema"))){var r,s;const e=Ce(null===(r=this.parent.meta.get("inherited$schema"))||void 0===r?void 0:r.toValue(),null===(s=this.parent.$schema)||void 0===s?void 0:s.toValue());this.element.setMetaProperty("inherited$schema",e)}},r=e=>{var t;const r=null!==this.parent?this.parent.getMetaProperty("inherited$id",[]).clone():new At.ON,s=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();Hi(s)&&r.push(s),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new Um,t(e),r(e),this.parent=this.element;const s=aa.compose.methods.ObjectElement.call(this,e);return Nr(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),s},this.BooleanElement=function(e){return this.element=e.clone(),this.element.classes.push("boolean-json-schema"),yr}}}),ih=ca,oh=_r(ca,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),yr}}}),ah=ca,ch=ca,lh=ca,uh=ca,ph=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),yr}}}),mh=_r(Ma,sh,ca,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new At.Sb,this.element.classes.push("json-schema-$defs")}}),dh=ca,hh=_r(Yo,sh,ca,{init(){this.element=new At.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if($r(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yr}}}),_h=_r(Yo,sh,ca,{init(){this.element=new At.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if($r(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yr}}}),fh=_r(Yo,sh,ca,{init(){this.element=new At.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if($r(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yr}}}),yh=_r(Ma,sh,ca,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new At.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),gh=_r(Yo,sh,ca,{init(){this.element=new At.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if($r(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=e.clone();this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),yr}}}),bh=_r(Ma,sh,ca,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new At.Sb,this.element.classes.push("json-schema-properties")}}),vh=_r(Ma,sh,ca,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new At.Sb,this.element.classes.push("json-schema-patternProperties")}}),Eh=_r(ca,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),yr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),yr}}}),wh=_r(ca,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),yr}}}),Oh=ca,xh=ca,jh=ca,Sh=ca,Ph=ca,Mh=ca,Ah=ca,Fh=ca,Ih=ca,Th=ca,Nh=ca,Rh=ca,Ch=ca,kh=ca,$h=ca,Dh=ca,qh=_r(ca,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),yr}}}),Bh=_r(ca,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),yr}}}),Lh=ca,Vh=ca,Uh=ca,Hh=ca,Zh=ca,zh=ca,Gh=_r(ca,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),yr}}}),Wh=ca,Jh=ca,Kh=ca,Xh=ca,{visitors:{document:{objects:{Discriminator:{$visitor:Yh}}}}}=om,Qh=_r(Yh,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new ym}}),{visitors:{document:{objects:{XML:{$visitor:e_}}}}}=om,t_=_r(e_,{init(){this.element=new Jm}}),r_=_r(Ma,ca,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Jl}});class s_ extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(s_.primaryClass)}}hr(s_,"primaryClass","components-path-items");const n_=s_,i_=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new n_},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:o_}}}}}=om,a_=_r(o_,{init(){this.element=new bm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:c_}}}}}=om,l_=_r(c_,{init(){this.element=new vm}}),{visitors:{document:{objects:{Encoding:{$visitor:u_}}}}}=om,p_=_r(u_,{init(){this.element=new gm}}),{visitors:{document:{objects:{Paths:{$visitor:m_}}}}}=om,d_=_r(m_,{init(){this.element=new km}}),{visitors:{document:{objects:{RequestBody:{$visitor:h_}}}}}=om,__=_r(h_,{init(){this.element=new qm}}),{visitors:{document:{objects:{Callback:{$visitor:f_}}}}}=om,y_=_r(f_,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new hm},methods:{ObjectElement(e){const t=f_.compose.methods.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:g_}}}}}=om,b_=_r(g_,{init(){this.element=new Bm}}),{visitors:{document:{objects:{Responses:{$visitor:v_}}}}}=om,E_=_r(v_,{init(){this.element=new Lm}}),{visitors:{document:{objects:{Operation:{$visitor:w_}}}}}=om,O_=_r(w_,{init(){this.element=new Nm}}),{visitors:{document:{objects:{PathItem:{$visitor:x_}}}}}=om,j_=_r(x_,{init(){this.element=new Cm}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:S_}}}}}=om,P_=_r(S_,{init(){this.element=new Zm}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:M_}}}}}=om,A_=_r(M_,{init(){this.element=new Am}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:F_}}}}}=om,I_=_r(F_,{init(){this.element=new Mm}});class T_ extends At.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(T_.primaryClass)}}hr(T_,"primaryClass","webhooks");const N_=T_,R_=_r(Ma,ca,{props:{specPath:e=>ta(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new N_},methods:{ObjectElement(e){const t=Ma.compose.methods.ObjectElement.call(this,e);return this.element.filter(zd).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Ud).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),C_={visitors:{value:om.visitors.value,document:{objects:{OpenApi:{$visitor:Km,fixedFields:{openapi:om.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ad,servers:om.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:R_,components:{$ref:"#/visitors/document/objects/Components"},security:om.visitors.document.objects.OpenApi.fixedFields.security,tags:om.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Ym,fixedFields:{title:om.visitors.document.objects.Info.fixedFields.title,description:om.visitors.document.objects.Info.fixedFields.description,summary:Qm,termsOfService:om.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:om.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:td,fixedFields:{name:om.visitors.document.objects.Contact.fixedFields.name,url:om.visitors.document.objects.Contact.fixedFields.url,email:om.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:sd,fixedFields:{name:om.visitors.document.objects.License.fixedFields.name,identifier:nd,url:om.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:ld,fixedFields:{url:om.visitors.document.objects.Server.fixedFields.url,description:om.visitors.document.objects.Server.fixedFields.description,variables:om.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:pd,fixedFields:{enum:om.visitors.document.objects.ServerVariable.fixedFields.enum,default:om.visitors.document.objects.ServerVariable.fixedFields.default,description:om.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:yd,fixedFields:{schemas:r_,responses:om.visitors.document.objects.Components.fixedFields.responses,parameters:om.visitors.document.objects.Components.fixedFields.parameters,examples:om.visitors.document.objects.Components.fixedFields.examples,requestBodies:om.visitors.document.objects.Components.fixedFields.requestBodies,headers:om.visitors.document.objects.Components.fixedFields.headers,securitySchemes:om.visitors.document.objects.Components.fixedFields.securitySchemes,links:om.visitors.document.objects.Components.fixedFields.links,callbacks:om.visitors.document.objects.Components.fixedFields.callbacks,pathItems:i_}},Paths:{$visitor:d_},PathItem:{$visitor:j_,fixedFields:{$ref:om.visitors.document.objects.PathItem.fixedFields.$ref,summary:om.visitors.document.objects.PathItem.fixedFields.summary,description:om.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:om.visitors.document.objects.PathItem.fixedFields.servers,parameters:om.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:O_,fixedFields:{tags:om.visitors.document.objects.Operation.fixedFields.tags,summary:om.visitors.document.objects.Operation.fixedFields.summary,description:om.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:om.visitors.document.objects.Operation.fixedFields.operationId,parameters:om.visitors.document.objects.Operation.fixedFields.parameters,requestBody:om.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:om.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:om.visitors.document.objects.Operation.fixedFields.deprecated,security:om.visitors.document.objects.Operation.fixedFields.security,servers:om.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:l_,fixedFields:{description:om.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:om.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:jd,fixedFields:{name:om.visitors.document.objects.Parameter.fixedFields.name,in:om.visitors.document.objects.Parameter.fixedFields.in,description:om.visitors.document.objects.Parameter.fixedFields.description,required:om.visitors.document.objects.Parameter.fixedFields.required,deprecated:om.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:om.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:om.visitors.document.objects.Parameter.fixedFields.style,explode:om.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:om.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:om.visitors.document.objects.Parameter.fixedFields.example,examples:om.visitors.document.objects.Parameter.fixedFields.examples,content:om.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:__,fixedFields:{description:om.visitors.document.objects.RequestBody.fixedFields.description,content:om.visitors.document.objects.RequestBody.fixedFields.content,required:om.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:dd,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:om.visitors.document.objects.MediaType.fixedFields.example,examples:om.visitors.document.objects.MediaType.fixedFields.examples,encoding:om.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:p_,fixedFields:{contentType:om.visitors.document.objects.Encoding.fixedFields.contentType,headers:om.visitors.document.objects.Encoding.fixedFields.headers,style:om.visitors.document.objects.Encoding.fixedFields.style,explode:om.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:om.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:E_,fixedFields:{default:om.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:b_,fixedFields:{description:om.visitors.document.objects.Response.fixedFields.description,headers:om.visitors.document.objects.Response.fixedFields.headers,content:om.visitors.document.objects.Response.fixedFields.content,links:om.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:y_},Example:{$visitor:a_,fixedFields:{summary:om.visitors.document.objects.Example.fixedFields.summary,description:om.visitors.document.objects.Example.fixedFields.description,value:om.visitors.document.objects.Example.fixedFields.value,externalValue:om.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:od,fixedFields:{operationRef:om.visitors.document.objects.Link.fixedFields.operationRef,operationId:om.visitors.document.objects.Link.fixedFields.operationId,parameters:om.visitors.document.objects.Link.fixedFields.parameters,requestBody:om.visitors.document.objects.Link.fixedFields.requestBody,description:om.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Pd,fixedFields:{description:om.visitors.document.objects.Header.fixedFields.description,required:om.visitors.document.objects.Header.fixedFields.required,deprecated:om.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:om.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:om.visitors.document.objects.Header.fixedFields.style,explode:om.visitors.document.objects.Header.fixedFields.explode,allowReserved:om.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:om.visitors.document.objects.Header.fixedFields.example,examples:om.visitors.document.objects.Header.fixedFields.examples,content:om.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:bd,fixedFields:{name:om.visitors.document.objects.Tag.fixedFields.name,description:om.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Ed,fixedFields:{$ref:om.visitors.document.objects.Reference.fixedFields.$ref,summary:wd,description:Od}},Schema:{$visitor:nh,fixedFields:{$schema:ih,$vocabulary:oh,$id:ah,$anchor:ch,$dynamicAnchor:lh,$dynamicRef:uh,$ref:ph,$defs:mh,$comment:dh,allOf:hh,anyOf:_h,oneOf:fh,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:yh,prefixItems:gh,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:bh,patternProperties:vh,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:Eh,enum:wh,const:Oh,multipleOf:xh,maximum:jh,exclusiveMaximum:Sh,minimum:Ph,exclusiveMinimum:Mh,maxLength:Ah,minLength:Fh,pattern:Ih,maxItems:Th,minItems:Nh,uniqueItems:Rh,maxContains:Ch,minContains:kh,maxProperties:$h,minProperties:Dh,required:qh,dependentRequired:Bh,title:Lh,description:Vh,default:Uh,deprecated:Hh,readOnly:Zh,writeOnly:zh,examples:Gh,format:Wh,contentEncoding:Jh,contentMediaType:Kh,contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Xh}},Discriminator:{$visitor:Qh,fixedFields:{propertyName:om.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:om.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:t_,fixedFields:{name:om.visitors.document.objects.XML.fixedFields.name,namespace:om.visitors.document.objects.XML.fixedFields.namespace,prefix:om.visitors.document.objects.XML.fixedFields.prefix,attribute:om.visitors.document.objects.XML.fixedFields.attribute,wrapped:om.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:P_,fixedFields:{type:om.visitors.document.objects.SecurityScheme.fixedFields.type,description:om.visitors.document.objects.SecurityScheme.fixedFields.description,name:om.visitors.document.objects.SecurityScheme.fixedFields.name,in:om.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:om.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:om.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:om.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:A_,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:I_,fixedFields:{authorizationUrl:om.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:om.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:om.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:om.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:_d}},extension:{$visitor:om.visitors.document.extension.$visitor}}}};function k_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const $_=e=>{if(Tr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},D_=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?k_(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):k_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"]},rs),q_={namespace:e=>{const{base:t}=e;return t.register("callback",hm),t.register("components",_m),t.register("contact",fm),t.register("discriminator",ym),t.register("encoding",gm),t.register("example",bm),t.register("externalDocumentation",vm),t.register("header",Em),t.register("info",wm),t.register("jsonSchemaDialect",xm),t.register("license",jm),t.register("link",Sm),t.register("mediaType",Pm),t.register("oAuthFlow",Mm),t.register("oAuthFlows",Am),t.register("openapi",Fm),t.register("openApi3_1",Tm),t.register("operation",Nm),t.register("parameter",Rm),t.register("pathItem",Cm),t.register("paths",km),t.register("reference",Dm),t.register("requestBody",qm),t.register("response",Bm),t.register("responses",Lm),t.register("schema",Um),t.register("securityRequirement",Hm),t.register("securityScheme",Zm),t.register("server",zm),t.register("serverVariable",Gm),t.register("tag",Wm),t.register("xml",Jm),t}};function B_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}function L_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?B_(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):B_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const V_=()=>{const e=Yt(q_);return{predicates:L_(L_({},n),{},{isStringElement:Nr,isArrayElement:Dr,isObjectElement:$r,includesClasses:Jr}),namespace:e}};function U_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var s=Object.getOwnPropertySymbols(e);t&&(s=s.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,s)}return r}const H_=function(e){let{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=(0,At.Qc)(e),n=pi(C_),i=as(t,[],n);return ss(s,i,{state:{specObj:n}}),us(i.element,r,{toolboxCreator:V_,visitorOptions:{keyMap:D_,nodeTypeGetter:$_}})},Z_=e=>function(t){return H_(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?U_(Object(r),!0).forEach((function(t){hr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):U_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}))};hm.refract=Z_(["visitors","document","objects","Callback","$visitor"]),_m.refract=Z_(["visitors","document","objects","Components","$visitor"]),fm.refract=Z_(["visitors","document","objects","Contact","$visitor"]),bm.refract=Z_(["visitors","document","objects","Example","$visitor"]),ym.refract=Z_(["visitors","document","objects","Discriminator","$visitor"]),gm.refract=Z_(["visitors","document","objects","Encoding","$visitor"]),vm.refract=Z_(["visitors","document","objects","ExternalDocumentation","$visitor"]),Em.refract=Z_(["visitors","document","objects","Header","$visitor"]),wm.refract=Z_(["visitors","document","objects","Info","$visitor"]),xm.refract=Z_(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),jm.refract=Z_(["visitors","document","objects","License","$visitor"]),Sm.refract=Z_(["visitors","document","objects","Link","$visitor"]),Pm.refract=Z_(["visitors","document","objects","MediaType","$visitor"]),Mm.refract=Z_(["visitors","document","objects","OAuthFlow","$visitor"]),Am.refract=Z_(["visitors","document","objects","OAuthFlows","$visitor"]),Fm.refract=Z_(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Tm.refract=Z_(["visitors","document","objects","OpenApi","$visitor"]),Nm.refract=Z_(["visitors","document","objects","Operation","$visitor"]),Rm.refract=Z_(["visitors","document","objects","Parameter","$visitor"]),Cm.refract=Z_(["visitors","document","objects","PathItem","$visitor"]),km.refract=Z_(["visitors","document","objects","Paths","$visitor"]),Dm.refract=Z_(["visitors","document","objects","Reference","$visitor"]),qm.refract=Z_(["visitors","document","objects","RequestBody","$visitor"]),Bm.refract=Z_(["visitors","document","objects","Response","$visitor"]),Lm.refract=Z_(["visitors","document","objects","Responses","$visitor"]),Um.refract=Z_(["visitors","document","objects","Schema","$visitor"]),Hm.refract=Z_(["visitors","document","objects","SecurityRequirement","$visitor"]),Zm.refract=Z_(["visitors","document","objects","SecurityScheme","$visitor"]),zm.refract=Z_(["visitors","document","objects","Server","$visitor"]),Gm.refract=Z_(["visitors","document","objects","ServerVariable","$visitor"]),Wm.refract=Z_(["visitors","document","objects","Tag","$visitor"]),Jm.refract=Z_(["visitors","document","objects","XML","$visitor"]);const z_=class extends Array{constructor(){super(...arguments),hr(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class G_ extends z_{filterByFormat(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"3.1.0",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"generic";const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"generic";return ct(this.filterByFormat(e))}}const W_=new G_("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),J_=new G_(...W_.filterByFormat("generic"),...W_.filterByFormat("json")),K_=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,X_=async e=>K_.test(e)&&await(async e=>{if(!an.test(e))return!1;try{return"ERROR"!==(await ar(e)).rootNode.type}catch{return!1}})(e),Y_=async function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const r=_t({},"refractorOpts",t),s=mt(["refractorOpts"],t),n=await async function(e){let{sourceMap:t=!1,syntacticAnalysis:r="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=await ar(e);let n;return n="indirect"===r?on(s,{sourceMap:t}):vs(s,{sourceMap:t}),n}(e,s),{result:i}=n;if(Mt(i)){const e=Tm.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},Q_=Yt(q_)})(),__webpack_exports__})()));