@speclynx/apidom-ns-openapi-3-1 4.10.0 → 4.11.1

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:()=>wu,BaseFixedFieldsVisitor:()=>Dp,BaseMapVisitor:()=>Rp,BaseSchemaVisitor:()=>qp,BaseSpecificationVisitor:()=>Np,CallbackElement:()=>W,ComponentsCallbacksElement:()=>qa,ComponentsElement:()=>Q,ComponentsExamplesElement:()=>Aa,ComponentsHeadersElement:()=>Ca,ComponentsLinksElement:()=>Da,ComponentsParametersElement:()=>Fa,ComponentsPathItemsElement:()=>Ha,ComponentsRequestBodiesElement:()=>Pa,ComponentsResponsesElement:()=>ja,ComponentsSchemasElement:()=>Sa,ComponentsSecuritySchemesElement:()=>Ta,ContactElement:()=>ee,DiscriminatorElement:()=>se,DiscriminatorMappingElement:()=>La,EncodingElement:()=>re,EncodingHeadersElement:()=>ua,ExampleElement:()=>oe,ExternalDocumentationElement:()=>ae,FallbackVisitor:()=>au,FixedFieldsVisitor:()=>xu,HeaderContentElement:()=>ba,HeaderElement:()=>pe,HeaderExamplesElement:()=>xa,InfoElement:()=>me,JsonSchemaDialectElement:()=>ge,LicenseElement:()=>ve,LinkElement:()=>Ce,LinkParametersElement:()=>Uu,MapVisitor:()=>bu,MediaTypeElement:()=>Te,MediaTypeEncodingElement:()=>aa,MediaTypeExamplesElement:()=>oa,MixedFieldsVisitor:()=>Fu,OAuthFlowElement:()=>De,OAuthFlowScopesElement:()=>Ja,OAuthFlowsElement:()=>qe,OpenAPIMediaTypes:()=>f,OpenApi3_1Element:()=>Be,OpenapiElement:()=>Le,OperationCallbacksElement:()=>Xc,OperationElement:()=>Ve,OperationParametersElement:()=>zc,OperationSecurityElement:()=>Wc,OperationServersElement:()=>Qc,OperationTagsElement:()=>Hc,ParameterContentElement:()=>sa,ParameterElement:()=>ze,ParameterExamplesElement:()=>ea,PathItemElement:()=>Xe,PathItemParametersElement:()=>Jc,PathItemServersElement:()=>Lc,PathsElement:()=>We,PatternedFieldsVisitor:()=>vu,ReferenceElement:()=>Ze,RequestBodyContentElement:()=>ra,RequestBodyElement:()=>tt,ResponseContentElement:()=>ma,ResponseElement:()=>nt,ResponseHeadersElement:()=>pa,ResponseLinksElement:()=>ya,ResponsesElement:()=>it,SchemaElement:()=>gc,SecurityElement:()=>Tc,SecurityRequirementElement:()=>vc,SecuritySchemeElement:()=>wc,ServerElement:()=>Ec,ServerVariableElement:()=>Oc,ServerVariablesElement:()=>qc,ServersElement:()=>Cc,SpecificationExtensionVisitor:()=>Du,SpecificationVisitor:()=>lu,TagElement:()=>kc,TagsElement:()=>Dc,Visitor:()=>cu,WebhooksElement:()=>za,XmlElement:()=>$c,createToolbox:()=>lm,default:()=>Pc,isBooleanJSONSchemaElement:()=>el,isCallbackElement:()=>tl,isComponentsElement:()=>sl,isContactElement:()=>nl,isExampleElement:()=>rl,isExternalDocumentationElement:()=>il,isInfoElement:()=>cl,isJsonSchemaDialectElement:()=>al,isLicenseElement:()=>ll,isLinkElement:()=>ul,isMediaTypeElement:()=>Al,isOpenApi3_1Element:()=>pl,isOpenApiExtension:()=>gu,isOpenapiElement:()=>dl,isOperationElement:()=>hl,isParameterElement:()=>ml,isPathItemElement:()=>fl,isPathItemElementExternal:()=>yl,isPathsElement:()=>gl,isReferenceElement:()=>xl,isReferenceElementExternal:()=>vl,isReferenceLikeElement:()=>mu,isRequestBodyElement:()=>bl,isResponseElement:()=>wl,isResponsesElement:()=>Sl,isSchemaElement:()=>El,isSecurityRequirementElement:()=>jl,isSecuritySchemeElement:()=>Ol,isServerElement:()=>Fl,isServerLikeElement:()=>fu,isServerVariableElement:()=>kl,isServersElement:()=>id,mediaTypes:()=>y,refract:()=>Jm,refractCallback:()=>Am,refractComponents:()=>gm,refractContact:()=>hm,refractDiscriminator:()=>Nm,refractEncoding:()=>Om,refractExample:()=>$m,refractExternalDocumentation:()=>wm,refractHeader:()=>Im,refractInfo:()=>pm,refractJsonSchemaDialect:()=>Bm,refractLicense:()=>mm,refractLink:()=>Pm,refractMediaType:()=>jm,refractOAuthFlow:()=>_m,refractOAuthFlows:()=>qm,refractOpenApi3_1:()=>dm,refractOperation:()=>bm,refractParameter:()=>Sm,refractPathItem:()=>vm,refractPaths:()=>xm,refractReference:()=>Mm,refractRequestBody:()=>Em,refractResponse:()=>km,refractResponses:()=>Fm,refractSchema:()=>Tm,refractSecurityRequirement:()=>Lm,refractSecurityScheme:()=>Rm,refractServer:()=>fm,refractServerVariable:()=>ym,refractTag:()=>Cm,refractXml:()=>Dm,refractorPluginNormalizeHeaderExamples:()=>sf,refractorPluginNormalizeOperationIds:()=>ef,refractorPluginNormalizeParameterExamples:()=>tf,refractorPluginNormalizeParameters:()=>Cl,refractorPluginNormalizeSecurityRequirements:()=>Tl,refractorPluginNormalizeServers:()=>Gm,refractorPluginReplaceEmptyElement:()=>Ka,specificationObj:()=>rm});var s={};e.r(s),e.d(s,{isBooleanJSONSchemaElement:()=>el,isCallbackElement:()=>tl,isComponentsElement:()=>sl,isContactElement:()=>nl,isExampleElement:()=>rl,isExternalDocumentationElement:()=>il,isHeaderElement:()=>ol,isInfoElement:()=>cl,isJsonSchemaDialectElement:()=>al,isLicenseElement:()=>ll,isLinkElement:()=>ul,isMediaTypeElement:()=>Al,isOpenApi3_1Element:()=>pl,isOpenapiElement:()=>dl,isOperationElement:()=>hl,isParameterElement:()=>ml,isPathItemElement:()=>fl,isPathItemElementExternal:()=>yl,isPathsElement:()=>gl,isReferenceElement:()=>xl,isReferenceElementExternal:()=>vl,isRequestBodyElement:()=>bl,isResponseElement:()=>wl,isResponsesElement:()=>Sl,isSchemaElement:()=>El,isSecurityRequirementElement:()=>jl,isSecuritySchemeElement:()=>Ol,isServerElement:()=>Fl,isServerVariableElement:()=>kl});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:()=>am,isReferenceLikeElement:()=>im,isServerLikeElement:()=>om,isTagLikeElement:()=>cm});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?`openapi;version=${e}`:`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/openapi;version=3.1.0","application/openapi+json;version=3.1.0","application/openapi+yaml;version=3.1.0","application/openapi;version=3.1.1","application/openapi+json;version=3.1.1","application/openapi+yaml;version=3.1.1","application/openapi;version=3.1.2","application/openapi+json;version=3.1.2","application/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 M=g(function(e,t){return C(e,t,[],[])});function T(e,t,s){if(s||(s=new N),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?T(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 N=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}();const D=i(function(e){return null!=e&&"function"==typeof e.clone?e.clone():T(e,!0)});class R{get(e){return this[e]}set(e,t){this[e]=t}hasKey(e){return Object.hasOwn(this,e)}keys(){return Object.keys(this)}remove(e){delete this[e]}get isEmpty(){return 0===Object.keys(this).length}get isFrozen(){return Object.isFrozen(this)}freeze(){for(const e of Object.values(this))e instanceof this.Element?e.freeze():(Array.isArray(e)||null!==e&&"object"==typeof e)&&Object.freeze(e);Object.freeze(this)}cloneShallow(){const e=new R;return Object.assign(e,this),e}merge(e){const t=this.cloneShallow();for(const[s,n]of Object.entries(e)){const e=t.get(s);Array.isArray(e)&&Array.isArray(n)?t.set(s,[...e,...n]):t.set(s,n)}return t}cloneDeep(){const e=new R;for(const[t,s]of Object.entries(this))s instanceof this.Element?e.set(t,this.cloneDeepElement(s)):e.set(t,D(s));return e}}const q=R;const _=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class L{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 L(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 L(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 B=L,J=Object.freeze(new q);class V{parent;style;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 V)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 _)this._content=e;else if(e instanceof B)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)return J;this._meta=new q}return this._meta}set meta(e){if(e instanceof q)this._meta=e;else if(e&&"object"==typeof e){const t=new q;Object.assign(t,e),this._meta=t}}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 V?this._attributes=e:this.attributes.set(e??{})}get id(){if(!this.hasMetaProperty("id")){if(this.isFrozen)return"";this.setMetaProperty("id","")}return this.meta.get("id")}set id(e){this.setMetaProperty("id",e)}get classes(){if(!this.hasMetaProperty("classes")){if(this.isFrozen)return[];this.setMetaProperty("classes",[])}return this.meta.get("classes")}set classes(e){this.setMetaProperty("classes",e)}get links(){if(!this.hasMetaProperty("links")){if(this.isFrozen){const e=new this.ArrayElement;return e.freeze(),e}this.setMetaProperty("links",new this.ArrayElement)}return this.meta.get("links")}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof _){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof V?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&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 V||e instanceof _?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof V?e.toValue():e;return M(this.toValue(),t)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id;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){return this.hasMetaProperty(e)?this.meta.get(e):t}setMetaProperty(e,t){this.meta.set(e,t)}hasMetaProperty(e){return void 0!==this._meta&&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 H=V;class U extends H{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===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const z=U;const G=class extends H{constructor(e,t,s,n){super(new _,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 X=class extends z{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 G(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 B(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 B(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 K=class extends X{constructor(e,t,s){super(e,t,s),this.element="callback"}};const W=class extends K{};const Y=class extends X{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 Q=class extends Y{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Z=class extends X{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 ee=class extends Z{};const te=class extends X{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 se=class extends te{};const ne=class extends X{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 styleField(){return this.get("style")}set styleField(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 re=class extends ne{};const ie=class extends X{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 oe=class extends ie{};const ce=class extends X{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 ae=class extends ce{};const le=class extends H{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class ue extends X{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new le(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(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(ue.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const de=ue;const pe=class extends de{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const he=class extends X{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 me=class extends he{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 fe=class extends H{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};class ye extends fe{static default=new ye("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const ge=ye;const xe=class extends X{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 ve=class extends xe{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const be=class extends H{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const we=class extends H{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 Se=class extends z{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([])}},Ee=e=>e instanceof H,je=e=>e instanceof fe,Oe=e=>e instanceof be,Fe=e=>e instanceof we,ke=e=>e instanceof le,Ae=e=>e instanceof Se,$e=e=>e instanceof X,Pe=e=>e instanceof G;const Ie=class extends X{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 je(this.operationRef)?this.operationRef?.meta.get("operation"):je(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 Ce=class extends Ie{};const Me=class extends X{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 Te=class extends Me{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ne=class extends X{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 De=class extends Ne{};const Re=class extends X{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 qe=class extends Re{};const _e=class extends fe{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const Le=class extends _e{};const Be=class extends X{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 Je=class extends X{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 le(!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 Ve=class extends Je{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class He extends X{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 le(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(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(He.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ue=He;const ze=class extends Ue{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ge=class extends X{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 Xe=class extends Ge{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 Ke=class extends X{constructor(e,t,s){super(e,t,s),this.element="paths"}};const We=class extends Ke{};const Ye=class extends X{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 Qe extends Ye{}Object.defineProperty(Qe.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Qe.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Ze=Qe;const et=class extends X{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 le(!1)}set required(e){this.set("required",e)}};const tt=class extends et{};const st=class extends X{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 nt=class extends st{};const rt=class extends X{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 it=class extends rt{};function ot(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}var ct=g(function(e,t){return ot(function(s,n){return s[n]=e(t[n],n,t),s},{},$(t))});const at=ct;const lt=i(function(e){return null==e});var ut=g(function(e,t){if(0===e.length||lt(t))return!1;for(var s=t,n=0;n<e.length;){if(lt(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const dt=ut;var pt=g(function(e,t){return dt([e],t)});const ht=pt;function mt(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 ft=Number.isInteger||function(e){return(e|0)===e};const yt=function(e,t){if(null!=t)return ft(e)?o(e,t):t[e]};const gt=g(yt);const xt=mt(function(e,t,s){return e(gt(t,s))});function vt(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=ft(r)?o(r,s):s[r]}return s}const bt=g(vt);function wt(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 St(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Et=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function jt(e){return"[object String]"===Object.prototype.toString.call(e)}const Ot=i(function(e){return!!Et(e)||!!e&&("object"==typeof e&&(!jt(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Ft="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function kt(e,t,s){return function(n,r,i){if(Ot(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[Ft])return s(n,r,i[Ft]());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 At(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 $t=g(function(e,t){return wt(e.length,function(){return e.apply(t,arguments)})});const Pt=$t;function It(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 Ct(e,t,s,n){return e["@@transducer/result"](s[n](Pt(e["@@transducer/step"],e),t))}const Mt=kt(At,Ct,It);var Tt=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 Nt(e){return new Tt(e)}const Dt=mt(function(e,t,s){return Mt("function"==typeof e?Nt(e):e,t,s)});function Rt(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return Et(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const qt=mt(Rt("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const _t=i(Rt("tail",qt(1,1/0)));function Lt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return wt(arguments[0].length,Dt(St,arguments[0],_t(arguments)))}var Bt=function(e,t){switch(arguments.length){case 0:return Bt;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const Jt=Bt;function Vt(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(M(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function Ht(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function Ut(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 zt=function(e){return(e<10?"0":"")+e};const Gt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+zt(e.getUTCMonth()+1)+"-"+zt(e.getUTCDate())+"T"+zt(e.getUTCHours())+":"+zt(e.getUTCMinutes())+":"+zt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Xt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!Et(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 Kt(e){return"[object Object]"===Object.prototype.toString.call(e)}const Wt=function(){return this.xf["@@transducer/init"]()},Yt=function(e){return this.xf["@@transducer/result"](e)};var Qt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Zt(e){return function(t){return new Qt(e,t)}}var es=g(Xt(["fantasy-land/filter","filter"],Zt,function(e,t){return Kt(t)?ot(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 ts=es;const ss=g(function(e,t){return ts((s=e,function(){return!s.apply(this,arguments)}),t);var s});function ns(e,t){var s=function(s){var n=t.concat([e]);return Vt(s,n)?"<Circular>":ns(s,n)},n=function(e,t){return Ht(function(t){return Ut(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(s,e).join(", ")+"))";case"[object Array]":return"["+Ht(s,e).concat(n(e,ss(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):Ut(Gt(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())+")":Ut(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 rs=i(function(e){return ns(e,[])});const is=mt(function(e,t,s){return e(vt(t,s))});function os(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const cs=g(function(e,t){return e&&t});function as(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function ls(e,t,s,n){return s[n](e,t)}const us=kt(ot,ls,as);var ds=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const ps=function(e){return function(t){return new ds(e,t)}};function hs(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):wt(Math.max(0,o),hs(e,n,s))}}var ms=g(function(e,t){return 1===e?i(t):wt(e,hs(e,[],t))});const fs=ms;var ys=g(Xt(["fantasy-land/map","map"],ps,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return fs(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return ot(function(s,n){return s[n]=e(t[n]),s},{},$(t));default:return Ht(e,t)}}));const gs=ys;const xs=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))}:us(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,gs(s,t))},[],e)});var vs=g(function(e,t){var s=fs(e,t);return fs(e,function(){return ot(xs,gs(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const bs=vs;var ws=i(function(e){return bs(e.length,e)});const Ss=ws;const Es=g(function(e,t){return os(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ss(cs)(e,t)});const js=M(null);const Os=Ss(i(function(e){return!e}));const Fs=Os(js);function ks(e){return ks="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},ks(e)}const As=function(e){return"object"===ks(e)};const $s=fs(1,Es(Fs,As));const Ps=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=rs(e),o=s(i,rs(t));return void 0!==o&&o===i?e:t});const Is=g(function(e,t){return gs(gt(e),t)});const Cs=i(function(e){return fs(Dt(Ps,0,Is("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 Ms=fs(1,Lt(P,Jt("GeneratorFunction")));const Ts=fs(1,Lt(P,Jt("AsyncFunction")));const Ns=Cs([Lt(P,Jt("Function")),Ms,Ts]);var Ds=Lt(P,Jt("Object")),Rs=Lt(rs,M(rs(Object))),qs=is(Es(Ns,Rs),["constructor"]);const _s=fs(1,function(e){if(!$s(e)||!Ds(e))return!1;var t=Object.getPrototypeOf(e);return!!js(t)||qs(t)});const Ls=fs(1,Lt(P,Jt("String")));var Bs=i(function(e){return fs(e.length,e)});const Js=Bs;const Vs=g(function(e,t){return fs(e+1,function(){var s=arguments[e];if(null!=s&&os(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(rs(s)+' does not have a method named "'+t+'"')})});const Hs=Vs(1,"split");var Us=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,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 zs(e){return function(t){return new Us(e,t)}}const Gs=g(Xt(["dropWhile"],zs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return qt(s,1/0,t)}));const Xs=Vs(1,"join");var Ks=i(function(e){return fs(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 Ws=Ks(g(Vt));const Ys=Js(function(e,t){return Lt(Hs(""),Gs(Ws(e)),Xs(""))(t)}),Qs=new WeakMap,Zs=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),at((e,t)=>{const i=[...r,t];if(_s(e)&&ht("$ref",e)&&xt(Ls,"$ref",e)){const t=bt(["$ref"],e),s=Ys("#/",t),r=bt(s.split("/"),n),{$ref:i,...o}=e;return Object.keys(o).length>0&&_s(r)?{...r,...o}:r}return _s(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,Qs.set(e,n),n};const en=class extends X{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 tn=class extends X{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 sn=class extends X{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 nn=class extends X{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)}},rn=e=>void 0!==e.style,on=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,cn=(e,t)=>0===t.length||!!Ee(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class an extends fe{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(un).join("");const a=new an(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=dn(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function un(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=ln[e]}while(0!==t);return s}function dn(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=ln.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 pn=an;const hn=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 mn=class extends hn{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const fn=class extends mn{};const yn=class extends mn{},gn=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=wn(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>gn(e,n)):Ee(i)?r.content=gn(i,n):r.content=i instanceof _?xn(i,n):i,r},xn=(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?gn(r,n):void 0,c=void 0!==i?gn(i,n):void 0,a=new _(o,c);return s.set(e,a),a},vn=(e,t={})=>{if(e instanceof _)return xn(e,t);if(e instanceof B)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=>gn(e,n)),i=new B(r);return s.set(e,i),i})(e,t);if(Ee(e))return gn(e,t);throw new fn("Value provided to cloneDeep function couldn't be cloned",{value:e})};vn.safe=e=>{try{return vn(e)}catch{return e}};const bn=e=>{const{key:t,value:s}=e;return new _(t,s)},wn=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=e.meta.cloneDeep()),e.isAttributesEmpty||(t.attributes=vn(e.attributes)),on(e)&&pn.transfer(e,t),rn(e)&&(t.style=D(e.style));const{content:s}=e;return Ee(s)?t.content=wn(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof _?bn(s):s,t},Sn=e=>{if(e instanceof _)return bn(e);if(e instanceof B)return(e=>{const t=[...e];return new B(t)})(e);if(Ee(e))return wn(e);throw new yn("Value provided to cloneShallow function couldn't be cloned",{value:e})};Sn.safe=e=>{try{return Sn(e)}catch{return e}};const En=class extends H{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 jn=class extends H{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 On=class extends fe{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 Fn=class extends fe{constructor(e,t,s){super(e,t,s),this.element="comment"}};const kn=class extends Se{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>cn(e,["api"])).first}get results(){return this.filter(e=>cn(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&&cn(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&cn(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)}},An=e=>e instanceof En,$n=e=>e instanceof jn,Pn=e=>{if(!Ee(e))return e;if(je(e)||Oe(e)||ke(e)||Fe(e))return e.toValue();const t=new WeakMap,s=e=>{if(!Ee(e))return e;if($e(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(Ae(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 $n(e)?String(e.toValue()):An(e)?je(e.href)?e.href.toValue():"":e.toValue()};return s(e)},In=e=>{const t=e.isMetaEmpty?void 0:e.meta.cloneDeep(),s=e.isAttributesEmpty?void 0:vn(e.attributes);return new e.constructor(void 0,t,s)},Cn=(e,t)=>t.clone&&t.isMergeableElement(e)?Tn(In(e),e,t):e,Mn={clone:!0,isMergeableElement:e=>$e(e)||Ae(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>Cn(e,s))),objectElementMerge:(e,t,s)=>{const n=$e(e)?In(e):In(t);return $e(e)&&e.forEach((e,t,r)=>{const i=Sn(r);i.value=Cn(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=Pn(r);let c;if($e(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Sn(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return Tn;const s=t.customMerge(e,t);return"function"==typeof s?s:Tn})(r,s)(n,t,s)}else c=Sn(i),c.value=Cn(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Tn=(e,t,s)=>{const n={...Mn,...s};n.isMergeableElement=n.isMergeableElement??Mn.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??Mn.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??Mn.objectElementMerge;const r=Ae(t);if(!(r===Ae(e)))return Cn(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty?t.isMetaEmpty||(i.meta=t.meta.cloneDeep()):i.meta=e.meta.cloneDeep():i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>e.cloneDeep():e.customMetaMerge)(n)(e.meta,t.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty?t.isAttributesEmpty||(i.attributes=vn(t.attributes)):i.attributes=vn(e.attributes):i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vn(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};Tn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new X:e.reduce((e,s)=>Tn(e,s,t),In(e[0]))};const Nn=Tn;class Dn extends X{constructor(e,t,s){super(e,t,s),this.element="__styles__"}static transfer(e,t){t.style=e.style}static from(e){if(e.style)return new Dn(e.style)}applyTo(e){e.style=this.toValue()}}const Rn=Dn;const qn=class{element;consume=!1;consumeSafe=!1;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty||(t.meta=e.meta.cloneDeep()):t.meta=t.meta.merge(e.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty||(t.attributes=vn(e.attributes)):t.attributes=Nn(t.attributes,e.attributes),pn.transfer(e,t),Rn.transfer(e,t)}};const _n=class extends qn{enter(e){this.element=this.consume?e.node:vn(e.node),e.stop()}};const Ln=i(function(e){return function(){return e}});const Bn=g(function(e,t){return null==t||t!=t?e:t});const Jn=Ln(void 0);const Vn=M(Jn());const Hn=i(function(e){return fs(Dt(Ps,0,Is("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 Un=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:Et(e)?[]:jt(e)?"":Kt(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 zn=Un;const Gn=i(function(e){return null!=e&&M(e,zn(e))});const Xn=i(function(e){return!Gn(e)});const Kn=g(function(e,t){return e||t});const Wn=fs(1,Es(Fs,g(function(e,t){return os(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ss(Kn)(e,t)})(As,Ns)));var Yn=Os(Wn);const Qn=Hn([Ls,Yn,Xn]);const Zn=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}),er=function(){const e=sr,t=tr,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}},tr={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)}},sr={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 sr.ALT:return"ALT";case sr.CAT:return"CAT";case sr.REP:return"REP";case sr.RNM:return"RNM";case sr.TRG:return"TRG";case sr.TBS:return"TBS";case sr.TLS:return"TLS";case sr.UDT:return"UDT";case sr.AND:return"AND";case sr.NOT:return"NOT";case sr.ACTIVE:return"ACTIVE";case sr.EMPTY:return"EMPTY";case sr.MATCH:return"MATCH";case sr.NOMATCH:return"NOMATCH";case sr.SEM_PRE:return"SEM_PRE";case sr.SEM_POST:return"SEM_POST";case sr.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};function nr(){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 rr 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 ir=rr;new nr;new nr,new er,new nr,new er,new nr,new er,new nr,new er;const or=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 cr=class extends ir{},ar=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 or(String(e))}).join("/")}`}catch(t){throw new cr("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class lr 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 ur=lr;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 dr=class extends ur{},pr=e=>{if(!Array.isArray(e))throw new dr("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 dr("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},hr=(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)}},mr=(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)}},fr=(e,t,s,n)=>{const{realm:r}=e;for(const[e,s]of r.entries(t))n(s,e)},yr=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),gr=(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?yr(e,n):s,a=null!==t?yr(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)}},xr=(e,t,s,n)=>n.value,vr=(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}},br=(e,t,s,n)=>{const{selectors:r}=s;for(const s of r)Cr(e,t,s,n)},wr=(e,t,s)=>{const n=[],r=e=>{n.push(e)},{selector:i}=s;switch(i.type){case"BracketedSelection":br(e,t,i,r);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":Cr(e,t,i,r)}return n},Sr=(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=wr(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=wr(e,n,t);s.push(...r)}r=s}return r},Er=(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]:Sr(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]:Sr(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 jr;const Or=(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 Fr(e,t,s,n);case"FilterQuery":return Er(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?Er(e,t,s,n.expression):"FunctionExpr"===n.expression.type?Fr(e,t,s,n.expression):jr(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return jr(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},Fr=(e,t,s,n)=>{switch(n.type){case"Literal":return xr(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let r=s;for(const t of n.segments)if(r=vr(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=vr(e,r,t),void 0===r)return;return r})(e,t,0,n);case"FunctionExpr":return Or(e,t,s,n);default:return}},kr=(e,t,s,n)=>{const{left:r,op:i,right:o}=n,c=Fr(e,t,s,r),a=Fr(e,t,s,o);return e.realm.compare(c,i,a)},Ar=e=>Array.isArray(e),$r=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!$r(e,t,s,n.left)||$r(e,t,s,n.right);case"LogicalAndExpr":return!!$r(e,t,s,n.left)&&$r(e,t,s,n.right);case"LogicalNotExpr":return!$r(e,t,s,n.expression);case"TestExpr":{const{expression:r}=n;if("FilterQuery"===r.type){return Er(e,t,s,r).length>0}if("FunctionExpr"===r.type){const n=Or(e,t,s,r);return"boolean"==typeof n?n:void 0!==n&&(Ar(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return kr(e,t,s,n);default:return!1}};jr=$r;const Pr=$r,Ir=(e,t,s,n)=>{const{realm:r,root:i}=e,{expression:o}=s;for(const[s,c]of r.entries(t)){Pr(e,i,c,o)&&n(c,s)}},Cr=(e,t,s,n)=>{switch(s.type){case"NameSelector":hr(e,t,s,n);break;case"IndexSelector":mr(e,t,s,n);break;case"WildcardSelector":fr(e,t,s,n);break;case"SliceSelector":gr(e,t,s,n);break;case"FilterSelector":Ir(e,t,s,n)}};new Map;class Mr{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;){const{key:s,parent:n,parentPath:r}=t;if(Pe(n)&&"value"===s){if(!je(n.key))throw new TypeError("MemberElement.key must be a StringElement");e.unshift(n.key.toValue())}else Ae(r?.node)&&"number"==typeof s&&e.unshift(s);t=t.parentPath}return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?pr(t):ar(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 Tr=fs(1,Es(Wn,Lt(rs,M("[object Promise]")))),Nr=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},Dr=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},Rr=e=>Ee(e),qr=e=>Sn(e),_r=(e,t,s)=>{Pe(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},Lr=e=>Pe(e)?["key","value"]:Ae(e)||$e(e)?["content"]:[],Br=(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]}},Jr=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=Br(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=Br(o,t);if("function"==typeof e)return e}return null},Vr=(e,t={})=>{const{visitFnGetter:s=Jr,nodeTypeGetter:n=Nr,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=Ur(t,a),n=i.call(e[u],s);if(Tr(n))throw new hn("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop&&(c[u]=o),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(c.every(e=>e===o)&&t.stop(),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=Ur(t,r),n=i.call(e[a],s);if(Tr(n))throw new hn("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop&&(c[a]=o),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);c.every(e=>e===o)&&t.stop()}}},Hr=(e,t={})=>{const{visitFnGetter:s=Jr,nodeTypeGetter:n=Nr,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=Ur(t,a),n=await i.call(e[u],s);if(s.shouldStop&&(c[u]=o),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(c.every(e=>e===o)&&t.stop(),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=Ur(t,r),n=await i.call(e[a],s);if(s.shouldStop&&(c[a]=o),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);c.every(e=>e===o)&&t.stop()}}};function Ur(e,t){return new Mr(t,e.parent,e.parentPath,e.key,e.inList)}function*zr(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,skipVisited:l,mutable:u,mutationFn:d}=s,p="function"==typeof n,h=l?new WeakSet:null;let m,f,y=Array.isArray(e),g=[e],x=-1,v=[],b=e,w=null,S=null;const E=[];do{x+=1;const e=x===g.length;let s;const j=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w?.key,b=f,f=E.pop(),S=w?.parentPath?.parentPath??null,j)if(u)for(const[e,t]of v)d(b,e,t);else if(y){b=b.slice();let e=0;for(const[t,s]of v){const n=t-e;null===s?(b.splice(n,1),e+=1):b[n]=s}}else{b=c(b);for(const[e,t]of v)b[e]=t}if(void 0!==m){x=m.index,g=m.keys,v=m.edits;const e=m.inArray;if(S=m.parentPath,m=m.prev,j&&!u){const t=e?x:g[x];v.push([t,b])}y=e}}else if(void 0!==f&&(s=y?x:g[x],b=f[s],void 0===b))continue;if(!Array.isArray(b)){if(!o(b))throw new hn(`Invalid AST Node: ${String(b)}`,{node:b});if(a&&E.includes(b))continue;if(l&&!e){if(h.has(b))continue;h.add(b)}w=new Mr(b,f,S,s,y);const n=Jr(t,i(b),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:w,isLeaving:e};if(w.shouldStop)break;if(w.removed){if(v.push([s,null]),!e)continue}else if(w._wasReplaced()){const t=w._getReplacementNode();if(v.push([s,t]),!e){if(w.shouldSkip)continue;if(!o(t))continue;b=t}}else if(w.shouldSkip){if(!e)continue}else if(void 0!==i&&(v.push([s,i]),!e)){if(!o(i))continue;b=i}w._markStale()}}if(!e){if(m={inArray:y,index:x,keys:g,edits:v,parentPath:S,prev:m},y=Array.isArray(b),y)g=b;else if(p)g=n(b);else{const e=i(b);g=void 0!==e?n[e]??[]:[]}x=-1,v=[],void 0!==f&&E.push(f),f=b,S=w}}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e}Vr[Symbol.for("nodejs.util.promisify.custom")]=Hr;const Gr=(e,t,s={})=>{const n=zr(e,t,{keyMap:s.keyMap??Lr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Nr,nodePredicate:s.nodePredicate??Rr,nodeCloneFn:s.nodeCloneFn??qr,detectCycles:s.detectCycles??!0,skipVisited:s.skipVisited??!1,mutable:s.mutable??!1,mutationFn:s.mutationFn??_r});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(Tr(s))throw new hn("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},Xr=async(e,t,s={})=>{const n=zr(e,t,{keyMap:s.keyMap??Lr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Nr,nodePredicate:s.nodePredicate??Rr,nodeCloneFn:s.nodeCloneFn??qr,detectCycles:s.detectCycles??!0,skipVisited:s.skipVisited??!1,mutable:s.mutable??!1,mutationFn:s.mutationFn??_r});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};Gr[Symbol.for("nodejs.util.promisify.custom")]=Xr,Mr.prototype.traverse=function(e,t){return Gr(this.node,e,t)},Mr.prototype.traverseAsync=function(e,t){return Xr(this.node,e,t)};const Kr=class extends qn{specObj;passingOptionsNames=["specObj","parent","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Zn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=bt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return is(Ns,["visitors",...e],this.specObj)?bt(["visitors",...e],this.specObj):bt(["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 _n&&n?.constructor===_n?this.consume?t:vn(t):(Gr(t,n,s),n.element)}};const Wr=class extends Kr{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=Pn(t);if(je(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new G(this.consume?t:vn(t),n);this.copyMetaAndAttributes(r,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else this.ignoredFields.includes(i)||this.element.content.push(this.consume?r:vn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Yr=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Qr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Qr(s,[...t,s])},Zr=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Qr(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=Qr(r);for(let t of e){let e=Qr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Yr(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},ei=e=>e.filter((t,s)=>e.indexOf(t)==s),ti=(e,t)=>{const s=t.map(e=>Qr(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++}},si=(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(ti(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==ti(n,e)||void 0!==t[n],get:(s,n)=>(ti(n,e)||t)[n],set(t,s,n){const r=ti(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)))}),ni=null,ri="copy",ii="copy",oi="deep",ci=new WeakMap,ai=e=>ci.get(e),li=(e,t)=>{var s,n;const r=ei([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=ei([...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},ui=(e,t)=>{var s,n,r,i;return{property:li(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:li(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},di=(e,t)=>{var s,n,r,i,o,c;return{class:ei([...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:ui(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:ui(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},pi=new Map,hi=(...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=[...Qr(e.prototype).map(e=>e.constructor),...null!==(t=ai(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=>pi.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>di(e,t))},mi=e=>{let t=pi.get(e);return t||(t={},pi.set(e,t)),t};function fi(...e){var t,s,n;const r=e.map(e=>e.prototype),i=ni;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)Yr(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===ii?Zr(r,o):(c=r,a=o,si([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===ri?Zr(e,null,["prototype"]):si(e,Function.prototype));let l=o;if("none"!==oi){const r="deep"===oi?hi(...e):((...e)=>{const t=e.map(e=>mi(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>di(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)}yi(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),yi(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,d;return u=l,d=e,ci.set(u,d),l}const yi=(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 gi=function(){return!1};const xi=class extends Kr{specPath;ignoredFields;fieldPatternPredicate=gi;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=Pn(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new G(this.consume?t:vn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i),this.consume&&this.consumeSafe&&!s.isFrozen&&(s.value=void 0)}else this.ignoredFields.includes(n)||this.element.content.push(this.consume?s:vn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vi=class extends xi{constructor(e){super(e),this.fieldPatternPredicate=Qn}};const bi=class{parent;constructor({parent:e}){this.parent=e}},wi=fi(Wr,bi,_n),Si=fi(Wr,_n),Ei=fi(Wr,_n),ji=fi(Wr,_n),Oi=fi(Kr,bi,_n),Fi=fi(Kr,bi,_n),ki=fi(Kr,bi,_n),Ai=fi(Kr,bi,_n),$i=fi(Kr,bi,_n),Pi=fi(vi,bi,_n),Ii=fi(vi,bi,_n),Ci=fi(vi,bi,_n),Mi=fi(vi,bi,_n);const Ti=class extends wi{constructor(e){super(e),this.element=new en,this.consumeSafe=!0,this.specPath=Ln(["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,Wr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Vn(this.parent)&&!je(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof en&&!je(e.get("$schema"))){const e=Bn(this.parent.meta.get("inheritedDialectIdentifier"),Pn(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?[...this.parent.meta.get("ancestorsSchemaIdentifiers")??[]]:[],n=Pn(e.get(t));Qn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},Ni=e=>$e(e)&&e.hasKey("$ref");const Di=class extends Ai{ObjectElement(e){const t=e.node,s=Ni(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new Se,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=Ni(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 _n{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const qi=class extends Mi{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-properties"),this.specPath=e=>Ni(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const _i=class extends Ci{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Ni(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Li=class extends Ii{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Ni(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Bi=class extends _n{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const Ji=class extends _n{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 Vi=class extends Oi{constructor(e){super(e),this.element=new Se,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Ni(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Hi=class extends Fi{constructor(e){super(e),this.element=new Se,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Ni(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 ki{constructor(e){super(e),this.element=new Se,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Ni(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const zi=class extends Pi{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Ni(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Gi=class extends $i{constructor(e){super(e),this.element=new Se,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 Xi=class extends Si{constructor(e){super(e),this.element=new tn,this.specPath=Ln(["document","objects","JSONReference"])}ObjectElement(e){Wr.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&this.element.classes.push("reference-element")}};const Ki=class extends _n{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Wi=function(){return!0};const Yi=mt(function(e,t,s){return fs(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Qi=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var Zi=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const eo=Zi;const to=i(function(e){return o(0,e)});function so(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const no=i(so);const ro=Os(lt);const io=fs(1,Ns(Array.isArray)?Array.isArray:Lt(P,Jt("Array")));const oo=Es(io,Xn);function co(e){return function(e){if(Array.isArray(e))return ao(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 ao(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)?ao(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 ao(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 lo=Lt(eo(Qi(function(e,t){return e.length>t.length})),to,gt("length")),uo=Js(function(e,t,s){var n=s.apply(void 0,co(e));return ro(n)?no(n):t});const po=Yi(oo,function(e){var t=lo(e);return fs(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Dt(uo(s),void 0,e)})},Jn);const ho=class extends Kr{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Yi(e,Ln(t),Jn)),n=po(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const mo=class extends ho{constructor(e){super(e),this.alternator=[{predicate:Ni,specPath:["document","objects","JSONReference"]},{predicate:Wi,specPath:["document","objects","JSONSchema"]}]}};const fo=class extends ji{constructor(e){super(e),this.element=new sn,this.specPath=Ln(["document","objects","Media"])}};const yo=class extends Ei{constructor(e){super(e),this.element=new nn,this.specPath=Ln(["document","objects","LinkDescription"])}},go={visitors:{value:_n,JSONSchemaOrJSONReferenceVisitor:mo,document:{objects:{JSONSchema:{element:"JSONSchemaDraft4",$visitor:Ti,fixedFields:{id:{$ref:"#/visitors/value",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:mo,items:{$visitor:Di,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:Ri,properties:qi,additionalProperties:mo,patternProperties:_i,dependencies:Li,enum:Bi,type:Ji,allOf:Vi,anyOf:Hi,oneOf:Ui,not:mo,definitions:zi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:Gi,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"JSONReference",$visitor:Xi,fixedFields:{$ref:Ki}},Media:{element:"media",$visitor:fo,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:yo,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:mo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:mo}}}}}},xo=Zs(go),vo=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(en,"fixedFields",{get:()=>vo(xo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(tn,"fixedFields",{get:()=>vo(xo.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(sn,"fixedFields",{get:()=>vo(xo.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(nn,"fixedFields",{get:()=>vo(xo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const bo=class extends en{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 wo=class extends nn{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 So=mt(function e(t,s,n){if(0===t.length)return s;var r=t[0];if(t.length>1){var i=yt(r,n);(lt(i)||"object"!=typeof i)&&(i=ft(t[1])?[]:{}),s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(ft(e)&&Et(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 Eo=So;const jo=mt(function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n});var Oo=mt(function(e,t,s){return Eo([e],t,s)});const Fo=Oo;var ko=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(ft(e)&&Et(t))return jo(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(ft(e)&&Et(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):Fo(n,e(r,s[n]),s)}});const Ao=ko;const $o=class extends Ti{constructor(e){super(e),this.element=new bo}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 Po=class extends Di{BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const Io=class extends _n{ArrayElement(e){this.enter(e),this.element.classes.push("json-schema-examples")}};const Co=class extends yo{constructor(e){super(e),this.element=new wo}},Mo=Lt(Eo(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft6"),Eo(["visitors","document","objects","JSONSchema","$visitor"],$o),Ao(["visitors","document","objects","JSONSchema","fixedFields","id"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","$id"],{$ref:"#/visitors/value"}),Eo(["visitors","document","objects","JSONSchema","fixedFields","contains"],{$visitor:go.visitors.JSONSchemaOrJSONReferenceVisitor,alias:"containsField"}),Eo(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:Po,alias:"itemsField"}),Eo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],go.visitors.JSONSchemaOrJSONReferenceVisitor),Eo(["visitors","document","objects","JSONSchema","fixedFields","const"],{$ref:"#/visitors/value"}),Eo(["visitors","document","objects","JSONSchema","fixedFields","examples"],Io),Eo(["visitors","document","objects","LinkDescription","$visitor"],Co),Eo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],go.visitors.JSONSchemaOrJSONReferenceVisitor),Ao(["visitors","document","objects","LinkDescription","fixedFields","schema"]),Eo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],go.visitors.JSONSchemaOrJSONReferenceVisitor),Ao(["visitors","document","objects","LinkDescription","fixedFields","method"]),Ao(["visitors","document","objects","LinkDescription","fixedFields","encType"]),Eo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],{$ref:"#/visitors/value"}))(go),To=Zs(Mo),No=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(bo,"fixedFields",{get:()=>No(To.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(wo,"fixedFields",{get:()=>No(To.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Do=class extends bo{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 Ro=class extends wo{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 qo=class extends $o{constructor(e){super(e),this.element=new Do}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const _o=class extends Co{constructor(e){super(e),this.element=new Ro}},Lo=Lt(Eo(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft7"),Eo(["visitors","document","objects","JSONSchema","$visitor"],qo),Eo(["visitors","document","objects","JSONSchema","fixedFields","$comment"],Mo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","if"],Mo.visitors.JSONSchemaOrJSONReferenceVisitor),Eo(["visitors","document","objects","JSONSchema","fixedFields","then"],Mo.visitors.JSONSchemaOrJSONReferenceVisitor),Eo(["visitors","document","objects","JSONSchema","fixedFields","else"],Mo.visitors.JSONSchemaOrJSONReferenceVisitor),Ao(["visitors","document","objects","JSONSchema","fixedFields","media"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],Mo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],Mo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],Mo.visitors.value),Eo(["visitors","document","objects","LinkDescription","$visitor"],_o),Eo(["visitors","document","objects","LinkDescription","fixedFields","anchor"],Mo.visitors.value),Eo(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],Mo.visitors.value),Ao(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),Eo(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],Mo.visitors.value),Eo(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],Mo.visitors.value),Eo(["visitors","document","objects","LinkDescription","fixedFields","description"],Mo.visitors.value),Eo(["visitors","document","objects","LinkDescription","fixedFields","$comment"],Mo.visitors.value),Eo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Mo.visitors.JSONSchemaOrJSONReferenceVisitor),Ao(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),Eo(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],Mo.visitors.value))(Mo),Bo=Zs(Lo),Jo=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Do,"fixedFields",{get:()=>Jo(Bo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Ro,"fixedFields",{get:()=>Jo(Bo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Vo=class extends Do{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 Ho=class extends Ro{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 Uo=class extends qo{constructor(e){super(e),this.element=new Vo}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,Wr.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}};const zo=class extends _n{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-$vocabulary")}};const Go=class extends _n{StringElement(e){this.enter(e),this.element.classes.push("reference-value")}},Xo=fi(Kr,bi,_n),Ko=fi(vi,bi,_n);const Wo=class extends Ko{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-$defs"),this.specPath=Ln(["document","objects","JSONSchema"])}};const Yo=class extends Xo{constructor(e){super(e),this.element=new Se,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 Qo=class extends Xo{constructor(e){super(e),this.element=new Se,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 Zo=class extends Xo{constructor(e){super(e),this.element=new Se,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 ec=class extends Ko{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Ln(["document","objects","JSONSchema"])}};const tc=class extends Xo{ObjectElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}ArrayElement(e){const t=e.node;this.element=new Se,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 sc=class extends Ko{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-properties"),this.specPath=Ln(["document","objects","JSONSchema"])}};const nc=class extends Ko{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-patternProperties"),this.specPath=Ln(["document","objects","JSONSchema"])}};const rc=class extends _n{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-dependentRequired")}};const ic=class extends _o{constructor(e){super(e),this.element=new Ho}},oc=Lt(Eo(["visitors","document","objects","JSONSchema","element"],"JSONSchema201909"),Eo(["visitors","document","objects","JSONSchema","$visitor"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],zo),Eo(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Lo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Lo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Lo.visitors.value),Ao(["visitors","document","objects","JSONReference","$visitor"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Go),Ao(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Wo),Eo(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Yo),Eo(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Qo),Eo(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],Zo),Eo(["visitors","document","objects","JSONSchema","fixedFields","not"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","if"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","then"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","else"],Uo),Ao(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],ec),Eo(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:tc,alias:"itemsField"}),Eo(["visitors","document","objects","JSONSchema","fixedFields","contains"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","properties"],sc),Eo(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],nc),Eo(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],Uo),Eo(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Lo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Lo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],rc),Eo(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Lo.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],Uo),Eo(["visitors","document","objects","LinkDescription","element"],"linkDescription"),Eo(["visitors","document","objects","LinkDescription","$visitor"],ic),Eo(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],Uo),Eo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],Uo),Eo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],Uo),Eo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],Uo))(Lo),cc=Zs(oc),ac=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Vo,"fixedFields",{get:()=>ac(cc.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Ho,"fixedFields",{get:()=>ac(cc.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const lc=class extends Vo{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 uc=class extends Ho{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 dc=class extends Uo{constructor(e){super(e),this.element=new lc}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};const pc=class extends Xo{constructor(e){super(e),this.element=new Se,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 hc=class extends ic{constructor(e){super(e),this.element=new uc}},mc=Lt(Eo(["visitors","document","objects","JSONSchema","element"],"JSONSchema202012"),Eo(["visitors","document","objects","JSONSchema","$visitor"],dc),Ao(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],oc.visitors.value),Ao(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],oc.visitors.value),Eo(["visitors","document","objects","JSONSchema","fixedFields","not"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","if"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","then"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","else"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],pc),Eo(["visitors","document","objects","JSONSchema","fixedFields","items"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","contains"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],dc),Ao(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),Eo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],dc),Eo(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],dc),Eo(["visitors","document","objects","LinkDescription","element"],"linkDescription"),Eo(["visitors","document","objects","LinkDescription","$visitor"],hc),Eo(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],dc),Eo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],dc),Eo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],dc),Eo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],dc))(oc),fc=Zs(mc),yc=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(lc,"fixedFields",{get:()=>yc(fc.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(uc,"fixedFields",{get:()=>yc(fc.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const gc=class extends lc{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 xc=class extends X{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const vc=class extends xc{};const bc=class extends X{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 wc=class extends bc{};const Sc=class extends X{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 Ec=class extends Sc{};const jc=class extends X{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 Oc=class extends jc{};const Fc=class extends X{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 kc=class extends Fc{};const Ac=class extends X{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 $c=class extends Ac{},Pc={namespace:e=>{const{base:t}=e;return t.register("callback",W),t.register("components",Q),t.register("contact",ee),t.register("discriminator",se),t.register("encoding",re),t.register("example",oe),t.register("externalDocumentation",ae),t.register("header",pe),t.register("info",me),t.register("jsonSchemaDialect",ge),t.register("license",ve),t.register("link",Ce),t.register("mediaType",Te),t.register("oAuthFlow",De),t.register("oAuthFlows",qe),t.register("openapi",Le),t.register("openApi3_1",Be),t.register("operation",Ve),t.register("parameter",ze),t.register("pathItem",Xe),t.register("paths",We),t.register("reference",Ze),t.register("requestBody",tt),t.register("response",nt),t.register("responses",it),t.register("schema",gc),t.register("securityRequirement",vc),t.register("securityScheme",wc),t.register("server",Ec),t.register("serverVariable",Oc),t.register("tag",kc),t.register("xml",$c),t}};class Ic extends Se{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Ic.primaryClass)}}const Cc=Ic;class Mc extends Se{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Mc.primaryClass)}}const Tc=Mc;class Nc extends Se{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Nc.primaryClass)}}const Dc=Nc;class Rc extends X{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(Rc.primaryClass)}}const qc=Rc;class _c extends Se{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(_c.primaryClass),this.classes.push("servers")}}const Lc=_c;class Bc extends Se{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Bc.primaryClass),this.classes.push("parameters")}}const Jc=Bc;class Vc extends Se{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Vc.primaryClass)}}const Hc=Vc;class Uc extends Se{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Uc.primaryClass),this.classes.push("parameters")}}const zc=Uc;class Gc extends X{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Gc.primaryClass)}}const Xc=Gc;class Kc extends Se{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Kc.primaryClass),this.classes.push("security")}}const Wc=Kc;class Yc extends Se{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Yc.primaryClass),this.classes.push("servers")}}const Qc=Yc;class Zc extends X{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Zc.primaryClass),this.classes.push("examples")}}const ea=Zc;class ta extends X{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(ta.primaryClass),this.classes.push("content")}}const sa=ta;class na extends X{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(na.primaryClass),this.classes.push("content")}}const ra=na;class ia extends X{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ia.primaryClass),this.classes.push("examples")}}const oa=ia;class ca extends X{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(ca.primaryClass)}}const aa=ca;class la extends X{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(la.primaryClass)}}const ua=la;class da extends X{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(da.primaryClass)}}const pa=da;class ha extends X{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(ha.primaryClass),this.classes.push("content")}}const ma=ha;class fa extends X{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(fa.primaryClass)}}const ya=fa;class ga extends X{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ga.primaryClass),this.classes.push("examples")}}const xa=ga;class va extends X{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(va.primaryClass),this.classes.push("content")}}const ba=va;class wa extends X{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(wa.primaryClass)}}const Sa=wa;class Ea extends X{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(Ea.primaryClass)}}const ja=Ea;class Oa extends X{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Oa.primaryClass),this.classes.push("parameters")}}const Fa=Oa;class ka extends X{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ka.primaryClass),this.classes.push("examples")}}const Aa=ka;class $a extends X{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push($a.primaryClass)}}const Pa=$a;class Ia extends X{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Ia.primaryClass)}}const Ca=Ia;class Ma extends X{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Ma.primaryClass)}}const Ta=Ma;class Na extends X{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Na.primaryClass)}}const Da=Na;class Ra extends X{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Ra.primaryClass)}}const qa=Ra;class _a extends X{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(_a.primaryClass)}}const La=_a;class Ba extends X{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Ba.primaryClass)}}const Ja=Ba;class Va extends X{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Va.primaryClass)}}const Ha=Va;class Ua extends X{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(Ua.primaryClass)}}const za=Ua,Ga={OpenApi3_1Element:{info:(...e)=>new me(...e),servers:(...e)=>new Cc(...e),paths:(...e)=>new We(...e),webhooks:(...e)=>new za(...e),components:(...e)=>new Q(...e),security:(...e)=>new Tc(...e),tags:(...e)=>new Dc(...e),externalDocs:(...e)=>new ae(...e)},InfoElement:{contact:(...e)=>new ee(...e),license:(...e)=>new ve(...e)},ServerElement:{variables:(...e)=>new qc(...e)},ServerVariableElement:{enum:(...e)=>new Se(...e)},PathsElement:{"[key: *]":function(...e){return new Xe(...e)}},PathItemElement:{get:(...e)=>new Ve(...e),put:(...e)=>new Ve(...e),post:(...e)=>new Ve(...e),delete:(...e)=>new Ve(...e),options:(...e)=>new Ve(...e),head:(...e)=>new Ve(...e),patch:(...e)=>new Ve(...e),trace:(...e)=>new Ve(...e),servers:(...e)=>new Lc(...e),parameters:(...e)=>new Jc(...e)},OperationElement:{tags:(...e)=>new Hc(...e),externalDocs:(...e)=>new ae(...e),parameters:(...e)=>new zc(...e),requestBody:(...e)=>new tt(...e),responses:(...e)=>new it(...e),callbacks:(...e)=>new Xc(...e),security:(...e)=>new Wc(...e),servers:(...e)=>new Qc(...e)},ParameterElement:{schema:(...e)=>new gc(...e),examples:(...e)=>new ea(...e),content:(...e)=>new sa(...e)},RequestBodyElement:{content:(...e)=>new ra(...e)},MediaTypeElement:{schema:(...e)=>new gc(...e),examples:(...e)=>new oa(...e),encoding:(...e)=>new aa(...e)},EncodingElement:{headers:(...e)=>new ua(...e)},ResponsesElement:{"[key: *]":function(...e){return new nt(...e)}},ResponseElement:{headers:(...e)=>new pa(...e),content:(...e)=>new ma(...e),links:(...e)=>new ya(...e)},CallbackElement:{"[key: *]":function(...e){return new Xe(...e)}},LinkElement:{server:(...e)=>new Ec(...e)},HeaderElement:{schema:(...e)=>new gc(...e),examples:(...e)=>new xa(...e),content:(...e)=>new ba(...e)},ComponentsElement:{schemas:(...e)=>new Sa(...e),responses:(...e)=>new ja(...e),parameters:(...e)=>new Fa(...e),examples:(...e)=>new Aa(...e),requestBodies:(...e)=>new Pa(...e),headers:(...e)=>new Ca(...e),securitySchemes:(...e)=>new Ta(...e),links:(...e)=>new Da(...e),callbacks:(...e)=>new qa(...e),pathItems:(...e)=>new Ha(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new Se(...e)}},TagElement:{externalDocs:(...e)=>new ae(...e)},SchemaElement:{$vocabulary(...e){const t=new X(...e);return t.classes.push("json-schema-$vocabulary"),t},$defs(...e){const t=new X(...e);return t.classes.push("json-schema-$defs"),t},allOf(...e){const t=new Se(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new Se(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new Se(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new gc(...e),if:(...e)=>new gc(...e),then:(...e)=>new gc(...e),else:(...e)=>new gc(...e),dependentSchemas(...e){const t=new X(...e);return t.classes.push("json-schema-dependentSchemas"),t},prefixItems(...e){const t=new Se(...e);return t.classes.push("json-schema-prefixItems"),t},items:(...e)=>new gc(...e),contains:(...e)=>new gc(...e),properties(...e){const t=new X(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new X(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new gc(...e),propertyNames:(...e)=>new gc(...e),unevaluatedItems:(...e)=>new gc(...e),unevaluatedProperties:(...e)=>new gc(...e),type(...e){const t=new Se(...e);return t.classes.push("json-schema-type"),t},enum(...e){const t=new Se(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new Se(...e);return t.classes.push("json-schema-required"),t},dependentRequired(...e){const t=new X(...e);return t.classes.push("json-schema-dependentRequired"),t},examples(...e){const t=new Se(...e);return t.classes.push("json-schema-examples"),t},contentSchema:(...e)=>new gc(...e),discriminator:(...e)=>new se(...e),xml:(...e)=>new $c(...e),externalDocs:(...e)=>new ae(...e)},DiscriminatorElement:{mapping:(...e)=>new La(...e)},SecuritySchemeElement:{flows:(...e)=>new qe(...e)},OAuthFlowsElement:{implicit:(...e)=>new De(...e),password:(...e)=>new De(...e),clientCredentials:(...e)=>new De(...e),authorizationCode:(...e)=>new De(...e)},OAuthFlowElement:{scopes:(...e)=>new Ja(...e)},[za.primaryClass]:{"[key: *]":function(...e){return new Xe(...e)}},[qc.primaryClass]:{"[key: *]":function(...e){return new Oc(...e)}},[Sa.primaryClass]:{"[key: *]":function(...e){return new gc(...e)}},[ja.primaryClass]:{"[key: *]":function(...e){return new nt(...e)}},[Fa.primaryClass]:{"[key: *]":function(...e){return new ze(...e)}},[Aa.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[Pa.primaryClass]:{"[key: *]":function(...e){return new tt(...e)}},[Ca.primaryClass]:{"[key: *]":function(...e){return new pe(...e)}},[Ta.primaryClass]:{"[key: *]":function(...e){return new wc(...e)}},[Da.primaryClass]:{"[key: *]":function(...e){return new Ce(...e)}},[qa.primaryClass]:{"[key: *]":function(...e){return new W(...e)}},[Ha.primaryClass]:{"[key: *]":function(...e){return new Xe(...e)}},[Xc.primaryClass]:{"[key: *]":function(...e){return new W(...e)}},[ea.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[sa.primaryClass]:{"[key: *]":function(...e){return new Te(...e)}},[ra.primaryClass]:{"[key: *]":function(...e){return new Te(...e)}},[oa.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[aa.primaryClass]:{"[key: *]":function(...e){return new re(...e)}},[ua.primaryClass]:{"[key: *]":function(...e){return new pe(...e)}},[pa.primaryClass]:{"[key: *]":function(...e){return new pe(...e)}},[ma.primaryClass]:{"[key: *]":function(...e){return new Te(...e)}},[ya.primaryClass]:{"[key: *]":function(...e){return new Ce(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new gc(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new gc(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new gc(...e)}},[Cc.primaryClass]:{"<*>":(...e)=>new Ec(...e)},[Tc.primaryClass]:{"<*>":function(...e){return new vc(...e)}},[Dc.primaryClass]:{"<*>":function(...e){return new kc(...e)}},[Lc.primaryClass]:{"<*>":function(...e){return new Ec(...e)}},[Jc.primaryClass]:{"<*>":function(...e){return new ze(...e)}},[zc.primaryClass]:{"<*>":function(...e){return new ze(...e)}},[Wc.primaryClass]:{"<*>":function(...e){return new vc(...e)}},[Qc.primaryClass]:{"<*>":function(...e){return new Ec(...e)}},"json-schema-allOf":{"<*>":function(...e){return new gc(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new gc(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new gc(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new gc(...e)}}},Xa=(e,t)=>{const s=Nr(e),n=e.isMetaEmpty?void 0:e.classes.at(0),r=Ga[s]||Ga[n];return void 0===r?void 0:Object.hasOwn(r,"[key: *]")?r["[key: *]"]:r[t]},Ka=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>je(e)&&cn(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(Ae(n)?(i=t,r=Xa(n,"<*>")):Pe(n)&&(i=s.at(-2),r=Xa(i,Pn(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,t.isMetaEmpty?void 0:t.meta.cloneDeep(),t.isAttributesEmpty?void 0:vn(t.attributes));pn.transfer(t,o),Rn.transfer(t,o),e.replaceWith(o)}}});var Wa=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,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 Wa(e,t)}}const Qa=g(Xt([],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 Za=class{internalStore;constructor(e,t,s){this.storageElement=e,this.storageField=t,this.storageSubField=s}get store(){if(void 0===this.internalStore){let e=this.storageElement.get(this.storageField);$e(e)||(e=new X,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Ae(t)||(t=new Se,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)}};const el=e=>ke(e)&&cn(e,["boolean-json-schema"]),tl=e=>e instanceof W,sl=e=>e instanceof Q,nl=e=>e instanceof ee,rl=e=>e instanceof oe,il=e=>e instanceof ae,ol=e=>e instanceof pe,cl=e=>e instanceof me,al=e=>e instanceof ge,ll=e=>e instanceof ve,ul=e=>e instanceof Ce,dl=e=>e instanceof Le,pl=e=>e instanceof Be,hl=e=>e instanceof Ve,ml=e=>e instanceof ze,fl=e=>e instanceof Xe,yl=e=>{if(!fl(e))return!1;if(!je(e.$ref))return!1;const t=Pn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},gl=e=>e instanceof We,xl=e=>e instanceof Ze,vl=e=>{if(!xl(e))return!1;if(!je(e.$ref))return!1;const t=Pn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},bl=e=>e instanceof tt,wl=e=>e instanceof nt,Sl=e=>e instanceof it,El=e=>e instanceof gc,jl=e=>e instanceof vc,Ol=e=>e instanceof wc,Fl=e=>e instanceof Ec,kl=e=>e instanceof Oc,Al=e=>e instanceof Te,$l=(e,t)=>!!ml(e)&&(!!ml(t)&&(!!je(e.name)&&(!!je(e.in)&&(!!je(t.name)&&(!!je(t.in)&&(Pn(e.name)===Pn(t.name)&&Pn(e.in)===Pn(t.in))))))),Pl=(e,t)=>{const s=Ae(t.parameters)?[...t.parameters]:[];if(0===s.length)return;const n=Ae(e.parameters)?[...e.parameters]:[],r=Qa($l,[...n,...s]);e.parameters=new zc(r)},Il=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;n=new Za(s,e,"parameters")},leave(){n=void 0}},OperationElement:{leave(e){const t=e.node,r=e.getAncestorNodes();if(r.some(s.isComponentsElement))return;const i=r.find(s.isPathItemElement);if(!s.isPathItemElement(i))return;const o=e.formatPath();n.includes(o)||(Pl(t,i),n.append(o))}}}}};Il.inheritParametersToOperation=Pl;const Cl=Il,Ml=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n,r;return{visitor:{OpenApi3_1Element:{enter(t){const i=t.node;r=new Za(i,e,"security-requirements"),s.isArrayElement(i.security)&&(n=i.security)},leave(){r=void 0,n=void 0}},OperationElement:{leave(e){const t=e.node;if(e.getAncestorNodes().some(s.isComponentsElement))return;const i=e.formatPath();if(r.includes(i))return;void 0===t.security&&void 0!==n&&(t.security=new Wc([...n]),r.append(i))}}}}};Ml.inheritSecurityToOperation=(e,t)=>{const s=void 0===e.security,n=Ae(t.security);s&&n&&(e.security=new Wc([...t.security]))};const Tl=Ml;var Nl=mt(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 Dl=Nl;var Rl=mt(function e(t,s,n){return Dl(function(s,n,r){return Kt(n)&&Kt(r)?e(t,n,r):t(s,n,r)},s,n)});const ql=Rl;const _l=g(function(e,t){return ql(function(e,t,s){return s},e,t)});const Ll=mt(function(e,t,s){return Bn(e,gt(t,s))});const Bl=qt(0,-1);var Jl=g(function(e,t){return e.apply(this,t)});const Vl=Jl;const Hl=Os(Ns);const Ul=Es(io,Gn);const zl=fs(3,function(e,t,s){var n=bt(e,s),r=bt(Bl(e),s);if(!Hl(n)&&!Ul(e)){var i=Pt(n,r);return Vl(i,t)}});const Gl=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){const s=this.serialiseMeta(e);s&&(t.meta=s.meta,s.rawKeys.length>0&&(t.__meta_raw__=s.rawKeys))}if(e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof pn)){const s=pn.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}if(!(e instanceof Rn)){const s=Rn.from(e);s&&(t.meta||(t.meta={}),t.meta.__styles__=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,n;t.element!==e.element&&(t.element=e.element);let r=e.meta;if(e.meta?.__mappings__||e.meta?.__styles__){const{__mappings__:t,__styles__:i,...o}=e.meta;s=t,n=i,r=Object.keys(o).length>0?o:void 0}const i=e.__meta_raw__?new Set(e.__meta_raw__):void 0;if(r)for(const[e,s]of Object.entries(r)){const n=this.deserialise(s);t.setMetaProperty(e,i?.has(e)?n.toValue():n)}if(s){this.deserialise(s).applyTo(t)}if(n){this.deserialise(n).applyTo(t)}e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const o=this.deserialiseContent(e.content);return void 0===o&&null!==t.content||(t.content=o),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}serialiseMeta(e){const t={},s=[];let n=!1;for(const[r,i]of Object.entries(e.meta))if(i instanceof this.namespace.elements.Element)t[r]=this.serialise(i),n=!0;else if(void 0!==i){const o=e.refract(i);t[r]=this.serialise(o),s.push(r),n=!0}return n?{meta:t,rawKeys:s}:void 0}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]))})}},Xl=e=>null===e,Kl=e=>"string"==typeof e,Wl=e=>"number"==typeof e,Yl=e=>"boolean"==typeof e,Ql=e=>null!==e&&"object"==typeof e;class Zl{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=H,this.KeyValuePair=_,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",we).register("string",fe).register("number",be).register("boolean",le).register("array",Se).register("object",X).register("member",G).register("ref",jn).register("link",En).register("sourceMap",pn),this.detect(Xl,we,!1).detect(Kl,fe,!1).detect(Wl,be,!1).detect(Yl,le,!1).detect(Array.isArray,Se,!1).detect(Ql,X,!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 Gl(this)}}Gl.prototype.Namespace=Zl;const eu=Zl,tu=new eu,su={isElement:Ee,isStringElement:je,isNumberElement:Oe,isNullElement:Fe,isBooleanElement:ke,isArrayElement:Ae,isObjectElement:$e,isMemberElement:Pe,isPrimitiveElement:e=>$e(e)&&"object"===e.element||Ae(e)&&"array"===e.element||ke(e)&&"boolean"===e.element||Oe(e)&&"number"===e.element||je(e)&&"string"===e.element||Fe(e)&&"null"===e.element||Pe(e)&&"member"===e.element,isLinkElement:An,isRefElement:$n,isAnnotationElement:e=>e instanceof On,isCommentElement:e=>e instanceof Fn,isParseResultElement:e=>e instanceof kn,isSourceMapElement:e=>e instanceof pn,hasElementStyle:rn,hasElementSourceMap:on,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!Ae(s)&&t.every(e=>s.includes(e))},includesClasses:cn},nu={toolboxCreator:()=>({predicates:su,namespace:tu}),visitorOptions:{exposeEdits:!0}},ru=(e,t,s={})=>{if(0===t.length)return e;const n=_l(nu,s),{toolboxCreator:r,visitorOptions:i,traverseOptions:o}=n,c=r(),a=t.map(e=>e(c)),l=Vr(a.map(Ll({},"visitor")),i);a.forEach(zl(["pre"],[]));const u=Gr(e,l,o);return a.forEach(zl(["post"],[])),u};function iu(e){return void 0===e?new we:ou(e)}function ou(e){if(e instanceof H)return e;if("string"==typeof e)return new fe(e);if("number"==typeof e)return new be(e);if("boolean"==typeof e)return new le(e);if(null===e)return new we;if(Array.isArray(e))return new Se(e.map(iu));if("object"==typeof e)return new X(e);throw new Error("Cannot refract value of type "+typeof e)}ru[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=_l(nu,s),{toolboxCreator:r,visitorOptions:i,traverseOptions:o}=n,c=r(),a=t.map(e=>e(c)),l=Hr(a.map(Ll({},"visitor")),i);await Promise.allSettled(a.map(zl(["pre"],[])));const u=await Xr(e,l,o);return await Promise.allSettled(a.map(zl(["post"],[]))),u},H.prototype.ObjectElement=X,H.prototype.ArrayElement=Se,H.prototype.RefElement=jn,H.prototype.MemberElement=G,H.prototype.refract=ou,q.prototype.Element=H,q.prototype.cloneDeepElement=e=>vn(e);const cu=class{element;consume=!1;consumeSafe=!1;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty||(t.meta=e.meta.cloneDeep()):t.meta=t.meta.merge(e.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty||(t.attributes=vn(e.attributes)):t.attributes=Nn(t.attributes,e.attributes),pn.transfer(e,t),Rn.transfer(e,t)}};const au=class extends cu{enter(e){this.element=this.consume?e.node:vn(e.node),e.stop()}};const lu=class extends cu{specObj;passingOptionsNames=["specObj","openApiGenericElement","sourceContext","openApiSemanticElement","consume"];openApiGenericElement;sourceContext;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 Zn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=bt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return is(Ns,["visitors",...e],this.specObj)?bt(["visitors",...e],this.specObj):bt(["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 au&&n?.constructor===au?this.consume?t:vn(t):(Gr(t,n,{nodeTypeGetter:Dr}),n.element)}};var uu=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,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?so(s):s},e}();function du(e){return function(t){return new uu(e,t)}}const pu=g(Xt(["take"],du,function(e,t){return qt(0,e<0?1/0:e,t)}));const hu=g(function(e,t){return M(pu(e.length,t),e)}),mu=e=>$e(e)&&e.hasKey("$ref"),fu=$e,yu=$e,gu=e=>je(e.key)&&hu("x-",Pn(e.key));const xu=class extends lu{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=gu;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=Pn(t);if(je(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new G(this.consume?t:vn(t),n);this.copyMetaAndAttributes(r,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else this.ignoredFields.includes(i)||this.element.content.push(this.consume?r:vn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vu=class extends lu{specPath;ignoredFields;fieldPatternPredicate=gi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=gu;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=Pn(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 G(this.consume?t:vn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i),this.consume&&this.consumeSafe&&!s.isFrozen&&(s.value=void 0)}else this.ignoredFields.includes(n)||this.element.content.push(this.consume?s:vn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const bu=class extends vu{constructor(e){super(e),this.fieldPatternPredicate=Qn}};const wu=class extends lu{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Yi(e,Ln(t),Jn)),n=po(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function Su(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?!!Vt(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?!!Vt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const Eu=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Su(e,!0,this)},e.prototype.has=function(e){return Su(e,!1,this)},e}();const ju=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new Eu,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}),Ou=fi(xu,vu);const Fu=class extends Ou{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,...ju(t.keys(),s)],xu.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,vu.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(Pn(e.key))-r.indexOf(Pn(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},ku=fi(lu,au),Au=fi(xu,au),$u=fi(vu,au),Pu=fi(bu,au),Iu=fi(wu,au),Cu=fi(Fu,au);const Mu=class extends X{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 Tu=class extends Au{constructor(e){super(e),this.element=new Mu,this.specPath=Ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0}ObjectElement(e){Au.prototype.ObjectElement.call(this,e)}};const Nu=class extends ku{StringElement(e){const t=e.node,s=new _e(Pn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Du=class extends lu{MemberElement(e){this.element=vn(e.node),this.element.classes.push("specification-extension"),e.stop()}};const Ru=class extends Au{constructor(e){super(e),this.element=new he,this.specPath=Ln(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const qu=class extends au{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const _u=class extends Au{constructor(e){super(e),this.element=new Z,this.specPath=Ln(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const Lu=class extends Au{constructor(e){super(e),this.element=new xe,this.specPath=Ln(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const Bu=class extends Au{constructor(e){super(e),this.element=new Ie,this.specPath=Ln(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Au.prototype.ObjectElement.call(this,e),(je(this.element.operationId)||je(this.element.operationRef))&&this.element.classes.push("reference-element")}};const Ju=class extends au{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Vu=class extends au{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};class Hu extends X{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Hu.primaryClass)}}const Uu=Hu;const zu=class extends Pu{constructor(e){super(e),this.element=new Uu,this.specPath=Ln(["value"])}};const Gu=class extends Au{constructor(e){super(e),this.element=new Sc,this.specPath=Ln(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Xu=class extends au{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const Ku=class extends ku{constructor(e){super(e),this.element=new Cc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=fu(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Wu=class extends Au{constructor(e){super(e),this.element=new jc,this.specPath=Ln(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Yu=class extends Pu{constructor(e){super(e),this.element=new qc,this.specPath=Ln(["document","objects","ServerVariable"])}};const Qu=class extends Au{constructor(e){super(e),this.element=new Me,this.specPath=Ln(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};const Zu=e=>e instanceof de,ed=e=>e instanceof Je,td=e=>e instanceof Ge,sd=e=>e instanceof Ye,nd=e=>e instanceof st,rd=e=>e instanceof Me,id=e=>e instanceof Cc;const od=class extends Iu{constructor(e){super(e),this.alternator=[{predicate:mu,specPath:["document","objects","Reference"]},{predicate:Wi,specPath:["document","objects","Schema"]}]}ObjectElement(e){wu.prototype.enter.call(this,e),sd(this.element)&&this.element.meta.set("referenced-element","schema")}};const cd=class extends Pu{constructor(e){super(e),this.element=new X,this.element.classes.push("examples"),this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){Pu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","example")})}};const ad=class extends cd{constructor(e){super(e),this.element=new oa}};const ld=class extends Pu{constructor(e){super(e),this.element=new aa,this.specPath=Ln(["document","objects","Encoding"])}};const ud=class extends Pu{constructor(e){super(e),this.element=new xc,this.specPath=Ln(["value"])}};const dd=class extends ku{constructor(e){super(e),this.element=new Tc}ArrayElement(e){const t=e.node;t.forEach(e=>{if($e(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(vn(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const pd=class extends Au{constructor(e){super(e),this.element=new Y,this.specPath=Ln(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0}};const hd=class extends Au{constructor(e){super(e),this.element=new Fc,this.specPath=Ln(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const md=class extends Au{constructor(e){super(e),this.element=new Ye,this.specPath=Ln(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){Au.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&this.element.classes.push("reference-element")}};const fd=class extends au{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const yd=class extends Au{constructor(e){super(e),this.element=new Ue,this.specPath=Ln(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){xu.prototype.ObjectElement.call(this,e),$e(this.element.contentField)&&this.element.contentField.filter(rd).forEach((e,t)=>{e.meta.set("media-type",Pn(t))})}};const gd=class extends Iu{constructor(e){super(e),this.alternator=[{predicate:mu,specPath:["document","objects","Reference"]},{predicate:Wi,specPath:["document","objects","Schema"]}]}ObjectElement(e){wu.prototype.enter.call(this,e),sd(this.element)&&this.element.meta.set("referenced-element","schema")}};const xd=class extends Au{constructor(e){super(e),this.element=new de,this.specPath=Ln(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const vd=class extends Iu{constructor(e){super(e),this.alternator=[{predicate:mu,specPath:["document","objects","Reference"]},{predicate:Wi,specPath:["document","objects","Schema"]}]}ObjectElement(e){wu.prototype.enter.call(this,e),sd(this.element)&&this.element.meta.set("referenced-element","schema")}};const bd=class extends cd{constructor(e){super(e),this.element=new xa}};const wd=class extends Pu{constructor(e){super(e),this.element=new X,this.element.classes.push("content"),this.specPath=Ln(["document","objects","MediaType"])}};const Sd=class extends wd{constructor(e){super(e),this.element=new ba}};const Ed=class extends en{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 jd=class extends Au{constructor(e){super(e),this.element=new Ed,this.specPath=Ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},Od=go.visitors.document.objects.JSONSchema.fixedFields.allOf;const Fd=class extends Od{ArrayElement(e){Od.prototype.ArrayElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","schema")})}},kd=go.visitors.document.objects.JSONSchema.fixedFields.anyOf;const Ad=class extends kd{ArrayElement(e){kd.prototype.ArrayElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","schema")})}},$d=go.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Pd=class extends $d{ArrayElement(e){$d.prototype.ArrayElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Id=class extends Di{ObjectElement(e){Di.prototype.ObjectElement.call(this,e),sd(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},Cd=go.visitors.document.objects.JSONSchema.fixedFields.properties;const Md=class extends Cd{ObjectElement(e){Cd.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","schema")})}},Td=go.visitors.document.objects.JSONSchema.fixedFields.type;const Nd=class extends Td{ArrayElement(e){this.enter(e)}},Dd=go.visitors.JSONSchemaOrJSONReferenceVisitor;const Rd=class extends Dd{ObjectElement(e){Dd.prototype.enter.call(this,e),sd(this.element)&&this.element.meta.set("referenced-element","schema")}};const qd=class extends Au{constructor(e){super(e),this.element=new te,this.specPath=Ln(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const _d=class extends Pu{constructor(e){super(e),this.element=new La,this.specPath=Ln(["value"])}};const Ld=class extends Au{constructor(e){super(e),this.element=new Ac,this.specPath=Ln(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const Bd=class extends cd{constructor(e){super(e),this.element=new ea}};const Jd=class extends wd{constructor(e){super(e),this.element=new sa}};const Vd=class extends Pu{constructor(e){super(e),this.element=new Sa,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Hd=class extends Pu{constructor(e){super(e),this.element=new ja,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(nd).forEach((e,t)=>{e.meta.set("http-status-code",Pn(t))})}};const Ud=class extends Pu{constructor(e){super(e),this.element=new Fa,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const zd=class extends Pu{constructor(e){super(e),this.element=new Aa,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","example")})}};const Gd=class extends Pu{constructor(e){super(e),this.element=new Pa,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const Xd=class extends Pu{constructor(e){super(e),this.element=new Ca,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(Zu).forEach((e,t)=>{e.meta.set("header-name",Pn(t))})}};const Kd=class extends Pu{constructor(e){super(e),this.element=new Ta,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const Wd=class extends Pu{constructor(e){super(e),this.element=new Da,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","link")})}};const Yd=class extends Pu{constructor(e){super(e),this.element=new qa,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Qd=class extends Au{constructor(e){super(e),this.element=new ie,this.specPath=Ln(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){Au.prototype.ObjectElement.call(this,e),je(this.element.externalValue)&&this.element.classes.push("reference-element")}};const Zd=class extends au{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const ep=class extends Au{constructor(e){super(e),this.element=new ce,this.specPath=Ln(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const tp=class extends Au{constructor(e){super(e),this.element=new ne,this.specPath=Ln(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){xu.prototype.ObjectElement.call(this,e),$e(this.element.headers)&&this.element.headers.filter(Zu).forEach((e,t)=>{e.meta.set("header-name",Pn(t))})}};const sp=class extends Pu{constructor(e){super(e),this.element=new ua,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Zu(e))return;const s=Pn(t);e.meta.set("headerName",s)})}};const np=class extends $u{constructor(e){super(e),this.element=new Ke,this.specPath=Ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0,this.fieldPatternPredicate=Wi}ObjectElement(e){$u.prototype.ObjectElement.call(this,e),this.element.filter(td).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",Pn(t))})}};const rp=class extends Au{constructor(e){super(e),this.element=new et,this.specPath=Ln(["document","objects","RequestBody"])}ObjectElement(e){xu.prototype.ObjectElement.call(this,e),$e(this.element.contentField)&&this.element.contentField.filter(rd).forEach((e,t)=>{e.meta.set("media-type",Pn(t))})}};const ip=class extends wd{constructor(e){super(e),this.element=new ra}};const op=class extends $u{constructor(e){super(e),this.element=new K,this.specPath=Ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(td).forEach((e,t)=>{e.meta.set("runtime-expression",Pn(t))})}};const cp=class extends Au{constructor(e){super(e),this.element=new st,this.specPath=Ln(["document","objects","Response"])}ObjectElement(e){Au.prototype.ObjectElement.call(this,e),$e(this.element.contentField)&&this.element.contentField.filter(rd).forEach((e,t)=>{e.meta.set("media-type",Pn(t))}),$e(this.element.headers)&&this.element.headers.filter(Zu).forEach((e,t)=>{e.meta.set("header-name",Pn(t))})}};const ap=class extends Pu{constructor(e){super(e),this.element=new pa,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Pu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!Zu(e))return;const s=Pn(t);e.meta.set("header-name",s)})}};const lp=class extends wd{constructor(e){super(e),this.element=new ma}};const up=class extends Pu{constructor(e){super(e),this.element=new ya,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){Pu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","link")})}};function dp(e){return"[object Number]"===Object.prototype.toString.call(e)}var pp=g(function(e,t){if(!dp(e)||!dp(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 hp=pp;const mp=class extends Cu{constructor(e){super(e),this.element=new rt,this.specPathFixedFields=Ln(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>mu(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${hp(100,600).join("|")})$`).test(String(e))}ObjectElement(e){Cu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(nd).forEach((e,t)=>{const s=Pn(t);this.fieldPatternPredicate(s)&&e.meta.set("http-status-code",s)})}};const fp=class extends Iu{constructor(e){super(e),this.alternator=[{predicate:mu,specPath:["document","objects","Reference"]},{predicate:Wi,specPath:["document","objects","Response"]}]}ObjectElement(e){wu.prototype.enter.call(this,e),sd(this.element)?this.element.meta.set("referenced-element","response"):nd(this.element)&&this.element.meta.set("http-status-code","default")}};const yp=class extends Au{constructor(e){super(e),this.element=new Je,this.specPath=Ln(["document","objects","Operation"])}};const gp=class extends au{constructor(e){super(e),this.element=new Hc}ArrayElement(e){const t=e.node;this.element=this.element.concat(vn(t)),e.stop()}};const xp=class extends ku{constructor(e){super(e),this.element=new Se,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=mu(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);sd(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const vp=class extends xp{constructor(e){super(e),this.element=new zc}};const bp=class extends wu{constructor(e){super(e),this.alternator=[{predicate:mu,specPath:["document","objects","Reference"]},{predicate:Wi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){wu.prototype.enter.call(this,e),sd(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const wp=class extends Pu{specPath;constructor(e){super(e),this.element=new Xc,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Sp=class extends ku{constructor(e){super(e),this.element=new Wc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=$e(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Ep=class extends Ku{constructor(e){super(e),this.element=new Qc}};const jp=class extends Au{constructor(e){super(e),this.element=new Ge,this.specPath=Ln(["document","objects","PathItem"]),this.consumeSafe=!0}ObjectElement(e){Au.prototype.ObjectElement.call(this,e),this.element.filter(ed).forEach((e,t)=>{e.meta.set("http-method",Pn(t).toUpperCase())}),je(this.element.$ref)&&this.element.classes.push("reference-element")}};const Op=class extends au{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Fp=class extends Ku{constructor(e){super(e),this.element=new Lc}};const kp=class extends xp{constructor(e){super(e),this.element=new Jc}};const Ap=class extends Au{constructor(e){super(e),this.element=new bc,this.specPath=Ln(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const $p=class extends Au{constructor(e){super(e),this.element=new Re,this.specPath=Ln(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const Pp=class extends Au{constructor(e){super(e),this.element=new Ne,this.specPath=Ln(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Ip=class extends Pu{constructor(e){super(e),this.element=new Ja,this.specPath=Ln(["value"])}};const Cp=class extends ku{constructor(e){super(e),this.element=new Dc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=yu(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:Mp}=go.visitors.document.objects.JSONSchema,Tp={visitors:{value:au,document:{objects:{OpenApi:{$visitor:Tu,element:"openApi3_0",fixedFields:{openapi:Nu,info:{$ref:"#/visitors/document/objects/Info"},servers:Ku,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:dd,tags:Cp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Ru,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:qu}},Contact:{$visitor:_u,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Lu,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Gu,element:"server",fixedFields:{url:Xu,description:{$ref:"#/visitors/value"},variables:Yu}},ServerVariable:{$visitor:Wu,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:pd,element:"components",fixedFields:{schemas:Vd,responses:Hd,parameters:Ud,examples:zd,requestBodies:Gd,headers:Xd,securitySchemes:Kd,links:{$visitor:Wd,alias:"linksField"},callbacks:Yd}},Paths:{$visitor:np,element:"paths"},PathItem:{$visitor:jp,element:"pathItem",fixedFields:{$ref:Op,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:Fp,parameters:kp}},Operation:{$visitor:yp,element:"operation",fixedFields:{tags:gp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:vp,requestBody:bp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:wp,deprecated:{$ref:"#/visitors/value"},security:Sp,servers:Ep}},ExternalDocumentation:{$visitor:ep,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:yd,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",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:gd,example:{$ref:"#/visitors/value"},examples:Bd,content:{$visitor:Jd,alias:"contentField"}}},RequestBody:{$visitor:rp,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:ip,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Qu,element:"mediaType",fixedFields:{schema:od,example:{$ref:"#/visitors/value"},examples:ad,encoding:ld}},Encoding:{$visitor:tp,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:sp,style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:mp,element:"responses",fixedFields:{default:fp}},Response:{$visitor:cp,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:ap,content:{$visitor:lp,alias:"contentField"},links:{$visitor:up,alias:"linksField"}}},Callback:{$visitor:op,element:"callback"},Example:{$visitor:Qd,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:Zd}},Link:{$visitor:Bu,element:"link",fixedFields:{operationRef:Ju,operationId:Vu,parameters:zu,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:xd,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:vd,example:{$ref:"#/visitors/value"},examples:bd,content:{$visitor:Sd,alias:"contentField"}}},Tag:{$visitor:hd,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:md,element:"reference",fixedFields:{$ref:fd}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:jd,element:"schema",fixedFields:{title:Mp.title,multipleOf:Mp.multipleOf,maximum:Mp.maximum,exclusiveMaximum:Mp.exclusiveMaximum,minimum:Mp.minimum,exclusiveMinimum:Mp.exclusiveMinimum,maxLength:Mp.maxLength,minLength:Mp.minLength,pattern:Mp.pattern,maxItems:Mp.maxItems,minItems:Mp.minItems,uniqueItems:Mp.uniqueItems,maxProperties:Mp.maxProperties,minProperties:Mp.minProperties,required:Mp.required,enum:Mp.enum,type:Nd,allOf:Fd,anyOf:Ad,oneOf:Pd,not:Rd,items:{$visitor:Id,alias:"itemsField"},properties:Md,additionalProperties:Rd,description:Mp.description,format:Mp.format,default:Mp.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:qd,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:_d}},XML:{$visitor:Ld,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:Ap,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:$p,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:Pp,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Ip}},SecurityRequirement:{$visitor:ud,element:"securityRequirement"}},extension:{$visitor:Du}}}},Np=fi(lu,au),Dp=fi(xu,au),Rp=fi(bu,au),qp=fi(xu,bi,au);const _p=class extends Dp{constructor(e){super(e),this.element=new Be,this.specPath=Ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0,this.openApiSemanticElement=this.element}ObjectElement(e){const t=e.node;this.openApiGenericElement=t,je(t.get("jsonSchemaDialect"))&&(this.sourceContext={jsonSchemaDialect:Pn(t.get("jsonSchemaDialect"))}),xu.prototype.ObjectElement.call(this,e)}},Lp=Tp.visitors.document.objects.Info.$visitor;const Bp=class extends Lp{constructor(e){super(e),this.element=new me}},Jp=Tp.visitors.document.objects.Contact.$visitor;const Vp=class extends Jp{constructor(e){super(e),this.element=new ee}},Hp=Tp.visitors.document.objects.License.$visitor;const Up=class extends Hp{constructor(e){super(e),this.element=new ve}},zp=Tp.visitors.document.objects.Link.$visitor;const Gp=class extends zp{constructor(e){super(e),this.element=new Ce}};const Xp=class extends Np{StringElement(e){const t=e.node,s=new ge(Pn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Kp=class extends Np{StringElement(e){const t=e.node,s=new Le(Pn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}},Wp=Tp.visitors.document.objects.Server.$visitor;const Yp=class extends Wp{constructor(e){super(e),this.element=new Ec}},Qp=Tp.visitors.document.objects.ServerVariable.$visitor;const Zp=class extends Qp{constructor(e){super(e),this.element=new Oc}},eh=Tp.visitors.document.objects.MediaType.$visitor;const th=class extends eh{constructor(e){super(e),this.element=new Te}},sh=Tp.visitors.document.objects.SecurityRequirement.$visitor;const nh=class extends sh{constructor(e){super(e),this.element=new vc}},rh=Tp.visitors.document.objects.Components.$visitor;const ih=class extends rh{constructor(e){super(e),this.element=new Q}},oh=Tp.visitors.document.objects.Tag.$visitor;const ch=class extends oh{constructor(e){super(e),this.element=new kc}},ah=Tp.visitors.document.objects.Reference.$visitor;const lh=class extends ah{constructor(e){super(e),this.element=new Ze}},uh=Tp.visitors.document.objects.Parameter.$visitor;const dh=class extends uh{constructor(e){super(e),this.element=new ze}},ph=Tp.visitors.document.objects.Header.$visitor;const hh=class extends ph{constructor(e){super(e),this.element=new pe}};const mh=class extends qp{constructor(e){super(e),this.element=new gc,this.specPath=Ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ge.default,this.passingOptionsNames.push("parent")}ObjectElement(e){const t=e.node;this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,xu.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}BooleanElement(e){dc.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&al(this.openApiSemanticElement.jsonSchemaDialect)?Pn(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.sourceContext?.jsonSchemaDialect?this.sourceContext.jsonSchemaDialect:Pn(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return dc.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return dc.prototype.handleSchemaIdentifier.call(this,e)}};const fh=class extends Wo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const yh=class extends Yo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const gh=class extends Qo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const xh=class extends Zo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const vh=class extends ec{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const bh=class extends pc{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const wh=class extends sc{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Sh=class extends nc{constructor(e){super(e),this.passingOptionsNames.push("parent")}},Eh=Tp.visitors.document.objects.Discriminator.$visitor;const jh=class extends Eh{constructor(e){super(e),this.element=new se,this.canSupportSpecificationExtensions=!0}},Oh=Tp.visitors.document.objects.XML.$visitor;const Fh=class extends Oh{constructor(e){super(e),this.element=new $c}};const kh=class extends Rp{constructor(e){super(e),this.element=new Sa,this.specPath=Ln(["document","objects","Schema"])}};const Ah=class extends Rp{constructor(e){super(e),this.element=new Ha,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(xl).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},$h=Tp.visitors.document.objects.Example.$visitor;const Ph=class extends $h{constructor(e){super(e),this.element=new oe}},Ih=Tp.visitors.document.objects.ExternalDocumentation.$visitor;const Ch=class extends Ih{constructor(e){super(e),this.element=new ae}},Mh=Tp.visitors.document.objects.Encoding.$visitor;const Th=class extends Mh{constructor(e){super(e),this.element=new re}},Nh=Tp.visitors.document.objects.Paths.$visitor;const Dh=class extends Nh{constructor(e){super(e),this.element=new We}},Rh=Tp.visitors.document.objects.RequestBody.$visitor;const qh=class extends Rh{constructor(e){super(e),this.element=new tt}},_h=Tp.visitors.document.objects.Callback.$visitor;const Lh=class extends _h{constructor(e){super(e),this.element=new W,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){_h.prototype.ObjectElement.call(this,e),this.element.filter(xl).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},Bh=Tp.visitors.document.objects.Response.$visitor;const Jh=class extends Bh{constructor(e){super(e),this.element=new nt}},Vh=Tp.visitors.document.objects.Responses.$visitor;const Hh=class extends Vh{constructor(e){super(e),this.element=new it}},Uh=Tp.visitors.document.objects.Operation.$visitor;const zh=class extends Uh{constructor(e){super(e),this.element=new Ve}},Gh=Tp.visitors.document.objects.PathItem.$visitor;const Xh=class extends Gh{constructor(e){super(e),this.element=new Xe}},Kh=Tp.visitors.document.objects.SecurityScheme.$visitor;const Wh=class extends Kh{constructor(e){super(e),this.element=new wc}},Yh=Tp.visitors.document.objects.OAuthFlows.$visitor;const Qh=class extends Yh{constructor(e){super(e),this.element=new qe}},Zh=Tp.visitors.document.objects.OAuthFlow.$visitor;const em=class extends Zh{constructor(e){super(e),this.element=new De}};const tm=class extends Rp{constructor(e){super(e),this.element=new za,this.specPath=e=>mu(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){bu.prototype.ObjectElement.call(this,e),this.element.filter(xl).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(fl).forEach((e,t)=>{e.setMetaProperty("webhook-name",Pn(t))})}},{JSONSchema:sm,LinkDescription:nm}=mc.visitors.document.objects,rm={visitors:{value:Tp.visitors.value,document:{objects:{OpenApi:{element:"openApi3_1",$visitor:_p,fixedFields:{openapi:{element:"openapi",$visitor:Kp},info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:{element:"jsonSchemaDialect",$visitor:Xp},servers:Tp.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:tm,components:{$ref:"#/visitors/document/objects/Components"},security:Tp.visitors.document.objects.OpenApi.fixedFields.security,tags:Tp.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{element:"info",$visitor:Bp,fixedFields:{title:Tp.visitors.document.objects.Info.fixedFields.title,description:Tp.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Tp.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Tp.visitors.document.objects.Info.fixedFields.version}},Contact:{element:"contact",$visitor:Vp,fixedFields:{name:Tp.visitors.document.objects.Contact.fixedFields.name,url:Tp.visitors.document.objects.Contact.fixedFields.url,email:Tp.visitors.document.objects.Contact.fixedFields.email}},License:{element:"license",$visitor:Up,fixedFields:{name:Tp.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Tp.visitors.document.objects.License.fixedFields.url}},Server:{element:"server",$visitor:Yp,fixedFields:{url:Tp.visitors.document.objects.Server.fixedFields.url,description:Tp.visitors.document.objects.Server.fixedFields.description,variables:Tp.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{element:"serverVariable",$visitor:Zp,fixedFields:{enum:Tp.visitors.document.objects.ServerVariable.fixedFields.enum,default:Tp.visitors.document.objects.ServerVariable.fixedFields.default,description:Tp.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{element:"components",$visitor:ih,fixedFields:{schemas:kh,responses:Tp.visitors.document.objects.Components.fixedFields.responses,parameters:Tp.visitors.document.objects.Components.fixedFields.parameters,examples:Tp.visitors.document.objects.Components.fixedFields.examples,requestBodies:Tp.visitors.document.objects.Components.fixedFields.requestBodies,headers:Tp.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Tp.visitors.document.objects.Components.fixedFields.securitySchemes,links:Tp.visitors.document.objects.Components.fixedFields.links,callbacks:Tp.visitors.document.objects.Components.fixedFields.callbacks,pathItems:Ah}},Paths:{element:"paths",$visitor:Dh},PathItem:{element:"pathItem",$visitor:Xh,fixedFields:{$ref:Tp.visitors.document.objects.PathItem.fixedFields.$ref,summary:Tp.visitors.document.objects.PathItem.fixedFields.summary,description:Tp.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:Tp.visitors.document.objects.PathItem.fixedFields.servers,parameters:Tp.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{element:"operation",$visitor:zh,fixedFields:{tags:Tp.visitors.document.objects.Operation.fixedFields.tags,summary:Tp.visitors.document.objects.Operation.fixedFields.summary,description:Tp.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Tp.visitors.document.objects.Operation.fixedFields.operationId,parameters:Tp.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Tp.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Tp.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Tp.visitors.document.objects.Operation.fixedFields.deprecated,security:Tp.visitors.document.objects.Operation.fixedFields.security,servers:Tp.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{element:"externalDocumentation",$visitor:Ch,fixedFields:{description:Tp.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Tp.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{element:"parameter",$visitor:dh,fixedFields:{name:Tp.visitors.document.objects.Parameter.fixedFields.name,in:Tp.visitors.document.objects.Parameter.fixedFields.in,description:Tp.visitors.document.objects.Parameter.fixedFields.description,required:Tp.visitors.document.objects.Parameter.fixedFields.required,deprecated:Tp.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Tp.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Tp.visitors.document.objects.Parameter.fixedFields.style,explode:Tp.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Tp.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Tp.visitors.document.objects.Parameter.fixedFields.example,examples:Tp.visitors.document.objects.Parameter.fixedFields.examples,content:Tp.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{element:"requestBody",$visitor:qh,fixedFields:{description:Tp.visitors.document.objects.RequestBody.fixedFields.description,content:Tp.visitors.document.objects.RequestBody.fixedFields.content,required:Tp.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{element:"mediaType",$visitor:th,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Tp.visitors.document.objects.MediaType.fixedFields.example,examples:Tp.visitors.document.objects.MediaType.fixedFields.examples,encoding:Tp.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{element:"encoding",$visitor:Th,fixedFields:{contentType:Tp.visitors.document.objects.Encoding.fixedFields.contentType,headers:Tp.visitors.document.objects.Encoding.fixedFields.headers,style:Tp.visitors.document.objects.Encoding.fixedFields.style,explode:Tp.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Tp.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{element:"responses",$visitor:Hh,fixedFields:{default:Tp.visitors.document.objects.Responses.fixedFields.default}},Response:{element:"response",$visitor:Jh,fixedFields:{description:Tp.visitors.document.objects.Response.fixedFields.description,headers:Tp.visitors.document.objects.Response.fixedFields.headers,content:Tp.visitors.document.objects.Response.fixedFields.content,links:Tp.visitors.document.objects.Response.fixedFields.links}},Callback:{element:"callback",$visitor:Lh},Example:{element:"example",$visitor:Ph,fixedFields:{summary:Tp.visitors.document.objects.Example.fixedFields.summary,description:Tp.visitors.document.objects.Example.fixedFields.description,value:Tp.visitors.document.objects.Example.fixedFields.value,externalValue:Tp.visitors.document.objects.Example.fixedFields.externalValue}},Link:{element:"link",$visitor:Gp,fixedFields:{operationRef:Tp.visitors.document.objects.Link.fixedFields.operationRef,operationId:Tp.visitors.document.objects.Link.fixedFields.operationId,parameters:Tp.visitors.document.objects.Link.fixedFields.parameters,requestBody:Tp.visitors.document.objects.Link.fixedFields.requestBody,description:Tp.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{element:"header",$visitor:hh,fixedFields:{description:Tp.visitors.document.objects.Header.fixedFields.description,required:Tp.visitors.document.objects.Header.fixedFields.required,deprecated:Tp.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Tp.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Tp.visitors.document.objects.Header.fixedFields.style,explode:Tp.visitors.document.objects.Header.fixedFields.explode,allowReserved:Tp.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Tp.visitors.document.objects.Header.fixedFields.example,examples:Tp.visitors.document.objects.Header.fixedFields.examples,content:Tp.visitors.document.objects.Header.fixedFields.content}},Tag:{element:"tag",$visitor:ch,fixedFields:{name:Tp.visitors.document.objects.Tag.fixedFields.name,description:Tp.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{element:"reference",$visitor:lh,fixedFields:{$ref:Tp.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...nm},Schema:{element:"schema",$visitor:mh,fixedFields:{...sm.fixedFields,$defs:fh,allOf:yh,anyOf:gh,oneOf:xh,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:vh,prefixItems:bh,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:wh,patternProperties:Sh,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:jh,fixedFields:{propertyName:Tp.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Tp.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{element:"xml",$visitor:Fh,fixedFields:{name:Tp.visitors.document.objects.XML.fixedFields.name,namespace:Tp.visitors.document.objects.XML.fixedFields.namespace,prefix:Tp.visitors.document.objects.XML.fixedFields.prefix,attribute:Tp.visitors.document.objects.XML.fixedFields.attribute,wrapped:Tp.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{element:"securityScheme",$visitor:Wh,fixedFields:{type:Tp.visitors.document.objects.SecurityScheme.fixedFields.type,description:Tp.visitors.document.objects.SecurityScheme.fixedFields.description,name:Tp.visitors.document.objects.SecurityScheme.fixedFields.name,in:Tp.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Tp.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Tp.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Tp.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{element:"oAuthFlows",$visitor:Qh,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:em,fixedFields:{authorizationUrl:Tp.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Tp.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Tp.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Tp.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{element:"securityRequirement",$visitor:nh}},extension:{$visitor:Tp.visitors.document.extension.$visitor}}}},im=e=>$e(e)&&e.hasKey("$ref"),om=$e,cm=$e,am=e=>je(e.key)&&hu("x-",Pn(e.key)),lm=()=>{const e=new eu,t={...n,...s,isStringElement:je,isArrayElement:Ae,isObjectElement:$e};return e.use(Pc),{predicates:t,namespace:e}},um=(e,{element:t="openApi3_1",plugins:s=[],specificationObj:n=rm,consume:r=!1}={})=>{const i=ou(e),o=Zs(n),c=o.elementMap[t];if(!c)throw new Error(`Unknown element type: "${t}"`);const a=new(bt(c,o))({specObj:o,consume:r});return Gr(i,a,{nodeTypeGetter:Dr}),ru(a.element,s,{toolboxCreator:lm})},dm=(e,t={})=>um(e,{...t,element:"openApi3_1"}),pm=(e,t={})=>um(e,{...t,element:"info"}),hm=(e,t={})=>um(e,{...t,element:"contact"}),mm=(e,t={})=>um(e,{...t,element:"license"}),fm=(e,t={})=>um(e,{...t,element:"server"}),ym=(e,t={})=>um(e,{...t,element:"serverVariable"}),gm=(e,t={})=>um(e,{...t,element:"components"}),xm=(e,t={})=>um(e,{...t,element:"paths"}),vm=(e,t={})=>um(e,{...t,element:"pathItem"}),bm=(e,t={})=>um(e,{...t,element:"operation"}),wm=(e,t={})=>um(e,{...t,element:"externalDocumentation"}),Sm=(e,t={})=>um(e,{...t,element:"parameter"}),Em=(e,t={})=>um(e,{...t,element:"requestBody"}),jm=(e,t={})=>um(e,{...t,element:"mediaType"}),Om=(e,t={})=>um(e,{...t,element:"encoding"}),Fm=(e,t={})=>um(e,{...t,element:"responses"}),km=(e,t={})=>um(e,{...t,element:"response"}),Am=(e,t={})=>um(e,{...t,element:"callback"}),$m=(e,t={})=>um(e,{...t,element:"example"}),Pm=(e,t={})=>um(e,{...t,element:"link"}),Im=(e,t={})=>um(e,{...t,element:"header"}),Cm=(e,t={})=>um(e,{...t,element:"tag"}),Mm=(e,t={})=>um(e,{...t,element:"reference"}),Tm=(e,t={})=>um(e,{...t,element:"schema"}),Nm=(e,t={})=>um(e,{...t,element:"discriminator"}),Dm=(e,t={})=>um(e,{...t,element:"xml"}),Rm=(e,t={})=>um(e,{...t,element:"securityScheme"}),qm=(e,t={})=>um(e,{...t,element:"oAuthFlows"}),_m=(e,t={})=>um(e,{...t,element:"oAuthFlow"}),Lm=(e,t={})=>um(e,{...t,element:"securityRequirement"}),Bm=(e,t={})=>um(e,{...t,element:"jsonSchemaDialect"}),Jm=um,Vm=e=>{const t=void 0===e.servers,s=Ae(e.servers),n=s&&0===e.servers.length,r=fm({url:"/"});t||!s?e.servers=new Cc([r]):s&&n&&e.servers.push(r)},Hm=(e,t)=>{const s=void 0===e.servers,n=Ae(e.servers),r=n&&0===e.servers.length,i=[...t.servers??[]];s||!n?e.servers=new Lc(i):n&&r&&i.forEach(t=>{e.servers.push(t)})},Um=(e,t)=>{const s=void 0===e.servers,n=Ae(e.servers),r=n&&0===e.servers.length,i=[...t.servers??[]];s||!n?e.servers=new Qc(i):n&&r&&i.forEach(t=>{e.servers.push(t)})},zm=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;Vm(s),n=new Za(s,e,"servers")},leave(){n=void 0}},PathItemElement(e){const t=e.node,r=e.getAncestorNodes();if(r.some(s.isComponentsElement))return;if(!r.some(s.isOpenApi3_1Element))return;const i=e.formatPath();if(n.includes(i))return;const o=r.find(s.isOpenApi3_1Element);s.isOpenApi3_1Element(o)&&(Hm(t,o),n.append(i))},OperationElement(e){const t=e.node,r=e.getAncestorNodes();if(r.some(s.isComponentsElement))return;if(!r.some(s.isOpenApi3_1Element))return;const i=e.formatPath();if(n.includes(i))return;const o=r.find(s.isPathItemElement);s.isPathItemElement(o)&&(Um(t,o),n.append(i))}}}};zm.ensureDefaultServer=Vm,zm.inheritServersToPathItem=Hm,zm.inheritServersToOperation=Um;const Gm=zm;var Xm=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"]=Wt,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,T(this.valueAcc,!1)],this.inputs[s][1]=this.valueFn(this.inputs[s][1],t),e},e}();function Km(e,t,s){return function(n){return new Xm(e,t,s,n)}}const Wm=g(Rt("groupBy",hs(4,[],Xt([],Km,function(e,t,s,n){var r=Nt(function(n,r){var i=s(r),o=e(b(i,n)?n[i]:T(t,!1),r);return o&&o["@@transducer/reduced"]?so(n):(n[i]=o,n)});return Mt(r,{},n)}))(function(e,t){return e.push(t),e},[]))),Ym=e=>e.replace(/\s/g,""),Qm=e=>e.replace(/\W/gi,"_"),Zm=(e,t,s)=>{const n=Ym(e);return n.length>0?Qm(n):((e,t)=>`${Qm(Ym(t.toLowerCase()))}${Qm(Ym(e))}`)(t,s)},ef=({storageField:e="x-normalized",operationIdNormalizer:t=Zm}={})=>s=>{const{predicates:n,namespace:r}=s,i=[],o=[],a=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;l=new Za(s,e,"operation-ids")},leave(){const e=Wm(e=>Pn(e.operationId),o);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,s)=>{const n=`${e}${s+1}`;t.operationId=new r.elements.String(n)}))}),a.forEach(e=>{if(void 0===e.operationId)return;const t=String(Pn(e.operationId)),s=o.find(e=>e.meta.get("originalOperationId")===t);void 0!==s&&(e.operationId=vn.safe(s.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),o.length=0,a.length=0,l=void 0}},PathItemElement:{enter(e){const t=e.node,s=Bn("path",t.meta.get("path"));i.push(s)},leave(){i.pop()}},OperationElement:{enter(e){const s=e.node;if(void 0===s.operationId)return;const n=e.formatPath();if(l.includes(n))return;const a=String(Pn(s.operationId)),u=c(i),d=Bn("method",s.meta.get("http-method")),p=t(a,u,d);a!==p&&(s.operationId=new r.elements.String(p),s.set("__originalOperationId",a),s.meta.set("originalOperationId",a),o.push(s),l.append(n))}},LinkElement:{leave(e){const t=e.node;n.isLinkElement(t)&&void 0!==t.operationId&&a.push(t)}}}}},tf=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;n=new Za(s,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e){const t=e.node;if(e.getAncestorNodes().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 r=e.formatPath();if(!n.includes(r)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>vn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),n.append(r)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),n.append(r)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[vn(t.example)]),n.append(r)),void 0!==t.schema.example&&(t.schema.set("example",vn(t.example)),n.append(r)))}}}}}},sf=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;n=new Za(s,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e){const t=e.node;if(e.getAncestorNodes().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 r=e.formatPath();if(!n.includes(r)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>vn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),n.append(r)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),n.append(r)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[vn(t.example)]),n.append(r)),void 0!==t.schema.example&&(t.schema.set("example",vn(t.example)),n.append(r)))}}}}}};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:()=>Su,BaseFixedFieldsVisitor:()=>Rp,BaseMapVisitor:()=>qp,BaseSchemaVisitor:()=>_p,BaseSpecificationVisitor:()=>Dp,CallbackElement:()=>W,ComponentsCallbacksElement:()=>_a,ComponentsElement:()=>Q,ComponentsExamplesElement:()=>$a,ComponentsHeadersElement:()=>Ma,ComponentsLinksElement:()=>Ra,ComponentsParametersElement:()=>ka,ComponentsPathItemsElement:()=>Ua,ComponentsRequestBodiesElement:()=>Ia,ComponentsResponsesElement:()=>Oa,ComponentsSchemasElement:()=>Ea,ComponentsSecuritySchemesElement:()=>Ta,ContactElement:()=>ee,DiscriminatorElement:()=>se,DiscriminatorMappingElement:()=>Ba,EncodingElement:()=>re,EncodingHeadersElement:()=>da,ExampleElement:()=>oe,ExternalDocumentationElement:()=>ae,FallbackVisitor:()=>lu,FixedFieldsVisitor:()=>vu,HeaderContentElement:()=>wa,HeaderElement:()=>pe,HeaderExamplesElement:()=>va,InfoElement:()=>me,JsonSchemaDialectElement:()=>ge,LicenseElement:()=>ve,LinkElement:()=>Ce,LinkParametersElement:()=>zu,MapVisitor:()=>wu,MediaTypeElement:()=>Ne,MediaTypeEncodingElement:()=>la,MediaTypeExamplesElement:()=>ca,MixedFieldsVisitor:()=>ku,OAuthFlowElement:()=>De,OAuthFlowScopesElement:()=>Va,OAuthFlowsElement:()=>qe,OpenAPIMediaTypes:()=>f,OpenApi3_1Element:()=>Be,OpenapiElement:()=>Le,OperationCallbacksElement:()=>Kc,OperationElement:()=>Ve,OperationParametersElement:()=>Gc,OperationSecurityElement:()=>Yc,OperationServersElement:()=>Zc,OperationTagsElement:()=>Uc,ParameterContentElement:()=>na,ParameterElement:()=>ze,ParameterExamplesElement:()=>ta,PathItemElement:()=>Xe,PathItemParametersElement:()=>Vc,PathItemServersElement:()=>Bc,PathsElement:()=>We,PatternedFieldsVisitor:()=>bu,ReferenceElement:()=>Ze,RequestBodyContentElement:()=>ia,RequestBodyElement:()=>tt,ResponseContentElement:()=>fa,ResponseElement:()=>nt,ResponseHeadersElement:()=>ha,ResponseLinksElement:()=>ga,ResponsesElement:()=>it,SchemaElement:()=>xc,SecurityElement:()=>Tc,SecurityRequirementElement:()=>bc,SecuritySchemeElement:()=>Sc,ServerElement:()=>jc,ServerVariableElement:()=>Fc,ServerVariablesElement:()=>_c,ServersElement:()=>Mc,SpecificationExtensionVisitor:()=>Ru,SpecificationVisitor:()=>uu,TagElement:()=>Ac,TagsElement:()=>Rc,Visitor:()=>au,WebhooksElement:()=>Ga,XmlElement:()=>Pc,createToolbox:()=>um,default:()=>Ic,isBooleanJSONSchemaElement:()=>tl,isCallbackElement:()=>sl,isComponentsElement:()=>nl,isContactElement:()=>rl,isExampleElement:()=>il,isExternalDocumentationElement:()=>ol,isInfoElement:()=>al,isJsonSchemaDialectElement:()=>ll,isLicenseElement:()=>ul,isLinkElement:()=>dl,isMediaTypeElement:()=>$l,isOpenApi3_1Element:()=>hl,isOpenApiExtension:()=>xu,isOpenapiElement:()=>pl,isOperationElement:()=>ml,isParameterElement:()=>fl,isPathItemElement:()=>yl,isPathItemElementExternal:()=>gl,isPathsElement:()=>xl,isReferenceElement:()=>vl,isReferenceElementExternal:()=>bl,isReferenceLikeElement:()=>fu,isRequestBodyElement:()=>wl,isResponseElement:()=>Sl,isResponsesElement:()=>El,isSchemaElement:()=>jl,isSecurityRequirementElement:()=>Ol,isSecuritySchemeElement:()=>Fl,isServerElement:()=>kl,isServerLikeElement:()=>yu,isServerVariableElement:()=>Al,isServersElement:()=>od,mediaTypes:()=>y,refract:()=>Vm,refractCallback:()=>$m,refractComponents:()=>xm,refractContact:()=>mm,refractDiscriminator:()=>Dm,refractEncoding:()=>Fm,refractExample:()=>Pm,refractExternalDocumentation:()=>Sm,refractHeader:()=>Cm,refractInfo:()=>hm,refractJsonSchemaDialect:()=>Jm,refractLicense:()=>fm,refractLink:()=>Im,refractMediaType:()=>Om,refractOAuthFlow:()=>Lm,refractOAuthFlows:()=>_m,refractOpenApi3_1:()=>pm,refractOperation:()=>wm,refractParameter:()=>Em,refractPathItem:()=>bm,refractPaths:()=>vm,refractReference:()=>Nm,refractRequestBody:()=>jm,refractResponse:()=>Am,refractResponses:()=>km,refractSchema:()=>Tm,refractSecurityRequirement:()=>Bm,refractSecurityScheme:()=>qm,refractServer:()=>ym,refractServerVariable:()=>gm,refractTag:()=>Mm,refractXml:()=>Rm,refractorPluginNormalizeHeaderExamples:()=>nf,refractorPluginNormalizeOperationIds:()=>tf,refractorPluginNormalizeParameterExamples:()=>sf,refractorPluginNormalizeParameters:()=>Ml,refractorPluginNormalizeSecurityRequirements:()=>Tl,refractorPluginNormalizeServers:()=>Xm,refractorPluginReplaceEmptyElement:()=>Wa,specificationObj:()=>im});var s={};e.r(s),e.d(s,{isBooleanJSONSchemaElement:()=>tl,isCallbackElement:()=>sl,isComponentsElement:()=>nl,isContactElement:()=>rl,isExampleElement:()=>il,isExternalDocumentationElement:()=>ol,isHeaderElement:()=>cl,isInfoElement:()=>al,isJsonSchemaDialectElement:()=>ll,isLicenseElement:()=>ul,isLinkElement:()=>dl,isMediaTypeElement:()=>$l,isOpenApi3_1Element:()=>hl,isOpenapiElement:()=>pl,isOperationElement:()=>ml,isParameterElement:()=>fl,isPathItemElement:()=>yl,isPathItemElementExternal:()=>gl,isPathsElement:()=>xl,isReferenceElement:()=>vl,isReferenceElementExternal:()=>bl,isRequestBodyElement:()=>wl,isResponseElement:()=>Sl,isResponsesElement:()=>El,isSchemaElement:()=>jl,isSecurityRequirementElement:()=>Ol,isSecuritySchemeElement:()=>Fl,isServerElement:()=>kl,isServerVariableElement:()=>Al});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:()=>lm,isReferenceLikeElement:()=>om,isServerLikeElement:()=>cm,isTagLikeElement:()=>am});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?`openapi;version=${e}`:`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/openapi;version=3.1.0","application/openapi+json;version=3.1.0","application/openapi+yaml;version=3.1.0","application/openapi;version=3.1.1","application/openapi+json;version=3.1.1","application/openapi+yaml;version=3.1.1","application/openapi;version=3.1.2","application/openapi+json;version=3.1.2","application/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 M=g(function(e,t){return C(e,t,[],[])});function N(e,t,s){if(s||(s=new T),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?N(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 T=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}();const D=i(function(e){return null!=e&&"function"==typeof e.clone?e.clone():N(e,!0)});class R{get(e){return this[e]}set(e,t){this[e]=t}hasKey(e){return Object.hasOwn(this,e)}keys(){return Object.keys(this)}remove(e){delete this[e]}get isEmpty(){return 0===Object.keys(this).length}get isFrozen(){return Object.isFrozen(this)}freeze(){for(const e of Object.values(this))e instanceof this.Element?e.freeze():(Array.isArray(e)||null!==e&&"object"==typeof e)&&Object.freeze(e);Object.freeze(this)}cloneShallow(){const e=new R;return Object.assign(e,this),e}merge(e){const t=this.cloneShallow();for(const[s,n]of Object.entries(e)){const e=t.get(s);Array.isArray(e)&&Array.isArray(n)?t.set(s,[...e,...n]):t.set(s,n)}return t}cloneDeep(){const e=new R;for(const[t,s]of Object.entries(this))s instanceof this.Element?e.set(t,this.cloneDeepElement(s)):e.set(t,D(s));return e}}const q=R;const _=class{key;value;constructor(e,t){this.key=e,this.value=t}toValue(){return{key:this.key?.toValue(),value:this.value?.toValue()}}};class L{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 L(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 L(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 B=L,J=Object.freeze(new q);class V{parent;style;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 V)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 _)this._content=e;else if(e instanceof B)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)return J;this._meta=new q}return this._meta}set meta(e){if(e instanceof q)this._meta=e;else if(e&&"object"==typeof e){const t=new q;Object.assign(t,e),this._meta=t}}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 V?this._attributes=e:this.attributes.set(e??{})}get id(){if(!this.hasMetaProperty("id")){if(this.isFrozen)return"";this.setMetaProperty("id","")}return this.meta.get("id")}set id(e){this.setMetaProperty("id",e)}get classes(){if(!this.hasMetaProperty("classes")){if(this.isFrozen)return[];this.setMetaProperty("classes",[])}return this.meta.get("classes")}set classes(e){this.setMetaProperty("classes",e)}get links(){if(!this.hasMetaProperty("links")){if(this.isFrozen){const e=new this.ArrayElement;return e.freeze(),e}this.setMetaProperty("links",new this.ArrayElement)}return this.meta.get("links")}set links(e){this.setMetaProperty("links",e)}get children(){const{_content:e}=this;if(Array.isArray(e))return e;if(e instanceof _){const t=[];return e.key&&t.push(e.key),e.value&&t.push(e.value),t}return e instanceof V?[e]:[]}get isFrozen(){return Object.isFrozen(this)}freeze(){if(!this.isFrozen){this._meta&&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 V||e instanceof _?e.toValue():Array.isArray(e)?e.map(e=>e.toValue()):e}equals(e){const t=e instanceof V?e.toValue():e;return M(this.toValue(),t)}primitive(){}set(e){return this.content=e,this}toRef(e){const t=this.id;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){return this.hasMetaProperty(e)?this.meta.get(e):t}setMetaProperty(e,t){this.meta.set(e,t)}hasMetaProperty(e){return void 0!==this._meta&&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 H=V;class U extends H{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===e).first}concat(e){return new(0,this.constructor)(this._content.concat(e._content))}[Symbol.iterator](){return this._content[Symbol.iterator]()}}const z=U;const G=class extends H{constructor(e,t,s,n){super(new _,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 X=class extends z{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 G(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 B(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 B(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 K=class extends X{constructor(e,t,s){super(e,t,s),this.element="callback"}};const W=class extends K{};const Y=class extends X{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 Q=class extends Y{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const Z=class extends X{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 ee=class extends Z{};const te=class extends X{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 se=class extends te{};const ne=class extends X{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 styleField(){return this.get("style")}set styleField(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 re=class extends ne{};const ie=class extends X{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 oe=class extends ie{};const ce=class extends X{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 ae=class extends ce{};const le=class extends H{constructor(e,t,s){super(e,t,s),this.element="boolean"}primitive(){return"boolean"}};class ue extends X{constructor(e,t,s){super(e,t,s),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new le(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(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(ue.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const de=ue;const pe=class extends de{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const he=class extends X{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 me=class extends he{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 fe=class extends H{constructor(e,t,s){super(e,t,s),this.element="string"}primitive(){return"string"}get length(){return this.content?.length??0}};class ye extends fe{static default=new ye("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,s){super(e,t,s),this.element="jsonSchemaDialect"}}const ge=ye;const xe=class extends X{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 ve=class extends xe{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const be=class extends H{constructor(e,t,s){super(e,t,s),this.element="number"}primitive(){return"number"}};const we=class extends H{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 Se=class extends z{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([])}},Ee=e=>e instanceof H,je=e=>e instanceof fe,Oe=e=>e instanceof be,Fe=e=>e instanceof we,ke=e=>e instanceof le,Ae=e=>e instanceof Se,$e=e=>e instanceof X,Pe=e=>e instanceof G;const Ie=class extends X{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 je(this.operationRef)?this.operationRef?.meta.get("operation"):je(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 Ce=class extends Ie{};const Me=class extends X{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 Ne=class extends Me{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Te=class extends X{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 De=class extends Te{};const Re=class extends X{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 qe=class extends Re{};const _e=class extends fe{constructor(e,t,s){super(e,t,s),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}};const Le=class extends _e{};const Be=class extends X{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 Je=class extends X{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 le(!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 Ve=class extends Je{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};class He extends X{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 le(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new le(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get styleField(){return this.get("style")}set styleField(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(He.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ue=He;const ze=class extends Ue{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ge=class extends X{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 Xe=class extends Ge{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 Ke=class extends X{constructor(e,t,s){super(e,t,s),this.element="paths"}};const We=class extends Ke{};const Ye=class extends X{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 Qe extends Ye{}Object.defineProperty(Qe.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Qe.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Ze=Qe;const et=class extends X{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 le(!1)}set required(e){this.set("required",e)}};const tt=class extends et{};const st=class extends X{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 nt=class extends st{};const rt=class extends X{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 it=class extends rt{};function ot(e,t,s){for(var n=0,r=s.length;n<r;)t=e(t,s[n]),n+=1;return t}var ct=g(function(e,t){return ot(function(s,n){return s[n]=e(t[n],n,t),s},{},$(t))});const at=ct;const lt=i(function(e){return null==e});var ut=g(function(e,t){if(0===e.length||lt(t))return!1;for(var s=t,n=0;n<e.length;){if(lt(s)||!b(e[n],s))return!1;s=s[e[n]],n+=1}return!0});const dt=ut;var pt=g(function(e,t){return dt([e],t)});const ht=pt;function mt(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 ft=Number.isInteger||function(e){return(e|0)===e};const yt=function(e,t){if(null!=t)return ft(e)?o(e,t):t[e]};const gt=g(yt);const xt=mt(function(e,t,s){return e(gt(t,s))});function vt(e,t){for(var s=t,n=0;n<e.length;n+=1){if(null==s)return;var r=e[n];s=ft(r)?o(r,s):s[r]}return s}const bt=g(vt);function wt(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 St(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const Et=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function jt(e){return"[object String]"===Object.prototype.toString.call(e)}const Ot=i(function(e){return!!Et(e)||!!e&&("object"==typeof e&&(!jt(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))});var Ft="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function kt(e,t,s){return function(n,r,i){if(Ot(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[Ft])return s(n,r,i[Ft]());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 At(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 $t=g(function(e,t){return wt(e.length,function(){return e.apply(t,arguments)})});const Pt=$t;function It(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 Ct(e,t,s,n){return e["@@transducer/result"](s[n](Pt(e["@@transducer/step"],e),t))}const Mt=kt(At,Ct,It);var Nt=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 Tt(e){return new Nt(e)}const Dt=mt(function(e,t,s){return Mt("function"==typeof e?Tt(e):e,t,s)});function Rt(e,t){return function(){var s=arguments.length;if(0===s)return t();var n=arguments[s-1];return Et(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,s-1))}}const qt=mt(Rt("slice",function(e,t,s){return Array.prototype.slice.call(s,e,t)}));const _t=i(Rt("tail",qt(1,1/0)));function Lt(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return wt(arguments[0].length,Dt(St,arguments[0],_t(arguments)))}var Bt=function(e,t){switch(arguments.length){case 0:return Bt;case 1:return function t(s){return 0===arguments.length?t:w(e,s)};default:return w(e,t)}};const Jt=Bt;function Vt(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(M(e[s],t))return s;s+=1}return-1}(t,e,0)>=0}function Ht(e,t){for(var s=0,n=t.length,r=Array(n);s<n;)r[s]=e(t[s]),s+=1;return r}function Ut(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 zt=function(e){return(e<10?"0":"")+e};const Gt="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+zt(e.getUTCMonth()+1)+"-"+zt(e.getUTCDate())+"T"+zt(e.getUTCHours())+":"+zt(e.getUTCMinutes())+":"+zt(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function Xt(e,t,s){return function(){if(0===arguments.length)return s();var n=arguments[arguments.length-1];if(!Et(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 Kt(e){return"[object Object]"===Object.prototype.toString.call(e)}const Wt=function(){return this.xf["@@transducer/init"]()},Yt=function(e){return this.xf["@@transducer/result"](e)};var Qt=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Zt(e){return function(t){return new Qt(e,t)}}var es=g(Xt(["fantasy-land/filter","filter"],Zt,function(e,t){return Kt(t)?ot(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 ts=es;const ss=g(function(e,t){return ts((s=e,function(){return!s.apply(this,arguments)}),t);var s});function ns(e,t){var s=function(s){var n=t.concat([e]);return Vt(s,n)?"<Circular>":ns(s,n)},n=function(e,t){return Ht(function(t){return Ut(t)+": "+s(e[t])},t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Ht(s,e).join(", ")+"))";case"[object Array]":return"["+Ht(s,e).concat(n(e,ss(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):Ut(Gt(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())+")":Ut(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 rs=i(function(e){return ns(e,[])});const is=mt(function(e,t,s){return e(vt(t,s))});function os(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const cs=g(function(e,t){return e&&t});function as(e,t,s){for(var n=s.next();!n.done;)t=e(t,n.value),n=s.next();return t}function ls(e,t,s,n){return s[n](e,t)}const us=kt(ot,ls,as);var ds=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const ps=function(e){return function(t){return new ds(e,t)}};function hs(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):wt(Math.max(0,o),hs(e,n,s))}}var ms=g(function(e,t){return 1===e?i(t):wt(e,hs(e,[],t))});const fs=ms;var ys=g(Xt(["fantasy-land/map","map"],ps,function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return fs(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return ot(function(s,n){return s[n]=e(t[n]),s},{},$(t));default:return Ht(e,t)}}));const gs=ys;const xs=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))}:us(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,gs(s,t))},[],e)});var vs=g(function(e,t){var s=fs(e,t);return fs(e,function(){return ot(xs,gs(s,arguments[0]),Array.prototype.slice.call(arguments,1))})});const bs=vs;var ws=i(function(e){return bs(e.length,e)});const Ss=ws;const Es=g(function(e,t){return os(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:Ss(cs)(e,t)});const js=M(null);const Os=Ss(i(function(e){return!e}));const Fs=Os(js);function ks(e){return ks="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},ks(e)}const As=function(e){return"object"===ks(e)};const $s=fs(1,Es(Fs,As));const Ps=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=rs(e),o=s(i,rs(t));return void 0!==o&&o===i?e:t});const Is=g(function(e,t){return gs(gt(e),t)});const Cs=i(function(e){return fs(Dt(Ps,0,Is("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 Ms=fs(1,Lt(P,Jt("GeneratorFunction")));const Ns=fs(1,Lt(P,Jt("AsyncFunction")));const Ts=Cs([Lt(P,Jt("Function")),Ms,Ns]);var Ds=Lt(P,Jt("Object")),Rs=Lt(rs,M(rs(Object))),qs=is(Es(Ts,Rs),["constructor"]);const _s=fs(1,function(e){if(!$s(e)||!Ds(e))return!1;var t=Object.getPrototypeOf(e);return!!js(t)||qs(t)});const Ls=fs(1,Lt(P,Jt("String")));var Bs=i(function(e){return fs(e.length,e)});const Js=Bs;const Vs=g(function(e,t){return fs(e+1,function(){var s=arguments[e];if(null!=s&&os(s[t]))return s[t].apply(s,Array.prototype.slice.call(arguments,0,e));throw new TypeError(rs(s)+' does not have a method named "'+t+'"')})});const Hs=Vs(1,"split");var Us=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,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 zs(e){return function(t){return new Us(e,t)}}const Gs=g(Xt(["dropWhile"],zs,function(e,t){for(var s=0,n=t.length;s<n&&e(t[s]);)s+=1;return qt(s,1/0,t)}));const Xs=Vs(1,"join");var Ks=i(function(e){return fs(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 Ws=Ks(g(Vt));const Ys=Js(function(e,t){return Lt(Hs(""),Gs(Ws(e)),Xs(""))(t)}),Qs=new WeakMap,Zs=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),at((e,t)=>{const i=[...r,t];if(_s(e)&&ht("$ref",e)&&xt(Ls,"$ref",e)){const t=bt(["$ref"],e),s=Ys("#/",t),r=bt(s.split("/"),n),{$ref:i,...o}=e;return Object.keys(o).length>0&&_s(r)?{...r,...o}:r}return _s(e)?s(e,n,i):e},e)),n=s(e,e,[]);return n.elementMap=t,Qs.set(e,n),n};const en=class extends X{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 tn=class extends X{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 sn=class extends X{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 nn=class extends X{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)}},rn=e=>void 0!==e.style,on=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,cn=(e,t)=>0===t.length||!!Ee(e)&&(!e.isMetaEmpty&&(!!e.hasMetaProperty("classes")&&t.every(t=>e.classes.includes(t))));class an extends fe{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(un).join("");const a=new an(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=dn(t,n);s.push(e.value),n=e.next}return s}(this.content))}}const ln="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";function un(e){let t=e>>>0,s="";do{let e=31&t;t>>>=5,0!==t&&(e|=32),s+=ln[e]}while(0!==t);return s}function dn(e,t=0){let s=0,n=0,r=t;for(;;){const t=e[r++],i=ln.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 pn=an;const hn=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 mn=class extends hn{value;constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const fn=class extends mn{};const yn=class extends mn{},gn=(e,t)=>{const{visited:s=new WeakMap}=t,n={...t,visited:s};if(s.has(e))return s.get(e);const r=wn(e);s.set(e,r);const{content:i}=e;return Array.isArray(i)?r.content=i.map(e=>gn(e,n)):Ee(i)?r.content=gn(i,n):r.content=i instanceof _?xn(i,n):i,r},xn=(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?gn(r,n):void 0,c=void 0!==i?gn(i,n):void 0,a=new _(o,c);return s.set(e,a),a},vn=(e,t={})=>{if(e instanceof _)return xn(e,t);if(e instanceof B)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=>gn(e,n)),i=new B(r);return s.set(e,i),i})(e,t);if(Ee(e))return gn(e,t);throw new fn("Value provided to cloneDeep function couldn't be cloned",{value:e})};vn.safe=e=>{try{return vn(e)}catch{return e}};const bn=e=>{const{key:t,value:s}=e;return new _(t,s)},wn=e=>{const t=new(0,e.constructor);t.element=e.element,e.isMetaEmpty||(t.meta=e.meta.cloneDeep()),e.isAttributesEmpty||(t.attributes=vn(e.attributes)),on(e)&&pn.transfer(e,t),rn(e)&&(t.style=D(e.style));const{content:s}=e;return Ee(s)?t.content=wn(s):Array.isArray(s)?t.content=[...s]:t.content=s instanceof _?bn(s):s,t},Sn=e=>{if(e instanceof _)return bn(e);if(e instanceof B)return(e=>{const t=[...e];return new B(t)})(e);if(Ee(e))return wn(e);throw new yn("Value provided to cloneShallow function couldn't be cloned",{value:e})};Sn.safe=e=>{try{return Sn(e)}catch{return e}};const En=class extends H{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 jn=class extends H{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 On=class extends fe{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 Fn=class extends fe{constructor(e,t,s){super(e,t,s),this.element="comment"}};const kn=class extends Se{constructor(e,t,s){super(e,t,s),this.element="parseResult"}get api(){return this.filter(e=>cn(e,["api"])).first}get results(){return this.filter(e=>cn(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&&cn(e,["warning"]))}get errors(){return this.filter(e=>"annotation"===e.element&&cn(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)}},An=e=>e instanceof En,$n=e=>e instanceof jn,Pn=e=>{if(!Ee(e))return e;if(je(e)||Oe(e)||ke(e)||Fe(e))return e.toValue();const t=new WeakMap,s=e=>{if(!Ee(e))return e;if($e(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(Ae(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 $n(e)?String(e.toValue()):An(e)?je(e.href)?e.href.toValue():"":e.toValue()};return s(e)},In=e=>{const t=e.isMetaEmpty?void 0:e.meta.cloneDeep(),s=e.isAttributesEmpty?void 0:vn(e.attributes);return new e.constructor(void 0,t,s)},Cn=(e,t)=>t.clone&&t.isMergeableElement(e)?Nn(In(e),e,t):e,Mn={clone:!0,isMergeableElement:e=>$e(e)||Ae(e),arrayElementMerge:(e,t,s)=>new(0,e.constructor)(e.concat(t).map(e=>Cn(e,s))),objectElementMerge:(e,t,s)=>{const n=$e(e)?In(e):In(t);return $e(e)&&e.forEach((e,t,r)=>{const i=Sn(r);i.value=Cn(e,s),n.content.push(i)}),t.forEach((t,r,i)=>{const o=Pn(r);let c;if($e(e)&&e.hasKey(o)&&s.isMergeableElement(t)){const n=e.get(o);c=Sn(i),c.value=((e,t)=>{if("function"!=typeof t.customMerge)return Nn;const s=t.customMerge(e,t);return"function"==typeof s?s:Nn})(r,s)(n,t,s)}else c=Sn(i),c.value=Cn(t,s);n.remove(o),n.content.push(c)}),n},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0},Nn=(e,t,s)=>{const n={...Mn,...s};n.isMergeableElement=n.isMergeableElement??Mn.isMergeableElement,n.arrayElementMerge=n.arrayElementMerge??Mn.arrayElementMerge,n.objectElementMerge=n.objectElementMerge??Mn.objectElementMerge;const r=Ae(t);if(!(r===Ae(e)))return Cn(t,n);const i=r&&"function"==typeof n.arrayElementMerge?n.arrayElementMerge(e,t,n):n.objectElementMerge(e,t,n);return e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty?t.isMetaEmpty||(i.meta=t.meta.cloneDeep()):i.meta=e.meta.cloneDeep():i.meta=(e=>"function"!=typeof e.customMetaMerge?e=>e.cloneDeep():e.customMetaMerge)(n)(e.meta,t.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty?t.isAttributesEmpty||(i.attributes=vn(t.attributes)):i.attributes=vn(e.attributes):i.attributes=(e=>"function"!=typeof e.customAttributesMerge?e=>vn(e):e.customAttributesMerge)(n)(e.attributes,t.attributes),i};Nn.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new X:e.reduce((e,s)=>Nn(e,s,t),In(e[0]))};const Tn=Nn;class Dn extends X{constructor(e,t,s){super(e,t,s),this.element="__styles__"}static transfer(e,t){t.style=e.style}static from(e){if(e.style)return new Dn(e.style)}applyTo(e){e.style=this.toValue()}}const Rn=Dn;const qn=class{element;consume=!1;consumeSafe=!1;constructor(e){Object.assign(this,e)}copyMetaAndAttributes(e,t){e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty||(t.meta=e.meta.cloneDeep()):t.meta=t.meta.merge(e.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty||(t.attributes=vn(e.attributes)):t.attributes=Tn(t.attributes,e.attributes),pn.transfer(e,t),Rn.transfer(e,t)}};const _n=class extends qn{enter(e){this.element=this.consume?e.node:vn(e.node),e.stop()}};const Ln=i(function(e){return function(){return e}});const Bn=g(function(e,t){return null==t||t!=t?e:t});const Jn=Ln(void 0);const Vn=M(Jn());const Hn=i(function(e){return fs(Dt(Ps,0,Is("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 Un=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:Et(e)?[]:jt(e)?"":Kt(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 zn=Un;const Gn=i(function(e){return null!=e&&M(e,zn(e))});const Xn=i(function(e){return!Gn(e)});const Kn=g(function(e,t){return e||t});const Wn=fs(1,Es(Fs,g(function(e,t){return os(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:Ss(Kn)(e,t)})(As,Ts)));var Yn=Os(Wn);const Qn=Hn([Ls,Yn,Xn]);const Zn=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});function er(){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 tr 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 sr=tr;const nr=function(){const e=ir,t=rr,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}},rr={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)}},ir={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 ir.ALT:return"ALT";case ir.CAT:return"CAT";case ir.REP:return"REP";case ir.RNM:return"RNM";case ir.TRG:return"TRG";case ir.TBS:return"TBS";case ir.TLS:return"TLS";case ir.UDT:return"UDT";case ir.AND:return"AND";case ir.NOT:return"NOT";case ir.ACTIVE:return"ACTIVE";case ir.EMPTY:return"EMPTY";case ir.MATCH:return"MATCH";case ir.NOMATCH:return"NOMATCH";case ir.SEM_PRE:return"SEM_PRE";case ir.SEM_POST:return"SEM_POST";case ir.SEM_OK:return"SEM_OK";default:return"UNRECOGNIZED STATE"}}};new er;new er,new nr,new er,new nr,new er,new nr,new er,new nr;const or=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 cr=class extends sr{},ar=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 or(String(e))}).join("/")}`}catch(t){throw new cr("Unexpected error during JSON Pointer compilation",{cause:t,referenceTokens:e})}};class lr 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 ur=lr;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 dr=class extends ur{},pr=e=>{if(!Array.isArray(e))throw new dr("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 dr("Failed to compile normalized JSONPath",{cause:t,selectors:e})}},hr=(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)}},mr=(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)}},fr=(e,t,s,n)=>{const{realm:r}=e;for(const[e,s]of r.entries(t))n(s,e)},yr=(e,t)=>e>=0?Math.min(e,t):Math.max(t+e,0),gr=(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?yr(e,n):s,a=null!==t?yr(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)}},xr=(e,t,s,n)=>n.value,vr=(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}},br=(e,t,s,n)=>{const{selectors:r}=s;for(const s of r)Cr(e,t,s,n)},wr=(e,t,s)=>{const n=[],r=e=>{n.push(e)},{selector:i}=s;switch(i.type){case"BracketedSelection":br(e,t,i,r);break;case"NameSelector":case"WildcardSelector":case"IndexSelector":case"SliceSelector":case"FilterSelector":Cr(e,t,i,r)}return n},Sr=(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=wr(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=wr(e,n,t);s.push(...r)}r=s}return r},Er=(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]:Sr(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]:Sr(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 jr;const Or=(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 Fr(e,t,s,n);case"FilterQuery":return Er(e,t,s,n);case"TestExpr":return"FilterQuery"===n.expression.type?Er(e,t,s,n.expression):"FunctionExpr"===n.expression.type?Fr(e,t,s,n.expression):jr(e,t,s,n);case"LogicalOrExpr":case"LogicalAndExpr":case"LogicalNotExpr":case"ComparisonExpr":return jr(e,t,s,n);default:return}})(e,t,s,n));return o(e.realm,...c)},Fr=(e,t,s,n)=>{switch(n.type){case"Literal":return xr(e,t,s,n);case"RelSingularQuery":return((e,t,s,n)=>{let r=s;for(const t of n.segments)if(r=vr(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=vr(e,r,t),void 0===r)return;return r})(e,t,0,n);case"FunctionExpr":return Or(e,t,s,n);default:return}},kr=(e,t,s,n)=>{const{left:r,op:i,right:o}=n,c=Fr(e,t,s,r),a=Fr(e,t,s,o);return e.realm.compare(c,i,a)},Ar=e=>Array.isArray(e),$r=(e,t,s,n)=>{switch(n.type){case"LogicalOrExpr":return!!$r(e,t,s,n.left)||$r(e,t,s,n.right);case"LogicalAndExpr":return!!$r(e,t,s,n.left)&&$r(e,t,s,n.right);case"LogicalNotExpr":return!$r(e,t,s,n.expression);case"TestExpr":{const{expression:r}=n;if("FilterQuery"===r.type){return Er(e,t,s,r).length>0}if("FunctionExpr"===r.type){const n=Or(e,t,s,r);return"boolean"==typeof n?n:void 0!==n&&(Ar(n)?n.length>0:Boolean(n))}return!1}case"ComparisonExpr":return kr(e,t,s,n);default:return!1}};jr=$r;const Pr=$r,Ir=(e,t,s,n)=>{const{realm:r,root:i}=e,{expression:o}=s;for(const[s,c]of r.entries(t)){Pr(e,i,c,o)&&n(c,s)}},Cr=(e,t,s,n)=>{switch(s.type){case"NameSelector":hr(e,t,s,n);break;case"IndexSelector":mr(e,t,s,n);break;case"WildcardSelector":fr(e,t,s,n);break;case"SliceSelector":gr(e,t,s,n);break;case"FilterSelector":Ir(e,t,s,n)}};new Map;class Mr{node;key;index;parent;parentPath;inList;revisited=!1;#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;){const{key:s,parent:n,parentPath:r}=t;if(Pe(n)&&"value"===s){if(!je(n.key))throw new TypeError("MemberElement.key must be a StringElement");e.unshift(n.key.toValue())}else Ae(r?.node)&&"number"==typeof s&&e.unshift(s);t=t.parentPath}return e}formatPath(e="jsonpointer"){const t=this.getPathKeys();return 0===t.length?"jsonpath"===e?"$":"":"jsonpath"===e?pr(t):ar(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 Nr=fs(1,Es(Wn,Lt(rs,M("[object Promise]")))),Tr=e=>{const t=e?.element;return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},Dr=e=>{const t=e.primitive();return void 0===t||"element"===t?"Element":`${t.charAt(0).toUpperCase()}${t.slice(1)}Element`},Rr=e=>Ee(e),qr=e=>Sn(e),_r=(e,t,s)=>{Pe(e)?e.value=s:Array.isArray(e)?e[t]=null===s?void 0:s:null===s?delete e[t]:e[t]=s},Lr=e=>Pe(e)?["key","value"]:Ae(e)||$e(e)?["content"]:[],Br=(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]}},Jr=(e,t,s)=>{if(void 0===t)return null;const n=e,r=s?"leave":"enter",i=Br(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=Br(o,t);if("function"==typeof e)return e}return null},Vr=(e,t={})=>{const{visitFnGetter:s=Jr,nodeTypeGetter:n=Tr,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=Ur(t,a),n=i.call(e[u],s);if(Nr(n))throw new hn("Async visitor not supported in sync mode",{visitor:e[u],visitFn:i});if(s.shouldStop&&(c[u]=o),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(c.every(e=>e===o)&&t.stop(),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=Ur(t,r),n=i.call(e[a],s);if(Nr(n))throw new hn("Async visitor not supported in sync mode",{visitor:e[a],visitFn:i});if(s.shouldStop&&(c[a]=o),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);c.every(e=>e===o)&&t.stop()}}},Hr=(e,t={})=>{const{visitFnGetter:s=Jr,nodeTypeGetter:n=Tr,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=Ur(t,a),n=await i.call(e[u],s);if(s.shouldStop&&(c[u]=o),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(c.every(e=>e===o)&&t.stop(),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=Ur(t,r),n=await i.call(e[a],s);if(s.shouldStop&&(c[a]=o),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);c.every(e=>e===o)&&t.stop()}}};function Ur(e,t){const s=new Mr(t,e.parent,e.parentPath,e.key,e.inList);return s.revisited=e.revisited,s}Vr[Symbol.for("nodejs.util.promisify.custom")]=Hr;const zr=e=>!0===e?"skip":!1===e||void 0===e?"never":e;function*Gr(e,t,s){const{keyMap:n,state:r,nodeTypeGetter:i,nodePredicate:o,nodeCloneFn:c,detectCycles:a,skipVisited:l,mutable:u,mutationFn:d}=s,p="function"==typeof n,h="never"!==l?new WeakSet:null;let m,f,y=Array.isArray(e),g=[e],x=-1,v=[],b=e,w=null,S=null;const E=[];do{x+=1;const e=x===g.length;let s,j=!1;const O=e&&0!==v.length;if(e){if(s=0===E.length?void 0:w?.key,b=f,f=E.pop(),S=w?.parentPath?.parentPath??null,O)if(u)for(const[e,t]of v)d(b,e,t);else if(y){b=b.slice();let e=0;for(const[t,s]of v){const n=t-e;null===s?(b.splice(n,1),e+=1):b[n]=s}}else{b=c(b);for(const[e,t]of v)b[e]=t}if(void 0!==m){x=m.index,g=m.keys,v=m.edits;const e=m.inArray;if(S=m.parentPath,j=m.revisitNoDescend,m=m.prev,O&&!u){const t=e?x:g[x];v.push([t,b])}y=e}}else if(void 0!==f&&(s=y?x:g[x],b=f[s],void 0===b))continue;if(!Array.isArray(b)){if(!o(b))throw new hn(`Invalid AST Node: ${String(b)}`,{node:b});if(a&&E.includes(b))continue;if("never"!==l&&!e)if(h.has(b)){if("enter-only"!==l)continue;j=!0}else h.add(b);w=new Mr(b,f,S,s,y),w.revisited=j;const n=Jr(t,i(b),e);if(n){for(const[e,s]of Object.entries(r))t[e]=s;const i=yield{visitFn:n,path:w,isLeaving:e};if(w.shouldStop)break;if(w.removed){if(v.push([s,null]),!e)continue}else if(w._wasReplaced()){const t=w._getReplacementNode();if(v.push([s,t]),!e){if(w.shouldSkip)continue;if(!o(t))continue;b=t}}else if(w.shouldSkip){if(!e)continue}else if(void 0!==i&&(v.push([s,i]),!e)){if(!o(i))continue;b=i}w._markStale()}}if(!e){if(m={inArray:y,index:x,keys:g,edits:v,parentPath:S,revisitNoDescend:j,prev:m},y=Array.isArray(b),j)g=[];else if(y)g=b;else if(p)g=n(b);else{const e=i(b);g=void 0!==e?n[e]??[]:[]}x=-1,v=[],void 0!==f&&E.push(f),f=b,S=w}}while(void 0!==m);return 0!==v.length?v.at(-1)[1]:e}const Xr=(e,t,s={})=>{const n=Gr(e,t,{keyMap:s.keyMap??Lr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Tr,nodePredicate:s.nodePredicate??Rr,nodeCloneFn:s.nodeCloneFn??qr,detectCycles:s.detectCycles??!0,skipVisited:zr(s.skipVisited),mutable:s.mutable??!1,mutationFn:s.mutationFn??_r});let r=n.next();for(;!r.done;){const e=r.value,s=e.visitFn.call(t,e.path);if(Nr(s))throw new hn("Async visitor not supported in sync mode",{visitor:t,visitFn:e.visitFn});r=n.next(s)}return r.value},Kr=async(e,t,s={})=>{const n=Gr(e,t,{keyMap:s.keyMap??Lr,state:s.state??{},nodeTypeGetter:s.nodeTypeGetter??Tr,nodePredicate:s.nodePredicate??Rr,nodeCloneFn:s.nodeCloneFn??qr,detectCycles:s.detectCycles??!0,skipVisited:zr(s.skipVisited),mutable:s.mutable??!1,mutationFn:s.mutationFn??_r});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};Xr[Symbol.for("nodejs.util.promisify.custom")]=Kr,Mr.prototype.traverse=function(e,t){return Xr(this.node,e,t)},Mr.prototype.traverseAsync=function(e,t){return Kr(this.node,e,t)};const Wr=class extends qn{specObj;passingOptionsNames=["specObj","parent","consume"];constructor({specObj:e,...t}){super({...t}),this.specObj=e}retrievePassingOptions(){return Zn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=bt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return is(Ts,["visitors",...e],this.specObj)?bt(["visitors",...e],this.specObj):bt(["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 _n&&n?.constructor===_n?this.consume?t:vn(t):(Xr(t,n,s),n.element)}};const Yr=class extends Wr{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=Pn(t);if(je(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new G(this.consume?t:vn(t),n);this.copyMetaAndAttributes(r,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else this.ignoredFields.includes(i)||this.element.content.push(this.consume?r:vn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}},Qr=(e,t,s=[])=>{const n=Object.getOwnPropertyDescriptors(t);for(let e of s)delete n[e];Object.defineProperties(e,n)},Zr=(e,t=[e])=>{const s=Object.getPrototypeOf(e);return null===s?t:Zr(s,[...t,s])},ei=(e,t,s=[])=>{var n;const r=null!==(n=((...e)=>{if(0===e.length)return;let t;const s=e.map(e=>Zr(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=Zr(r);for(let t of e){let e=Zr(t);for(let t=e.length-1;t>=0;t--){let n=e[t];-1===o.indexOf(n)&&(Qr(i,n,["constructor",...s]),o.push(n))}}return i.constructor=t,i},ti=e=>e.filter((t,s)=>e.indexOf(t)==s),si=(e,t)=>{const s=t.map(e=>Zr(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++}},ni=(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(si(s,e)||{},s),defineProperty(){throw new Error("Cannot define new properties on Proxies created by ts-mixer")},has:(s,n)=>void 0!==si(n,e)||void 0!==t[n],get:(s,n)=>(si(n,e)||t)[n],set(t,s,n){const r=si(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)))}),ri=null,ii="copy",oi="copy",ci="deep",ai=new WeakMap,li=e=>ai.get(e),ui=(e,t)=>{var s,n;const r=ti([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),i={};for(let o of r)i[o]=ti([...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},di=(e,t)=>{var s,n,r,i;return{property:ui(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:ui(null!==(r=null==e?void 0:e.method)&&void 0!==r?r:{},null!==(i=null==t?void 0:t.method)&&void 0!==i?i:{})}},pi=(e,t)=>{var s,n,r,i,o,c;return{class:ti([...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:di(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:di(null!==(o=null==e?void 0:e.instance)&&void 0!==o?o:{},null!==(c=null==t?void 0:t.instance)&&void 0!==c?c:{})}},hi=new Map,mi=(...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=[...Zr(e.prototype).map(e=>e.constructor),...null!==(t=li(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=>hi.get(e)).filter(e=>!!e);return 0==t.length?{}:1==t.length?t[0]:t.reduce((e,t)=>pi(e,t))},fi=e=>{let t=hi.get(e);return t||(t={},hi.set(e,t)),t};function yi(...e){var t,s,n;const r=e.map(e=>e.prototype),i=ri;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)Qr(this,new s(...t));null!==i&&"function"==typeof this[i]&&this[i].apply(this,t)}var c,a;o.prototype="copy"===oi?ei(r,o):(c=r,a=o,ni([...c,{constructor:a}])),Object.setPrototypeOf(o,"copy"===ii?ei(e,null,["prototype"]):ni(e,Function.prototype));let l=o;if("none"!==ci){const r="deep"===ci?mi(...e):((...e)=>{const t=e.map(e=>fi(e));return 0===t.length?{}:1===t.length?t[0]:t.reduce((e,t)=>pi(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)}gi(null!==(s=null==r?void 0:r.static)&&void 0!==s?s:{},l),gi(null!==(n=null==r?void 0:r.instance)&&void 0!==n?n:{},l.prototype)}var u,d;return u=l,d=e,ai.set(u,d),l}const gi=(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 xi=function(){return!1};const vi=class extends Wr{specPath;ignoredFields;fieldPatternPredicate=xi;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=Pn(t);if(!this.ignoredFields.includes(n)&&this.fieldPatternPredicate(n)){const n=this.specPath(e),r=this.toRefractedElement(n,e),i=new G(this.consume?t:vn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i),this.consume&&this.consumeSafe&&!s.isFrozen&&(s.value=void 0)}else this.ignoredFields.includes(n)||this.element.content.push(this.consume?s:vn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const bi=class extends vi{constructor(e){super(e),this.fieldPatternPredicate=Qn}};const wi=class{parent;constructor({parent:e}){this.parent=e}},Si=yi(Yr,wi,_n),Ei=yi(Yr,_n),ji=yi(Yr,_n),Oi=yi(Yr,_n),Fi=yi(Wr,wi,_n),ki=yi(Wr,wi,_n),Ai=yi(Wr,wi,_n),$i=yi(Wr,wi,_n),Pi=yi(Wr,wi,_n),Ii=yi(bi,wi,_n),Ci=yi(bi,wi,_n),Mi=yi(bi,wi,_n),Ni=yi(bi,wi,_n);const Ti=class extends Si{constructor(e){super(e),this.element=new en,this.consumeSafe=!0,this.specPath=Ln(["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,Yr.prototype.ObjectElement.call(this,e)}handleDialectIdentifier(e){if(Vn(this.parent)&&!je(e.get("$schema")))this.element.meta.set("inheritedDialectIdentifier",this.defaultDialectIdentifier);else if(this.parent instanceof en&&!je(e.get("$schema"))){const e=Bn(this.parent.meta.get("inheritedDialectIdentifier"),Pn(this.parent.$schema));this.element.meta.set("inheritedDialectIdentifier",e)}}handleSchemaIdentifier(e,t="id"){const s=void 0!==this.parent?[...this.parent.meta.get("ancestorsSchemaIdentifiers")??[]]:[],n=Pn(e.get(t));Qn(n)&&s.push(n),this.element.meta.set("ancestorsSchemaIdentifiers",s)}},Di=e=>$e(e)&&e.hasKey("$ref");const Ri=class extends $i{ObjectElement(e){const t=e.node,s=Di(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];this.element=this.toRefractedElement(s,t),e.stop()}ArrayElement(e){const t=e.node;this.element=new Se,this.element.classes.push("json-schema-items"),t.forEach(e=>{const t=Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const qi=class extends _n{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-required")}};const _i=class extends Ni{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-properties"),this.specPath=e=>Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Li=class extends Mi{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-patternProperties"),this.specPath=e=>Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Bi=class extends Ci{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-dependencies"),this.specPath=e=>Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Ji=class extends _n{ArrayElement(e){super.enter(e),this.element.classes.push("json-schema-enum")}};const Vi=class extends _n{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 Hi=class extends Fi{constructor(e){super(e),this.element=new Se,this.element.classes.push("json-schema-allOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Di(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 ki{constructor(e){super(e),this.element=new Se,this.element.classes.push("json-schema-anyOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const zi=class extends Ai{constructor(e){super(e),this.element=new Se,this.element.classes.push("json-schema-oneOf")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Gi=class extends Ii{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-definitions"),this.specPath=e=>Di(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]}};const Xi=class extends Pi{constructor(e){super(e),this.element=new Se,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 Ki=class extends Ei{constructor(e){super(e),this.element=new tn,this.specPath=Ln(["document","objects","JSONReference"])}ObjectElement(e){Yr.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&this.element.classes.push("reference-element")}};const Wi=class extends _n{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Yi=function(){return!0};const Qi=mt(function(e,t,s){return fs(Math.max(e.length,t.length,s.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):s.apply(this,arguments)})});const Zi=i(function(e){return function(t,s){return e(t,s)?-1:e(s,t)?1:0}});var eo=g(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const to=eo;const so=i(function(e){return o(0,e)});function no(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const ro=i(no);const io=Os(lt);const oo=fs(1,Ts(Array.isArray)?Array.isArray:Lt(P,Jt("Array")));const co=Es(oo,Xn);function ao(e){return function(e){if(Array.isArray(e))return lo(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 lo(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)?lo(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 lo(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 uo=Lt(to(Zi(function(e,t){return e.length>t.length})),so,gt("length")),po=Js(function(e,t,s){var n=s.apply(void 0,ao(e));return io(n)?ro(n):t});const ho=Qi(co,function(e){var t=uo(e);return fs(t,function(){for(var t=arguments.length,s=new Array(t),n=0;n<t;n++)s[n]=arguments[n];return Dt(po(s),void 0,e)})},Jn);const mo=class extends Wr{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Qi(e,Ln(t),Jn)),n=ho(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};const fo=class extends mo{constructor(e){super(e),this.alternator=[{predicate:Di,specPath:["document","objects","JSONReference"]},{predicate:Yi,specPath:["document","objects","JSONSchema"]}]}};const yo=class extends Oi{constructor(e){super(e),this.element=new sn,this.specPath=Ln(["document","objects","Media"])}};const go=class extends ji{constructor(e){super(e),this.element=new nn,this.specPath=Ln(["document","objects","LinkDescription"])}},xo={visitors:{value:_n,JSONSchemaOrJSONReferenceVisitor:fo,document:{objects:{JSONSchema:{element:"JSONSchemaDraft4",$visitor:Ti,fixedFields:{id:{$ref:"#/visitors/value",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:fo,items:{$visitor:Ri,alias:"itemsField"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:qi,properties:_i,additionalProperties:fo,patternProperties:Li,dependencies:Bi,enum:Ji,type:Vi,allOf:Hi,anyOf:Ui,oneOf:zi,not:fo,definitions:Gi,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},format:{$ref:"#/visitors/value"},base:{$ref:"#/visitors/value"},links:{$visitor:Xi,alias:"linksField"},media:{$ref:"#/visitors/document/objects/Media"},readOnly:{$ref:"#/visitors/value"}}},JSONReference:{element:"JSONReference",$visitor:Ki,fixedFields:{$ref:Wi}},Media:{element:"media",$visitor:yo,fixedFields:{binaryEncoding:{$ref:"#/visitors/value"},type:{$ref:"#/visitors/value"}}},LinkDescription:{element:"linkDescription",$visitor:go,fixedFields:{href:{$ref:"#/visitors/value"},rel:{$ref:"#/visitors/value"},title:{$ref:"#/visitors/value"},targetSchema:fo,mediaType:{$ref:"#/visitors/value"},method:{$ref:"#/visitors/value"},encType:{$ref:"#/visitors/value"},schema:fo}}}}}},vo=Zs(xo),bo=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(en,"fixedFields",{get:()=>bo(vo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(tn,"fixedFields",{get:()=>bo(vo.visitors.document.objects.JSONReference.fixedFields),enumerable:!0}),Object.defineProperty(sn,"fixedFields",{get:()=>bo(vo.visitors.document.objects.Media.fixedFields),enumerable:!0}),Object.defineProperty(nn,"fixedFields",{get:()=>bo(vo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const wo=class extends en{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 So=class extends nn{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 Eo=mt(function e(t,s,n){if(0===t.length)return s;var r=t[0];if(t.length>1){var i=yt(r,n);(lt(i)||"object"!=typeof i)&&(i=ft(t[1])?[]:{}),s=e(Array.prototype.slice.call(t,1),s,i)}return function(e,t,s){if(ft(e)&&Et(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 jo=Eo;const Oo=mt(function(e,t,s){var n=Array.prototype.slice.call(s,0);return n.splice(e,t),n});var Fo=mt(function(e,t,s){return jo([e],t,s)});const ko=Fo;var Ao=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(ft(e)&&Et(t))return Oo(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(ft(e)&&Et(t))return[].concat(t);var s={};for(var n in t)s[n]=t[n];return s}(n,s):ko(n,e(r,s[n]),s)}});const $o=Ao;const Po=class extends Ti{constructor(e){super(e),this.element=new wo}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 Io=class extends Ri{BooleanElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}};const Co=class extends _n{ArrayElement(e){this.enter(e),this.element.classes.push("json-schema-examples")}};const Mo=class extends go{constructor(e){super(e),this.element=new So}},No=Lt(jo(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft6"),jo(["visitors","document","objects","JSONSchema","$visitor"],Po),$o(["visitors","document","objects","JSONSchema","fixedFields","id"]),jo(["visitors","document","objects","JSONSchema","fixedFields","$id"],{$ref:"#/visitors/value"}),jo(["visitors","document","objects","JSONSchema","fixedFields","contains"],{$visitor:xo.visitors.JSONSchemaOrJSONReferenceVisitor,alias:"containsField"}),jo(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:Io,alias:"itemsField"}),jo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],xo.visitors.JSONSchemaOrJSONReferenceVisitor),jo(["visitors","document","objects","JSONSchema","fixedFields","const"],{$ref:"#/visitors/value"}),jo(["visitors","document","objects","JSONSchema","fixedFields","examples"],Co),jo(["visitors","document","objects","LinkDescription","$visitor"],Mo),jo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],xo.visitors.JSONSchemaOrJSONReferenceVisitor),$o(["visitors","document","objects","LinkDescription","fixedFields","schema"]),jo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],xo.visitors.JSONSchemaOrJSONReferenceVisitor),$o(["visitors","document","objects","LinkDescription","fixedFields","method"]),$o(["visitors","document","objects","LinkDescription","fixedFields","encType"]),jo(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"],{$ref:"#/visitors/value"}))(xo),To=Zs(No),Do=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(wo,"fixedFields",{get:()=>Do(To.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(So,"fixedFields",{get:()=>Do(To.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Ro=class extends wo{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 qo=class extends So{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 Po{constructor(e){super(e),this.element=new Ro}get defaultDialectIdentifier(){return"http://json-schema.org/draft-07/schema#"}};const Lo=class extends Mo{constructor(e){super(e),this.element=new qo}},Bo=Lt(jo(["visitors","document","objects","JSONSchema","element"],"JSONSchemaDraft7"),jo(["visitors","document","objects","JSONSchema","$visitor"],_o),jo(["visitors","document","objects","JSONSchema","fixedFields","$comment"],No.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","if"],No.visitors.JSONSchemaOrJSONReferenceVisitor),jo(["visitors","document","objects","JSONSchema","fixedFields","then"],No.visitors.JSONSchemaOrJSONReferenceVisitor),jo(["visitors","document","objects","JSONSchema","fixedFields","else"],No.visitors.JSONSchemaOrJSONReferenceVisitor),$o(["visitors","document","objects","JSONSchema","fixedFields","media"]),jo(["visitors","document","objects","JSONSchema","fixedFields","contentEncoding"],No.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","contentMediaType"],No.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","writeOnly"],No.visitors.value),jo(["visitors","document","objects","LinkDescription","$visitor"],Lo),jo(["visitors","document","objects","LinkDescription","fixedFields","anchor"],No.visitors.value),jo(["visitors","document","objects","LinkDescription","fixedFields","anchorPointer"],No.visitors.value),$o(["visitors","document","objects","LinkDescription","fixedFields","mediaType"]),jo(["visitors","document","objects","LinkDescription","fixedFields","targetMediaType"],No.visitors.value),jo(["visitors","document","objects","LinkDescription","fixedFields","targetHints"],No.visitors.value),jo(["visitors","document","objects","LinkDescription","fixedFields","description"],No.visitors.value),jo(["visitors","document","objects","LinkDescription","fixedFields","$comment"],No.visitors.value),jo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],No.visitors.JSONSchemaOrJSONReferenceVisitor),$o(["visitors","document","objects","LinkDescription","fixedFields","submissionEncType"]),jo(["visitors","document","objects","LinkDescription","fixedFields","submissionMediaType"],No.visitors.value))(No),Jo=Zs(Bo),Vo=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Ro,"fixedFields",{get:()=>Vo(Jo.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(qo,"fixedFields",{get:()=>Vo(Jo.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const Ho=class extends Ro{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 Uo=class extends qo{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 zo=class extends _o{constructor(e){super(e),this.element=new Ho}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,Yr.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}};const Go=class extends _n{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-$vocabulary")}};const Xo=class extends _n{StringElement(e){this.enter(e),this.element.classes.push("reference-value")}},Ko=yi(Wr,wi,_n),Wo=yi(bi,wi,_n);const Yo=class extends Wo{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-$defs"),this.specPath=Ln(["document","objects","JSONSchema"])}};const Qo=class extends Ko{constructor(e){super(e),this.element=new Se,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 Zo=class extends Ko{constructor(e){super(e),this.element=new Se,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 ec=class extends Ko{constructor(e){super(e),this.element=new Se,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 tc=class extends Wo{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=Ln(["document","objects","JSONSchema"])}};const sc=class extends Ko{ObjectElement(e){this.element=this.toRefractedElement(["document","objects","JSONSchema"],e.node),e.stop()}ArrayElement(e){const t=e.node;this.element=new Se,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 nc=class extends Wo{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-properties"),this.specPath=Ln(["document","objects","JSONSchema"])}};const rc=class extends Wo{constructor(e){super(e),this.element=new X,this.element.classes.push("json-schema-patternProperties"),this.specPath=Ln(["document","objects","JSONSchema"])}};const ic=class extends _n{ObjectElement(e){this.enter(e),this.element.classes.push("json-schema-dependentRequired")}};const oc=class extends Lo{constructor(e){super(e),this.element=new Uo}},cc=Lt(jo(["visitors","document","objects","JSONSchema","element"],"JSONSchema201909"),jo(["visitors","document","objects","JSONSchema","$visitor"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","$vocabulary"],Go),jo(["visitors","document","objects","JSONSchema","fixedFields","$anchor"],Bo.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"],Bo.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"],Bo.visitors.value),$o(["visitors","document","objects","JSONReference","$visitor"]),jo(["visitors","document","objects","JSONSchema","fixedFields","$ref"],Xo),$o(["visitors","document","objects","JSONSchema","fixedFields","definitions"]),jo(["visitors","document","objects","JSONSchema","fixedFields","$defs"],Yo),jo(["visitors","document","objects","JSONSchema","fixedFields","allOf"],Qo),jo(["visitors","document","objects","JSONSchema","fixedFields","anyOf"],Zo),jo(["visitors","document","objects","JSONSchema","fixedFields","oneOf"],ec),jo(["visitors","document","objects","JSONSchema","fixedFields","not"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","if"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","then"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","else"],zo),$o(["visitors","document","objects","JSONSchema","fixedFields","dependencies"]),jo(["visitors","document","objects","JSONSchema","fixedFields","dependentSchemas"],tc),jo(["visitors","document","objects","JSONSchema","fixedFields","items"],{$visitor:sc,alias:"itemsField"}),jo(["visitors","document","objects","JSONSchema","fixedFields","contains"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","properties"],nc),jo(["visitors","document","objects","JSONSchema","fixedFields","patternProperties"],rc),jo(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],zo),jo(["visitors","document","objects","JSONSchema","fixedFields","maxContains"],Bo.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","minContains"],Bo.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","dependentRequired"],ic),jo(["visitors","document","objects","JSONSchema","fixedFields","deprecated"],Bo.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],zo),jo(["visitors","document","objects","LinkDescription","element"],"linkDescription"),jo(["visitors","document","objects","LinkDescription","$visitor"],oc),jo(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],zo),jo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],zo),jo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],zo),jo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],zo))(Bo),ac=Zs(cc),lc=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(Ho,"fixedFields",{get:()=>lc(ac.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(Uo,"fixedFields",{get:()=>lc(ac.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const uc=class extends Ho{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 dc=class extends Uo{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 pc=class extends zo{constructor(e){super(e),this.element=new uc}get defaultDialectIdentifier(){return"https://json-schema.org/draft/2020-12/schema"}};const hc=class extends Ko{constructor(e){super(e),this.element=new Se,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 mc=class extends oc{constructor(e){super(e),this.element=new dc}},fc=Lt(jo(["visitors","document","objects","JSONSchema","element"],"JSONSchema202012"),jo(["visitors","document","objects","JSONSchema","$visitor"],pc),$o(["visitors","document","objects","JSONSchema","fixedFields","$recursiveAnchor"]),jo(["visitors","document","objects","JSONSchema","fixedFields","$dynamicAnchor"],cc.visitors.value),$o(["visitors","document","objects","JSONSchema","fixedFields","$recursiveRef"]),jo(["visitors","document","objects","JSONSchema","fixedFields","$dynamicRef"],cc.visitors.value),jo(["visitors","document","objects","JSONSchema","fixedFields","not"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","if"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","then"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","else"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","prefixItems"],hc),jo(["visitors","document","objects","JSONSchema","fixedFields","items"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","contains"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","additionalProperties"],pc),$o(["visitors","document","objects","JSONSchema","fixedFields","additionalItems"]),jo(["visitors","document","objects","JSONSchema","fixedFields","propertyNames"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedItems"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","unevaluatedProperties"],pc),jo(["visitors","document","objects","JSONSchema","fixedFields","contentSchema"],pc),jo(["visitors","document","objects","LinkDescription","element"],"linkDescription"),jo(["visitors","document","objects","LinkDescription","$visitor"],mc),jo(["visitors","document","objects","LinkDescription","fixedFields","targetSchema"],pc),jo(["visitors","document","objects","LinkDescription","fixedFields","hrefSchema"],pc),jo(["visitors","document","objects","LinkDescription","fixedFields","headerSchema"],pc),jo(["visitors","document","objects","LinkDescription","fixedFields","submissionSchema"],pc))(cc),yc=Zs(fc),gc=e=>Object.entries(e).map(([e,t])=>_s(t)?{name:e,...t}:{name:e,$visitor:t});Object.defineProperty(uc,"fixedFields",{get:()=>gc(yc.visitors.document.objects.JSONSchema.fixedFields),enumerable:!0}),Object.defineProperty(dc,"fixedFields",{get:()=>gc(yc.visitors.document.objects.LinkDescription.fixedFields),enumerable:!0});const xc=class extends uc{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 vc=class extends X{constructor(e,t,s){super(e,t,s),this.element="securityRequirement"}};const bc=class extends vc{};const wc=class extends X{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 Sc=class extends wc{};const Ec=class extends X{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 jc=class extends Ec{};const Oc=class extends X{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 Fc=class extends Oc{};const kc=class extends X{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 Ac=class extends kc{};const $c=class extends X{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 Pc=class extends $c{},Ic={namespace:e=>{const{base:t}=e;return t.register("callback",W),t.register("components",Q),t.register("contact",ee),t.register("discriminator",se),t.register("encoding",re),t.register("example",oe),t.register("externalDocumentation",ae),t.register("header",pe),t.register("info",me),t.register("jsonSchemaDialect",ge),t.register("license",ve),t.register("link",Ce),t.register("mediaType",Ne),t.register("oAuthFlow",De),t.register("oAuthFlows",qe),t.register("openapi",Le),t.register("openApi3_1",Be),t.register("operation",Ve),t.register("parameter",ze),t.register("pathItem",Xe),t.register("paths",We),t.register("reference",Ze),t.register("requestBody",tt),t.register("response",nt),t.register("responses",it),t.register("schema",xc),t.register("securityRequirement",bc),t.register("securityScheme",Sc),t.register("server",jc),t.register("serverVariable",Fc),t.register("tag",Ac),t.register("xml",Pc),t}};class Cc extends Se{static primaryClass="servers";constructor(e,t,s){super(e,t,s),this.classes.push(Cc.primaryClass)}}const Mc=Cc;class Nc extends Se{static primaryClass="security";constructor(e,t,s){super(e,t,s),this.classes.push(Nc.primaryClass)}}const Tc=Nc;class Dc extends Se{static primaryClass="tags";constructor(e,t,s){super(e,t,s),this.classes.push(Dc.primaryClass)}}const Rc=Dc;class qc extends X{static primaryClass="server-variables";constructor(e,t,s){super(e,t,s),this.classes.push(qc.primaryClass)}}const _c=qc;class Lc extends Se{static primaryClass="path-item-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Lc.primaryClass),this.classes.push("servers")}}const Bc=Lc;class Jc extends Se{static primaryClass="path-item-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Jc.primaryClass),this.classes.push("parameters")}}const Vc=Jc;class Hc extends Se{static primaryClass="operation-tags";constructor(e,t,s){super(e,t,s),this.classes.push(Hc.primaryClass)}}const Uc=Hc;class zc extends Se{static primaryClass="operation-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(zc.primaryClass),this.classes.push("parameters")}}const Gc=zc;class Xc extends X{static primaryClass="operation-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(Xc.primaryClass)}}const Kc=Xc;class Wc extends Se{static primaryClass="operation-security";constructor(e,t,s){super(e,t,s),this.classes.push(Wc.primaryClass),this.classes.push("security")}}const Yc=Wc;class Qc extends Se{static primaryClass="operation-servers";constructor(e,t,s){super(e,t,s),this.classes.push(Qc.primaryClass),this.classes.push("servers")}}const Zc=Qc;class ea extends X{static primaryClass="parameter-examples";constructor(e,t,s){super(e,t,s),this.classes.push(ea.primaryClass),this.classes.push("examples")}}const ta=ea;class sa extends X{static primaryClass="parameter-content";constructor(e,t,s){super(e,t,s),this.classes.push(sa.primaryClass),this.classes.push("content")}}const na=sa;class ra extends X{static primaryClass="request-body-content";constructor(e,t,s){super(e,t,s),this.classes.push(ra.primaryClass),this.classes.push("content")}}const ia=ra;class oa extends X{static primaryClass="media-type-examples";constructor(e,t,s){super(e,t,s),this.classes.push(oa.primaryClass),this.classes.push("examples")}}const ca=oa;class aa extends X{static primaryClass="media-type-encoding";constructor(e,t,s){super(e,t,s),this.classes.push(aa.primaryClass)}}const la=aa;class ua extends X{static primaryClass="encoding-headers";constructor(e,t,s){super(e,t,s),this.classes.push(ua.primaryClass)}}const da=ua;class pa extends X{static primaryClass="response-headers";constructor(e,t,s){super(e,t,s),this.classes.push(pa.primaryClass)}}const ha=pa;class ma extends X{static primaryClass="response-content";constructor(e,t,s){super(e,t,s),this.classes.push(ma.primaryClass),this.classes.push("content")}}const fa=ma;class ya extends X{static primaryClass="response-links";constructor(e,t,s){super(e,t,s),this.classes.push(ya.primaryClass)}}const ga=ya;class xa extends X{static primaryClass="header-examples";constructor(e,t,s){super(e,t,s),this.classes.push(xa.primaryClass),this.classes.push("examples")}}const va=xa;class ba extends X{static primaryClass="header-content";constructor(e,t,s){super(e,t,s),this.classes.push(ba.primaryClass),this.classes.push("content")}}const wa=ba;class Sa extends X{static primaryClass="components-schemas";constructor(e,t,s){super(e,t,s),this.classes.push(Sa.primaryClass)}}const Ea=Sa;class ja extends X{static primaryClass="components-responses";constructor(e,t,s){super(e,t,s),this.classes.push(ja.primaryClass)}}const Oa=ja;class Fa extends X{static primaryClass="components-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Fa.primaryClass),this.classes.push("parameters")}}const ka=Fa;class Aa extends X{static primaryClass="components-examples";constructor(e,t,s){super(e,t,s),this.classes.push(Aa.primaryClass),this.classes.push("examples")}}const $a=Aa;class Pa extends X{static primaryClass="components-request-bodies";constructor(e,t,s){super(e,t,s),this.classes.push(Pa.primaryClass)}}const Ia=Pa;class Ca extends X{static primaryClass="components-headers";constructor(e,t,s){super(e,t,s),this.classes.push(Ca.primaryClass)}}const Ma=Ca;class Na extends X{static primaryClass="components-security-schemes";constructor(e,t,s){super(e,t,s),this.classes.push(Na.primaryClass)}}const Ta=Na;class Da extends X{static primaryClass="components-links";constructor(e,t,s){super(e,t,s),this.classes.push(Da.primaryClass)}}const Ra=Da;class qa extends X{static primaryClass="components-callbacks";constructor(e,t,s){super(e,t,s),this.classes.push(qa.primaryClass)}}const _a=qa;class La extends X{static primaryClass="discriminator-mapping";constructor(e,t,s){super(e,t,s),this.classes.push(La.primaryClass)}}const Ba=La;class Ja extends X{static primaryClass="oauth-flow-scopes";constructor(e,t,s){super(e,t,s),this.classes.push(Ja.primaryClass)}}const Va=Ja;class Ha extends X{static primaryClass="components-path-items";constructor(e,t,s){super(e,t,s),this.classes.push(Ha.primaryClass)}}const Ua=Ha;class za extends X{static primaryClass="webhooks";constructor(e,t,s){super(e,t,s),this.classes.push(za.primaryClass)}}const Ga=za,Xa={OpenApi3_1Element:{info:(...e)=>new me(...e),servers:(...e)=>new Mc(...e),paths:(...e)=>new We(...e),webhooks:(...e)=>new Ga(...e),components:(...e)=>new Q(...e),security:(...e)=>new Tc(...e),tags:(...e)=>new Rc(...e),externalDocs:(...e)=>new ae(...e)},InfoElement:{contact:(...e)=>new ee(...e),license:(...e)=>new ve(...e)},ServerElement:{variables:(...e)=>new _c(...e)},ServerVariableElement:{enum:(...e)=>new Se(...e)},PathsElement:{"[key: *]":function(...e){return new Xe(...e)}},PathItemElement:{get:(...e)=>new Ve(...e),put:(...e)=>new Ve(...e),post:(...e)=>new Ve(...e),delete:(...e)=>new Ve(...e),options:(...e)=>new Ve(...e),head:(...e)=>new Ve(...e),patch:(...e)=>new Ve(...e),trace:(...e)=>new Ve(...e),servers:(...e)=>new Bc(...e),parameters:(...e)=>new Vc(...e)},OperationElement:{tags:(...e)=>new Uc(...e),externalDocs:(...e)=>new ae(...e),parameters:(...e)=>new Gc(...e),requestBody:(...e)=>new tt(...e),responses:(...e)=>new it(...e),callbacks:(...e)=>new Kc(...e),security:(...e)=>new Yc(...e),servers:(...e)=>new Zc(...e)},ParameterElement:{schema:(...e)=>new xc(...e),examples:(...e)=>new ta(...e),content:(...e)=>new na(...e)},RequestBodyElement:{content:(...e)=>new ia(...e)},MediaTypeElement:{schema:(...e)=>new xc(...e),examples:(...e)=>new ca(...e),encoding:(...e)=>new la(...e)},EncodingElement:{headers:(...e)=>new da(...e)},ResponsesElement:{"[key: *]":function(...e){return new nt(...e)}},ResponseElement:{headers:(...e)=>new ha(...e),content:(...e)=>new fa(...e),links:(...e)=>new ga(...e)},CallbackElement:{"[key: *]":function(...e){return new Xe(...e)}},LinkElement:{server:(...e)=>new jc(...e)},HeaderElement:{schema:(...e)=>new xc(...e),examples:(...e)=>new va(...e),content:(...e)=>new wa(...e)},ComponentsElement:{schemas:(...e)=>new Ea(...e),responses:(...e)=>new Oa(...e),parameters:(...e)=>new ka(...e),examples:(...e)=>new $a(...e),requestBodies:(...e)=>new Ia(...e),headers:(...e)=>new Ma(...e),securitySchemes:(...e)=>new Ta(...e),links:(...e)=>new Ra(...e),callbacks:(...e)=>new _a(...e),pathItems:(...e)=>new Ua(...e)},SecurityRequirementElement:{"[key: *]":function(...e){return new Se(...e)}},TagElement:{externalDocs:(...e)=>new ae(...e)},SchemaElement:{$vocabulary(...e){const t=new X(...e);return t.classes.push("json-schema-$vocabulary"),t},$defs(...e){const t=new X(...e);return t.classes.push("json-schema-$defs"),t},allOf(...e){const t=new Se(...e);return t.classes.push("json-schema-allOf"),t},anyOf(...e){const t=new Se(...e);return t.classes.push("json-schema-anyOf"),t},oneOf(...e){const t=new Se(...e);return t.classes.push("json-schema-oneOf"),t},not:(...e)=>new xc(...e),if:(...e)=>new xc(...e),then:(...e)=>new xc(...e),else:(...e)=>new xc(...e),dependentSchemas(...e){const t=new X(...e);return t.classes.push("json-schema-dependentSchemas"),t},prefixItems(...e){const t=new Se(...e);return t.classes.push("json-schema-prefixItems"),t},items:(...e)=>new xc(...e),contains:(...e)=>new xc(...e),properties(...e){const t=new X(...e);return t.classes.push("json-schema-properties"),t},patternProperties(...e){const t=new X(...e);return t.classes.push("json-schema-patternProperties"),t},additionalProperties:(...e)=>new xc(...e),propertyNames:(...e)=>new xc(...e),unevaluatedItems:(...e)=>new xc(...e),unevaluatedProperties:(...e)=>new xc(...e),type(...e){const t=new Se(...e);return t.classes.push("json-schema-type"),t},enum(...e){const t=new Se(...e);return t.classes.push("json-schema-enum"),t},required(...e){const t=new Se(...e);return t.classes.push("json-schema-required"),t},dependentRequired(...e){const t=new X(...e);return t.classes.push("json-schema-dependentRequired"),t},examples(...e){const t=new Se(...e);return t.classes.push("json-schema-examples"),t},contentSchema:(...e)=>new xc(...e),discriminator:(...e)=>new se(...e),xml:(...e)=>new Pc(...e),externalDocs:(...e)=>new ae(...e)},DiscriminatorElement:{mapping:(...e)=>new Ba(...e)},SecuritySchemeElement:{flows:(...e)=>new qe(...e)},OAuthFlowsElement:{implicit:(...e)=>new De(...e),password:(...e)=>new De(...e),clientCredentials:(...e)=>new De(...e),authorizationCode:(...e)=>new De(...e)},OAuthFlowElement:{scopes:(...e)=>new Va(...e)},[Ga.primaryClass]:{"[key: *]":function(...e){return new Xe(...e)}},[_c.primaryClass]:{"[key: *]":function(...e){return new Fc(...e)}},[Ea.primaryClass]:{"[key: *]":function(...e){return new xc(...e)}},[Oa.primaryClass]:{"[key: *]":function(...e){return new nt(...e)}},[ka.primaryClass]:{"[key: *]":function(...e){return new ze(...e)}},[$a.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[Ia.primaryClass]:{"[key: *]":function(...e){return new tt(...e)}},[Ma.primaryClass]:{"[key: *]":function(...e){return new pe(...e)}},[Ta.primaryClass]:{"[key: *]":function(...e){return new Sc(...e)}},[Ra.primaryClass]:{"[key: *]":function(...e){return new Ce(...e)}},[_a.primaryClass]:{"[key: *]":function(...e){return new W(...e)}},[Ua.primaryClass]:{"[key: *]":function(...e){return new Xe(...e)}},[Kc.primaryClass]:{"[key: *]":function(...e){return new W(...e)}},[ta.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[na.primaryClass]:{"[key: *]":function(...e){return new Ne(...e)}},[ia.primaryClass]:{"[key: *]":function(...e){return new Ne(...e)}},[ca.primaryClass]:{"[key: *]":function(...e){return new oe(...e)}},[la.primaryClass]:{"[key: *]":function(...e){return new re(...e)}},[da.primaryClass]:{"[key: *]":function(...e){return new pe(...e)}},[ha.primaryClass]:{"[key: *]":function(...e){return new pe(...e)}},[fa.primaryClass]:{"[key: *]":function(...e){return new Ne(...e)}},[ga.primaryClass]:{"[key: *]":function(...e){return new Ce(...e)}},"json-schema-$defs":{"[key: *]":function(...e){return new xc(...e)}},"json-schema-dependentSchemas":{"[key: *]":function(...e){return new xc(...e)}},"json-schema-properties":{"[key: *]":function(...e){return new xc(...e)}},[Mc.primaryClass]:{"<*>":(...e)=>new jc(...e)},[Tc.primaryClass]:{"<*>":function(...e){return new bc(...e)}},[Rc.primaryClass]:{"<*>":function(...e){return new Ac(...e)}},[Bc.primaryClass]:{"<*>":function(...e){return new jc(...e)}},[Vc.primaryClass]:{"<*>":function(...e){return new ze(...e)}},[Gc.primaryClass]:{"<*>":function(...e){return new ze(...e)}},[Yc.primaryClass]:{"<*>":function(...e){return new bc(...e)}},[Zc.primaryClass]:{"<*>":function(...e){return new jc(...e)}},"json-schema-allOf":{"<*>":function(...e){return new xc(...e)}},"json-schema-anyOf":{"<*>":function(...e){return new xc(...e)}},"json-schema-oneOf":{"<*>":function(...e){return new xc(...e)}},"json-schema-prefixItems":{"<*>":function(...e){return new xc(...e)}}},Ka=(e,t)=>{const s=Tr(e),n=e.isMetaEmpty?void 0:e.classes.at(0),r=Xa[s]||Xa[n];return void 0===r?void 0:Object.hasOwn(r,"[key: *]")?r["[key: *]"]:r[t]},Wa=()=>()=>({visitor:{StringElement(e){const t=e.node;if(!(e=>je(e)&&cn(e,["yaml-e-node","yaml-e-scalar"]))(t))return;const s=e.getAncestorNodes().reverse(),n=s.at(-1);let r,i;if(Ae(n)?(i=t,r=Ka(n,"<*>")):Pe(n)&&(i=s.at(-2),r=Ka(i,Pn(n.key))),"function"!=typeof r)return;const o=r.call({context:i},void 0,t.isMetaEmpty?void 0:t.meta.cloneDeep(),t.isAttributesEmpty?void 0:vn(t.attributes));pn.transfer(t,o),Rn.transfer(t,o),e.replaceWith(o)}}});var Ya=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,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 Qa(e){return function(t){return new Ya(e,t)}}const Za=g(Xt([],Qa,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 el=class{internalStore;constructor(e,t,s){this.storageElement=e,this.storageField=t,this.storageSubField=s}get store(){if(void 0===this.internalStore){let e=this.storageElement.get(this.storageField);$e(e)||(e=new X,this.storageElement.set(this.storageField,e));let t=e.get(this.storageSubField);Ae(t)||(t=new Se,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)}};const tl=e=>ke(e)&&cn(e,["boolean-json-schema"]),sl=e=>e instanceof W,nl=e=>e instanceof Q,rl=e=>e instanceof ee,il=e=>e instanceof oe,ol=e=>e instanceof ae,cl=e=>e instanceof pe,al=e=>e instanceof me,ll=e=>e instanceof ge,ul=e=>e instanceof ve,dl=e=>e instanceof Ce,pl=e=>e instanceof Le,hl=e=>e instanceof Be,ml=e=>e instanceof Ve,fl=e=>e instanceof ze,yl=e=>e instanceof Xe,gl=e=>{if(!yl(e))return!1;if(!je(e.$ref))return!1;const t=Pn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},xl=e=>e instanceof We,vl=e=>e instanceof Ze,bl=e=>{if(!vl(e))return!1;if(!je(e.$ref))return!1;const t=Pn(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},wl=e=>e instanceof tt,Sl=e=>e instanceof nt,El=e=>e instanceof it,jl=e=>e instanceof xc,Ol=e=>e instanceof bc,Fl=e=>e instanceof Sc,kl=e=>e instanceof jc,Al=e=>e instanceof Fc,$l=e=>e instanceof Ne,Pl=(e,t)=>!!fl(e)&&(!!fl(t)&&(!!je(e.name)&&(!!je(e.in)&&(!!je(t.name)&&(!!je(t.in)&&(Pn(e.name)===Pn(t.name)&&Pn(e.in)===Pn(t.in))))))),Il=(e,t)=>{const s=Ae(t.parameters)?[...t.parameters]:[];if(0===s.length)return;const n=Ae(e.parameters)?[...e.parameters]:[],r=Za(Pl,[...n,...s]);e.parameters=new Gc(r)},Cl=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;n=new el(s,e,"parameters")},leave(){n=void 0}},OperationElement:{leave(e){const t=e.node,r=e.getAncestorNodes();if(r.some(s.isComponentsElement))return;const i=r.find(s.isPathItemElement);if(!s.isPathItemElement(i))return;const o=e.formatPath();n.includes(o)||(Il(t,i),n.append(o))}}}}};Cl.inheritParametersToOperation=Il;const Ml=Cl,Nl=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n,r;return{visitor:{OpenApi3_1Element:{enter(t){const i=t.node;r=new el(i,e,"security-requirements"),s.isArrayElement(i.security)&&(n=i.security)},leave(){r=void 0,n=void 0}},OperationElement:{leave(e){const t=e.node;if(e.getAncestorNodes().some(s.isComponentsElement))return;const i=e.formatPath();if(r.includes(i))return;void 0===t.security&&void 0!==n&&(t.security=new Yc([...n]),r.append(i))}}}}};Nl.inheritSecurityToOperation=(e,t)=>{const s=void 0===e.security,n=Ae(t.security);s&&n&&(e.security=new Yc([...t.security]))};const Tl=Nl;var Dl=mt(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 Rl=Dl;var ql=mt(function e(t,s,n){return Rl(function(s,n,r){return Kt(n)&&Kt(r)?e(t,n,r):t(s,n,r)},s,n)});const _l=ql;const Ll=g(function(e,t){return _l(function(e,t,s){return s},e,t)});const Bl=mt(function(e,t,s){return Bn(e,gt(t,s))});const Jl=qt(0,-1);var Vl=g(function(e,t){return e.apply(this,t)});const Hl=Vl;const Ul=Os(Ts);const zl=Es(oo,Gn);const Gl=fs(3,function(e,t,s){var n=bt(e,s),r=bt(Jl(e),s);if(!Ul(n)&&!zl(e)){var i=Pt(n,r);return Hl(i,t)}});const Xl=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){const s=this.serialiseMeta(e);s&&(t.meta=s.meta,s.rawKeys.length>0&&(t.__meta_raw__=s.rawKeys))}if(e.isAttributesEmpty||(t.attributes=this.serialiseObject(e.attributes)),!(e instanceof pn)){const s=pn.from(e);s&&(t.meta||(t.meta={}),t.meta.__mappings__=this.serialise(s))}if(!(e instanceof Rn)){const s=Rn.from(e);s&&(t.meta||(t.meta={}),t.meta.__styles__=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,n;t.element!==e.element&&(t.element=e.element);let r=e.meta;if(e.meta?.__mappings__||e.meta?.__styles__){const{__mappings__:t,__styles__:i,...o}=e.meta;s=t,n=i,r=Object.keys(o).length>0?o:void 0}const i=e.__meta_raw__?new Set(e.__meta_raw__):void 0;if(r)for(const[e,s]of Object.entries(r)){const n=this.deserialise(s);t.setMetaProperty(e,i?.has(e)?n.toValue():n)}if(s){this.deserialise(s).applyTo(t)}if(n){this.deserialise(n).applyTo(t)}e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const o=this.deserialiseContent(e.content);return void 0===o&&null!==t.content||(t.content=o),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}serialiseMeta(e){const t={},s=[];let n=!1;for(const[r,i]of Object.entries(e.meta))if(i instanceof this.namespace.elements.Element)t[r]=this.serialise(i),n=!0;else if(void 0!==i){const o=e.refract(i);t[r]=this.serialise(o),s.push(r),n=!0}return n?{meta:t,rawKeys:s}:void 0}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]))})}},Kl=e=>null===e,Wl=e=>"string"==typeof e,Yl=e=>"number"==typeof e,Ql=e=>"boolean"==typeof e,Zl=e=>null!==e&&"object"==typeof e;class eu{elementMap={};elementDetection=[];Element;KeyValuePair;_elements;_attributeElementKeys=[];_attributeElementArrayKeys=[];constructor(e){this.Element=H,this.KeyValuePair=_,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",we).register("string",fe).register("number",be).register("boolean",le).register("array",Se).register("object",X).register("member",G).register("ref",jn).register("link",En).register("sourceMap",pn),this.detect(Kl,we,!1).detect(Wl,fe,!1).detect(Yl,be,!1).detect(Ql,le,!1).detect(Array.isArray,Se,!1).detect(Zl,X,!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 Xl(this)}}Xl.prototype.Namespace=eu;const tu=eu,su=new tu,nu={isElement:Ee,isStringElement:je,isNumberElement:Oe,isNullElement:Fe,isBooleanElement:ke,isArrayElement:Ae,isObjectElement:$e,isMemberElement:Pe,isPrimitiveElement:e=>$e(e)&&"object"===e.element||Ae(e)&&"array"===e.element||ke(e)&&"boolean"===e.element||Oe(e)&&"number"===e.element||je(e)&&"string"===e.element||Fe(e)&&"null"===e.element||Pe(e)&&"member"===e.element,isLinkElement:An,isRefElement:$n,isAnnotationElement:e=>e instanceof On,isCommentElement:e=>e instanceof Fn,isParseResultElement:e=>e instanceof kn,isSourceMapElement:e=>e instanceof pn,hasElementStyle:rn,hasElementSourceMap:on,includesSymbols:(e,t)=>{if(0===t.length)return!0;if(!e.hasAttributesProperty("symbols"))return!1;const s=e.attributes.get("symbols");return!!Ae(s)&&t.every(e=>s.includes(e))},includesClasses:cn},ru={toolboxCreator:()=>({predicates:nu,namespace:su}),visitorOptions:{exposeEdits:!0}},iu=(e,t,s={})=>{if(0===t.length)return e;const n=Ll(ru,s),{toolboxCreator:r,visitorOptions:i,traverseOptions:o}=n,c=r(),a=t.map(e=>e(c)),l=Vr(a.map(Bl({},"visitor")),i);a.forEach(Gl(["pre"],[]));const u=Xr(e,l,o);return a.forEach(Gl(["post"],[])),u};function ou(e){return void 0===e?new we:cu(e)}function cu(e){if(e instanceof H)return e;if("string"==typeof e)return new fe(e);if("number"==typeof e)return new be(e);if("boolean"==typeof e)return new le(e);if(null===e)return new we;if(Array.isArray(e))return new Se(e.map(ou));if("object"==typeof e)return new X(e);throw new Error("Cannot refract value of type "+typeof e)}iu[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,s={})=>{if(0===t.length)return e;const n=Ll(ru,s),{toolboxCreator:r,visitorOptions:i,traverseOptions:o}=n,c=r(),a=t.map(e=>e(c)),l=Hr(a.map(Bl({},"visitor")),i);await Promise.allSettled(a.map(Gl(["pre"],[])));const u=await Kr(e,l,o);return await Promise.allSettled(a.map(Gl(["post"],[]))),u},H.prototype.ObjectElement=X,H.prototype.ArrayElement=Se,H.prototype.RefElement=jn,H.prototype.MemberElement=G,H.prototype.refract=cu,q.prototype.Element=H,q.prototype.cloneDeepElement=e=>vn(e);const au=class{element;consume=!1;consumeSafe=!1;constructor(e={}){Object.assign(this,e)}copyMetaAndAttributes(e,t){e.isMetaEmpty||t.isMetaEmpty?e.isMetaEmpty||(t.meta=e.meta.cloneDeep()):t.meta=t.meta.merge(e.meta),e.isAttributesEmpty||t.isAttributesEmpty?e.isAttributesEmpty||(t.attributes=vn(e.attributes)):t.attributes=Tn(t.attributes,e.attributes),pn.transfer(e,t),Rn.transfer(e,t)}};const lu=class extends au{enter(e){this.element=this.consume?e.node:vn(e.node),e.stop()}};const uu=class extends au{specObj;passingOptionsNames=["specObj","openApiGenericElement","sourceContext","openApiSemanticElement","consume"];openApiGenericElement;sourceContext;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 Zn(this.passingOptionsNames,this)}retrieveFixedFields(e){const t=bt(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]}retrieveVisitor(e){return is(Ts,["visitors",...e],this.specObj)?bt(["visitors",...e],this.specObj):bt(["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 lu&&n?.constructor===lu?this.consume?t:vn(t):(Xr(t,n,{nodeTypeGetter:Dr}),n.element)}};var du=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Wt,e.prototype["@@transducer/result"]=Yt,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?no(s):s},e}();function pu(e){return function(t){return new du(e,t)}}const hu=g(Xt(["take"],pu,function(e,t){return qt(0,e<0?1/0:e,t)}));const mu=g(function(e,t){return M(hu(e.length,t),e)}),fu=e=>$e(e)&&e.hasKey("$ref"),yu=$e,gu=$e,xu=e=>je(e.key)&&mu("x-",Pn(e.key));const vu=class extends uu{specPath;ignoredFields;canSupportSpecificationExtensions=!0;specificationExtensionPredicate=xu;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=Pn(t);if(je(t)&&n.includes(i)&&!this.ignoredFields.includes(i)){const n=this.toRefractedElement([...s,"fixedFields",i],e),o=new G(this.consume?t:vn(t),n);this.copyMetaAndAttributes(r,o),this.element.content.push(o),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e),this.consume&&this.consumeSafe&&!r.isFrozen&&(r.value=void 0)}else this.ignoredFields.includes(i)||this.element.content.push(this.consume?r:vn(r))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const bu=class extends uu{specPath;ignoredFields;fieldPatternPredicate=xi;canSupportSpecificationExtensions=!1;specificationExtensionPredicate=xu;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=Pn(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 G(this.consume?t:vn(t),r);this.copyMetaAndAttributes(s,i),i.classes.push("patterned-field"),this.element.content.push(i),this.consume&&this.consumeSafe&&!s.isFrozen&&(s.value=void 0)}else this.ignoredFields.includes(n)||this.element.content.push(this.consume?s:vn(s))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const wu=class extends bu{constructor(e){super(e),this.fieldPatternPredicate=Qn}};const Su=class extends uu{alternator;constructor({alternator:e,...t}){super({...t}),this.alternator=e||[]}enter(e){const t=e.node,s=this.alternator.map(({predicate:e,specPath:t})=>Qi(e,Ln(t),Jn)),n=ho(s)(t);this.element=this.toRefractedElement(n,t),e.stop()}};function Eu(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?!!Vt(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?!!Vt(e,s._items[r])||(t&&s._items[r].push(e),!1):(t&&(s._items[r]=[e]),!1)}}const ju=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!Eu(e,!0,this)},e.prototype.has=function(e){return Eu(e,!1,this)},e}();const Ou=g(function(e,t){for(var s=[],n=0,r=e.length,i=t.length,o=new ju,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}),Fu=yi(vu,bu);const ku=class extends Fu{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,...Ou(t.keys(),s)],vu.prototype.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=s,bu.prototype.ObjectElement.call(this,e);const r=t.keys();this.element.content.sort((e,t)=>r.indexOf(Pn(e.key))-r.indexOf(Pn(t.key)))}catch(e){throw this.specPath=s,e}e.stop()}},Au=yi(uu,lu),$u=yi(vu,lu),Pu=yi(bu,lu),Iu=yi(wu,lu),Cu=yi(Su,lu),Mu=yi(ku,lu);const Nu=class extends X{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 Tu=class extends $u{constructor(e){super(e),this.element=new Nu,this.specPath=Ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0}ObjectElement(e){$u.prototype.ObjectElement.call(this,e)}};const Du=class extends Au{StringElement(e){const t=e.node,s=new _e(Pn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Ru=class extends uu{MemberElement(e){this.element=vn(e.node),this.element.classes.push("specification-extension"),e.stop()}};const qu=class extends $u{constructor(e){super(e),this.element=new he,this.specPath=Ln(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}};const _u=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("api-version"),this.element.classes.push("version")}};const Lu=class extends $u{constructor(e){super(e),this.element=new Z,this.specPath=Ln(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}};const Bu=class extends $u{constructor(e){super(e),this.element=new xe,this.specPath=Ln(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}};const Ju=class extends $u{constructor(e){super(e),this.element=new Ie,this.specPath=Ln(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){$u.prototype.ObjectElement.call(this,e),(je(this.element.operationId)||je(this.element.operationRef))&&this.element.classes.push("reference-element")}};const Vu=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const Hu=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};class Uu extends X{static primaryClass="link-parameters";constructor(e,t,s){super(e,t,s),this.classes.push(Uu.primaryClass)}}const zu=Uu;const Gu=class extends Iu{constructor(e){super(e),this.element=new zu,this.specPath=Ln(["value"])}};const Xu=class extends $u{constructor(e){super(e),this.element=new Ec,this.specPath=Ln(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}};const Ku=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("server-url")}};const Wu=class extends Au{constructor(e){super(e),this.element=new Mc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=yu(e)?["document","objects","Server"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const Yu=class extends $u{constructor(e){super(e),this.element=new Oc,this.specPath=Ln(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}};const Qu=class extends Iu{constructor(e){super(e),this.element=new _c,this.specPath=Ln(["document","objects","ServerVariable"])}};const Zu=class extends $u{constructor(e){super(e),this.element=new Me,this.specPath=Ln(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}};const ed=e=>e instanceof de,td=e=>e instanceof Je,sd=e=>e instanceof Ge,nd=e=>e instanceof Ye,rd=e=>e instanceof st,id=e=>e instanceof Me,od=e=>e instanceof Mc;const cd=class extends Cu{constructor(e){super(e),this.alternator=[{predicate:fu,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){Su.prototype.enter.call(this,e),nd(this.element)&&this.element.meta.set("referenced-element","schema")}};const ad=class extends Iu{constructor(e){super(e),this.element=new X,this.element.classes.push("examples"),this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(e){Iu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","example")})}};const ld=class extends ad{constructor(e){super(e),this.element=new ca}};const ud=class extends Iu{constructor(e){super(e),this.element=new la,this.specPath=Ln(["document","objects","Encoding"])}};const dd=class extends Iu{constructor(e){super(e),this.element=new vc,this.specPath=Ln(["value"])}};const pd=class extends Au{constructor(e){super(e),this.element=new Tc}ArrayElement(e){const t=e.node;t.forEach(e=>{if($e(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(vn(e))}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const hd=class extends $u{constructor(e){super(e),this.element=new Y,this.specPath=Ln(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0}};const md=class extends $u{constructor(e){super(e),this.element=new kc,this.specPath=Ln(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}};const fd=class extends $u{constructor(e){super(e),this.element=new Ye,this.specPath=Ln(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(e){$u.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&this.element.classes.push("reference-element")}};const yd=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const gd=class extends $u{constructor(e){super(e),this.element=new Ue,this.specPath=Ln(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){vu.prototype.ObjectElement.call(this,e),$e(this.element.contentField)&&this.element.contentField.filter(id).forEach((e,t)=>{e.meta.set("media-type",Pn(t))})}};const xd=class extends Cu{constructor(e){super(e),this.alternator=[{predicate:fu,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){Su.prototype.enter.call(this,e),nd(this.element)&&this.element.meta.set("referenced-element","schema")}};const vd=class extends $u{constructor(e){super(e),this.element=new de,this.specPath=Ln(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}};const bd=class extends Cu{constructor(e){super(e),this.alternator=[{predicate:fu,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Schema"]}]}ObjectElement(e){Su.prototype.enter.call(this,e),nd(this.element)&&this.element.meta.set("referenced-element","schema")}};const wd=class extends ad{constructor(e){super(e),this.element=new va}};const Sd=class extends Iu{constructor(e){super(e),this.element=new X,this.element.classes.push("content"),this.specPath=Ln(["document","objects","MediaType"])}};const Ed=class extends Sd{constructor(e){super(e),this.element=new wa}};const jd=class extends en{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 Od=class extends $u{constructor(e){super(e),this.element=new jd,this.specPath=Ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}},Fd=xo.visitors.document.objects.JSONSchema.fixedFields.allOf;const kd=class extends Fd{ArrayElement(e){Fd.prototype.ArrayElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","schema")})}},Ad=xo.visitors.document.objects.JSONSchema.fixedFields.anyOf;const $d=class extends Ad{ArrayElement(e){Ad.prototype.ArrayElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","schema")})}},Pd=xo.visitors.document.objects.JSONSchema.fixedFields.oneOf;const Id=class extends Pd{ArrayElement(e){Pd.prototype.ArrayElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Cd=class extends Ri{ObjectElement(e){Ri.prototype.ObjectElement.call(this,e),nd(this.element)&&this.element.meta.set("referenced-element","schema")}ArrayElement(e){this.enter(e)}},Md=xo.visitors.document.objects.JSONSchema.fixedFields.properties;const Nd=class extends Md{ObjectElement(e){Md.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","schema")})}},Td=xo.visitors.document.objects.JSONSchema.fixedFields.type;const Dd=class extends Td{ArrayElement(e){this.enter(e)}},Rd=xo.visitors.JSONSchemaOrJSONReferenceVisitor;const qd=class extends Rd{ObjectElement(e){Rd.prototype.enter.call(this,e),nd(this.element)&&this.element.meta.set("referenced-element","schema")}};const _d=class extends $u{constructor(e){super(e),this.element=new te,this.specPath=Ln(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}};const Ld=class extends Iu{constructor(e){super(e),this.element=new Ba,this.specPath=Ln(["value"])}};const Bd=class extends $u{constructor(e){super(e),this.element=new $c,this.specPath=Ln(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}};const Jd=class extends ad{constructor(e){super(e),this.element=new ta}};const Vd=class extends Sd{constructor(e){super(e),this.element=new na}};const Hd=class extends Iu{constructor(e){super(e),this.element=new Ea,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","schema")})}};const Ud=class extends Iu{constructor(e){super(e),this.element=new Oa,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(rd).forEach((e,t)=>{e.meta.set("http-status-code",Pn(t))})}};const zd=class extends Iu{constructor(e){super(e),this.element=new ka,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","parameter")})}};const Gd=class extends Iu{constructor(e){super(e),this.element=new $a,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","example")})}};const Xd=class extends Iu{constructor(e){super(e),this.element=new Ia,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","requestBody")})}};const Kd=class extends Iu{constructor(e){super(e),this.element=new Ma,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.filter(ed).forEach((e,t)=>{e.meta.set("header-name",Pn(t))})}};const Wd=class extends Iu{constructor(e){super(e),this.element=new Ta,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","securityScheme")})}};const Yd=class extends Iu{constructor(e){super(e),this.element=new Ra,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","link")})}};const Qd=class extends Iu{constructor(e){super(e),this.element=new _a,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Zd=class extends $u{constructor(e){super(e),this.element=new ie,this.specPath=Ln(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){$u.prototype.ObjectElement.call(this,e),je(this.element.externalValue)&&this.element.classes.push("reference-element")}};const ep=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const tp=class extends $u{constructor(e){super(e),this.element=new ce,this.specPath=Ln(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}};const sp=class extends $u{constructor(e){super(e),this.element=new ne,this.specPath=Ln(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(e){vu.prototype.ObjectElement.call(this,e),$e(this.element.headers)&&this.element.headers.filter(ed).forEach((e,t)=>{e.meta.set("header-name",Pn(t))})}};const np=class extends Iu{constructor(e){super(e),this.element=new da,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!ed(e))return;const s=Pn(t);e.meta.set("headerName",s)})}};const rp=class extends Pu{constructor(e){super(e),this.element=new Ke,this.specPath=Ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0,this.fieldPatternPredicate=Yi}ObjectElement(e){Pu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach((e,t)=>{t.classes.push("openapi-path-template"),t.classes.push("path-template"),e.meta.set("path",Pn(t))})}};const ip=class extends $u{constructor(e){super(e),this.element=new et,this.specPath=Ln(["document","objects","RequestBody"])}ObjectElement(e){vu.prototype.ObjectElement.call(this,e),$e(this.element.contentField)&&this.element.contentField.filter(id).forEach((e,t)=>{e.meta.set("media-type",Pn(t))})}};const op=class extends Sd{constructor(e){super(e),this.element=new ia}};const cp=class extends Pu{constructor(e){super(e),this.element=new K,this.specPath=Ln(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=e=>/{(?<expression>[^}]{1,2083})}/.test(String(e))}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(sd).forEach((e,t)=>{e.meta.set("runtime-expression",Pn(t))})}};const ap=class extends $u{constructor(e){super(e),this.element=new st,this.specPath=Ln(["document","objects","Response"])}ObjectElement(e){$u.prototype.ObjectElement.call(this,e),$e(this.element.contentField)&&this.element.contentField.filter(id).forEach((e,t)=>{e.meta.set("media-type",Pn(t))}),$e(this.element.headers)&&this.element.headers.filter(ed).forEach((e,t)=>{e.meta.set("header-name",Pn(t))})}};const lp=class extends Iu{constructor(e){super(e),this.element=new ha,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(e){Iu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","header")}),this.element.forEach((e,t)=>{if(!ed(e))return;const s=Pn(t);e.meta.set("header-name",s)})}};const up=class extends Sd{constructor(e){super(e),this.element=new fa}};const dp=class extends Iu{constructor(e){super(e),this.element=new ga,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(e){Iu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","link")})}};function pp(e){return"[object Number]"===Object.prototype.toString.call(e)}var hp=g(function(e,t){if(!pp(e)||!pp(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 mp=hp;const fp=class extends Mu{constructor(e){super(e),this.element=new rt,this.specPathFixedFields=Ln(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=e=>fu(e)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=e=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${mp(100,600).join("|")})$`).test(String(e))}ObjectElement(e){Mu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","response")}),this.element.filter(rd).forEach((e,t)=>{const s=Pn(t);this.fieldPatternPredicate(s)&&e.meta.set("http-status-code",s)})}};const yp=class extends Cu{constructor(e){super(e),this.alternator=[{predicate:fu,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","Response"]}]}ObjectElement(e){Su.prototype.enter.call(this,e),nd(this.element)?this.element.meta.set("referenced-element","response"):rd(this.element)&&this.element.meta.set("http-status-code","default")}};const gp=class extends $u{constructor(e){super(e),this.element=new Je,this.specPath=Ln(["document","objects","Operation"])}};const xp=class extends lu{constructor(e){super(e),this.element=new Uc}ArrayElement(e){const t=e.node;this.element=this.element.concat(vn(t)),e.stop()}};const vp=class extends Au{constructor(e){super(e),this.element=new Se,this.element.classes.push("parameters")}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=fu(e)?["document","objects","Reference"]:["document","objects","Parameter"],s=this.toRefractedElement(t,e);nd(s)&&s.meta.set("referenced-element","parameter"),this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const bp=class extends vp{constructor(e){super(e),this.element=new Gc}};const wp=class extends Su{constructor(e){super(e),this.alternator=[{predicate:fu,specPath:["document","objects","Reference"]},{predicate:Yi,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){Su.prototype.enter.call(this,e),nd(this.element)&&this.element.meta.set("referenced-element","requestBody")}};const Sp=class extends Iu{specPath;constructor(e){super(e),this.element=new Kc,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(nd).forEach(e=>{e.meta.set("referenced-element","callback")})}};const Ep=class extends Au{constructor(e){super(e),this.element=new Yc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=$e(e)?["document","objects","SecurityRequirement"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}};const jp=class extends Wu{constructor(e){super(e),this.element=new Zc}};const Op=class extends $u{constructor(e){super(e),this.element=new Ge,this.specPath=Ln(["document","objects","PathItem"]),this.consumeSafe=!0}ObjectElement(e){$u.prototype.ObjectElement.call(this,e),this.element.filter(td).forEach((e,t)=>{e.meta.set("http-method",Pn(t).toUpperCase())}),je(this.element.$ref)&&this.element.classes.push("reference-element")}};const Fp=class extends lu{StringElement(e){super.enter(e),this.element.classes.push("reference-value")}};const kp=class extends Wu{constructor(e){super(e),this.element=new Bc}};const Ap=class extends vp{constructor(e){super(e),this.element=new Vc}};const $p=class extends $u{constructor(e){super(e),this.element=new wc,this.specPath=Ln(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}};const Pp=class extends $u{constructor(e){super(e),this.element=new Re,this.specPath=Ln(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}};const Ip=class extends $u{constructor(e){super(e),this.element=new Te,this.specPath=Ln(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}};const Cp=class extends Iu{constructor(e){super(e),this.element=new Va,this.specPath=Ln(["value"])}};const Mp=class extends Au{constructor(e){super(e),this.element=new Rc}ArrayElement(e){const t=e.node;t.forEach(e=>{const t=gu(e)?["document","objects","Tag"]:["value"],s=this.toRefractedElement(t,e);this.element.push(s)}),this.copyMetaAndAttributes(t,this.element),e.stop()}},{fixedFields:Np}=xo.visitors.document.objects.JSONSchema,Tp={visitors:{value:lu,document:{objects:{OpenApi:{$visitor:Tu,element:"openApi3_0",fixedFields:{openapi:Du,info:{$ref:"#/visitors/document/objects/Info"},servers:Wu,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:pd,tags:Mp,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:qu,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:_u}},Contact:{$visitor:Lu,element:"contact",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:Bu,element:"license",fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:Xu,element:"server",fixedFields:{url:Ku,description:{$ref:"#/visitors/value"},variables:Qu}},ServerVariable:{$visitor:Yu,element:"serverVariable",fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:hd,element:"components",fixedFields:{schemas:Hd,responses:Ud,parameters:zd,examples:Gd,requestBodies:Xd,headers:Kd,securitySchemes:Wd,links:{$visitor:Yd,alias:"linksField"},callbacks:Qd}},Paths:{$visitor:rp,element:"paths"},PathItem:{$visitor:Op,element:"pathItem",fixedFields:{$ref:Fp,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:kp,parameters:Ap}},Operation:{$visitor:gp,element:"operation",fixedFields:{tags:xp,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:bp,requestBody:wp,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Sp,deprecated:{$ref:"#/visitors/value"},security:Ep,servers:jp}},ExternalDocumentation:{$visitor:tp,element:"externalDocumentation",fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:gd,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",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:xd,example:{$ref:"#/visitors/value"},examples:Jd,content:{$visitor:Vd,alias:"contentField"}}},RequestBody:{$visitor:ip,element:"requestBody",fixedFields:{description:{$ref:"#/visitors/value"},content:{$visitor:op,alias:"contentField"},required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:Zu,element:"mediaType",fixedFields:{schema:cd,example:{$ref:"#/visitors/value"},examples:ld,encoding:ud}},Encoding:{$visitor:sp,element:"encoding",fixedFields:{contentType:{$ref:"#/visitors/value"},headers:np,style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:fp,element:"responses",fixedFields:{default:yp}},Response:{$visitor:ap,element:"response",fixedFields:{description:{$ref:"#/visitors/value"},headers:lp,content:{$visitor:up,alias:"contentField"},links:{$visitor:dp,alias:"linksField"}}},Callback:{$visitor:cp,element:"callback"},Example:{$visitor:Zd,element:"example",fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:ep}},Link:{$visitor:Ju,element:"link",fixedFields:{operationRef:Vu,operationId:Hu,parameters:Gu,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:vd,element:"header",fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value",alias:"styleField"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:bd,example:{$ref:"#/visitors/value"},examples:wd,content:{$visitor:Ed,alias:"contentField"}}},Tag:{$visitor:md,element:"tag",fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:fd,element:"reference",fixedFields:{$ref:yd}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:Od,element:"schema",fixedFields:{title:Np.title,multipleOf:Np.multipleOf,maximum:Np.maximum,exclusiveMaximum:Np.exclusiveMaximum,minimum:Np.minimum,exclusiveMinimum:Np.exclusiveMinimum,maxLength:Np.maxLength,minLength:Np.minLength,pattern:Np.pattern,maxItems:Np.maxItems,minItems:Np.minItems,uniqueItems:Np.uniqueItems,maxProperties:Np.maxProperties,minProperties:Np.minProperties,required:Np.required,enum:Np.enum,type:Dd,allOf:kd,anyOf:$d,oneOf:Id,not:qd,items:{$visitor:Cd,alias:"itemsField"},properties:Nd,additionalProperties:qd,description:Np.description,format:Np.format,default:Np.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:_d,element:"discriminator",fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:Ld}},XML:{$visitor:Bd,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:$p,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:Pp,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:Ip,element:"oAuthFlow",fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Cp}},SecurityRequirement:{$visitor:dd,element:"securityRequirement"}},extension:{$visitor:Ru}}}},Dp=yi(uu,lu),Rp=yi(vu,lu),qp=yi(wu,lu),_p=yi(vu,wi,lu);const Lp=class extends Rp{constructor(e){super(e),this.element=new Be,this.specPath=Ln(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.consumeSafe=!0,this.openApiSemanticElement=this.element}ObjectElement(e){const t=e.node;this.openApiGenericElement=t,je(t.get("jsonSchemaDialect"))&&(this.sourceContext={jsonSchemaDialect:Pn(t.get("jsonSchemaDialect"))}),vu.prototype.ObjectElement.call(this,e)}},Bp=Tp.visitors.document.objects.Info.$visitor;const Jp=class extends Bp{constructor(e){super(e),this.element=new me}},Vp=Tp.visitors.document.objects.Contact.$visitor;const Hp=class extends Vp{constructor(e){super(e),this.element=new ee}},Up=Tp.visitors.document.objects.License.$visitor;const zp=class extends Up{constructor(e){super(e),this.element=new ve}},Gp=Tp.visitors.document.objects.Link.$visitor;const Xp=class extends Gp{constructor(e){super(e),this.element=new Ce}};const Kp=class extends Dp{StringElement(e){const t=e.node,s=new ge(Pn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}};const Wp=class extends Dp{StringElement(e){const t=e.node,s=new Le(Pn(t));this.copyMetaAndAttributes(t,s),this.element=s,e.stop()}},Yp=Tp.visitors.document.objects.Server.$visitor;const Qp=class extends Yp{constructor(e){super(e),this.element=new jc}},Zp=Tp.visitors.document.objects.ServerVariable.$visitor;const eh=class extends Zp{constructor(e){super(e),this.element=new Fc}},th=Tp.visitors.document.objects.MediaType.$visitor;const sh=class extends th{constructor(e){super(e),this.element=new Ne}},nh=Tp.visitors.document.objects.SecurityRequirement.$visitor;const rh=class extends nh{constructor(e){super(e),this.element=new bc}},ih=Tp.visitors.document.objects.Components.$visitor;const oh=class extends ih{constructor(e){super(e),this.element=new Q}},ch=Tp.visitors.document.objects.Tag.$visitor;const ah=class extends ch{constructor(e){super(e),this.element=new Ac}},lh=Tp.visitors.document.objects.Reference.$visitor;const uh=class extends lh{constructor(e){super(e),this.element=new Ze}},dh=Tp.visitors.document.objects.Parameter.$visitor;const ph=class extends dh{constructor(e){super(e),this.element=new ze}},hh=Tp.visitors.document.objects.Header.$visitor;const mh=class extends hh{constructor(e){super(e),this.element=new pe}};const fh=class extends _p{constructor(e){super(e),this.element=new xc,this.specPath=Ln(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=ge.default,this.passingOptionsNames.push("parent")}ObjectElement(e){const t=e.node;this.handleDialectIdentifier(t),this.handleSchemaIdentifier(t),this.parent=this.element,vu.prototype.ObjectElement.call(this,e),je(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.meta.set("referenced-element","schema"))}BooleanElement(e){pc.prototype.BooleanElement.call(this,e)}get defaultDialectIdentifier(){let e;return e=void 0!==this.openApiSemanticElement&&ll(this.openApiSemanticElement.jsonSchemaDialect)?Pn(this.openApiSemanticElement.jsonSchemaDialect):void 0!==this.sourceContext?.jsonSchemaDialect?this.sourceContext.jsonSchemaDialect:Pn(this.jsonSchemaDefaultDialect),e}handleDialectIdentifier(e){return pc.prototype.handleDialectIdentifier.call(this,e)}handleSchemaIdentifier(e){return pc.prototype.handleSchemaIdentifier.call(this,e)}};const yh=class extends Yo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const gh=class extends Qo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const xh=class extends Zo{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const vh=class extends ec{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const bh=class extends tc{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const wh=class extends hc{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Sh=class extends nc{constructor(e){super(e),this.passingOptionsNames.push("parent")}};const Eh=class extends rc{constructor(e){super(e),this.passingOptionsNames.push("parent")}},jh=Tp.visitors.document.objects.Discriminator.$visitor;const Oh=class extends jh{constructor(e){super(e),this.element=new se,this.canSupportSpecificationExtensions=!0}},Fh=Tp.visitors.document.objects.XML.$visitor;const kh=class extends Fh{constructor(e){super(e),this.element=new Pc}};const Ah=class extends qp{constructor(e){super(e),this.element=new Ea,this.specPath=Ln(["document","objects","Schema"])}};const $h=class extends qp{constructor(e){super(e),this.element=new Ua,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(vl).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},Ph=Tp.visitors.document.objects.Example.$visitor;const Ih=class extends Ph{constructor(e){super(e),this.element=new oe}},Ch=Tp.visitors.document.objects.ExternalDocumentation.$visitor;const Mh=class extends Ch{constructor(e){super(e),this.element=new ae}},Nh=Tp.visitors.document.objects.Encoding.$visitor;const Th=class extends Nh{constructor(e){super(e),this.element=new re}},Dh=Tp.visitors.document.objects.Paths.$visitor;const Rh=class extends Dh{constructor(e){super(e),this.element=new We}},qh=Tp.visitors.document.objects.RequestBody.$visitor;const _h=class extends qh{constructor(e){super(e),this.element=new tt}},Lh=Tp.visitors.document.objects.Callback.$visitor;const Bh=class extends Lh{constructor(e){super(e),this.element=new W,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){Lh.prototype.ObjectElement.call(this,e),this.element.filter(vl).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")})}},Jh=Tp.visitors.document.objects.Response.$visitor;const Vh=class extends Jh{constructor(e){super(e),this.element=new nt}},Hh=Tp.visitors.document.objects.Responses.$visitor;const Uh=class extends Hh{constructor(e){super(e),this.element=new it}},zh=Tp.visitors.document.objects.Operation.$visitor;const Gh=class extends zh{constructor(e){super(e),this.element=new Ve}},Xh=Tp.visitors.document.objects.PathItem.$visitor;const Kh=class extends Xh{constructor(e){super(e),this.element=new Xe}},Wh=Tp.visitors.document.objects.SecurityScheme.$visitor;const Yh=class extends Wh{constructor(e){super(e),this.element=new Sc}},Qh=Tp.visitors.document.objects.OAuthFlows.$visitor;const Zh=class extends Qh{constructor(e){super(e),this.element=new qe}},em=Tp.visitors.document.objects.OAuthFlow.$visitor;const tm=class extends em{constructor(e){super(e),this.element=new De}};const sm=class extends qp{constructor(e){super(e),this.element=new Ga,this.specPath=e=>fu(e)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){wu.prototype.ObjectElement.call(this,e),this.element.filter(vl).forEach(e=>{e.setMetaProperty("referenced-element","pathItem")}),this.element.filter(yl).forEach((e,t)=>{e.setMetaProperty("webhook-name",Pn(t))})}},{JSONSchema:nm,LinkDescription:rm}=fc.visitors.document.objects,im={visitors:{value:Tp.visitors.value,document:{objects:{OpenApi:{element:"openApi3_1",$visitor:Lp,fixedFields:{openapi:{element:"openapi",$visitor:Wp},info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:{element:"jsonSchemaDialect",$visitor:Kp},servers:Tp.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:sm,components:{$ref:"#/visitors/document/objects/Components"},security:Tp.visitors.document.objects.OpenApi.fixedFields.security,tags:Tp.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{element:"info",$visitor:Jp,fixedFields:{title:Tp.visitors.document.objects.Info.fixedFields.title,description:Tp.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Tp.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Tp.visitors.document.objects.Info.fixedFields.version}},Contact:{element:"contact",$visitor:Hp,fixedFields:{name:Tp.visitors.document.objects.Contact.fixedFields.name,url:Tp.visitors.document.objects.Contact.fixedFields.url,email:Tp.visitors.document.objects.Contact.fixedFields.email}},License:{element:"license",$visitor:zp,fixedFields:{name:Tp.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Tp.visitors.document.objects.License.fixedFields.url}},Server:{element:"server",$visitor:Qp,fixedFields:{url:Tp.visitors.document.objects.Server.fixedFields.url,description:Tp.visitors.document.objects.Server.fixedFields.description,variables:Tp.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{element:"serverVariable",$visitor:eh,fixedFields:{enum:Tp.visitors.document.objects.ServerVariable.fixedFields.enum,default:Tp.visitors.document.objects.ServerVariable.fixedFields.default,description:Tp.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{element:"components",$visitor:oh,fixedFields:{schemas:Ah,responses:Tp.visitors.document.objects.Components.fixedFields.responses,parameters:Tp.visitors.document.objects.Components.fixedFields.parameters,examples:Tp.visitors.document.objects.Components.fixedFields.examples,requestBodies:Tp.visitors.document.objects.Components.fixedFields.requestBodies,headers:Tp.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Tp.visitors.document.objects.Components.fixedFields.securitySchemes,links:Tp.visitors.document.objects.Components.fixedFields.links,callbacks:Tp.visitors.document.objects.Components.fixedFields.callbacks,pathItems:$h}},Paths:{element:"paths",$visitor:Rh},PathItem:{element:"pathItem",$visitor:Kh,fixedFields:{$ref:Tp.visitors.document.objects.PathItem.fixedFields.$ref,summary:Tp.visitors.document.objects.PathItem.fixedFields.summary,description:Tp.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:Tp.visitors.document.objects.PathItem.fixedFields.servers,parameters:Tp.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{element:"operation",$visitor:Gh,fixedFields:{tags:Tp.visitors.document.objects.Operation.fixedFields.tags,summary:Tp.visitors.document.objects.Operation.fixedFields.summary,description:Tp.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Tp.visitors.document.objects.Operation.fixedFields.operationId,parameters:Tp.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Tp.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Tp.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Tp.visitors.document.objects.Operation.fixedFields.deprecated,security:Tp.visitors.document.objects.Operation.fixedFields.security,servers:Tp.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{element:"externalDocumentation",$visitor:Mh,fixedFields:{description:Tp.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Tp.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{element:"parameter",$visitor:ph,fixedFields:{name:Tp.visitors.document.objects.Parameter.fixedFields.name,in:Tp.visitors.document.objects.Parameter.fixedFields.in,description:Tp.visitors.document.objects.Parameter.fixedFields.description,required:Tp.visitors.document.objects.Parameter.fixedFields.required,deprecated:Tp.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Tp.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Tp.visitors.document.objects.Parameter.fixedFields.style,explode:Tp.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Tp.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Tp.visitors.document.objects.Parameter.fixedFields.example,examples:Tp.visitors.document.objects.Parameter.fixedFields.examples,content:Tp.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{element:"requestBody",$visitor:_h,fixedFields:{description:Tp.visitors.document.objects.RequestBody.fixedFields.description,content:Tp.visitors.document.objects.RequestBody.fixedFields.content,required:Tp.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{element:"mediaType",$visitor:sh,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Tp.visitors.document.objects.MediaType.fixedFields.example,examples:Tp.visitors.document.objects.MediaType.fixedFields.examples,encoding:Tp.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{element:"encoding",$visitor:Th,fixedFields:{contentType:Tp.visitors.document.objects.Encoding.fixedFields.contentType,headers:Tp.visitors.document.objects.Encoding.fixedFields.headers,style:Tp.visitors.document.objects.Encoding.fixedFields.style,explode:Tp.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Tp.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{element:"responses",$visitor:Uh,fixedFields:{default:Tp.visitors.document.objects.Responses.fixedFields.default}},Response:{element:"response",$visitor:Vh,fixedFields:{description:Tp.visitors.document.objects.Response.fixedFields.description,headers:Tp.visitors.document.objects.Response.fixedFields.headers,content:Tp.visitors.document.objects.Response.fixedFields.content,links:Tp.visitors.document.objects.Response.fixedFields.links}},Callback:{element:"callback",$visitor:Bh},Example:{element:"example",$visitor:Ih,fixedFields:{summary:Tp.visitors.document.objects.Example.fixedFields.summary,description:Tp.visitors.document.objects.Example.fixedFields.description,value:Tp.visitors.document.objects.Example.fixedFields.value,externalValue:Tp.visitors.document.objects.Example.fixedFields.externalValue}},Link:{element:"link",$visitor:Xp,fixedFields:{operationRef:Tp.visitors.document.objects.Link.fixedFields.operationRef,operationId:Tp.visitors.document.objects.Link.fixedFields.operationId,parameters:Tp.visitors.document.objects.Link.fixedFields.parameters,requestBody:Tp.visitors.document.objects.Link.fixedFields.requestBody,description:Tp.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{element:"header",$visitor:mh,fixedFields:{description:Tp.visitors.document.objects.Header.fixedFields.description,required:Tp.visitors.document.objects.Header.fixedFields.required,deprecated:Tp.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Tp.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Tp.visitors.document.objects.Header.fixedFields.style,explode:Tp.visitors.document.objects.Header.fixedFields.explode,allowReserved:Tp.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Tp.visitors.document.objects.Header.fixedFields.example,examples:Tp.visitors.document.objects.Header.fixedFields.examples,content:Tp.visitors.document.objects.Header.fixedFields.content}},Tag:{element:"tag",$visitor:ah,fixedFields:{name:Tp.visitors.document.objects.Tag.fixedFields.name,description:Tp.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{element:"reference",$visitor:uh,fixedFields:{$ref:Tp.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},LinkDescription:{...rm},Schema:{element:"schema",$visitor:fh,fixedFields:{...nm.fixedFields,$defs:yh,allOf:gh,anyOf:xh,oneOf:vh,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:bh,prefixItems:wh,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:Sh,patternProperties:Eh,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:Oh,fixedFields:{propertyName:Tp.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Tp.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{element:"xml",$visitor:kh,fixedFields:{name:Tp.visitors.document.objects.XML.fixedFields.name,namespace:Tp.visitors.document.objects.XML.fixedFields.namespace,prefix:Tp.visitors.document.objects.XML.fixedFields.prefix,attribute:Tp.visitors.document.objects.XML.fixedFields.attribute,wrapped:Tp.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{element:"securityScheme",$visitor:Yh,fixedFields:{type:Tp.visitors.document.objects.SecurityScheme.fixedFields.type,description:Tp.visitors.document.objects.SecurityScheme.fixedFields.description,name:Tp.visitors.document.objects.SecurityScheme.fixedFields.name,in:Tp.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Tp.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Tp.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Tp.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{element:"oAuthFlows",$visitor:Zh,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:tm,fixedFields:{authorizationUrl:Tp.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Tp.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Tp.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Tp.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{element:"securityRequirement",$visitor:rh}},extension:{$visitor:Tp.visitors.document.extension.$visitor}}}},om=e=>$e(e)&&e.hasKey("$ref"),cm=$e,am=$e,lm=e=>je(e.key)&&mu("x-",Pn(e.key)),um=()=>{const e=new tu,t={...n,...s,isStringElement:je,isArrayElement:Ae,isObjectElement:$e};return e.use(Ic),{predicates:t,namespace:e}},dm=(e,{element:t="openApi3_1",plugins:s=[],specificationObj:n=im,consume:r=!1}={})=>{const i=cu(e),o=Zs(n),c=o.elementMap[t];if(!c)throw new Error(`Unknown element type: "${t}"`);const a=new(bt(c,o))({specObj:o,consume:r});return Xr(i,a,{nodeTypeGetter:Dr}),iu(a.element,s,{toolboxCreator:um})},pm=(e,t={})=>dm(e,{...t,element:"openApi3_1"}),hm=(e,t={})=>dm(e,{...t,element:"info"}),mm=(e,t={})=>dm(e,{...t,element:"contact"}),fm=(e,t={})=>dm(e,{...t,element:"license"}),ym=(e,t={})=>dm(e,{...t,element:"server"}),gm=(e,t={})=>dm(e,{...t,element:"serverVariable"}),xm=(e,t={})=>dm(e,{...t,element:"components"}),vm=(e,t={})=>dm(e,{...t,element:"paths"}),bm=(e,t={})=>dm(e,{...t,element:"pathItem"}),wm=(e,t={})=>dm(e,{...t,element:"operation"}),Sm=(e,t={})=>dm(e,{...t,element:"externalDocumentation"}),Em=(e,t={})=>dm(e,{...t,element:"parameter"}),jm=(e,t={})=>dm(e,{...t,element:"requestBody"}),Om=(e,t={})=>dm(e,{...t,element:"mediaType"}),Fm=(e,t={})=>dm(e,{...t,element:"encoding"}),km=(e,t={})=>dm(e,{...t,element:"responses"}),Am=(e,t={})=>dm(e,{...t,element:"response"}),$m=(e,t={})=>dm(e,{...t,element:"callback"}),Pm=(e,t={})=>dm(e,{...t,element:"example"}),Im=(e,t={})=>dm(e,{...t,element:"link"}),Cm=(e,t={})=>dm(e,{...t,element:"header"}),Mm=(e,t={})=>dm(e,{...t,element:"tag"}),Nm=(e,t={})=>dm(e,{...t,element:"reference"}),Tm=(e,t={})=>dm(e,{...t,element:"schema"}),Dm=(e,t={})=>dm(e,{...t,element:"discriminator"}),Rm=(e,t={})=>dm(e,{...t,element:"xml"}),qm=(e,t={})=>dm(e,{...t,element:"securityScheme"}),_m=(e,t={})=>dm(e,{...t,element:"oAuthFlows"}),Lm=(e,t={})=>dm(e,{...t,element:"oAuthFlow"}),Bm=(e,t={})=>dm(e,{...t,element:"securityRequirement"}),Jm=(e,t={})=>dm(e,{...t,element:"jsonSchemaDialect"}),Vm=dm,Hm=e=>{const t=void 0===e.servers,s=Ae(e.servers),n=s&&0===e.servers.length,r=ym({url:"/"});t||!s?e.servers=new Mc([r]):s&&n&&e.servers.push(r)},Um=(e,t)=>{const s=void 0===e.servers,n=Ae(e.servers),r=n&&0===e.servers.length,i=[...t.servers??[]];s||!n?e.servers=new Bc(i):n&&r&&i.forEach(t=>{e.servers.push(t)})},zm=(e,t)=>{const s=void 0===e.servers,n=Ae(e.servers),r=n&&0===e.servers.length,i=[...t.servers??[]];s||!n?e.servers=new Zc(i):n&&r&&i.forEach(t=>{e.servers.push(t)})},Gm=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;Hm(s),n=new el(s,e,"servers")},leave(){n=void 0}},PathItemElement(e){const t=e.node,r=e.getAncestorNodes();if(r.some(s.isComponentsElement))return;if(!r.some(s.isOpenApi3_1Element))return;const i=e.formatPath();if(n.includes(i))return;const o=r.find(s.isOpenApi3_1Element);s.isOpenApi3_1Element(o)&&(Um(t,o),n.append(i))},OperationElement(e){const t=e.node,r=e.getAncestorNodes();if(r.some(s.isComponentsElement))return;if(!r.some(s.isOpenApi3_1Element))return;const i=e.formatPath();if(n.includes(i))return;const o=r.find(s.isPathItemElement);s.isPathItemElement(o)&&(zm(t,o),n.append(i))}}}};Gm.ensureDefaultServer=Hm,Gm.inheritServersToPathItem=Um,Gm.inheritServersToOperation=zm;const Xm=Gm;var Km=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"]=Wt,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,N(this.valueAcc,!1)],this.inputs[s][1]=this.valueFn(this.inputs[s][1],t),e},e}();function Wm(e,t,s){return function(n){return new Km(e,t,s,n)}}const Ym=g(Rt("groupBy",hs(4,[],Xt([],Wm,function(e,t,s,n){var r=Tt(function(n,r){var i=s(r),o=e(b(i,n)?n[i]:N(t,!1),r);return o&&o["@@transducer/reduced"]?no(n):(n[i]=o,n)});return Mt(r,{},n)}))(function(e,t){return e.push(t),e},[]))),Qm=e=>e.replace(/\s/g,""),Zm=e=>e.replace(/\W/gi,"_"),ef=(e,t,s)=>{const n=Qm(e);return n.length>0?Zm(n):((e,t)=>`${Zm(Qm(t.toLowerCase()))}${Zm(Qm(e))}`)(t,s)},tf=({storageField:e="x-normalized",operationIdNormalizer:t=ef}={})=>s=>{const{predicates:n,namespace:r}=s,i=[],o=[],a=[];let l;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;l=new el(s,e,"operation-ids")},leave(){const e=Ym(e=>Pn(e.operationId),o);Object.entries(e).forEach(([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach((t,s)=>{const n=`${e}${s+1}`;t.operationId=new r.elements.String(n)}))}),a.forEach(e=>{if(void 0===e.operationId)return;const t=String(Pn(e.operationId)),s=o.find(e=>e.meta.get("originalOperationId")===t);void 0!==s&&(e.operationId=vn.safe(s.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))}),o.length=0,a.length=0,l=void 0}},PathItemElement:{enter(e){const t=e.node,s=Bn("path",t.meta.get("path"));i.push(s)},leave(){i.pop()}},OperationElement:{enter(e){const s=e.node;if(void 0===s.operationId)return;const n=e.formatPath();if(l.includes(n))return;const a=String(Pn(s.operationId)),u=c(i),d=Bn("method",s.meta.get("http-method")),p=t(a,u,d);a!==p&&(s.operationId=new r.elements.String(p),s.set("__originalOperationId",a),s.meta.set("originalOperationId",a),o.push(s),l.append(n))}},LinkElement:{leave(e){const t=e.node;n.isLinkElement(t)&&void 0!==t.operationId&&a.push(t)}}}}},sf=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;n=new el(s,e,"parameter-examples")},leave(){n=void 0}},ParameterElement:{leave(e){const t=e.node;if(e.getAncestorNodes().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 r=e.formatPath();if(!n.includes(r)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>vn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),n.append(r)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),n.append(r)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[vn(t.example)]),n.append(r)),void 0!==t.schema.example&&(t.schema.set("example",vn(t.example)),n.append(r)))}}}}}},nf=({storageField:e="x-normalized"}={})=>t=>{const{predicates:s}=t;let n;return{visitor:{OpenApi3_1Element:{enter(t){const s=t.node;n=new el(s,e,"header-examples")},leave(){n=void 0}},HeaderElement:{leave(e){const t=e.node;if(e.getAncestorNodes().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 r=e.formatPath();if(!n.includes(r)){if(void 0!==t.examples&&s.isObjectElement(t.examples)){const e=t.examples.map(e=>vn.safe(e.value));return void 0!==t.schema.examples&&(t.schema.set("examples",e),n.append(r)),void(void 0!==t.schema.example&&(t.schema.set("example",e[0]),n.append(r)))}void 0!==t.example&&(void 0!==t.schema.examples&&(t.schema.set("examples",[vn(t.example)]),n.append(r)),void 0!==t.schema.example&&(t.schema.set("example",vn(t.example)),n.append(r)))}}}}}};return t})());