/*! For license information please see without-parser.js.LICENSE.txt */ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t(require("react")):"function"==typeof define&&define.amd?define("AsyncApiComponent",["react"],t):"object"==typeof exports?exports.AsyncApiComponent=t(require("react")):e.AsyncApiComponent=t(e.React)}("undefined"!=typeof self?self:this,(e=>(()=>{var t={8262:function(e,t,n){"use strict";var i=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.lastVersion=t.specVersions=t.EXTENSION_REGEX=t.xParserObjectUniqueId=t.xParserCircularProps=t.xParserCircular=t.xParserOriginalTraits=t.xParserOriginalPayload=t.xParserOriginalSchemaFormat=t.xParserSchemaId=t.xParserMessageParsed=t.xParserMessageName=t.xParserApiVersion=t.xParserSpecStringified=t.xParserSpecParsed=void 0;const r=i(n(11005));t.xParserSpecParsed="x-parser-spec-parsed",t.xParserSpecStringified="x-parser-spec-stringified",t.xParserApiVersion="x-parser-api-version",t.xParserMessageName="x-parser-message-name",t.xParserMessageParsed="x-parser-message-parsed",t.xParserSchemaId="x-parser-schema-id",t.xParserOriginalSchemaFormat="x-parser-original-schema-format",t.xParserOriginalPayload="x-parser-original-payload",t.xParserOriginalTraits="x-parser-original-traits",t.xParserCircular="x-parser-circular",t.xParserCircularProps="x-parser-circular-props",t.xParserObjectUniqueId="x-parser-unique-object-id",t.EXTENSION_REGEX=/^x-[\w\d.\-_]+$/,t.specVersions=Object.keys(r.default.schemas),t.lastVersion=t.specVersions[t.specVersions.length-1]},7307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.isStringifiedDocument=t.isParsedDocument=t.isOldAsyncAPIDocument=t.isAsyncAPIDocument=t.toAsyncAPIDocument=t.createAsyncAPIDocument=void 0;const i=n(99711),r=n(21634),s=n(28227),o=n(8262);function a(e){switch(e.semver.major){case 2:return new i.AsyncAPIDocumentV2(e.parsed,{asyncapi:e,pointer:"/"});case 3:return new i.AsyncAPIDocumentV3(e.parsed,{asyncapi:e,pointer:"/"});default:throw new Error(`Unsupported AsyncAPI version: ${e.semver.version}`)}}function c(e){return!!e&&(e instanceof i.AsyncAPIDocumentV2||e instanceof i.AsyncAPIDocumentV3||!(!e||"function"!=typeof e.json)&&e.json()[o.xParserApiVersion]===i.ParserAPIVersion)}function p(e){return"object"==typeof e&&null!==e&&Boolean(e[o.xParserSpecParsed])}t.createAsyncAPIDocument=a,t.toAsyncAPIDocument=function(e){return c(e)?e:p(e)?a((0,s.createDetailedAsyncAPI)(e,e)):(0,r.unstringify)(e)},t.isAsyncAPIDocument=c,t.isOldAsyncAPIDocument=function(e){if(e&&"function"==typeof e.json){const t=e.json()[o.xParserApiVersion];return void 0===t||0===t}return!1},t.isParsedDocument=p,t.isStringifiedDocument=function(e){try{return"object"==typeof(e="string"==typeof e?JSON.parse(e):e)&&null!==e&&Boolean(e[o.xParserSpecParsed])&&Boolean(e[o.xParserSpecStringified])}catch(e){return!1}}},4613:(e,t)=>{"use strict";var n,i;function r(e,t,s){if(!e)return;const{schemaTypesToIterate:o,callback:a,seenSchemas:c}=s,p=e.json();if(c.has(p))return;c.add(p);let d=e.type()||[];Array.isArray(d)||(d=[d]),!o.includes(i.Objects)&&d.includes("object")||!o.includes(i.Arrays)&&d.includes("array")||!1!==a(e,t,n.NEW_SCHEMA)&&(o.includes(i.Objects)&&d.includes("object")&&function(e,t){Object.entries(e.properties()||{}).forEach((([e,n])=>{r(n,e,t)}));const n=e.additionalProperties();"object"==typeof n&&r(n,null,t);const s=t.schemaTypesToIterate;s.includes(i.PropertyNames)&&e.propertyNames()&&r(e.propertyNames(),null,t),s.includes(i.PatternProperties)&&Object.entries(e.patternProperties()||{}).forEach((([e,n])=>{r(n,e,t)}))}(e,s),o.includes(i.Arrays)&&d.includes("array")&&function(e,t){const n=e.items();n&&(Array.isArray(n)?n.forEach(((e,n)=>{r(e,n,t)})):r(n,null,t));const i=e.additionalItems();"object"==typeof i&&r(i,null,t),t.schemaTypesToIterate.includes("contains")&&e.contains()&&r(e.contains(),null,t)}(e,s),o.includes(i.OneOfs)&&(e.oneOf()||[]).forEach(((e,t)=>{r(e,t,s)})),o.includes(i.AnyOfs)&&(e.anyOf()||[]).forEach(((e,t)=>{r(e,t,s)})),o.includes(i.AllOfs)&&(e.allOf()||[]).forEach(((e,t)=>{r(e,t,s)})),o.includes(i.Nots)&&e.not()&&r(e.not(),null,s),o.includes(i.Ifs)&&e.if()&&r(e.if(),null,s),o.includes(i.Thenes)&&e.then()&&r(e.then(),null,s),o.includes(i.Elses)&&e.else()&&r(e.else(),null,s),o.includes(i.Dependencies)&&Object.entries(e.dependencies()||{}).forEach((([e,t])=>{t&&!Array.isArray(t)&&r(t,e,s)})),o.includes(i.Definitions)&&Object.entries(e.definitions()||{}).forEach((([e,t])=>{r(t,e,s)})),a(e,t,n.END_SCHEMA),c.delete(p))}function s(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(i.Headers)&&e.hasHeaders()&&r(e.headers(),null,t),n.includes(i.Payloads)&&e.hasPayload()&&r(e.payload(),null,t)}Object.defineProperty(t,"__esModule",{value:!0}),t.traverseAsyncApiDocument=t.SchemaTypesToIterate=t.SchemaIteratorCallbackType=void 0,function(e){e.NEW_SCHEMA="NEW_SCHEMA",e.END_SCHEMA="END_SCHEMA"}(n=t.SchemaIteratorCallbackType||(t.SchemaIteratorCallbackType={})),function(e){e.Parameters="parameters",e.Payloads="payloads",e.Headers="headers",e.Components="components",e.Objects="objects",e.Arrays="arrays",e.OneOfs="oneOfs",e.AllOfs="allOfs",e.AnyOfs="anyOfs",e.Nots="nots",e.PropertyNames="propertyNames",e.PatternProperties="patternProperties",e.Contains="contains",e.Ifs="ifs",e.Thenes="thenes",e.Elses="elses",e.Dependencies="dependencies",e.Definitions="definitions"}(i=t.SchemaTypesToIterate||(t.SchemaTypesToIterate={})),t.traverseAsyncApiDocument=function(e,t,n=[]){0===n.length&&(n=Object.values(i));const o={callback:t,schemaTypesToIterate:n,seenSchemas:new Set};if(e.channels().isEmpty()||e.channels().all().forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(i.Parameters)&&Object.values(e.parameters().filterBy((e=>e.hasSchema()))||{}).forEach((e=>{r(e.schema(),null,t)})),e.messages().all().forEach((e=>{s(e,t)}))}(e,o)})),n.includes(i.Components)&&!e.components().isEmpty()){const t=e.components();Object.values(t.messages().all()||{}).forEach((e=>{s(e,o)})),Object.values(t.schemas().all()||{}).forEach((e=>{r(e,null,o)})),n.includes(i.Parameters)&&Object.values(t.channelParameters().filterBy((e=>e.hasSchema()))).forEach((e=>{r(e.schema(),null,o)})),Object.values(t.messageTraits().all()||{}).forEach((e=>{!function(e,t){if(!e)return;const{schemaTypesToIterate:n}=t;n.includes(i.Headers)&&e.hasHeaders()&&r(e.headers(),null,t)}(e,o)}))}}},41029:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ParserAPIVersion=void 0,t.ParserAPIVersion=3},87506:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BaseModel=void 0,t.BaseModel=class{constructor(e,t={}){this._json=e,this._meta=t}json(e){return void 0===e||null===this._json||void 0===this._json?this._json:this._json[e]}meta(e){return void 0===e?this._meta:this._meta?this._meta[e]:void 0}jsonPath(e){return"string"!=typeof e?this._meta.pointer:`${this._meta.pointer}/${e}`}createModel(e,t,n){return new e(t,Object.assign(Object.assign({},n),{asyncapi:this._meta.asyncapi}))}}},19488:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},5205:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},99594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41318:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},44634:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},2504:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31247:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Collection=void 0,t.Collection=class extends Array{constructor(e,t={}){super(...e),this.collections=e,this._meta=t}has(e){return void 0!==this.get(e)}all(){return this.collections}isEmpty(){return 0===this.collections.length}filterBy(e){return this.collections.filter(e)}meta(e){return void 0===e?this._meta:this._meta?this._meta[String(e)]:void 0}}},39762:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},21078:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48139:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},46449:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},230:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},3272:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},51760:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},75773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalDocumentations=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.ExternalDocumentations=r},99711:function(e,t,n){"use strict";var i=this&&this.__createBinding||(Object.create?function(e,t,n,i){void 0===i&&(i=n);var r=Object.getOwnPropertyDescriptor(t,n);r&&!("get"in r?!t.__esModule:r.writable||r.configurable)||(r={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,i,r)}:function(e,t,n,i){void 0===i&&(i=n),e[i]=t[n]}),r=this&&this.__exportStar||function(e,t){for(var n in e)"default"===n||Object.prototype.hasOwnProperty.call(t,n)||i(t,e,n)};Object.defineProperty(t,"__esModule",{value:!0}),r(n(91776),t),r(n(11195),t),r(n(41029),t),r(n(87506),t),r(n(19488),t),r(n(5205),t),r(n(99594),t),r(n(41318),t),r(n(44634),t),r(n(2504),t),r(n(31247),t),r(n(39762),t),r(n(21078),t),r(n(48139),t),r(n(46449),t),r(n(230),t),r(n(3272),t),r(n(51760),t),r(n(67137),t),r(n(27990),t),r(n(17595),t),r(n(9532),t),r(n(1412),t),r(n(18593),t),r(n(15548),t),r(n(28875),t),r(n(48945),t),r(n(63221),t),r(n(22874),t),r(n(52959),t),r(n(77186),t),r(n(20919),t),r(n(78583),t),r(n(92469),t),r(n(67990),t),r(n(90964),t),r(n(7527),t),r(n(61746),t),r(n(77990),t),r(n(20262),t),r(n(85797),t),r(n(34241),t),r(n(98341),t),r(n(778),t),r(n(64780),t),r(n(24851),t),r(n(37020),t),r(n(31591),t)},67137:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},27990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},17595:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},9532:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},1412:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18593:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},15548:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},28875:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},48945:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},63221:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},22874:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},52959:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77186:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20919:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},78583:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},92469:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},67990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},90964:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},7527:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},61746:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},77990:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},20262:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},85797:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},34241:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},98341:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},778:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},64780:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},24851:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},37020:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},31591:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},33584:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.schemasFromDocument=t.createModel=void 0;const i=n(4613);t.createModel=function(e,t,n,i){return new e(t,Object.assign(Object.assign({},n),{asyncapi:n.asyncapi||(null==i?void 0:i.meta().asyncapi)}))},t.schemasFromDocument=function(e,t,n){const r=new Set,s=new Set;let o=Object.values(i.SchemaTypesToIterate);return n||(o=o.filter((e=>e!==i.SchemaTypesToIterate.Components))),(0,i.traverseAsyncApiDocument)(e,(function(e){r.has(e.json())||(r.add(e.json()),s.add(e))}),o),new t(Array.from(s))}},26325:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAPIDocument=void 0;const i=n(87506),r=n(84505),s=n(91548),o=n(14620),a=n(21688),c=n(88537),p=n(74262),d=n(80758),l=n(53890),f=n(52773),u=n(98643),m=n(9481),h=n(99237),y=n(28227),g=n(33584);class b extends i.BaseModel{version(){return this._json.asyncapi}defaultContentType(){return this._json.defaultContentType}hasDefaultContentType(){return!!this._json.defaultContentType}info(){return this.createModel(r.Info,this._json.info,{pointer:"/info"})}servers(){return new d.Servers(Object.entries(this._json.servers||{}).map((([e,t])=>this.createModel(l.Server,t,{id:e,pointer:`/servers/${e}`}))))}channels(){return new s.Channels(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(o.Channel,t,{id:e,address:e,pointer:`/channels/${(0,y.tilde)(e)}`}))))}operations(){const e=[];return this.channels().forEach((t=>e.push(...t.operations()))),new p.Operations(e)}messages(){const e=[];return this.operations().forEach((t=>t.messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))))),new c.Messages(e)}schemas(){return(0,g.schemasFromDocument)(this,m.Schemas,!1)}securitySchemes(){var e;return new f.SecuritySchemes(Object.entries((null===(e=this._json.components)||void 0===e?void 0:e.securitySchemes)||{}).map((([e,t])=>this.createModel(u.SecurityScheme,t,{id:e,pointer:`/components/securitySchemes/${e}`}))))}components(){return this.createModel(a.Components,this._json.components||{},{pointer:"/components"})}allServers(){const e=this.servers().all();return this.components().servers().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new d.Servers(e)}allChannels(){const e=this.channels().all();return this.components().channels().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new s.Channels(e)}allOperations(){const e=[];return this.allChannels().forEach((t=>e.push(...t.operations()))),new p.Operations(e)}allMessages(){const e=[];return this.allOperations().forEach((t=>t.messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))))),this.components().messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new c.Messages(e)}allSchemas(){return(0,g.schemasFromDocument)(this,m.Schemas,!0)}extensions(){return(0,h.extensions)(this)}}t.AsyncAPIDocument=b},580:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binding=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{protocol(){return this._meta.protocol}version(){return this._json.bindingVersion||"latest"}value(){const e=Object.assign({},this._json);return delete e.bindingVersion,e}extensions(){return(0,r.extensions)(this)}}t.Binding=s},9143:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bindings=void 0;const i=n(31247),r=n(23415),s=n(25777),o=n(33584),a=n(8262);class c extends i.Collection{get(e){return this.collections.find((t=>t.protocol()===e))}extensions(){const e=[];return Object.entries(this._meta.originalData||{}).forEach((([t,n])=>{a.EXTENSION_REGEX.test(t)&&e.push((0,o.createModel)(s.Extension,n,{id:t,pointer:`${this._meta.pointer}/${t}`,asyncapi:this._meta.asyncapi}))})),new r.Extensions(e)}}t.Bindings=c},87129:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameter=void 0;const i=n(87506),r=n(94020),s=n(99237);class o extends i.BaseModel{id(){return this._meta.id}hasSchema(){return!!this._json.schema}schema(){if(this._json.schema)return this.createModel(r.Schema,this._json.schema,{pointer:`${this._meta.pointer}/schema`})}hasLocation(){return!!this._json.location}location(){return this._json.location}hasDescription(){return(0,s.hasDescription)(this)}description(){return(0,s.description)(this)}extensions(){return(0,s.extensions)(this)}}t.ChannelParameter=o},65980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameters=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ChannelParameters=r},14620:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channel=void 0;const i=n(87506),r=n(65980),s=n(87129),o=n(88537),a=n(74262),c=n(7523),p=n(80758),d=n(53890),l=n(99237);class f extends i.BaseModel{id(){return this._meta.id}address(){return this._meta.address}hasDescription(){return(0,l.hasDescription)(this)}description(){return(0,l.description)(this)}servers(){var e;const t=[],n=this._json.servers||[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.servers)||{}).forEach((([e,i])=>{(0===n.length||n.includes(e))&&t.push(this.createModel(d.Server,i,{id:e,pointer:`/servers/${e}`}))})),new p.Servers(t)}operations(){const e=[];return["publish","subscribe"].forEach((t=>{const n=this._json[t],i=n&&n.operationId||t;n&&e.push(this.createModel(c.Operation,n,{id:i,action:t,pointer:`${this._meta.pointer}/${t}`}))})),new a.Operations(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new o.Messages(e)}parameters(){return new r.ChannelParameters(Object.entries(this._json.parameters||{}).map((([e,t])=>this.createModel(s.ChannelParameter,t,{id:e,pointer:`${this._meta.pointer}/parameters/${e}`}))))}bindings(){return(0,l.bindings)(this)}extensions(){return(0,l.extensions)(this)}}t.Channel=f},91548:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channels=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Channels=r},21688:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Components=void 0;const i=n(87506),r=n(9143),s=n(580),o=n(14620),a=n(87129),c=n(45219),p=n(44495),d=n(69588),l=n(94020),f=n(98643),u=n(53890),m=n(12162),h=n(99237),y=n(80758),g=n(91548),b=n(88537),v=n(9481),j=n(65980),$=n(45466),x=n(31334),_=n(60603),w=n(52773),S=n(61617),P=n(74262),O=n(18467),E=n(28227);class A extends i.BaseModel{servers(){return this.createCollection("servers",y.Servers,u.Server)}channels(){return new g.Channels(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(o.Channel,t,{id:e,address:"",pointer:`/components/channels/${(0,E.tilde)(e)}`}))))}operations(){return new P.Operations([])}messages(){return this.createCollection("messages",b.Messages,O.Message)}schemas(){return this.createCollection("schemas",v.Schemas,l.Schema)}channelParameters(){return this.createCollection("parameters",j.ChannelParameters,a.ChannelParameter)}serverVariables(){return this.createCollection("serverVariables",$.ServerVariables,m.ServerVariable)}operationTraits(){return this.createCollection("operationTraits",x.OperationTraits,d.OperationTrait)}messageTraits(){return this.createCollection("messageTraits",_.MessageTraits,p.MessageTrait)}correlationIds(){return this.createCollection("correlationIds",S.CorrelationIds,c.CorrelationId)}securitySchemes(){return this.createCollection("securitySchemes",w.SecuritySchemes,f.SecurityScheme)}serverBindings(){return this.createBindings("serverBindings")}channelBindings(){return this.createBindings("channelBindings")}operationBindings(){return this.createBindings("operationBindings")}messageBindings(){return this.createBindings("messageBindings")}extensions(){return(0,h.extensions)(this)}isEmpty(){return 0===Object.keys(this._json).length}createCollection(e,t,n){const i=[];return Object.entries(this._json[e]||{}).forEach((([t,r])=>{i.push(this.createModel(n,r,{id:t,pointer:`/components/${e}/${t}`}))})),new t(i)}createBindings(e){return Object.entries(this._json[e]||{}).reduce(((t,[n,i])=>{const o=i||{},a=this.meta("asyncapi"),c=`components/${e}/${n}`;return t[n]=new r.Bindings(Object.entries(o).map((([e,t])=>this.createModel(s.Binding,t,{protocol:e,pointer:`${c}/${e}`}))),{originalData:o,asyncapi:a,pointer:c}),t}),{})}}t.Components=A},90852:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contact=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}hasEmail(){return!!this._json.email}email(){return this._json.email}extensions(){return(0,r.extensions)(this)}}t.Contact=s},45219:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationId=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{location(){return this._json.location}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}}t.CorrelationId=s},61617:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationIds=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.CorrelationIds=r},25777:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=void 0;const i=n(87506);class r extends i.BaseModel{id(){return this._meta.id}value(){return this._json}}t.Extension=r},23415:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions=void 0;const i=n(31247);class r extends i.Collection{get(e){return e=e.startsWith("x-")?e:`x-${e}`,this.collections.find((t=>t.id()===e))}}t.Extensions=r},66241:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalDocumentation=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{url(){return this._json.url}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}}t.ExternalDocumentation=s},91776:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsV2=t.TagV2=t.ServersV2=t.ServerV2=t.ServerVariablesV2=t.ServerVariableV2=t.SecuritySchemesV2=t.SecuritySchemeV2=t.SchemasV2=t.SchemaV2=t.OperationsV2=t.OperationV2=t.OperationTraitsV2=t.OperationTraitV2=t.OAuthFlowsV2=t.OAuthFlowV2=t.MessagesV2=t.MessageV2=t.MessageTraitsV2=t.MessageTraitV2=t.MessageExamplesV2=t.MessageExampleV2=t.LicenseV2=t.InfoV2=t.ExternalDocumentationV2=t.ExtensionsV2=t.ExtensionV2=t.CorrelationIdV2=t.ContactV2=t.ComponentsV2=t.ChannelsV2=t.ChannelV2=t.ChannelParametersV2=t.ChannelParameterV2=t.BindingsV2=t.BindingV2=t.AsyncAPIDocumentV2=void 0;var i=n(26325);Object.defineProperty(t,"AsyncAPIDocumentV2",{enumerable:!0,get:function(){return i.AsyncAPIDocument}});var r=n(580);Object.defineProperty(t,"BindingV2",{enumerable:!0,get:function(){return r.Binding}});var s=n(9143);Object.defineProperty(t,"BindingsV2",{enumerable:!0,get:function(){return s.Bindings}});var o=n(87129);Object.defineProperty(t,"ChannelParameterV2",{enumerable:!0,get:function(){return o.ChannelParameter}});var a=n(65980);Object.defineProperty(t,"ChannelParametersV2",{enumerable:!0,get:function(){return a.ChannelParameters}});var c=n(14620);Object.defineProperty(t,"ChannelV2",{enumerable:!0,get:function(){return c.Channel}});var p=n(91548);Object.defineProperty(t,"ChannelsV2",{enumerable:!0,get:function(){return p.Channels}});var d=n(21688);Object.defineProperty(t,"ComponentsV2",{enumerable:!0,get:function(){return d.Components}});var l=n(90852);Object.defineProperty(t,"ContactV2",{enumerable:!0,get:function(){return l.Contact}});var f=n(45219);Object.defineProperty(t,"CorrelationIdV2",{enumerable:!0,get:function(){return f.CorrelationId}});var u=n(25777);Object.defineProperty(t,"ExtensionV2",{enumerable:!0,get:function(){return u.Extension}});var m=n(23415);Object.defineProperty(t,"ExtensionsV2",{enumerable:!0,get:function(){return m.Extensions}});var h=n(66241);Object.defineProperty(t,"ExternalDocumentationV2",{enumerable:!0,get:function(){return h.ExternalDocumentation}});var y=n(84505);Object.defineProperty(t,"InfoV2",{enumerable:!0,get:function(){return y.Info}});var g=n(60082);Object.defineProperty(t,"LicenseV2",{enumerable:!0,get:function(){return g.License}});var b=n(50765);Object.defineProperty(t,"MessageExampleV2",{enumerable:!0,get:function(){return b.MessageExample}});var v=n(95501);Object.defineProperty(t,"MessageExamplesV2",{enumerable:!0,get:function(){return v.MessageExamples}});var j=n(44495);Object.defineProperty(t,"MessageTraitV2",{enumerable:!0,get:function(){return j.MessageTrait}});var $=n(60603);Object.defineProperty(t,"MessageTraitsV2",{enumerable:!0,get:function(){return $.MessageTraits}});var x=n(18467);Object.defineProperty(t,"MessageV2",{enumerable:!0,get:function(){return x.Message}});var _=n(88537);Object.defineProperty(t,"MessagesV2",{enumerable:!0,get:function(){return _.Messages}});var w=n(63);Object.defineProperty(t,"OAuthFlowV2",{enumerable:!0,get:function(){return w.OAuthFlow}});var S=n(57310);Object.defineProperty(t,"OAuthFlowsV2",{enumerable:!0,get:function(){return S.OAuthFlows}});var P=n(69588);Object.defineProperty(t,"OperationTraitV2",{enumerable:!0,get:function(){return P.OperationTrait}});var O=n(31334);Object.defineProperty(t,"OperationTraitsV2",{enumerable:!0,get:function(){return O.OperationTraits}});var E=n(7523);Object.defineProperty(t,"OperationV2",{enumerable:!0,get:function(){return E.Operation}});var A=n(74262);Object.defineProperty(t,"OperationsV2",{enumerable:!0,get:function(){return A.Operations}});var T=n(94020);Object.defineProperty(t,"SchemaV2",{enumerable:!0,get:function(){return T.Schema}});var I=n(9481);Object.defineProperty(t,"SchemasV2",{enumerable:!0,get:function(){return I.Schemas}});var k=n(98643);Object.defineProperty(t,"SecuritySchemeV2",{enumerable:!0,get:function(){return k.SecurityScheme}});var M=n(52773);Object.defineProperty(t,"SecuritySchemesV2",{enumerable:!0,get:function(){return M.SecuritySchemes}});var R=n(12162);Object.defineProperty(t,"ServerVariableV2",{enumerable:!0,get:function(){return R.ServerVariable}});var q=n(45466);Object.defineProperty(t,"ServerVariablesV2",{enumerable:!0,get:function(){return q.ServerVariables}});var N=n(53890);Object.defineProperty(t,"ServerV2",{enumerable:!0,get:function(){return N.Server}});var C=n(80758);Object.defineProperty(t,"ServersV2",{enumerable:!0,get:function(){return C.Servers}});var D=n(3410);Object.defineProperty(t,"TagV2",{enumerable:!0,get:function(){return D.Tag}});var F=n(82385);Object.defineProperty(t,"TagsV2",{enumerable:!0,get:function(){return F.Tags}})},84505:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Info=void 0;const i=n(87506),r=n(90852),s=n(66241),o=n(60082),a=n(82385),c=n(3410),p=n(99237);class d extends i.BaseModel{title(){return this._json.title}version(){return this._json.version}hasId(){return!!this._meta.asyncapi.parsed.id}id(){return this._meta.asyncapi.parsed.id}hasDescription(){return(0,p.hasDescription)(this)}description(){return(0,p.description)(this)}hasTermsOfService(){return!!this._json.termsOfService}termsOfService(){return this._json.termsOfService}hasContact(){return Object.keys(this._json.contact||{}).length>0}contact(){const e=this._json.contact;return e&&this.createModel(r.Contact,e,{pointer:"/info/contact"})}hasLicense(){return Object.keys(this._json.license||{}).length>0}license(){const e=this._json.license;return e&&this.createModel(o.License,e,{pointer:"/info/license"})}hasExternalDocs(){const e=this._meta.asyncapi.parsed;return Object.keys(e.externalDocs||{}).length>0}externalDocs(){if(this.hasExternalDocs()){const e=this._meta.asyncapi.parsed;return this.createModel(s.ExternalDocumentation,e.externalDocs,{pointer:"/externalDocs"})}}tags(){const e=this._meta.asyncapi.parsed.tags||[];return new a.Tags(e.map(((e,t)=>this.createModel(c.Tag,e,{pointer:`/tags/${t}`}))))}extensions(){return(0,p.extensions)(this)}}t.Info=d},60082:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.License=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}extensions(){return(0,r.extensions)(this)}}t.License=s},50765:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExample=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasHeaders(){return!!this._json.headers}headers(){return this._json.headers}hasPayload(){return!!this._json.payload}payload(){return this._json.payload}extensions(){return(0,r.extensions)(this)}}t.MessageExample=s},95501:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExamples=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.MessageExamples=r},44495:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTrait=void 0;const i=n(87506),r=n(45219),s=n(95501),o=n(50765),a=n(94020),c=n(8262),p=n(99237),d=n(87401);class l extends i.BaseModel{id(){return this._json.messageId||this._meta.id||this.json(c.xParserMessageName)}hasSchemaFormat(){return void 0!==this.schemaFormat()}schemaFormat(){return this._json.schemaFormat||(0,d.getDefaultSchemaFormat)(this._meta.asyncapi.semver.version)}hasMessageId(){return!!this._json.messageId}hasCorrelationId(){return!!this._json.correlationId}correlationId(){if(this._json.correlationId)return this.createModel(r.CorrelationId,this._json.correlationId,{pointer:`${this._meta.pointer}/correlationId`})}hasContentType(){return!!this._json.contentType}contentType(){var e;return this._json.contentType||(null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.defaultContentType)}hasHeaders(){return!!this._json.headers}headers(){if(this._json.headers)return this.createModel(a.Schema,this._json.headers,{pointer:`${this._meta.pointer}/headers`})}hasName(){return!!this._json.name}name(){return this._json.name}hasTitle(){return!!this._json.title}title(){return this._json.title}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return(0,p.hasDescription)(this)}description(){return(0,p.description)(this)}hasExternalDocs(){return(0,p.hasExternalDocs)(this)}externalDocs(){return(0,p.externalDocs)(this)}examples(){return new s.MessageExamples((this._json.examples||[]).map(((e,t)=>this.createModel(o.MessageExample,e,{pointer:`${this._meta.pointer}/examples/${t}`}))))}tags(){return(0,p.tags)(this)}bindings(){return(0,p.bindings)(this)}extensions(){return(0,p.extensions)(this)}}t.MessageTrait=l},60603:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTraits=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.MessageTraits=r},18467:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;const i=n(91548),r=n(74262),s=n(7523),o=n(60603),a=n(44495),c=n(80758),p=n(94020),d=n(28227);class l extends a.MessageTrait{hasPayload(){return!!this._json.payload}payload(){if(this._json.payload)return this.createModel(p.Schema,this._json.payload,{pointer:`${this._meta.pointer}/payload`,schemaFormat:this._json.schemaFormat})}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{t.includes(n.json())||(t.push(n.json()),e.push(n))}))})),new c.Servers(e)}channels(){const e=[],t=[];return this.operations().all().forEach((n=>{n.channels().forEach((n=>{t.includes(n.json())||(t.push(n.json()),e.push(n))}))})),new i.Channels(e)}operations(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,n])=>{["subscribe","publish"].forEach((i=>{const r=n[i];r&&(r.message===this._json||(r.message.oneOf||[]).includes(this._json))&&t.push(this.createModel(s.Operation,r,{id:"",pointer:`/channels/${(0,d.tilde)(e)}/${i}`,action:i}))}))})),new r.Operations(t)}traits(){return new o.MessageTraits((this._json.traits||[]).map(((e,t)=>this.createModel(a.MessageTrait,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`}))))}}t.Message=l},88537:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Messages=r},99237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.externalDocs=t.hasExternalDocs=t.extensions=t.description=t.hasDescription=t.bindings=void 0;const i=n(9143),r=n(580),s=n(23415),o=n(25777),a=n(66241),c=n(82385),p=n(3410),d=n(33584),l=n(8262);function f(e){return e.json("description")}function u(e){return Object.keys(e.json("externalDocs")||{}).length>0}t.bindings=function(e){const t=e.json("bindings")||{};return new i.Bindings(Object.entries(t||{}).map((([t,n])=>(0,d.createModel)(r.Binding,n,{protocol:t,pointer:e.jsonPath(`bindings/${t}`)},e))),{originalData:t,asyncapi:e.meta("asyncapi"),pointer:e.jsonPath("bindings")})},t.hasDescription=function(e){return Boolean(f(e))},t.description=f,t.extensions=function(e){const t=[];return Object.entries(e.json()).forEach((([n,i])=>{l.EXTENSION_REGEX.test(n)&&t.push((0,d.createModel)(o.Extension,i,{id:n,pointer:e.jsonPath(n)},e))})),new s.Extensions(t)},t.hasExternalDocs=u,t.externalDocs=function(e){if(u(e))return new a.ExternalDocumentation(e.json("externalDocs"))},t.tags=function(e){return new c.Tags((e.json("tags")||[]).map(((t,n)=>(0,d.createModel)(p.Tag,t,{pointer:e.jsonPath(`tags/${n}`)},e))))}},63:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlow=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{hasAuthorizationUrl(){return!!this.json().authorizationUrl}authorizationUrl(){return this.json().authorizationUrl}hasTokenUrl(){return!!this.json().tokenUrl}tokenUrl(){return this.json().tokenUrl}hasRefreshUrl(){return!!this._json.refreshUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.scopes}extensions(){return(0,r.extensions)(this)}}t.OAuthFlow=s},57310:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlows=void 0;const i=n(87506),r=n(63),s=n(99237);class o extends i.BaseModel{hasAuthorizationCode(){return!!this._json.authorizationCode}authorizationCode(){if(this._json.authorizationCode)return new r.OAuthFlow(this._json.authorizationCode)}hasClientCredentials(){return!!this._json.clientCredentials}clientCredentials(){if(this._json.clientCredentials)return new r.OAuthFlow(this._json.clientCredentials)}hasImplicit(){return!!this._json.implicit}implicit(){if(this._json.implicit)return new r.OAuthFlow(this._json.implicit)}hasPassword(){return!!this._json.password}password(){if(this._json.password)return new r.OAuthFlow(this._json.password)}extensions(){return(0,s.extensions)(this)}}t.OAuthFlows=o},69588:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTrait=void 0;const i=n(87506),r=n(98643),s=n(41649),o=n(60655),a=n(99237);class c extends i.BaseModel{id(){return this.operationId()||this._meta.id}hasOperationId(){return!!this._json.operationId}operationId(){return this._json.operationId}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return(0,a.hasDescription)(this)}description(){return(0,a.description)(this)}hasExternalDocs(){return(0,a.hasExternalDocs)(this)}externalDocs(){return(0,a.externalDocs)(this)}security(){var e,t,n,i;const a=(null===(i=null===(n=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===n?void 0:n.components)||void 0===i?void 0:i.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const n=[];return Object.entries(e).forEach((([e,i])=>{const s=this.createModel(r.SecurityScheme,a[e],{id:e,pointer:`/components/securitySchemes/${e}`});n.push(this.createModel(o.SecurityRequirement,{scheme:s,scopes:i},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new s.SecurityRequirements(n)}))}tags(){return(0,a.tags)(this)}bindings(){return(0,a.bindings)(this)}extensions(){return(0,a.extensions)(this)}}t.OperationTrait=c},31334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTraits=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationTraits=r},7523:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation=void 0;const i=n(91548),r=n(14620),s=n(88537),o=n(18467),a=n(31334),c=n(69588),p=n(80758),d=n(28227);class l extends c.OperationTrait{action(){return this._meta.action}isSend(){return"subscribe"===this.action()}isReceive(){return"publish"===this.action()}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{t.includes(n.json())||(t.push(n.json()),e.push(n))}))})),new p.Servers(e)}channels(){const e=[];return Object.entries(this._meta.asyncapi.parsed.channels||{}).forEach((([t,n])=>{n.subscribe!==this._json&&n.publish!==this._json||e.push(this.createModel(r.Channel,n,{id:t,address:t,pointer:`/channels/${(0,d.tilde)(t)}`}))})),new i.Channels(e)}messages(){let e=!1,t=[];return this._json.message&&(Array.isArray(this._json.message.oneOf)?(t=this._json.message.oneOf,e=!0):t=[this._json.message]),new s.Messages(t.map(((t,n)=>this.createModel(o.Message,t,{id:"",pointer:`${this._meta.pointer}/message${e?`/oneOf/${n}`:""}`}))))}reply(){}traits(){return new a.OperationTraits((this._json.traits||[]).map(((e,t)=>this.createModel(c.OperationTrait,e,{id:"",pointer:`${this._meta.pointer}/traits/${t}`,action:""}))))}}t.Operation=l},74262:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operations=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.isSend()))}filterByReceive(){return this.filterBy((e=>e.isReceive()))}}t.Operations=r},94020:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schema=void 0;const i=n(87506),r=n(8262),s=n(99237),o=n(87401);class a extends i.BaseModel{id(){return this.$id()||this._meta.id||this.json(r.xParserSchemaId)}$comment(){if("boolean"!=typeof this._json)return this._json.$comment}$id(){if("boolean"!=typeof this._json)return this._json.$id}$schema(){return"boolean"==typeof this._json?"http://json-schema.org/draft-07/schema#":this._json.$schema||"http://json-schema.org/draft-07/schema#"}additionalItems(){return"boolean"==typeof this._json?this._json:"boolean"==typeof this._json.additionalItems?this._json.additionalItems:void 0===this._json.additionalItems||null!==this._json.additionalItems&&this.createModel(a,this._json.additionalItems,{pointer:`${this._meta.pointer}/additionalItems`,parent:this})}additionalProperties(){return"boolean"==typeof this._json?this._json:"boolean"==typeof this._json.additionalProperties?this._json.additionalProperties:void 0===this._json.additionalProperties||null!==this._json.additionalProperties&&this.createModel(a,this._json.additionalProperties,{pointer:`${this._meta.pointer}/additionalProperties`,parent:this})}allOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.allOf))return this._json.allOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/allOf/${t}`,parent:this})))}anyOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.anyOf))return this._json.anyOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/anyOf/${t}`,parent:this})))}const(){if("boolean"!=typeof this._json)return this._json.const}contains(){if("boolean"!=typeof this._json&&"object"==typeof this._json.contains)return this.createModel(a,this._json.contains,{pointer:`${this._meta.pointer}/contains`,parent:this})}contentEncoding(){if("boolean"!=typeof this._json)return this._json.contentEncoding}contentMediaType(){if("boolean"!=typeof this._json)return this._json.contentMediaType}default(){if("boolean"!=typeof this._json)return this._json.default}definitions(){if("boolean"!=typeof this._json&&"object"==typeof this._json.definitions)return Object.entries(this._json.definitions).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/definitions/${t}`,parent:this}),e)),{})}description(){if("boolean"!=typeof this._json)return this._json.description}dependencies(){if("boolean"!=typeof this._json&&"object"==typeof this._json.dependencies)return Object.entries(this._json.dependencies).reduce(((e,[t,n])=>(e[t]=Array.isArray(n)?n:this.createModel(a,n,{pointer:`${this._meta.pointer}/dependencies/${t}`,parent:this}),e)),{})}deprecated(){return"boolean"!=typeof this._json&&(this._json.deprecated||!1)}discriminator(){if("boolean"!=typeof this._json)return this._json.discriminator}else(){if("boolean"!=typeof this._json&&"object"==typeof this._json.else)return this.createModel(a,this._json.else,{pointer:`${this._meta.pointer}/else`,parent:this})}enum(){if("boolean"!=typeof this._json)return this._json.enum}examples(){if("boolean"!=typeof this._json)return this._json.examples}exclusiveMaximum(){if("boolean"!=typeof this._json)return this._json.exclusiveMaximum}exclusiveMinimum(){if("boolean"!=typeof this._json)return this._json.exclusiveMinimum}format(){if("boolean"!=typeof this._json)return this._json.format}isBooleanSchema(){return"boolean"==typeof this._json}if(){if("boolean"!=typeof this._json&&"object"==typeof this._json.if)return this.createModel(a,this._json.if,{pointer:`${this._meta.pointer}/if`,parent:this})}isCircular(){let e=this._meta.parent;for(;e;){if(e._json===this._json)return!0;e=e._meta.parent}return!1}items(){if("boolean"!=typeof this._json&&"object"==typeof this._json.items)return Array.isArray(this._json.items)?this._json.items.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/items/${t}`,parent:this}))):this.createModel(a,this._json.items,{pointer:`${this._meta.pointer}/items`,parent:this})}maximum(){if("boolean"!=typeof this._json)return this._json.maximum}maxItems(){if("boolean"!=typeof this._json)return this._json.maxItems}maxLength(){if("boolean"!=typeof this._json)return this._json.maxLength}maxProperties(){if("boolean"!=typeof this._json)return this._json.maxProperties}minimum(){if("boolean"!=typeof this._json)return this._json.minimum}minItems(){if("boolean"!=typeof this._json)return this._json.minItems}minLength(){if("boolean"!=typeof this._json)return this._json.minLength}minProperties(){if("boolean"!=typeof this._json)return this._json.minProperties}multipleOf(){if("boolean"!=typeof this._json)return this._json.multipleOf}not(){if("boolean"!=typeof this._json&&"object"==typeof this._json.not)return this.createModel(a,this._json.not,{pointer:`${this._meta.pointer}/not`,parent:this})}oneOf(){if("boolean"!=typeof this._json&&Array.isArray(this._json.oneOf))return this._json.oneOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/oneOf/${t}`,parent:this})))}pattern(){if("boolean"!=typeof this._json)return this._json.pattern}patternProperties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.patternProperties)return Object.entries(this._json.patternProperties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/patternProperties/${t}`,parent:this}),e)),{})}properties(){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties)return Object.entries(this._json.properties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/properties/${t}`,parent:this}),e)),{})}property(e){if("boolean"!=typeof this._json&&"object"==typeof this._json.properties&&"object"==typeof this._json.properties[e])return this.createModel(a,this._json.properties[e],{pointer:`${this._meta.pointer}/properties/${e}`,parent:this})}propertyNames(){if("boolean"!=typeof this._json&&"object"==typeof this._json.propertyNames)return this.createModel(a,this._json.propertyNames,{pointer:`${this._meta.pointer}/propertyNames`,parent:this})}readOnly(){return"boolean"!=typeof this._json&&(this._json.readOnly||!1)}required(){if("boolean"!=typeof this._json)return this._json.required}schemaFormat(){return this._meta.schemaFormat||(0,o.getDefaultSchemaFormat)(this._meta.asyncapi.semver.version)}then(){if("boolean"!=typeof this._json&&"object"==typeof this._json.then)return this.createModel(a,this._json.then,{pointer:`${this._meta.pointer}/then`,parent:this})}title(){if("boolean"!=typeof this._json)return this._json.title}type(){if("boolean"!=typeof this._json)return this._json.type}uniqueItems(){return"boolean"!=typeof this._json&&(this._json.uniqueItems||!1)}writeOnly(){return"boolean"!=typeof this._json&&(this._json.writeOnly||!1)}hasExternalDocs(){return(0,s.hasExternalDocs)(this)}externalDocs(){return(0,s.externalDocs)(this)}extensions(){return(0,s.extensions)(this)}}t.Schema=a},9481:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schemas=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.Schemas=r},60655:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirement=void 0;const i=n(87506);class r extends i.BaseModel{scheme(){return this._json.scheme}scopes(){return this._json.scopes||[]}}t.SecurityRequirement=r},41649:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirements=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.SecurityRequirements=r},98643:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityScheme=void 0;const i=n(87506),r=n(57310),s=n(99237);class o extends i.BaseModel{id(){return this._meta.id}type(){return this._json.type}hasDescription(){return(0,s.hasDescription)(this)}description(){return(0,s.description)(this)}hasName(){return!!this._json.name}name(){return this._json.name}hasIn(){return!!this._json.in}in(){return this._json.in}hasScheme(){return!!this._json.scheme}scheme(){return this._json.scheme}hasBearerFormat(){return!!this._json.bearerFormat}bearerFormat(){return this._json.bearerFormat}hasFlows(){return!!this._json.flows}flows(){if(this._json.flows)return new r.OAuthFlows(this._json.flows)}hasOpenIdConnectUrl(){return!!this._json.openIdConnectUrl}openIdConnectUrl(){return this._json.openIdConnectUrl}extensions(){return(0,s.extensions)(this)}}t.SecurityScheme=o},52773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecuritySchemes=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.SecuritySchemes=r},12162:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariable=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{id(){return this._meta.id}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}hasDefaultValue(){return!!this._json.default}defaultValue(){return this._json.default}hasAllowedValues(){return!!this._json.enum}allowedValues(){return this._json.enum||[]}examples(){return this._json.examples||[]}extensions(){return(0,r.extensions)(this)}}t.ServerVariable=s},45466:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariables=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ServerVariables=r},53890:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const i=n(87506),r=n(91548),s=n(14620),o=n(88537),a=n(74262),c=n(98643),p=n(45466),d=n(12162),l=n(41649),f=n(60655),u=n(99237),m=n(28227);class h extends i.BaseModel{id(){return this._meta.id}url(){return this._json.url}host(){return new URL(this.url()).host}hasPathname(){return!!this.pathname()}pathname(){return new URL(this.url()).pathname}protocol(){return this._json.protocol}hasProtocolVersion(){return!!this._json.protocolVersion}protocolVersion(){return this._json.protocolVersion}hasDescription(){return(0,u.hasDescription)(this)}description(){return(0,u.description)(this)}channels(){var e;const t=[];return Object.entries((null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed.channels)||{}).forEach((([e,n])=>{const i=n.servers||[];(0===i.length||i.includes(this._meta.id))&&t.push(this.createModel(s.Channel,n,{id:e,address:e,pointer:`/channels/${(0,m.tilde)(e)}`}))})),new r.Channels(t)}operations(){const e=[];return this.channels().forEach((t=>{e.push(...t.operations().all())})),new a.Operations(e)}messages(){const e=[];return this.operations().forEach((t=>e.push(...t.messages().all()))),new o.Messages(e)}variables(){return new p.ServerVariables(Object.entries(this._json.variables||{}).map((([e,t])=>this.createModel(d.ServerVariable,t,{id:e,pointer:`${this._meta.pointer}/variables/${e}`}))))}security(){var e,t,n,i;const r=(null===(i=null===(n=null===(t=null===(e=this._meta)||void 0===e?void 0:e.asyncapi)||void 0===t?void 0:t.parsed)||void 0===n?void 0:n.components)||void 0===i?void 0:i.securitySchemes)||{};return(this._json.security||[]).map(((e,t)=>{const n=[];return Object.entries(e).forEach((([e,i])=>{const s=this.createModel(c.SecurityScheme,r[e],{id:e,pointer:`/components/securitySchemes/${e}`});n.push(this.createModel(f.SecurityRequirement,{scheme:s,scopes:i},{id:e,pointer:`${this.meta().pointer}/security/${t}/${e}`}))})),new l.SecurityRequirements(n)}))}tags(){return(0,u.tags)(this)}bindings(){return(0,u.bindings)(this)}extensions(){return(0,u.extensions)(this)}}t.Server=h},80758:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Servers=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Servers=r},3410:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const i=n(87506),r=n(99237);class s extends i.BaseModel{name(){return this._json.name}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}hasExternalDocs(){return(0,r.hasExternalDocs)(this)}externalDocs(){return(0,r.externalDocs)(this)}}t.Tag=s},82385:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tags=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.Tags=r},36237:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AsyncAPIDocument=void 0;const i=n(87506),r=n(88239),s=n(12115),o=n(39071),a=n(69053),c=n(29304),p=n(52953),d=n(63150),l=n(65740),f=n(32136),u=n(3616),m=n(73741),h=n(39294),y=n(29690),g=n(28227),b=n(33584);class v extends i.BaseModel{version(){return this._json.asyncapi}defaultContentType(){return this._json.defaultContentType}hasDefaultContentType(){return!!this._json.defaultContentType}info(){return this.createModel(r.Info,this._json.info,{pointer:"/info"})}servers(){return new s.Servers(Object.entries(this._json.servers||{}).map((([e,t])=>this.createModel(o.Server,t,{id:e,pointer:`/servers/${(0,g.tilde)(e)}`}))))}channels(){return new a.Channels(Object.entries(this._json.channels||{}).map((([e,t])=>this.createModel(c.Channel,t,{id:e,pointer:`/channels/${(0,g.tilde)(e)}`}))))}operations(){return new p.Operations(Object.entries(this._json.operations||{}).map((([e,t])=>this.createModel(d.Operation,t,{id:e,pointer:`/operations/${(0,g.tilde)(e)}`}))))}messages(){const e=[],t=[];return this.channels().forEach((n=>{n.messages().forEach((n=>{const i=n.json();t.includes(i)||(t.push(i),e.push(n))}))})),new l.Messages(e)}schemas(){return(0,b.schemasFromDocument)(this,h.Schemas,!1)}securitySchemes(){var e;return new f.SecuritySchemes(Object.entries((null===(e=this._json.components)||void 0===e?void 0:e.securitySchemes)||{}).map((([e,t])=>this.createModel(u.SecurityScheme,t,{id:e,pointer:`/components/securitySchemes/${e}`}))))}components(){return this.createModel(m.Components,this._json.components||{},{pointer:"/components"})}allServers(){const e=this.servers().all();return this.components().servers().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new s.Servers(e)}allChannels(){const e=this.channels().all();return this.components().channels().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new a.Channels(e)}allOperations(){const e=this.operations().all();return this.components().operations().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new p.Operations(e)}allMessages(){const e=this.messages().all();return this.components().messages().forEach((t=>!e.some((e=>e.json()===t.json()))&&e.push(t))),new l.Messages(e)}allSchemas(){return(0,b.schemasFromDocument)(this,h.Schemas,!0)}extensions(){return(0,y.extensions)(this)}}t.AsyncAPIDocument=v},19286:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Binding=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{protocol(){return this._meta.protocol}version(){return this._json.bindingVersion||"latest"}value(){const e=Object.assign({},this._json);return delete e.bindingVersion,e}extensions(){return(0,r.extensions)(this)}}t.Binding=s},52252:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Bindings=void 0;const i=n(31247),r=n(72343),s=n(87431),o=n(33584),a=n(8262);class c extends i.Collection{get(e){return this.collections.find((t=>t.protocol()===e))}extensions(){const e=[];return Object.entries(this._meta.originalData||{}).forEach((([t,n])=>{a.EXTENSION_REGEX.test(t)&&e.push((0,o.createModel)(s.Extension,n,{id:t,pointer:`${this._meta.pointer}/${t}`,asyncapi:this._meta.asyncapi}))})),new r.Extensions(e)}}t.Bindings=c},45291:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameter=void 0;const i=n(87506),r=n(29690),s=n(75536);class o extends i.BaseModel{id(){return this._meta.id}hasSchema(){return!0}schema(){return this.createModel(s.Schema,{type:"string",description:this._json.description,enum:this._json.enum,default:this._json.default,examples:this._json.examples},{pointer:`${this._meta.pointer}`})}hasLocation(){return!!this._json.location}location(){return this._json.location}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}}t.ChannelParameter=o},39714:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ChannelParameters=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ChannelParameters=r},29304:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channel=void 0;const i=n(39714),r=n(45291),s=n(65740),o=n(50239),a=n(52953),c=n(63150),p=n(12115),d=n(39071),l=n(8262),f=n(29690);class u extends f.CoreModel{id(){return this._meta.id}address(){return this._json.address}servers(){var e,t,n;const i=[],r=null!==(e=this._json.servers)&&void 0!==e?e:[];return Object.entries(null!==(n=null===(t=this._meta.asyncapi)||void 0===t?void 0:t.parsed.servers)&&void 0!==n?n:{}).forEach((([e,t])=>{(0===r.length||r.includes(t))&&i.push(this.createModel(d.Server,t,{id:e,pointer:`/servers/${e}`}))})),new p.Servers(i)}operations(){var e,t,n;const i=[];return Object.entries(null!==(n=null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.operations)&&void 0!==n?n:{}).forEach((([e,t])=>{t.channel[l.xParserObjectUniqueId]===this._json[l.xParserObjectUniqueId]&&i.push(this.createModel(c.Operation,t,{id:e,pointer:`/operations/${e}`}))})),new a.Operations(i)}messages(){var e;return new s.Messages(Object.entries(null!==(e=this._json.messages)&&void 0!==e?e:{}).map((([e,t])=>this.createModel(o.Message,t,{id:e,pointer:this.jsonPath(`messages/${e}`)}))))}parameters(){var e;return new i.ChannelParameters(Object.entries(null!==(e=this._json.parameters)&&void 0!==e?e:{}).map((([e,t])=>this.createModel(r.ChannelParameter,t,{id:e,pointer:this.jsonPath(`parameters/${e}`)}))))}}t.Channel=u},69053:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Channels=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Channels=r},73741:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Components=void 0;const i=n(87506),r=n(52252),s=n(19286),o=n(29304),a=n(45291),c=n(54178),p=n(96354),d=n(68612),l=n(29282),f=n(9166),u=n(75536),m=n(3616),h=n(39071),y=n(97486),g=n(29690),b=n(12115),v=n(69053),j=n(65740),$=n(39294),x=n(39714),_=n(9230),w=n(96499),S=n(80409),P=n(54148),O=n(92682),E=n(32136),A=n(4160),T=n(52953),I=n(63150),k=n(50239),M=n(75773),R=n(73405),q=n(8664),N=n(11650),C=n(28227);class D extends i.BaseModel{servers(){return this.createCollection("servers",b.Servers,h.Server)}channels(){return this.createCollection("channels",v.Channels,o.Channel)}operations(){return this.createCollection("operations",T.Operations,I.Operation)}messages(){return this.createCollection("messages",j.Messages,k.Message)}schemas(){return this.createCollection("schemas",$.Schemas,u.Schema)}channelParameters(){return this.createCollection("parameters",x.ChannelParameters,a.ChannelParameter)}serverVariables(){return this.createCollection("serverVariables",_.ServerVariables,y.ServerVariable)}operationTraits(){return this.createCollection("operationTraits",w.OperationTraits,d.OperationTrait)}messageTraits(){return this.createCollection("messageTraits",S.MessageTraits,p.MessageTrait)}replies(){return this.createCollection("replies",P.OperationReplies,l.OperationReply)}replyAddresses(){return this.createCollection("replyAddresses",O.OperationReplyAddresses,f.OperationReplyAddress)}correlationIds(){return this.createCollection("correlationIds",A.CorrelationIds,c.CorrelationId)}securitySchemes(){return this.createCollection("securitySchemes",E.SecuritySchemes,m.SecurityScheme)}tags(){return this.createCollection("tags",q.Tags,N.Tag)}externalDocs(){return this.createCollection("externalDocs",M.ExternalDocumentations,R.ExternalDocumentation)}serverBindings(){return this.createBindings("serverBindings")}channelBindings(){return this.createBindings("channelBindings")}operationBindings(){return this.createBindings("operationBindings")}messageBindings(){return this.createBindings("messageBindings")}extensions(){return(0,g.extensions)(this)}isEmpty(){return 0===Object.keys(this._json).length}createCollection(e,t,n){const i=[];return Object.entries(this._json[e]||{}).forEach((([t,r])=>{i.push(this.createModel(n,r,{id:t,pointer:`/components/${e}/${(0,C.tilde)(t)}`}))})),new t(i)}createBindings(e){return Object.entries(this._json[e]||{}).reduce(((t,[n,i])=>{const o=i||{},a=this.meta("asyncapi"),c=`components/${e}/${n}`;return t[n]=new r.Bindings(Object.entries(o).map((([e,t])=>this.createModel(s.Binding,t,{protocol:e,pointer:`${c}/${e}`}))),{originalData:o,asyncapi:a,pointer:c}),t}),{})}}t.Components=D},83895:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Contact=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}hasEmail(){return!!this._json.email}email(){return this._json.email}extensions(){return(0,r.extensions)(this)}}t.Contact=s},54178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationId=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}hasLocation(){return!!this._json.location}location(){return this._json.location}extensions(){return(0,r.extensions)(this)}}t.CorrelationId=s},4160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CorrelationIds=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.CorrelationIds=r},87431:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extension=void 0;const i=n(87506);class r extends i.BaseModel{id(){return this._meta.id}version(){return"to implement"}value(){return this._json}}t.Extension=r},72343:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Extensions=void 0;const i=n(31247);class r extends i.Collection{get(e){return e=e.startsWith("x-")?e:`x-${e}`,this.collections.find((t=>t.id()===e))}}t.Extensions=r},73405:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExternalDocumentation=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{id(){return this._meta.id}url(){return this._json.url}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}}t.ExternalDocumentation=s},11195:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.TagsV3=t.TagV3=t.ServersV3=t.ServerV3=t.ServerVariablesV3=t.ServerVariableV3=t.SecuritySchemesV3=t.SecuritySchemeV3=t.SchemasV3=t.SchemaV3=t.OperationsV3=t.OperationV3=t.OperationReplyV3=t.OperationReplyAddressesV3=t.OperationReplyAddressV3=t.OperationRepliesV3=t.OperationTraitsV3=t.OperationTraitV3=t.OAuthFlowsV3=t.OAuthFlowV3=t.MessagesV3=t.MessageV3=t.MessageTraitsV3=t.MessageTraitV3=t.MessageExamplesV3=t.MessageExampleV3=t.LicenseV3=t.InfoV3=t.ExternalDocumentationV3=t.ExtensionsV3=t.ExtensionV3=t.CorrelationIdV3=t.ContactV3=t.ComponentsV3=t.ChannelsV3=t.ChannelV3=t.ChannelParametersV3=t.ChannelParameterV3=t.BindingsV3=t.BindingV3=t.AsyncAPIDocumentV3=void 0;var i=n(36237);Object.defineProperty(t,"AsyncAPIDocumentV3",{enumerable:!0,get:function(){return i.AsyncAPIDocument}});var r=n(19286);Object.defineProperty(t,"BindingV3",{enumerable:!0,get:function(){return r.Binding}});var s=n(52252);Object.defineProperty(t,"BindingsV3",{enumerable:!0,get:function(){return s.Bindings}});var o=n(45291);Object.defineProperty(t,"ChannelParameterV3",{enumerable:!0,get:function(){return o.ChannelParameter}});var a=n(39714);Object.defineProperty(t,"ChannelParametersV3",{enumerable:!0,get:function(){return a.ChannelParameters}});var c=n(29304);Object.defineProperty(t,"ChannelV3",{enumerable:!0,get:function(){return c.Channel}});var p=n(69053);Object.defineProperty(t,"ChannelsV3",{enumerable:!0,get:function(){return p.Channels}});var d=n(73741);Object.defineProperty(t,"ComponentsV3",{enumerable:!0,get:function(){return d.Components}});var l=n(83895);Object.defineProperty(t,"ContactV3",{enumerable:!0,get:function(){return l.Contact}});var f=n(54178);Object.defineProperty(t,"CorrelationIdV3",{enumerable:!0,get:function(){return f.CorrelationId}});var u=n(87431);Object.defineProperty(t,"ExtensionV3",{enumerable:!0,get:function(){return u.Extension}});var m=n(72343);Object.defineProperty(t,"ExtensionsV3",{enumerable:!0,get:function(){return m.Extensions}});var h=n(73405);Object.defineProperty(t,"ExternalDocumentationV3",{enumerable:!0,get:function(){return h.ExternalDocumentation}});var y=n(88239);Object.defineProperty(t,"InfoV3",{enumerable:!0,get:function(){return y.Info}});var g=n(86992);Object.defineProperty(t,"LicenseV3",{enumerable:!0,get:function(){return g.License}});var b=n(56978);Object.defineProperty(t,"MessageExampleV3",{enumerable:!0,get:function(){return b.MessageExample}});var v=n(89550);Object.defineProperty(t,"MessageExamplesV3",{enumerable:!0,get:function(){return v.MessageExamples}});var j=n(96354);Object.defineProperty(t,"MessageTraitV3",{enumerable:!0,get:function(){return j.MessageTrait}});var $=n(80409);Object.defineProperty(t,"MessageTraitsV3",{enumerable:!0,get:function(){return $.MessageTraits}});var x=n(50239);Object.defineProperty(t,"MessageV3",{enumerable:!0,get:function(){return x.Message}});var _=n(65740);Object.defineProperty(t,"MessagesV3",{enumerable:!0,get:function(){return _.Messages}});var w=n(84472);Object.defineProperty(t,"OAuthFlowV3",{enumerable:!0,get:function(){return w.OAuthFlow}});var S=n(61599);Object.defineProperty(t,"OAuthFlowsV3",{enumerable:!0,get:function(){return S.OAuthFlows}});var P=n(68612);Object.defineProperty(t,"OperationTraitV3",{enumerable:!0,get:function(){return P.OperationTrait}});var O=n(96499);Object.defineProperty(t,"OperationTraitsV3",{enumerable:!0,get:function(){return O.OperationTraits}});var E=n(54148);Object.defineProperty(t,"OperationRepliesV3",{enumerable:!0,get:function(){return E.OperationReplies}});var A=n(9166);Object.defineProperty(t,"OperationReplyAddressV3",{enumerable:!0,get:function(){return A.OperationReplyAddress}});var T=n(92682);Object.defineProperty(t,"OperationReplyAddressesV3",{enumerable:!0,get:function(){return T.OperationReplyAddresses}});var I=n(29282);Object.defineProperty(t,"OperationReplyV3",{enumerable:!0,get:function(){return I.OperationReply}});var k=n(63150);Object.defineProperty(t,"OperationV3",{enumerable:!0,get:function(){return k.Operation}});var M=n(52953);Object.defineProperty(t,"OperationsV3",{enumerable:!0,get:function(){return M.Operations}});var R=n(75536);Object.defineProperty(t,"SchemaV3",{enumerable:!0,get:function(){return R.Schema}});var q=n(39294);Object.defineProperty(t,"SchemasV3",{enumerable:!0,get:function(){return q.Schemas}});var N=n(3616);Object.defineProperty(t,"SecuritySchemeV3",{enumerable:!0,get:function(){return N.SecurityScheme}});var C=n(32136);Object.defineProperty(t,"SecuritySchemesV3",{enumerable:!0,get:function(){return C.SecuritySchemes}});var D=n(97486);Object.defineProperty(t,"ServerVariableV3",{enumerable:!0,get:function(){return D.ServerVariable}});var F=n(9230);Object.defineProperty(t,"ServerVariablesV3",{enumerable:!0,get:function(){return F.ServerVariables}});var U=n(39071);Object.defineProperty(t,"ServerV3",{enumerable:!0,get:function(){return U.Server}});var V=n(12115);Object.defineProperty(t,"ServersV3",{enumerable:!0,get:function(){return V.Servers}});var L=n(11650);Object.defineProperty(t,"TagV3",{enumerable:!0,get:function(){return L.Tag}});var z=n(8664);Object.defineProperty(t,"TagsV3",{enumerable:!0,get:function(){return z.Tags}})},88239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Info=void 0;const i=n(87506),r=n(83895),s=n(86992),o=n(29690);class a extends i.BaseModel{title(){return this._json.title}version(){return this._json.version}hasId(){return!!this._meta.asyncapi.parsed.id}id(){return this._meta.asyncapi.parsed.id}hasDescription(){return(0,o.hasDescription)(this)}description(){return(0,o.description)(this)}hasTermsOfService(){return!!this._json.termsOfService}termsOfService(){return this._json.termsOfService}hasContact(){return Object.keys(this._json.contact||{}).length>0}contact(){const e=this._json.contact;return e&&this.createModel(r.Contact,e,{pointer:this.jsonPath("contact")})}hasLicense(){return Object.keys(this._json.license||{}).length>0}license(){const e=this._json.license;return e&&this.createModel(s.License,e,{pointer:this.jsonPath("license")})}hasExternalDocs(){return(0,o.hasExternalDocs)(this)}externalDocs(){return(0,o.externalDocs)(this)}tags(){return(0,o.tags)(this)}extensions(){return(0,o.extensions)(this)}}t.Info=a},86992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.License=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{name(){return this._json.name}hasUrl(){return!!this._json.url}url(){return this._json.url}extensions(){return(0,r.extensions)(this)}}t.License=s},56978:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExample=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{hasName(){return!!this._json.name}name(){return this._json.name}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasHeaders(){return!!this._json.headers}headers(){return this._json.headers}hasPayload(){return!!this._json.payload}payload(){return this._json.payload}extensions(){return(0,r.extensions)(this)}}t.MessageExample=s},89550:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageExamples=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.MessageExamples=r},96354:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTrait=void 0;const i=n(54178),r=n(89550),s=n(56978),o=n(75536),a=n(8262),c=n(29690);class p extends c.CoreModel{id(){var e;return this._meta.id||(null===(e=this.extensions().get(a.xParserMessageName))||void 0===e?void 0:e.value())}hasMessageId(){return!1}hasSchemaFormat(){return!1}schemaFormat(){}hasCorrelationId(){return!!this._json.correlationId}correlationId(){if(this._json.correlationId)return this.createModel(i.CorrelationId,this._json.correlationId,{pointer:this.jsonPath("correlationId")})}hasContentType(){return!!this._json.contentType}contentType(){var e,t;return this._json.contentType||(null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.defaultContentType)}hasHeaders(){return!!this._json.headers}headers(){if(this._json.headers)return this.createModel(o.Schema,this._json.headers,{pointer:this.jsonPath("headers")})}hasName(){return!!this._json.name}name(){return this._json.name}examples(){return new r.MessageExamples((this._json.examples||[]).map(((e,t)=>this.createModel(s.MessageExample,e,{pointer:this.jsonPath(`examples/${t}`)}))))}}t.MessageTrait=p},80409:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MessageTraits=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.MessageTraits=r},50239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Message=void 0;const i=n(29304),r=n(69053),s=n(52953),o=n(63150),a=n(80409),c=n(96354),p=n(12115),d=n(75536),l=n(8262);class f extends c.MessageTrait{hasPayload(){return!!this._json.payload}payload(){if(this._json.payload)return this.createModel(d.Schema,this._json.payload,{pointer:this.jsonPath("payload")})}hasSchemaFormat(){return this.hasPayload()}schemaFormat(){var e;if(this.hasSchemaFormat())return null===(e=this.payload())||void 0===e?void 0:e.schemaFormat()}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{const i=n.json();t.includes(i)||(t.push(i),e.push(n))}))})),new p.Servers(e)}channels(){var e,t;const n=this._json[l.xParserObjectUniqueId],s=[],o=[];return this.operations().forEach((e=>{e.channels().forEach((e=>{const t=e.json();o.includes(t)||(o.push(t),s.push(e))}))})),Object.entries((null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.channels)||{}).forEach((([e,t])=>{const r=this.createModel(i.Channel,t,{id:e,pointer:`/channels/${e}`});!o.includes(t)&&r.messages().some((e=>e[l.xParserObjectUniqueId]===n))&&(o.push(t),s.push(r))})),new r.Channels(s)}operations(){var e,t;const n=this._json[l.xParserObjectUniqueId],i=[];return Object.entries((null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.operations)||{}).forEach((([e,t])=>{const r=this.createModel(o.Operation,t,{id:e,pointer:`/operations/${e}`});r.messages().some((e=>e[l.xParserObjectUniqueId]===n))&&i.push(r)})),new s.Operations(i)}traits(){return new a.MessageTraits((this._json.traits||[]).map(((e,t)=>this.createModel(c.MessageTrait,e,{id:"",pointer:this.jsonPath(`traits/${t}`)}))))}}t.Message=f},65740:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Messages=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Messages=r},29690:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.tags=t.externalDocs=t.hasExternalDocs=t.extensions=t.description=t.hasDescription=t.bindings=t.CoreModel=void 0;const i=n(87506),r=n(52252),s=n(19286),o=n(72343),a=n(87431),c=n(73405),p=n(8664),d=n(11650),l=n(33584),f=n(8262);class u extends i.BaseModel{hasTitle(){return!!this._json.title}title(){return this._json.title}hasSummary(){return!!this._json.summary}summary(){return this._json.summary}hasDescription(){return h(this)}description(){return y(this)}hasExternalDocs(){return b(this)}externalDocs(){return v(this)}tags(){return j(this)}bindings(){return m(this)}extensions(){return g(this)}}function m(e){const t=e.json("bindings")||{};return new r.Bindings(Object.entries(t||{}).map((([t,n])=>(0,l.createModel)(s.Binding,n,{protocol:t,pointer:e.jsonPath(`bindings/${t}`)},e))),{originalData:t,asyncapi:e.meta("asyncapi"),pointer:e.jsonPath("bindings")})}function h(e){return Boolean(y(e))}function y(e){return e.json("description")}function g(e){const t=[];return Object.entries(e.json()).forEach((([n,i])=>{f.EXTENSION_REGEX.test(n)&&t.push((0,l.createModel)(a.Extension,i,{id:n,pointer:e.jsonPath(n)},e))})),new o.Extensions(t)}function b(e){return Object.keys(e.json("externalDocs")||{}).length>0}function v(e){if(b(e))return new c.ExternalDocumentation(e.json("externalDocs"))}function j(e){return new p.Tags((e.json("tags")||[]).map(((t,n)=>(0,l.createModel)(d.Tag,t,{pointer:e.jsonPath(`tags/${n}`)},e))))}t.CoreModel=u,t.bindings=m,t.hasDescription=h,t.description=y,t.extensions=g,t.hasExternalDocs=b,t.externalDocs=v,t.tags=j},84472:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlow=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{hasAuthorizationUrl(){return!!this.json().authorizationUrl}authorizationUrl(){return this.json().authorizationUrl}hasRefreshUrl(){return!!this._json.refreshUrl}refreshUrl(){return this._json.refreshUrl}scopes(){return this._json.availableScopes}hasTokenUrl(){return!!this.json().tokenUrl}tokenUrl(){return this.json().tokenUrl}extensions(){return(0,r.extensions)(this)}}t.OAuthFlow=s},61599:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OAuthFlows=void 0;const i=n(87506),r=n(84472),s=n(29690);class o extends i.BaseModel{hasAuthorizationCode(){return!!this._json.authorizationCode}authorizationCode(){if(this._json.authorizationCode)return new r.OAuthFlow(this._json.authorizationCode)}hasClientCredentials(){return!!this._json.clientCredentials}clientCredentials(){if(this._json.clientCredentials)return new r.OAuthFlow(this._json.clientCredentials)}hasImplicit(){return!!this._json.implicit}implicit(){if(this._json.implicit)return new r.OAuthFlow(this._json.implicit)}hasPassword(){return!!this._json.password}password(){if(this._json.password)return new r.OAuthFlow(this._json.password)}extensions(){return(0,s.extensions)(this)}}t.OAuthFlows=o},54148:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReplies=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationReplies=r},9166:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReplyAddress=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{id(){return this._meta.id}location(){return this._json.location}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}}t.OperationReplyAddress=s},92682:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReplyAddresses=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationReplyAddresses=r},29282:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationReply=void 0;const i=n(87506),r=n(29304),s=n(50239),o=n(65740),a=n(9166),c=n(29690),p=n(8262);class d extends i.BaseModel{id(){return this._meta.id}hasAddress(){return!!this._json.address}address(){if(this._json.address)return this.createModel(a.OperationReplyAddress,this._json.address,{pointer:this.jsonPath("address")})}hasChannel(){return!!this._json.channel}channel(){if(this._json.channel){const e=this._json.channel[p.xParserObjectUniqueId];return this.createModel(r.Channel,this._json.channel,{id:e,pointer:this.jsonPath("channel")})}return this._json.channel}messages(){var e;return new o.Messages(Object.values(null!==(e=this._json.messages)&&void 0!==e?e:{}).map((e=>{const t=e[p.xParserObjectUniqueId];return this.createModel(s.Message,e,{id:t,pointer:this.jsonPath(`messages/${t}`)})})))}extensions(){return(0,c.extensions)(this)}}t.OperationReply=d},68612:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTrait=void 0;const i=n(3616),r=n(44455),s=n(71429),o=n(29690);class a extends o.CoreModel{id(){return this.operationId()||this._meta.id}hasOperationId(){return!!this._meta.id}operationId(){return this._meta.id}security(){return(this._json.security||[]).map(((e,t)=>{const n=this.createModel(i.SecurityScheme,e,{id:"",pointer:this.jsonPath(`security/${t}`)}),o=this.createModel(s.SecurityRequirement,{scheme:n,scopes:e.scopes},{id:"",pointer:this.jsonPath(`security/${t}`)});return new r.SecurityRequirements([o])}))}}t.OperationTrait=a},96499:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.OperationTraits=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.OperationTraits=r},63150:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operation=void 0;const i=n(65740),r=n(50239),s=n(69053),o=n(29304),a=n(96499),c=n(68612),p=n(29282),d=n(12115),l=n(8262);class f extends c.OperationTrait{action(){return this._json.action}isSend(){return"send"===this.action()}isReceive(){return"receive"===this.action()}servers(){const e=[],t=[];return this.channels().forEach((n=>{n.servers().forEach((n=>{const i=n.json();t.includes(i)||(t.push(i),e.push(n))}))})),new d.Servers(e)}channels(){if(this._json.channel){const e=this._json.channel[l.xParserObjectUniqueId];return new s.Channels([this.createModel(o.Channel,this._json.channel,{id:e,pointer:`/channels/${e}`})])}return new s.Channels([])}messages(){const e=[];return Array.isArray(this._json.messages)?(this._json.messages.forEach(((t,n)=>{const i=t[l.xParserObjectUniqueId];e.push(this.createModel(r.Message,t,{id:i,pointer:this.jsonPath(`messages/${n}`)}))})),new i.Messages(e)):(this.channels().forEach((t=>{e.push(...t.messages())})),new i.Messages(e))}hasReply(){return!!this._json.reply}reply(){if(this._json.reply)return this.createModel(p.OperationReply,this._json.reply,{pointer:this.jsonPath("reply")})}traits(){return new a.OperationTraits((this._json.traits||[]).map(((e,t)=>this.createModel(c.OperationTrait,e,{id:"",pointer:this.jsonPath(`traits/${t}`)}))))}}t.Operation=f},52953:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Operations=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.isSend()))}filterByReceive(){return this.filterBy((e=>e.isReceive()))}}t.Operations=r},75536:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schema=void 0;const i=n(87506),r=n(8262),s=n(29690),o=n(87401);class a extends i.BaseModel{constructor(e,t={}){var n,i;super(e,t),this._json=e,this._meta=t,"object"==typeof e&&"object"==typeof e.schema?(this._schemaObject=e.schema,this._schemaFormat=e.schemaFormat):(this._schemaObject=e,this._schemaFormat=(0,o.getDefaultSchemaFormat)(null===(i=null===(n=t.asyncapi)||void 0===n?void 0:n.semver)||void 0===i?void 0:i.version))}id(){return this.$id()||this._meta.id||this._schemaObject[r.xParserSchemaId]}$comment(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.$comment}$id(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.$id}$schema(){var e;return"boolean"==typeof this._schemaObject?"http://json-schema.org/draft-07/schema#":null!==(e=this._schemaObject.$schema)&&void 0!==e?e:"http://json-schema.org/draft-07/schema#"}additionalItems(){return"boolean"==typeof this._schemaObject?this._schemaObject:void 0===this._schemaObject.additionalItems||("boolean"==typeof this._schemaObject.additionalItems?this._schemaObject.additionalItems:this.createModel(a,this._schemaObject.additionalItems,{pointer:`${this._meta.pointer}/additionalItems`,parent:this}))}additionalProperties(){return"boolean"==typeof this._schemaObject?this._schemaObject:void 0===this._schemaObject.additionalProperties||("boolean"==typeof this._schemaObject.additionalProperties?this._schemaObject.additionalProperties:this.createModel(a,this._schemaObject.additionalProperties,{pointer:`${this._meta.pointer}/additionalProperties`,parent:this}))}allOf(){if("boolean"!=typeof this._schemaObject&&Array.isArray(this._schemaObject.allOf))return this._schemaObject.allOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/allOf/${t}`,parent:this})))}anyOf(){if("boolean"!=typeof this._schemaObject&&Array.isArray(this._schemaObject.anyOf))return this._schemaObject.anyOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/anyOf/${t}`,parent:this})))}const(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.const}contains(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.contains)return this.createModel(a,this._schemaObject.contains,{pointer:`${this._meta.pointer}/contains`,parent:this})}contentEncoding(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.contentEncoding}contentMediaType(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.contentMediaType}default(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.default}definitions(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.definitions)return Object.entries(this._schemaObject.definitions).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/definitions/${t}`,parent:this}),e)),{})}description(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.description}dependencies(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.dependencies)return Object.entries(this._schemaObject.dependencies).reduce(((e,[t,n])=>(e[t]=Array.isArray(n)?n:this.createModel(a,n,{pointer:`${this._meta.pointer}/dependencies/${t}`,parent:this}),e)),{})}deprecated(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.deprecated||!1)}discriminator(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.discriminator}else(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.else)return this.createModel(a,this._schemaObject.else,{pointer:`${this._meta.pointer}/else`,parent:this})}enum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.enum}examples(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.examples}exclusiveMaximum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.exclusiveMaximum}exclusiveMinimum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.exclusiveMinimum}format(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.format}isBooleanSchema(){return"boolean"==typeof this._schemaObject}if(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.if)return this.createModel(a,this._schemaObject.if,{pointer:`${this._meta.pointer}/if`,parent:this})}isCircular(){let e=this._meta.parent;for(;e;){if(e._json===this._schemaObject)return!0;e=e._meta.parent}return!1}items(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.items)return Array.isArray(this._schemaObject.items)?this._schemaObject.items.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/items/${t}`,parent:this}))):this.createModel(a,this._schemaObject.items,{pointer:`${this._meta.pointer}/items`,parent:this})}maximum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maximum}maxItems(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maxItems}maxLength(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maxLength}maxProperties(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.maxProperties}minimum(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minimum}minItems(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minItems}minLength(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minLength}minProperties(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.minProperties}multipleOf(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.multipleOf}not(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.not)return this.createModel(a,this._schemaObject.not,{pointer:`${this._meta.pointer}/not`,parent:this})}oneOf(){if("boolean"!=typeof this._schemaObject&&Array.isArray(this._schemaObject.oneOf))return this._schemaObject.oneOf.map(((e,t)=>this.createModel(a,e,{pointer:`${this._meta.pointer}/oneOf/${t}`,parent:this})))}pattern(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.pattern}patternProperties(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.patternProperties)return Object.entries(this._schemaObject.patternProperties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/patternProperties/${t}`,parent:this}),e)),{})}properties(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.properties)return Object.entries(this._schemaObject.properties).reduce(((e,[t,n])=>(e[t]=this.createModel(a,n,{pointer:`${this._meta.pointer}/properties/${t}`,parent:this}),e)),{})}property(e){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.properties&&"object"==typeof this._schemaObject.properties[e])return this.createModel(a,this._schemaObject.properties[e],{pointer:`${this._meta.pointer}/properties/${e}`,parent:this})}propertyNames(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.propertyNames)return this.createModel(a,this._schemaObject.propertyNames,{pointer:`${this._meta.pointer}/propertyNames`,parent:this})}readOnly(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.readOnly||!1)}required(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.required}schemaFormat(){return this._schemaFormat}then(){if("boolean"!=typeof this._schemaObject&&"object"==typeof this._schemaObject.then)return this.createModel(a,this._schemaObject.then,{pointer:`${this._meta.pointer}/then`,parent:this})}title(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.title}type(){if("boolean"!=typeof this._schemaObject)return this._schemaObject.type}uniqueItems(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.uniqueItems||!1)}writeOnly(){return"boolean"!=typeof this._schemaObject&&(this._schemaObject.writeOnly||!1)}hasExternalDocs(){return(0,s.hasExternalDocs)(this)}externalDocs(){return(0,s.externalDocs)(this)}extensions(){return(0,s.extensions)(this)}}t.Schema=a},39294:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Schemas=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.Schemas=r},71429:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirement=void 0;const i=n(87506);class r extends i.BaseModel{scheme(){return this._json.scheme}scopes(){return this._json.scopes||[]}}t.SecurityRequirement=r},44455:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityRequirements=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.meta("id")===e))}}t.SecurityRequirements=r},3616:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecurityScheme=void 0;const i=n(87506),r=n(61599),s=n(29690);class o extends i.BaseModel{id(){return this._meta.id}type(){return this._json.type}hasDescription(){return(0,s.hasDescription)(this)}description(){return(0,s.description)(this)}hasName(){return!!this._json.name}name(){return this._json.name}hasIn(){return!!this._json.in}in(){return this._json.in}hasScheme(){return!!this._json.scheme}scheme(){return this._json.scheme}hasBearerFormat(){return!!this._json.bearerFormat}bearerFormat(){return this._json.bearerFormat}hasFlows(){return!!this._json.flows}flows(){if(this._json.flows)return new r.OAuthFlows(this._json.flows)}hasOpenIdConnectUrl(){return!!this._json.openIdConnectUrl}openIdConnectUrl(){return this._json.openIdConnectUrl}extensions(){return(0,s.extensions)(this)}}t.SecurityScheme=o},32136:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SecuritySchemes=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.SecuritySchemes=r},97486:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariable=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{id(){return this._meta.id}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}hasDefaultValue(){return!!this._json.default}defaultValue(){return this._json.default}hasAllowedValues(){return!!this._json.enum}allowedValues(){return this._json.enum||[]}examples(){return this._json.examples||[]}extensions(){return(0,r.extensions)(this)}}t.ServerVariable=s},9230:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ServerVariables=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}}t.ServerVariables=r},39071:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Server=void 0;const i=n(69053),r=n(29304),s=n(65740),o=n(52953),a=n(3616),c=n(9230),p=n(97486),d=n(44455),l=n(71429),f=n(29690),u=n(28227);class m extends f.CoreModel{id(){return this._meta.id}url(){let e=this.host();e.endsWith("/")||(e=`${e}/`);let t=this.pathname()||"";return t.startsWith("/")&&(t=t.substring(1)),`${this.protocol()}://${e}${t}`}host(){return this._json.host}protocol(){return this._json.protocol}hasPathname(){return!!this._json.pathname}pathname(){return this._json.pathname}hasProtocolVersion(){return!!this._json.protocolVersion}protocolVersion(){return this._json.protocolVersion}channels(){var e,t;const n=[];return Object.entries((null===(t=null===(e=this._meta.asyncapi)||void 0===e?void 0:e.parsed)||void 0===t?void 0:t.channels)||{}).forEach((([e,t])=>{const i=t.servers||[];(0===i.length||i.includes(this._json))&&n.push(this.createModel(r.Channel,t,{id:e,pointer:`/channels/${(0,u.tilde)(e)}`}))})),new i.Channels(n)}operations(){const e=[],t=[];return this.channels().forEach((n=>{n.operations().forEach((n=>{const i=n.json();t.includes(i)||(e.push(n),t.push(i))}))})),new o.Operations(e)}messages(){const e=[],t=[];return this.channels().forEach((n=>{n.messages().forEach((n=>{const i=n.json();t.includes(i)||(e.push(n),t.push(i))}))})),new s.Messages(e)}variables(){return new c.ServerVariables(Object.entries(this._json.variables||{}).map((([e,t])=>this.createModel(p.ServerVariable,t,{id:e,pointer:this.jsonPath(`variables/${e}`)}))))}security(){return(this._json.security||[]).map(((e,t)=>{const n=this.createModel(a.SecurityScheme,e,{id:"",pointer:this.jsonPath(`security/${t}`)}),i=this.createModel(l.SecurityRequirement,{scheme:n,scopes:e.scopes},{id:"",pointer:this.jsonPath(`security/${t}`)});return new d.SecurityRequirements([i])}))}}t.Server=m},12115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Servers=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.id()===e))}filterBySend(){return this.filterBy((e=>e.operations().filterBySend().length>0))}filterByReceive(){return this.filterBy((e=>e.operations().filterByReceive().length>0))}}t.Servers=r},11650:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tag=void 0;const i=n(87506),r=n(29690);class s extends i.BaseModel{id(){return this._meta.id}name(){return this._json.name}hasDescription(){return(0,r.hasDescription)(this)}description(){return(0,r.description)(this)}extensions(){return(0,r.extensions)(this)}hasExternalDocs(){return(0,r.hasExternalDocs)(this)}externalDocs(){return(0,r.externalDocs)(this)}}t.Tag=s},8664:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Tags=void 0;const i=n(31247);class r extends i.Collection{get(e){return this.collections.find((t=>t.name()===e))}}t.Tags=r},87401:function(e,t){"use strict";var n=this&&this.__awaiter||function(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))};function i(e){return`application/vnd.aai.asyncapi;version=${e}`}Object.defineProperty(t,"__esModule",{value:!0}),t.getDefaultSchemaFormat=t.getSchemaFormat=t.registerSchemaParser=t.parseSchema=t.validateSchema=void 0,t.validateSchema=function(e,t){return n(this,void 0,void 0,(function*(){const n=e.parserRegistry.get(t.schemaFormat);if(void 0===n){const{path:e,schemaFormat:n}=t;return e.pop(),[{message:`Unknown schema format: "${n}"`,path:[...e,"schemaFormat"]},{message:`Cannot validate and parse given schema due to unknown schema format: "${n}"`,path:[...e,"payload"]}]}return n.validate(t)}))},t.parseSchema=function(e,t){return n(this,void 0,void 0,(function*(){const n=e.parserRegistry.get(t.schemaFormat);if(void 0===n)throw new Error("Unknown schema format");return n.parse(t)}))},t.registerSchemaParser=function(e,t){if("object"!=typeof t||"function"!=typeof t.validate||"function"!=typeof t.parse||"function"!=typeof t.getMimeTypes)throw new Error('Custom parser must have "parse()", "validate()" and "getMimeTypes()" functions.');t.getMimeTypes().forEach((n=>{e.parserRegistry.set(n,t)}))},t.getSchemaFormat=function(e,t){return"string"==typeof e?e:i(t)},t.getDefaultSchemaFormat=i},21634:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.traverseStringifiedData=t.refReplacer=t.copy=t.unstringify=t.stringify=void 0;const i=n(7307),r=n(28227),s=n(8262);function o(){const e=new Map,t=new Map;let n=null;return function(i,r){const s=e.get(this)+(Array.isArray(this)?`[${i}]`:`.${i}`),o=r===Object(r);o&&e.set(r,s);const a=t.get(r)||"";if(!a&&o){const e=s.replace(/undefined\.\.?/,"");t.set(r,e)}const c="["===a[0]?"$":"$.";let p=a?`$ref:${c}${a}`:r;return null===n?n=r:p===n&&(p="$ref:$"),p}}t.stringify=function(e,t={}){if((0,i.isAsyncAPIDocument)(e))e=e.json();else{if(!(0,i.isParsedDocument)(e))return;if((0,i.isStringifiedDocument)(e))return JSON.stringify(e)}return JSON.stringify(Object.assign(Object.assign({},e),{[String(s.xParserSpecStringified)]:!0}),o(),t.space||2)},t.unstringify=function(e){let t=e;if("string"==typeof e)try{t=JSON.parse(e)}catch(e){return}if((0,i.isStringifiedDocument)(t))return t=Object.assign({},t),delete t[String(s.xParserSpecStringified)],c(e,void 0,e,new Map,new Map),(0,i.createAsyncAPIDocument)((0,r.createDetailedAsyncAPI)(t,e))},t.copy=function(e){const t=JSON.stringify(e,o()),n=JSON.parse(t);return c(n,void 0,n,new Map,new Map),n},t.refReplacer=o;const a="$ref:$";function c(e,t,n,i,r){let s=e,o=a;if(void 0!==t){s=e[String(t)];const n=t?`.${t}`:"";o=i.get(e)+(Array.isArray(e)?`[${t}]`:n)}i.set(s,o),r.set(o,s);const p=r.get(s);if(p&&(e[String(t)]=p),s!==a&&p!==a||(e[String(t)]=n),s===Object(s))for(const e in s)c(s,e,n,i,r)}t.traverseStringifiedData=c},28227:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.retrieveDeepData=t.resolveServerUrl=t.findSubArrayIndex=t.untilde=t.tilde=t.createUncaghtDiagnostic=t.toJSONPathArray=t.hasRef=t.isObject=t.mergePatch=t.setExtensionOnJson=t.setExtension=t.hasHintDiagnostic=t.hasInfoDiagnostic=t.hasWarningDiagnostic=t.hasErrorDiagnostic=t.normalizeInput=t.getSemver=t.createDetailedAsyncAPI=void 0;const i=n(70309),r=n(28373);function s(e){const[t,n,i]=e.split("."),[r,s]=i.split("-rc");return{version:e,major:Number(t),minor:Number(n),patch:Number(r),rc:s&&Number(s)}}function o(e,t,n){"object"==typeof n&&n&&(e=e.startsWith("x-")?e:`x-${e}`,n[String(e)]=t)}function a(e){return Boolean(e)&&"object"==typeof e&&!1===Array.isArray(e)}function c(e){return e.includes("~")?e.replace(/~[01]/g,(e=>{switch(e){case"~1":return"/";case"~0":return"~"}return e})):e}t.createDetailedAsyncAPI=function(e,t,n){return{source:n,input:t,parsed:e,semver:s(e.asyncapi)}},t.getSemver=s,t.normalizeInput=function(e){return"string"==typeof e?e:JSON.stringify(e,void 0,2)},t.hasErrorDiagnostic=function(e){return e.some((e=>e.severity===r.DiagnosticSeverity.Error))},t.hasWarningDiagnostic=function(e){return e.some((e=>e.severity===r.DiagnosticSeverity.Warning))},t.hasInfoDiagnostic=function(e){return e.some((e=>e.severity===r.DiagnosticSeverity.Information))},t.hasHintDiagnostic=function(e){return e.some((e=>e.severity===r.DiagnosticSeverity.Hint))},t.setExtension=function(e,t,n){o(e,t,n.json())},t.setExtensionOnJson=o,t.mergePatch=function e(t,n){if(!a(n))return n;const i=a(t)?Object.assign({},t):{};return Object.keys(n).forEach((t=>{const r=n[t];null===r?delete i[t]:i[t]=e(i[t],r)})),i},t.isObject=a,t.hasRef=function(e){return a(e)&&"$ref"in e&&"string"==typeof e.$ref},t.toJSONPathArray=function(e){return function(e){return e.split("/").filter(Boolean).map(c)}((t=e).startsWith("#")?t.substring(1):t);var t},t.createUncaghtDiagnostic=function(e,t,n){if(!(e instanceof Error))return[];const s=n?n.getRangeForJsonPath([]):i.Document.DEFAULT_RANGE;return[{code:"uncaught-error",message:`${t}. Name: ${e.name}, message: ${e.message}, stack: ${e.stack}`,path:[],severity:r.DiagnosticSeverity.Error,range:s}]},t.tilde=function(e){return e.replace(/[~/]{1}/g,(e=>{switch(e){case"/":return"~1";case"~":return"~0"}return e}))},t.untilde=c,t.findSubArrayIndex=function(e,t,n=0){let i,r,s;for(i=n;i{e.exports={schemas:{"2.0.0":n(59284),"2.1.0":n(8369),"2.2.0":n(9320),"2.3.0":n(83738),"2.4.0":n(45771),"2.5.0":n(22517),"2.6.0":n(25183),"3.0.0":n(4064)},schemasWithoutId:{"2.0.0":n(1934),"2.1.0":n(5914),"2.2.0":n(45624),"2.3.0":n(15732),"2.4.0":n(30198),"2.5.0":n(27153),"2.6.0":n(98379),"3.0.0":n(54463)}}},46064:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(17464);t.resolveFile=function(e){return new Promise(((t,n)=>{const r=e.href();i.readFile(r,"utf8",((e,i)=>{e?n(e):t(i)}))}))}},22462:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(18605),r=n(83300);class s extends Error{constructor(){super(...arguments),this.name="OpenError"}}t.OpenError=s;class o extends Error{constructor(){super(...arguments),this.name="ReadError"}}function a(e,t={}){return i.__awaiter(this,void 0,void 0,(function*(){const n=e.href(),i=yield r.default(n,t);if(i.ok)return i.text();if(404===i.status)throw new s(`Page not found: ${n}`);throw new o(`${i.status} ${i.statusText}`)}))}t.NetworkError=o,t.resolveHttp=a,t.createResolveHttp=function(e={}){return t=>a(t,e)}},55738:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(22462);t.createResolveHttp=i.createResolveHttp,t.resolveHttp=i.resolveHttp,t.NetworkError=i.NetworkError,t.OpenError=i.OpenError;var r=n(46064);t.resolveFile=r.resolveFile},18605:(e,t,n)=>{"use strict";n.r(t),n.d(t,{__assign:()=>s,__asyncDelegator:()=>j,__asyncGenerator:()=>v,__asyncValues:()=>$,__await:()=>b,__awaiter:()=>d,__classPrivateFieldGet:()=>S,__classPrivateFieldSet:()=>P,__createBinding:()=>f,__decorate:()=>a,__exportStar:()=>u,__extends:()=>r,__generator:()=>l,__importDefault:()=>w,__importStar:()=>_,__makeTemplateObject:()=>x,__metadata:()=>p,__param:()=>c,__read:()=>h,__rest:()=>o,__spread:()=>y,__spreadArrays:()=>g,__values:()=>m});var i=function(e,t){return i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n])},i(e,t)};function r(e,t){function n(){this.constructor=e}i(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var s=function(){return s=Object.assign||function(e){for(var t,n=1,i=arguments.length;n=0;a--)(r=e[a])&&(o=(s<3?r(o):s>3?r(t,n,o):r(t,n))||o);return s>3&&o&&Object.defineProperty(t,n,o),o}function c(e,t){return function(n,i){t(n,i,e)}}function p(e,t){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function d(e,t,n,i){return new(n||(n=Promise))((function(r,s){function o(e){try{c(i.next(e))}catch(e){s(e)}}function a(e){try{c(i.throw(e))}catch(e){s(e)}}function c(e){var t;e.done?r(e.value):(t=e.value,t instanceof n?t:new n((function(e){e(t)}))).then(o,a)}c((i=i.apply(e,t||[])).next())}))}function l(e,t){var n,i,r,s,o={label:0,sent:function(){if(1&r[0])throw r[1];return r[1]},trys:[],ops:[]};return s={next:a(0),throw:a(1),return:a(2)},"function"==typeof Symbol&&(s[Symbol.iterator]=function(){return this}),s;function a(s){return function(a){return function(s){if(n)throw new TypeError("Generator is already executing.");for(;o;)try{if(n=1,i&&(r=2&s[0]?i.return:s[0]?i.throw||((r=i.return)&&r.call(i),0):i.next)&&!(r=r.call(i,s[1])).done)return r;switch(i=0,r&&(s=[2&s[0],r.value]),s[0]){case 0:case 1:r=s;break;case 4:return o.label++,{value:s[1],done:!1};case 5:o.label++,i=s[1],s=[0];continue;case 7:s=o.ops.pop(),o.trys.pop();continue;default:if(!((r=(r=o.trys).length>0&&r[r.length-1])||6!==s[0]&&2!==s[0])){o=0;continue}if(3===s[0]&&(!r||s[1]>r[0]&&s[1]=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function h(e,t){var n="function"==typeof Symbol&&e[Symbol.iterator];if(!n)return e;var i,r,s=n.call(e),o=[];try{for(;(void 0===t||t-- >0)&&!(i=s.next()).done;)o.push(i.value)}catch(e){r={error:e}}finally{try{i&&!i.done&&(n=s.return)&&n.call(s)}finally{if(r)throw r.error}}return o}function y(){for(var e=[],t=0;t1||a(e,t)}))})}function a(e,t){try{(n=r[e](t)).value instanceof b?Promise.resolve(n.value.v).then(c,p):d(s[0][2],n)}catch(e){d(s[0][3],e)}var n}function c(e){a("next",e)}function p(e){a("throw",e)}function d(e,t){e(t),s.shift(),s.length&&a(s[0][0],s[0][1])}}function j(e){var t,n;return t={},i("next"),i("throw",(function(e){throw e})),i("return"),t[Symbol.iterator]=function(){return this},t;function i(i,r){t[i]=e[i]?function(t){return(n=!n)?{value:b(e[i](t)),done:"return"===i}:r?r(t):t}:r}}function $(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t,n=e[Symbol.asyncIterator];return n?n.call(e):(e=m(e),t={},i("next"),i("throw"),i("return"),t[Symbol.asyncIterator]=function(){return this},t);function i(n){t[n]=e[n]&&function(t){return new Promise((function(i,r){!function(e,t,n,i){Promise.resolve(i).then((function(t){e({value:t,done:n})}),t)}(i,r,(t=e[n](t)).done,t.value)}))}}}function x(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function _(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}function w(e){return e&&e.__esModule?e:{default:e}}function S(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function P(e,t,n){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,n),n}},69655:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Cache=void 0,t.Cache=class{constructor(e={}){this._stats={hits:0,misses:0},this._data={},this._stdTTL=e.stdTTL}get stats(){return this._stats}get(e){const t=this._data[e];if(t&&(!this._stdTTL||(new Date).getTime()-t.ts{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveCrawler=void 0;const i=n(4658),r=n(13886),s=n(27361),o=n(32234);t.ResolveCrawler=class{constructor(e,t,n){this._resolved=n,this.resolvers=[],this.pointerGraph=new r.DepGraph({circular:!0}),this.pointerStemGraph=new r.DepGraph({circular:!0}),this.computeGraph=(e,t=[],n="#",i=[])=>{n||(n="#");let r=this._runner.computeRef({val:e,jsonPointer:n,pointerStack:i});if(void 0!==r)this._resolveRef({ref:r,val:e,parentPath:t,pointerStack:i,parentPointer:n,cacheKey:n,resolvingPointer:this.jsonPointer});else if("object"==typeof e)for(const s in e){if(!e.hasOwnProperty(s))continue;const a=e[s],c=o.addToJSONPointer(n,s);r=this._runner.computeRef({key:s,val:a,jsonPointer:c,pointerStack:i}),t.push(s),void 0!==r?this._resolveRef({ref:r,val:a,parentPath:t,parentPointer:c,pointerStack:i,cacheKey:o.uriToJSONPointer(r),resolvingPointer:this.jsonPointer}):"object"==typeof a&&this.computeGraph(a,t,c,i),t.pop()}},this._resolveRef=e=>{const{pointerStack:t,parentPath:n,parentPointer:r,ref:a}=e;if(o.uriIsJSONPointer(a)){if(this._runner.dereferenceInline){const e=o.uriToJSONPointer(a);let c;try{c=(0,i.pointerToPath)(e)}catch(e){return void this._resolved.errors.push({code:"PARSE_POINTER",message:`'${a}' JSON pointer is invalid`,uri:this._runner.baseUri,uriStack:this._runner.uriStack,pointerStack:[],path:[]})}let p=c.length>0;for(const e in c)if(n[e]!==c[e]){p=!1;break}if(p)return;this.pointerStemGraph.hasNode(e)||this.pointerStemGraph.addNode(e);let d="#",l="";for(let t=0;t{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.defaultGetRef=t.Cache=void 0,n(80259).__exportStar(n(29698),t);var i=n(69655);Object.defineProperty(t,"Cache",{enumerable:!0,get:function(){return i.Cache}});var r=n(71340);Object.defineProperty(t,"defaultGetRef",{enumerable:!0,get:function(){return r.defaultGetRef}})},13886:(e,t)=>{function n(e,t,n,i){var s={};return function(o){if(!s[o]){var a={},c=[],p=[];for(p.push({node:o,processed:!1});p.length>0;){var d=p[p.length-1],l=d.processed,f=d.node;if(l)p.pop(),c.pop(),a[f]=!1,s[f]=!0,t&&0!==e[f].length||n.push(f);else{if(s[f]){p.pop();continue}if(a[f]){if(i){p.pop();continue}throw c.push(f),new r(c)}a[f]=!0,c.push(f);for(var u=e[f],m=u.length-1;m>=0;m--)p.push({node:u[m],processed:!1});d.processed=!0}}}}}var i=t.DepGraph=function(e){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=e&&!!e.circular};i.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){this.hasNode(e)||(this.nodes[e]=2===arguments.length?t:e,this.outgoingEdges[e]=[],this.incomingEdges[e]=[])},removeNode:function(e){this.hasNode(e)&&(delete this.nodes[e],delete this.outgoingEdges[e],delete this.incomingEdges[e],[this.incomingEdges,this.outgoingEdges].forEach((function(t){Object.keys(t).forEach((function(n){var i=t[n].indexOf(e);i>=0&&t[n].splice(i,1)}),this)})))},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e))return this.nodes[e];throw new Error("Node does not exist: "+e)},setNodeData:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);this.nodes[e]=t},addDependency:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);if(!this.hasNode(t))throw new Error("Node does not exist: "+t);return-1===this.outgoingEdges[e].indexOf(t)&&this.outgoingEdges[e].push(t),-1===this.incomingEdges[t].indexOf(e)&&this.incomingEdges[t].push(e),!0},removeDependency:function(e,t){var n;this.hasNode(e)&&(n=this.outgoingEdges[e].indexOf(t))>=0&&this.outgoingEdges[e].splice(n,1),this.hasNode(t)&&(n=this.incomingEdges[t].indexOf(e))>=0&&this.incomingEdges[t].splice(n,1)},clone:function(){var e=this,t=new i;return Object.keys(e.nodes).forEach((function(n){t.nodes[n]=e.nodes[n],t.outgoingEdges[n]=e.outgoingEdges[n].slice(0),t.incomingEdges[n]=e.incomingEdges[n].slice(0)})),t},directDependenciesOf:function(e){if(this.hasNode(e))return this.outgoingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},directDependantsOf:function(e){if(this.hasNode(e))return this.incomingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},dependenciesOf:function(e,t){if(this.hasNode(e)){var i=[];n(this.outgoingEdges,t,i,this.circular)(e);var r=i.indexOf(e);return r>=0&&i.splice(r,1),i}throw new Error("Node does not exist: "+e)},dependantsOf:function(e,t){if(this.hasNode(e)){var i=[];n(this.incomingEdges,t,i,this.circular)(e);var r=i.indexOf(e);return r>=0&&i.splice(r,1),i}throw new Error("Node does not exist: "+e)},overallOrder:function(e){var t=this,i=[],r=Object.keys(this.nodes);if(0===r.length)return i;if(!this.circular){var s=n(this.outgoingEdges,!1,[],this.circular);r.forEach((function(e){s(e)}))}var o=n(this.outgoingEdges,e,i,this.circular);return r.filter((function(e){return 0===t.incomingEdges[e].length})).forEach((function(e){o(e)})),this.circular&&r.filter((function(e){return-1===i.indexOf(e)})).forEach((function(e){o(e)})),i},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter((function(t){return 0===e.incomingEdges[t].length}))}},i.prototype.directDependentsOf=i.prototype.directDependantsOf,i.prototype.dependentsOf=i.prototype.dependantsOf;var r=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> "),n=new Error(t);return n.cyclePath=e,Object.setPrototypeOf(n,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(n,r),n};r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(r,Error)},29698:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Resolver=void 0;const i=n(13886),r=n(69655),s=n(71340);t.Resolver=class{constructor(e={}){this.ctx={},this.uriCache=e.uriCache||new r.Cache,this.resolvers=e.resolvers||{},this.getRef=e.getRef,this.transformRef=e.transformRef,this.dereferenceInline=void 0===e.dereferenceInline||e.dereferenceInline,this.dereferenceRemote=void 0===e.dereferenceRemote||e.dereferenceRemote,this.parseResolveResult=e.parseResolveResult,this.transformDereferenceResult=e.transformDereferenceResult,this.ctx=e.ctx}resolve(e,t={}){const n=new i.DepGraph({circular:!0});return new s.ResolveRunner(e,n,Object.assign(Object.assign({uriCache:this.uriCache,resolvers:this.resolvers,getRef:this.getRef,transformRef:this.transformRef,dereferenceInline:this.dereferenceInline,dereferenceRemote:this.dereferenceRemote,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult},t),{ctx:Object.assign({},this.ctx||{},t.ctx||{})})).resolve(t)}}},71340:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ResolveRunner=t.defaultGetRef=void 0;const i=n(80259),r=n(4658),s=n(75966),o=n(13886),a=n(66312),c=n(27361),p=n(36968),d=n(54998),l=n(16283),f=n(69655),u=n(42516),m=n(32234),h=n(53316);let y=0;t.defaultGetRef=(e,t)=>{if(t&&"object"==typeof t&&"string"==typeof t.$ref)return t.$ref};class g{constructor(e,n=new o.DepGraph({circular:!0}),a={}){this.ctx={},this.computeRef=e=>{const t=this.getRef(e.key,e.val);if(void 0===t)return;let n=new l.ExtendedURI(t);if("#"!==t[0])if(this.isFile(n)){let e=n.toString();n.is("absolute")||(e=this.baseUri.toString()?(0,s.join)((0,s.dirname)(this.baseUri.toString()),(0,s.stripRoot)(e)):""),e&&(n=new d((0,s.toFSPath)(e)).fragment(n.fragment()))}else(n.scheme().includes("http")||""===n.scheme()&&this.baseUri.scheme().includes("http"))&&""!==this.baseUri.authority()&&""===n.authority()&&(n=n.absoluteTo(this.baseUri));return String(n).length>0&&this.isFile(this.baseUri)&&this.isFile(n)&&this.baseUri.path()===n.path()&&(n=new l.ExtendedURI(`#${n.fragment()}`)),this.transformRef?this.transformRef(Object.assign(Object.assign({},e),{ref:n,uri:this.baseUri}),this.ctx):n},this.atMaxUriDepth=()=>this.uriStack.length>=100,this.lookupUri=e=>i.__awaiter(this,void 0,void 0,(function*(){const{ref:t}=e;let n=t.scheme();!this.resolvers[n]&&this.isFile(t)&&(n="file");const i=this.resolvers[n];if(!i)throw new Error(`No resolver defined for scheme '${t.scheme()||"file"}' in ref ${t.toString()}`);let r=yield i.resolve(t,this.ctx);if(this.parseResolveResult)try{r=(yield this.parseResolveResult({uriResult:r,result:r,targetAuthority:t,parentAuthority:this.baseUri,parentPath:e.parentPath,fragment:e.fragment})).result}catch(e){throw new Error(`Could not parse remote reference response for '${t.toString()}' - ${String(e)}`)}return new g(r,this.graph,{depth:this.depth+1,baseUri:t.toString(),root:t,uriStack:this.uriStack,uriCache:this.uriCache,resolvers:this.resolvers,transformRef:this.transformRef,parseResolveResult:this.parseResolveResult,transformDereferenceResult:this.transformDereferenceResult,dereferenceRemote:this.dereferenceRemote,dereferenceInline:this.dereferenceInline,ctx:this.ctx})})),this.lookupAndResolveUri=e=>i.__awaiter(this,void 0,void 0,(function*(){const{val:t,ref:n,resolvingPointer:i,parentPointer:s,pointerStack:o}=e,a=e.parentPath?e.parentPath.slice():[],c=this.computeUriCacheKey(n),d={uri:n,pointerStack:o,targetPath:i===s?[]:a};if(this.uriStack.includes(c))return d.resolved={result:t,graph:this.graph,refMap:{},errors:[],runner:this},d;{let e;const i=this.baseUri.toString(),s=i&&0!==this.depth?i:null;try{if(this.atMaxUriDepth())throw new Error(`Max uri depth (${this.uriStack.length}) reached. Halting, this is probably a circular loop.`);e=yield this.lookupUri({ref:n.clone().fragment(""),fragment:n.fragment(),cacheKey:c,parentPath:a}),s&&(e.uriStack=e.uriStack.concat(s))}catch(e){d.error={code:"RESOLVE_URI",message:String(e),uri:n,uriStack:s?this.uriStack.concat(s):this.uriStack,pointerStack:o,path:a}}if(e&&(d.resolved=yield e.resolve({jsonPointer:m.uriToJSONPointer(n),parentPath:a}),d.resolved.errors.length))for(const e of d.resolved.errors)if("POINTER_MISSING"===e.code&&e.path.join("/")===n.fragment().slice(1)){const i=n.fragment?(0,r.trimStart)(e.path,(0,r.trimStart)(n.fragment(),"/").split("/")):e.path;i&&i.length?p(d.resolved.result,i,t):d.resolved.result&&(d.resolved.result=t)}}return d})),this.id=y+=1,this.depth=a.depth||0,this._source=e,this.resolvers=a.resolvers||{};const c=a.baseUri||"";let u=new d(c||"");this.isFile(u)&&(u=new d((0,s.toFSPath)(c))),this.baseUri=u,this.uriStack=a.uriStack||[],this.uriCache=a.uriCache||new f.Cache,this.root=a.root&&a.root.toString()||this.baseUri.toString()||"root",this.graph=n,this.graph.hasNode(this.root)||this.graph.addNode(this.root,{refMap:{},data:this._source}),this.baseUri&&0===this.depth&&this.uriCache.set(this.computeUriCacheKey(this.baseUri),this),this.getRef=a.getRef||t.defaultGetRef,this.transformRef=a.transformRef,this.depth?this.dereferenceInline=!0:this.dereferenceInline=void 0===a.dereferenceInline||a.dereferenceInline,this.dereferenceRemote=void 0===a.dereferenceRemote||a.dereferenceRemote,this.parseResolveResult=a.parseResolveResult,this.transformDereferenceResult=a.transformDereferenceResult,this.ctx=a.ctx,this.lookupUri=h(this.lookupUri,{serializer:this._cacheKeySerializer,cache:{create:()=>this.uriCache}})}get source(){return this._source}resolve(e){return i.__awaiter(this,void 0,void 0,(function*(){const t={result:this.source,graph:this.graph,refMap:{},errors:[],runner:this};let n;const i=e&&e.jsonPointer&&e.jsonPointer.trim();if(i&&"#"!==i&&"#/"!==i){try{n=(0,r.pointerToPath)(i)}catch(e){return t.errors.push({code:"PARSE_POINTER",message:`'${i}' JSON pointer is invalid`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:[]}),t}t.result=c(t.result,n)}if(void 0===t.result)return t.errors.push({code:"POINTER_MISSING",message:`'${i}' does not exist @ '${this.baseUri.toString()}'`,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[],path:n||[]}),t;const s=new u.ResolveCrawler(this,i,t);s.computeGraph(t.result,n,i||"");let o=[];if(s.resolvers.length&&(o=yield Promise.all(s.resolvers)),o.length)for(const e of o){let i=e.targetPath;i.length||(i=n||[]),t.refMap[String(this.baseUri.clone().fragment((0,r.pathToPointer)(i)))]=String(e.uri),this._setGraphNodeEdge(String(this.root),(0,r.pathToPointer)(i),String(e.uri)),e.error&&t.errors.push(e.error),e.resolved&&(e.resolved.errors&&(t.errors=t.errors.concat(e.resolved.errors)),void 0!==e.resolved.result&&(this._source=(0,a.default)(this._source,(t=>{if(e.resolved){if(!i.length)return e.resolved.result;p(t,i,e.resolved.result),this._setGraphNodeData(String(e.uri),e.resolved.result)}}))))}if("object"==typeof this._source?(this.dereferenceInline&&(this._source=(0,a.default)(this._source,(e=>{let n=[];try{n=s.pointerGraph.overallOrder();for(const i of n){const n=s.pointerGraph.dependantsOf(i);if(!n.length)continue;const o=(0,r.pointerToPath)(i),d=0===o.length?(0,a.original)(e):c(e,o);for(const a of n){let n;const c=(0,r.pointerToPath)(a),l=s.pointerStemGraph.dependenciesOf(i);for(const e of l)if((0,r.startsWith)(c,(0,r.pointerToPath)(e))){n=!0;break}n||(t.refMap[(0,r.pathToPointer)(c)]=(0,r.pathToPointer)(o),this._setGraphNodeEdge(this.root,(0,r.pathToPointer)(c),(0,r.pathToPointer)(o)),void 0!==d?(p(e,c,d),this._setGraphNodeData((0,r.pathToPointer)(o),d)):t.errors.push({code:"POINTER_MISSING",message:`'${i}' does not exist`,path:c,uri:this.baseUri,uriStack:this.uriStack,pointerStack:[]}))}}}catch(e){}}))),t.result=n?c(this._source,n):this._source):t.result=this._source,this.transformDereferenceResult){const r=new d(i||"");try{const{result:n,error:i}=yield this.transformDereferenceResult({source:this.source,result:t.result,targetAuthority:r,parentAuthority:this.baseUri,parentPath:e&&e.parentPath||[],fragment:r.fragment()});if(t.result=n,i)throw new Error(`Could not transform dereferenced result for '${r.toString()}' - ${String(i)}`)}catch(e){t.errors.push({code:"TRANSFORM_DEREFERENCED",message:`Error: Could not transform dereferenced result for '${this.baseUri.toString()}${""!==r.fragment()?`#${r.fragment()}`:""}' - ${String(e)}`,uri:r,uriStack:this.uriStack,pointerStack:[],path:n})}}return this._setGraphNodeData(this.root,this._source),t}))}_cacheKeySerializer(e){return e&&"object"==typeof e&&e.cacheKey?e.cacheKey:JSON.stringify(arguments)}computeUriCacheKey(e){return e.clone().fragment("").toString()}isFile(e){const t=e.scheme();if("file"===t)return!0;if(t){if(!this.resolvers[t])return!0}else{if("/"===e.toString().charAt(0))return!0;if(this.baseUri){const e=this.baseUri.scheme();return Boolean(!e||"file"===e||!this.resolvers[e])}}return!1}_setGraphNodeData(e,t){if(!this.graph.hasNode(e))return;const n=this.graph.getNodeData(e)||{};n.data=t,this.graph.setNodeData(e,n)}_setGraphNodeEdge(e,t,n){if(!this.graph.hasNode(e))return;const i=this.graph.getNodeData(e)||{};i.refMap=i.refMap||{},i.refMap[t]=n,this.graph.setNodeData(e,i)}}t.ResolveRunner=g},16283:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ExtendedURI=void 0;const i=n(54998);t.ExtendedURI=class extends i{constructor(e){super(e),this._value=e.trim()}get length(){return this._value.length}}},32234:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.uriIsJSONPointer=t.uriToJSONPointer=t.addToJSONPointer=void 0;const n=(e,t,n)=>{const i=e.toString();let r="",s=i,o=0,a=s.indexOf(t);for(;a>-1;)r+=i.substring(o,o+a)+n,s=s.substring(a+t.length,s.length),o+=a+t.length,a=s.indexOf(t);return s.length>0&&(r+=i.substring(i.length-s.length,i.length)),r};t.addToJSONPointer=(e,t)=>{return`${e}/${i=t,n(n(i,"~","~0"),"/","~1")}`;var i},t.uriToJSONPointer=e=>"length"in e&&0===e.length?"":""!==e.fragment()?`#${e.fragment()}`:""===e.href()?"#":"",t.uriIsJSONPointer=e=>(!("length"in e)||e.length>0)&&""===e.path()},4658:(e,t,n)=>{"use strict";n.r(t),n.d(t,{BUNDLE_ROOT:()=>Z,ERRORS_ROOT:()=>Y,KEYS:()=>Oe,bundleTarget:()=>X,decodePointer:()=>F,decodePointerFragment:()=>te,decodePointerUriFragment:()=>F,decycle:()=>ne,encodePointer:()=>ie,encodePointerFragment:()=>I,encodePointerUriFragment:()=>R,encodeUriPointer:()=>M,extractPointerFromRef:()=>re,extractSourceFromRef:()=>G,getFirstPrimitiveProperty:()=>se,getJsonPathForPosition:()=>oe,getLastPathSegment:()=>ae,getLocationForJsonPath:()=>ce,hasRef:()=>E,isExternalRef:()=>H,isLocalRef:()=>A,isPlainObject:()=>w,parseTree:()=>de,parseWithPointers:()=>pe,pathToPointer:()=>q,pointerToPath:()=>U,remapRefs:()=>B,renameObjectKey:()=>me,reparentBundleTarget:()=>ye,resolveExternalRef:()=>be,resolveExternalRefWithLocation:()=>ve,resolveInlineRef:()=>Q,resolveInlineRefWithLocation:()=>J,safeParse:()=>je,safeStringify:()=>xe,startsWith:()=>_e,stringify:()=>we,toPropertyPath:()=>Se,trapAccess:()=>Ae,traverse:()=>z,trimStart:()=>Te});var i,r=n(96486),s=n(75966);function o(e,t){void 0===t&&(t=!1);var n=e.length,i=0,r="",s=0,o=16,d=0,l=0,f=0,u=0,m=0;function h(t,n){for(var r=0,s=0;r=48&&o<=57)s=16*s+o-48;else if(o>=65&&o<=70)s=16*s+o-65+10;else{if(!(o>=97&&o<=102))break;s=16*s+o-97+10}i++,r++}return r=n)return s=n,o=17;var t=e.charCodeAt(i);if(a(t)){do{i++,r+=String.fromCharCode(t),t=e.charCodeAt(i)}while(a(t));return o=15}if(c(t))return i++,r+=String.fromCharCode(t),13===t&&10===e.charCodeAt(i)&&(i++,r+="\n"),d++,f=i,o=14;switch(t){case 123:return i++,o=1;case 125:return i++,o=2;case 91:return i++,o=3;case 93:return i++,o=4;case 58:return i++,o=6;case 44:return i++,o=5;case 34:return i++,r=function(){for(var t="",r=i;;){if(i>=n){t+=e.substring(r,i),m=2;break}var s=e.charCodeAt(i);if(34===s){t+=e.substring(r,i),i++;break}if(92!==s){if(s>=0&&s<=31){if(c(s)){t+=e.substring(r,i),m=2;break}m=6}i++}else{if(t+=e.substring(r,i),++i>=n){m=2;break}switch(e.charCodeAt(i++)){case 34:t+='"';break;case 92:t+="\\";break;case 47:t+="/";break;case 98:t+="\b";break;case 102:t+="\f";break;case 110:t+="\n";break;case 114:t+="\r";break;case 116:t+="\t";break;case 117:var o=h(4,!0);o>=0?t+=String.fromCharCode(o):m=4;break;default:m=5}r=i}}return t}(),o=10;case 47:var y=i-1;if(47===e.charCodeAt(i+1)){for(i+=2;i=12&&e<=15);return e}:y,getToken:function(){return o},getTokenValue:function(){return r},getTokenOffset:function(){return s},getTokenLength:function(){return i-s},getTokenStartLine:function(){return l},getTokenStartCharacter:function(){return s-u},getTokenError:function(){return m}}}function a(e){return 32===e||9===e||11===e||12===e||160===e||5760===e||e>=8192&&e<=8203||8239===e||8287===e||12288===e||65279===e}function c(e){return 10===e||13===e||8232===e||8233===e}function p(e){return e>=48&&e<=57}!function(e){e.DEFAULT={allowTrailingComma:!1}}(i||(i={}));var d=o,l=function e(t,n,i){if(void 0===i&&(i=!1),function(e,t,n){return void 0===n&&(n=!1),t>=e.offset&&t0)for(var i=r.getToken();17!==i;){if(-1!==t.indexOf(i)){v();break}if(-1!==n.indexOf(i))break;i=v()}}function $(e){var t=r.getTokenValue();return e?u(t):p(t),v(),!0}return v(),17===r.getToken()?!!n.allowEmptyContent||(j(4,[],[]),!1):function e(){switch(r.getToken()){case 3:return function(){l(),v();for(var t=!1;4!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||j(4,[],[]),m(","),v(),4===r.getToken()&&b)break}else t&&j(6,[],[]);e()||j(4,[],[4,5]),t=!0}return f(),4!==r.getToken()?j(8,[4],[]):v(),!0}();case 1:return function(){c(),v();for(var t=!1;2!==r.getToken()&&17!==r.getToken();){if(5===r.getToken()){if(t||j(4,[],[]),m(","),v(),2===r.getToken()&&b)break}else t&&j(6,[],[]);(10!==r.getToken()?(j(3,[],[2,5]),0):($(!1),6===r.getToken()?(m(":"),v(),e()||j(4,[],[2,5])):j(5,[],[2,5]),1))||j(4,[],[2,5]),t=!0}return d(),2!==r.getToken()?j(7,[2],[]):v(),!0}();case 10:return $(!0);default:return function(){switch(r.getToken()){case 11:var e=0;try{"number"!=typeof(e=JSON.parse(r.getTokenValue()))&&(j(2),e=0)}catch(e){j(2)}u(e);break;case 7:u(null);break;case 8:u(!0);break;case 9:u(!1);break;default:return!1}return v(),!0}()}}()?(17!==r.getToken()&&j(9,[],[]),!0):(j(4,[],[]),!1)};function m(e){switch(e){case 1:return"InvalidSymbol";case 2:return"InvalidNumberFormat";case 3:return"PropertyNameExpected";case 4:return"ValueExpected";case 5:return"ColonExpected";case 6:return"CommaExpected";case 7:return"CloseBraceExpected";case 8:return"CloseBracketExpected";case 9:return"EndOfFileExpected";case 10:return"InvalidCommentToken";case 11:return"UnexpectedEndOfComment";case 12:return"UnexpectedEndOfString";case 13:return"UnexpectedEndOfNumber";case 14:return"InvalidUnicode";case 15:return"InvalidEscapeCharacter";case 16:return"InvalidCharacter"}return""}var h=n(34155);const y=`__object_order_${Math.floor(Date.now()/36e5)}__`,g=Symbol.for(y),b=(String(g),{defineProperty:(e,t,n)=>(!(t in e)&&g in e?e[g].push(t):"value"in n&&t===g&&-1===n.value.lastIndexOf(g)&&n.value.push(g),Reflect.defineProperty(e,t,n)),deleteProperty(e,t){const n=t in e,i=Reflect.deleteProperty(e,t);if(i&&n&&g in e){const n=e[g].indexOf(t);-1!==n&&e[g].splice(n,1)}return i},ownKeys:e=>g in e?e[g]:Reflect.ownKeys(e),set(e,t,n){const i=t in e,r=Reflect.set(e,t,n);return r&&!i&&g in e&&e[g].push(t),r}});function v(e,t=Reflect.ownKeys(e)){void 0!==h&&j(h)&&j(h.env);const n=new Proxy(e,b);return function(e,t){g in e?(e[g].length=0,e[g].push(...t)):Reflect.defineProperty(e,g,{configurable:!0,value:t})}(n,t),n}function j(e){return null!==e&&"object"==typeof e}var $=n(4957),x=n(87668),_=n.n(x);function w(e){if("object"!=typeof e||null===e)return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype||"function"==typeof e.constructor&&Function.toString.call(Object)===Function.toString.call(e.constructor)}function S(e,t,n){if(!w(e)&&!Array.isArray(e)||!(t in e))throw new ReferenceError(`Could not resolve '${n}'`)}function P(e){if("string"!=typeof e.$ref)throw new TypeError("$ref should be a string")}const O=e=>w(e)&&"$ref"in e,E=e=>O(e)&&"string"==typeof e.$ref,A=e=>e.length>0&&("#"===e||/^#\S*$/.test(e)),T=(e,t,n)=>{const i=e.toString();let r="",s=i,o=0,a=s.indexOf(t);for(;a>-1;)r+=i.substring(o,o+a)+n,s=s.substring(a+t.length,s.length),o+=a+t.length,a=s.indexOf(t);return s.length>0&&(r+=i.substring(i.length-s.length,i.length)),r},I=e=>"number"==typeof e?e:T(T(e,"~","~0"),"/","~1"),k=/[^a-zA–Z0–9_.!~*'()\/\-\u{D800}-\u{DFFF}]/gu;function M(e){return e.replace(k,encodeURIComponent)}const R=e=>{const t=I(e);return"number"==typeof t?t:M(t)},q=e=>N(e),N=e=>{if(e&&"object"!=typeof e)throw new TypeError("Invalid type: path must be an array of segments.");return 0===e.length?"#":`#/${e.map(R).join("/")}`};function C(e){try{return decodeURIComponent(e)}catch(t){return e}}const D=/%[0-9a-f]+/gi,F=e=>{let t;try{t=decodeURIComponent(e)}catch(n){t=e.replace(D,C)}return T(T(t,"~1","/"),"~0","~")},U=e=>V(e),V=e=>{if("string"!=typeof e)throw new TypeError("Invalid type: JSON Pointers are represented as strings.");if(0===e.length||"#"!==e[0])throw new URIError("Invalid JSON Pointer syntax; URI fragment identifiers must begin with a hash.");if(1===e.length)return[];if("/"!==e[1])throw new URIError("Invalid JSON Pointer syntax.");return(e=>{const t=e.length,n=[];let i=-1;for(;++i{const i={value:e,path:n};t.onEnter&&t.onEnter(i);for(const i of Object.keys(e)){const r=e[i];t.onProperty&&t.onProperty({parent:e,parentPath:n,property:i,propertyValue:r}),"object"==typeof r&&null!==r&&L(r,t,n.concat(i))}t.onLeave&&t.onLeave(i)},z=(e,t)=>{"object"==typeof e&&null!==e&&L(e,"function"==typeof t?{onProperty:t}:t,[])};function B(e,t,n){z(e,{onProperty({property:e,propertyValue:i,parent:r}){"$ref"===e&&"string"==typeof i&&i.startsWith(t)&&(r.$ref=`${n}${i.slice(t.length)}`)}})}const H=e=>e.length>0&&"#"!==e[0],G=e=>{if("string"!=typeof e||0===e.length||!H(e))return null;const t=e.indexOf("#");return-1===t?e:e.slice(0,t)};function K(e,t){return w(t)&&w(e)&&("summary"in e||"description"in e)?Object.assign(Object.assign(Object.assign({},t),"description"in e?{description:e.description}:null),"summary"in e?{summary:e.summary}:null):t}function*W(e,t,n){O(e.value)&&(P(e.value),yield[-1,e.value]);for(const[i,r]of t.entries())S(e.value,r,n),e.value=e.value[r],O(e.value)&&(P(e.value),yield[i,e.value])}function Q(e,t){return J(e,t).value}function J(e,t){return function e(t,n,i,r){if(null!==G(n))throw new ReferenceError("Cannot resolve external references");const s=U(n);let o=[...s];"#"===n&&O(t)&&(P(t),s.unshift(...U(t.$ref)));const a={value:t};for(const[c,p]of W(a,s,n)){if(i.includes(p))return{source:null,location:null!=r?r:o,value:i[i.length-1]};i.push(p);const n=e(t,p.$ref,i,o);a.value=n.value,(o=n.location).push(...s.slice(c+1))}return{source:null,location:o,value:i.length>0?K(i[i.length-1],a.value):a.value}}(e,t,[])}const Z="#/__bundled__",Y="#/__errors__",X=({document:e,path:t,bundleRoot:n="#/__bundled__",errorsRoot:i="#/__errors__",cloneDocument:s=!0,keyProvider:o},a)=>{if(t===n||t===i)throw new Error("Roots do not make any sense");const c=s?(0,r.cloneDeep)(e):e;return ee(c,U(n),U(i),t,o)(t,{[t]:!0},a)},ee=(e,t,n,i,s)=>{const o=new Set,a=(c,p,d,l={},f={},u={})=>{const m=U(c),h=(0,r.get)(e,m);z(d||h,{onEnter:({value:n})=>{if(E(n)&&A(n.$ref)){const d=n.$ref;if(u[d])return;if(d===c&&(l[d]="#"),l[d])return void(n.$ref=l[d]);let m,h,y,g,b;try{let n;m=U(d),s&&(n=s({document:e,path:m})),n||(n=(({document:e,path:t})=>0===t.length?"root":Array.isArray((0,r.get)(e,t.slice(0,-1)))?`${t[t.length-2]}_${t[t.length-1]}`:String(t[t.length-1]))({document:e,path:m})),y=n;let i=1;for(;o.has(y);)if(y=`${n}_${++i}`,i>20)throw new Error(`Keys ${n}_2 through ${n}_20 already taken.`);o.add(y),h=[...t,y],g=q(h)}catch(e){u[d]=e instanceof Error?e.message:String(e)}if(!m||!h||!g)return;if("object"==typeof e&&null!==e&&!(b=(0,r.get)(e,m)))try{b=Q(Object(e),d)}catch(e){}void 0!==b&&(l[d]=g,n.$ref=g,(0,r.has)(f,h)||(Array.isArray(b)?(0,r.set)(f,h,new Array(b.length).fill(null)):"object"==typeof b&&(0,r.setWith)(f,h,{},Object),(0,r.set)(f,h,b),"#"===d?function(e,t,n,i){const s=n.map((e=>`[${JSON.stringify(e)}]`)).join(""),o=JSON.parse(JSON.stringify((0,r.omit)(Object(e),s))),a={};(0,r.set)(t,i,o),(0,r.set)(o,n,a),B(o,"#",q(i)),a.$ref="#"}(e,f,U(i),h):p[d]||(p[d]=!0,a(c,p,b,l,f,u),p[d]=!1)))}}});const y=(0,r.get)(f,t);return y&&Object.keys(y).length&&(0,r.set)(h,t,y),(Object.keys(u).length||(0,r.has)(e,n))&&(0,r.set)(h,n,(0,r.has)(e,n)?(0,r.get)(e,n):u),h};return a},te=e=>T(T(e,"~1","/"),"~0","~"),ne=(e,t)=>{const n=new WeakMap;return function e(i,r){let s;if(t&&(i=t(i)),w(i)||Array.isArray(i)){const t=n.get(i);return t?{$ref:t}:(n.set(i,q(r)),Array.isArray(i)?s=i.map(((t,n)=>e(t,[...r,String(n)]))):(s={},Object.keys(i).forEach((t=>{s[t]=e(i[t],[...r,t])}))),n.delete(i),s)}return i}(e,[])},ie=e=>T(T(e,"~","~0"),"//","/~1"),re=e=>{if("string"!=typeof e||0===e.length)return null;const t=e.indexOf("#");return-1===t?null:e.slice(t)},se=e=>{const t=d(e,!0);if(t.scan(),1!==t.getToken())return;if(t.scan(),2===t.getToken())return;if(10!==t.getToken())throw new SyntaxError("Unexpected character");const n=t.getTokenValue();if(t.scan(),6!==t.getToken())throw new SyntaxError("Colon expected");switch(t.scan(),t.getToken()){case 10:return[n,t.getTokenValue()];case 11:return[n,Number(t.getTokenValue())];case 8:return[n,!0];case 9:return[n,!1];case 7:return[n,null];case 16:throw new SyntaxError("Unexpected character");case 17:throw new SyntaxError("Unexpected end of file");default:return}},oe=({lineMap:e,ast:t},n)=>{const i=e[n.line],r=e[n.line+1];if(void 0===i)return;const s=l(t,void 0===r?i+n.character:Math.min(r,i+n.character),!0);if(void 0===s)return;const o=f(s);return 0!==o.length?o:void 0};function ae(e){return te(e.split("/").pop()||"")}const ce=({ast:e},t,n=!1)=>{const i=function(e,t,n){e:for(const i of t){const t=Number.isInteger(Number(i))?Number(i):i;if("string"==typeof t||"number"==typeof t&&"array"!==e.type){if("object"!==e.type||!Array.isArray(e.children))return n?e:void 0;for(const n of e.children)if(Array.isArray(n.children)&&n.children[0].value===String(t)&&2===n.children.length){e=n.children[1];continue e}return n?e:void 0}if("array"!==e.type||t<0||!Array.isArray(e.children)||t>=e.children.length)return n?e:void 0;e=e.children[t]}return e}(e,t,n);if(void 0!==i&&void 0!==i.range)return{range:i.range}},pe=(e,t={disallowComments:!0})=>{const n=[],{ast:i,data:r,lineMap:s}=de(e,n,t);return{data:r,diagnostics:n,ast:i,lineMap:s}};function de(e,t=[],n){const i=fe(e);let r={type:"array",offset:-1,length:-1,children:[],parent:void 0},s=null,o=[];const a=new WeakMap,c=[];function p(e){"property"===r.type&&(r.length=e-r.offset,r=r.parent)}function d(e,t,n){return{start:{line:e,character:t},end:{line:e,character:t+n}}}function l(e){return r.children.push(e),e}function f(e){Array.isArray(o)?o.push(e):null!==s&&(o[s]=e)}function h(e){f(e),c.push(o),o=e,s=null}function y(){o=c.pop()}u(e,{onObjectBegin:(e,t,i,s)=>{r=l({type:"object",offset:e,length:-1,parent:r,children:[],range:d(i,s,t)}),!1===n.ignoreDuplicateKeys&&a.set(r,[]),h(function(e){return e?v({}):{}}(!0===n.preserveKeyOrder))},onObjectProperty:(e,i,c,p,f)=>{if((r=l({type:"property",offset:i,length:-1,parent:r,children:[]})).children.push({type:"string",value:e,offset:i,length:c,parent:r}),!1===n.ignoreDuplicateKeys){const n=a.get(r.parent);n&&(0!==n.length&&n.includes(e)?t.push({range:d(p,f,c),message:"DuplicateKey",severity:$.H_.Error,path:ue(r),code:20}):n.push(e))}!0===n.preserveKeyOrder&&function(e,t){if(!(t in e))return;const n=e[g],i=n.indexOf(t);-1!==i&&(n.splice(i,1),n.push(t))}(o,e),s=e},onObjectEnd:(e,t,i,s)=>{!1===n.ignoreDuplicateKeys&&a.delete(r),r.length=e+t-r.offset,r.range&&(r.range.end.line=i,r.range.end.character=s+t),r=r.parent,p(e+t),y()},onArrayBegin:(e,t,n,i)=>{r=l({type:"array",offset:e,length:-1,parent:r,children:[],range:d(n,i,t)}),h([])},onArrayEnd:(e,t,n,i)=>{r.length=e+t-r.offset,r.range&&(r.range.end.line=n,r.range.end.character=i+t),r=r.parent,p(e+t),y()},onLiteralValue:(e,t,n,i,s)=>{l({type:le(e),offset:t,length:n,parent:r,value:e,range:d(i,s,n)}),p(t+n),f(e)},onSeparator:(e,t)=>{"property"===r.type&&(":"===e?r.colonOffset=t:","===e&&p(t))},onError:(e,n,i,r,s)=>{t.push({range:d(r,s,i),message:m(e),severity:$.H_.Error,code:e})}},n);const b=r.children[0];return b&&delete b.parent,{ast:b,data:o[0],lineMap:i}}function le(e){switch(typeof e){case"boolean":return"boolean";case"number":return"number";case"string":return"string";default:return"null"}}const fe=e=>{const t=[0];let n=0;for(;n{if(!e||!Object.hasOwnProperty.call(e,t)||t===n)return e;const i={};for(const[r,s]of Object.entries(e))r===t?i[n]=s:r in i||(i[r]=s);return i};function he(e){return w(e)||Array.isArray(e)}function ye(e,t,n){if(n.length<=1||t.length<=1)throw Error("Source/target path must not be empty and point at root");if(0===t.indexOf(n))throw Error("Target path cannot be contained within source");const i=U(t);let r=e;for(const e of i){if(!he(r))return;r=r[e]}if(!he(r))return;const s=U(n);let o=e;for(const[e,t]of s.entries()){if(!he(o)||t in o)return;const n=e===s.length-1?r:{};o[t]=n,o=n}delete e[i[0]],function e(t,n,i){for(const r of Object.keys(t)){const s=t[r];if("$ref"!==r)he(s)&&e(s,n,i);else{if("string"!=typeof s||!A(s))continue;0===s.indexOf(n)&&(t[r]=s.replace(n,i))}}}(e,t,n)}async function ge(e,t,n,i,r){let o=function(e,t){const n=G(t);return null===n?e:(0,s.isAbsolute)(n)?n:(0,s.join)((0,s.dirname)(e),n)}(t,n);const a=re(n)||"#",c=await e[o],p=U(a);let d=[...p];const l={value:c};for(const[n,s]of W(l,p,a)){if(i.includes(s))return{source:t,location:null!=r?r:d,value:i[i.length-1]};i.push(s);const a=await ge(e,o,s.$ref,i,d);({source:o,location:d}=a),l.value=a.value,d.push(...p.slice(n+1))}return{source:o,location:d,value:i.length>0?K(i[i.length-1],l.value):l.value}}async function be(e,t,n){return(await ve(e,t,n)).value}function ve(e,t,n){return ge(e,t,n,[])}const je=(e,t)=>{if("string"!=typeof e)return e;try{const n=$e(e);return"string"==typeof n?n:JSON.parse(e,t)}catch(e){return}},$e=e=>{const t=Number(e);return Number.isFinite(t)?String(t)===e?t:e:NaN},xe=(e,t,n)=>{if("string"==typeof e)return e;try{return JSON.stringify(e,t,n)}catch(i){return _()(e,t,n)}},_e=(e,t)=>{if(e instanceof Array){if(t instanceof Array){if(t.length>e.length)return!1;for(const n in t){if(!t.hasOwnProperty(n))continue;const i=parseInt(e[n]),r=parseInt(t[n]);if(isNaN(i)&&isNaN(r)){if(e[n]!==t[n])return!1}else if(i!==r)return!1}}}else{if("string"!=typeof e)return!1;if("string"==typeof t)return e.startsWith(t)}return!0},we=(e,t,n)=>{const i=xe(e,t,n);if(void 0===i)throw new Error("The value could not be stringified");return i};function Se(e){return e.replace(/^(\/|#\/)/,"").split("/").map(te).map(Pe).join(".")}function Pe(e){return e.includes(".")?`["${e.replace(/"/g,'\\"')}"]`:e}const Oe=Symbol.for(y),Ee={ownKeys:e=>Oe in e?e[Oe]:Reflect.ownKeys(e)},Ae=e=>new Proxy(e,Ee);function Te(e,t){if("string"==typeof e&&"string"==typeof t)return(0,r.trimStart)(e,t);if(!(e&&Array.isArray(e)&&e.length&&t&&Array.isArray(t)&&t.length))return e;let n=0;for(const i in e)if(e.hasOwnProperty(i)){if(e[i]!==t[i])break;n++}return e.slice(n)}},75966:(e,t,n)=>{"use strict";function i(e){let t="";return e.absolute&&("file"===e.protocol?(e.drive&&(t+=e.drive),t+="/"):(t+=e.protocol+"://",e.origin&&(t+=e.origin+"/"))),""===(t+=e.path.join("/"))&&(t="."),t}function r(e,t,n,i){this.message=e,this.expected=t,this.found=n,this.location=i,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,r)}n.r(t),n.d(t,{basename:()=>d,deserializeSrn:()=>$,dirname:()=>l,extname:()=>f,format:()=>i,isAbsolute:()=>u,isURL:()=>m,join:()=>h,normalize:()=>a,parse:()=>o,relative:()=>y,resolve:()=>g,sep:()=>b,serializeSrn:()=>x,startsWithWindowsDrive:()=>v,stripRoot:()=>j,toFSPath:()=>a}),function(e,t){function n(){this.constructor=e}n.prototype=t.prototype,e.prototype=new n}(r,Error),r.buildMessage=function(e,t){var n={literal:function(e){return'"'+r(e.text)+'"'},class:function(e){var t,n="";for(t=0;t0){for(t=1,i=1;tW&&(W=G,Q=[]),Q.push(e))}function te(){var t;return(t=function(){var e,t,n,i,r;return e=G,(t=ne())!==a&&(n=ie())!==a&&(i=se())!==a&&(r=oe())!==a?e=t=d(t,n,i,r):(G=e,e=a),e===a&&(e=G,(t=ne())!==a&&(n=ie())!==a&&(i=function(){var e;return(e=b)!==a&&(e=M()),e}())!==a?e=t=l(t,n,i):(G=e,e=a)),e}())===a&&(t=function(){var t,n,i,r;return t=G,(n=function(){var t;return e.substr(G,7).toLowerCase()===$?(t=e.substr(G,7),G+=7):(t=a,ee(x)),t===a&&(e.substr(G,5).toLowerCase()===_?(t=e.substr(G,5),G+=5):(t=a,ee(w))),t!==a&&(t=S()),t}())!==a&&(i=re())!==a&&(r=oe())!==a?t=n=j(n,i,r):(G=t,t=a),t}())===a&&(t=function(){var e,t,n;return e=G,(t=re())!==a&&(n=oe())!==a?e=t=P(t,n):(G=e,e=a),e}())===a&&(t=function(){var t,n;return t=G,function(){var t;return(t=function(){var t,n,i;return t=G,46===e.charCodeAt(G)?(n=D,G++):(n=a,ee(F)),n!==a&&(i=ce())!==a?t=n=[n,i]:(G=t,t=a),t}())===a&&(t=b),t}()!==a&&(n=oe())!==a?t=R(n):(G=t,t=a),t}()),t}function ne(){var t,n;return e.substr(G,7).toLowerCase()===f?(n=e.substr(G,7),G+=7):(n=a,ee(u)),n!==a&&(n=m()),(t=n)===a&&(t=function(){var t;return e.substr(G,8).toLowerCase()===h?(t=e.substr(G,8),G+=8):(t=a,ee(y)),t!==a&&(t=g()),t}()),t}function ie(){var t,n,i;if(t=G,n=[],(i=pe())!==a)for(;i!==a;)n.push(i),i=pe();else n=a;return(t=n!==a?e.substring(t,G):n)===a&&(t=G,(n=b)!==a&&(n=v()),t=n),t}function re(){var t;return(t=function(){var t,n,i,r;return t=G,(n=ce())===a&&(n=null),n!==a?(O.test(e.charAt(G))?(i=e.charAt(G),G++):(i=a,ee(E)),i!==a?(58===e.charCodeAt(G)?(r=A,G++):(r=a,ee(T)),r!==a&&ce()!==a?t=n=I(i):(G=t,t=a)):(G=t,t=a)):(G=t,t=a),t}())===a&&(t=se()),t}function se(){var e;return(e=ce())!==a&&(e=k()),e}function oe(){var e;return(e=function e(){var t,n,i;return t=G,(n=ae())!==a&&ce()!==a&&(i=e())!==a?t=n=N(n,i):(G=t,t=a),t===a&&(t=G,(n=ae())!==a&&(n=C(n)),t=n),t}())!==a&&(e=q(e)),e}function ae(){var t,n,i;if(t=G,n=[],(i=pe())!==a)for(;i!==a;)n.push(i),i=pe();else n=a;return(t=n!==a?e.substring(t,G):n)===a&&(t=b),t}function ce(){var t;return 47===e.charCodeAt(G)?(t=U,G++):(t=a,ee(V)),t===a&&(92===e.charCodeAt(G)?(t=L,G++):(t=a,ee(z))),t}function pe(){var t;return B.test(e.charAt(G))?(t=e.charAt(G),G++):(t=a,ee(H)),t}if((n=p())!==a&&G===e.length)return n;throw n!==a&&G""!==e&&"."!==e));const n=[];for(const i of t)".."===i&&n.length&&".."!==n[n.length-1]?n.pop():".."===i&&e.absolute||n.push(i);return e.path=n,e}function p(e){let t=e.lastIndexOf(".");".."===e&&(t=-1),"."===e&&(t=-1);let n=e,i="";return t>0&&(n=e.slice(0,t),i=e.slice(t)),{name:n,ext:i}}const d=(e,t)=>{const n=c(o(e)).path.pop();if(!n)return"";const{name:i,ext:r}=p(n);return!0===t||t===r?i:`${i}${r}`},l=e=>{const t=c(o(e));return t.path.pop(),i(c(t))},f=e=>{const t=c(o(e)).path.pop();if(!t)return"";const{ext:n}=p(t);return n};function u(e){return o(e).absolute}function m(e){const t=o(e);return"http"===t.protocol||"https"===t.protocol}const h=(...e)=>{if(0===e.length)return".";const t=e.map(o),n=Object.assign({},t[0]);for(let i=1;inull!==o(e).drive,j=e=>o(e).path.filter(Boolean).join("/");function $(e){const[t,n,i,...r]=e.split("/"),s=r.length?`/${r.join("/")}`:void 0;let o,a;return s&&(o=r.find((e=>e.includes("."))))&&(a=p(o).ext),{shortcode:t,orgSlug:n,projectSlug:i,uri:s,file:o,ext:a}}function x({shortcode:e,orgSlug:t,projectSlug:n,uri:i=""}){return[e,t,n,i.replace(/^\//,"")].filter(Boolean).join("/")}},59049:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(67184),r=n(16008),s=n(20987),o=n(32445),a=n(60512),c=n(18090),p="errorMessage",d=new i.Name("emUsed"),l={required:"missingProperty",dependencies:"property",dependentRequired:"property"},f=/\$\{[^}]+\}/,u=/\$\{([^}]+)\}/g,m=/^""\s*\+\s*|\s*\+\s*""$/g;const h=(e,t={})=>{if(!e.opts.allErrors)throw new Error("ajv-errors: Ajv option allErrors must be true");if(e.opts.jsPropertySyntax)throw new Error("ajv-errors: ajv option jsPropertySyntax is not supported");return e.addKeyword(function(e){return{keyword:p,schemaType:["string","object"],post:!0,code(t){const{gen:n,data:h,schema:y,schemaValue:g,it:b}=t;if(!1===b.createErrors)return;const v=y,j=r.strConcat(c.default.instancePath,b.errorPath);function $(e,t){return r.and(i._`${e}.keyword !== ${p}`,i._`!${e}.${d}`,i._`${e}.instancePath === ${j}`,i._`${e}.keyword in ${t}`,i._`${e}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,i._`/^\\/[^\\/]*$/.test(${e}.schemaPath.slice(${b.errSchemaPath.length}))`)}function x(e,t){const i=[];for(const n in e){const e=t[n];f.test(e)&&i.push([n,w(e)])}return n.object(...i)}function _(e){return f.test(e)?new s._Code(s.safeStringify(e).replace(u,((e,t)=>`" + JSON.stringify(${o.getData(t,b)}) + "`)).replace(m,"")):i.stringify(e)}function w(e){return i._`function(){return ${_(e)}}`}n.if(i._`${c.default.errors} > 0`,(()=>{if("object"==typeof v){const[s,o]=function(e){let t,n;for(const i in e){if("properties"===i||"items"===i)continue;const r=e[i];if("object"==typeof r){t||(t={});const e=t[i]={};for(const t in r)e[t]=[]}else n||(n={}),n[i]=[]}return[t,n]}(v);o&&function(r){const s=n.const("emErrors",i.stringify(r)),o=n.const("templates",x(r,y));n.forOf("err",c.default.vErrors,(e=>n.if($(e,s),(()=>n.code(i._`${s}[${e}.keyword].push(${e})`).assign(i._`${e}.${d}`,!0)))));const{singleError:p}=e;if(p){const e=n.let("message",i._`""`),r=n.let("paramsErrors",i._`[]`);l((t=>{n.if(e,(()=>n.code(i._`${e} += ${"string"==typeof p?p:";"}`))),n.code(i._`${e} += ${f(t)}`),n.assign(r,i._`${r}.concat(${s}[${t}])`)})),a.reportError(t,{message:e,params:i._`{errors: ${r}}`})}else l((e=>a.reportError(t,{message:f(e),params:i._`{errors: ${s}[${e}]}`})));function l(e){n.forIn("key",s,(t=>n.if(i._`${s}[${t}].length`,(()=>e(t)))))}function f(e){return i._`${e} in ${o} ? ${o}[${e}]() : ${g}[${e}]`}}(o),s&&function(e){const r=n.const("emErrors",i.stringify(e)),s=[];for(const t in e)s.push([t,x(e[t],y[t])]);const o=n.const("templates",n.object(...s)),p=n.scopeValue("obj",{ref:l,code:i.stringify(l)}),f=n.let("emPropParams"),u=n.let("emParamsErrors");n.forOf("err",c.default.vErrors,(e=>n.if($(e,r),(()=>{n.assign(f,i._`${p}[${e}.keyword]`),n.assign(u,i._`${r}[${e}.keyword][${e}.params[${f}]]`),n.if(u,(()=>n.code(i._`${u}.push(${e})`).assign(i._`${e}.${d}`,!0)))})))),n.forIn("key",r,(e=>n.forIn("keyProp",i._`${r}[${e}]`,(s=>{n.assign(u,i._`${r}[${e}][${s}]`),n.if(i._`${u}.length`,(()=>{const r=n.const("tmpl",i._`${o}[${e}] && ${o}[${e}][${s}]`);a.reportError(t,{message:i._`${r} ? ${r}() : ${g}[${e}][${s}]`,params:i._`{errors: ${u}}`})}))}))))}(s),function(e){const{props:s,items:o}=e;if(!s&&!o)return;const l=i._`typeof ${h} == "object"`,f=i._`Array.isArray(${h})`,u=n.let("emErrors");let m,b;const v=n.let("templates");function $(e,t){n.assign(u,i.stringify(e)),n.assign(v,x(e,t))}s&&o?(m=n.let("emChildKwd"),n.if(l),n.if(f,(()=>{$(o,y.items),n.assign(m,i.str`items`)}),(()=>{$(s,y.properties),n.assign(m,i.str`properties`)})),b=i._`[${m}]`):o?(n.if(f),$(o,y.items),b=i._`.items`):s&&(n.if(r.and(l,r.not(f))),$(s,y.properties),b=i._`.properties`),n.forOf("err",c.default.vErrors,(e=>function(e,t,s){n.if(r.and(i._`${e}.keyword !== ${p}`,i._`!${e}.${d}`,i._`${e}.instancePath.indexOf(${j}) === 0`),(()=>{const r=n.scopeValue("pattern",{ref:/^\/([^/]*)(?:\/|$)/,code:i._`new RegExp("^\\\/([^/]*)(?:\\\/|$)")`}),o=n.const("emMatches",i._`${r}.exec(${e}.instancePath.slice(${j}.length))`),a=n.const("emChild",i._`${o} && ${o}[1].replace(/~1/g, "/").replace(/~0/g, "~")`);n.if(i._`${a} !== undefined && ${a} in ${t}`,(()=>s(a)))}))}(e,u,(t=>n.code(i._`${u}[${t}].push(${e})`).assign(i._`${e}.${d}`,!0))))),n.forIn("key",u,(e=>n.if(i._`${u}[${e}].length`,(()=>{a.reportError(t,{message:i._`${e} in ${v} ? ${v}[${e}]() : ${g}${b}[${e}]`,params:i._`{errors: ${u}[${e}]}`}),n.assign(i._`${c.default.vErrors}[${c.default.errors}-1].instancePath`,i._`${j} + "/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`)})))),n.endIf()}(function({properties:e,items:t}){const n={};if(e){n.props={};for(const t in e)n.props[t]=[]}if(t){n.items={};for(let e=0;en.if(function(e){return r.and(i._`${e}.keyword !== ${p}`,i._`!${e}.${d}`,r.or(i._`${e}.instancePath === ${j}`,r.and(i._`${e}.instancePath.indexOf(${j}) === 0`,i._`${e}.instancePath[${j}.length] === "/"`)),i._`${e}.schemaPath.indexOf(${b.errSchemaPath}) === 0`,i._`${e}.schemaPath[${b.errSchemaPath}.length] === "/"`)}(e),(()=>n.code(i._`${s}.push(${e})`).assign(i._`${e}.${d}`,!0))))),n.if(i._`${s}.length`,(()=>a.reportError(t,{message:_(e),params:i._`{errors: ${s}}`})))}(s),e.keepErrors||function(){const e=n.const("emErrs",i._`[]`);n.forOf("err",c.default.vErrors,(t=>n.if(i._`!${t}.${d}`,(()=>n.code(i._`${e}.push(${t})`))))),n.assign(c.default.vErrors,e).assign(c.default.errors,i._`${e}.length`)}()}))},metaSchema:{anyOf:[{type:"string"},{type:"object",properties:{properties:{$ref:"#/$defs/stringMap"},items:{$ref:"#/$defs/stringList"},required:{$ref:"#/$defs/stringOrMap"},dependencies:{$ref:"#/$defs/stringOrMap"}},additionalProperties:{type:"string"}}],$defs:{stringMap:{type:"object",additionalProperties:{type:"string"}},stringOrMap:{anyOf:[{type:"string"},{$ref:"#/$defs/stringMap"}]},stringList:{type:"array",items:{type:"string"}}}}}}(t))};t.default=h,e.exports=h,e.exports.default=h},67184:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.MissingRefError=t.ValidationError=t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;const i=n(75931),r=n(61324),s=n(27461),o=n(74155),a=["/properties"],c="http://json-schema.org/draft-07/schema";class p extends i.default{_addVocabularies(){super._addVocabularies(),r.default.forEach((e=>this.addVocabulary(e))),this.opts.discriminator&&this.addKeyword(s.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const e=this.opts.$data?this.$dataMetaSchema(o,a):o;this.addMetaSchema(e,c,!1),this.refs["http://json-schema.org/schema"]=c}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(c)?c:void 0)}}e.exports=t=p,Object.defineProperty(t,"__esModule",{value:!0}),t.default=p;var d=n(32445);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var l=n(16008);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return l._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return l.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return l.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return l.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return l.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return l.CodeGen}});var f=n(51714);Object.defineProperty(t,"ValidationError",{enumerable:!0,get:function(){return f.default}});var u=n(58366);Object.defineProperty(t,"MissingRefError",{enumerable:!0,get:function(){return u.default}})},20987:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.regexpCode=t.getEsmExportName=t.getProperty=t.safeStringify=t.stringify=t.strConcat=t.addCodeArg=t.str=t._=t.nil=t._Code=t.Name=t.IDENTIFIER=t._CodeOrName=void 0;class n{}t._CodeOrName=n,t.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;class i extends n{constructor(e){if(super(),!t.IDENTIFIER.test(e))throw new Error("CodeGen: name must be a valid identifier");this.str=e}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}}t.Name=i;class r extends n{constructor(e){super(),this._items="string"==typeof e?[e]:e}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;const e=this._items[0];return""===e||'""'===e}get str(){var e;return null!==(e=this._str)&&void 0!==e?e:this._str=this._items.reduce(((e,t)=>`${e}${t}`),"")}get names(){var e;return null!==(e=this._names)&&void 0!==e?e:this._names=this._items.reduce(((e,t)=>(t instanceof i&&(e[t.str]=(e[t.str]||0)+1),e)),{})}}function s(e,...t){const n=[e[0]];let i=0;for(;i{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.or=t.and=t.not=t.CodeGen=t.operators=t.varKinds=t.ValueScopeName=t.ValueScope=t.Scope=t.Name=t.regexpCode=t.stringify=t.getProperty=t.nil=t.strConcat=t.str=t._=void 0;const i=n(20987),r=n(45453);var s=n(20987);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"strConcat",{enumerable:!0,get:function(){return s.strConcat}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"getProperty",{enumerable:!0,get:function(){return s.getProperty}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"regexpCode",{enumerable:!0,get:function(){return s.regexpCode}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}});var o=n(45453);Object.defineProperty(t,"Scope",{enumerable:!0,get:function(){return o.Scope}}),Object.defineProperty(t,"ValueScope",{enumerable:!0,get:function(){return o.ValueScope}}),Object.defineProperty(t,"ValueScopeName",{enumerable:!0,get:function(){return o.ValueScopeName}}),Object.defineProperty(t,"varKinds",{enumerable:!0,get:function(){return o.varKinds}}),t.operators={GT:new i._Code(">"),GTE:new i._Code(">="),LT:new i._Code("<"),LTE:new i._Code("<="),EQ:new i._Code("==="),NEQ:new i._Code("!=="),NOT:new i._Code("!"),OR:new i._Code("||"),AND:new i._Code("&&"),ADD:new i._Code("+")};class a{optimizeNodes(){return this}optimizeNames(e,t){return this}}class c extends a{constructor(e,t,n){super(),this.varKind=e,this.name=t,this.rhs=n}render({es5:e,_n:t}){const n=e?r.varKinds.var:this.varKind,i=void 0===this.rhs?"":` = ${this.rhs}`;return`${n} ${this.name}${i};`+t}optimizeNames(e,t){if(e[this.name.str])return this.rhs&&(this.rhs=I(this.rhs,e,t)),this}get names(){return this.rhs instanceof i._CodeOrName?this.rhs.names:{}}}class p extends a{constructor(e,t,n){super(),this.lhs=e,this.rhs=t,this.sideEffects=n}render({_n:e}){return`${this.lhs} = ${this.rhs};`+e}optimizeNames(e,t){if(!(this.lhs instanceof i.Name)||e[this.lhs.str]||this.sideEffects)return this.rhs=I(this.rhs,e,t),this}get names(){return T(this.lhs instanceof i.Name?{}:{...this.lhs.names},this.rhs)}}class d extends p{constructor(e,t,n,i){super(e,n,i),this.op=t}render({_n:e}){return`${this.lhs} ${this.op}= ${this.rhs};`+e}}class l extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`${this.label}:`+e}}class f extends a{constructor(e){super(),this.label=e,this.names={}}render({_n:e}){return`break${this.label?` ${this.label}`:""};`+e}}class u extends a{constructor(e){super(),this.error=e}render({_n:e}){return`throw ${this.error};`+e}get names(){return this.error.names}}class m extends a{constructor(e){super(),this.code=e}render({_n:e}){return`${this.code};`+e}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(e,t){return this.code=I(this.code,e,t),this}get names(){return this.code instanceof i._CodeOrName?this.code.names:{}}}class h extends a{constructor(e=[]){super(),this.nodes=e}render(e){return this.nodes.reduce(((t,n)=>t+n.render(e)),"")}optimizeNodes(){const{nodes:e}=this;let t=e.length;for(;t--;){const n=e[t].optimizeNodes();Array.isArray(n)?e.splice(t,1,...n):n?e[t]=n:e.splice(t,1)}return e.length>0?this:void 0}optimizeNames(e,t){const{nodes:n}=this;let i=n.length;for(;i--;){const r=n[i];r.optimizeNames(e,t)||(k(e,r.names),n.splice(i,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce(((e,t)=>A(e,t.names)),{})}}class y extends h{render(e){return"{"+e._n+super.render(e)+"}"+e._n}}class g extends h{}class b extends y{}b.kind="else";class v extends y{constructor(e,t){super(t),this.condition=e}render(e){let t=`if(${this.condition})`+super.render(e);return this.else&&(t+="else "+this.else.render(e)),t}optimizeNodes(){super.optimizeNodes();const e=this.condition;if(!0===e)return this.nodes;let t=this.else;if(t){const e=t.optimizeNodes();t=this.else=Array.isArray(e)?new b(e):e}return t?!1===e?t instanceof v?t:t.nodes:this.nodes.length?this:new v(M(e),t instanceof v?[t]:t.nodes):!1!==e&&this.nodes.length?this:void 0}optimizeNames(e,t){var n;if(this.else=null===(n=this.else)||void 0===n?void 0:n.optimizeNames(e,t),super.optimizeNames(e,t)||this.else)return this.condition=I(this.condition,e,t),this}get names(){const e=super.names;return T(e,this.condition),this.else&&A(e,this.else.names),e}}v.kind="if";class j extends y{}j.kind="for";class $ extends j{constructor(e){super(),this.iteration=e}render(e){return`for(${this.iteration})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iteration=I(this.iteration,e,t),this}get names(){return A(super.names,this.iteration.names)}}class x extends j{constructor(e,t,n,i){super(),this.varKind=e,this.name=t,this.from=n,this.to=i}render(e){const t=e.es5?r.varKinds.var:this.varKind,{name:n,from:i,to:s}=this;return`for(${t} ${n}=${i}; ${n}<${s}; ${n}++)`+super.render(e)}get names(){const e=T(super.names,this.from);return T(e,this.to)}}class _ extends j{constructor(e,t,n,i){super(),this.loop=e,this.varKind=t,this.name=n,this.iterable=i}render(e){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(e)}optimizeNames(e,t){if(super.optimizeNames(e,t))return this.iterable=I(this.iterable,e,t),this}get names(){return A(super.names,this.iterable.names)}}class w extends y{constructor(e,t,n){super(),this.name=e,this.args=t,this.async=n}render(e){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(e)}}w.kind="func";class S extends h{render(e){return"return "+super.render(e)}}S.kind="return";class P extends y{render(e){let t="try"+super.render(e);return this.catch&&(t+=this.catch.render(e)),this.finally&&(t+=this.finally.render(e)),t}optimizeNodes(){var e,t;return super.optimizeNodes(),null===(e=this.catch)||void 0===e||e.optimizeNodes(),null===(t=this.finally)||void 0===t||t.optimizeNodes(),this}optimizeNames(e,t){var n,i;return super.optimizeNames(e,t),null===(n=this.catch)||void 0===n||n.optimizeNames(e,t),null===(i=this.finally)||void 0===i||i.optimizeNames(e,t),this}get names(){const e=super.names;return this.catch&&A(e,this.catch.names),this.finally&&A(e,this.finally.names),e}}class O extends y{constructor(e){super(),this.error=e}render(e){return`catch(${this.error})`+super.render(e)}}O.kind="catch";class E extends y{render(e){return"finally"+super.render(e)}}function A(e,t){for(const n in t)e[n]=(e[n]||0)+(t[n]||0);return e}function T(e,t){return t instanceof i._CodeOrName?A(e,t.names):e}function I(e,t,n){return e instanceof i.Name?s(e):(r=e)instanceof i._Code&&r._items.some((e=>e instanceof i.Name&&1===t[e.str]&&void 0!==n[e.str]))?new i._Code(e._items.reduce(((e,t)=>(t instanceof i.Name&&(t=s(t)),t instanceof i._Code?e.push(...t._items):e.push(t),e)),[])):e;var r;function s(e){const i=n[e.str];return void 0===i||1!==t[e.str]?e:(delete t[e.str],i)}}function k(e,t){for(const n in t)e[n]=(e[n]||0)-(t[n]||0)}function M(e){return"boolean"==typeof e||"number"==typeof e||null===e?!e:i._`!${C(e)}`}E.kind="finally",t.CodeGen=class{constructor(e,t={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...t,_n:t.lines?"\n":""},this._extScope=e,this._scope=new r.Scope({parent:e}),this._nodes=[new g]}toString(){return this._root.render(this.opts)}name(e){return this._scope.name(e)}scopeName(e){return this._extScope.name(e)}scopeValue(e,t){const n=this._extScope.value(e,t);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(e,t){return this._extScope.getValue(e,t)}scopeRefs(e){return this._extScope.scopeRefs(e,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(e,t,n,i){const r=this._scope.toName(t);return void 0!==n&&i&&(this._constants[r.str]=n),this._leafNode(new c(e,r,n)),r}const(e,t,n){return this._def(r.varKinds.const,e,t,n)}let(e,t,n){return this._def(r.varKinds.let,e,t,n)}var(e,t,n){return this._def(r.varKinds.var,e,t,n)}assign(e,t,n){return this._leafNode(new p(e,t,n))}add(e,n){return this._leafNode(new d(e,t.operators.ADD,n))}code(e){return"function"==typeof e?e():e!==i.nil&&this._leafNode(new m(e)),this}object(...e){const t=["{"];for(const[n,r]of e)t.length>1&&t.push(","),t.push(n),(n!==r||this.opts.es5)&&(t.push(":"),(0,i.addCodeArg)(t,r));return t.push("}"),new i._Code(t)}if(e,t,n){if(this._blockNode(new v(e)),t&&n)this.code(t).else().code(n).endIf();else if(t)this.code(t).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(e){return this._elseNode(new v(e))}else(){return this._elseNode(new b)}endIf(){return this._endBlockNode(v,b)}_for(e,t){return this._blockNode(e),t&&this.code(t).endFor(),this}for(e,t){return this._for(new $(e),t)}forRange(e,t,n,i,s=(this.opts.es5?r.varKinds.var:r.varKinds.let)){const o=this._scope.toName(e);return this._for(new x(s,o,t,n),(()=>i(o)))}forOf(e,t,n,s=r.varKinds.const){const o=this._scope.toName(e);if(this.opts.es5){const e=t instanceof i.Name?t:this.var("_arr",t);return this.forRange("_i",0,i._`${e}.length`,(t=>{this.var(o,i._`${e}[${t}]`),n(o)}))}return this._for(new _("of",s,o,t),(()=>n(o)))}forIn(e,t,n,s=(this.opts.es5?r.varKinds.var:r.varKinds.const)){if(this.opts.ownProperties)return this.forOf(e,i._`Object.keys(${t})`,n);const o=this._scope.toName(e);return this._for(new _("in",s,o,t),(()=>n(o)))}endFor(){return this._endBlockNode(j)}label(e){return this._leafNode(new l(e))}break(e){return this._leafNode(new f(e))}return(e){const t=new S;if(this._blockNode(t),this.code(e),1!==t.nodes.length)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(S)}try(e,t,n){if(!t&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');const i=new P;if(this._blockNode(i),this.code(e),t){const e=this.name("e");this._currNode=i.catch=new O(e),t(e)}return n&&(this._currNode=i.finally=new E,this.code(n)),this._endBlockNode(O,E)}throw(e){return this._leafNode(new u(e))}block(e,t){return this._blockStarts.push(this._nodes.length),e&&this.code(e).endBlock(t),this}endBlock(e){const t=this._blockStarts.pop();if(void 0===t)throw new Error("CodeGen: not in self-balancing block");const n=this._nodes.length-t;if(n<0||void 0!==e&&n!==e)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${e} expected`);return this._nodes.length=t,this}func(e,t=i.nil,n,r){return this._blockNode(new w(e,t,n)),r&&this.code(r).endFunc(),this}endFunc(){return this._endBlockNode(w)}optimize(e=1){for(;e-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(e){return this._currNode.nodes.push(e),this}_blockNode(e){this._currNode.nodes.push(e),this._nodes.push(e)}_endBlockNode(e,t){const n=this._currNode;if(n instanceof e||t&&n instanceof t)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${t?`${e.kind}/${t.kind}`:e.kind}"`)}_elseNode(e){const t=this._currNode;if(!(t instanceof v))throw new Error('CodeGen: "else" without "if"');return this._currNode=t.else=e,this}get _root(){return this._nodes[0]}get _currNode(){const e=this._nodes;return e[e.length-1]}set _currNode(e){const t=this._nodes;t[t.length-1]=e}},t.not=M;const R=N(t.operators.AND);t.and=function(...e){return e.reduce(R)};const q=N(t.operators.OR);function N(e){return(t,n)=>t===i.nil?n:n===i.nil?t:i._`${C(t)} ${e} ${C(n)}`}function C(e){return e instanceof i.Name?e:i._`(${e})`}t.or=function(...e){return e.reduce(q)}},45453:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ValueScope=t.ValueScopeName=t.Scope=t.varKinds=t.UsedValueState=void 0;const i=n(20987);class r extends Error{constructor(e){super(`CodeGen: "code" for ${e} not defined`),this.value=e.value}}var s;!function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"}(s=t.UsedValueState||(t.UsedValueState={})),t.varKinds={const:new i.Name("const"),let:new i.Name("let"),var:new i.Name("var")};class o{constructor({prefixes:e,parent:t}={}){this._names={},this._prefixes=e,this._parent=t}toName(e){return e instanceof i.Name?e:this.name(e)}name(e){return new i.Name(this._newName(e))}_newName(e){return`${e}${(this._names[e]||this._nameGroup(e)).index++}`}_nameGroup(e){var t,n;if((null===(n=null===(t=this._parent)||void 0===t?void 0:t._prefixes)||void 0===n?void 0:n.has(e))||this._prefixes&&!this._prefixes.has(e))throw new Error(`CodeGen: prefix "${e}" is not allowed in this scope`);return this._names[e]={prefix:e,index:0}}}t.Scope=o;class a extends i.Name{constructor(e,t){super(t),this.prefix=e}setValue(e,{property:t,itemIndex:n}){this.value=e,this.scopePath=i._`.${new i.Name(t)}[${n}]`}}t.ValueScopeName=a;const c=i._`\n`;t.ValueScope=class extends o{constructor(e){super(e),this._values={},this._scope=e.scope,this.opts={...e,_n:e.lines?c:i.nil}}get(){return this._scope}name(e){return new a(e,this._newName(e))}value(e,t){var n;if(void 0===t.ref)throw new Error("CodeGen: ref must be passed in value");const i=this.toName(e),{prefix:r}=i,s=null!==(n=t.key)&&void 0!==n?n:t.ref;let o=this._values[r];if(o){const e=o.get(s);if(e)return e}else o=this._values[r]=new Map;o.set(s,i);const a=this._scope[r]||(this._scope[r]=[]),c=a.length;return a[c]=t.ref,i.setValue(t,{property:r,itemIndex:c}),i}getValue(e,t){const n=this._values[e];if(n)return n.get(t)}scopeRefs(e,t=this._values){return this._reduceValues(t,(t=>{if(void 0===t.scopePath)throw new Error(`CodeGen: name "${t}" has no value`);return i._`${e}${t.scopePath}`}))}scopeCode(e=this._values,t,n){return this._reduceValues(e,(e=>{if(void 0===e.value)throw new Error(`CodeGen: name "${e}" has no value`);return e.value.code}),t,n)}_reduceValues(e,n,o={},a){let c=i.nil;for(const p in e){const d=e[p];if(!d)continue;const l=o[p]=o[p]||new Map;d.forEach((e=>{if(l.has(e))return;l.set(e,s.Started);let o=n(e);if(o){const n=this.opts.es5?t.varKinds.var:t.varKinds.const;c=i._`${c}${n} ${e} = ${o};${this.opts._n}`}else{if(!(o=null==a?void 0:a(e)))throw new r(e);c=i._`${c}${o}${this.opts._n}`}l.set(e,s.Completed)}))}return c}}},60512:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendErrors=t.resetErrorsCount=t.reportExtraError=t.reportError=t.keyword$DataError=t.keywordError=void 0;const i=n(16008),r=n(8199),s=n(18090);function o(e,t){const n=e.const("err",t);e.if(i._`${s.default.vErrors} === null`,(()=>e.assign(s.default.vErrors,i._`[${n}]`)),i._`${s.default.vErrors}.push(${n})`),e.code(i._`${s.default.errors}++`)}function a(e,t){const{gen:n,validateName:r,schemaEnv:s}=e;s.$async?n.throw(i._`new ${e.ValidationError}(${t})`):(n.assign(i._`${r}.errors`,t),n.return(!1))}t.keywordError={message:({keyword:e})=>i.str`must pass "${e}" keyword validation`},t.keyword$DataError={message:({keyword:e,schemaType:t})=>t?i.str`"${e}" keyword must be ${t} ($data)`:i.str`"${e}" keyword is invalid ($data)`},t.reportError=function(e,n=t.keywordError,r,s){const{it:c}=e,{gen:d,compositeRule:l,allErrors:f}=c,u=p(e,n,r);(null!=s?s:l||f)?o(d,u):a(c,i._`[${u}]`)},t.reportExtraError=function(e,n=t.keywordError,i){const{it:r}=e,{gen:c,compositeRule:d,allErrors:l}=r;o(c,p(e,n,i)),d||l||a(r,s.default.vErrors)},t.resetErrorsCount=function(e,t){e.assign(s.default.errors,t),e.if(i._`${s.default.vErrors} !== null`,(()=>e.if(t,(()=>e.assign(i._`${s.default.vErrors}.length`,t)),(()=>e.assign(s.default.vErrors,null)))))},t.extendErrors=function({gen:e,keyword:t,schemaValue:n,data:r,errsCount:o,it:a}){if(void 0===o)throw new Error("ajv implementation error");const c=e.name("err");e.forRange("i",o,s.default.errors,(o=>{e.const(c,i._`${s.default.vErrors}[${o}]`),e.if(i._`${c}.instancePath === undefined`,(()=>e.assign(i._`${c}.instancePath`,(0,i.strConcat)(s.default.instancePath,a.errorPath)))),e.assign(i._`${c}.schemaPath`,i.str`${a.errSchemaPath}/${t}`),a.opts.verbose&&(e.assign(i._`${c}.schema`,n),e.assign(i._`${c}.data`,r))}))};const c={keyword:new i.Name("keyword"),schemaPath:new i.Name("schemaPath"),params:new i.Name("params"),propertyName:new i.Name("propertyName"),message:new i.Name("message"),schema:new i.Name("schema"),parentSchema:new i.Name("parentSchema")};function p(e,t,n){const{createErrors:r}=e.it;return!1===r?i._`{}`:function(e,t,n={}){const{gen:r,it:o}=e,a=[d(o,n),l(e,n)];return function(e,{params:t,message:n},r){const{keyword:o,data:a,schemaValue:p,it:d}=e,{opts:l,propertyName:f,topSchemaRef:u,schemaPath:m}=d;r.push([c.keyword,o],[c.params,"function"==typeof t?t(e):t||i._`{}`]),l.messages&&r.push([c.message,"function"==typeof n?n(e):n]),l.verbose&&r.push([c.schema,p],[c.parentSchema,i._`${u}${m}`],[s.default.data,a]),f&&r.push([c.propertyName,f])}(e,t,a),r.object(...a)}(e,t,n)}function d({errorPath:e},{instancePath:t}){const n=t?i.str`${e}${(0,r.getErrorPath)(t,r.Type.Str)}`:e;return[s.default.instancePath,(0,i.strConcat)(s.default.instancePath,n)]}function l({keyword:e,it:{errSchemaPath:t}},{schemaPath:n,parentSchema:s}){let o=s?t:i.str`${t}/${e}`;return n&&(o=i.str`${o}${(0,r.getErrorPath)(n,r.Type.Str)}`),[c.schemaPath,o]}},41502:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.resolveSchema=t.getCompilingSchema=t.resolveRef=t.compileSchema=t.SchemaEnv=void 0;const i=n(16008),r=n(51714),s=n(18090),o=n(90178),a=n(8199),c=n(32445);class p{constructor(e){var t;let n;this.refs={},this.dynamicAnchors={},"object"==typeof e.schema&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=null!==(t=e.baseId)&&void 0!==t?t:(0,o.normalizeId)(null==n?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=null==n?void 0:n.$async,this.refs={}}}function d(e){const t=f.call(this,e);if(t)return t;const n=(0,o.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:a,lines:p}=this.opts.code,{ownProperties:d}=this.opts,l=new i.CodeGen(this.scope,{es5:a,lines:p,ownProperties:d});let u;e.$async&&(u=l.scopeValue("Error",{ref:r.default,code:i._`require("ajv/dist/runtime/validation_error").default`}));const m=l.scopeName("validate");e.validateName=m;const h={gen:l,allErrors:this.opts.allErrors,data:s.default.data,parentData:s.default.parentData,parentDataProperty:s.default.parentDataProperty,dataNames:[s.default.data],dataPathArr:[i.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:l.scopeValue("schema",!0===this.opts.code.source?{ref:e.schema,code:(0,i.stringify)(e.schema)}:{ref:e.schema}),validateName:m,ValidationError:u,schema:e.schema,schemaEnv:e,rootId:n,baseId:e.baseId||n,schemaPath:i.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:i._`""`,opts:this.opts,self:this};let y;try{this._compilations.add(e),(0,c.validateFunctionCode)(h),l.optimize(this.opts.code.optimize);const t=l.toString();y=`${l.scopeRefs(s.default.scope)}return ${t}`,this.opts.code.process&&(y=this.opts.code.process(y,e));const n=new Function(`${s.default.self}`,`${s.default.scope}`,y)(this,this.scope.get());if(this.scope.value(m,{ref:n}),n.errors=null,n.schema=e.schema,n.schemaEnv=e,e.$async&&(n.$async=!0),!0===this.opts.code.source&&(n.source={validateName:m,validateCode:t,scopeValues:l._values}),this.opts.unevaluated){const{props:e,items:t}=h;n.evaluated={props:e instanceof i.Name?void 0:e,items:t instanceof i.Name?void 0:t,dynamicProps:e instanceof i.Name,dynamicItems:t instanceof i.Name},n.source&&(n.source.evaluated=(0,i.stringify)(n.evaluated))}return e.validate=n,e}catch(t){throw delete e.validate,delete e.validateName,y&&this.logger.error("Error compiling schema, function code:",y),t}finally{this._compilations.delete(e)}}function l(e){return(0,o.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:d.call(this,e)}function f(e){for(const i of this._compilations)if(n=e,(t=i).schema===n.schema&&t.root===n.root&&t.baseId===n.baseId)return i;var t,n}function u(e,t){let n;for(;"string"==typeof(n=this.refs[t]);)t=n;return n||this.schemas[t]||m.call(this,e,t)}function m(e,t){const n=this.opts.uriResolver.parse(t),i=(0,o._getFullPath)(this.opts.uriResolver,n);let r=(0,o.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&i===r)return y.call(this,n,e);const s=(0,o.normalizeId)(i),a=this.refs[s]||this.schemas[s];if("string"==typeof a){const t=m.call(this,e,a);if("object"!=typeof(null==t?void 0:t.schema))return;return y.call(this,n,t)}if("object"==typeof(null==a?void 0:a.schema)){if(a.validate||d.call(this,a),s===(0,o.normalizeId)(t)){const{schema:t}=a,{schemaId:n}=this.opts,i=t[n];return i&&(r=(0,o.resolveUrl)(this.opts.uriResolver,r,i)),new p({schema:t,schemaId:n,root:e,baseId:r})}return y.call(this,n,a)}}t.SchemaEnv=p,t.compileSchema=d,t.resolveRef=function(e,t,n){var i;n=(0,o.resolveUrl)(this.opts.uriResolver,t,n);const r=e.refs[n];if(r)return r;let s=u.call(this,e,n);if(void 0===s){const r=null===(i=e.localRefs)||void 0===i?void 0:i[n],{schemaId:o}=this.opts;r&&(s=new p({schema:r,schemaId:o,root:e,baseId:t}))}return void 0!==s?e.refs[n]=l.call(this,s):void 0},t.getCompilingSchema=f,t.resolveSchema=m;const h=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function y(e,{baseId:t,schema:n,root:i}){var r;if("/"!==(null===(r=e.fragment)||void 0===r?void 0:r[0]))return;for(const i of e.fragment.slice(1).split("/")){if("boolean"==typeof n)return;const e=n[(0,a.unescapeFragment)(i)];if(void 0===e)return;const r="object"==typeof(n=e)&&n[this.opts.schemaId];!h.has(i)&&r&&(t=(0,o.resolveUrl)(this.opts.uriResolver,t,r))}let s;if("boolean"!=typeof n&&n.$ref&&!(0,a.schemaHasRulesButRef)(n,this.RULES)){const e=(0,o.resolveUrl)(this.opts.uriResolver,t,n.$ref);s=m.call(this,i,e)}const{schemaId:c}=this.opts;return s=s||new p({schema:n,schemaId:c,root:i,baseId:t}),s.schema!==s.root.schema?s:void 0}},18090:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r={data:new i.Name("data"),valCxt:new i.Name("valCxt"),instancePath:new i.Name("instancePath"),parentData:new i.Name("parentData"),parentDataProperty:new i.Name("parentDataProperty"),rootData:new i.Name("rootData"),dynamicAnchors:new i.Name("dynamicAnchors"),vErrors:new i.Name("vErrors"),errors:new i.Name("errors"),this:new i.Name("this"),self:new i.Name("self"),scope:new i.Name("scope"),json:new i.Name("json"),jsonPos:new i.Name("jsonPos"),jsonLen:new i.Name("jsonLen"),jsonPart:new i.Name("jsonPart")};t.default=r},58366:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90178);class r extends Error{constructor(e,t,n,r){super(r||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,i.resolveUrl)(e,t,n),this.missingSchema=(0,i.normalizeId)((0,i.getFullPath)(e,this.missingRef))}}t.default=r},90178:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getSchemaRefs=t.resolveUrl=t.normalizeId=t._getFullPath=t.getFullPath=t.inlineRef=void 0;const i=n(8199),r=n(64063),s=n(57091),o=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);t.inlineRef=function(e,t=!0){return"boolean"==typeof e||(!0===t?!c(e):!!t&&p(e)<=t)};const a=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function c(e){for(const t in e){if(a.has(t))return!0;const n=e[t];if(Array.isArray(n)&&n.some(c))return!0;if("object"==typeof n&&c(n))return!0}return!1}function p(e){let t=0;for(const n in e){if("$ref"===n)return 1/0;if(t++,!o.has(n)&&("object"==typeof e[n]&&(0,i.eachItem)(e[n],(e=>t+=p(e))),t===1/0))return 1/0}return t}function d(e,t="",n){!1!==n&&(t=u(t));const i=e.parse(t);return l(e,i)}function l(e,t){return e.serialize(t).split("#")[0]+"#"}t.getFullPath=d,t._getFullPath=l;const f=/#\/?$/;function u(e){return e?e.replace(f,""):""}t.normalizeId=u,t.resolveUrl=function(e,t,n){return n=u(n),e.resolve(t,n)};const m=/^[a-z_][-a-z0-9._]*$/i;t.getSchemaRefs=function(e,t){if("boolean"==typeof e)return{};const{schemaId:n,uriResolver:i}=this.opts,o=u(e[n]||t),a={"":o},c=d(i,o,!1),p={},l=new Set;return s(e,{allKeys:!0},((e,t,i,r)=>{if(void 0===r)return;const s=c+t;let o=a[r];function d(t){const n=this.opts.uriResolver.resolve;if(t=u(o?n(o,t):t),l.has(t))throw h(t);l.add(t);let i=this.refs[t];return"string"==typeof i&&(i=this.refs[i]),"object"==typeof i?f(e,i.schema,t):t!==u(s)&&("#"===t[0]?(f(e,p[t],t),p[t]=e):this.refs[t]=s),t}function y(e){if("string"==typeof e){if(!m.test(e))throw new Error(`invalid anchor "${e}"`);d.call(this,`#${e}`)}}"string"==typeof e[n]&&(o=d.call(this,e[n])),y.call(this,e.$anchor),y.call(this,e.$dynamicAnchor),a[t]=o})),p;function f(e,t,n){if(void 0!==t&&!r(e,t))throw h(n)}function h(e){return new Error(`reference "${e}" resolves to more than one schema`)}}},28761:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getRules=t.isJSONType=void 0;const n=new Set(["string","number","integer","boolean","null","object","array"]);t.isJSONType=function(e){return"string"==typeof e&&n.has(e)},t.getRules=function(){const e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}},8199:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkStrictMode=t.getErrorPath=t.Type=t.useFunc=t.setEvaluated=t.evaluatedPropsToName=t.mergeEvaluated=t.eachItem=t.unescapeJsonPointer=t.escapeJsonPointer=t.escapeFragment=t.unescapeFragment=t.schemaRefOrVal=t.schemaHasRulesButRef=t.schemaHasRules=t.checkUnknownRules=t.alwaysValidSchema=t.toHash=void 0;const i=n(16008),r=n(20987);function s(e,t=e.schema){const{opts:n,self:i}=e;if(!n.strictSchema)return;if("boolean"==typeof t)return;const r=i.RULES.keywords;for(const n in t)r[n]||m(e,`unknown keyword: "${n}"`)}function o(e,t){if("boolean"==typeof e)return!e;for(const n in e)if(t[n])return!0;return!1}function a(e){return"number"==typeof e?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}function c(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function p({mergeNames:e,mergeToName:t,mergeValues:n,resultToName:r}){return(s,o,a,c)=>{const p=void 0===a?o:a instanceof i.Name?(o instanceof i.Name?e(s,o,a):t(s,o,a),a):o instanceof i.Name?(t(s,a,o),o):n(o,a);return c!==i.Name||p instanceof i.Name?p:r(s,p)}}function d(e,t){if(!0===t)return e.var("props",!0);const n=e.var("props",i._`{}`);return void 0!==t&&l(e,n,t),n}function l(e,t,n){Object.keys(n).forEach((n=>e.assign(i._`${t}${(0,i.getProperty)(n)}`,!0)))}t.toHash=function(e){const t={};for(const n of e)t[n]=!0;return t},t.alwaysValidSchema=function(e,t){return"boolean"==typeof t?t:0===Object.keys(t).length||(s(e,t),!o(t,e.self.RULES.all))},t.checkUnknownRules=s,t.schemaHasRules=o,t.schemaHasRulesButRef=function(e,t){if("boolean"==typeof e)return!e;for(const n in e)if("$ref"!==n&&t.all[n])return!0;return!1},t.schemaRefOrVal=function({topSchemaRef:e,schemaPath:t},n,r,s){if(!s){if("number"==typeof n||"boolean"==typeof n)return n;if("string"==typeof n)return i._`${n}`}return i._`${e}${t}${(0,i.getProperty)(r)}`},t.unescapeFragment=function(e){return c(decodeURIComponent(e))},t.escapeFragment=function(e){return encodeURIComponent(a(e))},t.escapeJsonPointer=a,t.unescapeJsonPointer=c,t.eachItem=function(e,t){if(Array.isArray(e))for(const n of e)t(n);else t(e)},t.mergeEvaluated={props:p({mergeNames:(e,t,n)=>e.if(i._`${n} !== true && ${t} !== undefined`,(()=>{e.if(i._`${t} === true`,(()=>e.assign(n,!0)),(()=>e.assign(n,i._`${n} || {}`).code(i._`Object.assign(${n}, ${t})`)))})),mergeToName:(e,t,n)=>e.if(i._`${n} !== true`,(()=>{!0===t?e.assign(n,!0):(e.assign(n,i._`${n} || {}`),l(e,n,t))})),mergeValues:(e,t)=>!0===e||{...e,...t},resultToName:d}),items:p({mergeNames:(e,t,n)=>e.if(i._`${n} !== true && ${t} !== undefined`,(()=>e.assign(n,i._`${t} === true ? true : ${n} > ${t} ? ${n} : ${t}`))),mergeToName:(e,t,n)=>e.if(i._`${n} !== true`,(()=>e.assign(n,!0===t||i._`${n} > ${t} ? ${n} : ${t}`))),mergeValues:(e,t)=>!0===e||Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})},t.evaluatedPropsToName=d,t.setEvaluated=l;const f={};var u;function m(e,t,n=e.opts.strictSchema){if(n){if(t=`strict mode: ${t}`,!0===n)throw new Error(t);e.self.logger.warn(t)}}t.useFunc=function(e,t){return e.scopeValue("func",{ref:t,code:f[t.code]||(f[t.code]=new r._Code(t.code))})},function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"}(u=t.Type||(t.Type={})),t.getErrorPath=function(e,t,n){if(e instanceof i.Name){const r=t===u.Num;return n?r?i._`"[" + ${e} + "]"`:i._`"['" + ${e} + "']"`:r?i._`"/" + ${e}`:i._`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return n?(0,i.getProperty)(e).toString():"/"+a(e)},t.checkStrictMode=m},73967:(e,t)=>{"use strict";function n(e,t){return t.rules.some((t=>i(e,t)))}function i(e,t){var n;return void 0!==e[t.keyword]||(null===(n=t.definition.implements)||void 0===n?void 0:n.some((t=>void 0!==e[t])))}Object.defineProperty(t,"__esModule",{value:!0}),t.shouldUseRule=t.shouldUseGroup=t.schemaHasRulesForType=void 0,t.schemaHasRulesForType=function({schema:e,self:t},i){const r=t.RULES.types[i];return r&&!0!==r&&n(e,r)},t.shouldUseGroup=n,t.shouldUseRule=i},52733:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.boolOrEmptySchema=t.topBoolOrEmptySchema=void 0;const i=n(60512),r=n(16008),s=n(18090),o={message:"boolean schema is false"};function a(e,t){const{gen:n,data:r}=e,s={gen:n,keyword:"false schema",data:r,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,i.reportError)(s,o,void 0,t)}t.topBoolOrEmptySchema=function(e){const{gen:t,schema:n,validateName:i}=e;!1===n?a(e,!1):"object"==typeof n&&!0===n.$async?t.return(s.default.data):(t.assign(r._`${i}.errors`,null),t.return(!0))},t.boolOrEmptySchema=function(e,t){const{gen:n,schema:i}=e;!1===i?(n.var(t,!1),a(e)):n.var(t,!0)}},57607:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.reportTypeError=t.checkDataTypes=t.checkDataType=t.coerceAndCheckDataType=t.getJSONTypes=t.getSchemaTypes=t.DataType=void 0;const i=n(28761),r=n(73967),s=n(60512),o=n(16008),a=n(8199);var c;function p(e){const t=Array.isArray(e)?e:e?[e]:[];if(t.every(i.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}!function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"}(c=t.DataType||(t.DataType={})),t.getSchemaTypes=function(e){const t=p(e.type);if(t.includes("null")){if(!1===e.nullable)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&void 0!==e.nullable)throw new Error('"nullable" cannot be used without "type"');!0===e.nullable&&t.push("null")}return t},t.getJSONTypes=p,t.coerceAndCheckDataType=function(e,t){const{gen:n,data:i,opts:s}=e,a=function(e,t){return t?e.filter((e=>d.has(e)||"array"===t&&"array"===e)):[]}(t,s.coerceTypes),p=t.length>0&&!(0===a.length&&1===t.length&&(0,r.schemaHasRulesForType)(e,t[0]));if(p){const r=f(t,i,s.strictNumbers,c.Wrong);n.if(r,(()=>{a.length?function(e,t,n){const{gen:i,data:r,opts:s}=e,a=i.let("dataType",o._`typeof ${r}`),c=i.let("coerced",o._`undefined`);"array"===s.coerceTypes&&i.if(o._`${a} == 'object' && Array.isArray(${r}) && ${r}.length == 1`,(()=>i.assign(r,o._`${r}[0]`).assign(a,o._`typeof ${r}`).if(f(t,r,s.strictNumbers),(()=>i.assign(c,r))))),i.if(o._`${c} !== undefined`);for(const e of n)(d.has(e)||"array"===e&&"array"===s.coerceTypes)&&p(e);function p(e){switch(e){case"string":return void i.elseIf(o._`${a} == "number" || ${a} == "boolean"`).assign(c,o._`"" + ${r}`).elseIf(o._`${r} === null`).assign(c,o._`""`);case"number":return void i.elseIf(o._`${a} == "boolean" || ${r} === null || (${a} == "string" && ${r} && ${r} == +${r})`).assign(c,o._`+${r}`);case"integer":return void i.elseIf(o._`${a} === "boolean" || ${r} === null || (${a} === "string" && ${r} && ${r} == +${r} && !(${r} % 1))`).assign(c,o._`+${r}`);case"boolean":return void i.elseIf(o._`${r} === "false" || ${r} === 0 || ${r} === null`).assign(c,!1).elseIf(o._`${r} === "true" || ${r} === 1`).assign(c,!0);case"null":return i.elseIf(o._`${r} === "" || ${r} === 0 || ${r} === false`),void i.assign(c,null);case"array":i.elseIf(o._`${a} === "string" || ${a} === "number" || ${a} === "boolean" || ${r} === null`).assign(c,o._`[${r}]`)}}i.else(),m(e),i.endIf(),i.if(o._`${c} !== undefined`,(()=>{i.assign(r,c),function({gen:e,parentData:t,parentDataProperty:n},i){e.if(o._`${t} !== undefined`,(()=>e.assign(o._`${t}[${n}]`,i)))}(e,c)}))}(e,t,a):m(e)}))}return p};const d=new Set(["string","number","integer","boolean","null"]);function l(e,t,n,i=c.Correct){const r=i===c.Correct?o.operators.EQ:o.operators.NEQ;let s;switch(e){case"null":return o._`${t} ${r} null`;case"array":s=o._`Array.isArray(${t})`;break;case"object":s=o._`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":s=a(o._`!(${t} % 1) && !isNaN(${t})`);break;case"number":s=a();break;default:return o._`typeof ${t} ${r} ${e}`}return i===c.Correct?s:(0,o.not)(s);function a(e=o.nil){return(0,o.and)(o._`typeof ${t} == "number"`,e,n?o._`isFinite(${t})`:o.nil)}}function f(e,t,n,i){if(1===e.length)return l(e[0],t,n,i);let r;const s=(0,a.toHash)(e);if(s.array&&s.object){const e=o._`typeof ${t} != "object"`;r=s.null?e:o._`!${t} || ${e}`,delete s.null,delete s.array,delete s.object}else r=o.nil;s.number&&delete s.integer;for(const e in s)r=(0,o.and)(r,l(e,t,n,i));return r}t.checkDataType=l,t.checkDataTypes=f;const u={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>"string"==typeof e?o._`{type: ${e}}`:o._`{type: ${t}}`};function m(e){const t=function(e){const{gen:t,data:n,schema:i}=e,r=(0,a.schemaRefOrVal)(e,i,"type");return{gen:t,keyword:"type",data:n,schema:i.type,schemaCode:r,schemaValue:r,parentSchema:i,params:{},it:e}}(e);(0,s.reportError)(t,u)}t.reportTypeError=m},66809:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.assignDefaults=void 0;const i=n(16008),r=n(8199);function s(e,t,n){const{gen:s,compositeRule:o,data:a,opts:c}=e;if(void 0===n)return;const p=i._`${a}${(0,i.getProperty)(t)}`;if(o)return void(0,r.checkStrictMode)(e,`default is ignored for: ${p}`);let d=i._`${p} === undefined`;"empty"===c.useDefaults&&(d=i._`${d} || ${p} === null || ${p} === ""`),s.if(d,i._`${p} = ${(0,i.stringify)(n)}`)}t.assignDefaults=function(e,t){const{properties:n,items:i}=e.schema;if("object"===t&&n)for(const t in n)s(e,t,n[t].default);else"array"===t&&Array.isArray(i)&&i.forEach(((t,n)=>s(e,n,t.default)))}},32445:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getData=t.KeywordCxt=t.validateFunctionCode=void 0;const i=n(52733),r=n(57607),s=n(73967),o=n(57607),a=n(66809),c=n(39782),p=n(19706),d=n(16008),l=n(18090),f=n(90178),u=n(8199),m=n(60512);function h({gen:e,validateName:t,schema:n,schemaEnv:i,opts:r},s){r.code.es5?e.func(t,d._`${l.default.data}, ${l.default.valCxt}`,i.$async,(()=>{e.code(d._`"use strict"; ${y(n,r)}`),function(e,t){e.if(l.default.valCxt,(()=>{e.var(l.default.instancePath,d._`${l.default.valCxt}.${l.default.instancePath}`),e.var(l.default.parentData,d._`${l.default.valCxt}.${l.default.parentData}`),e.var(l.default.parentDataProperty,d._`${l.default.valCxt}.${l.default.parentDataProperty}`),e.var(l.default.rootData,d._`${l.default.valCxt}.${l.default.rootData}`),t.dynamicRef&&e.var(l.default.dynamicAnchors,d._`${l.default.valCxt}.${l.default.dynamicAnchors}`)}),(()=>{e.var(l.default.instancePath,d._`""`),e.var(l.default.parentData,d._`undefined`),e.var(l.default.parentDataProperty,d._`undefined`),e.var(l.default.rootData,l.default.data),t.dynamicRef&&e.var(l.default.dynamicAnchors,d._`{}`)}))}(e,r),e.code(s)})):e.func(t,d._`${l.default.data}, ${function(e){return d._`{${l.default.instancePath}="", ${l.default.parentData}, ${l.default.parentDataProperty}, ${l.default.rootData}=${l.default.data}${e.dynamicRef?d._`, ${l.default.dynamicAnchors}={}`:d.nil}}={}`}(r)}`,i.$async,(()=>e.code(y(n,r)).code(s)))}function y(e,t){const n="object"==typeof e&&e[t.schemaId];return n&&(t.code.source||t.code.process)?d._`/*# sourceURL=${n} */`:d.nil}function g({schema:e,self:t}){if("boolean"==typeof e)return!e;for(const n in e)if(t.RULES.all[n])return!0;return!1}function b(e){return"boolean"!=typeof e.schema}function v(e){(0,u.checkUnknownRules)(e),function(e){const{schema:t,errSchemaPath:n,opts:i,self:r}=e;t.$ref&&i.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(t,r.RULES)&&r.logger.warn(`$ref: keywords ignored in schema at path "${n}"`)}(e)}function j(e,t){if(e.opts.jtd)return x(e,[],!1,t);const n=(0,r.getSchemaTypes)(e.schema);x(e,n,!(0,r.coerceAndCheckDataType)(e,n),t)}function $({gen:e,schemaEnv:t,schema:n,errSchemaPath:i,opts:r}){const s=n.$comment;if(!0===r.$comment)e.code(d._`${l.default.self}.logger.log(${s})`);else if("function"==typeof r.$comment){const n=d.str`${i}/$comment`,r=e.scopeValue("root",{ref:t.root});e.code(d._`${l.default.self}.opts.$comment(${s}, ${n}, ${r}.schema)`)}}function x(e,t,n,i){const{gen:r,schema:a,data:c,allErrors:p,opts:f,self:m}=e,{RULES:h}=m;function y(u){(0,s.shouldUseGroup)(a,u)&&(u.type?(r.if((0,o.checkDataType)(u.type,c,f.strictNumbers)),_(e,u),1===t.length&&t[0]===u.type&&n&&(r.else(),(0,o.reportTypeError)(e)),r.endIf()):_(e,u),p||r.if(d._`${l.default.errors} === ${i||0}`))}!a.$ref||!f.ignoreKeywordsWithRef&&(0,u.schemaHasRulesButRef)(a,h)?(f.jtd||function(e,t){!e.schemaEnv.meta&&e.opts.strictTypes&&(function(e,t){t.length&&(e.dataTypes.length?(t.forEach((t=>{w(e.dataTypes,t)||S(e,`type "${t}" not allowed by context "${e.dataTypes.join(",")}"`)})),function(e,t){const n=[];for(const i of e.dataTypes)w(t,i)?n.push(i):t.includes("integer")&&"number"===i&&n.push("integer");e.dataTypes=n}(e,t)):e.dataTypes=t)}(e,t),e.opts.allowUnionTypes||function(e,t){t.length>1&&(2!==t.length||!t.includes("null"))&&S(e,"use allowUnionTypes to allow union type keyword")}(e,t),function(e,t){const n=e.self.RULES.all;for(const i in n){const r=n[i];if("object"==typeof r&&(0,s.shouldUseRule)(e.schema,r)){const{type:n}=r.definition;n.length&&!n.some((e=>{return i=e,(n=t).includes(i)||"number"===i&&n.includes("integer");var n,i}))&&S(e,`missing type "${n.join(",")}" for keyword "${i}"`)}}}(e,e.dataTypes))}(e,t),r.block((()=>{for(const e of h.rules)y(e);y(h.post)}))):r.block((()=>O(e,"$ref",h.all.$ref.definition)))}function _(e,t){const{gen:n,schema:i,opts:{useDefaults:r}}=e;r&&(0,a.assignDefaults)(e,t.type),n.block((()=>{for(const n of t.rules)(0,s.shouldUseRule)(i,n)&&O(e,n.keyword,n.definition,t.type)}))}function w(e,t){return e.includes(t)||"integer"===t&&e.includes("number")}function S(e,t){t+=` at "${e.schemaEnv.baseId+e.errSchemaPath}" (strictTypes)`,(0,u.checkStrictMode)(e,t,e.opts.strictTypes)}t.validateFunctionCode=function(e){b(e)&&(v(e),g(e))?function(e){const{schema:t,opts:n,gen:i}=e;h(e,(()=>{n.$comment&&t.$comment&&$(e),function(e){const{schema:t,opts:n}=e;void 0!==t.default&&n.useDefaults&&n.strictSchema&&(0,u.checkStrictMode)(e,"default is ignored in the schema root")}(e),i.let(l.default.vErrors,null),i.let(l.default.errors,0),n.unevaluated&&function(e){const{gen:t,validateName:n}=e;e.evaluated=t.const("evaluated",d._`${n}.evaluated`),t.if(d._`${e.evaluated}.dynamicProps`,(()=>t.assign(d._`${e.evaluated}.props`,d._`undefined`))),t.if(d._`${e.evaluated}.dynamicItems`,(()=>t.assign(d._`${e.evaluated}.items`,d._`undefined`)))}(e),j(e),function(e){const{gen:t,schemaEnv:n,validateName:i,ValidationError:r,opts:s}=e;n.$async?t.if(d._`${l.default.errors} === 0`,(()=>t.return(l.default.data)),(()=>t.throw(d._`new ${r}(${l.default.vErrors})`))):(t.assign(d._`${i}.errors`,l.default.vErrors),s.unevaluated&&function({gen:e,evaluated:t,props:n,items:i}){n instanceof d.Name&&e.assign(d._`${t}.props`,n),i instanceof d.Name&&e.assign(d._`${t}.items`,i)}(e),t.return(d._`${l.default.errors} === 0`))}(e)}))}(e):h(e,(()=>(0,i.topBoolOrEmptySchema)(e)))};class P{constructor(e,t,n){if((0,c.validateKeywordUsage)(e,t,n),this.gen=e.gen,this.allErrors=e.allErrors,this.keyword=n,this.data=e.data,this.schema=e.schema[n],this.$data=t.$data&&e.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,u.schemaRefOrVal)(e,this.schema,n,this.$data),this.schemaType=t.schemaType,this.parentSchema=e.schema,this.params={},this.it=e,this.def=t,this.$data)this.schemaCode=e.gen.const("vSchema",T(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,c.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:!1!==t.errors)&&(this.errsCount=e.gen.const("_errs",l.default.errors))}result(e,t,n){this.failResult((0,d.not)(e),t,n)}failResult(e,t,n){this.gen.if(e),n?n():this.error(),t?(this.gen.else(),t(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(e,t){this.failResult((0,d.not)(e),void 0,t)}fail(e){if(void 0===e)return this.error(),void(this.allErrors||this.gen.if(!1));this.gen.if(e),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(e){if(!this.$data)return this.fail(e);const{schemaCode:t}=this;this.fail(d._`${t} !== undefined && (${(0,d.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t)return this.setParams(t),this._error(e,n),void this.setParams({});this._error(e,n)}_error(e,t){(e?m.reportExtraError:m.reportError)(this,this.def.error,t)}$dataError(){(0,m.reportError)(this,this.def.$dataError||m.keyword$DataError)}reset(){if(void 0===this.errsCount)throw new Error('add "trackErrors" to keyword definition');(0,m.resetErrorsCount)(this.gen,this.errsCount)}ok(e){this.allErrors||this.gen.if(e)}setParams(e,t){t?Object.assign(this.params,e):this.params=e}block$data(e,t,n=d.nil){this.gen.block((()=>{this.check$data(e,n),t()}))}check$data(e=d.nil,t=d.nil){if(!this.$data)return;const{gen:n,schemaCode:i,schemaType:r,def:s}=this;n.if((0,d.or)(d._`${i} === undefined`,t)),e!==d.nil&&n.assign(e,!0),(r.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==d.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:i,it:r}=this;return(0,d.or)(function(){if(n.length){if(!(t instanceof d.Name))throw new Error("ajv implementation error");const e=Array.isArray(n)?n:[n];return d._`${(0,o.checkDataTypes)(e,t,r.opts.strictNumbers,o.DataType.Wrong)}`}return d.nil}(),function(){if(i.validateSchema){const n=e.scopeValue("validate$data",{ref:i.validateSchema});return d._`!${n}(${t})`}return d.nil}())}subschema(e,t){const n=(0,p.getSubschema)(this.it,e);(0,p.extendSubschemaData)(n,this.it,e),(0,p.extendSubschemaMode)(n,e);const r={...this.it,...n,items:void 0,props:void 0};return function(e,t){b(e)&&(v(e),g(e))?function(e,t){const{schema:n,gen:i,opts:r}=e;r.$comment&&n.$comment&&$(e),function(e){const t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,f.resolveUrl)(e.opts.uriResolver,e.baseId,t))}(e),function(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}(e);const s=i.const("_errs",l.default.errors);j(e,s),i.var(t,d._`${s} === ${l.default.errors}`)}(e,t):(0,i.boolOrEmptySchema)(e,t)}(r,t),r}mergeEvaluated(e,t){const{it:n,gen:i}=this;n.opts.unevaluated&&(!0!==n.props&&void 0!==e.props&&(n.props=u.mergeEvaluated.props(i,e.props,n.props,t)),!0!==n.items&&void 0!==e.items&&(n.items=u.mergeEvaluated.items(i,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:i}=this;if(n.opts.unevaluated&&(!0!==n.props||!0!==n.items))return i.if(t,(()=>this.mergeEvaluated(e,d.Name))),!0}}function O(e,t,n,i){const r=new P(e,n,t);"code"in n?n.code(r,i):r.$data&&n.validate?(0,c.funcKeywordCode)(r,n):"macro"in n?(0,c.macroKeywordCode)(r,n):(n.compile||n.validate)&&(0,c.funcKeywordCode)(r,n)}t.KeywordCxt=P;const E=/^\/(?:[^~]|~0|~1)*$/,A=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T(e,{dataLevel:t,dataNames:n,dataPathArr:i}){let r,s;if(""===e)return l.default.rootData;if("/"===e[0]){if(!E.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);r=e,s=l.default.rootData}else{const o=A.exec(e);if(!o)throw new Error(`Invalid JSON-pointer: ${e}`);const a=+o[1];if(r=o[2],"#"===r){if(a>=t)throw new Error(c("property/index",a));return i[t-a]}if(a>t)throw new Error(c("data",a));if(s=n[t-a],!r)return s}let o=s;const a=r.split("/");for(const e of a)e&&(s=d._`${s}${(0,d.getProperty)((0,u.unescapeJsonPointer)(e))}`,o=d._`${o} && ${s}`);return o;function c(e,n){return`Cannot access ${e} ${n} levels up, current level is ${t}`}}t.getData=T},39782:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateKeywordUsage=t.validSchemaType=t.funcKeywordCode=t.macroKeywordCode=void 0;const i=n(16008),r=n(18090),s=n(50144),o=n(60512);function a(e){const{gen:t,data:n,it:r}=e;t.if(r.parentData,(()=>t.assign(n,i._`${r.parentData}[${r.parentDataProperty}]`)))}function c(e,t,n){if(void 0===n)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword","function"==typeof n?{ref:n}:{ref:n,code:(0,i.stringify)(n)})}t.macroKeywordCode=function(e,t){const{gen:n,keyword:r,schema:s,parentSchema:o,it:a}=e,p=t.macro.call(a.self,s,o,a),d=c(n,r,p);!1!==a.opts.validateSchema&&a.self.validateSchema(p,!0);const l=n.name("valid");e.subschema({schema:p,schemaPath:i.nil,errSchemaPath:`${a.errSchemaPath}/${r}`,topSchemaRef:d,compositeRule:!0},l),e.pass(l,(()=>e.error(!0)))},t.funcKeywordCode=function(e,t){var n;const{gen:p,keyword:d,schema:l,parentSchema:f,$data:u,it:m}=e;!function({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}(m,t);const h=!u&&t.compile?t.compile.call(m.self,l,f,m):t.validate,y=c(p,d,h),g=p.let("valid");function b(n=(t.async?i._`await `:i.nil)){const o=m.opts.passContext?r.default.this:r.default.self,a=!("compile"in t&&!u||!1===t.schema);p.assign(g,i._`${n}${(0,s.callValidateCode)(e,y,o,a)}`,t.modifying)}function v(e){var n;p.if((0,i.not)(null!==(n=t.valid)&&void 0!==n?n:g),e)}e.block$data(g,(function(){if(!1===t.errors)b(),t.modifying&&a(e),v((()=>e.error()));else{const n=t.async?function(){const e=p.let("ruleErrs",null);return p.try((()=>b(i._`await `)),(t=>p.assign(g,!1).if(i._`${t} instanceof ${m.ValidationError}`,(()=>p.assign(e,i._`${t}.errors`)),(()=>p.throw(t))))),e}():function(){const e=i._`${y}.errors`;return p.assign(e,null),b(i.nil),e}();t.modifying&&a(e),v((()=>function(e,t){const{gen:n}=e;n.if(i._`Array.isArray(${t})`,(()=>{n.assign(r.default.vErrors,i._`${r.default.vErrors} === null ? ${t} : ${r.default.vErrors}.concat(${t})`).assign(r.default.errors,i._`${r.default.vErrors}.length`),(0,o.extendErrors)(e)}),(()=>e.error()))}(e,n)))}})),e.ok(null!==(n=t.valid)&&void 0!==n?n:g)},t.validSchemaType=function(e,t,n=!1){return!t.length||t.some((t=>"array"===t?Array.isArray(e):"object"===t?e&&"object"==typeof e&&!Array.isArray(e):typeof e==t||n&&void 0===e))},t.validateKeywordUsage=function({schema:e,opts:t,self:n,errSchemaPath:i},r,s){if(Array.isArray(r.keyword)?!r.keyword.includes(s):r.keyword!==s)throw new Error("ajv implementation error");const o=r.dependencies;if(null==o?void 0:o.some((t=>!Object.prototype.hasOwnProperty.call(e,t))))throw new Error(`parent schema must have dependencies of ${s}: ${o.join(",")}`);if(r.validateSchema&&!r.validateSchema(e[s])){const e=`keyword "${s}" value is invalid at path "${i}": `+n.errorsText(r.validateSchema.errors);if("log"!==t.validateSchema)throw new Error(e);n.logger.error(e)}}},19706:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extendSubschemaMode=t.extendSubschemaData=t.getSubschema=void 0;const i=n(16008),r=n(8199);t.getSubschema=function(e,{keyword:t,schemaProp:n,schema:s,schemaPath:o,errSchemaPath:a,topSchemaRef:c}){if(void 0!==t&&void 0!==s)throw new Error('both "keyword" and "schema" passed, only one allowed');if(void 0!==t){const s=e.schema[t];return void 0===n?{schema:s,schemaPath:i._`${e.schemaPath}${(0,i.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:s[n],schemaPath:i._`${e.schemaPath}${(0,i.getProperty)(t)}${(0,i.getProperty)(n)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,r.escapeFragment)(n)}`}}if(void 0!==s){if(void 0===o||void 0===a||void 0===c)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:s,schemaPath:o,topSchemaRef:c,errSchemaPath:a}}throw new Error('either "keyword" or "schema" must be passed')},t.extendSubschemaData=function(e,t,{dataProp:n,dataPropType:s,data:o,dataTypes:a,propertyName:c}){if(void 0!==o&&void 0!==n)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:p}=t;if(void 0!==n){const{errorPath:o,dataPathArr:a,opts:c}=t;d(p.let("data",i._`${t.data}${(0,i.getProperty)(n)}`,!0)),e.errorPath=i.str`${o}${(0,r.getErrorPath)(n,s,c.jsPropertySyntax)}`,e.parentDataProperty=i._`${n}`,e.dataPathArr=[...a,e.parentDataProperty]}function d(n){e.data=n,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,n]}void 0!==o&&(d(o instanceof i.Name?o:p.let("data",o,!0)),void 0!==c&&(e.propertyName=c)),a&&(e.dataTypes=a)},t.extendSubschemaMode=function(e,{jtdDiscriminator:t,jtdMetadata:n,compositeRule:i,createErrors:r,allErrors:s}){void 0!==i&&(e.compositeRule=i),void 0!==r&&(e.createErrors=r),void 0!==s&&(e.allErrors=s),e.jtdDiscriminator=t,e.jtdMetadata=n}},75931:(e,t,n)=>{"use strict";var i=n(25108);Object.defineProperty(t,"__esModule",{value:!0}),t.CodeGen=t.Name=t.nil=t.stringify=t.str=t._=t.KeywordCxt=void 0;var r=n(32445);Object.defineProperty(t,"KeywordCxt",{enumerable:!0,get:function(){return r.KeywordCxt}});var s=n(16008);Object.defineProperty(t,"_",{enumerable:!0,get:function(){return s._}}),Object.defineProperty(t,"str",{enumerable:!0,get:function(){return s.str}}),Object.defineProperty(t,"stringify",{enumerable:!0,get:function(){return s.stringify}}),Object.defineProperty(t,"nil",{enumerable:!0,get:function(){return s.nil}}),Object.defineProperty(t,"Name",{enumerable:!0,get:function(){return s.Name}}),Object.defineProperty(t,"CodeGen",{enumerable:!0,get:function(){return s.CodeGen}});const o=n(51714),a=n(58366),c=n(28761),p=n(41502),d=n(16008),l=n(90178),f=n(57607),u=n(8199),m=n(20655),h=n(79546),y=(e,t)=>new RegExp(e,t);y.code="new RegExp";const g=["removeAdditional","useDefaults","coerceTypes"],b=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),v={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},j={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'};function $(e){var t,n,i,r,s,o,a,c,p,d,l,f,u,m,g,b,v,j,$,x,_,w,S,P,O;const E=e.strict,A=null===(t=e.code)||void 0===t?void 0:t.optimize,T=!0===A||void 0===A?1:A||0,I=null!==(i=null===(n=e.code)||void 0===n?void 0:n.regExp)&&void 0!==i?i:y,k=null!==(r=e.uriResolver)&&void 0!==r?r:h.default;return{strictSchema:null===(o=null!==(s=e.strictSchema)&&void 0!==s?s:E)||void 0===o||o,strictNumbers:null===(c=null!==(a=e.strictNumbers)&&void 0!==a?a:E)||void 0===c||c,strictTypes:null!==(d=null!==(p=e.strictTypes)&&void 0!==p?p:E)&&void 0!==d?d:"log",strictTuples:null!==(f=null!==(l=e.strictTuples)&&void 0!==l?l:E)&&void 0!==f?f:"log",strictRequired:null!==(m=null!==(u=e.strictRequired)&&void 0!==u?u:E)&&void 0!==m&&m,code:e.code?{...e.code,optimize:T,regExp:I}:{optimize:T,regExp:I},loopRequired:null!==(g=e.loopRequired)&&void 0!==g?g:200,loopEnum:null!==(b=e.loopEnum)&&void 0!==b?b:200,meta:null===(v=e.meta)||void 0===v||v,messages:null===(j=e.messages)||void 0===j||j,inlineRefs:null===($=e.inlineRefs)||void 0===$||$,schemaId:null!==(x=e.schemaId)&&void 0!==x?x:"$id",addUsedSchema:null===(_=e.addUsedSchema)||void 0===_||_,validateSchema:null===(w=e.validateSchema)||void 0===w||w,validateFormats:null===(S=e.validateFormats)||void 0===S||S,unicodeRegExp:null===(P=e.unicodeRegExp)||void 0===P||P,int32range:null===(O=e.int32range)||void 0===O||O,uriResolver:k}}class x{constructor(e={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,e=this.opts={...e,...$(e)};const{es5:t,lines:n}=this.opts.code;this.scope=new d.ValueScope({scope:{},prefixes:b,es5:t,lines:n}),this.logger=function(e){if(!1===e)return A;if(void 0===e)return i;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}(e.logger);const r=e.validateFormats;e.validateFormats=!1,this.RULES=(0,c.getRules)(),_.call(this,v,e,"NOT SUPPORTED"),_.call(this,j,e,"DEPRECATED","warn"),this._metaOpts=E.call(this),e.formats&&P.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),e.keywords&&O.call(this,e.keywords),"object"==typeof e.meta&&this.addMetaSchema(e.meta),S.call(this),e.validateFormats=r}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:e,meta:t,schemaId:n}=this.opts;let i=m;"id"===n&&(i={...m},i.id=i.$id,delete i.$id),t&&e&&this.addMetaSchema(i,i[n],!1)}defaultMeta(){const{meta:e,schemaId:t}=this.opts;return this.opts.defaultMeta="object"==typeof e?e[t]||e:void 0}validate(e,t){let n;if("string"==typeof e){if(n=this.getSchema(e),!n)throw new Error(`no schema with key or ref "${e}"`)}else n=this.compile(e);const i=n(t);return"$async"in n||(this.errors=n.errors),i}compile(e,t){const n=this._addSchema(e,t);return n.validate||this._compileSchemaEnv(n)}compileAsync(e,t){if("function"!=typeof this.opts.loadSchema)throw new Error("options.loadSchema should be a function");const{loadSchema:n}=this.opts;return i.call(this,e,t);async function i(e,t){await r.call(this,e.$schema);const n=this._addSchema(e,t);return n.validate||s.call(this,n)}async function r(e){e&&!this.getSchema(e)&&await i.call(this,{$ref:e},!0)}async function s(e){try{return this._compileSchemaEnv(e)}catch(t){if(!(t instanceof a.default))throw t;return o.call(this,t),await c.call(this,t.missingSchema),s.call(this,e)}}function o({missingSchema:e,missingRef:t}){if(this.refs[e])throw new Error(`AnySchema ${e} is loaded but ${t} cannot be resolved`)}async function c(e){const n=await p.call(this,e);this.refs[e]||await r.call(this,n.$schema),this.refs[e]||this.addSchema(n,e,t)}async function p(e){const t=this._loading[e];if(t)return t;try{return await(this._loading[e]=n(e))}finally{delete this._loading[e]}}}addSchema(e,t,n,i=this.opts.validateSchema){if(Array.isArray(e)){for(const t of e)this.addSchema(t,void 0,n,i);return this}let r;if("object"==typeof e){const{schemaId:t}=this.opts;if(r=e[t],void 0!==r&&"string"!=typeof r)throw new Error(`schema ${t} must be string`)}return t=(0,l.normalizeId)(t||r),this._checkUnique(t),this.schemas[t]=this._addSchema(e,n,t,i,!0),this}addMetaSchema(e,t,n=this.opts.validateSchema){return this.addSchema(e,t,!0,n),this}validateSchema(e,t){if("boolean"==typeof e)return!0;let n;if(n=e.$schema,void 0!==n&&"string"!=typeof n)throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const i=this.validate(n,e);if(!i&&t){const e="schema is invalid: "+this.errorsText();if("log"!==this.opts.validateSchema)throw new Error(e);this.logger.error(e)}return i}getSchema(e){let t;for(;"string"==typeof(t=w.call(this,e));)e=t;if(void 0===t){const{schemaId:n}=this.opts,i=new p.SchemaEnv({schema:{},schemaId:n});if(t=p.resolveSchema.call(this,i,e),!t)return;this.refs[e]=t}return t.validate||this._compileSchemaEnv(t)}removeSchema(e){if(e instanceof RegExp)return this._removeAllSchemas(this.schemas,e),this._removeAllSchemas(this.refs,e),this;switch(typeof e){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const t=w.call(this,e);return"object"==typeof t&&this._cache.delete(t.schema),delete this.schemas[e],delete this.refs[e],this}case"object":{const t=e;this._cache.delete(t);let n=e[this.opts.schemaId];return n&&(n=(0,l.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(e){for(const t of e)this.addKeyword(t);return this}addKeyword(e,t){let n;if("string"==typeof e)n=e,"object"==typeof t&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),t.keyword=n);else{if("object"!=typeof e||void 0!==t)throw new Error("invalid addKeywords parameters");if(n=(t=e).keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}if(I.call(this,n,t),!t)return(0,u.eachItem)(n,(e=>k.call(this,e))),this;R.call(this,t);const i={...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)};return(0,u.eachItem)(n,0===i.type.length?e=>k.call(this,e,i):e=>i.type.forEach((t=>k.call(this,e,i,t)))),this}getKeyword(e){const t=this.RULES.all[e];return"object"==typeof t?t.definition:!!t}removeKeyword(e){const{RULES:t}=this;delete t.keywords[e],delete t.all[e];for(const n of t.rules){const t=n.rules.findIndex((t=>t.keyword===e));t>=0&&n.rules.splice(t,1)}return this}addFormat(e,t){return"string"==typeof t&&(t=new RegExp(t)),this.formats[e]=t,this}errorsText(e=this.errors,{separator:t=", ",dataVar:n="data"}={}){return e&&0!==e.length?e.map((e=>`${n}${e.instancePath} ${e.message}`)).reduce(((e,n)=>e+t+n)):"No errors"}$dataMetaSchema(e,t){const n=this.RULES.all;e=JSON.parse(JSON.stringify(e));for(const i of t){const t=i.split("/").slice(1);let r=e;for(const e of t)r=r[e];for(const e in n){const t=n[e];if("object"!=typeof t)continue;const{$data:i}=t.definition,s=r[e];i&&s&&(r[e]=N(s))}}return e}_removeAllSchemas(e,t){for(const n in e){const i=e[n];t&&!t.test(n)||("string"==typeof i?delete e[n]:i&&!i.meta&&(this._cache.delete(i.schema),delete e[n]))}}_addSchema(e,t,n,i=this.opts.validateSchema,r=this.opts.addUsedSchema){let s;const{schemaId:o}=this.opts;if("object"==typeof e)s=e[o];else{if(this.opts.jtd)throw new Error("schema must be object");if("boolean"!=typeof e)throw new Error("schema must be object or boolean")}let a=this._cache.get(e);if(void 0!==a)return a;n=(0,l.normalizeId)(s||n);const c=l.getSchemaRefs.call(this,e,n);return a=new p.SchemaEnv({schema:e,schemaId:o,meta:t,baseId:n,localRefs:c}),this._cache.set(a.schema,a),r&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=a),i&&this.validateSchema(e,!0),a}_checkUnique(e){if(this.schemas[e]||this.refs[e])throw new Error(`schema with key or id "${e}" already exists`)}_compileSchemaEnv(e){if(e.meta?this._compileMetaSchema(e):p.compileSchema.call(this,e),!e.validate)throw new Error("ajv implementation error");return e.validate}_compileMetaSchema(e){const t=this.opts;this.opts=this._metaOpts;try{p.compileSchema.call(this,e)}finally{this.opts=t}}}function _(e,t,n,i="error"){for(const r in e){const s=r;s in t&&this.logger[i](`${n}: option ${r}. ${e[s]}`)}}function w(e){return e=(0,l.normalizeId)(e),this.schemas[e]||this.refs[e]}function S(){const e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(const t in e)this.addSchema(e[t],t)}function P(){for(const e in this.opts.formats){const t=this.opts.formats[e];t&&this.addFormat(e,t)}}function O(e){if(Array.isArray(e))this.addVocabulary(e);else{this.logger.warn("keywords option as map is deprecated, pass array");for(const t in e){const n=e[t];n.keyword||(n.keyword=t),this.addKeyword(n)}}}function E(){const e={...this.opts};for(const t of g)delete e[t];return e}t.default=x,x.ValidationError=o.default,x.MissingRefError=a.default;const A={log(){},warn(){},error(){}},T=/^[a-z_$][a-z0-9_$:-]*$/i;function I(e,t){const{RULES:n}=this;if((0,u.eachItem)(e,(e=>{if(n.keywords[e])throw new Error(`Keyword ${e} is already defined`);if(!T.test(e))throw new Error(`Keyword ${e} has invalid name`)})),t&&t.$data&&!("code"in t)&&!("validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function k(e,t,n){var i;const r=null==t?void 0:t.post;if(n&&r)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:s}=this;let o=r?s.post:s.rules.find((({type:e})=>e===n));if(o||(o={type:n,rules:[]},s.rules.push(o)),s.keywords[e]=!0,!t)return;const a={keyword:e,definition:{...t,type:(0,f.getJSONTypes)(t.type),schemaType:(0,f.getJSONTypes)(t.schemaType)}};t.before?M.call(this,o,a,t.before):o.rules.push(a),s.all[e]=a,null===(i=t.implements)||void 0===i||i.forEach((e=>this.addKeyword(e)))}function M(e,t,n){const i=e.rules.findIndex((e=>e.keyword===n));i>=0?e.rules.splice(i,0,t):(e.rules.push(t),this.logger.warn(`rule ${n} is not defined`))}function R(e){let{metaSchema:t}=e;void 0!==t&&(e.$data&&this.opts.$data&&(t=N(t)),e.validateSchema=this.compile(t,!0))}const q={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function N(e){return{anyOf:[e,q]}}},37692:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(64063);i.code='require("ajv/dist/runtime/equal").default',t.default=i},69211:(e,t)=>{"use strict";function n(e){const t=e.length;let n,i=0,r=0;for(;r=55296&&n<=56319&&r{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(60540);i.code='require("ajv/dist/runtime/uri").default',t.default=i},51714:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});class n extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}t.default=n},90083:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateAdditionalItems=void 0;const i=n(16008),r=n(8199),s={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:{message:({params:{len:e}})=>i.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>i._`{limit: ${e}}`},code(e){const{parentSchema:t,it:n}=e,{items:i}=t;Array.isArray(i)?o(e,i):(0,r.checkStrictMode)(n,'"additionalItems" is ignored when "items" is not an array of schemas')}};function o(e,t){const{gen:n,schema:s,data:o,keyword:a,it:c}=e;c.items=!0;const p=n.const("len",i._`${o}.length`);if(!1===s)e.setParams({len:t.length}),e.pass(i._`${p} <= ${t.length}`);else if("object"==typeof s&&!(0,r.alwaysValidSchema)(c,s)){const s=n.var("valid",i._`${p} <= ${t.length}`);n.if((0,i.not)(s),(()=>function(s){n.forRange("i",t.length,p,(t=>{e.subschema({keyword:a,dataProp:t,dataPropType:r.Type.Num},s),c.allErrors||n.if((0,i.not)(s),(()=>n.break()))}))}(s))),e.ok(s)}}t.validateAdditionalItems=o,t.default=s},46160:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(50144),r=n(16008),s=n(18090),o=n(8199),a={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:{message:"must NOT have additional properties",params:({params:e})=>r._`{additionalProperty: ${e.additionalProperty}}`},code(e){const{gen:t,schema:n,parentSchema:a,data:c,errsCount:p,it:d}=e;if(!p)throw new Error("ajv implementation error");const{allErrors:l,opts:f}=d;if(d.props=!0,"all"!==f.removeAdditional&&(0,o.alwaysValidSchema)(d,n))return;const u=(0,i.allSchemaProperties)(a.properties),m=(0,i.allSchemaProperties)(a.patternProperties);function h(e){t.code(r._`delete ${c}[${e}]`)}function y(i){if("all"===f.removeAdditional||f.removeAdditional&&!1===n)h(i);else{if(!1===n)return e.setParams({additionalProperty:i}),e.error(),void(l||t.break());if("object"==typeof n&&!(0,o.alwaysValidSchema)(d,n)){const n=t.name("valid");"failing"===f.removeAdditional?(g(i,n,!1),t.if((0,r.not)(n),(()=>{e.reset(),h(i)}))):(g(i,n),l||t.if((0,r.not)(n),(()=>t.break())))}}}function g(t,n,i){const r={keyword:"additionalProperties",dataProp:t,dataPropType:o.Type.Str};!1===i&&Object.assign(r,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(r,n)}t.forIn("key",c,(n=>{u.length||m.length?t.if(function(n){let s;if(u.length>8){const e=(0,o.schemaRefOrVal)(d,a.properties,"properties");s=(0,i.isOwnProperty)(t,e,n)}else s=u.length?(0,r.or)(...u.map((e=>r._`${n} === ${e}`))):r.nil;return m.length&&(s=(0,r.or)(s,...m.map((t=>r._`${(0,i.usePattern)(e,t)}.test(${n})`)))),(0,r.not)(s)}(n),(()=>y(n))):y(n)})),e.ok(r._`${p} === ${s.default.errors}`)}};t.default=a},81257:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8199),r={keyword:"allOf",schemaType:"array",code(e){const{gen:t,schema:n,it:r}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");const s=t.name("valid");n.forEach(((t,n)=>{if((0,i.alwaysValidSchema)(r,t))return;const o=e.subschema({keyword:"allOf",schemaProp:n},s);e.ok(s),e.mergeEvaluated(o)}))}};t.default=r},30407:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:n(50144).validateUnion,error:{message:"must match a schema in anyOf"}};t.default=i},58130:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:{message:({params:{min:e,max:t}})=>void 0===t?i.str`must contain at least ${e} valid item(s)`:i.str`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>void 0===t?i._`{minContains: ${e}}`:i._`{minContains: ${e}, maxContains: ${t}}`},code(e){const{gen:t,schema:n,parentSchema:s,data:o,it:a}=e;let c,p;const{minContains:d,maxContains:l}=s;a.opts.next?(c=void 0===d?1:d,p=l):c=1;const f=t.const("len",i._`${o}.length`);if(e.setParams({min:c,max:p}),void 0===p&&0===c)return void(0,r.checkStrictMode)(a,'"minContains" == 0 without "maxContains": "contains" keyword ignored');if(void 0!==p&&c>p)return(0,r.checkStrictMode)(a,'"minContains" > "maxContains" is always invalid'),void e.fail();if((0,r.alwaysValidSchema)(a,n)){let t=i._`${f} >= ${c}`;return void 0!==p&&(t=i._`${t} && ${f} <= ${p}`),void e.pass(t)}a.items=!0;const u=t.name("valid");function m(){const e=t.name("_valid"),n=t.let("count",0);h(e,(()=>t.if(e,(()=>function(e){t.code(i._`${e}++`),void 0===p?t.if(i._`${e} >= ${c}`,(()=>t.assign(u,!0).break())):(t.if(i._`${e} > ${p}`,(()=>t.assign(u,!1).break())),1===c?t.assign(u,!0):t.if(i._`${e} >= ${c}`,(()=>t.assign(u,!0))))}(n)))))}function h(n,i){t.forRange("i",0,f,(t=>{e.subschema({keyword:"contains",dataProp:t,dataPropType:r.Type.Num,compositeRule:!0},n),i()}))}void 0===p&&1===c?h(u,(()=>t.if(u,(()=>t.break())))):0===c?(t.let(u,!0),void 0!==p&&t.if(i._`${o}.length > 0`,m)):(t.let(u,!1),m()),e.result(u,(()=>e.reset()))}};t.default=s},49334:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateSchemaDeps=t.validatePropertyDeps=t.error=void 0;const i=n(16008),r=n(8199),s=n(50144);t.error={message:({params:{property:e,depsCount:t,deps:n}})=>{const r=1===t?"property":"properties";return i.str`must have ${r} ${n} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:n,missingProperty:r}})=>i._`{property: ${e}, missingProperty: ${r}, depsCount: ${t}, deps: ${n}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:t.error,code(e){const[t,n]=function({schema:e}){const t={},n={};for(const i in e)"__proto__"!==i&&((Array.isArray(e[i])?t:n)[i]=e[i]);return[t,n]}(e);a(e,t),c(e,n)}};function a(e,t=e.schema){const{gen:n,data:r,it:o}=e;if(0===Object.keys(t).length)return;const a=n.let("missing");for(const c in t){const p=t[c];if(0===p.length)continue;const d=(0,s.propertyInData)(n,r,c,o.opts.ownProperties);e.setParams({property:c,depsCount:p.length,deps:p.join(", ")}),o.allErrors?n.if(d,(()=>{for(const t of p)(0,s.checkReportMissingProp)(e,t)})):(n.if(i._`${d} && (${(0,s.checkMissingProp)(e,p,a)})`),(0,s.reportMissingProp)(e,a),n.else())}}function c(e,t=e.schema){const{gen:n,data:i,keyword:o,it:a}=e,c=n.name("valid");for(const p in t)(0,r.alwaysValidSchema)(a,t[p])||(n.if((0,s.propertyInData)(n,i,p,a.opts.ownProperties),(()=>{const t=e.subschema({keyword:o,schemaProp:p},c);e.mergeValidEvaluated(t,c)}),(()=>n.var(c,!0))),e.ok(c))}t.validatePropertyDeps=a,t.validateSchemaDeps=c,t.default=o},7719:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:{message:({params:e})=>i.str`must match "${e.ifClause}" schema`,params:({params:e})=>i._`{failingKeyword: ${e.ifClause}}`},code(e){const{gen:t,parentSchema:n,it:s}=e;void 0===n.then&&void 0===n.else&&(0,r.checkStrictMode)(s,'"if" without "then" and "else" is ignored');const a=o(s,"then"),c=o(s,"else");if(!a&&!c)return;const p=t.let("valid",!0),d=t.name("_valid");if(function(){const t=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},d);e.mergeEvaluated(t)}(),e.reset(),a&&c){const n=t.let("ifClause");e.setParams({ifClause:n}),t.if(d,l("then",n),l("else",n))}else a?t.if(d,l("then")):t.if((0,i.not)(d),l("else"));function l(n,r){return()=>{const s=e.subschema({keyword:n},d);t.assign(p,d),e.mergeValidEvaluated(s,p),r?t.assign(r,i._`${n}`):e.setParams({ifClause:n})}}e.pass(p,(()=>e.error(!0)))}};function o(e,t){const n=e.schema[t];return void 0!==n&&!(0,r.alwaysValidSchema)(e,n)}t.default=s},40980:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(90083),r=n(87444),s=n(95901),o=n(50077),a=n(58130),c=n(49334),p=n(13420),d=n(46160),l=n(9689),f=n(54773),u=n(11088),m=n(30407),h=n(42614),y=n(81257),g=n(7719),b=n(8181);t.default=function(e=!1){const t=[u.default,m.default,h.default,y.default,g.default,b.default,p.default,d.default,c.default,l.default,f.default];return e?t.push(r.default,o.default):t.push(i.default,s.default),t.push(a.default),t}},95901:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateTuple=void 0;const i=n(16008),r=n(8199),s=n(50144),o={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){const{schema:t,it:n}=e;if(Array.isArray(t))return a(e,"additionalItems",t);n.items=!0,(0,r.alwaysValidSchema)(n,t)||e.ok((0,s.validateArray)(e))}};function a(e,t,n=e.schema){const{gen:s,parentSchema:o,data:a,keyword:c,it:p}=e;!function(e){const{opts:i,errSchemaPath:s}=p,o=n.length,a=o===e.minItems&&(o===e.maxItems||!1===e[t]);if(i.strictTuples&&!a){const e=`"${c}" is ${o}-tuple, but minItems or maxItems/${t} are not specified or different at path "${s}"`;(0,r.checkStrictMode)(p,e,i.strictTuples)}}(o),p.opts.unevaluated&&n.length&&!0!==p.items&&(p.items=r.mergeEvaluated.items(s,n.length,p.items));const d=s.name("valid"),l=s.const("len",i._`${a}.length`);n.forEach(((t,n)=>{(0,r.alwaysValidSchema)(p,t)||(s.if(i._`${l} > ${n}`,(()=>e.subschema({keyword:c,schemaProp:n,dataProp:n},d))),e.ok(d))}))}t.validateTuple=a,t.default=o},50077:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s=n(50144),o=n(90083),a={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:{message:({params:{len:e}})=>i.str`must NOT have more than ${e} items`,params:({params:{len:e}})=>i._`{limit: ${e}}`},code(e){const{schema:t,parentSchema:n,it:i}=e,{prefixItems:a}=n;i.items=!0,(0,r.alwaysValidSchema)(i,t)||(a?(0,o.validateAdditionalItems)(e,a):e.ok((0,s.validateArray)(e)))}};t.default=a},11088:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8199),r={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){const{gen:t,schema:n,it:r}=e;if((0,i.alwaysValidSchema)(r,n))return void e.fail();const s=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},s),e.failResult(s,(()=>e.reset()),(()=>e.error()))},error:{message:"must NOT be valid"}};t.default=r},42614:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:{message:"must match exactly one schema in oneOf",params:({params:e})=>i._`{passingSchemas: ${e.passing}}`},code(e){const{gen:t,schema:n,parentSchema:s,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(o.opts.discriminator&&s.discriminator)return;const a=n,c=t.let("valid",!1),p=t.let("passing",null),d=t.name("_valid");e.setParams({passing:p}),t.block((function(){a.forEach(((n,s)=>{let a;(0,r.alwaysValidSchema)(o,n)?t.var(d,!0):a=e.subschema({keyword:"oneOf",schemaProp:s,compositeRule:!0},d),s>0&&t.if(i._`${d} && ${c}`).assign(c,!1).assign(p,i._`[${p}, ${s}]`).else(),t.if(d,(()=>{t.assign(c,!0),t.assign(p,s),a&&e.mergeEvaluated(a,i.Name)}))}))})),e.result(c,(()=>e.reset()),(()=>e.error(!0)))}};t.default=s},54773:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(50144),r=n(16008),s=n(8199),o=n(8199),a={keyword:"patternProperties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,data:a,parentSchema:c,it:p}=e,{opts:d}=p,l=(0,i.allSchemaProperties)(n),f=l.filter((e=>(0,s.alwaysValidSchema)(p,n[e])));if(0===l.length||f.length===l.length&&(!p.opts.unevaluated||!0===p.props))return;const u=d.strictSchema&&!d.allowMatchingProperties&&c.properties,m=t.name("valid");!0===p.props||p.props instanceof r.Name||(p.props=(0,o.evaluatedPropsToName)(t,p.props));const{props:h}=p;function y(e){for(const t in u)new RegExp(e).test(t)&&(0,s.checkStrictMode)(p,`property ${t} matches pattern ${e} (use allowMatchingProperties)`)}function g(n){t.forIn("key",a,(s=>{t.if(r._`${(0,i.usePattern)(e,n)}.test(${s})`,(()=>{const i=f.includes(n);i||e.subschema({keyword:"patternProperties",schemaProp:n,dataProp:s,dataPropType:o.Type.Str},m),p.opts.unevaluated&&!0!==h?t.assign(r._`${h}[${s}]`,!0):i||p.allErrors||t.if((0,r.not)(m),(()=>t.break()))}))}))}!function(){for(const e of l)u&&y(e),p.allErrors?g(e):(t.var(m,!0),g(e),t.if(m))}()}};t.default=a},87444:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(95901),r={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,i.validateTuple)(e,"items")};t.default=r},9689:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(32445),r=n(50144),s=n(8199),o=n(46160),a={keyword:"properties",type:"object",schemaType:"object",code(e){const{gen:t,schema:n,parentSchema:a,data:c,it:p}=e;"all"===p.opts.removeAdditional&&void 0===a.additionalProperties&&o.default.code(new i.KeywordCxt(p,o.default,"additionalProperties"));const d=(0,r.allSchemaProperties)(n);for(const e of d)p.definedProperties.add(e);p.opts.unevaluated&&d.length&&!0!==p.props&&(p.props=s.mergeEvaluated.props(t,(0,s.toHash)(d),p.props));const l=d.filter((e=>!(0,s.alwaysValidSchema)(p,n[e])));if(0===l.length)return;const f=t.name("valid");for(const n of l)u(n)?m(n):(t.if((0,r.propertyInData)(t,c,n,p.opts.ownProperties)),m(n),p.allErrors||t.else().var(f,!0),t.endIf()),e.it.definedProperties.add(n),e.ok(f);function u(e){return p.opts.useDefaults&&!p.compositeRule&&void 0!==n[e].default}function m(t){e.subschema({keyword:"properties",schemaProp:t,dataProp:t},f)}}};t.default=a},13420:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:{message:"property name must be valid",params:({params:e})=>i._`{propertyName: ${e.propertyName}}`},code(e){const{gen:t,schema:n,data:s,it:o}=e;if((0,r.alwaysValidSchema)(o,n))return;const a=t.name("valid");t.forIn("key",s,(n=>{e.setParams({propertyName:n}),e.subschema({keyword:"propertyNames",data:n,dataTypes:["string"],propertyName:n,compositeRule:!0},a),t.if((0,i.not)(a),(()=>{e.error(!0),o.allErrors||t.break()}))})),e.ok(a)}};t.default=s},8181:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(8199),r={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:n}){void 0===t.if&&(0,i.checkStrictMode)(n,`"${e}" without "if" is ignored`)}};t.default=r},50144:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.validateUnion=t.validateArray=t.usePattern=t.callValidateCode=t.schemaProperties=t.allSchemaProperties=t.noPropertyInData=t.propertyInData=t.isOwnProperty=t.hasPropFunc=t.reportMissingProp=t.checkMissingProp=t.checkReportMissingProp=void 0;const i=n(16008),r=n(8199),s=n(18090),o=n(8199);function a(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:i._`Object.prototype.hasOwnProperty`})}function c(e,t,n){return i._`${a(e)}.call(${t}, ${n})`}function p(e,t,n,r){const s=i._`${t}${(0,i.getProperty)(n)} === undefined`;return r?(0,i.or)(s,(0,i.not)(c(e,t,n))):s}function d(e){return e?Object.keys(e).filter((e=>"__proto__"!==e)):[]}t.checkReportMissingProp=function(e,t){const{gen:n,data:r,it:s}=e;n.if(p(n,r,t,s.opts.ownProperties),(()=>{e.setParams({missingProperty:i._`${t}`},!0),e.error()}))},t.checkMissingProp=function({gen:e,data:t,it:{opts:n}},r,s){return(0,i.or)(...r.map((r=>(0,i.and)(p(e,t,r,n.ownProperties),i._`${s} = ${r}`))))},t.reportMissingProp=function(e,t){e.setParams({missingProperty:t},!0),e.error()},t.hasPropFunc=a,t.isOwnProperty=c,t.propertyInData=function(e,t,n,r){const s=i._`${t}${(0,i.getProperty)(n)} !== undefined`;return r?i._`${s} && ${c(e,t,n)}`:s},t.noPropertyInData=p,t.allSchemaProperties=d,t.schemaProperties=function(e,t){return d(t).filter((n=>!(0,r.alwaysValidSchema)(e,t[n])))},t.callValidateCode=function({schemaCode:e,data:t,it:{gen:n,topSchemaRef:r,schemaPath:o,errorPath:a},it:c},p,d,l){const f=l?i._`${e}, ${t}, ${r}${o}`:t,u=[[s.default.instancePath,(0,i.strConcat)(s.default.instancePath,a)],[s.default.parentData,c.parentData],[s.default.parentDataProperty,c.parentDataProperty],[s.default.rootData,s.default.rootData]];c.opts.dynamicRef&&u.push([s.default.dynamicAnchors,s.default.dynamicAnchors]);const m=i._`${f}, ${n.object(...u)}`;return d!==i.nil?i._`${p}.call(${d}, ${m})`:i._`${p}(${m})`};const l=i._`new RegExp`;t.usePattern=function({gen:e,it:{opts:t}},n){const r=t.unicodeRegExp?"u":"",{regExp:s}=t.code,a=s(n,r);return e.scopeValue("pattern",{key:a.toString(),ref:a,code:i._`${"new RegExp"===s.code?l:(0,o.useFunc)(e,s)}(${n}, ${r})`})},t.validateArray=function(e){const{gen:t,data:n,keyword:s,it:o}=e,a=t.name("valid");if(o.allErrors){const e=t.let("valid",!0);return c((()=>t.assign(e,!1))),e}return t.var(a,!0),c((()=>t.break())),a;function c(o){const c=t.const("len",i._`${n}.length`);t.forRange("i",0,c,(n=>{e.subschema({keyword:s,dataProp:n,dataPropType:r.Type.Num},a),t.if((0,i.not)(a),o)}))}},t.validateUnion=function(e){const{gen:t,schema:n,keyword:s,it:o}=e;if(!Array.isArray(n))throw new Error("ajv implementation error");if(n.some((e=>(0,r.alwaysValidSchema)(o,e)))&&!o.opts.unevaluated)return;const a=t.let("valid",!1),c=t.name("_valid");t.block((()=>n.forEach(((n,r)=>{const o=e.subschema({keyword:s,schemaProp:r,compositeRule:!0},c);t.assign(a,i._`${a} || ${c}`),e.mergeValidEvaluated(o,c)||t.if((0,i.not)(a))})))),e.result(a,(()=>e.reset()),(()=>e.error(!0)))}},80300:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const n={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};t.default=n},88925:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(80300),r=n(36633),s=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",i.default,r.default];t.default=s},36633:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.callRef=t.getValidate=void 0;const i=n(58366),r=n(50144),s=n(16008),o=n(18090),a=n(41502),c=n(8199),p={keyword:"$ref",schemaType:"string",code(e){const{gen:t,schema:n,it:r}=e,{baseId:o,schemaEnv:c,validateName:p,opts:f,self:u}=r,{root:m}=c;if(("#"===n||"#/"===n)&&o===m.baseId)return function(){if(c===m)return l(e,p,c,c.$async);const n=t.scopeValue("root",{ref:m});return l(e,s._`${n}.validate`,m,m.$async)}();const h=a.resolveRef.call(u,m,o,n);if(void 0===h)throw new i.default(r.opts.uriResolver,o,n);return h instanceof a.SchemaEnv?function(t){const n=d(e,t);l(e,n,t,t.$async)}(h):function(i){const r=t.scopeValue("schema",!0===f.code.source?{ref:i,code:(0,s.stringify)(i)}:{ref:i}),o=t.name("valid"),a=e.subschema({schema:i,dataTypes:[],schemaPath:s.nil,topSchemaRef:r,errSchemaPath:n},o);e.mergeEvaluated(a),e.ok(o)}(h)}};function d(e,t){const{gen:n}=e;return t.validate?n.scopeValue("validate",{ref:t.validate}):s._`${n.scopeValue("wrapper",{ref:t})}.validate`}function l(e,t,n,i){const{gen:a,it:p}=e,{allErrors:d,schemaEnv:l,opts:f}=p,u=f.passContext?o.default.this:s.nil;function m(e){const t=s._`${e}.errors`;a.assign(o.default.vErrors,s._`${o.default.vErrors} === null ? ${t} : ${o.default.vErrors}.concat(${t})`),a.assign(o.default.errors,s._`${o.default.vErrors}.length`)}function h(e){var t;if(!p.opts.unevaluated)return;const i=null===(t=null==n?void 0:n.validate)||void 0===t?void 0:t.evaluated;if(!0!==p.props)if(i&&!i.dynamicProps)void 0!==i.props&&(p.props=c.mergeEvaluated.props(a,i.props,p.props));else{const t=a.var("props",s._`${e}.evaluated.props`);p.props=c.mergeEvaluated.props(a,t,p.props,s.Name)}if(!0!==p.items)if(i&&!i.dynamicItems)void 0!==i.items&&(p.items=c.mergeEvaluated.items(a,i.items,p.items));else{const t=a.var("items",s._`${e}.evaluated.items`);p.items=c.mergeEvaluated.items(a,t,p.items,s.Name)}}i?function(){if(!l.$async)throw new Error("async schema referenced by sync schema");const n=a.let("valid");a.try((()=>{a.code(s._`await ${(0,r.callValidateCode)(e,t,u)}`),h(t),d||a.assign(n,!0)}),(e=>{a.if(s._`!(${e} instanceof ${p.ValidationError})`,(()=>a.throw(e))),m(e),d||a.assign(n,!1)})),e.ok(n)}():e.result((0,r.callValidateCode)(e,t,u),(()=>h(t)),(()=>m(t)))}t.getValidate=d,t.callRef=l,t.default=p},27461:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(14385),s=n(41502),o=n(8199),a={keyword:"discriminator",type:"object",schemaType:"object",error:{message:({params:{discrError:e,tagName:t}})=>e===r.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:n}})=>i._`{error: ${e}, tag: ${n}, tagValue: ${t}}`},code(e){const{gen:t,data:n,schema:a,parentSchema:c,it:p}=e,{oneOf:d}=c;if(!p.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=a.propertyName;if("string"!=typeof l)throw new Error("discriminator: requires propertyName");if(a.mapping)throw new Error("discriminator: mapping is not supported");if(!d)throw new Error("discriminator: requires oneOf keyword");const f=t.let("valid",!1),u=t.const("tag",i._`${n}${(0,i.getProperty)(l)}`);function m(n){const r=t.name("valid"),s=e.subschema({keyword:"oneOf",schemaProp:n},r);return e.mergeEvaluated(s,i.Name),r}t.if(i._`typeof ${u} == "string"`,(()=>function(){const n=function(){var e;const t={},n=r(c);let i=!0;for(let t=0;te.error(!1,{discrError:r.DiscrError.Tag,tag:u,tagName:l}))),e.ok(f)}};t.default=a},14385:(e,t)=>{"use strict";var n;Object.defineProperty(t,"__esModule",{value:!0}),t.DiscrError=void 0,(n=t.DiscrError||(t.DiscrError={})).Tag="tag",n.Mapping="mapping"},61324:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(88925),r=n(92346),s=n(40980),o=n(84647),a=n(12594),c=[i.default,r.default,(0,s.default)(),o.default,a.metadataVocabulary,a.contentVocabulary];t.default=c},99691:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>i.str`must match format "${e}"`,params:({schemaCode:e})=>i._`{format: ${e}}`},code(e,t){const{gen:n,data:r,$data:s,schema:o,schemaCode:a,it:c}=e,{opts:p,errSchemaPath:d,schemaEnv:l,self:f}=c;p.validateFormats&&(s?function(){const s=n.scopeValue("formats",{ref:f.formats,code:p.code.formats}),o=n.const("fDef",i._`${s}[${a}]`),c=n.let("fType"),d=n.let("format");n.if(i._`typeof ${o} == "object" && !(${o} instanceof RegExp)`,(()=>n.assign(c,i._`${o}.type || "string"`).assign(d,i._`${o}.validate`)),(()=>n.assign(c,i._`"string"`).assign(d,o))),e.fail$data((0,i.or)(!1===p.strictSchema?i.nil:i._`${a} && !${d}`,function(){const e=l.$async?i._`(${o}.async ? await ${d}(${r}) : ${d}(${r}))`:i._`${d}(${r})`,n=i._`(typeof ${d} == "function" ? ${e} : ${d}.test(${r}))`;return i._`${d} && ${d} !== true && ${c} === ${t} && !${n}`}()))}():function(){const s=f.formats[o];if(!s)return void function(){if(!1!==p.strictSchema)throw new Error(e());function e(){return`unknown format "${o}" ignored in schema at path "${d}"`}f.logger.warn(e())}();if(!0===s)return;const[a,c,u]=function(e){const t=e instanceof RegExp?(0,i.regexpCode)(e):p.code.formats?i._`${p.code.formats}${(0,i.getProperty)(o)}`:void 0,r=n.scopeValue("formats",{key:o,ref:e,code:t});return"object"!=typeof e||e instanceof RegExp?["string",e,r]:[e.type||"string",e.validate,i._`${r}.validate`]}(s);a===t&&e.pass(function(){if("object"==typeof s&&!(s instanceof RegExp)&&s.async){if(!l.$async)throw new Error("async format in sync schema");return i._`await ${u}(${r})`}return"function"==typeof c?i._`${u}(${r})`:i._`${u}.test(${r})`}())}())}};t.default=r},84647:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=[n(99691).default];t.default=i},12594:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.contentVocabulary=t.metadataVocabulary=void 0,t.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"],t.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]},70239:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s=n(37692),o={keyword:"const",$data:!0,error:{message:"must be equal to constant",params:({schemaCode:e})=>i._`{allowedValue: ${e}}`},code(e){const{gen:t,data:n,$data:o,schemaCode:a,schema:c}=e;o||c&&"object"==typeof c?e.fail$data(i._`!${(0,r.useFunc)(t,s.default)}(${n}, ${a})`):e.fail(i._`${c} !== ${n}`)}};t.default=o},22168:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s=n(37692),o={keyword:"enum",schemaType:"array",$data:!0,error:{message:"must be equal to one of the allowed values",params:({schemaCode:e})=>i._`{allowedValues: ${e}}`},code(e){const{gen:t,data:n,$data:o,schema:a,schemaCode:c,it:p}=e;if(!o&&0===a.length)throw new Error("enum must have non-empty array");const d=a.length>=p.opts.loopEnum;let l;const f=()=>null!=l?l:l=(0,r.useFunc)(t,s.default);let u;if(d||o)u=t.let("valid"),e.block$data(u,(function(){t.assign(u,!1),t.forOf("v",c,(e=>t.if(i._`${f()}(${n}, ${e})`,(()=>t.assign(u,!0).break()))))}));else{if(!Array.isArray(a))throw new Error("ajv implementation error");const e=t.const("vSchema",c);u=(0,i.or)(...a.map(((t,r)=>function(e,t){const r=a[t];return"object"==typeof r&&null!==r?i._`${f()}(${n}, ${e}[${t}])`:i._`${n} === ${r}`}(e,r))))}e.pass(u)}};t.default=o},92346:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(82039),r=n(26247),s=n(25122),o=n(11307),a=n(30029),c=n(78205),p=n(30628),d=n(91608),l=n(70239),f=n(22168),u=[i.default,r.default,s.default,o.default,a.default,c.default,p.default,d.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},l.default,f.default];t.default=u},30628:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxItems"===e?"more":"fewer";return i.str`must NOT have ${n} than ${t} items`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:r}=e,s="maxItems"===t?i.operators.GT:i.operators.LT;e.fail$data(i._`${n}.length ${s} ${r}`)}};t.default=r},25122:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=n(8199),s=n(69211),o={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxLength"===e?"more":"fewer";return i.str`must NOT have ${n} than ${t} characters`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:o,it:a}=e,c="maxLength"===t?i.operators.GT:i.operators.LT,p=!1===a.opts.unicode?i._`${n}.length`:i._`${(0,r.useFunc)(e.gen,s.default)}(${n})`;e.fail$data(i._`${p} ${c} ${o}`)}};t.default=o},82039:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r=i.operators,s={maximum:{okStr:"<=",ok:r.LTE,fail:r.GT},minimum:{okStr:">=",ok:r.GTE,fail:r.LT},exclusiveMaximum:{okStr:"<",ok:r.LT,fail:r.GTE},exclusiveMinimum:{okStr:">",ok:r.GT,fail:r.LTE}},o={message:({keyword:e,schemaCode:t})=>i.str`must be ${s[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>i._`{comparison: ${s[e].okStr}, limit: ${t}}`},a={keyword:Object.keys(s),type:"number",schemaType:"number",$data:!0,error:o,code(e){const{keyword:t,data:n,schemaCode:r}=e;e.fail$data(i._`${n} ${s[t].fail} ${r} || isNaN(${n})`)}};t.default=a},30029:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:{message({keyword:e,schemaCode:t}){const n="maxProperties"===e?"more":"fewer";return i.str`must NOT have ${n} than ${t} properties`},params:({schemaCode:e})=>i._`{limit: ${e}}`},code(e){const{keyword:t,data:n,schemaCode:r}=e,s="maxProperties"===t?i.operators.GT:i.operators.LT;e.fail$data(i._`Object.keys(${n}).length ${s} ${r}`)}};t.default=r},26247:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(16008),r={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:{message:({schemaCode:e})=>i.str`must be multiple of ${e}`,params:({schemaCode:e})=>i._`{multipleOf: ${e}}`},code(e){const{gen:t,data:n,schemaCode:r,it:s}=e,o=s.opts.multipleOfPrecision,a=t.let("res"),c=o?i._`Math.abs(Math.round(${a}) - ${a}) > 1e-${o}`:i._`${a} !== parseInt(${a})`;e.fail$data(i._`(${r} === 0 || (${a} = ${n}/${r}, ${c}))`)}};t.default=r},11307:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(50144),r=n(16008),s={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:{message:({schemaCode:e})=>r.str`must match pattern "${e}"`,params:({schemaCode:e})=>r._`{pattern: ${e}}`},code(e){const{data:t,$data:n,schema:s,schemaCode:o,it:a}=e,c=a.opts.unicodeRegExp?"u":"",p=n?r._`(new RegExp(${o}, ${c}))`:(0,i.usePattern)(e,s);e.fail$data(r._`!${p}.test(${t})`)}};t.default=s},78205:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(50144),r=n(16008),s=n(8199),o={keyword:"required",type:"object",schemaType:"array",$data:!0,error:{message:({params:{missingProperty:e}})=>r.str`must have required property '${e}'`,params:({params:{missingProperty:e}})=>r._`{missingProperty: ${e}}`},code(e){const{gen:t,schema:n,schemaCode:o,data:a,$data:c,it:p}=e,{opts:d}=p;if(!c&&0===n.length)return;const l=n.length>=d.loopRequired;if(p.allErrors?function(){if(l||c)e.block$data(r.nil,f);else for(const t of n)(0,i.checkReportMissingProp)(e,t)}():function(){const s=t.let("missing");if(l||c){const n=t.let("valid",!0);e.block$data(n,(()=>function(n,s){e.setParams({missingProperty:n}),t.forOf(n,o,(()=>{t.assign(s,(0,i.propertyInData)(t,a,n,d.ownProperties)),t.if((0,r.not)(s),(()=>{e.error(),t.break()}))}),r.nil)}(s,n))),e.ok(n)}else t.if((0,i.checkMissingProp)(e,n,s)),(0,i.reportMissingProp)(e,s),t.else()}(),d.strictRequired){const t=e.parentSchema.properties,{definedProperties:i}=e.it;for(const e of n)if(void 0===(null==t?void 0:t[e])&&!i.has(e)){const t=`required property "${e}" is not defined at "${p.schemaEnv.baseId+p.errSchemaPath}" (strictRequired)`;(0,s.checkStrictMode)(p,t,p.opts.strictRequired)}}function f(){t.forOf("prop",o,(n=>{e.setParams({missingProperty:n}),t.if((0,i.noPropertyInData)(t,a,n,d.ownProperties),(()=>e.error()))}))}}};t.default=o},91608:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(57607),r=n(16008),s=n(8199),o=n(37692),a={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:{message:({params:{i:e,j:t}})=>r.str`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>r._`{i: ${e}, j: ${t}}`},code(e){const{gen:t,data:n,$data:a,schema:c,parentSchema:p,schemaCode:d,it:l}=e;if(!a&&!c)return;const f=t.let("valid"),u=p.items?(0,i.getSchemaTypes)(p.items):[];function m(s,o){const a=t.name("item"),c=(0,i.checkDataTypes)(u,a,l.opts.strictNumbers,i.DataType.Wrong),p=t.const("indices",r._`{}`);t.for(r._`;${s}--;`,(()=>{t.let(a,r._`${n}[${s}]`),t.if(c,r._`continue`),u.length>1&&t.if(r._`typeof ${a} == "string"`,r._`${a} += "_"`),t.if(r._`typeof ${p}[${a}] == "number"`,(()=>{t.assign(o,r._`${p}[${a}]`),e.error(),t.assign(f,!1).break()})).code(r._`${p}[${a}] = ${s}`)}))}function h(i,a){const c=(0,s.useFunc)(t,o.default),p=t.name("outer");t.label(p).for(r._`;${i}--;`,(()=>t.for(r._`${a} = ${i}; ${a}--;`,(()=>t.if(r._`${c}(${n}[${i}], ${n}[${a}])`,(()=>{e.error(),t.assign(f,!1).break(p)}))))))}e.block$data(f,(function(){const i=t.let("i",r._`${n}.length`),s=t.let("j");e.setParams({i,j:s}),t.assign(f,!0),t.if(r._`${i} > 1`,(()=>(u.length>0&&!u.some((e=>"object"===e||"array"===e))?m:h)(i,s)))}),r._`${d} === false`),e.ok(f)}};t.default=a},57091:e=>{"use strict";var t=e.exports=function(e,t,i){"function"==typeof t&&(i=t,t={}),n(t,"function"==typeof(i=t.cb||i)?i:i.pre||function(){},i.post||function(){},e,"",e)};function n(e,i,r,s,o,a,c,p,d,l){if(s&&"object"==typeof s&&!Array.isArray(s)){for(var f in i(s,o,a,c,p,d,l),s){var u=s[f];if(Array.isArray(u)){if(f in t.arrayKeywords)for(var m=0;m{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(57061);(0,i.__exportStar)(n(37657),t),(0,i.__exportStar)(n(18450),t),(0,i.__exportStar)(n(97858),t)},37657:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Json=t.parseJson=void 0;const i=n(4658);t.parseJson=e=>(0,i.parseWithPointers)(e,{ignoreDuplicateKeys:!1,preserveKeyOrder:!0}),t.Json={parse:t.parseJson,getLocationForJsonPath:i.getLocationForJsonPath,trapAccess:i.trapAccess}},97858:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},18450:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.Yaml=t.parseYaml=void 0;const i=n(98748);t.parseYaml=e=>(0,i.parseWithPointers)(e,{ignoreDuplicateKeys:!1,mergeKeys:!0,preserveKeyOrder:!0}),t.Yaml={parse:t.parseYaml,getLocationForJsonPath:i.getLocationForJsonPath,trapAccess:i.trapAccess}},83871:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createHttpAndFileResolver=t.ResolverDepGraph=t.Resolver=t.httpAndFileResolver=void 0;const i=n(17317),r=n(55738),s=n(60819);Object.defineProperty(t,"Resolver",{enumerable:!0,get:function(){return s.Resolver}});const o=n(91403),a=n(41815);function c(e){const t=(0,r.createResolveHttp)({...o.DEFAULT_REQUEST_OPTIONS,...e});return new s.Resolver({resolvers:{https:{resolve:t},http:{resolve:t},file:{resolve:r.resolveFile}}})}(0,i.__exportStar)(n(65927),t),t.httpAndFileResolver=c(),t.ResolverDepGraph=a.DepGraph,t.createHttpAndFileResolver=c},65927:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0})},41815:(e,t)=>{function n(e,t,n,i){var s={};return function(o){if(!s[o]){var a={},c=[],p=[];for(p.push({node:o,processed:!1});p.length>0;){var d=p[p.length-1],l=d.processed,f=d.node;if(l)p.pop(),c.pop(),a[f]=!1,s[f]=!0,t&&0!==e[f].length||n.push(f);else{if(s[f]){p.pop();continue}if(a[f]){if(i){p.pop();continue}throw c.push(f),new r(c)}a[f]=!0,c.push(f);for(var u=e[f],m=u.length-1;m>=0;m--)p.push({node:u[m],processed:!1});d.processed=!0}}}}}var i=t.DepGraph=function(e){this.nodes={},this.outgoingEdges={},this.incomingEdges={},this.circular=e&&!!e.circular};i.prototype={size:function(){return Object.keys(this.nodes).length},addNode:function(e,t){this.hasNode(e)||(this.nodes[e]=2===arguments.length?t:e,this.outgoingEdges[e]=[],this.incomingEdges[e]=[])},removeNode:function(e){this.hasNode(e)&&(delete this.nodes[e],delete this.outgoingEdges[e],delete this.incomingEdges[e],[this.incomingEdges,this.outgoingEdges].forEach((function(t){Object.keys(t).forEach((function(n){var i=t[n].indexOf(e);i>=0&&t[n].splice(i,1)}),this)})))},hasNode:function(e){return this.nodes.hasOwnProperty(e)},getNodeData:function(e){if(this.hasNode(e))return this.nodes[e];throw new Error("Node does not exist: "+e)},setNodeData:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);this.nodes[e]=t},addDependency:function(e,t){if(!this.hasNode(e))throw new Error("Node does not exist: "+e);if(!this.hasNode(t))throw new Error("Node does not exist: "+t);return-1===this.outgoingEdges[e].indexOf(t)&&this.outgoingEdges[e].push(t),-1===this.incomingEdges[t].indexOf(e)&&this.incomingEdges[t].push(e),!0},removeDependency:function(e,t){var n;this.hasNode(e)&&(n=this.outgoingEdges[e].indexOf(t))>=0&&this.outgoingEdges[e].splice(n,1),this.hasNode(t)&&(n=this.incomingEdges[t].indexOf(e))>=0&&this.incomingEdges[t].splice(n,1)},clone:function(){var e=this,t=new i;return Object.keys(e.nodes).forEach((function(n){t.nodes[n]=e.nodes[n],t.outgoingEdges[n]=e.outgoingEdges[n].slice(0),t.incomingEdges[n]=e.incomingEdges[n].slice(0)})),t},directDependenciesOf:function(e){if(this.hasNode(e))return this.outgoingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},directDependantsOf:function(e){if(this.hasNode(e))return this.incomingEdges[e].slice(0);throw new Error("Node does not exist: "+e)},dependenciesOf:function(e,t){if(this.hasNode(e)){var i=[];n(this.outgoingEdges,t,i,this.circular)(e);var r=i.indexOf(e);return r>=0&&i.splice(r,1),i}throw new Error("Node does not exist: "+e)},dependantsOf:function(e,t){if(this.hasNode(e)){var i=[];n(this.incomingEdges,t,i,this.circular)(e);var r=i.indexOf(e);return r>=0&&i.splice(r,1),i}throw new Error("Node does not exist: "+e)},overallOrder:function(e){var t=this,i=[],r=Object.keys(this.nodes);if(0===r.length)return i;if(!this.circular){var s=n(this.outgoingEdges,!1,[],this.circular);r.forEach((function(e){s(e)}))}var o=n(this.outgoingEdges,e,i,this.circular);return r.filter((function(e){return 0===t.incomingEdges[e].length})).forEach((function(e){o(e)})),this.circular&&r.filter((function(e){return-1===i.indexOf(e)})).forEach((function(e){o(e)})),i},entryNodes:function(){var e=this;return Object.keys(this.nodes).filter((function(t){return 0===e.incomingEdges[t].length}))}},i.prototype.directDependentsOf=i.prototype.directDependantsOf,i.prototype.dependentsOf=i.prototype.dependantsOf;var r=t.DepGraphCycleError=function(e){var t="Dependency Cycle Found: "+e.join(" -> "),n=new Error(t);return n.cyclePath=e,Object.setPrototypeOf(n,Object.getPrototypeOf(this)),Error.captureStackTrace&&Error.captureStackTrace(n,r),n};r.prototype=Object.create(Error.prototype,{constructor:{value:Error,enumerable:!1,writable:!0,configurable:!0}}),Object.setPrototypeOf(r,Error)},19358:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=void 0;const i=(0,n(12979).__importDefault)(n(83300));t.DEFAULT_REQUEST_OPTIONS={},t.default=async(e,n={})=>(0,i.default)(e,{...n,...t.DEFAULT_REQUEST_OPTIONS})},91403:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DEFAULT_REQUEST_OPTIONS=t.fetch=void 0;const i=n(12979);(0,i.__exportStar)(n(83309),t);var r=n(19358);Object.defineProperty(t,"fetch",{enumerable:!0,get:function(){return(0,i.__importDefault)(r).default}}),Object.defineProperty(t,"DEFAULT_REQUEST_OPTIONS",{enumerable:!0,get:function(){return r.DEFAULT_REQUEST_OPTIONS}}),(0,i.__exportStar)(n(23336),t)},23336:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.readParsable=t.readFile=void 0;const i=n(12979),r=n(75966),s=(0,i.__importDefault)(n(28599)),o=(0,i.__importStar)(n(61872)),a=n(96486),c=(0,i.__importDefault)(n(19358)),p=n(78842);async function d(e,t){if((0,r.isURL)(e)){let n,i=null;try{const r={};if(r.agent=t.agent,void 0!==t.timeout){const e=new s.default;i=setTimeout((()=>{e.abort()}),t.timeout),r.signal=e.signal}if(n=await(0,c.default)(e,r),!n.ok)throw new Error(n.statusText);return await n.text()}catch(e){throw(0,a.isError)(e)&&"AbortError"===e.name?new Error("Timeout"):e}finally{null!==i&&clearTimeout(i)}}else try{return await new Promise(((n,i)=>{o.readFile(e,t.encoding,((e,t)=>{null!==e?i(e):n(t)}))}))}catch(t){throw new Error(`Could not read ${e}: ${(0,p.printError)(t)}`)}}t.readFile=d,t.readParsable=async function(e,t){try{return await d(e,t)}catch(t){throw new Error(`Could not parse ${e}: ${(0,p.printError)(t)}`)}}},37699:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.decodeSegmentFragment=void 0;const i=n(4658);t.decodeSegmentFragment=function(e){return"string"!=typeof e?String(e):(0,i.decodePointerFragment)(e)}},83309:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(12979);(0,i.__exportStar)(n(37699),t),(0,i.__exportStar)(n(78842),t),(0,i.__exportStar)(n(28067),t),(0,i.__exportStar)(n(43115),t),(0,i.__exportStar)(n(95514),t)},78842:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printError=void 0;const i=n(96486);t.printError=function(e){return(0,i.isError)(e)?e.message:"unknown error"}},28067:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printPath=t.PrintStyle=void 0;const i=n(4658);var r;!function(e){e.Dot="dot",e.Pointer="pointer",e.EscapedPointer="escapedPointer"}(r=t.PrintStyle||(t.PrintStyle={}));const s=e=>"number"==typeof e?e:(0,i.decodePointerFragment)(e);t.printPath=(e,t)=>{switch(t){case r.Dot:return(0,i.decodePointerFragment)((e=>e.reduce(((e,t,n)=>{var i;return`${e}${null!==(i=(e=>{return"number"==typeof e?`[${e}]`:0===e.length?"['']":/\s/.test(e)?`['${e}']`:"number"!=typeof(t=e)&&Number.isNaN(Number(t))?null:`[${e}]`;var t})(t))&&void 0!==i?i:`${0===n?"":"."}${t}`}`}),""))(e));case r.Pointer:return 0===e.length?"#":`#/${(0,i.decodePointerFragment)(e.join("/"))}`;case r.EscapedPointer:return(0,i.pathToPointer)(e.map(s));default:return String(e)}}},43115:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.printValue=void 0;const i=n(96486),r=n(4658);t.printValue=function(e){return void 0===e?"undefined":(0,i.isObject)(e)?Array.isArray(e)?"Array[]":e instanceof RegExp?String(e.source):!(0,r.isPlainObject)(e)&&"constructor"in e&&"string"==typeof e.constructor.name?e.constructor.name:"Object{}":JSON.stringify(e)}},95514:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getClosestJsonPath=t.safePointerToPath=t.getEndRef=t.traverseObjUntilRef=t.isAbsoluteRef=t.startsWithProtocol=void 0;const i=n(4658),r=n(75966),s=n(96486),o=/^[a-z]+:\/\//i;t.startsWithProtocol=e=>o.test(e),t.isAbsoluteRef=e=>(0,r.isAbsolute)(e)||(0,t.startsWithProtocol)(e),t.traverseObjUntilRef=(e,t)=>{let n=e;for(const e of t.slice()){if(!(0,s.isObject)(n))throw new TypeError("Segment is not a part of the object");if(!(e in n)){if((0,i.hasRef)(n))return n.$ref;throw new Error("Segment is not a part of the object")}n=n[e],t.shift()}return(0,i.isPlainObject)(n)&&(0,i.hasRef)(n)&&1===Object.keys(n).length?n.$ref:null},t.getEndRef=(e,t)=>{for(;t in e;)t=e[t];return t},t.safePointerToPath=e=>{const t=(0,i.extractPointerFromRef)(e);return null!==t?(0,i.pointerToPath)(t):[]},t.getClosestJsonPath=(e,t)=>{const n=[];if(!(0,s.isObject)(e))return n;let i=e;for(const e of t){if(!(0,s.isObject)(i)||!(e in i))break;n.push(e),i=i[e]}return n}},64369:(e,t)=>{"use strict";function n(e){return null==e}Object.defineProperty(t,"__esModule",{value:!0}),t.isNothing=n,t.isObject=function(e){return"object"==typeof e&&null!==e},t.toArray=function(e){return Array.isArray(e)?e:n(e)?[]:[e]},t.extend=function(e,t){var n,i,r,s;if(t)for(n=0,i=(s=Object.keys(t)).length;n{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(64369),r=n(14057),s=n(18707),o=n(71225),a=Object.prototype.toString,c=Object.prototype.hasOwnProperty,p=9,d=10,l=13,f=32,u=33,m=34,h=35,y=37,g=38,b=39,v=42,j=44,$=45,x=58,_=61,w=62,S=63,P=64,O=91,E=93,A=96,T=123,I=124,k=125,M={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},R=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function q(e){var t,n,s;if(t=e.toString(16).toUpperCase(),e<=255)n="x",s=2;else if(e<=65535)n="u",s=4;else{if(!(e<=4294967295))throw new r("code point within a string may not be greater than 0xFFFFFFFF");n="U",s=8}return"\\"+n+i.repeat("0",s-t.length)+t}function N(e){this.schema=e.schema||s,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=i.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var n,i,r,s,o,a,p;if(null===t)return{};for(n={},r=0,s=(i=Object.keys(t)).length;r-1&&n>=e.flowLevel;switch(function(e,t,n,i,r){var s,o,a,c,p=!1,l=!1,f=-1!==i,M=-1,R=U(c=e.charCodeAt(0))&&65279!==c&&!F(c)&&c!==$&&c!==S&&c!==x&&c!==j&&c!==O&&c!==E&&c!==T&&c!==k&&c!==h&&c!==g&&c!==v&&c!==u&&c!==I&&c!==_&&c!==w&&c!==b&&c!==m&&c!==y&&c!==P&&c!==A&&!F(e.charCodeAt(e.length-1));if(t)for(s=0;s0?e.charCodeAt(s-1):null,R=R&&V(o,a)}else{for(s=0;si&&" "!==e[M+1],M=s);else if(!U(o))return K;a=s>0?e.charCodeAt(s-1):null,R=R&&V(o,a)}l=l||f&&s-M-1>i&&" "!==e[M+1]}return p||l?n>9&&L(e)?K:l?G:H:R&&!r(e)?z:B}(t,a,e.indent,o,(function(t){return function(e,t){var n,i;for(n=0,i=e.implicitTypes.length;n"+Q(t,e.indent)+J(C(function(e,t){for(var n,i,r,s=/(\n+)([^\n]*)/g,o=(r=-1!==(r=e.indexOf("\n"))?r:e.length,s.lastIndex=r,Z(e.slice(0,r),t)),a="\n"===e[0]||" "===e[0];i=s.exec(e);){var c=i[1],p=i[2];n=" "===p[0],o+=c+(a||n||""===p?"":"\n")+Z(p,t),a=n}return o}(t,o),s));case K:return'"'+function(e){for(var t,n,i,r="",s=0;s=55296&&t<=56319&&(n=e.charCodeAt(s+1))>=56320&&n<=57343?(r+=q(1024*(t-55296)+n-56320+65536),s++):r+=!(i=M[t])&&U(t)?e[s]:i||q(t);return r}(t)+'"';default:throw new r("impossible error: invalid scalar style")}}()}function Q(e,t){var n=L(e)?String(t):"",i="\n"===e[e.length-1];return n+(!i||"\n"!==e[e.length-2]&&"\n"!==e?i?"":"-":"+")+"\n"}function J(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Z(e,t){if(""===e||" "===e[0])return e;for(var n,i,r=/ [^ ]/g,s=0,o=0,a=0,c="";n=r.exec(e);)(a=n.index)-s>t&&(i=o>s?o:a,c+="\n"+e.slice(s,i),s=i+1),o=a;return c+="\n",e.length-s>t&&o>s?c+=e.slice(s,o)+"\n"+e.slice(o+1):c+=e.slice(s),c.slice(1)}function Y(e,t,n){var i,s,o,p,d,l;for(o=0,p=(s=n?e.explicitTypes:e.implicitTypes).length;o tag resolver accepts not "'+l+'" style');i=d.represent[l](t,l)}e.dump=i}return!0}return!1}function X(e,t,n,i,s,o){e.tag=null,e.dump=n,Y(e,n,!1)||Y(e,n,!0);var c=a.call(e.dump);i&&(i=e.flowLevel<0||e.flowLevel>t);var p,l,f="[object Object]"===c||"[object Array]"===c;if(f&&(l=-1!==(p=e.duplicates.indexOf(n))),(null!==e.tag&&"?"!==e.tag||l||2!==e.indent&&t>0)&&(s=!1),l&&e.usedDuplicates[p])e.dump="*ref_"+p;else{if(f&&l&&!e.usedDuplicates[p]&&(e.usedDuplicates[p]=!0),"[object Object]"===c)i&&0!==Object.keys(e.dump).length?(function(e,t,n,i){var s,o,a,c,p,l,f="",u=e.tag,m=Object.keys(n);if(!0===e.sortKeys)m.sort();else if("function"==typeof e.sortKeys)m.sort(e.sortKeys);else if(e.sortKeys)throw new r("sortKeys must be a boolean or a function");for(s=0,o=m.length;s1024)&&(e.dump&&d===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,p&&(l+=D(e,t)),X(e,t+1,c,!0,p)&&(e.dump&&d===e.dump.charCodeAt(0)?l+=":":l+=": ",f+=l+=e.dump));e.tag=u,e.dump=f||"{}"}(e,t,e.dump,s),l&&(e.dump="&ref_"+p+e.dump)):(function(e,t,n){var i,r,s,o,a,c="",p=e.tag,d=Object.keys(n);for(i=0,r=d.length;i1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),X(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=p,e.dump="{"+c+"}"}(e,t,e.dump),l&&(e.dump="&ref_"+p+" "+e.dump));else if("[object Array]"===c){var u=e.noArrayIndent&&t>0?t-1:t;i&&0!==e.dump.length?(function(e,t,n,i){var r,s,o="",a=e.tag;for(r=0,s=n.length;r "+e.dump)}return!0}function ee(e,t){var n,i,r=[],s=[];for(te(e,r,s),n=0,i=s.length;n{"use strict";class t{constructor(e,t=null,n=!1){this.name="YAMLException",this.reason=e,this.mark=t,this.message=this.toString(!1),this.isWarning=n}static isInstance(e){if(null!=e&&e.getClassIdentifier&&"function"==typeof e.getClassIdentifier)for(let n of e.getClassIdentifier())if(n==t.CLASS_IDENTIFIER)return!0;return!1}getClassIdentifier(){return[].concat(t.CLASS_IDENTIFIER)}toString(e=!1){var t;return t="JS-YAML: "+(this.reason||"(unknown reason)"),!e&&this.mark&&(t+=" "+this.mark.toString()),t}}t.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e.exports=t},9581:(e,t,n)=>{"use strict";function i(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,"__esModule",{value:!0});var r=n(75519);t.load=r.load,t.loadAll=r.loadAll,t.safeLoad=r.safeLoad,t.safeLoadAll=r.safeLoadAll;var s=n(14991);t.dump=s.dump,t.safeDump=s.safeDump,t.YAMLException=n(14057),i(n(83382)),i(n(66133))},75519:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});const i=n(83382),r=n(64369),s=n(14057),o=n(73887),a=n(71225),c=n(18707);var p=Object.prototype.hasOwnProperty,d=1,l=2,f=3,u=4,m=1,h=2,y=3,g=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,b=/[\x85\u2028\u2029]/,v=/[,\[\]\{\}]/,j=/^(?:!|!!|![a-z\-]+!)$/i,$=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function x(e){return 10===e||13===e}function _(e){return 9===e||32===e}function w(e){return 9===e||32===e||10===e||13===e}function S(e){return 44===e||91===e||93===e||123===e||125===e}function P(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function O(e){return 120===e?2:117===e?4:85===e?8:0}function E(e){return 48<=e&&e<=57?e-48:-1}function A(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var T,I=new Array(256),k=new Array(256),M=new Array(256),R=new Array(256),q=0;q<256;q++)R[q]=k[q]=48===(T=q)?"\0":97===T?"