From 2beb4bd7e27f51d12ebcdd04cd71b42cc69fc267 Mon Sep 17 00:00:00 2001 From: char0n Date: Wed, 21 Feb 2024 11:53:28 +0000 Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20swagger-?= =?UTF-8?q?api/apidom@89af0a95c1675706c1b8aec6f67a656f5d85f96b=20?= =?UTF-8?q?=F0=9F=9A=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- asset-manifest.json | 10 +++++----- index.html | 2 +- .../{938.ef90f786.chunk.js => 938.e1b3601b.chunk.js} | 4 ++-- static/js/938.e1b3601b.chunk.js.map | 1 + static/js/938.ef90f786.chunk.js.map | 1 - static/js/{main.777e7fca.js => main.f97d2bc4.js} | 6 +++--- ...fca.js.LICENSE.txt => main.f97d2bc4.js.LICENSE.txt} | 0 .../js/{main.777e7fca.js.map => main.f97d2bc4.js.map} | 2 +- 8 files changed, 13 insertions(+), 13 deletions(-) rename static/js/{938.ef90f786.chunk.js => 938.e1b3601b.chunk.js} (85%) create mode 100644 static/js/938.e1b3601b.chunk.js.map delete mode 100644 static/js/938.ef90f786.chunk.js.map rename static/js/{main.777e7fca.js => main.f97d2bc4.js} (99%) rename static/js/{main.777e7fca.js.LICENSE.txt => main.f97d2bc4.js.LICENSE.txt} (100%) rename static/js/{main.777e7fca.js.map => main.f97d2bc4.js.map} (99%) diff --git a/asset-manifest.json b/asset-manifest.json index 3b2ec844d6..f8def3b591 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,8 +1,8 @@ { "files": { "main.css": "/apidom/static/css/main.e6c13ad2.css", - "main.js": "/apidom/static/js/main.777e7fca.js", - "static/js/938.ef90f786.chunk.js": "/apidom/static/js/938.ef90f786.chunk.js", + "main.js": "/apidom/static/js/main.f97d2bc4.js", + "static/js/938.e1b3601b.chunk.js": "/apidom/static/js/938.e1b3601b.chunk.js", "static/js/878.846c200a.chunk.js": "/apidom/static/js/878.846c200a.chunk.js", "static/js/838.e2972e97.chunk.js": "/apidom/static/js/838.e2972e97.chunk.js", "static/media/tree-sitter-yaml.wasm": "/apidom/static/media/tree-sitter-yaml.d396281e11774e0afa7a.wasm", @@ -10,13 +10,13 @@ "static/media/tree-sitter-json.wasm": "/apidom/static/media/tree-sitter-json.64a30dfa8a51b6a090eb.wasm", "index.html": "/apidom/index.html", "main.e6c13ad2.css.map": "/apidom/static/css/main.e6c13ad2.css.map", - "main.777e7fca.js.map": "/apidom/static/js/main.777e7fca.js.map", - "938.ef90f786.chunk.js.map": "/apidom/static/js/938.ef90f786.chunk.js.map", + "main.f97d2bc4.js.map": "/apidom/static/js/main.f97d2bc4.js.map", + "938.e1b3601b.chunk.js.map": "/apidom/static/js/938.e1b3601b.chunk.js.map", "878.846c200a.chunk.js.map": "/apidom/static/js/878.846c200a.chunk.js.map", "838.e2972e97.chunk.js.map": "/apidom/static/js/838.e2972e97.chunk.js.map" }, "entrypoints": [ "static/css/main.e6c13ad2.css", - "static/js/main.777e7fca.js" + "static/js/main.f97d2bc4.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index 306f983582..f472222154 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -ApiDOM playground
\ No newline at end of file +ApiDOM playground
\ No newline at end of file diff --git a/static/js/938.ef90f786.chunk.js b/static/js/938.e1b3601b.chunk.js similarity index 85% rename from static/js/938.ef90f786.chunk.js rename to static/js/938.e1b3601b.chunk.js index 6c3e3010e1..bb9a29aceb 100644 --- a/static/js/938.ef90f786.chunk.js +++ b/static/js/938.e1b3601b.chunk.js @@ -1,2 +1,2 @@ -(()=>{var e={18443:(e,t,s)=>{"use strict";var n={};s.r(n),s.d(n,{hasElementSourceMap:()=>Me,includesClasses:()=>Re,includesSymbols:()=>qe,isAnnotationElement:()=>Ae,isArrayElement:()=>Ee,isBooleanElement:()=>be,isCommentElement:()=>Pe,isElement:()=>ge,isLinkElement:()=>Se,isMemberElement:()=>we,isNullElement:()=>ye,isNumberElement:()=>ve,isObjectElement:()=>xe,isParseResultElement:()=>$e,isPrimitiveElement:()=>Be,isRefElement:()=>je,isSourceMapElement:()=>Oe,isStringElement:()=>fe});var i={};s.r(i),s.d(i,{detect:()=>Ds,detectionRegExp:()=>Is,lexicalAnalysis:()=>vt,mediaTypes:()=>_s,namespace:()=>Cs,parse:()=>Ns,syntacticAnalysis:()=>Ft,syntacticAnalysisDirect:()=>Ft,syntacticAnalysisIndirect:()=>Fs});var r={};s.r(r),s.d(r,{detect:()=>Ni,lexicalAnalysis:()=>Hs,mediaTypes:()=>Di,namespace:()=>_i,parse:()=>Vi,syntacticAnalysis:()=>Ii});var o={};s.r(o),s.d(o,{isJSONReferenceElement:()=>Oo,isJSONSchemaElement:()=>$o,isLinkDescriptionElement:()=>Mo,isMediaElement:()=>Bo});var c={};s.r(c),s.d(c,{isReferenceLikeElement:()=>bc,isSwaggerExtension:()=>yc});var a={};s.r(a),s.d(a,{isContactElement:()=>sa,isDefinitionsElement:()=>xa,isExampleElement:()=>ua,isExternalDocumentationElement:()=>oa,isHeaderElement:()=>da,isHeadersElement:()=>pa,isInfoElement:()=>ea,isItemsElement:()=>aa,isLicenseElement:()=>ta,isOperationElement:()=>ra,isParameterElement:()=>ca,isParametersDefinitionsElement:()=>Ea,isPathItemElement:()=>ia,isPathsElement:()=>na,isReferenceElement:()=>ga,isResponseElement:()=>ha,isResponsesDefinitionsElement:()=>ya,isResponsesElement:()=>la,isSchemaElement:()=>fa,isScopesElement:()=>Sa,isSecurityDefinitionsElement:()=>ba,isSecurityRequirementElement:()=>ja,isSecuritySchemeElement:()=>wa,isSwaggerElement:()=>Qc,isSwaggerVersionElement:()=>Zc,isTagElement:()=>ma,isXmlElement:()=>va});var l={};s.r(l),s.d(l,{detect:()=>yh,detectionRegExp:()=>vh,mediaTypes:()=>fh,namespace:()=>xh,parse:()=>bh});var h={};s.r(h),s.d(h,{detect:()=>Sh,detectionRegExp:()=>wh,mediaTypes:()=>Eh,namespace:()=>Ah,parse:()=>jh});var p={};s.r(p),s.d(p,{isBooleanJsonSchemaElement:()=>Hu,isCallbackElement:()=>Au,isComponentsElement:()=>Pu,isContactElement:()=>$u,isExampleElement:()=>Ou,isExternalDocumentationElement:()=>Bu,isHeaderElement:()=>Mu,isInfoElement:()=>qu,isLicenseElement:()=>Ru,isLinkElement:()=>Tu,isMediaTypeElement:()=>zu,isOpenApi3_0Element:()=>Fu,isOpenapiElement:()=>ku,isOperationElement:()=>Cu,isParameterElement:()=>Iu,isPathItemElement:()=>_u,isPathsElement:()=>Du,isReferenceElement:()=>Nu,isRequestBodyElement:()=>Vu,isResponseElement:()=>Lu,isResponsesElement:()=>Ju,isSchemaElement:()=>Uu,isSecurityRequirementElement:()=>Gu,isSecuritySchemeElement:()=>Ku,isServerElement:()=>Wu,isServerVariableElement:()=>Xu,isServersElement:()=>Yu});var u={};s.r(u),s.d(u,{detect:()=>Df,detectionRegExp:()=>_f,mediaTypes:()=>If,namespace:()=>Vf,parse:()=>Nf});var d={};s.r(d),s.d(d,{detect:()=>Uf,detectionRegExp:()=>Jf,mediaTypes:()=>Lf,namespace:()=>Gf,parse:()=>Hf});var m={};s.r(m),s.d(m,{isBooleanJsonSchemaElement:()=>By,isCallbackElement:()=>oy,isComponentsElement:()=>cy,isContactElement:()=>ay,isExampleElement:()=>ly,isExternalDocumentationElement:()=>hy,isHeaderElement:()=>py,isInfoElement:()=>uy,isJsonSchemaDialectElement:()=>dy,isLicenseElement:()=>my,isLinkElement:()=>gy,isMediaTypeElement:()=>ky,isOpenApi3_1Element:()=>vy,isOpenapiElement:()=>fy,isOperationElement:()=>yy,isParameterElement:()=>by,isPathItemElement:()=>xy,isPathItemElementExternal:()=>Ey,isPathsElement:()=>wy,isReferenceElement:()=>Sy,isReferenceElementExternal:()=>jy,isRequestBodyElement:()=>Ay,isResponseElement:()=>Py,isResponsesElement:()=>$y,isSchemaElement:()=>Oy,isSecurityRequirementElement:()=>My,isSecuritySchemeElement:()=>qy,isServerElement:()=>Ry,isServerVariableElement:()=>Ty});var g={};s.r(g),s.d(g,{detect:()=>nx,detectionRegExp:()=>sx,mediaTypes:()=>tx,namespace:()=>rx,parse:()=>ix});var f={};s.r(f),s.d(f,{detect:()=>ax,detectionRegExp:()=>cx,mediaTypes:()=>ox,namespace:()=>hx,parse:()=>lx});var v={};s.r(v),s.d(v,{isJSONReferenceElement:()=>Oo,isJSONSchemaElement:()=>Ax,isLinkDescriptionElement:()=>Px,isMediaElement:()=>Bo});var y={};s.r(y),s.d(y,{isJSONReferenceElement:()=>Oo,isJSONSchemaElement:()=>dw,isLinkDescriptionElement:()=>mw});var b={};s.r(b),s.d(b,{isAsyncApi2Element:()=>Ow,isAsyncApiVersionElement:()=>Bw,isBooleanJsonSchemaElement:()=>Jw,isChannelBindingsElement:()=>Mw,isChannelItemElement:()=>qw,isChannelsElement:()=>Rw,isComponentsElement:()=>Tw,isContactElement:()=>kw,isIdentifierElement:()=>Fw,isInfoElement:()=>Cw,isLicenseElement:()=>Iw,isOperationElement:()=>_w,isParameterElement:()=>Dw,isParametersElement:()=>Nw,isReferenceElement:()=>Vw,isSchemaElement:()=>Lw,isSecurityRequirementElement:()=>Uw,isServerBindingsElement:()=>Gw,isServerElement:()=>Hw,isServerVariableElement:()=>Ww,isServersElement:()=>Kw});var x={};s.r(x),s.d(x,{detect:()=>IR,detectionRegExp:()=>CR,mediaTypes:()=>FR,namespace:()=>DR,parse:()=>_R});var E={};s.r(E),s.d(E,{detect:()=>LR,detectionRegExp:()=>VR,mediaTypes:()=>NR,namespace:()=>UR,parse:()=>JR});var w={};s.r(w),s.d(w,{isReferenceLikeElement:()=>xT,isWorkflowsSpecificationExtension:()=>bT});var S={};s.r(S),s.d(S,{isComponentsElement:()=>Rk,isCriterionElement:()=>Tk,isFailureActionCriteriaElement:()=>Ik,isFailureActionElement:()=>Ck,isInfoElement:()=>fk,isJSONSchemaElement:()=>_k,isParameterElement:()=>Mk,isReferenceElement:()=>kk,isSourceDescriptionElement:()=>vk,isSourceDescriptionsElement:()=>yk,isStepDependsOnElement:()=>Ok,isStepElement:()=>Pk,isStepOnFailureElement:()=>jk,isStepOnSuccessElement:()=>Sk,isStepOutputsElement:()=>Ak,isStepParametersElement:()=>$k,isStepSuccessCriteriaElement:()=>Bk,isSuccessActionCriteriaElement:()=>Fk,isSuccessActionElement:()=>qk,isWorkflowElement:()=>wk,isWorkflowOutputsElement:()=>Ek,isWorkflowStepsElement:()=>xk,isWorkflowsElement:()=>bk,isWorkflowsSpecElement:()=>mk,isWorkflowsSpecification1Element:()=>gk});var j={};s.r(j),s.d(j,{detect:()=>DF,detectionRegExp:()=>_F,mediaTypes:()=>IF,namespace:()=>VF,parse:()=>NF});var A={};s.r(A),s.d(A,{detect:()=>UF,detectionRegExp:()=>JF,mediaTypes:()=>LF,namespace:()=>GF,parse:()=>HF});var P={};s.r(P),s.d(P,{isInfoElement:()=>M_,isMainElement:()=>B_,isPrincipleElement:()=>q_,isRequirementElement:()=>R_,isRequirementLevelElement:()=>T_,isScenarioElement:()=>k_,isStandardElement:()=>F_,isStandardIdentifierElement:()=>C_});var $=s(65959),O=s(85618),B=s(28182);class M extends O.Om{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const q=M;class R extends O.Om{constructor(e,t,s){super(e,t,s),this.element="comment"}}const T=R;var k=s(39146);class F extends O.wE{constructor(e,t,s){super(e,t,s),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((0,k.A)(t))return!1;const s=this.content.findIndex((e=>e===t));return-1!==s&&(this.content[s]=e,!0)}}const C=F;class I extends O.wE{constructor(e,t,s){super(e,t,s),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("undefined"===typeof e)return;const t=new O.wE([e.start.row,e.start.column,e.start.char]),s=new O.wE([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),s.classes.push("position"),this.push(t).push(s)}}const _=I;class D extends O.g${constructor(){super(),this.register("annotation",q),this.register("comment",T),this.register("parseResult",C),this.register("sourceMap",_)}}const N=new D,V=e=>{const t=new D;return(0,B.A)(e)&&t.use(e),t},L=N,J=function(e){return(arguments.length>1&&void 0!==arguments[1]?arguments[1]:L).toRefract(e)};var U=s(52315),H=s(76985);const G=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:L;if((0,H.A)(e))try{return t.fromRefract(JSON.parse(e))}catch{}return(0,B.A)(e)&&(0,U.A)("element",e)?t.fromRefract(e):t.toElement(e)};var K=s(98158),W=s(41870),X=s(58009),z=s(21212);const Y=class extends z{constructor(e,t,s){if(super(e,t,s),this.name=this.constructor.name,"string"===typeof t&&(this.message=t),"function"===typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=s&&"object"===typeof s&&Object.hasOwn(s,"cause")&&!("cause"in this)){const{cause:e}=s;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack="".concat(this.stack,"\nCAUSE: ").concat(e.stack))}}};class Q extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(Y,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,null!=t&&"object"===typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack="".concat(this.stack,"\nCAUSE: ").concat(e.stack))}}}const Z=Q;const ee=class extends Z{constructor(e,t){if(super(e,t),null!=t&&"object"===typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}},te=(e,t,s)=>{const n=e[t];if(null!=n){if(!s&&"function"===typeof n)return n;const e=s?n.leave:n.enter;if("function"===typeof e)return e}else{const n=s?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},se={},ne=e=>null===e||void 0===e?void 0:e.type,ie=e=>"string"===typeof ne(e),re=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),oe=function(e,t){let{keyMap:s=null,state:n={},breakSymbol:i=se,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=te,nodeTypeGetter:a=ne,nodePredicate:l=ie,nodeCloneFn:h=re,detectCycles:p=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const u=s||{};let d,m,g=Array.isArray(e),f=[e],v=-1,y=[],b=e;const x=[],E=[];do{v+=1;const e=v===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),S)if(g){b=b.slice();let e=0;for(const[t,s]of y){const n=t-e;s===r?(b.splice(n,1),e+=1):b[n]=s}}else{b=h(b);for(const[e,t]of y)b[e]=t}v=d.index,f=d.keys,y=d.edits,g=d.inArray,d=d.prev}else if(m!==r&&void 0!==m){if(s=g?v:f[v],b=m[s],b===r||void 0===b)continue;x.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new ee("Invalid AST Node: ".concat(String(b)),{node:b});if(p&&E.includes(b)){x.pop();continue}const r=c(t,a(b),e);if(r){for(const[e,s]of Object.entries(n))t[e]=s;j=r.call(t,b,s,m,x,E)}if(j===i)break;if(j===o){if(!e){x.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){x.pop();continue}b=j}}var w;if(void 0===j&&S&&y.push([s,b]),!e)d={inArray:g,index:v,keys:f,edits:y,prev:d},g=Array.isArray(b),f=g?b:null!==(w=u[a(b)])&&void 0!==w?w:[],v=-1,y=[],m!==r&&void 0!==m&&E.push(m),m=b}while(void 0!==d);return 0!==y.length?y[y.length-1][1]:e};oe[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=null,state:n={},breakSymbol:i=se,deleteNodeSymbol:r=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:c=te,nodeTypeGetter:a=ne,nodePredicate:l=ie,nodeCloneFn:h=re,detectCycles:p=!0}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const u=s||{};let d,m,g=Array.isArray(e),f=[e],v=-1,y=[],b=e;const x=[],E=[];do{v+=1;const e=v===f.length;let s;const S=e&&0!==y.length;if(e){if(s=0===E.length?void 0:x.pop(),b=m,m=E.pop(),S)if(g){b=b.slice();let e=0;for(const[t,s]of y){const n=t-e;s===r?(b.splice(n,1),e+=1):b[n]=s}}else{b=h(b);for(const[e,t]of y)b[e]=t}v=d.index,f=d.keys,y=d.edits,g=d.inArray,d=d.prev}else if(m!==r&&void 0!==m){if(s=g?v:f[v],b=m[s],b===r||void 0===b)continue;x.push(s)}let j;if(!Array.isArray(b)){if(!l(b))throw new ee("Invalid AST Node: ".concat(String(b)),{node:b});if(p&&E.includes(b)){x.pop();continue}const r=c(t,a(b),e);if(r){for(const[e,s]of Object.entries(n))t[e]=s;j=await r.call(t,b,s,m,x,E)}if(j===i)break;if(j===o){if(!e){x.pop();continue}}else if(void 0!==j&&(y.push([s,j]),!e)){if(!l(j)){x.pop();continue}b=j}}var w;if(void 0===j&&S&&y.push([s,b]),!e)d={inArray:g,index:v,keys:f,edits:y,prev:d},g=Array.isArray(b),f=g?b:null!==(w=u[a(b)])&&void 0!==w?w:[],v=-1,y=[],m!==r&&void 0!==m&&E.push(m),m=b}while(void 0!==d);return 0!==y.length?y[y.length-1][1]:e};var ce=s(25384),ae=s(8208);const le=(e,t)=>"object"===typeof t&&null!==t&&e in t&&"function"===typeof t[e],he=e=>"object"===typeof e&&null!=e&&"_storedElement"in e&&"string"===typeof e._storedElement&&"_content"in e,pe=(e,t)=>"object"===typeof t&&null!==t&&"primitive"in t&&("function"===typeof t.primitive&&t.primitive()===e),ue=(e,t)=>"object"===typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof O.wE)&&t.classes.includes(e),de=(e,t)=>"object"===typeof t&&null!==t&&"element"in t&&t.element===e,me=e=>e({hasMethod:le,hasBasicElementProps:he,primitiveEq:pe,isElementType:de,hasClass:ue}),ge=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Hg||t(e)&&s(void 0,e)})),fe=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Om||t(e)&&s("string",e)})),ve=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.kT||t(e)&&s("number",e)})),ye=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.Os||t(e)&&s("null",e)})),be=me((e=>{let{hasBasicElementProps:t,primitiveEq:s}=e;return e=>e instanceof O.bd||t(e)&&s("boolean",e)})),xe=me((e=>{let{hasBasicElementProps:t,primitiveEq:s,hasMethod:n}=e;return e=>e instanceof O.Sh||t(e)&&s("object",e)&&n("keys",e)&&n("values",e)&&n("items",e)})),Ee=me((e=>{let{hasBasicElementProps:t,primitiveEq:s,hasMethod:n}=e;return e=>e instanceof O.wE&&!(e instanceof O.Sh)||t(e)&&s("array",e)&&n("push",e)&&n("unshift",e)&&n("map",e)&&n("reduce",e)})),we=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Pr||t(e)&&s("member",e)&&n(void 0,e)})),Se=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.Ft||t(e)&&s("link",e)&&n(void 0,e)})),je=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof O.sI||t(e)&&s("ref",e)&&n(void 0,e)})),Ae=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof q||t(e)&&s("annotation",e)&&n("array",e)})),Pe=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof T||t(e)&&s("comment",e)&&n("string",e)})),$e=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof C||t(e)&&s("parseResult",e)&&n("array",e)})),Oe=me((e=>{let{hasBasicElementProps:t,isElementType:s,primitiveEq:n}=e;return e=>e instanceof _||t(e)&&s("sourceMap",e)&&n("array",e)})),Be=e=>de("object",e)||de("array",e)||de("boolean",e)||de("number",e)||de("string",e)||de("null",e)||de("member",e),Me=e=>Oe(e.meta.get("sourceMap")),qe=(e,t)=>{if(0===e.length)return!0;const s=t.attributes.get("symbols");return!!Ee(s)&&(0,ce.A)((0,ae.A)(s.toValue()),e)},Re=(e,t)=>0===e.length||(0,ce.A)((0,ae.A)(t.classes.toValue()),e);const Te=class extends ee{constructor(e,t){super(e,t),(0,K.A)(this,"value",void 0),"undefined"!==typeof t&&(this.value=t.value)}};const ke=class extends Te{};const Fe=class extends Te{},Ce=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);if(e instanceof O.KeyValuePair){const{key:t,value:i}=e,r=ge(t)?Ce(t,n):t,o=ge(i)?Ce(i,n):i,c=new O.KeyValuePair(r,o);return s.set(e,c),c}if(e instanceof O.ot){const t=e=>Ce(e,n),i=[...e].map(t),r=new O.ot(i);return s.set(e,r),r}if(e instanceof O.G6){const t=e=>Ce(e,n),i=[...e].map(t),r=new O.G6(i);return s.set(e,r),r}if(ge(e)){const t=De(e);if(s.set(e,t),e.content)if(ge(e.content))t.content=Ce(e.content,n);else if(e.content instanceof O.KeyValuePair)t.content=Ce(e.content,n);else if(Array.isArray(e.content)){const s=e=>Ce(e,n);t.content=e.content.map(s)}else t.content=e.content;else t.content=e.content;return t}throw new ke("Value provided to cloneDeep function couldn't be cloned",{value:e})};Ce.safe=e=>{try{return Ce(e)}catch{return e}};const Ie=e=>{const{key:t,value:s}=e;return new O.KeyValuePair(t,s)},_e=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Ce(e.meta)),e.attributes.length>0&&(t._attributes=Ce(e.attributes)),ge(e.content)){const s=e.content;t.content=_e(s)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof O.KeyValuePair?t.content=Ie(e.content):t.content=e.content;return t},De=e=>{if(e instanceof O.KeyValuePair)return Ie(e);if(e instanceof O.ot)return(e=>{const t=[...e];return new O.ot(t)})(e);if(e instanceof O.G6)return(e=>{const t=[...e];return new O.G6(t)})(e);if(ge(e))return _e(e);throw new Fe("Value provided to cloneShallow function couldn't be cloned",{value:e})};De.safe=e=>{try{return De(e)}catch{return e}};const Ne=e=>xe(e)?"ObjectElement":Ee(e)?"ArrayElement":we(e)?"MemberElement":fe(e)?"StringElement":be(e)?"BooleanElement":ve(e)?"NumberElement":ye(e)?"NullElement":Se(e)?"LinkElement":je(e)?"RefElement":void 0,Ve=e=>ge(e)?De(e):re(e),Le=(0,W.A)(Ne,H.A),Je={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class Ue{constructor(){let{predicate:e=X.A,returnOnTrue:t,returnOnFalse:s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,K.A)(this,"result",void 0),(0,K.A)(this,"predicate",void 0),(0,K.A)(this,"returnOnTrue",void 0),(0,K.A)(this,"returnOnFalse",void 0),this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=s}enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}const He=function(e,t){let{keyMap:s=Je,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return oe(e,t,{keyMap:s,nodeTypeGetter:Ne,nodePredicate:Le,nodeCloneFn:Ve,...n})};He[Symbol.for("nodejs.util.promisify.custom")]=async function(e,t){let{keyMap:s=Je,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return oe[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:s,nodeTypeGetter:Ne,nodePredicate:Le,nodeCloneFn:Ve,...n})};class Ge{constructor(){(0,K.A)(this,"result",""),(0,K.A)(this,"nestingLevel",0)}enter(e){const{element:t}=e,s=t.charAt(0).toUpperCase()+t.slice(1),n=" ".repeat(this.nestingLevel);this.result+=this.nestingLevel>0?"\n":"",this.result+="".concat(n,"(").concat(s,"Element"),this.nestingLevel+=1}leave(){this.nestingLevel-=1,this.result+=")"}}const Ke=e=>{const t=new Ge;return He(e,t),t.result};var We=s(34887);const Xe=e=>"string"===typeof(null===e||void 0===e?void 0:e.type)?e.type:Ne(e),ze={EphemeralObject:["content"],EphemeralArray:["content"],...Je},Ye=function(e,t){let{keyMap:s=ze,...n}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return He(e,t,{keyMap:s,nodeTypeGetter:Xe,nodePredicate:We.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n})};Ye[Symbol.for("nodejs.util.promisify.custom")]=async function(e){let{keyMap:t=ze,...s}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return He[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Xe,nodePredicate:We.A,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...s})};const Qe=class{constructor(e){(0,K.A)(this,"type","EphemeralArray"),(0,K.A)(this,"content",[]),(0,K.A)(this,"reference",void 0),this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Ze=class{constructor(e){(0,K.A)(this,"type","EphemeralObject"),(0,K.A)(this,"content",[]),(0,K.A)(this,"reference",void 0),this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class et{constructor(){(0,K.A)(this,"ObjectElement",{enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Ze(e.content);return this.references.set(e,t),t}}),(0,K.A)(this,"EphemeralObject",{leave:e=>e.toObject()}),(0,K.A)(this,"MemberElement",{enter:e=>[e.key,e.value]}),(0,K.A)(this,"ArrayElement",{enter:e=>{if(this.references.has(e))return this.references.get(e).toReference();const t=new Qe(e.content);return this.references.set(e,t),t}}),(0,K.A)(this,"EphemeralArray",{leave:e=>e.toArray()}),(0,K.A)(this,"references",new WeakMap)}BooleanElement(e){return e.toValue()}NumberElement(e){return e.toValue()}StringElement(e){return e.toValue()}NullElement(){return null}}const tt=e=>ge(e)?fe(e)||ve(e)||be(e)||ye(e)?e.toValue():Ye(e,new et):e;var st=s(13225),nt=s(47496),it=s(69455);const rt=class extends Z{};const ot=class extends rt{};const ct=class extends Array{constructor(){super(...arguments),(0,K.A)(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new ot("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new ot("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new ot("latest method in MediaTypes class is not yet implemented.")}};const at=class extends ee{constructor(e,t){super(e,t),(0,K.A)(this,"source",void 0),(0,K.A)(this,"parserOptions",void 0),"undefined"!==typeof t&&(this.source=t.source,this.parserOptions=t.parserOptions)}};const lt=class{constructor(){(0,K.A)(this,"adapters",[])}async detectAdapterCandidates(e){const t=[];for(const s of this.adapters)(0,nt.A)(s.detect)&&await s.detect(e)&&t.push(s);return t}async findAdapter(e,t){if((0,H.A)(t))return this.adapters.find((e=>!!(0,it.A)(e.mediaTypes)&&e.mediaTypes.includes(t)));const s=await this.detectAdapterCandidates(e);return(0,st.A)(s)}use(e){return this.adapters.push(e),this}async findNamespace(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=await this.findAdapter(e,t.mediaType);return null===s||void 0===s?void 0:s.namespace}async findMediaType(e){const t=await this.findAdapter(e,void 0);if("undefined"===typeof t)return(new ct).unknownMediaType;if("undefined"===typeof t.mediaTypes)return(new ct).unknownMediaType;if("undefined"===typeof t.detectionRegExp)return t.mediaTypes.latest();const{detectionRegExp:s}=t,n=e.match(s);if(null===n)return(new ct).unknownMediaType;const{groups:i}=n,r=(null===i||void 0===i?void 0:i.version)||(null===i||void 0===i?void 0:i.version_json)||(null===i||void 0===i?void 0:i.version_yaml),o=null!==i&&void 0!==i&&i.version_json?"json":null!==i&&void 0!==i&&i.version_yaml?"yaml":"generic";return"undefined"===typeof r?t.mediaTypes.latest():t.mediaTypes.findBy(r,o)}async parse(e){let t,s=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};try{t=await this.findAdapter(e,s.mediaType)}catch(n){throw new at("Encountered an unexpected error while matching parser adapters against the source.",{source:e,parserOptions:s,cause:n})}if((0,k.A)(t))throw new at("Source did not match any registered parsers",{source:e,parserOptions:s});try{return t.parse(e,s)}catch(n){throw new at("Parsing encountered an unexpected error.",{source:e,parserOptions:s,cause:n})}}};var ht=s(98921),pt=s(74921);const ut=globalThis.fetch;(0,nt.A)(ut)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===gt&&null===ft)ft=dt.init().then((()=>dt.Language.load(mt))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{ft=null})),gt=await ft;else if(null===gt&&null!==ft)gt=await ft;else if(null===gt)throw new Z("Error while initializing web-tree-sitter and loading tree-sitter-json grammar.");return gt.parse(e)};var yt=s(27317),bt=s(53163),xt=s(88868);const Et=()=>({predicates:{...n},namespace:L}),wt={toolboxCreator:Et,visitorOptions:{nodeTypeGetter:Ne,exposeEdits:!0}},St=function(e,t){let s=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(0===t.length)return e;const n=(0,yt.A)(wt,s),{toolboxCreator:i,visitorOptions:r}=n,o=i(),c=t.map((e=>e(o))),a=function(e){let{visitFnGetter:t=te,nodeTypeGetter:s=ne,breakSymbol:n=se,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:r=!1,exposeEdits:o=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const c=Symbol("skip"),a=new Array(e.length).fill(c);return{enter(l){let h=l,p=!1;for(var u=arguments.length,d=new Array(u>1?u-1:0),m=1;m1?o-1:0),h=1;h{let{Type:s,plugins:n=[]}=t;const i=new s(e);return St(i,n,{toolboxCreator:Et,visitorOptions:{nodeTypeGetter:Ne}})},At=e=>function(t){return jt(t,{...arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},Type:e})};O.Sh.refract=At(O.Sh),O.wE.refract=At(O.wE),O.Om.refract=At(O.Om),O.bd.refract=At(O.bd),O.Os.refract=At(O.Os),O.kT.refract=At(O.kT),O.Ft.refract=At(O.Ft),O.sI.refract=At(O.sI),q.refract=At(q),T.refract=At(T),C.refract=At(C),_.refract=At(_);const Pt=class{constructor(e){(0,K.A)(this,"type",void 0),(0,K.A)(this,"startPosition",void 0),(0,K.A)(this,"endPosition",void 0),(0,K.A)(this,"startIndex",void 0),(0,K.A)(this,"endIndex",void 0),(0,K.A)(this,"text",void 0),(0,K.A)(this,"isNamed",void 0),(0,K.A)(this,"isMissing",void 0),(0,K.A)(this,"fieldName",void 0),(0,K.A)(this,"hasError",!1),(0,K.A)(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(){this.children.push(...arguments)}};class $t{static toPosition(e){const t=new O.wE([e.startPosition.row,e.startPosition.column,e.startIndex]),s=new O.wE([e.endPosition.row,e.endPosition.column,e.endIndex]);return t.classes.push("position"),s.classes.push("position"),[t,s]}constructor(){(0,K.A)(this,"sourceMap",!1),(0,K.A)(this,"annotations",void 0),(0,K.A)(this,"ParseResultElement",{leave:e=>{const t=e.findElements(Be);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}}),this.annotations=[]}enter(e){if(e instanceof Pt&&!e.isNamed&&e.isMissing){const t=e.type||e.text,s="(Missing ".concat(t,")"),n=new q(s);n.classes.push("warning"),this.maybeAddSourceMap(e,n),this.annotations.push(n)}return null}document(e){const t=new C;return t._content=e.children,this.maybeAddSourceMap(e,t),t}object(e){const t=new O.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}array(e){const t=new O.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}pair(e){const t=new O.Pr;return t.content.key=e.keyNode,t.content.value=e.valueNode,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"ERROR"===e.type)).forEach((t=>{this.ERROR(t,e,[],[e])})),t}string(e){const t=new O.Om(JSON.parse(e.text));return this.maybeAddSourceMap(e,t),t}number(e){const t=new O.kT(Number(e.text));return this.maybeAddSourceMap(e,t),t}null(e){const t=new O.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new O.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new O.bd(!1);return this.maybeAddSourceMap(e,t),t}ERROR(e,t,s,n){const i=!e.hasError,r=e.text,o=i?"(Unexpected ".concat(r,")"):"(Error ".concat(r,")"),c=new q(o);if(c.classes.push("error"),this.maybeAddSourceMap(e,c),0===n.length){const e=new C;return e.push(c),e}return this.annotations.push(c),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new _,n=$t.toPosition(e);if(null!==n){const[e,t]=n;s.push(e),s.push(t)}s.astNode=e,t.meta.set("sourceMap",s)}}const Ot=$t;let Bt;Bt=Symbol.iterator;class Mt{constructor(e){(0,K.A)(this,"cursor",void 0),this.cursor=e}document(){return new Pt(this.cursor)}object(){return new Pt(this.cursor).setFieldName(this.cursor)}array(){return new Pt(this.cursor).setFieldName(this.cursor)}pair(){return new Pt(this.cursor)}string(){return new Pt(this.cursor).setFieldName(this.cursor)}number(){return new Pt(this.cursor).setFieldName(this.cursor)}null(){return new Pt(this.cursor).setFieldName(this.cursor)}true(){return new Pt(this.cursor).setFieldName(this.cursor)}false(){return new Pt(this.cursor).setFieldName(this.cursor)}ERROR(){return new Pt(this.cursor).setHasError(this.cursor)}*[Bt](){let e;if(e=this.cursor.nodeType in this?this[this.cursor.nodeType]():new Pt(this.cursor),this.cursor.gotoFirstChild()){const[t]=new Mt(this.cursor);for(e.pushChildren(t);this.cursor.gotoNextSibling();){const t=new Mt(this.cursor);e.pushChildren(...t)}this.cursor.gotoParent()}yield e}}const qt=Mt,Rt={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"],...Je},Tt=e=>$e(e)?"ParseResultElement":ge(e)?Ne(e):ne(e),kt=e=>ge(e)||ie(e),Ft=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=new Ot,n=e.walk(),i=new qt(n),[r]=Array.from(i);return oe(r,s,{keyMap:Rt,nodeTypeGetter:Tt,nodePredicate:kt,state:{sourceMap:t}})};class Ct{constructor(){let{children:e=[],position:t,isMissing:s=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};(0,K.A)(this,"type","node"),(0,K.A)(this,"isMissing",void 0),(0,K.A)(this,"children",void 0),(0,K.A)(this,"position",void 0),this.type=this.constructor.type,this.isMissing=s,this.children=e,this.position=t}clone(){const e=Object.create(Object.getPrototypeOf(this));return Object.getOwnPropertyNames(this).forEach((t=>{const s=Object.getOwnPropertyDescriptor(this,t);Object.defineProperty(e,t,s)})),e}}(0,K.A)(Ct,"type","node");const It=Ct;const _t=class extends It{};class Dt extends _t{get child(){return(0,st.A)(this.children)}}(0,K.A)(Dt,"type","document");const Nt=Dt;class Vt extends It{get rootNode(){return(0,st.A)(this.children)}}(0,K.A)(Vt,"type","parseResult");const Lt=Vt;class Jt{constructor(e){let{row:t,column:s,char:n}=e;(0,K.A)(this,"type",Jt.type),(0,K.A)(this,"row",void 0),(0,K.A)(this,"column",void 0),(0,K.A)(this,"char",void 0),this.row=t,this.column=s,this.char=n}}(0,K.A)(Jt,"type","point");class Ut{constructor(e){let{start:t,end:s}=e;(0,K.A)(this,"type",Ut.type),(0,K.A)(this,"start",void 0),(0,K.A)(this,"end",void 0),this.start=t,this.end=s}}(0,K.A)(Ut,"type","position");const Ht=Ut;class Gt extends It{constructor(){let{value:e,...t}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...t}),(0,K.A)(this,"value",void 0),this.value=e}}(0,K.A)(Gt,"type","literal");const Kt=Gt,Wt=(e,t)=>null!=t&&"object"===typeof t&&"type"in t&&t.type===e,Xt=e=>Wt("string",e),zt=e=>Wt("false",e),Yt=e=>Wt("true",e),Qt=e=>Wt("null",e),Zt=e=>Wt("number",e),es=e=>Wt("array",e),ts=e=>Wt("object",e),ss=e=>Wt("property",e),ns=e=>Wt("key",e);class is extends _t{get properties(){return this.children.filter(ss)}}(0,K.A)(is,"type","object");const rs=is;class os extends _t{get value(){if(1===this.children.length){return this.children[0].value}return this.children.filter((e=>(e=>Wt("stringContent",e))(e)||(e=>Wt("escapeSequence",e))(e))).reduce(((e,t)=>e+t.value),"")}}(0,K.A)(os,"type","string");const cs=os;class as extends cs{}(0,K.A)(as,"type","key");const ls=as;class hs extends _t{get key(){return this.children.find(ns)}get value(){return this.children.find((e=>zt(e)||Yt(e)||Qt(e)||Zt(e)||Xt(e)||es(e)||ts(e)))}}(0,K.A)(hs,"type","property");const ps=hs;class us extends _t{get items(){return this.children.filter((e=>zt(e)||Yt(e)||Qt(e)||Zt(e)||Xt(e)||es(e)||ts))}}(0,K.A)(us,"type","array");const ds=us;class ms extends _t{constructor(e){let{value:t,...s}=e;super({...s}),(0,K.A)(this,"value",void 0),this.value=t}}(0,K.A)(ms,"type","value");const gs=ms;class fs extends gs{}(0,K.A)(fs,"type","stringContent");const vs=fs;class ys extends gs{}(0,K.A)(ys,"type","number");const bs=ys;class xs extends gs{}(0,K.A)(xs,"type","null");const Es=xs;class ws extends gs{}(0,K.A)(ws,"type","true");const Ss=ws;class js extends gs{}(0,K.A)(js,"type","false");const As=js;class Ps extends It{constructor(){let{value:e,isUnexpected:t=!1,...s}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};super({...s}),(0,K.A)(this,"value",void 0),(0,K.A)(this,"isUnexpected",void 0),this.value=e,this.isUnexpected=t}}(0,K.A)(Ps,"type","error");const $s=Ps,Os={document:["children"],object:["children"],array:["children"],string:["children"],property:["children"],key:["children"],error:["children"]};class Bs{constructor(){(0,K.A)(this,"document",{enter:e=>{const t=Bs.toPosition(e);return new Nt({children:e.children,position:t,isMissing:e.isMissing})},leave:e=>new Lt({children:[e]})})}static toPosition(e){const t=new Jt({row:e.startPosition.row,column:e.startPosition.column,char:e.startIndex}),s=new Jt({row:e.endPosition.row,column:e.endPosition.column,char:e.endIndex});return new Ht({start:t,end:s})}enter(e){if(e instanceof Pt&&!e.isNamed){const t=Bs.toPosition(e),s=e.type||e.text,{isMissing:n}=e;return new Kt({value:s,position:t,isMissing:n})}}object(e){const t=Bs.toPosition(e);return new rs({children:e.children,position:t,isMissing:e.isMissing})}pair(e){const t=Bs.toPosition(e),s=e.children.slice(1),{keyNode:n}=e,i=new ls({children:(null===n||void 0===n?void 0:n.children)||[],position:null!=n?Bs.toPosition(n):void 0,isMissing:null!=n&&n.isMissing});return new ps({children:[i,...s],position:t,isMissing:e.isMissing})}array(e){const t=Bs.toPosition(e);return new ds({children:e.children,position:t,isMissing:e.isMissing})}string(e){const t=Bs.toPosition(e),s=new vs({value:JSON.parse(e.text)});return new cs({children:[s],position:t,isMissing:e.isMissing})}number(e){const t=Bs.toPosition(e),s=e.text;return new bs({value:s,position:t,isMissing:e.isMissing})}null(e){const t=Bs.toPosition(e),s=e.text;return new Es({value:s,position:t,isMissing:e.isMissing})}true(e){const t=Bs.toPosition(e),s=e.text;return new Ss({value:s,position:t,isMissing:e.isMissing})}false(e){const t=Bs.toPosition(e),s=e.text;return new As({value:s,position:t,isMissing:e.isMissing})}ERROR(e,t,s,n){const i=Bs.toPosition(e),r=new $s({children:e.children,position:i,isUnexpected:!e.hasError,isMissing:e.isMissing,value:e.text});return 0===n.length?new Lt({children:[r]}):r}}const Ms=Bs,qs={[Lt.type]:["children"],[Nt.type]:["children"],[rs.type]:["children"],[ps.type]:["children"],[ds.type]:["children"],[$s.type]:["children"],...Je},Rs=e=>$e(e)?"ParseResultElement":ge(e)?Ne(e):ne(e),Ts=e=>ge(e)||ie(e);const ks=class{constructor(){(0,K.A)(this,"sourceMap",!1),(0,K.A)(this,"annotations",void 0),(0,K.A)(this,"ParseResultElement",{leave:e=>{const t=e.findElements(Be);if(t.length>0){t[0].classes.push("result")}this.annotations.forEach((t=>{e.push(t)})),this.annotations=[]}}),this.annotations=[]}document(e){const t=new C;return t._content=e.children,t}object(e){const t=new O.Sh;return t._content=e.children,this.maybeAddSourceMap(e,t),t}property(e){const t=new O.Pr;return t.content.key=e.key,t.content.value=e.value,this.maybeAddSourceMap(e,t),e.children.length>3&&e.children.filter((e=>"error"===e.type)).forEach((t=>{this.error(t,e,[],[e])})),t}key(e){const t=new O.Om(e.value);return this.maybeAddSourceMap(e,t),t}array(e){const t=new O.wE;return t._content=e.children,this.maybeAddSourceMap(e,t),t}string(e){const t=new O.Om(e.value);return this.maybeAddSourceMap(e,t),t}number(e){const t=new O.kT(Number(e.value));return this.maybeAddSourceMap(e,t),t}null(e){const t=new O.Os;return this.maybeAddSourceMap(e,t),t}true(e){const t=new O.bd(!0);return this.maybeAddSourceMap(e,t),t}false(e){const t=new O.bd(!1);return this.maybeAddSourceMap(e,t),t}literal(e){if(e.isMissing){const t="(Missing ".concat(e.value,")"),s=new q(t);s.classes.push("warning"),this.maybeAddSourceMap(e,s),this.annotations.push(s)}return null}error(e,t,s,n){const i=e.isUnexpected?"(Unexpected ".concat(e.value,")"):"(Error ".concat(e.value,")"),r=new q(i);if(r.classes.push("error"),this.maybeAddSourceMap(e,r),0===n.length){const e=new C;return e.push(r),e}return this.annotations.push(r),null}maybeAddSourceMap(e,t){if(!this.sourceMap)return;const s=new _;s.position=e.position,s.astNode=e,t.meta.set("sourceMap",s)}},Fs=function(e){let{sourceMap:t=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const s=e.walk(),n=new qt(s),[i]=Array.from(n),r=new Ms,o=new ks,c=oe(i,r,{keyMap:Os,state:{sourceMap:t}});return oe(c.rootNode,o,{keyMap:qs,nodeTypeGetter:Rs,nodePredicate:Ts,state:{sourceMap:t}})},Cs=V(),Is=/(?^\s*true\s*$)|(?^\s*false\s*$)|(?^\s*null\s*$)|(?^\s*\d+\s*$)|(?^\s*{\s*)|(?^\s*\[\s*)|(?^\s*"(((?=\\)\\(["\\/bfnrt]|u[0-9a-fA-F]{4}))|[^"\\\x00-\x1F\x7F])*"\s*$)/;const _s=new class extends ct{latest(){return this[0]}}("application/json"),Ds=async e=>{if(!Is.test(e))return!1;try{return"ERROR"!==(await vt(e)).rootNode.type}catch{return!1}},Ns=async function(e){let{sourceMap:t=!1,syntacticAnalysis:s="direct"}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=await vt(e);let i;return i="indirect"===s?Fs(n,{sourceMap:t}):Ft(n,{sourceMap:t}),i},Vs=globalThis.fetch;(0,nt.A)(Vs)&&(globalThis.fetch=function(){for(var e=arguments.length,t=new Array(e),s=0;s{if(null===Js&&null===Us)Us=dt.init().then((()=>dt.Language.load(Ls))).then((e=>{const t=new dt;return t.setLanguage(e),t})).finally((()=>{Us=null})),Js=await Us;else if(null===Js&&null!==Us)Js=await Us;else if(null===Js)throw new Z("Error while initializing web-tree-sitter and loading tree-sitter-yaml grammar.");return Js.parse(e)};var Gs=s(33178);const Ks=class extends ee{};const Ws=class extends Ks{};const Xs=class extends Ws{constructor(e,t){super(e,t),(0,K.A)(this,"specificTagName",void 0),(0,K.A)(this,"explicitTagName",void 0),(0,K.A)(this,"tagKind",void 0),(0,K.A)(this,"tagPosition",void 0),(0,K.A)(this,"nodeCanonicalContent",void 0),(0,K.A)(this,"node",void 0),"undefined"!==typeof t&&(this.specificTagName=t.specificTagName,this.explicitTagName=t.explicitTagName,this.tagKind=t.tagKind,this.tagPosition=t.tagPosition,this.nodeCanonicalContent=t.nodeCanonicalContent,this.node=t.node)}};let zs=function(e){return e.Scalar="Scalar",e.Sequence="Sequence",e.Mapping="Mapping",e}({});class Ys extends It{constructor(e){let{explicitName:t,kind:s,...n}=e;super({...n}),(0,K.A)(this,"explicitName",void 0),(0,K.A)(this,"kind",void 0),this.explicitName=t,this.kind=s}}(0,K.A)(Ys,"type","tag");const Qs=Ys;class Zs{constructor(){(0,K.A)(this,"tag",""),this.tag=this.constructor.uri}test(e){return!0}resolve(e){return e}}(0,K.A)(Zs,"uri","");const en=Zs;class tn extends en{test(e){return e.tag.kind===zs.Mapping}}(0,K.A)(tn,"uri","tag:yaml.org,2002:map");const sn=tn;class nn extends en{test(e){return e.tag.kind===zs.Sequence}}(0,K.A)(nn,"uri","tag:yaml.org,2002:seq");const rn=nn;class on extends en{}(0,K.A)(on,"uri","tag:yaml.org,2002:str");const cn=on;var an=s(60029),ln=s(26836),hn=s(37879),pn=s(38579),un=s(74818),dn=s(70515),mn=s(30439),gn=s(62658),fn=s(31179),vn=s(75882),yn=s(11264),bn=s(32509),xn=s(45876),En=s(10856),wn=s(71090),Sn=s(37152),jn=s(96323);const An=/^(?