@swagger-api/apidom-parser-adapter-openapi-json-3-1 0.74.1 → 0.76.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
!function(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(7148),r(9031),r(1875),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")},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(3346),r(3520),r(6658),r(8658),r(2725),r(1806),r(4212),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,_){for(var g,b,v=o(d),E=i(v),w=n(f,y),j=c(E),x=0,O=_||a,S=t?O(d,j):r||m?O(d,0):void 0;j>x;x++)if((h||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: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),_=S[f],s&&(g=e.dontCallGetSet?(v=c(O,f))&&v.value:O[f]),y=s&&g?g:t[f],s&&typeof _==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||_&&_.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:function(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}()||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 _=p.state||(p.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,n=function(e,t){if(_.has(e))throw f(d);return t.facade=e,_.set(e,t),t},s=function(e){return _.get(e)||{}},i=function(e){return _.has(e)}}else{var g=m("state");h[g]=!0,n=function(e,t){if(u(e,g))throw f(d);return t.facade=e,l(e,g,t),t},s=function(e){return u(e,g)?e[g]:{}},i=function(e){return u(e,g)}}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),_=o.PROPER,g=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&&N)return N;if(!v&&e in I)return I[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",R=!1,I=e.prototype,M=I[E]||I["@@iterator"]||d&&I[d],N=!v&&M||$(d),C="Array"==t&&I.entries||M;if(C&&(P=l(C.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)),_&&d==j&&M&&M.name!==j&&(!i&&g?m(I,"name",j):(R=!0,N=function(){return s(M,this)})),d)if(A={values:$(j),keys:y?N:$(w),entries:$(x)},S)for(F in A)(v||R||!(F in I))&&h(I,F,A[F]);else n({target:t,proto:!0,forced:v||R},A);return i&&!S||I[E]===N||h(I,E,N,{name:d}),f[t]=N,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},_=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;_="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 _[p][o[s]];return _()};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=_(),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.31.1",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(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),i=r(8576).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol();return!i(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})}},8743:(e,t,r)=>{var n=r(150),s=r(4120),i=n("Symbol"),o=i.keyFor,c=s(i.prototype.valueOf);e.exports=i.isRegisteredSymbol||function(e){try{return void 0!==o(c(e))}catch(e){return!1}}},5128:(e,t,r)=>{for(var n=r(8717),s=r(150),i=r(4120),o=r(3236),c=r(8182),a=s("Symbol"),l=a.isWellKnownSymbol,u=s("Object","getOwnPropertyNames"),p=i(a.prototype.valueOf),m=n("wks"),h=0,d=u(a),f=d.length;h<f;h++)try{var y=d[h];o(a[y])&&c(y)}catch(e){}e.exports=function(e){if(l&&l(e))return!0;try{for(var t=p(e),r=0,n=u(m),s=n.length;r<s;r++)if(m[n[r]]==t)return!0}catch(e){}return!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})),_=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(_(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),_=c("".charAt),g=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=_(r,t-1),s=_(r,t+1);return y(w,e)&&!y(j,s)||y(j,e)&&!y(w,n)?"\\u"+v(g(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),_=r(774),g=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),R=r(2759),I=r(8182),M=r(9207),N=r(8332),C=r(3407),T=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],J=s.Symbol,W=J&&J[V],H=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!=g(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]=g(W);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=g(r,{enumerable:_(0,!1)})):(p(e,L)||X(e,L,_(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(W=(J=function(){if(m(W,this))throw H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=R(e),r=function(e){this===G&&i(r,re,e),p(this,L)&&p(this[L],t)&&(this[L][t]=!1),ie(this,t,_(1,e))};return a&&se&&ie(G,t,{configurable:!0,set:r}),oe(t,e)})[V],"toString",(function(){return U(this).tag})),P(J,"withoutSetter",(function(e){return oe(R(e),e)})),S.f=le,x.f=ce,O.f=ae,j.f=ue,v.f=E.f=pe,w.f=me,M.f=function(e){return oe(I(e),e)},a&&(A(W,"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:J}),D(b(ne),(function(e){N(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?g(e):ae(g(e),t)},defineProperty:ce,defineProperties:ae,getOwnPropertyDescriptor:ue}),n({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),C(),T(J,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")},7148:(e,t,r)=>{var n=r(8182),s=r(2760).f,i=n("metadata"),o=Function.prototype;void 0===o[i]&&s(o,i,{value:null})},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},3346:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(8743)})},2725:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(8743)})},3520:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(5128)})},1806:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(5128)})},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,_){var g=a(e),b=a(t),v=g?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;g=!0,w=!1}if(x&&!w)return _||(_=new n),g||u(e)?s(e,t,r,f,y,_):i(e,t,v,r,f,y,_);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 _||(_=new n),y(P,A,r,f,_)}}return!!x&&(_||(_=new n),o(e,t,r,f,y,_))}},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 _=e[d],g=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)&&(_===e||c(_,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 _=e[m=l[p]],g=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),_=l(i),g=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 _:return p;case g: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",_="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 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(g),n(o),n(c,P),n(a),n(l),n(u,P),n(p),n(m),n(h,P),s(_),s(b)),e}function $(){return function(e){return r=function e(r){var n,s,i=e[v]||{},l={__proto__:i[g]},u=i[_],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 R={};function I(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||n).call(r,s)}}R[g]=I(g,j),R[o]=R.props=I(o,j),R[_]=R.init=I(_,A),R[b]=I(b,A),R[c]=R[d]=I(c,P),R[l]=R.statics=I(l,j),R[u]=R[f]=I(u,P),R[m]=R.conf=I(m,j),R[h]=R[y]=I(h,P),R[a]=I(a,j),R[p]=I(p,j),n=R[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={})[g]=(E=e)[g]||t,n=E.props,s[o]=O((r=E[o])||n)?j({},n,r):t,s[_]=A(E.init,E[_]),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}),R),R.create=function(){return this.apply(t,arguments)},(s={})[l]=R,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 g||(g=r(5530)),b||(b=r(6287)),e=b.normalize(e),g.readFileSync(e,t?null:"utf8")},_=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(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)}),_=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("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&&(_=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":N[e>>0]=t;break;case"i16":T[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 N[e>>0];case"i16":return T[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 R=!1;function I(e,t){e||ce("Assertion failed: "+t)}var M,N,C,T,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(C,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,C,t,r)}function J(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 W(e){var t=J(e)+1,r=ze(t);return U(e,N,r,t),r}function H(e){M=e,n.HEAP8=N=new Int8Array(e),n.HEAP16=T=new Int16Array(e),n.HEAP32=q=new Int32Array(e),n.HEAPU8=C=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}))&&(M=A.buffer),K=M.byteLength,H(M);var Z=new WebAssembly.Table({initial:17,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+=""),R=!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(_)return _(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 _e(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");I(0!=n.length,"need dylink section"),e=new Int8Array(n[0])}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,r(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(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 ge=0;function be(){return F||ge>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)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var s=ve(r);n.hasOwnProperty(s)||(n[s]=e[r])}}var we={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var je=5250880;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=qe["orig$"+e]),r||(r=qe[e]),r||(r=n[ve(e)]),!r&&e.startsWith("invoke_")&&(s=e.split("_")[1],r=function(){var e=Be();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(Ve(e),t!==t+0&&"longjmp"!==t)throw t;Ue(1,0)}}),r}function Pe(e,t){var r=_e(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 De(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++)N[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 qe?qe[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)}))):_(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:I(!1,"bad export type for `"+e+"`: "+typeof t)}}n.___heap_base=je;var $e,ke=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ce()}n._abort=Re,Re.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 Ie(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;r=$e()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Me(e){try{return A.grow(e-M.byteLength+65535>>>16),H(A.buffer),1}catch(e){}}function Ne(e){He(e)}function Ce(e){}Ie.sig="iii",Ne.sig="vi",Ce.sig="vi";var Te,qe={__heap_base:je,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:ke,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,r){C.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=C.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),Me(Math.min(2147483648,((t=Math.max(e,s))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ne,memory:A,setTempRet0:Ce,tree_sitter_log_callback:function(e,t){if(lt){const r=z(t);lt(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,n,s){var i=at(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);T[t>>1]=i,t+=2}T[t>>1]=0}(i,e,10240)):$(s,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,fe),"GOT.func":new Proxy(qe,fe)};function t(e,t){var r=e.exports;r=Oe(r,1024),n.asm=r;var s,i=_e(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(De=n._malloc=n.asm.malloc).apply(null,arguments)}),Le=(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(Le=n.___errno_location=n.asm.__errno_location).apply(null,arguments)}),Be=(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(Be=n.stackSave=n.asm.stackSave).apply(null,arguments)}),Ve=n.stackRestore=function(){return(Ve=n.stackRestore=n.asm.stackRestore).apply(null,arguments)},ze=n.stackAlloc=function(){return(ze=n.stackAlloc=n.asm.stackAlloc).apply(null,arguments)},Ue=n._setThrew=function(){return(Ue=n._setThrew=n.asm.setThrew).apply(null,arguments)};function Ge(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.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(n.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=n.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},n._orig$ts_parser_timeout_micros=function(){return(n._orig$ts_parser_timeout_micros=n.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},n._orig$ts_parser_set_timeout_micros=function(){return(n._orig$ts_parser_set_timeout_micros=n.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},n.allocate=function(e,t){var r;return r=1==t?ze(e.length):De(e.length),e.subarray||e.slice?C.set(e,r):C.set(new Uint8Array(e),r),r},se=function e(){Te||We(),Te||(se=e)};var Je=!1;function We(e){function t(){Te||(Te=!0,n.calledRun=!0,R||(te=!0,ye(Q),ye(Y),n.onRuntimeInitialized&&n.onRuntimeInitialized(),Ke&&function(e){var t=n._main;if(t){var r=(e=e||[]).length+1,s=ze(4*(r+1));q[s>>2]=W(h);for(var i=1;i<r;i++)q[(s>>2)+i]=W(e[i-1]);q[(s>>2)+r]=0;try{He(t(r,s),!0)}catch(e){if(e instanceof Ge)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||!Je&&(function(){if(P.length){if(!_)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()}(),Je=!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 He(e,t){t&&be()&&0===e||(be()||(n.onExit&&n.onExit(e),R=!0),d(e,new Ge(e)))}if(n.run=We,n.preInit)for("function"==typeof n.preInit&&(n.preInit=[n.preInit]);n.preInit.length>0;)n.preInit.pop()();var Ke=!0;n.noInitialRun&&(Ke=!1),We();const Ze=n,Xe={},Qe=4,Ye=5*Qe,et=2*Qe,tt=2*Qe+2*et,rt={row:0,column:0},nt=/[\w-.]*/g,st=/^_?tree_sitter_\w+/;var it,ot,ct,at,lt;class ut{static init(){ct=Ze._ts_init(),it=k(ct,"i32"),ot=k(ct+Qe,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=k(ct,"i32"),this[1]=k(ct+Qe,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)at=(t,r,n)=>e.slice(t,n);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");at=e}this.logCallback?(lt=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(lt=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let n=0,s=0;if(r&&r.includedRanges){n=r.includedRanges.length;let e=s=Ze._calloc(n,tt);for(let t=0;t<n;t++)St(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,s,n);if(!i)throw at=null,lt=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,at);return at=null,lt=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._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 pt{constructor(e,t,r,n){gt(e),this[0]=t,this.language=r,this.textCallback=n}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=ct;xt(t,e.startPosition),xt(t+=et,e.oldEndPosition),xt(t+=et,e.newEndPosition),$(t+=et,e.startIndex,"i32"),$(t+=Qe,e.oldEndIndex,"i32"),$(t+=Qe,e.newEndIndex,"i32"),t+=Qe}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),Et(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=k(ct,"i32"),r=k(ct+Qe,"i32"),n=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)n[r]=Pt(e),e+=tt;Ze._free(r)}return n}}class mt{constructor(e,t){gt(e),this.tree=t}get typeId(){return vt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return vt(this),Ze._ts_node_end_point_wasm(this.tree[0]),Ot(ct)}get endIndex(){return vt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return vt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return vt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return vt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return vt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return vt(this),Ze._ts_node_child_wasm(this.tree[0],e),Et(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),Et(this.tree)}childForFieldId(e){return vt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),Et(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return vt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return vt(this),Ze._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){vt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=k(ct,"i32"),t=k(ct+Qe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=Et(this.tree,r),r+=Ye;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){vt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=k(ct,"i32"),t=k(ct+Qe,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=Et(this.tree,r),r+=Ye;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);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=Ze._malloc(Qe*n.length);for(let e=0,t=n.length;e<t;e++)$(i+e*Qe,n[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,n.length,t.row,t.column,r.row,r.column);const o=k(ct,"i32"),c=k(ct+Qe,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=Et(this.tree,e),e+=Ye}return Ze._free(c),Ze._free(i),a}get nextSibling(){return vt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),Et(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),Et(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),Et(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),Et(this.tree)}get parent(){return vt(this),Ze._ts_node_parent_wasm(this.tree[0]),Et(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=ct+Ye;return $(r,e,"i32"),$(r+Qe,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=ct+Ye;return $(r,e,"i32"),$(r+Qe,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=ct+Ye;return xt(r,e),xt(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=ct+Ye;return xt(r,e),xt(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}walk(){return vt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Xe,this.tree)}toString(){vt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=C[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,jt(this)}delete(){wt(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),wt(this,ct+Ye),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),jt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return wt(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return wt(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){wt(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return wt(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),Ot(ct)}get endPosition(){return wt(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),Ot(ct)}get startIndex(){return wt(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return wt(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return wt(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),Et(this.tree)}currentFieldId(){return wt(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){wt(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return jt(this),1===e}gotoNextSibling(){wt(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return jt(this),1===e}gotoParent(){wt(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return jt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=z(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?z(t):null}}get version(){return Ze._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=J(e),n=Ze._malloc(r+1);G(e,n,r+1);const s=Ze._ts_language_symbol_for_name(this[0],n,r,t);return Ze._free(n),s||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?z(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=J(e),r=Ze._malloc(t+1);G(e,r,t+1);const n=Ze._ts_query_new(this[0],r,t,ct,ct+Qe);if(!n){const t=k(ct+Qe,"i32"),n=z(r,k(ct,"i32")).length,s=e.substr(n,100).split("\n")[0];let i,o=s.match(nt)[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,Ze._free(r),i}const s=Ze._ts_query_string_count(n),i=Ze._ts_query_capture_count(n),o=Ze._ts_query_pattern_count(n),c=new Array(i),a=new Array(s);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(n,e,ct),r=k(ct,"i32");c[e]=z(t,r)}for(let e=0;e<s;e++){const t=Ze._ts_query_string_value_for_id(n,e,ct),r=k(ct,"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=Ze._ts_query_predicates_for_pattern(n,e,ct),r=k(ct,"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+=Qe,"i32");if(i+=Qe,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 Ze._free(r),new ft(Xe,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=>st.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 dt(Xe,n)}))}}class ft{constructor(e,t,r,n,s,i,o,c){gt(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(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=k(ct,"i32"),o=k(ct+Qe,"i32"),c=k(ct+2*Qe,"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+=Qe,"i32");u+=Qe;const s=new Array(n);if(u=_t(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,Ze._free(o),a}captures(e,t,r,n){t||(t=rt),r||(r=rt),n||(n={});let s=n.matchLimit;if(void 0===s)s=0;else if("number"!=typeof s)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,s);const i=k(ct,"i32"),o=k(ct+Qe,"i32"),c=k(ct+2*Qe,"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+=Qe,"i32"),n=k(u+=Qe,"i32");if(u+=Qe,l.length=r,u=_t(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 Ze._free(o),a}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function yt(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 _t(e,t,r,n){for(let s=0,i=n.length;s<i;s++){const i=k(r,"i32"),o=Et(t,r+=Qe);r+=Ye,n[s]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function bt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function vt(e){let t=ct;$(t,e.id,"i32"),$(t+=Qe,e.startIndex,"i32"),$(t+=Qe,e.startPosition.row,"i32"),$(t+=Qe,e.startPosition.column,"i32"),$(t+=Qe,e[0],"i32")}function Et(e,t=ct){const r=k(t,"i32");if(0===r)return null;const n=k(t+=Qe,"i32"),s=k(t+=Qe,"i32"),i=k(t+=Qe,"i32"),o=k(t+=Qe,"i32"),c=new mt(Xe,e);return c.id=r,c.startIndex=n,c.startPosition={row:s,column:i},c[0]=o,c}function wt(e,t=ct){$(t+0*Qe,e[0],"i32"),$(t+1*Qe,e[1],"i32"),$(t+2*Qe,e[2],"i32")}function jt(e){e[0]=k(ct+0*Qe,"i32"),e[1]=k(ct+1*Qe,"i32"),e[2]=k(ct+2*Qe,"i32")}function xt(e,t){$(e,t.row,"i32"),$(e+Qe,t.column,"i32")}function Ot(e){return{row:k(e,"i32"),column:k(e+Qe,"i32")}}function St(e,t){xt(e,t.startPosition),xt(e+=et,t.endPosition),$(e+=et,t.startIndex,"i32"),$(e+=Qe,t.endIndex,"i32"),e+=Qe}function Pt(e){const t={};return t.startPosition=Ot(e),e+=et,t.endPosition=Ot(e),e+=et,t.startIndex=k(e,"i32"),e+=Qe,t.endIndex=k(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ut.prototype))Object.defineProperty(i.prototype,e,{value:ut.prototype[e],enumerable:!1,writable:!1});i.Language=dt,n.onRuntimeInitialized=()=>{ut.init(),t()}})))}}return i}();e.exports=s},5530:()=>{},6287:()=>{}},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].call(i.exports,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:()=>yy,detectionRegExp:()=>fy,mediaTypes:()=>dy,namespace:()=>gy,parse:()=>_y});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>Kr,includesClasses:()=>Xr,includesSymbols:()=>Zr,isAnnotationElement:()=>Ur,isArrayElement:()=>Lr,isBooleanElement:()=>qr,isCommentElement:()=>Gr,isElement:()=>Mr,isLinkElement:()=>Vr,isMemberElement:()=>Br,isNullElement:()=>Tr,isNumberElement:()=>Cr,isObjectElement:()=>Dr,isParseResultElement:()=>Jr,isPrimitiveElement:()=>Hr,isRefElement:()=>zr,isSourceMapElement:()=>Wr,isStringElement:()=>Nr});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:()=>_a,isReferenceElement:()=>ga,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:()=>yd,isCallbackElement:()=>Jh,isComponentsElement:()=>Wh,isContactElement:()=>Hh,isExampleElement:()=>Kh,isExternalDocumentationElement:()=>Zh,isHeaderElement:()=>Xh,isInfoElement:()=>Qh,isJsonSchemaDialectElement:()=>Yh,isLicenseElement:()=>ed,isLinkElement:()=>td,isLinkElementExternal:()=>rd,isMediaTypeElement:()=>vd,isOpenApi3_1Element:()=>sd,isOpenapiElement:()=>nd,isOperationElement:()=>id,isParameterElement:()=>od,isPathItemElement:()=>cd,isPathItemElementExternal:()=>ad,isPathsElement:()=>ld,isReferenceElement:()=>ud,isReferenceElementExternal:()=>pd,isRequestBodyElement:()=>md,isResponseElement:()=>hd,isResponsesElement:()=>dd,isSchemaElement:()=>fd,isSecurityRequirementElement:()=>_d,isServerElement:()=>gd,isServerVariableElement:()=>bd});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 _=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 g(e){return function(t){return new _(e,t)}}const b=p(h(["all"],g,(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")}(),R=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||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)&&!R(n,t)&&(n[n.length]=t),r-=1;return n})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const M=u((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function N(e,t,r,n){var s=j(e);function i(e,t){return C(e,t,r.slice(),n.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),s)}function C(e,t,r,n){if(S(e,t))return!0;var s,i,o=M(e);if(o!==M(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&&N(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&N(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=I(e);if(a.length!==I(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)||!C(t[p],e[p],l,u))return!1;c-=1}return!0}const T=p((function(e,t){return C(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(T(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 J(e){return function(t){return new G(e,t)}}const W=p(h(["fantasy-land/filter","filter"],J,(function(e,t){return U(t)?z((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},I(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 H=p((function(e,t){return W((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,H((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):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,I(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=p(h(["fantasy-land/map","map"],(function(e){return function(t){return new Q(e,t)}}),(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}),{},I(t));default:return D(e,t)}}))),ee=Number.isInteger||function(e){return e<<0===e};function te(e){return"[object String]"===Object.prototype.toString.call(e)}const re=p((function(e,t){var r=e<0?t.length+e:e;return te(t)?t.charAt(r):t[r]}));const ne=p((function(e,t){if(null!=t)return ee(e)?re(e,t):t[e]}));const se=p((function(e,t){return Y(ne(e),t)}));function ie(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 oe=u((function(e){return!!m(e)||!!e&&("object"==typeof e&&(!te(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ce="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ae(e,t,r){return function(n,s,i){if(oe(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[ce])return r(n,s,i[ce]());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 le(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 ue=p((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));function pe(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 me(e,t,r,n){return e["@@transducer/result"](r[n](ue(e["@@transducer/step"],e),t))}const he=ae(le,me,pe);var de=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 fe=ie((function(e,t,r){return he("function"==typeof e?new de(e):e,t,r)}));const ye=u((function(e){return w(fe(X,0,se("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=u((function(e){return function(){return e}}));const ge=u((function(e){return w(fe(X,0,se("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 be(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function ve(e,t,r,n){return r[n](e,t)}const Ee=ae(z,ve,be);const we=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))}:Ee((function(e,r){return function(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}(e,Y(r,t))}),[],e)}));const je=p((function(e,t){return e.apply(this,t)}));function xe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Oe=p((function(e,t){return e&&t}));const Se=p((function(e,t){var r=w(e,t);return w(e,(function(){return z(we,Y(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Pe=u((function(e){return Se(e.length,e)}));const Ae=p((function(e,t){return xe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Pe(Oe)(e,t)}));const Fe=u((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const $e=Pe(u((function(e){return!e})));function ke(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Re(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 Ie=ie(Re("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Me=u(Re("tail",Ie(1,1/0)));function Ne(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,fe(ke,arguments[0],Me(arguments)))}const Ce=u((function(e){return w(e.length,e)}));const Te=p((function(e,t){return null==t||t!=t?e:t}));function qe(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 De=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!qe(e,!0,this)},e.prototype.has=function(e){return qe(e,!1,this)},e}();const Le=p((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new De,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 Be=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 Ve(e){return function(t){return new Be(e,t)}}const ze=p(h(["take"],Ve,(function(e,t){return Ie(0,e<0?1/0:e,t)})));var Ue=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 Ge(e){return function(t){return new Ue(e,t)}}const Je=p(h(["dropWhile"],Ge,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return Ie(r,1/0,t)})));const We=p((function(e,t){return e||t}));const He=p((function(e,t){return xe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Pe(We)(e,t)}));var Ke=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)?[]:te(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 Ze=Ke;const Xe=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 Qe=u((function(e){return null==e}));const Ye=p((function(e,t){if(0===e.length||Qe(t))return!1;for(var r=t,n=0;n<e.length;){if(Qe(r)||!O(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const et=p((function(e,t){return Ye([e],t)}));const tt=re(0);var rt=function(e,t){switch(arguments.length){case 0:return rt;case 1:return function t(r){return 0===arguments.length?t:S(e,r)};default:return S(e,t)}};const nt=rt;const st=ie((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 it=p(q);const ot=Ie(0,-1);"function"==typeof Object.assign&&Object.assign;const ct=p((function(e,t){return w(e+1,(function(){var r=arguments[e];if(null!=r&&xe(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 at=u((function(e){return null!=e&&T(e,Ze(e))}));const lt=ct(1,"join");const ut=re(-1);const pt=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=ee(r)?re(r,n):n[r],s+=1}return n}))}));const mt=p((function(e,t){return pt([e],t)[0]}));const ht=p((function(e,t){return z((function(r,n){return r[n]=e(t[n],n,t),r}),{},I(t))}));const dt=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 ft=ie((function(e,t,r){return e(mt(t,r))}));const yt=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 _t=ie((function(e,t,r){return Te(e,ne(t,r))}));const gt=ie((function(e,t,r){return e(ne(t,r))}));function bt(e){return"[object Number]"===Object.prototype.toString.call(e)}const vt=p((function(e,t){if(!bt(e)||!bt(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 Et=u(d);var wt=p((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const jt=wt;const xt=ct(1,"split");const Ot=p((function(e,t){return T(ze(e.length,t),e)}));const St=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 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 Pt="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;const At=_e(void 0);const Ft=T(At());const $t=$e(Ft);var kt=r(7952);const Rt=T(null);const It=$e(Rt);function Mt(e){return Mt="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},Mt(e)}const Nt=function(e){return"object"===Mt(e)};const Ct=w(1,Ae(It,Nt));const Tt=w(1,Ne(M,nt("GeneratorFunction")));const qt=w(1,Ne(M,nt("AsyncFunction")));const Dt=ge([Ne(M,nt("Function")),Tt,qt]);var Lt=Ne(M,nt("Object")),Bt=Ne(Z,T(Z(Object))),Vt=ft(Ae(Dt,Bt),["constructor"]);const zt=w(1,(function(e){if(!Ct(e)||!Lt(e))return!1;var t=Object.getPrototypeOf(e);return!!Rt(t)||Vt(t)}));class Ut extends kt.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 Gt=Ut;class Jt extends kt.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Wt=Jt;class Ht extends kt.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(Ft(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Kt=Ht;class Zt extends kt.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 kt.ON([e.start.row,e.start.column,e.start.char]),r=new kt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Xt=Zt;class Qt extends kt.lS{constructor(){super(),this.register("annotation",Gt),this.register("comment",Wt),this.register("parseResult",Kt),this.register("sourceMap",Xt)}}const Yt=new Qt,er=e=>{const t=new Qt;return zt(e)&&t.use(e),t},tr=Yt;const rr=w(1,Ne(M,nt("String"))),nr=r.p+"23aac571c96605dc25219087ad291441.wasm",sr=globalThis.fetch;Dt(sr)&&(globalThis.fetch=(...e)=>rr(e[0])&&e[0].endsWith("tree-sitter.wasm")?sr.apply(globalThis,[nr,Me(e)]):sr.apply(globalThis,e));var ir=r(9794);const or=r.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let cr=null,ar=null;const lr=async e=>{if(null===cr&&null===ar)ar=ir.init().then((()=>ir.Language.load(or))).then((e=>{const t=new ir;return t.setLanguage(e),t})).finally((()=>{ar=null})),cr=await ar;else if(null===cr&&null!==ar)cr=await ar;else if(null===cr)throw new Error("Error while initializing web-tree-sitter");return cr.parse(e)};var ur=r(229),pr=r(2185),mr=r(9982);function hr(e){return hr="function"==typeof pr&&"symbol"==typeof mr?function(e){return typeof e}:function(e){return e&&"function"==typeof pr&&e.constructor===pr&&e!==pr.prototype?"symbol":typeof e},hr(e)}var dr=r(8241);function fr(e){var t=function(e,t){if("object"!==hr(e)||null===e)return e;var r=e[dr];if(void 0!==r){var n=r.call(e,t||"default");if("object"!==hr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===hr(t)?t:String(t)}function yr(e,t,r){return(t=fr(t))in e?ur(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const _r=(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},gr={},br=e=>null==e?void 0:e.type,vr=e=>"string"==typeof br(e),Er=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=gr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=_r,nodeTypeGetter:a=br,nodePredicate:l=vr,detectCycles:u=!0}={})=>{const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,_=[];const g=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==_.length;if(e){if(r=0===b.length?void 0:g.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<_.length;t+=1){let r=_[t][0];const n=_[t][1];d&&(r-=e),d&&n===i?(E.splice(r,1),e+=1):E[r]=n}}y=m.index,f=m.keys,_=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&&g.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)){g.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,g,b),j===s)break;if(j===o){if(!e){g.pop();continue}}else if(void 0!==j&&(_.push([r,j]),!e)){if(!l(j)){g.pop();continue}E=j}}}void 0===j&&w&&_.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:_,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,_=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==_.length&&([,v]=_[_.length-1]),v};Er[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=gr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=_r,nodeTypeGetter:a=br,nodePredicate:l=vr,detectCycles:u=!0}={})=>{const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,_=[];const g=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==_.length;if(e){if(r=0===b.length?void 0:g.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<_.length;t+=1){let r=_[t][0];const n=_[t][1];d&&(r-=e),d&&n===i?(E.splice(r,1),e+=1):E[r]=n}}y=m.index,f=m.keys,_=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&&g.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)){g.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,g,b),j===s)break;if(j===o){if(!e){g.pop();continue}}else if(void 0!==j&&(_.push([r,j]),!e)){if(!l(j)){g.pop();continue}E=j}}}void 0===j&&w&&_.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:_,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,_=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==_.length&&([,v]=_[_.length-1]),v};var wr=r(5090),jr=r(2747),xr=r(5483);function Or(e,t){if(null==e)return{};var r,n,s=function(e,t){if(null==e)return{};var r,n,s={},i=xr(e);for(n=0;n<i.length;n++)r=i[n],jr(t).call(t,r)>=0||(s[r]=e[r]);return s}(e,t);if(wr){var i=wr(e);for(n=0;n<i.length;n++)r=i[n],jr(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(s[r]=e[r])}return s}var Sr=r(6591);const Pr=Xe(it),Ar=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Fr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),$r=(e,t)=>{var r;return(null==t||null===(r=t.primitive)||void 0===r?void 0:r.call(t))===e},kr=(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},Rr=(e,t)=>(null==t?void 0:t.element)===e,Ir=e=>e({hasMethod:Ar,hasBasicElementProps:Fr,primitiveEq:$r,isElementType:Rr,hasClass:kr}),Mr=Ir((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof kt.W_||e(r)&&t(void 0,r))),Nr=Ir((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof kt.RP||e(r)&&t("string",r))),Cr=Ir((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof kt.VL||e(r)&&t("number",r))),Tr=Ir((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof kt.zr||e(r)&&t("null",r))),qr=Ir((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof kt.hh||e(r)&&t("boolean",r))),Dr=Ir((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof kt.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Lr=Ir((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof kt.ON&&!(n instanceof kt.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Br=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kt.c6||e(n)&&t("member",n)&&r(void 0,n))),Vr=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kt.EA||e(n)&&t("link",n)&&r(void 0,n))),zr=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof kt.tK||e(n)&&t("ref",n)&&r(void 0,n))),Ur=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gt||e(n)&&t("annotation",n)&&r("array",n))),Gr=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wt||e(n)&&t("comment",n)&&r("string",n))),Jr=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Kt||e(n)&&t("parseResult",n)&&r("array",n))),Wr=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xt||e(n)&&t("sourceMap",n)&&r("array",n))),Hr=e=>Rr("object",e)||Rr("array",e)||Rr("boolean",e)||Rr("number",e)||Rr("string",e)||Rr("null",e)||Rr("member",e),Kr=e=>{var t,r;return Wr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},Zr=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Lr(r)&&b(Pr(r.toValue()),e)},Xr=(e,t)=>0===e.length||b(Pr(t.classes.toValue()),e),Qr=["keyMap"],Yr=["keyMap"];function en(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 tn(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){yr(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}const rn=e=>Dr(e)?"ObjectElement":Lr(e)?"ArrayElement":Br(e)?"MemberElement":Nr(e)?"StringElement":qr(e)?"BooleanElement":Cr(e)?"NumberElement":Tr(e)?"NullElement":Vr(e)?"LinkElement":zr(e)?"RefElement":void 0,nn=Ne(rn,rr),sn={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},on=(Sr({props:{result:[],predicate:c,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){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}}}),(e,t,r={})=>{let{keyMap:n=sn}=r,s=Or(r,Qr);return Er(e,t,tn({keyMap:n,nodeTypeGetter:rn,nodePredicate:nn},s))});on[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:n=sn}=r,s=Or(r,Yr);return Er[Symbol.for("nodejs.util.promisify.custom")](e,t,tn({keyMap:n,nodeTypeGetter:rn,nodePredicate:nn},s))};const cn=$e(Dt);const an=w(1,Dt(Array.isArray)?Array.isArray:Ne(M,nt("Array")));const ln=Ae(an,at);const un=w(3,(function(e,t,r){var n=mt(e,r),s=mt(ot(e),r);if(!cn(n)&&!ln(e)){var i=ue(n,s);return je(i,t)}}));function pn(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 mn=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pn(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:tr}),hn=(e,t,r={})=>{if(0===t.length)return e;const n=_t(mn,"toolboxCreator",r),s=_t({},"visitorOptions",r),i=_t(rn,"nodeTypeGetter",s),o=n(),c=t.map((e=>e(o))),a=((e,{visitFnGetter:t=_r,nodeTypeGetter:r=br}={})=>{const n=new Array(e.length);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const c=t(e[o],r(s),!1);if("function"==typeof c){const t=c.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===gr)n[o]=gr;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null==n[o]){const c=t(e[o],r(s),!0);if("function"==typeof c){const t=c.call(e[o],s,...i);if(t===gr)n[o]=gr;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}})(c.map(_t({},"visitor")),{nodeTypeGetter:i});c.forEach(un(["pre"],[]));const l=on(e,a,s);return c.forEach(un(["post"],[])),l};function dn(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 fn(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?dn(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):dn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const yn=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return hn(n,r,{toolboxCreator:mn,visitorOptions:{nodeTypeGetter:rn}})},_n=e=>(t,r={})=>yn(t,fn(fn({},r),{},{Type:e}));kt.Sb.refract=_n(kt.Sb),kt.ON.refract=_n(kt.ON),kt.RP.refract=_n(kt.RP),kt.hh.refract=_n(kt.hh),kt.zr.refract=_n(kt.zr),kt.VL.refract=_n(kt.VL),kt.EA.refract=_n(kt.EA),kt.tK.refract=_n(kt.tK),Gt.refract=_n(Gt),Wt.refract=_n(Wt),Kt.refract=_n(Kt),Xt.refract=_n(Xt);const gn=class{constructor(e){yr(this,"type",void 0),yr(this,"startPosition",void 0),yr(this,"endPosition",void 0),yr(this,"startIndex",void 0),yr(this,"endIndex",void 0),yr(this,"text",void 0),yr(this,"isNamed",void 0),yr(this,"isMissing",void 0),yr(this,"fieldName",void 0),yr(this,"hasError",!1),yr(this,"children",[]),this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(...e){this.children.push(...e)}},bn=Sr({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Xt,n=(e=>{const t=new kt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new kt.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)};this.enter=function(t){if(t instanceof gn&&!t.isNamed&&t.isMissing){const r=t.type||t.text,n=new Gt(`(Missing ${r})`);n.classes.push("warning"),e(t,n),this.annotations.push(n)}return null},this.document=function(t){const r=new Kt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(Hr);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 kt.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new kt.ON;return r._content=t.children,e(t,r),r},this.pair=function(t){const r=new kt.c6;return r.content.key=t.keyNode,r.content.value=t.valueNode,e(t,r),t.children.length>3&&t.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,t,[],[t])})),r},this.string=function(t){const r=new kt.RP(JSON.parse(t.text));return e(t,r),r},this.number=function(t){const r=new kt.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new kt.zr;return e(t,r),r},this.true=function(t){const r=new kt.hh(!0);return e(t,r),r},this.false=function(t){const r=new kt.hh(!1);return e(t,r),r},this.ERROR=function(t,r,n,s){const i=!t.hasError,o=t.text,c=new Gt(i?`(Unexpected ${o})`:`(Error ${o})`);if(c.classes.push("error"),e(t,c),0===s.length){const e=new Kt;return e.push(c),e}return this.annotations.push(c),null}}});let vn;vn=Symbol.iterator;class En{constructor(e){yr(this,"cursor",void 0),this.cursor=e}document(){return new gn(this.cursor)}object(){return new gn(this.cursor).setFieldName(this.cursor)}array(){return new gn(this.cursor).setFieldName(this.cursor)}pair(){return new gn(this.cursor)}string(){return new gn(this.cursor).setFieldName(this.cursor)}number(){return new gn(this.cursor).setFieldName(this.cursor)}null(){return new gn(this.cursor).setFieldName(this.cursor)}true(){return new gn(this.cursor).setFieldName(this.cursor)}false(){return new gn(this.cursor).setFieldName(this.cursor)}ERROR(){return new gn(this.cursor).setHasError(this.cursor)}*[vn](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new gn(this.cursor),this.cursor.gotoFirstChild()){const[t]=new En(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new En(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const wn=En;function jn(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 xn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jn(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jn(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"]},sn),On=e=>Jr(e)?"ParseResultElement":Mr(e)?rn(e):br(e),Sn=e=>Mr(e)||vr(e),Pn=(e,{sourceMap:t=!1}={})=>{const r=bn(),n=e.walk(),s=[...new wn(n)].at(0);return Er(s,r,{keyMap:xn,nodeTypeGetter:On,nodePredicate:Sn,state:{sourceMap:t}})},An=Sr({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:r=null}={}){this.row=e,this.column=t,this.char=r}}),Fn=Sr({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),$n=Sr({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:r=!1}={},{stamp:n={}}){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=Sr($n,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),Rn=Sr($n),In=Sr(Rn,{statics:{type:"document"},methods:{get child(){return tt(this.children)}}}),Mn=Sr($n,{statics:{type:"parseResult"},methods:{get rootNode(){return tt(this.children)}}}),Nn=(e,t)=>(null==t?void 0:t.type)===e,Cn=(Nn.bind(void 0,"literal"),Nn.bind(void 0,"position"),Nn.bind(void 0,"point"),Nn.bind(void 0,"parseResult"),Nn.bind(void 0,"document"),Nn.bind(void 0,"string")),Tn=Nn.bind(void 0,"false"),qn=Nn.bind(void 0,"true"),Dn=Nn.bind(void 0,"null"),Ln=Nn.bind(void 0,"number"),Bn=Nn.bind(void 0,"array"),Vn=Nn.bind(void 0,"object"),zn=Nn.bind(void 0,"stringContent"),Un=Nn.bind(void 0,"escapeSequence"),Gn=Nn.bind(void 0,"property"),Jn=Nn.bind(void 0,"key"),Wn=Sr(Rn,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Gn)}}}),Hn=Sr(Rn,{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=Sr(Hn,{statics:{type:"key"}}),Zn=Sr(Rn,{statics:{type:"property"},methods:{get key(){return this.children.find(Jn)},get value(){return this.children.find((e=>Tn(e)||qn(e)||Dn(e)||Ln(e)||Cn(e)||Bn(e)||Vn(e)))}}}),Xn=Sr(Rn,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Tn(e)||qn(e)||Dn(e)||Ln(e)||Cn(e)||Bn(e)||Vn))}}}),Qn=Sr(Rn,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),Yn=Sr(Qn,{statics:{type:"stringContent"}}),es=Sr(Qn,{statics:{type:"number"}}),ts=Sr(Qn,{statics:{type:"null"}}),rs=Sr(Qn,{statics:{type:"true"}}),ns=Sr(Qn,{statics:{type:"false"}}),ss=Sr($n,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),is={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},os=Sr({init(){const e=e=>{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(t instanceof gn&&!t.isNamed){const r=e(t),n=t.type||t.text,{isMissing:s}=t;return kn({value:n,position:r,isMissing:s})}},this.document={enter(t){const r=e(t);return In({children:t.children,position:r,isMissing:t.isMissing})},leave:e=>Mn({children:[e]})},this.object=function(t){const r=e(t);return Wn({children:t.children,position:r,isMissing:t.isMissing})},this.pair=function(t){const r=e(t),n=t.children.slice(1),{keyNode:s}=t,i=Kn({children:(null==s?void 0:s.children)||[],position:null!=s?e(s):null,isMissing:null!=s&&s.isMissing});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:JSON.parse(t.text)});return Hn({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?Mn({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){yr(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}({[Mn.type]:["children"],[In.type]:["children"],[Wn.type]:["children"],[Zn.type]:["children"],[Xn.type]:["children"],[ss.type]:["children"]},sn),ls=e=>Jr(e)?"ParseResultElement":Mr(e)?rn(e):br(e),us=e=>Mr(e)||vr(e),ps=Sr({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Xt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Kt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(Hr);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 kt.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new kt.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 kt.RP(t.value);return e(t,r),r},this.array=function(t){const r=new kt.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new kt.RP(t.value);return e(t,r),r},this.number=function(t){const r=new kt.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new kt.zr;return e(t,r),r},this.true=function(t){const r=new kt.hh(!0);return e(t,r),r},this.false=function(t){const r=new kt.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,n=new Gt(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 Gt(i);if(o.classes.push("error"),e(t,o),0===s.length){const e=new Kt;return e.push(o),e}return this.annotations.push(o),null}}}),ms=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),n=[...new wn(r)].at(0),s=os(),i=ps(),o=Er(n,s,{keyMap:is,state:{sourceMap:t}});return Er(o.rootNode,i,{keyMap:as,nodeTypeGetter:ls,nodePredicate:us,state:{sourceMap:t}})},hs=(er(),/(?<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 kt.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const fs=ds;class ys extends kt.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 _s=ys;class gs extends kt.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=gs;class vs extends kt.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 kt.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 kt.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 kt.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 kt.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new kt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new kt.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 kt.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 Rs extends kt.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 Is=Rs;class Ms extends kt.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 Ns=Ms;class Cs extends kt.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 Ts=Cs;class qs extends kt.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 kt.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 kt.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 kt.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 Js extends kt.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 kt.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 Ws=Js;class Hs extends kt.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 kt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new kt.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(Hs.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ks=Hs;class Zs extends kt.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 kt.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Ys=Qs;class ei extends kt.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 kt.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 kt.hh(!1)}set required(e){this.set("required",e)}}const ni=ri;class si extends kt.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 kt.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 kt.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 kt.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 kt.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 kt.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=Ce((function(e,t){return Ne(xt(""),Je(Pr(e)),lt(""))(t)})),_i=(e,t)=>{const r=Te(e,t);return ht((e=>{if(zt(e)&&et("$ref",e)&>(rr,"$ref",e)){const t=mt(["$ref"],e),n=yi("#/",t);return mt(n.split("/"),r)}return zt(e)?_i(e,r):e}),e)},gi=Sr({props:{element:null},methods:{copyMetaAndAttributes(e,t){Kr(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),bi=Sr(gi,{methods:{enter(e){return this.element=e.clone(),gr}}});const vi=_e(At());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(Mr(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){yr(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"]},sn);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){yr(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=Sr(gi,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return yt(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(mt(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return ft(Dt,["visitors",...e],this.specObj)?mt(["visitors",...e],this.specObj):mt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(Oi(Oi({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Ft(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(on(t,n,Oi({keyMap:ji,nodeTypeGetter:wi},r)),n.element)}}}),Pi=Sr(Si,{props:{specPath:vi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){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(Nr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new kt.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),gr}}}),Ai=Sr(Pi,bi,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new li}}),Fi=bi,$i=bi,ki=bi,Ri=bi,Ii=bi,Mi=bi,Ni=bi,Ci=bi,Ti=bi,qi=bi,Di=Sr({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Li=e=>Dr(e)&&e.hasKey("$ref"),Bi=Sr(Si,Di,bi,{methods:{ObjectElement(e){const t=Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),gr},ArrayElement(e){return this.element=new kt.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),gr}}}),Vi=bi,zi=bi,Ui=bi,Gi=bi,Ji=bi,Wi=Sr(bi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),gr}}});const Hi=$e(w(1,Ae(It,He(Nt,Dt))));const Ki=$e(at);const Zi=ye([rr,Hi,Ki]),Xi=Sr(Si,{props:{fieldPatternPredicate:c,specPath:vi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){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 kt.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),gr}}}),Qi=Sr(Xi,{props:{fieldPatternPredicate:Zi}}),Yi=Sr(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-properties")}}),eo=Sr(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-patternProperties")}}),to=Sr(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-dependencies")}}),ro=Sr(bi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),gr}}}),no=Sr(bi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),gr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),gr}}}),so=Sr(Si,Di,bi,{init(){this.element=new kt.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),gr}}}),io=Sr(Si,Di,bi,{init(){this.element=new kt.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),gr}}}),oo=Sr(Si,Di,bi,{init(){this.element=new kt.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),gr}}}),co=Sr(Qi,Di,bi,{props:{specPath:e=>Li(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-definitions")}}),ao=bi,lo=bi,uo=bi,po=bi,mo=bi,ho=Sr(Si,Di,bi,{init(){this.element=new kt.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),gr}}}),fo=bi,yo=Sr(Pi,bi,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new pi},methods:{ObjectElement(e){const t=Pi.compose.methods.ObjectElement.call(this,e);return Nr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),_o=Sr(bi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}});const go=$e(Qe);const bo=Ae(an,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=Ne(jt(Fe((function(e,t){return e.length>t.length}))),tt,ne("length")),jo=Ce((function(e,t,r){var n=r.apply(void 0,vo(e));return go(n)?Et(n):t}));const xo=st(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 fe(jo(r),void 0,e)}))}),At),Oo=Sr(Si,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>st(e,_e(t),At))),r=xo(t)(e);return this.element=this.toRefractedElement(r,e),gr}}}),So=Sr(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:Ri,exclusiveMaximum:Ii,minimum:Mi,exclusiveMinimum:Ni,maxLength:Ci,minLength:Ti,pattern:qi,additionalItems:So,items:Bi,maxItems:Vi,minItems:zi,uniqueItems:Ui,maxProperties:Gi,minProperties:Ji,required:Wi,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:_o}},Media:{$visitor:Sr(Pi,bi,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new hi}}),fixedFields:{binaryEncoding:bi,type:bi}},LinkDescription:{$visitor:Sr(Pi,bi,{props:{specPath:_e(["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=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof li||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Fo=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof pi||e(n)&&t("JSONReference",n)&&r("object",n))),$o=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hi||e(n)&&t("media",n)&&r("object",n))),ko=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fi||e(n)&&t("linkDescription",n)&&r("object",n))),Ro={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 Io(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 Mo(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Io(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Io(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const No=()=>{const e=er(Ro);return{predicates:Mo(Mo({},t),{},{isStringElement:Nr}),namespace:e}};function Co(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 To=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Po}={})=>{const s=(0,kt.Qc)(e),i=_i(n),o=un(t,[],i);return on(s,o,{state:{specObj:i}}),hn(o.element,r,{toolboxCreator:No,visitorOptions:{keyMap:ji,nodeTypeGetter:wi}})},qo=e=>(t,r={})=>To(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Co(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Co(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));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 kt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Bo=Lo;class Vo extends kt.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 kt.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 Jo extends kt.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 Wo=Jo;class Ho extends kt.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=Ho;class Zo extends kt.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=Sr({props:{element:null},methods:{copyMetaAndAttributes(e,t){Kr(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(Mr(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){yr(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"]},sn);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){yr(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=Sr(Qo,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return yt(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(mt(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return ft(Dt,["visitors",...e],this.specObj)?mt(["visitors",...e],this.specObj):mt(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(nc(nc({},r),t))},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Ft(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?t.clone():(on(t,n,nc({keyMap:tc,nodeTypeGetter:ec},r)),n.element)}}}),ic=e=>Dr(e)&&e.hasKey("openapi")&&e.hasKey("info"),oc=e=>Dr(e)&&e.hasKey("name")&&e.hasKey("in"),cc=e=>Dr(e)&&e.hasKey("$ref"),ac=e=>Dr(e)&&e.hasKey("content"),lc=e=>Dr(e)&&e.hasKey("description"),uc=Dr,pc=Dr,mc=e=>Nr(e.key)&&Ot("x-",e.key.toValue()),hc=Sr(sc,{props:{specPath:vi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:mc},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){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(Nr(n)&&r.includes(n.toValue())&&!this.ignoredFields.includes(n.toValue())){const r=this.toRefractedElement([...t,"fixedFields",n.toValue()],e),i=new kt.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),gr}}}),dc=Sr(Qo,{methods:{enter(e){return this.element=e.clone(),gr}}}),fc=Sr(hc,dc,{props:{specPath:_e(["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=Sr(sc,dc,{methods:{StringElement(e){const t=new zs(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,gr}}}),_c=Sr(sc,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),gr}}}),gc=Sr(hc,dc,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new ks}}),bc=dc,vc=dc,Ec=dc,wc=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),gr}}}),jc=Sr(hc,dc,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new bs}}),xc=dc,Oc=dc,Sc=dc,Pc=Sr(hc,dc,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Is}}),Ac=dc,Fc=dc,$c=Sr(hc,dc,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ns},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return(Nr(this.element.operationId)||Nr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),kc=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Rc=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Ic=Sr(sc,{props:{fieldPatternPredicate:c,specPath:vi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:mc},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){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 kt.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),gr}}}),Mc=Sr(Ic,{props:{fieldPatternPredicate:Zi}});class Nc extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Nc.primaryClass)}}yr(Nc,"primaryClass","link-parameters");const Cc=Nc,Tc=Sr(Mc,dc,{props:{specPath:_e(["value"])},init(){this.element=new Cc}}),qc=dc,Dc=dc,Lc=Sr(hc,dc,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Go}}),Bc=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),gr}}}),Vc=dc;class zc extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(zc.primaryClass)}}yr(zc,"primaryClass","servers");const Uc=zc,Gc=Sr(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),gr}}}),Jc=Sr(hc,dc,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Wo}}),Wc=dc,Hc=dc,Kc=dc;class Zc extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Zc.primaryClass)}}yr(Zc,"primaryClass","server-variables");const Xc=Zc,Qc=Sr(Mc,dc,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new Xc}}),Yc=Sr(hc,dc,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ts}}),ea=Sr(sc,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>st(e,_e(t),At))),r=xo(t)(e);return this.element=this.toRefractedElement(r,e),gr}}}),ta=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fs||e(n)&&t("callback",n)&&r("object",n))),ra=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _s||e(n)&&t("components",n)&&r("object",n))),na=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bs||e(n)&&t("contact",n)&&r("object",n))),sa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Os||e(n)&&t("example",n)&&r("object",n))),ia=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ps||e(n)&&t("externalDocumentation",n)&&r("object",n))),oa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fs||e(n)&&t("header",n)&&r("object",n))),ca=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ks||e(n)&&t("info",n)&&r("object",n))),aa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Is||e(n)&&t("license",n)&&r("object",n))),la=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ns||e(n)&&t("link",n)&&r("object",n))),ua=e=>{if(!la(e))return!1;if(!Nr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},pa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zs||e(n)&&t("openapi",n)&&r("string",n))),ma=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Gs||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),ha=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ws||e(n)&&t("operation",n)&&r("object",n))),da=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ks||e(n)&&t("parameter",n)&&r("object",n))),fa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xs||e(n)&&t("pathItem",n)&&r("object",n))),ya=e=>{if(!fa(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},_a=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ys||e(n)&&t("paths",n)&&r("object",n))),ga=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ti||e(n)&&t("reference",n)&&r("object",n))),ba=e=>{if(!ga(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},va=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ni||e(n)&&t("requestBody",n)&&r("object",n))),Ea=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ii||e(n)&&t("response",n)&&r("object",n))),wa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ci||e(n)&&t("responses",n)&&r("object",n))),ja=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Do||e(n)&&t("schema",n)&&r("object",n))),xa=e=>qr(e)&&e.classes.includes("boolean-json-schema"),Oa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bo||e(n)&&t("securityRequirement",n)&&r("object",n))),Sa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Go||e(n)&&t("server",n)&&r("object",n))),Pa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Wo||e(n)&&t("serverVariable",n)&&r("object",n))),Aa=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ts||e(n)&&t("mediaType",n)&&r("object",n))),Fa=Sr(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 ga(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),$a=dc,ka=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new kt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Ra extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ra.primaryClass),this.classes.push("examples")}}yr(Ra,"primaryClass","media-type-examples");const Ia=Ra,Ma=Sr(ka,{init(){this.element=new Ia}});class Na extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Na.primaryClass)}}yr(Na,"primaryClass","media-type-encoding");const Ca=Na,Ta=Sr(Mc,dc,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Ca}}),qa=Sr(Mc,dc,{props:{specPath:_e(["value"])},init(){this.element=new Bo}});class Da extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Da.primaryClass)}}yr(Da,"primaryClass","security");const La=Da,Ba=Sr(sc,dc,{init(){this.element=new La},methods:{ArrayElement(e){return e.forEach((e=>{if(Dr(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(e.clone())})),this.copyMetaAndAttributes(e,this.element),gr}}}),Va=Sr(hc,dc,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new _s}}),za=Sr(hc,dc,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ko}}),Ua=dc,Ga=dc,Ja=Sr(hc,dc,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new ti},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Nr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Wa=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Ha=Sr(hc,dc,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ks},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Dr(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=Sr(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 ga(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),il=Sr(hc,dc,{props:{specPath:_e(["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=Sr(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 ga(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),dl=dc;class fl extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(fl.primaryClass),this.classes.push("examples")}}yr(fl,"primaryClass","header-examples");const yl=fl,_l=Sr(ka,{init(){this.element=new yl}}),gl=Sr(Mc,dc,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new kt.Sb,this.element.classes.push("content")}});class bl extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(bl.primaryClass),this.classes.push("content")}}yr(bl,"primaryClass","header-content");const vl=bl,El=Sr(gl,{init(){this.element=new vl}}),wl=Sr(hc,dc,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Do}}),{allOf:jl}=Po.visitors.document.objects.JSONSchema.fixedFields,xl=Sr(jl,{methods:{ArrayElement(e){const t=jl.compose.methods.ArrayElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:Ol}=Po.visitors.document.objects.JSONSchema.fixedFields,Sl=Sr(Ol,{methods:{ArrayElement(e){const t=Ol.compose.methods.ArrayElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Pl}=Po.visitors.document.objects.JSONSchema.fixedFields,Al=Sr(Pl,{methods:{ArrayElement(e){const t=Pl.compose.methods.ArrayElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Fl}=Po.visitors.document.objects.JSONSchema.fixedFields,$l=Sr(Fl,{methods:{ObjectElement(e){const t=Fl.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:kl}=Po.visitors.document.objects.JSONSchema.fixedFields,Rl=Sr(kl,{methods:{ObjectElement(e){const t=kl.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Il}=Po.visitors.document.objects.JSONSchema.fixedFields,Ml=Sr(Il,{methods:{ObjectElement(e){const t=Il.compose.methods.ObjectElement.call(this,e);return ga(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),gr}}}),{properties:Nl}=Po.visitors.document.objects.JSONSchema.fixedFields,Cl=Sr(Nl,{methods:{ObjectElement(e){const t=Nl.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:Tl}=Po.visitors.document.objects.JSONSchema.fixedFields,ql=Sr(Tl,{methods:{ObjectElement(e){const t=Tl.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Dl}=Po.visitors.document.objects.JSONSchema.fixedFields,Ll=Sr(Dl,{methods:{ArrayElement(e){return this.element=e.clone(),gr}}}),Bl=dc,Vl=dc,zl=dc,Ul=dc,{JSONSchemaOrJSONReferenceVisitor:Gl}=Po.visitors,Jl=Sr(Gl,{methods:{ObjectElement(e){const t=Gl.compose.methods.enter.call(this,e);return ga(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Wl=Object.fromEntries(Object.entries(Po.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Po.visitors.JSONSchemaOrJSONReferenceVisitor?[e,Jl]:[e,t]))),Hl=Sr(hc,dc,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Es}}),Kl=dc;class Zl extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Zl.primaryClass)}}yr(Zl,"primaryClass","discriminator-mapping");const Xl=Zl,Ql=Sr(Mc,dc,{props:{specPath:_e(["value"])},init(){this.element=new Xl}}),Yl=Sr(hc,dc,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xo}}),eu=dc,tu=dc,ru=dc,nu=dc,su=dc,iu=dc;class ou extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ou.primaryClass),this.classes.push("examples")}}yr(ou,"primaryClass","parameter-examples");const cu=ou,au=Sr(ka,{init(){this.element=new cu}});class lu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(lu.primaryClass),this.classes.push("content")}}yr(lu,"primaryClass","parameter-content");const uu=lu,pu=Sr(gl,{init(){this.element=new uu}});class mu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(mu.primaryClass)}}yr(mu,"primaryClass","components-schemas");const hu=mu,du=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new hu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class fu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(fu.primaryClass)}}yr(fu,"primaryClass","components-responses");const yu=fu,_u=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new yu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Ea).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class gu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(gu.primaryClass),this.classes.push("parameters")}}yr(gu,"primaryClass","components-parameters");const bu=gu,vu=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new bu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class Eu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Eu.primaryClass),this.classes.push("examples")}}yr(Eu,"primaryClass","components-examples");const wu=Eu,ju=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new wu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class xu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(xu.primaryClass)}}yr(xu,"primaryClass","components-request-bodies");const Ou=xu,Su=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new Ou},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Pu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Pu.primaryClass)}}yr(Pu,"primaryClass","components-headers");const Au=Pu,Fu=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Au},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(oa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class $u extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push($u.primaryClass)}}yr($u,"primaryClass","components-security-schemes");const ku=$u,Ru=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new ku},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class Iu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Iu.primaryClass)}}yr(Iu,"primaryClass","components-links");const Mu=Iu,Nu=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Mu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Cu extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Cu.primaryClass)}}yr(Cu,"primaryClass","components-callbacks");const Tu=Cu,qu=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Tu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Du=Sr(hc,dc,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Os},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Nr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Lu=dc,Bu=dc,Vu=dc,zu=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Uu=Sr(hc,dc,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ps}}),Gu=dc,Ju=dc,Wu=Sr(hc,dc,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new js},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Dr(this.element.headers)&&this.element.headers.filter(oa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Hu=dc;class Ku extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ku.primaryClass)}}yr(Ku,"primaryClass","encoding-headers");const Zu=Ku,Xu=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Zu},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).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}}}),Qu=dc,Yu=dc,ep=dc,tp=Sr(Ic,dc,{props:{fieldPatternPredicate:St(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ys},methods:{ObjectElement(e){const t=Ic.compose.methods.ObjectElement.call(this,e);return this.element.filter(fa).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),rp=Sr(hc,dc,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new ni},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Dr(this.element.contentProp)&&this.element.contentProp.filter(Aa).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),np=dc;class sp extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(sp.primaryClass),this.classes.push("content")}}yr(sp,"primaryClass","request-body-content");const ip=sp,op=Sr(gl,{init(){this.element=new ip}}),cp=dc,ap=Sr(Ic,dc,{props:{fieldPatternPredicate:St(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new fs},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(fa).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),lp=Sr(hc,dc,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new ii},methods:{ObjectElement(e){const t=hc.compose.methods.ObjectElement.call(this,e);return Dr(this.element.contentProp)&&this.element.contentProp.filter(Aa).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),Dr(this.element.headers)&&this.element.headers.filter(oa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),up=dc;class pp extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(pp.primaryClass)}}yr(pp,"primaryClass","response-headers");const mp=pp,hp=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new mp},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).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 dp extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(dp.primaryClass),this.classes.push("content")}}yr(dp,"primaryClass","response-content");const fp=dp,yp=Sr(gl,{init(){this.element=new fp}});class _p extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(_p.primaryClass)}}yr(_p,"primaryClass","response-links");const gp=_p,bp=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new gp},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),vp=Sr(hc,Ic,{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,...Le(e.keys(),t)],hc.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Ic.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return gr}}}),Ep=Sr(vp,dc,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>cc(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:St(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${vt(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ci},methods:{ObjectElement(e){const t=vp.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).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}}}),wp=Sr(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 ga(this.element)?this.element.setMetaProperty("referenced-element","response"):Ea(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),jp=Sr(hc,dc,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new Ws}});class xp extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(xp.primaryClass)}}yr(xp,"primaryClass","operation-tags");const Op=xp,Sp=Sr(dc,{init(){this.element=new Op},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),gr}}}),Pp=dc,Ap=dc,Fp=dc;class $p extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push($p.primaryClass),this.classes.push("parameters")}}yr($p,"primaryClass","operation-parameters");const kp=$p,Rp=Sr(sc,dc,{init(){this.element=new kt.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);ga(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}}),Ip=Sr(Rp,{init(){this.element=new kp}}),Mp=Sr(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 ga(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Np extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass)}}yr(Np,"primaryClass","operation-callbacks");const Cp=Np,Tp=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Cp},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),qp=dc;class Dp extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Dp.primaryClass),this.classes.push("security")}}yr(Dp,"primaryClass","operation-security");const Lp=Dp,Bp=Sr(sc,dc,{init(){this.element=new Lp},methods:{ArrayElement(e){return e.forEach((e=>{const t=Dr(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),gr}}});class Vp extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Vp.primaryClass),this.classes.push("servers")}}yr(Vp,"primaryClass","operation-servers");const zp=Vp,Up=Sr(Gc,{init(){this.element=new zp}}),Gp=Sr(hc,dc,{props:{specPath:_e(["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)})),Nr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Jp=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),Wp=dc,Hp=dc;class Kp extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Kp.primaryClass),this.classes.push("servers")}}yr(Kp,"primaryClass","path-item-servers");const Zp=Kp,Xp=Sr(Gc,{init(){this.element=new Zp}});class Qp extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Qp.primaryClass),this.classes.push("parameters")}}yr(Qp,"primaryClass","path-item-parameters");const Yp=Qp,em=Sr(Rp,{init(){this.element=new Yp}}),tm=Sr(hc,dc,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new zo}}),rm=dc,nm=dc,sm=dc,im=dc,om=dc,cm=dc,am=dc,lm=Sr(hc,dc,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bs}}),um=Sr(hc,dc,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ds}}),pm=dc,mm=dc,hm=dc;class dm extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(dm.primaryClass)}}yr(dm,"primaryClass","oauth-flow-scopes");const fm=dm,ym=Sr(Mc,dc,{props:{specPath:_e(["value"])},init(){this.element=new fm}});class _m extends kt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(_m.primaryClass)}}yr(_m,"primaryClass","tags");const gm=_m,bm=Sr(sc,dc,{init(){this.element=new gm},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),gr}}});function vm(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 Em(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?vm(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):vm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const wm={$visitor:Ja,fixedFields:{$ref:Wa}},jm={$visitor:wl,fixedFields:Em(Em({},Wl),{},{allOf:xl,anyOf:Sl,oneOf:Al,definitions:$l,items:Ml,dependencies:Rl,properties:Cl,patternProperties:ql,type:Ll,nullable:Bl,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Vl,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:zl,deprecated:Ul})},xm={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:bm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:gc,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:Jc,fixedFields:{enum:Wc,default:Hc,description:Kc}},Components:{$visitor:Va,fixedFields:{schemas:du,responses:_u,parameters:vu,examples:ju,requestBodies:Su,headers:Fu,securitySchemes:Ru,links:Nu,callbacks:qu}},Paths:{$visitor:tp},PathItem:{$visitor:Gp,fixedFields:{$ref:Jp,summary:Wp,description:Hp,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:Xp,parameters:em}},Operation:{$visitor:jp,fixedFields:{tags:Sp,summary:Pp,description:Ap,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Fp,parameters:Ip,requestBody:Mp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Tp,deprecated:qp,security:Bp,servers:Up}},ExternalDocumentation:{$visitor:Uu,fixedFields:{description:Gu,url:Ju}},Parameter:{$visitor:Ha,fixedFields:{name:Ka,in:Za,description:Xa,required:Qa,deprecated:Ya,allowEmptyValue:el,style:tl,explode:rl,allowReserved:nl,schema:sl,example:iu,examples:au,content:pu}},RequestBody:{$visitor:rp,fixedFields:{description:np,content:op,required:cp}},MediaType:{$visitor:Yc,fixedFields:{schema:Fa,example:$a,examples:Ma,encoding:Ta}},Encoding:{$visitor:Wu,fixedFields:{contentType:Hu,headers:Xu,style:Qu,explode:Yu,allowReserved:ep}},Responses:{$visitor:Ep,fixedFields:{default:wp}},Response:{$visitor:lp,fixedFields:{description:up,headers:hp,content:yp,links:bp}},Callback:{$visitor:ap},Example:{$visitor:Du,fixedFields:{summary:Lu,description:Bu,value:Vu,externalValue:zu}},Link:{$visitor:$c,fixedFields:{operationRef:kc,operationId:Rc,parameters:Tc,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:_l,content:El}},Tag:{$visitor:za,fixedFields:{name:Ua,description:Ga,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:wm,Reference:wm,JSONSchema:jm,Schema:jm,LinkDescription:Po.visitors.document.objects.LinkDescription,Media:Po.visitors.document.objects.Media,Discriminator:{$visitor:Hl,fixedFields:{propertyName:Kl,mapping:Ql}},XML:{$visitor:Yl,fixedFields:{name:eu,namespace:tu,prefix:ru,attribute:nu,wrapped:su}},SecurityScheme:{$visitor:tm,fixedFields:{type:rm,description:nm,name:sm,in:im,scheme:om,bearerFormat:cm,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:am}},OAuthFlows:{$visitor:lm,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:um,fixedFields:{authorizationUrl:pm,tokenUrl:mm,refreshUrl:hm,scopes:ym}},SecurityRequirement:{$visitor:qa}},extension:{$visitor:_c}}}},Om={namespace:e=>{const{base:t}=e;return t.register("callback",fs),t.register("components",_s),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",Is),t.register("link",Ns),t.register("mediaType",Ts),t.register("oAuthFlow",Ds),t.register("oAuthFlows",Bs),t.register("openapi",zs),t.register("openApi3_0",Gs),t.register("operation",Ws),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",Wo),t.register("tag",Ko),t.register("xml",Xo),t}};function Sm(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 Pm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Sm(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Sm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Am=()=>{const e=er(Om);return{predicates:Pm(Pm(Pm({},s),i),{},{isStringElement:Nr}),namespace:e}};function Fm(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=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,kt.Qc)(e),s=_i(xm),i=un(t,[],s);return on(n,i,{state:{specObj:s}}),hn(i.element,r,{toolboxCreator:Am,visitorOptions:{keyMap:tc,nodeTypeGetter:ec}})},km=e=>(t,r={})=>$m(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fm(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));fs.refract=km(["visitors","document","objects","Callback","$visitor"]),_s.refract=km(["visitors","document","objects","Components","$visitor"]),bs.refract=km(["visitors","document","objects","Contact","$visitor"]),Os.refract=km(["visitors","document","objects","Example","$visitor"]),Es.refract=km(["visitors","document","objects","Discriminator","$visitor"]),js.refract=km(["visitors","document","objects","Encoding","$visitor"]),Ps.refract=km(["visitors","document","objects","ExternalDocumentation","$visitor"]),Fs.refract=km(["visitors","document","objects","Header","$visitor"]),ks.refract=km(["visitors","document","objects","Info","$visitor"]),Is.refract=km(["visitors","document","objects","License","$visitor"]),Ns.refract=km(["visitors","document","objects","Link","$visitor"]),Ts.refract=km(["visitors","document","objects","MediaType","$visitor"]),Ds.refract=km(["visitors","document","objects","OAuthFlow","$visitor"]),Bs.refract=km(["visitors","document","objects","OAuthFlows","$visitor"]),zs.refract=km(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Gs.refract=km(["visitors","document","objects","OpenApi","$visitor"]),Ws.refract=km(["visitors","document","objects","Operation","$visitor"]),Ks.refract=km(["visitors","document","objects","Parameter","$visitor"]),Xs.refract=km(["visitors","document","objects","PathItem","$visitor"]),Ys.refract=km(["visitors","document","objects","Paths","$visitor"]),ti.refract=km(["visitors","document","objects","Reference","$visitor"]),ni.refract=km(["visitors","document","objects","RequestBody","$visitor"]),ii.refract=km(["visitors","document","objects","Response","$visitor"]),ci.refract=km(["visitors","document","objects","Responses","$visitor"]),Do.refract=km(["visitors","document","objects","Schema","$visitor"]),Bo.refract=km(["visitors","document","objects","SecurityRequirement","$visitor"]),zo.refract=km(["visitors","document","objects","SecurityScheme","$visitor"]),Go.refract=km(["visitors","document","objects","Server","$visitor"]),Wo.refract=km(["visitors","document","objects","ServerVariable","$visitor"]),Ko.refract=km(["visitors","document","objects","Tag","$visitor"]),Xo.refract=km(["visitors","document","objects","XML","$visitor"]);const Rm=class extends fs{};const Im=class extends _s{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Mm=class extends bs{};const Nm=class extends Es{};const Cm=class extends js{};const Tm=class extends Os{};const qm=class extends Ps{};const Dm=class extends Fs{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Lm=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 Bm extends kt.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}yr(Bm,"default",new Bm("https://spec.openapis.org/oas/3.1/dialect/base"));const Vm=Bm;const zm=class extends Is{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Um=class extends Ns{};const Gm=class extends Ts{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Jm=class extends Ds{};const Wm=class extends Bs{};const Hm=class extends zs{};class Km extends kt.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 Zm=Km;const Xm=class extends Ws{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Qm=class extends Ks{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ym=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 eh=class extends Ys{};class th extends ti{}Object.defineProperty(th.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(th.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const rh=th;const nh=class extends ni{};const sh=class extends ii{};const ih=class extends ci{};class oh extends kt.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 ch=oh;const ah=class extends Bo{};const lh=class extends zo{};const uh=class extends Go{};const ph=class extends Wo{};const mh=class extends Ko{};const hh=class extends Xo{},dh=Sr(hc,dc,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zm,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,hc.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:fh}}}}}=xm,yh=Sr(fh,{init(){this.element=new Lm}}),_h=dc,{visitors:{document:{objects:{Contact:{$visitor:gh}}}}}=xm,bh=Sr(gh,{init(){this.element=new Mm}}),{visitors:{document:{objects:{License:{$visitor:vh}}}}}=xm,Eh=Sr(vh,{init(){this.element=new zm}}),wh=dc,{visitors:{document:{objects:{Link:{$visitor:jh}}}}}=xm,xh=Sr(jh,{init(){this.element=new Um}}),Oh=Sr(sc,dc,{methods:{StringElement(e){const t=new Vm(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,gr}}}),{visitors:{document:{objects:{Server:{$visitor:Sh}}}}}=xm,Ph=Sr(Sh,{init(){this.element=new uh}}),{visitors:{document:{objects:{ServerVariable:{$visitor:Ah}}}}}=xm,Fh=Sr(Ah,{init(){this.element=new ph}}),{visitors:{document:{objects:{MediaType:{$visitor:$h}}}}}=xm,kh=Sr($h,{init(){this.element=new Gm}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Rh}}}}}=xm,Ih=Sr(Rh,{init(){this.element=new ah}}),{visitors:{document:{objects:{Components:{$visitor:Mh}}}}}=xm,Nh=Sr(Mh,{init(){this.element=new Im}}),{visitors:{document:{objects:{Tag:{$visitor:Ch}}}}}=xm,Th=Sr(Ch,{init(){this.element=new mh}}),{visitors:{document:{objects:{Reference:{$visitor:qh}}}}}=xm,Dh=Sr(qh,{init(){this.element=new rh}}),Lh=dc,Bh=dc,{visitors:{document:{objects:{Parameter:{$visitor:Vh}}}}}=xm,zh=Sr(Vh,{init(){this.element=new Qm}}),{visitors:{document:{objects:{Header:{$visitor:Uh}}}}}=xm,Gh=Sr(Uh,{init(){this.element=new Dm}}),Jh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rm||e(n)&&t("callback",n)&&r("object",n))),Wh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Im||e(n)&&t("components",n)&&r("object",n))),Hh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mm||e(n)&&t("contact",n)&&r("object",n))),Kh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tm||e(n)&&t("example",n)&&r("object",n))),Zh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qm||e(n)&&t("externalDocumentation",n)&&r("object",n))),Xh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dm||e(n)&&t("header",n)&&r("object",n))),Qh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lm||e(n)&&t("info",n)&&r("object",n))),Yh=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vm||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),ed=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zm||e(n)&&t("license",n)&&r("object",n))),td=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Um||e(n)&&t("link",n)&&r("object",n))),rd=e=>{if(!td(e))return!1;if(!Nr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},nd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hm||e(n)&&t("openapi",n)&&r("string",n))),sd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Zm||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),id=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xm||e(n)&&t("operation",n)&&r("object",n))),od=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Qm||e(n)&&t("parameter",n)&&r("object",n))),cd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ym||e(n)&&t("pathItem",n)&&r("object",n))),ad=e=>{if(!cd(e))return!1;if(!Nr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ld=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof eh||e(n)&&t("paths",n)&&r("object",n))),ud=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof rh||e(n)&&t("reference",n)&&r("object",n))),pd=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("#")},md=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof nh||e(n)&&t("requestBody",n)&&r("object",n))),hd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof sh||e(n)&&t("response",n)&&r("object",n))),dd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ih||e(n)&&t("responses",n)&&r("object",n))),fd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ch||e(n)&&t("schema",n)&&r("object",n))),yd=e=>qr(e)&&e.classes.includes("boolean-json-schema"),_d=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ah||e(n)&&t("securityRequirement",n)&&r("object",n))),gd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof uh||e(n)&&t("server",n)&&r("object",n))),bd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ph||e(n)&&t("serverVariable",n)&&r("object",n))),vd=Ir((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gm||e(n)&&t("mediaType",n)&&r("object",n))),Ed=Sr({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),wd=Sr(hc,Ed,dc,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&Yh(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Nr(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():Vm.default.toValue(),e},t=t=>{if(Rt(this.parent)&&!Nr(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(fd(this.parent)&&!Nr(t.get("$schema"))){var r,n;const e=Te(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 kt.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 ch,t(e),r(e),this.parent=this.element;const n=hc.compose.methods.ObjectElement.call(this,e);return Nr(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"),gr}}}),jd=dc,xd=Sr(dc,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),gr}}}),Od=dc,Sd=dc,Pd=dc,Ad=dc,Fd=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),gr}}}),$d=Sr(Mc,Ed,dc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-$defs")}}),kd=dc,Rd=Sr(sc,Ed,dc,{init(){this.element=new kt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Dr(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),gr}}}),Id=Sr(sc,Ed,dc,{init(){this.element=new kt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Dr(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),gr}}}),Md=Sr(sc,Ed,dc,{init(){this.element=new kt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Dr(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),gr}}}),Nd=Sr(Mc,Ed,dc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),Cd=Sr(sc,Ed,dc,{init(){this.element=new kt.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(Dr(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),gr}}}),Td=Sr(Mc,Ed,dc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-properties")}}),qd=Sr(Mc,Ed,dc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new kt.Sb,this.element.classes.push("json-schema-patternProperties")}}),Dd=Sr(dc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),gr},ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-type"),gr}}}),Ld=Sr(dc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),gr}}}),Bd=dc,Vd=dc,zd=dc,Ud=dc,Gd=dc,Jd=dc,Wd=dc,Hd=dc,Kd=dc,Zd=dc,Xd=dc,Qd=dc,Yd=dc,ef=dc,tf=dc,rf=dc,nf=Sr(dc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),gr}}}),sf=Sr(dc,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),gr}}}),of=dc,cf=dc,af=dc,lf=dc,uf=dc,pf=dc,mf=Sr(dc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),gr}}}),hf=dc,df=dc,ff=dc,yf=dc,{visitors:{document:{objects:{Discriminator:{$visitor:_f}}}}}=xm,gf=Sr(_f,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Nm}}),{visitors:{document:{objects:{XML:{$visitor:bf}}}}}=xm,vf=Sr(bf,{init(){this.element=new hh}}),Ef=Sr(Mc,dc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new hu}});class wf extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wf.primaryClass)}}yr(wf,"primaryClass","components-path-items");const jf=wf,xf=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new jf},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ud).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:Of}}}}}=xm,Sf=Sr(Of,{init(){this.element=new Tm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Pf}}}}}=xm,Af=Sr(Pf,{init(){this.element=new qm}}),{visitors:{document:{objects:{Encoding:{$visitor:Ff}}}}}=xm,$f=Sr(Ff,{init(){this.element=new Cm}}),{visitors:{document:{objects:{Paths:{$visitor:kf}}}}}=xm,Rf=Sr(kf,{init(){this.element=new eh}}),{visitors:{document:{objects:{RequestBody:{$visitor:If}}}}}=xm,Mf=Sr(If,{init(){this.element=new nh}}),{visitors:{document:{objects:{Callback:{$visitor:Nf}}}}}=xm,Cf=Sr(Nf,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Rm},methods:{ObjectElement(e){const t=Nf.compose.methods.ObjectElement.call(this,e);return this.element.filter(ud).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:Tf}}}}}=xm,qf=Sr(Tf,{init(){this.element=new sh}}),{visitors:{document:{objects:{Responses:{$visitor:Df}}}}}=xm,Lf=Sr(Df,{init(){this.element=new ih}}),{visitors:{document:{objects:{Operation:{$visitor:Bf}}}}}=xm,Vf=Sr(Bf,{init(){this.element=new Xm}}),{visitors:{document:{objects:{PathItem:{$visitor:zf}}}}}=xm,Uf=Sr(zf,{init(){this.element=new Ym}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:Gf}}}}}=xm,Jf=Sr(Gf,{init(){this.element=new lh}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:Wf}}}}}=xm,Hf=Sr(Wf,{init(){this.element=new Wm}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:Kf}}}}}=xm,Zf=Sr(Kf,{init(){this.element=new Jm}});class Xf extends kt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Xf.primaryClass)}}yr(Xf,"primaryClass","webhooks");const Qf=Xf,Yf=Sr(Mc,dc,{props:{specPath:e=>cc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Qf},methods:{ObjectElement(e){const t=Mc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ud).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(cd).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),ey={visitors:{value:xm.visitors.value,document:{objects:{OpenApi:{$visitor:dh,fixedFields:{openapi:xm.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:Oh,servers:xm.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Yf,components:{$ref:"#/visitors/document/objects/Components"},security:xm.visitors.document.objects.OpenApi.fixedFields.security,tags:xm.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:yh,fixedFields:{title:xm.visitors.document.objects.Info.fixedFields.title,description:xm.visitors.document.objects.Info.fixedFields.description,summary:_h,termsOfService:xm.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:xm.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:bh,fixedFields:{name:xm.visitors.document.objects.Contact.fixedFields.name,url:xm.visitors.document.objects.Contact.fixedFields.url,email:xm.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Eh,fixedFields:{name:xm.visitors.document.objects.License.fixedFields.name,identifier:wh,url:xm.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Ph,fixedFields:{url:xm.visitors.document.objects.Server.fixedFields.url,description:xm.visitors.document.objects.Server.fixedFields.description,variables:xm.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Fh,fixedFields:{enum:xm.visitors.document.objects.ServerVariable.fixedFields.enum,default:xm.visitors.document.objects.ServerVariable.fixedFields.default,description:xm.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Nh,fixedFields:{schemas:Ef,responses:xm.visitors.document.objects.Components.fixedFields.responses,parameters:xm.visitors.document.objects.Components.fixedFields.parameters,examples:xm.visitors.document.objects.Components.fixedFields.examples,requestBodies:xm.visitors.document.objects.Components.fixedFields.requestBodies,headers:xm.visitors.document.objects.Components.fixedFields.headers,securitySchemes:xm.visitors.document.objects.Components.fixedFields.securitySchemes,links:xm.visitors.document.objects.Components.fixedFields.links,callbacks:xm.visitors.document.objects.Components.fixedFields.callbacks,pathItems:xf}},Paths:{$visitor:Rf},PathItem:{$visitor:Uf,fixedFields:{$ref:xm.visitors.document.objects.PathItem.fixedFields.$ref,summary:xm.visitors.document.objects.PathItem.fixedFields.summary,description:xm.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:xm.visitors.document.objects.PathItem.fixedFields.servers,parameters:xm.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Vf,fixedFields:{tags:xm.visitors.document.objects.Operation.fixedFields.tags,summary:xm.visitors.document.objects.Operation.fixedFields.summary,description:xm.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:xm.visitors.document.objects.Operation.fixedFields.operationId,parameters:xm.visitors.document.objects.Operation.fixedFields.parameters,requestBody:xm.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:xm.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:xm.visitors.document.objects.Operation.fixedFields.deprecated,security:xm.visitors.document.objects.Operation.fixedFields.security,servers:xm.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:Af,fixedFields:{description:xm.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:xm.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:zh,fixedFields:{name:xm.visitors.document.objects.Parameter.fixedFields.name,in:xm.visitors.document.objects.Parameter.fixedFields.in,description:xm.visitors.document.objects.Parameter.fixedFields.description,required:xm.visitors.document.objects.Parameter.fixedFields.required,deprecated:xm.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:xm.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:xm.visitors.document.objects.Parameter.fixedFields.style,explode:xm.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:xm.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:xm.visitors.document.objects.Parameter.fixedFields.example,examples:xm.visitors.document.objects.Parameter.fixedFields.examples,content:xm.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Mf,fixedFields:{description:xm.visitors.document.objects.RequestBody.fixedFields.description,content:xm.visitors.document.objects.RequestBody.fixedFields.content,required:xm.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:kh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:xm.visitors.document.objects.MediaType.fixedFields.example,examples:xm.visitors.document.objects.MediaType.fixedFields.examples,encoding:xm.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:$f,fixedFields:{contentType:xm.visitors.document.objects.Encoding.fixedFields.contentType,headers:xm.visitors.document.objects.Encoding.fixedFields.headers,style:xm.visitors.document.objects.Encoding.fixedFields.style,explode:xm.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:xm.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Lf,fixedFields:{default:xm.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:qf,fixedFields:{description:xm.visitors.document.objects.Response.fixedFields.description,headers:xm.visitors.document.objects.Response.fixedFields.headers,content:xm.visitors.document.objects.Response.fixedFields.content,links:xm.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Cf},Example:{$visitor:Sf,fixedFields:{summary:xm.visitors.document.objects.Example.fixedFields.summary,description:xm.visitors.document.objects.Example.fixedFields.description,value:xm.visitors.document.objects.Example.fixedFields.value,externalValue:xm.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:xh,fixedFields:{operationRef:xm.visitors.document.objects.Link.fixedFields.operationRef,operationId:xm.visitors.document.objects.Link.fixedFields.operationId,parameters:xm.visitors.document.objects.Link.fixedFields.parameters,requestBody:xm.visitors.document.objects.Link.fixedFields.requestBody,description:xm.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Gh,fixedFields:{description:xm.visitors.document.objects.Header.fixedFields.description,required:xm.visitors.document.objects.Header.fixedFields.required,deprecated:xm.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:xm.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:xm.visitors.document.objects.Header.fixedFields.style,explode:xm.visitors.document.objects.Header.fixedFields.explode,allowReserved:xm.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:xm.visitors.document.objects.Header.fixedFields.example,examples:xm.visitors.document.objects.Header.fixedFields.examples,content:xm.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Th,fixedFields:{name:xm.visitors.document.objects.Tag.fixedFields.name,description:xm.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Dh,fixedFields:{$ref:xm.visitors.document.objects.Reference.fixedFields.$ref,summary:Lh,description:Bh}},Schema:{$visitor:wd,fixedFields:{$schema:jd,$vocabulary:xd,$id:Od,$anchor:Sd,$dynamicAnchor:Pd,$dynamicRef:Ad,$ref:Fd,$defs:$d,$comment:kd,allOf:Rd,anyOf:Id,oneOf:Md,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:Nd,prefixItems:Cd,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Td,patternProperties:qd,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:Dd,enum:Ld,const:Bd,multipleOf:Vd,maximum:zd,exclusiveMaximum:Ud,minimum:Gd,exclusiveMinimum:Jd,maxLength:Wd,minLength:Hd,pattern:Kd,maxItems:Zd,minItems:Xd,uniqueItems:Qd,maxContains:Yd,minContains:ef,maxProperties:tf,minProperties:rf,required:nf,dependentRequired:sf,title:of,description:cf,default:af,deprecated:lf,readOnly:uf,writeOnly:pf,examples:mf,format:hf,contentEncoding:df,contentMediaType:ff,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:yf}},Discriminator:{$visitor:gf,fixedFields:{propertyName:xm.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:xm.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:vf,fixedFields:{name:xm.visitors.document.objects.XML.fixedFields.name,namespace:xm.visitors.document.objects.XML.fixedFields.namespace,prefix:xm.visitors.document.objects.XML.fixedFields.prefix,attribute:xm.visitors.document.objects.XML.fixedFields.attribute,wrapped:xm.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Jf,fixedFields:{type:xm.visitors.document.objects.SecurityScheme.fixedFields.type,description:xm.visitors.document.objects.SecurityScheme.fixedFields.description,name:xm.visitors.document.objects.SecurityScheme.fixedFields.name,in:xm.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:xm.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:xm.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:xm.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Hf,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:Zf,fixedFields:{authorizationUrl:xm.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:xm.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:xm.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:xm.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:Ih}},extension:{$visitor:xm.visitors.document.extension.$visitor}}}};function ty(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 ry=e=>{if(Mr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ny=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ty(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ty(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"]},sn),sy={namespace:e=>{const{base:t}=e;return t.register("callback",Rm),t.register("components",Im),t.register("contact",Mm),t.register("discriminator",Nm),t.register("encoding",Cm),t.register("example",Tm),t.register("externalDocumentation",qm),t.register("header",Dm),t.register("info",Lm),t.register("jsonSchemaDialect",Vm),t.register("license",zm),t.register("link",Um),t.register("mediaType",Gm),t.register("oAuthFlow",Jm),t.register("oAuthFlows",Wm),t.register("openapi",Hm),t.register("openApi3_1",Zm),t.register("operation",Xm),t.register("parameter",Qm),t.register("pathItem",Ym),t.register("paths",eh),t.register("reference",rh),t.register("requestBody",nh),t.register("response",sh),t.register("responses",ih),t.register("schema",ch),t.register("securityRequirement",ah),t.register("securityScheme",lh),t.register("server",uh),t.register("serverVariable",ph),t.register("tag",mh),t.register("xml",hh),t}};function iy(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 oy(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?iy(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):iy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const cy=()=>{const e=er(sy);return{predicates:oy(oy({},o),{},{isStringElement:Nr,isArrayElement:Lr,isObjectElement:Dr,includesClasses:Xr}),namespace:e}};function ay(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 ly=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,kt.Qc)(e),s=_i(ey),i=un(t,[],s);return on(n,i,{state:{specObj:s}}),hn(i.element,r,{toolboxCreator:cy,visitorOptions:{keyMap:ny,nodeTypeGetter:ry}})},uy=e=>(t,r={})=>ly(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ay(Object(r),!0).forEach((function(t){yr(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ay(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));Rm.refract=uy(["visitors","document","objects","Callback","$visitor"]),Im.refract=uy(["visitors","document","objects","Components","$visitor"]),Mm.refract=uy(["visitors","document","objects","Contact","$visitor"]),Tm.refract=uy(["visitors","document","objects","Example","$visitor"]),Nm.refract=uy(["visitors","document","objects","Discriminator","$visitor"]),Cm.refract=uy(["visitors","document","objects","Encoding","$visitor"]),qm.refract=uy(["visitors","document","objects","ExternalDocumentation","$visitor"]),Dm.refract=uy(["visitors","document","objects","Header","$visitor"]),Lm.refract=uy(["visitors","document","objects","Info","$visitor"]),Vm.refract=uy(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),zm.refract=uy(["visitors","document","objects","License","$visitor"]),Um.refract=uy(["visitors","document","objects","Link","$visitor"]),Gm.refract=uy(["visitors","document","objects","MediaType","$visitor"]),Jm.refract=uy(["visitors","document","objects","OAuthFlow","$visitor"]),Wm.refract=uy(["visitors","document","objects","OAuthFlows","$visitor"]),Hm.refract=uy(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Zm.refract=uy(["visitors","document","objects","OpenApi","$visitor"]),Xm.refract=uy(["visitors","document","objects","Operation","$visitor"]),Qm.refract=uy(["visitors","document","objects","Parameter","$visitor"]),Ym.refract=uy(["visitors","document","objects","PathItem","$visitor"]),eh.refract=uy(["visitors","document","objects","Paths","$visitor"]),rh.refract=uy(["visitors","document","objects","Reference","$visitor"]),nh.refract=uy(["visitors","document","objects","RequestBody","$visitor"]),sh.refract=uy(["visitors","document","objects","Response","$visitor"]),ih.refract=uy(["visitors","document","objects","Responses","$visitor"]),ch.refract=uy(["visitors","document","objects","Schema","$visitor"]),ah.refract=uy(["visitors","document","objects","SecurityRequirement","$visitor"]),lh.refract=uy(["visitors","document","objects","SecurityScheme","$visitor"]),uh.refract=uy(["visitors","document","objects","Server","$visitor"]),ph.refract=uy(["visitors","document","objects","ServerVariable","$visitor"]),mh.refract=uy(["visitors","document","objects","Tag","$visitor"]),hh.refract=uy(["visitors","document","objects","XML","$visitor"]);const py=class extends Array{constructor(...e){super(...e),yr(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Error("Not implemented!")}findBy(){throw new Error("Not implemented")}latest(){throw new Error("Not implemented!")}};class my extends py{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="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(e="generic"){return ut(this.filterByFormat(e))}}const hy=new my("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"),dy=new my(...hy.filterByFormat("generic"),...hy.filterByFormat("json")),fy=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,yy=async e=>fy.test(e)&&await(async e=>{if(!hs.test(e))return!1;try{return"ERROR"!==(await lr(e)).rootNode.type}catch{return!1}})(e),_y=async(e,t={})=>{const r=_t({},"refractorOpts",t),n=dt(["refractorOpts"],t),s=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const n=await lr(e);let s;return s="indirect"===r?ms(n,{sourceMap:t}):Pn(n,{sourceMap:t}),s})(e,n),{result:i}=s;if($t(i)){const e=Zm.refract(i,r);e.classes.push("result"),s.replaceResult(e)}return s},gy=er(sy)})(),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 e={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(7148),r(9031),r(1875),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(3346),r(3520),r(6658),r(8658),r(2725),r(1806),r(4212),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 c,a=s(t),l=i(a),u=n(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 s=r(8043),n=r(4120),i=r(2202),o=r(1795),c=r(4104),a=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,h=5==e||p;return function(d,f,y,_){for(var g,b,v=o(d),E=i(v),w=s(f,y),j=c(E),x=0,O=_||a,S=t?O(d,j):r||m?O(d,0):void 0;j>x;x++)if((h||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,c=Math.max;e.exports=function(e,t,r){for(var a=n(e),l=s(t,a),u=s(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 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"),c=Array;e.exports=function(e){var t;return s(e)&&(t=e.constructor,(n(t)&&(t===c||s(t.prototype))||i(t)&&null===(t=t[o]))&&(t=void 0)),void 0===t?c: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"),c=Object,a="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=c(e),o))?r:a?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),c=i.process,a=i.Deno,l=c&&c.versions||a&&a.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),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,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,d,f,y,_,g,b,v,E=e.target,w=e.global,j=e.stat,x=e.proto,O=w?s:j?s[E]:(s[E]||{}).prototype,S=w?l:l[E]||p(l,E,{})[E],P=S.prototype;for(f in t)n=!(r=a(w?f:E+(j?".":"#")+f,e.forced))&&O&&m(O,f),_=S[f],n&&(g=e.dontCallGetSet?(v=c(O,f))&&v.value:O[f]),y=n&&g?g:t[f],n&&typeof _==typeof y||(b=e.bind&&n?u(y,s):e.wrap&&n?h(y):x&&o(y)?i(y):y,(e.sham||y&&y.sham||_&&_.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 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,c=n(i,"name"),a=c&&"something"===function(){}.name,l=c&&(!s||s&&o(i,"name").configurable);e.exports={EXISTS:c,PROPER:a,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),c=r(4845),a=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?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(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,c=s("".split);e.exports=n((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"==i(e)?c(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),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 _=p.state||(p.state=new y);_.get=_.get,_.has=_.has,_.set=_.set,s=function(e,t){if(_.has(e))throw f(d);return t.facade=e,_.set(e,t),t},n=function(e){return _.get(e)||{}},i=function(e){return _.has(e)}}else{var g=m("state");h[g]=!0,s=function(e,t){if(u(e,g))throw f(d);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(!a(t)||(r=n(t)).type!==e)throw f("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),c=r(150),a=r(9516),l=function(){},u=[],p=c("Reflect","construct"),m=/^\s*(?:class|function)\b/,h=s(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||n((function(){var e;return f(f.call)||!f(Object)||!f((function(){e=!0}))||e}))?y:f},9245:(e,t,r)=>{var s=r(6192),n=r(6447),i=/#|\.prototype\./,o=function(e,t){var r=a[c(e)];return r==u||r!=l&&(n(t)?s(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 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),c=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=s("Symbol");return n(t)&&i(t.prototype,c(e))}},5695:(e,t,r)=>{"use strict";var s=r(4413).IteratorPrototype,n=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=n(s,{next:i(+!l,r)}),o(e,u,!1,!0),c[u]=a,e}},5297:(e,t,r)=>{"use strict";var s=r(3085),n=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),_=o.PROPER,g=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&&N)return N;if(!v&&e in I)return I[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",R=!1,I=e.prototype,M=I[E]||I["@@iterator"]||d&&I[d],N=!v&&M||$(d),C="Array"==t&&I.entries||M;if(C&&(P=l(C.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)),_&&d==j&&M&&M.name!==j&&(!i&&g?m(I,"name",j):(R=!0,N=function(){return n(M,this)})),d)if(A={values:$(j),keys:y?N:$(w),entries:$(x)},S)for(F in A)(v||R||!(F in I))&&h(I,F,A[F]);else s({target:t,proto:!0,forced:v||R},A);return i&&!S||I[E]===N||h(I,E,N,{name:d}),f[t]=N,A}},4413:(e,t,r)=>{"use strict";var s,n,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())?(n=u(u(i)))!==Object.prototype&&(s=n):f=!0),!a(s)||o((function(){var e={};return s[d].call(e)!==e}))?s={}:h&&(s=l(s)),c(s[d])||p(s,d,(function(){return this})),e.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:f}},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),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},_=function(){try{s=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;_="undefined"!=typeof document?document.domain&&s?y(s):(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(s);for(var n=o.length;n--;)delete _[p][o[n]];return _()};c[h]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(d[p]=n(e),r=new d,d[p]=null,r[h]=e):r=_(),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),c=r(101),a=r(7653);t.f=s&&!n?Object.defineProperties:function(e,t){o(e);for(var r,s=c(t),n=a(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),c=r(77),a=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",m="configurable",h="writable";t.f=s?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 s=u(e,t);s&&s[h]&&(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=c(t),o(r),n)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 s=r(69),n=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=s?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(!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),c="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return c&&"Window"==s(e)?function(e){try{return i(e)}catch(e){return o(c)}}(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),c=r(4635),a=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=c?l.getPrototypeOf:function(e){var t=i(e);if(s(t,a))return t[a];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,c=r(4535),a=s([].push);e.exports=function(e,t){var r,s=i(e),l=0,u=[];for(r in s)!n(c,r)&&n(s,r)&&a(u,r);for(;t.length>l;)n(s,r=t[l++])&&(~o(u,r)||a(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,c;if("string"===t&&n(r=e.toString)&&!i(c=s(r,e)))return c;if(n(r=e.valueOf)&&!i(c=s(r,e)))return c;if("string"!==t&&n(r=e.toString)&&!i(c=s(r,e)))return c;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),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)||n(u,a,{configurable:!0,value:t}),l&&!s&&i(u,"toString",c)}}},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.31.1",mode:s?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.31.1/LICENSE",source:"https://github.com/zloirock/core-js"})},863:(e,t,r)=>{var s=r(4120),n=r(1941),i=r(4845),o=r(3209),c=s("".charAt),a=s("".charCodeAt),l=s("".slice),u=function(e){return function(t,r){var s,u,p=i(o(t)),m=n(r),h=p.length;return m<0||m>=h?e?"":void 0:(s=a(p,m))<55296||s>56319||m+1===h||(u=a(p,m+1))<56320||u>57343?e?c(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,c=i("toPrimitive");t&&!t[c]&&o(t,c,(function(e){return s(r,this)}),{arity:1})}},8743:(e,t,r)=>{var s=r(150),n=r(4120),i=s("Symbol"),o=i.keyFor,c=n(i.prototype.valueOf);e.exports=i.isRegisteredSymbol||function(e){try{return void 0!==o(c(e))}catch(e){return!1}}},5128:(e,t,r)=>{for(var s=r(8717),n=r(150),i=r(4120),o=r(3236),c=r(8182),a=n("Symbol"),l=a.isWellKnownSymbol,u=n("Object","getOwnPropertyNames"),p=i(a.prototype.valueOf),m=s("wks"),h=0,d=u(a),f=d.length;h<f;h++)try{var y=d[h];o(a[y])&&c(y)}catch(e){}e.exports=function(e){if(l&&l(e))return!0;try{for(var t=p(e),r=0,s=u(m),n=s.length;r<n;r++)if(m[s[r]]==t)return!0}catch(e){}return!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),c=r(380),a=r(8182),l=TypeError,u=a("toPrimitive");e.exports=function(e,t){if(!n(e)||i(e))return e;var r,a=o(e,u);if(a){if(void 0===t&&(t="default"),r=s(a,e,t),!n(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 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),c=r(6770),a=r(615),l=s.Symbol,u=n("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 s=r(3085),n=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||!n((function(){var e=[];return e[f]=!1,e.concat()[0]!==e})),_=function(e){if(!o(e))return!1;var t=e[f];return void 0!==t?!!t:i(e)};s({target:"Array",proto:!0,arity:1,forced:!y||!m("concat")},{concat:function(e){var t,r,s,n,i,o=c(this),m=p(o,0),h=0;for(t=-1,s=arguments.length;t<s;t++)if(_(i=-1===t?o:arguments[t]))for(n=a(i),l(h+n),r=0;r<n;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 s=r(3085),n=r(4914),i=r(8180).indexOf,o=r(424),c=n([].indexOf),a=!!c&&1/c([1],1,-0)<0;s({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 s=r(101),n=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:s(e),index:0,kind:t})}),(function(){var e=d(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 f=i.Arguments=i.Array;if(n("keys"),n("values"),n("entries"),!u&&p&&"values"!==f.name)try{c(f,"name",{value:"values"})}catch(e){}},2432:()=>{},9704:(e,t,r)=>{var s=r(3085),n=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=n("JSON","stringify"),y=c(/./.exec),_=c("".charAt),g=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=n("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),s=m(t);if(l(s)||void 0!==e&&!u(e))return r[1]=function(e,t){if(l(s)&&(t=o(s,this,d(e),t)),!u(t))return t},i(f,null,r)},P=function(e,t,r){var s=_(r,t-1),n=_(r,t+1);return y(w,e)&&!y(j,n)||y(j,e)&&!y(w,s)?"\\u"+v(g(e,0),16):e};f&&s({target:"JSON",stat:!0,arity:3,forced:x||O},{stringify:function(e,t,r){var s=p(arguments),n=i(x?S:f,null,s);return O&&"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),c=r(1795);s({target:"Object",stat:!0,forced:!n||i((function(){o.f(1)}))},{getOwnPropertySymbols:function(e){var t=o.f;return t?t(c(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),c=r(7271),a="String Iterator",l=i.set,u=i.getterFor(a);o(String,"String",(function(e){l(this,{type:a,string:n(e),index:0})}),(function(){var e,t=u(this),r=t.string,n=t.index;return n>=r.length?c(void 0,!0):(e=s(r,n),t.index+=e.length,c(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),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),_=r(774),g=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),R=r(2759),I=r(8182),M=r(9207),N=r(8332),C=r(3407),T=r(1284),q=r(3326),D=r(454).forEach,L=$("hidden"),B="Symbol",V="prototype",U=q.set,z=q.getterFor(B),G=Object[V],J=n.Symbol,W=J&&J[V],H=n.TypeError,K=n.QObject,Z=j.f,X=x.f,Q=E.f,Y=S.f,ee=o([].push),te=F("symbols"),re=F("op-symbols"),se=F("wks"),ne=!K||!K[V]||!K[V].findChild,ie=a&&u((function(){return 7!=g(X({},"a",{get:function(){return X(this,"a",{value:7}).a}})).a}))?function(e,t,r){var s=Z(G,t);s&&delete G[t],X(e,t,r),s&&e!==G&&X(G,t,s)}:X,oe=function(e,t){var r=te[e]=g(W);return U(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 s=f(t);return h(r),p(te,s)?(r.enumerable?(p(e,L)&&e[L][s]&&(e[L][s]=!1),r=g(r,{enumerable:_(0,!1)})):(p(e,L)||X(e,L,_(1,{})),e[L][s]=!0),ie(e,s,r)):X(e,s,r)},ae=function(e,t){h(e);var r=d(t),s=b(r).concat(me(r));return D(s,(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),s=f(t);if(r!==G||!p(te,s)||p(re,s)){var n=Z(r,s);return!n||!p(te,s)||p(r,L)&&r[L][s]||(n.enumerable=!0),n}},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)),s=[];return D(r,(function(e){!p(te,e)||t&&!p(G,e)||ee(s,te[e])})),s};l||(P(W=(J=function(){if(m(W,this))throw H("Symbol is not a constructor");var e=arguments.length&&void 0!==arguments[0]?y(arguments[0]):void 0,t=R(e),r=function(e){this===G&&i(r,re,e),p(this,L)&&p(this[L],t)&&(this[L][t]=!1),ie(this,t,_(1,e))};return a&&ne&&ie(G,t,{configurable:!0,set:r}),oe(t,e)})[V],"toString",(function(){return z(this).tag})),P(J,"withoutSetter",(function(e){return oe(R(e),e)})),S.f=le,x.f=ce,O.f=ae,j.f=ue,v.f=E.f=pe,w.f=me,M.f=function(e){return oe(I(e),e)},a&&(A(W,"description",{configurable:!0,get:function(){return z(this).description}}),c||P(G,"propertyIsEnumerable",le,{unsafe:!0}))),s({global:!0,constructor:!0,wrap:!0,forced:!l,sham:!l},{Symbol:J}),D(b(se),(function(e){N(e)})),s({target:B,stat:!0,forced:!l},{useSetter:function(){ne=!0},useSimple:function(){ne=!1}}),s({target:"Object",stat:!0,forced:!l,sham:!a},{create:function(e,t){return void 0===t?g(e):ae(g(e),t)},defineProperty:ce,defineProperties:ae,getOwnPropertyDescriptor:ue}),s({target:"Object",stat:!0,forced:!l},{getOwnPropertyNames:pe}),C(),T(J,B),k[L]=!0},492:()=>{},9148:(e,t,r)=>{var s=r(3085),n=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");s({target:"Symbol",stat:!0,forced:!a},{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),c=r(8717),a=r(31),l=c("symbol-to-string-registry");s({target:"Symbol",stat:!0,forced:!a},{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")},7148:(e,t,r)=>{var s=r(8182),n=r(2760).f,i=s("metadata"),o=Function.prototype;void 0===o[i]&&n(o,i,{value:null})},177:(e,t,r)=>{r(8332)("asyncDispose")},9031:(e,t,r)=>{r(8332)("dispose")},3346:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0},{isRegisteredSymbol:r(8743)})},2725:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isRegisteredSymbol"},{isRegistered:r(8743)})},3520:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,forced:!0},{isWellKnownSymbol:r(5128)})},1806:(e,t,r)=>{r(3085)({target:"Symbol",stat:!0,name:"isWellKnownSymbol",forced:!0},{isWellKnown:r(5128)})},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),c=r(7771),a=r(8182)("toStringTag");for(var l in s){var u=n[l],p=u&&u.prototype;p&&i(p)!==a&&o(p,a,l),c[l]=c.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),c=r(7942);function a(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])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},235:(e,t,r)=>{var s=r(3945),n=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 s=e[t];this.set(s[0],s[1])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},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),c=r(4150);function a(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])}}a.prototype.clear=s,a.prototype.delete=n,a.prototype.get=i,a.prototype.has=o,a.prototype.set=c,e.exports=a},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),c=r(8605),a=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=c,l.prototype.set=a,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),c=r(9045),a=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&&a(e),h=r||u||p||m,d=h?s(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,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,c){return t===r||(null==t||null==r||!n(t)&&!n(r)?t!=t&&r!=r:s(t,r,i,o,e,c))}},1952:(e,t,r)=>{var s=r(6571),n=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,_){var g=a(e),b=a(t),v=g?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;g=!0,w=!1}if(x&&!w)return _||(_=new s),g||u(e)?n(e,t,r,f,y,_):i(e,t,v,r,f,y,_);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 _||(_=new s),y(P,A,r,f,_)}}return!!x&&(_||(_=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),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)||n(e))&&(s(e)?m:c).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,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 s:void 0;for(a.set(e,t),a.set(t,e);++d<u;){var _=e[d],g=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(!n(t,(function(e,t){if(!i(y,t)&&(_===e||c(_,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 s=r(857),n=r(9162),i=r(1225),o=r(4871),c=r(5179),a=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 h=c;case"[object Set]":var d=1&s;if(h||(h=a),e.size!=t.size&&!d)return!1;var f=m.get(e);if(f)return f==t;s|=2,m.set(e,t);var y=o(h(e),h(t),s,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 s=r(3483),n=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,c){var a=1&r,l=s(e),u=l.length;if(u!=s(t).length&&!a)return!1;for(var p=u;p--;){var m=l[p];if(!(a?m in t:n.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 _=e[m=l[p]],g=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 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,c=s?s.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),r=e[c];try{e[c]=void 0;var s=!0}catch(e){}var n=o.call(e);return s&&(t?e[c]=r:delete e[c]),n}},633:(e,t,r)=>{var s=r(7552),n=r(981),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,c=o?function(e){return null==e?[]:(e=Object(e),s(o(e),(function(t){return i.call(e,t)})))}:n;e.exports=c},940:(e,t,r)=>{var s=r(9515),n=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(s),y=l(n),_=l(i),g=l(o),b=l(c),v=a;(s&&v(new s(new ArrayBuffer(1)))!=d||n&&v(new n)!=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,s=r?l(r):"";if(s)switch(s){case f:return d;case y:return u;case _:return p;case g: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 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,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 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,c=i.propertyIsEnumerable,a=s(function(){return arguments}())?s:function(e){return n(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 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,c=o&&o.exports===i?s.Buffer:void 0,a=(c?c.isBuffer:void 0)||n;e.exports=a},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,c=o?n(o):s;e.exports=c},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),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(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(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 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 a(this)}}a.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),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 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 c(e);if(null===e)return new n;if(Array.isArray(e))return new a(e.map(y));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=y,h.prototype.refract=y,e.exports={Element:s,NullElement:n,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 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),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(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 c(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",c="deepProperties",a="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",m="configuration",h="deepConfiguration",d="deepProps",f="deepStatics",y="deepConf",_="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 j=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 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,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),c=0;c<o.length;)n=o[c++],(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 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 s(r,s){O(t[r])&&(O(e[r])||(e[r]={}),(s||j)(e[r],t[r]))}function n(s){(r=A(e[s],t[s]))&&(e[s]=r)}return t&&O(t=t[v]||t)&&(s(g),s(o),s(c,P),s(a),s(l),s(u,P),s(p),s(m),s(h,P),n(_),n(b)),e}function $(){return function(e){return r=function e(r){var s,n,i=e[v]||{},l={__proto__:i[g]},u=i[_],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(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])&&j(r,s),(s=e[p])&&Object.defineProperties(r,s),s=x(r[v])?r[v]:$,j(r[v]=function(){return s.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(F,{}))}function k(e){return x(e)&&x(e[v])}var R={};function I(e,i){return function(){return(n={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[v]||s).call(r,n)}}R[g]=I(g,j),R[o]=R.props=I(o,j),R[_]=R.init=I(_,A),R[b]=I(b,A),R[c]=R[d]=I(c,P),R[l]=R.statics=I(l,j),R[u]=R[f]=I(u,P),R[m]=R.conf=I(m,j),R[h]=R[y]=I(h,P),R[a]=I(a,j),R[p]=I(p,j),s=R[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:((n={})[g]=(E=e)[g]||t,s=E.props,n[o]=O((r=E[o])||s)?j({},s,r):t,n[_]=A(E.init,E[_]),n[b]=A(E[b]),s=E[d],n[c]=O((r=E[c])||s)?P({},s,r):t,n[a]=E[a],s=E.statics,n[l]=O((r=E[l])||s)?j({},s,r):t,s=E[f],n[u]=O((r=E[u])||s)?P({},s,r):t,r=E[p],n[p]=O((s=E.name&&{name:{value:E.name}})||r)?j({},r,s):t,s=E.conf,n[m]=O((r=E[m])||s)?j({},s,r):t,s=E[y],n[h]=O((r=E[h])||s)?P({},s,r):t,n));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}),R),R.create=function(){return this.apply(t,arguments)},(n={})[l]=R,i=$(n),s[v]=s.bind(),s.version="4.3.2","object"!=typeof t?e.exports=s:self.stampit=s}()},9794:(e,t,r)=>{var s=void 0!==s?s:{},n=function(){var t,n="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||(s=Object.assign({},s,o),t=new Promise((t=>{var o,c={};for(o in s)s.hasOwnProperty(o)&&(c[o]=s[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 g||(g=r(5530)),b||(b=r(6287)),e=b.normalize(e),g.readFileSync(e,t?null:"utf8")},_=function(e){var t=f(e,!0);return t.buffer||(t=new Uint8Array(t)),I(t.buffer),t},process.argv.length>1&&(h=process.argv[1].replace(/\\/g,"/")),m=process.argv.slice(2),e.exports=s,d=function(e){process.exit(e)},s.inspect=function(){return"[Emscripten Module object]"}):l?("undefined"!=typeof read&&(f=function(e){return read(e)}),_=function(e){var t;return"function"==typeof readbuffer?new Uint8Array(readbuffer(e)):(I("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!==n&&n.currentScript&&(v=n.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&&(_=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 s=new XMLHttpRequest;s.open("GET",e,!0),s.responseType="arraybuffer",s.onload=function(){200==s.status||0==s.status&&s.response?t(s.response):r()},s.onerror=r,s.send(null)}),s.print||console.log.bind(console);var E=s.printErr||console.warn.bind(console);for(o in c)c.hasOwnProperty(o)&&(s[o]=c[o]);c=null,s.arguments&&(m=s.arguments),s.thisProgram&&(h=s.thisProgram),s.quit&&(d=s.quit);var w,j=16,x=[];function O(e,t){if(!w){w=new WeakMap;for(var r=0;r<Z.length;r++){var s=Z.get(r);s&&w.set(s,r)}}if(w.has(e))return w.get(e);var n=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(n,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"},s={parameters:[],results:"v"==t[0]?[]:[r[t[0]]]},n=1;n<t.length;++n)s.parameters.push(r[t[n]]);return new WebAssembly.Function(s,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),n=0;n<c.length;++n)i.push(a[c[n]]);"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(n,i)}return w.set(e,n),n}var S,P=s.dynamicLibraries||[];s.wasmBinary&&(S=s.wasmBinary);var A,F=s.noExitRuntime||!0;function $(e,t,r,s){switch("*"===(r=r||"i8").charAt(r.length-1)&&(r="i32"),r){case"i1":case"i8":N[e>>0]=t;break;case"i16":T[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 N[e>>0];case"i16":return T[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 R=!1;function I(e,t){e||ce("Assertion failed: "+t)}var M,N,C,T,q,D,L,B="undefined"!=typeof TextDecoder?new TextDecoder("utf8"):void 0;function V(e,t,r){for(var s=t+r,n=t;e[n]&&!(n>=s);)++n;if(n-t>16&&e.subarray&&B)return B.decode(e.subarray(t,n));for(var i="";t<n;){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 U(e,t){return e?V(C,e,t):""}function z(e,t,r,s){if(!(s>0))return 0;for(var n=r,i=r+s-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-n}function G(e,t,r){return z(e,C,t,r)}function J(e){for(var t=0,r=0;r<e.length;++r){var s=e.charCodeAt(r);s>=55296&&s<=57343&&(s=65536+((1023&s)<<10)|1023&e.charCodeAt(++r)),s<=127?++t:t+=s<=2047?2:s<=65535?3:4}return t}function W(e){var t=J(e)+1,r=Ue(t);return z(e,N,r,t),r}function H(e){M=e,s.HEAP8=N=new Int8Array(e),s.HEAP16=T=new Int16Array(e),s.HEAP32=q=new Int32Array(e),s.HEAPU8=C=new Uint8Array(e),s.HEAPU16=new Uint16Array(e),s.HEAPU32=new Uint32Array(e),s.HEAPF32=D=new Float32Array(e),s.HEAPF64=L=new Float64Array(e)}var K=s.INITIAL_MEMORY||33554432;(A=s.wasmMemory?s.wasmMemory:new WebAssembly.Memory({initial:K/65536,maximum:32768}))&&(M=A.buffer),K=M.byteLength,H(M);var Z=new WebAssembly.Table({initial:17,element:"anyfunc"}),X=[],Q=[],Y=[],ee=[],te=!1,re=0,se=null,ne=null;function ie(e){re++,s.monitorRunDependencies&&s.monitorRunDependencies(re)}function oe(e){if(re--,s.monitorRunDependencies&&s.monitorRunDependencies(re),0==re&&(null!==se&&(clearInterval(se),se=null),ne)){var t=ne;ne=null,t()}}function ce(e){throw s.onAbort&&s.onAbort(e),E(e+=""),R=!0,e="abort("+e+"). Build with -s ASSERTIONS=1 for more info.",new WebAssembly.RuntimeError(e)}s.preloadedImages={},s.preloadedAudios={},s.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(_)return _(e);throw"both async and sync fetching of the wasm failed"}catch(e){ce(e)}}pe(ae="tree-sitter.wasm")||(ae=function(e){return s.locateFile?s.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(s)}}function _e(e){var t=0;function r(){for(var r=0,s=1;;){var n=e[t++];if(r+=(127&n)*s,s*=128,!(128&n))break}return r}if(e instanceof WebAssembly.Module){var s=WebAssembly.Module.customSections(e,"dylink");I(0!=s.length,"need dylink section"),e=new Int8Array(s[0])}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,r(),I(6===e[t]),I(e[++t]==="d".charCodeAt(0)),I(e[++t]==="y".charCodeAt(0)),I(e[++t]==="l".charCodeAt(0)),I(e[++t]==="i".charCodeAt(0)),I(e[++t]==="n".charCodeAt(0)),I(e[++t]==="k".charCodeAt(0)),t++;var n={};n.memorySize=r(),n.memoryAlign=r(),n.tableSize=r(),n.tableAlign=r();var i=r();n.neededDynlibs=[];for(var o=0;o<i;++o){var c=r(),a=e.subarray(t,t+c);t+=c;var l=V(a,0);n.neededDynlibs.push(l)}return n}var ge=0;function be(){return F||ge>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)){qe.hasOwnProperty(r)||(qe[r]=e[r]);var n=ve(r);s.hasOwnProperty(n)||(s[n]=e[r])}}var we={nextHandle:1,loadedLibs:{},loadedLibNames:{}};var je=5250880;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 s in e){var n=e[s];"object"==typeof n&&(n=n.value),"number"==typeof n&&(n+=t),r[s]=n}return function(e){for(var t in e)if(!xe(t)){var r=!1,s=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 s?de[t].value=O(s):"number"==typeof s?de[t].value=s:E("unhandled export type for `"+t+"`: "+typeof s))}}(r),r}function Se(e,t){var r,n;return t&&(r=qe["orig$"+e]),r||(r=qe[e]),r||(r=s[ve(e)]),!r&&e.startsWith("invoke_")&&(n=e.split("_")[1],r=function(){var e=Be();try{return function(e,t,r){return e.includes("j")?function(e,t,r){var n=s["dynCall_"+e];return r&&r.length?n.apply(null,[t].concat(r)):n.call(null,t)}(e,t,r):Z.get(t).apply(null,r)}(n,arguments[0],Array.prototype.slice.call(arguments,1))}catch(t){if(Ve(e),t!==t+0&&"longjmp"!==t)throw t;ze(1,0)}}),r}function Pe(e,t){var r=_e(e);function s(){var s=Math.pow(2,r.memoryAlign);s=Math.max(s,j);var n,i,o,c=(n=function(e){if(te)return De(e);var t=je,r=t+e+15&-16;return je=r,de.__heap_base.value=r,t}(r.memorySize+s),(i=s)||(i=j),Math.ceil(n/i)*i),a=Z.length;Z.grow(r.tableSize);for(var l=c;l<c+r.memorySize;l++)N[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 qe?qe[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 s=0;s<r.tableSize;s++){var n=Z.get(a+s);n&&w.set(n,a+s)}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 s()})):(r.neededDynlibs.forEach((function(e){Ae(e,t)})),s())}function Ae(e,t){"__main__"!=e||we.loadedLibNames[e]||(we.loadedLibs[-1]={refcount:1/0,name:"__main__",module:s.asm,global:!0},we.loadedLibNames.__main__=-1),t=t||{global:!0,nodelete:!0};var r,n=we.loadedLibNames[e];if(n)return r=we.loadedLibs[n],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(n):n;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?(s=e,fetch(s,{credentials:"same-origin"}).then((function(e){if(!e.ok)throw"failed to load binary file at '"+s+"'";return e.arrayBuffer()})).then((function(e){return new Uint8Array(e)}))):_(e);var s}function o(){if(void 0!==s.preloadedWasm&&void 0!==s.preloadedWasm[e]){var r=s.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 n=we.nextHandle++,r={refcount:t.nodelete?1/0:1,name:e,module:"loading",global:t.global},we.loadedLibNames[e]=n,we.loadedLibs[n]=r,t.loadAsync?o().then((function(e){return c(e),n})):(c(o()),n)}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:I(!1,"bad export type for `"+e+"`: "+typeof t)}}s.___heap_base=je;var $e,ke=new WebAssembly.Global({value:"i32",mutable:!0},5250880);function Re(){ce()}s._abort=Re,Re.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 Ie(e,t){var r;if(0===e)r=Date.now();else{if(1!==e&&4!==e)return 28,q[Le()>>2]=28,-1;r=$e()}return q[t>>2]=r/1e3|0,q[t+4>>2]=r%1e3*1e3*1e3|0,0}function Me(e){try{return A.grow(e-M.byteLength+65535>>>16),H(A.buffer),1}catch(e){}}function Ne(e){He(e)}function Ce(e){}Ie.sig="iii",Ne.sig="vi",Ce.sig="vi";var Te,qe={__heap_base:je,__indirect_function_table:Z,__memory_base:1024,__stack_pointer:ke,__table_base:1,abort:Re,clock_gettime:Ie,emscripten_memcpy_big:function(e,t,r){C.copyWithin(e,t,t+r)},emscripten_resize_heap:function(e){var t,r=C.length;if((e>>>=0)>2147483648)return!1;for(var s=1;s<=4;s*=2){var n=r*(1+.2/s);if(n=Math.min(n,e+100663296),Me(Math.min(2147483648,((t=Math.max(e,n))%65536>0&&(t+=65536-t%65536),t))))return!0}return!1},exit:Ne,memory:A,setTempRet0:Ce,tree_sitter_log_callback:function(e,t){if(lt){const r=U(t);lt(r,0!==e)}},tree_sitter_parse_callback:function(e,t,r,s,n){var i=at(t,{row:r,column:s});"string"==typeof i?($(n,i.length,"i32"),function(e,t,r){if(void 0===r&&(r=2147483647),r<2)return 0;for(var s=(r-=2)<2*e.length?r/2:e.length,n=0;n<s;++n){var i=e.charCodeAt(n);T[t>>1]=i,t+=2}T[t>>1]=0}(i,e,10240)):$(n,0,"i32")}},De=(function(){var e={env:qe,wasi_snapshot_preview1:qe,"GOT.mem":new Proxy(qe,fe),"GOT.func":new Proxy(qe,fe)};function t(e,t){var r=e.exports;r=Oe(r,1024),s.asm=r;var n,i=_e(t);i.neededDynlibs&&(P=i.neededDynlibs.concat(P)),Ee(r),n=s.asm.__wasm_call_ctors,Q.unshift(n),oe()}function r(e){t(e.instance,e.module)}function n(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(),s.instantiateWasm)try{return s.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?n(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"),n(r)}))}))}(),s.___wasm_call_ctors=function(){return(s.___wasm_call_ctors=s.asm.__wasm_call_ctors).apply(null,arguments)},s._malloc=function(){return(De=s._malloc=s.asm.malloc).apply(null,arguments)}),Le=(s._calloc=function(){return(s._calloc=s.asm.calloc).apply(null,arguments)},s._realloc=function(){return(s._realloc=s.asm.realloc).apply(null,arguments)},s._free=function(){return(s._free=s.asm.free).apply(null,arguments)},s._ts_language_symbol_count=function(){return(s._ts_language_symbol_count=s.asm.ts_language_symbol_count).apply(null,arguments)},s._ts_language_version=function(){return(s._ts_language_version=s.asm.ts_language_version).apply(null,arguments)},s._ts_language_field_count=function(){return(s._ts_language_field_count=s.asm.ts_language_field_count).apply(null,arguments)},s._ts_language_symbol_name=function(){return(s._ts_language_symbol_name=s.asm.ts_language_symbol_name).apply(null,arguments)},s._ts_language_symbol_for_name=function(){return(s._ts_language_symbol_for_name=s.asm.ts_language_symbol_for_name).apply(null,arguments)},s._ts_language_symbol_type=function(){return(s._ts_language_symbol_type=s.asm.ts_language_symbol_type).apply(null,arguments)},s._ts_language_field_name_for_id=function(){return(s._ts_language_field_name_for_id=s.asm.ts_language_field_name_for_id).apply(null,arguments)},s._memcpy=function(){return(s._memcpy=s.asm.memcpy).apply(null,arguments)},s._ts_parser_delete=function(){return(s._ts_parser_delete=s.asm.ts_parser_delete).apply(null,arguments)},s._ts_parser_reset=function(){return(s._ts_parser_reset=s.asm.ts_parser_reset).apply(null,arguments)},s._ts_parser_set_language=function(){return(s._ts_parser_set_language=s.asm.ts_parser_set_language).apply(null,arguments)},s._ts_parser_timeout_micros=function(){return(s._ts_parser_timeout_micros=s.asm.ts_parser_timeout_micros).apply(null,arguments)},s._ts_parser_set_timeout_micros=function(){return(s._ts_parser_set_timeout_micros=s.asm.ts_parser_set_timeout_micros).apply(null,arguments)},s._memmove=function(){return(s._memmove=s.asm.memmove).apply(null,arguments)},s._memcmp=function(){return(s._memcmp=s.asm.memcmp).apply(null,arguments)},s._ts_query_new=function(){return(s._ts_query_new=s.asm.ts_query_new).apply(null,arguments)},s._ts_query_delete=function(){return(s._ts_query_delete=s.asm.ts_query_delete).apply(null,arguments)},s._iswspace=function(){return(s._iswspace=s.asm.iswspace).apply(null,arguments)},s._iswalnum=function(){return(s._iswalnum=s.asm.iswalnum).apply(null,arguments)},s._ts_query_pattern_count=function(){return(s._ts_query_pattern_count=s.asm.ts_query_pattern_count).apply(null,arguments)},s._ts_query_capture_count=function(){return(s._ts_query_capture_count=s.asm.ts_query_capture_count).apply(null,arguments)},s._ts_query_string_count=function(){return(s._ts_query_string_count=s.asm.ts_query_string_count).apply(null,arguments)},s._ts_query_capture_name_for_id=function(){return(s._ts_query_capture_name_for_id=s.asm.ts_query_capture_name_for_id).apply(null,arguments)},s._ts_query_string_value_for_id=function(){return(s._ts_query_string_value_for_id=s.asm.ts_query_string_value_for_id).apply(null,arguments)},s._ts_query_predicates_for_pattern=function(){return(s._ts_query_predicates_for_pattern=s.asm.ts_query_predicates_for_pattern).apply(null,arguments)},s._ts_tree_copy=function(){return(s._ts_tree_copy=s.asm.ts_tree_copy).apply(null,arguments)},s._ts_tree_delete=function(){return(s._ts_tree_delete=s.asm.ts_tree_delete).apply(null,arguments)},s._ts_init=function(){return(s._ts_init=s.asm.ts_init).apply(null,arguments)},s._ts_parser_new_wasm=function(){return(s._ts_parser_new_wasm=s.asm.ts_parser_new_wasm).apply(null,arguments)},s._ts_parser_enable_logger_wasm=function(){return(s._ts_parser_enable_logger_wasm=s.asm.ts_parser_enable_logger_wasm).apply(null,arguments)},s._ts_parser_parse_wasm=function(){return(s._ts_parser_parse_wasm=s.asm.ts_parser_parse_wasm).apply(null,arguments)},s._ts_language_type_is_named_wasm=function(){return(s._ts_language_type_is_named_wasm=s.asm.ts_language_type_is_named_wasm).apply(null,arguments)},s._ts_language_type_is_visible_wasm=function(){return(s._ts_language_type_is_visible_wasm=s.asm.ts_language_type_is_visible_wasm).apply(null,arguments)},s._ts_tree_root_node_wasm=function(){return(s._ts_tree_root_node_wasm=s.asm.ts_tree_root_node_wasm).apply(null,arguments)},s._ts_tree_edit_wasm=function(){return(s._ts_tree_edit_wasm=s.asm.ts_tree_edit_wasm).apply(null,arguments)},s._ts_tree_get_changed_ranges_wasm=function(){return(s._ts_tree_get_changed_ranges_wasm=s.asm.ts_tree_get_changed_ranges_wasm).apply(null,arguments)},s._ts_tree_cursor_new_wasm=function(){return(s._ts_tree_cursor_new_wasm=s.asm.ts_tree_cursor_new_wasm).apply(null,arguments)},s._ts_tree_cursor_delete_wasm=function(){return(s._ts_tree_cursor_delete_wasm=s.asm.ts_tree_cursor_delete_wasm).apply(null,arguments)},s._ts_tree_cursor_reset_wasm=function(){return(s._ts_tree_cursor_reset_wasm=s.asm.ts_tree_cursor_reset_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_first_child_wasm=function(){return(s._ts_tree_cursor_goto_first_child_wasm=s.asm.ts_tree_cursor_goto_first_child_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_next_sibling_wasm=function(){return(s._ts_tree_cursor_goto_next_sibling_wasm=s.asm.ts_tree_cursor_goto_next_sibling_wasm).apply(null,arguments)},s._ts_tree_cursor_goto_parent_wasm=function(){return(s._ts_tree_cursor_goto_parent_wasm=s.asm.ts_tree_cursor_goto_parent_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_type_id_wasm=function(){return(s._ts_tree_cursor_current_node_type_id_wasm=s.asm.ts_tree_cursor_current_node_type_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_named_wasm=function(){return(s._ts_tree_cursor_current_node_is_named_wasm=s.asm.ts_tree_cursor_current_node_is_named_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_is_missing_wasm=function(){return(s._ts_tree_cursor_current_node_is_missing_wasm=s.asm.ts_tree_cursor_current_node_is_missing_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_id_wasm=function(){return(s._ts_tree_cursor_current_node_id_wasm=s.asm.ts_tree_cursor_current_node_id_wasm).apply(null,arguments)},s._ts_tree_cursor_start_position_wasm=function(){return(s._ts_tree_cursor_start_position_wasm=s.asm.ts_tree_cursor_start_position_wasm).apply(null,arguments)},s._ts_tree_cursor_end_position_wasm=function(){return(s._ts_tree_cursor_end_position_wasm=s.asm.ts_tree_cursor_end_position_wasm).apply(null,arguments)},s._ts_tree_cursor_start_index_wasm=function(){return(s._ts_tree_cursor_start_index_wasm=s.asm.ts_tree_cursor_start_index_wasm).apply(null,arguments)},s._ts_tree_cursor_end_index_wasm=function(){return(s._ts_tree_cursor_end_index_wasm=s.asm.ts_tree_cursor_end_index_wasm).apply(null,arguments)},s._ts_tree_cursor_current_field_id_wasm=function(){return(s._ts_tree_cursor_current_field_id_wasm=s.asm.ts_tree_cursor_current_field_id_wasm).apply(null,arguments)},s._ts_tree_cursor_current_node_wasm=function(){return(s._ts_tree_cursor_current_node_wasm=s.asm.ts_tree_cursor_current_node_wasm).apply(null,arguments)},s._ts_node_symbol_wasm=function(){return(s._ts_node_symbol_wasm=s.asm.ts_node_symbol_wasm).apply(null,arguments)},s._ts_node_child_count_wasm=function(){return(s._ts_node_child_count_wasm=s.asm.ts_node_child_count_wasm).apply(null,arguments)},s._ts_node_named_child_count_wasm=function(){return(s._ts_node_named_child_count_wasm=s.asm.ts_node_named_child_count_wasm).apply(null,arguments)},s._ts_node_child_wasm=function(){return(s._ts_node_child_wasm=s.asm.ts_node_child_wasm).apply(null,arguments)},s._ts_node_named_child_wasm=function(){return(s._ts_node_named_child_wasm=s.asm.ts_node_named_child_wasm).apply(null,arguments)},s._ts_node_child_by_field_id_wasm=function(){return(s._ts_node_child_by_field_id_wasm=s.asm.ts_node_child_by_field_id_wasm).apply(null,arguments)},s._ts_node_next_sibling_wasm=function(){return(s._ts_node_next_sibling_wasm=s.asm.ts_node_next_sibling_wasm).apply(null,arguments)},s._ts_node_prev_sibling_wasm=function(){return(s._ts_node_prev_sibling_wasm=s.asm.ts_node_prev_sibling_wasm).apply(null,arguments)},s._ts_node_next_named_sibling_wasm=function(){return(s._ts_node_next_named_sibling_wasm=s.asm.ts_node_next_named_sibling_wasm).apply(null,arguments)},s._ts_node_prev_named_sibling_wasm=function(){return(s._ts_node_prev_named_sibling_wasm=s.asm.ts_node_prev_named_sibling_wasm).apply(null,arguments)},s._ts_node_parent_wasm=function(){return(s._ts_node_parent_wasm=s.asm.ts_node_parent_wasm).apply(null,arguments)},s._ts_node_descendant_for_index_wasm=function(){return(s._ts_node_descendant_for_index_wasm=s.asm.ts_node_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_index_wasm=function(){return(s._ts_node_named_descendant_for_index_wasm=s.asm.ts_node_named_descendant_for_index_wasm).apply(null,arguments)},s._ts_node_descendant_for_position_wasm=function(){return(s._ts_node_descendant_for_position_wasm=s.asm.ts_node_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_named_descendant_for_position_wasm=function(){return(s._ts_node_named_descendant_for_position_wasm=s.asm.ts_node_named_descendant_for_position_wasm).apply(null,arguments)},s._ts_node_start_point_wasm=function(){return(s._ts_node_start_point_wasm=s.asm.ts_node_start_point_wasm).apply(null,arguments)},s._ts_node_end_point_wasm=function(){return(s._ts_node_end_point_wasm=s.asm.ts_node_end_point_wasm).apply(null,arguments)},s._ts_node_start_index_wasm=function(){return(s._ts_node_start_index_wasm=s.asm.ts_node_start_index_wasm).apply(null,arguments)},s._ts_node_end_index_wasm=function(){return(s._ts_node_end_index_wasm=s.asm.ts_node_end_index_wasm).apply(null,arguments)},s._ts_node_to_string_wasm=function(){return(s._ts_node_to_string_wasm=s.asm.ts_node_to_string_wasm).apply(null,arguments)},s._ts_node_children_wasm=function(){return(s._ts_node_children_wasm=s.asm.ts_node_children_wasm).apply(null,arguments)},s._ts_node_named_children_wasm=function(){return(s._ts_node_named_children_wasm=s.asm.ts_node_named_children_wasm).apply(null,arguments)},s._ts_node_descendants_of_type_wasm=function(){return(s._ts_node_descendants_of_type_wasm=s.asm.ts_node_descendants_of_type_wasm).apply(null,arguments)},s._ts_node_is_named_wasm=function(){return(s._ts_node_is_named_wasm=s.asm.ts_node_is_named_wasm).apply(null,arguments)},s._ts_node_has_changes_wasm=function(){return(s._ts_node_has_changes_wasm=s.asm.ts_node_has_changes_wasm).apply(null,arguments)},s._ts_node_has_error_wasm=function(){return(s._ts_node_has_error_wasm=s.asm.ts_node_has_error_wasm).apply(null,arguments)},s._ts_node_is_missing_wasm=function(){return(s._ts_node_is_missing_wasm=s.asm.ts_node_is_missing_wasm).apply(null,arguments)},s._ts_query_matches_wasm=function(){return(s._ts_query_matches_wasm=s.asm.ts_query_matches_wasm).apply(null,arguments)},s._ts_query_captures_wasm=function(){return(s._ts_query_captures_wasm=s.asm.ts_query_captures_wasm).apply(null,arguments)},s._iswdigit=function(){return(s._iswdigit=s.asm.iswdigit).apply(null,arguments)},s._iswalpha=function(){return(s._iswalpha=s.asm.iswalpha).apply(null,arguments)},s._iswlower=function(){return(s._iswlower=s.asm.iswlower).apply(null,arguments)},s._towupper=function(){return(s._towupper=s.asm.towupper).apply(null,arguments)},s.___errno_location=function(){return(Le=s.___errno_location=s.asm.__errno_location).apply(null,arguments)}),Be=(s._memchr=function(){return(s._memchr=s.asm.memchr).apply(null,arguments)},s._strlen=function(){return(s._strlen=s.asm.strlen).apply(null,arguments)},s.stackSave=function(){return(Be=s.stackSave=s.asm.stackSave).apply(null,arguments)}),Ve=s.stackRestore=function(){return(Ve=s.stackRestore=s.asm.stackRestore).apply(null,arguments)},Ue=s.stackAlloc=function(){return(Ue=s.stackAlloc=s.asm.stackAlloc).apply(null,arguments)},ze=s._setThrew=function(){return(ze=s._setThrew=s.asm.setThrew).apply(null,arguments)};function Ge(e){this.name="ExitStatus",this.message="Program terminated with exit("+e+")",this.status=e}s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9__grow_byEmmmmmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE6__initEPKcm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE7reserveEm).apply(null,arguments)},s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=function(){return(s.__ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm=s.asm._ZNKSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE4copyEPcmm).apply(null,arguments)},s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=function(){return(s.__ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc=s.asm._ZNSt3__212basic_stringIcNS_11char_traitsIcEENS_9allocatorIcEEE9push_backEc).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEED2Ev).apply(null,arguments)},s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=function(){return(s.__ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw=s.asm._ZNSt3__212basic_stringIwNS_11char_traitsIwEENS_9allocatorIwEEE9push_backEw).apply(null,arguments)},s.__Znwm=function(){return(s.__Znwm=s.asm._Znwm).apply(null,arguments)},s.__ZdlPv=function(){return(s.__ZdlPv=s.asm._ZdlPv).apply(null,arguments)},s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=function(){return(s.__ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv=s.asm._ZNKSt3__220__vector_base_commonILb1EE20__throw_length_errorEv).apply(null,arguments)},s._orig$ts_parser_timeout_micros=function(){return(s._orig$ts_parser_timeout_micros=s.asm.orig$ts_parser_timeout_micros).apply(null,arguments)},s._orig$ts_parser_set_timeout_micros=function(){return(s._orig$ts_parser_set_timeout_micros=s.asm.orig$ts_parser_set_timeout_micros).apply(null,arguments)},s.allocate=function(e,t){var r;return r=1==t?Ue(e.length):De(e.length),e.subarray||e.slice?C.set(e,r):C.set(new Uint8Array(e),r),r},ne=function e(){Te||We(),Te||(ne=e)};var Je=!1;function We(e){function t(){Te||(Te=!0,s.calledRun=!0,R||(te=!0,ye(Q),ye(Y),s.onRuntimeInitialized&&s.onRuntimeInitialized(),Ke&&function(e){var t=s._main;if(t){var r=(e=e||[]).length+1,n=Ue(4*(r+1));q[n>>2]=W(h);for(var i=1;i<r;i++)q[(n>>2)+i]=W(e[i-1]);q[(n>>2)+r]=0;try{He(t(r,n),!0)}catch(e){if(e instanceof Ge)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(s.postRun)for("function"==typeof s.postRun&&(s.postRun=[s.postRun]);s.postRun.length;)e=s.postRun.shift(),ee.unshift(e);var e;ye(ee)}()))}e=e||m,re>0||!Je&&(function(){if(P.length){if(!_)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()}(),Je=!0,re>0)||(function(){if(s.preRun)for("function"==typeof s.preRun&&(s.preRun=[s.preRun]);s.preRun.length;)e=s.preRun.shift(),X.unshift(e);var e;ye(X)}(),re>0||(s.setStatus?(s.setStatus("Running..."),setTimeout((function(){setTimeout((function(){s.setStatus("")}),1),t()}),1)):t()))}function He(e,t){t&&be()&&0===e||(be()||(s.onExit&&s.onExit(e),R=!0),d(e,new Ge(e)))}if(s.run=We,s.preInit)for("function"==typeof s.preInit&&(s.preInit=[s.preInit]);s.preInit.length>0;)s.preInit.pop()();var Ke=!0;s.noInitialRun&&(Ke=!1),We();const Ze=s,Xe={},Qe=4,Ye=5*Qe,et=2*Qe,tt=2*Qe+2*et,rt={row:0,column:0},st=/[\w-.]*/g,nt=/^_?tree_sitter_\w+/;var it,ot,ct,at,lt;class ut{static init(){ct=Ze._ts_init(),it=k(ct,"i32"),ot=k(ct+Qe,"i32")}initialize(){Ze._ts_parser_new_wasm(),this[0]=k(ct,"i32"),this[1]=k(ct+Qe,"i32")}delete(){Ze._ts_parser_delete(this[0]),Ze._free(this[1]),this[0]=0,this[1]=0}setLanguage(e){let t;if(e){if(e.constructor!==dt)throw new Error("Argument must be a Language");{t=e[0];const r=Ze._ts_language_version(t);if(r<ot||it<r)throw new Error(`Incompatible language version ${r}. Compatibility range ${ot} through ${it}.`)}}else t=0,e=null;return this.language=e,Ze._ts_parser_set_language(this[0],t),this}getLanguage(){return this.language}parse(e,t,r){if("string"==typeof e)at=(t,r,s)=>e.slice(t,s);else{if("function"!=typeof e)throw new Error("Argument must be a string or a function");at=e}this.logCallback?(lt=this.logCallback,Ze._ts_parser_enable_logger_wasm(this[0],1)):(lt=null,Ze._ts_parser_enable_logger_wasm(this[0],0));let s=0,n=0;if(r&&r.includedRanges){s=r.includedRanges.length;let e=n=Ze._calloc(s,tt);for(let t=0;t<s;t++)St(e,r.includedRanges[t]),e+=tt}const i=Ze._ts_parser_parse_wasm(this[0],this[1],t?t[0]:0,n,s);if(!i)throw at=null,lt=null,new Error("Parsing failed");const o=new pt(Xe,i,this.language,at);return at=null,lt=null,o}reset(){Ze._ts_parser_reset(this[0])}setTimeoutMicros(e){Ze._ts_parser_set_timeout_micros(this[0],e)}getTimeoutMicros(){return Ze._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 pt{constructor(e,t,r,s){gt(e),this[0]=t,this.language=r,this.textCallback=s}copy(){const e=Ze._ts_tree_copy(this[0]);return new pt(Xe,e,this.language,this.textCallback)}delete(){Ze._ts_tree_delete(this[0]),this[0]=0}edit(e){!function(e){let t=ct;xt(t,e.startPosition),xt(t+=et,e.oldEndPosition),xt(t+=et,e.newEndPosition),$(t+=et,e.startIndex,"i32"),$(t+=Qe,e.oldEndIndex,"i32"),$(t+=Qe,e.newEndIndex,"i32"),t+=Qe}(e),Ze._ts_tree_edit_wasm(this[0])}get rootNode(){return Ze._ts_tree_root_node_wasm(this[0]),Et(this)}getLanguage(){return this.language}walk(){return this.rootNode.walk()}getChangedRanges(e){if(e.constructor!==pt)throw new TypeError("Argument must be a Tree");Ze._ts_tree_get_changed_ranges_wasm(this[0],e[0]);const t=k(ct,"i32"),r=k(ct+Qe,"i32"),s=new Array(t);if(t>0){let e=r;for(let r=0;r<t;r++)s[r]=Pt(e),e+=tt;Ze._free(r)}return s}}class mt{constructor(e,t){gt(e),this.tree=t}get typeId(){return vt(this),Ze._ts_node_symbol_wasm(this.tree[0])}get type(){return this.tree.language.types[this.typeId]||"ERROR"}get endPosition(){return vt(this),Ze._ts_node_end_point_wasm(this.tree[0]),Ot(ct)}get endIndex(){return vt(this),Ze._ts_node_end_index_wasm(this.tree[0])}get text(){return yt(this.tree,this.startIndex,this.endIndex)}isNamed(){return vt(this),1===Ze._ts_node_is_named_wasm(this.tree[0])}hasError(){return vt(this),1===Ze._ts_node_has_error_wasm(this.tree[0])}hasChanges(){return vt(this),1===Ze._ts_node_has_changes_wasm(this.tree[0])}isMissing(){return vt(this),1===Ze._ts_node_is_missing_wasm(this.tree[0])}equals(e){return this.id===e.id}child(e){return vt(this),Ze._ts_node_child_wasm(this.tree[0],e),Et(this.tree)}namedChild(e){return vt(this),Ze._ts_node_named_child_wasm(this.tree[0],e),Et(this.tree)}childForFieldId(e){return vt(this),Ze._ts_node_child_by_field_id_wasm(this.tree[0],e),Et(this.tree)}childForFieldName(e){const t=this.tree.language.fields.indexOf(e);if(-1!==t)return this.childForFieldId(t)}get childCount(){return vt(this),Ze._ts_node_child_count_wasm(this.tree[0])}get namedChildCount(){return vt(this),Ze._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){vt(this),Ze._ts_node_children_wasm(this.tree[0]);const e=k(ct,"i32"),t=k(ct+Qe,"i32");if(this._children=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._children[t]=Et(this.tree,r),r+=Ye;Ze._free(t)}}return this._children}get namedChildren(){if(!this._namedChildren){vt(this),Ze._ts_node_named_children_wasm(this.tree[0]);const e=k(ct,"i32"),t=k(ct+Qe,"i32");if(this._namedChildren=new Array(e),e>0){let r=t;for(let t=0;t<e;t++)this._namedChildren[t]=Et(this.tree,r),r+=Ye;Ze._free(t)}}return this._namedChildren}descendantsOfType(e,t,r){Array.isArray(e)||(e=[e]),t||(t=rt),r||(r=rt);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=Ze._malloc(Qe*s.length);for(let e=0,t=s.length;e<t;e++)$(i+e*Qe,s[e],"i32");vt(this),Ze._ts_node_descendants_of_type_wasm(this.tree[0],i,s.length,t.row,t.column,r.row,r.column);const o=k(ct,"i32"),c=k(ct+Qe,"i32"),a=new Array(o);if(o>0){let e=c;for(let t=0;t<o;t++)a[t]=Et(this.tree,e),e+=Ye}return Ze._free(c),Ze._free(i),a}get nextSibling(){return vt(this),Ze._ts_node_next_sibling_wasm(this.tree[0]),Et(this.tree)}get previousSibling(){return vt(this),Ze._ts_node_prev_sibling_wasm(this.tree[0]),Et(this.tree)}get nextNamedSibling(){return vt(this),Ze._ts_node_next_named_sibling_wasm(this.tree[0]),Et(this.tree)}get previousNamedSibling(){return vt(this),Ze._ts_node_prev_named_sibling_wasm(this.tree[0]),Et(this.tree)}get parent(){return vt(this),Ze._ts_node_parent_wasm(this.tree[0]),Et(this.tree)}descendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=ct+Ye;return $(r,e,"i32"),$(r+Qe,t,"i32"),Ze._ts_node_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}namedDescendantForIndex(e,t=e){if("number"!=typeof e||"number"!=typeof t)throw new Error("Arguments must be numbers");vt(this);let r=ct+Ye;return $(r,e,"i32"),$(r+Qe,t,"i32"),Ze._ts_node_named_descendant_for_index_wasm(this.tree[0]),Et(this.tree)}descendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=ct+Ye;return xt(r,e),xt(r+et,t),Ze._ts_node_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}namedDescendantForPosition(e,t=e){if(!bt(e)||!bt(t))throw new Error("Arguments must be {row, column} objects");vt(this);let r=ct+Ye;return xt(r,e),xt(r+et,t),Ze._ts_node_named_descendant_for_position_wasm(this.tree[0]),Et(this.tree)}walk(){return vt(this),Ze._ts_tree_cursor_new_wasm(this.tree[0]),new ht(Xe,this.tree)}toString(){vt(this);const e=Ze._ts_node_to_string_wasm(this.tree[0]),t=function(e){for(var t="";;){var r=C[e++>>0];if(!r)return t;t+=String.fromCharCode(r)}}(e);return Ze._free(e),t}}class ht{constructor(e,t){gt(e),this.tree=t,jt(this)}delete(){wt(this),Ze._ts_tree_cursor_delete_wasm(this.tree[0]),this[0]=this[1]=this[2]=0}reset(e){vt(e),wt(this,ct+Ye),Ze._ts_tree_cursor_reset_wasm(this.tree[0]),jt(this)}get nodeType(){return this.tree.language.types[this.nodeTypeId]||"ERROR"}get nodeTypeId(){return wt(this),Ze._ts_tree_cursor_current_node_type_id_wasm(this.tree[0])}get nodeId(){return wt(this),Ze._ts_tree_cursor_current_node_id_wasm(this.tree[0])}get nodeIsNamed(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_named_wasm(this.tree[0])}get nodeIsMissing(){return wt(this),1===Ze._ts_tree_cursor_current_node_is_missing_wasm(this.tree[0])}get nodeText(){wt(this);const e=Ze._ts_tree_cursor_start_index_wasm(this.tree[0]),t=Ze._ts_tree_cursor_end_index_wasm(this.tree[0]);return yt(this.tree,e,t)}get startPosition(){return wt(this),Ze._ts_tree_cursor_start_position_wasm(this.tree[0]),Ot(ct)}get endPosition(){return wt(this),Ze._ts_tree_cursor_end_position_wasm(this.tree[0]),Ot(ct)}get startIndex(){return wt(this),Ze._ts_tree_cursor_start_index_wasm(this.tree[0])}get endIndex(){return wt(this),Ze._ts_tree_cursor_end_index_wasm(this.tree[0])}currentNode(){return wt(this),Ze._ts_tree_cursor_current_node_wasm(this.tree[0]),Et(this.tree)}currentFieldId(){return wt(this),Ze._ts_tree_cursor_current_field_id_wasm(this.tree[0])}currentFieldName(){return this.tree.language.fields[this.currentFieldId()]}gotoFirstChild(){wt(this);const e=Ze._ts_tree_cursor_goto_first_child_wasm(this.tree[0]);return jt(this),1===e}gotoNextSibling(){wt(this);const e=Ze._ts_tree_cursor_goto_next_sibling_wasm(this.tree[0]);return jt(this),1===e}gotoParent(){wt(this);const e=Ze._ts_tree_cursor_goto_parent_wasm(this.tree[0]);return jt(this),1===e}}class dt{constructor(e,t){gt(e),this[0]=t,this.types=new Array(Ze._ts_language_symbol_count(this[0]));for(let e=0,t=this.types.length;e<t;e++)Ze._ts_language_symbol_type(this[0],e)<2&&(this.types[e]=U(Ze._ts_language_symbol_name(this[0],e)));this.fields=new Array(Ze._ts_language_field_count(this[0])+1);for(let e=0,t=this.fields.length;e<t;e++){const t=Ze._ts_language_field_name_for_id(this[0],e);this.fields[e]=0!==t?U(t):null}}get version(){return Ze._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=J(e),s=Ze._malloc(r+1);G(e,s,r+1);const n=Ze._ts_language_symbol_for_name(this[0],s,r,t);return Ze._free(s),n||null}get nodeTypeCount(){return Ze._ts_language_symbol_count(this[0])}nodeTypeForId(e){const t=Ze._ts_language_symbol_name(this[0],e);return t?U(t):null}nodeTypeIsNamed(e){return!!Ze._ts_language_type_is_named_wasm(this[0],e)}nodeTypeIsVisible(e){return!!Ze._ts_language_type_is_visible_wasm(this[0],e)}query(e){const t=J(e),r=Ze._malloc(t+1);G(e,r,t+1);const s=Ze._ts_query_new(this[0],r,t,ct,ct+Qe);if(!s){const t=k(ct+Qe,"i32"),s=U(r,k(ct,"i32")).length,n=e.substr(s,100).split("\n")[0];let i,o=n.match(st)[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,Ze._free(r),i}const n=Ze._ts_query_string_count(s),i=Ze._ts_query_capture_count(s),o=Ze._ts_query_pattern_count(s),c=new Array(i),a=new Array(n);for(let e=0;e<i;e++){const t=Ze._ts_query_capture_name_for_id(s,e,ct),r=k(ct,"i32");c[e]=U(t,r)}for(let e=0;e<n;e++){const t=Ze._ts_query_string_value_for_id(s,e,ct),r=k(ct,"i32");a[e]=U(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=Ze._ts_query_predicates_for_pattern(s,e,ct),r=k(ct,"i32");m[e]=[],h[e]=[];const n=[];let i=t;for(let t=0;t<r;t++){const t=k(i,"i32"),r=k(i+=Qe,"i32");if(i+=Qe,1===t)n.push({type:"capture",name:c[r]});else if(2===t)n.push({type:"string",value:a[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;h[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;h[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);h[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 Ze._free(r),new ft(Xe,s,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 s=e;if("undefined"!=typeof process&&process.versions&&process.versions.node){const e=r(5530);t=Promise.resolve(e.readFileSync(s))}else t=fetch(s).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 s="function"==typeof loadSideModule?loadSideModule:Pe;return t.then((e=>s(e,{loadAsync:!0}))).then((e=>{const t=Object.keys(e),r=t.find((e=>nt.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 dt(Xe,s)}))}}class ft{constructor(e,t,r,s,n,i,o,c){gt(e),this[0]=t,this.captureNames=r,this.textPredicates=s,this.predicates=n,this.setProperties=i,this.assertedProperties=o,this.refutedProperties=c,this.exceededMatchLimit=!1}delete(){Ze._ts_query_delete(this[0]),this[0]=0}matches(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_matches_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=k(ct,"i32"),o=k(ct+Qe,"i32"),c=k(ct+2*Qe,"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"),s=k(u+=Qe,"i32");u+=Qe;const n=new Array(s);if(u=_t(this,e.tree,u,n),this.textPredicates[r].every((e=>e(n)))){a[l++]={pattern:r,captures:n};const e=this.setProperties[r];e&&(a[t].setProperties=e);const s=this.assertedProperties[r];s&&(a[t].assertedProperties=s);const i=this.refutedProperties[r];i&&(a[t].refutedProperties=i)}}return a.length=l,Ze._free(o),a}captures(e,t,r,s){t||(t=rt),r||(r=rt),s||(s={});let n=s.matchLimit;if(void 0===n)n=0;else if("number"!=typeof n)throw new Error("Arguments must be numbers");vt(e),Ze._ts_query_captures_wasm(this[0],e.tree[0],t.row,t.column,r.row,r.column,n);const i=k(ct,"i32"),o=k(ct+Qe,"i32"),c=k(ct+2*Qe,"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+=Qe,"i32"),s=k(u+=Qe,"i32");if(u+=Qe,l.length=r,u=_t(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),a.push(e)}}return Ze._free(o),a}predicatesForPattern(e){return this.predicates[e]}didExceedMatchLimit(){return this.exceededMatchLimit}}function yt(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 _t(e,t,r,s){for(let n=0,i=s.length;n<i;n++){const i=k(r,"i32"),o=Et(t,r+=Qe);r+=Ye,s[n]={name:e.captureNames[i],node:o}}return r}function gt(e){if(e!==Xe)throw new Error("Illegal constructor")}function bt(e){return e&&"number"==typeof e.row&&"number"==typeof e.column}function vt(e){let t=ct;$(t,e.id,"i32"),$(t+=Qe,e.startIndex,"i32"),$(t+=Qe,e.startPosition.row,"i32"),$(t+=Qe,e.startPosition.column,"i32"),$(t+=Qe,e[0],"i32")}function Et(e,t=ct){const r=k(t,"i32");if(0===r)return null;const s=k(t+=Qe,"i32"),n=k(t+=Qe,"i32"),i=k(t+=Qe,"i32"),o=k(t+=Qe,"i32"),c=new mt(Xe,e);return c.id=r,c.startIndex=s,c.startPosition={row:n,column:i},c[0]=o,c}function wt(e,t=ct){$(t+0*Qe,e[0],"i32"),$(t+1*Qe,e[1],"i32"),$(t+2*Qe,e[2],"i32")}function jt(e){e[0]=k(ct+0*Qe,"i32"),e[1]=k(ct+1*Qe,"i32"),e[2]=k(ct+2*Qe,"i32")}function xt(e,t){$(e,t.row,"i32"),$(e+Qe,t.column,"i32")}function Ot(e){return{row:k(e,"i32"),column:k(e+Qe,"i32")}}function St(e,t){xt(e,t.startPosition),xt(e+=et,t.endPosition),$(e+=et,t.startIndex,"i32"),$(e+=Qe,t.endIndex,"i32"),e+=Qe}function Pt(e){const t={};return t.startPosition=Ot(e),e+=et,t.endPosition=Ot(e),e+=et,t.startIndex=k(e,"i32"),e+=Qe,t.endIndex=k(e,"i32"),t}for(const e of Object.getOwnPropertyNames(ut.prototype))Object.defineProperty(i.prototype,e,{value:ut.prototype[e],enumerable:!1,writable:!1});i.Language=dt,s.onRuntimeInitialized=()=>{ut.init(),t()}})))}}return i}();e.exports=n},5530:()=>{},6287:()=>{}},t={};function r(s){var n=t[s];if(void 0!==n)return n.exports;var i=t[s]={id:s,loaded:!1,exports:{}};return e[s].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.d=(e,t)=>{for(var s in t)r.o(t,s)&&!r.o(e,s)&&Object.defineProperty(e,s,{enumerable:!0,get:t[s]})},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 s=t.getElementsByTagName("script");if(s.length)for(var n=s.length-1;n>-1&&!e;)e=s[n--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=e})();var s={};return(()=>{"use strict";r.r(s),r.d(s,{detect:()=>jy,detectionRegExp:()=>wy,mediaTypes:()=>Ey,namespace:()=>Oy,parse:()=>xy});var e={};r.r(e),r.d(e,{hasElementSourceMap:()=>es,includesClasses:()=>rs,includesSymbols:()=>ts,isAnnotationElement:()=>Kr,isArrayElement:()=>Gr,isBooleanElement:()=>Ur,isCommentElement:()=>Zr,isElement:()=>Dr,isLinkElement:()=>Wr,isMemberElement:()=>Jr,isNullElement:()=>Vr,isNumberElement:()=>Br,isObjectElement:()=>zr,isParseResultElement:()=>Xr,isPrimitiveElement:()=>Yr,isRefElement:()=>Hr,isSourceMapElement:()=>Qr,isStringElement:()=>Lr});var t={};r.r(t),r.d(t,{isJSONReferenceElement:()=>Mo,isJSONSchemaElement:()=>Io,isLinkDescriptionElement:()=>Co,isMediaElement:()=>No});var n={};r.r(n),r.d(n,{isOpenApi3_0LikeElement:()=>uc,isOpenApiExtension:()=>_c,isParameterLikeElement:()=>pc,isReferenceLikeElement:()=>mc,isRequestBodyLikeElement:()=>hc,isResponseLikeElement:()=>dc,isServerLikeElement:()=>fc,isTagLikeElement:()=>yc});var i={};r.r(i),r.d(i,{isBooleanJsonSchemaElement:()=>Fa,isCallbackElement:()=>oa,isComponentsElement:()=>ca,isContactElement:()=>aa,isExampleElement:()=>la,isExternalDocumentationElement:()=>ua,isHeaderElement:()=>pa,isInfoElement:()=>ma,isLicenseElement:()=>ha,isLinkElement:()=>da,isLinkElementExternal:()=>fa,isMediaTypeElement:()=>Ia,isOpenApi3_0Element:()=>_a,isOpenapiElement:()=>ya,isOperationElement:()=>ga,isParameterElement:()=>ba,isPathItemElement:()=>va,isPathItemElementExternal:()=>Ea,isPathsElement:()=>wa,isReferenceElement:()=>ja,isReferenceElementExternal:()=>xa,isRequestBodyElement:()=>Oa,isResponseElement:()=>Sa,isResponsesElement:()=>Pa,isSchemaElement:()=>Aa,isSecurityRequirementElement:()=>$a,isServerElement:()=>ka,isServerVariableElement:()=>Ra});var o={};r.r(o),r.d(o,{isBooleanJsonSchemaElement:()=>Ed,isCallbackElement:()=>Xh,isComponentsElement:()=>Qh,isContactElement:()=>Yh,isExampleElement:()=>ed,isExternalDocumentationElement:()=>td,isHeaderElement:()=>rd,isInfoElement:()=>sd,isJsonSchemaDialectElement:()=>nd,isLicenseElement:()=>id,isLinkElement:()=>od,isLinkElementExternal:()=>cd,isMediaTypeElement:()=>Od,isOpenApi3_1Element:()=>ld,isOpenapiElement:()=>ad,isOperationElement:()=>ud,isParameterElement:()=>pd,isPathItemElement:()=>md,isPathItemElementExternal:()=>hd,isPathsElement:()=>dd,isReferenceElement:()=>fd,isReferenceElementExternal:()=>yd,isRequestBodyElement:()=>_d,isResponseElement:()=>gd,isResponsesElement:()=>bd,isSchemaElement:()=>vd,isSecurityRequirementElement:()=>wd,isServerElement:()=>jd,isServerVariableElement:()=>xd});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,s){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(s)?t:l(r)?u((function(t){return e(t,s)})):l(s)?u((function(t){return e(r,t)})):e(r,s)}}}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 s=arguments[arguments.length-1];if(!m(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 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 _=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 g(e){return function(t){return new _(e,t)}}const b=p(h(["all"],g,(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,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,c){return t.apply(this,arguments)};case 8:return function(e,r,s,n,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,r,s,n,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,r,s,n,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 s=[],n=0,i=e,o=0;o<t.length||n<arguments.length;){var c;o<t.length&&(!l(t[o])||n>=arguments.length)?c=t[o]:(c=arguments[n],n+=1),s[o]=c,l(c)||(i-=1),o+=1}return i<=0?r.apply(this,s):v(i,E(e,s,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 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 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")}(),R=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||k?u((function(e){if(Object(e)!==e)return[];var t,r,s=[],n=k&&A(e);for(t in e)!O(t,e)||n&&"length"===t||(s[s.length]=t);if(F)for(r=$.length-1;r>=0;)O(t=$[r],e)&&!R(s,t)&&(s[s.length]=t),r-=1;return s})):u((function(e){return Object(e)!==e?[]:Object.keys(e)}));const M=u((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=j(e);function i(e,t){return C(e,t,r.slice(),s.slice())}return!x((function(e,t){return!x(i,t,e)}),j(t),n)}function C(e,t,r,s){if(S(e,t))return!0;var n,i,o=M(e);if(o!==M(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||!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 s[c]===t;c-=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 a=I(e);if(a.length!==I(t).length)return!1;var l=r.concat([e]),u=s.concat([t]);for(c=a.length-1;c>=0;){var p=a[c];if(!O(p,t)||!C(t[p],e[p],l,u))return!1;c-=1}return!0}const T=p((function(e,t){return C(e,t,[],[])}));function q(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(T(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function D(e,t){for(var r=0,s=t.length,n=Array(s);r<s;)n[r]=e(t[r]),r+=1;return n}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 U(e,t,r){for(var s=0,n=r.length;s<n;)t=e(t,r[s]),s+=1;return t}function z(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 J(e){return function(t){return new G(e,t)}}const W=p(h(["fantasy-land/filter","filter"],J,(function(e,t){return z(t)?U((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 H=p((function(e,t){return W((r=e,function(){return!r.apply(this,arguments)}),t);var r}));function K(e,t){var r=function(r){var s=t.concat([e]);return q(r,s)?"<Circular>":K(r,s)},s=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(s(e,H((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):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 n=e.toString();if("[object Object]"!==n)return n}return"{"+s(e,I(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 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=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=p(h(["fantasy-land/map","map"],(function(e){return function(t){return new Q(e,t)}}),(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 U((function(r,s){return r[s]=e(t[s]),r}),{},I(t));default:return D(e,t)}}))),ee=Number.isInteger||function(e){return e<<0===e};function te(e){return"[object String]"===Object.prototype.toString.call(e)}const re=p((function(e,t){var r=e<0?t.length+e:e;return te(t)?t.charAt(r):t[r]}));const se=p((function(e,t){if(null!=t)return ee(e)?re(e,t):t[e]}));const ne=p((function(e,t){return Y(se(e),t)}));function ie(e){return function t(r,s,n){switch(arguments.length){case 0:return t;case 1:return l(r)?t:p((function(t,s){return e(r,t,s)}));case 2:return l(r)&&l(s)?t:l(r)?p((function(t,r){return e(t,s,r)})):l(s)?p((function(t,s){return e(r,t,s)})):u((function(t){return e(r,s,t)}));default:return l(r)&&l(s)&&l(n)?t:l(r)&&l(s)?p((function(t,r){return e(t,r,n)})):l(r)&&l(n)?p((function(t,r){return e(t,s,r)})):l(s)&&l(n)?p((function(t,s){return e(r,t,s)})):l(r)?u((function(t){return e(t,s,n)})):l(s)?u((function(t){return e(r,t,n)})):l(n)?u((function(t){return e(r,s,t)})):e(r,s,n)}}}const oe=u((function(e){return!!m(e)||!!e&&("object"==typeof e&&(!te(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var ce="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function ae(e,t,r){return function(s,n,i){if(oe(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[ce])return r(s,n,i[ce]());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 le(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 ue=p((function(e,t){return v(e.length,(function(){return e.apply(t,arguments)}))}));function pe(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 me(e,t,r,s){return e["@@transducer/result"](r[s](ue(e["@@transducer/step"],e),t))}const he=ae(le,me,pe);var de=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 fe=ie((function(e,t,r){return he("function"==typeof e?new de(e):e,t,r)}));const ye=u((function(e){return w(fe(X,0,ne("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=u((function(e){return function(){return e}}));const ge=u((function(e){return w(fe(X,0,ne("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 be(e,t,r){for(var s=r.next();!s.done;)t=e(t,s.value),s=r.next();return t}function ve(e,t,r,s){return r[s](e,t)}const Ee=ae(U,ve,be);const we=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))}:Ee((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,Y(r,t))}),[],e)}));const je=p((function(e,t){return e.apply(this,t)}));function xe(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Oe=p((function(e,t){return e&&t}));const Se=p((function(e,t){var r=w(e,t);return w(e,(function(){return U(we,Y(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const Pe=u((function(e){return Se(e.length,e)}));const Ae=p((function(e,t){return xe(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Pe(Oe)(e,t)}));const Fe=u((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const $e=Pe(u((function(e){return!e})));function ke(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function Re(e,t){return function(){var r=arguments.length;if(0===r)return t();var s=arguments[r-1];return m(s)||"function"!=typeof s[e]?t.apply(this,arguments):s[e].apply(s,Array.prototype.slice.call(arguments,0,r-1))}}const Ie=ie(Re("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const Me=u(Re("tail",Ie(1,1/0)));function Ne(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return v(arguments[0].length,fe(ke,arguments[0],Me(arguments)))}const Ce=u((function(e){return w(e.length,e)}));const Te=p((function(e,t){return null==t||t!=t?e:t}));function qe(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?!!q(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?!!q(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const De=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!qe(e,!0,this)},e.prototype.has=function(e){return qe(e,!1,this)},e}();const Le=p((function(e,t){for(var r=[],s=0,n=e.length,i=t.length,o=new De,c=0;c<i;c+=1)o.add(t[c]);for(;s<n;)o.add(e[s])&&(r[r.length]=e[s]),s+=1;return r}));var Be=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 Ve(e){return function(t){return new Be(e,t)}}const Ue=p(h(["take"],Ve,(function(e,t){return Ie(0,e<0?1/0:e,t)})));var ze=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 Ge(e){return function(t){return new ze(e,t)}}const Je=p(h(["dropWhile"],Ge,(function(e,t){for(var r=0,s=t.length;r<s&&e(t[r]);)r+=1;return Ie(r,1/0,t)})));const We=p((function(e,t){return e||t}));const He=p((function(e,t){return xe(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Pe(We)(e,t)}));var Ke=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)?[]:te(e)?"":z(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 Ze=Ke;const Xe=u((function(e){return w(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 Qe=u((function(e){return null==e}));const Ye=p((function(e,t){if(0===e.length||Qe(t))return!1;for(var r=t,s=0;s<e.length;){if(Qe(r)||!O(e[s],r))return!1;r=r[e[s]],s+=1}return!0}));const et=p((function(e,t){return Ye([e],t)}));const tt=p((function(e,t){return!Qe(t)&&e in t}));const rt=re(0);var st=function(e,t){switch(arguments.length){case 0:return st;case 1:return function t(r){return 0===arguments.length?t:S(e,r)};default:return S(e,t)}};const nt=st;const it=ie((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 ot=p(q);const ct=Ie(0,-1);"function"==typeof Object.assign&&Object.assign;const at=p((function(e,t){return w(e+1,(function(){var r=arguments[e];if(null!=r&&xe(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 lt=u((function(e){return null!=e&&T(e,Ze(e))}));const ut=at(1,"join");const pt=re(-1);const mt=p((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=ee(r)?re(r,s):s[r],n+=1}return s}))}));const ht=p((function(e,t){return mt([e],t)[0]}));const dt=p((function(e,t){return U((function(r,s){return r[s]=e(t[s],s,t),r}),{},I(t))}));const ft=p((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 yt=ie((function(e,t,r){return e(ht(t,r))}));const _t=p((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 gt=ie((function(e,t,r){return Te(e,se(t,r))}));const bt=ie((function(e,t,r){return e(se(t,r))}));function vt(e){return"[object Number]"===Object.prototype.toString.call(e)}const Et=p((function(e,t){if(!vt(e)||!vt(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 wt=u(d);var jt=p((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const xt=jt;const Ot=at(1,"split");const St=p((function(e,t){return T(Ue(e.length,t),e)}));const Pt=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 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 At="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;const Ft=_e(void 0);const $t=T(Ft());const kt=$e($t);var Rt=r(7952);const It=T(null);const Mt=$e(It);function Nt(e){return Nt="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},Nt(e)}const Ct=function(e){return"object"===Nt(e)};const Tt=w(1,Ae(Mt,Ct));const qt=w(1,Ne(M,nt("GeneratorFunction")));const Dt=w(1,Ne(M,nt("AsyncFunction")));const Lt=ge([Ne(M,nt("Function")),qt,Dt]);var Bt=Ne(M,nt("Object")),Vt=Ne(Z,T(Z(Object))),Ut=yt(Ae(Lt,Vt),["constructor"]);const zt=w(1,(function(e){if(!Tt(e)||!Bt(e))return!1;var t=Object.getPrototypeOf(e);return!!It(t)||Ut(t)}));class Gt extends Rt.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 Jt=Gt;class Wt extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const Ht=Wt;class Kt extends Rt.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($t(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const Zt=Kt;class Xt extends Rt.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 Rt.ON([e.start.row,e.start.column,e.start.char]),r=new Rt.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Qt=Xt;class Yt extends Rt.lS{constructor(){super(),this.register("annotation",Jt),this.register("comment",Ht),this.register("parseResult",Zt),this.register("sourceMap",Qt)}}const er=new Yt,tr=e=>{const t=new Yt;return zt(e)&&t.use(e),t},rr=er;const sr=w(1,Ne(M,nt("String"))),nr=r.p+"23aac571c96605dc25219087ad291441.wasm",ir=globalThis.fetch;Lt(ir)&&(globalThis.fetch=(...e)=>sr(e[0])&&e[0].endsWith("tree-sitter.wasm")?ir.apply(globalThis,[nr,Me(e)]):ir.apply(globalThis,e));var or=r(9794);class cr extends AggregateError{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,zt(r)&&tt("cause",r)&&!tt("cause",this)){const{cause:e}=r;this.cause=e,e instanceof Error&&tt("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const ar=cr;class lr extends Error{static[Symbol.hasInstance](e){return Function.prototype[Symbol.hasInstance].call(lr,e)||Function.prototype[Symbol.hasInstance].call(ar,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,zt(t)&&tt("cause",t)&&!tt("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&tt("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const ur=lr,pr=r.p+"7c7ca323880d9fa6e48d1d1b2e78e140.wasm";let mr=null,hr=null;const dr=async e=>{if(null===mr&&null===hr)hr=or.init().then((()=>or.Language.load(pr))).then((e=>{const t=new or;return t.setLanguage(e),t})).finally((()=>{hr=null})),mr=await hr;else if(null===mr&&null!==hr)mr=await hr;else if(null===mr)throw new ur("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return mr.parse(e)};var fr=r(229),yr=r(2185),_r=r(9982);function gr(e){return gr="function"==typeof yr&&"symbol"==typeof _r?function(e){return typeof e}:function(e){return e&&"function"==typeof yr&&e.constructor===yr&&e!==yr.prototype?"symbol":typeof e},gr(e)}var br=r(8241);function vr(e){var t=function(e,t){if("object"!==gr(e)||null===e)return e;var r=e[br];if(void 0!==r){var s=r.call(e,t||"default");if("object"!==gr(s))return s;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 Er(e,t,r){return(t=vr(t))in e?fr(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const wr=(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},jr={},xr=e=>null==e?void 0:e.type,Or=e=>"string"==typeof xr(e),Sr=(e,t,{keyMap:r=null,state:s={},breakSymbol:n=jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=wr,nodeTypeGetter:a=xr,nodePredicate:l=Or,detectCycles:u=!0}={})=>{const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,_=[];const g=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==_.length;if(e){if(r=0===b.length?void 0:g.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<_.length;t+=1){let r=_[t][0];const s=_[t][1];d&&(r-=e),d&&s===i?(E.splice(r,1),e+=1):E[r]=s}}y=m.index,f=m.keys,_=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&&g.push(r)}if(b.includes(E))continue;let j;if(!Array.isArray(E)){if(!l(E))throw new ur(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){g.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;if(j=i.call(t,E,r,h,g,b),j===n)break;if(j===o){if(!e){g.pop();continue}}else if(void 0!==j&&(_.push([r,j]),!e)){if(!l(j)){g.pop();continue}E=j}}}void 0===j&&w&&_.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:_,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,_=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==_.length&&([,v]=_[_.length-1]),v};Sr[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:s={},breakSymbol:n=jr,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=wr,nodeTypeGetter:a=xr,nodePredicate:l=Or,detectCycles:u=!0}={})=>{const p=r||{};let m,h,d=Array.isArray(e),f=[e],y=-1,_=[];const g=[],b=[];let v=e;do{y+=1;const e=y===f.length;let r,E;const w=e&&0!==_.length;if(e){if(r=0===b.length?void 0:g.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<_.length;t+=1){let r=_[t][0];const s=_[t][1];d&&(r-=e),d&&s===i?(E.splice(r,1),e+=1):E[r]=s}}y=m.index,f=m.keys,_=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&&g.push(r)}let j;if(!Array.isArray(E)){if(!l(E))throw new ur(`Invalid AST Node: ${JSON.stringify(E)}`);if(u&&b.includes(E)){g.pop();continue}const i=c(t,a(E),e);if(i){for(const[e,r]of Object.entries(s))t[e]=r;if(j=await i.call(t,E,r,h,g,b),j===n)break;if(j===o){if(!e){g.pop();continue}}else if(void 0!==j&&(_.push([r,j]),!e)){if(!l(j)){g.pop();continue}E=j}}}void 0===j&&w&&_.push([r,E]),e||(m={inArray:d,index:y,keys:f,edits:_,prev:m},d=Array.isArray(E),f=d?E:p[a(E)]||[],y=-1,_=[],h&&b.push(h),h=E)}while(void 0!==m);return 0!==_.length&&([,v]=_[_.length-1]),v};var Pr=r(5090),Ar=r(2747),Fr=r(5483);function $r(e,t){if(null==e)return{};var r,s,n=function(e,t){if(null==e)return{};var r,s,n={},i=Fr(e);for(s=0;s<i.length;s++)r=i[s],Ar(t).call(t,r)>=0||(n[r]=e[r]);return n}(e,t);if(Pr){var i=Pr(e);for(s=0;s<i.length;s++)r=i[s],Ar(t).call(t,r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}var kr=r(6591);const Rr=Xe(ot),Ir=(e,t)=>"function"==typeof(null==t?void 0:t[e]),Mr=e=>null!=e&&Object.prototype.hasOwnProperty.call(e,"_storedElement")&&Object.prototype.hasOwnProperty.call(e,"_content"),Nr=(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,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},Tr=(e,t)=>(null==t?void 0:t.element)===e,qr=e=>e({hasMethod:Ir,hasBasicElementProps:Mr,primitiveEq:Nr,isElementType:Tr,hasClass:Cr}),Dr=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.W_||e(r)&&t(void 0,r))),Lr=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.RP||e(r)&&t("string",r))),Br=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.VL||e(r)&&t("number",r))),Vr=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.zr||e(r)&&t("null",r))),Ur=qr((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Rt.hh||e(r)&&t("boolean",r))),zr=qr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Rt.Sb||e(s)&&t("object",s)&&r("keys",s)&&r("values",s)&&r("items",s))),Gr=qr((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>s=>s instanceof Rt.ON&&!(s instanceof Rt.Sb)||e(s)&&t("array",s)&&r("push",s)&&r("unshift",s)&&r("map",s)&&r("reduce",s))),Jr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rt.c6||e(s)&&t("member",s)&&r(void 0,s))),Wr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rt.EA||e(s)&&t("link",s)&&r(void 0,s))),Hr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rt.tK||e(s)&&t("ref",s)&&r(void 0,s))),Kr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jt||e(s)&&t("annotation",s)&&r("array",s))),Zr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ht||e(s)&&t("comment",s)&&r("string",s))),Xr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zt||e(s)&&t("parseResult",s)&&r("array",s))),Qr=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qt||e(s)&&t("sourceMap",s)&&r("array",s))),Yr=e=>Tr("object",e)||Tr("array",e)||Tr("boolean",e)||Tr("number",e)||Tr("string",e)||Tr("null",e)||Tr("member",e),es=e=>{var t,r;return Qr(null==e||null===(t=e.meta)||void 0===t||null===(r=t.get)||void 0===r?void 0:r.call(t,"sourceMap"))},ts=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Gr(r)&&b(Rr(r.toValue()),e)},rs=(e,t)=>0===e.length||b(Rr(t.classes.toValue()),e),ss=["keyMap"],ns=["keyMap"];function is(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 os(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?is(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):is(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const cs=e=>zr(e)?"ObjectElement":Gr(e)?"ArrayElement":Jr(e)?"MemberElement":Lr(e)?"StringElement":Ur(e)?"BooleanElement":Br(e)?"NumberElement":Vr(e)?"NullElement":Wr(e)?"LinkElement":Hr(e)?"RefElement":void 0,as=Ne(cs,sr),ls={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},us=(kr({props:{result:[],predicate:c,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){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}}}),(e,t,r={})=>{let{keyMap:s=ls}=r,n=$r(r,ss);return Sr(e,t,os({keyMap:s,nodeTypeGetter:cs,nodePredicate:as},n))});us[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{let{keyMap:s=ls}=r,n=$r(r,ns);return Sr[Symbol.for("nodejs.util.promisify.custom")](e,t,os({keyMap:s,nodeTypeGetter:cs,nodePredicate:as},n))};const ps=$e(Lt);const ms=w(1,Lt(Array.isArray)?Array.isArray:Ne(M,nt("Array")));const hs=Ae(ms,lt);const ds=w(3,(function(e,t,r){var s=ht(e,r),n=ht(ct(e),r);if(!ps(s)&&!hs(e)){var i=ue(s,n);return je(i,t)}}));function fs(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 ys=()=>({predicates:function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?fs(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):fs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({},e),namespace:rr}),_s=(e,t,r={})=>{if(0===t.length)return e;const s=gt(ys,"toolboxCreator",r),n=gt({},"visitorOptions",r),i=gt(cs,"nodeTypeGetter",n),o=s(),c=t.map((e=>e(o))),a=((e,{visitFnGetter:t=wr,nodeTypeGetter:r=xr}={})=>{const s=new Array(e.length);return{enter(n,...i){for(let o=0;o<e.length;o+=1)if(null==s[o]){const c=t(e[o],r(n),!1);if("function"==typeof c){const t=c.call(e[o],n,...i);if(!1===t)s[o]=n;else if(t===jr)s[o]=jr;else if(void 0!==t)return t}}},leave(n,...i){for(let o=0;o<e.length;o+=1)if(null==s[o]){const c=t(e[o],r(n),!0);if("function"==typeof c){const t=c.call(e[o],n,...i);if(t===jr)s[o]=jr;else if(void 0!==t&&!1!==t)return t}}else s[o]===n&&(s[o]=null)}}})(c.map(gt({},"visitor")),{nodeTypeGetter:i});c.forEach(ds(["pre"],[]));const l=us(e,a,n);return c.forEach(ds(["post"],[])),l};function gs(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 bs(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gs(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gs(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const vs=(e,{Type:t,plugins:r=[]})=>{const s=new t(e);return _s(s,r,{toolboxCreator:ys,visitorOptions:{nodeTypeGetter:cs}})},Es=e=>(t,r={})=>vs(t,bs(bs({},r),{},{Type:e}));Rt.Sb.refract=Es(Rt.Sb),Rt.ON.refract=Es(Rt.ON),Rt.RP.refract=Es(Rt.RP),Rt.hh.refract=Es(Rt.hh),Rt.zr.refract=Es(Rt.zr),Rt.VL.refract=Es(Rt.VL),Rt.EA.refract=Es(Rt.EA),Rt.tK.refract=Es(Rt.tK),Jt.refract=Es(Jt),Ht.refract=Es(Ht),Zt.refract=Es(Zt),Qt.refract=Es(Qt);const ws=class{constructor(e){Er(this,"type",void 0),Er(this,"startPosition",void 0),Er(this,"endPosition",void 0),Er(this,"startIndex",void 0),Er(this,"endIndex",void 0),Er(this,"text",void 0),Er(this,"isNamed",void 0),Er(this,"isMissing",void 0),Er(this,"fieldName",void 0),Er(this,"hasError",!1),Er(this,"children",[]),this.type=e.nodeType,this.startPosition=e.startPosition,this.endPosition=e.endPosition,this.startIndex=e.startIndex,this.endIndex=e.endIndex,this.text=e.nodeText,this.isNamed=e.nodeIsNamed,this.isMissing=e.nodeIsMissing}get keyNode(){if("pair"===this.type)return this.children.find((e=>"key"===e.fieldName))}get valueNode(){if("pair"===this.type)return this.children.find((e=>"value"===e.fieldName))}setFieldName(e){return"function"==typeof e.currentFieldName?this.fieldName=e.currentFieldName():this.fieldName=e.currentFieldName,this}setHasError(e){return"function"==typeof e.currentNode?this.hasError=e.currentNode().hasError():this.hasError=e.currentNode.hasError(),this}pushChildren(...e){this.children.push(...e)}},js=kr({props:{sourceMap:!1,annotations:[]},init(){this.annotations=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Qt,s=(e=>{const t=new Rt.ON([e.startPosition.row,e.startPosition.column,e.startIndex]),r=new Rt.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)};this.enter=function(t){if(t instanceof ws&&!t.isNamed&&t.isMissing){const r=t.type||t.text,s=new Jt(`(Missing ${r})`);s.classes.push("warning"),e(t,s),this.annotations.push(s)}return null},this.document=function(t){const r=new Zt;return r._content=t.children,e(t,r),r},this.ParseResultElement={leave(e){const t=e.findElements(Yr);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 Rt.Sb;return r._content=t.children,e(t,r),r},this.array=function(t){const r=new Rt.ON;return r._content=t.children,e(t,r),r},this.pair=function(t){const r=new Rt.c6;return r.content.key=t.keyNode,r.content.value=t.valueNode,e(t,r),t.children.length>3&&t.children.filter((e=>"ERROR"===e.type)).forEach((e=>{this.ERROR(e,t,[],[t])})),r},this.string=function(t){const r=new Rt.RP(JSON.parse(t.text));return e(t,r),r},this.number=function(t){const r=new Rt.VL(Number(t.text));return e(t,r),r},this.null=function(t){const r=new Rt.zr;return e(t,r),r},this.true=function(t){const r=new Rt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Rt.hh(!1);return e(t,r),r},this.ERROR=function(t,r,s,n){const i=!t.hasError,o=t.text,c=new Jt(i?`(Unexpected ${o})`:`(Error ${o})`);if(c.classes.push("error"),e(t,c),0===n.length){const e=new Zt;return e.push(c),e}return this.annotations.push(c),null}}});let xs;xs=Symbol.iterator;class Os{constructor(e){Er(this,"cursor",void 0),this.cursor=e}document(){return new ws(this.cursor)}object(){return new ws(this.cursor).setFieldName(this.cursor)}array(){return new ws(this.cursor).setFieldName(this.cursor)}pair(){return new ws(this.cursor)}string(){return new ws(this.cursor).setFieldName(this.cursor)}number(){return new ws(this.cursor).setFieldName(this.cursor)}null(){return new ws(this.cursor).setFieldName(this.cursor)}true(){return new ws(this.cursor).setFieldName(this.cursor)}false(){return new ws(this.cursor).setFieldName(this.cursor)}ERROR(){return new ws(this.cursor).setHasError(this.cursor)}*[xs](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new ws(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Os(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Os(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const Ss=Os;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}const As=function(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){Er(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}({document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},ls),Fs=e=>Xr(e)?"ParseResultElement":Dr(e)?cs(e):xr(e),$s=e=>Dr(e)||Or(e),ks=(e,{sourceMap:t=!1}={})=>{const r=js(),s=e.walk(),n=[...new Ss(s)].at(0);return Sr(n,r,{keyMap:As,nodeTypeGetter:Fs,nodePredicate:$s,state:{sourceMap:t}})},Rs=kr({statics:{type:"point"},props:{type:"point",row:null,column:null,char:null},init({row:e=null,column:t=null,char:r=null}={}){this.row=e,this.column=t,this.char=r}}),Is=kr({statics:{type:"position"},props:{type:"position",start:null,end:null},init({start:e=null,end:t=null}={}){this.start=e,this.end=t}}),Ms=kr({props:{type:null,position:null,children:[]},init({children:e=[],position:t=null,isMissing:r=!1}={},{stamp:s={}}){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}}}),Ns=kr(Ms,{statics:{type:"literal"},props:{value:null},init({value:e=null}={}){this.value=e}}),Cs=kr(Ms),Ts=kr(Cs,{statics:{type:"document"},methods:{get child(){return rt(this.children)}}}),qs=kr(Ms,{statics:{type:"parseResult"},methods:{get rootNode(){return rt(this.children)}}}),Ds=(e,t)=>(null==t?void 0:t.type)===e,Ls=(Ds.bind(void 0,"literal"),Ds.bind(void 0,"position"),Ds.bind(void 0,"point"),Ds.bind(void 0,"parseResult"),Ds.bind(void 0,"document"),Ds.bind(void 0,"string")),Bs=Ds.bind(void 0,"false"),Vs=Ds.bind(void 0,"true"),Us=Ds.bind(void 0,"null"),zs=Ds.bind(void 0,"number"),Gs=Ds.bind(void 0,"array"),Js=Ds.bind(void 0,"object"),Ws=Ds.bind(void 0,"stringContent"),Hs=Ds.bind(void 0,"escapeSequence"),Ks=Ds.bind(void 0,"property"),Zs=Ds.bind(void 0,"key"),Xs=kr(Cs,{statics:{type:"object"},methods:{get properties(){return this.children.filter(Ks)}}}),Qs=kr(Cs,{statics:{type:"string"},methods:{get value(){return 1===this.children.length?this.children[0].value:this.children.filter((e=>Ws(e)||Hs(e))).reduce(((e,t)=>e+t.value),"")}}}),Ys=kr(Qs,{statics:{type:"key"}}),en=kr(Cs,{statics:{type:"property"},methods:{get key(){return this.children.find(Zs)},get value(){return this.children.find((e=>Bs(e)||Vs(e)||Us(e)||zs(e)||Ls(e)||Gs(e)||Js(e)))}}}),tn=kr(Cs,{statics:{type:"array"},methods:{get items(){return this.children.filter((e=>Bs(e)||Vs(e)||Us(e)||zs(e)||Ls(e)||Gs(e)||Js))}}}),rn=kr(Cs,{statics:{type:"value"},props:{value:null},init({value:e=null}={}){this.value=e}}),sn=kr(rn,{statics:{type:"stringContent"}}),nn=kr(rn,{statics:{type:"number"}}),on=kr(rn,{statics:{type:"null"}}),cn=kr(rn,{statics:{type:"true"}}),an=kr(rn,{statics:{type:"false"}}),ln=kr(Ms,{statics:{type:"error"},props:{value:null,isUnexpected:!1},init({value:e=null,isUnexpected:t=!1}={}){this.value=e,this.isUnexpected=t}}),un={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]},pn=kr({init(){const e=e=>{const t=Rs({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),r=Rs({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return Is({start:t,end:r})};this.enter=function(t){if(t instanceof ws&&!t.isNamed){const r=e(t),s=t.type||t.text,{isMissing:n}=t;return Ns({value:s,position:r,isMissing:n})}},this.document={enter(t){const r=e(t);return Ts({children:t.children,position:r,isMissing:t.isMissing})},leave:e=>qs({children:[e]})},this.object=function(t){const r=e(t);return Xs({children:t.children,position:r,isMissing:t.isMissing})},this.pair=function(t){const r=e(t),s=t.children.slice(1),{keyNode:n}=t,i=Ys({children:(null==n?void 0:n.children)||[],position:null!=n?e(n):null,isMissing:null!=n&&n.isMissing});return en({children:[i,...s],position:r,isMissing:t.isMissing})},this.array=function(t){const r=e(t);return tn({children:t.children,position:r,isMissing:t.isMissing})},this.string=function(t){const r=e(t),s=sn({value:JSON.parse(t.text)});return Qs({children:[s],position:r,isMissing:t.isMissing})},this.number=function(t){const r=e(t),s=t.text;return nn({value:s,position:r,isMissing:t.isMissing})},this.null=function(t){const r=e(t),s=t.text;return on({value:s,position:r,isMissing:t.isMissing})},this.true=function(t){const r=e(t),s=t.text;return cn({value:s,position:r,isMissing:t.isMissing})},this.false=function(t){const r=e(t),s=t.text;return an({value:s,position:r,isMissing:t.isMissing})},this.ERROR=function(t,r,s,n){const i=e(t),o=ln({children:t.children,position:i,isUnexpected:!t.hasError,isMissing:t.isMissing,value:t.text});return 0===n.length?qs({children:[o]}):o}}});function mn(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 hn=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?mn(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):mn(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({[qs.type]:["children"],[Ts.type]:["children"],[Xs.type]:["children"],[en.type]:["children"],[tn.type]:["children"],[ln.type]:["children"]},ls),dn=e=>Xr(e)?"ParseResultElement":Dr(e)?cs(e):xr(e),fn=e=>Dr(e)||Or(e),yn=kr({props:{sourceMap:!1,annotations:[]},init(){this.annotation=[];const e=(e,t)=>{if(!this.sourceMap)return;const r=new Qt;r.position=e.position,r.astNode=e,t.meta.set("sourceMap",r)};this.document=function(e){const t=new Zt;return t._content=e.children,t},this.ParseResultElement={leave(e){const t=e.findElements(Yr);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 Rt.Sb;return r._content=t.children,e(t,r),r},this.property=function(t){const r=new Rt.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 Rt.RP(t.value);return e(t,r),r},this.array=function(t){const r=new Rt.ON;return r._content=t.children,e(t,r),r},this.string=function(t){const r=new Rt.RP(t.value);return e(t,r),r},this.number=function(t){const r=new Rt.VL(Number(t.value));return e(t,r),r},this.null=function(t){const r=new Rt.zr;return e(t,r),r},this.true=function(t){const r=new Rt.hh(!0);return e(t,r),r},this.false=function(t){const r=new Rt.hh(!1);return e(t,r),r},this.literal=function(t){if(t.isMissing){const r=`(Missing ${t.value})`,s=new Jt(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 Jt(i);if(o.classes.push("error"),e(t,o),0===n.length){const e=new Zt;return e.push(o),e}return this.annotations.push(o),null}}}),_n=(e,{sourceMap:t=!1}={})=>{const r=e.walk(),s=[...new Ss(r)].at(0),n=pn(),i=yn(),o=Sr(s,n,{keyMap:un,state:{sourceMap:t}});return Sr(o.rootNode,i,{keyMap:hn,nodeTypeGetter:dn,nodePredicate:fn,state:{sourceMap:t}})},gn=(tr(),/(?<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 bn extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const vn=bn;class En extends Rt.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 wn=En;class jn extends Rt.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 xn=jn;class On extends Rt.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 Sn=On;class Pn extends Rt.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 An=Pn;class Fn extends Rt.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 $n=Fn;class kn extends Rt.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 Rn=kn;class In extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.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(In.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Mn=In;class Nn extends Rt.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 Cn=Nn;class Tn extends Rt.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 qn=Tn;class Dn extends Rt.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 Lr(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Lr(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 Ln=Dn;class Bn extends Rt.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 Vn=Bn;class Un extends Rt.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 zn=Un;class Gn extends Rt.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 Jn=Gn;class Wn extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Hn=Wn;class Kn extends Rt.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 Zn=Kn;class Xn extends Rt.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 Rt.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 Qn=Xn;class Yn extends Rt.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 Rt.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Rt.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(Yn.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ei=Yn;class ti extends Rt.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 ri=ti;class si extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const ni=si;class ii extends Rt.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 oi=ii;class ci extends Rt.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 Rt.hh(!1)}set required(e){this.set("required",e)}}const ai=ci;class li extends Rt.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 ui=li;class pi extends Rt.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 mi=pi;class hi extends Rt.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 di=hi;class fi extends Rt.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 yi=fi;class _i extends Rt.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 gi=_i;class bi extends Rt.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 vi=bi;const Ei=Ce((function(e,t){return Ne(Ot(""),Je(Rr(e)),ut(""))(t)})),wi=(e,t)=>{const r=Te(e,t);return dt((e=>{if(zt(e)&&et("$ref",e)&&bt(sr,"$ref",e)){const t=ht(["$ref"],e),s=Ei("#/",t);return ht(s.split("/"),r)}return zt(e)?wi(e,r):e}),e)},ji=kr({props:{element:null},methods:{copyMetaAndAttributes(e,t){es(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),xi=kr(ji,{methods:{enter(e){return this.element=e.clone(),jr}}});const Oi=_e(Ft());function Si(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 Pi=e=>{if(Dr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Ai=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Si(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Si(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"]},ls);function Fi(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 $i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fi(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fi(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const ki=kr(ji,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(ht(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return yt(Lt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)($i($i({},r),t))},toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r),n=Object.getPrototypeOf(s);return $t(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?t.clone():(us(t,s,$i({keyMap:Ai,nodeTypeGetter:Pi},r)),s.element)}}}),Ri=kr(ki,{props:{specPath:Oi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){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(Lr(s)&&r.includes(s.toValue())&&!this.ignoredFields.includes(s.toValue())){const r=this.toRefractedElement([...t,"fixedFields",s.toValue()],e),i=new Rt.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),jr}}}),Ii=kr(Ri,xi,{props:{specPath:_e(["document","objects","JSONSchema"])},init(){this.element=new di}}),Mi=xi,Ni=xi,Ci=xi,Ti=xi,qi=xi,Di=xi,Li=xi,Bi=xi,Vi=xi,Ui=xi,zi=kr({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Gi=e=>zr(e)&&e.hasKey("$ref"),Ji=kr(ki,zi,xi,{methods:{ObjectElement(e){const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),jr},ArrayElement(e){return this.element=new Rt.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),Wi=xi,Hi=xi,Ki=xi,Zi=xi,Xi=xi,Qi=kr(xi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),jr}}});const Yi=$e(w(1,Ae(Mt,He(Ct,Lt))));const eo=$e(lt);const to=ye([sr,Yi,eo]),ro=kr(ki,{props:{fieldPatternPredicate:c,specPath:Oi,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){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 Rt.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),jr}}}),so=kr(ro,{props:{fieldPatternPredicate:to}}),no=kr(so,zi,xi,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),io=kr(so,zi,xi,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),oo=kr(so,zi,xi,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependencies")}}),co=kr(xi,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),jr}}}),ao=kr(xi,{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}}}),lo=kr(ki,zi,xi,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),uo=kr(ki,zi,xi,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),po=kr(ki,zi,xi,{init(){this.element=new Rt.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),mo=kr(so,zi,xi,{props:{specPath:e=>Gi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-definitions")}}),ho=xi,fo=xi,yo=xi,_o=xi,go=xi,bo=kr(ki,zi,xi,{init(){this.element=new Rt.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}}}),vo=xi,Eo=kr(Ri,xi,{props:{specPath:_e(["document","objects","JSONReference"])},init(){this.element=new yi},methods:{ObjectElement(e){const t=Ri.compose.methods.ObjectElement.call(this,e);return Lr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),wo=kr(xi,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}});const jo=$e(Qe);const xo=Ae(ms,eo);function Oo(e){return function(e){if(Array.isArray(e))return So(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 So(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 So(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 So(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 Po=Ne(xt(Fe((function(e,t){return e.length>t.length}))),rt,se("length")),Ao=Ce((function(e,t,r){var s=r.apply(void 0,Oo(e));return jo(s)?wt(s):t}));const Fo=it(xo,(function(e){var t=Po(e);return w(t,(function(){for(var t=arguments.length,r=new Array(t),s=0;s<t;s++)r[s]=arguments[s];return fe(Ao(r),void 0,e)}))}),Ft),$o=kr(ki,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>it(e,_e(t),Ft))),r=Fo(t)(e);return this.element=this.toRefractedElement(r,e),jr}}}),ko=kr($o,{props:{alternator:[{predicate:Gi,specPath:["document","objects","JSONReference"]},{predicate:a,specPath:["document","objects","JSONSchema"]}]}}),Ro={visitors:{value:xi,JSONSchemaOrJSONReferenceVisitor:ko,document:{objects:{JSONSchema:{$visitor:Ii,fixedFields:{id:Mi,$schema:Ni,multipleOf:Ci,maximum:Ti,exclusiveMaximum:qi,minimum:Di,exclusiveMinimum:Li,maxLength:Bi,minLength:Vi,pattern:Ui,additionalItems:ko,items:Ji,maxItems:Wi,minItems:Hi,uniqueItems:Ki,maxProperties:Zi,minProperties:Xi,required:Qi,properties:no,additionalProperties:ko,patternProperties:io,dependencies:oo,enum:co,type:ao,allOf:lo,anyOf:uo,oneOf:po,not:ko,definitions:mo,title:ho,description:fo,default:yo,format:_o,base:go,links:bo,media:{$ref:"#/visitors/document/objects/Media"},readOnly:vo}},JSONReference:{$visitor:Eo,fixedFields:{$ref:wo}},Media:{$visitor:kr(Ri,xi,{props:{specPath:_e(["document","objects","Media"])},init(){this.element=new gi}}),fixedFields:{binaryEncoding:xi,type:xi}},LinkDescription:{$visitor:kr(Ri,xi,{props:{specPath:_e(["document","objects","LinkDescription"])},init(){this.element=new vi}}),fixedFields:{href:xi,rel:xi,title:xi,targetSchema:ko,mediaType:xi,method:xi,encType:xi,schema:ko}}}}}},Io=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof di||e(s)&&t("JSONSchemaDraft4",s)&&r("object",s))),Mo=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yi||e(s)&&t("JSONReference",s)&&r("object",s))),No=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof gi||e(s)&&t("media",s)&&r("object",s))),Co=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vi||e(s)&&t("linkDescription",s)&&r("object",s))),To={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",di),t.register("jSONReference",yi),t.register("media",gi),t.register("linkDescription",vi),t}};function qo(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 Do(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?qo(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):qo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Lo=()=>{const e=tr(To);return{predicates:Do(Do({},t),{},{isStringElement:Lr}),namespace:e}};function Bo(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 Vo=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:s=Ro}={})=>{const n=(0,Rt.Qc)(e),i=wi(s),o=ds(t,[],i);return us(n,o,{state:{specObj:i}}),_s(o.element,r,{toolboxCreator:Lo,visitorOptions:{keyMap:Ai,nodeTypeGetter:Pi}})},Uo=e=>(t,r={})=>Vo(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Bo(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Bo(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));di.refract=Uo(["visitors","document","objects","JSONSchema","$visitor"]),yi.refract=Uo(["visitors","document","objects","JSONReference","$visitor"]),gi.refract=Uo(["visitors","document","objects","Media","$visitor"]),vi.refract=Uo(["visitors","document","objects","LinkDescription","$visitor"]);const zo=class extends di{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 Go extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Jo=Go;class Wo extends Rt.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 Ho=Wo;class Ko extends Rt.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 Zo=Ko;class Xo extends Rt.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 Qo=Xo;class Yo extends Rt.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 ec=Yo;class tc extends Rt.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 rc=tc,sc=kr({props:{element:null},methods:{copyMetaAndAttributes(e,t){es(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}});function nc(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 ic=e=>{if(Dr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},oc=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?nc(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):nc(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"]},ls);function cc(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 ac(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?cc(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):cc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const lc=kr(sc,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return _t(this.passingOptionsNames,this)},retrieveFixedFields(e){return Ne(ht(["visitors",...e,"fixedFields"]),I)(this.specObj)},retrieveVisitor(e){return yt(Lt,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)(ac(ac({},r),t))},toRefractedElement(e,t,r={}){const s=this.retrieveVisitorInstance(e,r),n=Object.getPrototypeOf(s);return $t(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?t.clone():(us(t,s,ac({keyMap:oc,nodeTypeGetter:ic},r)),s.element)}}}),uc=e=>zr(e)&&e.hasKey("openapi")&&e.hasKey("info"),pc=e=>zr(e)&&e.hasKey("name")&&e.hasKey("in"),mc=e=>zr(e)&&e.hasKey("$ref"),hc=e=>zr(e)&&e.hasKey("content"),dc=e=>zr(e)&&e.hasKey("description"),fc=zr,yc=zr,_c=e=>Lr(e.key)&&St("x-",e.key.toValue()),gc=kr(lc,{props:{specPath:Oi,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:_c},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:s=this.specificationExtensionPredicate}={}){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(Lr(s)&&r.includes(s.toValue())&&!this.ignoredFields.includes(s.toValue())){const r=this.toRefractedElement([...t,"fixedFields",s.toValue()],e),i=new Rt.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),jr}}}),bc=kr(sc,{methods:{enter(e){return this.element=e.clone(),jr}}}),vc=kr(gc,bc,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zn},methods:{ObjectElement(e){return this.unrefractedElement=e,gc.compose.methods.ObjectElement.call(this,e)}}}),Ec=kr(lc,bc,{methods:{StringElement(e){const t=new Hn(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,jr}}}),wc=kr(lc,{methods:{MemberElement(e){return this.element=e.clone(),this.element.classes.push("specification-extension"),jr}}}),jc=kr(gc,bc,{props:{specPath:_e(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cn}}),xc=bc,Oc=bc,Sc=bc,Pc=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("api-version"),this.element.classes.push("version"),jr}}}),Ac=kr(gc,bc,{props:{specPath:_e(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new xn}}),Fc=bc,$c=bc,kc=bc,Rc=kr(gc,bc,{props:{specPath:_e(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new qn}}),Ic=bc,Mc=bc,Nc=kr(gc,bc,{props:{specPath:_e(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ln},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return(Lr(this.element.operationId)||Lr(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Cc=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Tc=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),qc=kr(lc,{props:{fieldPatternPredicate:c,specPath:Oi,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:_c},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:s=this.specificationExtensionPredicate}={}){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 Rt.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),jr}}}),Dc=kr(qc,{props:{fieldPatternPredicate:to}});class Lc extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Lc.primaryClass)}}Er(Lc,"primaryClass","link-parameters");const Bc=Lc,Vc=kr(Dc,bc,{props:{specPath:_e(["value"])},init(){this.element=new Bc}}),Uc=bc,zc=bc,Gc=kr(gc,bc,{props:{specPath:_e(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zo}}),Jc=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("server-url"),jr}}}),Wc=bc;class Hc extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Hc.primaryClass)}}Er(Hc,"primaryClass","servers");const Kc=Hc,Zc=kr(lc,bc,{init(){this.element=new Kc},methods:{ArrayElement(e){return e.forEach((e=>{const t=fc(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),Xc=kr(gc,bc,{props:{specPath:_e(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Qo}}),Qc=bc,Yc=bc,ea=bc;class ta extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ta.primaryClass)}}Er(ta,"primaryClass","server-variables");const ra=ta,sa=kr(Dc,bc,{props:{specPath:_e(["document","objects","ServerVariable"])},init(){this.element=new ra}}),na=kr(gc,bc,{props:{specPath:_e(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vn}}),ia=kr(lc,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>it(e,_e(t),Ft))),r=Fo(t)(e);return this.element=this.toRefractedElement(r,e),jr}}}),oa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof vn||e(s)&&t("callback",s)&&r("object",s))),ca=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof wn||e(s)&&t("components",s)&&r("object",s))),aa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof xn||e(s)&&t("contact",s)&&r("object",s))),la=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof $n||e(s)&&t("example",s)&&r("object",s))),ua=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Rn||e(s)&&t("externalDocumentation",s)&&r("object",s))),pa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Mn||e(s)&&t("header",s)&&r("object",s))),ma=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Cn||e(s)&&t("info",s)&&r("object",s))),ha=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qn||e(s)&&t("license",s)&&r("object",s))),da=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ln||e(s)&&t("link",s)&&r("object",s))),fa=e=>{if(!da(e))return!1;if(!Lr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ya=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hn||e(s)&&t("openapi",s)&&r("string",s))),_a=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof Zn||e(n)&&t("openApi3_0",n)&&r("object",n)&&s("api",n))),ga=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qn||e(s)&&t("operation",s)&&r("object",s))),ba=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ei||e(s)&&t("parameter",s)&&r("object",s))),va=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ri||e(s)&&t("pathItem",s)&&r("object",s))),Ea=e=>{if(!va(e))return!1;if(!Lr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},wa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ni||e(s)&&t("paths",s)&&r("object",s))),ja=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof oi||e(s)&&t("reference",s)&&r("object",s))),xa=e=>{if(!ja(e))return!1;if(!Lr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Oa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ai||e(s)&&t("requestBody",s)&&r("object",s))),Sa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ui||e(s)&&t("response",s)&&r("object",s))),Pa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mi||e(s)&&t("responses",s)&&r("object",s))),Aa=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zo||e(s)&&t("schema",s)&&r("object",s))),Fa=e=>Ur(e)&&e.classes.includes("boolean-json-schema"),$a=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Jo||e(s)&&t("securityRequirement",s)&&r("object",s))),ka=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zo||e(s)&&t("server",s)&&r("object",s))),Ra=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Qo||e(s)&&t("serverVariable",s)&&r("object",s))),Ia=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vn||e(s)&&t("mediaType",s)&&r("object",s))),Ma=kr(ia,bc,{props:{alternator:[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ia.compose.methods.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Na=bc,Ca=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new Rt.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Ta extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ta.primaryClass),this.classes.push("examples")}}Er(Ta,"primaryClass","media-type-examples");const qa=Ta,Da=kr(Ca,{init(){this.element=new qa}});class La extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(La.primaryClass)}}Er(La,"primaryClass","media-type-encoding");const Ba=La,Va=kr(Dc,bc,{props:{specPath:_e(["document","objects","Encoding"])},init(){this.element=new Ba}}),Ua=kr(Dc,bc,{props:{specPath:_e(["value"])},init(){this.element=new Jo}});class za extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(za.primaryClass)}}Er(za,"primaryClass","security");const Ga=za,Ja=kr(lc,bc,{init(){this.element=new Ga},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}}}),Wa=kr(gc,bc,{props:{specPath:_e(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new wn}}),Ha=kr(gc,bc,{props:{specPath:_e(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new ec}}),Ka=bc,Za=bc,Xa=kr(gc,bc,{props:{specPath:_e(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new oi},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return Lr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Qa=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Ya=kr(gc,bc,{props:{specPath:_e(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new ei},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return zr(this.element.contentProp)&&this.element.contentProp.filter(Ia).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),el=bc,tl=bc,rl=bc,sl=bc,nl=bc,il=bc,ol=bc,cl=bc,al=bc,ll=kr(ia,bc,{props:{alternator:[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ia.compose.methods.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ul=kr(gc,bc,{props:{specPath:_e(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mn}}),pl=bc,ml=bc,hl=bc,dl=bc,fl=bc,yl=bc,_l=bc,gl=kr(ia,bc,{props:{alternator:[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=ia.compose.methods.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),bl=bc;class vl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(vl.primaryClass),this.classes.push("examples")}}Er(vl,"primaryClass","header-examples");const El=vl,wl=kr(Ca,{init(){this.element=new El}}),jl=kr(Dc,bc,{props:{specPath:_e(["document","objects","MediaType"])},init(){this.element=new Rt.Sb,this.element.classes.push("content")}});class xl extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(xl.primaryClass),this.classes.push("content")}}Er(xl,"primaryClass","header-content");const Ol=xl,Sl=kr(jl,{init(){this.element=new Ol}}),Pl=kr(gc,bc,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new zo}}),{allOf:Al}=Ro.visitors.document.objects.JSONSchema.fixedFields,Fl=kr(Al,{methods:{ArrayElement(e){const t=Al.compose.methods.ArrayElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:$l}=Ro.visitors.document.objects.JSONSchema.fixedFields,kl=kr($l,{methods:{ArrayElement(e){const t=$l.compose.methods.ArrayElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Rl}=Ro.visitors.document.objects.JSONSchema.fixedFields,Il=kr(Rl,{methods:{ArrayElement(e){const t=Rl.compose.methods.ArrayElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{definitions:Ml}=Ro.visitors.document.objects.JSONSchema.fixedFields,Nl=kr(Ml,{methods:{ObjectElement(e){const t=Ml.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{dependencies:Cl}=Ro.visitors.document.objects.JSONSchema.fixedFields,Tl=kr(Cl,{methods:{ObjectElement(e){const t=Cl.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:ql}=Ro.visitors.document.objects.JSONSchema.fixedFields,Dl=kr(ql,{methods:{ObjectElement(e){const t=ql.compose.methods.ObjectElement.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=e.clone(),jr}}}),{properties:Ll}=Ro.visitors.document.objects.JSONSchema.fixedFields,Bl=kr(Ll,{methods:{ObjectElement(e){const t=Ll.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{patternProperties:Vl}=Ro.visitors.document.objects.JSONSchema.fixedFields,Ul=kr(Vl,{methods:{ObjectElement(e){const t=Vl.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:zl}=Ro.visitors.document.objects.JSONSchema.fixedFields,Gl=kr(zl,{methods:{ArrayElement(e){return this.element=e.clone(),jr}}}),Jl=bc,Wl=bc,Hl=bc,Kl=bc,{JSONSchemaOrJSONReferenceVisitor:Zl}=Ro.visitors,Xl=kr(Zl,{methods:{ObjectElement(e){const t=Zl.compose.methods.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Ql=Object.fromEntries(Object.entries(Ro.visitors.document.objects.JSONSchema.fixedFields).map((([e,t])=>t===Ro.visitors.JSONSchemaOrJSONReferenceVisitor?[e,Xl]:[e,t]))),Yl=kr(gc,bc,{props:{specPath:_e(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Sn}}),eu=bc;class tu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(tu.primaryClass)}}Er(tu,"primaryClass","discriminator-mapping");const ru=tu,su=kr(Dc,bc,{props:{specPath:_e(["value"])},init(){this.element=new ru}}),nu=kr(gc,bc,{props:{specPath:_e(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new rc}}),iu=bc,ou=bc,cu=bc,au=bc,lu=bc,uu=bc;class pu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(pu.primaryClass),this.classes.push("examples")}}Er(pu,"primaryClass","parameter-examples");const mu=pu,hu=kr(Ca,{init(){this.element=new mu}});class du extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(du.primaryClass),this.classes.push("content")}}Er(du,"primaryClass","parameter-content");const fu=du,yu=kr(jl,{init(){this.element=new fu}});class _u extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(_u.primaryClass)}}Er(_u,"primaryClass","components-schemas");const gu=_u,bu=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new gu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class vu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(vu.primaryClass)}}Er(vu,"primaryClass","components-responses");const Eu=vu,wu=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new Eu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sa).forEach(((e,t)=>{e.setMetaProperty("http-status-code",t.toValue())})),t}}});class ju extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ju.primaryClass),this.classes.push("parameters")}}Er(ju,"primaryClass","components-parameters");const xu=ju,Ou=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new xu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class Su extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Su.primaryClass),this.classes.push("examples")}}Er(Su,"primaryClass","components-examples");const Pu=Su,Au=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new Pu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Fu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Fu.primaryClass)}}Er(Fu,"primaryClass","components-request-bodies");const $u=Fu,ku=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new $u},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class Ru extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Ru.primaryClass)}}Er(Ru,"primaryClass","components-headers");const Iu=Ru,Mu=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Iu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(pa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}});class Nu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Nu.primaryClass)}}Er(Nu,"primaryClass","components-security-schemes");const Cu=Nu,Tu=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new Cu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class qu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(qu.primaryClass)}}Er(qu,"primaryClass","components-links");const Du=qu,Lu=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Du},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Bu extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Bu.primaryClass)}}Er(Bu,"primaryClass","components-callbacks");const Vu=Bu,Uu=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Vu},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),zu=kr(gc,bc,{props:{specPath:_e(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new $n},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return Lr(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Gu=bc,Ju=bc,Wu=bc,Hu=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Ku=kr(gc,bc,{props:{specPath:_e(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Rn}}),Zu=bc,Xu=bc,Qu=kr(gc,bc,{props:{specPath:_e(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new An},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return zr(this.element.headers)&&this.element.headers.filter(pa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),Yu=bc;class ep extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ep.primaryClass)}}Er(ep,"primaryClass","encoding-headers");const tp=ep,rp=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new tp},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!pa(e))return;const r=t.toValue();e.setMetaProperty("headerName",r)})),t}}}),sp=bc,np=bc,ip=bc,op=kr(qc,bc,{props:{fieldPatternPredicate:Pt(/^\/(?<path>.*)$/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new ni},methods:{ObjectElement(e){const t=qc.compose.methods.ObjectElement.call(this,e);return this.element.filter(va).forEach(((e,t)=>{e.setMetaProperty("path",t.clone())})),t}}}),cp=kr(gc,bc,{props:{specPath:_e(["document","objects","RequestBody"])},init(){this.element=new ai},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return zr(this.element.contentProp)&&this.element.contentProp.filter(Ia).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),t}}}),ap=bc;class lp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(lp.primaryClass),this.classes.push("content")}}Er(lp,"primaryClass","request-body-content");const up=lp,pp=kr(jl,{init(){this.element=new up}}),mp=bc,hp=kr(qc,bc,{props:{fieldPatternPredicate:Pt(/{(?<expression>.*)}/),specPath:_e(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new vn},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(va).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",t.toValue())})),t}}}),dp=kr(gc,bc,{props:{specPath:_e(["document","objects","Response"])},init(){this.element=new ui},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return zr(this.element.contentProp)&&this.element.contentProp.filter(Ia).forEach(((e,t)=>{e.setMetaProperty("media-type",t.toValue())})),zr(this.element.headers)&&this.element.headers.filter(pa).forEach(((e,t)=>{e.setMetaProperty("header-name",t.toValue())})),t}}}),fp=bc;class yp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(yp.primaryClass)}}Er(yp,"primaryClass","response-headers");const _p=yp,gp=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new _p},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!pa(e))return;const r=t.toValue();e.setMetaProperty("header-name",r)})),t}}});class bp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(bp.primaryClass),this.classes.push("content")}}Er(bp,"primaryClass","response-content");const vp=bp,Ep=kr(jl,{init(){this.element=new vp}});class wp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(wp.primaryClass)}}Er(wp,"primaryClass","response-links");const jp=wp,xp=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new jp},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),Op=kr(gc,qc,{props:{specPathFixedFields:Oi,specPathPatternedFields:Oi},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Le(e.keys(),t)],gc.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,qc.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return jr}}}),Sp=kr(Op,bc,{props:{specPathFixedFields:_e(["document","objects","Responses"]),specPathPatternedFields:e=>mc(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:Pt(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Et(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new mi},methods:{ObjectElement(e){const t=Op.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(Sa).forEach(((e,t)=>{const r=t.clone();this.fieldPatternPredicate(r.toValue())&&e.setMetaProperty("http-status-code",r)})),t}}}),Pp=kr(ia,bc,{props:{alternator:[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=ia.compose.methods.enter.call(this,e);return ja(this.element)?this.element.setMetaProperty("referenced-element","response"):Sa(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),Ap=kr(gc,bc,{props:{specPath:_e(["document","objects","Operation"])},init(){this.element=new Qn}});class Fp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Fp.primaryClass)}}Er(Fp,"primaryClass","operation-tags");const $p=Fp,kp=kr(bc,{init(){this.element=new $p},methods:{ArrayElement(e){return this.element=this.element.concat(e.clone()),jr}}}),Rp=bc,Ip=bc,Mp=bc;class Np extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Np.primaryClass),this.classes.push("parameters")}}Er(Np,"primaryClass","operation-parameters");const Cp=Np,Tp=kr(lc,bc,{init(){this.element=new Rt.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=mc(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);ja(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}}),qp=kr(Tp,{init(){this.element=new Cp}}),Dp=kr(ia,{props:{alternator:[{predicate:mc,specPath:["document","objects","Reference"]},{predicate:a,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=ia.compose.methods.enter.call(this,e);return ja(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class Lp extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Lp.primaryClass)}}Er(Lp,"primaryClass","operation-callbacks");const Bp=Lp,Vp=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Bp},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ja).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Up=bc;class zp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(zp.primaryClass),this.classes.push("security")}}Er(zp,"primaryClass","operation-security");const Gp=zp,Jp=kr(lc,bc,{init(){this.element=new Gp},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 Wp extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(Wp.primaryClass),this.classes.push("servers")}}Er(Wp,"primaryClass","operation-servers");const Hp=Wp,Kp=kr(Zc,{init(){this.element=new Hp}}),Zp=kr(gc,bc,{props:{specPath:_e(["document","objects","PathItem"])},init(){this.element=new ri},methods:{ObjectElement(e){const t=gc.compose.methods.ObjectElement.call(this,e);return this.element.filter(ga).forEach(((e,t)=>{const r=t.clone();r.content=r.toValue().toUpperCase(),e.setMetaProperty("http-method",r)})),Lr(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Xp=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Qp=bc,Yp=bc;class em extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(em.primaryClass),this.classes.push("servers")}}Er(em,"primaryClass","path-item-servers");const tm=em,rm=kr(Zc,{init(){this.element=new tm}});class sm extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(sm.primaryClass),this.classes.push("parameters")}}Er(sm,"primaryClass","path-item-parameters");const nm=sm,im=kr(Tp,{init(){this.element=new nm}}),om=kr(gc,bc,{props:{specPath:_e(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ho}}),cm=bc,am=bc,lm=bc,um=bc,pm=bc,mm=bc,hm=bc,dm=kr(gc,bc,{props:{specPath:_e(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Jn}}),fm=kr(gc,bc,{props:{specPath:_e(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new zn}}),ym=bc,_m=bc,gm=bc;class bm extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(bm.primaryClass)}}Er(bm,"primaryClass","oauth-flow-scopes");const vm=bm,Em=kr(Dc,bc,{props:{specPath:_e(["value"])},init(){this.element=new vm}});class wm extends Rt.ON{constructor(e,t,r){super(e,t,r),this.classes.push(wm.primaryClass)}}Er(wm,"primaryClass","tags");const jm=wm,xm=kr(lc,bc,{init(){this.element=new jm},methods:{ArrayElement(e){return e.forEach((e=>{const t=yc(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),jr}}});function Om(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?Om(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Om(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Pm={$visitor:Xa,fixedFields:{$ref:Qa}},Am={$visitor:Pl,fixedFields:Sm(Sm({},Ql),{},{allOf:Fl,anyOf:kl,oneOf:Il,definitions:Nl,items:Dl,dependencies:Tl,properties:Bl,patternProperties:Ul,type:Gl,nullable:Jl,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Wl,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Hl,deprecated:Kl})},Fm={visitors:{value:bc,document:{objects:{OpenApi:{$visitor:vc,fixedFields:{openapi:Ec,info:{$ref:"#/visitors/document/objects/Info"},servers:Zc,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Ja,tags:xm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:jc,fixedFields:{title:xc,description:Oc,termsOfService:Sc,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Pc}},Contact:{$visitor:Ac,fixedFields:{name:Fc,url:$c,email:kc}},License:{$visitor:Rc,fixedFields:{name:Ic,url:Mc}},Server:{$visitor:Gc,fixedFields:{url:Jc,description:Wc,variables:sa}},ServerVariable:{$visitor:Xc,fixedFields:{enum:Qc,default:Yc,description:ea}},Components:{$visitor:Wa,fixedFields:{schemas:bu,responses:wu,parameters:Ou,examples:Au,requestBodies:ku,headers:Mu,securitySchemes:Tu,links:Lu,callbacks:Uu}},Paths:{$visitor:op},PathItem:{$visitor:Zp,fixedFields:{$ref:Xp,summary:Qp,description:Yp,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:rm,parameters:im}},Operation:{$visitor:Ap,fixedFields:{tags:kp,summary:Rp,description:Ip,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Mp,parameters:qp,requestBody:Dp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Vp,deprecated:Up,security:Jp,servers:Kp}},ExternalDocumentation:{$visitor:Ku,fixedFields:{description:Zu,url:Xu}},Parameter:{$visitor:Ya,fixedFields:{name:el,in:tl,description:rl,required:sl,deprecated:nl,allowEmptyValue:il,style:ol,explode:cl,allowReserved:al,schema:ll,example:uu,examples:hu,content:yu}},RequestBody:{$visitor:cp,fixedFields:{description:ap,content:pp,required:mp}},MediaType:{$visitor:na,fixedFields:{schema:Ma,example:Na,examples:Da,encoding:Va}},Encoding:{$visitor:Qu,fixedFields:{contentType:Yu,headers:rp,style:sp,explode:np,allowReserved:ip}},Responses:{$visitor:Sp,fixedFields:{default:Pp}},Response:{$visitor:dp,fixedFields:{description:fp,headers:gp,content:Ep,links:xp}},Callback:{$visitor:hp},Example:{$visitor:zu,fixedFields:{summary:Gu,description:Ju,value:Wu,externalValue:Hu}},Link:{$visitor:Nc,fixedFields:{operationRef:Cc,operationId:Tc,parameters:Vc,requestBody:Uc,description:zc,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ul,fixedFields:{description:pl,required:ml,deprecated:hl,allowEmptyValue:dl,style:fl,explode:yl,allowReserved:_l,schema:gl,example:bl,examples:wl,content:Sl}},Tag:{$visitor:Ha,fixedFields:{name:Ka,description:Za,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},JSONReference:Pm,Reference:Pm,JSONSchema:Am,Schema:Am,LinkDescription:Ro.visitors.document.objects.LinkDescription,Media:Ro.visitors.document.objects.Media,Discriminator:{$visitor:Yl,fixedFields:{propertyName:eu,mapping:su}},XML:{$visitor:nu,fixedFields:{name:iu,namespace:ou,prefix:cu,attribute:au,wrapped:lu}},SecurityScheme:{$visitor:om,fixedFields:{type:cm,description:am,name:lm,in:um,scheme:pm,bearerFormat:mm,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:hm}},OAuthFlows:{$visitor:dm,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:fm,fixedFields:{authorizationUrl:ym,tokenUrl:_m,refreshUrl:gm,scopes:Em}},SecurityRequirement:{$visitor:Ua}},extension:{$visitor:wc}}}},$m={namespace:e=>{const{base:t}=e;return t.register("callback",vn),t.register("components",wn),t.register("contact",xn),t.register("discriminator",Sn),t.register("encoding",An),t.register("example",$n),t.register("externalDocumentation",Rn),t.register("header",Mn),t.register("info",Cn),t.register("license",qn),t.register("link",Ln),t.register("mediaType",Vn),t.register("oAuthFlow",zn),t.register("oAuthFlows",Jn),t.register("openapi",Hn),t.register("openApi3_0",Zn),t.register("operation",Qn),t.register("parameter",ei),t.register("pathItem",ri),t.register("paths",ni),t.register("reference",oi),t.register("requestBody",ai),t.register("response",ui),t.register("responses",mi),t.register("schema",zo),t.register("securityRequirement",Jo),t.register("securityScheme",Ho),t.register("server",Zo),t.register("serverVariable",Qo),t.register("tag",ec),t.register("xml",rc),t}};function km(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 Rm(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?km(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):km(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const Im=()=>{const e=tr($m);return{predicates:Rm(Rm(Rm({},n),i),{},{isStringElement:Lr}),namespace:e}};function Mm(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 Nm=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Rt.Qc)(e),n=wi(Fm),i=ds(t,[],n);return us(s,i,{state:{specObj:n}}),_s(i.element,r,{toolboxCreator:Im,visitorOptions:{keyMap:oc,nodeTypeGetter:ic}})},Cm=e=>(t,r={})=>Nm(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Mm(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Mm(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));vn.refract=Cm(["visitors","document","objects","Callback","$visitor"]),wn.refract=Cm(["visitors","document","objects","Components","$visitor"]),xn.refract=Cm(["visitors","document","objects","Contact","$visitor"]),$n.refract=Cm(["visitors","document","objects","Example","$visitor"]),Sn.refract=Cm(["visitors","document","objects","Discriminator","$visitor"]),An.refract=Cm(["visitors","document","objects","Encoding","$visitor"]),Rn.refract=Cm(["visitors","document","objects","ExternalDocumentation","$visitor"]),Mn.refract=Cm(["visitors","document","objects","Header","$visitor"]),Cn.refract=Cm(["visitors","document","objects","Info","$visitor"]),qn.refract=Cm(["visitors","document","objects","License","$visitor"]),Ln.refract=Cm(["visitors","document","objects","Link","$visitor"]),Vn.refract=Cm(["visitors","document","objects","MediaType","$visitor"]),zn.refract=Cm(["visitors","document","objects","OAuthFlow","$visitor"]),Jn.refract=Cm(["visitors","document","objects","OAuthFlows","$visitor"]),Hn.refract=Cm(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Zn.refract=Cm(["visitors","document","objects","OpenApi","$visitor"]),Qn.refract=Cm(["visitors","document","objects","Operation","$visitor"]),ei.refract=Cm(["visitors","document","objects","Parameter","$visitor"]),ri.refract=Cm(["visitors","document","objects","PathItem","$visitor"]),ni.refract=Cm(["visitors","document","objects","Paths","$visitor"]),oi.refract=Cm(["visitors","document","objects","Reference","$visitor"]),ai.refract=Cm(["visitors","document","objects","RequestBody","$visitor"]),ui.refract=Cm(["visitors","document","objects","Response","$visitor"]),mi.refract=Cm(["visitors","document","objects","Responses","$visitor"]),zo.refract=Cm(["visitors","document","objects","Schema","$visitor"]),Jo.refract=Cm(["visitors","document","objects","SecurityRequirement","$visitor"]),Ho.refract=Cm(["visitors","document","objects","SecurityScheme","$visitor"]),Zo.refract=Cm(["visitors","document","objects","Server","$visitor"]),Qo.refract=Cm(["visitors","document","objects","ServerVariable","$visitor"]),ec.refract=Cm(["visitors","document","objects","Tag","$visitor"]),rc.refract=Cm(["visitors","document","objects","XML","$visitor"]);const Tm=class extends vn{};const qm=class extends wn{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Dm=class extends xn{};const Lm=class extends Sn{};const Bm=class extends An{};const Vm=class extends $n{};const Um=class extends Rn{};const zm=class extends Mn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Gm=class extends Cn{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 Jm extends Rt.RP{constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}Er(Jm,"default",new Jm("https://spec.openapis.org/oas/3.1/dialect/base"));const Wm=Jm;const Hm=class extends qn{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Km=class extends Ln{};const Zm=class extends Vn{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Xm=class extends zn{};const Qm=class extends Jn{};const Ym=class extends Hn{};class eh extends Rt.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 th=eh;const rh=class extends Qn{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const sh=class extends ei{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const nh=class extends ri{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 ih=class extends ni{};class oh extends oi{}Object.defineProperty(oh.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(oh.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const ch=oh;const ah=class extends ai{};const lh=class extends ui{};const uh=class extends mi{};class ph extends Rt.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 mh=ph;const hh=class extends Jo{};const dh=class extends Ho{};const fh=class extends Zo{};const yh=class extends Qo{};const _h=class extends ec{};const gh=class extends rc{},bh=kr(gc,bc,{props:{specPath:_e(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new th,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,gc.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:vh}}}}}=Fm,Eh=kr(vh,{init(){this.element=new Gm}}),wh=bc,{visitors:{document:{objects:{Contact:{$visitor:jh}}}}}=Fm,xh=kr(jh,{init(){this.element=new Dm}}),{visitors:{document:{objects:{License:{$visitor:Oh}}}}}=Fm,Sh=kr(Oh,{init(){this.element=new Hm}}),Ph=bc,{visitors:{document:{objects:{Link:{$visitor:Ah}}}}}=Fm,Fh=kr(Ah,{init(){this.element=new Km}}),$h=kr(lc,bc,{methods:{StringElement(e){const t=new Wm(e.toValue());return this.copyMetaAndAttributes(e,t),this.element=t,jr}}}),{visitors:{document:{objects:{Server:{$visitor:kh}}}}}=Fm,Rh=kr(kh,{init(){this.element=new fh}}),{visitors:{document:{objects:{ServerVariable:{$visitor:Ih}}}}}=Fm,Mh=kr(Ih,{init(){this.element=new yh}}),{visitors:{document:{objects:{MediaType:{$visitor:Nh}}}}}=Fm,Ch=kr(Nh,{init(){this.element=new Zm}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:Th}}}}}=Fm,qh=kr(Th,{init(){this.element=new hh}}),{visitors:{document:{objects:{Components:{$visitor:Dh}}}}}=Fm,Lh=kr(Dh,{init(){this.element=new qm}}),{visitors:{document:{objects:{Tag:{$visitor:Bh}}}}}=Fm,Vh=kr(Bh,{init(){this.element=new _h}}),{visitors:{document:{objects:{Reference:{$visitor:Uh}}}}}=Fm,zh=kr(Uh,{init(){this.element=new ch}}),Gh=bc,Jh=bc,{visitors:{document:{objects:{Parameter:{$visitor:Wh}}}}}=Fm,Hh=kr(Wh,{init(){this.element=new sh}}),{visitors:{document:{objects:{Header:{$visitor:Kh}}}}}=Fm,Zh=kr(Kh,{init(){this.element=new zm}}),Xh=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Tm||e(s)&&t("callback",s)&&r("object",s))),Qh=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof qm||e(s)&&t("components",s)&&r("object",s))),Yh=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Dm||e(s)&&t("contact",s)&&r("object",s))),ed=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Vm||e(s)&&t("example",s)&&r("object",s))),td=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Um||e(s)&&t("externalDocumentation",s)&&r("object",s))),rd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof zm||e(s)&&t("header",s)&&r("object",s))),sd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Gm||e(s)&&t("info",s)&&r("object",s))),nd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Wm||e(s)&&t("jsonSchemaDialect",s)&&r("string",s))),id=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Hm||e(s)&&t("license",s)&&r("object",s))),od=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Km||e(s)&&t("link",s)&&r("object",s))),cd=e=>{if(!od(e))return!1;if(!Lr(e.operationRef))return!1;const t=e.operationRef.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},ad=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Ym||e(s)&&t("openapi",s)&&r("string",s))),ld=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:s})=>n=>n instanceof th||e(n)&&t("openApi3_1",n)&&r("object",n)&&s("api",n))),ud=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof rh||e(s)&&t("operation",s)&&r("object",s))),pd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof sh||e(s)&&t("parameter",s)&&r("object",s))),md=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof nh||e(s)&&t("pathItem",s)&&r("object",s))),hd=e=>{if(!md(e))return!1;if(!Lr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},dd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ih||e(s)&&t("paths",s)&&r("object",s))),fd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ch||e(s)&&t("reference",s)&&r("object",s))),yd=e=>{if(!fd(e))return!1;if(!Lr(e.$ref))return!1;const t=e.$ref.toValue();return"string"==typeof t&&t.length>0&&!t.startsWith("#")},_d=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof ah||e(s)&&t("requestBody",s)&&r("object",s))),gd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof lh||e(s)&&t("response",s)&&r("object",s))),bd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof uh||e(s)&&t("responses",s)&&r("object",s))),vd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof mh||e(s)&&t("schema",s)&&r("object",s))),Ed=e=>Ur(e)&&e.classes.includes("boolean-json-schema"),wd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof hh||e(s)&&t("securityRequirement",s)&&r("object",s))),jd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof fh||e(s)&&t("server",s)&&r("object",s))),xd=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof yh||e(s)&&t("serverVariable",s)&&r("object",s))),Od=qr((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>s=>s instanceof Zm||e(s)&&t("mediaType",s)&&r("object",s))),Sd=kr({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Pd=kr(gc,Sd,bc,{props:{specPath:_e(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&nd(this.openApiSemanticElement.jsonSchemaDialect)?this.openApiSemanticElement.jsonSchemaDialect.toValue():null!==this.openApiGenericElement&&Lr(this.openApiGenericElement.get("jsonSchemaDialect"))?this.openApiGenericElement.get("jsonSchemaDialect").toValue():Wm.default.toValue(),e},t=t=>{if(It(this.parent)&&!Lr(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(vd(this.parent)&&!Lr(t.get("$schema"))){var r,s;const e=Te(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 Rt.ON,s=null===(t=e.get("$id"))||void 0===t?void 0:t.toValue();to(s)&&r.push(s),this.element.setMetaProperty("inherited$id",r)};this.ObjectElement=function(e){this.element=new mh,t(e),r(e),this.parent=this.element;const s=gc.compose.methods.ObjectElement.call(this,e);return Lr(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"),jr}}}),Ad=bc,Fd=kr(bc,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-$vocabulary"),jr}}}),$d=bc,kd=bc,Rd=bc,Id=bc,Md=kr(bc,{methods:{StringElement(e){return this.element=e.clone(),this.element.classes.push("reference-value"),jr}}}),Nd=kr(Dc,Sd,bc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-$defs")}}),Cd=bc,Td=kr(lc,Sd,bc,{init(){this.element=new Rt.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}}}),qd=kr(lc,Sd,bc,{init(){this.element=new Rt.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}}}),Dd=kr(lc,Sd,bc,{init(){this.element=new Rt.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}}}),Ld=kr(Dc,Sd,bc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),Bd=kr(lc,Sd,bc,{init(){this.element=new Rt.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}}}),Vd=kr(Dc,Sd,bc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-properties")}}),Ud=kr(Dc,Sd,bc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new Rt.Sb,this.element.classes.push("json-schema-patternProperties")}}),zd=kr(bc,{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}}}),Gd=kr(bc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-enum"),jr}}}),Jd=bc,Wd=bc,Hd=bc,Kd=bc,Zd=bc,Xd=bc,Qd=bc,Yd=bc,ef=bc,tf=bc,rf=bc,sf=bc,nf=bc,of=bc,cf=bc,af=bc,lf=kr(bc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-required"),jr}}}),uf=kr(bc,{methods:{ObjectElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-dependentRequired"),jr}}}),pf=bc,mf=bc,hf=bc,df=bc,ff=bc,yf=bc,_f=kr(bc,{methods:{ArrayElement(e){return this.element=e.clone(),this.element.classes.push("json-schema-examples"),jr}}}),gf=bc,bf=bc,vf=bc,Ef=bc,{visitors:{document:{objects:{Discriminator:{$visitor:wf}}}}}=Fm,jf=kr(wf,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new Lm}}),{visitors:{document:{objects:{XML:{$visitor:xf}}}}}=Fm,Of=kr(xf,{init(){this.element=new gh}}),Sf=kr(Dc,bc,{props:{specPath:_e(["document","objects","Schema"])},init(){this.element=new gu}});class Pf extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(Pf.primaryClass)}}Er(Pf,"primaryClass","components-path-items");const Af=Pf,Ff=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Af},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(fd).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:$f}}}}}=Fm,kf=kr($f,{init(){this.element=new Vm}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:Rf}}}}}=Fm,If=kr(Rf,{init(){this.element=new Um}}),{visitors:{document:{objects:{Encoding:{$visitor:Mf}}}}}=Fm,Nf=kr(Mf,{init(){this.element=new Bm}}),{visitors:{document:{objects:{Paths:{$visitor:Cf}}}}}=Fm,Tf=kr(Cf,{init(){this.element=new ih}}),{visitors:{document:{objects:{RequestBody:{$visitor:qf}}}}}=Fm,Df=kr(qf,{init(){this.element=new ah}}),{visitors:{document:{objects:{Callback:{$visitor:Lf}}}}}=Fm,Bf=kr(Lf,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new Tm},methods:{ObjectElement(e){const t=Lf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fd).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:Vf}}}}}=Fm,Uf=kr(Vf,{init(){this.element=new lh}}),{visitors:{document:{objects:{Responses:{$visitor:zf}}}}}=Fm,Gf=kr(zf,{init(){this.element=new uh}}),{visitors:{document:{objects:{Operation:{$visitor:Jf}}}}}=Fm,Wf=kr(Jf,{init(){this.element=new rh}}),{visitors:{document:{objects:{PathItem:{$visitor:Hf}}}}}=Fm,Kf=kr(Hf,{init(){this.element=new nh}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:Zf}}}}}=Fm,Xf=kr(Zf,{init(){this.element=new dh}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:Qf}}}}}=Fm,Yf=kr(Qf,{init(){this.element=new Qm}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:ey}}}}}=Fm,ty=kr(ey,{init(){this.element=new Xm}});class ry extends Rt.Sb{constructor(e,t,r){super(e,t,r),this.classes.push(ry.primaryClass)}}Er(ry,"primaryClass","webhooks");const sy=ry,ny=kr(Dc,bc,{props:{specPath:e=>mc(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new sy},methods:{ObjectElement(e){const t=Dc.compose.methods.ObjectElement.call(this,e);return this.element.filter(fd).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(md).forEach(((e,t)=>{e.setMetaProperty("webhook-name",t.toValue())})),t}}}),iy={visitors:{value:Fm.visitors.value,document:{objects:{OpenApi:{$visitor:bh,fixedFields:{openapi:Fm.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:$h,servers:Fm.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:ny,components:{$ref:"#/visitors/document/objects/Components"},security:Fm.visitors.document.objects.OpenApi.fixedFields.security,tags:Fm.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Eh,fixedFields:{title:Fm.visitors.document.objects.Info.fixedFields.title,description:Fm.visitors.document.objects.Info.fixedFields.description,summary:wh,termsOfService:Fm.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Fm.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:xh,fixedFields:{name:Fm.visitors.document.objects.Contact.fixedFields.name,url:Fm.visitors.document.objects.Contact.fixedFields.url,email:Fm.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:Sh,fixedFields:{name:Fm.visitors.document.objects.License.fixedFields.name,identifier:Ph,url:Fm.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:Rh,fixedFields:{url:Fm.visitors.document.objects.Server.fixedFields.url,description:Fm.visitors.document.objects.Server.fixedFields.description,variables:Fm.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:Mh,fixedFields:{enum:Fm.visitors.document.objects.ServerVariable.fixedFields.enum,default:Fm.visitors.document.objects.ServerVariable.fixedFields.default,description:Fm.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:Lh,fixedFields:{schemas:Sf,responses:Fm.visitors.document.objects.Components.fixedFields.responses,parameters:Fm.visitors.document.objects.Components.fixedFields.parameters,examples:Fm.visitors.document.objects.Components.fixedFields.examples,requestBodies:Fm.visitors.document.objects.Components.fixedFields.requestBodies,headers:Fm.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Fm.visitors.document.objects.Components.fixedFields.securitySchemes,links:Fm.visitors.document.objects.Components.fixedFields.links,callbacks:Fm.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Ff}},Paths:{$visitor:Tf},PathItem:{$visitor:Kf,fixedFields:{$ref:Fm.visitors.document.objects.PathItem.fixedFields.$ref,summary:Fm.visitors.document.objects.PathItem.fixedFields.summary,description:Fm.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:Fm.visitors.document.objects.PathItem.fixedFields.servers,parameters:Fm.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:Wf,fixedFields:{tags:Fm.visitors.document.objects.Operation.fixedFields.tags,summary:Fm.visitors.document.objects.Operation.fixedFields.summary,description:Fm.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Fm.visitors.document.objects.Operation.fixedFields.operationId,parameters:Fm.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Fm.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Fm.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Fm.visitors.document.objects.Operation.fixedFields.deprecated,security:Fm.visitors.document.objects.Operation.fixedFields.security,servers:Fm.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:If,fixedFields:{description:Fm.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Fm.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Hh,fixedFields:{name:Fm.visitors.document.objects.Parameter.fixedFields.name,in:Fm.visitors.document.objects.Parameter.fixedFields.in,description:Fm.visitors.document.objects.Parameter.fixedFields.description,required:Fm.visitors.document.objects.Parameter.fixedFields.required,deprecated:Fm.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Fm.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Fm.visitors.document.objects.Parameter.fixedFields.style,explode:Fm.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Fm.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fm.visitors.document.objects.Parameter.fixedFields.example,examples:Fm.visitors.document.objects.Parameter.fixedFields.examples,content:Fm.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:Df,fixedFields:{description:Fm.visitors.document.objects.RequestBody.fixedFields.description,content:Fm.visitors.document.objects.RequestBody.fixedFields.content,required:Fm.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:Ch,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Fm.visitors.document.objects.MediaType.fixedFields.example,examples:Fm.visitors.document.objects.MediaType.fixedFields.examples,encoding:Fm.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:Nf,fixedFields:{contentType:Fm.visitors.document.objects.Encoding.fixedFields.contentType,headers:Fm.visitors.document.objects.Encoding.fixedFields.headers,style:Fm.visitors.document.objects.Encoding.fixedFields.style,explode:Fm.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Fm.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:Gf,fixedFields:{default:Fm.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Uf,fixedFields:{description:Fm.visitors.document.objects.Response.fixedFields.description,headers:Fm.visitors.document.objects.Response.fixedFields.headers,content:Fm.visitors.document.objects.Response.fixedFields.content,links:Fm.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:Bf},Example:{$visitor:kf,fixedFields:{summary:Fm.visitors.document.objects.Example.fixedFields.summary,description:Fm.visitors.document.objects.Example.fixedFields.description,value:Fm.visitors.document.objects.Example.fixedFields.value,externalValue:Fm.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:Fh,fixedFields:{operationRef:Fm.visitors.document.objects.Link.fixedFields.operationRef,operationId:Fm.visitors.document.objects.Link.fixedFields.operationId,parameters:Fm.visitors.document.objects.Link.fixedFields.parameters,requestBody:Fm.visitors.document.objects.Link.fixedFields.requestBody,description:Fm.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Zh,fixedFields:{description:Fm.visitors.document.objects.Header.fixedFields.description,required:Fm.visitors.document.objects.Header.fixedFields.required,deprecated:Fm.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Fm.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Fm.visitors.document.objects.Header.fixedFields.style,explode:Fm.visitors.document.objects.Header.fixedFields.explode,allowReserved:Fm.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fm.visitors.document.objects.Header.fixedFields.example,examples:Fm.visitors.document.objects.Header.fixedFields.examples,content:Fm.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:Vh,fixedFields:{name:Fm.visitors.document.objects.Tag.fixedFields.name,description:Fm.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:zh,fixedFields:{$ref:Fm.visitors.document.objects.Reference.fixedFields.$ref,summary:Gh,description:Jh}},Schema:{$visitor:Pd,fixedFields:{$schema:Ad,$vocabulary:Fd,$id:$d,$anchor:kd,$dynamicAnchor:Rd,$dynamicRef:Id,$ref:Md,$defs:Nd,$comment:Cd,allOf:Td,anyOf:qd,oneOf:Dd,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:Ld,prefixItems:Bd,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Vd,patternProperties:Ud,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:zd,enum:Gd,const:Jd,multipleOf:Wd,maximum:Hd,exclusiveMaximum:Kd,minimum:Zd,exclusiveMinimum:Xd,maxLength:Qd,minLength:Yd,pattern:ef,maxItems:tf,minItems:rf,uniqueItems:sf,maxContains:nf,minContains:of,maxProperties:cf,minProperties:af,required:lf,dependentRequired:uf,title:pf,description:mf,default:hf,deprecated:df,readOnly:ff,writeOnly:yf,examples:_f,format:gf,contentEncoding:bf,contentMediaType:vf,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:Ef}},Discriminator:{$visitor:jf,fixedFields:{propertyName:Fm.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Fm.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:Of,fixedFields:{name:Fm.visitors.document.objects.XML.fixedFields.name,namespace:Fm.visitors.document.objects.XML.fixedFields.namespace,prefix:Fm.visitors.document.objects.XML.fixedFields.prefix,attribute:Fm.visitors.document.objects.XML.fixedFields.attribute,wrapped:Fm.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:Xf,fixedFields:{type:Fm.visitors.document.objects.SecurityScheme.fixedFields.type,description:Fm.visitors.document.objects.SecurityScheme.fixedFields.description,name:Fm.visitors.document.objects.SecurityScheme.fixedFields.name,in:Fm.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Fm.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Fm.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Fm.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:Yf,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:ty,fixedFields:{authorizationUrl:Fm.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Fm.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Fm.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Fm.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:qh}},extension:{$visitor:Fm.visitors.document.extension.$visitor}}}};function oy(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 cy=e=>{if(Dr(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},ay=function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?oy(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):oy(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"]},ls),ly={namespace:e=>{const{base:t}=e;return t.register("callback",Tm),t.register("components",qm),t.register("contact",Dm),t.register("discriminator",Lm),t.register("encoding",Bm),t.register("example",Vm),t.register("externalDocumentation",Um),t.register("header",zm),t.register("info",Gm),t.register("jsonSchemaDialect",Wm),t.register("license",Hm),t.register("link",Km),t.register("mediaType",Zm),t.register("oAuthFlow",Xm),t.register("oAuthFlows",Qm),t.register("openapi",Ym),t.register("openApi3_1",th),t.register("operation",rh),t.register("parameter",sh),t.register("pathItem",nh),t.register("paths",ih),t.register("reference",ch),t.register("requestBody",ah),t.register("response",lh),t.register("responses",uh),t.register("schema",mh),t.register("securityRequirement",hh),t.register("securityScheme",dh),t.register("server",fh),t.register("serverVariable",yh),t.register("tag",_h),t.register("xml",gh),t}};function uy(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 py(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?uy(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):uy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const my=()=>{const e=tr(ly);return{predicates:py(py({},o),{},{isStringElement:Lr,isArrayElement:Gr,isObjectElement:zr,includesClasses:rs}),namespace:e}};function hy(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 dy=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const s=(0,Rt.Qc)(e),n=wi(iy),i=ds(t,[],n);return us(s,i,{state:{specObj:n}}),_s(i.element,r,{toolboxCreator:my,visitorOptions:{keyMap:ay,nodeTypeGetter:cy}})},fy=e=>(t,r={})=>dy(t,function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?hy(Object(r),!0).forEach((function(t){Er(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):hy(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}({specPath:e},r));Tm.refract=fy(["visitors","document","objects","Callback","$visitor"]),qm.refract=fy(["visitors","document","objects","Components","$visitor"]),Dm.refract=fy(["visitors","document","objects","Contact","$visitor"]),Vm.refract=fy(["visitors","document","objects","Example","$visitor"]),Lm.refract=fy(["visitors","document","objects","Discriminator","$visitor"]),Bm.refract=fy(["visitors","document","objects","Encoding","$visitor"]),Um.refract=fy(["visitors","document","objects","ExternalDocumentation","$visitor"]),zm.refract=fy(["visitors","document","objects","Header","$visitor"]),Gm.refract=fy(["visitors","document","objects","Info","$visitor"]),Wm.refract=fy(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Hm.refract=fy(["visitors","document","objects","License","$visitor"]),Km.refract=fy(["visitors","document","objects","Link","$visitor"]),Zm.refract=fy(["visitors","document","objects","MediaType","$visitor"]),Xm.refract=fy(["visitors","document","objects","OAuthFlow","$visitor"]),Qm.refract=fy(["visitors","document","objects","OAuthFlows","$visitor"]),Ym.refract=fy(["visitors","document","objects","OpenApi","fixedFields","openapi"]),th.refract=fy(["visitors","document","objects","OpenApi","$visitor"]),rh.refract=fy(["visitors","document","objects","Operation","$visitor"]),sh.refract=fy(["visitors","document","objects","Parameter","$visitor"]),nh.refract=fy(["visitors","document","objects","PathItem","$visitor"]),ih.refract=fy(["visitors","document","objects","Paths","$visitor"]),ch.refract=fy(["visitors","document","objects","Reference","$visitor"]),ah.refract=fy(["visitors","document","objects","RequestBody","$visitor"]),lh.refract=fy(["visitors","document","objects","Response","$visitor"]),uh.refract=fy(["visitors","document","objects","Responses","$visitor"]),mh.refract=fy(["visitors","document","objects","Schema","$visitor"]),hh.refract=fy(["visitors","document","objects","SecurityRequirement","$visitor"]),dh.refract=fy(["visitors","document","objects","SecurityScheme","$visitor"]),fh.refract=fy(["visitors","document","objects","Server","$visitor"]),yh.refract=fy(["visitors","document","objects","ServerVariable","$visitor"]),_h.refract=fy(["visitors","document","objects","Tag","$visitor"]),gh.refract=fy(["visitors","document","objects","XML","$visitor"]);const yy=class extends ur{};const _y=class extends yy{};const gy=class extends Array{constructor(...e){super(...e),Er(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new _y('"filterByFormat" method is not implemented.')}findBy(){throw new _y('"findBy" method is not implemented.')}latest(){throw new _y('"latest" method is not implemented.')}};class by extends gy{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="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(e="generic"){return pt(this.filterByFormat(e))}}const vy=new by("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"),Ey=new by(...vy.filterByFormat("generic"),...vy.filterByFormat("json")),wy=/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/,jy=async e=>wy.test(e)&&await(async e=>{if(!gn.test(e))return!1;try{return"ERROR"!==(await dr(e)).rootNode.type}catch{return!1}})(e),xy=async(e,t={})=>{const r=gt({},"refractorOpts",t),s=ft(["refractorOpts"],t),n=await(async(e,{sourceMap:t=!1,syntacticAnalysis:r="direct"}={})=>{const s=await dr(e);let n;return n="indirect"===r?_n(s,{sourceMap:t}):ks(s,{sourceMap:t}),n})(e,s),{result:i}=n;if(kt(i)){const e=th.refract(i,r);e.classes.push("result"),n.replaceResult(e)}return n},Oy=tr(ly)})(),s})()));
|