@speclynx/apidom-ns-openapi-3-1 2.1.0 → 2.2.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.apidomNsOpenApi3_1=t():e.apidomNsOpenApi3_1=t()}(self,()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AlternatingVisitor:()=>rl,BaseFixedFieldsVisitor:()=>xd,BaseMapVisitor:()=>vd,BaseSchemaVisitor:()=>bd,BaseSpecificationVisitor:()=>gd,CallbackElement:()=>H,ComponentsCallbacksElement:()=>sa,ComponentsElement:()=>z,ComponentsExamplesElement:()=>zc,ComponentsHeadersElement:()=>Wc,ComponentsLinksElement:()=>ea,ComponentsParametersElement:()=>Hc,ComponentsPathItemsElement:()=>aa,ComponentsRequestBodiesElement:()=>Xc,ComponentsResponsesElement:()=>Jc,ComponentsSchemasElement:()=>Bc,ComponentsSecuritySchemesElement:()=>Zc,ContactElement:()=>X,DiscriminatorElement:()=>W,DiscriminatorMappingElement:()=>ra,EncodingElement:()=>Z,EncodingHeadersElement:()=>Ac,ExampleElement:()=>ee,ExternalDocumentationElement:()=>se,FallbackVisitor:()=>Ua,FixedFieldsVisitor:()=>tl,HeaderContentElement:()=>qc,HeaderElement:()=>oe,HeaderExamplesElement:()=>Dc,InfoElement:()=>ae,JsonSchemaDialectElement:()=>de,LicenseElement:()=>he,LinkElement:()=>Fe,LinkParametersElement:()=>Al,MapVisitor:()=>nl,MediaTypeElement:()=>Ae,MediaTypeEncodingElement:()=>Fc,MediaTypeExamplesElement:()=>jc,MixedFieldsVisitor:()=>ll,OAuthFlowElement:()=>Pe,OAuthFlowScopesElement:()=>oa,OAuthFlowsElement:()=>Ce,OpenAPIMediaTypes:()=>f,OpenApi3_1Element:()=>Me,OpenapiElement:()=>Te,OperationCallbacksElement:()=>pc,OperationElement:()=>Re,OperationParametersElement:()=>uc,OperationSecurityElement:()=>mc,OperationServersElement:()=>yc,OperationTagsElement:()=>ac,ParameterContentElement:()=>bc,ParameterElement:()=>Be,ParameterExamplesElement:()=>xc,PathItemElement:()=>Je,PathItemParametersElement:()=>oc,PathItemServersElement:()=>rc,PathsElement:()=>He,PatternedFieldsVisitor:()=>sl,ReferenceElement:()=>Ge,RequestBodyContentElement:()=>Sc,RequestBodyElement:()=>Ke,ResponseContentElement:()=>Cc,ResponseElement:()=>Ye,ResponseHeadersElement:()=>Pc,ResponseLinksElement:()=>Tc,ResponsesElement:()=>Qe,SchemaElement:()=>Mo,SecurityElement:()=>Zo,SecurityRequirementElement:()=>Ro,SecuritySchemeElement:()=>Lo,ServerElement:()=>_o,ServerVariableElement:()=>Vo,ServerVariablesElement:()=>sc,ServersElement:()=>Wo,SpecificationExtensionVisitor:()=>vl,SpecificationVisitor:()=>za,TagElement:()=>Uo,TagsElement:()=>ec,Visitor:()=>Ha,WebhooksElement:()=>ua,XmlElement:()=>Go,createToolbox:()=>wh,default:()=>Xo,isBooleanJsonSchemaElement:()=>vp,isCallbackElement:()=>Wd,isComponentsElement:()=>Yd,isContactElement:()=>Zd,isExampleElement:()=>Qd,isExternalDocumentationElement:()=>ep,isInfoElement:()=>sp,isJsonSchemaDialectElement:()=>np,isLicenseElement:()=>rp,isLinkElement:()=>ip,isMediaTypeElement:()=>jp,isOpenApi3_1Element:()=>cp,isOpenApiExtension:()=>el,isOpenapiElement:()=>op,isOperationElement:()=>ap,isParameterElement:()=>lp,isPathItemElement:()=>up,isPathItemElementExternal:()=>dp,isPathsElement:()=>pp,isReferenceElement:()=>hp,isReferenceElementExternal:()=>mp,isReferenceLikeElement:()=>Ya,isRequestBodyElement:()=>fp,isResponseElement:()=>yp,isResponsesElement:()=>gp,isSchemaElement:()=>xp,isSecurityRequirementElement:()=>bp,isSecuritySchemeElement:()=>wp,isServerElement:()=>Sp,isServerLikeElement:()=>Za,isServerVariableElement:()=>Ep,isServersElement:()=>Jl,mediaTypes:()=>y,refract:()=>em,refractCallback:()=>Bh,refractComponents:()=>$h,refractContact:()=>Oh,refractDiscriminator:()=>Gh,refractEncoding:()=>Rh,refractExample:()=>_h,refractExternalDocumentation:()=>Nh,refractHeader:()=>Vh,refractInfo:()=>jh,refractJsonSchemaDialect:()=>Qh,refractLicense:()=>Fh,refractLink:()=>Jh,refractMediaType:()=>Dh,refractOAuthFlow:()=>Yh,refractOAuthFlows:()=>Wh,refractOpenApi3_1:()=>Eh,refractOperation:()=>Ch,refractParameter:()=>Th,refractPathItem:()=>Ih,refractPaths:()=>Ph,refractReference:()=>Uh,refractRequestBody:()=>Mh,refractResponse:()=>Lh,refractResponses:()=>qh,refractSchema:()=>zh,refractSecurityRequirement:()=>Zh,refractSecurityScheme:()=>Kh,refractServer:()=>kh,refractServerVariable:()=>Ah,refractTag:()=>Hh,refractXml:()=>Xh,refractorPluginNormalizeHeaderExamples:()=>pm,refractorPluginNormalizeOperationIds:()=>um,refractorPluginNormalizeParameterExamples:()=>dm,refractorPluginNormalizeParameters:()=>va,refractorPluginNormalizeSecurityRequirements:()=>ba,refractorPluginNormalizeServers:()=>tm,refractorPluginReplaceEmptyElement:()=>ha,specificationObj:()=>fh});var s={};e.r(s),e.d(s,{isBooleanJsonSchemaElement:()=>vp,isCallbackElement:()=>Wd,isComponentsElement:()=>Yd,isContactElement:()=>Zd,isExampleElement:()=>Qd,isExternalDocumentationElement:()=>ep,isHeaderElement:()=>tp,isInfoElement:()=>sp,isJsonSchemaDialectElement:()=>np,isLicenseElement:()=>rp,isLinkElement:()=>ip,isMediaTypeElement:()=>jp,isOpenApi3_1Element:()=>cp,isOpenapiElement:()=>op,isOperationElement:()=>ap,isParameterElement:()=>lp,isPathItemElement:()=>up,isPathItemElementExternal:()=>dp,isPathsElement:()=>pp,isReferenceElement:()=>hp,isReferenceElementExternal:()=>mp,isRequestBodyElement:()=>fp,isResponseElement:()=>yp,isResponsesElement:()=>gp,isSchemaElement:()=>xp,isSecurityRequirementElement:()=>bp,isSecuritySchemeElement:()=>wp,isServerElement:()=>Sp,isServerVariableElement:()=>Ep});var n={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||r(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isOpenApiExtension:()=>vh,isReferenceLikeElement:()=>yh,isServerLikeElement:()=>gh,isTagLikeElement:()=>xh});const c=i(function(e){return o(-1,e)});class a extends AggregateError{constructor(e,t,s){super(e,t,s),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const l=a;class u extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(l,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const d=u;const p=class extends d{};const h=class extends p{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new h("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new h("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new h("latest method in MediaTypes class is not yet implemented.")}};class f extends m{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.1.2",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const y=new f("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","application/vnd.oai.openapi;version=3.1.1","application/vnd.oai.openapi+json;version=3.1.1","application/vnd.oai.openapi+yaml;version=3.1.1","application/vnd.oai.openapi;version=3.1.2","application/vnd.oai.openapi+json;version=3.1.2","application/vnd.oai.openapi+yaml;version=3.1.2");function g(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return r(s)?t:i(function(t){return e(s,t)});default:return r(s)&&r(n)?t:r(s)?i(function(t){return e(t,n)}):r(n)?i(function(t){return e(s,t)}):e(s,n)}}}function x(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function b(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const E=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return b("callee",e)}}();var j=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=function(){return arguments.propertyIsEnumerable("length")}(),k=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},A="function"!=typeof Object.keys||F?i(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=F&&E(e);for(t in e)!b(t,e)||r&&"length"===t||(n[n.length]=t);if(j)for(s=O.length-1;s>=0;)b(t=O[s],e)&&!k(n,t)&&(n[n.length]=t),s-=1;return n}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const $=A;const P=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function I(e,t,s,n){var r=x(e);function i(e,t){return C(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(i,t,e)},x(t),r)}function C(e,t,s,n){if(w(e,t))return!0;var r,i,o=P(e);if(o!==P(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"===(r=e.constructor,null==(i=String(r).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(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=s.length-1;c>=0;){if(s[c]===e)return n[c]===t;c-=1}switch(o){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),s.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=$(e);if(a.length!==$(t).length)return!1;var l=s.concat([e]),u=n.concat([t]);for(c=a.length-1;c>=0;){var d=a[c];if(!b(d,t)||!C(t[d],e[d],l,u))return!1;c-=1}return!0}const N=g(function(e,t){return C(e,t,[],[])});const T=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class M{elements;constructor(e){this.elements=e??[]}toValue(){return this.elements.map(e=>({key:e.key?.toValue(),value:e.value?.toValue()}))}map(e,t){return this.elements.map(s=>{const n=s.value,r=s.key;if(void 0===n||void 0===r)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,r,s):e(n,r,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))});return new M(s)}reject(e,t){const s=[];for(const n of this.elements){const r=n.value,i=n.key;void 0!==r&&void 0!==i&&(e.call(t,r,i,n)||s.push(n))}return new M(s)}forEach(e,t){this.elements.forEach((s,n)=>{const r=s.value,i=s.key;void 0!==r&&void 0!==i&&(void 0!==t?e.call(t,r,i,s,n):e(r,i,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))})}keys(){return this.elements.map(e=>e.key?.toValue()).filter(e=>void 0!==e)}values(){return this.elements.map(e=>e.value?.toValue()).filter(e=>void 0!==e)}get length(){return this.elements.length}get isEmpty(){return 0===this.length}get first(){return this.elements[0]}get(e){return this.elements[e]}push(e){return this.elements.push(e),this}includesKey(e){return this.elements.some(t=>t.key?.equals(e))}[Symbol.iterator](){return this.elements[Symbol.iterator]()}}const D=M;class R{parent;startLine;startCharacter;startOffset;endLine;endCharacter;endOffset;_storedElement="element";_content;_meta;_attributes;constructor(e,t,s){void 0!==t&&(this.meta=t),void 0!==s&&(this.attributes=s),void 0!==e&&(this.content=e)}get element(){return this._storedElement}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof R)this._content=e;else if(null!=e&&"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&"bigint"!=typeof e&&"symbol"!=typeof e)if(e instanceof T)this._content=e;else if(e instanceof D)this._content=e.elements;else if(Array.isArray(e))this._content=e.map(e=>this.refract(e));else{if("object"!=typeof e)throw new Error("Cannot set content to value of type "+typeof e);this._content=Object.entries(e).map(([e,t])=>new this.MemberElement(e,t))}else this._content=e}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 R?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 R?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 links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof T){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof R?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&(this._meta.parent=this,this._meta.freeze()),this._attributes&&(this._attributes.parent=this,this._attributes.freeze());for(const e of this.children)e.parent=this,e.freeze();Array.isArray(this._content)&&Object.freeze(this._content),Object.freeze(this)}}toValue(){const{_content:e}=this;return e instanceof R||e instanceof T?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){return N(this.toValue(),e)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id.toValue();if(""===t)throw new Error("Cannot create reference to an element without an ID");const s=new this.RefElement(t);return"string"==typeof e&&(s.path=this.refract(e)),s}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)}hasMetaProperty(e){return!this.isMetaEmpty&&this.meta.hasKey(e)}get isMetaEmpty(){return void 0===this._meta||this.meta.isEmpty}getAttributesProperty(e,t){if(!this.hasAttributesProperty(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.attributes.set(e,t)}return this.attributes.get(e)}setAttributesProperty(e,t){this.attributes.set(e,t)}hasAttributesProperty(e){return!this.isAttributesEmpty&&this.attributes.hasKey(e)}get isAttributesEmpty(){return void 0===this._attributes||this.attributes.isEmpty}}const q=R;class L extends q{constructor(e,t,s){super(e||[],t,s)}get length(){return this._content.length}get isEmpty(){return 0===this.length}get first(){return this._content[0]}get second(){return this._content[1]}get last(){return this._content.at(-1)}push(...e){for(const t of e)this._content.push(this.refract(t));return this}shift(){return this._content.shift()}unshift(e){this._content.unshift(this.refract(e))}includes(e){return this._content.some(t=>t.equals(e))}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],i=s;n&&"function"==typeof i.findElements&&i.findElements(e,{results:r,recursive:n}),e(s,t,void 0)&&r.push(s)}return r}find(e){const t=this.findElements(e,{recursive:!0});return new this.ArrayElement(t)}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>{const s=t.classes;return"function"==typeof s.includes&&s.includes(e)})}getById(e){return this.find(t=>t.id.toValue()===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const B=L;const _=class extends q{constructor(e,t,s,n){super(new T,s,n),this.element="member",void 0!==e&&(this.key=e),arguments.length>=2&&(this.value=t)}primitive(){return"member"}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=void 0===e?void 0:this.refract(e)}};const J=class extends B{constructor(e,t,s){super(e||[],t,s),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}getValue(e){const t=this.get(e);if(t)return t.toValue()}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(s=>s.key.toValue()!==e||(t=s,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if("string"==typeof e){const s=this.getMember(e);s?s.value=t:this._content.push(new _(e,t))}else if("object"==typeof e&&!Array.isArray(e))for(const t of Object.keys(e))this.set(t,e[t]);return 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(s=>e.call(t,s.value,s.key,s))}compactMap(e,t){const s=[];return this.forEach((n,r,i)=>{const o=e.call(t,n,r,i);o&&s.push(o)}),s}filter(e,t){return new D(this._content).filter(e,t)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n.value,n.key,n)||s.push(n);return new D(s)}forEach(e,t){this._content.forEach(s=>e.call(t,s.value,s.key,s))}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this._content[0]?.value);for(let t=s;t<this._content.length;t+=1){const s=this._content[t],r=e(n,s.value,s.key,s,this);n=void 0===r?r:this.refract(r)}return n}empty(){return new this.constructor([])}};const V=class extends J{constructor(e,t,s){super(e,t,s),this.element="callback"}};const H=class extends V{};const U=class extends J{constructor(e,t,s){super(e,t,s),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 linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}};const z=class extends U{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const G=class extends J{constructor(e,t,s){super(e,t,s),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 X=class extends G{};const K=class extends J{constructor(e,t,s){super(e,t,s),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 W=class extends K{};const Y=class extends J{constructor(e,t,s){super(e,t,s),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 Z=class extends Y{};const Q=class extends J{constructor(e,t,s){super(e,t,s),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 ee=class extends Q{};const te=class extends J{constructor(e,t,s){super(e,t,s),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 se=class extends te{};const ne=class extends q{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class re extends J{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ne(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ne(!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 contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(re.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ie=re;const oe=class extends ie{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ce=class extends J{constructor(e,t,s){super(e,t,s),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 ae=class extends ce{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)}};const le=class extends q{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};class ue extends le{static default=new ue("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const de=ue;const pe=class extends J{constructor(e,t,s){super(e,t,s),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 he=class extends pe{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const me=class extends q{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const fe=class extends q{constructor(e,t,s){super(e??null,t,s),this.element="null"}primitive(){return"null"}set(e){throw new Error("Cannot set the value of null")}};const ye=class extends B{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this._content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}set(e,t){return"number"==typeof e&&void 0!==t?this._content[e]=this.refract(t):this.content=e,this}remove(e){return this._content.splice(e,1)[0]??null}map(e,t){return this._content.map(e,t)}flatMap(e,t){return this._content.flatMap(e,t)}compactMap(e,t){const s=[];for(const n of this._content){const r=e.call(t,n);r&&s.push(r)}return s}filter(e,t){const s=this._content.filter(e,t);return new this.constructor(s)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n)||s.push(n);return new this.constructor(s)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this.first);for(let t=s;t<this.length;t+=1){const s=e(n,this._content[t],t,this);n=void 0===s?s:this.refract(s)}return n}forEach(e,t){this._content.forEach((s,n)=>{e.call(t,s,n)})}empty(){return new this.constructor([])}},ge=e=>e instanceof q,xe=e=>e instanceof le,ve=e=>e instanceof me,be=e=>e instanceof fe,we=e=>e instanceof ne,Se=e=>e instanceof ye,Ee=e=>e instanceof J,je=e=>e instanceof _;const Oe=class extends J{constructor(e,t,s){super(e,t,s),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(){return xe(this.operationRef)?this.operationRef?.meta.get("operation"):xe(this.operationId)?this.operationId?.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 Fe=class extends Oe{};const ke=class extends J{constructor(e,t,s){super(e,t,s),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 Ae=class extends ke{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const $e=class extends J{constructor(e,t,s){super(e,t,s),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 Pe=class extends $e{};const Ie=class extends J{constructor(e,t,s){super(e,t,s),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 Ce=class extends Ie{};const Ne=class extends le{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const Te=class extends Ne{};const Me=class extends J{constructor(e,t,s){super(e,t,s),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 De=class extends J{constructor(e,t,s){super(e,t,s),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 ne(!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 Re=class extends De{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class qe extends J{constructor(e,t,s){super(e,t,s),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 ne(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ne(!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 contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(qe.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Le=qe;const Be=class extends Le{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const _e=class extends J{constructor(e,t,s){super(e,t,s),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 getField(){return this.get("get")}set getField(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 deleteField(){return this.get("delete")}set deleteField(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 Je=class extends _e{get getField(){return this.get("get")}set getField(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 deleteField(){return this.get("delete")}set deleteField(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 Ve=class extends J{constructor(e,t,s){super(e,t,s),this.element="paths"}};const He=class extends Ve{};const Ue=class extends J{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};class ze extends Ue{}Object.defineProperty(ze.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(ze.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Ge=ze;const Xe=class extends J{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ne(!1)}set required(e){this.set("required",e)}};const Ke=class extends Xe{};const We=class extends J{constructor(e,t,s){super(e,t,s),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 contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}};const Ye=class extends We{};const Ze=class extends J{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};const Qe=class extends Ze{};function et(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}const tt=g(function(e,t){return et(function(s,n){return s[n]=e(t[n],n,t),s},{},$(t))});const st=i(function(e){return null==e});var nt=g(function(e,t){if(0===e.length||st(t))return!1;for(var s=t,n=0;n<e.length;){if(st(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const rt=nt;var it=g(function(e,t){return rt([e],t)});const ot=it;function ct(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:g(function(t,n){return e(s,t,n)});case 2:return r(s)&&r(n)?t:r(s)?g(function(t,s){return e(t,n,s)}):r(n)?g(function(t,n){return e(s,t,n)}):i(function(t){return e(s,n,t)});default:return r(s)&&r(n)&&r(o)?t:r(s)&&r(n)?g(function(t,s){return e(t,s,o)}):r(s)&&r(o)?g(function(t,s){return e(t,n,s)}):r(n)&&r(o)?g(function(t,n){return e(s,t,n)}):r(s)?i(function(t){return e(t,n,o)}):r(n)?i(function(t){return e(s,t,o)}):r(o)?i(function(t){return e(s,n,t)}):e(s,n,o)}}}const at=Number.isInteger||function(e){return(e|0)===e};const lt=function(e,t){if(null!=t)return at(e)?o(e,t):t[e]};const ut=g(lt);const dt=ct(function(e,t,s){return e(ut(t,s))});function pt(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=at(r)?o(r,s):s[r]}return s}const ht=g(pt);function mt(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,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,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 ft(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const yt=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function gt(e){return"[object String]"===Object.prototype.toString.call(e)}const xt=i(function(e){return!!yt(e)||!!e&&("object"==typeof e&&(!gt(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var vt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function bt(e,t,s){return function(n,r,i){if(xt(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[vt])return s(n,r,i[vt]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function wt(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const St=g(function(e,t){return mt(e.length,function(){return e.apply(t,arguments)})});function Et(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function jt(e,t,s,n){return e["@@transducer/result"](s[n](St(e["@@transducer/step"],e),t))}const Ot=bt(wt,jt,Et);var Ft=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function kt(e){return new Ft(e)}const At=ct(function(e,t,s){return Ot("function"==typeof e?kt(e):e,t,s)});function $t(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return yt(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Pt=ct($t("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const It=i($t("tail",Pt(1,1/0)));function Ct(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return mt(arguments[0].length,At(ft,arguments[0],It(arguments)))}var Nt=function(e,t){switch(arguments.length){case 0:return Nt;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const Tt=Nt;function Mt(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(N(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function Dt(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function Rt(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 qt=function(e){return(e<10?"0":"")+e};const Lt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+qt(e.getUTCMonth()+1)+"-"+qt(e.getUTCDate())+"T"+qt(e.getUTCHours())+":"+qt(e.getUTCMinutes())+":"+qt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Bt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!yt(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=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 s.apply(this,arguments)}}function _t(e){return"[object Object]"===Object.prototype.toString.call(e)}const Jt=function(){return this.xf["@@transducer/init"]()},Vt=function(e){return this.xf["@@transducer/result"](e)};var Ht=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jt,e.prototype["@@transducer/result"]=Vt,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Ut(e){return function(t){return new Ht(e,t)}}var zt=g(Bt(["fantasy-land/filter","filter"],Ut,function(e,t){return _t(t)?et(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},$(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),r=n.next();!r.done;)e(r.value[1])&&s.set(r.value[0],r.value[1]),r=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t));var s}));const Gt=zt;const Xt=g(function(e,t){return Gt((s=e,function(){return!s.apply(this,arguments)}),t);var s});function Kt(e,t){var s=function(s){var n=t.concat([e]);return Mt(s,n)?"<Circular>":Kt(s,n)},n=function(e,t){return Dt(function(t){return Rt(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Dt(s,e).join(", ")+"))";case"[object Array]":return"["+Dt(s,e).concat(n(e,Xt(function(e){return/^\d+$/.test(e)},$(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):Rt(Lt(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":Rt(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,$(e)).join(", ")+"}"}}const Wt=i(function(e){return Kt(e,[])});const Yt=ct(function(e,t,s){return e(pt(t,s))});function Zt(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const Qt=g(function(e,t){return e&&t});function es(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function ts(e,t,s,n){return s[n](e,t)}const ss=bt(et,ts,es);var ns=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jt,e.prototype["@@transducer/result"]=Vt,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const rs=function(e){return function(t){return new ns(e,t)}};function is(e,t,s){return function(){for(var n=[],i=0,o=e,c=0,a=!1;c<t.length||i<arguments.length;){var l;c<t.length&&(!r(t[c])||i>=arguments.length)?l=t[c]:(l=arguments[i],i+=1),n[c]=l,r(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):mt(Math.max(0,o),is(e,n,s))}}const os=g(function(e,t){return 1===e?i(t):mt(e,is(e,[],t))});const cs=g(Bt(["fantasy-land/map","map"],rs,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return os(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return et(function(s,n){return s[n]=e(t[n]),s},{},$(t));default:return Dt(e,t)}}));const as=g(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(s){return e(s)(t(s))}:ss(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,cs(s,t))},[],e)});const ls=g(function(e,t){var s=os(e,t);return os(e,function(){return et(as,cs(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const us=i(function(e){return ls(e.length,e)});const ds=g(function(e,t){return Zt(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:us(Qt)(e,t)});const ps=N(null);const hs=us(i(function(e){return!e}));const ms=hs(ps);function fs(e){return fs="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},fs(e)}const ys=function(e){return"object"===fs(e)};const gs=os(1,ds(ms,ys));const xs=g(function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=Wt(e),o=s(i,Wt(t));return void 0!==o&&o===i?e:t});const vs=g(function(e,t){return cs(ut(e),t)});const bs=i(function(e){return os(At(xs,0,vs("length",e)),function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const ws=os(1,Ct(P,Tt("GeneratorFunction")));const Ss=os(1,Ct(P,Tt("AsyncFunction")));const Es=bs([Ct(P,Tt("Function")),ws,Ss]);var js=Ct(P,Tt("Object")),Os=Ct(Wt,N(Wt(Object))),Fs=Yt(ds(Es,Os),["constructor"]);const ks=os(1,function(e){if(!gs(e)||!js(e))return!1;var t=Object.getPrototypeOf(e);return!!ps(t)||Fs(t)});const As=os(1,Ct(P,Tt("String")));const $s=i(function(e){return os(e.length,e)});const Ps=g(function(e,t){return os(e+1,function(){var s=arguments[e];if(null!=s&&Zt(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Wt(s)+' does not have a method named "'+t+'"')})});const Is=Ps(1,"split");var Cs=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jt,e.prototype["@@transducer/result"]=Vt,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 Ns(e){return function(t){return new Cs(e,t)}}const Ts=g(Bt(["dropWhile"],Ns,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Pt(s,1/0,t)}));const Ms=Ps(1,"join");const Ds=i(function(e){return os(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})})(g(Mt));const Rs=$s(function(e,t){return Ct(Is(""),Ts(Ds(e)),Ms(""))(t)}),qs=new WeakMap,Ls=e=>{if(qs.has(e))return qs.get(e);const t={},s=(e,n,r)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...r,"$visitor"]:r),tt((e,t)=>{const i=[...r,t];if(ks(e)&&ot("$ref",e)&&dt(As,"$ref",e)){const t=ht(["$ref"],e),s=Rs("#/",t);return ht(s.split("/"),n)}return ks(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,qs.set(e,n),n};const Bs=class extends J{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idField(){return this.get("id")}set idField(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",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 itemsField(){return this.get("items")}set itemsField(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 linksField(){return this.get("links")}set linksField(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 _s=class extends J{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const Js=class extends J{constructor(e,t,s){super(e,t,s),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 Vs=class extends J{constructor(e,t,s){super(e,t,s),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)}},Hs=e=>"number"==typeof e.startLine&&"number"==typeof e.startCharacter&&"number"==typeof e.startOffset&&"number"==typeof e.endLine&&"number"==typeof e.endCharacter&&"number"==typeof e.endOffset,Us=(e,t)=>0===t.length||!!ge(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class zs extends le{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}static transfer(e,t){t.startLine=e.startLine,t.startCharacter=e.startCharacter,t.startOffset=e.startOffset,t.endLine=e.endLine,t.endCharacter=e.endCharacter,t.endOffset=e.endOffset}static from(e){const{startLine:t,startCharacter:s,startOffset:n,endLine:r,endCharacter:i,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof r||"number"!=typeof i||"number"!=typeof o)return;const c="sm1:"+[t,s,n,r,i,o].map(Xs).join("");const a=new zs(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=r,a.endCharacter=i,a.endOffset=o,a}applyTo(e){this.content&&([e.startLine,e.startCharacter,e.startOffset,e.endLine,e.endCharacter,e.endOffset]=function(e){const t=e.startsWith("sm1:")?e.slice(4):e,s=[];let n=0;for(let e=0;e<6;e++){const e=Ks(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const Gs="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function Xs(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=Gs[e]}while(0!==t);return s}function Ks(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=Gs.indexOf(t);if(-1===i)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&i)<<n,n+=5,!!!(32&i))break}return{value:s>>>0,next:r}}const Ws=zs;const Ys=class extends d{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const Zs=class extends Ys{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Qs=class extends Zs{};const en=class extends Zs{},tn=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=on(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>tn(e,n)):ge(i)?r.content=tn(i,n):r.content=i instanceof T?sn(i,n):i,r},sn=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:r,value:i}=e,o=void 0!==r?tn(r,n):void 0,c=void 0!==i?tn(i,n):void 0,a=new T(o,c);return s.set(e,a),a},nn=(e,t={})=>{if(e instanceof T)return sn(e,t);if(e instanceof D)return((e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=[...e].map(e=>tn(e,n)),i=new D(r);return s.set(e,i),i})(e,t);if(ge(e))return tn(e,t);throw new Qs("Value provided to cloneDeep function couldn't be cloned",{value:e})};nn.safe=e=>{try{return nn(e)}catch{return e}};const rn=e=>{const{key:t,value:s}=e;return new T(t,s)},on=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=nn(e.meta)),e.isAttributesEmpty||(t.attributes=nn(e.attributes)),Hs(e)&&Ws.transfer(e,t);const{content:s}=e;return ge(s)?t.content=on(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof T?rn(s):s,t},cn=e=>{if(e instanceof T)return rn(e);if(e instanceof D)return(e=>{const t=[...e];return new D(t)})(e);if(ge(e))return on(e);throw new en("Value provided to cloneShallow function couldn't be cloned",{value:e})};cn.safe=e=>{try{return cn(e)}catch{return e}};const an=class extends q{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){if(this.hasAttributesProperty("relation"))return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){if(this.hasAttributesProperty("href"))return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}};const ln=class extends q{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){if(this.hasAttributesProperty("path"))return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}};const un=class extends le{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){if(this.hasAttributesProperty("code"))return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}};const dn=class extends le{constructor(e,t,s){super(e,t,s),this.element="comment"}};const pn=class extends ye{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>Us(e,["api"])).first}get results(){return this.filter(e=>Us(e,["result"]))}get result(){return this.results.first}get annotations(){return this.filter(e=>"annotation"===e.element)}get warnings(){return this.filter(e=>"annotation"===e.element&&Us(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&Us(e,["error"]))}get isEmpty(){return 0===this.reject(e=>"annotation"===e.element).length}replaceResult(e){const{result:t}=this;if(void 0===t)return!1;const s=this._content,n=s.findIndex(e=>e===t);return-1!==n&&(s[n]=e,!0)}},hn=e=>e instanceof an,mn=e=>e instanceof ln,fn=e=>{if(!ge(e))return e;if(xe(e)||ve(e)||we(e)||be(e))return e.toValue();const t=new WeakMap,s=e=>{if(!ge(e))return e;if(Ee(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const r=s(t),i=s(e);"string"==typeof r&&(n[r]=i)}),n}if(Se(e)){if(t.has(e))return t.get(e);const n=[];return t.set(e,n),e.forEach(e=>n.push(s(e))),n}return mn(e)?String(e.toValue()):hn(e)?xe(e.href)?e.href.toValue():"":e.toValue()};return s(e)},yn=e=>{const t=e.isMetaEmpty?void 0:nn(e.meta),s=e.isAttributesEmpty?void 0:nn(e.attributes);return new e.constructor(void 0,t,s)},gn=(e,t)=>t.clone&&t.isMergeableElement(e)?vn(yn(e),e,t):e,xn={clone:!0,isMergeableElement:e=>Ee(e)||Se(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>gn(e,s))),objectElementMerge:(e,t,s)=>{const n=Ee(e)?yn(e):yn(t);return Ee(e)&&e.forEach((e,t,r)=>{const i=cn(r);i.value=gn(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=fn(r);let c;if(Ee(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=cn(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return vn;const s=t.customMerge(e,t);return"function"==typeof s?s:vn})(r,s)(n,t,s)}else c=cn(i),c.value=gn(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},vn=(e,t,s)=>{const n={...xn,...s};n.isMergeableElement=n.isMergeableElement??xn.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??xn.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??xn.objectElementMerge;const r=Se(t);if(!(r===Se(e)))return gn(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>nn(e):e.customMetaMerge)(n)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>nn(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};vn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new J:e.reduce((e,s)=>vn(e,s,t),yn(e[0]))};const bn=vn;const wn=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new J:t.meta,n=e.isMetaEmpty?new J:e.meta;t.meta=bn(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new J:t.attributes,n=e.isAttributesEmpty?new J:e.attributes;t.attributes=bn(s,n)}Ws.transfer(e,t)}};const Sn=class extends wn{enter(e){this.element=nn(e.node),e.stop()}};const En=i(function(e){return function(){return e}});const jn=g(function(e,t){return null==t||t!=t?e:t});const On=En(void 0);const Fn=N(On());const kn=i(function(e){return os(At(xs,0,vs("length",e)),function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var An=i(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():e==Set||e instanceof Set?new Set:e==Map||e instanceof Map?new Map:yt(e)?[]:gt(e)?"":_t(e)?{}:E(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 $n=An;const Pn=i(function(e){return null!=e&&N(e,$n(e))});const In=i(function(e){return!Pn(e)});const Cn=g(function(e,t){return e||t});const Nn=os(1,ds(ms,g(function(e,t){return Zt(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:us(Cn)(e,t)})(ys,Es)));var Tn=hs(Nn);const Mn=kn([As,Tn,In]);const Dn=g(function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}),Rn=function(){const e=Ln,t=qn,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let r,i,o,c,a,l,u,d=0,p=0,h=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,x,b,w)=>{const S=`${n}parse(): `;d=0,p=0,h=0,m=0,f=0,r=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(b),r=g.rules,i=g.udts;const E=x.toLowerCase();let j;for(const e in r)if(r.hasOwnProperty(e)&&E===r[e].lower){j=r[e].index;break}if(void 0===j)throw new Error(`${S}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<r.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<r.length;t+=1)c.push(r[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in s.callbacks)if(s.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=s.callbacks[n]?s.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<r.length?a[t]=o:l[t-r.length]=o}})(),s.trace&&s.trace.init(r,i,c),s.stats&&s.stats.init(r,i),s.ast&&s.ast.init(r,i,c),u=w,o=[{type:e.RNM,index:j}],v(0,0),o=void 0;let O=!1;switch(y.state){case e.ACTIVE:throw new Error(`${S}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:h,nodeHits:m}};const g=(t,s,r,i)=>{if(s.phraseLength>r){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},x=(t,a)=>{let p,h,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,d||(m=s.ast&&s.ast.udtDefined(f.index),m&&(h=r.length+f.index,p=s.ast.getLength(),s.ast.down(h,g.name)));const x=c.length-a;l[f.index](y,c,a,u),((t,s,r)=>{if(s.phraseLength>r){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,y,x),d||m&&(y.state===e.NOMATCH?s.ast.setLength(p):s.ast.up(h,g.name,a,y.phraseLength))},v=(t,i)=>{const l=`${n}opExecute(): `,b=o[t];switch(m+=1,p>h&&(h=p),p+=1,y.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let r,i,c,a;const l=o[t];s.ast&&(i=s.ast.getLength()),r=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),y.state===e.NOMATCH){r=!1;break}c+=y.phraseLength,a+=y.phraseLength}r?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let r,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,a=0,l=0,s.ast&&(r=s.ast.getLength());!(i>=c.length)&&(v(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,i);break;case e.RNM:((t,n)=>{let i,l,p;const h=o[t],m=r[h.index],f=a[m.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,r[h.index].name))),f){const t=c.length-n;f(y,c,n,u),g(m,y,t,!0),y.state===e.ACTIVE&&(p=o,o=m.opcodes,v(0,n),o=p,f(y,c,n,u),g(m,y,t,!1))}else p=o,o=m.opcodes,v(0,n,y),o=p;d||l&&(y.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,m.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const n=o[t];y.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const n=o[t],r=n.string.length;if(y.state=e.NOMATCH,s+r<=c.length){for(let e=0;e<r;e+=1)if(c[s+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=r}})(t,i);break;case e.TLS:((t,s)=>{let n;const r=o[t];y.state=e.NOMATCH;const i=r.string.length;if(0!==i){if(s+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==r.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:x(t,i);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}d||i+y.phraseLength>f&&(f=i+y.phraseLength),s.stats&&s.stats.collect(b,y),s.trace&&s.trace.up(b,y.state,i,y.phraseLength),p-=1}},qn={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,s)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===s){n=e.slice(t);break}if(s<=0)return"";n=e.slice(t,t+s);break}return String.fromCodePoint(...n)}},Ln={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Ln.ALT:return"ALT";case Ln.CAT:return"CAT";case Ln.REP:return"REP";case Ln.RNM:return"RNM";case Ln.TRG:return"TRG";case Ln.TBS:return"TBS";case Ln.TLS:return"TLS";case Ln.UDT:return"UDT";case Ln.AND:return"AND";case Ln.NOT:return"NOT";case Ln.ACTIVE:return"ACTIVE";case Ln.EMPTY:return"EMPTY";case Ln.MATCH:return"MATCH";case Ln.NOMATCH:return"NOMATCH";case Ln.SEM_PRE:return"SEM_PRE";case Ln.SEM_POST:return"SEM_POST";case Ln.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Bn(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class _n extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Jn=_n;new Bn;new Bn,new Rn,new Bn,new Rn,new Bn,new Rn,new Bn,new Rn;const Vn=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Hn=class extends Jn{},Un=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Vn(String(e))}).join("/")}`}catch(t){throw new Hn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class zn extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Gn=zn;new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"jsonpath-query",lower:"jsonpath-query",index:0,isBkr:!1},this.rules[1]={name:"segments",lower:"segments",index:1,isBkr:!1},this.rules[2]={name:"B",lower:"b",index:2,isBkr:!1},this.rules[3]={name:"S",lower:"s",index:3,isBkr:!1},this.rules[4]={name:"root-identifier",lower:"root-identifier",index:4,isBkr:!1},this.rules[5]={name:"selector",lower:"selector",index:5,isBkr:!1},this.rules[6]={name:"name-selector",lower:"name-selector",index:6,isBkr:!1},this.rules[7]={name:"string-literal",lower:"string-literal",index:7,isBkr:!1},this.rules[8]={name:"double-quoted",lower:"double-quoted",index:8,isBkr:!1},this.rules[9]={name:"single-quoted",lower:"single-quoted",index:9,isBkr:!1},this.rules[10]={name:"ESC",lower:"esc",index:10,isBkr:!1},this.rules[11]={name:"unescaped",lower:"unescaped",index:11,isBkr:!1},this.rules[12]={name:"escapable",lower:"escapable",index:12,isBkr:!1},this.rules[13]={name:"hexchar",lower:"hexchar",index:13,isBkr:!1},this.rules[14]={name:"non-surrogate",lower:"non-surrogate",index:14,isBkr:!1},this.rules[15]={name:"high-surrogate",lower:"high-surrogate",index:15,isBkr:!1},this.rules[16]={name:"low-surrogate",lower:"low-surrogate",index:16,isBkr:!1},this.rules[17]={name:"HEXDIG",lower:"hexdig",index:17,isBkr:!1},this.rules[18]={name:"wildcard-selector",lower:"wildcard-selector",index:18,isBkr:!1},this.rules[19]={name:"index-selector",lower:"index-selector",index:19,isBkr:!1},this.rules[20]={name:"int",lower:"int",index:20,isBkr:!1},this.rules[21]={name:"DIGIT1",lower:"digit1",index:21,isBkr:!1},this.rules[22]={name:"slice-selector",lower:"slice-selector",index:22,isBkr:!1},this.rules[23]={name:"start",lower:"start",index:23,isBkr:!1},this.rules[24]={name:"end",lower:"end",index:24,isBkr:!1},this.rules[25]={name:"step",lower:"step",index:25,isBkr:!1},this.rules[26]={name:"filter-selector",lower:"filter-selector",index:26,isBkr:!1},this.rules[27]={name:"logical-expr",lower:"logical-expr",index:27,isBkr:!1},this.rules[28]={name:"logical-or-expr",lower:"logical-or-expr",index:28,isBkr:!1},this.rules[29]={name:"logical-and-expr",lower:"logical-and-expr",index:29,isBkr:!1},this.rules[30]={name:"basic-expr",lower:"basic-expr",index:30,isBkr:!1},this.rules[31]={name:"paren-expr",lower:"paren-expr",index:31,isBkr:!1},this.rules[32]={name:"logical-not-op",lower:"logical-not-op",index:32,isBkr:!1},this.rules[33]={name:"test-expr",lower:"test-expr",index:33,isBkr:!1},this.rules[34]={name:"filter-query",lower:"filter-query",index:34,isBkr:!1},this.rules[35]={name:"rel-query",lower:"rel-query",index:35,isBkr:!1},this.rules[36]={name:"current-node-identifier",lower:"current-node-identifier",index:36,isBkr:!1},this.rules[37]={name:"comparison-expr",lower:"comparison-expr",index:37,isBkr:!1},this.rules[38]={name:"literal",lower:"literal",index:38,isBkr:!1},this.rules[39]={name:"comparable",lower:"comparable",index:39,isBkr:!1},this.rules[40]={name:"comparison-op",lower:"comparison-op",index:40,isBkr:!1},this.rules[41]={name:"singular-query",lower:"singular-query",index:41,isBkr:!1},this.rules[42]={name:"rel-singular-query",lower:"rel-singular-query",index:42,isBkr:!1},this.rules[43]={name:"abs-singular-query",lower:"abs-singular-query",index:43,isBkr:!1},this.rules[44]={name:"singular-query-segments",lower:"singular-query-segments",index:44,isBkr:!1},this.rules[45]={name:"name-segment",lower:"name-segment",index:45,isBkr:!1},this.rules[46]={name:"index-segment",lower:"index-segment",index:46,isBkr:!1},this.rules[47]={name:"number",lower:"number",index:47,isBkr:!1},this.rules[48]={name:"frac",lower:"frac",index:48,isBkr:!1},this.rules[49]={name:"exp",lower:"exp",index:49,isBkr:!1},this.rules[50]={name:"true",lower:"true",index:50,isBkr:!1},this.rules[51]={name:"false",lower:"false",index:51,isBkr:!1},this.rules[52]={name:"null",lower:"null",index:52,isBkr:!1},this.rules[53]={name:"function-name",lower:"function-name",index:53,isBkr:!1},this.rules[54]={name:"function-name-first",lower:"function-name-first",index:54,isBkr:!1},this.rules[55]={name:"function-name-char",lower:"function-name-char",index:55,isBkr:!1},this.rules[56]={name:"LCALPHA",lower:"lcalpha",index:56,isBkr:!1},this.rules[57]={name:"function-expr",lower:"function-expr",index:57,isBkr:!1},this.rules[58]={name:"function-argument",lower:"function-argument",index:58,isBkr:!1},this.rules[59]={name:"segment",lower:"segment",index:59,isBkr:!1},this.rules[60]={name:"child-segment",lower:"child-segment",index:60,isBkr:!1},this.rules[61]={name:"bracketed-selection",lower:"bracketed-selection",index:61,isBkr:!1},this.rules[62]={name:"member-name-shorthand",lower:"member-name-shorthand",index:62,isBkr:!1},this.rules[63]={name:"name-first",lower:"name-first",index:63,isBkr:!1},this.rules[64]={name:"name-char",lower:"name-char",index:64,isBkr:!1},this.rules[65]={name:"DIGIT",lower:"digit",index:65,isBkr:!1},this.rules[66]={name:"ALPHA",lower:"alpha",index:66,isBkr:!1},this.rules[67]={name:"descendant-segment",lower:"descendant-segment",index:67,isBkr:!1},this.rules[68]={name:"normalized-path",lower:"normalized-path",index:68,isBkr:!1},this.rules[69]={name:"normal-index-segment",lower:"normal-index-segment",index:69,isBkr:!1},this.rules[70]={name:"normal-selector",lower:"normal-selector",index:70,isBkr:!1},this.rules[71]={name:"normal-name-selector",lower:"normal-name-selector",index:71,isBkr:!1},this.rules[72]={name:"normal-single-quoted",lower:"normal-single-quoted",index:72,isBkr:!1},this.rules[73]={name:"normal-unescaped",lower:"normal-unescaped",index:73,isBkr:!1},this.rules[74]={name:"normal-escapable",lower:"normal-escapable",index:74,isBkr:!1},this.rules[75]={name:"normal-hexchar",lower:"normal-hexchar",index:75,isBkr:!1},this.rules[76]={name:"normal-HEXDIG",lower:"normal-hexdig",index:76,isBkr:!1},this.rules[77]={name:"normal-index-selector",lower:"normal-index-selector",index:77,isBkr:!1},this.rules[78]={name:"dot-prefix",lower:"dot-prefix",index:78,isBkr:!1},this.rules[79]={name:"double-dot-prefix",lower:"double-dot-prefix",index:79,isBkr:!1},this.rules[80]={name:"left-bracket",lower:"left-bracket",index:80,isBkr:!1},this.rules[81]={name:"right-bracket",lower:"right-bracket",index:81,isBkr:!1},this.rules[82]={name:"left-paren",lower:"left-paren",index:82,isBkr:!1},this.rules[83]={name:"right-paren",lower:"right-paren",index:83,isBkr:!1},this.rules[84]={name:"comma",lower:"comma",index:84,isBkr:!1},this.rules[85]={name:"colon",lower:"colon",index:85,isBkr:!1},this.rules[86]={name:"dquote",lower:"dquote",index:86,isBkr:!1},this.rules[87]={name:"squote",lower:"squote",index:87,isBkr:!1},this.rules[88]={name:"questionmark",lower:"questionmark",index:88,isBkr:!1},this.rules[89]={name:"disjunction",lower:"disjunction",index:89,isBkr:!1},this.rules[90]={name:"conjunction",lower:"conjunction",index:90,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:4},this.rules[0].opcodes[2]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:2,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:59},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:6,string:[32]},this.rules[2].opcodes[2]={type:6,string:[9]},this.rules[2].opcodes[3]={type:6,string:[10]},this.rules[2].opcodes[4]={type:6,string:[13]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:2},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:7,string:[36]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:4,index:6},this.rules[5].opcodes[2]={type:4,index:18},this.rules[5].opcodes[3]={type:4,index:22},this.rules[5].opcodes[4]={type:4,index:19},this.rules[5].opcodes[5]={type:4,index:26},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,6]},this.rules[7].opcodes[1]={type:2,children:[2,3,5]},this.rules[7].opcodes[2]={type:4,index:86},this.rules[7].opcodes[3]={type:3,min:0,max:1/0},this.rules[7].opcodes[4]={type:4,index:8},this.rules[7].opcodes[5]={type:4,index:86},this.rules[7].opcodes[6]={type:2,children:[7,8,10]},this.rules[7].opcodes[7]={type:4,index:87},this.rules[7].opcodes[8]={type:3,min:0,max:1/0},this.rules[7].opcodes[9]={type:4,index:9},this.rules[7].opcodes[10]={type:4,index:87},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[8].opcodes[1]={type:4,index:11},this.rules[8].opcodes[2]={type:6,string:[39]},this.rules[8].opcodes[3]={type:2,children:[4,5]},this.rules[8].opcodes[4]={type:4,index:10},this.rules[8].opcodes[5]={type:6,string:[34]},this.rules[8].opcodes[6]={type:2,children:[7,8]},this.rules[8].opcodes[7]={type:4,index:10},this.rules[8].opcodes[8]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:6,string:[34]},this.rules[9].opcodes[3]={type:2,children:[4,5]},this.rules[9].opcodes[4]={type:4,index:10},this.rules[9].opcodes[5]={type:6,string:[39]},this.rules[9].opcodes[6]={type:2,children:[7,8]},this.rules[9].opcodes[7]={type:4,index:10},this.rules[9].opcodes[8]={type:4,index:12},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[92]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[11].opcodes[1]={type:5,min:32,max:33},this.rules[11].opcodes[2]={type:5,min:35,max:38},this.rules[11].opcodes[3]={type:5,min:40,max:91},this.rules[11].opcodes[4]={type:5,min:93,max:55295},this.rules[11].opcodes[5]={type:5,min:57344,max:1114111},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[12].opcodes[1]={type:6,string:[98]},this.rules[12].opcodes[2]={type:6,string:[102]},this.rules[12].opcodes[3]={type:6,string:[110]},this.rules[12].opcodes[4]={type:6,string:[114]},this.rules[12].opcodes[5]={type:6,string:[116]},this.rules[12].opcodes[6]={type:7,string:[47]},this.rules[12].opcodes[7]={type:7,string:[92]},this.rules[12].opcodes[8]={type:2,children:[9,10]},this.rules[12].opcodes[9]={type:6,string:[117]},this.rules[12].opcodes[10]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2]},this.rules[13].opcodes[1]={type:4,index:14},this.rules[13].opcodes[2]={type:2,children:[3,4,5,6]},this.rules[13].opcodes[3]={type:4,index:15},this.rules[13].opcodes[4]={type:7,string:[92]},this.rules[13].opcodes[5]={type:6,string:[117]},this.rules[13].opcodes[6]={type:4,index:16},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:1,children:[1,11]},this.rules[14].opcodes[1]={type:2,children:[2,9]},this.rules[14].opcodes[2]={type:1,children:[3,4,5,6,7,8]},this.rules[14].opcodes[3]={type:4,index:65},this.rules[14].opcodes[4]={type:7,string:[97]},this.rules[14].opcodes[5]={type:7,string:[98]},this.rules[14].opcodes[6]={type:7,string:[99]},this.rules[14].opcodes[7]={type:7,string:[101]},this.rules[14].opcodes[8]={type:7,string:[102]},this.rules[14].opcodes[9]={type:3,min:3,max:3},this.rules[14].opcodes[10]={type:4,index:17},this.rules[14].opcodes[11]={type:2,children:[12,13,14]},this.rules[14].opcodes[12]={type:7,string:[100]},this.rules[14].opcodes[13]={type:5,min:48,max:55},this.rules[14].opcodes[14]={type:3,min:2,max:2},this.rules[14].opcodes[15]={type:4,index:17},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,7]},this.rules[15].opcodes[1]={type:7,string:[100]},this.rules[15].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[15].opcodes[3]={type:7,string:[56]},this.rules[15].opcodes[4]={type:7,string:[57]},this.rules[15].opcodes[5]={type:7,string:[97]},this.rules[15].opcodes[6]={type:7,string:[98]},this.rules[15].opcodes[7]={type:3,min:2,max:2},this.rules[15].opcodes[8]={type:4,index:17},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,2,7]},this.rules[16].opcodes[1]={type:7,string:[100]},this.rules[16].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[16].opcodes[3]={type:7,string:[99]},this.rules[16].opcodes[4]={type:7,string:[100]},this.rules[16].opcodes[5]={type:7,string:[101]},this.rules[16].opcodes[6]={type:7,string:[102]},this.rules[16].opcodes[7]={type:3,min:2,max:2},this.rules[16].opcodes[8]={type:4,index:17},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[17].opcodes[1]={type:4,index:65},this.rules[17].opcodes[2]={type:7,string:[97]},this.rules[17].opcodes[3]={type:7,string:[98]},this.rules[17].opcodes[4]={type:7,string:[99]},this.rules[17].opcodes[5]={type:7,string:[100]},this.rules[17].opcodes[6]={type:7,string:[101]},this.rules[17].opcodes[7]={type:7,string:[102]},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:7,string:[42]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:4,index:20},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2]},this.rules[20].opcodes[1]={type:7,string:[48]},this.rules[20].opcodes[2]={type:2,children:[3,5,6]},this.rules[20].opcodes[3]={type:3,min:0,max:1},this.rules[20].opcodes[4]={type:7,string:[45]},this.rules[20].opcodes[5]={type:4,index:21},this.rules[20].opcodes[6]={type:3,min:0,max:1/0},this.rules[20].opcodes[7]={type:4,index:65},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:5,min:49,max:57},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,5,6,7,11]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:2,children:[3,4]},this.rules[22].opcodes[3]={type:4,index:23},this.rules[22].opcodes[4]={type:4,index:3},this.rules[22].opcodes[5]={type:4,index:85},this.rules[22].opcodes[6]={type:4,index:3},this.rules[22].opcodes[7]={type:3,min:0,max:1},this.rules[22].opcodes[8]={type:2,children:[9,10]},this.rules[22].opcodes[9]={type:4,index:24},this.rules[22].opcodes[10]={type:4,index:3},this.rules[22].opcodes[11]={type:3,min:0,max:1},this.rules[22].opcodes[12]={type:2,children:[13,14]},this.rules[22].opcodes[13]={type:4,index:85},this.rules[22].opcodes[14]={type:3,min:0,max:1},this.rules[22].opcodes[15]={type:2,children:[16,17]},this.rules[22].opcodes[16]={type:4,index:3},this.rules[22].opcodes[17]={type:4,index:25},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:4,index:20},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:4,index:20},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:4,index:20},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:2,children:[1,2,3]},this.rules[26].opcodes[1]={type:4,index:88},this.rules[26].opcodes[2]={type:4,index:3},this.rules[26].opcodes[3]={type:4,index:27},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:4,index:28},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:29},this.rules[28].opcodes[2]={type:3,min:0,max:1/0},this.rules[28].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[28].opcodes[4]={type:4,index:3},this.rules[28].opcodes[5]={type:4,index:89},this.rules[28].opcodes[6]={type:4,index:3},this.rules[28].opcodes[7]={type:4,index:29},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:2,children:[1,2]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:3,min:0,max:1/0},this.rules[29].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[29].opcodes[4]={type:4,index:3},this.rules[29].opcodes[5]={type:4,index:90},this.rules[29].opcodes[6]={type:4,index:3},this.rules[29].opcodes[7]={type:4,index:30},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:1,children:[1,2,3]},this.rules[30].opcodes[1]={type:4,index:31},this.rules[30].opcodes[2]={type:4,index:37},this.rules[30].opcodes[3]={type:4,index:33},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,5,6,7,8,9]},this.rules[31].opcodes[1]={type:3,min:0,max:1},this.rules[31].opcodes[2]={type:2,children:[3,4]},this.rules[31].opcodes[3]={type:4,index:32},this.rules[31].opcodes[4]={type:4,index:3},this.rules[31].opcodes[5]={type:4,index:82},this.rules[31].opcodes[6]={type:4,index:3},this.rules[31].opcodes[7]={type:4,index:27},this.rules[31].opcodes[8]={type:4,index:3},this.rules[31].opcodes[9]={type:4,index:83},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:7,string:[33]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:3,min:0,max:1},this.rules[33].opcodes[2]={type:2,children:[3,4]},this.rules[33].opcodes[3]={type:4,index:32},this.rules[33].opcodes[4]={type:4,index:3},this.rules[33].opcodes[5]={type:1,children:[6,7]},this.rules[33].opcodes[6]={type:4,index:34},this.rules[33].opcodes[7]={type:4,index:57},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:1,children:[1,2]},this.rules[34].opcodes[1]={type:4,index:35},this.rules[34].opcodes[2]={type:4,index:0},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:2,children:[1,2]},this.rules[35].opcodes[1]={type:4,index:36},this.rules[35].opcodes[2]={type:4,index:1},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:7,string:[64]},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[37].opcodes[1]={type:4,index:39},this.rules[37].opcodes[2]={type:4,index:3},this.rules[37].opcodes[3]={type:4,index:40},this.rules[37].opcodes[4]={type:4,index:3},this.rules[37].opcodes[5]={type:4,index:39},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[38].opcodes[1]={type:4,index:47},this.rules[38].opcodes[2]={type:4,index:7},this.rules[38].opcodes[3]={type:4,index:50},this.rules[38].opcodes[4]={type:4,index:51},this.rules[38].opcodes[5]={type:4,index:52},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:1,children:[1,2,3]},this.rules[39].opcodes[1]={type:4,index:41},this.rules[39].opcodes[2]={type:4,index:57},this.rules[39].opcodes[3]={type:4,index:38},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[40].opcodes[1]={type:7,string:[61,61]},this.rules[40].opcodes[2]={type:7,string:[33,61]},this.rules[40].opcodes[3]={type:7,string:[60,61]},this.rules[40].opcodes[4]={type:7,string:[62,61]},this.rules[40].opcodes[5]={type:7,string:[60]},this.rules[40].opcodes[6]={type:7,string:[62]},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:1,children:[1,2]},this.rules[41].opcodes[1]={type:4,index:42},this.rules[41].opcodes[2]={type:4,index:43},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:4,index:36},this.rules[42].opcodes[2]={type:4,index:44},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:2,children:[1,2]},this.rules[43].opcodes[1]={type:4,index:4},this.rules[43].opcodes[2]={type:4,index:44},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:2,children:[2,3]},this.rules[44].opcodes[2]={type:4,index:3},this.rules[44].opcodes[3]={type:1,children:[4,5]},this.rules[44].opcodes[4]={type:4,index:45},this.rules[44].opcodes[5]={type:4,index:46},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:1,children:[1,5]},this.rules[45].opcodes[1]={type:2,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:80},this.rules[45].opcodes[3]={type:4,index:6},this.rules[45].opcodes[4]={type:4,index:81},this.rules[45].opcodes[5]={type:2,children:[6,7]},this.rules[45].opcodes[6]={type:4,index:78},this.rules[45].opcodes[7]={type:4,index:62},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:2,children:[1,2,3]},this.rules[46].opcodes[1]={type:4,index:80},this.rules[46].opcodes[2]={type:4,index:19},this.rules[46].opcodes[3]={type:4,index:81},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,4,6]},this.rules[47].opcodes[1]={type:1,children:[2,3]},this.rules[47].opcodes[2]={type:4,index:20},this.rules[47].opcodes[3]={type:7,string:[45,48]},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:4,index:48},this.rules[47].opcodes[6]={type:3,min:0,max:1},this.rules[47].opcodes[7]={type:4,index:49},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:2,children:[1,2]},this.rules[48].opcodes[1]={type:7,string:[46]},this.rules[48].opcodes[2]={type:3,min:1,max:1/0},this.rules[48].opcodes[3]={type:4,index:65},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2,6]},this.rules[49].opcodes[1]={type:7,string:[101]},this.rules[49].opcodes[2]={type:3,min:0,max:1},this.rules[49].opcodes[3]={type:1,children:[4,5]},this.rules[49].opcodes[4]={type:7,string:[45]},this.rules[49].opcodes[5]={type:7,string:[43]},this.rules[49].opcodes[6]={type:3,min:1,max:1/0},this.rules[49].opcodes[7]={type:4,index:65},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[116,114,117,101]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[102,97,108,115,101]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[110,117,108,108]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:4,index:54},this.rules[53].opcodes[2]={type:3,min:0,max:1/0},this.rules[53].opcodes[3]={type:4,index:55},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:4,index:56},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:1,children:[1,2,3]},this.rules[55].opcodes[1]={type:4,index:54},this.rules[55].opcodes[2]={type:7,string:[95]},this.rules[55].opcodes[3]={type:4,index:65},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:5,min:97,max:122},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2,3,4,13,14]},this.rules[57].opcodes[1]={type:4,index:53},this.rules[57].opcodes[2]={type:4,index:82},this.rules[57].opcodes[3]={type:4,index:3},this.rules[57].opcodes[4]={type:3,min:0,max:1},this.rules[57].opcodes[5]={type:2,children:[6,7]},this.rules[57].opcodes[6]={type:4,index:58},this.rules[57].opcodes[7]={type:3,min:0,max:1/0},this.rules[57].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[57].opcodes[9]={type:4,index:3},this.rules[57].opcodes[10]={type:4,index:84},this.rules[57].opcodes[11]={type:4,index:3},this.rules[57].opcodes[12]={type:4,index:58},this.rules[57].opcodes[13]={type:4,index:3},this.rules[57].opcodes[14]={type:4,index:83},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[58].opcodes[1]={type:4,index:27},this.rules[58].opcodes[2]={type:4,index:34},this.rules[58].opcodes[3]={type:4,index:57},this.rules[58].opcodes[4]={type:4,index:38},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:1,children:[1,2]},this.rules[59].opcodes[1]={type:4,index:60},this.rules[59].opcodes[2]={type:4,index:67},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:1,children:[1,2]},this.rules[60].opcodes[1]={type:4,index:61},this.rules[60].opcodes[2]={type:2,children:[3,4]},this.rules[60].opcodes[3]={type:4,index:78},this.rules[60].opcodes[4]={type:1,children:[5,6]},this.rules[60].opcodes[5]={type:4,index:18},this.rules[60].opcodes[6]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3,4,10,11]},this.rules[61].opcodes[1]={type:4,index:80},this.rules[61].opcodes[2]={type:4,index:3},this.rules[61].opcodes[3]={type:4,index:5},this.rules[61].opcodes[4]={type:3,min:0,max:1/0},this.rules[61].opcodes[5]={type:2,children:[6,7,8,9]},this.rules[61].opcodes[6]={type:4,index:3},this.rules[61].opcodes[7]={type:4,index:84},this.rules[61].opcodes[8]={type:4,index:3},this.rules[61].opcodes[9]={type:4,index:5},this.rules[61].opcodes[10]={type:4,index:3},this.rules[61].opcodes[11]={type:4,index:81},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:2,children:[1,2]},this.rules[62].opcodes[1]={type:4,index:63},this.rules[62].opcodes[2]={type:3,min:0,max:1/0},this.rules[62].opcodes[3]={type:4,index:64},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[63].opcodes[1]={type:4,index:66},this.rules[63].opcodes[2]={type:7,string:[95]},this.rules[63].opcodes[3]={type:5,min:128,max:55295},this.rules[63].opcodes[4]={type:5,min:57344,max:1114111},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:1,children:[1,2]},this.rules[64].opcodes[1]={type:4,index:63},this.rules[64].opcodes[2]={type:4,index:65},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:5,min:48,max:57},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:1,children:[1,2]},this.rules[66].opcodes[1]={type:5,min:65,max:90},this.rules[66].opcodes[2]={type:5,min:97,max:122},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:2,children:[1,2]},this.rules[67].opcodes[1]={type:4,index:79},this.rules[67].opcodes[2]={type:1,children:[3,4,5]},this.rules[67].opcodes[3]={type:4,index:61},this.rules[67].opcodes[4]={type:4,index:18},this.rules[67].opcodes[5]={type:4,index:62},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:2,children:[1,2]},this.rules[68].opcodes[1]={type:4,index:4},this.rules[68].opcodes[2]={type:3,min:0,max:1/0},this.rules[68].opcodes[3]={type:4,index:69},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:2,children:[1,2,3]},this.rules[69].opcodes[1]={type:4,index:80},this.rules[69].opcodes[2]={type:4,index:70},this.rules[69].opcodes[3]={type:4,index:81},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:1,children:[1,2]},this.rules[70].opcodes[1]={type:4,index:71},this.rules[70].opcodes[2]={type:4,index:77},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,2,4]},this.rules[71].opcodes[1]={type:4,index:87},this.rules[71].opcodes[2]={type:3,min:0,max:1/0},this.rules[71].opcodes[3]={type:4,index:72},this.rules[71].opcodes[4]={type:4,index:87},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:4,index:73},this.rules[72].opcodes[2]={type:2,children:[3,4]},this.rules[72].opcodes[3]={type:4,index:10},this.rules[72].opcodes[4]={type:4,index:74},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[73].opcodes[1]={type:5,min:32,max:38},this.rules[73].opcodes[2]={type:5,min:40,max:91},this.rules[73].opcodes[3]={type:5,min:93,max:55295},this.rules[73].opcodes[4]={type:5,min:57344,max:1114111},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[74].opcodes[1]={type:6,string:[98]},this.rules[74].opcodes[2]={type:6,string:[102]},this.rules[74].opcodes[3]={type:6,string:[110]},this.rules[74].opcodes[4]={type:6,string:[114]},this.rules[74].opcodes[5]={type:6,string:[116]},this.rules[74].opcodes[6]={type:7,string:[39]},this.rules[74].opcodes[7]={type:7,string:[92]},this.rules[74].opcodes[8]={type:2,children:[9,10]},this.rules[74].opcodes[9]={type:6,string:[117]},this.rules[74].opcodes[10]={type:4,index:75},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2,3]},this.rules[75].opcodes[1]={type:7,string:[48]},this.rules[75].opcodes[2]={type:7,string:[48]},this.rules[75].opcodes[3]={type:1,children:[4,7,10,13]},this.rules[75].opcodes[4]={type:2,children:[5,6]},this.rules[75].opcodes[5]={type:7,string:[48]},this.rules[75].opcodes[6]={type:5,min:48,max:55},this.rules[75].opcodes[7]={type:2,children:[8,9]},this.rules[75].opcodes[8]={type:7,string:[48]},this.rules[75].opcodes[9]={type:6,string:[98]},this.rules[75].opcodes[10]={type:2,children:[11,12]},this.rules[75].opcodes[11]={type:7,string:[48]},this.rules[75].opcodes[12]={type:5,min:101,max:102},this.rules[75].opcodes[13]={type:2,children:[14,15]},this.rules[75].opcodes[14]={type:7,string:[49]},this.rules[75].opcodes[15]={type:4,index:76},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:4,index:65},this.rules[76].opcodes[2]={type:5,min:97,max:102},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:7,string:[48]},this.rules[77].opcodes[2]={type:2,children:[3,4]},this.rules[77].opcodes[3]={type:4,index:21},this.rules[77].opcodes[4]={type:3,min:0,max:1/0},this.rules[77].opcodes[5]={type:4,index:65},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:7,string:[46]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:7,string:[46,46]},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:7,string:[91]},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:7,string:[93]},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:7,string:[40]},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:7,string:[41]},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:7,string:[44]},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:7,string:[58]},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:6,string:[34]},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:6,string:[39]},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:7,string:[63]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:7,string:[124,124]},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:7,string:[38,38]},this.toString=function(){let e="";return e+="; JSONPath: Query Expressions for JSON\n",e+="; https://www.rfc-editor.org/rfc/rfc9535\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\n",e+="jsonpath-query = root-identifier segments\n",e+="segments = *(S segment)\n",e+="\n",e+="B = %x20 / ; Space\n",e+=" %x09 / ; Horizontal tab\n",e+=" %x0A / ; Line feed or New line\n",e+=" %x0D ; Carriage return\n",e+="S = *B ; optional blank space\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\n",e+='root-identifier = "$"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\n",e+="selector = name-selector /\n",e+=" wildcard-selector /\n",e+=" slice-selector /\n",e+=" index-selector /\n",e+=" filter-selector\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\n",e+="name-selector = string-literal\n",e+="\n",e+='string-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n',e+=" squote *single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="\n",e+="double-quoted = unescaped /\n",e+=" %x27 / ; '\n",e+=' ESC %x22 / ; \\"\n',e+=" ESC escapable\n",e+="\n",e+="single-quoted = unescaped /\n",e+=' %x22 / ; "\n',e+=" ESC %x27 / ; \\'\n",e+=" ESC escapable\n",e+="\n",e+="ESC = %x5C ; \\ backslash\n",e+="\n",e+="unescaped = %x20-21 / ; see RFC 8259\n",e+=' ; omit 0x22 "\n',e+=" %x23-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=' "/" / ; / slash (solidus) U+002F\n',e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 hexchar) ; uXXXX U+XXXX\n",e+="\n",e+="hexchar = non-surrogate /\n",e+=' (high-surrogate "\\" %x75 low-surrogate)\n',e+='non-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n',e+=' ("D" %x30-37 2HEXDIG )\n',e+='high-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\n',e+='low-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n',e+="\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\n",e+='wildcard-selector = "*"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\n",e+="index-selector = int ; decimal integer\n",e+="\n",e+='int = "0" /\n',e+=' (["-"] DIGIT1 *DIGIT) ; - optional\n',e+="DIGIT1 = %x31-39 ; 1-9 non-zero digit\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\n",e+="slice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="start = int ; included in selection\n",e+="end = int ; not included in selection\n",e+="step = int ; default: 1\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\n",e+="filter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="logical-expr = logical-or-expr\n",e+="logical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; disjunction\n",e+=" ; binds less tightly than conjunction\n",e+="logical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; conjunction\n",e+=" ; binds more tightly than disjunction\n",e+="\n",e+="basic-expr = paren-expr /\n",e+=" comparison-expr /\n",e+=" test-expr\n",e+="\n",e+="paren-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n",e+=" ; parenthesized expression\n",e+='logical-not-op = "!" ; logical NOT operator\n',e+="\n",e+="test-expr = [logical-not-op S]\n",e+=" (filter-query / ; existence/non-existence\n",e+=" function-expr) ; LogicalType or NodesType\n",e+="filter-query = rel-query / jsonpath-query\n",e+="rel-query = current-node-identifier segments\n",e+='current-node-identifier = "@"\n',e+="\n",e+="comparison-expr = comparable S comparison-op S comparable\n",e+="literal = number / string-literal /\n",e+=" true / false / null\n",e+="comparable = singular-query / ; singular query value\n",e+=" function-expr / ; ValueType\n",e+=" literal\n",e+=" ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\n",e+='comparison-op = "==" / "!=" /\n',e+=' "<=" / ">=" /\n',e+=' "<" / ">"\n',e+="\n",e+="singular-query = rel-singular-query / abs-singular-query\n",e+="rel-singular-query = current-node-identifier singular-query-segments\n",e+="abs-singular-query = root-identifier singular-query-segments\n",e+="singular-query-segments = *(S (name-segment / index-segment))\n",e+="name-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n",e+=" (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\n",e+="index-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="\n",e+='number = (int / "-0") [ frac ] [ exp ] ; decimal number\n',e+='frac = "." 1*DIGIT ; decimal fraction\n',e+='exp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\n',e+="true = %x74.72.75.65 ; true\n",e+="false = %x66.61.6c.73.65 ; false\n",e+="null = %x6e.75.6c.6c ; null\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\n",e+="function-name = function-name-first *function-name-char\n",e+="function-name-first = LCALPHA\n",e+='function-name-char = function-name-first / "_" / DIGIT\n',e+='LCALPHA = %x61-7A ; "a".."z"\n',e+="\n",e+="function-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n",e+=" *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\n",e+="function-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n",e+=" filter-query / ; (includes singular-query)\n",e+=" function-expr /\n",e+=" literal\n",e+="\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\n",e+="segment = child-segment / descendant-segment\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\n",e+="child-segment = bracketed-selection /\n",e+=" (dot-prefix ; MODIFICATION: surrogate text rule used\n",e+=" (wildcard-selector /\n",e+=" member-name-shorthand))\n",e+="\n",e+="bracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n",e+=" ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="member-name-shorthand = name-first *name-char\n",e+="name-first = ALPHA /\n",e+=' "_" /\n',e+=" %x80-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="name-char = name-first / DIGIT\n",e+="\n",e+="DIGIT = %x30-39 ; 0-9\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\n",e+="descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n",e+=" wildcard-selector /\n",e+=" member-name-shorthand)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\n",e+="normalized-path = root-identifier *(normal-index-segment)\n",e+="normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="normal-selector = normal-name-selector / normal-index-selector\n",e+="normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="normal-single-quoted = normal-unescaped /\n",e+=" ESC normal-escapable\n",e+="normal-unescaped = ; omit %x0-1F control codes\n",e+=" %x20-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="normal-escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=" \"'\" / ; ' apostrophe U+0027\n",e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 normal-hexchar)\n",e+=" ; certain values u00xx U+00XX\n",e+='normal-hexchar = "0" "0"\n',e+=" (\n",e+=' ("0" %x30-37) / ; "00"-"07"\n',e+=" ; omit U+0008-U+000A BS HT LF\n",e+=' ("0" %x62) / ; "0b"\n',e+=" ; omit U+000C-U+000D FF CR\n",e+=' ("0" %x65-66) / ; "0e"-"0f"\n',e+=' ("1" normal-HEXDIG)\n',e+=" )\n",e+='normal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\n',e+='normal-index-selector = "0" / (DIGIT1 *DIGIT)\n',e+=" ; non-negative decimal integer\n",e+="\n",e+="; Surrogate named rules\n",e+='dot-prefix = "."\n',e+='double-dot-prefix = ".."\n',e+='left-bracket = "["\n',e+='right-bracket = "]"\n',e+='left-paren = "("\n',e+='right-paren = ")"\n',e+='comma = ","\n',e+='colon = ":"\n',e+='dquote = %x22 ; "\n',e+="squote = %x27 ; '\n",e+='questionmark = "?"\n',e+='disjunction = "||"\n',e+='conjunction = "&&"\n','; JSONPath: Query Expressions for JSON\n; https://www.rfc-editor.org/rfc/rfc9535\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\njsonpath-query = root-identifier segments\nsegments = *(S segment)\n\nB = %x20 / ; Space\n %x09 / ; Horizontal tab\n %x0A / ; Line feed or New line\n %x0D ; Carriage return\nS = *B ; optional blank space\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\nroot-identifier = "$"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\nselector = name-selector /\n wildcard-selector /\n slice-selector /\n index-selector /\n filter-selector\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\nname-selector = string-literal\n\nstring-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n squote *single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\n\ndouble-quoted = unescaped /\n %x27 / ; \'\n ESC %x22 / ; \\"\n ESC escapable\n\nsingle-quoted = unescaped /\n %x22 / ; "\n ESC %x27 / ; \\\'\n ESC escapable\n\nESC = %x5C ; \\ backslash\n\nunescaped = %x20-21 / ; see RFC 8259\n ; omit 0x22 "\n %x23-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nescapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "/" / ; / slash (solidus) U+002F\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 hexchar) ; uXXXX U+XXXX\n\nhexchar = non-surrogate /\n (high-surrogate "\\" %x75 low-surrogate)\nnon-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n ("D" %x30-37 2HEXDIG )\nhigh-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\nlow-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\nwildcard-selector = "*"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\nindex-selector = int ; decimal integer\n\nint = "0" /\n (["-"] DIGIT1 *DIGIT) ; - optional\nDIGIT1 = %x31-39 ; 1-9 non-zero digit\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\nslice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n\nstart = int ; included in selection\nend = int ; not included in selection\nstep = int ; default: 1\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\nfilter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n\nlogical-expr = logical-or-expr\nlogical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n ; disjunction\n ; binds less tightly than conjunction\nlogical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n ; conjunction\n ; binds more tightly than disjunction\n\nbasic-expr = paren-expr /\n comparison-expr /\n test-expr\n\nparen-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n ; parenthesized expression\nlogical-not-op = "!" ; logical NOT operator\n\ntest-expr = [logical-not-op S]\n (filter-query / ; existence/non-existence\n function-expr) ; LogicalType or NodesType\nfilter-query = rel-query / jsonpath-query\nrel-query = current-node-identifier segments\ncurrent-node-identifier = "@"\n\ncomparison-expr = comparable S comparison-op S comparable\nliteral = number / string-literal /\n true / false / null\ncomparable = singular-query / ; singular query value\n function-expr / ; ValueType\n literal\n ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\ncomparison-op = "==" / "!=" /\n "<=" / ">=" /\n "<" / ">"\n\nsingular-query = rel-singular-query / abs-singular-query\nrel-singular-query = current-node-identifier singular-query-segments\nabs-singular-query = root-identifier singular-query-segments\nsingular-query-segments = *(S (name-segment / index-segment))\nname-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\nindex-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n\nnumber = (int / "-0") [ frac ] [ exp ] ; decimal number\nfrac = "." 1*DIGIT ; decimal fraction\nexp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6c.73.65 ; false\nnull = %x6e.75.6c.6c ; null\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\nfunction-name = function-name-first *function-name-char\nfunction-name-first = LCALPHA\nfunction-name-char = function-name-first / "_" / DIGIT\nLCALPHA = %x61-7A ; "a".."z"\n\nfunction-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\nfunction-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n filter-query / ; (includes singular-query)\n function-expr /\n literal\n\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\nsegment = child-segment / descendant-segment\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\nchild-segment = bracketed-selection /\n (dot-prefix ; MODIFICATION: surrogate text rule used\n (wildcard-selector /\n member-name-shorthand))\n\nbracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n ; MODIFICATION: surrogate text rule used\n\nmember-name-shorthand = name-first *name-char\nname-first = ALPHA /\n "_" /\n %x80-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\nname-char = name-first / DIGIT\n\nDIGIT = %x30-39 ; 0-9\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\ndescendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n wildcard-selector /\n member-name-shorthand)\n\n; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\nnormalized-path = root-identifier *(normal-index-segment)\nnormal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\nnormal-selector = normal-name-selector / normal-index-selector\nnormal-name-selector = squote *normal-single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\nnormal-single-quoted = normal-unescaped /\n ESC normal-escapable\nnormal-unescaped = ; omit %x0-1F control codes\n %x20-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nnormal-escapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "\'" / ; \' apostrophe U+0027\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 normal-hexchar)\n ; certain values u00xx U+00XX\nnormal-hexchar = "0" "0"\n (\n ("0" %x30-37) / ; "00"-"07"\n ; omit U+0008-U+000A BS HT LF\n ("0" %x62) / ; "0b"\n ; omit U+000C-U+000D FF CR\n ("0" %x65-66) / ; "0e"-"0f"\n ("1" normal-HEXDIG)\n )\nnormal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\nnormal-index-selector = "0" / (DIGIT1 *DIGIT)\n ; non-negative decimal integer\n\n; Surrogate named rules\ndot-prefix = "."\ndouble-dot-prefix = ".."\nleft-bracket = "["\nright-bracket = "]"\nleft-paren = "("\nright-paren = ")"\ncomma = ","\ncolon = ":"\ndquote = %x22 ; "\nsquote = %x27 ; \'\nquestionmark = "?"\ndisjunction = "||"\nconjunction = "&&"\n'}};const Xn=e=>{if("string"!=typeof e)throw new TypeError("Selector must be a string");let t="";for(const s of e){const e=s.codePointAt(0);switch(e){case 8:t+="\\b";break;case 9:t+="\\t";break;case 10:t+="\\n";break;case 12:t+="\\f";break;case 13:t+="\\r";break;case 39:t+="\\'";break;case 92:t+="\\\\";break;default:t+=e<=31?`\\u${e.toString(16).padStart(4,"0")}`:s}}return t};const Kn=class extends Gn{},Wn=e=>{if(!Array.isArray(e))throw new Kn("Selectors must be an array, got: "+typeof e,{selectors:e});try{return`$${e.map(e=>{if("string"==typeof e)return`['${Xn(e)}']`;if("number"==typeof e){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Index selector must be a non-negative safe integer, got: ${e}`);return`[${e}]`}throw new TypeError("Selector must be a string or non-negative integer, got: "+typeof e)}).join("")}`}catch(t){throw new Kn("Failed to compile normalized JSONPath",{cause:t,selectors:e})}};class Yn{node;key;index;parent;parentPath;inList;#e=!1;#t=!1;#s=!1;#n=!1;#r;#i=!1;constructor(e,t,s,n,r){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=r&&"number"==typeof n?n:void 0,this.inList=r}get shouldSkip(){return this.#e}get shouldStop(){return this.#t}get removed(){return this.#s}isRoot(){return null===this.parentPath}get depth(){let e=0,t=this.parentPath;for(;null!==t;)e+=1,t=t.parentPath;return e}getAncestry(){const e=[];let t=this.parentPath;for(;null!==t;)e.push(t),t=t.parentPath;return e}getAncestorNodes(){return this.getAncestry().map(e=>e.node)}getPathKeys(){const e=[];let t=this;for(;null!==t&&void 0!==t.key;)e.unshift(t.key),t=t.parentPath;return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?Wn(t):Un(t)}findParent(e){let t=this.parentPath;for(;null!==t;){if(e(t))return t;t=t.parentPath}return null}find(e){return e(this)?this:this.findParent(e)}skip(){this.#e=!0}stop(){this.#t=!0}replaceWith(e){this.#i&&console.warn("Warning: replaceWith() called on a stale Path. This path belongs to a node whose visit has already completed. The replacement will have no effect. To replace a parent node, do so from the parent's own visitor."),this.#n=!0,this.#r=e,this.node=e}remove(){this.#i&&console.warn("Warning: remove() called on a stale Path. This path belongs to a node whose visit has already completed. The removal will have no effect. To remove a parent node, do so from the parent's own visitor."),this.#s=!0}_getReplacementNode(){return this.#r}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#r=void 0}_markStale(){this.#i=!0}}const Zn=os(1,ds(Nn,Ct(Wt,N("[object Promise]")))),Qn=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},er=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},tr=e=>ge(e),sr=e=>cn(e),nr=(e,t,s)=>{je(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},rr=e=>je(e)?["key","value"]:Se(e)||Ee(e)?["content"]:[],ir=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const r=n.indexOf(t);if(-1===r)continue;const i=0===r||"|"===n[r-1],o=r+s===n.length||"|"===n[r+s];if(i&&o)return e[n]}},or=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=ir(n,t);if(!s&&"function"==typeof i)return i;if(null!=i){const e=i[r];if("function"==typeof e)return e}const o=n[r];if("function"==typeof o)return o;if(null!=o){const e=ir(o,t);if("function"==typeof e)return e}return null},cr=(e,t={})=>{const{visitFnGetter:s=or,nodeTypeGetter:n=Qn,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=lr(t,a),n=i.call(e[u],s);if(Zn(n))throw new Ys("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=lr(t,r),n=i.call(e[a],s);if(Zn(n))throw new Ys("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}},ar=(e,t={})=>{const{visitFnGetter:s=or,nodeTypeGetter:n=Qn,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=lr(t,a),n=await i.call(e[u],s);if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},async leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=lr(t,r),n=await i.call(e[a],s);if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}};function lr(e,t){return new Yn(t,e.parent,e.parentPath,e.key,e.inList)}function*ur(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,mutable:l,mutationFn:u}=s,d="function"==typeof n;let p,h,m=Array.isArray(e),f=[e],y=-1,g=[],x=e,v=null,b=null;const w=[];do{y+=1;const e=y===f.length;let s;const S=e&&0!==g.length;if(e){if(s=0===w.length?void 0:v?.key,x=h,h=w.pop(),b=v?.parentPath?.parentPath??null,S)if(l)for(const[e,t]of g)u(x,e,t);else if(m){x=x.slice();let e=0;for(const[t,s]of g){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of g)x[e]=t}if(void 0!==p){y=p.index,f=p.keys,g=p.edits;const e=p.inArray;if(b=p.parentPath,p=p.prev,S&&!l){const t=e?y:f[y];g.push([t,x])}m=e}}else if(void 0!==h&&(s=m?y:f[y],x=h[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new Ys(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&w.includes(x))continue;v=new Yn(x,h,b,s,m);const n=or(t,i(x),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:v,isLeaving:e};if(v.shouldStop)break;if(v.shouldSkip&&!e)continue;if(v.removed){if(g.push([s,null]),!e)continue}else if(v._wasReplaced()){const t=v._getReplacementNode();if(g.push([s,t]),!e){if(!o(t))continue;x=t}}else if(void 0!==i&&(g.push([s,i]),!e)){if(!o(i))continue;x=i}v._markStale()}}if(!e){if(p={inArray:m,index:y,keys:f,edits:g,parentPath:b,prev:p},m=Array.isArray(x),m)f=x;else if(d)f=n(x);else{const e=i(x);f=void 0!==e?n[e]??[]:[]}y=-1,g=[],void 0!==h&&w.push(h),h=x,b=v}}while(void 0!==p);return 0!==g.length?g.at(-1)[1]:e}cr[Symbol.for("nodejs.util.promisify.custom")]=ar;const dr=(e,t,s={})=>{const n=ur(e,t,{keyMap:s.keyMap??rr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Qn,nodePredicate:s.nodePredicate??tr,nodeCloneFn:s.nodeCloneFn??sr,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??nr});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(Zn(s))throw new Ys("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},pr=async(e,t,s={})=>{const n=ur(e,t,{keyMap:s.keyMap??rr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Qn,nodePredicate:s.nodePredicate??tr,nodeCloneFn:s.nodeCloneFn??sr,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??nr});let r=n.next();for(;!r.done;){const e=r.value,s=await e.visitFn.call(t,e.path);r=n.next(s)}return r.value};dr[Symbol.for("nodejs.util.promisify.custom")]=pr,Yn.prototype.traverse=function(e,t){return dr(this.node,e,t)},Yn.prototype.traverseAsync=function(e,t){return pr(this.node,e,t)};const hr=class extends wn{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Dn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ht(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Yt(Es,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof Sn&&n?.constructor===Sn?nn(t):(dr(t,n,s),n.element)}};const mr=class extends hr{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=fn(t);if(xe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new _(nn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(i)||this.element.content.push(nn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},fr=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},yr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:yr(s,[...t,s])},gr=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>yr(e));for(;s.every(e=>e.length>0);){const e=s.map(e=>e.pop()),n=e[0];if(!e.every(e=>e===n))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=yr(r);for(let t of e){let e=yr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(fr(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},xr=e=>e.filter((t,s)=>e.indexOf(t)==s),vr=(e,t)=>{const s=t.map(e=>yr(e));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},br=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(vr(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==vr(n,e)||void 0!==t[n],get:(s,n)=>(vr(n,e)||t)[n],set(t,s,n){const r=vr(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),wr=null,Sr="copy",Er="copy",jr="deep",Or=new WeakMap,Fr=e=>Or.get(e),kr=(e,t)=>{var s,n;const r=xr([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=xr([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},Ar=(e,t)=>{var s,n,r,i;return{property:kr(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:kr(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},$r=(e,t)=>{var s,n,r,i,o,c;return{class:xr([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:Ar(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:Ar(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},Pr=new Map,Ir=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...yr(e.prototype).map(e=>e.constructor),...null!==(t=Fr(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>Pr.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>$r(e,t))},Cr=e=>{let t=Pr.get(e);return t||(t={},Pr.set(e,t)),t};function Nr(...e){var t,s,n;const r=e.map(e=>e.prototype),i=wr;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)fr(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===Er?gr(r,o):(c=r,a=o,br([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Sr?gr(e,null,["prototype"]):br(e,Function.prototype));let l=o;if("none"!==jr){const r="deep"===jr?Ir(...e):((...e)=>{const t=e.map(e=>Cr(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>$r(e,t))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}Tr(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),Tr(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,d;return u=l,d=e,Or.set(u,d),l}const Tr=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const Mr=function(){return!1};const Dr=class extends hr{specPath;ignoredFields;fieldPatternPredicate=Mr;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=fn(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new _(nn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(nn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Rr=class extends Dr{constructor(e){super(e),this.fieldPatternPredicate=Mn}};const qr=class{parent;constructor({parent:e}){this.parent=e}},Lr=Nr(mr,qr,Sn),Br=Nr(mr,Sn),_r=Nr(mr,Sn),Jr=Nr(mr,Sn),Vr=Nr(hr,qr,Sn),Hr=Nr(hr,qr,Sn),Ur=Nr(hr,qr,Sn),zr=Nr(hr,qr,Sn),Gr=Nr(hr,qr,Sn),Xr=Nr(Rr,qr,Sn),Kr=Nr(Rr,qr,Sn),Wr=Nr(Rr,qr,Sn),Yr=Nr(Rr,qr,Sn);const Zr=class extends Lr{constructor(e){super(e),this.element=new Bs,this.specPath=En(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){const t=e.node;return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,mr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Fn(this.parent)&&!xe(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof Bs&&!xe(e.get("$schema"))){const e=jn(fn(this.parent.meta.get("inheritedDialectIdentifier")),fn(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?nn(this.parent.meta.get("ancestorsSchemaIdentifiers")??new ye):new ye,n=fn(e.get(t));Mn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},Qr=e=>Ee(e)&&e.hasKey("$ref");const ei=class extends zr{ObjectElement(e){const t=e.node,s=Qr(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new ye,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ti=class extends Sn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const si=class extends Yr{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-properties"),this.specPath=e=>Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const ni=class extends Wr{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const ri=class extends Kr{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const ii=class extends Sn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const oi=class extends Sn{StringElement(e){super.enter(e),this.element.classes.push("json-schema-type")}ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-type")}};const ci=class extends Vr{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ai=class extends Hr{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const li=class extends Ur{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ui=class extends Xr{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Qr(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const di=class extends Gr{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-links")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const pi=class extends Br{constructor(e){super(e),this.element=new _s,this.specPath=En(["document","objects","JSONReference"])}ObjectElement(e){mr.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&this.element.classes.push("reference-element")}};const hi=class extends Sn{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const mi=function(){return!0};const fi=ct(function(e,t,s){return os(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const yi=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var gi=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const xi=gi;const vi=i(function(e){return o(0,e)});function bi(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const wi=i(bi);const Si=hs(st);const Ei=os(1,Es(Array.isArray)?Array.isArray:Ct(P,Tt("Array")));const ji=ds(Ei,In);function Oi(e){return function(e){if(Array.isArray(e))return Fi(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){if("string"==typeof e)return Fi(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Fi(e,t):void 0}}(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 Fi(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var ki=Ct(xi(yi(function(e,t){return e.length>t.length})),vi,ut("length")),Ai=$s(function(e,t,s){var n=s.apply(void 0,Oi(e));return Si(n)?wi(n):t});const $i=fi(ji,function(e){var t=ki(e);return os(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return At(Ai(s),void 0,e)})},On);const Pi=class extends hr{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>fi(e,En(t),On)),n=$i(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const Ii=class extends Pi{constructor(e){super(e),this.alternator=[{predicate:Qr,specPath:["document","objects","JSONReference"]},{predicate:mi,specPath:["document","objects","JSONSchema"]}]}};const Ci=class extends Jr{constructor(e){super(e),this.element=new Js,this.specPath=En(["document","objects","Media"])}};const Ni=class extends _r{constructor(e){super(e),this.element=new Vs,this.specPath=En(["document","objects","LinkDescription"])}},Ti={visitors:{value:Sn,JSONSchemaOrJSONReferenceVisitor:Ii,document:{objects:{JSONSchema:{element:"jSONSchemaDraft4",$visitor:Zr,fixedFields:{id:{$visitor:Sn,alias:"idField"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:Ii,items:{$visitor:ei,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:ti,properties:si,additionalProperties:Ii,patternProperties:ni,dependencies:ri,enum:ii,type:oi,allOf:ci,anyOf:ai,oneOf:li,not:Ii,definitions:ui,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:di,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"jSONReference",$visitor:pi,fixedFields:{$ref:hi}},Media:{element:"media",$visitor:Ci,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:Ni,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:Ii,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:Ii}}}}}},Mi=Ls(Ti),Di=e=>Object.entries(e).map(([e,t])=>ks(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Bs,"fixedFields",{get:()=>Di(Mi.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(_s,"fixedFields",{get:()=>Di(Mi.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(Js,"fixedFields",{get:()=>Di(Mi.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(Vs,"fixedFields",{get:()=>Di(Mi.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Ri=class extends Bs{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idField(){throw new p("id keyword from Core vocabulary has been renamed to $id.")}set idField(e){throw new p("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsField(){return this.get("contains")}set containsField(e){this.set("contains",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const qi=class extends Vs{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var Li=ct(function e(t,s,n){if(0===t.length)return s;var r=t[0];if(t.length>1){var i=lt(r,n);(st(i)||"object"!=typeof i)&&(i=at(t[1])?[]:{}),s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(at(e)&&yt(s)){var n=e<0?s.length+e:e,r=[].concat(s);return r[n]=t,r}var i={};for(var o in s)i[o]=s[o];return i[e]=t,i}(r,s,n)});const Bi=Li;const _i=ct(function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n});var Ji=ct(function(e,t,s){return Bi([e],t,s)});const Vi=Ji;var Hi=g(function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(at(e)&&yt(t))return _i(e,1,t);var s={};for(var n in t)s[n]=t[n];return delete s[e],s}(t[0],s);default:var n=t[0],r=Array.prototype.slice.call(t,1);return null==s[n]?function(e,t){if(at(e)&&yt(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):Vi(n,e(r,s[n]),s)}});const Ui=Hi;const zi=class extends Zr{constructor(e){super(e),this.element=new Ri}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){this.enter(e),this.element.classes.push("boolean-json-schema")}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const Gi=class extends ei{BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const Xi=class extends Sn{ArrayElement(e){this.enter(e),this.element.classes.push("json-schema-examples")}};const Ki=class extends Ni{constructor(e){super(e),this.element=new qi}},Wi=Ct(Bi(["visitors","document","objects","JSONSchema","element"],"jSONSchemaDraft6"),Bi(["visitors","document","objects","JSONSchema","$visitor"],zi),Ui(["visitors","document","objects","JSONSchema","fixedFields","id"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","$id"],{$ref:"#/visitors/value"}),Bi(["visitors","document","objects","JSONSchema","fixedFields","contains"],{$visitor:Ti.visitors.JSONSchemaOrJSONReferenceVisitor,alias:"containsField"}),Bi(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:Gi,alias:"itemsField"}),Bi(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Ti.visitors.JSONSchemaOrJSONReferenceVisitor),Bi(["visitors","document","objects","JSONSchema","fixedFields","const"],{$ref:"#/visitors/value"}),Bi(["visitors","document","objects","JSONSchema","fixedFields","examples"],Xi),Bi(["visitors","document","objects","LinkDescription","$visitor"],Ki),Bi(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Ti.visitors.JSONSchemaOrJSONReferenceVisitor),Ui(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Bi(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Ti.visitors.JSONSchemaOrJSONReferenceVisitor),Ui(["visitors","document","objects","LinkDescription","fixedFields","method"]),Ui(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Bi(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],{$ref:"#/visitors/value"}))(Ti),Yi=Ls(Wi),Zi=e=>Object.entries(e).map(([e,t])=>ks(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Ri,"fixedFields",{get:()=>Zi(Yi.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(qi,"fixedFields",{get:()=>Zi(Yi.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Qi=class extends Ri{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",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 not(){return this.get("not")}set not(e){this.set("not",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 media(){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const eo=class extends qi{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const to=class extends zi{constructor(e){super(e),this.element=new Qi}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const so=class extends Ki{constructor(e){super(e),this.element=new eo}},no=Ct(Bi(["visitors","document","objects","JSONSchema","element"],"jSONSchemaDraft7"),Bi(["visitors","document","objects","JSONSchema","$visitor"],to),Bi(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Wi.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","if"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),Bi(["visitors","document","objects","JSONSchema","fixedFields","then"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),Bi(["visitors","document","objects","JSONSchema","fixedFields","else"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),Ui(["visitors","document","objects","JSONSchema","fixedFields","media"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Wi.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Wi.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Wi.visitors.value),Bi(["visitors","document","objects","LinkDescription","$visitor"],so),Bi(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Wi.visitors.value),Bi(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Wi.visitors.value),Ui(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Bi(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Wi.visitors.value),Bi(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Wi.visitors.value),Bi(["visitors","document","objects","LinkDescription","fixedFields","description"],Wi.visitors.value),Bi(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Wi.visitors.value),Bi(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Wi.visitors.JSONSchemaOrJSONReferenceVisitor),Ui(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Bi(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Wi.visitors.value))(Wi),ro=Ls(no),io=e=>Object.entries(e).map(([e,t])=>ks(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Qi,"fixedFields",{get:()=>io(ro.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(eo,"fixedFields",{get:()=>io(ro.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const oo=class extends Qi{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",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 definitions(){throw new p("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new p("definitions keyword from Validation vocabulary has been renamed to $defs.")}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 dependencies(){throw new p("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new p("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get contains(){return this.get("contains")}set contains(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",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 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const co=class extends eo{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const ao=class extends to{constructor(e){super(e),this.element=new oo}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){const t=e.node;this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,mr.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}};const lo=class extends Sn{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-$vocabulary")}};const uo=class extends Sn{StringElement(e){this.enter(e),this.element.classes.push("reference-value")}},po=Nr(hr,qr,Sn),ho=Nr(Rr,qr,Sn);const mo=class extends ho{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-$defs"),this.specPath=En(["document","objects","JSONSchema"])}};const fo=class extends po{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const yo=class extends po{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const go=class extends po{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const xo=class extends ho{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=En(["document","objects","JSONSchema"])}};const vo=class extends po{ObjectElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}ArrayElement(e){const t=e.node;this.element=new ye,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const bo=class extends ho{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-properties"),this.specPath=En(["document","objects","JSONSchema"])}};const wo=class extends ho{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-patternProperties"),this.specPath=En(["document","objects","JSONSchema"])}};const So=class extends Sn{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-dependentRequired")}};const Eo=class extends so{constructor(e){super(e),this.element=new co}},jo=Ct(Bi(["visitors","document","objects","JSONSchema","element"],"jSONSchema201909"),Bi(["visitors","document","objects","JSONSchema","$visitor"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],lo),Bi(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],no.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],no.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],no.visitors.value),Ui(["visitors","document","objects","JSONReference","$visitor"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","$ref"],uo),Ui(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","$defs"],mo),Bi(["visitors","document","objects","JSONSchema","fixedFields","allOf"],fo),Bi(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],yo),Bi(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],go),Bi(["visitors","document","objects","JSONSchema","fixedFields","not"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","if"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","then"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","else"],ao),Ui(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],xo),Bi(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:vo,alias:"itemsField"}),Bi(["visitors","document","objects","JSONSchema","fixedFields","contains"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","properties"],bo),Bi(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],wo),Bi(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],ao),Bi(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],no.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","minContains"],no.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],So),Bi(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],no.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],ao),Bi(["visitors","document","objects","LinkDescription","element"],"linkDescription"),Bi(["visitors","document","objects","LinkDescription","$visitor"],Eo),Bi(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],ao),Bi(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],ao),Bi(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],ao),Bi(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],ao))(no),Oo=Ls(jo),Fo=e=>Object.entries(e).map(([e,t])=>ks(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(oo,"fixedFields",{get:()=>Fo(Oo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(co,"fixedFields",{get:()=>Fo(Oo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ko=class extends oo{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new p("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new p("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new p("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new p("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const Ao=class extends co{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const $o=class extends ao{constructor(e){super(e),this.element=new ko}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};const Po=class extends po{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Io=class extends Eo{constructor(e){super(e),this.element=new Ao}},Co=Ct(Bi(["visitors","document","objects","JSONSchema","element"],"jSONSchema202012"),Bi(["visitors","document","objects","JSONSchema","$visitor"],$o),Ui(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],jo.visitors.value),Ui(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],jo.visitors.value),Bi(["visitors","document","objects","JSONSchema","fixedFields","not"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","if"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","then"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","else"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],Po),Bi(["visitors","document","objects","JSONSchema","fixedFields","items"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","contains"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],$o),Ui(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Bi(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],$o),Bi(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],$o),Bi(["visitors","document","objects","LinkDescription","element"],"linkDescription"),Bi(["visitors","document","objects","LinkDescription","$visitor"],Io),Bi(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],$o),Bi(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],$o),Bi(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],$o),Bi(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],$o))(jo),No=Ls(Co),To=e=>Object.entries(e).map(([e,t])=>ks(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(ko,"fixedFields",{get:()=>To(No.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Ao,"fixedFields",{get:()=>To(No.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Mo=class extends ko{constructor(e,t,s){super(e,t,s),this.element="schema"}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 Do=class extends J{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const Ro=class extends Do{};const qo=class extends J{constructor(e,t,s){super(e,t,s),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 Lo=class extends qo{};const Bo=class extends J{constructor(e,t,s){super(e,t,s),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 _o=class extends Bo{};const Jo=class extends J{constructor(e,t,s){super(e,t,s),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 Vo=class extends Jo{};const Ho=class extends J{constructor(e,t,s){super(e,t,s),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}};const Uo=class extends Ho{};const zo=class extends J{constructor(e,t,s){super(e,t,s),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 Go=class extends zo{},Xo={namespace:e=>{const{base:t}=e;return t.register("callback",H),t.register("components",z),t.register("contact",X),t.register("discriminator",W),t.register("encoding",Z),t.register("example",ee),t.register("externalDocumentation",se),t.register("header",oe),t.register("info",ae),t.register("jsonSchemaDialect",de),t.register("license",he),t.register("link",Fe),t.register("mediaType",Ae),t.register("oAuthFlow",Pe),t.register("oAuthFlows",Ce),t.register("openapi",Te),t.register("openApi3_1",Me),t.register("operation",Re),t.register("parameter",Be),t.register("pathItem",Je),t.register("paths",He),t.register("reference",Ge),t.register("requestBody",Ke),t.register("response",Ye),t.register("responses",Qe),t.register("schema",Mo),t.register("securityRequirement",Ro),t.register("securityScheme",Lo),t.register("server",_o),t.register("serverVariable",Vo),t.register("tag",Uo),t.register("xml",Go),t}};class Ko extends ye{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ko.primaryClass)}}const Wo=Ko;class Yo extends ye{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Yo.primaryClass)}}const Zo=Yo;class Qo extends ye{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Qo.primaryClass)}}const ec=Qo;class tc extends J{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(tc.primaryClass)}}const sc=tc;class nc extends ye{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(nc.primaryClass),this.classes.push("servers")}}const rc=nc;class ic extends ye{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ic.primaryClass),this.classes.push("parameters")}}const oc=ic;class cc extends ye{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(cc.primaryClass)}}const ac=cc;class lc extends ye{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(lc.primaryClass),this.classes.push("parameters")}}const uc=lc;class dc extends J{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(dc.primaryClass)}}const pc=dc;class hc extends ye{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(hc.primaryClass),this.classes.push("security")}}const mc=hc;class fc extends ye{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(fc.primaryClass),this.classes.push("servers")}}const yc=fc;class gc extends J{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(gc.primaryClass),this.classes.push("examples")}}const xc=gc;class vc extends J{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(vc.primaryClass),this.classes.push("content")}}const bc=vc;class wc extends J{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(wc.primaryClass),this.classes.push("content")}}const Sc=wc;class Ec extends J{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Ec.primaryClass),this.classes.push("examples")}}const jc=Ec;class Oc extends J{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Oc.primaryClass)}}const Fc=Oc;class kc extends J{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(kc.primaryClass)}}const Ac=kc;class $c extends J{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push($c.primaryClass)}}const Pc=$c;class Ic extends J{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(Ic.primaryClass),this.classes.push("content")}}const Cc=Ic;class Nc extends J{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(Nc.primaryClass)}}const Tc=Nc;class Mc extends J{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Mc.primaryClass),this.classes.push("examples")}}const Dc=Mc;class Rc extends J{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(Rc.primaryClass),this.classes.push("content")}}const qc=Rc;class Lc extends J{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Lc.primaryClass)}}const Bc=Lc;class _c extends J{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(_c.primaryClass)}}const Jc=_c;class Vc extends J{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Vc.primaryClass),this.classes.push("parameters")}}const Hc=Vc;class Uc extends J{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Uc.primaryClass),this.classes.push("examples")}}const zc=Uc;class Gc extends J{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(Gc.primaryClass)}}const Xc=Gc;class Kc extends J{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Kc.primaryClass)}}const Wc=Kc;class Yc extends J{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Yc.primaryClass)}}const Zc=Yc;class Qc extends J{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Qc.primaryClass)}}const ea=Qc;class ta extends J{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(ta.primaryClass)}}const sa=ta;class na extends J{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(na.primaryClass)}}const ra=na;class ia extends J{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(ia.primaryClass)}}const oa=ia;class ca extends J{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(ca.primaryClass)}}const aa=ca;class la extends J{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(la.primaryClass)}}const ua=la,da={OpenApi3_1Element:{info:(...e)=>new ae(...e),servers:(...e)=>new Wo(...e),paths:(...e)=>new He(...e),webhooks:(...e)=>new ua(...e),components:(...e)=>new z(...e),security:(...e)=>new Zo(...e),tags:(...e)=>new ec(...e),externalDocs:(...e)=>new se(...e)},InfoElement:{contact:(...e)=>new X(...e),license:(...e)=>new he(...e)},ServerElement:{variables:(...e)=>new sc(...e)},ServerVariableElement:{enum:(...e)=>new ye(...e)},PathsElement:{"[key: *]":function(...e){return new Je(...e)}},PathItemElement:{get:(...e)=>new Re(...e),put:(...e)=>new Re(...e),post:(...e)=>new Re(...e),delete:(...e)=>new Re(...e),options:(...e)=>new Re(...e),head:(...e)=>new Re(...e),patch:(...e)=>new Re(...e),trace:(...e)=>new Re(...e),servers:(...e)=>new rc(...e),parameters:(...e)=>new oc(...e)},OperationElement:{tags:(...e)=>new ac(...e),externalDocs:(...e)=>new se(...e),parameters:(...e)=>new uc(...e),requestBody:(...e)=>new Ke(...e),responses:(...e)=>new Qe(...e),callbacks:(...e)=>new pc(...e),security:(...e)=>new mc(...e),servers:(...e)=>new yc(...e)},ParameterElement:{schema:(...e)=>new Mo(...e),examples:(...e)=>new xc(...e),content:(...e)=>new bc(...e)},RequestBodyElement:{content:(...e)=>new Sc(...e)},MediaTypeElement:{schema:(...e)=>new Mo(...e),examples:(...e)=>new jc(...e),encoding:(...e)=>new Fc(...e)},EncodingElement:{headers:(...e)=>new Ac(...e)},ResponsesElement:{"[key: *]":function(...e){return new Ye(...e)}},ResponseElement:{headers:(...e)=>new Pc(...e),content:(...e)=>new Cc(...e),links:(...e)=>new Tc(...e)},CallbackElement:{"[key: *]":function(...e){return new Je(...e)}},LinkElement:{server:(...e)=>new _o(...e)},HeaderElement:{schema:(...e)=>new Mo(...e),examples:(...e)=>new Dc(...e),content:(...e)=>new qc(...e)},ComponentsElement:{schemas:(...e)=>new Bc(...e),responses:(...e)=>new Jc(...e),parameters:(...e)=>new Hc(...e),examples:(...e)=>new zc(...e),requestBodies:(...e)=>new Xc(...e),headers:(...e)=>new Wc(...e),securitySchemes:(...e)=>new Zc(...e),links:(...e)=>new ea(...e),callbacks:(...e)=>new sa(...e),pathItems:(...e)=>new aa(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new ye(...e)}},TagElement:{externalDocs:(...e)=>new se(...e)},SchemaElement:{$vocabulary(...e){const t=new J(...e);return t.classes.push("json-schema-$vocabulary"),t},$defs(...e){const t=new J(...e);return t.classes.push("json-schema-$defs"),t},allOf(...e){const t=new ye(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new ye(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new ye(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new Mo(...e),if:(...e)=>new Mo(...e),then:(...e)=>new Mo(...e),else:(...e)=>new Mo(...e),dependentSchemas(...e){const t=new J(...e);return t.classes.push("json-schema-dependentSchemas"),t},prefixItems(...e){const t=new ye(...e);return t.classes.push("json-schema-prefixItems"),t},items:(...e)=>new Mo(...e),contains:(...e)=>new Mo(...e),properties(...e){const t=new J(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new J(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new Mo(...e),propertyNames:(...e)=>new Mo(...e),unevaluatedItems:(...e)=>new Mo(...e),unevaluatedProperties:(...e)=>new Mo(...e),type(...e){const t=new ye(...e);return t.classes.push("json-schema-type"),t},enum(...e){const t=new ye(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new ye(...e);return t.classes.push("json-schema-required"),t},dependentRequired(...e){const t=new J(...e);return t.classes.push("json-schema-dependentRequired"),t},examples(...e){const t=new ye(...e);return t.classes.push("json-schema-examples"),t},contentSchema:(...e)=>new Mo(...e),discriminator:(...e)=>new W(...e),xml:(...e)=>new Go(...e),externalDocs:(...e)=>new se(...e)},DiscriminatorElement:{mapping:(...e)=>new ra(...e)},SecuritySchemeElement:{flows:(...e)=>new Ce(...e)},OAuthFlowsElement:{implicit:(...e)=>new Pe(...e),password:(...e)=>new Pe(...e),clientCredentials:(...e)=>new Pe(...e),authorizationCode:(...e)=>new Pe(...e)},OAuthFlowElement:{scopes:(...e)=>new oa(...e)},[ua.primaryClass]:{"[key: *]":function(...e){return new Je(...e)}},[sc.primaryClass]:{"[key: *]":function(...e){return new Vo(...e)}},[Bc.primaryClass]:{"[key: *]":function(...e){return new Mo(...e)}},[Jc.primaryClass]:{"[key: *]":function(...e){return new Ye(...e)}},[Hc.primaryClass]:{"[key: *]":function(...e){return new Be(...e)}},[zc.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[Xc.primaryClass]:{"[key: *]":function(...e){return new Ke(...e)}},[Wc.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[Zc.primaryClass]:{"[key: *]":function(...e){return new Lo(...e)}},[ea.primaryClass]:{"[key: *]":function(...e){return new Fe(...e)}},[sa.primaryClass]:{"[key: *]":function(...e){return new H(...e)}},[aa.primaryClass]:{"[key: *]":function(...e){return new Je(...e)}},[pc.primaryClass]:{"[key: *]":function(...e){return new H(...e)}},[xc.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[bc.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[Sc.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[jc.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[Fc.primaryClass]:{"[key: *]":function(...e){return new Z(...e)}},[Ac.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[Pc.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[Cc.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[Tc.primaryClass]:{"[key: *]":function(...e){return new Fe(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new Mo(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new Mo(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new Mo(...e)}},[Wo.primaryClass]:{"<*>":(...e)=>new _o(...e)},[Zo.primaryClass]:{"<*>":function(...e){return new Ro(...e)}},[ec.primaryClass]:{"<*>":function(...e){return new Uo(...e)}},[rc.primaryClass]:{"<*>":function(...e){return new _o(...e)}},[oc.primaryClass]:{"<*>":function(...e){return new Be(...e)}},[uc.primaryClass]:{"<*>":function(...e){return new Be(...e)}},[mc.primaryClass]:{"<*>":function(...e){return new Ro(...e)}},[yc.primaryClass]:{"<*>":function(...e){return new _o(...e)}},"json-schema-allOf":{"<*>":function(...e){return new Mo(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new Mo(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new Mo(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new Mo(...e)}}},pa=(e,t)=>{const s=Qn(e),n=da[s]||da[fn(e.classes.first)];return void 0===n?void 0:Object.hasOwn(n,"[key: *]")?n["[key: *]"]:n[t]},ha=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>xe(e)&&Us(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(Se(n)?(i=t,r=pa(n,"<*>")):je(n)&&(i=s.at(-2),r=pa(i,fn(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,nn(t.meta),nn(t.attributes));Ws.transfer(t,o),e.replaceWith(o)}}});const ma=ct(function(e,t,s){return jn(e,pt(t,s))});var fa=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Jt,e.prototype["@@transducer/result"]=Vt,e.prototype["@@transducer/step"]=function(e,t){return v(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function ya(e){return function(t){return new fa(e,t)}}const ga=g(Bt([],ya,function(e,t){for(var s,n=0,r=t.length,i=[];n<r;)v(e,s=t[n],i)||(i[i.length]=s),n+=1;return i}));const xa=class{internalStore;constructor(e,t,s){this.storageElement=e,this.storageField=t,this.storageSubField=s}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Ee(e)||(e=new J,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Se(t)||(t=new ye,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},va=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t,r=(e,t)=>!!s.isParameterElement(e)&&(!!s.isParameterElement(t)&&(!!s.isStringElement(e.name)&&(!!s.isStringElement(e.in)&&(!!s.isStringElement(t.name)&&(!!s.isStringElement(t.in)&&(fn(e.name)===fn(t.name)&&fn(e.in)===fn(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;o=new xa(s,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e){const t=e.node;if(e.getAncestorNodes().reverse().some(s.isComponentsElement))return;const{parameters:n}=t;s.isArrayElement(n)?i.push([...n.content??[]]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e){const t=e.node,s=e.getAncestorNodes().reverse(),a=c(i);if(!Array.isArray(a)||0===a.length)return;const l=n([...s,t]);if(o.includes(l))return;const u=ma([],["parameters","content"],t),d=ga(r,[...u,...a]);t.parameters=new uc(d),o.append(l)}}}}},ba=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t;let r,i;return{visitor:{OpenApi3_1Element:{enter(t){const n=t.node;i=new xa(n,e,"security-requirements"),s.isArrayElement(n.security)&&(r=n.security)},leave(){i=void 0,r=void 0}},OperationElement:{leave(e){const t=e.node,o=e.getAncestorNodes().reverse();if(o.some(s.isComponentsElement))return;const c=n([...o,t]);if(i.includes(c))return;void 0===t.security&&void 0!==r&&(t.security=new mc(r?.content??void 0),i.append(c))}}}}};const wa=ct(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})b(n,t)&&(r[n]=b(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)b(n,s)&&!b(n,r)&&(r[n]=s[n]);return r});const Sa=ct(function e(t,s,n){return wa(function(s,n,r){return _t(n)&&_t(r)?e(t,n,r):t(s,n,r)},s,n)});const Ea=g(function(e,t){return Sa(function(e,t,s){return s},e,t)});const ja=ct(function(e,t,s){return jn(e,ut(t,s))});const Oa=Pt(0,-1);const Fa=g(function(e,t){return e.apply(this,t)});const ka=hs(Es);const Aa=ds(Ei,Pn);const $a=os(3,function(e,t,s){var n=ht(e,s),r=ht(Oa(e),s);if(!ka(n)&&!Aa(e)){var i=St(n,r);return Fa(i,t)}});const Pa=class{namespace;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};if(e.isMetaEmpty||(t.meta=this.serialiseObject(e.meta)),e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof Ws)){const s=Ws.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),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));let s;t.element!==e.element&&(t.element=e.element);let n=e.meta;if(e.meta?.__mappings__){const{__mappings__:t,...r}=e.meta;s=t,n=Object.keys(r).length>0?r:void 0}if(n&&this.deserialiseObject(n,t.meta),s){this.deserialise(s).applyTo(t)}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=e,s={key:this.serialise(t.key)};return t.value&&(s.value=this.serialise(t.value)),s}if(e&&Array.isArray(e)){if(0===e.length)return;return e.map(e=>this.serialise(e))}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(Array.isArray(e))return e.map(e=>this.deserialise(e))}return e}serialiseObject(e){const t={};if(e.forEach((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}},Ia=e=>null===e,Ca=e=>"string"==typeof e,Na=e=>"number"==typeof e,Ta=e=>"boolean"==typeof e,Ma=e=>null!==e&&"object"==typeof e;class Da{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=q,this.KeyValuePair=T,e&&e.noDefault||this.useDefault()}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",fe).register("string",le).register("number",me).register("boolean",ne).register("array",ye).register("object",J).register("member",_).register("ref",ln).register("link",an).register("sourceMap",Ws),this.detect(Ia,fe,!1).detect(Ca,le,!1).detect(Na,me,!1).detect(Ta,ne,!1).detect(Array.isArray,ye,!1).detect(Ma,J,!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,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(const[s,n]of this.elementDetection)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.substring(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new Pa(this)}}Pa.prototype.Namespace=Da;const Ra=Da,qa=new Ra,La={isElement:ge,isStringElement:xe,isNumberElement:ve,isNullElement:be,isBooleanElement:we,isArrayElement:Se,isObjectElement:Ee,isMemberElement:je,isPrimitiveElement:e=>Ee(e)&&"object"===e.element||Se(e)&&"array"===e.element||we(e)&&"boolean"===e.element||ve(e)&&"number"===e.element||xe(e)&&"string"===e.element||be(e)&&"null"===e.element||je(e)&&"member"===e.element,isLinkElement:hn,isRefElement:mn,isAnnotationElement:e=>e instanceof un,isCommentElement:e=>e instanceof dn,isParseResultElement:e=>e instanceof pn,isSourceMapElement:e=>e instanceof Ws,hasElementSourceMap:Hs,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!Se(s)&&t.every(e=>s.includes(e))},includesClasses:Us},Ba={toolboxCreator:()=>({predicates:La,namespace:qa}),visitorOptions:{exposeEdits:!0}},_a=(e,t,s={})=>{if(0===t.length)return e;const n=Ea(Ba,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=cr(c.map(ja({},"visitor")),i);c.forEach($a(["pre"],[]));const l=dr(e,a);return c.forEach($a(["post"],[])),l};function Ja(e){return void 0===e?new fe:Va(e)}function Va(e){if(e instanceof q)return e;if("string"==typeof e)return new le(e);if("number"==typeof e)return new me(e);if("boolean"==typeof e)return new ne(e);if(null===e)return new fe;if(Array.isArray(e))return new ye(e.map(Ja));if("object"==typeof e)return new J(e);throw new Error("Cannot refract value of type "+typeof e)}_a[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Ea(Ba,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=ar(c.map(ja({},"visitor")),i);await Promise.allSettled(c.map($a(["pre"],[])));const l=await pr(e,a);return await Promise.allSettled(c.map($a(["post"],[]))),l},q.prototype.ObjectElement=J,q.prototype.ArrayElement=ye,q.prototype.RefElement=ln,q.prototype.MemberElement=_,q.prototype.refract=Va;const Ha=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new J:t.meta,n=e.isMetaEmpty?new J:e.meta;t.meta=bn(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new J:t.attributes,n=e.isAttributesEmpty?new J:e.attributes;t.attributes=bn(s,n)}Ws.transfer(e,t)}};const Ua=class extends Ha{enter(e){this.element=nn(e.node),e.stop()}};const za=class extends Ha{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:n,...r}){super({...r}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Dn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=ht(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Yt(Es,["visitors",...e],this.specObj)?ht(["visitors",...e],this.specObj):ht(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof Ua&&n?.constructor===Ua?nn(t):(dr(t,n,{nodeTypeGetter:er}),n.element)}};var Ga=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Jt,e.prototype["@@transducer/result"]=Vt,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?bi(s):s},e}();function Xa(e){return function(t){return new Ga(e,t)}}const Ka=g(Bt(["take"],Xa,function(e,t){return Pt(0,e<0?1/0:e,t)}));const Wa=g(function(e,t){return N(Ka(e.length,t),e)}),Ya=e=>Ee(e)&&e.hasKey("$ref"),Za=Ee,Qa=Ee,el=e=>xe(e.key)&&Wa("x-",fn(e.key));const tl=class extends za{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=el;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=fn(t);if(xe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new _(nn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(i)||this.element.content.push(nn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const sl=class extends za{specPath;ignoredFields;fieldPatternPredicate=Mr;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=el;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=fn(t);if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new _(nn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(nn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const nl=class extends sl{constructor(e){super(e),this.fieldPatternPredicate=Mn}};const rl=class extends za{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>fi(e,En(t),On)),n=$i(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function il(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!Mt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!Mt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const ol=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!il(e,!0,this)},e.prototype.has=function(e){return il(e,!1,this)},e}();const cl=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new ol,c=0;c<i;c+=1)o.add(t[c]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),al=Nr(tl,sl);const ll=class extends al{specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const t=e.node,{specPath:s,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(t));this.ignoredFields=[...n,...cl(t.keys(),s)],tl.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,sl.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(fn(e.key))-r.indexOf(fn(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},ul=Nr(za,Ua),dl=Nr(tl,Ua),pl=Nr(sl,Ua),hl=Nr(nl,Ua),ml=Nr(rl,Ua),fl=Nr(ll,Ua);const yl=class extends J{constructor(e,t,s){super(e,t,s),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 gl=class extends dl{constructor(e){super(e),this.element=new yl,this.specPath=En(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){dl.prototype.ObjectElement.call(this,e)}};const xl=class extends ul{StringElement(e){const t=e.node,s=new Ne(fn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const vl=class extends za{MemberElement(e){this.element=nn(e.node),this.element.classes.push("specification-extension"),e.stop()}};const bl=class extends dl{constructor(e){super(e),this.element=new ce,this.specPath=En(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const wl=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const Sl=class extends dl{constructor(e){super(e),this.element=new G,this.specPath=En(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const El=class extends dl{constructor(e){super(e),this.element=new pe,this.specPath=En(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const jl=class extends dl{constructor(e){super(e),this.element=new Oe,this.specPath=En(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){dl.prototype.ObjectElement.call(this,e),(xe(this.element.operationId)||xe(this.element.operationRef))&&this.element.classes.push("reference-element")}};const Ol=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Fl=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};class kl extends J{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(kl.primaryClass)}}const Al=kl;const $l=class extends hl{constructor(e){super(e),this.element=new Al,this.specPath=En(["value"])}};const Pl=class extends dl{constructor(e){super(e),this.element=new Bo,this.specPath=En(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Il=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const Cl=class extends ul{constructor(e){super(e),this.element=new Wo}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Za(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Nl=class extends dl{constructor(e){super(e),this.element=new Jo,this.specPath=En(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Tl=class extends hl{constructor(e){super(e),this.element=new sc,this.specPath=En(["document","objects","ServerVariable"])}};const Ml=class extends dl{constructor(e){super(e),this.element=new ke,this.specPath=En(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}},Dl=e=>e instanceof ie,Rl=e=>e instanceof De,ql=e=>e instanceof _e,Ll=e=>e instanceof Ue,Bl=e=>e instanceof We,_l=e=>e instanceof ke,Jl=e=>e instanceof Wo;const Vl=class extends ml{constructor(e){super(e),this.alternator=[{predicate:Ya,specPath:["document","objects","Reference"]},{predicate:mi,specPath:["document","objects","Schema"]}]}ObjectElement(e){rl.prototype.enter.call(this,e),Ll(this.element)&&this.element.meta.set("referenced-element","schema")}};const Hl=class extends hl{constructor(e){super(e),this.element=new J,this.element.classes.push("examples"),this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){hl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","example")})}};const Ul=class extends Hl{constructor(e){super(e),this.element=new jc}};const zl=class extends hl{constructor(e){super(e),this.element=new Fc,this.specPath=En(["document","objects","Encoding"])}};const Gl=class extends hl{constructor(e){super(e),this.element=new Do,this.specPath=En(["value"])}};const Xl=class extends ul{constructor(e){super(e),this.element=new Zo}ArrayElement(e){const t=e.node;t.forEach(e=>{if(Ee(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(nn(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Kl=class extends dl{constructor(e){super(e),this.element=new U,this.specPath=En(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}};const Wl=class extends dl{constructor(e){super(e),this.element=new Ho,this.specPath=En(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const Yl=class extends dl{constructor(e){super(e),this.element=new Ue,this.specPath=En(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){dl.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&this.element.classes.push("reference-element")}};const Zl=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Ql=class extends dl{constructor(e){super(e),this.element=new Le,this.specPath=En(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){tl.prototype.ObjectElement.call(this,e),Ee(this.element.contentField)&&this.element.contentField.filter(_l).forEach((e,t)=>{e.meta.set("media-type",fn(t))})}};const eu=class extends ml{constructor(e){super(e),this.alternator=[{predicate:Ya,specPath:["document","objects","Reference"]},{predicate:mi,specPath:["document","objects","Schema"]}]}ObjectElement(e){rl.prototype.enter.call(this,e),Ll(this.element)&&this.element.meta.set("referenced-element","schema")}};const tu=class extends dl{constructor(e){super(e),this.element=new ie,this.specPath=En(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const su=class extends ml{constructor(e){super(e),this.alternator=[{predicate:Ya,specPath:["document","objects","Reference"]},{predicate:mi,specPath:["document","objects","Schema"]}]}ObjectElement(e){rl.prototype.enter.call(this,e),Ll(this.element)&&this.element.meta.set("referenced-element","schema")}};const nu=class extends Hl{constructor(e){super(e),this.element=new Dc}};const ru=class extends hl{constructor(e){super(e),this.element=new J,this.element.classes.push("content"),this.specPath=En(["document","objects","MediaType"])}};const iu=class extends ru{constructor(e){super(e),this.element=new qc}};const ou=class extends Bs{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idField(){throw new p("idField getter in Schema class is not not supported.")}set idField(e){throw new p("idField setter in Schema class is not not supported.")}get $schema(){throw new p("$schema getter in Schema class is not not supported.")}set $schema(e){throw new p("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new p("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new p("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new p("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new p("dependencies setter in Schema class is not not supported.")}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 definitions(){throw new p("definitions getter in Schema class is not not supported.")}set definitions(e){throw new p("definitions setter in Schema class is not not supported.")}get base(){throw new p("base getter in Schema class is not not supported.")}set base(e){throw new p("base setter in Schema class is not not supported.")}get linksField(){throw new p("linksField getter in Schema class is not not supported.")}set linksField(e){throw new p("linksField setter in Schema class is not not supported.")}get media(){throw new p("media getter in Schema class is not not supported.")}set media(e){throw new p("media setter in Schema class is not not supported.")}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)}};const cu=class extends dl{constructor(e){super(e),this.element=new ou,this.specPath=En(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},au=Ti.visitors.document.objects.JSONSchema.fixedFields.allOf;const lu=class extends au{ArrayElement(e){au.prototype.ArrayElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","schema")})}},uu=Ti.visitors.document.objects.JSONSchema.fixedFields.anyOf;const du=class extends uu{ArrayElement(e){uu.prototype.ArrayElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","schema")})}},pu=Ti.visitors.document.objects.JSONSchema.fixedFields.oneOf;const hu=class extends pu{ArrayElement(e){pu.prototype.ArrayElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","schema")})}};const mu=class extends ei{ObjectElement(e){ei.prototype.ObjectElement.call(this,e),Ll(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},fu=Ti.visitors.document.objects.JSONSchema.fixedFields.properties;const yu=class extends fu{ObjectElement(e){fu.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","schema")})}},gu=Ti.visitors.document.objects.JSONSchema.fixedFields.type;const xu=class extends gu{ArrayElement(e){this.enter(e)}},vu=Ti.visitors.JSONSchemaOrJSONReferenceVisitor;const bu=class extends vu{ObjectElement(e){vu.prototype.enter.call(this,e),Ll(this.element)&&this.element.meta.set("referenced-element","schema")}};const wu=class extends dl{constructor(e){super(e),this.element=new K,this.specPath=En(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const Su=class extends hl{constructor(e){super(e),this.element=new ra,this.specPath=En(["value"])}};const Eu=class extends dl{constructor(e){super(e),this.element=new zo,this.specPath=En(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const ju=class extends Hl{constructor(e){super(e),this.element=new xc}};const Ou=class extends ru{constructor(e){super(e),this.element=new bc}};const Fu=class extends hl{constructor(e){super(e),this.element=new Bc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","schema")})}};const ku=class extends hl{constructor(e){super(e),this.element=new Jc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(Bl).forEach((e,t)=>{e.meta.set("http-status-code",fn(t))})}};const Au=class extends hl{constructor(e){super(e),this.element=new Hc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const $u=class extends hl{constructor(e){super(e),this.element=new zc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","example")})}};const Pu=class extends hl{constructor(e){super(e),this.element=new Xc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const Iu=class extends hl{constructor(e){super(e),this.element=new Wc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(Dl).forEach((e,t)=>{e.meta.set("header-name",fn(t))})}};const Cu=class extends hl{constructor(e){super(e),this.element=new Zc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const Nu=class extends hl{constructor(e){super(e),this.element=new ea,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","link")})}};const Tu=class extends hl{constructor(e){super(e),this.element=new sa,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Mu=class extends dl{constructor(e){super(e),this.element=new Q,this.specPath=En(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){dl.prototype.ObjectElement.call(this,e),xe(this.element.externalValue)&&this.element.classes.push("reference-element")}};const Du=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Ru=class extends dl{constructor(e){super(e),this.element=new te,this.specPath=En(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const qu=class extends dl{constructor(e){super(e),this.element=new Y,this.specPath=En(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){tl.prototype.ObjectElement.call(this,e),Ee(this.element.headers)&&this.element.headers.filter(Dl).forEach((e,t)=>{e.meta.set("header-name",fn(t))})}};const Lu=class extends hl{constructor(e){super(e),this.element=new Ac,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Dl(e))return;const s=fn(t);e.meta.set("headerName",s)})}};const Bu=class extends pl{constructor(e){super(e),this.element=new Ve,this.specPath=En(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=mi}ObjectElement(e){pl.prototype.ObjectElement.call(this,e),this.element.filter(ql).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",nn(t))})}};const _u=class extends dl{constructor(e){super(e),this.element=new Xe,this.specPath=En(["document","objects","RequestBody"])}ObjectElement(e){tl.prototype.ObjectElement.call(this,e),Ee(this.element.contentField)&&this.element.contentField.filter(_l).forEach((e,t)=>{e.meta.set("media-type",fn(t))})}};const Ju=class extends ru{constructor(e){super(e),this.element=new Sc}};const Vu=class extends pl{constructor(e){super(e),this.element=new V,this.specPath=En(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(ql).forEach((e,t)=>{e.meta.set("runtime-expression",fn(t))})}};const Hu=class extends dl{constructor(e){super(e),this.element=new We,this.specPath=En(["document","objects","Response"])}ObjectElement(e){dl.prototype.ObjectElement.call(this,e),Ee(this.element.contentField)&&this.element.contentField.filter(_l).forEach((e,t)=>{e.meta.set("media-type",fn(t))}),Ee(this.element.headers)&&this.element.headers.filter(Dl).forEach((e,t)=>{e.meta.set("header-name",fn(t))})}};const Uu=class extends hl{constructor(e){super(e),this.element=new Pc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){hl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Dl(e))return;const s=fn(t);e.meta.set("header-name",s)})}};const zu=class extends ru{constructor(e){super(e),this.element=new Cc}};const Gu=class extends hl{constructor(e){super(e),this.element=new Tc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){hl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","link")})}};function Xu(e){return"[object Number]"===Object.prototype.toString.call(e)}const Ku=g(function(e,t){if(!Xu(e)||!Xu(t))throw new TypeError("Both arguments to range must be numbers");for(var s=e<t?Math.ceil(t-e):0,n=Array(s),r=0;r<s;)n[r]=r+e,r+=1;return n});const Wu=class extends fl{constructor(e){super(e),this.element=new Ze,this.specPathFixedFields=En(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Ku(100,600).join("|")})$`).test(String(e))}ObjectElement(e){fl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(Bl).forEach((e,t)=>{const s=nn(t);this.fieldPatternPredicate(fn(s))&&e.meta.set("http-status-code",s)})}};const Yu=class extends ml{constructor(e){super(e),this.alternator=[{predicate:Ya,specPath:["document","objects","Reference"]},{predicate:mi,specPath:["document","objects","Response"]}]}ObjectElement(e){rl.prototype.enter.call(this,e),Ll(this.element)?this.element.meta.set("referenced-element","response"):Bl(this.element)&&this.element.meta.set("http-status-code","default")}};const Zu=class extends dl{constructor(e){super(e),this.element=new De,this.specPath=En(["document","objects","Operation"])}};const Qu=class extends Ua{constructor(e){super(e),this.element=new ac}ArrayElement(e){const t=e.node;this.element=this.element.concat(nn(t)),e.stop()}};const ed=class extends ul{constructor(e){super(e),this.element=new ye,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Ya(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);Ll(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const td=class extends ed{constructor(e){super(e),this.element=new uc}};const sd=class extends rl{constructor(e){super(e),this.alternator=[{predicate:Ya,specPath:["document","objects","Reference"]},{predicate:mi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){rl.prototype.enter.call(this,e),Ll(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const nd=class extends hl{specPath;constructor(e){super(e),this.element=new pc,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(Ll).forEach(e=>{e.meta.set("referenced-element","callback")})}};const rd=class extends ul{constructor(e){super(e),this.element=new mc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Ee(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const id=class extends Cl{constructor(e){super(e),this.element=new yc}};const od=class extends dl{constructor(e){super(e),this.element=new _e,this.specPath=En(["document","objects","PathItem"])}ObjectElement(e){dl.prototype.ObjectElement.call(this,e),this.element.filter(Rl).forEach((e,t)=>{const s=nn(t);s.content=fn(s).toUpperCase(),e.meta.set("http-method",s)}),xe(this.element.$ref)&&this.element.classes.push("reference-element")}};const cd=class extends Ua{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const ad=class extends Cl{constructor(e){super(e),this.element=new rc}};const ld=class extends ed{constructor(e){super(e),this.element=new oc}};const ud=class extends dl{constructor(e){super(e),this.element=new qo,this.specPath=En(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const dd=class extends dl{constructor(e){super(e),this.element=new Ie,this.specPath=En(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const pd=class extends dl{constructor(e){super(e),this.element=new $e,this.specPath=En(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const hd=class extends hl{constructor(e){super(e),this.element=new oa,this.specPath=En(["value"])}};const md=class extends ul{constructor(e){super(e),this.element=new ec}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Qa(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:fd}=Ti.visitors.document.objects.JSONSchema,yd={visitors:{value:Ua,document:{objects:{OpenApi:{$visitor:gl,element:"openApi3_0",fixedFields:{openapi:xl,info:{$ref:"#/visitors/document/objects/Info"},servers:Cl,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Xl,tags:md,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:bl,element:"info",fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:wl}},Contact:{$visitor:Sl,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:El,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Pl,element:"server",fixedFields:{url:Il,description:{$ref:"#/visitors/value"},variables:Tl}},ServerVariable:{$visitor:Nl,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Kl,element:"components",fixedFields:{schemas:Fu,responses:ku,parameters:Au,examples:$u,requestBodies:Pu,headers:Iu,securitySchemes:Cu,links:{$visitor:Nu,alias:"linksField"},callbacks:Tu}},Paths:{$visitor:Bu,element:"paths"},PathItem:{$visitor:od,element:"pathItem",fixedFields:{$ref:cd,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},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:ad,parameters:ld}},Operation:{$visitor:Zu,element:"operation",fixedFields:{tags:Qu,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:td,requestBody:sd,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:nd,deprecated:{$ref:"#/visitors/value"},security:rd,servers:id}},ExternalDocumentation:{$visitor:Ru,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:Ql,element:"parameter",fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:eu,example:{$ref:"#/visitors/value"},examples:ju,content:{$visitor:Ou,alias:"contentField"}}},RequestBody:{$visitor:_u,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:Ju,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Ml,element:"mediaType",fixedFields:{schema:Vl,example:{$ref:"#/visitors/value"},examples:Ul,encoding:zl}},Encoding:{$visitor:qu,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:Lu,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:Wu,element:"responses",fixedFields:{default:Yu}},Response:{$visitor:Hu,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:Uu,content:{$visitor:zu,alias:"contentField"},links:{$visitor:Gu,alias:"linksField"}}},Callback:{$visitor:Vu,element:"callback"},Example:{$visitor:Mu,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Du}},Link:{$visitor:jl,element:"link",fixedFields:{operationRef:Ol,operationId:Fl,parameters:$l,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:tu,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:su,example:{$ref:"#/visitors/value"},examples:nu,content:{$visitor:iu,alias:"contentField"}}},Tag:{$visitor:Wl,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Yl,element:"reference",fixedFields:{$ref:Zl}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:cu,element:"schema",fixedFields:{title:fd.title,multipleOf:fd.multipleOf,maximum:fd.maximum,exclusiveMaximum:fd.exclusiveMaximum,minimum:fd.minimum,exclusiveMinimum:fd.exclusiveMinimum,maxLength:fd.maxLength,minLength:fd.minLength,pattern:fd.pattern,maxItems:fd.maxItems,minItems:fd.minItems,uniqueItems:fd.uniqueItems,maxProperties:fd.maxProperties,minProperties:fd.minProperties,required:fd.required,enum:fd.enum,type:xu,allOf:lu,anyOf:du,oneOf:hu,not:bu,items:{$visitor:mu,alias:"itemsField"},properties:yu,additionalProperties:bu,description:fd.description,format:fd.format,default:fd.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:wu,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Su}},XML:{$visitor:Eu,element:"xml",fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:ud,element:"securityScheme",fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:dd,element:"oAuthFlows",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:pd,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:hd}},SecurityRequirement:{$visitor:Gl,element:"securityRequirement"}},extension:{$visitor:vl}}}},gd=Nr(za,Ua),xd=Nr(tl,Ua),vd=Nr(nl,Ua),bd=Nr(tl,qr,Ua);const wd=class extends xd{constructor(e){super(e),this.element=new Me,this.specPath=En(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){const t=e.node;this.openApiGenericElement=t,tl.prototype.ObjectElement.call(this,e)}},Sd=yd.visitors.document.objects.Info.$visitor;const Ed=class extends Sd{constructor(e){super(e),this.element=new ae}},jd=yd.visitors.document.objects.Contact.$visitor;const Od=class extends jd{constructor(e){super(e),this.element=new X}},Fd=yd.visitors.document.objects.License.$visitor;const kd=class extends Fd{constructor(e){super(e),this.element=new he}},Ad=yd.visitors.document.objects.Link.$visitor;const $d=class extends Ad{constructor(e){super(e),this.element=new Fe}};const Pd=class extends gd{StringElement(e){const t=e.node,s=new de(fn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Id=class extends gd{StringElement(e){const t=e.node,s=new Te(fn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}},Cd=yd.visitors.document.objects.Server.$visitor;const Nd=class extends Cd{constructor(e){super(e),this.element=new _o}},Td=yd.visitors.document.objects.ServerVariable.$visitor;const Md=class extends Td{constructor(e){super(e),this.element=new Vo}},Dd=yd.visitors.document.objects.MediaType.$visitor;const Rd=class extends Dd{constructor(e){super(e),this.element=new Ae}},qd=yd.visitors.document.objects.SecurityRequirement.$visitor;const Ld=class extends qd{constructor(e){super(e),this.element=new Ro}},Bd=yd.visitors.document.objects.Components.$visitor;const _d=class extends Bd{constructor(e){super(e),this.element=new z}},Jd=yd.visitors.document.objects.Tag.$visitor;const Vd=class extends Jd{constructor(e){super(e),this.element=new Uo}},Hd=yd.visitors.document.objects.Reference.$visitor;const Ud=class extends Hd{constructor(e){super(e),this.element=new Ge}},zd=yd.visitors.document.objects.Parameter.$visitor;const Gd=class extends zd{constructor(e){super(e),this.element=new Be}},Xd=yd.visitors.document.objects.Header.$visitor;const Kd=class extends Xd{constructor(e){super(e),this.element=new oe}},Wd=e=>e instanceof H,Yd=e=>e instanceof z,Zd=e=>e instanceof X,Qd=e=>e instanceof ee,ep=e=>e instanceof se,tp=e=>e instanceof oe,sp=e=>e instanceof ae,np=e=>e instanceof de,rp=e=>e instanceof he,ip=e=>e instanceof Fe,op=e=>e instanceof Te,cp=e=>e instanceof Me,ap=e=>e instanceof Re,lp=e=>e instanceof Be,up=e=>e instanceof Je,dp=e=>{if(!up(e))return!1;if(!xe(e.$ref))return!1;const t=fn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},pp=e=>e instanceof He,hp=e=>e instanceof Ge,mp=e=>{if(!hp(e))return!1;if(!xe(e.$ref))return!1;const t=fn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},fp=e=>e instanceof Ke,yp=e=>e instanceof Ye,gp=e=>e instanceof Qe,xp=e=>e instanceof Mo,vp=e=>we(e)&&Us(e,["boolean-json-schema"]),bp=e=>e instanceof Ro,wp=e=>e instanceof Lo,Sp=e=>e instanceof _o,Ep=e=>e instanceof Vo,jp=e=>e instanceof Ae;const Op=class extends bd{constructor(e){super(e),this.element=new Mo,this.specPath=En(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=de.default,this.passingOptionsNames.push("parent")}ObjectElement(e){const t=e.node;this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,tl.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}BooleanElement(e){$o.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&np(this.openApiSemanticElement.jsonSchemaDialect)?fn(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&xe(this.openApiGenericElement.get("jsonSchemaDialect"))?fn(this.openApiGenericElement.get("jsonSchemaDialect")):fn(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return $o.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return $o.prototype.handleSchemaIdentifier.call(this,e)}};const Fp=class extends mo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const kp=class extends fo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Ap=class extends yo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const $p=class extends go{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Pp=class extends xo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Ip=class extends Po{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Cp=class extends bo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Np=class extends wo{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Tp=yd.visitors.document.objects.Discriminator.$visitor;const Mp=class extends Tp{constructor(e){super(e),this.element=new W,this.canSupportSpecificationExtensions=!0}},Dp=yd.visitors.document.objects.XML.$visitor;const Rp=class extends Dp{constructor(e){super(e),this.element=new Go}};const qp=class extends vd{constructor(e){super(e),this.element=new Bc,this.specPath=En(["document","objects","Schema"])}};const Lp=class extends vd{constructor(e){super(e),this.element=new aa,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(hp).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},Bp=yd.visitors.document.objects.Example.$visitor;const _p=class extends Bp{constructor(e){super(e),this.element=new ee}},Jp=yd.visitors.document.objects.ExternalDocumentation.$visitor;const Vp=class extends Jp{constructor(e){super(e),this.element=new se}},Hp=yd.visitors.document.objects.Encoding.$visitor;const Up=class extends Hp{constructor(e){super(e),this.element=new Z}},zp=yd.visitors.document.objects.Paths.$visitor;const Gp=class extends zp{constructor(e){super(e),this.element=new He}},Xp=yd.visitors.document.objects.RequestBody.$visitor;const Kp=class extends Xp{constructor(e){super(e),this.element=new Ke}},Wp=yd.visitors.document.objects.Callback.$visitor;const Yp=class extends Wp{constructor(e){super(e),this.element=new H,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){Wp.prototype.ObjectElement.call(this,e),this.element.filter(hp).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},Zp=yd.visitors.document.objects.Response.$visitor;const Qp=class extends Zp{constructor(e){super(e),this.element=new Ye}},eh=yd.visitors.document.objects.Responses.$visitor;const th=class extends eh{constructor(e){super(e),this.element=new Qe}},sh=yd.visitors.document.objects.Operation.$visitor;const nh=class extends sh{constructor(e){super(e),this.element=new Re}},rh=yd.visitors.document.objects.PathItem.$visitor;const ih=class extends rh{constructor(e){super(e),this.element=new Je}},oh=yd.visitors.document.objects.SecurityScheme.$visitor;const ch=class extends oh{constructor(e){super(e),this.element=new Lo}},ah=yd.visitors.document.objects.OAuthFlows.$visitor;const lh=class extends ah{constructor(e){super(e),this.element=new Ce}},uh=yd.visitors.document.objects.OAuthFlow.$visitor;const dh=class extends uh{constructor(e){super(e),this.element=new Pe}};const ph=class extends vd{constructor(e){super(e),this.element=new ua,this.specPath=e=>Ya(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){nl.prototype.ObjectElement.call(this,e),this.element.filter(hp).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(up).forEach((e,t)=>{e.setMetaProperty("webhook-name",fn(t))})}},{JSONSchema:hh,LinkDescription:mh}=Co.visitors.document.objects,fh={visitors:{value:yd.visitors.value,document:{objects:{OpenApi:{element:"openApi3_1",$visitor:wd,fixedFields:{openapi:{element:"openapi",$visitor:Id},info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:{element:"jsonSchemaDialect",$visitor:Pd},servers:yd.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:ph,components:{$ref:"#/visitors/document/objects/Components"},security:yd.visitors.document.objects.OpenApi.fixedFields.security,tags:yd.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{element:"info",$visitor:Ed,fixedFields:{title:yd.visitors.document.objects.Info.fixedFields.title,description:yd.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:yd.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:yd.visitors.document.objects.Info.fixedFields.version}},Contact:{element:"contact",$visitor:Od,fixedFields:{name:yd.visitors.document.objects.Contact.fixedFields.name,url:yd.visitors.document.objects.Contact.fixedFields.url,email:yd.visitors.document.objects.Contact.fixedFields.email}},License:{element:"license",$visitor:kd,fixedFields:{name:yd.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:yd.visitors.document.objects.License.fixedFields.url}},Server:{element:"server",$visitor:Nd,fixedFields:{url:yd.visitors.document.objects.Server.fixedFields.url,description:yd.visitors.document.objects.Server.fixedFields.description,variables:yd.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{element:"serverVariable",$visitor:Md,fixedFields:{enum:yd.visitors.document.objects.ServerVariable.fixedFields.enum,default:yd.visitors.document.objects.ServerVariable.fixedFields.default,description:yd.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{element:"components",$visitor:_d,fixedFields:{schemas:qp,responses:yd.visitors.document.objects.Components.fixedFields.responses,parameters:yd.visitors.document.objects.Components.fixedFields.parameters,examples:yd.visitors.document.objects.Components.fixedFields.examples,requestBodies:yd.visitors.document.objects.Components.fixedFields.requestBodies,headers:yd.visitors.document.objects.Components.fixedFields.headers,securitySchemes:yd.visitors.document.objects.Components.fixedFields.securitySchemes,links:yd.visitors.document.objects.Components.fixedFields.links,callbacks:yd.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Lp}},Paths:{element:"paths",$visitor:Gp},PathItem:{element:"pathItem",$visitor:ih,fixedFields:{$ref:yd.visitors.document.objects.PathItem.fixedFields.$ref,summary:yd.visitors.document.objects.PathItem.fixedFields.summary,description:yd.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},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:yd.visitors.document.objects.PathItem.fixedFields.servers,parameters:yd.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{element:"operation",$visitor:nh,fixedFields:{tags:yd.visitors.document.objects.Operation.fixedFields.tags,summary:yd.visitors.document.objects.Operation.fixedFields.summary,description:yd.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:yd.visitors.document.objects.Operation.fixedFields.operationId,parameters:yd.visitors.document.objects.Operation.fixedFields.parameters,requestBody:yd.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:yd.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:yd.visitors.document.objects.Operation.fixedFields.deprecated,security:yd.visitors.document.objects.Operation.fixedFields.security,servers:yd.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{element:"externalDocumentation",$visitor:Vp,fixedFields:{description:yd.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:yd.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{element:"parameter",$visitor:Gd,fixedFields:{name:yd.visitors.document.objects.Parameter.fixedFields.name,in:yd.visitors.document.objects.Parameter.fixedFields.in,description:yd.visitors.document.objects.Parameter.fixedFields.description,required:yd.visitors.document.objects.Parameter.fixedFields.required,deprecated:yd.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:yd.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:yd.visitors.document.objects.Parameter.fixedFields.style,explode:yd.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:yd.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:yd.visitors.document.objects.Parameter.fixedFields.example,examples:yd.visitors.document.objects.Parameter.fixedFields.examples,content:yd.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{element:"requestBody",$visitor:Kp,fixedFields:{description:yd.visitors.document.objects.RequestBody.fixedFields.description,content:yd.visitors.document.objects.RequestBody.fixedFields.content,required:yd.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{element:"mediaType",$visitor:Rd,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:yd.visitors.document.objects.MediaType.fixedFields.example,examples:yd.visitors.document.objects.MediaType.fixedFields.examples,encoding:yd.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{element:"encoding",$visitor:Up,fixedFields:{contentType:yd.visitors.document.objects.Encoding.fixedFields.contentType,headers:yd.visitors.document.objects.Encoding.fixedFields.headers,style:yd.visitors.document.objects.Encoding.fixedFields.style,explode:yd.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:yd.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{element:"responses",$visitor:th,fixedFields:{default:yd.visitors.document.objects.Responses.fixedFields.default}},Response:{element:"response",$visitor:Qp,fixedFields:{description:yd.visitors.document.objects.Response.fixedFields.description,headers:yd.visitors.document.objects.Response.fixedFields.headers,content:yd.visitors.document.objects.Response.fixedFields.content,links:yd.visitors.document.objects.Response.fixedFields.links}},Callback:{element:"callback",$visitor:Yp},Example:{element:"example",$visitor:_p,fixedFields:{summary:yd.visitors.document.objects.Example.fixedFields.summary,description:yd.visitors.document.objects.Example.fixedFields.description,value:yd.visitors.document.objects.Example.fixedFields.value,externalValue:yd.visitors.document.objects.Example.fixedFields.externalValue}},Link:{element:"link",$visitor:$d,fixedFields:{operationRef:yd.visitors.document.objects.Link.fixedFields.operationRef,operationId:yd.visitors.document.objects.Link.fixedFields.operationId,parameters:yd.visitors.document.objects.Link.fixedFields.parameters,requestBody:yd.visitors.document.objects.Link.fixedFields.requestBody,description:yd.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{element:"header",$visitor:Kd,fixedFields:{description:yd.visitors.document.objects.Header.fixedFields.description,required:yd.visitors.document.objects.Header.fixedFields.required,deprecated:yd.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:yd.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:yd.visitors.document.objects.Header.fixedFields.style,explode:yd.visitors.document.objects.Header.fixedFields.explode,allowReserved:yd.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:yd.visitors.document.objects.Header.fixedFields.example,examples:yd.visitors.document.objects.Header.fixedFields.examples,content:yd.visitors.document.objects.Header.fixedFields.content}},Tag:{element:"tag",$visitor:Vd,fixedFields:{name:yd.visitors.document.objects.Tag.fixedFields.name,description:yd.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{element:"reference",$visitor:Ud,fixedFields:{$ref:yd.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...mh},Schema:{element:"schema",$visitor:Op,fixedFields:{...hh.fixedFields,$defs:Fp,allOf:kp,anyOf:Ap,oneOf:$p,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:Pp,prefixItems:Ip,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Cp,patternProperties:Np,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},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:{$ref:"#/visitors/value"}}},Discriminator:{element:"discriminator",$visitor:Mp,fixedFields:{propertyName:yd.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:yd.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{element:"xml",$visitor:Rp,fixedFields:{name:yd.visitors.document.objects.XML.fixedFields.name,namespace:yd.visitors.document.objects.XML.fixedFields.namespace,prefix:yd.visitors.document.objects.XML.fixedFields.prefix,attribute:yd.visitors.document.objects.XML.fixedFields.attribute,wrapped:yd.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{element:"securityScheme",$visitor:ch,fixedFields:{type:yd.visitors.document.objects.SecurityScheme.fixedFields.type,description:yd.visitors.document.objects.SecurityScheme.fixedFields.description,name:yd.visitors.document.objects.SecurityScheme.fixedFields.name,in:yd.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:yd.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:yd.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:yd.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{element:"oAuthFlows",$visitor:lh,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:{element:"oAuthFlow",$visitor:dh,fixedFields:{authorizationUrl:yd.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:yd.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:yd.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:yd.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{element:"securityRequirement",$visitor:Ld}},extension:{$visitor:yd.visitors.document.extension.$visitor}}}},yh=e=>Ee(e)&&e.hasKey("$ref"),gh=Ee,xh=Ee,vh=e=>xe(e.key)&&Wa("x-",fn(e.key)),bh=e=>{const t=e.reduce((t,s,n)=>{if(je(s)){const e=String(fn(s.key));t.push(e)}else if(Se(e[n-2])){const r=e[n-2],i=String(r.content?.indexOf(s)??-1);t.push(i)}return t},[]);return Un(t)},wh=()=>{const e=new Ra,t={...n,...s,isStringElement:xe,isArrayElement:Se,isObjectElement:Ee};return e.use(Xo),{predicates:t,ancestorLineageToJSONPointer:bh,namespace:e}},Sh=(e,{element:t="openApi3_1",plugins:s=[],specificationObj:n=fh}={})=>{const r=Va(e),i=Ls(n),o=i.elementMap[t];if(!o)throw new Error(`Unknown element type: "${t}"`);const c=new(ht(o,i))({specObj:i});return dr(r,c,{nodeTypeGetter:er}),_a(c.element,s,{toolboxCreator:wh})},Eh=(e,t={})=>Sh(e,{...t,element:"openApi3_1"}),jh=(e,t={})=>Sh(e,{...t,element:"info"}),Oh=(e,t={})=>Sh(e,{...t,element:"contact"}),Fh=(e,t={})=>Sh(e,{...t,element:"license"}),kh=(e,t={})=>Sh(e,{...t,element:"server"}),Ah=(e,t={})=>Sh(e,{...t,element:"serverVariable"}),$h=(e,t={})=>Sh(e,{...t,element:"components"}),Ph=(e,t={})=>Sh(e,{...t,element:"paths"}),Ih=(e,t={})=>Sh(e,{...t,element:"pathItem"}),Ch=(e,t={})=>Sh(e,{...t,element:"operation"}),Nh=(e,t={})=>Sh(e,{...t,element:"externalDocumentation"}),Th=(e,t={})=>Sh(e,{...t,element:"parameter"}),Mh=(e,t={})=>Sh(e,{...t,element:"requestBody"}),Dh=(e,t={})=>Sh(e,{...t,element:"mediaType"}),Rh=(e,t={})=>Sh(e,{...t,element:"encoding"}),qh=(e,t={})=>Sh(e,{...t,element:"responses"}),Lh=(e,t={})=>Sh(e,{...t,element:"response"}),Bh=(e,t={})=>Sh(e,{...t,element:"callback"}),_h=(e,t={})=>Sh(e,{...t,element:"example"}),Jh=(e,t={})=>Sh(e,{...t,element:"link"}),Vh=(e,t={})=>Sh(e,{...t,element:"header"}),Hh=(e,t={})=>Sh(e,{...t,element:"tag"}),Uh=(e,t={})=>Sh(e,{...t,element:"reference"}),zh=(e,t={})=>Sh(e,{...t,element:"schema"}),Gh=(e,t={})=>Sh(e,{...t,element:"discriminator"}),Xh=(e,t={})=>Sh(e,{...t,element:"xml"}),Kh=(e,t={})=>Sh(e,{...t,element:"securityScheme"}),Wh=(e,t={})=>Sh(e,{...t,element:"oAuthFlows"}),Yh=(e,t={})=>Sh(e,{...t,element:"oAuthFlow"}),Zh=(e,t={})=>Sh(e,{...t,element:"securityRequirement"}),Qh=(e,t={})=>Sh(e,{...t,element:"jsonSchemaDialect"}),em=Sh,tm=({storageField:e="x-normalized"}={})=>t=>{const{ancestorLineageToJSONPointer:s,predicates:n}=t;let r;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node,i=void 0===s.servers,o=n.isArrayElement(s.servers),c=o&&0===s.servers.length,a=kh({url:"/"});i||!o?s.servers=new Wo([a]):o&&c&&s.servers.push(a),r=new xa(s,e,"servers")},leave(){r=void 0}},PathItemElement(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(n.isComponentsElement))return;if(!i.some(n.isOpenApi3_1Element))return;const o=s([...i,t]);if(r.includes(o))return;const c=i.find(n.isOpenApi3_1Element),a=void 0===t.servers,l=n.isArrayElement(t.servers),u=l&&0===t.servers.length;if(n.isOpenApi3_1Element(c)){const e=c.servers?.content,s=e??[];a||!l?t.servers=new rc(s):l&&u&&s.forEach(e=>{t.servers.push(e)}),r.append(o)}},OperationElement(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(n.isComponentsElement))return;if(!i.some(n.isOpenApi3_1Element))return;const o=s([...i,t]);if(r.includes(o))return;const c=i.findLast(n.isPathItemElement),a=void 0===t.servers,l=n.isArrayElement(t.servers),u=l&&0===t.servers.length;if(n.isPathItemElement(c)){const e=c.servers?.content,s=e??[];a||!l?t.servers=new yc(s):l&&u&&s.forEach(e=>{t.servers.push(e)}),r.append(o)}}}}};function sm(e,t,s){if(s||(s=new nm),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,r=function(n){var r=s.get(e);if(r)return r;for(var i in s.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?sm(e[i],!0,s):e[i]);return n};switch(P(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var nm=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),n=this.map[s];n||(this.map[s]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],n=0;n<s.length;n+=1){if((i=s[n])[0]===e)return i[1]}else{var r=this.hash(e);if(s=this.map[r])for(n=0;n<s.length;n+=1){var i;if((i=s[n])[0]===e)return i[1]}}},e}(),rm=function(){function e(e,t,s,n){this.valueFn=e,this.valueAcc=t,this.keyFn=s,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=Jt,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(b(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var s=this.keyFn(t);return this.inputs[s]=this.inputs[s]||[s,sm(this.valueAcc,!1)],this.inputs[s][1]=this.valueFn(this.inputs[s][1],t),e},e}();function im(e,t,s){return function(n){return new rm(e,t,s,n)}}const om=g($t("groupBy",is(4,[],Bt([],im,function(e,t,s,n){var r=kt(function(n,r){var i=s(r),o=e(b(i,n)?n[i]:sm(t,!1),r);return o&&o["@@transducer/reduced"]?bi(n):(n[i]=o,n)});return Ot(r,{},n)}))(function(e,t){return e.push(t),e},[]))),cm=e=>e.replace(/\s/g,""),am=e=>e.replace(/\W/gi,"_"),lm=(e,t,s)=>{const n=cm(e);return n.length>0?am(n):((e,t)=>`${am(cm(t.toLowerCase()))}${am(cm(e))}`)(t,s)},um=({storageField:e="x-normalized",operationIdNormalizer:t=lm}={})=>s=>{const{predicates:n,ancestorLineageToJSONPointer:r,namespace:i}=s,o=[],a=[],l=[];let u;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;u=new xa(s,e,"operation-ids")},leave(){const e=om(e=>fn(e.operationId),a);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,s)=>{const n=`${e}${s+1}`;t.operationId=new i.elements.String(n)}))}),l.forEach(e=>{if(void 0===e.operationId)return;const t=String(fn(e.operationId)),s=a.find(e=>fn(e.meta.get("originalOperationId"))===t);void 0!==s&&(e.operationId=nn.safe(s.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),a.length=0,l.length=0,u=void 0}},PathItemElement:{enter(e){const t=e.node,s=jn("path",fn(t.meta.get("path")));o.push(s)},leave(){o.pop()}},OperationElement:{enter(e){const s=e.node,n=e.getAncestorNodes().reverse();if(void 0===s.operationId)return;const l=r([...n,s]);if(u.includes(l))return;const d=String(fn(s.operationId)),p=c(o),h=jn("method",fn(s.meta.get("http-method"))),m=t(d,p,h);d!==m&&(s.operationId=new i.elements.String(m),s.set("__originalOperationId",d),s.meta.set("originalOperationId",d),a.push(s),u.append(l))}},LinkElement:{leave(e){const t=e.node;n.isLinkElement(t)&&void 0!==t.operationId&&l.push(t)}}}}},dm=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t;let r;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;r=new xa(s,e,"parameter-examples")},leave(){r=void 0}},ParameterElement:{leave(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(s.isComponentsElement))return;if(void 0===t.schema||!s.isSchemaElement(t.schema))return;if(void 0===t.schema?.example&&void 0===t.schema?.examples)return;const o=n([...i,t]);if(!r.includes(o)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>nn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),r.append(o)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),r.append(o)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[nn(t.example)]),r.append(o)),void 0!==t.schema.example&&(t.schema.set("example",nn(t.example)),r.append(o)))}}}}}},pm=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t;let r;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;r=new xa(s,e,"header-examples")},leave(){r=void 0}},HeaderElement:{leave(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(s.isComponentsElement))return;if(void 0===t.schema||!s.isSchemaElement(t.schema))return;if(void 0===t.schema?.example&&void 0===t.schema?.examples)return;const o=n([...i,t]);if(!r.includes(o)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>nn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),r.append(o)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),r.append(o)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[nn(t.example)]),r.append(o)),void 0!==t.schema.example&&(t.schema.set("example",nn(t.example)),r.append(o)))}}}}}};return t})());
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.apidomNsOpenApi3_1=t():e.apidomNsOpenApi3_1=t()}(self,()=>(()=>{"use strict";var e={d:(t,s)=>{for(var n in s)e.o(s,n)&&!e.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:s[n]})},o:(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},t={};e.r(t),e.d(t,{AlternatingVisitor:()=>Tl,BaseFixedFieldsVisitor:()=>Wd,BaseMapVisitor:()=>Kd,BaseSchemaVisitor:()=>Yd,BaseSpecificationVisitor:()=>Xd,CallbackElement:()=>H,ComponentsCallbacksElement:()=>$a,ComponentsElement:()=>z,ComponentsExamplesElement:()=>va,ComponentsHeadersElement:()=>Ea,ComponentsLinksElement:()=>ka,ComponentsParametersElement:()=>ga,ComponentsPathItemsElement:()=>Ma,ComponentsRequestBodiesElement:()=>wa,ComponentsResponsesElement:()=>fa,ComponentsSchemasElement:()=>ha,ComponentsSecuritySchemesElement:()=>Oa,ContactElement:()=>X,DiscriminatorElement:()=>K,DiscriminatorMappingElement:()=>Ia,EncodingElement:()=>Q,EncodingHeadersElement:()=>ta,ExampleElement:()=>ee,ExternalDocumentationElement:()=>se,FallbackVisitor:()=>wl,FixedFieldsVisitor:()=>Il,HeaderContentElement:()=>da,HeaderElement:()=>oe,HeaderExamplesElement:()=>la,InfoElement:()=>ae,JsonSchemaDialectElement:()=>de,LicenseElement:()=>he,LinkElement:()=>Fe,LinkParametersElement:()=>ru,MapVisitor:()=>Nl,MediaTypeElement:()=>Ae,MediaTypeEncodingElement:()=>Zc,MediaTypeExamplesElement:()=>Yc,MixedFieldsVisitor:()=>Ll,OAuthFlowElement:()=>Pe,OAuthFlowScopesElement:()=>Na,OAuthFlowsElement:()=>Ce,OpenAPIMediaTypes:()=>f,OpenApi3_1Element:()=>Me,OpenapiElement:()=>Te,OperationCallbacksElement:()=>Lc,OperationElement:()=>Re,OperationParametersElement:()=>Rc,OperationSecurityElement:()=>_c,OperationServersElement:()=>Vc,OperationTagsElement:()=>Mc,ParameterContentElement:()=>Gc,ParameterElement:()=>Be,ParameterExamplesElement:()=>Uc,PathItemElement:()=>Je,PathItemParametersElement:()=>Nc,PathItemServersElement:()=>Ic,PathsElement:()=>He,PatternedFieldsVisitor:()=>Cl,ReferenceElement:()=>Ge,RequestBodyContentElement:()=>Wc,RequestBodyElement:()=>We,ResponseContentElement:()=>ia,ResponseElement:()=>Ye,ResponseHeadersElement:()=>na,ResponseLinksElement:()=>ca,ResponsesElement:()=>Ze,SchemaElement:()=>ac,SecurityElement:()=>Oc,SecurityRequirementElement:()=>uc,SecuritySchemeElement:()=>pc,ServerElement:()=>mc,ServerVariableElement:()=>yc,ServerVariablesElement:()=>$c,ServersElement:()=>Ec,SpecificationExtensionVisitor:()=>Wl,SpecificationVisitor:()=>Sl,TagElement:()=>xc,TagsElement:()=>kc,Visitor:()=>bl,WebhooksElement:()=>Ra,XmlElement:()=>bc,createToolbox:()=>Qh,default:()=>wc,isBooleanJsonSchemaElement:()=>Kp,isCallbackElement:()=>kp,isComponentsElement:()=>Ap,isContactElement:()=>$p,isExampleElement:()=>Pp,isExternalDocumentationElement:()=>Ip,isInfoElement:()=>Np,isJsonSchemaDialectElement:()=>Tp,isLicenseElement:()=>Mp,isLinkElement:()=>Dp,isMediaTypeElement:()=>th,isOpenApi3_1Element:()=>qp,isOpenApiExtension:()=>Pl,isOpenapiElement:()=>Rp,isOperationElement:()=>Lp,isParameterElement:()=>Bp,isPathItemElement:()=>_p,isPathItemElementExternal:()=>Jp,isPathsElement:()=>Vp,isReferenceElement:()=>Hp,isReferenceElementExternal:()=>Up,isReferenceLikeElement:()=>kl,isRequestBodyElement:()=>zp,isResponseElement:()=>Gp,isResponsesElement:()=>Xp,isSchemaElement:()=>Wp,isSecurityRequirementElement:()=>Yp,isSecuritySchemeElement:()=>Qp,isServerElement:()=>Zp,isServerLikeElement:()=>Al,isServerVariableElement:()=>eh,isServersElement:()=>xu,mediaTypes:()=>y,refract:()=>Im,refractCallback:()=>gm,refractComponents:()=>om,refractContact:()=>sm,refractDiscriminator:()=>jm,refractEncoding:()=>mm,refractExample:()=>xm,refractExternalDocumentation:()=>um,refractHeader:()=>bm,refractInfo:()=>tm,refractJsonSchemaDialect:()=>Pm,refractLicense:()=>nm,refractLink:()=>vm,refractMediaType:()=>hm,refractOAuthFlow:()=>Am,refractOAuthFlows:()=>km,refractOpenApi3_1:()=>em,refractOperation:()=>lm,refractParameter:()=>dm,refractPathItem:()=>am,refractPaths:()=>cm,refractReference:()=>Sm,refractRequestBody:()=>pm,refractResponse:()=>ym,refractResponses:()=>fm,refractSchema:()=>Em,refractSecurityRequirement:()=>$m,refractSecurityScheme:()=>Fm,refractServer:()=>rm,refractServerVariable:()=>im,refractTag:()=>wm,refractXml:()=>Om,refractorPluginNormalizeHeaderExamples:()=>Vm,refractorPluginNormalizeOperationIds:()=>_m,refractorPluginNormalizeParameterExamples:()=>Jm,refractorPluginNormalizeParameters:()=>za,refractorPluginNormalizeSecurityRequirements:()=>Ga,refractorPluginNormalizeServers:()=>Cm,refractorPluginReplaceEmptyElement:()=>Ba,specificationObj:()=>zh});var s={};e.r(s),e.d(s,{isBooleanJsonSchemaElement:()=>Kp,isCallbackElement:()=>kp,isComponentsElement:()=>Ap,isContactElement:()=>$p,isExampleElement:()=>Pp,isExternalDocumentationElement:()=>Ip,isHeaderElement:()=>Cp,isInfoElement:()=>Np,isJsonSchemaDialectElement:()=>Tp,isLicenseElement:()=>Mp,isLinkElement:()=>Dp,isMediaTypeElement:()=>th,isOpenApi3_1Element:()=>qp,isOpenapiElement:()=>Rp,isOperationElement:()=>Lp,isParameterElement:()=>Bp,isPathItemElement:()=>_p,isPathItemElementExternal:()=>Jp,isPathsElement:()=>Vp,isReferenceElement:()=>Hp,isReferenceElementExternal:()=>Up,isRequestBodyElement:()=>zp,isResponseElement:()=>Gp,isResponsesElement:()=>Xp,isSchemaElement:()=>Wp,isSecurityRequirementElement:()=>Yp,isSecuritySchemeElement:()=>Qp,isServerElement:()=>Zp,isServerVariableElement:()=>eh});var n={};function r(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function i(e){return function t(s){return 0===arguments.length||r(s)?t:e.apply(this,arguments)}}function o(e,t){return t[e<0?t.length+e:e]}e.r(n),e.d(n,{isOpenApiExtension:()=>Kh,isReferenceLikeElement:()=>Gh,isServerLikeElement:()=>Xh,isTagLikeElement:()=>Wh});const c=i(function(e){return o(-1,e)});class a extends AggregateError{constructor(e,t,s){super(e,t,s),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const l=a;class u extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(l,e)}constructor(e,t){super(e,t),this.name=this.constructor.name,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}}const d=u;const p=class extends d{};const h=class extends p{};const m=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new h("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new h("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new h("latest method in MediaTypes class is not yet implemented.")}};class f extends m{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter(e=>e.includes(t))}findBy(e="3.1.2",t="generic"){const s="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find(e=>e.includes(s))||this.unknownMediaType}latest(e="generic"){return c(this.filterByFormat(e))}}const y=new f("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","application/vnd.oai.openapi;version=3.1.1","application/vnd.oai.openapi+json;version=3.1.1","application/vnd.oai.openapi+yaml;version=3.1.1","application/vnd.oai.openapi;version=3.1.2","application/vnd.oai.openapi+json;version=3.1.2","application/vnd.oai.openapi+yaml;version=3.1.2");function g(e){return function t(s,n){switch(arguments.length){case 0:return t;case 1:return r(s)?t:i(function(t){return e(s,t)});default:return r(s)&&r(n)?t:r(s)?i(function(t){return e(t,n)}):r(n)?i(function(t){return e(s,t)}):e(s,n)}}}function x(e){for(var t,s=[];!(t=e.next()).done;)s.push(t.value);return s}function v(e,t,s){for(var n=0,r=s.length;n<r;){if(e(t,s[n]))return!0;n+=1}return!1}function b(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const w="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var S=Object.prototype.toString;const E=function(){return"[object Arguments]"===S.call(arguments)?function(e){return"[object Arguments]"===S.call(e)}:function(e){return b("callee",e)}}();var j=!{toString:null}.propertyIsEnumerable("toString"),O=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],F=function(){return arguments.propertyIsEnumerable("length")}(),k=function(e,t){for(var s=0;s<e.length;){if(e[s]===t)return!0;s+=1}return!1},A="function"!=typeof Object.keys||F?i(function(e){if(Object(e)!==e)return[];var t,s,n=[],r=F&&E(e);for(t in e)!b(t,e)||r&&"length"===t||(n[n.length]=t);if(j)for(s=O.length-1;s>=0;)b(t=O[s],e)&&!k(n,t)&&(n[n.length]=t),s-=1;return n}):i(function(e){return Object(e)!==e?[]:Object.keys(e)});const $=A;const P=i(function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function I(e,t,s,n){var r=x(e);function i(e,t){return C(e,t,s.slice(),n.slice())}return!v(function(e,t){return!v(i,t,e)},x(t),r)}function C(e,t,s,n){if(w(e,t))return!0;var r=P(e);if(r!==P(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(r){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!w(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!w(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 i=s.length-1;i>=0;){if(s[i]===e)return n[i]===t;i-=1}switch(r){case"Map":return e.size===t.size&&I(e.entries(),t.entries(),s.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&I(e.values(),t.values(),s.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 o=$(e);if(o.length!==$(t).length)return!1;var c=s.concat([e]),a=n.concat([t]);for(i=o.length-1;i>=0;){var l=o[i];if(!b(l,t)||!C(t[l],e[l],c,a))return!1;i-=1}return!0}const N=g(function(e,t){return C(e,t,[],[])});const T=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class M{elements;constructor(e){this.elements=e??[]}toValue(){return this.elements.map(e=>({key:e.key?.toValue(),value:e.value?.toValue()}))}map(e,t){return this.elements.map(s=>{const n=s.value,r=s.key;if(void 0===n||void 0===r)throw new Error("MemberElement must have both key and value");return void 0!==t?e.call(t,n,r,s):e(n,r,s)})}filter(e,t){const s=this.elements.filter(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))});return new M(s)}reject(e,t){const s=[];for(const n of this.elements){const r=n.value,i=n.key;void 0!==r&&void 0!==i&&(e.call(t,r,i,n)||s.push(n))}return new M(s)}forEach(e,t){this.elements.forEach((s,n)=>{const r=s.value,i=s.key;void 0!==r&&void 0!==i&&(void 0!==t?e.call(t,r,i,s,n):e(r,i,s,n))})}find(e,t){return this.elements.find(s=>{const n=s.value,r=s.key;return void 0!==n&&void 0!==r&&(void 0!==t?e.call(t,n,r,s):e(n,r,s))})}keys(){return this.elements.map(e=>e.key?.toValue()).filter(e=>void 0!==e)}values(){return this.elements.map(e=>e.value?.toValue()).filter(e=>void 0!==e)}get length(){return this.elements.length}get isEmpty(){return 0===this.length}get first(){return this.elements[0]}get(e){return this.elements[e]}push(e){return this.elements.push(e),this}includesKey(e){return this.elements.some(t=>t.key?.equals(e))}[Symbol.iterator](){return this.elements[Symbol.iterator]()}}const D=M;class R{parent;startLine;startCharacter;startOffset;endLine;endCharacter;endOffset;_storedElement="element";_content;_meta;_attributes;constructor(e,t,s){void 0!==t&&(this.meta=t),void 0!==s&&(this.attributes=s),void 0!==e&&(this.content=e)}get element(){return this._storedElement}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof R)this._content=e;else if(null!=e&&"string"!=typeof e&&"number"!=typeof e&&"boolean"!=typeof e&&"bigint"!=typeof e&&"symbol"!=typeof e)if(e instanceof T)this._content=e;else if(e instanceof D)this._content=e.elements;else if(Array.isArray(e))this._content=e.map(e=>this.refract(e));else{if("object"!=typeof e)throw new Error("Cannot set content to value of type "+typeof e);this._content=Object.entries(e).map(([e,t])=>new this.MemberElement(e,t))}else this._content=e}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 R?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 R?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 links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof T){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof R?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&(this._meta.parent=this,this._meta.freeze()),this._attributes&&(this._attributes.parent=this,this._attributes.freeze());for(const e of this.children)e.parent=this,e.freeze();Array.isArray(this._content)&&Object.freeze(this._content),Object.freeze(this)}}toValue(){const{_content:e}=this;return e instanceof R||e instanceof T?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof R?e.toValue():e;return N(this.toValue(),t)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id.toValue();if(""===t)throw new Error("Cannot create reference to an element without an ID");const s=new this.RefElement(t);return"string"==typeof e&&(s.path=this.refract(e)),s}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)}hasMetaProperty(e){return!this.isMetaEmpty&&this.meta.hasKey(e)}get isMetaEmpty(){return void 0===this._meta||this.meta.isEmpty}getAttributesProperty(e,t){if(!this.hasAttributesProperty(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.attributes.set(e,t)}return this.attributes.get(e)}setAttributesProperty(e,t){this.attributes.set(e,t)}hasAttributesProperty(e){return!this.isAttributesEmpty&&this.attributes.hasKey(e)}get isAttributesEmpty(){return void 0===this._attributes||this.attributes.isEmpty}}const q=R;class L extends q{constructor(e,t,s){super(e||[],t,s)}get length(){return this._content.length}get isEmpty(){return 0===this.length}get first(){return this._content[0]}get second(){return this._content[1]}get last(){return this._content.at(-1)}push(...e){for(const t of e)this._content.push(this.refract(t));return this}shift(){return this._content.shift()}unshift(e){this._content.unshift(this.refract(e))}includes(e){return this._content.some(t=>t.equals(e))}findElements(e,t){const s=t||{},n=!!s.recursive,r=void 0===s.results?[]:s.results;for(let t=0;t<this._content.length;t+=1){const s=this._content[t],i=s;n&&"function"==typeof i.findElements&&i.findElements(e,{results:r,recursive:n}),e(s,t,void 0)&&r.push(s)}return r}find(e){const t=this.findElements(e,{recursive:!0});return new this.ArrayElement(t)}findByElement(e){return this.find(t=>t.element===e)}findByClass(e){return this.find(t=>{const s=t.classes;return"function"==typeof s.includes&&s.includes(e)})}getById(e){return this.find(t=>t.id.toValue()===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const B=L;const _=class extends q{constructor(e,t,s,n){super(new T,s,n),this.element="member",void 0!==e&&(this.key=e),arguments.length>=2&&(this.value=t)}primitive(){return"member"}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=void 0===e?void 0:this.refract(e)}};const J=class extends B{constructor(e,t,s){super(e||[],t,s),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}getValue(e){const t=this.get(e);if(t)return t.toValue()}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(s=>s.key.toValue()!==e||(t=s,!1)),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if("string"==typeof e){const s=this.getMember(e);s?s.value=t:this._content.push(new _(e,t))}else if("object"==typeof e&&!Array.isArray(e))for(const t of Object.keys(e))this.set(t,e[t]);return 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(s=>e.call(t,s.value,s.key,s))}compactMap(e,t){const s=[];return this.forEach((n,r,i)=>{const o=e.call(t,n,r,i);o&&s.push(o)}),s}filter(e,t){return new D(this._content).filter(e,t)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n.value,n.key,n)||s.push(n);return new D(s)}forEach(e,t){this._content.forEach(s=>e.call(t,s.value,s.key,s))}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this._content[0]?.value);for(let t=s;t<this._content.length;t+=1){const s=this._content[t],r=e(n,s.value,s.key,s,this);n=void 0===r?r:this.refract(r)}return n}empty(){return new this.constructor([])}};const V=class extends J{constructor(e,t,s){super(e,t,s),this.element="callback"}};const H=class extends V{};const U=class extends J{constructor(e,t,s){super(e,t,s),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 linksField(){return this.get("links")}set linksField(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}};const z=class extends U{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const G=class extends J{constructor(e,t,s){super(e,t,s),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 X=class extends G{};const W=class extends J{constructor(e,t,s){super(e,t,s),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 K=class extends W{};const Y=class extends J{constructor(e,t,s){super(e,t,s),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 Q=class extends Y{};const Z=class extends J{constructor(e,t,s){super(e,t,s),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 ee=class extends Z{};const te=class extends J{constructor(e,t,s){super(e,t,s),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 se=class extends te{};const ne=class extends q{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class re extends J{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new ne(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ne(!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 contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(re.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const ie=re;const oe=class extends ie{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const ce=class extends J{constructor(e,t,s){super(e,t,s),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 ae=class extends ce{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)}};const le=class extends q{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};class ue extends le{static default=new ue("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const de=ue;const pe=class extends J{constructor(e,t,s){super(e,t,s),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 he=class extends pe{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const me=class extends q{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const fe=class extends q{constructor(e,t,s){super(e??null,t,s),this.element="null"}primitive(){return"null"}set(e){throw new Error("Cannot set the value of null")}};const ye=class extends B{constructor(e,t,s){super(e||[],t,s),this.element="array"}primitive(){return"array"}get(e){return this._content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}set(e,t){return"number"==typeof e&&void 0!==t?this._content[e]=this.refract(t):this.content=e,this}remove(e){return this._content.splice(e,1)[0]??null}map(e,t){return this._content.map(e,t)}flatMap(e,t){return this._content.flatMap(e,t)}compactMap(e,t){const s=[];for(const n of this._content){const r=e.call(t,n);r&&s.push(r)}return s}filter(e,t){const s=this._content.filter(e,t);return new this.constructor(s)}reject(e,t){const s=[];for(const n of this._content)e.call(t,n)||s.push(n);return new this.constructor(s)}reduce(e,t){let s,n;void 0!==t?(s=0,n=this.refract(t)):(s=1,n=this.first);for(let t=s;t<this.length;t+=1){const s=e(n,this._content[t],t,this);n=void 0===s?s:this.refract(s)}return n}forEach(e,t){this._content.forEach((s,n)=>{e.call(t,s,n)})}empty(){return new this.constructor([])}},ge=e=>e instanceof q,xe=e=>e instanceof le,ve=e=>e instanceof me,be=e=>e instanceof fe,we=e=>e instanceof ne,Se=e=>e instanceof ye,Ee=e=>e instanceof J,je=e=>e instanceof _;const Oe=class extends J{constructor(e,t,s){super(e,t,s),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(){return xe(this.operationRef)?this.operationRef?.meta.get("operation"):xe(this.operationId)?this.operationId?.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 Fe=class extends Oe{};const ke=class extends J{constructor(e,t,s){super(e,t,s),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 Ae=class extends ke{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const $e=class extends J{constructor(e,t,s){super(e,t,s),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 Pe=class extends $e{};const Ie=class extends J{constructor(e,t,s){super(e,t,s),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 Ce=class extends Ie{};const Ne=class extends le{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const Te=class extends Ne{};const Me=class extends J{constructor(e,t,s){super(e,t,s),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 De=class extends J{constructor(e,t,s){super(e,t,s),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 ne(!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 Re=class extends De{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class qe extends J{constructor(e,t,s){super(e,t,s),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 ne(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new ne(!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 contentField(){return this.get("content")}set contentField(e){this.set("content",e)}}Object.defineProperty(qe.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Le=qe;const Be=class extends Le{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const _e=class extends J{constructor(e,t,s){super(e,t,s),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 getField(){return this.get("get")}set getField(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 deleteField(){return this.get("delete")}set deleteField(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 Je=class extends _e{get getField(){return this.get("get")}set getField(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 deleteField(){return this.get("delete")}set deleteField(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 Ve=class extends J{constructor(e,t,s){super(e,t,s),this.element="paths"}};const He=class extends Ve{};const Ue=class extends J{constructor(e,t,s){super(e,t,s),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};class ze extends Ue{}Object.defineProperty(ze.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(ze.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Ge=ze;const Xe=class extends J{constructor(e,t,s){super(e,t,s),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new ne(!1)}set required(e){this.set("required",e)}};const We=class extends Xe{};const Ke=class extends J{constructor(e,t,s){super(e,t,s),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 contentField(){return this.get("content")}set contentField(e){this.set("content",e)}get linksField(){return this.get("links")}set linksField(e){this.set("links",e)}};const Ye=class extends Ke{};const Qe=class extends J{constructor(e,t,s){super(e,t,s),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}};const Ze=class extends Qe{};function et(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}var tt=g(function(e,t){return et(function(s,n){return s[n]=e(t[n],n,t),s},{},$(t))});const st=tt;const nt=i(function(e){return null==e});var rt=g(function(e,t){if(0===e.length||nt(t))return!1;for(var s=t,n=0;n<e.length;){if(nt(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const it=rt;var ot=g(function(e,t){return it([e],t)});const ct=ot;function at(e){return function t(s,n,o){switch(arguments.length){case 0:return t;case 1:return r(s)?t:g(function(t,n){return e(s,t,n)});case 2:return r(s)&&r(n)?t:r(s)?g(function(t,s){return e(t,n,s)}):r(n)?g(function(t,n){return e(s,t,n)}):i(function(t){return e(s,n,t)});default:return r(s)&&r(n)&&r(o)?t:r(s)&&r(n)?g(function(t,s){return e(t,s,o)}):r(s)&&r(o)?g(function(t,s){return e(t,n,s)}):r(n)&&r(o)?g(function(t,n){return e(s,t,n)}):r(s)?i(function(t){return e(t,n,o)}):r(n)?i(function(t){return e(s,t,o)}):r(o)?i(function(t){return e(s,n,t)}):e(s,n,o)}}}const lt=Number.isInteger||function(e){return(e|0)===e};const ut=function(e,t){if(null!=t)return lt(e)?o(e,t):t[e]};const dt=g(ut);const pt=at(function(e,t,s){return e(dt(t,s))});function ht(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=lt(r)?o(r,s):s[r]}return s}const mt=g(ht);function ft(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,s){return t.apply(this,arguments)};case 3:return function(e,s,n){return t.apply(this,arguments)};case 4:return function(e,s,n,r){return t.apply(this,arguments)};case 5:return function(e,s,n,r,i){return t.apply(this,arguments)};case 6:return function(e,s,n,r,i,o){return t.apply(this,arguments)};case 7:return function(e,s,n,r,i,o,c){return t.apply(this,arguments)};case 8:return function(e,s,n,r,i,o,c,a){return t.apply(this,arguments)};case 9:return function(e,s,n,r,i,o,c,a,l){return t.apply(this,arguments)};case 10:return function(e,s,n,r,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 yt(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const gt=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function xt(e){return"[object String]"===Object.prototype.toString.call(e)}const vt=i(function(e){return!!gt(e)||!!e&&("object"==typeof e&&(!xt(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var bt="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function wt(e,t,s){return function(n,r,i){if(vt(i))return e(n,r,i);if(null==i)return r;if("function"==typeof i["fantasy-land/reduce"])return t(n,r,i,"fantasy-land/reduce");if(null!=i[bt])return s(n,r,i[bt]());if("function"==typeof i.next)return s(n,r,i);if("function"==typeof i.reduce)return t(n,r,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function St(e,t,s){for(var n=0,r=s.length;n<r;){if((t=e["@@transducer/step"](t,s[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}var Et=g(function(e,t){return ft(e.length,function(){return e.apply(t,arguments)})});const jt=Et;function Ot(e,t,s){for(var n=s.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=s.next()}return e["@@transducer/result"](t)}function Ft(e,t,s,n){return e["@@transducer/result"](s[n](jt(e["@@transducer/step"],e),t))}const kt=wt(St,Ft,Ot);var At=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function $t(e){return new At(e)}const Pt=at(function(e,t,s){return kt("function"==typeof e?$t(e):e,t,s)});function It(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return gt(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const Ct=at(It("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const Nt=i(It("tail",Ct(1,1/0)));function Tt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return ft(arguments[0].length,Pt(yt,arguments[0],Nt(arguments)))}var Mt=function(e,t){switch(arguments.length){case 0:return Mt;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const Dt=Mt;function Rt(e,t){return function(e,t,s){var n,r;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;s<e.length;){if(0===(r=e[s])&&1/r===n)return s;s+=1}return-1}if(t!=t){for(;s<e.length;){if("number"==typeof(r=e[s])&&r!=r)return s;s+=1}return-1}return e.indexOf(t,s);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,s);case"object":if(null===t)return e.indexOf(t,s)}for(;s<e.length;){if(N(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function qt(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function Lt(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 Bt=function(e){return(e<10?"0":"")+e};const _t="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Bt(e.getUTCMonth()+1)+"-"+Bt(e.getUTCDate())+"T"+Bt(e.getUTCHours())+":"+Bt(e.getUTCMinutes())+":"+Bt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Jt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!gt(n)){for(var r=0;r<e.length;){if("function"==typeof n[e[r]])return n[e[r]].apply(n,Array.prototype.slice.call(arguments,0,-1));r+=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 s.apply(this,arguments)}}function Vt(e){return"[object Object]"===Object.prototype.toString.call(e)}const Ht=function(){return this.xf["@@transducer/init"]()},Ut=function(e){return this.xf["@@transducer/result"](e)};var zt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ht,e.prototype["@@transducer/result"]=Ut,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Gt(e){return function(t){return new zt(e,t)}}var Xt=g(Jt(["fantasy-land/filter","filter"],Gt,function(e,t){return Vt(t)?et(function(s,n){return e(t[n])&&(s[n]=t[n]),s},{},$(t)):(s=t,"[object Map]"===Object.prototype.toString.call(s)?function(e,t){for(var s=new Map,n=t.entries(),r=n.next();!r.done;)e(r.value[1])&&s.set(r.value[0],r.value[1]),r=n.next();return s}(e,t):function(e,t){for(var s=0,n=t.length,r=[];s<n;)e(t[s])&&(r[r.length]=t[s]),s+=1;return r}(e,t));var s}));const Wt=Xt;const Kt=g(function(e,t){return Wt((s=e,function(){return!s.apply(this,arguments)}),t);var s});function Yt(e,t){var s=function(s){var n=t.concat([e]);return Rt(s,n)?"<Circular>":Yt(s,n)},n=function(e,t){return qt(function(t){return Lt(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+qt(s,e).join(", ")+"))";case"[object Array]":return"["+qt(s,e).concat(n(e,Kt(function(e){return/^\d+$/.test(e)},$(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+s(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?s(NaN):Lt(_t(e)))+")";case"[object Map]":return"new Map("+s(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"new Number("+s(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+s(Array.from(e).sort())+")";case"[object String]":return"object"==typeof e?"new String("+s(e.valueOf())+")":Lt(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var r=e.toString();if("[object Object]"!==r)return r}return"{"+n(e,$(e)).join(", ")+"}"}}const Qt=i(function(e){return Yt(e,[])});const Zt=at(function(e,t,s){return e(ht(t,s))});function es(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ts=g(function(e,t){return e&&t});function ss(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function ns(e,t,s,n){return s[n](e,t)}const rs=wt(et,ns,ss);var is=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ht,e.prototype["@@transducer/result"]=Ut,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const os=function(e){return function(t){return new is(e,t)}};function cs(e,t,s){return function(){for(var n=[],i=0,o=e,c=0,a=!1;c<t.length||i<arguments.length;){var l;c<t.length&&(!r(t[c])||i>=arguments.length)?l=t[c]:(l=arguments[i],i+=1),n[c]=l,r(l)?a=!0:o-=1,c+=1}return!a&&o<=0?s.apply(this,n):ft(Math.max(0,o),cs(e,n,s))}}var as=g(function(e,t){return 1===e?i(t):ft(e,cs(e,[],t))});const ls=as;var us=g(Jt(["fantasy-land/map","map"],os,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return ls(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return et(function(s,n){return s[n]=e(t[n]),s},{},$(t));default:return qt(e,t)}}));const ds=us;const ps=g(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(s){return e(s)(t(s))}:rs(function(e,s){return function(e,t){var s;t=t||[];var n=(e=e||[]).length,r=t.length,i=[];for(s=0;s<n;)i[i.length]=e[s],s+=1;for(s=0;s<r;)i[i.length]=t[s],s+=1;return i}(e,ds(s,t))},[],e)});var hs=g(function(e,t){var s=ls(e,t);return ls(e,function(){return et(ps,ds(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const ms=hs;var fs=i(function(e){return ms(e.length,e)});const ys=fs;const gs=g(function(e,t){return es(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ys(ts)(e,t)});const xs=N(null);const vs=ys(i(function(e){return!e}));const bs=vs(xs);function ws(e){return ws="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},ws(e)}const Ss=function(e){return"object"===ws(e)};const Es=ls(1,gs(bs,Ss));const js=g(function(e,t){if(e===t)return t;function s(e,t){if(e>t!=t>e)return t>e?t:e}var n=s(e,t);if(void 0!==n)return n;var r=s(typeof e,typeof t);if(void 0!==r)return r===typeof e?e:t;var i=Qt(e),o=s(i,Qt(t));return void 0!==o&&o===i?e:t});const Os=g(function(e,t){return ds(dt(e),t)});const Fs=i(function(e){return ls(Pt(js,0,Os("length",e)),function(){for(var t=0,s=e.length;t<s;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});const ks=ls(1,Tt(P,Dt("GeneratorFunction")));const As=ls(1,Tt(P,Dt("AsyncFunction")));const $s=Fs([Tt(P,Dt("Function")),ks,As]);var Ps=Tt(P,Dt("Object")),Is=Tt(Qt,N(Qt(Object))),Cs=Zt(gs($s,Is),["constructor"]);const Ns=ls(1,function(e){if(!Es(e)||!Ps(e))return!1;var t=Object.getPrototypeOf(e);return!!xs(t)||Cs(t)});const Ts=ls(1,Tt(P,Dt("String")));var Ms=i(function(e){return ls(e.length,e)});const Ds=Ms;const Rs=g(function(e,t){return ls(e+1,function(){var s=arguments[e];if(null!=s&&es(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(Qt(s)+' does not have a method named "'+t+'"')})});const qs=Rs(1,"split");var Ls=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Ht,e.prototype["@@transducer/result"]=Ut,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 Bs(e){return function(t){return new Ls(e,t)}}const _s=g(Jt(["dropWhile"],Bs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return Ct(s,1/0,t)}));const Js=Rs(1,"join");var Vs=i(function(e){return ls(e.length,function(t,s){var n=Array.prototype.slice.call(arguments,0);return n[0]=s,n[1]=t,e.apply(this,n)})});const Hs=Vs(g(Rt));const Us=Ds(function(e,t){return Tt(qs(""),_s(Hs(e)),Js(""))(t)}),zs=new WeakMap,Gs=e=>{if(zs.has(e))return zs.get(e);const t={},s=(e,n,r)=>("string"==typeof e.element&&(t[e.element]=e.$visitor?[...r,"$visitor"]:r),st((e,t)=>{const i=[...r,t];if(Ns(e)&&ct("$ref",e)&&pt(Ts,"$ref",e)){const t=mt(["$ref"],e),s=Us("#/",t);return mt(s.split("/"),n)}return Ns(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,zs.set(e,n),n};const Xs=class extends J{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft4"}get idField(){return this.get("id")}set idField(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",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 itemsField(){return this.get("items")}set itemsField(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 linksField(){return this.get("links")}set linksField(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 Ws=class extends J{constructor(e,t,s){super(e,t,s),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}};const Ks=class extends J{constructor(e,t,s){super(e,t,s),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 Ys=class extends J{constructor(e,t,s){super(e,t,s),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)}},Qs=e=>"number"==typeof e.startLine&&"number"==typeof e.startCharacter&&"number"==typeof e.startOffset&&"number"==typeof e.endLine&&"number"==typeof e.endCharacter&&"number"==typeof e.endOffset,Zs=(e,t)=>0===t.length||!!ge(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class en extends le{constructor(e,t,s){super(e,t,s),this.element="sourceMap"}static transfer(e,t){t.startLine=e.startLine,t.startCharacter=e.startCharacter,t.startOffset=e.startOffset,t.endLine=e.endLine,t.endCharacter=e.endCharacter,t.endOffset=e.endOffset}static from(e){const{startLine:t,startCharacter:s,startOffset:n,endLine:r,endCharacter:i,endOffset:o}=e;if("number"!=typeof t||"number"!=typeof s||"number"!=typeof n||"number"!=typeof r||"number"!=typeof i||"number"!=typeof o)return;const c="sm1:"+[t,s,n,r,i,o].map(sn).join("");const a=new en(c);return a.startLine=t,a.startCharacter=s,a.startOffset=n,a.endLine=r,a.endCharacter=i,a.endOffset=o,a}applyTo(e){this.content&&([e.startLine,e.startCharacter,e.startOffset,e.endLine,e.endCharacter,e.endOffset]=function(e){const t=e.startsWith("sm1:")?e.slice(4):e,s=[];let n=0;for(let e=0;e<6;e++){const e=nn(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const tn="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function sn(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=tn[e]}while(0!==t);return s}function nn(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=tn.indexOf(t);if(-1===i)throw new Error(`Invalid Base64 VLQ char: ${t}`);if(s|=(31&i)<<n,n+=5,!!!(32&i))break}return{value:s>>>0,next:r}}const rn=en;const on=class extends d{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}};const cn=class extends on{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const an=class extends cn{};const ln=class extends cn{},un=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=mn(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>un(e,n)):ge(i)?r.content=un(i,n):r.content=i instanceof T?dn(i,n):i,r},dn=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const{key:r,value:i}=e,o=void 0!==r?un(r,n):void 0,c=void 0!==i?un(i,n):void 0,a=new T(o,c);return s.set(e,a),a},pn=(e,t={})=>{if(e instanceof T)return dn(e,t);if(e instanceof D)return((e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=[...e].map(e=>un(e,n)),i=new D(r);return s.set(e,i),i})(e,t);if(ge(e))return un(e,t);throw new an("Value provided to cloneDeep function couldn't be cloned",{value:e})};pn.safe=e=>{try{return pn(e)}catch{return e}};const hn=e=>{const{key:t,value:s}=e;return new T(t,s)},mn=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=pn(e.meta)),e.isAttributesEmpty||(t.attributes=pn(e.attributes)),Qs(e)&&rn.transfer(e,t);const{content:s}=e;return ge(s)?t.content=mn(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof T?hn(s):s,t},fn=e=>{if(e instanceof T)return hn(e);if(e instanceof D)return(e=>{const t=[...e];return new D(t)})(e);if(ge(e))return mn(e);throw new ln("Value provided to cloneShallow function couldn't be cloned",{value:e})};fn.safe=e=>{try{return fn(e)}catch{return e}};const yn=class extends q{constructor(e,t,s){super(e||[],t,s),this.element="link"}get relation(){if(this.hasAttributesProperty("relation"))return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){if(this.hasAttributesProperty("href"))return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}};const gn=class extends q{constructor(e,t,s){super(e||[],t,s),this.element="ref",this.path||(this.path="element")}get path(){if(this.hasAttributesProperty("path"))return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}};const xn=class extends le{constructor(e,t,s){super(e,t,s),this.element="annotation"}get code(){if(this.hasAttributesProperty("code"))return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}};const vn=class extends le{constructor(e,t,s){super(e,t,s),this.element="comment"}};const bn=class extends ye{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>Zs(e,["api"])).first}get results(){return this.filter(e=>Zs(e,["result"]))}get result(){return this.results.first}get annotations(){return this.filter(e=>"annotation"===e.element)}get warnings(){return this.filter(e=>"annotation"===e.element&&Zs(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&Zs(e,["error"]))}get isEmpty(){return 0===this.reject(e=>"annotation"===e.element).length}replaceResult(e){const{result:t}=this;if(void 0===t)return!1;const s=this._content,n=s.findIndex(e=>e===t);return-1!==n&&(s[n]=e,!0)}},wn=e=>e instanceof yn,Sn=e=>e instanceof gn,En=e=>{if(!ge(e))return e;if(xe(e)||ve(e)||we(e)||be(e))return e.toValue();const t=new WeakMap,s=e=>{if(!ge(e))return e;if(Ee(e)){if(t.has(e))return t.get(e);const n={};return t.set(e,n),e.forEach((e,t)=>{const r=s(t),i=s(e);"string"==typeof r&&(n[r]=i)}),n}if(Se(e)){if(t.has(e))return t.get(e);const n=[];return t.set(e,n),e.forEach(e=>n.push(s(e))),n}return Sn(e)?String(e.toValue()):wn(e)?xe(e.href)?e.href.toValue():"":e.toValue()};return s(e)},jn=e=>{const t=e.isMetaEmpty?void 0:pn(e.meta),s=e.isAttributesEmpty?void 0:pn(e.attributes);return new e.constructor(void 0,t,s)},On=(e,t)=>t.clone&&t.isMergeableElement(e)?kn(jn(e),e,t):e,Fn={clone:!0,isMergeableElement:e=>Ee(e)||Se(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>On(e,s))),objectElementMerge:(e,t,s)=>{const n=Ee(e)?jn(e):jn(t);return Ee(e)&&e.forEach((e,t,r)=>{const i=fn(r);i.value=On(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=En(r);let c;if(Ee(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=fn(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return kn;const s=t.customMerge(e,t);return"function"==typeof s?s:kn})(r,s)(n,t,s)}else c=fn(i),c.value=On(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},kn=(e,t,s)=>{const n={...Fn,...s};n.isMergeableElement=n.isMergeableElement??Fn.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??Fn.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??Fn.objectElementMerge;const r=Se(t);if(!(r===Se(e)))return On(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>pn(e):e.customMetaMerge)(n)(e.meta,t.meta),i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>pn(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};kn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new J:e.reduce((e,s)=>kn(e,s,t),jn(e[0]))};const An=kn;const $n=class{element;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new J:t.meta,n=e.isMetaEmpty?new J:e.meta;t.meta=An(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new J:t.attributes,n=e.isAttributesEmpty?new J:e.attributes;t.attributes=An(s,n)}rn.transfer(e,t)}};const Pn=class extends $n{enter(e){this.element=pn(e.node),e.stop()}};const In=i(function(e){return function(){return e}});const Cn=g(function(e,t){return null==t||t!=t?e:t});const Nn=In(void 0);const Tn=N(Nn());const Mn=i(function(e){return ls(Pt(js,0,Os("length",e)),function(){for(var t=0,s=e.length;t<s;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})});var Dn=i(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():e==Set||e instanceof Set?new Set:e==Map||e instanceof Map?new Map:gt(e)?[]:xt(e)?"":Vt(e)?{}:E(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 Rn=Dn;const qn=i(function(e){return null!=e&&N(e,Rn(e))});const Ln=i(function(e){return!qn(e)});const Bn=g(function(e,t){return e||t});const _n=ls(1,gs(bs,g(function(e,t){return es(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ys(Bn)(e,t)})(Ss,$s)));var Jn=vs(_n);const Vn=Mn([Ts,Jn,Ln]);const Hn=g(function(e,t){for(var s={},n=0;n<e.length;)e[n]in t&&(s[e[n]]=t[e[n]]),n+=1;return s}),Un=function(){const e=Gn,t=zn,s=this,n="parser.js: Parser(): ";s.ast=void 0,s.stats=void 0,s.trace=void 0,s.callbacks=[];let r,i,o,c,a,l,u,d=0,p=0,h=0,m=0,f=0,y=new function(){this.state=e.ACTIVE,this.phraseLength=0,this.refresh=()=>{this.state=e.ACTIVE,this.phraseLength=0}};s.parse=(g,x,b,w)=>{const S=`${n}parse(): `;d=0,p=0,h=0,m=0,f=0,r=void 0,i=void 0,o=void 0,c=void 0,y.refresh(),a=void 0,l=void 0,u=void 0,c=t.stringToChars(b),r=g.rules,i=g.udts;const E=x.toLowerCase();let j;for(const e in r)if(r.hasOwnProperty(e)&&E===r[e].lower){j=r[e].index;break}if(void 0===j)throw new Error(`${S}start rule name '${startRule}' not recognized`);(()=>{const e=`${n}initializeCallbacks(): `;let t,o;for(a=[],l=[],t=0;t<r.length;t+=1)a[t]=void 0;for(t=0;t<i.length;t+=1)l[t]=void 0;const c=[];for(t=0;t<r.length;t+=1)c.push(r[t].lower);for(t=0;t<i.length;t+=1)c.push(i[t].lower);for(const n in s.callbacks)if(s.callbacks.hasOwnProperty(n)){if(t=c.indexOf(n.toLowerCase()),t<0)throw new Error(`${e}syntax callback '${n}' not a rule or udt name`);if(o=s.callbacks[n]?s.callbacks[n]:void 0,"function"!=typeof o&&void 0!==o)throw new Error(`${e}syntax callback[${n}] must be function reference or falsy)`);t<r.length?a[t]=o:l[t-r.length]=o}})(),s.trace&&s.trace.init(r,i,c),s.stats&&s.stats.init(r,i),s.ast&&s.ast.init(r,i,c),u=w,o=[{type:e.RNM,index:j}],v(0,0),o=void 0;let O=!1;switch(y.state){case e.ACTIVE:throw new Error(`${S}final state should never be 'ACTIVE'`);case e.NOMATCH:O=!1;break;case e.EMPTY:case e.MATCH:O=y.phraseLength===c.length;break;default:throw new Error("unrecognized state")}return{success:O,state:y.state,stateName:e.idName(y.state),length:c.length,matched:y.phraseLength,maxMatched:f,maxTreeDepth:h,nodeHits:m}};const g=(t,s,r,i)=>{if(s.phraseLength>r){let e=`${n}opRNM(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:if(!i)throw new Error(`${n}opRNM(${t.name}): callback function return error. ACTIVE state not allowed.`);break;case e.EMPTY:s.phraseLength=0;break;case e.MATCH:0===s.phraseLength&&(s.state=e.EMPTY);break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opRNM(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}},x=(t,a)=>{let p,h,m;const f=o[t],g=i[f.index];y.UdtIndex=g.index,d||(m=s.ast&&s.ast.udtDefined(f.index),m&&(h=r.length+f.index,p=s.ast.getLength(),s.ast.down(h,g.name)));const x=c.length-a;l[f.index](y,c,a,u),((t,s,r)=>{if(s.phraseLength>r){let e=`${n}opUDT(${t.name}): callback function error: `;throw e+=`sysData.phraseLength: ${s.phraseLength}`,e+=` must be <= remaining chars: ${r}`,new Error(e)}switch(s.state){case e.ACTIVE:throw new Error(`${n}opUDT(${t.name}) ACTIVE state return not allowed.`);case e.EMPTY:if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.phraseLength=0;break;case e.MATCH:if(0===s.phraseLength){if(!t.empty)throw new Error(`${n}opUDT(${t.name}) may not return EMPTY.`);s.state=e.EMPTY}break;case e.NOMATCH:s.phraseLength=0;break;default:throw new Error(`${n}opUDT(${t.name}): callback function return error. Unrecognized return state: ${s.state}`)}})(g,y,x),d||m&&(y.state===e.NOMATCH?s.ast.setLength(p):s.ast.up(h,g.name,a,y.phraseLength))},v=(t,i)=>{const l=`${n}opExecute(): `,b=o[t];switch(m+=1,p>h&&(h=p),p+=1,y.refresh(),s.trace&&s.trace.down(b,i),b.type){case e.ALT:((t,s)=>{const n=o[t];for(let t=0;t<n.children.length&&(v(n.children[t],s),y.state===e.NOMATCH);t+=1);})(t,i);break;case e.CAT:((t,n)=>{let r,i,c,a;const l=o[t];s.ast&&(i=s.ast.getLength()),r=!0,c=n,a=0;for(let t=0;t<l.children.length;t+=1){if(v(l.children[t],c),y.state===e.NOMATCH){r=!1;break}c+=y.phraseLength,a+=y.phraseLength}r?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(i))})(t,i);break;case e.REP:((t,n)=>{let r,i,a,l;const u=o[t];if(0===u.max)return y.state=e.EMPTY,void(y.phraseLength=0);for(i=n,a=0,l=0,s.ast&&(r=s.ast.getLength());!(i>=c.length)&&(v(t+1,i),y.state!==e.NOMATCH)&&y.state!==e.EMPTY&&(l+=1,a+=y.phraseLength,i+=y.phraseLength,l!==u.max););y.state===e.EMPTY||l>=u.min?(y.state=0===a?e.EMPTY:e.MATCH,y.phraseLength=a):(y.state=e.NOMATCH,y.phraseLength=0,s.ast&&s.ast.setLength(r))})(t,i);break;case e.RNM:((t,n)=>{let i,l,p;const h=o[t],m=r[h.index],f=a[m.index];if(d||(l=s.ast&&s.ast.ruleDefined(h.index),l&&(i=s.ast.getLength(),s.ast.down(h.index,r[h.index].name))),f){const t=c.length-n;f(y,c,n,u),g(m,y,t,!0),y.state===e.ACTIVE&&(p=o,o=m.opcodes,v(0,n),o=p,f(y,c,n,u),g(m,y,t,!1))}else p=o,o=m.opcodes,v(0,n,y),o=p;d||l&&(y.state===e.NOMATCH?s.ast.setLength(i):s.ast.up(h.index,m.name,n,y.phraseLength))})(t,i);break;case e.TRG:((t,s)=>{const n=o[t];y.state=e.NOMATCH,s<c.length&&n.min<=c[s]&&c[s]<=n.max&&(y.state=e.MATCH,y.phraseLength=1)})(t,i);break;case e.TBS:((t,s)=>{const n=o[t],r=n.string.length;if(y.state=e.NOMATCH,s+r<=c.length){for(let e=0;e<r;e+=1)if(c[s+e]!==n.string[e])return;y.state=e.MATCH,y.phraseLength=r}})(t,i);break;case e.TLS:((t,s)=>{let n;const r=o[t];y.state=e.NOMATCH;const i=r.string.length;if(0!==i){if(s+i<=c.length){for(let e=0;e<i;e+=1)if(n=c[s+e],n>=65&&n<=90&&(n+=32),n!==r.string[e])return;y.state=e.MATCH,y.phraseLength=i}}else y.state=e.EMPTY})(t,i);break;case e.UDT:x(t,i);break;case e.AND:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.EMPTY;break;case e.NOMATCH:y.state=e.NOMATCH;break;default:throw new Error(`opAND: invalid state ${y.state}`)}})(t,i);break;case e.NOT:((t,s)=>{switch(d+=1,v(t+1,s),d-=1,y.phraseLength=0,y.state){case e.EMPTY:case e.MATCH:y.state=e.NOMATCH;break;case e.NOMATCH:y.state=e.EMPTY;break;default:throw new Error(`opNOT: invalid state ${y.state}`)}})(t,i);break;default:throw new Error(`${l}unrecognized operator`)}d||i+y.phraseLength>f&&(f=i+y.phraseLength),s.stats&&s.stats.collect(b,y),s.trace&&s.trace.up(b,y.state,i,y.phraseLength),p-=1}},zn={stringToChars:e=>[...e].map(e=>e.codePointAt(0)),charsToString:(e,t,s)=>{let n=e;for(;!(void 0===t||t<0);){if(void 0===s){n=e.slice(t);break}if(s<=0)return"";n=e.slice(t,t+s);break}return String.fromCodePoint(...n)}},Gn={ALT:1,CAT:2,REP:3,RNM:4,TRG:5,TBS:6,TLS:7,UDT:11,AND:12,NOT:13,ACTIVE:100,MATCH:101,EMPTY:102,NOMATCH:103,SEM_PRE:200,SEM_POST:201,SEM_OK:300,idName:e=>{switch(e){case Gn.ALT:return"ALT";case Gn.CAT:return"CAT";case Gn.REP:return"REP";case Gn.RNM:return"RNM";case Gn.TRG:return"TRG";case Gn.TBS:return"TBS";case Gn.TLS:return"TLS";case Gn.UDT:return"UDT";case Gn.AND:return"AND";case Gn.NOT:return"NOT";case Gn.ACTIVE:return"ACTIVE";case Gn.EMPTY:return"EMPTY";case Gn.MATCH:return"MATCH";case Gn.NOMATCH:return"NOMATCH";case Gn.SEM_PRE:return"SEM_PRE";case Gn.SEM_POST:return"SEM_POST";case Gn.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function Xn(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"json-pointer",lower:"json-pointer",index:0,isBkr:!1},this.rules[1]={name:"reference-token",lower:"reference-token",index:1,isBkr:!1},this.rules[2]={name:"unescaped",lower:"unescaped",index:2,isBkr:!1},this.rules[3]={name:"escaped",lower:"escaped",index:3,isBkr:!1},this.rules[4]={name:"array-location",lower:"array-location",index:4,isBkr:!1},this.rules[5]={name:"array-index",lower:"array-index",index:5,isBkr:!1},this.rules[6]={name:"array-dash",lower:"array-dash",index:6,isBkr:!1},this.rules[7]={name:"slash",lower:"slash",index:7,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:3,min:0,max:1/0},this.rules[0].opcodes[1]={type:2,children:[2,3]},this.rules[0].opcodes[2]={type:4,index:7},this.rules[0].opcodes[3]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:1,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:2},this.rules[1].opcodes[3]={type:4,index:3},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3]},this.rules[2].opcodes[1]={type:5,min:0,max:46},this.rules[2].opcodes[2]={type:5,min:48,max:125},this.rules[2].opcodes[3]={type:5,min:127,max:1114111},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:2,children:[1,2]},this.rules[3].opcodes[1]={type:7,string:[126]},this.rules[3].opcodes[2]={type:1,children:[3,4]},this.rules[3].opcodes[3]={type:7,string:[48]},this.rules[3].opcodes[4]={type:7,string:[49]},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:1,children:[1,2]},this.rules[4].opcodes[1]={type:4,index:5},this.rules[4].opcodes[2]={type:4,index:6},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2]},this.rules[5].opcodes[1]={type:6,string:[48]},this.rules[5].opcodes[2]={type:2,children:[3,4]},this.rules[5].opcodes[3]={type:5,min:49,max:57},this.rules[5].opcodes[4]={type:3,min:0,max:1/0},this.rules[5].opcodes[5]={type:5,min:48,max:57},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:7,string:[45]},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:7,string:[47]},this.toString=function(){let e="";return e+="; JavaScript Object Notation (JSON) Pointer ABNF syntax\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901\n",e+="json-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\n",e+="reference-token = *( unescaped / escaped )\n",e+="unescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n",e+=" ; %x2F ('/') and %x7E ('~') are excluded from 'unescaped'\n",e+='escaped = "~" ( "0" / "1" )\n',e+=" ; representing '~' and '/', respectively\n",e+="\n",e+="; https://datatracker.ietf.org/doc/html/rfc6901#section-4\n",e+="array-location = array-index / array-dash\n",e+="array-index = %x30 / ( %x31-39 *(%x30-39) )\n",e+=' ; "0", or digits without a leading "0"\n',e+='array-dash = "-"\n',e+="\n",e+="; Surrogate named rules\n",e+='slash = "/"\n','; JavaScript Object Notation (JSON) Pointer ABNF syntax\n; https://datatracker.ietf.org/doc/html/rfc6901\njson-pointer = *( slash reference-token ) ; MODIFICATION: surrogate text rule used\nreference-token = *( unescaped / escaped )\nunescaped = %x00-2E / %x30-7D / %x7F-10FFFF\n ; %x2F (\'/\') and %x7E (\'~\') are excluded from \'unescaped\'\nescaped = "~" ( "0" / "1" )\n ; representing \'~\' and \'/\', respectively\n\n; https://datatracker.ietf.org/doc/html/rfc6901#section-4\narray-location = array-index / array-dash\narray-index = %x30 / ( %x31-39 *(%x30-39) )\n ; "0", or digits without a leading "0"\narray-dash = "-"\n\n; Surrogate named rules\nslash = "/"\n'}}class Wn extends Error{constructor(e,t=void 0){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.prototype.hasOwnProperty.call(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const Kn=Wn;new Xn;new Xn,new Un,new Xn,new Un,new Xn,new Un,new Xn,new Un;const Yn=e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return String(e).replace(/~/g,"~0").replace(/\//g,"~1")};const Qn=class extends Kn{},Zn=e=>{if(!Array.isArray(e))throw new TypeError("Reference tokens must be a list of strings or numbers");try{return 0===e.length?"":`/${e.map(e=>{if("string"!=typeof e&&"number"!=typeof e)throw new TypeError("Reference token must be a string or number");return Yn(String(e))}).join("/")}`}catch(t){throw new Qn("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class er extends Error{constructor(e,t=void 0){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=`${this.stack}\nCAUSE: ${e.stack}`)}if(null!=t&&"object"==typeof t){const{cause:e,...s}=t;Object.assign(this,s)}}}const tr=er;new function(){this.grammarObject="grammarObject",this.rules=[],this.rules[0]={name:"jsonpath-query",lower:"jsonpath-query",index:0,isBkr:!1},this.rules[1]={name:"segments",lower:"segments",index:1,isBkr:!1},this.rules[2]={name:"B",lower:"b",index:2,isBkr:!1},this.rules[3]={name:"S",lower:"s",index:3,isBkr:!1},this.rules[4]={name:"root-identifier",lower:"root-identifier",index:4,isBkr:!1},this.rules[5]={name:"selector",lower:"selector",index:5,isBkr:!1},this.rules[6]={name:"name-selector",lower:"name-selector",index:6,isBkr:!1},this.rules[7]={name:"string-literal",lower:"string-literal",index:7,isBkr:!1},this.rules[8]={name:"double-quoted",lower:"double-quoted",index:8,isBkr:!1},this.rules[9]={name:"single-quoted",lower:"single-quoted",index:9,isBkr:!1},this.rules[10]={name:"ESC",lower:"esc",index:10,isBkr:!1},this.rules[11]={name:"unescaped",lower:"unescaped",index:11,isBkr:!1},this.rules[12]={name:"escapable",lower:"escapable",index:12,isBkr:!1},this.rules[13]={name:"hexchar",lower:"hexchar",index:13,isBkr:!1},this.rules[14]={name:"non-surrogate",lower:"non-surrogate",index:14,isBkr:!1},this.rules[15]={name:"high-surrogate",lower:"high-surrogate",index:15,isBkr:!1},this.rules[16]={name:"low-surrogate",lower:"low-surrogate",index:16,isBkr:!1},this.rules[17]={name:"HEXDIG",lower:"hexdig",index:17,isBkr:!1},this.rules[18]={name:"wildcard-selector",lower:"wildcard-selector",index:18,isBkr:!1},this.rules[19]={name:"index-selector",lower:"index-selector",index:19,isBkr:!1},this.rules[20]={name:"int",lower:"int",index:20,isBkr:!1},this.rules[21]={name:"DIGIT1",lower:"digit1",index:21,isBkr:!1},this.rules[22]={name:"slice-selector",lower:"slice-selector",index:22,isBkr:!1},this.rules[23]={name:"start",lower:"start",index:23,isBkr:!1},this.rules[24]={name:"end",lower:"end",index:24,isBkr:!1},this.rules[25]={name:"step",lower:"step",index:25,isBkr:!1},this.rules[26]={name:"filter-selector",lower:"filter-selector",index:26,isBkr:!1},this.rules[27]={name:"logical-expr",lower:"logical-expr",index:27,isBkr:!1},this.rules[28]={name:"logical-or-expr",lower:"logical-or-expr",index:28,isBkr:!1},this.rules[29]={name:"logical-and-expr",lower:"logical-and-expr",index:29,isBkr:!1},this.rules[30]={name:"basic-expr",lower:"basic-expr",index:30,isBkr:!1},this.rules[31]={name:"paren-expr",lower:"paren-expr",index:31,isBkr:!1},this.rules[32]={name:"logical-not-op",lower:"logical-not-op",index:32,isBkr:!1},this.rules[33]={name:"test-expr",lower:"test-expr",index:33,isBkr:!1},this.rules[34]={name:"filter-query",lower:"filter-query",index:34,isBkr:!1},this.rules[35]={name:"rel-query",lower:"rel-query",index:35,isBkr:!1},this.rules[36]={name:"current-node-identifier",lower:"current-node-identifier",index:36,isBkr:!1},this.rules[37]={name:"comparison-expr",lower:"comparison-expr",index:37,isBkr:!1},this.rules[38]={name:"literal",lower:"literal",index:38,isBkr:!1},this.rules[39]={name:"comparable",lower:"comparable",index:39,isBkr:!1},this.rules[40]={name:"comparison-op",lower:"comparison-op",index:40,isBkr:!1},this.rules[41]={name:"singular-query",lower:"singular-query",index:41,isBkr:!1},this.rules[42]={name:"rel-singular-query",lower:"rel-singular-query",index:42,isBkr:!1},this.rules[43]={name:"abs-singular-query",lower:"abs-singular-query",index:43,isBkr:!1},this.rules[44]={name:"singular-query-segments",lower:"singular-query-segments",index:44,isBkr:!1},this.rules[45]={name:"name-segment",lower:"name-segment",index:45,isBkr:!1},this.rules[46]={name:"index-segment",lower:"index-segment",index:46,isBkr:!1},this.rules[47]={name:"number",lower:"number",index:47,isBkr:!1},this.rules[48]={name:"frac",lower:"frac",index:48,isBkr:!1},this.rules[49]={name:"exp",lower:"exp",index:49,isBkr:!1},this.rules[50]={name:"true",lower:"true",index:50,isBkr:!1},this.rules[51]={name:"false",lower:"false",index:51,isBkr:!1},this.rules[52]={name:"null",lower:"null",index:52,isBkr:!1},this.rules[53]={name:"function-name",lower:"function-name",index:53,isBkr:!1},this.rules[54]={name:"function-name-first",lower:"function-name-first",index:54,isBkr:!1},this.rules[55]={name:"function-name-char",lower:"function-name-char",index:55,isBkr:!1},this.rules[56]={name:"LCALPHA",lower:"lcalpha",index:56,isBkr:!1},this.rules[57]={name:"function-expr",lower:"function-expr",index:57,isBkr:!1},this.rules[58]={name:"function-argument",lower:"function-argument",index:58,isBkr:!1},this.rules[59]={name:"segment",lower:"segment",index:59,isBkr:!1},this.rules[60]={name:"child-segment",lower:"child-segment",index:60,isBkr:!1},this.rules[61]={name:"bracketed-selection",lower:"bracketed-selection",index:61,isBkr:!1},this.rules[62]={name:"member-name-shorthand",lower:"member-name-shorthand",index:62,isBkr:!1},this.rules[63]={name:"name-first",lower:"name-first",index:63,isBkr:!1},this.rules[64]={name:"name-char",lower:"name-char",index:64,isBkr:!1},this.rules[65]={name:"DIGIT",lower:"digit",index:65,isBkr:!1},this.rules[66]={name:"ALPHA",lower:"alpha",index:66,isBkr:!1},this.rules[67]={name:"descendant-segment",lower:"descendant-segment",index:67,isBkr:!1},this.rules[68]={name:"normalized-path",lower:"normalized-path",index:68,isBkr:!1},this.rules[69]={name:"normal-index-segment",lower:"normal-index-segment",index:69,isBkr:!1},this.rules[70]={name:"normal-selector",lower:"normal-selector",index:70,isBkr:!1},this.rules[71]={name:"normal-name-selector",lower:"normal-name-selector",index:71,isBkr:!1},this.rules[72]={name:"normal-single-quoted",lower:"normal-single-quoted",index:72,isBkr:!1},this.rules[73]={name:"normal-unescaped",lower:"normal-unescaped",index:73,isBkr:!1},this.rules[74]={name:"normal-escapable",lower:"normal-escapable",index:74,isBkr:!1},this.rules[75]={name:"normal-hexchar",lower:"normal-hexchar",index:75,isBkr:!1},this.rules[76]={name:"normal-HEXDIG",lower:"normal-hexdig",index:76,isBkr:!1},this.rules[77]={name:"normal-index-selector",lower:"normal-index-selector",index:77,isBkr:!1},this.rules[78]={name:"dot-prefix",lower:"dot-prefix",index:78,isBkr:!1},this.rules[79]={name:"double-dot-prefix",lower:"double-dot-prefix",index:79,isBkr:!1},this.rules[80]={name:"left-bracket",lower:"left-bracket",index:80,isBkr:!1},this.rules[81]={name:"right-bracket",lower:"right-bracket",index:81,isBkr:!1},this.rules[82]={name:"left-paren",lower:"left-paren",index:82,isBkr:!1},this.rules[83]={name:"right-paren",lower:"right-paren",index:83,isBkr:!1},this.rules[84]={name:"comma",lower:"comma",index:84,isBkr:!1},this.rules[85]={name:"colon",lower:"colon",index:85,isBkr:!1},this.rules[86]={name:"dquote",lower:"dquote",index:86,isBkr:!1},this.rules[87]={name:"squote",lower:"squote",index:87,isBkr:!1},this.rules[88]={name:"questionmark",lower:"questionmark",index:88,isBkr:!1},this.rules[89]={name:"disjunction",lower:"disjunction",index:89,isBkr:!1},this.rules[90]={name:"conjunction",lower:"conjunction",index:90,isBkr:!1},this.udts=[],this.rules[0].opcodes=[],this.rules[0].opcodes[0]={type:2,children:[1,2]},this.rules[0].opcodes[1]={type:4,index:4},this.rules[0].opcodes[2]={type:4,index:1},this.rules[1].opcodes=[],this.rules[1].opcodes[0]={type:3,min:0,max:1/0},this.rules[1].opcodes[1]={type:2,children:[2,3]},this.rules[1].opcodes[2]={type:4,index:3},this.rules[1].opcodes[3]={type:4,index:59},this.rules[2].opcodes=[],this.rules[2].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[2].opcodes[1]={type:6,string:[32]},this.rules[2].opcodes[2]={type:6,string:[9]},this.rules[2].opcodes[3]={type:6,string:[10]},this.rules[2].opcodes[4]={type:6,string:[13]},this.rules[3].opcodes=[],this.rules[3].opcodes[0]={type:3,min:0,max:1/0},this.rules[3].opcodes[1]={type:4,index:2},this.rules[4].opcodes=[],this.rules[4].opcodes[0]={type:7,string:[36]},this.rules[5].opcodes=[],this.rules[5].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[5].opcodes[1]={type:4,index:6},this.rules[5].opcodes[2]={type:4,index:18},this.rules[5].opcodes[3]={type:4,index:22},this.rules[5].opcodes[4]={type:4,index:19},this.rules[5].opcodes[5]={type:4,index:26},this.rules[6].opcodes=[],this.rules[6].opcodes[0]={type:4,index:7},this.rules[7].opcodes=[],this.rules[7].opcodes[0]={type:1,children:[1,6]},this.rules[7].opcodes[1]={type:2,children:[2,3,5]},this.rules[7].opcodes[2]={type:4,index:86},this.rules[7].opcodes[3]={type:3,min:0,max:1/0},this.rules[7].opcodes[4]={type:4,index:8},this.rules[7].opcodes[5]={type:4,index:86},this.rules[7].opcodes[6]={type:2,children:[7,8,10]},this.rules[7].opcodes[7]={type:4,index:87},this.rules[7].opcodes[8]={type:3,min:0,max:1/0},this.rules[7].opcodes[9]={type:4,index:9},this.rules[7].opcodes[10]={type:4,index:87},this.rules[8].opcodes=[],this.rules[8].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[8].opcodes[1]={type:4,index:11},this.rules[8].opcodes[2]={type:6,string:[39]},this.rules[8].opcodes[3]={type:2,children:[4,5]},this.rules[8].opcodes[4]={type:4,index:10},this.rules[8].opcodes[5]={type:6,string:[34]},this.rules[8].opcodes[6]={type:2,children:[7,8]},this.rules[8].opcodes[7]={type:4,index:10},this.rules[8].opcodes[8]={type:4,index:12},this.rules[9].opcodes=[],this.rules[9].opcodes[0]={type:1,children:[1,2,3,6]},this.rules[9].opcodes[1]={type:4,index:11},this.rules[9].opcodes[2]={type:6,string:[34]},this.rules[9].opcodes[3]={type:2,children:[4,5]},this.rules[9].opcodes[4]={type:4,index:10},this.rules[9].opcodes[5]={type:6,string:[39]},this.rules[9].opcodes[6]={type:2,children:[7,8]},this.rules[9].opcodes[7]={type:4,index:10},this.rules[9].opcodes[8]={type:4,index:12},this.rules[10].opcodes=[],this.rules[10].opcodes[0]={type:6,string:[92]},this.rules[11].opcodes=[],this.rules[11].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[11].opcodes[1]={type:5,min:32,max:33},this.rules[11].opcodes[2]={type:5,min:35,max:38},this.rules[11].opcodes[3]={type:5,min:40,max:91},this.rules[11].opcodes[4]={type:5,min:93,max:55295},this.rules[11].opcodes[5]={type:5,min:57344,max:1114111},this.rules[12].opcodes=[],this.rules[12].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[12].opcodes[1]={type:6,string:[98]},this.rules[12].opcodes[2]={type:6,string:[102]},this.rules[12].opcodes[3]={type:6,string:[110]},this.rules[12].opcodes[4]={type:6,string:[114]},this.rules[12].opcodes[5]={type:6,string:[116]},this.rules[12].opcodes[6]={type:7,string:[47]},this.rules[12].opcodes[7]={type:7,string:[92]},this.rules[12].opcodes[8]={type:2,children:[9,10]},this.rules[12].opcodes[9]={type:6,string:[117]},this.rules[12].opcodes[10]={type:4,index:13},this.rules[13].opcodes=[],this.rules[13].opcodes[0]={type:1,children:[1,2]},this.rules[13].opcodes[1]={type:4,index:14},this.rules[13].opcodes[2]={type:2,children:[3,4,5,6]},this.rules[13].opcodes[3]={type:4,index:15},this.rules[13].opcodes[4]={type:7,string:[92]},this.rules[13].opcodes[5]={type:6,string:[117]},this.rules[13].opcodes[6]={type:4,index:16},this.rules[14].opcodes=[],this.rules[14].opcodes[0]={type:1,children:[1,11]},this.rules[14].opcodes[1]={type:2,children:[2,9]},this.rules[14].opcodes[2]={type:1,children:[3,4,5,6,7,8]},this.rules[14].opcodes[3]={type:4,index:65},this.rules[14].opcodes[4]={type:7,string:[97]},this.rules[14].opcodes[5]={type:7,string:[98]},this.rules[14].opcodes[6]={type:7,string:[99]},this.rules[14].opcodes[7]={type:7,string:[101]},this.rules[14].opcodes[8]={type:7,string:[102]},this.rules[14].opcodes[9]={type:3,min:3,max:3},this.rules[14].opcodes[10]={type:4,index:17},this.rules[14].opcodes[11]={type:2,children:[12,13,14]},this.rules[14].opcodes[12]={type:7,string:[100]},this.rules[14].opcodes[13]={type:5,min:48,max:55},this.rules[14].opcodes[14]={type:3,min:2,max:2},this.rules[14].opcodes[15]={type:4,index:17},this.rules[15].opcodes=[],this.rules[15].opcodes[0]={type:2,children:[1,2,7]},this.rules[15].opcodes[1]={type:7,string:[100]},this.rules[15].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[15].opcodes[3]={type:7,string:[56]},this.rules[15].opcodes[4]={type:7,string:[57]},this.rules[15].opcodes[5]={type:7,string:[97]},this.rules[15].opcodes[6]={type:7,string:[98]},this.rules[15].opcodes[7]={type:3,min:2,max:2},this.rules[15].opcodes[8]={type:4,index:17},this.rules[16].opcodes=[],this.rules[16].opcodes[0]={type:2,children:[1,2,7]},this.rules[16].opcodes[1]={type:7,string:[100]},this.rules[16].opcodes[2]={type:1,children:[3,4,5,6]},this.rules[16].opcodes[3]={type:7,string:[99]},this.rules[16].opcodes[4]={type:7,string:[100]},this.rules[16].opcodes[5]={type:7,string:[101]},this.rules[16].opcodes[6]={type:7,string:[102]},this.rules[16].opcodes[7]={type:3,min:2,max:2},this.rules[16].opcodes[8]={type:4,index:17},this.rules[17].opcodes=[],this.rules[17].opcodes[0]={type:1,children:[1,2,3,4,5,6,7]},this.rules[17].opcodes[1]={type:4,index:65},this.rules[17].opcodes[2]={type:7,string:[97]},this.rules[17].opcodes[3]={type:7,string:[98]},this.rules[17].opcodes[4]={type:7,string:[99]},this.rules[17].opcodes[5]={type:7,string:[100]},this.rules[17].opcodes[6]={type:7,string:[101]},this.rules[17].opcodes[7]={type:7,string:[102]},this.rules[18].opcodes=[],this.rules[18].opcodes[0]={type:7,string:[42]},this.rules[19].opcodes=[],this.rules[19].opcodes[0]={type:4,index:20},this.rules[20].opcodes=[],this.rules[20].opcodes[0]={type:1,children:[1,2]},this.rules[20].opcodes[1]={type:7,string:[48]},this.rules[20].opcodes[2]={type:2,children:[3,5,6]},this.rules[20].opcodes[3]={type:3,min:0,max:1},this.rules[20].opcodes[4]={type:7,string:[45]},this.rules[20].opcodes[5]={type:4,index:21},this.rules[20].opcodes[6]={type:3,min:0,max:1/0},this.rules[20].opcodes[7]={type:4,index:65},this.rules[21].opcodes=[],this.rules[21].opcodes[0]={type:5,min:49,max:57},this.rules[22].opcodes=[],this.rules[22].opcodes[0]={type:2,children:[1,5,6,7,11]},this.rules[22].opcodes[1]={type:3,min:0,max:1},this.rules[22].opcodes[2]={type:2,children:[3,4]},this.rules[22].opcodes[3]={type:4,index:23},this.rules[22].opcodes[4]={type:4,index:3},this.rules[22].opcodes[5]={type:4,index:85},this.rules[22].opcodes[6]={type:4,index:3},this.rules[22].opcodes[7]={type:3,min:0,max:1},this.rules[22].opcodes[8]={type:2,children:[9,10]},this.rules[22].opcodes[9]={type:4,index:24},this.rules[22].opcodes[10]={type:4,index:3},this.rules[22].opcodes[11]={type:3,min:0,max:1},this.rules[22].opcodes[12]={type:2,children:[13,14]},this.rules[22].opcodes[13]={type:4,index:85},this.rules[22].opcodes[14]={type:3,min:0,max:1},this.rules[22].opcodes[15]={type:2,children:[16,17]},this.rules[22].opcodes[16]={type:4,index:3},this.rules[22].opcodes[17]={type:4,index:25},this.rules[23].opcodes=[],this.rules[23].opcodes[0]={type:4,index:20},this.rules[24].opcodes=[],this.rules[24].opcodes[0]={type:4,index:20},this.rules[25].opcodes=[],this.rules[25].opcodes[0]={type:4,index:20},this.rules[26].opcodes=[],this.rules[26].opcodes[0]={type:2,children:[1,2,3]},this.rules[26].opcodes[1]={type:4,index:88},this.rules[26].opcodes[2]={type:4,index:3},this.rules[26].opcodes[3]={type:4,index:27},this.rules[27].opcodes=[],this.rules[27].opcodes[0]={type:4,index:28},this.rules[28].opcodes=[],this.rules[28].opcodes[0]={type:2,children:[1,2]},this.rules[28].opcodes[1]={type:4,index:29},this.rules[28].opcodes[2]={type:3,min:0,max:1/0},this.rules[28].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[28].opcodes[4]={type:4,index:3},this.rules[28].opcodes[5]={type:4,index:89},this.rules[28].opcodes[6]={type:4,index:3},this.rules[28].opcodes[7]={type:4,index:29},this.rules[29].opcodes=[],this.rules[29].opcodes[0]={type:2,children:[1,2]},this.rules[29].opcodes[1]={type:4,index:30},this.rules[29].opcodes[2]={type:3,min:0,max:1/0},this.rules[29].opcodes[3]={type:2,children:[4,5,6,7]},this.rules[29].opcodes[4]={type:4,index:3},this.rules[29].opcodes[5]={type:4,index:90},this.rules[29].opcodes[6]={type:4,index:3},this.rules[29].opcodes[7]={type:4,index:30},this.rules[30].opcodes=[],this.rules[30].opcodes[0]={type:1,children:[1,2,3]},this.rules[30].opcodes[1]={type:4,index:31},this.rules[30].opcodes[2]={type:4,index:37},this.rules[30].opcodes[3]={type:4,index:33},this.rules[31].opcodes=[],this.rules[31].opcodes[0]={type:2,children:[1,5,6,7,8,9]},this.rules[31].opcodes[1]={type:3,min:0,max:1},this.rules[31].opcodes[2]={type:2,children:[3,4]},this.rules[31].opcodes[3]={type:4,index:32},this.rules[31].opcodes[4]={type:4,index:3},this.rules[31].opcodes[5]={type:4,index:82},this.rules[31].opcodes[6]={type:4,index:3},this.rules[31].opcodes[7]={type:4,index:27},this.rules[31].opcodes[8]={type:4,index:3},this.rules[31].opcodes[9]={type:4,index:83},this.rules[32].opcodes=[],this.rules[32].opcodes[0]={type:7,string:[33]},this.rules[33].opcodes=[],this.rules[33].opcodes[0]={type:2,children:[1,5]},this.rules[33].opcodes[1]={type:3,min:0,max:1},this.rules[33].opcodes[2]={type:2,children:[3,4]},this.rules[33].opcodes[3]={type:4,index:32},this.rules[33].opcodes[4]={type:4,index:3},this.rules[33].opcodes[5]={type:1,children:[6,7]},this.rules[33].opcodes[6]={type:4,index:34},this.rules[33].opcodes[7]={type:4,index:57},this.rules[34].opcodes=[],this.rules[34].opcodes[0]={type:1,children:[1,2]},this.rules[34].opcodes[1]={type:4,index:35},this.rules[34].opcodes[2]={type:4,index:0},this.rules[35].opcodes=[],this.rules[35].opcodes[0]={type:2,children:[1,2]},this.rules[35].opcodes[1]={type:4,index:36},this.rules[35].opcodes[2]={type:4,index:1},this.rules[36].opcodes=[],this.rules[36].opcodes[0]={type:7,string:[64]},this.rules[37].opcodes=[],this.rules[37].opcodes[0]={type:2,children:[1,2,3,4,5]},this.rules[37].opcodes[1]={type:4,index:39},this.rules[37].opcodes[2]={type:4,index:3},this.rules[37].opcodes[3]={type:4,index:40},this.rules[37].opcodes[4]={type:4,index:3},this.rules[37].opcodes[5]={type:4,index:39},this.rules[38].opcodes=[],this.rules[38].opcodes[0]={type:1,children:[1,2,3,4,5]},this.rules[38].opcodes[1]={type:4,index:47},this.rules[38].opcodes[2]={type:4,index:7},this.rules[38].opcodes[3]={type:4,index:50},this.rules[38].opcodes[4]={type:4,index:51},this.rules[38].opcodes[5]={type:4,index:52},this.rules[39].opcodes=[],this.rules[39].opcodes[0]={type:1,children:[1,2,3]},this.rules[39].opcodes[1]={type:4,index:41},this.rules[39].opcodes[2]={type:4,index:57},this.rules[39].opcodes[3]={type:4,index:38},this.rules[40].opcodes=[],this.rules[40].opcodes[0]={type:1,children:[1,2,3,4,5,6]},this.rules[40].opcodes[1]={type:7,string:[61,61]},this.rules[40].opcodes[2]={type:7,string:[33,61]},this.rules[40].opcodes[3]={type:7,string:[60,61]},this.rules[40].opcodes[4]={type:7,string:[62,61]},this.rules[40].opcodes[5]={type:7,string:[60]},this.rules[40].opcodes[6]={type:7,string:[62]},this.rules[41].opcodes=[],this.rules[41].opcodes[0]={type:1,children:[1,2]},this.rules[41].opcodes[1]={type:4,index:42},this.rules[41].opcodes[2]={type:4,index:43},this.rules[42].opcodes=[],this.rules[42].opcodes[0]={type:2,children:[1,2]},this.rules[42].opcodes[1]={type:4,index:36},this.rules[42].opcodes[2]={type:4,index:44},this.rules[43].opcodes=[],this.rules[43].opcodes[0]={type:2,children:[1,2]},this.rules[43].opcodes[1]={type:4,index:4},this.rules[43].opcodes[2]={type:4,index:44},this.rules[44].opcodes=[],this.rules[44].opcodes[0]={type:3,min:0,max:1/0},this.rules[44].opcodes[1]={type:2,children:[2,3]},this.rules[44].opcodes[2]={type:4,index:3},this.rules[44].opcodes[3]={type:1,children:[4,5]},this.rules[44].opcodes[4]={type:4,index:45},this.rules[44].opcodes[5]={type:4,index:46},this.rules[45].opcodes=[],this.rules[45].opcodes[0]={type:1,children:[1,5]},this.rules[45].opcodes[1]={type:2,children:[2,3,4]},this.rules[45].opcodes[2]={type:4,index:80},this.rules[45].opcodes[3]={type:4,index:6},this.rules[45].opcodes[4]={type:4,index:81},this.rules[45].opcodes[5]={type:2,children:[6,7]},this.rules[45].opcodes[6]={type:4,index:78},this.rules[45].opcodes[7]={type:4,index:62},this.rules[46].opcodes=[],this.rules[46].opcodes[0]={type:2,children:[1,2,3]},this.rules[46].opcodes[1]={type:4,index:80},this.rules[46].opcodes[2]={type:4,index:19},this.rules[46].opcodes[3]={type:4,index:81},this.rules[47].opcodes=[],this.rules[47].opcodes[0]={type:2,children:[1,4,6]},this.rules[47].opcodes[1]={type:1,children:[2,3]},this.rules[47].opcodes[2]={type:4,index:20},this.rules[47].opcodes[3]={type:7,string:[45,48]},this.rules[47].opcodes[4]={type:3,min:0,max:1},this.rules[47].opcodes[5]={type:4,index:48},this.rules[47].opcodes[6]={type:3,min:0,max:1},this.rules[47].opcodes[7]={type:4,index:49},this.rules[48].opcodes=[],this.rules[48].opcodes[0]={type:2,children:[1,2]},this.rules[48].opcodes[1]={type:7,string:[46]},this.rules[48].opcodes[2]={type:3,min:1,max:1/0},this.rules[48].opcodes[3]={type:4,index:65},this.rules[49].opcodes=[],this.rules[49].opcodes[0]={type:2,children:[1,2,6]},this.rules[49].opcodes[1]={type:7,string:[101]},this.rules[49].opcodes[2]={type:3,min:0,max:1},this.rules[49].opcodes[3]={type:1,children:[4,5]},this.rules[49].opcodes[4]={type:7,string:[45]},this.rules[49].opcodes[5]={type:7,string:[43]},this.rules[49].opcodes[6]={type:3,min:1,max:1/0},this.rules[49].opcodes[7]={type:4,index:65},this.rules[50].opcodes=[],this.rules[50].opcodes[0]={type:6,string:[116,114,117,101]},this.rules[51].opcodes=[],this.rules[51].opcodes[0]={type:6,string:[102,97,108,115,101]},this.rules[52].opcodes=[],this.rules[52].opcodes[0]={type:6,string:[110,117,108,108]},this.rules[53].opcodes=[],this.rules[53].opcodes[0]={type:2,children:[1,2]},this.rules[53].opcodes[1]={type:4,index:54},this.rules[53].opcodes[2]={type:3,min:0,max:1/0},this.rules[53].opcodes[3]={type:4,index:55},this.rules[54].opcodes=[],this.rules[54].opcodes[0]={type:4,index:56},this.rules[55].opcodes=[],this.rules[55].opcodes[0]={type:1,children:[1,2,3]},this.rules[55].opcodes[1]={type:4,index:54},this.rules[55].opcodes[2]={type:7,string:[95]},this.rules[55].opcodes[3]={type:4,index:65},this.rules[56].opcodes=[],this.rules[56].opcodes[0]={type:5,min:97,max:122},this.rules[57].opcodes=[],this.rules[57].opcodes[0]={type:2,children:[1,2,3,4,13,14]},this.rules[57].opcodes[1]={type:4,index:53},this.rules[57].opcodes[2]={type:4,index:82},this.rules[57].opcodes[3]={type:4,index:3},this.rules[57].opcodes[4]={type:3,min:0,max:1},this.rules[57].opcodes[5]={type:2,children:[6,7]},this.rules[57].opcodes[6]={type:4,index:58},this.rules[57].opcodes[7]={type:3,min:0,max:1/0},this.rules[57].opcodes[8]={type:2,children:[9,10,11,12]},this.rules[57].opcodes[9]={type:4,index:3},this.rules[57].opcodes[10]={type:4,index:84},this.rules[57].opcodes[11]={type:4,index:3},this.rules[57].opcodes[12]={type:4,index:58},this.rules[57].opcodes[13]={type:4,index:3},this.rules[57].opcodes[14]={type:4,index:83},this.rules[58].opcodes=[],this.rules[58].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[58].opcodes[1]={type:4,index:27},this.rules[58].opcodes[2]={type:4,index:34},this.rules[58].opcodes[3]={type:4,index:57},this.rules[58].opcodes[4]={type:4,index:38},this.rules[59].opcodes=[],this.rules[59].opcodes[0]={type:1,children:[1,2]},this.rules[59].opcodes[1]={type:4,index:60},this.rules[59].opcodes[2]={type:4,index:67},this.rules[60].opcodes=[],this.rules[60].opcodes[0]={type:1,children:[1,2]},this.rules[60].opcodes[1]={type:4,index:61},this.rules[60].opcodes[2]={type:2,children:[3,4]},this.rules[60].opcodes[3]={type:4,index:78},this.rules[60].opcodes[4]={type:1,children:[5,6]},this.rules[60].opcodes[5]={type:4,index:18},this.rules[60].opcodes[6]={type:4,index:62},this.rules[61].opcodes=[],this.rules[61].opcodes[0]={type:2,children:[1,2,3,4,10,11]},this.rules[61].opcodes[1]={type:4,index:80},this.rules[61].opcodes[2]={type:4,index:3},this.rules[61].opcodes[3]={type:4,index:5},this.rules[61].opcodes[4]={type:3,min:0,max:1/0},this.rules[61].opcodes[5]={type:2,children:[6,7,8,9]},this.rules[61].opcodes[6]={type:4,index:3},this.rules[61].opcodes[7]={type:4,index:84},this.rules[61].opcodes[8]={type:4,index:3},this.rules[61].opcodes[9]={type:4,index:5},this.rules[61].opcodes[10]={type:4,index:3},this.rules[61].opcodes[11]={type:4,index:81},this.rules[62].opcodes=[],this.rules[62].opcodes[0]={type:2,children:[1,2]},this.rules[62].opcodes[1]={type:4,index:63},this.rules[62].opcodes[2]={type:3,min:0,max:1/0},this.rules[62].opcodes[3]={type:4,index:64},this.rules[63].opcodes=[],this.rules[63].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[63].opcodes[1]={type:4,index:66},this.rules[63].opcodes[2]={type:7,string:[95]},this.rules[63].opcodes[3]={type:5,min:128,max:55295},this.rules[63].opcodes[4]={type:5,min:57344,max:1114111},this.rules[64].opcodes=[],this.rules[64].opcodes[0]={type:1,children:[1,2]},this.rules[64].opcodes[1]={type:4,index:63},this.rules[64].opcodes[2]={type:4,index:65},this.rules[65].opcodes=[],this.rules[65].opcodes[0]={type:5,min:48,max:57},this.rules[66].opcodes=[],this.rules[66].opcodes[0]={type:1,children:[1,2]},this.rules[66].opcodes[1]={type:5,min:65,max:90},this.rules[66].opcodes[2]={type:5,min:97,max:122},this.rules[67].opcodes=[],this.rules[67].opcodes[0]={type:2,children:[1,2]},this.rules[67].opcodes[1]={type:4,index:79},this.rules[67].opcodes[2]={type:1,children:[3,4,5]},this.rules[67].opcodes[3]={type:4,index:61},this.rules[67].opcodes[4]={type:4,index:18},this.rules[67].opcodes[5]={type:4,index:62},this.rules[68].opcodes=[],this.rules[68].opcodes[0]={type:2,children:[1,2]},this.rules[68].opcodes[1]={type:4,index:4},this.rules[68].opcodes[2]={type:3,min:0,max:1/0},this.rules[68].opcodes[3]={type:4,index:69},this.rules[69].opcodes=[],this.rules[69].opcodes[0]={type:2,children:[1,2,3]},this.rules[69].opcodes[1]={type:4,index:80},this.rules[69].opcodes[2]={type:4,index:70},this.rules[69].opcodes[3]={type:4,index:81},this.rules[70].opcodes=[],this.rules[70].opcodes[0]={type:1,children:[1,2]},this.rules[70].opcodes[1]={type:4,index:71},this.rules[70].opcodes[2]={type:4,index:77},this.rules[71].opcodes=[],this.rules[71].opcodes[0]={type:2,children:[1,2,4]},this.rules[71].opcodes[1]={type:4,index:87},this.rules[71].opcodes[2]={type:3,min:0,max:1/0},this.rules[71].opcodes[3]={type:4,index:72},this.rules[71].opcodes[4]={type:4,index:87},this.rules[72].opcodes=[],this.rules[72].opcodes[0]={type:1,children:[1,2]},this.rules[72].opcodes[1]={type:4,index:73},this.rules[72].opcodes[2]={type:2,children:[3,4]},this.rules[72].opcodes[3]={type:4,index:10},this.rules[72].opcodes[4]={type:4,index:74},this.rules[73].opcodes=[],this.rules[73].opcodes[0]={type:1,children:[1,2,3,4]},this.rules[73].opcodes[1]={type:5,min:32,max:38},this.rules[73].opcodes[2]={type:5,min:40,max:91},this.rules[73].opcodes[3]={type:5,min:93,max:55295},this.rules[73].opcodes[4]={type:5,min:57344,max:1114111},this.rules[74].opcodes=[],this.rules[74].opcodes[0]={type:1,children:[1,2,3,4,5,6,7,8]},this.rules[74].opcodes[1]={type:6,string:[98]},this.rules[74].opcodes[2]={type:6,string:[102]},this.rules[74].opcodes[3]={type:6,string:[110]},this.rules[74].opcodes[4]={type:6,string:[114]},this.rules[74].opcodes[5]={type:6,string:[116]},this.rules[74].opcodes[6]={type:7,string:[39]},this.rules[74].opcodes[7]={type:7,string:[92]},this.rules[74].opcodes[8]={type:2,children:[9,10]},this.rules[74].opcodes[9]={type:6,string:[117]},this.rules[74].opcodes[10]={type:4,index:75},this.rules[75].opcodes=[],this.rules[75].opcodes[0]={type:2,children:[1,2,3]},this.rules[75].opcodes[1]={type:7,string:[48]},this.rules[75].opcodes[2]={type:7,string:[48]},this.rules[75].opcodes[3]={type:1,children:[4,7,10,13]},this.rules[75].opcodes[4]={type:2,children:[5,6]},this.rules[75].opcodes[5]={type:7,string:[48]},this.rules[75].opcodes[6]={type:5,min:48,max:55},this.rules[75].opcodes[7]={type:2,children:[8,9]},this.rules[75].opcodes[8]={type:7,string:[48]},this.rules[75].opcodes[9]={type:6,string:[98]},this.rules[75].opcodes[10]={type:2,children:[11,12]},this.rules[75].opcodes[11]={type:7,string:[48]},this.rules[75].opcodes[12]={type:5,min:101,max:102},this.rules[75].opcodes[13]={type:2,children:[14,15]},this.rules[75].opcodes[14]={type:7,string:[49]},this.rules[75].opcodes[15]={type:4,index:76},this.rules[76].opcodes=[],this.rules[76].opcodes[0]={type:1,children:[1,2]},this.rules[76].opcodes[1]={type:4,index:65},this.rules[76].opcodes[2]={type:5,min:97,max:102},this.rules[77].opcodes=[],this.rules[77].opcodes[0]={type:1,children:[1,2]},this.rules[77].opcodes[1]={type:7,string:[48]},this.rules[77].opcodes[2]={type:2,children:[3,4]},this.rules[77].opcodes[3]={type:4,index:21},this.rules[77].opcodes[4]={type:3,min:0,max:1/0},this.rules[77].opcodes[5]={type:4,index:65},this.rules[78].opcodes=[],this.rules[78].opcodes[0]={type:7,string:[46]},this.rules[79].opcodes=[],this.rules[79].opcodes[0]={type:7,string:[46,46]},this.rules[80].opcodes=[],this.rules[80].opcodes[0]={type:7,string:[91]},this.rules[81].opcodes=[],this.rules[81].opcodes[0]={type:7,string:[93]},this.rules[82].opcodes=[],this.rules[82].opcodes[0]={type:7,string:[40]},this.rules[83].opcodes=[],this.rules[83].opcodes[0]={type:7,string:[41]},this.rules[84].opcodes=[],this.rules[84].opcodes[0]={type:7,string:[44]},this.rules[85].opcodes=[],this.rules[85].opcodes[0]={type:7,string:[58]},this.rules[86].opcodes=[],this.rules[86].opcodes[0]={type:6,string:[34]},this.rules[87].opcodes=[],this.rules[87].opcodes[0]={type:6,string:[39]},this.rules[88].opcodes=[],this.rules[88].opcodes[0]={type:7,string:[63]},this.rules[89].opcodes=[],this.rules[89].opcodes[0]={type:7,string:[124,124]},this.rules[90].opcodes=[],this.rules[90].opcodes[0]={type:7,string:[38,38]},this.toString=function(){let e="";return e+="; JSONPath: Query Expressions for JSON\n",e+="; https://www.rfc-editor.org/rfc/rfc9535\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\n",e+="jsonpath-query = root-identifier segments\n",e+="segments = *(S segment)\n",e+="\n",e+="B = %x20 / ; Space\n",e+=" %x09 / ; Horizontal tab\n",e+=" %x0A / ; Line feed or New line\n",e+=" %x0D ; Carriage return\n",e+="S = *B ; optional blank space\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\n",e+='root-identifier = "$"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\n",e+="selector = name-selector /\n",e+=" wildcard-selector /\n",e+=" slice-selector /\n",e+=" index-selector /\n",e+=" filter-selector\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\n",e+="name-selector = string-literal\n",e+="\n",e+='string-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n',e+=" squote *single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="\n",e+="double-quoted = unescaped /\n",e+=" %x27 / ; '\n",e+=' ESC %x22 / ; \\"\n',e+=" ESC escapable\n",e+="\n",e+="single-quoted = unescaped /\n",e+=' %x22 / ; "\n',e+=" ESC %x27 / ; \\'\n",e+=" ESC escapable\n",e+="\n",e+="ESC = %x5C ; \\ backslash\n",e+="\n",e+="unescaped = %x20-21 / ; see RFC 8259\n",e+=' ; omit 0x22 "\n',e+=" %x23-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=' "/" / ; / slash (solidus) U+002F\n',e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 hexchar) ; uXXXX U+XXXX\n",e+="\n",e+="hexchar = non-surrogate /\n",e+=' (high-surrogate "\\" %x75 low-surrogate)\n',e+='non-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n',e+=' ("D" %x30-37 2HEXDIG )\n',e+='high-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\n',e+='low-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n',e+="\n",e+='HEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\n",e+='wildcard-selector = "*"\n',e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\n",e+="index-selector = int ; decimal integer\n",e+="\n",e+='int = "0" /\n',e+=' (["-"] DIGIT1 *DIGIT) ; - optional\n',e+="DIGIT1 = %x31-39 ; 1-9 non-zero digit\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\n",e+="slice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="start = int ; included in selection\n",e+="end = int ; not included in selection\n",e+="step = int ; default: 1\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\n",e+="filter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="logical-expr = logical-or-expr\n",e+="logical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; disjunction\n",e+=" ; binds less tightly than conjunction\n",e+="logical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n",e+=" ; conjunction\n",e+=" ; binds more tightly than disjunction\n",e+="\n",e+="basic-expr = paren-expr /\n",e+=" comparison-expr /\n",e+=" test-expr\n",e+="\n",e+="paren-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n",e+=" ; parenthesized expression\n",e+='logical-not-op = "!" ; logical NOT operator\n',e+="\n",e+="test-expr = [logical-not-op S]\n",e+=" (filter-query / ; existence/non-existence\n",e+=" function-expr) ; LogicalType or NodesType\n",e+="filter-query = rel-query / jsonpath-query\n",e+="rel-query = current-node-identifier segments\n",e+='current-node-identifier = "@"\n',e+="\n",e+="comparison-expr = comparable S comparison-op S comparable\n",e+="literal = number / string-literal /\n",e+=" true / false / null\n",e+="comparable = singular-query / ; singular query value\n",e+=" function-expr / ; ValueType\n",e+=" literal\n",e+=" ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\n",e+='comparison-op = "==" / "!=" /\n',e+=' "<=" / ">=" /\n',e+=' "<" / ">"\n',e+="\n",e+="singular-query = rel-singular-query / abs-singular-query\n",e+="rel-singular-query = current-node-identifier singular-query-segments\n",e+="abs-singular-query = root-identifier singular-query-segments\n",e+="singular-query-segments = *(S (name-segment / index-segment))\n",e+="name-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n",e+=" (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\n",e+="index-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="\n",e+='number = (int / "-0") [ frac ] [ exp ] ; decimal number\n',e+='frac = "." 1*DIGIT ; decimal fraction\n',e+='exp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\n',e+="true = %x74.72.75.65 ; true\n",e+="false = %x66.61.6c.73.65 ; false\n",e+="null = %x6e.75.6c.6c ; null\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\n",e+="function-name = function-name-first *function-name-char\n",e+="function-name-first = LCALPHA\n",e+='function-name-char = function-name-first / "_" / DIGIT\n',e+='LCALPHA = %x61-7A ; "a".."z"\n',e+="\n",e+="function-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n",e+=" *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\n",e+="function-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n",e+=" filter-query / ; (includes singular-query)\n",e+=" function-expr /\n",e+=" literal\n",e+="\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\n",e+="segment = child-segment / descendant-segment\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\n",e+="child-segment = bracketed-selection /\n",e+=" (dot-prefix ; MODIFICATION: surrogate text rule used\n",e+=" (wildcard-selector /\n",e+=" member-name-shorthand))\n",e+="\n",e+="bracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n",e+=" ; MODIFICATION: surrogate text rule used\n",e+="\n",e+="member-name-shorthand = name-first *name-char\n",e+="name-first = ALPHA /\n",e+=' "_" /\n',e+=" %x80-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="name-char = name-first / DIGIT\n",e+="\n",e+="DIGIT = %x30-39 ; 0-9\n",e+="ALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\n",e+="descendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n",e+=" wildcard-selector /\n",e+=" member-name-shorthand)\n",e+="\n",e+="; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\n",e+="normalized-path = root-identifier *(normal-index-segment)\n",e+="normal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\n",e+="normal-selector = normal-name-selector / normal-index-selector\n",e+="normal-name-selector = squote *normal-single-quoted squote ; 'string', MODIFICATION: surrogate text rule used\n",e+="normal-single-quoted = normal-unescaped /\n",e+=" ESC normal-escapable\n",e+="normal-unescaped = ; omit %x0-1F control codes\n",e+=" %x20-26 /\n",e+=" ; omit 0x27 '\n",e+=" %x28-5B /\n",e+=" ; omit 0x5C \\\n",e+=" %x5D-D7FF /\n",e+=" ; skip surrogate code points\n",e+=" %xE000-10FFFF\n",e+="\n",e+="normal-escapable = %x62 / ; b BS backspace U+0008\n",e+=" %x66 / ; f FF form feed U+000C\n",e+=" %x6E / ; n LF line feed U+000A\n",e+=" %x72 / ; r CR carriage return U+000D\n",e+=" %x74 / ; t HT horizontal tab U+0009\n",e+=" \"'\" / ; ' apostrophe U+0027\n",e+=' "\\" / ; \\ backslash (reverse solidus) U+005C\n',e+=" (%x75 normal-hexchar)\n",e+=" ; certain values u00xx U+00XX\n",e+='normal-hexchar = "0" "0"\n',e+=" (\n",e+=' ("0" %x30-37) / ; "00"-"07"\n',e+=" ; omit U+0008-U+000A BS HT LF\n",e+=' ("0" %x62) / ; "0b"\n',e+=" ; omit U+000C-U+000D FF CR\n",e+=' ("0" %x65-66) / ; "0e"-"0f"\n',e+=' ("1" normal-HEXDIG)\n',e+=" )\n",e+='normal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\n',e+='normal-index-selector = "0" / (DIGIT1 *DIGIT)\n',e+=" ; non-negative decimal integer\n",e+="\n",e+="; Surrogate named rules\n",e+='dot-prefix = "."\n',e+='double-dot-prefix = ".."\n',e+='left-bracket = "["\n',e+='right-bracket = "]"\n',e+='left-paren = "("\n',e+='right-paren = ")"\n',e+='comma = ","\n',e+='colon = ":"\n',e+='dquote = %x22 ; "\n',e+="squote = %x27 ; '\n",e+='questionmark = "?"\n',e+='disjunction = "||"\n',e+='conjunction = "&&"\n','; JSONPath: Query Expressions for JSON\n; https://www.rfc-editor.org/rfc/rfc9535\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.1.1\njsonpath-query = root-identifier segments\nsegments = *(S segment)\n\nB = %x20 / ; Space\n %x09 / ; Horizontal tab\n %x0A / ; Line feed or New line\n %x0D ; Carriage return\nS = *B ; optional blank space\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.2.1\nroot-identifier = "$"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3\nselector = name-selector /\n wildcard-selector /\n slice-selector /\n index-selector /\n filter-selector\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.1.1\nname-selector = string-literal\n\nstring-literal = dquote *double-quoted dquote / ; "string", MODIFICATION: surrogate text rule used\n squote *single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\n\ndouble-quoted = unescaped /\n %x27 / ; \'\n ESC %x22 / ; \\"\n ESC escapable\n\nsingle-quoted = unescaped /\n %x22 / ; "\n ESC %x27 / ; \\\'\n ESC escapable\n\nESC = %x5C ; \\ backslash\n\nunescaped = %x20-21 / ; see RFC 8259\n ; omit 0x22 "\n %x23-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nescapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "/" / ; / slash (solidus) U+002F\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 hexchar) ; uXXXX U+XXXX\n\nhexchar = non-surrogate /\n (high-surrogate "\\" %x75 low-surrogate)\nnon-surrogate = ((DIGIT / "A"/"B"/"C" / "E"/"F") 3HEXDIG) /\n ("D" %x30-37 2HEXDIG )\nhigh-surrogate = "D" ("8"/"9"/"A"/"B") 2HEXDIG\nlow-surrogate = "D" ("C"/"D"/"E"/"F") 2HEXDIG\n\nHEXDIG = DIGIT / "A" / "B" / "C" / "D" / "E" / "F"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.2.1\nwildcard-selector = "*"\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.3.1\nindex-selector = int ; decimal integer\n\nint = "0" /\n (["-"] DIGIT1 *DIGIT) ; - optional\nDIGIT1 = %x31-39 ; 1-9 non-zero digit\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.4.1\nslice-selector = [start S] colon S [end S] [colon [S step ]] ; MODIFICATION: surrogate text rule used\n\nstart = int ; included in selection\nend = int ; not included in selection\nstep = int ; default: 1\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.3.5.1\nfilter-selector = questionmark S logical-expr ; MODIFICATION: surrogate text rule used\n\nlogical-expr = logical-or-expr\nlogical-or-expr = logical-and-expr *(S disjunction S logical-and-expr) ; MODIFICATION: surrogate text rule used\n ; disjunction\n ; binds less tightly than conjunction\nlogical-and-expr = basic-expr *(S conjunction S basic-expr) ; MODIFICATION: surrogate text rule used\n ; conjunction\n ; binds more tightly than disjunction\n\nbasic-expr = paren-expr /\n comparison-expr /\n test-expr\n\nparen-expr = [logical-not-op S] left-paren S logical-expr S right-paren ; MODIFICATION: surrogate text rule used\n ; parenthesized expression\nlogical-not-op = "!" ; logical NOT operator\n\ntest-expr = [logical-not-op S]\n (filter-query / ; existence/non-existence\n function-expr) ; LogicalType or NodesType\nfilter-query = rel-query / jsonpath-query\nrel-query = current-node-identifier segments\ncurrent-node-identifier = "@"\n\ncomparison-expr = comparable S comparison-op S comparable\nliteral = number / string-literal /\n true / false / null\ncomparable = singular-query / ; singular query value\n function-expr / ; ValueType\n literal\n ; MODIFICATION: https://www.rfc-editor.org/errata/eid8352\ncomparison-op = "==" / "!=" /\n "<=" / ">=" /\n "<" / ">"\n\nsingular-query = rel-singular-query / abs-singular-query\nrel-singular-query = current-node-identifier singular-query-segments\nabs-singular-query = root-identifier singular-query-segments\nsingular-query-segments = *(S (name-segment / index-segment))\nname-segment = (left-bracket name-selector right-bracket) / ; MODIFICATION: surrogate text rule used\n (dot-prefix member-name-shorthand) ; MODIFICATION: surrogate text rule used\nindex-segment = left-bracket index-selector right-bracket ; MODIFICATION: surrogate text rule used\n\nnumber = (int / "-0") [ frac ] [ exp ] ; decimal number\nfrac = "." 1*DIGIT ; decimal fraction\nexp = "e" [ "-" / "+" ] 1*DIGIT ; decimal exponent\ntrue = %x74.72.75.65 ; true\nfalse = %x66.61.6c.73.65 ; false\nnull = %x6e.75.6c.6c ; null\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.4\nfunction-name = function-name-first *function-name-char\nfunction-name-first = LCALPHA\nfunction-name-char = function-name-first / "_" / DIGIT\nLCALPHA = %x61-7A ; "a".."z"\n\nfunction-expr = function-name left-paren S [function-argument ; MODIFICATION: surrogate text rule used\n *(S comma S function-argument)] S right-paren ; MODIFICATION: surrogate text rule used\nfunction-argument = logical-expr / ; MODIFICATION: https://www.rfc-editor.org/errata/eid8343\n filter-query / ; (includes singular-query)\n function-expr /\n literal\n\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5\nsegment = child-segment / descendant-segment\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.1.1\nchild-segment = bracketed-selection /\n (dot-prefix ; MODIFICATION: surrogate text rule used\n (wildcard-selector /\n member-name-shorthand))\n\nbracketed-selection = left-bracket S selector *(S comma S selector) S right-bracket\n ; MODIFICATION: surrogate text rule used\n\nmember-name-shorthand = name-first *name-char\nname-first = ALPHA /\n "_" /\n %x80-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\nname-char = name-first / DIGIT\n\nDIGIT = %x30-39 ; 0-9\nALPHA = %x41-5A / %x61-7A ; A-Z / a-z\n\n; https://www.rfc-editor.org/rfc/rfc9535#section-2.5.2.1\ndescendant-segment = double-dot-prefix (bracketed-selection / ; MODIFICATION: surrogate text rule used\n wildcard-selector /\n member-name-shorthand)\n\n; https://www.rfc-editor.org/rfc/rfc9535#name-normalized-paths\nnormalized-path = root-identifier *(normal-index-segment)\nnormal-index-segment = left-bracket normal-selector right-bracket ; MODIFICATION: surrogate text rule used\nnormal-selector = normal-name-selector / normal-index-selector\nnormal-name-selector = squote *normal-single-quoted squote ; \'string\', MODIFICATION: surrogate text rule used\nnormal-single-quoted = normal-unescaped /\n ESC normal-escapable\nnormal-unescaped = ; omit %x0-1F control codes\n %x20-26 /\n ; omit 0x27 \'\n %x28-5B /\n ; omit 0x5C \\\n %x5D-D7FF /\n ; skip surrogate code points\n %xE000-10FFFF\n\nnormal-escapable = %x62 / ; b BS backspace U+0008\n %x66 / ; f FF form feed U+000C\n %x6E / ; n LF line feed U+000A\n %x72 / ; r CR carriage return U+000D\n %x74 / ; t HT horizontal tab U+0009\n "\'" / ; \' apostrophe U+0027\n "\\" / ; \\ backslash (reverse solidus) U+005C\n (%x75 normal-hexchar)\n ; certain values u00xx U+00XX\nnormal-hexchar = "0" "0"\n (\n ("0" %x30-37) / ; "00"-"07"\n ; omit U+0008-U+000A BS HT LF\n ("0" %x62) / ; "0b"\n ; omit U+000C-U+000D FF CR\n ("0" %x65-66) / ; "0e"-"0f"\n ("1" normal-HEXDIG)\n )\nnormal-HEXDIG = DIGIT / %x61-66 ; "0"-"9", "a"-"f"\nnormal-index-selector = "0" / (DIGIT1 *DIGIT)\n ; non-negative decimal integer\n\n; Surrogate named rules\ndot-prefix = "."\ndouble-dot-prefix = ".."\nleft-bracket = "["\nright-bracket = "]"\nleft-paren = "("\nright-paren = ")"\ncomma = ","\ncolon = ":"\ndquote = %x22 ; "\nsquote = %x27 ; \'\nquestionmark = "?"\ndisjunction = "||"\nconjunction = "&&"\n'}};const sr=class extends tr{},nr=e=>{if(!Array.isArray(e))throw new sr("Selectors must be an array, got: "+typeof e,{selectors:e});try{return`$${e.map(e=>{if("string"==typeof e)return`['${(e=>{if("string"!=typeof e)throw new TypeError("Selector must be a string");let t="";for(const s of e){const e=s.codePointAt(0);switch(e){case 8:t+="\\b";break;case 9:t+="\\t";break;case 10:t+="\\n";break;case 12:t+="\\f";break;case 13:t+="\\r";break;case 39:t+="\\'";break;case 92:t+="\\\\";break;default:t+=e<=31?`\\u${e.toString(16).padStart(4,"0")}`:s}}return t})(e)}']`;if("number"==typeof e){if(!Number.isSafeInteger(e)||e<0)throw new TypeError(`Index selector must be a non-negative safe integer, got: ${e}`);return`[${e}]`}throw new TypeError("Selector must be a string or non-negative integer, got: "+typeof e)}).join("")}`}catch(t){throw new sr("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},rr=(e,t,s,n)=>{const{realm:r}=e,{value:i}=s;if(r.isObject(t)&&r.hasProperty(t,i)){n(r.getProperty(t,i),i)}},ir=(e,t,s,n)=>{const{realm:r}=e,{value:i}=s;if(!r.isArray(t))return;const o=r.getLength(t),c=((e,t)=>e>=0?e:t+e)(i,o);if(c>=0&&c<o){n(r.getElement(t,c),c)}},or=(e,t,s,n)=>{const{realm:r}=e;for(const[e,s]of r.entries(t))n(s,e)},cr=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),ar=(e,t,s,n)=>{const{realm:r}=e,{start:i,end:o,step:c}=s;if(!r.isArray(t))return;const a=((e,t,s,n)=>{const r=s??1;if(0===r)return null;let i,o;if(r>0){const s=0,r=n,c=null!==e?cr(e,n):s,a=null!==t?cr(t,n):r;i=Math.max(c,0),o=Math.min(a,n)}else{const s=n-1,r=-n-1,c=null!==e?e>=0?Math.min(e,n-1):Math.max(n+e,-1):s,a=null!==t?t>=0?Math.min(t,n-1):Math.max(n+t,-1):r;o=Math.min(c,n-1),i=Math.max(a,-1)}return{lower:i,upper:o,step:r}})(i,o,c,r.getLength(t));if(null===a)return;const{lower:l,upper:u,step:d}=a;if(d>0)for(let e=l;e<u;e+=d){n(r.getElement(t,e),e)}else for(let e=u;e>l;e+=d){n(r.getElement(t,e),e)}},lr=(e,t,s,n)=>n.value,ur=(e,t,s)=>{const{realm:n}=e,{selector:r}=s;switch(r.type){case"NameSelector":{const{value:e}=r;return n.isObject(t)&&n.hasProperty(t,e)?n.getProperty(t,e):void 0}case"IndexSelector":{const{value:e}=r;if(!n.isArray(t))return;const s=n.getLength(t),i=e>=0?e:s+e;return i>=0&&i<s?n.getElement(t,i):void 0}default:return}},dr=(e,t,s,n)=>{const{selectors:r}=s;for(const s of r)Er(e,t,s,n)},pr=(e,t,s)=>{const n=[],r=e=>{n.push(e)},{selector:i}=s;switch(i.type){case"BracketedSelection":dr(e,t,i,r);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":Er(e,t,i,r)}return n},hr=(e,t,s,n)=>{let r=s;for(const t of n){const s=[];if("DescendantSegment"===t.type){const n=r=>{const{realm:i}=e,o=pr(e,r,t);s.push(...o);for(const[,e]of i.entries(r))n(e)};for(const e of r)n(e)}else for(const n of r){const r=pr(e,n,t);s.push(...r)}r=s}return r},mr=(e,t,s,n)=>{const{query:r}=n;let i;switch(r.type){case"RelQuery":i=((e,t,s,n)=>{const{segments:r}=n;return 0===r.length?[s]:hr(e,0,[s],r)})(e,0,s,r);break;case"JsonPathQuery":i=((e,t,s,n)=>{const{segments:r}=n;return 0===r.length?[t]:hr(e,0,[t],r)})(e,t,0,r);break;default:i=[]}return o=i,Object.defineProperty(o,"_isNodelist",{value:!0,enumerable:!1,writable:!1}),o;var o};let fr;const yr=(e,t,s,n)=>{const{name:r,arguments:i}=n,o=e.functions[r];if("function"!=typeof o)return;const c=i.map(n=>((e,t,s,n)=>{switch(n.type){case"Literal":case"RelSingularQuery":case"AbsSingularQuery":case"FunctionExpr":return gr(e,t,s,n);case"FilterQuery":return mr(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?mr(e,t,s,n.expression):"FunctionExpr"===n.expression.type?gr(e,t,s,n.expression):fr(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return fr(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},gr=(e,t,s,n)=>{switch(n.type){case"Literal":return lr(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let r=s;for(const t of n.segments)if(r=ur(e,r,t),void 0===r)return;return r})(e,0,s,n);case"AbsSingularQuery":return((e,t,s,n)=>{let r=t;for(const t of n.segments)if(r=ur(e,r,t),void 0===r)return;return r})(e,t,0,n);case"FunctionExpr":return yr(e,t,s,n);default:return}},xr=(e,t,s,n)=>{const{left:r,op:i,right:o}=n,c=gr(e,t,s,r),a=gr(e,t,s,o);return e.realm.compare(c,i,a)},vr=e=>Array.isArray(e),br=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!br(e,t,s,n.left)||br(e,t,s,n.right);case"LogicalAndExpr":return!!br(e,t,s,n.left)&&br(e,t,s,n.right);case"LogicalNotExpr":return!br(e,t,s,n.expression);case"TestExpr":{const{expression:r}=n;if("FilterQuery"===r.type){return mr(e,t,s,r).length>0}if("FunctionExpr"===r.type){const n=yr(e,t,s,r);return"boolean"==typeof n?n:void 0!==n&&(vr(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return xr(e,t,s,n);default:return!1}};fr=br;const wr=br,Sr=(e,t,s,n)=>{const{realm:r,root:i}=e,{expression:o}=s;for(const[s,c]of r.entries(t)){wr(e,i,c,o)&&n(c,s)}},Er=(e,t,s,n)=>{switch(s.type){case"NameSelector":rr(e,t,s,n);break;case"IndexSelector":ir(e,t,s,n);break;case"WildcardSelector":or(e,t,s,n);break;case"SliceSelector":ar(e,t,s,n);break;case"FilterSelector":Sr(e,t,s,n)}};new Map;class jr{node;key;index;parent;parentPath;inList;#e=!1;#t=!1;#s=!1;#n=!1;#r;#i=!1;constructor(e,t,s,n,r){this.node=e,this.parent=t,this.parentPath=s,this.key=n,this.index=r&&"number"==typeof n?n:void 0,this.inList=r}get shouldSkip(){return this.#e}get shouldStop(){return this.#t}get removed(){return this.#s}isRoot(){return null===this.parentPath}get depth(){let e=0,t=this.parentPath;for(;null!==t;)e+=1,t=t.parentPath;return e}getAncestry(){const e=[];let t=this.parentPath;for(;null!==t;)e.push(t),t=t.parentPath;return e}getAncestorNodes(){return this.getAncestry().map(e=>e.node)}getPathKeys(){const e=[];let t=this;for(;null!==t&&void 0!==t.key;)e.unshift(t.key),t=t.parentPath;return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?nr(t):Zn(t)}findParent(e){let t=this.parentPath;for(;null!==t;){if(e(t))return t;t=t.parentPath}return null}find(e){return e(this)?this:this.findParent(e)}skip(){this.#e=!0}stop(){this.#t=!0}replaceWith(e){this.#i&&console.warn("Warning: replaceWith() called on a stale Path. This path belongs to a node whose visit has already completed. The replacement will have no effect. To replace a parent node, do so from the parent's own visitor."),this.#n=!0,this.#r=e,this.node=e}remove(){this.#i&&console.warn("Warning: remove() called on a stale Path. This path belongs to a node whose visit has already completed. The removal will have no effect. To remove a parent node, do so from the parent's own visitor."),this.#s=!0}_getReplacementNode(){return this.#r}_wasReplaced(){return this.#n}_reset(){this.#e=!1,this.#t=!1,this.#s=!1,this.#n=!1,this.#r=void 0}_markStale(){this.#i=!0}}const Or=ls(1,gs(_n,Tt(Qt,N("[object Promise]")))),Fr=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},kr=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},Ar=e=>ge(e),$r=e=>fn(e),Pr=(e,t,s)=>{je(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},Ir=e=>je(e)?["key","value"]:Se(e)||Ee(e)?["content"]:[],Cr=(e,t)=>{if(void 0!==e[t])return e[t];const s=t.length;for(const n in e){if(!n.includes("|"))continue;const r=n.indexOf(t);if(-1===r)continue;const i=0===r||"|"===n[r-1],o=r+s===n.length||"|"===n[r+s];if(i&&o)return e[n]}},Nr=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=Cr(n,t);if(!s&&"function"==typeof i)return i;if(null!=i){const e=i[r];if("function"==typeof e)return e}const o=n[r];if("function"==typeof o)return o;if(null!=o){const e=Cr(o,t);if("function"==typeof e)return e}return null},Tr=(e,t={})=>{const{visitFnGetter:s=Nr,nodeTypeGetter:n=Fr,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=Dr(t,a),n=i.call(e[u],s);if(Or(n))throw new on("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=Dr(t,r),n=i.call(e[a],s);if(Or(n))throw new on("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}},Mr=(e,t={})=>{const{visitFnGetter:s=Nr,nodeTypeGetter:n=Fr,exposeEdits:r=!1}=t,i=Symbol("internal-skip"),o=Symbol("break"),c=new Array(e.length).fill(i);return{async enter(t){let a=t.node,l=!1;for(let u=0;u<e.length;u+=1)if(c[u]===i){const i=s(e[u],n(a),!1);if("function"==typeof i){const s=Dr(t,a),n=await i.call(e[u],s);if(s.shouldStop){c[u]=o;break}if(s.shouldSkip&&(c[u]=a),s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();if(!r)return t.replaceWith(e),e;a=e,l=!0}else if(void 0!==n){if(!r)return t.replaceWith(n),n;a=n,l=!0}}}if(l)return t.replaceWith(a),a},async leave(t){const r=t.node;for(let a=0;a<e.length;a+=1)if(c[a]===i){const i=s(e[a],n(r),!0);if("function"==typeof i){const s=Dr(t,r),n=await i.call(e[a],s);if(s.shouldStop){c[a]=o;break}if(s.removed)return void t.remove();if(s._wasReplaced()){const e=s._getReplacementNode();return t.replaceWith(e),e}if(void 0!==n)return t.replaceWith(n),n}}else c[a]===r&&(c[a]=i)}}};function Dr(e,t){return new jr(t,e.parent,e.parentPath,e.key,e.inList)}function*Rr(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,mutable:l,mutationFn:u}=s,d="function"==typeof n;let p,h,m=Array.isArray(e),f=[e],y=-1,g=[],x=e,v=null,b=null;const w=[];do{y+=1;const e=y===f.length;let s;const S=e&&0!==g.length;if(e){if(s=0===w.length?void 0:v?.key,x=h,h=w.pop(),b=v?.parentPath?.parentPath??null,S)if(l)for(const[e,t]of g)u(x,e,t);else if(m){x=x.slice();let e=0;for(const[t,s]of g){const n=t-e;null===s?(x.splice(n,1),e+=1):x[n]=s}}else{x=c(x);for(const[e,t]of g)x[e]=t}if(void 0!==p){y=p.index,f=p.keys,g=p.edits;const e=p.inArray;if(b=p.parentPath,p=p.prev,S&&!l){const t=e?y:f[y];g.push([t,x])}m=e}}else if(void 0!==h&&(s=m?y:f[y],x=h[s],void 0===x))continue;if(!Array.isArray(x)){if(!o(x))throw new on(`Invalid AST Node: ${String(x)}`,{node:x});if(a&&w.includes(x))continue;v=new jr(x,h,b,s,m);const n=Nr(t,i(x),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:v,isLeaving:e};if(v.shouldStop)break;if(v.shouldSkip&&!e)continue;if(v.removed){if(g.push([s,null]),!e)continue}else if(v._wasReplaced()){const t=v._getReplacementNode();if(g.push([s,t]),!e){if(!o(t))continue;x=t}}else if(void 0!==i&&(g.push([s,i]),!e)){if(!o(i))continue;x=i}v._markStale()}}if(!e){if(p={inArray:m,index:y,keys:f,edits:g,parentPath:b,prev:p},m=Array.isArray(x),m)f=x;else if(d)f=n(x);else{const e=i(x);f=void 0!==e?n[e]??[]:[]}y=-1,g=[],void 0!==h&&w.push(h),h=x,b=v}}while(void 0!==p);return 0!==g.length?g.at(-1)[1]:e}Tr[Symbol.for("nodejs.util.promisify.custom")]=Mr;const qr=(e,t,s={})=>{const n=Rr(e,t,{keyMap:s.keyMap??Ir,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Fr,nodePredicate:s.nodePredicate??Ar,nodeCloneFn:s.nodeCloneFn??$r,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??Pr});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(Or(s))throw new on("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},Lr=async(e,t,s={})=>{const n=Rr(e,t,{keyMap:s.keyMap??Ir,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Fr,nodePredicate:s.nodePredicate??Ar,nodeCloneFn:s.nodeCloneFn??$r,detectCycles:s.detectCycles??!0,mutable:s.mutable??!1,mutationFn:s.mutationFn??Pr});let r=n.next();for(;!r.done;){const e=r.value,s=await e.visitFn.call(t,e.path);r=n.next(s)}return r.value};qr[Symbol.for("nodejs.util.promisify.custom")]=Lr,jr.prototype.traverse=function(e,t){return qr(this.node,e,t)},jr.prototype.traverseAsync=function(e,t){return Lr(this.node,e,t)};const Br=class extends $n{specObj;passingOptionsNames=["specObj","parent"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Hn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=mt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Zt($s,["visitors",...e],this.specObj)?mt(["visitors",...e],this.specObj):mt(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof Pn&&n?.constructor===Pn?pn(t):(qr(t,n,s),n.element)}};const _r=class extends Br{specPath;ignoredFields;constructor({specPath:e,ignoredFields:t,...s}){super({...s}),this.specPath=e,this.ignoredFields=t||[]}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=En(t);if(xe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new _(pn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else this.ignoredFields.includes(i)||this.element.content.push(pn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Jr=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Vr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Vr(s,[...t,s])},Hr=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Vr(e));for(;s.every(e=>e.length>0);){const e=s.map(e=>e.pop()),n=e[0];if(!e.every(e=>e===n))break;t=n}return t})(...e))&&void 0!==n?n:Object.prototype,i=Object.create(r),o=Vr(r);for(let t of e){let e=Vr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Jr(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},Ur=e=>e.filter((t,s)=>e.indexOf(t)==s),zr=(e,t)=>{const s=t.map(e=>Vr(e));let n=0,r=!0;for(;r;){r=!1;for(let i=t.length-1;i>=0;i--){const t=s[i][n];if(null!=t&&(r=!0,null!=Object.getOwnPropertyDescriptor(t,e)))return s[i][0]}n++}},Gr=(e,t=Object.prototype)=>new Proxy({},{getPrototypeOf:()=>t,setPrototypeOf(){throw Error("Cannot set prototype of Proxies created by ts-mixer")},getOwnPropertyDescriptor:(t,s)=>Object.getOwnPropertyDescriptor(zr(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==zr(n,e)||void 0!==t[n],get:(s,n)=>(zr(n,e)||t)[n],set(t,s,n){const r=zr(s,e);if(void 0===r)throw new Error("Cannot set new properties on Proxies created by ts-mixer");return r[s]=n,!0},deleteProperty(){throw new Error("Cannot delete properties on Proxies created by ts-mixer")},ownKeys:()=>e.map(Object.getOwnPropertyNames).reduce((e,t)=>t.concat(e.filter(e=>t.indexOf(e)<0)))}),Xr=null,Wr="copy",Kr="copy",Yr="deep",Qr=new WeakMap,Zr=e=>Qr.get(e),ei=(e,t)=>{var s,n;const r=Ur([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=Ur([...null!==(s=null==e?void 0:e[o])&&void 0!==s?s:[],...null!==(n=null==t?void 0:t[o])&&void 0!==n?n:[]]);return i},ti=(e,t)=>{var s,n,r,i;return{property:ei(null!==(s=null==e?void 0:e.property)&&void 0!==s?s:{},null!==(n=null==t?void 0:t.property)&&void 0!==n?n:{}),method:ei(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},si=(e,t)=>{var s,n,r,i,o,c;return{class:Ur([...null!==(s=null==e?void 0:e.class)&&void 0!==s?s:[],...null!==(n=null==t?void 0:t.class)&&void 0!==n?n:[]]),static:ti(null!==(r=null==e?void 0:e.static)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.static)&&void 0!==i?i:{}),instance:ti(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},ni=new Map,ri=(...e)=>{const t=((...e)=>{var t;const s=new Set,n=new Set([...e]);for(;n.size>0;)for(let e of n){const r=[...Vr(e.prototype).map(e=>e.constructor),...null!==(t=Zr(e))&&void 0!==t?t:[]].filter(e=>!s.has(e));for(let e of r)n.add(e);s.add(e),n.delete(e)}return[...s]})(...e).map(e=>ni.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>si(e,t))},ii=e=>{let t=ni.get(e);return t||(t={},ni.set(e,t)),t};function oi(...e){var t,s,n;const r=e.map(e=>e.prototype),i=Xr;if(null!==i){const e=r.map(e=>e[i]).filter(e=>"function"==typeof e),t=function(...t){for(let s of e)s.apply(this,t)},s={[i]:t};r.push(s)}function o(...t){for(const s of e)Jr(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===Kr?Hr(r,o):(c=r,a=o,Gr([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===Wr?Hr(e,null,["prototype"]):Gr(e,Function.prototype));let l=o;if("none"!==Yr){const r="deep"===Yr?ri(...e):((...e)=>{const t=e.map(e=>ii(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>si(e,t))})(...e);for(let e of null!==(t=null==r?void 0:r.class)&&void 0!==t?t:[]){const t=e(l);t&&(l=t)}ci(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),ci(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,d;return u=l,d=e,Qr.set(u,d),l}const ci=(e,t)=>{const s=e.property,n=e.method;if(s)for(let e in s)for(let n of s[e])n(t,e);if(n)for(let e in n)for(let s of n[e])s(t,e,Object.getOwnPropertyDescriptor(t,e))};const ai=function(){return!1};const li=class extends Br{specPath;ignoredFields;fieldPatternPredicate=ai;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,...n}){super({...n}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=En(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new _(pn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(pn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const ui=class extends li{constructor(e){super(e),this.fieldPatternPredicate=Vn}};const di=class{parent;constructor({parent:e}){this.parent=e}},pi=oi(_r,di,Pn),hi=oi(_r,Pn),mi=oi(_r,Pn),fi=oi(_r,Pn),yi=oi(Br,di,Pn),gi=oi(Br,di,Pn),xi=oi(Br,di,Pn),vi=oi(Br,di,Pn),bi=oi(Br,di,Pn),wi=oi(ui,di,Pn),Si=oi(ui,di,Pn),Ei=oi(ui,di,Pn),ji=oi(ui,di,Pn);const Oi=class extends pi{constructor(e){super(e),this.element=new Xs,this.specPath=In(["document","objects","JSONSchema"])}get defaultDialectIdentifier(){return"http://json-schema.org/draft-04/schema#"}ObjectElement(e){const t=e.node;return this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,_r.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Tn(this.parent)&&!xe(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof Xs&&!xe(e.get("$schema"))){const e=Cn(En(this.parent.meta.get("inheritedDialectIdentifier")),En(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?pn(this.parent.meta.get("ancestorsSchemaIdentifiers")??new ye):new ye,n=En(e.get(t));Vn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},Fi=e=>Ee(e)&&e.hasKey("$ref");const ki=class extends vi{ObjectElement(e){const t=e.node,s=Fi(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new ye,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ai=class extends Pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const $i=class extends ji{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-properties"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Pi=class extends Ei{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Ii=class extends Si{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Ci=class extends Pn{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const Ni=class extends Pn{StringElement(e){super.enter(e),this.element.classes.push("json-schema-type")}ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-type")}};const Ti=class extends yi{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Mi=class extends gi{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Di=class extends xi{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ri=class extends wi{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Fi(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const qi=class extends bi{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-links")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Li=class extends hi{constructor(e){super(e),this.element=new Ws,this.specPath=In(["document","objects","JSONReference"])}ObjectElement(e){_r.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&this.element.classes.push("reference-element")}};const Bi=class extends Pn{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const _i=function(){return!0};const Ji=at(function(e,t,s){return ls(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Vi=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var Hi=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const Ui=Hi;const zi=i(function(e){return o(0,e)});function Gi(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Xi=i(Gi);const Wi=vs(nt);const Ki=ls(1,$s(Array.isArray)?Array.isArray:Tt(P,Dt("Array")));const Yi=gs(Ki,Ln);function Qi(e){return function(e){if(Array.isArray(e))return Zi(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){if("string"==typeof e)return Zi(e,t);var s={}.toString.call(e).slice(8,-1);return"Object"===s&&e.constructor&&(s=e.constructor.name),"Map"===s||"Set"===s?Array.from(e):"Arguments"===s||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(s)?Zi(e,t):void 0}}(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 Zi(e,t){(null==t||t>e.length)&&(t=e.length);for(var s=0,n=Array(t);s<t;s++)n[s]=e[s];return n}var eo=Tt(Ui(Vi(function(e,t){return e.length>t.length})),zi,dt("length")),to=Ds(function(e,t,s){var n=s.apply(void 0,Qi(e));return Wi(n)?Xi(n):t});const so=Ji(Yi,function(e){var t=eo(e);return ls(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Pt(to(s),void 0,e)})},Nn);const no=class extends Br{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Ji(e,In(t),Nn)),n=so(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const ro=class extends no{constructor(e){super(e),this.alternator=[{predicate:Fi,specPath:["document","objects","JSONReference"]},{predicate:_i,specPath:["document","objects","JSONSchema"]}]}};const io=class extends fi{constructor(e){super(e),this.element=new Ks,this.specPath=In(["document","objects","Media"])}};const oo=class extends mi{constructor(e){super(e),this.element=new Ys,this.specPath=In(["document","objects","LinkDescription"])}},co={visitors:{value:Pn,JSONSchemaOrJSONReferenceVisitor:ro,document:{objects:{JSONSchema:{element:"jSONSchemaDraft4",$visitor:Oi,fixedFields:{id:{$visitor:Pn,alias:"idField"},$schema:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},additionalItems:ro,items:{$visitor:ki,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ai,properties:$i,additionalProperties:ro,patternProperties:Pi,dependencies:Ii,enum:Ci,type:Ni,allOf:Ti,anyOf:Mi,oneOf:Di,not:ro,definitions:Ri,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:qi,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"jSONReference",$visitor:Li,fixedFields:{$ref:Bi}},Media:{element:"media",$visitor:io,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:oo,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:ro,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:ro}}}}}},ao=Gs(co),lo=e=>Object.entries(e).map(([e,t])=>Ns(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Xs,"fixedFields",{get:()=>lo(ao.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Ws,"fixedFields",{get:()=>lo(ao.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(Ks,"fixedFields",{get:()=>lo(ao.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(Ys,"fixedFields",{get:()=>lo(ao.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const uo=class extends Xs{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft6"}get idField(){throw new p("id keyword from Core vocabulary has been renamed to $id.")}set idField(e){throw new p("id keyword from Core vocabulary has been renamed to $id.")}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get containsField(){return this.get("contains")}set containsField(e){this.set("contains",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}};const po=class extends Ys{get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get schema(){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}set schema(e){throw new p("schema keyword from Hyper-Schema vocabulary has been renamed to submissionSchema.")}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get method(){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}set method(e){throw new p("method keyword from Hyper-Schema vocabulary has been removed.")}get encType(){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}set encType(e){throw new p("encType keyword from Hyper-Schema vocabulary has been renamed to submissionEncType.")}get submissionEncType(){return this.get("submissionEncType")}set submissionEncType(e){this.set("submissionEncType",e)}};var ho=at(function e(t,s,n){if(0===t.length)return s;var r=t[0];if(t.length>1){var i=ut(r,n);(nt(i)||"object"!=typeof i)&&(i=lt(t[1])?[]:{}),s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(lt(e)&&gt(s)){var n=e<0?s.length+e:e,r=[].concat(s);return r[n]=t,r}var i={};for(var o in s)i[o]=s[o];return i[e]=t,i}(r,s,n)});const mo=ho;const fo=at(function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n});var yo=at(function(e,t,s){return mo([e],t,s)});const go=yo;var xo=g(function e(t,s){if(null==s)return s;switch(t.length){case 0:return s;case 1:return function(e,t){if(null==t)return t;if(lt(e)&&gt(t))return fo(e,1,t);var s={};for(var n in t)s[n]=t[n];return delete s[e],s}(t[0],s);default:var n=t[0],r=Array.prototype.slice.call(t,1);return null==s[n]?function(e,t){if(lt(e)&&gt(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):go(n,e(r,s[n]),s)}});const vo=xo;const bo=class extends Oi{constructor(e){super(e),this.element=new uo}get defaultDialectIdentifier(){return"http://json-schema.org/draft-06/schema#"}BooleanElement(e){this.enter(e),this.element.classes.push("boolean-json-schema")}handleSchemaIdentifier(e,t="$id"){return super.handleSchemaIdentifier(e,t)}};const wo=class extends ki{BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const So=class extends Pn{ArrayElement(e){this.enter(e),this.element.classes.push("json-schema-examples")}};const Eo=class extends oo{constructor(e){super(e),this.element=new po}},jo=Tt(mo(["visitors","document","objects","JSONSchema","element"],"jSONSchemaDraft6"),mo(["visitors","document","objects","JSONSchema","$visitor"],bo),vo(["visitors","document","objects","JSONSchema","fixedFields","id"]),mo(["visitors","document","objects","JSONSchema","fixedFields","$id"],{$ref:"#/visitors/value"}),mo(["visitors","document","objects","JSONSchema","fixedFields","contains"],{$visitor:co.visitors.JSONSchemaOrJSONReferenceVisitor,alias:"containsField"}),mo(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:wo,alias:"itemsField"}),mo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],co.visitors.JSONSchemaOrJSONReferenceVisitor),mo(["visitors","document","objects","JSONSchema","fixedFields","const"],{$ref:"#/visitors/value"}),mo(["visitors","document","objects","JSONSchema","fixedFields","examples"],So),mo(["visitors","document","objects","LinkDescription","$visitor"],Eo),mo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],co.visitors.JSONSchemaOrJSONReferenceVisitor),vo(["visitors","document","objects","LinkDescription","fixedFields","schema"]),mo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],co.visitors.JSONSchemaOrJSONReferenceVisitor),vo(["visitors","document","objects","LinkDescription","fixedFields","method"]),vo(["visitors","document","objects","LinkDescription","fixedFields","encType"]),mo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],{$ref:"#/visitors/value"}))(co),Oo=Gs(jo),Fo=e=>Object.entries(e).map(([e,t])=>Ns(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(uo,"fixedFields",{get:()=>Fo(Oo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(po,"fixedFields",{get:()=>Fo(Oo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ko=class extends uo{constructor(e,t,s){super(e,t,s),this.element="JSONSchemaDraft7"}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",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 not(){return this.get("not")}set not(e){this.set("not",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 media(){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}set media(e){throw new p('media keyword from Hyper-Schema vocabulary has been moved to validation vocabulary as "contentMediaType" / "contentEncoding"')}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}};const Ao=class extends po{get anchor(){return this.get("anchor")}set anchor(e){this.set("anchor",e)}get anchorPointer(){return this.get("anchorPointer")}set anchorPointer(e){this.set("anchorPointer",e)}get templatePointers(){return this.get("templatePointers")}set templatePointers(e){this.set("templatePointers",e)}get templateRequired(){return this.get("templateRequired")}set templateRequired(e){this.set("templateRequired",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}set mediaType(e){throw new p("mediaType keyword from Hyper-Schema vocabulary has been renamed to targetMediaType.")}get targetMediaType(){return this.get("targetMediaType")}set targetMediaType(e){this.set("targetMediaType",e)}get targetHints(){return this.get("targetHints")}set targetHints(e){this.set("targetHints",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}get submissionEncType(){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}set submissionEncType(e){throw new p("submissionEncType keyword from Hyper-Schema vocabulary has been renamed to submissionMediaType.")}get submissionMediaType(){return this.get("submissionMediaType")}set submissionMediaType(e){this.set("submissionMediaType",e)}};const $o=class extends bo{constructor(e){super(e),this.element=new ko}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Po=class extends Eo{constructor(e){super(e),this.element=new Ao}},Io=Tt(mo(["visitors","document","objects","JSONSchema","element"],"jSONSchemaDraft7"),mo(["visitors","document","objects","JSONSchema","$visitor"],$o),mo(["visitors","document","objects","JSONSchema","fixedFields","$comment"],jo.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","if"],jo.visitors.JSONSchemaOrJSONReferenceVisitor),mo(["visitors","document","objects","JSONSchema","fixedFields","then"],jo.visitors.JSONSchemaOrJSONReferenceVisitor),mo(["visitors","document","objects","JSONSchema","fixedFields","else"],jo.visitors.JSONSchemaOrJSONReferenceVisitor),vo(["visitors","document","objects","JSONSchema","fixedFields","media"]),mo(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],jo.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],jo.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],jo.visitors.value),mo(["visitors","document","objects","LinkDescription","$visitor"],Po),mo(["visitors","document","objects","LinkDescription","fixedFields","anchor"],jo.visitors.value),mo(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],jo.visitors.value),vo(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),mo(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],jo.visitors.value),mo(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],jo.visitors.value),mo(["visitors","document","objects","LinkDescription","fixedFields","description"],jo.visitors.value),mo(["visitors","document","objects","LinkDescription","fixedFields","$comment"],jo.visitors.value),mo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],jo.visitors.JSONSchemaOrJSONReferenceVisitor),vo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),mo(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],jo.visitors.value))(jo),Co=Gs(Io),No=e=>Object.entries(e).map(([e,t])=>Ns(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(ko,"fixedFields",{get:()=>No(Co.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Ao,"fixedFields",{get:()=>No(Co.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const To=class extends ko{constructor(e,t,s){super(e,t,s),this.element="JSONSchema201909"}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $recursiveAnchor(){return this.get("$recursiveAnchor")}set $recursiveAnchor(e){this.set("$recursiveAnchor",e)}get $recursiveRef(){return this.get("$recursiveRef")}set $recursiveRef(e){this.set("$recursiveRef",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 definitions(){throw new p("definitions keyword from Validation vocabulary has been renamed to $defs.")}set definitions(e){throw new p("definitions keyword from Validation vocabulary has been renamed to $defs.")}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 dependencies(){throw new p("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}set dependencies(e){throw new p("dependencies keyword from Validation vocabulary has been renamed to dependentSchemas.")}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get contains(){return this.get("contains")}set contains(e){this.set("contains",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",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 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 dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}};const Mo=class extends Ao{constructor(e,t,s){super(e,t,s),this.element="linkDescription"}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const Do=class extends $o{constructor(e){super(e),this.element=new To}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2019-09/schema"}ObjectElement(e){const t=e.node;this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,_r.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}};const Ro=class extends Pn{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-$vocabulary")}};const qo=class extends Pn{StringElement(e){this.enter(e),this.element.classes.push("reference-value")}},Lo=oi(Br,di,Pn),Bo=oi(ui,di,Pn);const _o=class extends Bo{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-$defs"),this.specPath=In(["document","objects","JSONSchema"])}};const Jo=class extends Lo{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Vo=class extends Lo{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ho=class extends Lo{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Uo=class extends Bo{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=In(["document","objects","JSONSchema"])}};const zo=class extends Lo{ObjectElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}ArrayElement(e){const t=e.node;this.element=new ye,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const Go=class extends Bo{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-properties"),this.specPath=In(["document","objects","JSONSchema"])}};const Xo=class extends Bo{constructor(e){super(e),this.element=new J,this.element.classes.push("json-schema-patternProperties"),this.specPath=In(["document","objects","JSONSchema"])}};const Wo=class extends Pn{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-dependentRequired")}};const Ko=class extends Po{constructor(e){super(e),this.element=new Mo}},Yo=Tt(mo(["visitors","document","objects","JSONSchema","element"],"jSONSchema201909"),mo(["visitors","document","objects","JSONSchema","$visitor"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Ro),mo(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Io.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Io.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Io.visitors.value),vo(["visitors","document","objects","JSONReference","$visitor"]),mo(["visitors","document","objects","JSONSchema","fixedFields","$ref"],qo),vo(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),mo(["visitors","document","objects","JSONSchema","fixedFields","$defs"],_o),mo(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Jo),mo(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Vo),mo(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Ho),mo(["visitors","document","objects","JSONSchema","fixedFields","not"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","if"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","then"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","else"],Do),vo(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),mo(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],Uo),mo(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:zo,alias:"itemsField"}),mo(["visitors","document","objects","JSONSchema","fixedFields","contains"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","properties"],Go),mo(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],Xo),mo(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Do),mo(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Io.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Io.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],Wo),mo(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Io.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Do),mo(["visitors","document","objects","LinkDescription","element"],"linkDescription"),mo(["visitors","document","objects","LinkDescription","$visitor"],Ko),mo(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Do),mo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Do),mo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Do),mo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Do))(Io),Qo=Gs(Yo),Zo=e=>Object.entries(e).map(([e,t])=>Ns(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(To,"fixedFields",{get:()=>Zo(Qo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Mo,"fixedFields",{get:()=>Zo(Qo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ec=class extends To{constructor(e,t,s){super(e,t,s),this.element="JSONSchema202012"}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $recursiveAnchor(){throw new p("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}set $recursiveAnchor(e){throw new p("$recursiveAnchor keyword from Core vocabulary has been renamed to $dynamicAnchor.")}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $recursiveRef(){throw new p("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}set $recursiveRef(e){throw new p("$recursiveRef keyword from Core vocabulary has been renamed to $dynamicRef.")}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}};const tc=class extends Mo{get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get hrefSchema(){return this.get("hrefSchema")}set hrefSchema(e){this.set("hrefSchema",e)}get headerSchema(){return this.get("headerSchema")}set headerSchema(e){this.set("headerSchema",e)}get submissionSchema(){return this.get("submissionSchema")}set submissionSchema(e){this.set("submissionSchema",e)}};const sc=class extends Do{constructor(e){super(e),this.element=new ec}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};const nc=class extends Lo{constructor(e){super(e),this.element=new ye,this.element.classes.push("json-schema-prefixItems")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=this.toRefractedElement(["document","objects","JSONSchema"],e);this.element.push(t)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const rc=class extends Ko{constructor(e){super(e),this.element=new tc}},ic=Tt(mo(["visitors","document","objects","JSONSchema","element"],"jSONSchema202012"),mo(["visitors","document","objects","JSONSchema","$visitor"],sc),vo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),mo(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],Yo.visitors.value),vo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),mo(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],Yo.visitors.value),mo(["visitors","document","objects","JSONSchema","fixedFields","not"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","if"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","then"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","else"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],nc),mo(["visitors","document","objects","JSONSchema","fixedFields","items"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","contains"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],sc),vo(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),mo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],sc),mo(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],sc),mo(["visitors","document","objects","LinkDescription","element"],"linkDescription"),mo(["visitors","document","objects","LinkDescription","$visitor"],rc),mo(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],sc),mo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],sc),mo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],sc),mo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],sc))(Yo),oc=Gs(ic),cc=e=>Object.entries(e).map(([e,t])=>Ns(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(ec,"fixedFields",{get:()=>cc(oc.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(tc,"fixedFields",{get:()=>cc(oc.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const ac=class extends ec{constructor(e,t,s){super(e,t,s),this.element="schema"}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 lc=class extends J{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const uc=class extends lc{};const dc=class extends J{constructor(e,t,s){super(e,t,s),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 pc=class extends dc{};const hc=class extends J{constructor(e,t,s){super(e,t,s),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 mc=class extends hc{};const fc=class extends J{constructor(e,t,s){super(e,t,s),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 yc=class extends fc{};const gc=class extends J{constructor(e,t,s){super(e,t,s),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 xc=class extends gc{};const vc=class extends J{constructor(e,t,s){super(e,t,s),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 bc=class extends vc{},wc={namespace:e=>{const{base:t}=e;return t.register("callback",H),t.register("components",z),t.register("contact",X),t.register("discriminator",K),t.register("encoding",Q),t.register("example",ee),t.register("externalDocumentation",se),t.register("header",oe),t.register("info",ae),t.register("jsonSchemaDialect",de),t.register("license",he),t.register("link",Fe),t.register("mediaType",Ae),t.register("oAuthFlow",Pe),t.register("oAuthFlows",Ce),t.register("openapi",Te),t.register("openApi3_1",Me),t.register("operation",Re),t.register("parameter",Be),t.register("pathItem",Je),t.register("paths",He),t.register("reference",Ge),t.register("requestBody",We),t.register("response",Ye),t.register("responses",Ze),t.register("schema",ac),t.register("securityRequirement",uc),t.register("securityScheme",pc),t.register("server",mc),t.register("serverVariable",yc),t.register("tag",xc),t.register("xml",bc),t}};class Sc extends ye{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Sc.primaryClass)}}const Ec=Sc;class jc extends ye{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(jc.primaryClass)}}const Oc=jc;class Fc extends ye{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Fc.primaryClass)}}const kc=Fc;class Ac extends J{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Ac.primaryClass)}}const $c=Ac;class Pc extends ye{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Pc.primaryClass),this.classes.push("servers")}}const Ic=Pc;class Cc extends ye{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Cc.primaryClass),this.classes.push("parameters")}}const Nc=Cc;class Tc extends ye{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Tc.primaryClass)}}const Mc=Tc;class Dc extends ye{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Dc.primaryClass),this.classes.push("parameters")}}const Rc=Dc;class qc extends J{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(qc.primaryClass)}}const Lc=qc;class Bc extends ye{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Bc.primaryClass),this.classes.push("security")}}const _c=Bc;class Jc extends ye{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass),this.classes.push("servers")}}const Vc=Jc;class Hc extends J{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Hc.primaryClass),this.classes.push("examples")}}const Uc=Hc;class zc extends J{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(zc.primaryClass),this.classes.push("content")}}const Gc=zc;class Xc extends J{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass),this.classes.push("content")}}const Wc=Xc;class Kc extends J{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Kc.primaryClass),this.classes.push("examples")}}const Yc=Kc;class Qc extends J{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(Qc.primaryClass)}}const Zc=Qc;class ea extends J{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(ea.primaryClass)}}const ta=ea;class sa extends J{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(sa.primaryClass)}}const na=sa;class ra extends J{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(ra.primaryClass),this.classes.push("content")}}const ia=ra;class oa extends J{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(oa.primaryClass)}}const ca=oa;class aa extends J{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(aa.primaryClass),this.classes.push("examples")}}const la=aa;class ua extends J{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(ua.primaryClass),this.classes.push("content")}}const da=ua;class pa extends J{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(pa.primaryClass)}}const ha=pa;class ma extends J{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(ma.primaryClass)}}const fa=ma;class ya extends J{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(ya.primaryClass),this.classes.push("parameters")}}const ga=ya;class xa extends J{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(xa.primaryClass),this.classes.push("examples")}}const va=xa;class ba extends J{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(ba.primaryClass)}}const wa=ba;class Sa extends J{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Sa.primaryClass)}}const Ea=Sa;class ja extends J{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(ja.primaryClass)}}const Oa=ja;class Fa extends J{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Fa.primaryClass)}}const ka=Fa;class Aa extends J{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Aa.primaryClass)}}const $a=Aa;class Pa extends J{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(Pa.primaryClass)}}const Ia=Pa;class Ca extends J{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Ca.primaryClass)}}const Na=Ca;class Ta extends J{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Ta.primaryClass)}}const Ma=Ta;class Da extends J{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Da.primaryClass)}}const Ra=Da,qa={OpenApi3_1Element:{info:(...e)=>new ae(...e),servers:(...e)=>new Ec(...e),paths:(...e)=>new He(...e),webhooks:(...e)=>new Ra(...e),components:(...e)=>new z(...e),security:(...e)=>new Oc(...e),tags:(...e)=>new kc(...e),externalDocs:(...e)=>new se(...e)},InfoElement:{contact:(...e)=>new X(...e),license:(...e)=>new he(...e)},ServerElement:{variables:(...e)=>new $c(...e)},ServerVariableElement:{enum:(...e)=>new ye(...e)},PathsElement:{"[key: *]":function(...e){return new Je(...e)}},PathItemElement:{get:(...e)=>new Re(...e),put:(...e)=>new Re(...e),post:(...e)=>new Re(...e),delete:(...e)=>new Re(...e),options:(...e)=>new Re(...e),head:(...e)=>new Re(...e),patch:(...e)=>new Re(...e),trace:(...e)=>new Re(...e),servers:(...e)=>new Ic(...e),parameters:(...e)=>new Nc(...e)},OperationElement:{tags:(...e)=>new Mc(...e),externalDocs:(...e)=>new se(...e),parameters:(...e)=>new Rc(...e),requestBody:(...e)=>new We(...e),responses:(...e)=>new Ze(...e),callbacks:(...e)=>new Lc(...e),security:(...e)=>new _c(...e),servers:(...e)=>new Vc(...e)},ParameterElement:{schema:(...e)=>new ac(...e),examples:(...e)=>new Uc(...e),content:(...e)=>new Gc(...e)},RequestBodyElement:{content:(...e)=>new Wc(...e)},MediaTypeElement:{schema:(...e)=>new ac(...e),examples:(...e)=>new Yc(...e),encoding:(...e)=>new Zc(...e)},EncodingElement:{headers:(...e)=>new ta(...e)},ResponsesElement:{"[key: *]":function(...e){return new Ye(...e)}},ResponseElement:{headers:(...e)=>new na(...e),content:(...e)=>new ia(...e),links:(...e)=>new ca(...e)},CallbackElement:{"[key: *]":function(...e){return new Je(...e)}},LinkElement:{server:(...e)=>new mc(...e)},HeaderElement:{schema:(...e)=>new ac(...e),examples:(...e)=>new la(...e),content:(...e)=>new da(...e)},ComponentsElement:{schemas:(...e)=>new ha(...e),responses:(...e)=>new fa(...e),parameters:(...e)=>new ga(...e),examples:(...e)=>new va(...e),requestBodies:(...e)=>new wa(...e),headers:(...e)=>new Ea(...e),securitySchemes:(...e)=>new Oa(...e),links:(...e)=>new ka(...e),callbacks:(...e)=>new $a(...e),pathItems:(...e)=>new Ma(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new ye(...e)}},TagElement:{externalDocs:(...e)=>new se(...e)},SchemaElement:{$vocabulary(...e){const t=new J(...e);return t.classes.push("json-schema-$vocabulary"),t},$defs(...e){const t=new J(...e);return t.classes.push("json-schema-$defs"),t},allOf(...e){const t=new ye(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new ye(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new ye(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new ac(...e),if:(...e)=>new ac(...e),then:(...e)=>new ac(...e),else:(...e)=>new ac(...e),dependentSchemas(...e){const t=new J(...e);return t.classes.push("json-schema-dependentSchemas"),t},prefixItems(...e){const t=new ye(...e);return t.classes.push("json-schema-prefixItems"),t},items:(...e)=>new ac(...e),contains:(...e)=>new ac(...e),properties(...e){const t=new J(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new J(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new ac(...e),propertyNames:(...e)=>new ac(...e),unevaluatedItems:(...e)=>new ac(...e),unevaluatedProperties:(...e)=>new ac(...e),type(...e){const t=new ye(...e);return t.classes.push("json-schema-type"),t},enum(...e){const t=new ye(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new ye(...e);return t.classes.push("json-schema-required"),t},dependentRequired(...e){const t=new J(...e);return t.classes.push("json-schema-dependentRequired"),t},examples(...e){const t=new ye(...e);return t.classes.push("json-schema-examples"),t},contentSchema:(...e)=>new ac(...e),discriminator:(...e)=>new K(...e),xml:(...e)=>new bc(...e),externalDocs:(...e)=>new se(...e)},DiscriminatorElement:{mapping:(...e)=>new Ia(...e)},SecuritySchemeElement:{flows:(...e)=>new Ce(...e)},OAuthFlowsElement:{implicit:(...e)=>new Pe(...e),password:(...e)=>new Pe(...e),clientCredentials:(...e)=>new Pe(...e),authorizationCode:(...e)=>new Pe(...e)},OAuthFlowElement:{scopes:(...e)=>new Na(...e)},[Ra.primaryClass]:{"[key: *]":function(...e){return new Je(...e)}},[$c.primaryClass]:{"[key: *]":function(...e){return new yc(...e)}},[ha.primaryClass]:{"[key: *]":function(...e){return new ac(...e)}},[fa.primaryClass]:{"[key: *]":function(...e){return new Ye(...e)}},[ga.primaryClass]:{"[key: *]":function(...e){return new Be(...e)}},[va.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[wa.primaryClass]:{"[key: *]":function(...e){return new We(...e)}},[Ea.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[Oa.primaryClass]:{"[key: *]":function(...e){return new pc(...e)}},[ka.primaryClass]:{"[key: *]":function(...e){return new Fe(...e)}},[$a.primaryClass]:{"[key: *]":function(...e){return new H(...e)}},[Ma.primaryClass]:{"[key: *]":function(...e){return new Je(...e)}},[Lc.primaryClass]:{"[key: *]":function(...e){return new H(...e)}},[Uc.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[Gc.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[Wc.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[Yc.primaryClass]:{"[key: *]":function(...e){return new ee(...e)}},[Zc.primaryClass]:{"[key: *]":function(...e){return new Q(...e)}},[ta.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[na.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[ia.primaryClass]:{"[key: *]":function(...e){return new Ae(...e)}},[ca.primaryClass]:{"[key: *]":function(...e){return new Fe(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new ac(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new ac(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new ac(...e)}},[Ec.primaryClass]:{"<*>":(...e)=>new mc(...e)},[Oc.primaryClass]:{"<*>":function(...e){return new uc(...e)}},[kc.primaryClass]:{"<*>":function(...e){return new xc(...e)}},[Ic.primaryClass]:{"<*>":function(...e){return new mc(...e)}},[Nc.primaryClass]:{"<*>":function(...e){return new Be(...e)}},[Rc.primaryClass]:{"<*>":function(...e){return new Be(...e)}},[_c.primaryClass]:{"<*>":function(...e){return new uc(...e)}},[Vc.primaryClass]:{"<*>":function(...e){return new mc(...e)}},"json-schema-allOf":{"<*>":function(...e){return new ac(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new ac(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new ac(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new ac(...e)}}},La=(e,t)=>{const s=Fr(e),n=qa[s]||qa[En(e.classes.first)];return void 0===n?void 0:Object.hasOwn(n,"[key: *]")?n["[key: *]"]:n[t]},Ba=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>xe(e)&&Zs(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(Se(n)?(i=t,r=La(n,"<*>")):je(n)&&(i=s.at(-2),r=La(i,En(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,pn(t.meta),pn(t.attributes));rn.transfer(t,o),e.replaceWith(o)}}});const _a=at(function(e,t,s){return Cn(e,ht(t,s))});var Ja=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Ht,e.prototype["@@transducer/result"]=Ut,e.prototype["@@transducer/step"]=function(e,t){return v(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Va(e){return function(t){return new Ja(e,t)}}const Ha=g(Jt([],Va,function(e,t){for(var s,n=0,r=t.length,i=[];n<r;)v(e,s=t[n],i)||(i[i.length]=s),n+=1;return i}));const Ua=class{internalStore;constructor(e,t,s){this.storageElement=e,this.storageField=t,this.storageSubField=s}get store(){if(!this.internalStore){let e=this.storageElement.get(this.storageField);Ee(e)||(e=new J,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Se(t)||(t=new ye,e.set(this.storageSubField,t)),this.internalStore=t}return this.internalStore}append(e){this.includes(e)||this.store.push(e)}includes(e){return this.store.includes(e)}},za=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t,r=(e,t)=>!!s.isParameterElement(e)&&(!!s.isParameterElement(t)&&(!!s.isStringElement(e.name)&&(!!s.isStringElement(e.in)&&(!!s.isStringElement(t.name)&&(!!s.isStringElement(t.in)&&(En(e.name)===En(t.name)&&En(e.in)===En(t.in))))))),i=[];let o;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;o=new Ua(s,e,"parameters")},leave(){o=void 0}},PathItemElement:{enter(e){const t=e.node;if(e.getAncestorNodes().reverse().some(s.isComponentsElement))return;const{parameters:n}=t;s.isArrayElement(n)?i.push([...n.content??[]]):i.push([])},leave(){i.pop()}},OperationElement:{leave(e){const t=e.node,s=e.getAncestorNodes().reverse(),a=c(i);if(!Array.isArray(a)||0===a.length)return;const l=n([...s,t]);if(o.includes(l))return;const u=_a([],["parameters","content"],t),d=Ha(r,[...u,...a]);t.parameters=new Rc(d),o.append(l)}}}}},Ga=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t;let r,i;return{visitor:{OpenApi3_1Element:{enter(t){const n=t.node;i=new Ua(n,e,"security-requirements"),s.isArrayElement(n.security)&&(r=n.security)},leave(){i=void 0,r=void 0}},OperationElement:{leave(e){const t=e.node,o=e.getAncestorNodes().reverse();if(o.some(s.isComponentsElement))return;const c=n([...o,t]);if(i.includes(c))return;void 0===t.security&&void 0!==r&&(t.security=new _c(r?.content??void 0),i.append(c))}}}}};var Xa=at(function(e,t,s){var n,r={};for(n in s=s||{},t=t||{})b(n,t)&&(r[n]=b(n,s)?e(n,t[n],s[n]):t[n]);for(n in s)b(n,s)&&!b(n,r)&&(r[n]=s[n]);return r});const Wa=Xa;var Ka=at(function e(t,s,n){return Wa(function(s,n,r){return Vt(n)&&Vt(r)?e(t,n,r):t(s,n,r)},s,n)});const Ya=Ka;const Qa=g(function(e,t){return Ya(function(e,t,s){return s},e,t)});const Za=at(function(e,t,s){return Cn(e,dt(t,s))});const el=Ct(0,-1);var tl=g(function(e,t){return e.apply(this,t)});const sl=tl;const nl=vs($s);const rl=gs(Ki,qn);const il=ls(3,function(e,t,s){var n=mt(e,s),r=mt(el(e),s);if(!nl(n)&&!rl(e)){var i=jt(n,r);return sl(i,t)}});const ol=class{namespace;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};if(e.isMetaEmpty||(t.meta=this.serialiseObject(e.meta)),e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof rn)){const s=rn.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}const s=this.serialiseContent(e.content);return void 0!==s&&(t.content=s),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));let s;t.element!==e.element&&(t.element=e.element);let n=e.meta;if(e.meta?.__mappings__){const{__mappings__:t,...r}=e.meta;s=t,n=Object.keys(r).length>0?r:void 0}if(n&&this.deserialiseObject(n,t.meta),s){this.deserialise(s).applyTo(t)}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=e,s={key:this.serialise(t.key)};return t.value&&(s.value=this.serialise(t.value)),s}if(e&&Array.isArray(e)){if(0===e.length)return;return e.map(e=>this.serialise(e))}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(Array.isArray(e))return e.map(e=>this.deserialise(e))}return e}serialiseObject(e){const t={};if(e.forEach((e,s)=>{e&&(t[s.toValue()]=this.serialise(e))}),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach(s=>{t.set(s,this.deserialise(e[s]))})}},cl=e=>null===e,al=e=>"string"==typeof e,ll=e=>"number"==typeof e,ul=e=>"boolean"==typeof e,dl=e=>null!==e&&"object"==typeof e;class pl{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=q,this.KeyValuePair=T,e&&e.noDefault||this.useDefault()}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",fe).register("string",le).register("number",me).register("boolean",ne).register("array",ye).register("object",J).register("member",_).register("ref",gn).register("link",yn).register("sourceMap",rn),this.detect(cl,fe,!1).detect(al,le,!1).detect(ll,me,!1).detect(ul,ne,!1).detect(Array.isArray,ye,!1).detect(dl,J,!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,s){return void 0===s||s?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(const[s,n]of this.elementDetection)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.substring(1);this._elements[t]=this.elementMap[e]})),this._elements}get serialiser(){return new ol(this)}}ol.prototype.Namespace=pl;const hl=pl,ml=new hl,fl={isElement:ge,isStringElement:xe,isNumberElement:ve,isNullElement:be,isBooleanElement:we,isArrayElement:Se,isObjectElement:Ee,isMemberElement:je,isPrimitiveElement:e=>Ee(e)&&"object"===e.element||Se(e)&&"array"===e.element||we(e)&&"boolean"===e.element||ve(e)&&"number"===e.element||xe(e)&&"string"===e.element||be(e)&&"null"===e.element||je(e)&&"member"===e.element,isLinkElement:wn,isRefElement:Sn,isAnnotationElement:e=>e instanceof xn,isCommentElement:e=>e instanceof vn,isParseResultElement:e=>e instanceof bn,isSourceMapElement:e=>e instanceof rn,hasElementSourceMap:Qs,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!Se(s)&&t.every(e=>s.includes(e))},includesClasses:Zs},yl={toolboxCreator:()=>({predicates:fl,namespace:ml}),visitorOptions:{exposeEdits:!0}},gl=(e,t,s={})=>{if(0===t.length)return e;const n=Qa(yl,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=Tr(c.map(Za({},"visitor")),i);c.forEach(il(["pre"],[]));const l=qr(e,a);return c.forEach(il(["post"],[])),l};function xl(e){return void 0===e?new fe:vl(e)}function vl(e){if(e instanceof q)return e;if("string"==typeof e)return new le(e);if("number"==typeof e)return new me(e);if("boolean"==typeof e)return new ne(e);if(null===e)return new fe;if(Array.isArray(e))return new ye(e.map(xl));if("object"==typeof e)return new J(e);throw new Error("Cannot refract value of type "+typeof e)}gl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Qa(yl,s),{toolboxCreator:r,visitorOptions:i}=n,o=r(),c=t.map(e=>e(o)),a=Mr(c.map(Za({},"visitor")),i);await Promise.allSettled(c.map(il(["pre"],[])));const l=await Lr(e,a);return await Promise.allSettled(c.map(il(["post"],[]))),l},q.prototype.ObjectElement=J,q.prototype.ArrayElement=ye,q.prototype.RefElement=gn,q.prototype.MemberElement=_,q.prototype.refract=vl;const bl=class{element;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){if(!e.isMetaEmpty||!t.isMetaEmpty){const s=t.isMetaEmpty?new J:t.meta,n=e.isMetaEmpty?new J:e.meta;t.meta=An(s,n)}if(!e.isAttributesEmpty||!t.isAttributesEmpty){const s=t.isAttributesEmpty?new J:t.attributes,n=e.isAttributesEmpty?new J:e.attributes;t.attributes=An(s,n)}rn.transfer(e,t)}};const wl=class extends bl{enter(e){this.element=pn(e.node),e.stop()}};const Sl=class extends bl{specObj;passingOptionsNames=["specObj","openApiGenericElement","openApiSemanticElement"];openApiGenericElement;openApiSemanticElement;constructor({specObj:e,passingOptionsNames:t,openApiGenericElement:s,openApiSemanticElement:n,...r}){super({...r}),this.specObj=e,this.openApiGenericElement=s,this.openApiSemanticElement=n,Array.isArray(t)&&(this.passingOptionsNames=t)}retrievePassingOptions(){return Hn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=mt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return Zt($s,["visitors",...e],this.specObj)?mt(["visitors",...e],this.specObj):mt(["visitors",...e,"$visitor"],this.specObj)}retrieveVisitorInstance(e,t={}){const s=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...s,...t})}toRefractedElement(e,t,s={}){const n=this.retrieveVisitorInstance(e,s);return n instanceof wl&&n?.constructor===wl?pn(t):(qr(t,n,{nodeTypeGetter:kr}),n.element)}};var El=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Ht,e.prototype["@@transducer/result"]=Ut,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var s=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Gi(s):s},e}();function jl(e){return function(t){return new El(e,t)}}const Ol=g(Jt(["take"],jl,function(e,t){return Ct(0,e<0?1/0:e,t)}));const Fl=g(function(e,t){return N(Ol(e.length,t),e)}),kl=e=>Ee(e)&&e.hasKey("$ref"),Al=Ee,$l=Ee,Pl=e=>xe(e.key)&&Fl("x-",En(e.key));const Il=class extends Sl{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=Pl;constructor({specPath:e,ignoredFields:t,canSupportSpecificationExtensions:s,specificationExtensionPredicate:n,...r}){super({...r}),this.specPath=e,this.ignoredFields=t||[],"boolean"==typeof s&&(this.canSupportSpecificationExtensions=s),"function"==typeof n&&(this.specificationExtensionPredicate=n)}ObjectElement(e){const t=e.node,s=this.specPath(t),n=this.retrieveFixedFields(s);t.forEach((e,t,r)=>{const i=En(t);if(xe(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new _(pn(t),n);this.copyMetaAndAttributes(r,o),o.classes.push("fixed-field"),this.element.content.push(o)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else this.ignoredFields.includes(i)||this.element.content.push(pn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Cl=class extends Sl{specPath;ignoredFields;fieldPatternPredicate=ai;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=Pl;constructor({specPath:e,ignoredFields:t,fieldPatternPredicate:s,canSupportSpecificationExtensions:n,specificationExtensionPredicate:r,...i}){super({...i}),this.specPath=e,this.ignoredFields=t||[],"function"==typeof s&&(this.fieldPatternPredicate=s),"boolean"==typeof n&&(this.canSupportSpecificationExtensions=n),"function"==typeof r&&(this.specificationExtensionPredicate=r)}ObjectElement(e){const t=e.node;t.forEach((e,t,s)=>{const n=En(t);if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new _(pn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(n)||this.element.content.push(pn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Nl=class extends Cl{constructor(e){super(e),this.fieldPatternPredicate=Vn}};const Tl=class extends Sl{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Ji(e,In(t),Nn)),n=so(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function Ml(e,t,s){var n,r=typeof e;switch(r){case"string":case"number":return 0===e&&1/e==-1/0?!!s._items["-0"]||(t&&(s._items["-0"]=!0),!1):null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?e in s._items[r]||(t&&(s._items[r][e]=!0),!1):(t&&(s._items[r]={},s._items[r][e]=!0),!1);case"boolean":if(r in s._items){var i=e?1:0;return!!s._items[r][i]||(t&&(s._items[r][i]=!0),!1)}return t&&(s._items[r]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==s._nativeSet?t?(n=s._nativeSet.size,s._nativeSet.add(e),s._nativeSet.size===n):s._nativeSet.has(e):r in s._items?!!Rt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1);case"undefined":return!!s._items[r]||(t&&(s._items[r]=!0),!1);case"object":if(null===e)return!!s._items.null||(t&&(s._items.null=!0),!1);default:return(r=Object.prototype.toString.call(e))in s._items?!!Rt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const Dl=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Ml(e,!0,this)},e.prototype.has=function(e){return Ml(e,!1,this)},e}();const Rl=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new Dl,c=0;c<i;c+=1)o.add(t[c]);for(;n<r;)o.add(e[n])&&(s[s.length]=e[n]),n+=1;return s}),ql=oi(Il,Cl);const Ll=class extends ql{specPathFixedFields;specPathPatternedFields;constructor({specPathFixedFields:e,specPathPatternedFields:t,...s}){super({...s}),this.specPathFixedFields=e,this.specPathPatternedFields=t}ObjectElement(e){const t=e.node,{specPath:s,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const s=this.retrieveFixedFields(this.specPath(t));this.ignoredFields=[...n,...Rl(t.keys(),s)],Il.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,Cl.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(En(e.key))-r.indexOf(En(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},Bl=oi(Sl,wl),_l=oi(Il,wl),Jl=oi(Cl,wl),Vl=oi(Nl,wl),Hl=oi(Tl,wl),Ul=oi(Ll,wl);const zl=class extends J{constructor(e,t,s){super(e,t,s),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 Gl=class extends _l{constructor(e){super(e),this.element=new zl,this.specPath=In(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){_l.prototype.ObjectElement.call(this,e)}};const Xl=class extends Bl{StringElement(e){const t=e.node,s=new Ne(En(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Wl=class extends Sl{MemberElement(e){this.element=pn(e.node),this.element.classes.push("specification-extension"),e.stop()}};const Kl=class extends _l{constructor(e){super(e),this.element=new ce,this.specPath=In(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const Yl=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const Ql=class extends _l{constructor(e){super(e),this.element=new G,this.specPath=In(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const Zl=class extends _l{constructor(e){super(e),this.element=new pe,this.specPath=In(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const eu=class extends _l{constructor(e){super(e),this.element=new Oe,this.specPath=In(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){_l.prototype.ObjectElement.call(this,e),(xe(this.element.operationId)||xe(this.element.operationRef))&&this.element.classes.push("reference-element")}};const tu=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const su=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};class nu extends J{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(nu.primaryClass)}}const ru=nu;const iu=class extends Vl{constructor(e){super(e),this.element=new ru,this.specPath=In(["value"])}};const ou=class extends _l{constructor(e){super(e),this.element=new hc,this.specPath=In(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const cu=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const au=class extends Bl{constructor(e){super(e),this.element=new Ec}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Al(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const lu=class extends _l{constructor(e){super(e),this.element=new fc,this.specPath=In(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const uu=class extends Vl{constructor(e){super(e),this.element=new $c,this.specPath=In(["document","objects","ServerVariable"])}};const du=class extends _l{constructor(e){super(e),this.element=new ke,this.specPath=In(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}},pu=e=>e instanceof ie,hu=e=>e instanceof De,mu=e=>e instanceof _e,fu=e=>e instanceof Ue,yu=e=>e instanceof Ke,gu=e=>e instanceof ke,xu=e=>e instanceof Ec;const vu=class extends Hl{constructor(e){super(e),this.alternator=[{predicate:kl,specPath:["document","objects","Reference"]},{predicate:_i,specPath:["document","objects","Schema"]}]}ObjectElement(e){Tl.prototype.enter.call(this,e),fu(this.element)&&this.element.meta.set("referenced-element","schema")}};const bu=class extends Vl{constructor(e){super(e),this.element=new J,this.element.classes.push("examples"),this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){Vl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","example")})}};const wu=class extends bu{constructor(e){super(e),this.element=new Yc}};const Su=class extends Vl{constructor(e){super(e),this.element=new Zc,this.specPath=In(["document","objects","Encoding"])}};const Eu=class extends Vl{constructor(e){super(e),this.element=new lc,this.specPath=In(["value"])}};const ju=class extends Bl{constructor(e){super(e),this.element=new Oc}ArrayElement(e){const t=e.node;t.forEach(e=>{if(Ee(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(pn(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ou=class extends _l{constructor(e){super(e),this.element=new U,this.specPath=In(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}};const Fu=class extends _l{constructor(e){super(e),this.element=new gc,this.specPath=In(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const ku=class extends _l{constructor(e){super(e),this.element=new Ue,this.specPath=In(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){_l.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&this.element.classes.push("reference-element")}};const Au=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const $u=class extends _l{constructor(e){super(e),this.element=new Le,this.specPath=In(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Il.prototype.ObjectElement.call(this,e),Ee(this.element.contentField)&&this.element.contentField.filter(gu).forEach((e,t)=>{e.meta.set("media-type",En(t))})}};const Pu=class extends Hl{constructor(e){super(e),this.alternator=[{predicate:kl,specPath:["document","objects","Reference"]},{predicate:_i,specPath:["document","objects","Schema"]}]}ObjectElement(e){Tl.prototype.enter.call(this,e),fu(this.element)&&this.element.meta.set("referenced-element","schema")}};const Iu=class extends _l{constructor(e){super(e),this.element=new ie,this.specPath=In(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const Cu=class extends Hl{constructor(e){super(e),this.alternator=[{predicate:kl,specPath:["document","objects","Reference"]},{predicate:_i,specPath:["document","objects","Schema"]}]}ObjectElement(e){Tl.prototype.enter.call(this,e),fu(this.element)&&this.element.meta.set("referenced-element","schema")}};const Nu=class extends bu{constructor(e){super(e),this.element=new la}};const Tu=class extends Vl{constructor(e){super(e),this.element=new J,this.element.classes.push("content"),this.specPath=In(["document","objects","MediaType"])}};const Mu=class extends Tu{constructor(e){super(e),this.element=new da}};const Du=class extends Xs{constructor(e,t,s){super(e,t,s),this.element="schema",this.classes.push("json-schema-draft-4")}get idField(){throw new p("idField getter in Schema class is not not supported.")}set idField(e){throw new p("idField setter in Schema class is not not supported.")}get $schema(){throw new p("$schema getter in Schema class is not not supported.")}set $schema(e){throw new p("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get itemsField(){return this.get("items")}set itemsField(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new p("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new p("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new p("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new p("dependencies setter in Schema class is not not supported.")}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 definitions(){throw new p("definitions getter in Schema class is not not supported.")}set definitions(e){throw new p("definitions setter in Schema class is not not supported.")}get base(){throw new p("base getter in Schema class is not not supported.")}set base(e){throw new p("base setter in Schema class is not not supported.")}get linksField(){throw new p("linksField getter in Schema class is not not supported.")}set linksField(e){throw new p("linksField setter in Schema class is not not supported.")}get media(){throw new p("media getter in Schema class is not not supported.")}set media(e){throw new p("media setter in Schema class is not not supported.")}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)}};const Ru=class extends _l{constructor(e){super(e),this.element=new Du,this.specPath=In(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},qu=co.visitors.document.objects.JSONSchema.fixedFields.allOf;const Lu=class extends qu{ArrayElement(e){qu.prototype.ArrayElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","schema")})}},Bu=co.visitors.document.objects.JSONSchema.fixedFields.anyOf;const _u=class extends Bu{ArrayElement(e){Bu.prototype.ArrayElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","schema")})}},Ju=co.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Vu=class extends Ju{ArrayElement(e){Ju.prototype.ArrayElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Hu=class extends ki{ObjectElement(e){ki.prototype.ObjectElement.call(this,e),fu(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},Uu=co.visitors.document.objects.JSONSchema.fixedFields.properties;const zu=class extends Uu{ObjectElement(e){Uu.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","schema")})}},Gu=co.visitors.document.objects.JSONSchema.fixedFields.type;const Xu=class extends Gu{ArrayElement(e){this.enter(e)}},Wu=co.visitors.JSONSchemaOrJSONReferenceVisitor;const Ku=class extends Wu{ObjectElement(e){Wu.prototype.enter.call(this,e),fu(this.element)&&this.element.meta.set("referenced-element","schema")}};const Yu=class extends _l{constructor(e){super(e),this.element=new W,this.specPath=In(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const Qu=class extends Vl{constructor(e){super(e),this.element=new Ia,this.specPath=In(["value"])}};const Zu=class extends _l{constructor(e){super(e),this.element=new vc,this.specPath=In(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const ed=class extends bu{constructor(e){super(e),this.element=new Uc}};const td=class extends Tu{constructor(e){super(e),this.element=new Gc}};const sd=class extends Vl{constructor(e){super(e),this.element=new ha,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","schema")})}};const nd=class extends Vl{constructor(e){super(e),this.element=new fa,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(yu).forEach((e,t)=>{e.meta.set("http-status-code",En(t))})}};const rd=class extends Vl{constructor(e){super(e),this.element=new ga,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const id=class extends Vl{constructor(e){super(e),this.element=new va,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","example")})}};const od=class extends Vl{constructor(e){super(e),this.element=new wa,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const cd=class extends Vl{constructor(e){super(e),this.element=new Ea,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(pu).forEach((e,t)=>{e.meta.set("header-name",En(t))})}};const ad=class extends Vl{constructor(e){super(e),this.element=new Oa,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const ld=class extends Vl{constructor(e){super(e),this.element=new ka,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","link")})}};const ud=class extends Vl{constructor(e){super(e),this.element=new $a,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","callback")})}};const dd=class extends _l{constructor(e){super(e),this.element=new Z,this.specPath=In(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){_l.prototype.ObjectElement.call(this,e),xe(this.element.externalValue)&&this.element.classes.push("reference-element")}};const pd=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const hd=class extends _l{constructor(e){super(e),this.element=new te,this.specPath=In(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const md=class extends _l{constructor(e){super(e),this.element=new Y,this.specPath=In(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Il.prototype.ObjectElement.call(this,e),Ee(this.element.headers)&&this.element.headers.filter(pu).forEach((e,t)=>{e.meta.set("header-name",En(t))})}};const fd=class extends Vl{constructor(e){super(e),this.element=new ta,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!pu(e))return;const s=En(t);e.meta.set("headerName",s)})}};const yd=class extends Jl{constructor(e){super(e),this.element=new Ve,this.specPath=In(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=_i}ObjectElement(e){Jl.prototype.ObjectElement.call(this,e),this.element.filter(mu).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",pn(t))})}};const gd=class extends _l{constructor(e){super(e),this.element=new Xe,this.specPath=In(["document","objects","RequestBody"])}ObjectElement(e){Il.prototype.ObjectElement.call(this,e),Ee(this.element.contentField)&&this.element.contentField.filter(gu).forEach((e,t)=>{e.meta.set("media-type",En(t))})}};const xd=class extends Tu{constructor(e){super(e),this.element=new Wc}};const vd=class extends Jl{constructor(e){super(e),this.element=new V,this.specPath=In(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(mu).forEach((e,t)=>{e.meta.set("runtime-expression",En(t))})}};const bd=class extends _l{constructor(e){super(e),this.element=new Ke,this.specPath=In(["document","objects","Response"])}ObjectElement(e){_l.prototype.ObjectElement.call(this,e),Ee(this.element.contentField)&&this.element.contentField.filter(gu).forEach((e,t)=>{e.meta.set("media-type",En(t))}),Ee(this.element.headers)&&this.element.headers.filter(pu).forEach((e,t)=>{e.meta.set("header-name",En(t))})}};const wd=class extends Vl{constructor(e){super(e),this.element=new na,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Vl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!pu(e))return;const s=En(t);e.meta.set("header-name",s)})}};const Sd=class extends Tu{constructor(e){super(e),this.element=new ia}};const Ed=class extends Vl{constructor(e){super(e),this.element=new ca,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){Vl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","link")})}};function jd(e){return"[object Number]"===Object.prototype.toString.call(e)}var Od=g(function(e,t){if(!jd(e)||!jd(t))throw new TypeError("Both arguments to range must be numbers");for(var s=e<t?Math.ceil(t-e):0,n=Array(s),r=0;r<s;)n[r]=r+e,r+=1;return n});const Fd=Od;const kd=class extends Ul{constructor(e){super(e),this.element=new Qe,this.specPathFixedFields=In(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>kl(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${Fd(100,600).join("|")})$`).test(String(e))}ObjectElement(e){Ul.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(yu).forEach((e,t)=>{const s=pn(t);this.fieldPatternPredicate(En(s))&&e.meta.set("http-status-code",s)})}};const Ad=class extends Hl{constructor(e){super(e),this.alternator=[{predicate:kl,specPath:["document","objects","Reference"]},{predicate:_i,specPath:["document","objects","Response"]}]}ObjectElement(e){Tl.prototype.enter.call(this,e),fu(this.element)?this.element.meta.set("referenced-element","response"):yu(this.element)&&this.element.meta.set("http-status-code","default")}};const $d=class extends _l{constructor(e){super(e),this.element=new De,this.specPath=In(["document","objects","Operation"])}};const Pd=class extends wl{constructor(e){super(e),this.element=new Mc}ArrayElement(e){const t=e.node;this.element=this.element.concat(pn(t)),e.stop()}};const Id=class extends Bl{constructor(e){super(e),this.element=new ye,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=kl(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);fu(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Cd=class extends Id{constructor(e){super(e),this.element=new Rc}};const Nd=class extends Tl{constructor(e){super(e),this.alternator=[{predicate:kl,specPath:["document","objects","Reference"]},{predicate:_i,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){Tl.prototype.enter.call(this,e),fu(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const Td=class extends Vl{specPath;constructor(e){super(e),this.element=new Lc,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(fu).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Md=class extends Bl{constructor(e){super(e),this.element=new _c}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Ee(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Dd=class extends au{constructor(e){super(e),this.element=new Vc}};const Rd=class extends _l{constructor(e){super(e),this.element=new _e,this.specPath=In(["document","objects","PathItem"])}ObjectElement(e){_l.prototype.ObjectElement.call(this,e),this.element.filter(hu).forEach((e,t)=>{const s=pn(t);s.content=En(s).toUpperCase(),e.meta.set("http-method",s)}),xe(this.element.$ref)&&this.element.classes.push("reference-element")}};const qd=class extends wl{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Ld=class extends au{constructor(e){super(e),this.element=new Ic}};const Bd=class extends Id{constructor(e){super(e),this.element=new Nc}};const _d=class extends _l{constructor(e){super(e),this.element=new dc,this.specPath=In(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const Jd=class extends _l{constructor(e){super(e),this.element=new Ie,this.specPath=In(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const Vd=class extends _l{constructor(e){super(e),this.element=new $e,this.specPath=In(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Hd=class extends Vl{constructor(e){super(e),this.element=new Na,this.specPath=In(["value"])}};const Ud=class extends Bl{constructor(e){super(e),this.element=new kc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=$l(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:zd}=co.visitors.document.objects.JSONSchema,Gd={visitors:{value:wl,document:{objects:{OpenApi:{$visitor:Gl,element:"openApi3_0",fixedFields:{openapi:Xl,info:{$ref:"#/visitors/document/objects/Info"},servers:au,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:ju,tags:Ud,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Kl,element:"info",fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Yl}},Contact:{$visitor:Ql,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Zl,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:ou,element:"server",fixedFields:{url:cu,description:{$ref:"#/visitors/value"},variables:uu}},ServerVariable:{$visitor:lu,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:Ou,element:"components",fixedFields:{schemas:sd,responses:nd,parameters:rd,examples:id,requestBodies:od,headers:cd,securitySchemes:ad,links:{$visitor:ld,alias:"linksField"},callbacks:ud}},Paths:{$visitor:yd,element:"paths"},PathItem:{$visitor:Rd,element:"pathItem",fixedFields:{$ref:qd,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},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:Ld,parameters:Bd}},Operation:{$visitor:$d,element:"operation",fixedFields:{tags:Pd,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:Cd,requestBody:Nd,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Td,deprecated:{$ref:"#/visitors/value"},security:Md,servers:Dd}},ExternalDocumentation:{$visitor:hd,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:$u,element:"parameter",fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Pu,example:{$ref:"#/visitors/value"},examples:ed,content:{$visitor:td,alias:"contentField"}}},RequestBody:{$visitor:gd,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:xd,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:du,element:"mediaType",fixedFields:{schema:vu,example:{$ref:"#/visitors/value"},examples:wu,encoding:Su}},Encoding:{$visitor:md,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:fd,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:kd,element:"responses",fixedFields:{default:Ad}},Response:{$visitor:bd,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:wd,content:{$visitor:Sd,alias:"contentField"},links:{$visitor:Ed,alias:"linksField"}}},Callback:{$visitor:vd,element:"callback"},Example:{$visitor:dd,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:pd}},Link:{$visitor:eu,element:"link",fixedFields:{operationRef:tu,operationId:su,parameters:iu,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Iu,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:Cu,example:{$ref:"#/visitors/value"},examples:Nu,content:{$visitor:Mu,alias:"contentField"}}},Tag:{$visitor:Fu,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:ku,element:"reference",fixedFields:{$ref:Au}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Ru,element:"schema",fixedFields:{title:zd.title,multipleOf:zd.multipleOf,maximum:zd.maximum,exclusiveMaximum:zd.exclusiveMaximum,minimum:zd.minimum,exclusiveMinimum:zd.exclusiveMinimum,maxLength:zd.maxLength,minLength:zd.minLength,pattern:zd.pattern,maxItems:zd.maxItems,minItems:zd.minItems,uniqueItems:zd.uniqueItems,maxProperties:zd.maxProperties,minProperties:zd.minProperties,required:zd.required,enum:zd.enum,type:Xu,allOf:Lu,anyOf:_u,oneOf:Vu,not:Ku,items:{$visitor:Hu,alias:"itemsField"},properties:zu,additionalProperties:Ku,description:zd.description,format:zd.format,default:zd.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:Yu,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Qu}},XML:{$visitor:Zu,element:"xml",fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:_d,element:"securityScheme",fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:Jd,element:"oAuthFlows",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:Vd,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Hd}},SecurityRequirement:{$visitor:Eu,element:"securityRequirement"}},extension:{$visitor:Wl}}}},Xd=oi(Sl,wl),Wd=oi(Il,wl),Kd=oi(Nl,wl),Yd=oi(Il,di,wl);const Qd=class extends Wd{constructor(e){super(e),this.element=new Me,this.specPath=In(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(e){const t=e.node;this.openApiGenericElement=t,Il.prototype.ObjectElement.call(this,e)}},Zd=Gd.visitors.document.objects.Info.$visitor;const ep=class extends Zd{constructor(e){super(e),this.element=new ae}},tp=Gd.visitors.document.objects.Contact.$visitor;const sp=class extends tp{constructor(e){super(e),this.element=new X}},np=Gd.visitors.document.objects.License.$visitor;const rp=class extends np{constructor(e){super(e),this.element=new he}},ip=Gd.visitors.document.objects.Link.$visitor;const op=class extends ip{constructor(e){super(e),this.element=new Fe}};const cp=class extends Xd{StringElement(e){const t=e.node,s=new de(En(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const ap=class extends Xd{StringElement(e){const t=e.node,s=new Te(En(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}},lp=Gd.visitors.document.objects.Server.$visitor;const up=class extends lp{constructor(e){super(e),this.element=new mc}},dp=Gd.visitors.document.objects.ServerVariable.$visitor;const pp=class extends dp{constructor(e){super(e),this.element=new yc}},hp=Gd.visitors.document.objects.MediaType.$visitor;const mp=class extends hp{constructor(e){super(e),this.element=new Ae}},fp=Gd.visitors.document.objects.SecurityRequirement.$visitor;const yp=class extends fp{constructor(e){super(e),this.element=new uc}},gp=Gd.visitors.document.objects.Components.$visitor;const xp=class extends gp{constructor(e){super(e),this.element=new z}},vp=Gd.visitors.document.objects.Tag.$visitor;const bp=class extends vp{constructor(e){super(e),this.element=new xc}},wp=Gd.visitors.document.objects.Reference.$visitor;const Sp=class extends wp{constructor(e){super(e),this.element=new Ge}},Ep=Gd.visitors.document.objects.Parameter.$visitor;const jp=class extends Ep{constructor(e){super(e),this.element=new Be}},Op=Gd.visitors.document.objects.Header.$visitor;const Fp=class extends Op{constructor(e){super(e),this.element=new oe}},kp=e=>e instanceof H,Ap=e=>e instanceof z,$p=e=>e instanceof X,Pp=e=>e instanceof ee,Ip=e=>e instanceof se,Cp=e=>e instanceof oe,Np=e=>e instanceof ae,Tp=e=>e instanceof de,Mp=e=>e instanceof he,Dp=e=>e instanceof Fe,Rp=e=>e instanceof Te,qp=e=>e instanceof Me,Lp=e=>e instanceof Re,Bp=e=>e instanceof Be,_p=e=>e instanceof Je,Jp=e=>{if(!_p(e))return!1;if(!xe(e.$ref))return!1;const t=En(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Vp=e=>e instanceof He,Hp=e=>e instanceof Ge,Up=e=>{if(!Hp(e))return!1;if(!xe(e.$ref))return!1;const t=En(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},zp=e=>e instanceof We,Gp=e=>e instanceof Ye,Xp=e=>e instanceof Ze,Wp=e=>e instanceof ac,Kp=e=>we(e)&&Zs(e,["boolean-json-schema"]),Yp=e=>e instanceof uc,Qp=e=>e instanceof pc,Zp=e=>e instanceof mc,eh=e=>e instanceof yc,th=e=>e instanceof Ae;const sh=class extends Yd{constructor(e){super(e),this.element=new ac,this.specPath=In(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=de.default,this.passingOptionsNames.push("parent")}ObjectElement(e){const t=e.node;this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,Il.prototype.ObjectElement.call(this,e),xe(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}BooleanElement(e){sc.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&Tp(this.openApiSemanticElement.jsonSchemaDialect)?En(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.openApiGenericElement&&xe(this.openApiGenericElement.get("jsonSchemaDialect"))?En(this.openApiGenericElement.get("jsonSchemaDialect")):En(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return sc.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return sc.prototype.handleSchemaIdentifier.call(this,e)}};const nh=class extends _o{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const rh=class extends Jo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const ih=class extends Vo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const oh=class extends Ho{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const ch=class extends Uo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const ah=class extends nc{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const lh=class extends Go{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const uh=class extends Xo{constructor(e){super(e),this.passingOptionsNames.push("parent")}},dh=Gd.visitors.document.objects.Discriminator.$visitor;const ph=class extends dh{constructor(e){super(e),this.element=new K,this.canSupportSpecificationExtensions=!0}},hh=Gd.visitors.document.objects.XML.$visitor;const mh=class extends hh{constructor(e){super(e),this.element=new bc}};const fh=class extends Kd{constructor(e){super(e),this.element=new ha,this.specPath=In(["document","objects","Schema"])}};const yh=class extends Kd{constructor(e){super(e),this.element=new Ma,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(Hp).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},gh=Gd.visitors.document.objects.Example.$visitor;const xh=class extends gh{constructor(e){super(e),this.element=new ee}},vh=Gd.visitors.document.objects.ExternalDocumentation.$visitor;const bh=class extends vh{constructor(e){super(e),this.element=new se}},wh=Gd.visitors.document.objects.Encoding.$visitor;const Sh=class extends wh{constructor(e){super(e),this.element=new Q}},Eh=Gd.visitors.document.objects.Paths.$visitor;const jh=class extends Eh{constructor(e){super(e),this.element=new He}},Oh=Gd.visitors.document.objects.RequestBody.$visitor;const Fh=class extends Oh{constructor(e){super(e),this.element=new We}},kh=Gd.visitors.document.objects.Callback.$visitor;const Ah=class extends kh{constructor(e){super(e),this.element=new H,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){kh.prototype.ObjectElement.call(this,e),this.element.filter(Hp).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},$h=Gd.visitors.document.objects.Response.$visitor;const Ph=class extends $h{constructor(e){super(e),this.element=new Ye}},Ih=Gd.visitors.document.objects.Responses.$visitor;const Ch=class extends Ih{constructor(e){super(e),this.element=new Ze}},Nh=Gd.visitors.document.objects.Operation.$visitor;const Th=class extends Nh{constructor(e){super(e),this.element=new Re}},Mh=Gd.visitors.document.objects.PathItem.$visitor;const Dh=class extends Mh{constructor(e){super(e),this.element=new Je}},Rh=Gd.visitors.document.objects.SecurityScheme.$visitor;const qh=class extends Rh{constructor(e){super(e),this.element=new pc}},Lh=Gd.visitors.document.objects.OAuthFlows.$visitor;const Bh=class extends Lh{constructor(e){super(e),this.element=new Ce}},_h=Gd.visitors.document.objects.OAuthFlow.$visitor;const Jh=class extends _h{constructor(e){super(e),this.element=new Pe}};const Vh=class extends Kd{constructor(e){super(e),this.element=new Ra,this.specPath=e=>kl(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){Nl.prototype.ObjectElement.call(this,e),this.element.filter(Hp).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(_p).forEach((e,t)=>{e.setMetaProperty("webhook-name",En(t))})}},{JSONSchema:Hh,LinkDescription:Uh}=ic.visitors.document.objects,zh={visitors:{value:Gd.visitors.value,document:{objects:{OpenApi:{element:"openApi3_1",$visitor:Qd,fixedFields:{openapi:{element:"openapi",$visitor:ap},info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:{element:"jsonSchemaDialect",$visitor:cp},servers:Gd.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:Vh,components:{$ref:"#/visitors/document/objects/Components"},security:Gd.visitors.document.objects.OpenApi.fixedFields.security,tags:Gd.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{element:"info",$visitor:ep,fixedFields:{title:Gd.visitors.document.objects.Info.fixedFields.title,description:Gd.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Gd.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Gd.visitors.document.objects.Info.fixedFields.version}},Contact:{element:"contact",$visitor:sp,fixedFields:{name:Gd.visitors.document.objects.Contact.fixedFields.name,url:Gd.visitors.document.objects.Contact.fixedFields.url,email:Gd.visitors.document.objects.Contact.fixedFields.email}},License:{element:"license",$visitor:rp,fixedFields:{name:Gd.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Gd.visitors.document.objects.License.fixedFields.url}},Server:{element:"server",$visitor:up,fixedFields:{url:Gd.visitors.document.objects.Server.fixedFields.url,description:Gd.visitors.document.objects.Server.fixedFields.description,variables:Gd.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{element:"serverVariable",$visitor:pp,fixedFields:{enum:Gd.visitors.document.objects.ServerVariable.fixedFields.enum,default:Gd.visitors.document.objects.ServerVariable.fixedFields.default,description:Gd.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{element:"components",$visitor:xp,fixedFields:{schemas:fh,responses:Gd.visitors.document.objects.Components.fixedFields.responses,parameters:Gd.visitors.document.objects.Components.fixedFields.parameters,examples:Gd.visitors.document.objects.Components.fixedFields.examples,requestBodies:Gd.visitors.document.objects.Components.fixedFields.requestBodies,headers:Gd.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Gd.visitors.document.objects.Components.fixedFields.securitySchemes,links:Gd.visitors.document.objects.Components.fixedFields.links,callbacks:Gd.visitors.document.objects.Components.fixedFields.callbacks,pathItems:yh}},Paths:{element:"paths",$visitor:jh},PathItem:{element:"pathItem",$visitor:Dh,fixedFields:{$ref:Gd.visitors.document.objects.PathItem.fixedFields.$ref,summary:Gd.visitors.document.objects.PathItem.fixedFields.summary,description:Gd.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation",alias:"getField"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation",alias:"deleteField"},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:Gd.visitors.document.objects.PathItem.fixedFields.servers,parameters:Gd.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{element:"operation",$visitor:Th,fixedFields:{tags:Gd.visitors.document.objects.Operation.fixedFields.tags,summary:Gd.visitors.document.objects.Operation.fixedFields.summary,description:Gd.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Gd.visitors.document.objects.Operation.fixedFields.operationId,parameters:Gd.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Gd.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Gd.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Gd.visitors.document.objects.Operation.fixedFields.deprecated,security:Gd.visitors.document.objects.Operation.fixedFields.security,servers:Gd.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{element:"externalDocumentation",$visitor:bh,fixedFields:{description:Gd.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Gd.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{element:"parameter",$visitor:jp,fixedFields:{name:Gd.visitors.document.objects.Parameter.fixedFields.name,in:Gd.visitors.document.objects.Parameter.fixedFields.in,description:Gd.visitors.document.objects.Parameter.fixedFields.description,required:Gd.visitors.document.objects.Parameter.fixedFields.required,deprecated:Gd.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Gd.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Gd.visitors.document.objects.Parameter.fixedFields.style,explode:Gd.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Gd.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Gd.visitors.document.objects.Parameter.fixedFields.example,examples:Gd.visitors.document.objects.Parameter.fixedFields.examples,content:Gd.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{element:"requestBody",$visitor:Fh,fixedFields:{description:Gd.visitors.document.objects.RequestBody.fixedFields.description,content:Gd.visitors.document.objects.RequestBody.fixedFields.content,required:Gd.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{element:"mediaType",$visitor:mp,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Gd.visitors.document.objects.MediaType.fixedFields.example,examples:Gd.visitors.document.objects.MediaType.fixedFields.examples,encoding:Gd.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{element:"encoding",$visitor:Sh,fixedFields:{contentType:Gd.visitors.document.objects.Encoding.fixedFields.contentType,headers:Gd.visitors.document.objects.Encoding.fixedFields.headers,style:Gd.visitors.document.objects.Encoding.fixedFields.style,explode:Gd.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Gd.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{element:"responses",$visitor:Ch,fixedFields:{default:Gd.visitors.document.objects.Responses.fixedFields.default}},Response:{element:"response",$visitor:Ph,fixedFields:{description:Gd.visitors.document.objects.Response.fixedFields.description,headers:Gd.visitors.document.objects.Response.fixedFields.headers,content:Gd.visitors.document.objects.Response.fixedFields.content,links:Gd.visitors.document.objects.Response.fixedFields.links}},Callback:{element:"callback",$visitor:Ah},Example:{element:"example",$visitor:xh,fixedFields:{summary:Gd.visitors.document.objects.Example.fixedFields.summary,description:Gd.visitors.document.objects.Example.fixedFields.description,value:Gd.visitors.document.objects.Example.fixedFields.value,externalValue:Gd.visitors.document.objects.Example.fixedFields.externalValue}},Link:{element:"link",$visitor:op,fixedFields:{operationRef:Gd.visitors.document.objects.Link.fixedFields.operationRef,operationId:Gd.visitors.document.objects.Link.fixedFields.operationId,parameters:Gd.visitors.document.objects.Link.fixedFields.parameters,requestBody:Gd.visitors.document.objects.Link.fixedFields.requestBody,description:Gd.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{element:"header",$visitor:Fp,fixedFields:{description:Gd.visitors.document.objects.Header.fixedFields.description,required:Gd.visitors.document.objects.Header.fixedFields.required,deprecated:Gd.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Gd.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Gd.visitors.document.objects.Header.fixedFields.style,explode:Gd.visitors.document.objects.Header.fixedFields.explode,allowReserved:Gd.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Gd.visitors.document.objects.Header.fixedFields.example,examples:Gd.visitors.document.objects.Header.fixedFields.examples,content:Gd.visitors.document.objects.Header.fixedFields.content}},Tag:{element:"tag",$visitor:bp,fixedFields:{name:Gd.visitors.document.objects.Tag.fixedFields.name,description:Gd.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{element:"reference",$visitor:Sp,fixedFields:{$ref:Gd.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...Uh},Schema:{element:"schema",$visitor:sh,fixedFields:{...Hh.fixedFields,$defs:nh,allOf:rh,anyOf:ih,oneOf:oh,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:ch,prefixItems:ah,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:lh,patternProperties:uh,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},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:{$ref:"#/visitors/value"}}},Discriminator:{element:"discriminator",$visitor:ph,fixedFields:{propertyName:Gd.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Gd.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{element:"xml",$visitor:mh,fixedFields:{name:Gd.visitors.document.objects.XML.fixedFields.name,namespace:Gd.visitors.document.objects.XML.fixedFields.namespace,prefix:Gd.visitors.document.objects.XML.fixedFields.prefix,attribute:Gd.visitors.document.objects.XML.fixedFields.attribute,wrapped:Gd.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{element:"securityScheme",$visitor:qh,fixedFields:{type:Gd.visitors.document.objects.SecurityScheme.fixedFields.type,description:Gd.visitors.document.objects.SecurityScheme.fixedFields.description,name:Gd.visitors.document.objects.SecurityScheme.fixedFields.name,in:Gd.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Gd.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Gd.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Gd.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{element:"oAuthFlows",$visitor:Bh,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:{element:"oAuthFlow",$visitor:Jh,fixedFields:{authorizationUrl:Gd.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Gd.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Gd.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Gd.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{element:"securityRequirement",$visitor:yp}},extension:{$visitor:Gd.visitors.document.extension.$visitor}}}},Gh=e=>Ee(e)&&e.hasKey("$ref"),Xh=Ee,Wh=Ee,Kh=e=>xe(e.key)&&Fl("x-",En(e.key)),Yh=e=>{const t=e.reduce((t,s,n)=>{if(je(s)){const e=String(En(s.key));t.push(e)}else if(Se(e[n-2])){const r=e[n-2],i=String(r.content?.indexOf(s)??-1);t.push(i)}return t},[]);return Zn(t)},Qh=()=>{const e=new hl,t={...n,...s,isStringElement:xe,isArrayElement:Se,isObjectElement:Ee};return e.use(wc),{predicates:t,ancestorLineageToJSONPointer:Yh,namespace:e}},Zh=(e,{element:t="openApi3_1",plugins:s=[],specificationObj:n=zh}={})=>{const r=vl(e),i=Gs(n),o=i.elementMap[t];if(!o)throw new Error(`Unknown element type: "${t}"`);const c=new(mt(o,i))({specObj:i});return qr(r,c,{nodeTypeGetter:kr}),gl(c.element,s,{toolboxCreator:Qh})},em=(e,t={})=>Zh(e,{...t,element:"openApi3_1"}),tm=(e,t={})=>Zh(e,{...t,element:"info"}),sm=(e,t={})=>Zh(e,{...t,element:"contact"}),nm=(e,t={})=>Zh(e,{...t,element:"license"}),rm=(e,t={})=>Zh(e,{...t,element:"server"}),im=(e,t={})=>Zh(e,{...t,element:"serverVariable"}),om=(e,t={})=>Zh(e,{...t,element:"components"}),cm=(e,t={})=>Zh(e,{...t,element:"paths"}),am=(e,t={})=>Zh(e,{...t,element:"pathItem"}),lm=(e,t={})=>Zh(e,{...t,element:"operation"}),um=(e,t={})=>Zh(e,{...t,element:"externalDocumentation"}),dm=(e,t={})=>Zh(e,{...t,element:"parameter"}),pm=(e,t={})=>Zh(e,{...t,element:"requestBody"}),hm=(e,t={})=>Zh(e,{...t,element:"mediaType"}),mm=(e,t={})=>Zh(e,{...t,element:"encoding"}),fm=(e,t={})=>Zh(e,{...t,element:"responses"}),ym=(e,t={})=>Zh(e,{...t,element:"response"}),gm=(e,t={})=>Zh(e,{...t,element:"callback"}),xm=(e,t={})=>Zh(e,{...t,element:"example"}),vm=(e,t={})=>Zh(e,{...t,element:"link"}),bm=(e,t={})=>Zh(e,{...t,element:"header"}),wm=(e,t={})=>Zh(e,{...t,element:"tag"}),Sm=(e,t={})=>Zh(e,{...t,element:"reference"}),Em=(e,t={})=>Zh(e,{...t,element:"schema"}),jm=(e,t={})=>Zh(e,{...t,element:"discriminator"}),Om=(e,t={})=>Zh(e,{...t,element:"xml"}),Fm=(e,t={})=>Zh(e,{...t,element:"securityScheme"}),km=(e,t={})=>Zh(e,{...t,element:"oAuthFlows"}),Am=(e,t={})=>Zh(e,{...t,element:"oAuthFlow"}),$m=(e,t={})=>Zh(e,{...t,element:"securityRequirement"}),Pm=(e,t={})=>Zh(e,{...t,element:"jsonSchemaDialect"}),Im=Zh,Cm=({storageField:e="x-normalized"}={})=>t=>{const{ancestorLineageToJSONPointer:s,predicates:n}=t;let r;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node,i=void 0===s.servers,o=n.isArrayElement(s.servers),c=o&&0===s.servers.length,a=rm({url:"/"});i||!o?s.servers=new Ec([a]):o&&c&&s.servers.push(a),r=new Ua(s,e,"servers")},leave(){r=void 0}},PathItemElement(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(n.isComponentsElement))return;if(!i.some(n.isOpenApi3_1Element))return;const o=s([...i,t]);if(r.includes(o))return;const c=i.find(n.isOpenApi3_1Element),a=void 0===t.servers,l=n.isArrayElement(t.servers),u=l&&0===t.servers.length;if(n.isOpenApi3_1Element(c)){const e=c.servers?.content,s=e??[];a||!l?t.servers=new Ic(s):l&&u&&s.forEach(e=>{t.servers.push(e)}),r.append(o)}},OperationElement(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(n.isComponentsElement))return;if(!i.some(n.isOpenApi3_1Element))return;const o=s([...i,t]);if(r.includes(o))return;const c=i.findLast(n.isPathItemElement),a=void 0===t.servers,l=n.isArrayElement(t.servers),u=l&&0===t.servers.length;if(n.isPathItemElement(c)){const e=c.servers?.content,s=e??[];a||!l?t.servers=new Vc(s):l&&u&&s.forEach(e=>{t.servers.push(e)}),r.append(o)}}}}};function Nm(e,t,s){if(s||(s=new Tm),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n,r=function(n){var r=s.get(e);if(r)return r;for(var i in s.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?Nm(e[i],!0,s):e[i]);return n};switch(P(e)){case"Object":return r(Object.create(Object.getPrototypeOf(e)));case"Array":return r(Array(e.length));case"Date":return new Date(e.valueOf());case"RegExp":return n=e,new RegExp(n.source,n.flags?n.flags:(n.global?"g":"")+(n.ignoreCase?"i":"")+(n.multiline?"m":"")+(n.sticky?"y":"")+(n.unicode?"u":"")+(n.dotAll?"s":""));case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var Tm=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){var s=this.hash(e),n=this.map[s];n||(this.map[s]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){var t=[];for(var s in e)t.push(Object.prototype.toString.call(e[s]));return t.join()},e.prototype.get=function(e){if(this.length<=180)for(var t in this.map)for(var s=this.map[t],n=0;n<s.length;n+=1){if((i=s[n])[0]===e)return i[1]}else{var r=this.hash(e);if(s=this.map[r])for(n=0;n<s.length;n+=1){var i;if((i=s[n])[0]===e)return i[1]}}},e}(),Mm=function(){function e(e,t,s,n){this.valueFn=e,this.valueAcc=t,this.keyFn=s,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=Ht,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(b(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var s=this.keyFn(t);return this.inputs[s]=this.inputs[s]||[s,Nm(this.valueAcc,!1)],this.inputs[s][1]=this.valueFn(this.inputs[s][1],t),e},e}();function Dm(e,t,s){return function(n){return new Mm(e,t,s,n)}}const Rm=g(It("groupBy",cs(4,[],Jt([],Dm,function(e,t,s,n){var r=$t(function(n,r){var i=s(r),o=e(b(i,n)?n[i]:Nm(t,!1),r);return o&&o["@@transducer/reduced"]?Gi(n):(n[i]=o,n)});return kt(r,{},n)}))(function(e,t){return e.push(t),e},[]))),qm=e=>e.replace(/\s/g,""),Lm=e=>e.replace(/\W/gi,"_"),Bm=(e,t,s)=>{const n=qm(e);return n.length>0?Lm(n):((e,t)=>`${Lm(qm(t.toLowerCase()))}${Lm(qm(e))}`)(t,s)},_m=({storageField:e="x-normalized",operationIdNormalizer:t=Bm}={})=>s=>{const{predicates:n,ancestorLineageToJSONPointer:r,namespace:i}=s,o=[],a=[],l=[];let u;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;u=new Ua(s,e,"operation-ids")},leave(){const e=Rm(e=>En(e.operationId),a);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,s)=>{const n=`${e}${s+1}`;t.operationId=new i.elements.String(n)}))}),l.forEach(e=>{if(void 0===e.operationId)return;const t=String(En(e.operationId)),s=a.find(e=>En(e.meta.get("originalOperationId"))===t);void 0!==s&&(e.operationId=pn.safe(s.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),a.length=0,l.length=0,u=void 0}},PathItemElement:{enter(e){const t=e.node,s=Cn("path",En(t.meta.get("path")));o.push(s)},leave(){o.pop()}},OperationElement:{enter(e){const s=e.node,n=e.getAncestorNodes().reverse();if(void 0===s.operationId)return;const l=r([...n,s]);if(u.includes(l))return;const d=String(En(s.operationId)),p=c(o),h=Cn("method",En(s.meta.get("http-method"))),m=t(d,p,h);d!==m&&(s.operationId=new i.elements.String(m),s.set("__originalOperationId",d),s.meta.set("originalOperationId",d),a.push(s),u.append(l))}},LinkElement:{leave(e){const t=e.node;n.isLinkElement(t)&&void 0!==t.operationId&&l.push(t)}}}}},Jm=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t;let r;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;r=new Ua(s,e,"parameter-examples")},leave(){r=void 0}},ParameterElement:{leave(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(s.isComponentsElement))return;if(void 0===t.schema||!s.isSchemaElement(t.schema))return;if(void 0===t.schema?.example&&void 0===t.schema?.examples)return;const o=n([...i,t]);if(!r.includes(o)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>pn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),r.append(o)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),r.append(o)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[pn(t.example)]),r.append(o)),void 0!==t.schema.example&&(t.schema.set("example",pn(t.example)),r.append(o)))}}}}}},Vm=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s,ancestorLineageToJSONPointer:n}=t;let r;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;r=new Ua(s,e,"header-examples")},leave(){r=void 0}},HeaderElement:{leave(e){const t=e.node,i=e.getAncestorNodes().reverse();if(i.some(s.isComponentsElement))return;if(void 0===t.schema||!s.isSchemaElement(t.schema))return;if(void 0===t.schema?.example&&void 0===t.schema?.examples)return;const o=n([...i,t]);if(!r.includes(o)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>pn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),r.append(o)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),r.append(o)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[pn(t.example)]),r.append(o)),void 0!==t.schema.example&&(t.schema.set("example",pn(t.example)),r.append(o)))}}}}}};return t})());