@scalar/api-reference 1.22.26 → 1.22.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -82,8 +82,8 @@ ${o}${p}`}else return`${f}${i}${h.join(" ")}${i}${p}`}function lc({indent:r,opti
82
82
  || ${R} === "boolean" || ${$} === null`).assign(B,(0,o._)`[${$}]`)}}}function p({gen:v,parentData:k,parentDataProperty:S},w){v.if((0,o._)`${k} !== undefined`,()=>v.assign((0,o._)`${k}[${S}]`,w))}function m(v,k,S,w=i.Correct){const $=w===i.Correct?o.operators.EQ:o.operators.NEQ;let T;switch(v){case"null":return(0,o._)`${k} ${$} null`;case"array":T=(0,o._)`Array.isArray(${k})`;break;case"object":T=(0,o._)`${k} && typeof ${k} == "object" && !Array.isArray(${k})`;break;case"integer":T=R((0,o._)`!(${k} % 1) && !isNaN(${k})`);break;case"number":T=R();break;default:return(0,o._)`typeof ${k} ${$} ${v}`}return w===i.Correct?T:(0,o.not)(T);function R(B=o.nil){return(0,o.and)((0,o._)`typeof ${k} == "number"`,B,S?(0,o._)`isFinite(${k})`:o.nil)}}r.checkDataType=m;function g(v,k,S,w){if(v.length===1)return m(v[0],k,S,w);let $;const T=(0,s.toHash)(v);if(T.array&&T.object){const R=(0,o._)`typeof ${k} != "object"`;$=T.null?R:(0,o._)`!${k} || ${R}`,delete T.null,delete T.array,delete T.object}else $=o.nil;T.number&&delete T.integer;for(const R in T)$=(0,o.and)($,m(R,k,S,w));return $}r.checkDataTypes=g;const O={message:({schema:v})=>`must be ${v}`,params:({schema:v,schemaValue:k})=>typeof v=="string"?(0,o._)`{type: ${v}}`:(0,o._)`{type: ${k}}`};function y(v){const k=b(v);(0,n.reportError)(k,O)}r.reportTypeError=y;function b(v){const{gen:k,data:S,schema:w}=v,$=(0,s.schemaRefOrVal)(v,w,"type");return{gen:k,keyword:"type",data:S,schema:w.type,schemaCode:$,schemaValue:$,parentSchema:w,params:{},it:v}}})(Vi);var bd={};Object.defineProperty(bd,"__esModule",{value:!0});bd.assignDefaults=void 0;const zo=se,YB=pe;function LB(r,e){const{properties:t,items:n}=r.schema;if(e==="object"&&t)for(const o in t)j0(r,o,t[o].default);else e==="array"&&Array.isArray(n)&&n.forEach((o,s)=>j0(r,s,o.default))}bd.assignDefaults=LB;function j0(r,e,t){const{gen:n,compositeRule:o,data:s,opts:i}=r;if(t===void 0)return;const l=(0,zo._)`${s}${(0,zo.getProperty)(e)}`;if(o){(0,YB.checkStrictMode)(r,`default is ignored for: ${l}`);return}let c=(0,zo._)`${l} === undefined`;i.useDefaults==="empty"&&(c=(0,zo._)`${c} || ${l} === null || ${l} === ""`),n.if(c,(0,zo._)`${l} = ${(0,zo.stringify)(t)}`)}var Vr={},he={};Object.defineProperty(he,"__esModule",{value:!0});he.validateUnion=he.validateArray=he.usePattern=he.callValidateCode=he.schemaProperties=he.allSchemaProperties=he.noPropertyInData=he.propertyInData=he.isOwnProperty=he.hasPropFunc=he.reportMissingProp=he.checkMissingProp=he.checkReportMissingProp=void 0;const Ve=se,Ap=pe,pn=Dt,HB=pe;function GB(r,e){const{gen:t,data:n,it:o}=r;t.if(Vp(t,n,e,o.opts.ownProperties),()=>{r.setParams({missingProperty:(0,Ve._)`${e}`},!0),r.error()})}he.checkReportMissingProp=GB;function FB({gen:r,data:e,it:{opts:t}},n,o){return(0,Ve.or)(...n.map(s=>(0,Ve.and)(Vp(r,e,s,t.ownProperties),(0,Ve._)`${o} = ${s}`)))}he.checkMissingProp=FB;function KB(r,e){r.setParams({missingProperty:e},!0),r.error()}he.reportMissingProp=KB;function Iw(r){return r.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ve._)`Object.prototype.hasOwnProperty`})}he.hasPropFunc=Iw;function Rp(r,e,t){return(0,Ve._)`${Iw(r)}.call(${e}, ${t})`}he.isOwnProperty=Rp;function JB(r,e,t,n){const o=(0,Ve._)`${e}${(0,Ve.getProperty)(t)} !== undefined`;return n?(0,Ve._)`${o} && ${Rp(r,e,t)}`:o}he.propertyInData=JB;function Vp(r,e,t,n){const o=(0,Ve._)`${e}${(0,Ve.getProperty)(t)} === undefined`;return n?(0,Ve.or)(o,(0,Ve.not)(Rp(r,e,t))):o}he.noPropertyInData=Vp;function jw(r){return r?Object.keys(r).filter(e=>e!=="__proto__"):[]}he.allSchemaProperties=jw;function e3(r,e){return jw(e).filter(t=>!(0,Ap.alwaysValidSchema)(r,e[t]))}he.schemaProperties=e3;function t3({schemaCode:r,data:e,it:{gen:t,topSchemaRef:n,schemaPath:o,errorPath:s},it:i},l,c,d){const u=d?(0,Ve._)`${r}, ${e}, ${n}${o}`:e,h=[[pn.default.instancePath,(0,Ve.strConcat)(pn.default.instancePath,s)],[pn.default.parentData,i.parentData],[pn.default.parentDataProperty,i.parentDataProperty],[pn.default.rootData,pn.default.rootData]];i.opts.dynamicRef&&h.push([pn.default.dynamicAnchors,pn.default.dynamicAnchors]);const f=(0,Ve._)`${u}, ${t.object(...h)}`;return c!==Ve.nil?(0,Ve._)`${l}.call(${c}, ${f})`:(0,Ve._)`${l}(${f})`}he.callValidateCode=t3;const r3=(0,Ve._)`new RegExp`;function n3({gen:r,it:{opts:e}},t){const n=e.unicodeRegExp?"u":"",{regExp:o}=e.code,s=o(t,n);return r.scopeValue("pattern",{key:s.toString(),ref:s,code:(0,Ve._)`${o.code==="new RegExp"?r3:(0,HB.useFunc)(r,o)}(${t}, ${n})`})}he.usePattern=n3;function o3(r){const{gen:e,data:t,keyword:n,it:o}=r,s=e.name("valid");if(o.allErrors){const l=e.let("valid",!0);return i(()=>e.assign(l,!1)),l}return e.var(s,!0),i(()=>e.break()),s;function i(l){const c=e.const("len",(0,Ve._)`${t}.length`);e.forRange("i",0,c,d=>{r.subschema({keyword:n,dataProp:d,dataPropType:Ap.Type.Num},s),e.if((0,Ve.not)(s),l)})}}he.validateArray=o3;function s3(r){const{gen:e,schema:t,keyword:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(t.some(l=>(0,Ap.alwaysValidSchema)(o,l))&&!o.opts.unevaluated)return;const s=e.let("valid",!1),i=e.name("_valid");e.block(()=>t.forEach((l,c)=>{const d=r.subschema({keyword:n,schemaProp:c,compositeRule:!0},i);e.assign(s,(0,Ve._)`${s} || ${i}`),r.mergeValidEvaluated(d,i)||e.if((0,Ve.not)(s))})),r.result(s,()=>r.reset(),()=>r.error(!0))}he.validateUnion=s3;Object.defineProperty(Vr,"__esModule",{value:!0});Vr.validateKeywordUsage=Vr.validSchemaType=Vr.funcKeywordCode=Vr.macroKeywordCode=void 0;const Ot=se,no=Dt,a3=he,i3=Ri;function l3(r,e){const{gen:t,keyword:n,schema:o,parentSchema:s,it:i}=r,l=e.macro.call(i.self,o,s,i),c=Dw(t,n,l);i.opts.validateSchema!==!1&&i.self.validateSchema(l,!0);const d=t.name("valid");r.subschema({schema:l,schemaPath:Ot.nil,errSchemaPath:`${i.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},d),r.pass(d,()=>r.error(!0))}Vr.macroKeywordCode=l3;function c3(r,e){var t;const{gen:n,keyword:o,schema:s,parentSchema:i,$data:l,it:c}=r;u3(c,e);const d=!l&&e.compile?e.compile.call(c.self,s,i,c):e.validate,u=Dw(n,o,d),h=n.let("valid");r.block$data(h,f),r.ok((t=e.valid)!==null&&t!==void 0?t:h);function f(){if(e.errors===!1)g(),e.modifying&&D0(r),O(()=>r.error());else{const y=e.async?p():m();e.modifying&&D0(r),O(()=>d3(r,y))}}function p(){const y=n.let("ruleErrs",null);return n.try(()=>g((0,Ot._)`await `),b=>n.assign(h,!1).if((0,Ot._)`${b} instanceof ${c.ValidationError}`,()=>n.assign(y,(0,Ot._)`${b}.errors`),()=>n.throw(b))),y}function m(){const y=(0,Ot._)`${u}.errors`;return n.assign(y,null),g(Ot.nil),y}function g(y=e.async?(0,Ot._)`await `:Ot.nil){const b=c.opts.passContext?no.default.this:no.default.self,v=!("compile"in e&&!l||e.schema===!1);n.assign(h,(0,Ot._)`${y}${(0,a3.callValidateCode)(r,u,b,v)}`,e.modifying)}function O(y){var b;n.if((0,Ot.not)((b=e.valid)!==null&&b!==void 0?b:h),y)}}Vr.funcKeywordCode=c3;function D0(r){const{gen:e,data:t,it:n}=r;e.if(n.parentData,()=>e.assign(t,(0,Ot._)`${n.parentData}[${n.parentDataProperty}]`))}function d3(r,e){const{gen:t}=r;t.if((0,Ot._)`Array.isArray(${e})`,()=>{t.assign(no.default.vErrors,(0,Ot._)`${no.default.vErrors} === null ? ${e} : ${no.default.vErrors}.concat(${e})`).assign(no.default.errors,(0,Ot._)`${no.default.vErrors}.length`),(0,i3.extendErrors)(r)},()=>r.error())}function u3({schemaEnv:r},e){if(e.async&&!r.$async)throw new Error("async keyword in sync schema")}function Dw(r,e,t){if(t===void 0)throw new Error(`keyword "${e}" failed to compile`);return r.scopeValue("keyword",typeof t=="function"?{ref:t}:{ref:t,code:(0,Ot.stringify)(t)})}function h3(r,e,t=!1){return!e.length||e.some(n=>n==="array"?Array.isArray(r):n==="object"?r&&typeof r=="object"&&!Array.isArray(r):typeof r==n||t&&typeof r>"u")}Vr.validSchemaType=h3;function f3({schema:r,opts:e,self:t,errSchemaPath:n},o,s){if(Array.isArray(o.keyword)?!o.keyword.includes(s):o.keyword!==s)throw new Error("ajv implementation error");const i=o.dependencies;if(i!=null&&i.some(l=>!Object.prototype.hasOwnProperty.call(r,l)))throw new Error(`parent schema must have dependencies of ${s}: ${i.join(",")}`);if(o.validateSchema&&!o.validateSchema(r[s])){const l=`keyword "${s}" value is invalid at path "${n}": `+t.errorsText(o.validateSchema.errors);if(e.validateSchema==="log")t.logger.error(l);else throw new Error(l)}}Vr.validateKeywordUsage=f3;var En={};Object.defineProperty(En,"__esModule",{value:!0});En.extendSubschemaMode=En.extendSubschemaData=En.getSubschema=void 0;const Nr=se,Mw=pe;function p3(r,{keyword:e,schemaProp:t,schema:n,schemaPath:o,errSchemaPath:s,topSchemaRef:i}){if(e!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(e!==void 0){const l=r.schema[e];return t===void 0?{schema:l,schemaPath:(0,Nr._)`${r.schemaPath}${(0,Nr.getProperty)(e)}`,errSchemaPath:`${r.errSchemaPath}/${e}`}:{schema:l[t],schemaPath:(0,Nr._)`${r.schemaPath}${(0,Nr.getProperty)(e)}${(0,Nr.getProperty)(t)}`,errSchemaPath:`${r.errSchemaPath}/${e}/${(0,Mw.escapeFragment)(t)}`}}if(n!==void 0){if(o===void 0||s===void 0||i===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:i,errSchemaPath:s}}throw new Error('either "keyword" or "schema" must be passed')}En.getSubschema=p3;function m3(r,e,{dataProp:t,dataPropType:n,data:o,dataTypes:s,propertyName:i}){if(o!==void 0&&t!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');const{gen:l}=e;if(t!==void 0){const{errorPath:d,dataPathArr:u,opts:h}=e,f=l.let("data",(0,Nr._)`${e.data}${(0,Nr.getProperty)(t)}`,!0);c(f),r.errorPath=(0,Nr.str)`${d}${(0,Mw.getErrorPath)(t,n,h.jsPropertySyntax)}`,r.parentDataProperty=(0,Nr._)`${t}`,r.dataPathArr=[...u,r.parentDataProperty]}if(o!==void 0){const d=o instanceof Nr.Name?o:l.let("data",o,!0);c(d),i!==void 0&&(r.propertyName=i)}s&&(r.dataTypes=s);function c(d){r.data=d,r.dataLevel=e.dataLevel+1,r.dataTypes=[],e.definedProperties=new Set,r.parentData=e.data,r.dataNames=[...e.dataNames,d]}}En.extendSubschemaData=m3;function g3(r,{jtdDiscriminator:e,jtdMetadata:t,compositeRule:n,createErrors:o,allErrors:s}){n!==void 0&&(r.compositeRule=n),o!==void 0&&(r.createErrors=o),s!==void 0&&(r.allErrors=s),r.jtdDiscriminator=e,r.jtdMetadata=t}En.extendSubschemaMode=g3;var ot={},qw=function r(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;var n,o,s;if(Array.isArray(e)){if(n=e.length,n!=t.length)return!1;for(o=n;o--!==0;)if(!r(e[o],t[o]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===t.toString();if(s=Object.keys(e),n=s.length,n!==Object.keys(t).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(t,s[o]))return!1;for(o=n;o--!==0;){var i=s[o];if(!r(e[i],t[i]))return!1}return!0}return e!==e&&t!==t},Xw={exports:{}},Cn=Xw.exports=function(r,e,t){typeof e=="function"&&(t=e,e={}),t=e.cb||t;var n=typeof t=="function"?t:t.pre||function(){},o=t.post||function(){};Kl(e,n,o,r,"",r)};Cn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Cn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Kl(r,e,t,n,o,s,i,l,c,d){if(n&&typeof n=="object"&&!Array.isArray(n)){e(n,o,s,i,l,c,d);for(var u in n){var h=n[u];if(Array.isArray(h)){if(u in Cn.arrayKeywords)for(var f=0;f<h.length;f++)Kl(r,e,t,h[f],o+"/"+u+"/"+f,s,o,u,n,f)}else if(u in Cn.propsKeywords){if(h&&typeof h=="object")for(var p in h)Kl(r,e,t,h[p],o+"/"+u+"/"+O3(p),s,o,u,n,p)}else(u in Cn.keywords||r.allKeys&&!(u in Cn.skipKeywords))&&Kl(r,e,t,h,o+"/"+u,s,o,u,n)}t(n,o,s,i,l,c,d)}}function O3(r){return r.replace(/~/g,"~0").replace(/\//g,"~1")}var y3=Xw.exports;Object.defineProperty(ot,"__esModule",{value:!0});ot.getSchemaRefs=ot.resolveUrl=ot.normalizeId=ot._getFullPath=ot.getFullPath=ot.inlineRef=void 0;const b3=pe,v3=qw,w3=y3,k3=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function S3(r,e=!0){return typeof r=="boolean"?!0:e===!0?!ff(r):e?Ww(r)<=e:!1}ot.inlineRef=S3;const $3=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function ff(r){for(const e in r){if($3.has(e))return!0;const t=r[e];if(Array.isArray(t)&&t.some(ff)||typeof t=="object"&&ff(t))return!0}return!1}function Ww(r){let e=0;for(const t in r)if(t==="$ref"||(e++,!k3.has(t)&&(typeof r[t]=="object"&&(0,b3.eachItem)(r[t],n=>e+=Ww(n)),e===1/0)))return 1/0;return e}function zw(r,e="",t){t!==!1&&(e=Os(e));const n=r.parse(e);return Uw(r,n)}ot.getFullPath=zw;function Uw(r,e){return r.serialize(e).split("#")[0]+"#"}ot._getFullPath=Uw;const P3=/#\/?$/;function Os(r){return r?r.replace(P3,""):""}ot.normalizeId=Os;function x3(r,e,t){return t=Os(t),r.resolve(e,t)}ot.resolveUrl=x3;const _3=/^[a-z_][-a-z0-9._]*$/i;function C3(r,e){if(typeof r=="boolean")return{};const{schemaId:t,uriResolver:n}=this.opts,o=Os(r[t]||e),s={"":o},i=zw(n,o,!1),l={},c=new Set;return w3(r,{allKeys:!0},(h,f,p,m)=>{if(m===void 0)return;const g=i+f;let O=s[m];typeof h[t]=="string"&&(O=y.call(this,h[t])),b.call(this,h.$anchor),b.call(this,h.$dynamicAnchor),s[f]=O;function y(v){const k=this.opts.uriResolver.resolve;if(v=Os(O?k(O,v):v),c.has(v))throw u(v);c.add(v);let S=this.refs[v];return typeof S=="string"&&(S=this.refs[S]),typeof S=="object"?d(h,S.schema,v):v!==Os(g)&&(v[0]==="#"?(d(h,l[v],v),l[v]=h):this.refs[v]=g),v}function b(v){if(typeof v=="string"){if(!_3.test(v))throw new Error(`invalid anchor "${v}"`);y.call(this,`#${v}`)}}}),l;function d(h,f,p){if(f!==void 0&&!v3(h,f))throw u(p)}function u(h){return new Error(`reference "${h}" resolves to more than one schema`)}}ot.getSchemaRefs=C3;Object.defineProperty(Ht,"__esModule",{value:!0});Ht.getData=Ht.KeywordCxt=Ht.validateFunctionCode=void 0;const Yw=Qs,M0=Vi,Bp=Jr,Zc=Vi,T3=bd,Wa=Vr,Bu=En,F=se,oe=Dt,Q3=ot,en=pe,$a=Ri;function E3(r){if(Gw(r)&&(Fw(r),Hw(r))){R3(r);return}Lw(r,()=>(0,Yw.topBoolOrEmptySchema)(r))}Ht.validateFunctionCode=E3;function Lw({gen:r,validateName:e,schema:t,schemaEnv:n,opts:o},s){o.code.es5?r.func(e,(0,F._)`${oe.default.data}, ${oe.default.valCxt}`,n.$async,()=>{r.code((0,F._)`"use strict"; ${q0(t,o)}`),A3(r,o),r.code(s)}):r.func(e,(0,F._)`${oe.default.data}, ${N3(o)}`,n.$async,()=>r.code(q0(t,o)).code(s))}function N3(r){return(0,F._)`{${oe.default.instancePath}="", ${oe.default.parentData}, ${oe.default.parentDataProperty}, ${oe.default.rootData}=${oe.default.data}${r.dynamicRef?(0,F._)`, ${oe.default.dynamicAnchors}={}`:F.nil}}={}`}function A3(r,e){r.if(oe.default.valCxt,()=>{r.var(oe.default.instancePath,(0,F._)`${oe.default.valCxt}.${oe.default.instancePath}`),r.var(oe.default.parentData,(0,F._)`${oe.default.valCxt}.${oe.default.parentData}`),r.var(oe.default.parentDataProperty,(0,F._)`${oe.default.valCxt}.${oe.default.parentDataProperty}`),r.var(oe.default.rootData,(0,F._)`${oe.default.valCxt}.${oe.default.rootData}`),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,F._)`${oe.default.valCxt}.${oe.default.dynamicAnchors}`)},()=>{r.var(oe.default.instancePath,(0,F._)`""`),r.var(oe.default.parentData,(0,F._)`undefined`),r.var(oe.default.parentDataProperty,(0,F._)`undefined`),r.var(oe.default.rootData,oe.default.data),e.dynamicRef&&r.var(oe.default.dynamicAnchors,(0,F._)`{}`)})}function R3(r){const{schema:e,opts:t,gen:n}=r;Lw(r,()=>{t.$comment&&e.$comment&&Jw(r),j3(r),n.let(oe.default.vErrors,null),n.let(oe.default.errors,0),t.unevaluated&&V3(r),Kw(r),q3(r)})}function V3(r){const{gen:e,validateName:t}=r;r.evaluated=e.const("evaluated",(0,F._)`${t}.evaluated`),e.if((0,F._)`${r.evaluated}.dynamicProps`,()=>e.assign((0,F._)`${r.evaluated}.props`,(0,F._)`undefined`)),e.if((0,F._)`${r.evaluated}.dynamicItems`,()=>e.assign((0,F._)`${r.evaluated}.items`,(0,F._)`undefined`))}function q0(r,e){const t=typeof r=="object"&&r[e.schemaId];return t&&(e.code.source||e.code.process)?(0,F._)`/*# sourceURL=${t} */`:F.nil}function B3(r,e){if(Gw(r)&&(Fw(r),Hw(r))){Z3(r,e);return}(0,Yw.boolOrEmptySchema)(r,e)}function Hw({schema:r,self:e}){if(typeof r=="boolean")return!r;for(const t in r)if(e.RULES.all[t])return!0;return!1}function Gw(r){return typeof r.schema!="boolean"}function Z3(r,e){const{schema:t,gen:n,opts:o}=r;o.$comment&&t.$comment&&Jw(r),D3(r),M3(r);const s=n.const("_errs",oe.default.errors);Kw(r,s),n.var(e,(0,F._)`${s} === ${oe.default.errors}`)}function Fw(r){(0,en.checkUnknownRules)(r),I3(r)}function Kw(r,e){if(r.opts.jtd)return X0(r,[],!1,e);const t=(0,M0.getSchemaTypes)(r.schema),n=(0,M0.coerceAndCheckDataType)(r,t);X0(r,t,!n,e)}function I3(r){const{schema:e,errSchemaPath:t,opts:n,self:o}=r;e.$ref&&n.ignoreKeywordsWithRef&&(0,en.schemaHasRulesButRef)(e,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${t}"`)}function j3(r){const{schema:e,opts:t}=r;e.default!==void 0&&t.useDefaults&&t.strictSchema&&(0,en.checkStrictMode)(r,"default is ignored in the schema root")}function D3(r){const e=r.schema[r.opts.schemaId];e&&(r.baseId=(0,Q3.resolveUrl)(r.opts.uriResolver,r.baseId,e))}function M3(r){if(r.schema.$async&&!r.schemaEnv.$async)throw new Error("async schema in sync schema")}function Jw({gen:r,schemaEnv:e,schema:t,errSchemaPath:n,opts:o}){const s=t.$comment;if(o.$comment===!0)r.code((0,F._)`${oe.default.self}.logger.log(${s})`);else if(typeof o.$comment=="function"){const i=(0,F.str)`${n}/$comment`,l=r.scopeValue("root",{ref:e.root});r.code((0,F._)`${oe.default.self}.opts.$comment(${s}, ${i}, ${l}.schema)`)}}function q3(r){const{gen:e,schemaEnv:t,validateName:n,ValidationError:o,opts:s}=r;t.$async?e.if((0,F._)`${oe.default.errors} === 0`,()=>e.return(oe.default.data),()=>e.throw((0,F._)`new ${o}(${oe.default.vErrors})`)):(e.assign((0,F._)`${n}.errors`,oe.default.vErrors),s.unevaluated&&X3(r),e.return((0,F._)`${oe.default.errors} === 0`))}function X3({gen:r,evaluated:e,props:t,items:n}){t instanceof F.Name&&r.assign((0,F._)`${e}.props`,t),n instanceof F.Name&&r.assign((0,F._)`${e}.items`,n)}function X0(r,e,t,n){const{gen:o,schema:s,data:i,allErrors:l,opts:c,self:d}=r,{RULES:u}=d;if(s.$ref&&(c.ignoreKeywordsWithRef||!(0,en.schemaHasRulesButRef)(s,u))){o.block(()=>rk(r,"$ref",u.all.$ref.definition));return}c.jtd||W3(r,e),o.block(()=>{for(const f of u.rules)h(f);h(u.post)});function h(f){(0,Bp.shouldUseGroup)(s,f)&&(f.type?(o.if((0,Zc.checkDataType)(f.type,i,c.strictNumbers)),W0(r,f),e.length===1&&e[0]===f.type&&t&&(o.else(),(0,Zc.reportTypeError)(r)),o.endIf()):W0(r,f),l||o.if((0,F._)`${oe.default.errors} === ${n||0}`))}}function W0(r,e){const{gen:t,schema:n,opts:{useDefaults:o}}=r;o&&(0,T3.assignDefaults)(r,e.type),t.block(()=>{for(const s of e.rules)(0,Bp.shouldUseRule)(n,s)&&rk(r,s.keyword,s.definition,e.type)})}function W3(r,e){r.schemaEnv.meta||!r.opts.strictTypes||(z3(r,e),r.opts.allowUnionTypes||U3(r,e),Y3(r,r.dataTypes))}function z3(r,e){if(e.length){if(!r.dataTypes.length){r.dataTypes=e;return}e.forEach(t=>{ek(r.dataTypes,t)||Zp(r,`type "${t}" not allowed by context "${r.dataTypes.join(",")}"`)}),H3(r,e)}}function U3(r,e){e.length>1&&!(e.length===2&&e.includes("null"))&&Zp(r,"use allowUnionTypes to allow union type keyword")}function Y3(r,e){const t=r.self.RULES.all;for(const n in t){const o=t[n];if(typeof o=="object"&&(0,Bp.shouldUseRule)(r.schema,o)){const{type:s}=o.definition;s.length&&!s.some(i=>L3(e,i))&&Zp(r,`missing type "${s.join(",")}" for keyword "${n}"`)}}}function L3(r,e){return r.includes(e)||e==="number"&&r.includes("integer")}function ek(r,e){return r.includes(e)||e==="integer"&&r.includes("number")}function H3(r,e){const t=[];for(const n of r.dataTypes)ek(e,n)?t.push(n):e.includes("integer")&&n==="number"&&t.push("integer");r.dataTypes=t}function Zp(r,e){const t=r.schemaEnv.baseId+r.errSchemaPath;e+=` at "${t}" (strictTypes)`,(0,en.checkStrictMode)(r,e,r.opts.strictTypes)}class tk{constructor(e,t,n){if((0,Wa.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,en.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",nk(this.$data,e));else if(this.schemaCode=this.schemaValue,!(0,Wa.validSchemaType)(this.schema,t.schemaType,t.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(t.schemaType)}`);("code"in t?t.trackErrors:t.errors!==!1)&&(this.errsCount=e.gen.const("_errs",oe.default.errors))}result(e,t,n){this.failResult((0,F.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,F.not)(e),void 0,t)}fail(e){if(e===void 0){this.error(),this.allErrors||this.gen.if(!1);return}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((0,F._)`${t} !== undefined && (${(0,F.or)(this.invalid$data(),e)})`)}error(e,t,n){if(t){this.setParams(t),this._error(e,n),this.setParams({});return}this._error(e,n)}_error(e,t){(e?$a.reportExtraError:$a.reportError)(this,this.def.error,t)}$dataError(){(0,$a.reportError)(this,this.def.$dataError||$a.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,$a.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=F.nil){this.gen.block(()=>{this.check$data(e,n),t()})}check$data(e=F.nil,t=F.nil){if(!this.$data)return;const{gen:n,schemaCode:o,schemaType:s,def:i}=this;n.if((0,F.or)((0,F._)`${o} === undefined`,t)),e!==F.nil&&n.assign(e,!0),(s.length||i.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),e!==F.nil&&n.assign(e,!1)),n.else()}invalid$data(){const{gen:e,schemaCode:t,schemaType:n,def:o,it:s}=this;return(0,F.or)(i(),l());function i(){if(n.length){if(!(t instanceof F.Name))throw new Error("ajv implementation error");const c=Array.isArray(n)?n:[n];return(0,F._)`${(0,Zc.checkDataTypes)(c,t,s.opts.strictNumbers,Zc.DataType.Wrong)}`}return F.nil}function l(){if(o.validateSchema){const c=e.scopeValue("validate$data",{ref:o.validateSchema});return(0,F._)`!${c}(${t})`}return F.nil}}subschema(e,t){const n=(0,Bu.getSubschema)(this.it,e);(0,Bu.extendSubschemaData)(n,this.it,e),(0,Bu.extendSubschemaMode)(n,e);const o={...this.it,...n,items:void 0,props:void 0};return B3(o,t),o}mergeEvaluated(e,t){const{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&e.props!==void 0&&(n.props=en.mergeEvaluated.props(o,e.props,n.props,t)),n.items!==!0&&e.items!==void 0&&(n.items=en.mergeEvaluated.items(o,e.items,n.items,t)))}mergeValidEvaluated(e,t){const{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(t,()=>this.mergeEvaluated(e,F.Name)),!0}}Ht.KeywordCxt=tk;function rk(r,e,t,n){const o=new tk(r,t,e);"code"in t?t.code(o,n):o.$data&&t.validate?(0,Wa.funcKeywordCode)(o,t):"macro"in t?(0,Wa.macroKeywordCode)(o,t):(t.compile||t.validate)&&(0,Wa.funcKeywordCode)(o,t)}const G3=/^\/(?:[^~]|~0|~1)*$/,F3=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function nk(r,{dataLevel:e,dataNames:t,dataPathArr:n}){let o,s;if(r==="")return oe.default.rootData;if(r[0]==="/"){if(!G3.test(r))throw new Error(`Invalid JSON-pointer: ${r}`);o=r,s=oe.default.rootData}else{const d=F3.exec(r);if(!d)throw new Error(`Invalid JSON-pointer: ${r}`);const u=+d[1];if(o=d[2],o==="#"){if(u>=e)throw new Error(c("property/index",u));return n[e-u]}if(u>e)throw new Error(c("data",u));if(s=t[e-u],!o)return s}let i=s;const l=o.split("/");for(const d of l)d&&(s=(0,F._)`${s}${(0,F.getProperty)((0,en.unescapeJsonPointer)(d))}`,i=(0,F._)`${i} && ${s}`);return i;function c(d,u){return`Cannot access ${d} ${u} levels up, current level is ${e}`}}Ht.getData=nk;var Xs={};Object.defineProperty(Xs,"__esModule",{value:!0});class K3 extends Error{constructor(e){super("validation failed"),this.errors=e,this.ajv=this.validation=!0}}Xs.default=K3;var Ws={};Object.defineProperty(Ws,"__esModule",{value:!0});const Zu=ot;class J3 extends Error{constructor(e,t,n,o){super(o||`can't resolve reference ${n} from id ${t}`),this.missingRef=(0,Zu.resolveUrl)(e,t,n),this.missingSchema=(0,Zu.normalizeId)((0,Zu.getFullPath)(e,this.missingRef))}}Ws.default=J3;var bt={};Object.defineProperty(bt,"__esModule",{value:!0});bt.resolveSchema=bt.getCompilingSchema=bt.resolveRef=bt.compileSchema=bt.SchemaEnv=void 0;const rr=se,eZ=Xs,Jn=Dt,cr=ot,z0=pe,tZ=Ht;class vd{constructor(e){var t;this.refs={},this.dynamicAnchors={};let n;typeof e.schema=="object"&&(n=e.schema),this.schema=e.schema,this.schemaId=e.schemaId,this.root=e.root||this,this.baseId=(t=e.baseId)!==null&&t!==void 0?t:(0,cr.normalizeId)(n==null?void 0:n[e.schemaId||"$id"]),this.schemaPath=e.schemaPath,this.localRefs=e.localRefs,this.meta=e.meta,this.$async=n==null?void 0:n.$async,this.refs={}}}bt.SchemaEnv=vd;function Ip(r){const e=ok.call(this,r);if(e)return e;const t=(0,cr.getFullPath)(this.opts.uriResolver,r.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:s}=this.opts,i=new rr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:s});let l;r.$async&&(l=i.scopeValue("Error",{ref:eZ.default,code:(0,rr._)`require("ajv/dist/runtime/validation_error").default`}));const c=i.scopeName("validate");r.validateName=c;const d={gen:i,allErrors:this.opts.allErrors,data:Jn.default.data,parentData:Jn.default.parentData,parentDataProperty:Jn.default.parentDataProperty,dataNames:[Jn.default.data],dataPathArr:[rr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:i.scopeValue("schema",this.opts.code.source===!0?{ref:r.schema,code:(0,rr.stringify)(r.schema)}:{ref:r.schema}),validateName:c,ValidationError:l,schema:r.schema,schemaEnv:r,rootId:t,baseId:r.baseId||t,schemaPath:rr.nil,errSchemaPath:r.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,rr._)`""`,opts:this.opts,self:this};let u;try{this._compilations.add(r),(0,tZ.validateFunctionCode)(d),i.optimize(this.opts.code.optimize);const h=i.toString();u=`${i.scopeRefs(Jn.default.scope)}return ${h}`,this.opts.code.process&&(u=this.opts.code.process(u,r));const f=new Function(`${Jn.default.self}`,`${Jn.default.scope}`,u)(this,this.scope.get());if(this.scope.value(c,{ref:f}),f.errors=null,f.schema=r.schema,f.schemaEnv=r,r.$async&&(f.$async=!0),this.opts.code.source===!0&&(f.source={validateName:c,validateCode:h,scopeValues:i._values}),this.opts.unevaluated){const{props:p,items:m}=d;f.evaluated={props:p instanceof rr.Name?void 0:p,items:m instanceof rr.Name?void 0:m,dynamicProps:p instanceof rr.Name,dynamicItems:m instanceof rr.Name},f.source&&(f.source.evaluated=(0,rr.stringify)(f.evaluated))}return r.validate=f,r}catch(h){throw delete r.validate,delete r.validateName,u&&this.logger.error("Error compiling schema, function code:",u),h}finally{this._compilations.delete(r)}}bt.compileSchema=Ip;function rZ(r,e,t){var n;t=(0,cr.resolveUrl)(this.opts.uriResolver,e,t);const o=r.refs[t];if(o)return o;let s=sZ.call(this,r,t);if(s===void 0){const i=(n=r.localRefs)===null||n===void 0?void 0:n[t],{schemaId:l}=this.opts;i&&(s=new vd({schema:i,schemaId:l,root:r,baseId:e}))}if(s!==void 0)return r.refs[t]=nZ.call(this,s)}bt.resolveRef=rZ;function nZ(r){return(0,cr.inlineRef)(r.schema,this.opts.inlineRefs)?r.schema:r.validate?r:Ip.call(this,r)}function ok(r){for(const e of this._compilations)if(oZ(e,r))return e}bt.getCompilingSchema=ok;function oZ(r,e){return r.schema===e.schema&&r.root===e.root&&r.baseId===e.baseId}function sZ(r,e){let t;for(;typeof(t=this.refs[e])=="string";)e=t;return t||this.schemas[e]||wd.call(this,r,e)}function wd(r,e){const t=this.opts.uriResolver.parse(e),n=(0,cr._getFullPath)(this.opts.uriResolver,t);let o=(0,cr.getFullPath)(this.opts.uriResolver,r.baseId,void 0);if(Object.keys(r.schema).length>0&&n===o)return Iu.call(this,t,r);const s=(0,cr.normalizeId)(n),i=this.refs[s]||this.schemas[s];if(typeof i=="string"){const l=wd.call(this,r,i);return typeof(l==null?void 0:l.schema)!="object"?void 0:Iu.call(this,t,l)}if(typeof(i==null?void 0:i.schema)=="object"){if(i.validate||Ip.call(this,i),s===(0,cr.normalizeId)(e)){const{schema:l}=i,{schemaId:c}=this.opts,d=l[c];return d&&(o=(0,cr.resolveUrl)(this.opts.uriResolver,o,d)),new vd({schema:l,schemaId:c,root:r,baseId:o})}return Iu.call(this,t,i)}}bt.resolveSchema=wd;const aZ=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Iu(r,{baseId:e,schema:t,root:n}){var o;if(((o=r.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(const l of r.fragment.slice(1).split("/")){if(typeof t=="boolean")return;const c=t[(0,z0.unescapeFragment)(l)];if(c===void 0)return;t=c;const d=typeof t=="object"&&t[this.opts.schemaId];!aZ.has(l)&&d&&(e=(0,cr.resolveUrl)(this.opts.uriResolver,e,d))}let s;if(typeof t!="boolean"&&t.$ref&&!(0,z0.schemaHasRulesButRef)(t,this.RULES)){const l=(0,cr.resolveUrl)(this.opts.uriResolver,e,t.$ref);s=wd.call(this,n,l)}const{schemaId:i}=this.opts;if(s=s||new vd({schema:t,schemaId:i,root:n,baseId:e}),s.schema!==s.root.schema)return s}const iZ="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",lZ="Meta-schema for $data reference (JSON AnySchema extension proposal)",cZ="object",dZ=["$data"],uZ={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},hZ=!1,fZ={$id:iZ,description:lZ,type:cZ,required:dZ,properties:uZ,additionalProperties:hZ};var jp={},pf={exports:{}};/** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js */(function(r,e){(function(t,n){n(e)})(RB,function(t){function n(){for(var x=arguments.length,C=Array(x),E=0;E<x;E++)C[E]=arguments[E];if(C.length>1){C[0]=C[0].slice(0,-1);for(var j=C.length-1,D=1;D<j;++D)C[D]=C[D].slice(1,-1);return C[j]=C[j].slice(1),C.join("")}else return C[0]}function o(x){return"(?:"+x+")"}function s(x){return x===void 0?"undefined":x===null?"null":Object.prototype.toString.call(x).split(" ").pop().split("]").shift().toLowerCase()}function i(x){return x.toUpperCase()}function l(x){return x!=null?x instanceof Array?x:typeof x.length!="number"||x.split||x.setInterval||x.call?[x]:Array.prototype.slice.call(x):[]}function c(x,C){var E=x;if(C)for(var j in C)E[j]=C[j];return E}function d(x){var C="[A-Za-z]",E="[0-9]",j=n(E,"[A-Fa-f]"),D=o(o("%[EFef]"+j+"%"+j+j+"%"+j+j)+"|"+o("%[89A-Fa-f]"+j+"%"+j+j)+"|"+o("%"+j+j)),te="[\\:\\/\\?\\#\\[\\]\\@]",J="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Oe=n(te,J),Ue=x?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",Ce=x?"[\\uE000-\\uF8FF]":"[]",me=n(C,E,"[\\-\\.\\_\\~]",Ue);o(C+n(C,E,"[\\+\\-\\.]")+"*"),o(o(D+"|"+n(me,J,"[\\:]"))+"*");var Ne=o(o("25[0-5]")+"|"+o("2[0-4]"+E)+"|"+o("1"+E+E)+"|"+o("0?[1-9]"+E)+"|0?0?"+E),qe=o(Ne+"\\."+Ne+"\\."+Ne+"\\."+Ne),ce=o(j+"{1,4}"),Ye=o(o(ce+"\\:"+ce)+"|"+qe),Te=o(o(ce+"\\:")+"{6}"+Ye),qt=o("\\:\\:"+o(ce+"\\:")+"{5}"+Ye),Mo=o(o(ce)+"?\\:\\:"+o(ce+"\\:")+"{4}"+Ye),tr=o(o(o(ce+"\\:")+"{0,1}"+ce)+"?\\:\\:"+o(ce+"\\:")+"{3}"+Ye),Xr=o(o(o(ce+"\\:")+"{0,2}"+ce)+"?\\:\\:"+o(ce+"\\:")+"{2}"+Ye),Hn=o(o(o(ce+"\\:")+"{0,3}"+ce)+"?\\:\\:"+ce+"\\:"+Ye),Gn=o(o(o(ce+"\\:")+"{0,4}"+ce)+"?\\:\\:"+Ye),Xt=o(o(o(ce+"\\:")+"{0,5}"+ce)+"?\\:\\:"+ce),Wr=o(o(o(ce+"\\:")+"{0,6}"+ce)+"?\\:\\:"),Fn=o([Te,qt,Mo,tr,Xr,Hn,Gn,Xt,Wr].join("|")),$r=o(o(me+"|"+D)+"+");o("[vV]"+j+"+\\."+n(me,J,"[\\:]")+"+"),o(o(D+"|"+n(me,J))+"*");var Ki=o(D+"|"+n(me,J,"[\\:\\@]"));return o(o(D+"|"+n(me,J,"[\\@]"))+"+"),o(o(Ki+"|"+n("[\\/\\?]",Ce))+"*"),{NOT_SCHEME:new RegExp(n("[^]",C,E,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(n("[^\\%\\:]",me,J),"g"),NOT_HOST:new RegExp(n("[^\\%\\[\\]\\:]",me,J),"g"),NOT_PATH:new RegExp(n("[^\\%\\/\\:\\@]",me,J),"g"),NOT_PATH_NOSCHEME:new RegExp(n("[^\\%\\/\\@]",me,J),"g"),NOT_QUERY:new RegExp(n("[^\\%]",me,J,"[\\:\\@\\/\\?]",Ce),"g"),NOT_FRAGMENT:new RegExp(n("[^\\%]",me,J,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(n("[^]",me,J),"g"),UNRESERVED:new RegExp(me,"g"),OTHER_CHARS:new RegExp(n("[^\\%]",me,Oe),"g"),PCT_ENCODED:new RegExp(D,"g"),IPV4ADDRESS:new RegExp("^("+qe+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Fn+")"+o(o("\\%25|\\%(?!"+j+"{2})")+"("+$r+")")+"?\\]?$")}}var u=d(!1),h=d(!0),f=function(){function x(C,E){var j=[],D=!0,te=!1,J=void 0;try{for(var Oe=C[Symbol.iterator](),Ue;!(D=(Ue=Oe.next()).done)&&(j.push(Ue.value),!(E&&j.length===E));D=!0);}catch(Ce){te=!0,J=Ce}finally{try{!D&&Oe.return&&Oe.return()}finally{if(te)throw J}}return j}return function(C,E){if(Array.isArray(C))return C;if(Symbol.iterator in Object(C))return x(C,E);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),p=function(x){if(Array.isArray(x)){for(var C=0,E=Array(x.length);C<x.length;C++)E[C]=x[C];return E}else return Array.from(x)},m=2147483647,g=36,O=1,y=26,b=38,v=700,k=72,S=128,w="-",$=/^xn--/,T=/[^\0-\x7E]/,R=/[\x2E\u3002\uFF0E\uFF61]/g,B={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},M=g-O,V=Math.floor,K=String.fromCharCode;function L(x){throw new RangeError(B[x])}function ne(x,C){for(var E=[],j=x.length;j--;)E[j]=C(x[j]);return E}function ge(x,C){var E=x.split("@"),j="";E.length>1&&(j=E[0]+"@",x=E[1]),x=x.replace(R,".");var D=x.split("."),te=ne(D,C).join(".");return j+te}function Se(x){for(var C=[],E=0,j=x.length;E<j;){var D=x.charCodeAt(E++);if(D>=55296&&D<=56319&&E<j){var te=x.charCodeAt(E++);(te&64512)==56320?C.push(((D&1023)<<10)+(te&1023)+65536):(C.push(D),E--)}else C.push(D)}return C}var Pe=function(x){return String.fromCodePoint.apply(String,p(x))},ie=function(x){return x-48<10?x-22:x-65<26?x-65:x-97<26?x-97:g},q=function(x,C){return x+22+75*(x<26)-((C!=0)<<5)},N=function(x,C,E){var j=0;for(x=E?V(x/v):x>>1,x+=V(x/C);x>M*y>>1;j+=g)x=V(x/M);return V(j+(M+1)*x/(x+b))},I=function(x){var C=[],E=x.length,j=0,D=S,te=k,J=x.lastIndexOf(w);J<0&&(J=0);for(var Oe=0;Oe<J;++Oe)x.charCodeAt(Oe)>=128&&L("not-basic"),C.push(x.charCodeAt(Oe));for(var Ue=J>0?J+1:0;Ue<E;){for(var Ce=j,me=1,Ne=g;;Ne+=g){Ue>=E&&L("invalid-input");var qe=ie(x.charCodeAt(Ue++));(qe>=g||qe>V((m-j)/me))&&L("overflow"),j+=qe*me;var ce=Ne<=te?O:Ne>=te+y?y:Ne-te;if(qe<ce)break;var Ye=g-ce;me>V(m/Ye)&&L("overflow"),me*=Ye}var Te=C.length+1;te=N(j-Ce,Te,Ce==0),V(j/Te)>m-D&&L("overflow"),D+=V(j/Te),j%=Te,C.splice(j++,0,D)}return String.fromCodePoint.apply(String,C)},Z=function(x){var C=[];x=Se(x);var E=x.length,j=S,D=0,te=k,J=!0,Oe=!1,Ue=void 0;try{for(var Ce=x[Symbol.iterator](),me;!(J=(me=Ce.next()).done);J=!0){var Ne=me.value;Ne<128&&C.push(K(Ne))}}catch(fa){Oe=!0,Ue=fa}finally{try{!J&&Ce.return&&Ce.return()}finally{if(Oe)throw Ue}}var qe=C.length,ce=qe;for(qe&&C.push(w);ce<E;){var Ye=m,Te=!0,qt=!1,Mo=void 0;try{for(var tr=x[Symbol.iterator](),Xr;!(Te=(Xr=tr.next()).done);Te=!0){var Hn=Xr.value;Hn>=j&&Hn<Ye&&(Ye=Hn)}}catch(fa){qt=!0,Mo=fa}finally{try{!Te&&tr.return&&tr.return()}finally{if(qt)throw Mo}}var Gn=ce+1;Ye-j>V((m-D)/Gn)&&L("overflow"),D+=(Ye-j)*Gn,j=Ye;var Xt=!0,Wr=!1,Fn=void 0;try{for(var $r=x[Symbol.iterator](),Ki;!(Xt=(Ki=$r.next()).done);Xt=!0){var ag=Ki.value;if(ag<j&&++D>m&&L("overflow"),ag==j){for(var Ji=D,el=g;;el+=g){var tl=el<=te?O:el>=te+y?y:el-te;if(Ji<tl)break;var ig=Ji-tl,lg=g-tl;C.push(K(q(tl+ig%lg,0))),Ji=V(ig/lg)}C.push(K(q(Ji,0))),te=N(D,Gn,ce==qe),D=0,++ce}}}catch(fa){Wr=!0,Fn=fa}finally{try{!Xt&&$r.return&&$r.return()}finally{if(Wr)throw Fn}}++D,++j}return C.join("")},P=function(x){return ge(x,function(C){return $.test(C)?I(C.slice(4).toLowerCase()):C})},Q=function(x){return ge(x,function(C){return T.test(C)?"xn--"+Z(C):C})},A={version:"2.1.0",ucs2:{decode:Se,encode:Pe},decode:I,encode:Z,toASCII:Q,toUnicode:P},X={};function z(x){var C=x.charCodeAt(0),E=void 0;return C<16?E="%0"+C.toString(16).toUpperCase():C<128?E="%"+C.toString(16).toUpperCase():C<2048?E="%"+(C>>6|192).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase():E="%"+(C>>12|224).toString(16).toUpperCase()+"%"+(C>>6&63|128).toString(16).toUpperCase()+"%"+(C&63|128).toString(16).toUpperCase(),E}function le(x){for(var C="",E=0,j=x.length;E<j;){var D=parseInt(x.substr(E+1,2),16);if(D<128)C+=String.fromCharCode(D),E+=3;else if(D>=194&&D<224){if(j-E>=6){var te=parseInt(x.substr(E+4,2),16);C+=String.fromCharCode((D&31)<<6|te&63)}else C+=x.substr(E,6);E+=6}else if(D>=224){if(j-E>=9){var J=parseInt(x.substr(E+4,2),16),Oe=parseInt(x.substr(E+7,2),16);C+=String.fromCharCode((D&15)<<12|(J&63)<<6|Oe&63)}else C+=x.substr(E,9);E+=9}else C+=x.substr(E,3),E+=3}return C}function ae(x,C){function E(j){var D=le(j);return D.match(C.UNRESERVED)?D:j}return x.scheme&&(x.scheme=String(x.scheme).replace(C.PCT_ENCODED,E).toLowerCase().replace(C.NOT_SCHEME,"")),x.userinfo!==void 0&&(x.userinfo=String(x.userinfo).replace(C.PCT_ENCODED,E).replace(C.NOT_USERINFO,z).replace(C.PCT_ENCODED,i)),x.host!==void 0&&(x.host=String(x.host).replace(C.PCT_ENCODED,E).toLowerCase().replace(C.NOT_HOST,z).replace(C.PCT_ENCODED,i)),x.path!==void 0&&(x.path=String(x.path).replace(C.PCT_ENCODED,E).replace(x.scheme?C.NOT_PATH:C.NOT_PATH_NOSCHEME,z).replace(C.PCT_ENCODED,i)),x.query!==void 0&&(x.query=String(x.query).replace(C.PCT_ENCODED,E).replace(C.NOT_QUERY,z).replace(C.PCT_ENCODED,i)),x.fragment!==void 0&&(x.fragment=String(x.fragment).replace(C.PCT_ENCODED,E).replace(C.NOT_FRAGMENT,z).replace(C.PCT_ENCODED,i)),x}function be(x){return x.replace(/^0*(.*)/,"$1")||"0"}function wr(x,C){var E=x.match(C.IPV4ADDRESS)||[],j=f(E,2),D=j[1];return D?D.split(".").map(be).join("."):x}function Vo(x,C){var E=x.match(C.IPV6ADDRESS)||[],j=f(E,3),D=j[1],te=j[2];if(D){for(var J=D.toLowerCase().split("::").reverse(),Oe=f(J,2),Ue=Oe[0],Ce=Oe[1],me=Ce?Ce.split(":").map(be):[],Ne=Ue.split(":").map(be),qe=C.IPV4ADDRESS.test(Ne[Ne.length-1]),ce=qe?7:8,Ye=Ne.length-ce,Te=Array(ce),qt=0;qt<ce;++qt)Te[qt]=me[qt]||Ne[Ye+qt]||"";qe&&(Te[ce-1]=wr(Te[ce-1],C));var Mo=Te.reduce(function(Xt,Wr,Fn){if(!Wr||Wr==="0"){var $r=Xt[Xt.length-1];$r&&$r.index+$r.length===Fn?$r.length++:Xt.push({index:Fn,length:1})}return Xt},[]),tr=Mo.sort(function(Xt,Wr){return Wr.length-Xt.length})[0],Xr=void 0;if(tr&&tr.length>1){var Hn=Te.slice(0,tr.index),Gn=Te.slice(tr.index+tr.length);Xr=Hn.join(":")+"::"+Gn.join(":")}else Xr=Te.join(":");return te&&(Xr+="%"+te),Xr}else return x}var aa=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,ia="".match(/(){0}/)[1]===void 0;function Qt(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E={},j=C.iri!==!1?h:u;C.reference==="suffix"&&(x=(C.scheme?C.scheme+":":"")+"//"+x);var D=x.match(aa);if(D){ia?(E.scheme=D[1],E.userinfo=D[3],E.host=D[4],E.port=parseInt(D[5],10),E.path=D[6]||"",E.query=D[7],E.fragment=D[8],isNaN(E.port)&&(E.port=D[5])):(E.scheme=D[1]||void 0,E.userinfo=x.indexOf("@")!==-1?D[3]:void 0,E.host=x.indexOf("//")!==-1?D[4]:void 0,E.port=parseInt(D[5],10),E.path=D[6]||"",E.query=x.indexOf("?")!==-1?D[7]:void 0,E.fragment=x.indexOf("#")!==-1?D[8]:void 0,isNaN(E.port)&&(E.port=x.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?D[4]:void 0)),E.host&&(E.host=Vo(wr(E.host,j),j)),E.scheme===void 0&&E.userinfo===void 0&&E.host===void 0&&E.port===void 0&&!E.path&&E.query===void 0?E.reference="same-document":E.scheme===void 0?E.reference="relative":E.fragment===void 0?E.reference="absolute":E.reference="uri",C.reference&&C.reference!=="suffix"&&C.reference!==E.reference&&(E.error=E.error||"URI is not a "+C.reference+" reference.");var te=X[(C.scheme||E.scheme||"").toLowerCase()];if(!C.unicodeSupport&&(!te||!te.unicodeSupport)){if(E.host&&(C.domainHost||te&&te.domainHost))try{E.host=A.toASCII(E.host.replace(j.PCT_ENCODED,le).toLowerCase())}catch(J){E.error=E.error||"Host's domain name can not be converted to ASCII via punycode: "+J}ae(E,u)}else ae(E,j);te&&te.parse&&te.parse(E,C)}else E.error=E.error||"URI can not be parsed.";return E}function la(x,C){var E=C.iri!==!1?h:u,j=[];return x.userinfo!==void 0&&(j.push(x.userinfo),j.push("@")),x.host!==void 0&&j.push(Vo(wr(String(x.host),E),E).replace(E.IPV6ADDRESS,function(D,te,J){return"["+te+(J?"%25"+J:"")+"]"})),(typeof x.port=="number"||typeof x.port=="string")&&(j.push(":"),j.push(String(x.port))),j.length?j.join(""):void 0}var Bo=/^\.\.?\//,Zo=/^\/\.(\/|$)/,Io=/^\/\.\.(\/|$)/,ca=/^\/?(?:.|\n)*?(?=\/|$)/;function kr(x){for(var C=[];x.length;)if(x.match(Bo))x=x.replace(Bo,"");else if(x.match(Zo))x=x.replace(Zo,"/");else if(x.match(Io))x=x.replace(Io,"/"),C.pop();else if(x==="."||x==="..")x="";else{var E=x.match(ca);if(E){var j=E[0];x=x.slice(j.length),C.push(j)}else throw new Error("Unexpected dot segment condition")}return C.join("")}function St(x){var C=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},E=C.iri?h:u,j=[],D=X[(C.scheme||x.scheme||"").toLowerCase()];if(D&&D.serialize&&D.serialize(x,C),x.host&&!E.IPV6ADDRESS.test(x.host)&&(C.domainHost||D&&D.domainHost))try{x.host=C.iri?A.toUnicode(x.host):A.toASCII(x.host.replace(E.PCT_ENCODED,le).toLowerCase())}catch(Oe){x.error=x.error||"Host's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+Oe}ae(x,E),C.reference!=="suffix"&&x.scheme&&(j.push(x.scheme),j.push(":"));var te=la(x,C);if(te!==void 0&&(C.reference!=="suffix"&&j.push("//"),j.push(te),x.path&&x.path.charAt(0)!=="/"&&j.push("/")),x.path!==void 0){var J=x.path;!C.absolutePath&&(!D||!D.absolutePath)&&(J=kr(J)),te===void 0&&(J=J.replace(/^\/\//,"/%2F")),j.push(J)}return x.query!==void 0&&(j.push("?"),j.push(x.query)),x.fragment!==void 0&&(j.push("#"),j.push(x.fragment)),j.join("")}function jo(x,C){var E=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},j=arguments[3],D={};return j||(x=Qt(St(x,E),E),C=Qt(St(C,E),E)),E=E||{},!E.tolerant&&C.scheme?(D.scheme=C.scheme,D.userinfo=C.userinfo,D.host=C.host,D.port=C.port,D.path=kr(C.path||""),D.query=C.query):(C.userinfo!==void 0||C.host!==void 0||C.port!==void 0?(D.userinfo=C.userinfo,D.host=C.host,D.port=C.port,D.path=kr(C.path||""),D.query=C.query):(C.path?(C.path.charAt(0)==="/"?D.path=kr(C.path):((x.userinfo!==void 0||x.host!==void 0||x.port!==void 0)&&!x.path?D.path="/"+C.path:x.path?D.path=x.path.slice(0,x.path.lastIndexOf("/")+1)+C.path:D.path=C.path,D.path=kr(D.path)),D.query=C.query):(D.path=x.path,C.query!==void 0?D.query=C.query:D.query=x.query),D.userinfo=x.userinfo,D.host=x.host,D.port=x.port),D.scheme=x.scheme),D.fragment=C.fragment,D}function da(x,C,E){var j=c({scheme:"null"},E);return St(jo(Qt(x,j),Qt(C,j),j,!0),j)}function Yn(x,C){return typeof x=="string"?x=St(Qt(x,C),C):s(x)==="object"&&(x=Qt(St(x,C),C)),x}function ua(x,C,E){return typeof x=="string"?x=St(Qt(x,E),E):s(x)==="object"&&(x=St(x,E)),typeof C=="string"?C=St(Qt(C,E),E):s(C)==="object"&&(C=St(C,E)),x===C}function Fi(x,C){return x&&x.toString().replace(!C||!C.iri?u.ESCAPE:h.ESCAPE,z)}function Mt(x,C){return x&&x.toString().replace(!C||!C.iri?u.PCT_ENCODED:h.PCT_ENCODED,le)}var Ln={scheme:"http",domainHost:!0,parse:function(x,C){return x.host||(x.error=x.error||"HTTP URIs must have a host."),x},serialize:function(x,C){var E=String(x.scheme).toLowerCase()==="https";return(x.port===(E?443:80)||x.port==="")&&(x.port=void 0),x.path||(x.path="/"),x}},Km={scheme:"https",domainHost:Ln.domainHost,parse:Ln.parse,serialize:Ln.serialize};function Jm(x){return typeof x.secure=="boolean"?x.secure:String(x.scheme).toLowerCase()==="wss"}var ha={scheme:"ws",domainHost:!0,parse:function(x,C){var E=x;return E.secure=Jm(E),E.resourceName=(E.path||"/")+(E.query?"?"+E.query:""),E.path=void 0,E.query=void 0,E},serialize:function(x,C){if((x.port===(Jm(x)?443:80)||x.port==="")&&(x.port=void 0),typeof x.secure=="boolean"&&(x.scheme=x.secure?"wss":"ws",x.secure=void 0),x.resourceName){var E=x.resourceName.split("?"),j=f(E,2),D=j[0],te=j[1];x.path=D&&D!=="/"?D:void 0,x.query=te,x.resourceName=void 0}return x.fragment=void 0,x}},eg={scheme:"wss",domainHost:ha.domainHost,parse:ha.parse,serialize:ha.serialize},c$={},tg="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Sr="[0-9A-Fa-f]",d$=o(o("%[EFef]"+Sr+"%"+Sr+Sr+"%"+Sr+Sr)+"|"+o("%[89A-Fa-f]"+Sr+"%"+Sr+Sr)+"|"+o("%"+Sr+Sr)),u$="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",h$="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",f$=n(h$,'[\\"\\\\]'),p$="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",m$=new RegExp(tg,"g"),Do=new RegExp(d$,"g"),g$=new RegExp(n("[^]",u$,"[\\.]",'[\\"]',f$),"g"),rg=new RegExp(n("[^]",tg,p$),"g"),O$=rg;function eu(x){var C=le(x);return C.match(m$)?C:x}var ng={scheme:"mailto",parse:function(x,C){var E=x,j=E.to=E.path?E.path.split(","):[];if(E.path=void 0,E.query){for(var D=!1,te={},J=E.query.split("&"),Oe=0,Ue=J.length;Oe<Ue;++Oe){var Ce=J[Oe].split("=");switch(Ce[0]){case"to":for(var me=Ce[1].split(","),Ne=0,qe=me.length;Ne<qe;++Ne)j.push(me[Ne]);break;case"subject":E.subject=Mt(Ce[1],C);break;case"body":E.body=Mt(Ce[1],C);break;default:D=!0,te[Mt(Ce[0],C)]=Mt(Ce[1],C);break}}D&&(E.headers=te)}E.query=void 0;for(var ce=0,Ye=j.length;ce<Ye;++ce){var Te=j[ce].split("@");if(Te[0]=Mt(Te[0]),C.unicodeSupport)Te[1]=Mt(Te[1],C).toLowerCase();else try{Te[1]=A.toASCII(Mt(Te[1],C).toLowerCase())}catch(qt){E.error=E.error||"Email address's domain name can not be converted to ASCII via punycode: "+qt}j[ce]=Te.join("@")}return E},serialize:function(x,C){var E=x,j=l(x.to);if(j){for(var D=0,te=j.length;D<te;++D){var J=String(j[D]),Oe=J.lastIndexOf("@"),Ue=J.slice(0,Oe).replace(Do,eu).replace(Do,i).replace(g$,z),Ce=J.slice(Oe+1);try{Ce=C.iri?A.toUnicode(Ce):A.toASCII(Mt(Ce,C).toLowerCase())}catch(ce){E.error=E.error||"Email address's domain name can not be converted to "+(C.iri?"Unicode":"ASCII")+" via punycode: "+ce}j[D]=Ue+"@"+Ce}E.path=j.join(",")}var me=x.headers=x.headers||{};x.subject&&(me.subject=x.subject),x.body&&(me.body=x.body);var Ne=[];for(var qe in me)me[qe]!==c$[qe]&&Ne.push(qe.replace(Do,eu).replace(Do,i).replace(rg,z)+"="+me[qe].replace(Do,eu).replace(Do,i).replace(O$,z));return Ne.length&&(E.query=Ne.join("&")),E}},y$=/^([^\:]+)\:(.*)/,og={scheme:"urn",parse:function(x,C){var E=x.path&&x.path.match(y$),j=x;if(E){var D=C.scheme||j.scheme||"urn",te=E[1].toLowerCase(),J=E[2],Oe=D+":"+(C.nid||te),Ue=X[Oe];j.nid=te,j.nss=J,j.path=void 0,Ue&&(j=Ue.parse(j,C))}else j.error=j.error||"URN can not be parsed.";return j},serialize:function(x,C){var E=C.scheme||x.scheme||"urn",j=x.nid,D=E+":"+(C.nid||j),te=X[D];te&&(x=te.serialize(x,C));var J=x,Oe=x.nss;return J.path=(j||C.nid)+":"+Oe,J}},b$=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,sg={scheme:"urn:uuid",parse:function(x,C){var E=x;return E.uuid=E.nss,E.nss=void 0,!C.tolerant&&(!E.uuid||!E.uuid.match(b$))&&(E.error=E.error||"UUID is not valid."),E},serialize:function(x,C){var E=x;return E.nss=(x.uuid||"").toLowerCase(),E}};X[Ln.scheme]=Ln,X[Km.scheme]=Km,X[ha.scheme]=ha,X[eg.scheme]=eg,X[ng.scheme]=ng,X[og.scheme]=og,X[sg.scheme]=sg,t.SCHEMES=X,t.pctEncChar=z,t.pctDecChars=le,t.parse=Qt,t.removeDotSegments=kr,t.serialize=St,t.resolveComponents=jo,t.resolve=da,t.normalize=Yn,t.equal=ua,t.escapeComponent=Fi,t.unescapeComponent=Mt,Object.defineProperty(t,"__esModule",{value:!0})})})(pf,pf.exports);var pZ=pf.exports;Object.defineProperty(jp,"__esModule",{value:!0});const sk=pZ;sk.code='require("ajv/dist/runtime/uri").default';jp.default=sk;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.CodeGen=r.Name=r.nil=r.stringify=r.str=r._=r.KeywordCxt=void 0;var e=Ht;Object.defineProperty(r,"KeywordCxt",{enumerable:!0,get:function(){return e.KeywordCxt}});var t=se;Object.defineProperty(r,"_",{enumerable:!0,get:function(){return t._}}),Object.defineProperty(r,"str",{enumerable:!0,get:function(){return t.str}}),Object.defineProperty(r,"stringify",{enumerable:!0,get:function(){return t.stringify}}),Object.defineProperty(r,"nil",{enumerable:!0,get:function(){return t.nil}}),Object.defineProperty(r,"Name",{enumerable:!0,get:function(){return t.Name}}),Object.defineProperty(r,"CodeGen",{enumerable:!0,get:function(){return t.CodeGen}});const n=Xs,o=Ws,s=Co,i=bt,l=se,c=ot,d=Vi,u=pe,h=fZ,f=jp,p=(q,N)=>new RegExp(q,N);p.code="new RegExp";const m=["removeAdditional","useDefaults","coerceTypes"],g=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),O={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."},y={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},b=200;function v(q){var N,I,Z,P,Q,A,X,z,le,ae,be,wr,Vo,aa,ia,Qt,la,Bo,Zo,Io,ca,kr,St,jo,da;const Yn=q.strict,ua=(N=q.code)===null||N===void 0?void 0:N.optimize,Fi=ua===!0||ua===void 0?1:ua||0,Mt=(Z=(I=q.code)===null||I===void 0?void 0:I.regExp)!==null&&Z!==void 0?Z:p,Ln=(P=q.uriResolver)!==null&&P!==void 0?P:f.default;return{strictSchema:(A=(Q=q.strictSchema)!==null&&Q!==void 0?Q:Yn)!==null&&A!==void 0?A:!0,strictNumbers:(z=(X=q.strictNumbers)!==null&&X!==void 0?X:Yn)!==null&&z!==void 0?z:!0,strictTypes:(ae=(le=q.strictTypes)!==null&&le!==void 0?le:Yn)!==null&&ae!==void 0?ae:"log",strictTuples:(wr=(be=q.strictTuples)!==null&&be!==void 0?be:Yn)!==null&&wr!==void 0?wr:"log",strictRequired:(aa=(Vo=q.strictRequired)!==null&&Vo!==void 0?Vo:Yn)!==null&&aa!==void 0?aa:!1,code:q.code?{...q.code,optimize:Fi,regExp:Mt}:{optimize:Fi,regExp:Mt},loopRequired:(ia=q.loopRequired)!==null&&ia!==void 0?ia:b,loopEnum:(Qt=q.loopEnum)!==null&&Qt!==void 0?Qt:b,meta:(la=q.meta)!==null&&la!==void 0?la:!0,messages:(Bo=q.messages)!==null&&Bo!==void 0?Bo:!0,inlineRefs:(Zo=q.inlineRefs)!==null&&Zo!==void 0?Zo:!0,schemaId:(Io=q.schemaId)!==null&&Io!==void 0?Io:"$id",addUsedSchema:(ca=q.addUsedSchema)!==null&&ca!==void 0?ca:!0,validateSchema:(kr=q.validateSchema)!==null&&kr!==void 0?kr:!0,validateFormats:(St=q.validateFormats)!==null&&St!==void 0?St:!0,unicodeRegExp:(jo=q.unicodeRegExp)!==null&&jo!==void 0?jo:!0,int32range:(da=q.int32range)!==null&&da!==void 0?da:!0,uriResolver:Ln}}class k{constructor(N={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,N=this.opts={...N,...v(N)};const{es5:I,lines:Z}=this.opts.code;this.scope=new l.ValueScope({scope:{},prefixes:g,es5:I,lines:Z}),this.logger=V(N.logger);const P=N.validateFormats;N.validateFormats=!1,this.RULES=(0,s.getRules)(),S.call(this,O,N,"NOT SUPPORTED"),S.call(this,y,N,"DEPRECATED","warn"),this._metaOpts=B.call(this),N.formats&&T.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),N.keywords&&R.call(this,N.keywords),typeof N.meta=="object"&&this.addMetaSchema(N.meta),$.call(this),N.validateFormats=P}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){const{$data:N,meta:I,schemaId:Z}=this.opts;let P=h;Z==="id"&&(P={...h},P.id=P.$id,delete P.$id),I&&N&&this.addMetaSchema(P,P[Z],!1)}defaultMeta(){const{meta:N,schemaId:I}=this.opts;return this.opts.defaultMeta=typeof N=="object"?N[I]||N:void 0}validate(N,I){let Z;if(typeof N=="string"){if(Z=this.getSchema(N),!Z)throw new Error(`no schema with key or ref "${N}"`)}else Z=this.compile(N);const P=Z(I);return"$async"in Z||(this.errors=Z.errors),P}compile(N,I){const Z=this._addSchema(N,I);return Z.validate||this._compileSchemaEnv(Z)}compileAsync(N,I){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");const{loadSchema:Z}=this.opts;return P.call(this,N,I);async function P(ae,be){await Q.call(this,ae.$schema);const wr=this._addSchema(ae,be);return wr.validate||A.call(this,wr)}async function Q(ae){ae&&!this.getSchema(ae)&&await P.call(this,{$ref:ae},!0)}async function A(ae){try{return this._compileSchemaEnv(ae)}catch(be){if(!(be instanceof o.default))throw be;return X.call(this,be),await z.call(this,be.missingSchema),A.call(this,ae)}}function X({missingSchema:ae,missingRef:be}){if(this.refs[ae])throw new Error(`AnySchema ${ae} is loaded but ${be} cannot be resolved`)}async function z(ae){const be=await le.call(this,ae);this.refs[ae]||await Q.call(this,be.$schema),this.refs[ae]||this.addSchema(be,ae,I)}async function le(ae){const be=this._loading[ae];if(be)return be;try{return await(this._loading[ae]=Z(ae))}finally{delete this._loading[ae]}}}addSchema(N,I,Z,P=this.opts.validateSchema){if(Array.isArray(N)){for(const A of N)this.addSchema(A,void 0,Z,P);return this}let Q;if(typeof N=="object"){const{schemaId:A}=this.opts;if(Q=N[A],Q!==void 0&&typeof Q!="string")throw new Error(`schema ${A} must be string`)}return I=(0,c.normalizeId)(I||Q),this._checkUnique(I),this.schemas[I]=this._addSchema(N,Z,I,P,!0),this}addMetaSchema(N,I,Z=this.opts.validateSchema){return this.addSchema(N,I,!0,Z),this}validateSchema(N,I){if(typeof N=="boolean")return!0;let Z;if(Z=N.$schema,Z!==void 0&&typeof Z!="string")throw new Error("$schema must be a string");if(Z=Z||this.opts.defaultMeta||this.defaultMeta(),!Z)return this.logger.warn("meta-schema not available"),this.errors=null,!0;const P=this.validate(Z,N);if(!P&&I){const Q="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(Q);else throw new Error(Q)}return P}getSchema(N){let I;for(;typeof(I=w.call(this,N))=="string";)N=I;if(I===void 0){const{schemaId:Z}=this.opts,P=new i.SchemaEnv({schema:{},schemaId:Z});if(I=i.resolveSchema.call(this,P,N),!I)return;this.refs[N]=I}return I.validate||this._compileSchemaEnv(I)}removeSchema(N){if(N instanceof RegExp)return this._removeAllSchemas(this.schemas,N),this._removeAllSchemas(this.refs,N),this;switch(typeof N){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{const I=w.call(this,N);return typeof I=="object"&&this._cache.delete(I.schema),delete this.schemas[N],delete this.refs[N],this}case"object":{const I=N;this._cache.delete(I);let Z=N[this.opts.schemaId];return Z&&(Z=(0,c.normalizeId)(Z),delete this.schemas[Z],delete this.refs[Z]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(N){for(const I of N)this.addKeyword(I);return this}addKeyword(N,I){let Z;if(typeof N=="string")Z=N,typeof I=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),I.keyword=Z);else if(typeof N=="object"&&I===void 0){if(I=N,Z=I.keyword,Array.isArray(Z)&&!Z.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(L.call(this,Z,I),!I)return(0,u.eachItem)(Z,Q=>ne.call(this,Q)),this;Se.call(this,I);const P={...I,type:(0,d.getJSONTypes)(I.type),schemaType:(0,d.getJSONTypes)(I.schemaType)};return(0,u.eachItem)(Z,P.type.length===0?Q=>ne.call(this,Q,P):Q=>P.type.forEach(A=>ne.call(this,Q,P,A))),this}getKeyword(N){const I=this.RULES.all[N];return typeof I=="object"?I.definition:!!I}removeKeyword(N){const{RULES:I}=this;delete I.keywords[N],delete I.all[N];for(const Z of I.rules){const P=Z.rules.findIndex(Q=>Q.keyword===N);P>=0&&Z.rules.splice(P,1)}return this}addFormat(N,I){return typeof I=="string"&&(I=new RegExp(I)),this.formats[N]=I,this}errorsText(N=this.errors,{separator:I=", ",dataVar:Z="data"}={}){return!N||N.length===0?"No errors":N.map(P=>`${Z}${P.instancePath} ${P.message}`).reduce((P,Q)=>P+I+Q)}$dataMetaSchema(N,I){const Z=this.RULES.all;N=JSON.parse(JSON.stringify(N));for(const P of I){const Q=P.split("/").slice(1);let A=N;for(const X of Q)A=A[X];for(const X in Z){const z=Z[X];if(typeof z!="object")continue;const{$data:le}=z.definition,ae=A[X];le&&ae&&(A[X]=ie(ae))}}return N}_removeAllSchemas(N,I){for(const Z in N){const P=N[Z];(!I||I.test(Z))&&(typeof P=="string"?delete N[Z]:P&&!P.meta&&(this._cache.delete(P.schema),delete N[Z]))}}_addSchema(N,I,Z,P=this.opts.validateSchema,Q=this.opts.addUsedSchema){let A;const{schemaId:X}=this.opts;if(typeof N=="object")A=N[X];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof N!="boolean")throw new Error("schema must be object or boolean")}let z=this._cache.get(N);if(z!==void 0)return z;Z=(0,c.normalizeId)(A||Z);const le=c.getSchemaRefs.call(this,N,Z);return z=new i.SchemaEnv({schema:N,schemaId:X,meta:I,baseId:Z,localRefs:le}),this._cache.set(z.schema,z),Q&&!Z.startsWith("#")&&(Z&&this._checkUnique(Z),this.refs[Z]=z),P&&this.validateSchema(N,!0),z}_checkUnique(N){if(this.schemas[N]||this.refs[N])throw new Error(`schema with key or id "${N}" already exists`)}_compileSchemaEnv(N){if(N.meta?this._compileMetaSchema(N):i.compileSchema.call(this,N),!N.validate)throw new Error("ajv implementation error");return N.validate}_compileMetaSchema(N){const I=this.opts;this.opts=this._metaOpts;try{i.compileSchema.call(this,N)}finally{this.opts=I}}}r.default=k,k.ValidationError=n.default,k.MissingRefError=o.default;function S(q,N,I,Z="error"){for(const P in q){const Q=P;Q in N&&this.logger[Z](`${I}: option ${P}. ${q[Q]}`)}}function w(q){return q=(0,c.normalizeId)(q),this.schemas[q]||this.refs[q]}function $(){const q=this.opts.schemas;if(q)if(Array.isArray(q))this.addSchema(q);else for(const N in q)this.addSchema(q[N],N)}function T(){for(const q in this.opts.formats){const N=this.opts.formats[q];N&&this.addFormat(q,N)}}function R(q){if(Array.isArray(q)){this.addVocabulary(q);return}this.logger.warn("keywords option as map is deprecated, pass array");for(const N in q){const I=q[N];I.keyword||(I.keyword=N),this.addKeyword(I)}}function B(){const q={...this.opts};for(const N of m)delete q[N];return q}const M={log(){},warn(){},error(){}};function V(q){if(q===!1)return M;if(q===void 0)return console;if(q.log&&q.warn&&q.error)return q;throw new Error("logger must implement log, warn and error methods")}const K=/^[a-z_$][a-z0-9_$:-]*$/i;function L(q,N){const{RULES:I}=this;if((0,u.eachItem)(q,Z=>{if(I.keywords[Z])throw new Error(`Keyword ${Z} is already defined`);if(!K.test(Z))throw new Error(`Keyword ${Z} has invalid name`)}),!!N&&N.$data&&!("code"in N||"validate"in N))throw new Error('$data keyword must have "code" or "validate" function')}function ne(q,N,I){var Z;const P=N==null?void 0:N.post;if(I&&P)throw new Error('keyword with "post" flag cannot have "type"');const{RULES:Q}=this;let A=P?Q.post:Q.rules.find(({type:z})=>z===I);if(A||(A={type:I,rules:[]},Q.rules.push(A)),Q.keywords[q]=!0,!N)return;const X={keyword:q,definition:{...N,type:(0,d.getJSONTypes)(N.type),schemaType:(0,d.getJSONTypes)(N.schemaType)}};N.before?ge.call(this,A,X,N.before):A.rules.push(X),Q.all[q]=X,(Z=N.implements)===null||Z===void 0||Z.forEach(z=>this.addKeyword(z))}function ge(q,N,I){const Z=q.rules.findIndex(P=>P.keyword===I);Z>=0?q.rules.splice(Z,0,N):(q.rules.push(N),this.logger.warn(`rule ${I} is not defined`))}function Se(q){let{metaSchema:N}=q;N!==void 0&&(q.$data&&this.opts.$data&&(N=ie(N)),q.validateSchema=this.compile(N,!0))}const Pe={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function ie(q){return{anyOf:[q,Pe]}}})(wo);var Dp={},kd={},Mp={};Object.defineProperty(Mp,"__esModule",{value:!0});const mZ={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Mp.default=mZ;var jr={};Object.defineProperty(jr,"__esModule",{value:!0});jr.callRef=jr.getValidate=void 0;const gZ=Ws,U0=he,Pt=se,Uo=Dt,Y0=bt,xl=pe,OZ={keyword:"$ref",schemaType:"string",code(r){const{gen:e,schema:t,it:n}=r,{baseId:o,schemaEnv:s,validateName:i,opts:l,self:c}=n,{root:d}=s;if((t==="#"||t==="#/")&&o===d.baseId)return h();const u=Y0.resolveRef.call(c,d,o,t);if(u===void 0)throw new gZ.default(n.opts.uriResolver,o,t);if(u instanceof Y0.SchemaEnv)return f(u);return p(u);function h(){if(s===d)return Jl(r,i,s,s.$async);const m=e.scopeValue("root",{ref:d});return Jl(r,(0,Pt._)`${m}.validate`,d,d.$async)}function f(m){const g=ak(r,m);Jl(r,g,m,m.$async)}function p(m){const g=e.scopeValue("schema",l.code.source===!0?{ref:m,code:(0,Pt.stringify)(m)}:{ref:m}),O=e.name("valid"),y=r.subschema({schema:m,dataTypes:[],schemaPath:Pt.nil,topSchemaRef:g,errSchemaPath:t},O);r.mergeEvaluated(y),r.ok(O)}}};function ak(r,e){const{gen:t}=r;return e.validate?t.scopeValue("validate",{ref:e.validate}):(0,Pt._)`${t.scopeValue("wrapper",{ref:e})}.validate`}jr.getValidate=ak;function Jl(r,e,t,n){const{gen:o,it:s}=r,{allErrors:i,schemaEnv:l,opts:c}=s,d=c.passContext?Uo.default.this:Pt.nil;n?u():h();function u(){if(!l.$async)throw new Error("async schema referenced by sync schema");const m=o.let("valid");o.try(()=>{o.code((0,Pt._)`await ${(0,U0.callValidateCode)(r,e,d)}`),p(e),i||o.assign(m,!0)},g=>{o.if((0,Pt._)`!(${g} instanceof ${s.ValidationError})`,()=>o.throw(g)),f(g),i||o.assign(m,!1)}),r.ok(m)}function h(){r.result((0,U0.callValidateCode)(r,e,d),()=>p(e),()=>f(e))}function f(m){const g=(0,Pt._)`${m}.errors`;o.assign(Uo.default.vErrors,(0,Pt._)`${Uo.default.vErrors} === null ? ${g} : ${Uo.default.vErrors}.concat(${g})`),o.assign(Uo.default.errors,(0,Pt._)`${Uo.default.vErrors}.length`)}function p(m){var g;if(!s.opts.unevaluated)return;const O=(g=t==null?void 0:t.validate)===null||g===void 0?void 0:g.evaluated;if(s.props!==!0)if(O&&!O.dynamicProps)O.props!==void 0&&(s.props=xl.mergeEvaluated.props(o,O.props,s.props));else{const y=o.var("props",(0,Pt._)`${m}.evaluated.props`);s.props=xl.mergeEvaluated.props(o,y,s.props,Pt.Name)}if(s.items!==!0)if(O&&!O.dynamicItems)O.items!==void 0&&(s.items=xl.mergeEvaluated.items(o,O.items,s.items));else{const y=o.var("items",(0,Pt._)`${m}.evaluated.items`);s.items=xl.mergeEvaluated.items(o,y,s.items,Pt.Name)}}}jr.callRef=Jl;jr.default=OZ;Object.defineProperty(kd,"__esModule",{value:!0});const yZ=Mp,bZ=jr,vZ=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",yZ.default,bZ.default];kd.default=vZ;var Sd={},qp={};Object.defineProperty(qp,"__esModule",{value:!0});const Ic=se,mn=Ic.operators,jc={maximum:{okStr:"<=",ok:mn.LTE,fail:mn.GT},minimum:{okStr:">=",ok:mn.GTE,fail:mn.LT},exclusiveMaximum:{okStr:"<",ok:mn.LT,fail:mn.GTE},exclusiveMinimum:{okStr:">",ok:mn.GT,fail:mn.LTE}},wZ={message:({keyword:r,schemaCode:e})=>(0,Ic.str)`must be ${jc[r].okStr} ${e}`,params:({keyword:r,schemaCode:e})=>(0,Ic._)`{comparison: ${jc[r].okStr}, limit: ${e}}`},kZ={keyword:Object.keys(jc),type:"number",schemaType:"number",$data:!0,error:wZ,code(r){const{keyword:e,data:t,schemaCode:n}=r;r.fail$data((0,Ic._)`${t} ${jc[e].fail} ${n} || isNaN(${t})`)}};qp.default=kZ;var $d={};Object.defineProperty($d,"__esModule",{value:!0});const za=se,SZ={message:({schemaCode:r})=>(0,za.str)`must be multiple of ${r}`,params:({schemaCode:r})=>(0,za._)`{multipleOf: ${r}}`},$Z={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:SZ,code(r){const{gen:e,data:t,schemaCode:n,it:o}=r,s=o.opts.multipleOfPrecision,i=e.let("res"),l=s?(0,za._)`Math.abs(Math.round(${i}) - ${i}) > 1e-${s}`:(0,za._)`${i} !== parseInt(${i})`;r.fail$data((0,za._)`(${n} === 0 || (${i} = ${t}/${n}, ${l}))`)}};$d.default=$Z;var Pd={},Xp={};Object.defineProperty(Xp,"__esModule",{value:!0});function ik(r){const e=r.length;let t=0,n=0,o;for(;n<e;)t++,o=r.charCodeAt(n++),o>=55296&&o<=56319&&n<e&&(o=r.charCodeAt(n),(o&64512)===56320&&n++);return t}Xp.default=ik;ik.code='require("ajv/dist/runtime/ucs2length").default';Object.defineProperty(Pd,"__esModule",{value:!0});const oo=se,PZ=pe,xZ=Xp,_Z={message({keyword:r,schemaCode:e}){const t=r==="maxLength"?"more":"fewer";return(0,oo.str)`must NOT have ${t} than ${e} characters`},params:({schemaCode:r})=>(0,oo._)`{limit: ${r}}`},CZ={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:_Z,code(r){const{keyword:e,data:t,schemaCode:n,it:o}=r,s=e==="maxLength"?oo.operators.GT:oo.operators.LT,i=o.opts.unicode===!1?(0,oo._)`${t}.length`:(0,oo._)`${(0,PZ.useFunc)(r.gen,xZ.default)}(${t})`;r.fail$data((0,oo._)`${i} ${s} ${n}`)}};Pd.default=CZ;var xd={};Object.defineProperty(xd,"__esModule",{value:!0});const TZ=he,Dc=se,QZ={message:({schemaCode:r})=>(0,Dc.str)`must match pattern "${r}"`,params:({schemaCode:r})=>(0,Dc._)`{pattern: ${r}}`},EZ={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:QZ,code(r){const{data:e,$data:t,schema:n,schemaCode:o,it:s}=r,i=s.opts.unicodeRegExp?"u":"",l=t?(0,Dc._)`(new RegExp(${o}, ${i}))`:(0,TZ.usePattern)(r,n);r.fail$data((0,Dc._)`!${l}.test(${e})`)}};xd.default=EZ;var _d={};Object.defineProperty(_d,"__esModule",{value:!0});const Ua=se,NZ={message({keyword:r,schemaCode:e}){const t=r==="maxProperties"?"more":"fewer";return(0,Ua.str)`must NOT have ${t} than ${e} properties`},params:({schemaCode:r})=>(0,Ua._)`{limit: ${r}}`},AZ={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:NZ,code(r){const{keyword:e,data:t,schemaCode:n}=r,o=e==="maxProperties"?Ua.operators.GT:Ua.operators.LT;r.fail$data((0,Ua._)`Object.keys(${t}).length ${o} ${n}`)}};_d.default=AZ;var Cd={};Object.defineProperty(Cd,"__esModule",{value:!0});const Pa=he,Ya=se,RZ=pe,VZ={message:({params:{missingProperty:r}})=>(0,Ya.str)`must have required property '${r}'`,params:({params:{missingProperty:r}})=>(0,Ya._)`{missingProperty: ${r}}`},BZ={keyword:"required",type:"object",schemaType:"array",$data:!0,error:VZ,code(r){const{gen:e,schema:t,schemaCode:n,data:o,$data:s,it:i}=r,{opts:l}=i;if(!s&&t.length===0)return;const c=t.length>=l.loopRequired;if(i.allErrors?d():u(),l.strictRequired){const p=r.parentSchema.properties,{definedProperties:m}=r.it;for(const g of t)if((p==null?void 0:p[g])===void 0&&!m.has(g)){const O=i.schemaEnv.baseId+i.errSchemaPath,y=`required property "${g}" is not defined at "${O}" (strictRequired)`;(0,RZ.checkStrictMode)(i,y,i.opts.strictRequired)}}function d(){if(c||s)r.block$data(Ya.nil,h);else for(const p of t)(0,Pa.checkReportMissingProp)(r,p)}function u(){const p=e.let("missing");if(c||s){const m=e.let("valid",!0);r.block$data(m,()=>f(p,m)),r.ok(m)}else e.if((0,Pa.checkMissingProp)(r,t,p)),(0,Pa.reportMissingProp)(r,p),e.else()}function h(){e.forOf("prop",n,p=>{r.setParams({missingProperty:p}),e.if((0,Pa.noPropertyInData)(e,o,p,l.ownProperties),()=>r.error())})}function f(p,m){r.setParams({missingProperty:p}),e.forOf(p,n,()=>{e.assign(m,(0,Pa.propertyInData)(e,o,p,l.ownProperties)),e.if((0,Ya.not)(m),()=>{r.error(),e.break()})},Ya.nil)}}};Cd.default=BZ;var Td={};Object.defineProperty(Td,"__esModule",{value:!0});const La=se,ZZ={message({keyword:r,schemaCode:e}){const t=r==="maxItems"?"more":"fewer";return(0,La.str)`must NOT have ${t} than ${e} items`},params:({schemaCode:r})=>(0,La._)`{limit: ${r}}`},IZ={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:ZZ,code(r){const{keyword:e,data:t,schemaCode:n}=r,o=e==="maxItems"?La.operators.GT:La.operators.LT;r.fail$data((0,La._)`${t}.length ${o} ${n}`)}};Td.default=IZ;var Qd={},Bi={};Object.defineProperty(Bi,"__esModule",{value:!0});const lk=qw;lk.code='require("ajv/dist/runtime/equal").default';Bi.default=lk;Object.defineProperty(Qd,"__esModule",{value:!0});const ju=Vi,tt=se,jZ=pe,DZ=Bi,MZ={message:({params:{i:r,j:e}})=>(0,tt.str)`must NOT have duplicate items (items ## ${e} and ${r} are identical)`,params:({params:{i:r,j:e}})=>(0,tt._)`{i: ${r}, j: ${e}}`},qZ={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:MZ,code(r){const{gen:e,data:t,$data:n,schema:o,parentSchema:s,schemaCode:i,it:l}=r;if(!n&&!o)return;const c=e.let("valid"),d=s.items?(0,ju.getSchemaTypes)(s.items):[];r.block$data(c,u,(0,tt._)`${i} === false`),r.ok(c);function u(){const m=e.let("i",(0,tt._)`${t}.length`),g=e.let("j");r.setParams({i:m,j:g}),e.assign(c,!0),e.if((0,tt._)`${m} > 1`,()=>(h()?f:p)(m,g))}function h(){return d.length>0&&!d.some(m=>m==="object"||m==="array")}function f(m,g){const O=e.name("item"),y=(0,ju.checkDataTypes)(d,O,l.opts.strictNumbers,ju.DataType.Wrong),b=e.const("indices",(0,tt._)`{}`);e.for((0,tt._)`;${m}--;`,()=>{e.let(O,(0,tt._)`${t}[${m}]`),e.if(y,(0,tt._)`continue`),d.length>1&&e.if((0,tt._)`typeof ${O} == "string"`,(0,tt._)`${O} += "_"`),e.if((0,tt._)`typeof ${b}[${O}] == "number"`,()=>{e.assign(g,(0,tt._)`${b}[${O}]`),r.error(),e.assign(c,!1).break()}).code((0,tt._)`${b}[${O}] = ${m}`)})}function p(m,g){const O=(0,jZ.useFunc)(e,DZ.default),y=e.name("outer");e.label(y).for((0,tt._)`;${m}--;`,()=>e.for((0,tt._)`${g} = ${m}; ${g}--;`,()=>e.if((0,tt._)`${O}(${t}[${m}], ${t}[${g}])`,()=>{r.error(),e.assign(c,!1).break(y)})))}}};Qd.default=qZ;var Ed={};Object.defineProperty(Ed,"__esModule",{value:!0});const mf=se,XZ=pe,WZ=Bi,zZ={message:"must be equal to constant",params:({schemaCode:r})=>(0,mf._)`{allowedValue: ${r}}`},UZ={keyword:"const",$data:!0,error:zZ,code(r){const{gen:e,data:t,$data:n,schemaCode:o,schema:s}=r;n||s&&typeof s=="object"?r.fail$data((0,mf._)`!${(0,XZ.useFunc)(e,WZ.default)}(${t}, ${o})`):r.fail((0,mf._)`${s} !== ${t}`)}};Ed.default=UZ;var Nd={};Object.defineProperty(Nd,"__esModule",{value:!0});const Aa=se,YZ=pe,LZ=Bi,HZ={message:"must be equal to one of the allowed values",params:({schemaCode:r})=>(0,Aa._)`{allowedValues: ${r}}`},GZ={keyword:"enum",schemaType:"array",$data:!0,error:HZ,code(r){const{gen:e,data:t,$data:n,schema:o,schemaCode:s,it:i}=r;if(!n&&o.length===0)throw new Error("enum must have non-empty array");const l=o.length>=i.opts.loopEnum;let c;const d=()=>c??(c=(0,YZ.useFunc)(e,LZ.default));let u;if(l||n)u=e.let("valid"),r.block$data(u,h);else{if(!Array.isArray(o))throw new Error("ajv implementation error");const p=e.const("vSchema",s);u=(0,Aa.or)(...o.map((m,g)=>f(p,g)))}r.pass(u);function h(){e.assign(u,!1),e.forOf("v",s,p=>e.if((0,Aa._)`${d()}(${t}, ${p})`,()=>e.assign(u,!0).break()))}function f(p,m){const g=o[m];return typeof g=="object"&&g!==null?(0,Aa._)`${d()}(${t}, ${p}[${m}])`:(0,Aa._)`${t} === ${g}`}}};Nd.default=GZ;Object.defineProperty(Sd,"__esModule",{value:!0});const FZ=qp,KZ=$d,JZ=Pd,eI=xd,tI=_d,rI=Cd,nI=Td,oI=Qd,sI=Ed,aI=Nd,iI=[FZ.default,KZ.default,JZ.default,eI.default,tI.default,rI.default,nI.default,oI.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},sI.default,aI.default];Sd.default=iI;var Zi={},zs={};Object.defineProperty(zs,"__esModule",{value:!0});zs.validateAdditionalItems=void 0;const so=se,gf=pe,lI={message:({params:{len:r}})=>(0,so.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,so._)`{limit: ${r}}`},cI={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:lI,code(r){const{parentSchema:e,it:t}=r,{items:n}=e;if(!Array.isArray(n)){(0,gf.checkStrictMode)(t,'"additionalItems" is ignored when "items" is not an array of schemas');return}ck(r,n)}};function ck(r,e){const{gen:t,schema:n,data:o,keyword:s,it:i}=r;i.items=!0;const l=t.const("len",(0,so._)`${o}.length`);if(n===!1)r.setParams({len:e.length}),r.pass((0,so._)`${l} <= ${e.length}`);else if(typeof n=="object"&&!(0,gf.alwaysValidSchema)(i,n)){const d=t.var("valid",(0,so._)`${l} <= ${e.length}`);t.if((0,so.not)(d),()=>c(d)),r.ok(d)}function c(d){t.forRange("i",e.length,l,u=>{r.subschema({keyword:s,dataProp:u,dataPropType:gf.Type.Num},d),i.allErrors||t.if((0,so.not)(d),()=>t.break())})}}zs.validateAdditionalItems=ck;zs.default=cI;var Wp={},Us={};Object.defineProperty(Us,"__esModule",{value:!0});Us.validateTuple=void 0;const L0=se,ec=pe,dI=he,uI={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(r){const{schema:e,it:t}=r;if(Array.isArray(e))return dk(r,"additionalItems",e);t.items=!0,!(0,ec.alwaysValidSchema)(t,e)&&r.ok((0,dI.validateArray)(r))}};function dk(r,e,t=r.schema){const{gen:n,parentSchema:o,data:s,keyword:i,it:l}=r;u(o),l.opts.unevaluated&&t.length&&l.items!==!0&&(l.items=ec.mergeEvaluated.items(n,t.length,l.items));const c=n.name("valid"),d=n.const("len",(0,L0._)`${s}.length`);t.forEach((h,f)=>{(0,ec.alwaysValidSchema)(l,h)||(n.if((0,L0._)`${d} > ${f}`,()=>r.subschema({keyword:i,schemaProp:f,dataProp:f},c)),r.ok(c))});function u(h){const{opts:f,errSchemaPath:p}=l,m=t.length,g=m===h.minItems&&(m===h.maxItems||h[e]===!1);if(f.strictTuples&&!g){const O=`"${i}" is ${m}-tuple, but minItems or maxItems/${e} are not specified or different at path "${p}"`;(0,ec.checkStrictMode)(l,O,f.strictTuples)}}}Us.validateTuple=dk;Us.default=uI;Object.defineProperty(Wp,"__esModule",{value:!0});const hI=Us,fI={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:r=>(0,hI.validateTuple)(r,"items")};Wp.default=fI;var zp={};Object.defineProperty(zp,"__esModule",{value:!0});const H0=se,pI=pe,mI=he,gI=zs,OI={message:({params:{len:r}})=>(0,H0.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,H0._)`{limit: ${r}}`},yI={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:OI,code(r){const{schema:e,parentSchema:t,it:n}=r,{prefixItems:o}=t;n.items=!0,!(0,pI.alwaysValidSchema)(n,e)&&(o?(0,gI.validateAdditionalItems)(r,o):r.ok((0,mI.validateArray)(r)))}};zp.default=yI;var Up={};Object.defineProperty(Up,"__esModule",{value:!0});const zt=se,_l=pe,bI={message:({params:{min:r,max:e}})=>e===void 0?(0,zt.str)`must contain at least ${r} valid item(s)`:(0,zt.str)`must contain at least ${r} and no more than ${e} valid item(s)`,params:({params:{min:r,max:e}})=>e===void 0?(0,zt._)`{minContains: ${r}}`:(0,zt._)`{minContains: ${r}, maxContains: ${e}}`},vI={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:bI,code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;let i,l;const{minContains:c,maxContains:d}=n;s.opts.next?(i=c===void 0?1:c,l=d):i=1;const u=e.const("len",(0,zt._)`${o}.length`);if(r.setParams({min:i,max:l}),l===void 0&&i===0){(0,_l.checkStrictMode)(s,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(l!==void 0&&i>l){(0,_l.checkStrictMode)(s,'"minContains" > "maxContains" is always invalid'),r.fail();return}if((0,_l.alwaysValidSchema)(s,t)){let g=(0,zt._)`${u} >= ${i}`;l!==void 0&&(g=(0,zt._)`${g} && ${u} <= ${l}`),r.pass(g);return}s.items=!0;const h=e.name("valid");l===void 0&&i===1?p(h,()=>e.if(h,()=>e.break())):i===0?(e.let(h,!0),l!==void 0&&e.if((0,zt._)`${o}.length > 0`,f)):(e.let(h,!1),f()),r.result(h,()=>r.reset());function f(){const g=e.name("_valid"),O=e.let("count",0);p(g,()=>e.if(g,()=>m(O)))}function p(g,O){e.forRange("i",0,u,y=>{r.subschema({keyword:"contains",dataProp:y,dataPropType:_l.Type.Num,compositeRule:!0},g),O()})}function m(g){e.code((0,zt._)`${g}++`),l===void 0?e.if((0,zt._)`${g} >= ${i}`,()=>e.assign(h,!0).break()):(e.if((0,zt._)`${g} > ${l}`,()=>e.assign(h,!1).break()),i===1?e.assign(h,!0):e.if((0,zt._)`${g} >= ${i}`,()=>e.assign(h,!0)))}}};Up.default=vI;var Ad={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.validateSchemaDeps=r.validatePropertyDeps=r.error=void 0;const e=se,t=pe,n=he;r.error={message:({params:{property:c,depsCount:d,deps:u}})=>{const h=d===1?"property":"properties";return(0,e.str)`must have ${h} ${u} when property ${c} is present`},params:({params:{property:c,depsCount:d,deps:u,missingProperty:h}})=>(0,e._)`{property: ${c},
83
83
  missingProperty: ${h},
84
84
  depsCount: ${d},
85
- deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[d,u]=s(c);i(c,d),l(c,u)}};function s({schema:c}){const d={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?d:u;f[h]=c[h]}return[d,u]}function i(c,d=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(d).length===0)return;const p=u.let("missing");for(const m in d){const g=d[m];if(g.length===0)continue;const O=(0,n.propertyInData)(u,h,m,f.opts.ownProperties);c.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(O,()=>{for(const y of g)(0,n.checkReportMissingProp)(c,y)}):(u.if((0,e._)`${O} && (${(0,n.checkMissingProp)(c,g,p)})`),(0,n.reportMissingProp)(c,p),u.else())}}r.validatePropertyDeps=i;function l(c,d=c.schema){const{gen:u,data:h,keyword:f,it:p}=c,m=u.name("valid");for(const g in d)(0,t.alwaysValidSchema)(p,d[g])||(u.if((0,n.propertyInData)(u,h,g,p.opts.ownProperties),()=>{const O=c.subschema({keyword:f,schemaProp:g},m);c.mergeValidEvaluated(O,m)},()=>u.var(m,!0)),c.ok(m))}r.validateSchemaDeps=l,r.default=o})(Ad);var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});const uk=se,wI=pe,kI={message:"property name must be valid",params:({params:r})=>(0,uk._)`{propertyName: ${r.propertyName}}`},SI={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:kI,code(r){const{gen:e,schema:t,data:n,it:o}=r;if((0,wI.alwaysValidSchema)(o,t))return;const s=e.name("valid");e.forIn("key",n,i=>{r.setParams({propertyName:i}),r.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),e.if((0,uk.not)(s),()=>{r.error(!0),o.allErrors||e.break()})}),r.ok(s)}};Yp.default=SI;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});const Cl=he,or=se,$I=Dt,Tl=pe,PI={message:"must NOT have additional properties",params:({params:r})=>(0,or._)`{additionalProperty: ${r.additionalProperty}}`},xI={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:PI,code(r){const{gen:e,schema:t,parentSchema:n,data:o,errsCount:s,it:i}=r;if(!s)throw new Error("ajv implementation error");const{allErrors:l,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Tl.alwaysValidSchema)(i,t))return;const d=(0,Cl.allSchemaProperties)(n.properties),u=(0,Cl.allSchemaProperties)(n.patternProperties);h(),r.ok((0,or._)`${s} === ${$I.default.errors}`);function h(){e.forIn("key",o,O=>{!d.length&&!u.length?m(O):e.if(f(O),()=>m(O))})}function f(O){let y;if(d.length>8){const b=(0,Tl.schemaRefOrVal)(i,n.properties,"properties");y=(0,Cl.isOwnProperty)(e,b,O)}else d.length?y=(0,or.or)(...d.map(b=>(0,or._)`${O} === ${b}`)):y=or.nil;return u.length&&(y=(0,or.or)(y,...u.map(b=>(0,or._)`${(0,Cl.usePattern)(r,b)}.test(${O})`))),(0,or.not)(y)}function p(O){e.code((0,or._)`delete ${o}[${O}]`)}function m(O){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){p(O);return}if(t===!1){r.setParams({additionalProperty:O}),r.error(),l||e.break();return}if(typeof t=="object"&&!(0,Tl.alwaysValidSchema)(i,t)){const y=e.name("valid");c.removeAdditional==="failing"?(g(O,y,!1),e.if((0,or.not)(y),()=>{r.reset(),p(O)})):(g(O,y),l||e.if((0,or.not)(y),()=>e.break()))}}function g(O,y,b){const v={keyword:"additionalProperties",dataProp:O,dataPropType:Tl.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(v,y)}}};Rd.default=xI;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const _I=Ht,G0=he,Du=pe,F0=Rd,CI={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&F0.default.code(new _I.KeywordCxt(s,F0.default,"additionalProperties"));const i=(0,G0.allSchemaProperties)(t);for(const h of i)s.definedProperties.add(h);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Du.mergeEvaluated.props(e,(0,Du.toHash)(i),s.props));const l=i.filter(h=>!(0,Du.alwaysValidSchema)(s,t[h]));if(l.length===0)return;const c=e.name("valid");for(const h of l)d(h)?u(h):(e.if((0,G0.propertyInData)(e,o,h,s.opts.ownProperties)),u(h),s.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(h),r.ok(c);function d(h){return s.opts.useDefaults&&!s.compositeRule&&t[h].default!==void 0}function u(h){r.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};Lp.default=CI;var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});const K0=he,Ql=se,J0=pe,ey=pe,TI={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:n,parentSchema:o,it:s}=r,{opts:i}=s,l=(0,K0.allSchemaProperties)(t),c=l.filter(g=>(0,J0.alwaysValidSchema)(s,t[g]));if(l.length===0||c.length===l.length&&(!s.opts.unevaluated||s.props===!0))return;const d=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Ql.Name)&&(s.props=(0,ey.evaluatedPropsToName)(e,s.props));const{props:h}=s;f();function f(){for(const g of l)d&&p(g),s.allErrors?m(g):(e.var(u,!0),m(g),e.if(u))}function p(g){for(const O in d)new RegExp(g).test(O)&&(0,J0.checkStrictMode)(s,`property ${O} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",n,O=>{e.if((0,Ql._)`${(0,K0.usePattern)(r,g)}.test(${O})`,()=>{const y=c.includes(g);y||r.subschema({keyword:"patternProperties",schemaProp:g,dataProp:O,dataPropType:ey.Type.Str},u),s.opts.unevaluated&&h!==!0?e.assign((0,Ql._)`${h}[${O}]`,!0):!y&&!s.allErrors&&e.if((0,Ql.not)(u),()=>e.break())})})}}};Hp.default=TI;var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});const QI=pe,EI={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:n}=r;if((0,QI.alwaysValidSchema)(n,t)){r.fail();return}const o=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};Gp.default=EI;var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});const NI=he,AI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:NI.validateUnion,error:{message:"must match a schema in anyOf"}};Fp.default=AI;var Kp={};Object.defineProperty(Kp,"__esModule",{value:!0});const tc=se,RI=pe,VI={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,tc._)`{passingSchemas: ${r.passing}}`},BI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:VI,code(r){const{gen:e,schema:t,parentSchema:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const s=t,i=e.let("valid",!1),l=e.let("passing",null),c=e.name("_valid");r.setParams({passing:l}),e.block(d),r.result(i,()=>r.reset(),()=>r.error(!0));function d(){s.forEach((u,h)=>{let f;(0,RI.alwaysValidSchema)(o,u)?e.var(c,!0):f=r.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&e.if((0,tc._)`${c} && ${i}`).assign(i,!1).assign(l,(0,tc._)`[${l}, ${h}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(l,h),f&&r.mergeEvaluated(f,tc.Name)})})}}};Kp.default=BI;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});const ZI=pe,II={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const o=e.name("valid");t.forEach((s,i)=>{if((0,ZI.alwaysValidSchema)(n,s))return;const l=r.subschema({keyword:"allOf",schemaProp:i},o);r.ok(o),r.mergeEvaluated(l)})}};Jp.default=II;var em={};Object.defineProperty(em,"__esModule",{value:!0});const Mc=se,hk=pe,jI={message:({params:r})=>(0,Mc.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Mc._)`{failingKeyword: ${r.ifClause}}`},DI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jI,code(r){const{gen:e,parentSchema:t,it:n}=r;t.then===void 0&&t.else===void 0&&(0,hk.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=ty(n,"then"),s=ty(n,"else");if(!o&&!s)return;const i=e.let("valid",!0),l=e.name("_valid");if(c(),r.reset(),o&&s){const u=e.let("ifClause");r.setParams({ifClause:u}),e.if(l,d("then",u),d("else",u))}else o?e.if(l,d("then")):e.if((0,Mc.not)(l),d("else"));r.pass(i,()=>r.error(!0));function c(){const u=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);r.mergeEvaluated(u)}function d(u,h){return()=>{const f=r.subschema({keyword:u},l);e.assign(i,l),r.mergeValidEvaluated(f,i),h?e.assign(h,(0,Mc._)`${u}`):r.setParams({ifClause:u})}}}};function ty(r,e){const t=r.schema[e];return t!==void 0&&!(0,hk.alwaysValidSchema)(r,t)}em.default=DI;var tm={};Object.defineProperty(tm,"__esModule",{value:!0});const MI=pe,qI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,MI.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};tm.default=qI;Object.defineProperty(Zi,"__esModule",{value:!0});const XI=zs,WI=Wp,zI=Us,UI=zp,YI=Up,LI=Ad,HI=Yp,GI=Rd,FI=Lp,KI=Hp,JI=Gp,ej=Fp,tj=Kp,rj=Jp,nj=em,oj=tm;function sj(r=!1){const e=[JI.default,ej.default,tj.default,rj.default,nj.default,oj.default,HI.default,GI.default,LI.default,FI.default,KI.default];return r?e.push(WI.default,UI.default):e.push(XI.default,zI.default),e.push(YI.default),e}Zi.default=sj;var Ii={},rm={};Object.defineProperty(rm,"__esModule",{value:!0});const Xe=se,aj={message:({schemaCode:r})=>(0,Xe.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Xe._)`{format: ${r}}`},ij={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:aj,code(r,e){const{gen:t,data:n,$data:o,schema:s,schemaCode:i,it:l}=r,{opts:c,errSchemaPath:d,schemaEnv:u,self:h}=l;if(!c.validateFormats)return;o?f():p();function f(){const m=t.scopeValue("formats",{ref:h.formats,code:c.code.formats}),g=t.const("fDef",(0,Xe._)`${m}[${i}]`),O=t.let("fType"),y=t.let("format");t.if((0,Xe._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>t.assign(O,(0,Xe._)`${g}.type || "string"`).assign(y,(0,Xe._)`${g}.validate`),()=>t.assign(O,(0,Xe._)`"string"`).assign(y,g)),r.fail$data((0,Xe.or)(b(),v()));function b(){return c.strictSchema===!1?Xe.nil:(0,Xe._)`${i} && !${y}`}function v(){const k=u.$async?(0,Xe._)`(${g}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,Xe._)`${y}(${n})`,S=(0,Xe._)`(typeof ${y} == "function" ? ${k} : ${y}.test(${n}))`;return(0,Xe._)`${y} && ${y} !== true && ${O} === ${e} && !${S}`}}function p(){const m=h.formats[s];if(!m){b();return}if(m===!0)return;const[g,O,y]=v(m);g===e&&r.pass(k());function b(){if(c.strictSchema===!1){h.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${d}"`}}function v(S){const w=S instanceof RegExp?(0,Xe.regexpCode)(S):c.code.formats?(0,Xe._)`${c.code.formats}${(0,Xe.getProperty)(s)}`:void 0,$=t.scopeValue("formats",{key:s,ref:S,code:w});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Xe._)`${$}.validate`]:["string",S,$]}function k(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Xe._)`await ${y}(${n})`}return typeof O=="function"?(0,Xe._)`${y}(${n})`:(0,Xe._)`${y}.test(${n})`}}}};rm.default=ij;Object.defineProperty(Ii,"__esModule",{value:!0});const lj=rm,cj=[lj.default];Ii.default=cj;var To={};Object.defineProperty(To,"__esModule",{value:!0});To.contentVocabulary=To.metadataVocabulary=void 0;To.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];To.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Dp,"__esModule",{value:!0});const dj=kd,uj=Sd,hj=Zi,fj=Ii,ry=To,pj=[dj.default,uj.default,(0,hj.default)(),fj.default,ry.metadataVocabulary,ry.contentVocabulary];Dp.default=pj;var ji={},fk={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r.DiscrError||(r.DiscrError={}))})(fk);Object.defineProperty(ji,"__esModule",{value:!0});const Fo=se,Of=fk,ny=bt,mj=pe,gj={message:({params:{discrError:r,tagName:e}})=>r===Of.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,Fo._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},Oj={keyword:"discriminator",type:"object",schemaType:"object",error:gj,code(r){const{gen:e,data:t,schema:n,parentSchema:o,it:s}=r,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=n.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),d=e.const("tag",(0,Fo._)`${t}${(0,Fo.getProperty)(l)}`);e.if((0,Fo._)`typeof ${d} == "string"`,()=>u(),()=>r.error(!1,{discrError:Of.DiscrError.Tag,tag:d,tagName:l})),r.ok(c);function u(){const p=f();e.if(!1);for(const m in p)e.elseIf((0,Fo._)`${d} === ${m}`),e.assign(c,h(p[m]));e.else(),r.error(!1,{discrError:Of.DiscrError.Mapping,tag:d,tagName:l}),e.endIf()}function h(p){const m=e.name("valid"),g=r.subschema({keyword:"oneOf",schemaProp:p},m);return r.mergeEvaluated(g,Fo.Name),m}function f(){var p;const m={},g=y(o);let O=!0;for(let k=0;k<i.length;k++){let S=i[k];S!=null&&S.$ref&&!(0,mj.schemaHasRulesButRef)(S,s.self.RULES)&&(S=ny.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,S==null?void 0:S.$ref),S instanceof ny.SchemaEnv&&(S=S.schema));const w=(p=S==null?void 0:S.properties)===null||p===void 0?void 0:p[l];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);O=O&&(g||y(S)),b(w,k)}if(!O)throw new Error(`discriminator: "${l}" must be required`);return m;function y({required:k}){return Array.isArray(k)&&k.includes(l)}function b(k,S){if(k.const)v(k.const,S);else if(k.enum)for(const w of k.enum)v(w,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function v(k,S){if(typeof k!="string"||k in m)throw new Error(`discriminator: "${l}" values must be unique strings`);m[k]=S}}}};ji.default=Oj;const yj="http://json-schema.org/draft-07/schema#",bj="http://json-schema.org/draft-07/schema#",vj="Core schema meta-schema",wj={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},kj=["object","boolean"],Sj={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},$j={$schema:yj,$id:bj,title:vj,definitions:wj,type:kj,properties:Sj,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=Dp,o=ji,s=$j,i=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(m,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=Ht;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=Xs;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Ws;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(uf,uf.exports);var Pj=uf.exports;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=Pj,t=se,n=t.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:l,schemaCode:c})=>t.str`should be ${o[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>t._`{comparison: ${o[l].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(l){const{gen:c,data:d,schemaCode:u,keyword:h,it:f}=l,{opts:p,self:m}=f;if(!p.validateFormats)return;const g=new e.KeywordCxt(f,m.RULES.all.format.definition,"format");g.$data?O():y();function O(){const v=c.scopeValue("formats",{ref:m.formats,code:p.code.formats}),k=c.const("fmt",t._`${v}[${g.schemaCode}]`);l.fail$data(t.or(t._`typeof ${k} != "object"`,t._`${k} instanceof RegExp`,t._`typeof ${k}.compare != "function"`,b(k)))}function y(){const v=g.schema,k=m.formats[v];if(!k||k===!0)return;if(typeof k!="object"||k instanceof RegExp||typeof k.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const S=c.scopeValue("formats",{key:v,ref:k,code:p.code.formats?t._`${p.code.formats}${t.getProperty(v)}`:void 0});l.fail$data(b(S))}function b(v){return t._`${v}.compare(${d}, ${u}) ${o[h].fail} 0`}},dependencies:["format"]};const i=l=>(l.addKeyword(r.formatLimitDefinition),l);r.default=i})(Rw);(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Aw,n=Rw,o=se,s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),l=(d,u={keywords:!0})=>{if(Array.isArray(u))return c(d,u,t.fullFormats,s),d;const[h,f]=u.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,s],p=u.formats||t.formatNames;return c(d,p,h,f),u.keywords&&n.default(d),d};l.get=(d,u="full")=>{const h=(u==="fast"?t.fastFormats:t.fullFormats)[d];if(!h)throw new Error(`Unknown format "${d}"`);return h};function c(d,u,h,f){var p,m;(p=(m=d.opts.code).formats)!==null&&p!==void 0||(m.formats=o._`require("ajv-formats/dist/formats").${f}`);for(const g of u)d.addFormat(g,h[g])}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l})(df,df.exports);var xj=df.exports;const _j=Np(xj);var yf={exports:{}},nm={},om={};Object.defineProperty(om,"__esModule",{value:!0});const Cj=jr,Tj=["$schema","id","$defs",{keyword:"$comment"},"definitions",Cj.default];om.default=Tj;var sm={},am={};Object.defineProperty(am,"__esModule",{value:!0});const bf=wo,Qj=se,gn=Qj.operators,vf={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:gn.LTE,fail:gn.GT},{okStr:"<",ok:gn.LT,fail:gn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:gn.GTE,fail:gn.LT},{okStr:">",ok:gn.GT,fail:gn.LTE}]}},Ej={message:r=>bf.str`must be ${wf(r).okStr} ${r.schemaCode}`,params:r=>bf._`{comparison: ${wf(r).okStr}, limit: ${r.schemaCode}}`},Nj={keyword:Object.keys(vf),type:"number",schemaType:"number",$data:!0,error:Ej,code(r){const{data:e,schemaCode:t}=r;r.fail$data(bf._`${e} ${wf(r).fail} ${t} || isNaN(${e})`)}};function wf(r){var e;const t=r.keyword,n=!((e=r.parentSchema)===null||e===void 0)&&e[vf[t].exclusive]?1:0;return vf[t].ops[n]}am.default=Nj;var im={};Object.defineProperty(im,"__esModule",{value:!0});const oy={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Aj={keyword:Object.keys(oy),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:e}){const t=oy[r];if(e[t]===void 0)throw new Error(`${r} can only be used with ${t}`)}};im.default=Aj;Object.defineProperty(sm,"__esModule",{value:!0});const Rj=am,Vj=im,Bj=$d,Zj=Pd,Ij=xd,jj=_d,Dj=Cd,Mj=Td,qj=Qd,Xj=Ed,Wj=Nd,zj=[Rj.default,Vj.default,Bj.default,Zj.default,Ij.default,jj.default,Dj.default,Mj.default,qj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xj.default,Wj.default];sm.default=zj;Object.defineProperty(nm,"__esModule",{value:!0});const Uj=om,Yj=sm,Lj=Zi,Hj=Ii,Gj=["title","description","default"],Fj=[Uj.default,Yj.default,Lj.default(),Hj.default,Gj];nm.default=Fj;const Kj="http://json-schema.org/draft-04/schema#",Jj="http://json-schema.org/draft-04/schema#",eD="Core schema meta-schema",tD={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},rD="object",nD={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},oD={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},sD={id:Kj,$schema:Jj,description:eD,definitions:tD,type:rD,properties:nD,dependencies:oD,default:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=nm,o=ji,s=sD,i=["/properties"],l="http://json-schema.org/draft-04/schema";class c extends t.default{constructor(f={}){super({...f,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(f,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=wo;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=wo;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(yf,yf.exports);var aD=yf.exports;const iD=Np(aD);var kf={exports:{}},lm={},cm={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.dynamicAnchor=void 0;const Mu=se,lD=Dt,sy=bt,cD=jr,dD={keyword:"$dynamicAnchor",schemaType:"string",code:r=>pk(r,r.schema)};function pk(r,e){const{gen:t,it:n}=r;n.schemaEnv.root.dynamicAnchors[e]=!0;const o=(0,Mu._)`${lD.default.dynamicAnchors}${(0,Mu.getProperty)(e)}`,s=n.errSchemaPath==="#"?n.validateName:uD(r);t.if((0,Mu._)`!${o}`,()=>t.assign(o,s))}Ys.dynamicAnchor=pk;function uD(r){const{schemaEnv:e,schema:t,self:n}=r.it,{root:o,baseId:s,localRefs:i,meta:l}=e.root,{schemaId:c}=n.opts,d=new sy.SchemaEnv({schema:t,schemaId:c,root:o,baseId:s,localRefs:i,meta:l});return sy.compileSchema.call(n,d),(0,cD.getValidate)(r,d)}Ys.default=dD;var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.dynamicRef=void 0;const ay=se,hD=Dt,iy=jr,fD={keyword:"$dynamicRef",schemaType:"string",code:r=>mk(r,r.schema)};function mk(r,e){const{gen:t,keyword:n,it:o}=r;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const s=e.slice(1);if(o.allErrors)i();else{const c=t.let("valid",!1);i(c),r.ok(c)}function i(c){if(o.schemaEnv.root.dynamicAnchors[s]){const d=t.let("_v",(0,ay._)`${hD.default.dynamicAnchors}${(0,ay.getProperty)(s)}`);t.if(d,l(d,c),l(o.validateName,c))}else l(o.validateName,c)()}function l(c,d){return d?()=>t.block(()=>{(0,iy.callRef)(r,c),t.let(d,!0)}):()=>(0,iy.callRef)(r,c)}}Ls.dynamicRef=mk;Ls.default=fD;var dm={};Object.defineProperty(dm,"__esModule",{value:!0});const pD=Ys,mD=pe,gD={keyword:"$recursiveAnchor",schemaType:"boolean",code(r){r.schema?(0,pD.dynamicAnchor)(r,""):(0,mD.checkStrictMode)(r.it,"$recursiveAnchor: false is ignored")}};dm.default=gD;var um={};Object.defineProperty(um,"__esModule",{value:!0});const OD=Ls,yD={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,OD.dynamicRef)(r,r.schema)};um.default=yD;Object.defineProperty(cm,"__esModule",{value:!0});const bD=Ys,vD=Ls,wD=dm,kD=um,SD=[bD.default,vD.default,wD.default,kD.default];cm.default=SD;var hm={},fm={};Object.defineProperty(fm,"__esModule",{value:!0});const ly=Ad,$D={keyword:"dependentRequired",type:"object",schemaType:"object",error:ly.error,code:r=>(0,ly.validatePropertyDeps)(r)};fm.default=$D;var pm={};Object.defineProperty(pm,"__esModule",{value:!0});const PD=Ad,xD={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,PD.validateSchemaDeps)(r)};pm.default=xD;var mm={};Object.defineProperty(mm,"__esModule",{value:!0});const _D=pe,CD={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:e,it:t}){e.contains===void 0&&(0,_D.checkStrictMode)(t,`"${r}" without "contains" is ignored`)}};mm.default=CD;Object.defineProperty(hm,"__esModule",{value:!0});const TD=fm,QD=pm,ED=mm,ND=[TD.default,QD.default,ED.default];hm.default=ND;var gm={},Om={};Object.defineProperty(Om,"__esModule",{value:!0});const bn=se,cy=pe,AD=Dt,RD={message:"must NOT have unevaluated properties",params:({params:r})=>(0,bn._)`{unevaluatedProperty: ${r.unevaluatedProperty}}`},VD={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:RD,code(r){const{gen:e,schema:t,data:n,errsCount:o,it:s}=r;if(!o)throw new Error("ajv implementation error");const{allErrors:i,props:l}=s;l instanceof bn.Name?e.if((0,bn._)`${l} !== true`,()=>e.forIn("key",n,h=>e.if(d(l,h),()=>c(h)))):l!==!0&&e.forIn("key",n,h=>l===void 0?c(h):e.if(u(l,h),()=>c(h))),s.props=!0,r.ok((0,bn._)`${o} === ${AD.default.errors}`);function c(h){if(t===!1){r.setParams({unevaluatedProperty:h}),r.error(),i||e.break();return}if(!(0,cy.alwaysValidSchema)(s,t)){const f=e.name("valid");r.subschema({keyword:"unevaluatedProperties",dataProp:h,dataPropType:cy.Type.Str},f),i||e.if((0,bn.not)(f),()=>e.break())}}function d(h,f){return(0,bn._)`!${h} || !${h}[${f}]`}function u(h,f){const p=[];for(const m in h)h[m]===!0&&p.push((0,bn._)`${f} !== ${m}`);return(0,bn.and)(...p)}}};Om.default=VD;var ym={};Object.defineProperty(ym,"__esModule",{value:!0});const ao=se,dy=pe,BD={message:({params:{len:r}})=>(0,ao.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,ao._)`{limit: ${r}}`},ZD={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:BD,code(r){const{gen:e,schema:t,data:n,it:o}=r,s=o.items||0;if(s===!0)return;const i=e.const("len",(0,ao._)`${n}.length`);if(t===!1)r.setParams({len:s}),r.fail((0,ao._)`${i} > ${s}`);else if(typeof t=="object"&&!(0,dy.alwaysValidSchema)(o,t)){const c=e.var("valid",(0,ao._)`${i} <= ${s}`);e.if((0,ao.not)(c),()=>l(c,s)),r.ok(c)}o.items=!0;function l(c,d){e.forRange("i",d,i,u=>{r.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:dy.Type.Num},c),o.allErrors||e.if((0,ao.not)(c),()=>e.break())})}}};ym.default=ZD;Object.defineProperty(gm,"__esModule",{value:!0});const ID=Om,jD=ym,DD=[ID.default,jD.default];gm.default=DD;Object.defineProperty(lm,"__esModule",{value:!0});const MD=kd,qD=Sd,XD=Zi,WD=cm,zD=hm,UD=gm,YD=Ii,uy=To,LD=[WD.default,MD.default,qD.default,(0,XD.default)(!0),YD.default,uy.metadataVocabulary,uy.contentVocabulary,zD.default,UD.default];lm.default=LD;var bm={};const HD="https://json-schema.org/draft/2020-12/schema",GD="https://json-schema.org/draft/2020-12/schema",FD={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},KD="meta",JD="Core and Validation specifications meta-schema",e4=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],t4=["object","boolean"],r4="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",n4={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},o4={$schema:HD,$id:GD,$vocabulary:FD,$dynamicAnchor:KD,title:JD,allOf:e4,type:t4,$comment:r4,properties:n4},s4="https://json-schema.org/draft/2020-12/schema",a4="https://json-schema.org/draft/2020-12/meta/applicator",i4={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},l4="meta",c4="Applicator vocabulary meta-schema",d4=["object","boolean"],u4={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},h4={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},f4={$schema:s4,$id:a4,$vocabulary:i4,$dynamicAnchor:l4,title:c4,type:d4,properties:u4,$defs:h4},p4="https://json-schema.org/draft/2020-12/schema",m4="https://json-schema.org/draft/2020-12/meta/unevaluated",g4={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},O4="meta",y4="Unevaluated applicator vocabulary meta-schema",b4=["object","boolean"],v4={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},w4={$schema:p4,$id:m4,$vocabulary:g4,$dynamicAnchor:O4,title:y4,type:b4,properties:v4},k4="https://json-schema.org/draft/2020-12/schema",S4="https://json-schema.org/draft/2020-12/meta/content",$4={"https://json-schema.org/draft/2020-12/vocab/content":!0},P4="meta",x4="Content vocabulary meta-schema",_4=["object","boolean"],C4={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},T4={$schema:k4,$id:S4,$vocabulary:$4,$dynamicAnchor:P4,title:x4,type:_4,properties:C4},Q4="https://json-schema.org/draft/2020-12/schema",E4="https://json-schema.org/draft/2020-12/meta/core",N4={"https://json-schema.org/draft/2020-12/vocab/core":!0},A4="meta",R4="Core vocabulary meta-schema",V4=["object","boolean"],B4={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},Z4={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},I4={$schema:Q4,$id:E4,$vocabulary:N4,$dynamicAnchor:A4,title:R4,type:V4,properties:B4,$defs:Z4},j4="https://json-schema.org/draft/2020-12/schema",D4="https://json-schema.org/draft/2020-12/meta/format-annotation",M4={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},q4="meta",X4="Format vocabulary meta-schema for annotation results",W4=["object","boolean"],z4={format:{type:"string"}},U4={$schema:j4,$id:D4,$vocabulary:M4,$dynamicAnchor:q4,title:X4,type:W4,properties:z4},Y4="https://json-schema.org/draft/2020-12/schema",L4="https://json-schema.org/draft/2020-12/meta/meta-data",H4={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},G4="meta",F4="Meta-data vocabulary meta-schema",K4=["object","boolean"],J4={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},e7={$schema:Y4,$id:L4,$vocabulary:H4,$dynamicAnchor:G4,title:F4,type:K4,properties:J4},t7="https://json-schema.org/draft/2020-12/schema",r7="https://json-schema.org/draft/2020-12/meta/validation",n7={"https://json-schema.org/draft/2020-12/vocab/validation":!0},o7="meta",s7="Validation vocabulary meta-schema",a7=["object","boolean"],i7={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},l7={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},c7={$schema:t7,$id:r7,$vocabulary:n7,$dynamicAnchor:o7,title:s7,type:a7,properties:i7,$defs:l7};Object.defineProperty(bm,"__esModule",{value:!0});const d7=o4,u7=f4,h7=w4,f7=T4,p7=I4,m7=U4,g7=e7,O7=c7,y7=["/properties"];function b7(r){return[d7,u7,h7,f7,p7,e(this,m7),g7,e(this,O7)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function e(t,n){return r?t.$dataMetaSchema(n,y7):n}}bm.default=b7;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=lm,o=ji,s=bm,i="https://json-schema.org/draft/2020-12/schema";class l extends t.default{constructor(p={}){super({...p,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:p,meta:m}=this.opts;m&&(s.default.call(this,p),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var c=Ht;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var u=Xs;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var h=Ws;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(kf,kf.exports);var v7=kf.exports;const w7=Np(v7),gk=["2.0","3.0","3.1"],k7={"http://json-schema.org/draft-04/schema#":iD,"https://json-schema.org/draft/2020-12/schema":w7},Sf={EMPTY_OR_INVALID:"Cannot find JSON, YAML or filename in data",OPENAPI_VERSION_NOT_SUPPORTED:"Cannot find supported Swagger/OpenAPI version in specification, version must be a string.",INVALID_REFERENCE:"Can’t resolve URI: %s",EXTERNAL_REFERENCE_NOT_SUPPORTED:"External references are not supported yet: %s"},S7="x-inlined-refs";function Tr(r,e){const t={};for(const[n,o]of Object.entries(r))Array.isArray(o)?t[n]=o.map(s=>typeof s=="object"&&s!==null?Tr(s,e):s):typeof o=="object"&&o!==null?t[n]=Tr(o,e):t[n]=o;return e(t)}function $7(r,e){return Tr(r,t=>e(t)?t:void 0)}function Ok(r){return typeof r!==void 0&&Array.isArray(r)&&r.length>0&&r.some(e=>e.isEntrypoint===!0)}function P7(r){const e=[];return!r||typeof r!="object"||Tr(r,t=>(t.$ref&&typeof t.$ref=="string"&&!t.$ref.startsWith("#")&&e.push(t.$ref.split("#")[0]),t)),e}const vm=Symbol.for("yaml.alias"),$f=Symbol.for("yaml.document"),Nn=Symbol.for("yaml.map"),yk=Symbol.for("yaml.pair"),ln=Symbol.for("yaml.scalar"),Hs=Symbol.for("yaml.seq"),Jt=Symbol.for("yaml.node.type"),Ro=r=>!!r&&typeof r=="object"&&r[Jt]===vm,Gs=r=>!!r&&typeof r=="object"&&r[Jt]===$f,Fs=r=>!!r&&typeof r=="object"&&r[Jt]===Nn,Ie=r=>!!r&&typeof r=="object"&&r[Jt]===yk,Ee=r=>!!r&&typeof r=="object"&&r[Jt]===ln,Ks=r=>!!r&&typeof r=="object"&&r[Jt]===Hs;function je(r){if(r&&typeof r=="object")switch(r[Jt]){case Nn:case Hs:return!0}return!1}function ze(r){if(r&&typeof r=="object")switch(r[Jt]){case vm:case Nn:case ln:case Hs:return!0}return!1}const x7=r=>(Ee(r)||je(r))&&!!r.anchor,_t=Symbol("break visit"),bk=Symbol("skip children"),Zr=Symbol("remove node");function Dn(r,e){const t=vk(e);Gs(r)?os(null,r.contents,t,Object.freeze([r]))===Zr&&(r.contents=null):os(null,r,t,Object.freeze([]))}Dn.BREAK=_t;Dn.SKIP=bk;Dn.REMOVE=Zr;function os(r,e,t,n){const o=wk(r,e,t,n);if(ze(o)||Ie(o))return kk(r,n,o),os(r,o,t,n);if(typeof o!="symbol"){if(je(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=os(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===_t)return _t;i===Zr&&(e.items.splice(s,1),s-=1)}}}else if(Ie(e)){n=Object.freeze(n.concat(e));const s=os("key",e.key,t,n);if(s===_t)return _t;s===Zr&&(e.key=null);const i=os("value",e.value,t,n);if(i===_t)return _t;i===Zr&&(e.value=null)}}return o}async function Vd(r,e){const t=vk(e);Gs(r)?await ss(null,r.contents,t,Object.freeze([r]))===Zr&&(r.contents=null):await ss(null,r,t,Object.freeze([]))}Vd.BREAK=_t;Vd.SKIP=bk;Vd.REMOVE=Zr;async function ss(r,e,t,n){const o=await wk(r,e,t,n);if(ze(o)||Ie(o))return kk(r,n,o),ss(r,o,t,n);if(typeof o!="symbol"){if(je(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=await ss(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===_t)return _t;i===Zr&&(e.items.splice(s,1),s-=1)}}}else if(Ie(e)){n=Object.freeze(n.concat(e));const s=await ss("key",e.key,t,n);if(s===_t)return _t;s===Zr&&(e.key=null);const i=await ss("value",e.value,t,n);if(i===_t)return _t;i===Zr&&(e.value=null)}}return o}function vk(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function wk(r,e,t,n){var o,s,i,l,c;if(typeof t=="function")return t(r,e,n);if(Fs(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(Ks(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(Ie(e))return(i=t.Pair)==null?void 0:i.call(t,r,e,n);if(Ee(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(Ro(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function kk(r,e,t){const n=e[e.length-1];if(je(n))n.items[r]=t;else if(Ie(n))r==="key"?n.key=t:n.value=t;else if(Gs(n))n.contents=t;else{const o=Ro(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const _7={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},C7=r=>r.replace(/[!,[\]{}]/g,e=>_7[e]);class yt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},yt.defaultYaml,e),this.tags=Object.assign({},yt.defaultTags,t)}clone(){const e=new yt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new yt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:yt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},yt.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:yt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},yt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[s,i]=n;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const i=/^\d+\.\d+$/.test(s);return t(6,`Unsupported YAML version ${s}`,i),!1}}default:return t(0,`Unknown directive ${o}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const i=e.slice(2,-1);return i==="!"||i==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),i)}const[,n,o]=e.match(/^(.*!)([^!]*)$/s);o||t(`The ${e} tag has no suffix`);const s=this.tags[n];if(s)try{return s+decodeURIComponent(o)}catch(i){return t(String(i)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+C7(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(e&&n.length>0&&ze(e.contents)){const s={};Dn(e.contents,(i,l)=>{ze(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,i]of n)s==="!!"&&i==="tag:yaml.org,2002:"||(!e||o.some(l=>l.startsWith(i)))&&t.push(`%TAG ${s} ${i}`);return t.join(`
86
- `)}}yt.defaultYaml={explicit:!1,version:"1.2"};yt.defaultTags={"!!":"tag:yaml.org,2002:"};function Sk(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(e)}return!0}function $k(r){const e=new Set;return Dn(r,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function Pk(r,e){for(let t=1;;++t){const n=`${r}${t}`;if(!e.has(n))return n}}function T7(r,e){const t=[],n=new Map;let o=null;return{onAnchor:s=>{t.push(s),o||(o=$k(r));const i=Pk(e,o);return o.add(i),i},setAnchors:()=>{for(const s of t){const i=n.get(s);if(typeof i=="object"&&i.anchor&&(Ee(i.node)||je(i.node)))i.node.anchor=i.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:n}}function as(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const i=n[o],l=as(r,n,String(o),i);l===void 0?delete n[o]:l!==i&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),i=as(r,n,o,s);i===void 0?n.delete(o):i!==s&&n.set(o,i)}else if(n instanceof Set)for(const o of Array.from(n)){const s=as(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const i=as(r,n,o,s);i===void 0?delete n[o]:i!==s&&(n[o]=i)}return r.call(e,t,n)}function Gt(r,e,t){if(Array.isArray(r))return r.map((n,o)=>Gt(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!x7(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class wm{constructor(e){Object.defineProperty(this,Jt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Gs(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=Gt(this,"",i);if(typeof o=="function")for(const{count:c,res:d}of i.anchors.values())o(d,c);return typeof s=="function"?as(s,{"":l},"",l):l}}class Bd extends wm{constructor(e){super(vm),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Dn(e,{Node:(n,o)=>{if(o===this)return Dn.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,i=this.resolve(o);if(!i){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(i);if(l||(Gt(i,null,t),l=n.get(i)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=rc(o,i,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(Sk(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function rc(r,e,t){if(Ro(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(je(e)){let n=0;for(const o of e.items){const s=rc(r,o,t);s>n&&(n=s)}return n}else if(Ie(e)){const n=rc(r,e.key,t),o=rc(r,e.value,t);return Math.max(n,o)}return 1}const xk=r=>!r||typeof r!="function"&&typeof r!="object";class de extends wm{constructor(e){super(ln),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:Gt(this.value,e,t)}toString(){return String(this.value)}}de.BLOCK_FOLDED="BLOCK_FOLDED";de.BLOCK_LITERAL="BLOCK_LITERAL";de.PLAIN="PLAIN";de.QUOTE_DOUBLE="QUOTE_DOUBLE";de.QUOTE_SINGLE="QUOTE_SINGLE";const Q7="tag:yaml.org,2002:";function E7(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function gi(r,e,t){var n,o,s;if(Gs(r)&&(r=r.contents),ze(r))return r;if(Ie(r)){const m=(o=(n=t.schema[Nn]).createNode)==null?void 0:o.call(n,t.schema,null,t);return m.items.push(r),m}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:i,onAnchor:l,onTagObj:c,schema:d,sourceObjects:u}=t;let h;if(i&&r&&typeof r=="object"){if(h=u.get(r),h)return h.anchor||(h.anchor=l(r)),new Bd(h.anchor);h={anchor:null,node:null},u.set(r,h)}e!=null&&e.startsWith("!!")&&(e=Q7+e.slice(2));let f=E7(r,e,d.tags);if(!f){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const m=new de(r);return h&&(h.node=m),m}f=r instanceof Map?d[Nn]:Symbol.iterator in Object(r)?d[Hs]:d[Nn]}c&&(c(f),delete t.onTagObj);const p=f!=null&&f.createNode?f.createNode(t.schema,r,t):typeof((s=f==null?void 0:f.nodeClass)==null?void 0:s.from)=="function"?f.nodeClass.from(t.schema,r,t):new de(r);return e?p.tag=e:f.default||(p.tag=f.tag),h&&(h.node=p),p}function qc(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=n,n=i}else n=new Map([[s,n]])}return gi(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const Ra=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class km extends wm{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>ze(n)||Ie(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ra(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(je(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,qc(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(je(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Ee(s)?s.value:s:je(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Ie(t))return!1;const n=t.value;return n==null||e&&Ee(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return je(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(je(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,qc(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}km.maxFlowStringSingleLineLength=60;const N7=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function Hr(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const po=(r,e,t)=>r.endsWith(`
85
+ deps: ${u}}`};const o={keyword:"dependencies",type:"object",schemaType:"object",error:r.error,code(c){const[d,u]=s(c);i(c,d),l(c,u)}};function s({schema:c}){const d={},u={};for(const h in c){if(h==="__proto__")continue;const f=Array.isArray(c[h])?d:u;f[h]=c[h]}return[d,u]}function i(c,d=c.schema){const{gen:u,data:h,it:f}=c;if(Object.keys(d).length===0)return;const p=u.let("missing");for(const m in d){const g=d[m];if(g.length===0)continue;const O=(0,n.propertyInData)(u,h,m,f.opts.ownProperties);c.setParams({property:m,depsCount:g.length,deps:g.join(", ")}),f.allErrors?u.if(O,()=>{for(const y of g)(0,n.checkReportMissingProp)(c,y)}):(u.if((0,e._)`${O} && (${(0,n.checkMissingProp)(c,g,p)})`),(0,n.reportMissingProp)(c,p),u.else())}}r.validatePropertyDeps=i;function l(c,d=c.schema){const{gen:u,data:h,keyword:f,it:p}=c,m=u.name("valid");for(const g in d)(0,t.alwaysValidSchema)(p,d[g])||(u.if((0,n.propertyInData)(u,h,g,p.opts.ownProperties),()=>{const O=c.subschema({keyword:f,schemaProp:g},m);c.mergeValidEvaluated(O,m)},()=>u.var(m,!0)),c.ok(m))}r.validateSchemaDeps=l,r.default=o})(Ad);var Yp={};Object.defineProperty(Yp,"__esModule",{value:!0});const uk=se,wI=pe,kI={message:"property name must be valid",params:({params:r})=>(0,uk._)`{propertyName: ${r.propertyName}}`},SI={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:kI,code(r){const{gen:e,schema:t,data:n,it:o}=r;if((0,wI.alwaysValidSchema)(o,t))return;const s=e.name("valid");e.forIn("key",n,i=>{r.setParams({propertyName:i}),r.subschema({keyword:"propertyNames",data:i,dataTypes:["string"],propertyName:i,compositeRule:!0},s),e.if((0,uk.not)(s),()=>{r.error(!0),o.allErrors||e.break()})}),r.ok(s)}};Yp.default=SI;var Rd={};Object.defineProperty(Rd,"__esModule",{value:!0});const Cl=he,or=se,$I=Dt,Tl=pe,PI={message:"must NOT have additional properties",params:({params:r})=>(0,or._)`{additionalProperty: ${r.additionalProperty}}`},xI={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:PI,code(r){const{gen:e,schema:t,parentSchema:n,data:o,errsCount:s,it:i}=r;if(!s)throw new Error("ajv implementation error");const{allErrors:l,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,Tl.alwaysValidSchema)(i,t))return;const d=(0,Cl.allSchemaProperties)(n.properties),u=(0,Cl.allSchemaProperties)(n.patternProperties);h(),r.ok((0,or._)`${s} === ${$I.default.errors}`);function h(){e.forIn("key",o,O=>{!d.length&&!u.length?m(O):e.if(f(O),()=>m(O))})}function f(O){let y;if(d.length>8){const b=(0,Tl.schemaRefOrVal)(i,n.properties,"properties");y=(0,Cl.isOwnProperty)(e,b,O)}else d.length?y=(0,or.or)(...d.map(b=>(0,or._)`${O} === ${b}`)):y=or.nil;return u.length&&(y=(0,or.or)(y,...u.map(b=>(0,or._)`${(0,Cl.usePattern)(r,b)}.test(${O})`))),(0,or.not)(y)}function p(O){e.code((0,or._)`delete ${o}[${O}]`)}function m(O){if(c.removeAdditional==="all"||c.removeAdditional&&t===!1){p(O);return}if(t===!1){r.setParams({additionalProperty:O}),r.error(),l||e.break();return}if(typeof t=="object"&&!(0,Tl.alwaysValidSchema)(i,t)){const y=e.name("valid");c.removeAdditional==="failing"?(g(O,y,!1),e.if((0,or.not)(y),()=>{r.reset(),p(O)})):(g(O,y),l||e.if((0,or.not)(y),()=>e.break()))}}function g(O,y,b){const v={keyword:"additionalProperties",dataProp:O,dataPropType:Tl.Type.Str};b===!1&&Object.assign(v,{compositeRule:!0,createErrors:!1,allErrors:!1}),r.subschema(v,y)}}};Rd.default=xI;var Lp={};Object.defineProperty(Lp,"__esModule",{value:!0});const _I=Ht,G0=he,Du=pe,F0=Rd,CI={keyword:"properties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,parentSchema:n,data:o,it:s}=r;s.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&F0.default.code(new _I.KeywordCxt(s,F0.default,"additionalProperties"));const i=(0,G0.allSchemaProperties)(t);for(const h of i)s.definedProperties.add(h);s.opts.unevaluated&&i.length&&s.props!==!0&&(s.props=Du.mergeEvaluated.props(e,(0,Du.toHash)(i),s.props));const l=i.filter(h=>!(0,Du.alwaysValidSchema)(s,t[h]));if(l.length===0)return;const c=e.name("valid");for(const h of l)d(h)?u(h):(e.if((0,G0.propertyInData)(e,o,h,s.opts.ownProperties)),u(h),s.allErrors||e.else().var(c,!0),e.endIf()),r.it.definedProperties.add(h),r.ok(c);function d(h){return s.opts.useDefaults&&!s.compositeRule&&t[h].default!==void 0}function u(h){r.subschema({keyword:"properties",schemaProp:h,dataProp:h},c)}}};Lp.default=CI;var Hp={};Object.defineProperty(Hp,"__esModule",{value:!0});const K0=he,Ql=se,J0=pe,ey=pe,TI={keyword:"patternProperties",type:"object",schemaType:"object",code(r){const{gen:e,schema:t,data:n,parentSchema:o,it:s}=r,{opts:i}=s,l=(0,K0.allSchemaProperties)(t),c=l.filter(g=>(0,J0.alwaysValidSchema)(s,t[g]));if(l.length===0||c.length===l.length&&(!s.opts.unevaluated||s.props===!0))return;const d=i.strictSchema&&!i.allowMatchingProperties&&o.properties,u=e.name("valid");s.props!==!0&&!(s.props instanceof Ql.Name)&&(s.props=(0,ey.evaluatedPropsToName)(e,s.props));const{props:h}=s;f();function f(){for(const g of l)d&&p(g),s.allErrors?m(g):(e.var(u,!0),m(g),e.if(u))}function p(g){for(const O in d)new RegExp(g).test(O)&&(0,J0.checkStrictMode)(s,`property ${O} matches pattern ${g} (use allowMatchingProperties)`)}function m(g){e.forIn("key",n,O=>{e.if((0,Ql._)`${(0,K0.usePattern)(r,g)}.test(${O})`,()=>{const y=c.includes(g);y||r.subschema({keyword:"patternProperties",schemaProp:g,dataProp:O,dataPropType:ey.Type.Str},u),s.opts.unevaluated&&h!==!0?e.assign((0,Ql._)`${h}[${O}]`,!0):!y&&!s.allErrors&&e.if((0,Ql.not)(u),()=>e.break())})})}}};Hp.default=TI;var Gp={};Object.defineProperty(Gp,"__esModule",{value:!0});const QI=pe,EI={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(r){const{gen:e,schema:t,it:n}=r;if((0,QI.alwaysValidSchema)(n,t)){r.fail();return}const o=e.name("valid");r.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),r.failResult(o,()=>r.reset(),()=>r.error())},error:{message:"must NOT be valid"}};Gp.default=EI;var Fp={};Object.defineProperty(Fp,"__esModule",{value:!0});const NI=he,AI={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:NI.validateUnion,error:{message:"must match a schema in anyOf"}};Fp.default=AI;var Kp={};Object.defineProperty(Kp,"__esModule",{value:!0});const tc=se,RI=pe,VI={message:"must match exactly one schema in oneOf",params:({params:r})=>(0,tc._)`{passingSchemas: ${r.passing}}`},BI={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:VI,code(r){const{gen:e,schema:t,parentSchema:n,it:o}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;const s=t,i=e.let("valid",!1),l=e.let("passing",null),c=e.name("_valid");r.setParams({passing:l}),e.block(d),r.result(i,()=>r.reset(),()=>r.error(!0));function d(){s.forEach((u,h)=>{let f;(0,RI.alwaysValidSchema)(o,u)?e.var(c,!0):f=r.subschema({keyword:"oneOf",schemaProp:h,compositeRule:!0},c),h>0&&e.if((0,tc._)`${c} && ${i}`).assign(i,!1).assign(l,(0,tc._)`[${l}, ${h}]`).else(),e.if(c,()=>{e.assign(i,!0),e.assign(l,h),f&&r.mergeEvaluated(f,tc.Name)})})}}};Kp.default=BI;var Jp={};Object.defineProperty(Jp,"__esModule",{value:!0});const ZI=pe,II={keyword:"allOf",schemaType:"array",code(r){const{gen:e,schema:t,it:n}=r;if(!Array.isArray(t))throw new Error("ajv implementation error");const o=e.name("valid");t.forEach((s,i)=>{if((0,ZI.alwaysValidSchema)(n,s))return;const l=r.subschema({keyword:"allOf",schemaProp:i},o);r.ok(o),r.mergeEvaluated(l)})}};Jp.default=II;var em={};Object.defineProperty(em,"__esModule",{value:!0});const Mc=se,hk=pe,jI={message:({params:r})=>(0,Mc.str)`must match "${r.ifClause}" schema`,params:({params:r})=>(0,Mc._)`{failingKeyword: ${r.ifClause}}`},DI={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:jI,code(r){const{gen:e,parentSchema:t,it:n}=r;t.then===void 0&&t.else===void 0&&(0,hk.checkStrictMode)(n,'"if" without "then" and "else" is ignored');const o=ty(n,"then"),s=ty(n,"else");if(!o&&!s)return;const i=e.let("valid",!0),l=e.name("_valid");if(c(),r.reset(),o&&s){const u=e.let("ifClause");r.setParams({ifClause:u}),e.if(l,d("then",u),d("else",u))}else o?e.if(l,d("then")):e.if((0,Mc.not)(l),d("else"));r.pass(i,()=>r.error(!0));function c(){const u=r.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},l);r.mergeEvaluated(u)}function d(u,h){return()=>{const f=r.subschema({keyword:u},l);e.assign(i,l),r.mergeValidEvaluated(f,i),h?e.assign(h,(0,Mc._)`${u}`):r.setParams({ifClause:u})}}}};function ty(r,e){const t=r.schema[e];return t!==void 0&&!(0,hk.alwaysValidSchema)(r,t)}em.default=DI;var tm={};Object.defineProperty(tm,"__esModule",{value:!0});const MI=pe,qI={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:r,parentSchema:e,it:t}){e.if===void 0&&(0,MI.checkStrictMode)(t,`"${r}" without "if" is ignored`)}};tm.default=qI;Object.defineProperty(Zi,"__esModule",{value:!0});const XI=zs,WI=Wp,zI=Us,UI=zp,YI=Up,LI=Ad,HI=Yp,GI=Rd,FI=Lp,KI=Hp,JI=Gp,ej=Fp,tj=Kp,rj=Jp,nj=em,oj=tm;function sj(r=!1){const e=[JI.default,ej.default,tj.default,rj.default,nj.default,oj.default,HI.default,GI.default,LI.default,FI.default,KI.default];return r?e.push(WI.default,UI.default):e.push(XI.default,zI.default),e.push(YI.default),e}Zi.default=sj;var Ii={},rm={};Object.defineProperty(rm,"__esModule",{value:!0});const Xe=se,aj={message:({schemaCode:r})=>(0,Xe.str)`must match format "${r}"`,params:({schemaCode:r})=>(0,Xe._)`{format: ${r}}`},ij={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:aj,code(r,e){const{gen:t,data:n,$data:o,schema:s,schemaCode:i,it:l}=r,{opts:c,errSchemaPath:d,schemaEnv:u,self:h}=l;if(!c.validateFormats)return;o?f():p();function f(){const m=t.scopeValue("formats",{ref:h.formats,code:c.code.formats}),g=t.const("fDef",(0,Xe._)`${m}[${i}]`),O=t.let("fType"),y=t.let("format");t.if((0,Xe._)`typeof ${g} == "object" && !(${g} instanceof RegExp)`,()=>t.assign(O,(0,Xe._)`${g}.type || "string"`).assign(y,(0,Xe._)`${g}.validate`),()=>t.assign(O,(0,Xe._)`"string"`).assign(y,g)),r.fail$data((0,Xe.or)(b(),v()));function b(){return c.strictSchema===!1?Xe.nil:(0,Xe._)`${i} && !${y}`}function v(){const k=u.$async?(0,Xe._)`(${g}.async ? await ${y}(${n}) : ${y}(${n}))`:(0,Xe._)`${y}(${n})`,S=(0,Xe._)`(typeof ${y} == "function" ? ${k} : ${y}.test(${n}))`;return(0,Xe._)`${y} && ${y} !== true && ${O} === ${e} && !${S}`}}function p(){const m=h.formats[s];if(!m){b();return}if(m===!0)return;const[g,O,y]=v(m);g===e&&r.pass(k());function b(){if(c.strictSchema===!1){h.logger.warn(S());return}throw new Error(S());function S(){return`unknown format "${s}" ignored in schema at path "${d}"`}}function v(S){const w=S instanceof RegExp?(0,Xe.regexpCode)(S):c.code.formats?(0,Xe._)`${c.code.formats}${(0,Xe.getProperty)(s)}`:void 0,$=t.scopeValue("formats",{key:s,ref:S,code:w});return typeof S=="object"&&!(S instanceof RegExp)?[S.type||"string",S.validate,(0,Xe._)`${$}.validate`]:["string",S,$]}function k(){if(typeof m=="object"&&!(m instanceof RegExp)&&m.async){if(!u.$async)throw new Error("async format in sync schema");return(0,Xe._)`await ${y}(${n})`}return typeof O=="function"?(0,Xe._)`${y}(${n})`:(0,Xe._)`${y}.test(${n})`}}}};rm.default=ij;Object.defineProperty(Ii,"__esModule",{value:!0});const lj=rm,cj=[lj.default];Ii.default=cj;var To={};Object.defineProperty(To,"__esModule",{value:!0});To.contentVocabulary=To.metadataVocabulary=void 0;To.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];To.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"];Object.defineProperty(Dp,"__esModule",{value:!0});const dj=kd,uj=Sd,hj=Zi,fj=Ii,ry=To,pj=[dj.default,uj.default,(0,hj.default)(),fj.default,ry.metadataVocabulary,ry.contentVocabulary];Dp.default=pj;var ji={},fk={};(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.DiscrError=void 0,function(e){e.Tag="tag",e.Mapping="mapping"}(r.DiscrError||(r.DiscrError={}))})(fk);Object.defineProperty(ji,"__esModule",{value:!0});const Fo=se,Of=fk,ny=bt,mj=pe,gj={message:({params:{discrError:r,tagName:e}})=>r===Of.DiscrError.Tag?`tag "${e}" must be string`:`value of tag "${e}" must be in oneOf`,params:({params:{discrError:r,tag:e,tagName:t}})=>(0,Fo._)`{error: ${r}, tag: ${t}, tagValue: ${e}}`},Oj={keyword:"discriminator",type:"object",schemaType:"object",error:gj,code(r){const{gen:e,data:t,schema:n,parentSchema:o,it:s}=r,{oneOf:i}=o;if(!s.opts.discriminator)throw new Error("discriminator: requires discriminator option");const l=n.propertyName;if(typeof l!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!i)throw new Error("discriminator: requires oneOf keyword");const c=e.let("valid",!1),d=e.const("tag",(0,Fo._)`${t}${(0,Fo.getProperty)(l)}`);e.if((0,Fo._)`typeof ${d} == "string"`,()=>u(),()=>r.error(!1,{discrError:Of.DiscrError.Tag,tag:d,tagName:l})),r.ok(c);function u(){const p=f();e.if(!1);for(const m in p)e.elseIf((0,Fo._)`${d} === ${m}`),e.assign(c,h(p[m]));e.else(),r.error(!1,{discrError:Of.DiscrError.Mapping,tag:d,tagName:l}),e.endIf()}function h(p){const m=e.name("valid"),g=r.subschema({keyword:"oneOf",schemaProp:p},m);return r.mergeEvaluated(g,Fo.Name),m}function f(){var p;const m={},g=y(o);let O=!0;for(let k=0;k<i.length;k++){let S=i[k];S!=null&&S.$ref&&!(0,mj.schemaHasRulesButRef)(S,s.self.RULES)&&(S=ny.resolveRef.call(s.self,s.schemaEnv.root,s.baseId,S==null?void 0:S.$ref),S instanceof ny.SchemaEnv&&(S=S.schema));const w=(p=S==null?void 0:S.properties)===null||p===void 0?void 0:p[l];if(typeof w!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${l}"`);O=O&&(g||y(S)),b(w,k)}if(!O)throw new Error(`discriminator: "${l}" must be required`);return m;function y({required:k}){return Array.isArray(k)&&k.includes(l)}function b(k,S){if(k.const)v(k.const,S);else if(k.enum)for(const w of k.enum)v(w,S);else throw new Error(`discriminator: "properties/${l}" must have "const" or "enum"`)}function v(k,S){if(typeof k!="string"||k in m)throw new Error(`discriminator: "${l}" values must be unique strings`);m[k]=S}}}};ji.default=Oj;const yj="http://json-schema.org/draft-07/schema#",bj="http://json-schema.org/draft-07/schema#",vj="Core schema meta-schema",wj={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},kj=["object","boolean"],Sj={$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},$j={$schema:yj,$id:bj,title:vj,definitions:wj,type:kj,properties:Sj,default:!0};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=Dp,o=ji,s=$j,i=["/properties"],l="http://json-schema.org/draft-07/schema";class c extends t.default{_addVocabularies(){super._addVocabularies(),n.default.forEach(m=>this.addVocabulary(m)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const m=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(m,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=Ht;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}});var h=Xs;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return h.default}});var f=Ws;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return f.default}})})(uf,uf.exports);var Pj=uf.exports;(function(r){Object.defineProperty(r,"__esModule",{value:!0}),r.formatLimitDefinition=void 0;const e=Pj,t=se,n=t.operators,o={formatMaximum:{okStr:"<=",ok:n.LTE,fail:n.GT},formatMinimum:{okStr:">=",ok:n.GTE,fail:n.LT},formatExclusiveMaximum:{okStr:"<",ok:n.LT,fail:n.GTE},formatExclusiveMinimum:{okStr:">",ok:n.GT,fail:n.LTE}},s={message:({keyword:l,schemaCode:c})=>t.str`should be ${o[l].okStr} ${c}`,params:({keyword:l,schemaCode:c})=>t._`{comparison: ${o[l].okStr}, limit: ${c}}`};r.formatLimitDefinition={keyword:Object.keys(o),type:"string",schemaType:"string",$data:!0,error:s,code(l){const{gen:c,data:d,schemaCode:u,keyword:h,it:f}=l,{opts:p,self:m}=f;if(!p.validateFormats)return;const g=new e.KeywordCxt(f,m.RULES.all.format.definition,"format");g.$data?O():y();function O(){const v=c.scopeValue("formats",{ref:m.formats,code:p.code.formats}),k=c.const("fmt",t._`${v}[${g.schemaCode}]`);l.fail$data(t.or(t._`typeof ${k} != "object"`,t._`${k} instanceof RegExp`,t._`typeof ${k}.compare != "function"`,b(k)))}function y(){const v=g.schema,k=m.formats[v];if(!k||k===!0)return;if(typeof k!="object"||k instanceof RegExp||typeof k.compare!="function")throw new Error(`"${h}": format "${v}" does not define "compare" function`);const S=c.scopeValue("formats",{key:v,ref:k,code:p.code.formats?t._`${p.code.formats}${t.getProperty(v)}`:void 0});l.fail$data(b(S))}function b(v){return t._`${v}.compare(${d}, ${u}) ${o[h].fail} 0`}},dependencies:["format"]};const i=l=>(l.addKeyword(r.formatLimitDefinition),l);r.default=i})(Rw);(function(r,e){Object.defineProperty(e,"__esModule",{value:!0});const t=Aw,n=Rw,o=se,s=new o.Name("fullFormats"),i=new o.Name("fastFormats"),l=(d,u={keywords:!0})=>{if(Array.isArray(u))return c(d,u,t.fullFormats,s),d;const[h,f]=u.mode==="fast"?[t.fastFormats,i]:[t.fullFormats,s],p=u.formats||t.formatNames;return c(d,p,h,f),u.keywords&&n.default(d),d};l.get=(d,u="full")=>{const h=(u==="fast"?t.fastFormats:t.fullFormats)[d];if(!h)throw new Error(`Unknown format "${d}"`);return h};function c(d,u,h,f){var p,m;(p=(m=d.opts.code).formats)!==null&&p!==void 0||(m.formats=o._`require("ajv-formats/dist/formats").${f}`);for(const g of u)d.addFormat(g,h[g])}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l})(df,df.exports);var xj=df.exports;const _j=Np(xj);var yf={exports:{}},nm={},om={};Object.defineProperty(om,"__esModule",{value:!0});const Cj=jr,Tj=["$schema","id","$defs",{keyword:"$comment"},"definitions",Cj.default];om.default=Tj;var sm={},am={};Object.defineProperty(am,"__esModule",{value:!0});const bf=wo,Qj=se,gn=Qj.operators,vf={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:gn.LTE,fail:gn.GT},{okStr:"<",ok:gn.LT,fail:gn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:gn.GTE,fail:gn.LT},{okStr:">",ok:gn.GT,fail:gn.LTE}]}},Ej={message:r=>bf.str`must be ${wf(r).okStr} ${r.schemaCode}`,params:r=>bf._`{comparison: ${wf(r).okStr}, limit: ${r.schemaCode}}`},Nj={keyword:Object.keys(vf),type:"number",schemaType:"number",$data:!0,error:Ej,code(r){const{data:e,schemaCode:t}=r;r.fail$data(bf._`${e} ${wf(r).fail} ${t} || isNaN(${e})`)}};function wf(r){var e;const t=r.keyword,n=!((e=r.parentSchema)===null||e===void 0)&&e[vf[t].exclusive]?1:0;return vf[t].ops[n]}am.default=Nj;var im={};Object.defineProperty(im,"__esModule",{value:!0});const oy={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},Aj={keyword:Object.keys(oy),type:"number",schemaType:"boolean",code({keyword:r,parentSchema:e}){const t=oy[r];if(e[t]===void 0)throw new Error(`${r} can only be used with ${t}`)}};im.default=Aj;Object.defineProperty(sm,"__esModule",{value:!0});const Rj=am,Vj=im,Bj=$d,Zj=Pd,Ij=xd,jj=_d,Dj=Cd,Mj=Td,qj=Qd,Xj=Ed,Wj=Nd,zj=[Rj.default,Vj.default,Bj.default,Zj.default,Ij.default,jj.default,Dj.default,Mj.default,qj.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},Xj.default,Wj.default];sm.default=zj;Object.defineProperty(nm,"__esModule",{value:!0});const Uj=om,Yj=sm,Lj=Zi,Hj=Ii,Gj=["title","description","default"],Fj=[Uj.default,Yj.default,Lj.default(),Hj.default,Gj];nm.default=Fj;const Kj="http://json-schema.org/draft-04/schema#",Jj="http://json-schema.org/draft-04/schema#",eD="Core schema meta-schema",tD={schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},rD="object",nD={id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},oD={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},sD={id:Kj,$schema:Jj,description:eD,definitions:tD,type:rD,properties:nD,dependencies:oD,default:{}};(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=nm,o=ji,s=sD,i=["/properties"],l="http://json-schema.org/draft-04/schema";class c extends t.default{constructor(f={}){super({...f,schemaId:"id"})}_addVocabularies(){super._addVocabularies(),n.default.forEach(f=>this.addVocabulary(f)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;const f=this.opts.$data?this.$dataMetaSchema(s,i):s;this.addMetaSchema(f,l,!1),this.refs["http://json-schema.org/schema"]=l}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(l)?l:void 0)}}r.exports=e=c,Object.defineProperty(e,"__esModule",{value:!0}),e.default=c;var d=wo;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return d.KeywordCxt}});var u=wo;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return u._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return u.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return u.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return u.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return u.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return u.CodeGen}})})(yf,yf.exports);var aD=yf.exports;const iD=Np(aD);var kf={exports:{}},lm={},cm={},Ys={};Object.defineProperty(Ys,"__esModule",{value:!0});Ys.dynamicAnchor=void 0;const Mu=se,lD=Dt,sy=bt,cD=jr,dD={keyword:"$dynamicAnchor",schemaType:"string",code:r=>pk(r,r.schema)};function pk(r,e){const{gen:t,it:n}=r;n.schemaEnv.root.dynamicAnchors[e]=!0;const o=(0,Mu._)`${lD.default.dynamicAnchors}${(0,Mu.getProperty)(e)}`,s=n.errSchemaPath==="#"?n.validateName:uD(r);t.if((0,Mu._)`!${o}`,()=>t.assign(o,s))}Ys.dynamicAnchor=pk;function uD(r){const{schemaEnv:e,schema:t,self:n}=r.it,{root:o,baseId:s,localRefs:i,meta:l}=e.root,{schemaId:c}=n.opts,d=new sy.SchemaEnv({schema:t,schemaId:c,root:o,baseId:s,localRefs:i,meta:l});return sy.compileSchema.call(n,d),(0,cD.getValidate)(r,d)}Ys.default=dD;var Ls={};Object.defineProperty(Ls,"__esModule",{value:!0});Ls.dynamicRef=void 0;const ay=se,hD=Dt,iy=jr,fD={keyword:"$dynamicRef",schemaType:"string",code:r=>mk(r,r.schema)};function mk(r,e){const{gen:t,keyword:n,it:o}=r;if(e[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);const s=e.slice(1);if(o.allErrors)i();else{const c=t.let("valid",!1);i(c),r.ok(c)}function i(c){if(o.schemaEnv.root.dynamicAnchors[s]){const d=t.let("_v",(0,ay._)`${hD.default.dynamicAnchors}${(0,ay.getProperty)(s)}`);t.if(d,l(d,c),l(o.validateName,c))}else l(o.validateName,c)()}function l(c,d){return d?()=>t.block(()=>{(0,iy.callRef)(r,c),t.let(d,!0)}):()=>(0,iy.callRef)(r,c)}}Ls.dynamicRef=mk;Ls.default=fD;var dm={};Object.defineProperty(dm,"__esModule",{value:!0});const pD=Ys,mD=pe,gD={keyword:"$recursiveAnchor",schemaType:"boolean",code(r){r.schema?(0,pD.dynamicAnchor)(r,""):(0,mD.checkStrictMode)(r.it,"$recursiveAnchor: false is ignored")}};dm.default=gD;var um={};Object.defineProperty(um,"__esModule",{value:!0});const OD=Ls,yD={keyword:"$recursiveRef",schemaType:"string",code:r=>(0,OD.dynamicRef)(r,r.schema)};um.default=yD;Object.defineProperty(cm,"__esModule",{value:!0});const bD=Ys,vD=Ls,wD=dm,kD=um,SD=[bD.default,vD.default,wD.default,kD.default];cm.default=SD;var hm={},fm={};Object.defineProperty(fm,"__esModule",{value:!0});const ly=Ad,$D={keyword:"dependentRequired",type:"object",schemaType:"object",error:ly.error,code:r=>(0,ly.validatePropertyDeps)(r)};fm.default=$D;var pm={};Object.defineProperty(pm,"__esModule",{value:!0});const PD=Ad,xD={keyword:"dependentSchemas",type:"object",schemaType:"object",code:r=>(0,PD.validateSchemaDeps)(r)};pm.default=xD;var mm={};Object.defineProperty(mm,"__esModule",{value:!0});const _D=pe,CD={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:r,parentSchema:e,it:t}){e.contains===void 0&&(0,_D.checkStrictMode)(t,`"${r}" without "contains" is ignored`)}};mm.default=CD;Object.defineProperty(hm,"__esModule",{value:!0});const TD=fm,QD=pm,ED=mm,ND=[TD.default,QD.default,ED.default];hm.default=ND;var gm={},Om={};Object.defineProperty(Om,"__esModule",{value:!0});const bn=se,cy=pe,AD=Dt,RD={message:"must NOT have unevaluated properties",params:({params:r})=>(0,bn._)`{unevaluatedProperty: ${r.unevaluatedProperty}}`},VD={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],trackErrors:!0,error:RD,code(r){const{gen:e,schema:t,data:n,errsCount:o,it:s}=r;if(!o)throw new Error("ajv implementation error");const{allErrors:i,props:l}=s;l instanceof bn.Name?e.if((0,bn._)`${l} !== true`,()=>e.forIn("key",n,h=>e.if(d(l,h),()=>c(h)))):l!==!0&&e.forIn("key",n,h=>l===void 0?c(h):e.if(u(l,h),()=>c(h))),s.props=!0,r.ok((0,bn._)`${o} === ${AD.default.errors}`);function c(h){if(t===!1){r.setParams({unevaluatedProperty:h}),r.error(),i||e.break();return}if(!(0,cy.alwaysValidSchema)(s,t)){const f=e.name("valid");r.subschema({keyword:"unevaluatedProperties",dataProp:h,dataPropType:cy.Type.Str},f),i||e.if((0,bn.not)(f),()=>e.break())}}function d(h,f){return(0,bn._)`!${h} || !${h}[${f}]`}function u(h,f){const p=[];for(const m in h)h[m]===!0&&p.push((0,bn._)`${f} !== ${m}`);return(0,bn.and)(...p)}}};Om.default=VD;var ym={};Object.defineProperty(ym,"__esModule",{value:!0});const ao=se,dy=pe,BD={message:({params:{len:r}})=>(0,ao.str)`must NOT have more than ${r} items`,params:({params:{len:r}})=>(0,ao._)`{limit: ${r}}`},ZD={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:BD,code(r){const{gen:e,schema:t,data:n,it:o}=r,s=o.items||0;if(s===!0)return;const i=e.const("len",(0,ao._)`${n}.length`);if(t===!1)r.setParams({len:s}),r.fail((0,ao._)`${i} > ${s}`);else if(typeof t=="object"&&!(0,dy.alwaysValidSchema)(o,t)){const c=e.var("valid",(0,ao._)`${i} <= ${s}`);e.if((0,ao.not)(c),()=>l(c,s)),r.ok(c)}o.items=!0;function l(c,d){e.forRange("i",d,i,u=>{r.subschema({keyword:"unevaluatedItems",dataProp:u,dataPropType:dy.Type.Num},c),o.allErrors||e.if((0,ao.not)(c),()=>e.break())})}}};ym.default=ZD;Object.defineProperty(gm,"__esModule",{value:!0});const ID=Om,jD=ym,DD=[ID.default,jD.default];gm.default=DD;Object.defineProperty(lm,"__esModule",{value:!0});const MD=kd,qD=Sd,XD=Zi,WD=cm,zD=hm,UD=gm,YD=Ii,uy=To,LD=[WD.default,MD.default,qD.default,(0,XD.default)(!0),YD.default,uy.metadataVocabulary,uy.contentVocabulary,zD.default,UD.default];lm.default=LD;var bm={};const HD="https://json-schema.org/draft/2020-12/schema",GD="https://json-schema.org/draft/2020-12/schema",FD={"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},KD="meta",JD="Core and Validation specifications meta-schema",e4=[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],t4=["object","boolean"],r4="This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",n4={definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}},o4={$schema:HD,$id:GD,$vocabulary:FD,$dynamicAnchor:KD,title:JD,allOf:e4,type:t4,$comment:r4,properties:n4},s4="https://json-schema.org/draft/2020-12/schema",a4="https://json-schema.org/draft/2020-12/meta/applicator",i4={"https://json-schema.org/draft/2020-12/vocab/applicator":!0},l4="meta",c4="Applicator vocabulary meta-schema",d4=["object","boolean"],u4={prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},h4={schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}},f4={$schema:s4,$id:a4,$vocabulary:i4,$dynamicAnchor:l4,title:c4,type:d4,properties:u4,$defs:h4},p4="https://json-schema.org/draft/2020-12/schema",m4="https://json-schema.org/draft/2020-12/meta/unevaluated",g4={"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},O4="meta",y4="Unevaluated applicator vocabulary meta-schema",b4=["object","boolean"],v4={unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}},w4={$schema:p4,$id:m4,$vocabulary:g4,$dynamicAnchor:O4,title:y4,type:b4,properties:v4},k4="https://json-schema.org/draft/2020-12/schema",S4="https://json-schema.org/draft/2020-12/meta/content",$4={"https://json-schema.org/draft/2020-12/vocab/content":!0},P4="meta",x4="Content vocabulary meta-schema",_4=["object","boolean"],C4={contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}},T4={$schema:k4,$id:S4,$vocabulary:$4,$dynamicAnchor:P4,title:x4,type:_4,properties:C4},Q4="https://json-schema.org/draft/2020-12/schema",E4="https://json-schema.org/draft/2020-12/meta/core",N4={"https://json-schema.org/draft/2020-12/vocab/core":!0},A4="meta",R4="Core vocabulary meta-schema",V4=["object","boolean"],B4={$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},Z4={anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}},I4={$schema:Q4,$id:E4,$vocabulary:N4,$dynamicAnchor:A4,title:R4,type:V4,properties:B4,$defs:Z4},j4="https://json-schema.org/draft/2020-12/schema",D4="https://json-schema.org/draft/2020-12/meta/format-annotation",M4={"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},q4="meta",X4="Format vocabulary meta-schema for annotation results",W4=["object","boolean"],z4={format:{type:"string"}},U4={$schema:j4,$id:D4,$vocabulary:M4,$dynamicAnchor:q4,title:X4,type:W4,properties:z4},Y4="https://json-schema.org/draft/2020-12/schema",L4="https://json-schema.org/draft/2020-12/meta/meta-data",H4={"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},G4="meta",F4="Meta-data vocabulary meta-schema",K4=["object","boolean"],J4={title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}},eM={$schema:Y4,$id:L4,$vocabulary:H4,$dynamicAnchor:G4,title:F4,type:K4,properties:J4},tM="https://json-schema.org/draft/2020-12/schema",rM="https://json-schema.org/draft/2020-12/meta/validation",nM={"https://json-schema.org/draft/2020-12/vocab/validation":!0},oM="meta",sM="Validation vocabulary meta-schema",aM=["object","boolean"],iM={type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},lM={nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},cM={$schema:tM,$id:rM,$vocabulary:nM,$dynamicAnchor:oM,title:sM,type:aM,properties:iM,$defs:lM};Object.defineProperty(bm,"__esModule",{value:!0});const dM=o4,uM=f4,hM=w4,fM=T4,pM=I4,mM=U4,gM=eM,OM=cM,yM=["/properties"];function bM(r){return[dM,uM,hM,fM,pM,e(this,mM),gM,e(this,OM)].forEach(t=>this.addMetaSchema(t,void 0,!1)),this;function e(t,n){return r?t.$dataMetaSchema(n,yM):n}}bm.default=bM;(function(r,e){Object.defineProperty(e,"__esModule",{value:!0}),e.MissingRefError=e.ValidationError=e.CodeGen=e.Name=e.nil=e.stringify=e.str=e._=e.KeywordCxt=void 0;const t=wo,n=lm,o=ji,s=bm,i="https://json-schema.org/draft/2020-12/schema";class l extends t.default{constructor(p={}){super({...p,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),n.default.forEach(p=>this.addVocabulary(p)),this.opts.discriminator&&this.addKeyword(o.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();const{$data:p,meta:m}=this.opts;m&&(s.default.call(this,p),this.refs["http://json-schema.org/schema"]=i)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(i)?i:void 0)}}r.exports=e=l,Object.defineProperty(e,"__esModule",{value:!0}),e.default=l;var c=Ht;Object.defineProperty(e,"KeywordCxt",{enumerable:!0,get:function(){return c.KeywordCxt}});var d=se;Object.defineProperty(e,"_",{enumerable:!0,get:function(){return d._}}),Object.defineProperty(e,"str",{enumerable:!0,get:function(){return d.str}}),Object.defineProperty(e,"stringify",{enumerable:!0,get:function(){return d.stringify}}),Object.defineProperty(e,"nil",{enumerable:!0,get:function(){return d.nil}}),Object.defineProperty(e,"Name",{enumerable:!0,get:function(){return d.Name}}),Object.defineProperty(e,"CodeGen",{enumerable:!0,get:function(){return d.CodeGen}});var u=Xs;Object.defineProperty(e,"ValidationError",{enumerable:!0,get:function(){return u.default}});var h=Ws;Object.defineProperty(e,"MissingRefError",{enumerable:!0,get:function(){return h.default}})})(kf,kf.exports);var vM=kf.exports;const wM=Np(vM),gk=["2.0","3.0","3.1"],kM={"http://json-schema.org/draft-04/schema#":iD,"https://json-schema.org/draft/2020-12/schema":wM},Sf={EMPTY_OR_INVALID:"Cannot find JSON, YAML or filename in data",OPENAPI_VERSION_NOT_SUPPORTED:"Cannot find supported Swagger/OpenAPI version in specification, version must be a string.",INVALID_REFERENCE:"Can’t resolve URI: %s",EXTERNAL_REFERENCE_NOT_SUPPORTED:"External references are not supported yet: %s"},SM="x-inlined-refs";function Tr(r,e){const t={};for(const[n,o]of Object.entries(r))Array.isArray(o)?t[n]=o.map(s=>typeof s=="object"&&s!==null?Tr(s,e):s):typeof o=="object"&&o!==null?t[n]=Tr(o,e):t[n]=o;return e(t)}function $M(r,e){return Tr(r,t=>e(t)?t:void 0)}function Ok(r){return typeof r!==void 0&&Array.isArray(r)&&r.length>0&&r.some(e=>e.isEntrypoint===!0)}function PM(r){const e=[];return!r||typeof r!="object"||Tr(r,t=>(t.$ref&&typeof t.$ref=="string"&&!t.$ref.startsWith("#")&&e.push(t.$ref.split("#")[0]),t)),e}const vm=Symbol.for("yaml.alias"),$f=Symbol.for("yaml.document"),Nn=Symbol.for("yaml.map"),yk=Symbol.for("yaml.pair"),ln=Symbol.for("yaml.scalar"),Hs=Symbol.for("yaml.seq"),Jt=Symbol.for("yaml.node.type"),Ro=r=>!!r&&typeof r=="object"&&r[Jt]===vm,Gs=r=>!!r&&typeof r=="object"&&r[Jt]===$f,Fs=r=>!!r&&typeof r=="object"&&r[Jt]===Nn,Ie=r=>!!r&&typeof r=="object"&&r[Jt]===yk,Ee=r=>!!r&&typeof r=="object"&&r[Jt]===ln,Ks=r=>!!r&&typeof r=="object"&&r[Jt]===Hs;function je(r){if(r&&typeof r=="object")switch(r[Jt]){case Nn:case Hs:return!0}return!1}function ze(r){if(r&&typeof r=="object")switch(r[Jt]){case vm:case Nn:case ln:case Hs:return!0}return!1}const xM=r=>(Ee(r)||je(r))&&!!r.anchor,_t=Symbol("break visit"),bk=Symbol("skip children"),Zr=Symbol("remove node");function Dn(r,e){const t=vk(e);Gs(r)?os(null,r.contents,t,Object.freeze([r]))===Zr&&(r.contents=null):os(null,r,t,Object.freeze([]))}Dn.BREAK=_t;Dn.SKIP=bk;Dn.REMOVE=Zr;function os(r,e,t,n){const o=wk(r,e,t,n);if(ze(o)||Ie(o))return kk(r,n,o),os(r,o,t,n);if(typeof o!="symbol"){if(je(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=os(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===_t)return _t;i===Zr&&(e.items.splice(s,1),s-=1)}}}else if(Ie(e)){n=Object.freeze(n.concat(e));const s=os("key",e.key,t,n);if(s===_t)return _t;s===Zr&&(e.key=null);const i=os("value",e.value,t,n);if(i===_t)return _t;i===Zr&&(e.value=null)}}return o}async function Vd(r,e){const t=vk(e);Gs(r)?await ss(null,r.contents,t,Object.freeze([r]))===Zr&&(r.contents=null):await ss(null,r,t,Object.freeze([]))}Vd.BREAK=_t;Vd.SKIP=bk;Vd.REMOVE=Zr;async function ss(r,e,t,n){const o=await wk(r,e,t,n);if(ze(o)||Ie(o))return kk(r,n,o),ss(r,o,t,n);if(typeof o!="symbol"){if(je(e)){n=Object.freeze(n.concat(e));for(let s=0;s<e.items.length;++s){const i=await ss(s,e.items[s],t,n);if(typeof i=="number")s=i-1;else{if(i===_t)return _t;i===Zr&&(e.items.splice(s,1),s-=1)}}}else if(Ie(e)){n=Object.freeze(n.concat(e));const s=await ss("key",e.key,t,n);if(s===_t)return _t;s===Zr&&(e.key=null);const i=await ss("value",e.value,t,n);if(i===_t)return _t;i===Zr&&(e.value=null)}}return o}function vk(r){return typeof r=="object"&&(r.Collection||r.Node||r.Value)?Object.assign({Alias:r.Node,Map:r.Node,Scalar:r.Node,Seq:r.Node},r.Value&&{Map:r.Value,Scalar:r.Value,Seq:r.Value},r.Collection&&{Map:r.Collection,Seq:r.Collection},r):r}function wk(r,e,t,n){var o,s,i,l,c;if(typeof t=="function")return t(r,e,n);if(Fs(e))return(o=t.Map)==null?void 0:o.call(t,r,e,n);if(Ks(e))return(s=t.Seq)==null?void 0:s.call(t,r,e,n);if(Ie(e))return(i=t.Pair)==null?void 0:i.call(t,r,e,n);if(Ee(e))return(l=t.Scalar)==null?void 0:l.call(t,r,e,n);if(Ro(e))return(c=t.Alias)==null?void 0:c.call(t,r,e,n)}function kk(r,e,t){const n=e[e.length-1];if(je(n))n.items[r]=t;else if(Ie(n))r==="key"?n.key=t:n.value=t;else if(Gs(n))n.contents=t;else{const o=Ro(n)?"alias":"scalar";throw new Error(`Cannot replace node with ${o} parent`)}}const _M={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},CM=r=>r.replace(/[!,[\]{}]/g,e=>_M[e]);class yt{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},yt.defaultYaml,e),this.tags=Object.assign({},yt.defaultTags,t)}clone(){const e=new yt(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){const e=new yt(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:yt.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},yt.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:yt.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},yt.defaultTags),this.atNextDocument=!1);const n=e.trim().split(/[ \t]+/),o=n.shift();switch(o){case"%TAG":{if(n.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),n.length<2))return!1;const[s,i]=n;return this.tags[s]=i,!0}case"%YAML":{if(this.yaml.explicit=!0,n.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;const[s]=n;if(s==="1.1"||s==="1.2")return this.yaml.version=s,!0;{const i=/^\d+\.\d+$/.test(s);return t(6,`Unsupported YAML version ${s}`,i),!1}}default:return t(0,`Unknown directive ${o}`,!0),!1}}tagName(e,t){if(e==="!")return"!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){const i=e.slice(2,-1);return i==="!"||i==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),i)}const[,n,o]=e.match(/^(.*!)([^!]*)$/s);o||t(`The ${e} tag has no suffix`);const s=this.tags[n];if(s)try{return s+decodeURIComponent(o)}catch(i){return t(String(i)),null}return n==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(const[t,n]of Object.entries(this.tags))if(e.startsWith(n))return t+CM(e.substring(n.length));return e[0]==="!"?e:`!<${e}>`}toString(e){const t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],n=Object.entries(this.tags);let o;if(e&&n.length>0&&ze(e.contents)){const s={};Dn(e.contents,(i,l)=>{ze(l)&&l.tag&&(s[l.tag]=!0)}),o=Object.keys(s)}else o=[];for(const[s,i]of n)s==="!!"&&i==="tag:yaml.org,2002:"||(!e||o.some(l=>l.startsWith(i)))&&t.push(`%TAG ${s} ${i}`);return t.join(`
86
+ `)}}yt.defaultYaml={explicit:!1,version:"1.2"};yt.defaultTags={"!!":"tag:yaml.org,2002:"};function Sk(r){if(/[\x00-\x19\s,[\]{}]/.test(r)){const e=`Anchor must not contain whitespace or control characters: ${JSON.stringify(r)}`;throw new Error(e)}return!0}function $k(r){const e=new Set;return Dn(r,{Value(t,n){n.anchor&&e.add(n.anchor)}}),e}function Pk(r,e){for(let t=1;;++t){const n=`${r}${t}`;if(!e.has(n))return n}}function TM(r,e){const t=[],n=new Map;let o=null;return{onAnchor:s=>{t.push(s),o||(o=$k(r));const i=Pk(e,o);return o.add(i),i},setAnchors:()=>{for(const s of t){const i=n.get(s);if(typeof i=="object"&&i.anchor&&(Ee(i.node)||je(i.node)))i.node.anchor=i.anchor;else{const l=new Error("Failed to resolve repeated object (this should not happen)");throw l.source=s,l}}},sourceObjects:n}}function as(r,e,t,n){if(n&&typeof n=="object")if(Array.isArray(n))for(let o=0,s=n.length;o<s;++o){const i=n[o],l=as(r,n,String(o),i);l===void 0?delete n[o]:l!==i&&(n[o]=l)}else if(n instanceof Map)for(const o of Array.from(n.keys())){const s=n.get(o),i=as(r,n,o,s);i===void 0?n.delete(o):i!==s&&n.set(o,i)}else if(n instanceof Set)for(const o of Array.from(n)){const s=as(r,n,o,o);s===void 0?n.delete(o):s!==o&&(n.delete(o),n.add(s))}else for(const[o,s]of Object.entries(n)){const i=as(r,n,o,s);i===void 0?delete n[o]:i!==s&&(n[o]=i)}return r.call(e,t,n)}function Gt(r,e,t){if(Array.isArray(r))return r.map((n,o)=>Gt(n,String(o),t));if(r&&typeof r.toJSON=="function"){if(!t||!xM(r))return r.toJSON(e,t);const n={aliasCount:0,count:1,res:void 0};t.anchors.set(r,n),t.onCreate=s=>{n.res=s,delete t.onCreate};const o=r.toJSON(e,t);return t.onCreate&&t.onCreate(o),o}return typeof r=="bigint"&&!(t!=null&&t.keep)?Number(r):r}class wm{constructor(e){Object.defineProperty(this,Jt,{value:e})}clone(){const e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:n,onAnchor:o,reviver:s}={}){if(!Gs(e))throw new TypeError("A document argument is required");const i={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof n=="number"?n:100},l=Gt(this,"",i);if(typeof o=="function")for(const{count:c,res:d}of i.anchors.values())o(d,c);return typeof s=="function"?as(s,{"":l},"",l):l}}class Bd extends wm{constructor(e){super(vm),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}})}resolve(e){let t;return Dn(e,{Node:(n,o)=>{if(o===this)return Dn.BREAK;o.anchor===this.source&&(t=o)}}),t}toJSON(e,t){if(!t)return{source:this.source};const{anchors:n,doc:o,maxAliasCount:s}=t,i=this.resolve(o);if(!i){const c=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(c)}let l=n.get(i);if(l||(Gt(i,null,t),l=n.get(i)),!l||l.res===void 0){const c="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(c)}if(s>=0&&(l.count+=1,l.aliasCount===0&&(l.aliasCount=rc(o,i,n)),l.count*l.aliasCount>s)){const c="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(c)}return l.res}toString(e,t,n){const o=`*${this.source}`;if(e){if(Sk(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){const s=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(s)}if(e.implicitKey)return`${o} `}return o}}function rc(r,e,t){if(Ro(e)){const n=e.resolve(r),o=t&&n&&t.get(n);return o?o.count*o.aliasCount:0}else if(je(e)){let n=0;for(const o of e.items){const s=rc(r,o,t);s>n&&(n=s)}return n}else if(Ie(e)){const n=rc(r,e.key,t),o=rc(r,e.value,t);return Math.max(n,o)}return 1}const xk=r=>!r||typeof r!="function"&&typeof r!="object";class de extends wm{constructor(e){super(ln),this.value=e}toJSON(e,t){return t!=null&&t.keep?this.value:Gt(this.value,e,t)}toString(){return String(this.value)}}de.BLOCK_FOLDED="BLOCK_FOLDED";de.BLOCK_LITERAL="BLOCK_LITERAL";de.PLAIN="PLAIN";de.QUOTE_DOUBLE="QUOTE_DOUBLE";de.QUOTE_SINGLE="QUOTE_SINGLE";const QM="tag:yaml.org,2002:";function EM(r,e,t){if(e){const n=t.filter(s=>s.tag===e),o=n.find(s=>!s.format)??n[0];if(!o)throw new Error(`Tag ${e} not found`);return o}return t.find(n=>{var o;return((o=n.identify)==null?void 0:o.call(n,r))&&!n.format})}function gi(r,e,t){var n,o,s;if(Gs(r)&&(r=r.contents),ze(r))return r;if(Ie(r)){const m=(o=(n=t.schema[Nn]).createNode)==null?void 0:o.call(n,t.schema,null,t);return m.items.push(r),m}(r instanceof String||r instanceof Number||r instanceof Boolean||typeof BigInt<"u"&&r instanceof BigInt)&&(r=r.valueOf());const{aliasDuplicateObjects:i,onAnchor:l,onTagObj:c,schema:d,sourceObjects:u}=t;let h;if(i&&r&&typeof r=="object"){if(h=u.get(r),h)return h.anchor||(h.anchor=l(r)),new Bd(h.anchor);h={anchor:null,node:null},u.set(r,h)}e!=null&&e.startsWith("!!")&&(e=QM+e.slice(2));let f=EM(r,e,d.tags);if(!f){if(r&&typeof r.toJSON=="function"&&(r=r.toJSON()),!r||typeof r!="object"){const m=new de(r);return h&&(h.node=m),m}f=r instanceof Map?d[Nn]:Symbol.iterator in Object(r)?d[Hs]:d[Nn]}c&&(c(f),delete t.onTagObj);const p=f!=null&&f.createNode?f.createNode(t.schema,r,t):typeof((s=f==null?void 0:f.nodeClass)==null?void 0:s.from)=="function"?f.nodeClass.from(t.schema,r,t):new de(r);return e?p.tag=e:f.default||(p.tag=f.tag),h&&(h.node=p),p}function qc(r,e,t){let n=t;for(let o=e.length-1;o>=0;--o){const s=e[o];if(typeof s=="number"&&Number.isInteger(s)&&s>=0){const i=[];i[s]=n,n=i}else n=new Map([[s,n]])}return gi(n,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:r,sourceObjects:new Map})}const Ra=r=>r==null||typeof r=="object"&&!!r[Symbol.iterator]().next().done;class km extends wm{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0})}clone(e){const t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(n=>ze(n)||Ie(n)?n.clone(e):n),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ra(e))this.add(t);else{const[n,...o]=e,s=this.get(n,!0);if(je(s))s.addIn(o,t);else if(s===void 0&&this.schema)this.set(n,qc(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}deleteIn(e){const[t,...n]=e;if(n.length===0)return this.delete(t);const o=this.get(t,!0);if(je(o))return o.deleteIn(n);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${n}`)}getIn(e,t){const[n,...o]=e,s=this.get(n,!0);return o.length===0?!t&&Ee(s)?s.value:s:je(s)?s.getIn(o,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Ie(t))return!1;const n=t.value;return n==null||e&&Ee(n)&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn(e){const[t,...n]=e;if(n.length===0)return this.has(t);const o=this.get(t,!0);return je(o)?o.hasIn(n):!1}setIn(e,t){const[n,...o]=e;if(o.length===0)this.set(n,t);else{const s=this.get(n,!0);if(je(s))s.setIn(o,t);else if(s===void 0&&this.schema)this.set(n,qc(this.schema,o,t));else throw new Error(`Expected YAML collection at ${n}. Remaining path: ${o}`)}}}km.maxFlowStringSingleLineLength=60;const NM=r=>r.replace(/^(?!$)(?: $)?/gm,"#");function Hr(r,e){return/^\n+$/.test(r)?r.substring(1):e?r.replace(/^(?! *$)/gm,e):r}const po=(r,e,t)=>r.endsWith(`
87
87
  `)?Hr(t,e):t.includes(`
88
88
  `)?`
89
89
  `+Hr(t,e):(r.endsWith(" ")?"":" ")+t,_k="flow",Pf="block",nc="quoted";function Zd(r,e,t="flow",{indentAtStart:n,lineWidth:o=80,minContentWidth:s=20,onFold:i,onOverflow:l}={}){if(!o||o<0)return r;const c=Math.max(1+s,1+o-e.length);if(r.length<=c)return r;const d=[],u={};let h=o-e.length;typeof n=="number"&&(n>o-Math.max(2,s)?d.push(0):h=o-n);let f,p,m=!1,g=-1,O=-1,y=-1;t===Pf&&(g=hy(r,g,e.length),g!==-1&&(h=g+c));for(let v;v=r[g+=1];){if(t===nc&&v==="\\"){switch(O=g,r[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}y=g}if(v===`
@@ -92,7 +92,7 @@ ${o}${p}`}else return`${f}${i}${h.join(" ")}${i}${p}`}function lc({indent:r,opti
92
92
  `&&k!==" "&&(f=g)}if(g>=h)if(f)d.push(f),h=f+c,f=void 0;else if(t===nc){for(;p===" "||p===" ";)p=v,v=r[g+=1],m=!0;const k=g>y+1?g-2:O-1;if(u[k])return r;d.push(k),u[k]=!0,h=k+c,f=void 0}else m=!0}p=v}if(m&&l&&l(),d.length===0)return r;i&&i();let b=r.slice(0,d[0]);for(let v=0;v<d.length;++v){const k=d[v],S=d[v+1]||r.length;k===0?b=`
93
93
  ${e}${r.slice(0,S)}`:(t===nc&&u[k]&&(b+=`${r[k]}\\`),b+=`
94
94
  ${e}${r.slice(k+1,S)}`)}return b}function hy(r,e,t){let n=e,o=e+1,s=r[o];for(;s===" "||s===" ";)if(e<o+t)s=r[++e];else{do s=r[++e];while(s&&s!==`
95
- `);n=e,o=e+1,s=r[o]}return n}const Id=(r,e)=>({indentAtStart:e?r.indent.length:r.indentAtStart,lineWidth:r.options.lineWidth,minContentWidth:r.options.minContentWidth}),jd=r=>/^(%|---|\.\.\.)/m.test(r);function A7(r,e,t){if(!e||e<0)return!1;const n=e-t,o=r.length;if(o<=n)return!1;for(let s=0,i=0;s<o;++s)if(r[s]===`
95
+ `);n=e,o=e+1,s=r[o]}return n}const Id=(r,e)=>({indentAtStart:e?r.indent.length:r.indentAtStart,lineWidth:r.options.lineWidth,minContentWidth:r.options.minContentWidth}),jd=r=>/^(%|---|\.\.\.)/m.test(r);function AM(r,e,t){if(!e||e<0)return!1;const n=e-t,o=r.length;if(o<=n)return!1;for(let s=0,i=0;s<o;++s)if(r[s]===`
96
96
  `){if(s-i>n)return!0;if(i=s+1,o-i<=n)return!1}return!0}function Ha(r,e){const t=JSON.stringify(r);if(e.options.doubleQuotedAsJSON)return t;const{implicitKey:n}=e,o=e.options.doubleQuotedMinMultiLineLength,s=e.indent||(jd(r)?" ":"");let i="",l=0;for(let c=0,d=t[c];d;d=t[++c])if(d===" "&&t[c+1]==="\\"&&t[c+2]==="n"&&(i+=t.slice(l,c)+"\\ ",c+=1,l=c,d="\\"),d==="\\")switch(t[c+1]){case"u":{i+=t.slice(l,c);const u=t.substr(c+2,4);switch(u){case"0000":i+="\\0";break;case"0007":i+="\\a";break;case"000b":i+="\\v";break;case"001b":i+="\\e";break;case"0085":i+="\\N";break;case"00a0":i+="\\_";break;case"2028":i+="\\L";break;case"2029":i+="\\P";break;default:u.substr(0,2)==="00"?i+="\\x"+u.substr(2):i+=t.substr(c,6)}c+=5,l=c+1}break;case"n":if(n||t[c+2]==='"'||t.length<o)c+=1;else{for(i+=t.slice(l,c)+`
97
97
 
98
98
  `;t[c+2]==="\\"&&t[c+3]==="n"&&t[c+4]!=='"';)i+=`
@@ -101,7 +101,7 @@ ${e}${r.slice(k+1,S)}`)}return b}function hy(r,e,t){let n=e,o=e+1,s=r[o];for(;s=
101
101
  ${t}`)+"'";return e.implicitKey?n:Zd(n,t,_k,Id(e,!1))}function is(r,e){const{singleQuote:t}=e.options;let n;if(t===!1)n=Ha;else{const o=r.includes('"'),s=r.includes("'");o&&!s?n=xf:s&&!o?n=Ha:n=t?xf:Ha}return n(r,e)}let _f;try{_f=new RegExp(`(^|(?<!
102
102
  ))
103
103
  +(?!
104
- |$)`,"g")}catch{_f=/\n+(?!\n|$)/g}function oc({comment:r,type:e,value:t},n,o,s){const{blockQuote:i,commentString:l,lineWidth:c}=n.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return is(t,n);const d=n.indent||(n.forceBlockIndent||jd(t)?" ":""),u=i==="literal"?!0:i==="folded"||e===de.BLOCK_FOLDED?!1:e===de.BLOCK_LITERAL?!0:!A7(t,c,d.length);if(!t)return u?`|
104
+ |$)`,"g")}catch{_f=/\n+(?!\n|$)/g}function oc({comment:r,type:e,value:t},n,o,s){const{blockQuote:i,commentString:l,lineWidth:c}=n.options;if(!i||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return is(t,n);const d=n.indent||(n.forceBlockIndent||jd(t)?" ":""),u=i==="literal"?!0:i==="folded"||e===de.BLOCK_FOLDED?!1:e===de.BLOCK_LITERAL?!0:!AM(t,c,d.length);if(!t)return u?`|
105
105
  `:`>
106
106
  `;let h,f;for(f=t.length;f>0;--f){const S=t[f-1];if(S!==`
107
107
  `&&S!==" "&&S!==" ")break}let p=t.substring(f);const m=p.indexOf(`
@@ -110,12 +110,12 @@ ${t}`)+"'";return e.implicitKey?n:Zd(n,t,_k,Id(e,!1))}function is(r,e){const{sin
110
110
  `)y=O;else break}let b=t.substring(0,y<O?y+1:O);b&&(t=t.substring(b.length),b=b.replace(/\n+/g,`$&${d}`));let v=(u?"|":">")+(g?d?"2":"1":"")+h;if(r&&(v+=" "+l(r.replace(/ ?[\r\n]+/g," ")),o&&o()),u)return t=t.replace(/\n+/g,`$&${d}`),`${v}
111
111
  ${d}${b}${t}${p}`;t=t.replace(/\n+/g,`
112
112
  $&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${d}`);const k=Zd(`${b}${t}${p}`,d,Pf,Id(n,!0));return`${v}
113
- ${d}${k}`}function R7(r,e,t,n){const{type:o,value:s}=r,{actualString:i,implicitKey:l,indent:c,indentStep:d,inFlow:u}=e;if(l&&s.includes(`
113
+ ${d}${k}`}function RM(r,e,t,n){const{type:o,value:s}=r,{actualString:i,implicitKey:l,indent:c,indentStep:d,inFlow:u}=e;if(l&&s.includes(`
114
114
  `)||u&&/[[\]{},]/.test(s))return is(s,e);if(!s||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(s))return l||u||!s.includes(`
115
115
  `)?is(s,e):oc(r,e,t,n);if(!l&&!u&&o!==de.PLAIN&&s.includes(`
116
116
  `))return oc(r,e,t,n);if(jd(s)){if(c==="")return e.forceBlockIndent=!0,oc(r,e,t,n);if(l&&c===d)return is(s,e)}const h=s.replace(/\n+/g,`$&
117
- ${c}`);if(i){const f=g=>{var O;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((O=g.test)==null?void 0:O.test(h))},{compat:p,tags:m}=e.doc.schema;if(m.some(f)||p!=null&&p.some(f))return is(s,e)}return l?h:Zd(h,c,_k,Id(e,!1))}function Di(r,e,t,n){const{implicitKey:o,inFlow:s}=e,i=typeof r.value=="string"?r:Object.assign({},r,{value:String(r.value)});let{type:l}=r;l!==de.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=de.QUOTE_DOUBLE);const c=u=>{switch(u){case de.BLOCK_FOLDED:case de.BLOCK_LITERAL:return o||s?is(i.value,e):oc(i,e,t,n);case de.QUOTE_DOUBLE:return Ha(i.value,e);case de.QUOTE_SINGLE:return xf(i.value,e);case de.PLAIN:return R7(i,e,t,n);default:return null}};let d=c(l);if(d===null){const{defaultKeyType:u,defaultStringType:h}=e.options,f=o&&u||h;if(d=c(f),d===null)throw new Error(`Unsupported default string type ${f}`)}return d}function Ck(r,e){const t=Object.assign({blockQuote:!0,commentString:N7,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},r.schema.toStringOptions,e);let n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:r,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function V7(r,e){var t;if(e.tag){const s=r.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let n,o;if(Ee(e)){o=e.value;const s=r.filter(i=>{var l;return(l=i.identify)==null?void 0:l.call(i,o)});n=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else o=e,n=r.find(s=>s.nodeClass&&o instanceof s.nodeClass);if(!n){const s=((t=o==null?void 0:o.constructor)==null?void 0:t.name)??typeof o;throw new Error(`Tag not resolved for ${s} value`)}return n}function B7(r,e,{anchors:t,doc:n}){if(!n.directives)return"";const o=[],s=(Ee(r)||je(r))&&r.anchor;s&&Sk(s)&&(t.add(s),o.push(`&${s}`));const i=r.tag?r.tag:e.default?null:e.tag;return i&&o.push(n.directives.tagString(i)),o.join(" ")}function Es(r,e,t,n){var o;if(Ie(r))return r.toString(e,t,n);if(Ro(r)){if(e.doc.directives)return r.toString(e);if((o=e.resolvedAliases)!=null&&o.has(r))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(r):e.resolvedAliases=new Set([r]),r=r.resolve(e.doc)}let s;const i=ze(r)?r:e.doc.createNode(r,{onTagObj:d=>s=d});s||(s=V7(e.doc.schema.tags,i));const l=B7(i,s,e);l.length>0&&(e.indentAtStart=(e.indentAtStart??0)+l.length+1);const c=typeof s.stringify=="function"?s.stringify(i,e,t,n):Ee(i)?Di(i,e,t,n):i.toString(e,t,n);return l?Ee(i)||c[0]==="{"||c[0]==="["?`${l} ${c}`:`${l}
118
- ${e.indent}${c}`:c}function Z7({key:r,value:e},t,n,o){const{allNullValues:s,doc:i,indent:l,indentStep:c,options:{commentString:d,indentSeq:u,simpleKeys:h}}=t;let f=ze(r)&&r.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(je(r)){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let p=!h&&(!r||f&&e==null&&!t.inFlow||je(r)||(Ee(r)?r.type===de.BLOCK_FOLDED||r.type===de.BLOCK_LITERAL:typeof r=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:l+c});let m=!1,g=!1,O=Es(r,t,()=>m=!0,()=>g=!0);if(!p&&!t.inFlow&&O.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(s||e==null)return m&&n&&n(),O===""?"?":p?`? ${O}`:O}else if(s&&!h||e==null&&p)return O=`? ${O}`,f&&!m?O+=po(O,t.indent,d(f)):g&&o&&o(),O;m&&(f=null),p?(f&&(O+=po(O,t.indent,d(f))),O=`? ${O}
117
+ ${c}`);if(i){const f=g=>{var O;return g.default&&g.tag!=="tag:yaml.org,2002:str"&&((O=g.test)==null?void 0:O.test(h))},{compat:p,tags:m}=e.doc.schema;if(m.some(f)||p!=null&&p.some(f))return is(s,e)}return l?h:Zd(h,c,_k,Id(e,!1))}function Di(r,e,t,n){const{implicitKey:o,inFlow:s}=e,i=typeof r.value=="string"?r:Object.assign({},r,{value:String(r.value)});let{type:l}=r;l!==de.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(i.value)&&(l=de.QUOTE_DOUBLE);const c=u=>{switch(u){case de.BLOCK_FOLDED:case de.BLOCK_LITERAL:return o||s?is(i.value,e):oc(i,e,t,n);case de.QUOTE_DOUBLE:return Ha(i.value,e);case de.QUOTE_SINGLE:return xf(i.value,e);case de.PLAIN:return RM(i,e,t,n);default:return null}};let d=c(l);if(d===null){const{defaultKeyType:u,defaultStringType:h}=e.options,f=o&&u||h;if(d=c(f),d===null)throw new Error(`Unsupported default string type ${f}`)}return d}function Ck(r,e){const t=Object.assign({blockQuote:!0,commentString:NM,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},r.schema.toStringOptions,e);let n;switch(t.collectionStyle){case"block":n=!1;break;case"flow":n=!0;break;default:n=null}return{anchors:new Set,doc:r,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:n,options:t}}function VM(r,e){var t;if(e.tag){const s=r.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let n,o;if(Ee(e)){o=e.value;const s=r.filter(i=>{var l;return(l=i.identify)==null?void 0:l.call(i,o)});n=s.find(i=>i.format===e.format)??s.find(i=>!i.format)}else o=e,n=r.find(s=>s.nodeClass&&o instanceof s.nodeClass);if(!n){const s=((t=o==null?void 0:o.constructor)==null?void 0:t.name)??typeof o;throw new Error(`Tag not resolved for ${s} value`)}return n}function BM(r,e,{anchors:t,doc:n}){if(!n.directives)return"";const o=[],s=(Ee(r)||je(r))&&r.anchor;s&&Sk(s)&&(t.add(s),o.push(`&${s}`));const i=r.tag?r.tag:e.default?null:e.tag;return i&&o.push(n.directives.tagString(i)),o.join(" ")}function Es(r,e,t,n){var o;if(Ie(r))return r.toString(e,t,n);if(Ro(r)){if(e.doc.directives)return r.toString(e);if((o=e.resolvedAliases)!=null&&o.has(r))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(r):e.resolvedAliases=new Set([r]),r=r.resolve(e.doc)}let s;const i=ze(r)?r:e.doc.createNode(r,{onTagObj:d=>s=d});s||(s=VM(e.doc.schema.tags,i));const l=BM(i,s,e);l.length>0&&(e.indentAtStart=(e.indentAtStart??0)+l.length+1);const c=typeof s.stringify=="function"?s.stringify(i,e,t,n):Ee(i)?Di(i,e,t,n):i.toString(e,t,n);return l?Ee(i)||c[0]==="{"||c[0]==="["?`${l} ${c}`:`${l}
118
+ ${e.indent}${c}`:c}function ZM({key:r,value:e},t,n,o){const{allNullValues:s,doc:i,indent:l,indentStep:c,options:{commentString:d,indentSeq:u,simpleKeys:h}}=t;let f=ze(r)&&r.comment||null;if(h){if(f)throw new Error("With simple keys, key nodes cannot have comments");if(je(r)){const $="With simple keys, collection cannot be used as a key value";throw new Error($)}}let p=!h&&(!r||f&&e==null&&!t.inFlow||je(r)||(Ee(r)?r.type===de.BLOCK_FOLDED||r.type===de.BLOCK_LITERAL:typeof r=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!p&&(h||!s),indent:l+c});let m=!1,g=!1,O=Es(r,t,()=>m=!0,()=>g=!0);if(!p&&!t.inFlow&&O.length>1024){if(h)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");p=!0}if(t.inFlow){if(s||e==null)return m&&n&&n(),O===""?"?":p?`? ${O}`:O}else if(s&&!h||e==null&&p)return O=`? ${O}`,f&&!m?O+=po(O,t.indent,d(f)):g&&o&&o(),O;m&&(f=null),p?(f&&(O+=po(O,t.indent,d(f))),O=`? ${O}
119
119
  ${l}:`):(O=`${O}:`,f&&(O+=po(O,t.indent,d(f))));let y,b,v;ze(e)?(y=!!e.spaceBefore,b=e.commentBefore,v=e.comment):(y=!1,b=null,v=null,e&&typeof e=="object"&&(e=i.createNode(e))),t.implicitKey=!1,!p&&!f&&Ee(e)&&(t.indentAtStart=O.length+1),g=!1,!u&&c.length>=2&&!t.inFlow&&!p&&Ks(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let k=!1;const S=Es(e,t,()=>k=!0,()=>g=!0);let w=" ";if(f||y||b){if(w=y?`
120
120
  `:"",b){const $=d(b);w+=`
121
121
  ${Hr($,t.indent)}`}S===""&&!t.inFlow?w===`
@@ -125,32 +125,32 @@ ${Hr($,t.indent)}`}S===""&&!t.inFlow?w===`
125
125
  ${t.indent}`}else if(!p&&je(e)){const $=S[0],T=S.indexOf(`
126
126
  `),R=T!==-1,B=t.inFlow??e.flow??e.items.length===0;if(R||!B){let M=!1;if(R&&($==="&"||$==="!")){let V=S.indexOf(" ");$==="&"&&V!==-1&&V<T&&S[V+1]==="!"&&(V=S.indexOf(" ",V+1)),(V===-1||T<V)&&(M=!0)}M||(w=`
127
127
  ${t.indent}`)}}else(S===""||S[0]===`
128
- `)&&(w="");return O+=w+S,t.inFlow?k&&n&&n():v&&!k?O+=po(O,t.indent,d(v)):g&&o&&o(),O}function Tk(r,e){(r==="debug"||r==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const fy="<<";function Qk(r,e,{key:t,value:n}){if(r!=null&&r.doc.schema.merge&&I7(t))if(n=Ro(n)?n.resolve(r.doc):n,Ks(n))for(const o of n.items)qu(r,e,o);else if(Array.isArray(n))for(const o of n)qu(r,e,o);else qu(r,e,n);else{const o=Gt(t,"",r);if(e instanceof Map)e.set(o,Gt(n,o,r));else if(e instanceof Set)e.add(o);else{const s=j7(t,o,r),i=Gt(n,s,r);s in e?Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[s]=i}}return e}const I7=r=>r===fy||Ee(r)&&r.value===fy&&(!r.type||r.type===de.PLAIN);function qu(r,e,t){const n=r&&Ro(t)?t.resolve(r.doc):t;if(!Fs(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,r,Map);for(const[s,i]of o)e instanceof Map?e.has(s)||e.set(s,i):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function j7(r,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(ze(r)&&t!=null&&t.doc){const n=Ck(t.doc,{});n.anchors=new Set;for(const s of t.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=r.toString(n);if(!t.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),Tk(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Sm(r,e,t){const n=gi(r,void 0,t),o=gi(e,void 0,t);return new Tt(n,o)}let Tt=class Ek{constructor(e,t=null){Object.defineProperty(this,Jt,{value:yk}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return ze(t)&&(t=t.clone(e)),ze(n)&&(n=n.clone(e)),new Ek(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Qk(t,n,this)}toString(e,t,n){return e!=null&&e.doc?Z7(this,e,t,n):JSON.stringify(this)}};function Nk(r,e,t){return(e.inFlow??r.flow?M7:D7)(r,e,t)}function D7({comment:r,items:e},t,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:c,options:{commentString:d}}=t,u=Object.assign({},t,{indent:s,type:null});let h=!1;const f=[];for(let m=0;m<e.length;++m){const g=e[m];let O=null;if(ze(g))!h&&g.spaceBefore&&f.push(""),Xc(t,f,g.commentBefore,h),g.comment&&(O=g.comment);else if(Ie(g)){const b=ze(g.key)?g.key:null;b&&(!h&&b.spaceBefore&&f.push(""),Xc(t,f,b.commentBefore,h))}h=!1;let y=Es(g,u,()=>O=null,()=>h=!0);O&&(y+=po(y,s,d(O))),h&&O&&(h=!1),f.push(n+y)}let p;if(f.length===0)p=o.start+o.end;else{p=f[0];for(let m=1;m<f.length;++m){const g=f[m];p+=g?`
128
+ `)&&(w="");return O+=w+S,t.inFlow?k&&n&&n():v&&!k?O+=po(O,t.indent,d(v)):g&&o&&o(),O}function Tk(r,e){(r==="debug"||r==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e))}const fy="<<";function Qk(r,e,{key:t,value:n}){if(r!=null&&r.doc.schema.merge&&IM(t))if(n=Ro(n)?n.resolve(r.doc):n,Ks(n))for(const o of n.items)qu(r,e,o);else if(Array.isArray(n))for(const o of n)qu(r,e,o);else qu(r,e,n);else{const o=Gt(t,"",r);if(e instanceof Map)e.set(o,Gt(n,o,r));else if(e instanceof Set)e.add(o);else{const s=jM(t,o,r),i=Gt(n,s,r);s in e?Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):e[s]=i}}return e}const IM=r=>r===fy||Ee(r)&&r.value===fy&&(!r.type||r.type===de.PLAIN);function qu(r,e,t){const n=r&&Ro(t)?t.resolve(r.doc):t;if(!Fs(n))throw new Error("Merge sources must be maps or map aliases");const o=n.toJSON(null,r,Map);for(const[s,i]of o)e instanceof Map?e.has(s)||e.set(s,i):e instanceof Set?e.add(s):Object.prototype.hasOwnProperty.call(e,s)||Object.defineProperty(e,s,{value:i,writable:!0,enumerable:!0,configurable:!0});return e}function jM(r,e,t){if(e===null)return"";if(typeof e!="object")return String(e);if(ze(r)&&t!=null&&t.doc){const n=Ck(t.doc,{});n.anchors=new Set;for(const s of t.anchors.keys())n.anchors.add(s.anchor);n.inFlow=!0,n.inStringifyKey=!0;const o=r.toString(n);if(!t.mapKeyWarned){let s=JSON.stringify(o);s.length>40&&(s=s.substring(0,36)+'..."'),Tk(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${s}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0}return o}return JSON.stringify(e)}function Sm(r,e,t){const n=gi(r,void 0,t),o=gi(e,void 0,t);return new Tt(n,o)}let Tt=class Ek{constructor(e,t=null){Object.defineProperty(this,Jt,{value:yk}),this.key=e,this.value=t}clone(e){let{key:t,value:n}=this;return ze(t)&&(t=t.clone(e)),ze(n)&&(n=n.clone(e)),new Ek(t,n)}toJSON(e,t){const n=t!=null&&t.mapAsMap?new Map:{};return Qk(t,n,this)}toString(e,t,n){return e!=null&&e.doc?ZM(this,e,t,n):JSON.stringify(this)}};function Nk(r,e,t){return(e.inFlow??r.flow?MM:DM)(r,e,t)}function DM({comment:r,items:e},t,{blockItemPrefix:n,flowChars:o,itemIndent:s,onChompKeep:i,onComment:l}){const{indent:c,options:{commentString:d}}=t,u=Object.assign({},t,{indent:s,type:null});let h=!1;const f=[];for(let m=0;m<e.length;++m){const g=e[m];let O=null;if(ze(g))!h&&g.spaceBefore&&f.push(""),Xc(t,f,g.commentBefore,h),g.comment&&(O=g.comment);else if(Ie(g)){const b=ze(g.key)?g.key:null;b&&(!h&&b.spaceBefore&&f.push(""),Xc(t,f,b.commentBefore,h))}h=!1;let y=Es(g,u,()=>O=null,()=>h=!0);O&&(y+=po(y,s,d(O))),h&&O&&(h=!1),f.push(n+y)}let p;if(f.length===0)p=o.start+o.end;else{p=f[0];for(let m=1;m<f.length;++m){const g=f[m];p+=g?`
129
129
  ${c}${g}`:`
130
130
  `}}return r?(p+=`
131
- `+Hr(d(r),c),l&&l()):h&&i&&i(),p}function M7({items:r},e,{flowChars:t,itemIndent:n}){const{indent:o,indentStep:s,flowCollectionPadding:i,options:{commentString:l}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let d=!1,u=0;const h=[];for(let m=0;m<r.length;++m){const g=r[m];let O=null;if(ze(g))g.spaceBefore&&h.push(""),Xc(e,h,g.commentBefore,!1),g.comment&&(O=g.comment);else if(Ie(g)){const b=ze(g.key)?g.key:null;b&&(b.spaceBefore&&h.push(""),Xc(e,h,b.commentBefore,!1),b.comment&&(d=!0));const v=ze(g.value)?g.value:null;v?(v.comment&&(O=v.comment),v.commentBefore&&(d=!0)):g.value==null&&b!=null&&b.comment&&(O=b.comment)}O&&(d=!0);let y=Es(g,c,()=>O=null);m<r.length-1&&(y+=","),O&&(y+=po(y,n,l(O))),!d&&(h.length>u||y.includes(`
131
+ `+Hr(d(r),c),l&&l()):h&&i&&i(),p}function MM({items:r},e,{flowChars:t,itemIndent:n}){const{indent:o,indentStep:s,flowCollectionPadding:i,options:{commentString:l}}=e;n+=s;const c=Object.assign({},e,{indent:n,inFlow:!0,type:null});let d=!1,u=0;const h=[];for(let m=0;m<r.length;++m){const g=r[m];let O=null;if(ze(g))g.spaceBefore&&h.push(""),Xc(e,h,g.commentBefore,!1),g.comment&&(O=g.comment);else if(Ie(g)){const b=ze(g.key)?g.key:null;b&&(b.spaceBefore&&h.push(""),Xc(e,h,b.commentBefore,!1),b.comment&&(d=!0));const v=ze(g.value)?g.value:null;v?(v.comment&&(O=v.comment),v.commentBefore&&(d=!0)):g.value==null&&b!=null&&b.comment&&(O=b.comment)}O&&(d=!0);let y=Es(g,c,()=>O=null);m<r.length-1&&(y+=","),O&&(y+=po(y,n,l(O))),!d&&(h.length>u||y.includes(`
132
132
  `))&&(d=!0),h.push(y),u=h.length}const{start:f,end:p}=t;if(h.length===0)return f+p;if(!d){const m=h.reduce((g,O)=>g+O.length+2,2);d=e.options.lineWidth>0&&m>e.options.lineWidth}if(d){let m=f;for(const g of h)m+=g?`
133
133
  ${s}${o}${g}`:`
134
134
  `;return`${m}
135
- ${o}${p}`}else return`${f}${i}${h.join(" ")}${i}${p}`}function Xc({indent:r,options:{commentString:e}},t,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const s=Hr(e(n),r);t.push(s.trimStart())}}function mo(r,e){const t=Ee(e)?e.value:e;for(const n of r)if(Ie(n)&&(n.key===e||n.key===t||Ee(n.key)&&n.key.value===t))return n}class Zt extends km{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Nn,e),this.items=[]}static from(e,t,n){const{keepUndefined:o,replacer:s}=n,i=new this(e),l=(c,d)=>{if(typeof s=="function")d=s.call(t,c,d);else if(Array.isArray(s)&&!s.includes(c))return;(d!==void 0||o)&&i.items.push(Sm(c,d,n))};if(t instanceof Map)for(const[c,d]of t)l(c,d);else if(t&&typeof t=="object")for(const c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){var n;let o;Ie(e)?o=e:!e||typeof e!="object"||!("key"in e)?o=new Tt(e,e==null?void 0:e.value):o=new Tt(e.key,e.value);const s=mo(this.items,o.key),i=(n=this.schema)==null?void 0:n.sortMapEntries;if(s){if(!t)throw new Error(`Key ${o.key} already set`);Ee(s.value)&&xk(o.value)?s.value.value=o.value:s.value=o.value}else if(i){const l=this.items.findIndex(c=>i(o,c)<0);l===-1?this.items.push(o):this.items.splice(l,0,o)}else this.items.push(o)}delete(e){const t=mo(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const n=mo(this.items,e),o=n==null?void 0:n.value;return(!t&&Ee(o)?o.value:o)??void 0}has(e){return!!mo(this.items,e)}set(e,t){this.add(new Tt(e,t),!0)}toJSON(e,t,n){const o=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(o);for(const s of this.items)Qk(t,o,s);return o}toString(e,t,n){if(!e)return JSON.stringify(this);for(const o of this.items)if(!Ie(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Nk(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Js={collection:"map",default:!0,nodeClass:Zt,tag:"tag:yaml.org,2002:map",resolve(r,e){return Fs(r)||e("Expected a mapping for this tag"),r},createNode:(r,e,t)=>Zt.from(r,e,t)};class Mn extends km{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Hs,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=El(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=El(e);if(typeof n!="number")return;const o=this.items[n];return!t&&Ee(o)?o.value:o}has(e){const t=El(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=El(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[n];Ee(o)&&xk(t)?o.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let o=0;for(const s of this.items)n.push(Gt(s,String(o++),t));return n}toString(e,t,n){return e?Nk(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let l of t){if(typeof o=="function"){const c=t instanceof Set?l:String(i++);l=o.call(t,c,l)}s.items.push(gi(l,void 0,n))}}return s}}function El(r){let e=Ee(r)?r.value:r;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const ea={collection:"seq",default:!0,nodeClass:Mn,tag:"tag:yaml.org,2002:seq",resolve(r,e){return Ks(r)||e("Expected a sequence for this tag"),r},createNode:(r,e,t)=>Mn.from(r,e,t)},Dd={identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify(r,e,t,n){return e=Object.assign({actualString:!0},e),Di(r,e,t,n)}},Md={identify:r=>r==null,createNode:()=>new de(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new de(null),stringify:({source:r},e)=>typeof r=="string"&&Md.test.test(r)?r:e.options.nullStr},$m={identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:r=>new de(r[0]==="t"||r[0]==="T"),stringify({source:r,value:e},t){if(r&&$m.test.test(r)){const n=r[0]==="t"||r[0]==="T";if(e===n)return r}return e?t.options.trueStr:t.options.falseStr}};function br({format:r,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(n);if(!r&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let l=e-(s.length-i-1);for(;l-- >0;)s+="0"}return s}const Ak={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:br},Rk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():br(r)}},Vk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(r){const e=new de(parseFloat(r)),t=r.indexOf(".");return t!==-1&&r[r.length-1]==="0"&&(e.minFractionDigits=r.length-t-1),e},stringify:br},qd=r=>typeof r=="bigint"||Number.isInteger(r),Pm=(r,e,t,{intAsBigInt:n})=>n?BigInt(r):parseInt(r.substring(e),t);function Bk(r,e,t){const{value:n}=r;return qd(n)&&n>=0?t+n.toString(e):br(r)}const Zk={identify:r=>qd(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(r,e,t)=>Pm(r,2,8,t),stringify:r=>Bk(r,8,"0o")},Ik={identify:qd,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(r,e,t)=>Pm(r,0,10,t),stringify:br},jk={identify:r=>qd(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(r,e,t)=>Pm(r,2,16,t),stringify:r=>Bk(r,16,"0x")},q7=[Js,ea,Dd,Md,$m,Zk,Ik,jk,Ak,Rk,Vk];function py(r){return typeof r=="bigint"||Number.isInteger(r)}const Nl=({value:r})=>JSON.stringify(r),X7=[{identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify:Nl},{identify:r=>r==null,createNode:()=>new de(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Nl},{identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:r=>r==="true",stringify:Nl},{identify:py,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(r,e,{intAsBigInt:t})=>t?BigInt(r):parseInt(r,10),stringify:({value:r})=>py(r)?r.toString():JSON.stringify(r)},{identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:r=>parseFloat(r),stringify:Nl}],W7={default:!0,tag:"",test:/^/,resolve(r,e){return e(`Unresolved plain scalar ${JSON.stringify(r)}`),r}},z7=[Js,ea].concat(X7,W7),xm={identify:r=>r instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(r,e){if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){const t=atob(r.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),r},stringify({comment:r,type:e,value:t},n,o,s){const i=t;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<i.length;++d)c+=String.fromCharCode(i[d]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=de.BLOCK_LITERAL),e!==de.QUOTE_DOUBLE){const c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),d=Math.ceil(l.length/c),u=new Array(d);for(let h=0,f=0;h<d;++h,f+=c)u[h]=l.substr(f,c);l=u.join(e===de.BLOCK_LITERAL?`
135
+ ${o}${p}`}else return`${f}${i}${h.join(" ")}${i}${p}`}function Xc({indent:r,options:{commentString:e}},t,n,o){if(n&&o&&(n=n.replace(/^\n+/,"")),n){const s=Hr(e(n),r);t.push(s.trimStart())}}function mo(r,e){const t=Ee(e)?e.value:e;for(const n of r)if(Ie(n)&&(n.key===e||n.key===t||Ee(n.key)&&n.key.value===t))return n}class Zt extends km{static get tagName(){return"tag:yaml.org,2002:map"}constructor(e){super(Nn,e),this.items=[]}static from(e,t,n){const{keepUndefined:o,replacer:s}=n,i=new this(e),l=(c,d)=>{if(typeof s=="function")d=s.call(t,c,d);else if(Array.isArray(s)&&!s.includes(c))return;(d!==void 0||o)&&i.items.push(Sm(c,d,n))};if(t instanceof Map)for(const[c,d]of t)l(c,d);else if(t&&typeof t=="object")for(const c of Object.keys(t))l(c,t[c]);return typeof e.sortMapEntries=="function"&&i.items.sort(e.sortMapEntries),i}add(e,t){var n;let o;Ie(e)?o=e:!e||typeof e!="object"||!("key"in e)?o=new Tt(e,e==null?void 0:e.value):o=new Tt(e.key,e.value);const s=mo(this.items,o.key),i=(n=this.schema)==null?void 0:n.sortMapEntries;if(s){if(!t)throw new Error(`Key ${o.key} already set`);Ee(s.value)&&xk(o.value)?s.value.value=o.value:s.value=o.value}else if(i){const l=this.items.findIndex(c=>i(o,c)<0);l===-1?this.items.push(o):this.items.splice(l,0,o)}else this.items.push(o)}delete(e){const t=mo(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){const n=mo(this.items,e),o=n==null?void 0:n.value;return(!t&&Ee(o)?o.value:o)??void 0}has(e){return!!mo(this.items,e)}set(e,t){this.add(new Tt(e,t),!0)}toJSON(e,t,n){const o=n?new n:t!=null&&t.mapAsMap?new Map:{};t!=null&&t.onCreate&&t.onCreate(o);for(const s of this.items)Qk(t,o,s);return o}toString(e,t,n){if(!e)return JSON.stringify(this);for(const o of this.items)if(!Ie(o))throw new Error(`Map items must all be pairs; found ${JSON.stringify(o)} instead`);return!e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),Nk(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:n,onComment:t})}}const Js={collection:"map",default:!0,nodeClass:Zt,tag:"tag:yaml.org,2002:map",resolve(r,e){return Fs(r)||e("Expected a mapping for this tag"),r},createNode:(r,e,t)=>Zt.from(r,e,t)};class Mn extends km{static get tagName(){return"tag:yaml.org,2002:seq"}constructor(e){super(Hs,e),this.items=[]}add(e){this.items.push(e)}delete(e){const t=El(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){const n=El(e);if(typeof n!="number")return;const o=this.items[n];return!t&&Ee(o)?o.value:o}has(e){const t=El(e);return typeof t=="number"&&t<this.items.length}set(e,t){const n=El(e);if(typeof n!="number")throw new Error(`Expected a valid index, not ${e}.`);const o=this.items[n];Ee(o)&&xk(t)?o.value=t:this.items[n]=t}toJSON(e,t){const n=[];t!=null&&t.onCreate&&t.onCreate(n);let o=0;for(const s of this.items)n.push(Gt(s,String(o++),t));return n}toString(e,t,n){return e?Nk(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:n,onComment:t}):JSON.stringify(this)}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t)){let i=0;for(let l of t){if(typeof o=="function"){const c=t instanceof Set?l:String(i++);l=o.call(t,c,l)}s.items.push(gi(l,void 0,n))}}return s}}function El(r){let e=Ee(r)?r.value:r;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}const ea={collection:"seq",default:!0,nodeClass:Mn,tag:"tag:yaml.org,2002:seq",resolve(r,e){return Ks(r)||e("Expected a sequence for this tag"),r},createNode:(r,e,t)=>Mn.from(r,e,t)},Dd={identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify(r,e,t,n){return e=Object.assign({actualString:!0},e),Di(r,e,t,n)}},Md={identify:r=>r==null,createNode:()=>new de(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new de(null),stringify:({source:r},e)=>typeof r=="string"&&Md.test.test(r)?r:e.options.nullStr},$m={identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:r=>new de(r[0]==="t"||r[0]==="T"),stringify({source:r,value:e},t){if(r&&$m.test.test(r)){const n=r[0]==="t"||r[0]==="T";if(e===n)return r}return e?t.options.trueStr:t.options.falseStr}};function br({format:r,minFractionDigits:e,tag:t,value:n}){if(typeof n=="bigint")return String(n);const o=typeof n=="number"?n:Number(n);if(!isFinite(o))return isNaN(o)?".nan":o<0?"-.inf":".inf";let s=JSON.stringify(n);if(!r&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let l=e-(s.length-i-1);for(;l-- >0;)s+="0"}return s}const Ak={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN))$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:br},Rk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():br(r)}},Vk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(r){const e=new de(parseFloat(r)),t=r.indexOf(".");return t!==-1&&r[r.length-1]==="0"&&(e.minFractionDigits=r.length-t-1),e},stringify:br},qd=r=>typeof r=="bigint"||Number.isInteger(r),Pm=(r,e,t,{intAsBigInt:n})=>n?BigInt(r):parseInt(r.substring(e),t);function Bk(r,e,t){const{value:n}=r;return qd(n)&&n>=0?t+n.toString(e):br(r)}const Zk={identify:r=>qd(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(r,e,t)=>Pm(r,2,8,t),stringify:r=>Bk(r,8,"0o")},Ik={identify:qd,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(r,e,t)=>Pm(r,0,10,t),stringify:br},jk={identify:r=>qd(r)&&r>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(r,e,t)=>Pm(r,2,16,t),stringify:r=>Bk(r,16,"0x")},qM=[Js,ea,Dd,Md,$m,Zk,Ik,jk,Ak,Rk,Vk];function py(r){return typeof r=="bigint"||Number.isInteger(r)}const Nl=({value:r})=>JSON.stringify(r),XM=[{identify:r=>typeof r=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:r=>r,stringify:Nl},{identify:r=>r==null,createNode:()=>new de(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Nl},{identify:r=>typeof r=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:r=>r==="true",stringify:Nl},{identify:py,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(r,e,{intAsBigInt:t})=>t?BigInt(r):parseInt(r,10),stringify:({value:r})=>py(r)?r.toString():JSON.stringify(r)},{identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:r=>parseFloat(r),stringify:Nl}],WM={default:!0,tag:"",test:/^/,resolve(r,e){return e(`Unresolved plain scalar ${JSON.stringify(r)}`),r}},zM=[Js,ea].concat(XM,WM),xm={identify:r=>r instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(r,e){if(typeof Buffer=="function")return Buffer.from(r,"base64");if(typeof atob=="function"){const t=atob(r.replace(/[\n\r]/g,"")),n=new Uint8Array(t.length);for(let o=0;o<t.length;++o)n[o]=t.charCodeAt(o);return n}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),r},stringify({comment:r,type:e,value:t},n,o,s){const i=t;let l;if(typeof Buffer=="function")l=i instanceof Buffer?i.toString("base64"):Buffer.from(i.buffer).toString("base64");else if(typeof btoa=="function"){let c="";for(let d=0;d<i.length;++d)c+=String.fromCharCode(i[d]);l=btoa(c)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=de.BLOCK_LITERAL),e!==de.QUOTE_DOUBLE){const c=Math.max(n.options.lineWidth-n.indent.length,n.options.minContentWidth),d=Math.ceil(l.length/c),u=new Array(d);for(let h=0,f=0;h<d;++h,f+=c)u[h]=l.substr(f,c);l=u.join(e===de.BLOCK_LITERAL?`
136
136
  `:" ")}return Di({comment:r,type:e,value:l},n,o,s)}};function Dk(r,e){if(Ks(r))for(let t=0;t<r.items.length;++t){let n=r.items[t];if(!Ie(n)){if(Fs(n)){n.items.length>1&&e("Each pair must have its own sequence indicator");const o=n.items[0]||new Tt(new de(null));if(n.commentBefore&&(o.key.commentBefore=o.key.commentBefore?`${n.commentBefore}
137
137
  ${o.key.commentBefore}`:n.commentBefore),n.comment){const s=o.value??o.key;s.comment=s.comment?`${n.comment}
138
- ${s.comment}`:n.comment}n=o}r.items[t]=Ie(n)?n:new Tt(n)}}else e("Expected a sequence for this tag");return r}function Mk(r,e,t){const{replacer:n}=t,o=new Mn(r);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof n=="function"&&(i=n.call(e,String(s++),i));let l,c;if(Array.isArray(i))if(i.length===2)l=i[0],c=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const d=Object.keys(i);if(d.length===1)l=d[0],c=i[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=i;o.items.push(Sm(l,c,t))}return o}const _m={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dk,createNode:Mk};class ys extends Mn{constructor(){super(),this.add=Zt.prototype.add.bind(this),this.delete=Zt.prototype.delete.bind(this),this.get=Zt.prototype.get.bind(this),this.has=Zt.prototype.has.bind(this),this.set=Zt.prototype.set.bind(this),this.tag=ys.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const o of this.items){let s,i;if(Ie(o)?(s=Gt(o.key,"",t),i=Gt(o.value,s,t)):s=Gt(o,"",t),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(e,t,n){const o=Mk(e,t,n),s=new this;return s.items=o.items,s}}ys.tag="tag:yaml.org,2002:omap";const Cm={collection:"seq",identify:r=>r instanceof Map,nodeClass:ys,default:!1,tag:"tag:yaml.org,2002:omap",resolve(r,e){const t=Dk(r,e),n=[];for(const{key:o}of t.items)Ee(o)&&(n.includes(o.value)?e(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new ys,t)},createNode:(r,e,t)=>ys.from(r,e,t)};function qk({value:r,source:e},t){return e&&(r?Xk:Wk).test.test(e)?e:r?t.options.trueStr:t.options.falseStr}const Xk={identify:r=>r===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new de(!0),stringify:qk},Wk={identify:r=>r===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new de(!1),stringify:qk},U7={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:br},Y7={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r.replace(/_/g,"")),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():br(r)}},L7={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(r){const e=new de(parseFloat(r.replace(/_/g,""))),t=r.indexOf(".");if(t!==-1){const n=r.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:br},Mi=r=>typeof r=="bigint"||Number.isInteger(r);function Xd(r,e,t,{intAsBigInt:n}){const o=r[0];if((o==="-"||o==="+")&&(e+=1),r=r.substring(e).replace(/_/g,""),n){switch(t){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}const i=BigInt(r);return o==="-"?BigInt(-1)*i:i}const s=parseInt(r,t);return o==="-"?-1*s:s}function Tm(r,e,t){const{value:n}=r;if(Mi(n)){const o=n.toString(e);return n<0?"-"+t+o.substr(1):t+o}return br(r)}const H7={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(r,e,t)=>Xd(r,2,2,t),stringify:r=>Tm(r,2,"0b")},G7={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(r,e,t)=>Xd(r,1,8,t),stringify:r=>Tm(r,8,"0")},F7={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(r,e,t)=>Xd(r,0,10,t),stringify:br},K7={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(r,e,t)=>Xd(r,2,16,t),stringify:r=>Tm(r,16,"0x")};class bs extends Zt{constructor(e){super(e),this.tag=bs.tag}add(e){let t;Ie(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Tt(e.key,null):t=new Tt(e,null),mo(this.items,t.key)||this.items.push(t)}get(e,t){const n=mo(this.items,e);return!t&&Ie(n)?Ee(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=mo(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Tt(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),s.items.push(Sm(i,null,n));return s}}bs.tag="tag:yaml.org,2002:set";const Qm={collection:"map",identify:r=>r instanceof Set,nodeClass:bs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(r,e,t)=>bs.from(r,e,t),resolve(r,e){if(Fs(r)){if(r.hasAllNullValues(!0))return Object.assign(new bs,r);e("Set items must all have null values")}else e("Expected a mapping for this tag");return r}};function Em(r,e){const t=r[0],n=t==="-"||t==="+"?r.substring(1):r,o=i=>e?BigInt(i):Number(i),s=n.replace(/_/g,"").split(":").reduce((i,l)=>i*o(60)+o(l),o(0));return t==="-"?o(-1)*s:s}function zk(r){let{value:e}=r,t=i=>i;if(typeof e=="bigint")t=i=>BigInt(i);else if(isNaN(e)||!isFinite(e))return br(r);let n="";e<0&&(n="-",e*=t(-1));const o=t(60),s=[e%o];return e<60?s.unshift(0):(e=(e-s[0])/o,s.unshift(e%o),e>=60&&(e=(e-s[0])/o,s.unshift(e))),n+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Uk={identify:r=>typeof r=="bigint"||Number.isInteger(r),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(r,e,{intAsBigInt:t})=>Em(r,t),stringify:zk},Yk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:r=>Em(r,!1),stringify:zk},Wd={identify:r=>r instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(r){const e=r.match(Wd.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,o,s,i,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let d=Date.UTC(t,n-1,o,s||0,i||0,l||0,c);const u=e[8];if(u&&u!=="Z"){let h=Em(u,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:r})=>r.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},my=[Js,ea,Dd,Md,Xk,Wk,H7,G7,F7,K7,U7,Y7,L7,xm,Cm,_m,Qm,Uk,Yk,Wd],gy=new Map([["core",q7],["failsafe",[Js,ea,Dd]],["json",z7],["yaml11",my],["yaml-1.1",my]]),Oy={binary:xm,bool:$m,float:Vk,floatExp:Rk,floatNaN:Ak,floatTime:Yk,int:Ik,intHex:jk,intOct:Zk,intTime:Uk,map:Js,null:Md,omap:Cm,pairs:_m,seq:ea,set:Qm,timestamp:Wd},J7={"tag:yaml.org,2002:binary":xm,"tag:yaml.org,2002:omap":Cm,"tag:yaml.org,2002:pairs":_m,"tag:yaml.org,2002:set":Qm,"tag:yaml.org,2002:timestamp":Wd};function Xu(r,e){let t=gy.get(e);if(!t)if(Array.isArray(r))t=[];else{const n=Array.from(gy.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(r))for(const n of r)t=t.concat(n);else typeof r=="function"&&(t=r(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const o=Oy[n];if(o)return o;const s=Object.keys(Oy).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${s}`)})}const eM=(r,e)=>r.key<e.key?-1:r.key>e.key?1:0;class zd{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(e)?Xu(e,"compat"):e?Xu(null,e):null,this.merge=!!n,this.name=typeof s=="string"&&s||"core",this.knownTags=o?J7:{},this.tags=Xu(t,this.name),this.toStringOptions=l??null,Object.defineProperty(this,Nn,{value:Js}),Object.defineProperty(this,ln,{value:Dd}),Object.defineProperty(this,Hs,{value:ea}),this.sortMapEntries=typeof i=="function"?i:i===!0?eM:null}clone(){const e=Object.create(zd.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function tM(r,e){var t;const n=[];let o=e.directives===!0;if(e.directives!==!1&&r.directives){const d=r.directives.toString(r);d?(n.push(d),o=!0):r.directives.docStart&&(o=!0)}o&&n.push("---");const s=Ck(r,e),{commentString:i}=s.options;if(r.commentBefore){n.length!==1&&n.unshift("");const d=i(r.commentBefore);n.unshift(Hr(d,""))}let l=!1,c=null;if(r.contents){if(ze(r.contents)){if(r.contents.spaceBefore&&o&&n.push(""),r.contents.commentBefore){const h=i(r.contents.commentBefore);n.push(Hr(h,""))}s.forceBlockIndent=!!r.comment,c=r.contents.comment}const d=c?void 0:()=>l=!0;let u=Es(r.contents,s,()=>c=null,d);c&&(u+=po(u,"",i(c))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(Es(r.contents,s));if((t=r.directives)!=null&&t.docEnd)if(r.comment){const d=i(r.comment);d.includes(`
138
+ ${s.comment}`:n.comment}n=o}r.items[t]=Ie(n)?n:new Tt(n)}}else e("Expected a sequence for this tag");return r}function Mk(r,e,t){const{replacer:n}=t,o=new Mn(r);o.tag="tag:yaml.org,2002:pairs";let s=0;if(e&&Symbol.iterator in Object(e))for(let i of e){typeof n=="function"&&(i=n.call(e,String(s++),i));let l,c;if(Array.isArray(i))if(i.length===2)l=i[0],c=i[1];else throw new TypeError(`Expected [key, value] tuple: ${i}`);else if(i&&i instanceof Object){const d=Object.keys(i);if(d.length===1)l=d[0],c=i[l];else throw new TypeError(`Expected tuple with one key, not ${d.length} keys`)}else l=i;o.items.push(Sm(l,c,t))}return o}const _m={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Dk,createNode:Mk};class ys extends Mn{constructor(){super(),this.add=Zt.prototype.add.bind(this),this.delete=Zt.prototype.delete.bind(this),this.get=Zt.prototype.get.bind(this),this.has=Zt.prototype.has.bind(this),this.set=Zt.prototype.set.bind(this),this.tag=ys.tag}toJSON(e,t){if(!t)return super.toJSON(e);const n=new Map;t!=null&&t.onCreate&&t.onCreate(n);for(const o of this.items){let s,i;if(Ie(o)?(s=Gt(o.key,"",t),i=Gt(o.value,s,t)):s=Gt(o,"",t),n.has(s))throw new Error("Ordered maps must not include duplicate keys");n.set(s,i)}return n}static from(e,t,n){const o=Mk(e,t,n),s=new this;return s.items=o.items,s}}ys.tag="tag:yaml.org,2002:omap";const Cm={collection:"seq",identify:r=>r instanceof Map,nodeClass:ys,default:!1,tag:"tag:yaml.org,2002:omap",resolve(r,e){const t=Dk(r,e),n=[];for(const{key:o}of t.items)Ee(o)&&(n.includes(o.value)?e(`Ordered maps must not include duplicate keys: ${o.value}`):n.push(o.value));return Object.assign(new ys,t)},createNode:(r,e,t)=>ys.from(r,e,t)};function qk({value:r,source:e},t){return e&&(r?Xk:Wk).test.test(e)?e:r?t.options.trueStr:t.options.falseStr}const Xk={identify:r=>r===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new de(!0),stringify:qk},Wk={identify:r=>r===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>new de(!1),stringify:qk},UM={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?\.(?:inf|Inf|INF|nan|NaN|NAN)$/,resolve:r=>r.slice(-3).toLowerCase()==="nan"?NaN:r[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:br},YM={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:r=>parseFloat(r.replace(/_/g,"")),stringify(r){const e=Number(r.value);return isFinite(e)?e.toExponential():br(r)}},LM={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(r){const e=new de(parseFloat(r.replace(/_/g,""))),t=r.indexOf(".");if(t!==-1){const n=r.substring(t+1).replace(/_/g,"");n[n.length-1]==="0"&&(e.minFractionDigits=n.length)}return e},stringify:br},Mi=r=>typeof r=="bigint"||Number.isInteger(r);function Xd(r,e,t,{intAsBigInt:n}){const o=r[0];if((o==="-"||o==="+")&&(e+=1),r=r.substring(e).replace(/_/g,""),n){switch(t){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}const i=BigInt(r);return o==="-"?BigInt(-1)*i:i}const s=parseInt(r,t);return o==="-"?-1*s:s}function Tm(r,e,t){const{value:n}=r;if(Mi(n)){const o=n.toString(e);return n<0?"-"+t+o.substr(1):t+o}return br(r)}const HM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(r,e,t)=>Xd(r,2,2,t),stringify:r=>Tm(r,2,"0b")},GM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(r,e,t)=>Xd(r,1,8,t),stringify:r=>Tm(r,8,"0")},FM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(r,e,t)=>Xd(r,0,10,t),stringify:br},KM={identify:Mi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(r,e,t)=>Xd(r,2,16,t),stringify:r=>Tm(r,16,"0x")};class bs extends Zt{constructor(e){super(e),this.tag=bs.tag}add(e){let t;Ie(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Tt(e.key,null):t=new Tt(e,null),mo(this.items,t.key)||this.items.push(t)}get(e,t){const n=mo(this.items,e);return!t&&Ie(n)?Ee(n.key)?n.key.value:n.key:n}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);const n=mo(this.items,e);n&&!t?this.items.splice(this.items.indexOf(n),1):!n&&t&&this.items.push(new Tt(e))}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,n){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,n);throw new Error("Set items must all have null values")}static from(e,t,n){const{replacer:o}=n,s=new this(e);if(t&&Symbol.iterator in Object(t))for(let i of t)typeof o=="function"&&(i=o.call(t,i,i)),s.items.push(Sm(i,null,n));return s}}bs.tag="tag:yaml.org,2002:set";const Qm={collection:"map",identify:r=>r instanceof Set,nodeClass:bs,default:!1,tag:"tag:yaml.org,2002:set",createNode:(r,e,t)=>bs.from(r,e,t),resolve(r,e){if(Fs(r)){if(r.hasAllNullValues(!0))return Object.assign(new bs,r);e("Set items must all have null values")}else e("Expected a mapping for this tag");return r}};function Em(r,e){const t=r[0],n=t==="-"||t==="+"?r.substring(1):r,o=i=>e?BigInt(i):Number(i),s=n.replace(/_/g,"").split(":").reduce((i,l)=>i*o(60)+o(l),o(0));return t==="-"?o(-1)*s:s}function zk(r){let{value:e}=r,t=i=>i;if(typeof e=="bigint")t=i=>BigInt(i);else if(isNaN(e)||!isFinite(e))return br(r);let n="";e<0&&(n="-",e*=t(-1));const o=t(60),s=[e%o];return e<60?s.unshift(0):(e=(e-s[0])/o,s.unshift(e%o),e>=60&&(e=(e-s[0])/o,s.unshift(e))),n+s.map(i=>String(i).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}const Uk={identify:r=>typeof r=="bigint"||Number.isInteger(r),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(r,e,{intAsBigInt:t})=>Em(r,t),stringify:zk},Yk={identify:r=>typeof r=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:r=>Em(r,!1),stringify:zk},Wd={identify:r=>r instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(r){const e=r.match(Wd.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");const[,t,n,o,s,i,l]=e.map(Number),c=e[7]?Number((e[7]+"00").substr(1,3)):0;let d=Date.UTC(t,n-1,o,s||0,i||0,l||0,c);const u=e[8];if(u&&u!=="Z"){let h=Em(u,!1);Math.abs(h)<30&&(h*=60),d-=6e4*h}return new Date(d)},stringify:({value:r})=>r.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},my=[Js,ea,Dd,Md,Xk,Wk,HM,GM,FM,KM,UM,YM,LM,xm,Cm,_m,Qm,Uk,Yk,Wd],gy=new Map([["core",qM],["failsafe",[Js,ea,Dd]],["json",zM],["yaml11",my],["yaml-1.1",my]]),Oy={binary:xm,bool:$m,float:Vk,floatExp:Rk,floatNaN:Ak,floatTime:Yk,int:Ik,intHex:jk,intOct:Zk,intTime:Uk,map:Js,null:Md,omap:Cm,pairs:_m,seq:ea,set:Qm,timestamp:Wd},JM={"tag:yaml.org,2002:binary":xm,"tag:yaml.org,2002:omap":Cm,"tag:yaml.org,2002:pairs":_m,"tag:yaml.org,2002:set":Qm,"tag:yaml.org,2002:timestamp":Wd};function Xu(r,e){let t=gy.get(e);if(!t)if(Array.isArray(r))t=[];else{const n=Array.from(gy.keys()).filter(o=>o!=="yaml11").map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${n} or define customTags array`)}if(Array.isArray(r))for(const n of r)t=t.concat(n);else typeof r=="function"&&(t=r(t.slice()));return t.map(n=>{if(typeof n!="string")return n;const o=Oy[n];if(o)return o;const s=Object.keys(Oy).map(i=>JSON.stringify(i)).join(", ");throw new Error(`Unknown custom tag "${n}"; use one of ${s}`)})}const e7=(r,e)=>r.key<e.key?-1:r.key>e.key?1:0;class zd{constructor({compat:e,customTags:t,merge:n,resolveKnownTags:o,schema:s,sortMapEntries:i,toStringDefaults:l}){this.compat=Array.isArray(e)?Xu(e,"compat"):e?Xu(null,e):null,this.merge=!!n,this.name=typeof s=="string"&&s||"core",this.knownTags=o?JM:{},this.tags=Xu(t,this.name),this.toStringOptions=l??null,Object.defineProperty(this,Nn,{value:Js}),Object.defineProperty(this,ln,{value:Dd}),Object.defineProperty(this,Hs,{value:ea}),this.sortMapEntries=typeof i=="function"?i:i===!0?e7:null}clone(){const e=Object.create(zd.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}}function t7(r,e){var t;const n=[];let o=e.directives===!0;if(e.directives!==!1&&r.directives){const d=r.directives.toString(r);d?(n.push(d),o=!0):r.directives.docStart&&(o=!0)}o&&n.push("---");const s=Ck(r,e),{commentString:i}=s.options;if(r.commentBefore){n.length!==1&&n.unshift("");const d=i(r.commentBefore);n.unshift(Hr(d,""))}let l=!1,c=null;if(r.contents){if(ze(r.contents)){if(r.contents.spaceBefore&&o&&n.push(""),r.contents.commentBefore){const h=i(r.contents.commentBefore);n.push(Hr(h,""))}s.forceBlockIndent=!!r.comment,c=r.contents.comment}const d=c?void 0:()=>l=!0;let u=Es(r.contents,s,()=>c=null,d);c&&(u+=po(u,"",i(c))),(u[0]==="|"||u[0]===">")&&n[n.length-1]==="---"?n[n.length-1]=`--- ${u}`:n.push(u)}else n.push(Es(r.contents,s));if((t=r.directives)!=null&&t.docEnd)if(r.comment){const d=i(r.comment);d.includes(`
139
139
  `)?(n.push("..."),n.push(Hr(d,""))):n.push(`... ${d}`)}else n.push("...");else{let d=r.comment;d&&l&&(d=d.replace(/^\n+/,"")),d&&((!l||c)&&n[n.length-1]!==""&&n.push(""),n.push(Hr(i(d),"")))}return n.join(`
140
140
  `)+`
141
- `}class ta{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Jt,{value:$f});let o=null;typeof t=="function"||Array.isArray(t)?o=t:n===void 0&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:i}=s;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new yt({version:i}),this.setSchema(i,n),this.contents=e===void 0?null:this.createNode(e,o,n)}clone(){const e=Object.create(ta.prototype,{[Jt]:{value:$f}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ze(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Yo(this.contents)&&this.contents.add(e)}addIn(e,t){Yo(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=$k(this);e.anchor=!t||n.has(t)?Pk(t||"a",n):t}return new Bd(e.anchor)}createNode(e,t,n){let o;if(typeof t=="function")e=t.call({"":e},"",e),o=t;else if(Array.isArray(t)){const O=b=>typeof b=="number"||b instanceof String||b instanceof Number,y=t.filter(O).map(String);y.length>0&&(t=t.concat(y)),o=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:c,onTagObj:d,tag:u}=n??{},{onAnchor:h,setAnchors:f,sourceObjects:p}=T7(this,i||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:p},g=gi(e,u,m);return l&&je(g)&&(g.flow=!0),f(),g}createPair(e,t,n={}){const o=this.createNode(e,null,n),s=this.createNode(t,null,n);return new Tt(o,s)}delete(e){return Yo(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Ra(e)?this.contents==null?!1:(this.contents=null,!0):Yo(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return je(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ra(e)?!t&&Ee(this.contents)?this.contents.value:this.contents:je(this.contents)?this.contents.getIn(e,t):void 0}has(e){return je(this.contents)?this.contents.has(e):!1}hasIn(e){return Ra(e)?this.contents!==void 0:je(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=qc(this.schema,[e],t):Yo(this.contents)&&this.contents.set(e,t)}setIn(e,t){Ra(e)?this.contents=t:this.contents==null?this.contents=qc(this.schema,Array.from(e),t):Yo(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new yt({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new yt({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new zd(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:o,onAnchor:s,reviver:i}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Gt(this.contents,t??"",l);if(typeof s=="function")for(const{count:d,res:u}of l.anchors.values())s(u,d);return typeof i=="function"?as(i,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return tM(this,e)}}function Yo(r){if(je(r))return!0;throw new Error("Expected a YAML collection as document contents")}class Nm extends Error{constructor(e,t,n,o){super(),this.name=e,this.code=n,this.message=o,this.pos=t}}let go=class extends Nm{constructor(e,t,n){super("YAMLParseError",e,t,n)}};class Lk extends Nm{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Wc=(r,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{line:n,col:o}=t.linePos[0];t.message+=` at line ${n}, column ${o}`;let s=o-1,i=r.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const l=Math.min(s-39,i.length-79);i="…"+i.substring(l),s-=l-1}if(i.length>80&&(i=i.substring(0,79)+"…"),n>1&&/^ *$/.test(i.substring(0,s))){let l=r.substring(e.lineStarts[n-2],e.lineStarts[n-1]);l.length>80&&(l=l.substring(0,79)+`…
141
+ `}class ta{constructor(e,t,n){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,Jt,{value:$f});let o=null;typeof t=="function"||Array.isArray(t)?o=t:n===void 0&&t&&(n=t,t=void 0);const s=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},n);this.options=s;let{version:i}=s;n!=null&&n._directives?(this.directives=n._directives.atDocument(),this.directives.yaml.explicit&&(i=this.directives.yaml.version)):this.directives=new yt({version:i}),this.setSchema(i,n),this.contents=e===void 0?null:this.createNode(e,o,n)}clone(){const e=Object.create(ta.prototype,{[Jt]:{value:$f}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=ze(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Yo(this.contents)&&this.contents.add(e)}addIn(e,t){Yo(this.contents)&&this.contents.addIn(e,t)}createAlias(e,t){if(!e.anchor){const n=$k(this);e.anchor=!t||n.has(t)?Pk(t||"a",n):t}return new Bd(e.anchor)}createNode(e,t,n){let o;if(typeof t=="function")e=t.call({"":e},"",e),o=t;else if(Array.isArray(t)){const O=b=>typeof b=="number"||b instanceof String||b instanceof Number,y=t.filter(O).map(String);y.length>0&&(t=t.concat(y)),o=t}else n===void 0&&t&&(n=t,t=void 0);const{aliasDuplicateObjects:s,anchorPrefix:i,flow:l,keepUndefined:c,onTagObj:d,tag:u}=n??{},{onAnchor:h,setAnchors:f,sourceObjects:p}=TM(this,i||"a"),m={aliasDuplicateObjects:s??!0,keepUndefined:c??!1,onAnchor:h,onTagObj:d,replacer:o,schema:this.schema,sourceObjects:p},g=gi(e,u,m);return l&&je(g)&&(g.flow=!0),f(),g}createPair(e,t,n={}){const o=this.createNode(e,null,n),s=this.createNode(t,null,n);return new Tt(o,s)}delete(e){return Yo(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Ra(e)?this.contents==null?!1:(this.contents=null,!0):Yo(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return je(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ra(e)?!t&&Ee(this.contents)?this.contents.value:this.contents:je(this.contents)?this.contents.getIn(e,t):void 0}has(e){return je(this.contents)?this.contents.has(e):!1}hasIn(e){return Ra(e)?this.contents!==void 0:je(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=qc(this.schema,[e],t):Yo(this.contents)&&this.contents.set(e,t)}setIn(e,t){Ra(e)?this.contents=t:this.contents==null?this.contents=qc(this.schema,Array.from(e),t):Yo(this.contents)&&this.contents.setIn(e,t)}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let n;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new yt({version:"1.1"}),n={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new yt({version:e}),n={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,n=null;break;default:{const o=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${o}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(n)this.schema=new zd(Object.assign(n,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:n,maxAliasCount:o,onAnchor:s,reviver:i}={}){const l={anchors:new Map,doc:this,keep:!e,mapAsMap:n===!0,mapKeyWarned:!1,maxAliasCount:typeof o=="number"?o:100},c=Gt(this.contents,t??"",l);if(typeof s=="function")for(const{count:d,res:u}of l.anchors.values())s(u,d);return typeof i=="function"?as(i,{"":c},"",c):c}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){const t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return t7(this,e)}}function Yo(r){if(je(r))return!0;throw new Error("Expected a YAML collection as document contents")}class Nm extends Error{constructor(e,t,n,o){super(),this.name=e,this.code=n,this.message=o,this.pos=t}}let go=class extends Nm{constructor(e,t,n){super("YAMLParseError",e,t,n)}};class Lk extends Nm{constructor(e,t,n){super("YAMLWarning",e,t,n)}}const Wc=(r,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(l=>e.linePos(l));const{line:n,col:o}=t.linePos[0];t.message+=` at line ${n}, column ${o}`;let s=o-1,i=r.substring(e.lineStarts[n-1],e.lineStarts[n]).replace(/[\n\r]+$/,"");if(s>=60&&i.length>80){const l=Math.min(s-39,i.length-79);i="…"+i.substring(l),s-=l-1}if(i.length>80&&(i=i.substring(0,79)+"…"),n>1&&/^ *$/.test(i.substring(0,s))){let l=r.substring(e.lineStarts[n-2],e.lineStarts[n-1]);l.length>80&&(l=l.substring(0,79)+`…
142
142
  `),i=l+i}if(/[^ ]/.test(i)){let l=1;const c=t.linePos[1];c&&c.line===n&&c.col>o&&(l=Math.max(1,Math.min(c.col-o,80-s)));const d=" ".repeat(s)+"^".repeat(l);t.message+=`:
143
143
 
144
144
  ${i}
145
145
  ${d}
146
146
  `}};function Ns(r,{flow:e,indicator:t,next:n,offset:o,onError:s,startOnNewline:i}){let l=!1,c=i,d=i,u="",h="",f=!1,p=!1,m=!1,g=null,O=null,y=null,b=null,v=null;for(const w of r)switch(m&&(w.type!=="space"&&w.type!=="newline"&&w.type!=="comma"&&s(w.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),m=!1),w.type){case"space":!e&&c&&t!=="doc-start"&&w.source[0]===" "&&s(w,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=!0;break;case"comment":{d||s(w,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const $=w.source.substring(1)||" ";u?u+=h+$:u=$,h="",c=!1;break}case"newline":c?u?u+=w.source:l=!0:h+=w.source,c=!0,f=!0,(g||O)&&(p=!0),d=!0;break;case"anchor":g&&s(w,"MULTIPLE_ANCHORS","A node can have at most one anchor"),w.source.endsWith(":")&&s(w.offset+w.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=w,v===null&&(v=w.offset),c=!1,d=!1,m=!0;break;case"tag":{O&&s(w,"MULTIPLE_TAGS","A node can have at most one tag"),O=w,v===null&&(v=w.offset),c=!1,d=!1,m=!0;break}case t:(g||O)&&s(w,"BAD_PROP_ORDER",`Anchors and tags must be after the ${w.source} indicator`),b&&s(w,"UNEXPECTED_TOKEN",`Unexpected ${w.source} in ${e??"collection"}`),b=w,c=!1,d=!1;break;case"comma":if(e){y&&s(w,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),y=w,c=!1,d=!1;break}default:s(w,"UNEXPECTED_TOKEN",`Unexpected ${w.type} token`),c=!1,d=!1}const k=r[r.length-1],S=k?k.offset+k.source.length:o;return m&&n&&n.type!=="space"&&n.type!=="newline"&&n.type!=="comma"&&(n.type!=="scalar"||n.source!=="")&&s(n.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),{comma:y,found:b,spaceBefore:l,comment:u,hasNewline:f,hasNewlineAfterProp:p,anchor:g,tag:O,end:S,start:v??S}}function Oi(r){if(!r)return null;switch(r.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(r.source.includes(`
147
- `))return!0;if(r.end){for(const e of r.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of r.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(Oi(e.key)||Oi(e.value))return!0}return!1;default:return!0}}function Cf(r,e,t){if((e==null?void 0:e.type)==="flow-collection"){const n=e.end[0];n.indent===r&&(n.source==="]"||n.source==="}")&&Oi(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Hk(r,e,t){const{uniqueKeys:n}=r.options;if(n===!1)return!1;const o=typeof n=="function"?n:(s,i)=>s===i||Ee(s)&&Ee(i)&&s.value===i.value&&!(s.value==="<<"&&r.schema.merge);return e.some(s=>o(s.key,t))}const yy="All mapping items must start at the same column";function rM({composeNode:r,composeEmptyNode:e},t,n,o,s){var i;const l=(s==null?void 0:s.nodeClass)??Zt,c=new l(t.schema);t.atRoot&&(t.atRoot=!1);let d=n.offset,u=null;for(const h of n.items){const{start:f,key:p,sep:m,value:g}=h,O=Ns(f,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:d,onError:o,startOnNewline:!0}),y=!O.found;if(y){if(p&&(p.type==="block-seq"?o(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&o(d,"BAD_INDENT",yy)),!O.anchor&&!O.tag&&!m){u=O.end,O.comment&&(c.comment?c.comment+=`
147
+ `))return!0;if(r.end){for(const e of r.end)if(e.type==="newline")return!0}return!1;case"flow-collection":for(const e of r.items){for(const t of e.start)if(t.type==="newline")return!0;if(e.sep){for(const t of e.sep)if(t.type==="newline")return!0}if(Oi(e.key)||Oi(e.value))return!0}return!1;default:return!0}}function Cf(r,e,t){if((e==null?void 0:e.type)==="flow-collection"){const n=e.end[0];n.indent===r&&(n.source==="]"||n.source==="}")&&Oi(e)&&t(n,"BAD_INDENT","Flow end indicator should be more indented than parent",!0)}}function Hk(r,e,t){const{uniqueKeys:n}=r.options;if(n===!1)return!1;const o=typeof n=="function"?n:(s,i)=>s===i||Ee(s)&&Ee(i)&&s.value===i.value&&!(s.value==="<<"&&r.schema.merge);return e.some(s=>o(s.key,t))}const yy="All mapping items must start at the same column";function r7({composeNode:r,composeEmptyNode:e},t,n,o,s){var i;const l=(s==null?void 0:s.nodeClass)??Zt,c=new l(t.schema);t.atRoot&&(t.atRoot=!1);let d=n.offset,u=null;for(const h of n.items){const{start:f,key:p,sep:m,value:g}=h,O=Ns(f,{indicator:"explicit-key-ind",next:p??(m==null?void 0:m[0]),offset:d,onError:o,startOnNewline:!0}),y=!O.found;if(y){if(p&&(p.type==="block-seq"?o(d,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in p&&p.indent!==n.indent&&o(d,"BAD_INDENT",yy)),!O.anchor&&!O.tag&&!m){u=O.end,O.comment&&(c.comment?c.comment+=`
148
148
  `+O.comment:c.comment=O.comment);continue}(O.hasNewlineAfterProp||Oi(p))&&o(p??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line")}else((i=O.found)==null?void 0:i.indent)!==n.indent&&o(d,"BAD_INDENT",yy);const b=O.end,v=p?r(t,p,O,o):e(t,b,f,null,O,o);t.schema.compat&&Cf(n.indent,p,o),Hk(t,c.items,v)&&o(b,"DUPLICATE_KEY","Map keys must be unique");const k=Ns(m??[],{indicator:"map-value-ind",next:g,offset:v.range[2],onError:o,startOnNewline:!p||p.type==="block-scalar"});if(d=k.end,k.found){y&&((g==null?void 0:g.type)==="block-map"&&!k.hasNewline&&o(d,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&O.start<k.found.offset-1024&&o(v.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));const S=g?r(t,g,k,o):e(t,d,m,null,k,o);t.schema.compat&&Cf(n.indent,g,o),d=S.range[2];const w=new Tt(v,S);t.options.keepSourceTokens&&(w.srcToken=h),c.items.push(w)}else{y&&o(v.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),k.comment&&(v.comment?v.comment+=`
149
- `+k.comment:v.comment=k.comment);const S=new Tt(v);t.options.keepSourceTokens&&(S.srcToken=h),c.items.push(S)}}return u&&u<d&&o(u,"IMPOSSIBLE","Map comment with trailing content"),c.range=[n.offset,d,u??d],c}function nM({composeNode:r,composeEmptyNode:e},t,n,o,s){const i=(s==null?void 0:s.nodeClass)??Mn,l=new i(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,d=null;for(const{start:u,value:h}of n.items){const f=Ns(u,{indicator:"seq-item-ind",next:h,offset:c,onError:o,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||h)h&&h.type==="block-seq"?o(f.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=f.end,f.comment&&(l.comment=f.comment);continue}const p=h?r(t,h,f,o):e(t,f.end,u,null,f,o);t.schema.compat&&Cf(n.indent,h,o),c=p.range[2],l.items.push(p)}return l.range=[n.offset,c,d??c],l}function qi(r,e,t,n){let o="";if(r){let s=!1,i="";for(const l of r){const{source:c,type:d}=l;switch(d){case"space":s=!0;break;case"comment":{t&&!s&&n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=c.substring(1)||" ";o?o+=i+u:o=u,i="";break}case"newline":o&&(i+=c),s=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}e+=c.length}}return{comment:o,offset:e}}const Wu="Block collections are not allowed within flow collections",zu=r=>r&&(r.type==="block-map"||r.type==="block-seq");function oM({composeNode:r,composeEmptyNode:e},t,n,o,s){const i=n.start.source==="{",l=i?"flow map":"flow sequence",c=(s==null?void 0:s.nodeClass)??(i?Zt:Mn),d=new c(t.schema);d.flow=!0;const u=t.atRoot;u&&(t.atRoot=!1);let h=n.offset+n.start.source.length;for(let O=0;O<n.items.length;++O){const y=n.items[O],{start:b,key:v,sep:k,value:S}=y,w=Ns(b,{flow:l,indicator:"explicit-key-ind",next:v??(k==null?void 0:k[0]),offset:h,onError:o,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!k&&!S){O===0&&w.comma?o(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):O<n.items.length-1&&o(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),w.comment&&(d.comment?d.comment+=`
149
+ `+k.comment:v.comment=k.comment);const S=new Tt(v);t.options.keepSourceTokens&&(S.srcToken=h),c.items.push(S)}}return u&&u<d&&o(u,"IMPOSSIBLE","Map comment with trailing content"),c.range=[n.offset,d,u??d],c}function n7({composeNode:r,composeEmptyNode:e},t,n,o,s){const i=(s==null?void 0:s.nodeClass)??Mn,l=new i(t.schema);t.atRoot&&(t.atRoot=!1);let c=n.offset,d=null;for(const{start:u,value:h}of n.items){const f=Ns(u,{indicator:"seq-item-ind",next:h,offset:c,onError:o,startOnNewline:!0});if(!f.found)if(f.anchor||f.tag||h)h&&h.type==="block-seq"?o(f.end,"BAD_INDENT","All sequence items must start at the same column"):o(c,"MISSING_CHAR","Sequence item without - indicator");else{d=f.end,f.comment&&(l.comment=f.comment);continue}const p=h?r(t,h,f,o):e(t,f.end,u,null,f,o);t.schema.compat&&Cf(n.indent,h,o),c=p.range[2],l.items.push(p)}return l.range=[n.offset,c,d??c],l}function qi(r,e,t,n){let o="";if(r){let s=!1,i="";for(const l of r){const{source:c,type:d}=l;switch(d){case"space":s=!0;break;case"comment":{t&&!s&&n(l,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");const u=c.substring(1)||" ";o?o+=i+u:o=u,i="";break}case"newline":o&&(i+=c),s=!0;break;default:n(l,"UNEXPECTED_TOKEN",`Unexpected ${d} at node end`)}e+=c.length}}return{comment:o,offset:e}}const Wu="Block collections are not allowed within flow collections",zu=r=>r&&(r.type==="block-map"||r.type==="block-seq");function o7({composeNode:r,composeEmptyNode:e},t,n,o,s){const i=n.start.source==="{",l=i?"flow map":"flow sequence",c=(s==null?void 0:s.nodeClass)??(i?Zt:Mn),d=new c(t.schema);d.flow=!0;const u=t.atRoot;u&&(t.atRoot=!1);let h=n.offset+n.start.source.length;for(let O=0;O<n.items.length;++O){const y=n.items[O],{start:b,key:v,sep:k,value:S}=y,w=Ns(b,{flow:l,indicator:"explicit-key-ind",next:v??(k==null?void 0:k[0]),offset:h,onError:o,startOnNewline:!1});if(!w.found){if(!w.anchor&&!w.tag&&!k&&!S){O===0&&w.comma?o(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`):O<n.items.length-1&&o(w.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${l}`),w.comment&&(d.comment?d.comment+=`
150
150
  `+w.comment:d.comment=w.comment),h=w.end;continue}!i&&t.options.strict&&Oi(v)&&o(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line")}if(O===0)w.comma&&o(w.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${l}`);else if(w.comma||o(w.start,"MISSING_CHAR",`Missing , between ${l} items`),w.comment){let $="";e:for(const T of b)switch(T.type){case"comma":case"space":break;case"comment":$=T.source.substring(1);break e;default:break e}if($){let T=d.items[d.items.length-1];Ie(T)&&(T=T.value??T.key),T.comment?T.comment+=`
151
151
  `+$:T.comment=$,w.comment=w.comment.substring($.length+1)}}if(!i&&!k&&!w.found){const $=S?r(t,S,w,o):e(t,w.end,k,null,w,o);d.items.push($),h=$.range[2],zu(S)&&o($.range,"BLOCK_IN_FLOW",Wu)}else{const $=w.end,T=v?r(t,v,w,o):e(t,$,b,null,w,o);zu(v)&&o(T.range,"BLOCK_IN_FLOW",Wu);const R=Ns(k??[],{flow:l,indicator:"map-value-ind",next:S,offset:T.range[2],onError:o,startOnNewline:!1});if(R.found){if(!i&&!w.found&&t.options.strict){if(k)for(const V of k){if(V===R.found)break;if(V.type==="newline"){o(V,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}w.start<R.found.offset-1024&&o(R.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key")}}else S&&("source"in S&&S.source&&S.source[0]===":"?o(S,"MISSING_CHAR",`Missing space after : in ${l}`):o(R.start,"MISSING_CHAR",`Missing , or : between ${l} items`));const B=S?r(t,S,R,o):R.found?e(t,R.end,k,null,R,o):null;B?zu(S)&&o(B.range,"BLOCK_IN_FLOW",Wu):R.comment&&(T.comment?T.comment+=`
152
152
  `+R.comment:T.comment=R.comment);const M=new Tt(T,B);if(t.options.keepSourceTokens&&(M.srcToken=y),i){const V=d;Hk(t,V.items,T)&&o($,"DUPLICATE_KEY","Map keys must be unique"),V.items.push(M)}else{const V=new Zt(t.schema);V.flow=!0,V.items.push(M),d.items.push(V)}h=B?B.range[2]:R.end}}const f=i?"}":"]",[p,...m]=n.end;let g=h;if(p&&p.source===f)g=p.offset+p.source.length;else{const O=l[0].toUpperCase()+l.substring(1),y=u?`${O} must end with a ${f}`:`${O} in block collection must be sufficiently indented and end with a ${f}`;o(h,u?"MISSING_CHAR":"BAD_INDENT",y),p&&p.source.length!==1&&m.unshift(p)}if(m.length>0){const O=qi(m,g,t.options.strict,o);O.comment&&(d.comment?d.comment+=`
153
- `+O.comment:d.comment=O.comment),d.range=[n.offset,g,O.offset]}else d.range=[n.offset,g,g];return d}function Uu(r,e,t,n,o,s){const i=t.type==="block-map"?rM(r,e,t,n,s):t.type==="block-seq"?nM(r,e,t,n,s):oM(r,e,t,n,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function sM(r,e,t,n,o){var s;const i=n?e.directives.tagName(n.source,f=>o(n,"TAG_RESOLVE_FAILED",f)):null,l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===Zt.tagName&&l==="map"||i===Mn.tagName&&l==="seq"||!l)return Uu(r,e,t,o,i);let c=e.schema.tags.find(f=>f.tag===i&&f.collection===l);if(!c){const f=e.schema.knownTags[i];if(f&&f.collection===l)e.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f!=null&&f.collection?o(n,"BAD_COLLECTION_TYPE",`${f.tag} used for ${l} collection, but expects ${f.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),Uu(r,e,t,o,i)}const d=Uu(r,e,t,o,i,c),u=((s=c.resolve)==null?void 0:s.call(c,d,f=>o(n,"TAG_RESOLVE_FAILED",f),e.options))??d,h=ze(u)?u:new de(u);return h.range=d.range,h.tag=i,c!=null&&c.format&&(h.format=c.format),h}function Gk(r,e,t){const n=r.offset,o=aM(r,e,t);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const s=o.mode===">"?de.BLOCK_FOLDED:de.BLOCK_LITERAL,i=r.source?iM(r.source):[];let l=i.length;for(let g=i.length-1;g>=0;--g){const O=i[g][1];if(O===""||O==="\r")l=g;else break}if(l===0){const g=o.chomp==="+"&&i.length>0?`
153
+ `+O.comment:d.comment=O.comment),d.range=[n.offset,g,O.offset]}else d.range=[n.offset,g,g];return d}function Uu(r,e,t,n,o,s){const i=t.type==="block-map"?r7(r,e,t,n,s):t.type==="block-seq"?n7(r,e,t,n,s):o7(r,e,t,n,s),l=i.constructor;return o==="!"||o===l.tagName?(i.tag=l.tagName,i):(o&&(i.tag=o),i)}function s7(r,e,t,n,o){var s;const i=n?e.directives.tagName(n.source,f=>o(n,"TAG_RESOLVE_FAILED",f)):null,l=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!n||!i||i==="!"||i===Zt.tagName&&l==="map"||i===Mn.tagName&&l==="seq"||!l)return Uu(r,e,t,o,i);let c=e.schema.tags.find(f=>f.tag===i&&f.collection===l);if(!c){const f=e.schema.knownTags[i];if(f&&f.collection===l)e.schema.tags.push(Object.assign({},f,{default:!1})),c=f;else return f!=null&&f.collection?o(n,"BAD_COLLECTION_TYPE",`${f.tag} used for ${l} collection, but expects ${f.collection}`,!0):o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${i}`,!0),Uu(r,e,t,o,i)}const d=Uu(r,e,t,o,i,c),u=((s=c.resolve)==null?void 0:s.call(c,d,f=>o(n,"TAG_RESOLVE_FAILED",f),e.options))??d,h=ze(u)?u:new de(u);return h.range=d.range,h.tag=i,c!=null&&c.format&&(h.format=c.format),h}function Gk(r,e,t){const n=r.offset,o=a7(r,e,t);if(!o)return{value:"",type:null,comment:"",range:[n,n,n]};const s=o.mode===">"?de.BLOCK_FOLDED:de.BLOCK_LITERAL,i=r.source?i7(r.source):[];let l=i.length;for(let g=i.length-1;g>=0;--g){const O=i[g][1];if(O===""||O==="\r")l=g;else break}if(l===0){const g=o.chomp==="+"&&i.length>0?`
154
154
  `.repeat(Math.max(1,i.length-1)):"";let O=n+o.length;return r.source&&(O+=r.source.length),{value:g,type:s,comment:o.comment,range:[n,O,O]}}let c=r.indent+o.indent,d=r.offset+o.length,u=0;for(let g=0;g<l;++g){const[O,y]=i[g];if(y===""||y==="\r")o.indent===0&&O.length>c&&(c=O.length);else{O.length<c&&t(d+O.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),o.indent===0&&(c=O.length),u=g;break}d+=O.length+y.length+1}for(let g=i.length-1;g>=l;--g)i[g][0].length>c&&(l=g+1);let h="",f="",p=!1;for(let g=0;g<u;++g)h+=i[g][0].slice(c)+`
155
155
  `;for(let g=u;g<l;++g){let[O,y]=i[g];d+=O.length+y.length+1;const b=y[y.length-1]==="\r";if(b&&(y=y.slice(0,-1)),y&&O.length<c){const v=`Block scalar lines must not be less indented than their ${o.indent?"explicit indentation indicator":"first line"}`;t(d-y.length-(b?2:1),"BAD_INDENT",v),O=""}s===de.BLOCK_LITERAL?(h+=f+O.slice(c)+y,f=`
156
156
  `):O.length>c||y[0]===" "?(f===" "?f=`
@@ -165,41 +165,41 @@ ${d}
165
165
  `+i[g][0].slice(c);h[h.length-1]!==`
166
166
  `&&(h+=`
167
167
  `);break;default:h+=`
168
- `}const m=n+o.length+r.source.length;return{value:h,type:s,comment:o.comment,range:[n,m,m]}}function aM({offset:r,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=e[0],s=o[0];let i=0,l="",c=-1;for(let f=1;f<o.length;++f){const p=o[f];if(!l&&(p==="-"||p==="+"))l=p;else{const m=Number(p);!i&&m?i=m:c===-1&&(c=r+f)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,u="",h=o.length;for(let f=1;f<e.length;++f){const p=e[f];switch(p.type){case"space":d=!0;case"newline":h+=p.source.length;break;case"comment":t&&!d&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),h+=p.source.length;break;default:{const m=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",m);const g=p.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:s,indent:i,chomp:l,comment:u,length:h}}function iM(r){const e=r.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),o=[n!=null&&n[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let s=1;s<e.length;s+=2)o.push([e[s],e[s+1]]);return o}function Fk(r,e,t){const{offset:n,type:o,source:s,end:i}=r;let l,c;const d=(f,p,m)=>t(n+f,p,m);switch(o){case"scalar":l=de.PLAIN,c=lM(s,d);break;case"single-quoted-scalar":l=de.QUOTE_SINGLE,c=cM(s,d);break;case"double-quoted-scalar":l=de.QUOTE_DOUBLE,c=dM(s,d);break;default:return t(r,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}const u=n+s.length,h=qi(i,u,e,t);return{value:c,type:l,comment:h.comment,range:[n,u,h.offset]}}function lM(r,e){let t="";switch(r[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${r[0]}`;break}case"@":case"`":{t=`reserved character ${r[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Kk(r)}function cM(r,e){return(r[r.length-1]!=="'"||r.length===1)&&e(r.length,"MISSING_CHAR","Missing closing 'quote"),Kk(r.slice(1,-1)).replace(/''/g,"'")}function Kk(r){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
168
+ `}const m=n+o.length+r.source.length;return{value:h,type:s,comment:o.comment,range:[n,m,m]}}function a7({offset:r,props:e},t,n){if(e[0].type!=="block-scalar-header")return n(e[0],"IMPOSSIBLE","Block scalar header not found"),null;const{source:o}=e[0],s=o[0];let i=0,l="",c=-1;for(let f=1;f<o.length;++f){const p=o[f];if(!l&&(p==="-"||p==="+"))l=p;else{const m=Number(p);!i&&m?i=m:c===-1&&(c=r+f)}}c!==-1&&n(c,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${o}`);let d=!1,u="",h=o.length;for(let f=1;f<e.length;++f){const p=e[f];switch(p.type){case"space":d=!0;case"newline":h+=p.source.length;break;case"comment":t&&!d&&n(p,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),h+=p.source.length,u=p.source.substring(1);break;case"error":n(p,"UNEXPECTED_TOKEN",p.message),h+=p.source.length;break;default:{const m=`Unexpected token in block scalar header: ${p.type}`;n(p,"UNEXPECTED_TOKEN",m);const g=p.source;g&&typeof g=="string"&&(h+=g.length)}}}return{mode:s,indent:i,chomp:l,comment:u,length:h}}function i7(r){const e=r.split(/\n( *)/),t=e[0],n=t.match(/^( *)/),o=[n!=null&&n[1]?[n[1],t.slice(n[1].length)]:["",t]];for(let s=1;s<e.length;s+=2)o.push([e[s],e[s+1]]);return o}function Fk(r,e,t){const{offset:n,type:o,source:s,end:i}=r;let l,c;const d=(f,p,m)=>t(n+f,p,m);switch(o){case"scalar":l=de.PLAIN,c=l7(s,d);break;case"single-quoted-scalar":l=de.QUOTE_SINGLE,c=c7(s,d);break;case"double-quoted-scalar":l=de.QUOTE_DOUBLE,c=d7(s,d);break;default:return t(r,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${o}`),{value:"",type:null,comment:"",range:[n,n+s.length,n+s.length]}}const u=n+s.length,h=qi(i,u,e,t);return{value:c,type:l,comment:h.comment,range:[n,u,h.offset]}}function l7(r,e){let t="";switch(r[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${r[0]}`;break}case"@":case"`":{t=`reserved character ${r[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),Kk(r)}function c7(r,e){return(r[r.length-1]!=="'"||r.length===1)&&e(r.length,"MISSING_CHAR","Missing closing 'quote"),Kk(r.slice(1,-1)).replace(/''/g,"'")}function Kk(r){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
169
169
  `,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
170
170
  `,"sy")}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy}let n=e.exec(r);if(!n)return r;let o=n[1],s=" ",i=e.lastIndex;for(t.lastIndex=i;n=t.exec(r);)n[1]===""?s===`
171
171
  `?o+=s:s=`
172
- `:(o+=s+n[1],s=" "),i=t.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=i,n=l.exec(r),o+s+((n==null?void 0:n[1])??"")}function dM(r,e){let t="";for(let n=1;n<r.length-1;++n){const o=r[n];if(!(o==="\r"&&r[n+1]===`
172
+ `:(o+=s+n[1],s=" "),i=t.lastIndex;const l=/[ \t]*(.*)/sy;return l.lastIndex=i,n=l.exec(r),o+s+((n==null?void 0:n[1])??"")}function d7(r,e){let t="";for(let n=1;n<r.length-1;++n){const o=r[n];if(!(o==="\r"&&r[n+1]===`
173
173
  `))if(o===`
174
- `){const{fold:s,offset:i}=uM(r,n);t+=s,n=i}else if(o==="\\"){let s=r[++n];const i=hM[s];if(i)t+=i;else if(s===`
174
+ `){const{fold:s,offset:i}=u7(r,n);t+=s,n=i}else if(o==="\\"){let s=r[++n];const i=h7[s];if(i)t+=i;else if(s===`
175
175
  `)for(s=r[n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="\r"&&r[n+1]===`
176
- `)for(s=r[++n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];t+=fM(r,n+1,l,e),n+=l}else{const l=r.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(o===" "||o===" "){const s=n;let i=r[n+1];for(;i===" "||i===" ";)i=r[++n+1];i!==`
176
+ `)for(s=r[++n+1];s===" "||s===" ";)s=r[++n+1];else if(s==="x"||s==="u"||s==="U"){const l={x:2,u:4,U:8}[s];t+=f7(r,n+1,l,e),n+=l}else{const l=r.substr(n-1,2);e(n-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${l}`),t+=l}}else if(o===" "||o===" "){const s=n;let i=r[n+1];for(;i===" "||i===" ";)i=r[++n+1];i!==`
177
177
  `&&!(i==="\r"&&r[n+2]===`
178
- `)&&(t+=n>s?r.slice(s,n+1):o)}else t+=o}return(r[r.length-1]!=='"'||r.length===1)&&e(r.length,"MISSING_CHAR",'Missing closing "quote'),t}function uM(r,e){let t="",n=r[e+1];for(;(n===" "||n===" "||n===`
178
+ `)&&(t+=n>s?r.slice(s,n+1):o)}else t+=o}return(r[r.length-1]!=='"'||r.length===1)&&e(r.length,"MISSING_CHAR",'Missing closing "quote'),t}function u7(r,e){let t="",n=r[e+1];for(;(n===" "||n===" "||n===`
179
179
  `||n==="\r")&&!(n==="\r"&&r[e+2]!==`
180
180
  `);)n===`
181
181
  `&&(t+=`
182
- `),e+=1,n=r[e+1];return t||(t=" "),{fold:t,offset:e}}const hM={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
183
- `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function fM(r,e,t,n){const o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const i=r.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(s)}function Jk(r,e,t,n){const{value:o,type:s,comment:i,range:l}=e.type==="block-scalar"?Gk(e,r.options.strict,n):Fk(e,r.options.strict,n),c=t?r.directives.tagName(t.source,h=>n(t,"TAG_RESOLVE_FAILED",h)):null,d=t&&c?pM(r.schema,o,c,t,n):e.type==="scalar"?mM(r,o,e,n):r.schema[ln];let u;try{const h=d.resolve(o,f=>n(t??e,"TAG_RESOLVE_FAILED",f),r.options);u=Ee(h)?h:new de(h)}catch(h){const f=h instanceof Error?h.message:String(h);n(t??e,"TAG_RESOLVE_FAILED",f),u=new de(o)}return u.range=l,u.source=o,s&&(u.type=s),c&&(u.tag=c),d.format&&(u.format=d.format),i&&(u.comment=i),u}function pM(r,e,t,n,o){var s;if(t==="!")return r[ln];const i=[];for(const c of r.tags)if(!c.collection&&c.tag===t)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((s=c.test)!=null&&s.test(e))return c;const l=r.knownTags[t];return l&&!l.collection?(r.tags.push(Object.assign({},l,{default:!1,test:void 0})),l):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),r[ln])}function mM({directives:r,schema:e},t,n,o){const s=e.tags.find(i=>{var l;return i.default&&((l=i.test)==null?void 0:l.test(t))})||e[ln];if(e.compat){const i=e.compat.find(l=>{var c;return l.default&&((c=l.test)==null?void 0:c.test(t))})??e[ln];if(s.tag!==i.tag){const l=r.tagString(s.tag),c=r.tagString(i.tag),d=`Value may be parsed as either ${l} or ${c}`;o(n,"TAG_RESOLVE_FAILED",d,!0)}}return s}function gM(r,e,t){if(e){t===null&&(t=e.length);for(let n=t-1;n>=0;--n){let o=e[n];switch(o.type){case"space":case"comment":case"newline":r-=o.source.length;continue}for(o=e[++n];(o==null?void 0:o.type)==="space";)r+=o.source.length,o=e[++n];break}}return r}const OM={composeNode:eS,composeEmptyNode:Am};function eS(r,e,t,n){const{spaceBefore:o,comment:s,anchor:i,tag:l}=t;let c,d=!0;switch(e.type){case"alias":c=yM(r,e,n),(i||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Jk(r,e,l,n),i&&(c.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=sM(OM,r,e,l,n),i&&(c.anchor=i.source.substring(1));break;default:{const u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),c=Am(r,e.offset,void 0,null,t,n),d=!1}}return i&&c.anchor===""&&n(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?c.comment=s:c.commentBefore=s),r.options.keepSourceTokens&&d&&(c.srcToken=e),c}function Am(r,e,t,n,{spaceBefore:o,comment:s,anchor:i,tag:l,end:c},d){const u={type:"scalar",offset:gM(e,t,n),indent:-1,source:""},h=Jk(r,u,l,d);return i&&(h.anchor=i.source.substring(1),h.anchor===""&&d(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=c),h}function yM({options:r},{offset:e,source:t,end:n},o){const s=new Bd(t.substring(1));s.source===""&&o(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=e+t.length,l=qi(n,i,r.strict,o);return s.range=[e,i,l.offset],l.comment&&(s.comment=l.comment),s}function bM(r,e,{offset:t,start:n,value:o,end:s},i){const l=Object.assign({_directives:e},r),c=new ta(void 0,l),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=Ns(n,{indicator:"doc-start",next:o??(s==null?void 0:s[0]),offset:t,onError:i,startOnNewline:!0});u.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!u.hasNewline&&i(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?eS(d,o,u,i):Am(d,u.end,n,null,u,i);const h=c.contents.range[2],f=qi(s,h,!1,i);return f.comment&&(c.comment=f.comment),c.range=[t,h,f.offset],c}function xa(r){if(typeof r=="number")return[r,r+1];if(Array.isArray(r))return r.length===2?r:[r[0],r[1]];const{offset:e,source:t}=r;return[e,e+(typeof t=="string"?t.length:1)]}function by(r){var e;let t="",n=!1,o=!1;for(let s=0;s<r.length;++s){const i=r[s];switch(i[0]){case"#":t+=(t===""?"":o?`
182
+ `),e+=1,n=r[e+1];return t||(t=" "),{fold:t,offset:e}}const h7={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
183
+ `,r:"\r",t:" ",v:"\v",N:"…",_:" ",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};function f7(r,e,t,n){const o=r.substr(e,t),s=o.length===t&&/^[0-9a-fA-F]+$/.test(o)?parseInt(o,16):NaN;if(isNaN(s)){const i=r.substr(e-2,t+2);return n(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${i}`),i}return String.fromCodePoint(s)}function Jk(r,e,t,n){const{value:o,type:s,comment:i,range:l}=e.type==="block-scalar"?Gk(e,r.options.strict,n):Fk(e,r.options.strict,n),c=t?r.directives.tagName(t.source,h=>n(t,"TAG_RESOLVE_FAILED",h)):null,d=t&&c?p7(r.schema,o,c,t,n):e.type==="scalar"?m7(r,o,e,n):r.schema[ln];let u;try{const h=d.resolve(o,f=>n(t??e,"TAG_RESOLVE_FAILED",f),r.options);u=Ee(h)?h:new de(h)}catch(h){const f=h instanceof Error?h.message:String(h);n(t??e,"TAG_RESOLVE_FAILED",f),u=new de(o)}return u.range=l,u.source=o,s&&(u.type=s),c&&(u.tag=c),d.format&&(u.format=d.format),i&&(u.comment=i),u}function p7(r,e,t,n,o){var s;if(t==="!")return r[ln];const i=[];for(const c of r.tags)if(!c.collection&&c.tag===t)if(c.default&&c.test)i.push(c);else return c;for(const c of i)if((s=c.test)!=null&&s.test(e))return c;const l=r.knownTags[t];return l&&!l.collection?(r.tags.push(Object.assign({},l,{default:!1,test:void 0})),l):(o(n,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),r[ln])}function m7({directives:r,schema:e},t,n,o){const s=e.tags.find(i=>{var l;return i.default&&((l=i.test)==null?void 0:l.test(t))})||e[ln];if(e.compat){const i=e.compat.find(l=>{var c;return l.default&&((c=l.test)==null?void 0:c.test(t))})??e[ln];if(s.tag!==i.tag){const l=r.tagString(s.tag),c=r.tagString(i.tag),d=`Value may be parsed as either ${l} or ${c}`;o(n,"TAG_RESOLVE_FAILED",d,!0)}}return s}function g7(r,e,t){if(e){t===null&&(t=e.length);for(let n=t-1;n>=0;--n){let o=e[n];switch(o.type){case"space":case"comment":case"newline":r-=o.source.length;continue}for(o=e[++n];(o==null?void 0:o.type)==="space";)r+=o.source.length,o=e[++n];break}}return r}const O7={composeNode:eS,composeEmptyNode:Am};function eS(r,e,t,n){const{spaceBefore:o,comment:s,anchor:i,tag:l}=t;let c,d=!0;switch(e.type){case"alias":c=y7(r,e,n),(i||l)&&n(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":c=Jk(r,e,l,n),i&&(c.anchor=i.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":c=s7(O7,r,e,l,n),i&&(c.anchor=i.source.substring(1));break;default:{const u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;n(e,"UNEXPECTED_TOKEN",u),c=Am(r,e.offset,void 0,null,t,n),d=!1}}return i&&c.anchor===""&&n(i,"BAD_ALIAS","Anchor cannot be an empty string"),o&&(c.spaceBefore=!0),s&&(e.type==="scalar"&&e.source===""?c.comment=s:c.commentBefore=s),r.options.keepSourceTokens&&d&&(c.srcToken=e),c}function Am(r,e,t,n,{spaceBefore:o,comment:s,anchor:i,tag:l,end:c},d){const u={type:"scalar",offset:g7(e,t,n),indent:-1,source:""},h=Jk(r,u,l,d);return i&&(h.anchor=i.source.substring(1),h.anchor===""&&d(i,"BAD_ALIAS","Anchor cannot be an empty string")),o&&(h.spaceBefore=!0),s&&(h.comment=s,h.range[2]=c),h}function y7({options:r},{offset:e,source:t,end:n},o){const s=new Bd(t.substring(1));s.source===""&&o(e,"BAD_ALIAS","Alias cannot be an empty string"),s.source.endsWith(":")&&o(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);const i=e+t.length,l=qi(n,i,r.strict,o);return s.range=[e,i,l.offset],l.comment&&(s.comment=l.comment),s}function b7(r,e,{offset:t,start:n,value:o,end:s},i){const l=Object.assign({_directives:e},r),c=new ta(void 0,l),d={atRoot:!0,directives:c.directives,options:c.options,schema:c.schema},u=Ns(n,{indicator:"doc-start",next:o??(s==null?void 0:s[0]),offset:t,onError:i,startOnNewline:!0});u.found&&(c.directives.docStart=!0,o&&(o.type==="block-map"||o.type==="block-seq")&&!u.hasNewline&&i(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),c.contents=o?eS(d,o,u,i):Am(d,u.end,n,null,u,i);const h=c.contents.range[2],f=qi(s,h,!1,i);return f.comment&&(c.comment=f.comment),c.range=[t,h,f.offset],c}function xa(r){if(typeof r=="number")return[r,r+1];if(Array.isArray(r))return r.length===2?r:[r[0],r[1]];const{offset:e,source:t}=r;return[e,e+(typeof t=="string"?t.length:1)]}function by(r){var e;let t="",n=!1,o=!1;for(let s=0;s<r.length;++s){const i=r[s];switch(i[0]){case"#":t+=(t===""?"":o?`
184
184
 
185
185
  `:`
186
186
  `)+(i.substring(1)||" "),n=!0,o=!1;break;case"%":((e=r[s+1])==null?void 0:e[0])!=="#"&&(s+=1),n=!1;break;default:n||(o=!0),n=!1}}return{comment:t,afterEmptyLine:o}}class Rm{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,n,o,s)=>{const i=xa(t);s?this.warnings.push(new Lk(i,n,o)):this.errors.push(new go(i,n,o))},this.directives=new yt({version:e.version||"1.2"}),this.options=e}decorate(e,t){const{comment:n,afterEmptyLine:o}=by(this.prelude);if(n){const s=e.contents;if(t)e.comment=e.comment?`${e.comment}
187
187
  ${n}`:n;else if(o||e.directives.docStart||!s)e.commentBefore=n;else if(je(s)&&!s.flow&&s.items.length>0){let i=s.items[0];Ie(i)&&(i=i.key);const l=i.commentBefore;i.commentBefore=l?`${n}
188
188
  ${l}`:n}else{const i=s.commentBefore;s.commentBefore=i?`${n}
189
- ${i}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:by(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const o of e)yield*this.next(o);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,o)=>{const s=xa(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,o)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=bM(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new go(xa(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new go(xa(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const t=qi(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
190
- ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new go(xa(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),o=new ta(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,t,t],this.decorate(o,!1),yield o}}}function vM(r,e=!0,t){if(r){const n=(o,s,i)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(t)t(l,s,i);else throw new go([l,l+1],s,i)};switch(r.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Fk(r,e,n);case"block-scalar":return Gk(r,e,n)}}return null}function wM(r,e){const{implicitKey:t=!1,indent:n,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=e,l=Di({type:i,value:r},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:n,source:`
189
+ ${i}`:n}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[]}streamInfo(){return{comment:by(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,n=-1){for(const o of e)yield*this.next(o);yield*this.end(t,n)}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,n,o)=>{const s=xa(e);s[0]+=t,this.onError(s,"BAD_DIRECTIVE",n,o)}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{const t=b7(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{const t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,n=new go(xa(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(n):this.doc.errors.push(n);break}case"doc-end":{if(!this.doc){const n="Unexpected doc-end without preceding document";this.errors.push(new go(xa(e),"UNEXPECTED_TOKEN",n));break}this.doc.directives.docEnd=!0;const t=qi(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){const n=this.doc.comment;this.doc.comment=n?`${n}
190
+ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.push(new go(xa(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`))}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){const n=Object.assign({_directives:this.directives},this.options),o=new ta(void 0,n);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),o.range=[0,t,t],this.decorate(o,!1),yield o}}}function v7(r,e=!0,t){if(r){const n=(o,s,i)=>{const l=typeof o=="number"?o:Array.isArray(o)?o[0]:o.offset;if(t)t(l,s,i);else throw new go([l,l+1],s,i)};switch(r.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return Fk(r,e,n);case"block-scalar":return Gk(r,e,n)}}return null}function w7(r,e){const{implicitKey:t=!1,indent:n,inFlow:o=!1,offset:s=-1,type:i="PLAIN"}=e,l=Di({type:i,value:r},{implicitKey:t,indent:n>0?" ".repeat(n):"",inFlow:o,options:{blockQuote:!0,lineWidth:-1}}),c=e.end??[{type:"newline",offset:-1,indent:n,source:`
191
191
  `}];switch(l[0]){case"|":case">":{const d=l.indexOf(`
192
192
  `),u=l.substring(0,d),h=l.substring(d+1)+`
193
193
  `,f=[{type:"block-scalar-header",offset:s,indent:n,source:u}];return tS(f,c)||f.push({type:"newline",offset:-1,indent:n,source:`
194
- `}),{type:"block-scalar",offset:s,indent:n,props:f,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:l,end:c};default:return{type:"scalar",offset:s,indent:n,source:l,end:c}}}function kM(r,e,t={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=t,l="indent"in r?r.indent:null;if(n&&typeof l=="number"&&(l+=2),!i)switch(r.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const d=r.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const c=Di({type:i,value:e},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":SM(r,c);break;case'"':Yu(r,c,"double-quoted-scalar");break;case"'":Yu(r,c,"single-quoted-scalar");break;default:Yu(r,c,"scalar")}}function SM(r,e){const t=e.indexOf(`
194
+ `}),{type:"block-scalar",offset:s,indent:n,props:f,source:h}}case'"':return{type:"double-quoted-scalar",offset:s,indent:n,source:l,end:c};case"'":return{type:"single-quoted-scalar",offset:s,indent:n,source:l,end:c};default:return{type:"scalar",offset:s,indent:n,source:l,end:c}}}function k7(r,e,t={}){let{afterKey:n=!1,implicitKey:o=!1,inFlow:s=!1,type:i}=t,l="indent"in r?r.indent:null;if(n&&typeof l=="number"&&(l+=2),!i)switch(r.type){case"single-quoted-scalar":i="QUOTE_SINGLE";break;case"double-quoted-scalar":i="QUOTE_DOUBLE";break;case"block-scalar":{const d=r.props[0];if(d.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i=d.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:i="PLAIN"}const c=Di({type:i,value:e},{implicitKey:o||l===null,indent:l!==null&&l>0?" ".repeat(l):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}});switch(c[0]){case"|":case">":S7(r,c);break;case'"':Yu(r,c,"double-quoted-scalar");break;case"'":Yu(r,c,"single-quoted-scalar");break;default:Yu(r,c,"scalar")}}function S7(r,e){const t=e.indexOf(`
195
195
  `),n=e.substring(0,t),o=e.substring(t+1)+`
196
196
  `;if(r.type==="block-scalar"){const s=r.props[0];if(s.type!=="block-scalar-header")throw new Error("Invalid block scalar header");s.source=n,r.source=o}else{const{offset:s}=r,i="indent"in r?r.indent:-1,l=[{type:"block-scalar-header",offset:s,indent:i,source:n}];tS(l,"end"in r?r.end:void 0)||l.push({type:"newline",offset:-1,indent:i,source:`
197
197
  `});for(const c of Object.keys(r))c!=="type"&&c!=="offset"&&delete r[c];Object.assign(r,{type:"block-scalar",indent:i,props:l,source:o})}}function tS(r,e){if(e)for(const t of e)switch(t.type){case"space":case"comment":r.push(t);break;case"newline":return r.push(t),!0}return!1}function Yu(r,e,t){switch(r.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":r.type=t,r.source=e;break;case"block-scalar":{const n=r.props.slice(1);let o=e.length;r.props[0].type==="block-scalar-header"&&(o-=r.props[0].source.length);for(const s of n)s.offset+=o;delete r.props,Object.assign(r,{type:t,source:e,end:n});break}case"block-map":case"block-seq":{const n={type:"newline",offset:r.offset+e.length,indent:r.indent,source:`
198
- `};delete r.items,Object.assign(r,{type:t,source:e,end:[n]});break}default:{const n="indent"in r?r.indent:-1,o="end"in r&&Array.isArray(r.end)?r.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(r))s!=="type"&&s!=="offset"&&delete r[s];Object.assign(r,{type:t,indent:n,source:e,end:o})}}}const $M=r=>"type"in r?zc(r):sc(r);function zc(r){switch(r.type){case"block-scalar":{let e="";for(const t of r.props)e+=zc(t);return e+r.source}case"block-map":case"block-seq":{let e="";for(const t of r.items)e+=sc(t);return e}case"flow-collection":{let e=r.start.source;for(const t of r.items)e+=sc(t);for(const t of r.end)e+=t.source;return e}case"document":{let e=sc(r);if(r.end)for(const t of r.end)e+=t.source;return e}default:{let e=r.source;if("end"in r&&r.end)for(const t of r.end)e+=t.source;return e}}}function sc({start:r,key:e,sep:t,value:n}){let o="";for(const s of r)o+=s.source;if(e&&(o+=zc(e)),t)for(const s of t)o+=s.source;return n&&(o+=zc(n)),o}const Tf=Symbol("break visit"),PM=Symbol("skip children"),rS=Symbol("remove item");function Qo(r,e){"type"in r&&r.type==="document"&&(r={start:r.start,value:r.value}),nS(Object.freeze([]),r,e)}Qo.BREAK=Tf;Qo.SKIP=PM;Qo.REMOVE=rS;Qo.itemAtPath=(r,e)=>{let t=r;for(const[n,o]of e){const s=t==null?void 0:t[n];if(s&&"items"in s)t=s.items[o];else return}return t};Qo.parentCollection=(r,e)=>{const t=Qo.itemAtPath(r,e.slice(0,-1)),n=e[e.length-1][0],o=t==null?void 0:t[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function nS(r,e,t){let n=t(e,r);if(typeof n=="symbol")return n;for(const o of["key","value"]){const s=e[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){const l=nS(Object.freeze(r.concat([[o,i]])),s.items[i],t);if(typeof l=="number")i=l-1;else{if(l===Tf)return Tf;l===rS&&(s.items.splice(i,1),i-=1)}}typeof n=="function"&&o==="key"&&(n=n(e,r))}}return typeof n=="function"?n(e,r):n}const Ud="\uFEFF",Yd="",Ld="",yi="",xM=r=>!!r&&"items"in r,_M=r=>!!r&&(r.type==="scalar"||r.type==="single-quoted-scalar"||r.type==="double-quoted-scalar"||r.type==="block-scalar");function CM(r){switch(r){case Ud:return"<BOM>";case Yd:return"<DOC>";case Ld:return"<FLOW_END>";case yi:return"<SCALAR>";default:return JSON.stringify(r)}}function oS(r){switch(r){case Ud:return"byte-order-mark";case Yd:return"doc-mode";case Ld:return"flow-error-end";case yi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
198
+ `};delete r.items,Object.assign(r,{type:t,source:e,end:[n]});break}default:{const n="indent"in r?r.indent:-1,o="end"in r&&Array.isArray(r.end)?r.end.filter(s=>s.type==="space"||s.type==="comment"||s.type==="newline"):[];for(const s of Object.keys(r))s!=="type"&&s!=="offset"&&delete r[s];Object.assign(r,{type:t,indent:n,source:e,end:o})}}}const $7=r=>"type"in r?zc(r):sc(r);function zc(r){switch(r.type){case"block-scalar":{let e="";for(const t of r.props)e+=zc(t);return e+r.source}case"block-map":case"block-seq":{let e="";for(const t of r.items)e+=sc(t);return e}case"flow-collection":{let e=r.start.source;for(const t of r.items)e+=sc(t);for(const t of r.end)e+=t.source;return e}case"document":{let e=sc(r);if(r.end)for(const t of r.end)e+=t.source;return e}default:{let e=r.source;if("end"in r&&r.end)for(const t of r.end)e+=t.source;return e}}}function sc({start:r,key:e,sep:t,value:n}){let o="";for(const s of r)o+=s.source;if(e&&(o+=zc(e)),t)for(const s of t)o+=s.source;return n&&(o+=zc(n)),o}const Tf=Symbol("break visit"),P7=Symbol("skip children"),rS=Symbol("remove item");function Qo(r,e){"type"in r&&r.type==="document"&&(r={start:r.start,value:r.value}),nS(Object.freeze([]),r,e)}Qo.BREAK=Tf;Qo.SKIP=P7;Qo.REMOVE=rS;Qo.itemAtPath=(r,e)=>{let t=r;for(const[n,o]of e){const s=t==null?void 0:t[n];if(s&&"items"in s)t=s.items[o];else return}return t};Qo.parentCollection=(r,e)=>{const t=Qo.itemAtPath(r,e.slice(0,-1)),n=e[e.length-1][0],o=t==null?void 0:t[n];if(o&&"items"in o)return o;throw new Error("Parent collection not found")};function nS(r,e,t){let n=t(e,r);if(typeof n=="symbol")return n;for(const o of["key","value"]){const s=e[o];if(s&&"items"in s){for(let i=0;i<s.items.length;++i){const l=nS(Object.freeze(r.concat([[o,i]])),s.items[i],t);if(typeof l=="number")i=l-1;else{if(l===Tf)return Tf;l===rS&&(s.items.splice(i,1),i-=1)}}typeof n=="function"&&o==="key"&&(n=n(e,r))}}return typeof n=="function"?n(e,r):n}const Ud="\uFEFF",Yd="",Ld="",yi="",x7=r=>!!r&&"items"in r,_7=r=>!!r&&(r.type==="scalar"||r.type==="single-quoted-scalar"||r.type==="double-quoted-scalar"||r.type==="block-scalar");function C7(r){switch(r){case Ud:return"<BOM>";case Yd:return"<DOC>";case Ld:return"<FLOW_END>";case yi:return"<SCALAR>";default:return JSON.stringify(r)}}function oS(r){switch(r){case Ud:return"byte-order-mark";case Yd:return"doc-mode";case Ld:return"flow-error-end";case yi:return"scalar";case"---":return"doc-start";case"...":return"doc-end";case"":case`
199
199
  `:case`\r
200
- `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(r[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const TM=Object.freeze(Object.defineProperty({__proto__:null,BOM:Ud,DOCUMENT:Yd,FLOW_END:Ld,SCALAR:yi,createScalarToken:wM,isCollection:xM,isScalar:_M,prettyToken:CM,resolveAsScalar:vM,setScalarValue:kM,stringify:$M,tokenType:oS,visit:Qo},Symbol.toStringTag,{value:"Module"}));function Wt(r){switch(r){case void 0:case" ":case`
201
- `:case"\r":case" ":return!0;default:return!1}}const vy="0123456789ABCDEFabcdef".split(""),QM="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Lu=",[]{}".split(""),EM=` ,[]{}
202
- \r `.split(""),Hu=r=>!r||EM.includes(r);class sS{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
200
+ `:return"newline";case"-":return"seq-item-ind";case"?":return"explicit-key-ind";case":":return"map-value-ind";case"{":return"flow-map-start";case"}":return"flow-map-end";case"[":return"flow-seq-start";case"]":return"flow-seq-end";case",":return"comma"}switch(r[0]){case" ":case" ":return"space";case"#":return"comment";case"%":return"directive-line";case"*":return"alias";case"&":return"anchor";case"!":return"tag";case"'":return"single-quoted-scalar";case'"':return"double-quoted-scalar";case"|":case">":return"block-scalar-header"}return null}const T7=Object.freeze(Object.defineProperty({__proto__:null,BOM:Ud,DOCUMENT:Yd,FLOW_END:Ld,SCALAR:yi,createScalarToken:w7,isCollection:x7,isScalar:_7,prettyToken:C7,resolveAsScalar:v7,setScalarValue:k7,stringify:$7,tokenType:oS,visit:Qo},Symbol.toStringTag,{value:"Module"}));function Wt(r){switch(r){case void 0:case" ":case`
201
+ `:case"\r":case" ":return!0;default:return!1}}const vy="0123456789ABCDEFabcdef".split(""),Q7="0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()".split(""),Lu=",[]{}".split(""),E7=` ,[]{}
202
+ \r `.split(""),Hu=r=>!r||E7.includes(r);class sS{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0}*lex(e,t=!1){e&&(this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null),this.atEnd=!t;let n=this.next??"stream";for(;n&&(t||this.hasChars(1));)n=yield*this.parseNext(n)}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return!t||t==="#"||t===`
203
203
  `?!0:t==="\r"?this.buffer[e+1]===`
204
204
  `:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let n=0;for(;t===" ";)t=this.buffer[++n+e];if(t==="\r"){const o=this.buffer[n+e+1];if(o===`
205
205
  `||!o&&!this.atEnd)return e+n+1}return t===`
@@ -213,22 +213,22 @@ ${t.comment}`:t.comment}this.doc.range[2]=t.offset;break}default:this.errors.pus
213
213
  `&&o>=this.pos&&o+1+t>i)e=o;else break}while(!0);return yield yi,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){const e=this.flowLevel>0;let t=this.pos-1,n=this.pos-1,o;for(;o=this.buffer[++n];)if(o===":"){const s=this.buffer[n+1];if(Wt(s)||e&&s===",")break;t=n}else if(Wt(o)){let s=this.buffer[n+1];if(o==="\r"&&(s===`
214
214
  `?(n+=1,o=`
215
215
  `,s=this.buffer[n+1]):t=n),s==="#"||e&&Lu.includes(s))break;if(o===`
216
- `){const i=this.continueScalar(n+1);if(i===-1)break;n=Math.max(n,i-2)}}else{if(e&&Lu.includes(o))break;t=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield yi,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Hu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Wt(t)||e&&Lu.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!Wt(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(QM.includes(t))t=this.buffer[++e];else if(t==="%"&&vy.includes(this.buffer[e+1])&&vy.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
216
+ `){const i=this.continueScalar(n+1);if(i===-1)break;n=Math.max(n,i-2)}}else{if(e&&Lu.includes(o))break;t=n}return!o&&!this.atEnd?this.setNext("plain-scalar"):(yield yi,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){const n=this.buffer.slice(this.pos,e);return n?(yield n,this.pos+=n.length,n.length):(t&&(yield""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return(yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return(yield*this.pushUntil(Hu))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{const e=this.flowLevel>0,t=this.charAt(1);if(Wt(t)||e&&Lu.includes(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!Wt(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else{let e=this.pos+1,t=this.buffer[e];for(;t;)if(Q7.includes(t))t=this.buffer[++e];else if(t==="%"&&vy.includes(this.buffer[e+1])&&vy.includes(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){const e=this.buffer[this.pos];return e===`
217
217
  `?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
218
218
  `?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,n;do n=this.buffer[++t];while(n===" "||e&&n===" ");const o=t-this.pos;return o>0&&(yield this.buffer.substr(this.pos,o),this.pos=t),o}*pushUntil(e){let t=this.pos,n=this.buffer[t];for(;!e(n);)n=this.buffer[++t];return yield*this.pushToIndex(t,!1)}}class aS{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,n=this.lineStarts.length;for(;t<n;){const s=t+n>>1;this.lineStarts[s]<e?t=s+1:n=s}if(this.lineStarts[t]===e)return{line:t+1,col:1};if(t===0)return{line:0,col:e};const o=this.lineStarts[t-1];return{line:t,col:e-o+1}}}}function sr(r,e){for(let t=0;t<r.length;++t)if(r[t].type===e)return!0;return!1}function wy(r){for(let e=0;e<r.length;++e)switch(r[e].type){case"space":case"comment":case"newline":break;default:return e}return-1}function iS(r){switch(r==null?void 0:r.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return!0;default:return!1}}function Al(r){switch(r.type){case"document":return r.start;case"block-map":{const e=r.items[r.items.length-1];return e.sep??e.start}case"block-seq":return r.items[r.items.length-1].start;default:return[]}}function Lo(r){var e;if(r.length===0)return[];let t=r.length;e:for(;--t>=0;)switch(r[t].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}for(;((e=r[++t])==null?void 0:e.type)==="space";);return r.splice(t,r.length)}function ky(r){if(r.start.type==="flow-seq-start")for(const e of r.items)e.sep&&!e.value&&!sr(e.start,"explicit-key-ind")&&!sr(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,iS(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep)}class Vm{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new sS,this.onNewLine=e}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(const n of this.lexer.lex(e,t))yield*this.next(n);t||(yield*this.end())}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}const t=oS(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else{switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1}this.offset+=e.length}else{const n=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:n,source:e}),this.offset+=e.length}}*end(){for(;this.stack.length>0;)yield*this.pop()}get sourceToken(){return{type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){const e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop()}peek(e){return this.stack[this.stack.length-e]}*pop(e){const t=e??this.stack.pop();if(!t)yield{type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else{const n=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in n?n.indent:0:t.type==="flow-collection"&&n.type==="document"&&(t.indent=0),t.type==="flow-collection"&&ky(t),n.type){case"document":n.value=t;break;case"block-scalar":n.props.push(t);break;case"block-map":{const o=n.items[n.items.length-1];if(o.value){n.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(o.sep)o.value=t;else{Object.assign(o,{key:t,sep:[]}),this.onKeyLine=!sr(o.start,"explicit-key-ind");return}break}case"block-seq":{const o=n.items[n.items.length-1];o.value?n.items.push({start:[],value:t}):o.value=t;break}case"flow-collection":{const o=n.items[n.items.length-1];!o||o.value?n.items.push({start:[],key:t,sep:[]}):o.sep?o.value=t:Object.assign(o,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t)}if((n.type==="document"||n.type==="block-map"||n.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){const o=t.items[t.items.length-1];o&&!o.sep&&!o.value&&o.start.length>0&&wy(o.start)===-1&&(t.indent===0||o.start.every(s=>s.type!=="comment"||s.indent<t.indent))&&(n.type==="document"?n.end=o.start:n.items.push({start:o.start}),t.items.splice(-1,1))}}}*stream(){switch(this.type){case"directive-line":yield{type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{const e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source}}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{wy(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}const t=this.startBlockValue(e);t?this.stack.push(t):yield{type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source}}*scalar(e){if(this.type==="map-value-ind"){const t=Al(this.peek(2)),n=Lo(t);let o;e.end?(o=e.end,o.push(this.sourceToken),delete e.end):o=[this.sourceToken];const s={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:n,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=s}else yield*this.lineEnd(e)}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
219
219
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
220
220
  `,t)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){const o=e.items[e.items.length-2],s=(t=o==null?void 0:o.value)==null?void 0:t.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){const o=!this.onKeyLine&&this.indent===e.indent&&n.sep&&this.type!=="seq-item-ind";let s=[];if(o&&n.sep&&!n.value){const i=[];for(let l=0;l<n.sep.length;++l){const c=n.sep[l];switch(c.type){case"newline":i.push(l);break;case"space":break;case"comment":c.indent>e.indent&&(i.length=0);break;default:i.length=0}}i.length>=2&&(s=n.sep.splice(i[1]))}switch(this.type){case"anchor":case"tag":o||n.value?(s.push(this.sourceToken),e.items.push({start:s}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!sr(n.start,"explicit-key-ind")?n.start.push(this.sourceToken):o||n.value?(s.push(this.sourceToken),e.items.push({start:s})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]}),this.onKeyLine=!0;return;case"map-value-ind":if(sr(n.start,"explicit-key-ind"))if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(sr(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]});else if(iS(n.key)&&!sr(n.sep,"newline")){const i=Lo(n.start),l=n.key,c=n.sep;c.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:l,sep:c}]})}else s.length>0?n.sep=n.sep.concat(s,this.sourceToken):n.sep.push(this.sourceToken);else if(sr(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{const i=Lo(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||o?e.items.push({start:s,key:null,sep:[this.sourceToken]}):sr(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const i=this.flowScalar(this.type);o||n.value?(e.items.push({start:s,key:i,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(i):(Object.assign(n,{key:i,sep:[]}),this.onKeyLine=!0);return}default:{const i=this.startBlockValue(e);if(i){o&&i.type!=="block-seq"&&sr(n.start,"explicit-key-ind")&&e.items.push({start:s}),this.stack.push(i);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){var t;const n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){const o="end"in n.value?n.value.end:void 0,s=Array.isArray(o)?o[o.length-1]:void 0;(s==null?void 0:s.type)==="comment"?o==null||o.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){const o=e.items[e.items.length-2],s=(t=o==null?void 0:o.value)==null?void 0:t.end;if(Array.isArray(s)){Array.prototype.push.apply(s,n.start),s.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||sr(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){const o=this.startBlockValue(e);if(o){this.stack.push(o);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){const t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let n;do yield*this.pop(),n=this.peek(1);while(n&&n.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{const o=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:o,sep:[]}):t.sep?this.stack.push(o):Object.assign(t,{key:o,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}const n=this.startBlockValue(e);n?this.stack.push(n):(yield*this.pop(),yield*this.step())}else{const n=this.peek(2);if(n.type==="block-map"&&(this.type==="map-value-ind"&&n.indent===e.indent||this.type==="newline"&&!n.items[n.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&n.type!=="flow-collection"){const o=Al(n),s=Lo(o);ky(e);const i=e.end.splice(1,e.end.length);i.push(this.sourceToken);const l={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:s,key:e,sep:i}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=l}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
221
221
  `)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
222
- `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=Al(e),n=Lo(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const t=Al(e),n=Lo(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function lS(r){const e=r.prettyErrors!==!1;return{lineCounter:r.lineCounter||e&&new aS||null,prettyErrors:e}}function NM(r,e={}){const{lineCounter:t,prettyErrors:n}=lS(e),o=new Vm(t==null?void 0:t.addNewLine),s=new Rm(e),i=Array.from(s.compose(o.parse(r)));if(n&&t)for(const l of i)l.errors.forEach(Wc(r,t)),l.warnings.forEach(Wc(r,t));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function cS(r,e={}){const{lineCounter:t,prettyErrors:n}=lS(e),o=new Vm(t==null?void 0:t.addNewLine),s=new Rm(e);let i=null;for(const l of s.compose(o.parse(r),!0,r.length))if(!i)i=l;else if(i.options.logLevel!=="silent"){i.errors.push(new go(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(i.errors.forEach(Wc(r,t)),i.warnings.forEach(Wc(r,t))),i}function AM(r,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);const o=cS(r,t);if(!o)return null;if(o.warnings.forEach(s=>Tk(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},t))}function RM(r,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const o=Math.round(t);t=o<1?void 0:o>8?{indent:8}:{indent:o}}if(r===void 0){const{keepUndefined:o}=t??e??{};if(!o)return}return new ta(r,n,t).toString(t)}const dS=Object.freeze(Object.defineProperty({__proto__:null,Alias:Bd,CST:TM,Composer:Rm,Document:ta,Lexer:sS,LineCounter:aS,Pair:Tt,Parser:Vm,Scalar:de,Schema:zd,YAMLError:Nm,YAMLMap:Zt,YAMLParseError:go,YAMLSeq:Mn,YAMLWarning:Lk,isAlias:Ro,isCollection:je,isDocument:Gs,isMap:Fs,isNode:ze,isPair:Ie,isScalar:Ee,isSeq:Ks,parse:AM,parseAllDocuments:NM,parseDocument:cS,stringify:RM,visit:Dn,visitAsync:Vd},Symbol.toStringTag,{value:"Module"}));function uS(r){if(Ok(r))return r;if(typeof r=="string")try{return JSON.parse(r)}catch{return dS.parse(r)}return r}function hS(r){if(Ok(r))return r;const e=uS(r);return[{isEntrypoint:!0,specification:e,filename:"openapi.json",dir:"./",references:P7(e)}]}async function VM(r){const e=new Im,t=hS(r),n=await e.validate(t),o=structuredClone(e.specification),s=e.resolveReferences(t);return{valid:n.valid,version:e.version,errors:n.errors,specification:o,schema:s}}const BM=r=>JSON.stringify(r,null,2),ZM=r=>dS.stringify(r);function IM(r){var e;if((e=r.openapi)!=null&&e.startsWith("3.0"))r.openapi="3.1.0";else return r;return r=Tr(r,t=>(t.type!=="undefined"&&t.nullable===!0&&(t.type=["null",t.type],delete t.nullable),t)),r=Tr(r,t=>(t.exclusiveMinimum===!0?(t.exclusiveMinimum=t.minimum,delete t.minimum):t.exclusiveMinimum===!1&&delete t.exclusiveMinimum,t.exclusiveMaximum===!0?(t.exclusiveMaximum=t.maximum,delete t.maximum):t.exclusiveMaximum===!1&&delete t.exclusiveMaximum,t)),r=Tr(r,t=>(t.example!==void 0&&(t.examples={default:t.example},delete t.example),t)),r=Tr(r,t=>{if(t.type==="object"&&t.properties!==void 0)for(const[n,o]of Object.entries(t.properties))o!==void 0&&o.type==="string"&&o.format==="binary"&&(o.contentEncoding="application/octet-stream",delete o.format);return t}),r=Tr(r,t=>{if(!(t.type==="string"&&t.format==="binary"))return t}),r=Tr(r,t=>t.type==="string"&&t.format==="base64"?{type:"string",contentEncoding:"base64"}:t),r}function jM(r){return r}function DM(r){return[jM,IM].reduce((e,t)=>t(e),r)}async function MM(r){const e=new Im,t=hS(r);return{...await e.validate(t),specification:e.specification,version:e.version}}function fS(r){for(const e of new Set(gk)){const t=e==="2.0"?"swagger":"openapi",n=r[t];if(typeof n=="string"&&n.startsWith(e))return{version:e,specificationType:t,specificationVersion:n}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function qM(r){return decodeURI(r.replace(/~1/g,"/").replace(/~0/g,"~"))}function pS(r){const e=structuredClone(r);return t(e),t(e),e;function t(n){Object.entries(n??{}).forEach(([o,s])=>{if(n.$ref!==void 0){const i=WM(e,n.$ref);delete n.$ref,typeof i=="object"&&Object.keys(i).forEach(l=>{n[l]===void 0&&(n[l]=i[l])})}typeof s=="object"&&!XM(s)&&t(s)})}}function XM(r){try{return JSON.stringify(r),!1}catch{return!0}}function WM(r,e){if(typeof e!="string")return;const[t,n]=e.split("#",2);if(t)throw new Error(Sf.EXTERNAL_REFERENCE_NOT_SUPPORTED.replace("%s",e));return qM(n).split("/").slice(1).reduce((o,s)=>o[s],r)}const zM="[",UM="]",YM="{",LM="}",HM=":",GM=",",mS="true",gS="false",OS="null",Sy='"',FM=new Map([["t",mS],["f",gS],["n",OS]]),Qf=new Map([[Sy,Sy],["\\","\\"],["/","/"],["b","\b"],["n",`
223
- `],["f","\f"],["r","\r"],["t"," "]]),Gu=new Map([[zM,"LBracket"],[UM,"RBracket"],[YM,"LBrace"],[LM,"RBrace"],[HM,"Colon"],[GM,"Comma"],[mS,"Boolean"],[gS,"Boolean"],[OS,"Null"]]);class bi extends Error{constructor(e,{line:t,column:n,offset:o}){super(`${e} (${t}:${n})`),this.line=t,this.column=n,this.offset=o}}class KM extends bi{constructor(e,t){super(`Unexpected character '${e}' found.`,t)}}class Fu extends bi{constructor(e){super(`Unexpected token ${e.type} found.`,e.loc.start)}}class JM extends bi{constructor(e){super("Unexpected end of input found.",e)}}const $y='"',Py="/",xy="*",eq={mode:"json",ranges:!1};function tq(r){return/[\s\n]/.test(r)}function Sn(r){return r>="0"&&r<="9"}function rq(r){return Sn(r)||/[a-f]/i.test(r)}function nq(r){return r>="1"&&r<="9"}function oq(r){return/[tfn]/.test(r)}function sq(r){return Sn(r)||r==="."||r==="-"}function aq(r,e){e=Object.freeze({...eq,...e});let t=-1,n=1,o=0,s=!1;const i=[];function l(y,b,v,k){const S=v.offset+b.length;let w=e.ranges?{range:[v.offset,S]}:void 0;return{type:y,loc:{start:v,end:k||{line:v.line,column:v.column+b.length,offset:S}},...w}}function c(){let y=r.charAt(++t);return s?(n++,o=1,s=!1):o++,y==="\r"?(s=!0,r.charAt(t+1)===`
222
+ `,t)+1}return{type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return{type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return{type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return{type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;const t=Al(e),n=Lo(t);return n.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n}]}}case"map-value-ind":{this.onKeyLine=!0;const t=Al(e),n=Lo(t);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:n,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(n=>n.type==="newline"||n.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()))}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop())}}}function lS(r){const e=r.prettyErrors!==!1;return{lineCounter:r.lineCounter||e&&new aS||null,prettyErrors:e}}function N7(r,e={}){const{lineCounter:t,prettyErrors:n}=lS(e),o=new Vm(t==null?void 0:t.addNewLine),s=new Rm(e),i=Array.from(s.compose(o.parse(r)));if(n&&t)for(const l of i)l.errors.forEach(Wc(r,t)),l.warnings.forEach(Wc(r,t));return i.length>0?i:Object.assign([],{empty:!0},s.streamInfo())}function cS(r,e={}){const{lineCounter:t,prettyErrors:n}=lS(e),o=new Vm(t==null?void 0:t.addNewLine),s=new Rm(e);let i=null;for(const l of s.compose(o.parse(r),!0,r.length))if(!i)i=l;else if(i.options.logLevel!=="silent"){i.errors.push(new go(l.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return n&&t&&(i.errors.forEach(Wc(r,t)),i.warnings.forEach(Wc(r,t))),i}function A7(r,e,t){let n;typeof e=="function"?n=e:t===void 0&&e&&typeof e=="object"&&(t=e);const o=cS(r,t);if(!o)return null;if(o.warnings.forEach(s=>Tk(o.options.logLevel,s)),o.errors.length>0){if(o.options.logLevel!=="silent")throw o.errors[0];o.errors=[]}return o.toJS(Object.assign({reviver:n},t))}function R7(r,e,t){let n=null;if(typeof e=="function"||Array.isArray(e)?n=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){const o=Math.round(t);t=o<1?void 0:o>8?{indent:8}:{indent:o}}if(r===void 0){const{keepUndefined:o}=t??e??{};if(!o)return}return new ta(r,n,t).toString(t)}const dS=Object.freeze(Object.defineProperty({__proto__:null,Alias:Bd,CST:T7,Composer:Rm,Document:ta,Lexer:sS,LineCounter:aS,Pair:Tt,Parser:Vm,Scalar:de,Schema:zd,YAMLError:Nm,YAMLMap:Zt,YAMLParseError:go,YAMLSeq:Mn,YAMLWarning:Lk,isAlias:Ro,isCollection:je,isDocument:Gs,isMap:Fs,isNode:ze,isPair:Ie,isScalar:Ee,isSeq:Ks,parse:A7,parseAllDocuments:N7,parseDocument:cS,stringify:R7,visit:Dn,visitAsync:Vd},Symbol.toStringTag,{value:"Module"}));function uS(r){if(Ok(r))return r;if(typeof r=="string")try{return JSON.parse(r)}catch{return dS.parse(r)}return r}function hS(r){if(Ok(r))return r;const e=uS(r);return[{isEntrypoint:!0,specification:e,filename:"openapi.json",dir:"./",references:PM(e)}]}async function V7(r){const e=new Im,t=hS(r),n=await e.validate(t),o=structuredClone(e.specification),s=e.resolveReferences(t);return{valid:n.valid,version:e.version,errors:n.errors,specification:o,schema:s}}const B7=r=>JSON.stringify(r,null,2),Z7=r=>dS.stringify(r);function I7(r){var e;if((e=r.openapi)!=null&&e.startsWith("3.0"))r.openapi="3.1.0";else return r;return r=Tr(r,t=>(t.type!=="undefined"&&t.nullable===!0&&(t.type=["null",t.type],delete t.nullable),t)),r=Tr(r,t=>(t.exclusiveMinimum===!0?(t.exclusiveMinimum=t.minimum,delete t.minimum):t.exclusiveMinimum===!1&&delete t.exclusiveMinimum,t.exclusiveMaximum===!0?(t.exclusiveMaximum=t.maximum,delete t.maximum):t.exclusiveMaximum===!1&&delete t.exclusiveMaximum,t)),r=Tr(r,t=>(t.example!==void 0&&(t.examples={default:t.example},delete t.example),t)),r=Tr(r,t=>{if(t.type==="object"&&t.properties!==void 0)for(const[n,o]of Object.entries(t.properties))o!==void 0&&o.type==="string"&&o.format==="binary"&&(o.contentEncoding="application/octet-stream",delete o.format);return t}),r=Tr(r,t=>{if(!(t.type==="string"&&t.format==="binary"))return t}),r=Tr(r,t=>t.type==="string"&&t.format==="base64"?{type:"string",contentEncoding:"base64"}:t),r}function j7(r){return r}function D7(r){return[j7,I7].reduce((e,t)=>t(e),r)}async function M7(r){const e=new Im,t=hS(r);return{...await e.validate(t),specification:e.specification,version:e.version}}function fS(r){for(const e of new Set(gk)){const t=e==="2.0"?"swagger":"openapi",n=r[t];if(typeof n=="string"&&n.startsWith(e))return{version:e,specificationType:t,specificationVersion:n}}return{version:void 0,specificationType:void 0,specificationVersion:void 0}}function q7(r){return decodeURI(r.replace(/~1/g,"/").replace(/~0/g,"~"))}function pS(r){const e=structuredClone(r);return t(e),t(e),e;function t(n){Object.entries(n??{}).forEach(([o,s])=>{if(n.$ref!==void 0){const i=W7(e,n.$ref);delete n.$ref,typeof i=="object"&&Object.keys(i).forEach(l=>{n[l]===void 0&&(n[l]=i[l])})}typeof s=="object"&&!X7(s)&&t(s)})}}function X7(r){try{return JSON.stringify(r),!1}catch{return!0}}function W7(r,e){if(typeof e!="string")return;const[t,n]=e.split("#",2);if(t)throw new Error(Sf.EXTERNAL_REFERENCE_NOT_SUPPORTED.replace("%s",e));return q7(n).split("/").slice(1).reduce((o,s)=>o[s],r)}const z7="[",U7="]",Y7="{",L7="}",H7=":",G7=",",mS="true",gS="false",OS="null",Sy='"',F7=new Map([["t",mS],["f",gS],["n",OS]]),Qf=new Map([[Sy,Sy],["\\","\\"],["/","/"],["b","\b"],["n",`
223
+ `],["f","\f"],["r","\r"],["t"," "]]),Gu=new Map([[z7,"LBracket"],[U7,"RBracket"],[Y7,"LBrace"],[L7,"RBrace"],[H7,"Colon"],[G7,"Comma"],[mS,"Boolean"],[gS,"Boolean"],[OS,"Null"]]);class bi extends Error{constructor(e,{line:t,column:n,offset:o}){super(`${e} (${t}:${n})`),this.line=t,this.column=n,this.offset=o}}class K7 extends bi{constructor(e,t){super(`Unexpected character '${e}' found.`,t)}}class Fu extends bi{constructor(e){super(`Unexpected token ${e.type} found.`,e.loc.start)}}class J7 extends bi{constructor(e){super("Unexpected end of input found.",e)}}const $y='"',Py="/",xy="*",eq={mode:"json",ranges:!1};function tq(r){return/[\s\n]/.test(r)}function Sn(r){return r>="0"&&r<="9"}function rq(r){return Sn(r)||/[a-f]/i.test(r)}function nq(r){return r>="1"&&r<="9"}function oq(r){return/[tfn]/.test(r)}function sq(r){return Sn(r)||r==="."||r==="-"}function aq(r,e){e=Object.freeze({...eq,...e});let t=-1,n=1,o=0,s=!1;const i=[];function l(y,b,v,k){const S=v.offset+b.length;let w=e.ranges?{range:[v.offset,S]}:void 0;return{type:y,loc:{start:v,end:k||{line:v.line,column:v.column+b.length,offset:S}},...w}}function c(){let y=r.charAt(++t);return s?(n++,o=1,s=!1):o++,y==="\r"?(s=!0,r.charAt(t+1)===`
224
224
  `&&t++):y===`
225
- `&&(s=!0),y}function d(){return{line:n,column:o,offset:t}}function u(y){let b=FM.get(y);if(r.slice(t,t+b.length)===b)return t+=b.length-1,o+=b.length-1,{value:b,c:c()};for(let v=1;v<b.length;v++)b[v]!==r.charAt(t+v)&&m(c())}function h(y){let b=y;for(y=c();y&&y!==$y;){if(y==="\\")if(b+=y,y=c(),Qf.has(y))b+=y;else if(y==="u"){b+=y;for(let v=0;v<4;v++)y=c(),rq(y)?b+=y:m(y)}else m(y);else b+=y;y=c()}return y||g(),b+=y,{value:b,c:c()}}function f(y){let b="";if(y==="-"&&(b+=y,y=c(),Sn(y)||m(y)),y==="0")b+=y,y=c(),Sn(y)&&m(y);else{nq(y)||m(y);do b+=y,y=c();while(Sn(y))}if(y===".")do b+=y,y=c();while(Sn(y));if(y==="e"||y==="E")for(b+=y,y=c(),(y==="+"||y==="-")&&(b+=y,y=c()),y||g(),Sn(y)||m(y);Sn(y);)b+=y,y=c();return{value:b,c:y}}function p(y){let b=y;if(y=c(),y==="/"){do b+=y,y=c();while(y&&y!=="\r"&&y!==`
226
- `);return{value:b,c:y}}if(y===xy){for(;y;)if(b+=y,y=c(),y===xy&&(b+=y,y=c(),y===Py))return b+=y,y=c(),{value:b,c:y};g()}m(y)}function m(y){throw new KM(y,d())}function g(){throw new JM(d())}let O=c();for(;t<r.length;){for(;tq(O);)O=c();if(!O)break;const y=d();if(Gu.has(O))i.push(l(Gu.get(O),O,y)),O=c();else if(oq(O)){const b=u(O);let v=b.value;O=b.c,i.push(l(Gu.get(v),v,y))}else if(sq(O)){const b=f(O);let v=b.value;O=b.c,i.push(l("Number",v,y))}else if(O===$y){const b=h(O);let v=b.value;O=b.c,i.push(l("String",v,y))}else if(O===Py&&e.mode==="jsonc"){const b=p(O);let v=b.value;O=b.c,i.push(l(v.startsWith("//")?"LineComment":"BlockComment",v,y,d()))}else m(O)}return i}const Ur={document(r,e={}){return{type:"Document",body:r,...e}},string(r,e={}){return{type:"String",value:r,...e}},number(r,e={}){return{type:"Number",value:r,...e}},boolean(r,e={}){return{type:"Boolean",value:r,...e}},null(r={}){return{type:"Null",...r}},array(r,e={}){return{type:"Array",elements:r,...e}},element(r,e={}){return{type:"Element",value:r,...e}},object(r,e={}){return{type:"Object",members:r,...e}},member(r,e,t={}){return{type:"Member",name:r,value:e,...t}}},iq={mode:"json",ranges:!1,tokens:!1};function lq(r,e){let t="",n=r.indexOf("\\"),o=0;for(;n>=0;){t+=r.slice(o,n);const s=r.charAt(n+1);if(Qf.has(s))t+=Qf.get(s),o=n+2;else if(s==="u"){const i=r.slice(n+2,n+6);if(i.length<4||/[^0-9a-f]/i.test(i))throw new bi(`Invalid unicode escape \\u${i}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});t+=String.fromCharCode(parseInt(i,16)),o=n+6}else throw new bi(`Invalid escape \\${s}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});n=r.indexOf("\\",o)}return t+=r.slice(o),t}function cq(r,e){switch(e.type){case"Boolean":return r==="true";case"Number":return Number(r);case"String":return lq(r.slice(1,-1),e);default:throw new TypeError(`Unknown token type "${e.type}.`)}}function dq(r,e){e=Object.freeze({...iq,...e});const t=aq(r,{mode:e.mode,ranges:e.ranges});let n=0;function o(){return t[n++]}function s(){const b=t[n++];return b&&b.type.endsWith("Comment")?s():b}const i=e.mode==="jsonc"?s:o;function l(b,v){if(!b||b.type!==v)throw new Fu(b)}function c(b,v){return e.ranges?{range:[b.offset,v.offset]}:void 0}function d(b){const v=c(b.loc.start,b.loc.end),k=cq(r.slice(b.loc.start.offset,b.loc.end.offset),b),S={loc:{start:{...b.loc.start},end:{...b.loc.end}},...v};switch(b.type){case"String":return Ur.string(k,S);case"Number":return Ur.number(k,S);case"Boolean":return Ur.boolean(k,S);default:throw new TypeError(`Unknown token type ${b.type}.`)}}function u(b){const v=c(b.loc.start,b.loc.end);return Ur.null({loc:{start:{...b.loc.start},end:{...b.loc.end}},...v})}function h(b){l(b,"String");const v=d(b);b=i(),l(b,"Colon");const k=m(),S=c(v.loc.start,k.loc.end);return Ur.member(v,k,{loc:{start:{...v.loc.start},end:{...k.loc.end}},...S})}function f(b){l(b,"LBrace");const v=[];let k=i();if(k&&k.type!=="RBrace")do if(v.push(h(k)),k=i(),k.type==="Comma")k=i();else break;while(k);l(k,"RBrace");const S=c(b.loc.start,k.loc.end);return Ur.object(v,{loc:{start:{...b.loc.start},end:{...k.loc.end}},...S})}function p(b){l(b,"LBracket");const v=[];let k=i();if(k&&k.type!=="RBracket")do{const w=m(k);if(v.push(Ur.element(w,{loc:w.loc})),k=i(),k.type==="Comma")k=i();else break}while(k);l(k,"RBracket");const S=c(b.loc.start,k.loc.end);return Ur.array(v,{loc:{start:{...b.loc.start},end:{...k.loc.end}},...S})}function m(b){switch(b=b||i(),b.type){case"String":case"Boolean":case"Number":return d(b);case"Null":return u(b);case"LBrace":return f(b);case"LBracket":return p(b);default:throw new Fu(b)}}const g=m(),O=i();if(O)throw new Fu(O);const y={loc:{start:{line:1,column:1,offset:0},end:{...g.loc.end}}};return e.tokens&&(y.tokens=t),e.ranges&&(y.range=[y.loc.start.offset,y.loc.end.offset]),Ur.document(g,y)}const uq=r=>e=>r===e,hq=r=>e=>!r(e),fq=r=>Object.values(r),pq=r=>r!==void 0,Bm=r=>e=>e.keyword===r,mq=Bm("required"),gq=Bm("anyOf"),yS=Bm("enum"),Va=r=>r&&r.errors||[],bS=r=>r&&fq(r.children)||[],Oq=r=>e=>bS(r).filter(hq(uq(e))),_y=r=>e=>e.reduce((t,n)=>t.concat(n),r),vS=r=>{const e=r.split("/").slice(1);for(const t in e)e[t]=e[t].split("~1").join("/").split("~0").join("~");return e};function yq(r,e,t){const n=vS(e),o=n.length-1;return n.reduce((s,i,l)=>{switch(s==null?void 0:s.type){case"Object":{const c=s.members.filter(h=>h.name.value===i);if(c.length!==1)throw new Error(`Couldn't find property ${i} of ${e}`);const{name:d,value:u}=c[0];return t&&l===o?d:u}case"Array":return s.elements[i];default:if(s.loc)return s}},r.body)}function bq(r){if(!r||!r.elements)return"";const e=r.elements.filter(t=>t&&t.name&&t.name.value==="type");return e.length&&e[0].value&&`:${e[0].value.value}`||""}function vq(r,e){let t="";return vS(e).reduce((n,o)=>{switch(n==null?void 0:n.type){case"Object":{t+=`/${o}`;const s=n.members.filter(i=>i.name.value===o);if(s.length!==1)throw new Error(`Couldn't find property ${o} of ${e}`);return s[0].value}case"Array":return t+=`/${o}${bq(n.elements[o])}`,n.elements[o]}},r.body),t}class ra{constructor(e={isIdentifierLocation:!1},{colorize:t,data:n,schema:o,jsonAst:s,jsonRaw:i}){this.options=e,this.colorize=!!(t||t===void 0),this.data=n,this.schema=o,this.jsonAst=s,this.jsonRaw=i}getChalk(){return this.colorize?chalk:new chalk.Instance({level:0})}getLocation(e=this.instancePath){const{isIdentifierLocation:t,isSkipEndLocation:n}=this.options,{loc:o}=yq(this.jsonAst,e,t);return{start:o.start,end:n?void 0:o.end}}getDecoratedPath(e=this.instancePath){return vq(this.jsonAst,e)}getCodeFrame(e,t=this.instancePath){return codeFrameColumns(this.jsonRaw,this.getLocation(t),{highlightCode:!1,message:e})}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}print(){throw new Error(`Implement the 'print' method inside ${this.constructor.name}!`)}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class wq extends ra{constructor(...e){super(...e),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold ADDITIONAL PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.additionalProperty}} is not expected to be here!`,`${this.instancePath}/${t.additionalProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.additionalProperty}`),error:`${this.getDecoratedPath()} Property ${e.additionalProperty} is not expected to be here`,path:this.instancePath}}}class kq extends ra{constructor(...e){super(...e),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}print(){const{keyword:e,message:t}=this.options,n=this.getChalk();return[n`{red {bold ${e.toUpperCase()}} ${t}}\n`].concat(this.getCodeFrame(n`👈🏽 {magentaBright ${e}} ${t}`))}getError(){const{keyword:e,message:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()}: ${e} ${t}`,path:this.instancePath}}}var Hd={},Sq=/~/,$q=/~[01]/g;function Pq(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function wS(r){return Sq.test(r)?r.replace($q,Pq):r}function xq(r,e,t){for(var n,o,s=1,i=e.length;s<i;){if(e[s]==="constructor"||e[s]==="prototype"||e[s]==="__proto__")return r;if(n=wS(e[s++]),o=i>s,typeof r[n]>"u"&&(Array.isArray(r)&&n==="-"&&(n=r.length),o&&(e[s]!==""&&e[s]<1/0||e[s]==="-"?r[n]=[]:r[n]={})),!o)break;r=r[n]}var l=r[n];return t===void 0?delete r[n]:r[n]=t,l}function Zm(r){if(typeof r=="string"){if(r=r.split("/"),r[0]==="")return r;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(r)){for(const e of r)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return r}throw new Error("Invalid JSON pointer.")}function kS(r,e){if(typeof r!="object")throw new Error("Invalid input object.");e=Zm(e);var t=e.length;if(t===1)return r;for(var n=1;n<t;){if(r=r[wS(e[n++])],t===n)return r;if(typeof r!="object"||r===null)return}}function SS(r,e,t){if(typeof r!="object")throw new Error("Invalid input object.");if(e=Zm(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return xq(r,e,t)}function _q(r){var e=Zm(r);return{get:function(t){return kS(t,e)},set:function(t,n){return SS(t,e,n)}}}Hd.get=kS;Hd.set=SS;Hd.compile=_q;const Ku=[],Cy=[];function Cq(r,e){if(r===e)return 0;const t=r;r.length>e.length&&(r=e,e=t);let n=r.length,o=e.length;for(;n>0&&r.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let s=0;for(;s<n&&r.charCodeAt(s)===e.charCodeAt(s);)s++;if(n-=s,o-=s,n===0)return o;let i,l,c,d,u=0,h=0;for(;u<n;)Cy[u]=r.charCodeAt(s+u),Ku[u]=++u;for(;h<o;)for(i=e.charCodeAt(s+h),c=h++,l=h,u=0;u<n;u++)d=i===Cy[u]?c:c+1,c=Ku[u],l=Ku[u]=c>l?d>l?l+1:d:d>c?c+1:d;return l}class Tq extends ra{constructor(...e){super(...e),this.name="EnumValidationError"}print(){const{message:e,params:{allowedValues:t}}=this.options,n=this.getChalk(),o=this.findBestMatch();return[n`{red {bold ENUM} ${e}}`,n`{red (${t.join(", ")})}\n`].concat(this.getCodeFrame(o!==null?n`👈🏽 Did you mean {magentaBright ${o}} here?`:n`👈🏽 Unexpected value, should be equal to one of the allowed values`))}getError(){const{message:e,params:t}=this.options,n=this.findBestMatch(),o=t.allowedValues.join(", "),s={...this.getLocation(),error:`${this.getDecoratedPath()} ${e}: ${o}`,path:this.instancePath};return n!==null&&(s.suggestion=`Did you mean ${n}?`),s}findBestMatch(){const{params:{allowedValues:e}}=this.options,t=this.instancePath===""?this.data:Hd.get(this.data,this.instancePath);if(!t)return null;const n=e.map(o=>({value:o,weight:Cq(o,t.toString())})).sort((o,s)=>o.weight>s.weight?1:o.weight<s.weight?-1:0)[0];return e.length===1||n.weight<n.value.length?n.value:null}}class Qq extends ra{constructor(...e){super(...e),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t,propertyName:n}=this.options,o=this.getChalk();return[o`{red {bold PROPERTY} ${e}}\n`].concat(this.getCodeFrame(o`😲 must match pattern {magentaBright ${t.pattern}}`,`${this.instancePath}/${n}`))}getError(){const{params:e,propertyName:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} Property "${t}" must match pattern ${e.pattern}`,path:this.instancePath}}}class Eq extends ra{constructor(...e){super(...e),this.name="RequiredValidationError"}getLocation(e=this.instancePath){const{start:t}=super.getLocation(e);return{start:t}}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold REQUIRED} ${e}}\n`].concat(this.getCodeFrame(n`☹️ {magentaBright ${t.missingProperty}} is missing here!`))}getError(){const{message:e}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} ${e}`,path:this.instancePath}}}class Nq extends ra{constructor(...e){super(...e),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold UNEVALUATED PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.unevaluatedProperty}} is not expected to be here!`,`${this.instancePath}/${t.unevaluatedProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.unevaluatedProperty}`),error:`${this.getDecoratedPath()} Property ${e.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const Aq=/\/[\w_-]+(\/\d+)?/g;function Rq(r=[]){const e={children:{}};return r.forEach(t=>{const n=typeof t.instancePath<"u"?t.instancePath:t.dataPath,o=n===""?[""]:n.match(Aq);o&&o.reduce((s,i,l)=>(s.children[i]=s.children[i]||{children:{},errors:[]},l===o.length-1&&s.children[i].errors.push(t),s.children[i]),e)}),e}function $S(r,e,t){Va(r).forEach(n=>{mq(n)&&(r.errors=[n],r.children={})}),Va(r).some(gq)&&Object.keys(r.children).length>0&&delete r.errors,r.errors&&r.errors.length&&Va(r).every(yS)&&Oq(e)(r).filter(pq).some(Va)&&delete e.children[t],Object.entries(r.children).forEach(([n,o])=>$S(o,r,n))}function PS(r,e){const t=Va(r);if(t.length&&t.every(yS)){const n=[...new Set(_y([])(t.map(s=>s.params.allowedValues)))],o=t[0];return[new Tq({...o,params:{allowedValues:n}},e)]}return _y(t.reduce((n,o)=>{switch(o.keyword){case"additionalProperties":return n.concat(new wq(o,e));case"pattern":return n.concat(new Qq(o,e));case"required":return n.concat(new Eq(o,e));case"unevaluatedProperties":return n.concat(new Nq(o,e));default:return n.concat(new kq(o,e))}},[]))(bS(r).map(n=>PS(n,e)))}function Vq(r,e){const t=Rq(r||[]);return $S(t),PS(t,e)}function Bq(r,e,t,n={}){const{colorize:o=!0,format:s="cli",indent:i=null,json:l=null}=n,c=l||JSON.stringify(e,null,i),d=dq(c),u=p=>p.print().join(`
225
+ `&&(s=!0),y}function d(){return{line:n,column:o,offset:t}}function u(y){let b=F7.get(y);if(r.slice(t,t+b.length)===b)return t+=b.length-1,o+=b.length-1,{value:b,c:c()};for(let v=1;v<b.length;v++)b[v]!==r.charAt(t+v)&&m(c())}function h(y){let b=y;for(y=c();y&&y!==$y;){if(y==="\\")if(b+=y,y=c(),Qf.has(y))b+=y;else if(y==="u"){b+=y;for(let v=0;v<4;v++)y=c(),rq(y)?b+=y:m(y)}else m(y);else b+=y;y=c()}return y||g(),b+=y,{value:b,c:c()}}function f(y){let b="";if(y==="-"&&(b+=y,y=c(),Sn(y)||m(y)),y==="0")b+=y,y=c(),Sn(y)&&m(y);else{nq(y)||m(y);do b+=y,y=c();while(Sn(y))}if(y===".")do b+=y,y=c();while(Sn(y));if(y==="e"||y==="E")for(b+=y,y=c(),(y==="+"||y==="-")&&(b+=y,y=c()),y||g(),Sn(y)||m(y);Sn(y);)b+=y,y=c();return{value:b,c:y}}function p(y){let b=y;if(y=c(),y==="/"){do b+=y,y=c();while(y&&y!=="\r"&&y!==`
226
+ `);return{value:b,c:y}}if(y===xy){for(;y;)if(b+=y,y=c(),y===xy&&(b+=y,y=c(),y===Py))return b+=y,y=c(),{value:b,c:y};g()}m(y)}function m(y){throw new K7(y,d())}function g(){throw new J7(d())}let O=c();for(;t<r.length;){for(;tq(O);)O=c();if(!O)break;const y=d();if(Gu.has(O))i.push(l(Gu.get(O),O,y)),O=c();else if(oq(O)){const b=u(O);let v=b.value;O=b.c,i.push(l(Gu.get(v),v,y))}else if(sq(O)){const b=f(O);let v=b.value;O=b.c,i.push(l("Number",v,y))}else if(O===$y){const b=h(O);let v=b.value;O=b.c,i.push(l("String",v,y))}else if(O===Py&&e.mode==="jsonc"){const b=p(O);let v=b.value;O=b.c,i.push(l(v.startsWith("//")?"LineComment":"BlockComment",v,y,d()))}else m(O)}return i}const Ur={document(r,e={}){return{type:"Document",body:r,...e}},string(r,e={}){return{type:"String",value:r,...e}},number(r,e={}){return{type:"Number",value:r,...e}},boolean(r,e={}){return{type:"Boolean",value:r,...e}},null(r={}){return{type:"Null",...r}},array(r,e={}){return{type:"Array",elements:r,...e}},element(r,e={}){return{type:"Element",value:r,...e}},object(r,e={}){return{type:"Object",members:r,...e}},member(r,e,t={}){return{type:"Member",name:r,value:e,...t}}},iq={mode:"json",ranges:!1,tokens:!1};function lq(r,e){let t="",n=r.indexOf("\\"),o=0;for(;n>=0;){t+=r.slice(o,n);const s=r.charAt(n+1);if(Qf.has(s))t+=Qf.get(s),o=n+2;else if(s==="u"){const i=r.slice(n+2,n+6);if(i.length<4||/[^0-9a-f]/i.test(i))throw new bi(`Invalid unicode escape \\u${i}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});t+=String.fromCharCode(parseInt(i,16)),o=n+6}else throw new bi(`Invalid escape \\${s}.`,{line:e.loc.start.line,column:e.loc.start.column+n,offset:e.loc.start.offset+n});n=r.indexOf("\\",o)}return t+=r.slice(o),t}function cq(r,e){switch(e.type){case"Boolean":return r==="true";case"Number":return Number(r);case"String":return lq(r.slice(1,-1),e);default:throw new TypeError(`Unknown token type "${e.type}.`)}}function dq(r,e){e=Object.freeze({...iq,...e});const t=aq(r,{mode:e.mode,ranges:e.ranges});let n=0;function o(){return t[n++]}function s(){const b=t[n++];return b&&b.type.endsWith("Comment")?s():b}const i=e.mode==="jsonc"?s:o;function l(b,v){if(!b||b.type!==v)throw new Fu(b)}function c(b,v){return e.ranges?{range:[b.offset,v.offset]}:void 0}function d(b){const v=c(b.loc.start,b.loc.end),k=cq(r.slice(b.loc.start.offset,b.loc.end.offset),b),S={loc:{start:{...b.loc.start},end:{...b.loc.end}},...v};switch(b.type){case"String":return Ur.string(k,S);case"Number":return Ur.number(k,S);case"Boolean":return Ur.boolean(k,S);default:throw new TypeError(`Unknown token type ${b.type}.`)}}function u(b){const v=c(b.loc.start,b.loc.end);return Ur.null({loc:{start:{...b.loc.start},end:{...b.loc.end}},...v})}function h(b){l(b,"String");const v=d(b);b=i(),l(b,"Colon");const k=m(),S=c(v.loc.start,k.loc.end);return Ur.member(v,k,{loc:{start:{...v.loc.start},end:{...k.loc.end}},...S})}function f(b){l(b,"LBrace");const v=[];let k=i();if(k&&k.type!=="RBrace")do if(v.push(h(k)),k=i(),k.type==="Comma")k=i();else break;while(k);l(k,"RBrace");const S=c(b.loc.start,k.loc.end);return Ur.object(v,{loc:{start:{...b.loc.start},end:{...k.loc.end}},...S})}function p(b){l(b,"LBracket");const v=[];let k=i();if(k&&k.type!=="RBracket")do{const w=m(k);if(v.push(Ur.element(w,{loc:w.loc})),k=i(),k.type==="Comma")k=i();else break}while(k);l(k,"RBracket");const S=c(b.loc.start,k.loc.end);return Ur.array(v,{loc:{start:{...b.loc.start},end:{...k.loc.end}},...S})}function m(b){switch(b=b||i(),b.type){case"String":case"Boolean":case"Number":return d(b);case"Null":return u(b);case"LBrace":return f(b);case"LBracket":return p(b);default:throw new Fu(b)}}const g=m(),O=i();if(O)throw new Fu(O);const y={loc:{start:{line:1,column:1,offset:0},end:{...g.loc.end}}};return e.tokens&&(y.tokens=t),e.ranges&&(y.range=[y.loc.start.offset,y.loc.end.offset]),Ur.document(g,y)}const uq=r=>e=>r===e,hq=r=>e=>!r(e),fq=r=>Object.values(r),pq=r=>r!==void 0,Bm=r=>e=>e.keyword===r,mq=Bm("required"),gq=Bm("anyOf"),yS=Bm("enum"),Va=r=>r&&r.errors||[],bS=r=>r&&fq(r.children)||[],Oq=r=>e=>bS(r).filter(hq(uq(e))),_y=r=>e=>e.reduce((t,n)=>t.concat(n),r),vS=r=>{const e=r.split("/").slice(1);for(const t in e)e[t]=e[t].split("~1").join("/").split("~0").join("~");return e};function yq(r,e,t){const n=vS(e),o=n.length-1;return n.reduce((s,i,l)=>{switch(s==null?void 0:s.type){case"Object":{const c=s.members.filter(h=>h.name.value===i);if(c.length!==1)throw new Error(`Couldn't find property ${i} of ${e}`);const{name:d,value:u}=c[0];return t&&l===o?d:u}case"Array":return s.elements[i];default:if(s.loc)return s}},r.body)}function bq(r){if(!r||!r.elements)return"";const e=r.elements.filter(t=>t&&t.name&&t.name.value==="type");return e.length&&e[0].value&&`:${e[0].value.value}`||""}function vq(r,e){let t="";return vS(e).reduce((n,o)=>{switch(n==null?void 0:n.type){case"Object":{t+=`/${o}`;const s=n.members.filter(i=>i.name.value===o);if(s.length!==1)throw new Error(`Couldn't find property ${o} of ${e}`);return s[0].value}case"Array":return t+=`/${o}${bq(n.elements[o])}`,n.elements[o]}},r.body),t}class ra{constructor(e={isIdentifierLocation:!1},{colorize:t,data:n,schema:o,jsonAst:s,jsonRaw:i}){this.options=e,this.colorize=!!(t||t===void 0),this.data=n,this.schema=o,this.jsonAst=s,this.jsonRaw=i}getChalk(){return this.colorize?chalk:new chalk.Instance({level:0})}getLocation(e=this.instancePath){const{isIdentifierLocation:t,isSkipEndLocation:n}=this.options,{loc:o}=yq(this.jsonAst,e,t);return{start:o.start,end:n?void 0:o.end}}getDecoratedPath(e=this.instancePath){return vq(this.jsonAst,e)}getCodeFrame(e,t=this.instancePath){return codeFrameColumns(this.jsonRaw,this.getLocation(t),{highlightCode:!1,message:e})}get instancePath(){return typeof this.options.instancePath<"u"?this.options.instancePath:this.options.dataPath}print(){throw new Error(`Implement the 'print' method inside ${this.constructor.name}!`)}getError(){throw new Error(`Implement the 'getError' method inside ${this.constructor.name}!`)}}class wq extends ra{constructor(...e){super(...e),this.name="AdditionalPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold ADDITIONAL PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.additionalProperty}} is not expected to be here!`,`${this.instancePath}/${t.additionalProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.additionalProperty}`),error:`${this.getDecoratedPath()} Property ${e.additionalProperty} is not expected to be here`,path:this.instancePath}}}class kq extends ra{constructor(...e){super(...e),this.name="DefaultValidationError",this.options.isSkipEndLocation=!0}print(){const{keyword:e,message:t}=this.options,n=this.getChalk();return[n`{red {bold ${e.toUpperCase()}} ${t}}\n`].concat(this.getCodeFrame(n`👈🏽 {magentaBright ${e}} ${t}`))}getError(){const{keyword:e,message:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()}: ${e} ${t}`,path:this.instancePath}}}var Hd={},Sq=/~/,$q=/~[01]/g;function Pq(r){switch(r){case"~1":return"/";case"~0":return"~"}throw new Error("Invalid tilde escape: "+r)}function wS(r){return Sq.test(r)?r.replace($q,Pq):r}function xq(r,e,t){for(var n,o,s=1,i=e.length;s<i;){if(e[s]==="constructor"||e[s]==="prototype"||e[s]==="__proto__")return r;if(n=wS(e[s++]),o=i>s,typeof r[n]>"u"&&(Array.isArray(r)&&n==="-"&&(n=r.length),o&&(e[s]!==""&&e[s]<1/0||e[s]==="-"?r[n]=[]:r[n]={})),!o)break;r=r[n]}var l=r[n];return t===void 0?delete r[n]:r[n]=t,l}function Zm(r){if(typeof r=="string"){if(r=r.split("/"),r[0]==="")return r;throw new Error("Invalid JSON pointer.")}else if(Array.isArray(r)){for(const e of r)if(typeof e!="string"&&typeof e!="number")throw new Error("Invalid JSON pointer. Must be of type string or number.");return r}throw new Error("Invalid JSON pointer.")}function kS(r,e){if(typeof r!="object")throw new Error("Invalid input object.");e=Zm(e);var t=e.length;if(t===1)return r;for(var n=1;n<t;){if(r=r[wS(e[n++])],t===n)return r;if(typeof r!="object"||r===null)return}}function SS(r,e,t){if(typeof r!="object")throw new Error("Invalid input object.");if(e=Zm(e),e.length===0)throw new Error("Invalid JSON pointer for set.");return xq(r,e,t)}function _q(r){var e=Zm(r);return{get:function(t){return kS(t,e)},set:function(t,n){return SS(t,e,n)}}}Hd.get=kS;Hd.set=SS;Hd.compile=_q;const Ku=[],Cy=[];function Cq(r,e){if(r===e)return 0;const t=r;r.length>e.length&&(r=e,e=t);let n=r.length,o=e.length;for(;n>0&&r.charCodeAt(~-n)===e.charCodeAt(~-o);)n--,o--;let s=0;for(;s<n&&r.charCodeAt(s)===e.charCodeAt(s);)s++;if(n-=s,o-=s,n===0)return o;let i,l,c,d,u=0,h=0;for(;u<n;)Cy[u]=r.charCodeAt(s+u),Ku[u]=++u;for(;h<o;)for(i=e.charCodeAt(s+h),c=h++,l=h,u=0;u<n;u++)d=i===Cy[u]?c:c+1,c=Ku[u],l=Ku[u]=c>l?d>l?l+1:d:d>c?c+1:d;return l}class Tq extends ra{constructor(...e){super(...e),this.name="EnumValidationError"}print(){const{message:e,params:{allowedValues:t}}=this.options,n=this.getChalk(),o=this.findBestMatch();return[n`{red {bold ENUM} ${e}}`,n`{red (${t.join(", ")})}\n`].concat(this.getCodeFrame(o!==null?n`👈🏽 Did you mean {magentaBright ${o}} here?`:n`👈🏽 Unexpected value, should be equal to one of the allowed values`))}getError(){const{message:e,params:t}=this.options,n=this.findBestMatch(),o=t.allowedValues.join(", "),s={...this.getLocation(),error:`${this.getDecoratedPath()} ${e}: ${o}`,path:this.instancePath};return n!==null&&(s.suggestion=`Did you mean ${n}?`),s}findBestMatch(){const{params:{allowedValues:e}}=this.options,t=this.instancePath===""?this.data:Hd.get(this.data,this.instancePath);if(!t)return null;const n=e.map(o=>({value:o,weight:Cq(o,t.toString())})).sort((o,s)=>o.weight>s.weight?1:o.weight<s.weight?-1:0)[0];return e.length===1||n.weight<n.value.length?n.value:null}}class Qq extends ra{constructor(...e){super(...e),this.name="PatternValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t,propertyName:n}=this.options,o=this.getChalk();return[o`{red {bold PROPERTY} ${e}}\n`].concat(this.getCodeFrame(o`😲 must match pattern {magentaBright ${t.pattern}}`,`${this.instancePath}/${n}`))}getError(){const{params:e,propertyName:t}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} Property "${t}" must match pattern ${e.pattern}`,path:this.instancePath}}}class Eq extends ra{constructor(...e){super(...e),this.name="RequiredValidationError"}getLocation(e=this.instancePath){const{start:t}=super.getLocation(e);return{start:t}}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold REQUIRED} ${e}}\n`].concat(this.getCodeFrame(n`☹️ {magentaBright ${t.missingProperty}} is missing here!`))}getError(){const{message:e}=this.options;return{...this.getLocation(),error:`${this.getDecoratedPath()} ${e}`,path:this.instancePath}}}class Nq extends ra{constructor(...e){super(...e),this.name="UnevaluatedPropValidationError",this.options.isIdentifierLocation=!0}print(){const{message:e,params:t}=this.options,n=this.getChalk();return[n`{red {bold UNEVALUATED PROPERTY} ${e}}\n`].concat(this.getCodeFrame(n`😲 {magentaBright ${t.unevaluatedProperty}} is not expected to be here!`,`${this.instancePath}/${t.unevaluatedProperty}`))}getError(){const{params:e}=this.options;return{...this.getLocation(`${this.instancePath}/${e.unevaluatedProperty}`),error:`${this.getDecoratedPath()} Property ${e.unevaluatedProperty} is not expected to be here`,path:this.instancePath}}}const Aq=/\/[\w_-]+(\/\d+)?/g;function Rq(r=[]){const e={children:{}};return r.forEach(t=>{const n=typeof t.instancePath<"u"?t.instancePath:t.dataPath,o=n===""?[""]:n.match(Aq);o&&o.reduce((s,i,l)=>(s.children[i]=s.children[i]||{children:{},errors:[]},l===o.length-1&&s.children[i].errors.push(t),s.children[i]),e)}),e}function $S(r,e,t){Va(r).forEach(n=>{mq(n)&&(r.errors=[n],r.children={})}),Va(r).some(gq)&&Object.keys(r.children).length>0&&delete r.errors,r.errors&&r.errors.length&&Va(r).every(yS)&&Oq(e)(r).filter(pq).some(Va)&&delete e.children[t],Object.entries(r.children).forEach(([n,o])=>$S(o,r,n))}function PS(r,e){const t=Va(r);if(t.length&&t.every(yS)){const n=[...new Set(_y([])(t.map(s=>s.params.allowedValues)))],o=t[0];return[new Tq({...o,params:{allowedValues:n}},e)]}return _y(t.reduce((n,o)=>{switch(o.keyword){case"additionalProperties":return n.concat(new wq(o,e));case"pattern":return n.concat(new Qq(o,e));case"required":return n.concat(new Eq(o,e));case"unevaluatedProperties":return n.concat(new Nq(o,e));default:return n.concat(new kq(o,e))}},[]))(bS(r).map(n=>PS(n,e)))}function Vq(r,e){const t=Rq(r||[]);return $S(t),PS(t,e)}function Bq(r,e,t,n={}){const{colorize:o=!0,format:s="cli",indent:i=null,json:l=null}=n,c=l||JSON.stringify(e,null,i),d=dq(c),u=p=>p.print().join(`
227
227
  `),h=p=>p.getError(),f=Vq(t,{colorize:o,data:e,schema:r,jsonAst:d,jsonRaw:c});return s==="cli"?f.map(u).join(`
228
228
 
229
- `):f.map(h)}function Ba(r,e){return typeof e=="string"?[{start:{line:1,column:1,offset:0},error:e,path:""}]:Bq(r,null,e,{format:"js",indent:2,colorize:!1}).map(t=>(t.error=t.error.trim(),t))}function Zq(r){try{return pS(r),{valid:!0}}catch(e){return{valid:!1,errors:Ba(r,e.message)}}}class Im{constructor(){yn(this,"version"),yn(this,"ajvValidators",{}),yn(this,"externalRefs",{}),yn(this,"errors"),yn(this,"specificationVersion"),yn(this,"specificationType"),yn(this,"specification")}resolveReferences(e){return pS(e.find(t=>t.isEntrypoint===!0).specification)}async validate(e){var t;const n=e.find(s=>s.isEntrypoint),o=n==null?void 0:n.specification;this.specification=o,(t=this.specification)!=null&&t.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(o==null)return{valid:!1,errors:Ba(n,Sf.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(o[S7]=this.externalRefs);const{version:s,specificationType:i,specificationVersion:l}=fS(o);if(this.version=s,this.specificationVersion=l,this.specificationType=i,!s)return{valid:!1,errors:Ba(n,Sf.OPENAPI_VERSION_NOT_SUPPORTED)};const c=await this.getAjvValidator(s);return c(o)?Zq(n.specification):c.errors&&c.errors.length>0?{valid:!1,errors:Ba(n,c.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:Ba(n,s.message??s)}}}async getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const t=await AB(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${e}/schema.json`),n=k7[t.$schema],o=new n({strict:!1});return _j(o),e==="3.1"&&o.addFormat("media-range",!0),this.ajvValidators[e]=o.compile(t)}}yn(Im,"supportedVersions",gk);function Iq(){return{load:jq}}function jq(r){const e=uS(r);return{get:()=>e,details:()=>Fd(e),filter:t=>Xi(e,t),upgrade:()=>xS(e),validate:()=>jm(e),resolve:()=>Gd(e),toJson:()=>Wi(e),toYaml:()=>zi(e)}}function xS(r){const e=DM(r);return{get:()=>e,details:()=>Fd(e),filter:t=>Xi(e,t),validate:()=>jm(e),resolve:()=>Gd(e),toJson:()=>Wi(e),toYaml:()=>zi(e)}}async function jm(r){return{...await MM(r),filter:e=>Xi(r,e),get:()=>r,details:()=>Fd(r),resolve:()=>Gd(r),toJson:()=>Wi(r),toYaml:()=>zi(r)}}async function Gd(r){return{...await VM(r),filter:e=>Xi(r,e),toJson:()=>Wi(r),toYaml:()=>zi(r)}}function Xi(r,e){const t=$7(r,e);return{get:()=>t,details:()=>Fd(t),filter:()=>Xi(t,e),upgrade:()=>xS(t),validate:()=>jm(t),resolve:()=>Gd(t),toJson:()=>Wi(t),toYaml:()=>zi(t)}}function Fd(r){return fS(r)}function Wi(r){return BM(r)}function zi(r){return ZM(r)}const _S=r=>new Promise(async(e,t)=>{var n;try{const{schema:o,errors:s}=await Iq().load(r).resolve();if(s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
229
+ `):f.map(h)}function Ba(r,e){return typeof e=="string"?[{start:{line:1,column:1,offset:0},error:e,path:""}]:Bq(r,null,e,{format:"js",indent:2,colorize:!1}).map(t=>(t.error=t.error.trim(),t))}function Zq(r){try{return pS(r),{valid:!0}}catch(e){return{valid:!1,errors:Ba(r,e.message)}}}class Im{constructor(){yn(this,"version"),yn(this,"ajvValidators",{}),yn(this,"externalRefs",{}),yn(this,"errors"),yn(this,"specificationVersion"),yn(this,"specificationType"),yn(this,"specification")}resolveReferences(e){return pS(e.find(t=>t.isEntrypoint===!0).specification)}async validate(e){var t;const n=e.find(s=>s.isEntrypoint),o=n==null?void 0:n.specification;this.specification=o,(t=this.specification)!=null&&t.info&&!this.specification.info.version&&(this.specification.info.version="0.0.1");try{if(o==null)return{valid:!1,errors:Ba(n,Sf.EMPTY_OR_INVALID)};Object.keys(this.externalRefs).length>0&&(o[SM]=this.externalRefs);const{version:s,specificationType:i,specificationVersion:l}=fS(o);if(this.version=s,this.specificationVersion=l,this.specificationType=i,!s)return{valid:!1,errors:Ba(n,Sf.OPENAPI_VERSION_NOT_SUPPORTED)};const c=await this.getAjvValidator(s);return c(o)?Zq(n.specification):c.errors&&c.errors.length>0?{valid:!1,errors:Ba(n,c.errors)}:{valid:!1}}catch(s){return{valid:!1,errors:Ba(n,s.message??s)}}}async getAjvValidator(e){if(this.ajvValidators[e])return this.ajvValidators[e];const t=await AB(Object.assign({"../../../schemas/v2.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BQQoKgNw-CyFt8nZw.cjs")),"../../../schemas/v3.0/schema.json":()=>Promise.resolve().then(()=>require("./schema-BjykgtPd-C_N_PTsi.cjs")),"../../../schemas/v3.1/schema.json":()=>Promise.resolve().then(()=>require("./schema-ZROhtp0X-DL6m5HXA.cjs"))}),`../../../schemas/v${e}/schema.json`),n=kM[t.$schema],o=new n({strict:!1});return _j(o),e==="3.1"&&o.addFormat("media-range",!0),this.ajvValidators[e]=o.compile(t)}}yn(Im,"supportedVersions",gk);function Iq(){return{load:jq}}function jq(r){const e=uS(r);return{get:()=>e,details:()=>Fd(e),filter:t=>Xi(e,t),upgrade:()=>xS(e),validate:()=>jm(e),resolve:()=>Gd(e),toJson:()=>Wi(e),toYaml:()=>zi(e)}}function xS(r){const e=D7(r);return{get:()=>e,details:()=>Fd(e),filter:t=>Xi(e,t),validate:()=>jm(e),resolve:()=>Gd(e),toJson:()=>Wi(e),toYaml:()=>zi(e)}}async function jm(r){return{...await M7(r),filter:e=>Xi(r,e),get:()=>r,details:()=>Fd(r),resolve:()=>Gd(r),toJson:()=>Wi(r),toYaml:()=>zi(r)}}async function Gd(r){return{...await V7(r),filter:e=>Xi(r,e),toJson:()=>Wi(r),toYaml:()=>zi(r)}}function Xi(r,e){const t=$M(r,e);return{get:()=>t,details:()=>Fd(t),filter:()=>Xi(t,e),upgrade:()=>xS(t),validate:()=>jm(t),resolve:()=>Gd(t),toJson:()=>Wi(t),toYaml:()=>zi(t)}}function Fd(r){return fS(r)}function Wi(r){return B7(r)}function zi(r){return Z7(r)}const _S=r=>new Promise(async(e,t)=>{var n;try{const{schema:o,errors:s}=await Iq().load(r).resolve();if(s!=null&&s.length&&console.warn(`Please open an issue on https://github.com/scalar/scalar
230
230
  `,`Scalar OpenAPI Parser Warning:
231
- `,s),o===void 0){t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file.");return}e(Dq(structuredClone(o)))}catch(o){t(o)}}),Dq=r=>{r.tags||(r.tags=[]),r.paths||(r.paths={});const e={};return Object.keys(r.webhooks??{}).forEach(n=>{var o;Object.keys(((o=r.webhooks)==null?void 0:o[n])??{}).forEach(s=>{var l,c,d;const i=((l=r.webhooks)==null?void 0:l[n])[s];e[n]===void 0&&(e[n]={}),e[n][s]={httpVerb:s,path:n,operationId:(i==null?void 0:i.operationId)||n,name:(i==null?void 0:i.summary)||n||"",description:(i==null?void 0:i.description)||"",pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters,information:{...i}}})}),Object.keys(r.paths).forEach(n=>{Object.keys(r.paths[n]).filter(s=>sb.includes(s.toUpperCase())).forEach(s=>{var c,d,u,h,f,p;const i=r.paths[n][s],l={httpVerb:s,path:n,operationId:i.operationId||n,name:i.summary||n||"",description:i.description||"",information:{...i},pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters};if(!i.tags||i.tags.length===0){(u=r.tags)!=null&&u.find(g=>g.name==="default")||(h=r.tags)==null||h.push({name:"default",description:"",operations:[]});const m=(f=r.tags)==null?void 0:f.findIndex(g=>g.name==="default");m>=0&&((p=r.tags[m])==null||p.operations.push(l))}else i.tags.forEach(m=>{var y,b,v;const g=(y=r.tags)==null?void 0:y.findIndex(k=>k.name===m);g===-1&&((b=r.tags)==null||b.push({name:m,description:""}));const O=g!==-1?g:r.tags.length-1;typeof((v=r.tags[O])==null?void 0:v.operations)>"u"&&(r.tags[O].operations=[]),r.tags[O].operations.push(l)})})}),r.tags.forEach((n,o)=>{var i;const s=n["x-displayName"];s&&((i=r.tags)!=null&&i[o])&&(r.tags[o].name=s)}),{...r,webhooks:e}},Kd=Symbol(),Dm=Symbol(),vi=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},Dr=r=>new Promise(e=>setTimeout(e,r)),Mq=Symbol("downloadSpec"),Mm=De.useEventBus(Mq);function CS(r,e){const t=cc(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",i="spec"+s,l=e?e+s:i,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function TS(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}var qq=Object.defineProperty,Xq=(r,e,t)=>e in r?qq(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gt=(r,e,t)=>(Xq(r,typeof e!="symbol"?e+"":e,t),t);function Wq(r){if(!r||typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",e.appendChild(t),t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}Wq("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let Ef=1;class zq{constructor(){gt(this,"subscribers"),gt(this,"toasts"),gt(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)})),gt(this,"publish",e=>{this.subscribers.forEach(t=>t(e))}),gt(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),gt(this,"create",e=>{var t;const{message:n,...o}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ef++,i=this.toasts.findIndex(c=>c.id===s),l=e.dismissible===void 0?!0:e.dismissible;return i!==-1?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...e,id:s,title:n}),{...c,...e,id:s,dismissible:l,title:n}):c):this.addToast({title:n,...o,dismissible:l,id:s}),s}),gt(this,"dismiss",e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e)),gt(this,"message",(e,t)=>this.create({...t,message:e})),gt(this,"error",(e,t)=>this.create({...t,type:"error",message:e})),gt(this,"success",(e,t)=>this.create({...t,type:"success",message:e})),gt(this,"info",(e,t)=>this.create({...t,type:"info",message:e})),gt(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e})),gt(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e})),gt(this,"promise",(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading}));const o=e instanceof Promise?e:e();let s=n!==void 0;return o.then(i=>{if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(i):t.success;this.create({id:n,type:"success",message:l})}}).catch(i=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(i):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{var i;s&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n}),gt(this,"custom",(e,t)=>{const n=(t==null?void 0:t.id)||Ef++;return this.publish({...t,id:n,title:e}),n}),this.subscribers=[],this.toasts=[]}}const ar=new zq,Uq=(r,e)=>{const t=(e==null?void 0:e.id)||Ef++;return ar.publish({title:r,...e,id:t}),t},Yq=Uq,Rl=Object.assign(Yq,{success:ar.success,info:ar.info,warning:ar.warning,error:ar.error,custom:ar.custom,message:ar.message,promise:ar.promise,dismiss:ar.dismiss,loading:ar.loading}),Lq=["data-visible"],Hq={className:"sonner-spinner"},Gq=a.defineComponent({__name:"Loader",props:{visible:Boolean},setup(r){const e=Array(12).fill(0);return(t,n)=>(a.openBlock(),a.createElementBlock("div",{className:"sonner-loading-wrapper","data-visible":r.visible},[a.createElementVNode("div",Hq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e),o=>(a.openBlock(),a.createElementBlock("div",{key:`spinner-bar-${o}`,className:"sonner-loading-bar"}))),128))])],8,Lq))}}),Ui=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},Fq={},Kq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Jq=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),e8=[Jq];function t8(r,e){return a.openBlock(),a.createElementBlock("svg",Kq,e8)}const r8=Ui(Fq,[["render",t8]]),n8={},o8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},s8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),a8=[s8];function i8(r,e){return a.openBlock(),a.createElementBlock("svg",o8,a8)}const l8=Ui(n8,[["render",i8]]),c8={},d8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},u8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),h8=[u8];function f8(r,e){return a.openBlock(),a.createElementBlock("svg",d8,h8)}const p8=Ui(c8,[["render",f8]]),m8={},g8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),y8=[O8];function b8(r,e){return a.openBlock(),a.createElementBlock("svg",g8,y8)}const v8=Ui(m8,[["render",b8]]),w8={},k8={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},S8=a.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),$8=a.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),P8=[S8,$8];function x8(r,e){return a.openBlock(),a.createElementBlock("svg",k8,P8)}const _8=Ui(w8,[["render",x8]]),C8=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],T8=["data-disabled"],Q8={key:1,"data-icon":""},E8={"data-content":""},N8={"data-title":""},A8=4e3,R8=14,V8=20,B8=200,Z8=a.defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(r,{emit:e}){const t=A=>!!A.promise,n=e,o=r,s=a.ref(!1),i=a.ref(!1),l=a.ref(!1),c=a.ref(!1),d=a.ref(null),u=a.ref(0),h=a.ref(0),f=a.ref(null),p=a.ref(null),m=a.computed(()=>o.index===0),g=a.computed(()=>o.index+1<=o.visibleToasts),O=a.computed(()=>o.toast.type),y=a.computed(()=>o.toast.dismissible),b=o.toast.className||"",v=o.toast.descriptionClassName||"",k=o.toast.style||{},S=a.computed(()=>o.heights.findIndex(A=>A.toastId===o.toast.id)||0),w=a.computed(()=>o.toast.duration||o.duration||A8),$=a.ref(0),T=a.ref(0),R=a.ref(w.value),B=a.ref(0),M=a.ref(null),V=a.computed(()=>o.position.split("-")),K=a.computed(()=>V.value[0]),L=a.computed(()=>V.value[1]),ne=a.computed(()=>o.heights.reduce((A,X,z)=>z>=S.value?A:A+X.height,0)),ge=a.computed(()=>o.toast.invert||o.invert),Se=a.computed(()=>d.value==="loading"),Pe=a.computed(()=>d.value??(o.toast.type||null)),ie=a.computed(()=>!t(o.toast)&&typeof o.toast.title=="object"),q=a.computed(()=>{if(!t(o.toast))return null;switch(d.value){case"loading":return o.toast.loading;case"success":return typeof o.toast.success=="function"?f.value:o.toast.success;case"error":return typeof o.toast.error=="function"?f.value:o.toast.error;default:return null}});a.onMounted(()=>s.value=!0),a.watchEffect(()=>{T.value=S.value*R8+ne.value});function N(){var A,X;(!Se.value||y.value)&&(I(),(X=(A=o.toast).onDismiss)==null||X.call(A,o.toast))}function I(){i.value=!0,u.value=T.value;const A=o.heights.filter(X=>X.toastId!==o.toast.id);n("update:heights",A),setTimeout(()=>{n("removeToast",o.toast)},B8)}const Z=A=>{Se||(u.value=T.value,A.target.setPointerCapture(A.pointerId),A.target.tagName!=="BUTTON"&&(l.value=!0,M.value={x:A.clientX,y:A.clientY}))},P=A=>{var X,z,le,ae;if(c.value)return;M.value=null;const be=Number(((X=p.value)==null?void 0:X.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(be)>=V8){u.value=T.value,(le=(z=o.toast).onDismiss)==null||le.call(z,o.toast),I(),c.value=!0;return}(ae=p.value)==null||ae.style.setProperty("--swipe-amount","0px"),l.value=!0},Q=A=>{var X;if(!M.value)return;const z=A.clientY-M.value.y,le=A.clientX-M.value.x,ae=(V.value[0]==="top"?Math.min:Math.max)(0,z),be=A.pointerType==="touch"?10:2;Math.abs(ae)>be?(X=p.value)==null||X.style.setProperty("--swipe-amount",`${z}px`):Math.abs(le)>be&&(M.value=null)};return a.watchEffect(A=>{if(o.toast.promise&&d.value==="loading"||o.toast.duration===1/0)return;let X;const z=()=>{if(B.value<$.value){const ae=new Date().getTime()-$.value;R.value=R.value-ae}B.value=new Date().getTime()},le=()=>{$.value=new Date().getTime(),X=setTimeout(()=>{var ae,be;(be=(ae=o.toast).onAutoClose)==null||be.call(ae,o.toast),I()},R.value)};o.expanded||o.interacting?z():le(),A(()=>{clearTimeout(X)})}),a.onMounted(()=>{if(p.value){const A=p.value.getBoundingClientRect().height;h.value=A;const X=[{toastId:o.toast.id,height:A},...o.heights];n("update:heights",X)}}),a.onUnmounted(()=>{if(p.value){const A=o.heights.filter(X=>X.toastId!==o.toast.id);n("update:heights",A)}}),a.watchEffect(()=>{o.toast.delete&&I()}),(A,X)=>(a.openBlock(),a.createElementBlock("li",{"aria-live":A.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:p,"data-sonner-toast":"",class:a.normalizeClass(a.unref(b)),"data-styled":!ie.value,"data-mounted":s.value,"data-promise":!!A.toast.promise,"data-removed":i.value,"data-visible":g.value,"data-y-position":K.value,"data-x-position":L.value,"data-index":o.index,"data-front":m.value,"data-swiping":l.value,"data-type":d.value!=="loading"&&d.value?d.value:O.value,"data-invert":ge.value,"data-swipe-out":c.value,"data-expanded":!!(o.expanded||o.expandByDefault&&s.value),style:a.normalizeStyle({"--index":o.index,"--toasts-before":o.index,"--z-index":A.toasts.length-o.index,"--offset":`${i.value?u.value:T.value}px`,"--initial-height":o.expandByDefault?"auto":`${h.value}px`,...a.unref(k)}),onPointerdown:Z,onPointerup:P,onPointermove:Q},[o.closeButton&&!ie.value?(a.openBlock(),a.createElementBlock("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":Se.value,onClick:N},[a.createVNode(_8)],8,T8)):a.createCommentVNode("",!0),O.value||A.toast.icon||A.toast.promise?(a.openBlock(),a.createElementBlock("div",Q8,[typeof A.toast.promise=="function"||O.value==="loading"?(a.openBlock(),a.createBlock(Gq,{key:0,visible:d.value==="loading"||O.value==="loading"},null,8,["visible"])):a.createCommentVNode("",!0),Pe.value==="success"?(a.openBlock(),a.createBlock(r8,{key:1})):Pe.value==="info"?(a.openBlock(),a.createBlock(l8,{key:2})):Pe.value==="warning"?(a.openBlock(),a.createBlock(p8,{key:3})):Pe.value==="error"?(a.openBlock(),a.createBlock(v8,{key:4})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",E8,[a.createElementVNode("div",N8,[typeof A.toast.title=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(A.toast.title),1)],64)):A.toast.title===void 0||A.toast.title===null?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(q.value),1)],64)):ie.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A.toast.title),{key:2,onCloseToast:X[0]||(X[0]=()=>{var z;I(),(z=A.toast.cancel)!=null&&z.onClick&&A.toast.cancel.onClick()})},null,32)):a.createCommentVNode("",!0)]),A.toast.description?(a.openBlock(),a.createElementBlock("div",{key:0,"data-description":"",class:a.normalizeClass(A.descriptionClass+a.unref(v))},a.toDisplayString(A.toast.description),3)):a.createCommentVNode("",!0)]),A.toast.cancel?(a.openBlock(),a.createElementBlock("button",{key:2,"data-button":"","data-cancel":"",onClick:X[1]||(X[1]=()=>{var z;I(),(z=A.toast.cancel)!=null&&z.onClick&&A.toast.cancel.onClick()})},a.toDisplayString(A.toast.cancel.label),1)):a.createCommentVNode("",!0),A.toast.action?(a.openBlock(),a.createElementBlock("button",{key:3,"data-button":"",onClick:X[2]||(X[2]=()=>{var z;I(),(z=A.toast.action)==null||z.onClick()})},a.toDisplayString(A.toast.action.label),1)):a.createCommentVNode("",!0)],46,C8))}}),I8=["aria-label"],j8=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],D8=3,Ty="32px",M8=4e3,q8=356,Qy=14,X8=typeof window<"u"&&typeof document<"u",W8=a.defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:M8},gap:{default:Qy},visibleToasts:{default:D8},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:Ty},dir:{default:"auto"}},setup(r){const e=r,t=a.useAttrs(),n=a.ref([]),o=a.ref([]),s=a.ref(!1),i=a.ref(!1),l=a.ref(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),c=a.computed(()=>e.position.split("-")),d=a.ref(null),u=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function h(p){n.value=n.value.filter(({id:m})=>m!==p.id)}function f(){if(typeof window>"u")return"ltr";const p=document.documentElement.getAttribute("dir");return p==="auto"||!p?window.getComputedStyle(document.documentElement).direction:p}return a.onMounted(()=>{const p=ar.subscribe(m=>{if(m.dismiss){n.value=n.value.map(g=>g.id===m.id?{...g,delete:!0}:g);return}a.nextTick(()=>{const g=n.value.findIndex(O=>O.id===m.id);g!==-1?n.value.splice(g,1,m):n.value=[m,...n.value]})});a.onUnmounted(()=>{p()})}),a.watch(()=>e.theme,p=>{if(p!=="system"){l.value=p;return}p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?l.value="dark":l.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:m})=>{m?l.value="dark":l.value="light"})}),a.watchEffect(()=>{n.value.length<=1&&(s.value=!1)}),a.watchEffect(p=>{function m(g){var O,y;e.hotkey.every(b=>g[b]||g.code===b)&&(s.value=!0,(O=d.value)==null||O.focus()),g.code==="Escape"&&(document.activeElement===d.value||(y=d.value)!=null&&y.contains(document.activeElement))&&(s.value=!1)}X8&&(document.addEventListener("keydown",m),p(()=>{document.removeEventListener("keydown",m)}))}),(p,m)=>{var g;return a.openBlock(),a.createElementBlock("section",{"aria-label":`Notifications ${a.unref(u)}`,tabIndex:-1},[a.createElementVNode("ol",{ref_key:"listRef",ref:d,"data-sonner-toaster":"",dir:p.dir==="auto"?f():p.dir,tabIndex:-1,"data-theme":p.theme,"data-rich-colors":p.richColors,"data-y-position":c.value[0],"data-x-position":c.value[1],style:a.normalizeStyle({"--front-toast-height":`${(g=o.value[0])==null?void 0:g.height}px`,"--offset":typeof p.offset=="number"?`${p.offset}px`:p.offset||Ty,"--width":`${q8}px`,"--gap":`${Qy}px`,...a.unref(t).style}),onMouseenter:m[1]||(m[1]=O=>s.value=!0),onMousemove:m[2]||(m[2]=O=>s.value=!0),onMouseleave:m[3]||(m[3]=()=>{i.value||(s.value=!1)}),onPointerdown:m[4]||(m[4]=O=>i.value=!1),onPointerup:m[5]||(m[5]=O=>i.value=!1)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(O,y)=>{var b,v,k,S;return a.openBlock(),a.createBlock(Z8,{key:O.id,index:y,toast:O,duration:((b=p.toastOptions)==null?void 0:b.duration)??p.duration,className:(v=p.toastOptions)==null?void 0:v.className,descriptionClassName:(k=p.toastOptions)==null?void 0:k.descriptionClassName,invert:p.invert,visibleToasts:p.visibleToasts,closeButton:p.closeButton,interacting:i.value,position:p.position,style:a.normalizeStyle((S=p.toastOptions)==null?void 0:S.style),toasts:n.value,expandByDefault:p.expand,gap:p.gap,expanded:s.value,heights:o.value,"onUpdate:heights":m[0]||(m[0]=w=>o.value=w),onRemoveToast:h},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,j8)],8,I8)}}}),QS={toast:()=>null};function z8(r){QS.toast=r}function ES(){return{initializeToasts:z8,toast:(r,e="info",t={timeout:3e3})=>{QS.toast(r,e,t)}}}const U8=a.defineComponent({__name:"ScalarToasts",setup(r){const e=a.ref(!1);a.onMounted(()=>e.value=!0);const t={success:Rl.success,error:Rl.error,warn:Rl.warning,info:Rl},{initializeToasts:n}=ES();return n((o,s="info",i={})=>{(t[s]||t.info)(o,{duration:i.timeout||3e3})}),(o,s)=>e.value?(a.openBlock(),a.createBlock(a.unref(W8),{key:0,toastOptions:{className:"toaster"}})):a.createCommentVNode("",!0)}}),na=()=>{const{toast:r}=ES();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},On=a.ref(!1);function Y8(r){var o;const e=()=>{var i,l;const s=typeof window<"u"?(i=window.localStorage)==null?void 0:i.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;On.value=!On.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(On.value)))};function n(s){var i;On.value=s,typeof window<"u"&&((i=window==null?void 0:window.localStorage)==null||i.setItem("isDark",JSON.stringify(On.value)))}return On.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),a.watch(On,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:On,toggleDarkMode:t,setDarkMode:n}}const L8=["unirest"],Nf=a.ref([...L8]),H8=Dy.availableTargets().map(r=>(r.key==="node"&&(r.default="undici",r.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"})),r.clients=r.clients.filter(e=>!Nf.value.includes(e.key)),r)).filter(r=>r.clients.length);function Yi(){return{availableTargets:a.computed(()=>H8),excludedClients:a.readonly(Nf),setExcludedClients:e=>Nf.value=e}}const qm=a.ref(Bs.hash??""),Uc=a.ref(),G8=a.ref(!1),F8=r=>r.slug?`description/${r.slug}`:"",NS=r=>{var t;if(!Uc.value)return"";const e=new RegExp("^"+((t=Uc.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},K8=(r,e)=>{if(!r)return"webhooks";const t=ki.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},J8=r=>{if(!r)return"models";const e=ki.slug(r);return`model/${encodeURIComponent(e)}`},eX=(r,e)=>`${AS(e)}/${r.httpVerb}${r.path}`,AS=({name:r})=>{const e=ki.slug(r);return`tag/${encodeURIComponent(e)}`},tX=(r=qm.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},rX=()=>{qm.value=Uc.value?NS(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},mt=()=>({hash:qm,getWebhookId:K8,getModelId:J8,getHeadingId:F8,getOperationId:eX,getPathRoutingId:NS,getSectionId:tX,getTagId:AS,isIntersectionEnabled:G8,pathRouting:Uc,updateHash:rX});function Xm(r){return{parameterMap:a.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const Ey=()=>({info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},components:{schemas:{},securitySchemes:{}},servers:[],tags:[]}),nX=async({url:r,content:e},t)=>{if(r)return Qw(r)?await pg(r,t):await pg(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return JSON.stringify(n)};function RS({specConfig:r,proxy:e}){const t=a.ref(""),n=a.reactive(Ey()),o=a.ref(null);function s(i){return i?_S(i).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Ey())}return a.watch(()=>a.toValue(r),async i=>{var l;if(i){const c=(l=await nX(i,a.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),a.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Wm(r){return{responses:a.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:Ny,getModelId:Ay,getOperationId:Ry,getSectionId:oX,getTagId:VS,getWebhookId:Ju,hash:Af}=mt(),Je=a.ref(void 0);function sX(r){return Je.value=r}const BS=a.ref(!1),Yc=a.reactive(Bs["useSidebarContent-collapsedSidebarItems"]??{});function aX(r){Yc[r]=!Yc[r]}function eh(r,e){Yc[r]=e}const Lc=a.ref([]),iX=async r=>{const e=await pi(r),t=yd(e);return e.filter(n=>n.depth===t||n.depth===t+1)},ZS=a.computed(()=>{var h,f,p,m,g,O,y,b,v,k;const{state:r}=Fc(),e={},{openApi:{globalSecurity:t}}=rd(),n=[];let o=null;Lc.value.forEach(S=>{var w;S.depth===yd(Lc.value)?(o={id:Ny(S),title:S.value.toUpperCase(),show:!r.showApiClient,children:[]},n.push(o)):o&&((w=o.children)==null||w.push({id:Ny(S),title:S.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(S=>(S==null?void 0:S.length)!==1||S[0].name!=="default"||S[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(g=(m=Je.value)==null?void 0:m.tags)==null?void 0:g.filter(S=>{var w;return((w=S.operations)==null?void 0:w.length)>0}).map(S=>{var w;return{id:VS(S),title:S.name.toUpperCase(),show:!0,children:(w=S.operations)==null?void 0:w.map($=>{var B;const T=Ry($,S),R=$.name??$.path;return e[T]=R,{id:T,title:R,httpVerb:$.httpVerb,deprecated:((B=$.information)==null?void 0:B.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Bc($,t)}}})}}):(O=s==null?void 0:s.operations)==null?void 0:O.map(S=>{var T;const w=Ry(S,s),$=S.name??S.path;return e[w]=$,{id:w,title:$,httpVerb:S.httpVerb,deprecated:((T=S.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Bc(S,t)}}}),c=Ep(Je.value)&&!BS.value?[{id:Ay(),title:"MODELS",show:!r.showApiClient,children:Object.keys(ur(Je.value)??{}).map(S=>{var $;const w=Ay(S);return e[w]=S,{id:w,title:(($=ur(Je.value))==null?void 0:$[S]).title??S,show:!r.showApiClient}})}]:[],d=(y=Je.value)!=null&&y["x-tagGroups"]?(v=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:v.map(S=>{const w=[];return S.tags.map(T=>{if(T.toUpperCase()==="MODELS"&&c.length>0)w.push(c[0]);else{const R=l==null?void 0:l.find(B=>B.title===T.toUpperCase());R&&w.push(R)}}),{id:S.name,title:S.name.toUpperCase(),children:w,show:!0,isGroup:!0}}):void 0,u=Tw(Je.value)?[{id:Ju(),title:"WEBHOOKS",show:!r.showApiClient,children:Object.keys(((k=Je.value)==null?void 0:k.webhooks)??{}).map(S=>{var $,T;const w=Ju(S);return e[w]=S,Object.keys(((T=($=Je.value)==null?void 0:$.webhooks)==null?void 0:T[S])??{}).map(R=>{var B,M,V;return{id:Ju(S,R),title:(V=(M=(B=Je.value)==null?void 0:B.webhooks)==null?void 0:M[S][R])==null?void 0:V.name,httpVerb:R,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),lX=a.ref(!1),cX=a.computed(()=>{var r,e;return((e=(r=ZS.value)==null?void 0:r.titles)==null?void 0:e[Af.value])??""});function vr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,a.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(Af.value){const n=oX(Af.value);n&&eh(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&eh(VS(n),!0)}}),a.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Lc.value=await iX(e):Lc.value=[]})),{breadcrumb:cX,items:ZS,isSidebarOpen:lX,collapsedSidebarItems:Yc,toggleCollapsedSidebarItem:aX,setCollapsedSidebarItem:eh,hideModels:BS,setParsedSpec:sX}}const dX=a.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(Eo),{class:a.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),IS=W(dX,[["__scopeId","data-v-6563458b"]]),uX=["id"],hX={key:0,class:"sidebar-heading-chevron"},fX=["href"],pX={class:"sidebar-heading-link-title"},mX={key:1,class:"sidebar-heading-link-method"},gX={key:1,class:"action-menu"},OX=a.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:i}=mt(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await Dr(100),s.value=!0)},c=()=>{if(i.value)return i.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(i.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=i.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),vi(t.item.id),await Dr(100),s.value=!0}};return(u,h)=>{var f,p;return a.openBlock(),a.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[a.createElementVNode("div",{class:a.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(a.openBlock(),a.createElementBlock("p",hX,[a.createVNode(a.unref(Ni),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"sm",onClick:a.withModifiers(l,["stop"])},null,8,["icon"]),a.createTextVNode("   ")])):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("p",pX,a.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(a.openBlock(),a.createElementBlock("p",mX,[a.createTextVNode("   "),a.createVNode(IS,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):a.createCommentVNode("",!0)],8,fX)],2),u.open?a.renderSlot(u.$slots,"default",{key:0},void 0,!0):a.createCommentVNode("",!0),u.$slots["action-menu"]?(a.openBlock(),a.createElementBlock("div",gX,[a.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):a.createCommentVNode("",!0)],8,uX)}}}),Vl=W(OX,[["__scopeId","data-v-07a8209e"]]),yX=a.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:a.normalizeStyle({"--scalar-sidebar-level":e.level})},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),th=W(yX,[["__scopeId","data-v-58237183"]]),bX={class:"sidebar"},vX={class:"sidebar-group-title"},wX=-160,kX=a.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=mt(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:i}=vr({parsedSpec:e.parsedSpec}),l=a.ref(null),c=a.ref(!0);a.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,m,g,O;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=wX;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((m=h.parentElement)==null?void 0:m.offsetTop)??0)+(((O=(g=h.parentElement)==null?void 0:g.parentElement)==null?void 0:O.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return a.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(a.openBlock(),a.createElementBlock("div",bX,[a.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),a.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[a.createVNode(th,{level:0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o).entries,f=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:f.id},[f.isGroup?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("li",vX,a.toDisplayString(f.title),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,p=>(a.openBlock(),a.createBlock(Vl,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:a.unref(t)===p.id,item:{id:p.id,title:p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:a.unref(i)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,a.unref(s)(p.id),await a.unref(Dr)(100),c.value=!1}},{default:a.withCtx(()=>{var m;return[p.children&&((m=p.children)==null?void 0:m.length)>0?(a.openBlock(),a.createBlock(th,{key:0,level:2},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.children,g=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:g.id},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${g.id}`,isActive:a.unref(t)===g.id,item:{id:g.id,title:g.title,select:g.select,httpVerb:g.httpVerb,deprecated:g.deprecated??!1}},null,8,["id","isActive","item"])):a.createCommentVNode("",!0)],64))),128))]),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:a.unref(t)===f.id,item:{id:f.id,title:f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:a.unref(i)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,a.unref(s)(f.id),await a.unref(Dr)(100),c.value=!1}},{default:a.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(a.openBlock(),a.createBlock(th,{key:0,level:1},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,m=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:m.id},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${m.id}`,isActive:a.unref(t)===m.id,item:{id:m.id,title:m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):a.createCommentVNode("",!0)],64))),128))]),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):a.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),a.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),zm=W(kX,[["__scopeId","data-v-404804be"]]),SX={key:0,class:"api-client-drawer"},$X={class:"api-client-container"},PX={class:"scalar-api-client-height"},xX={class:"scalar-api-client-states"},_X={class:"t-doc__sidebar"},CX=a.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{}},emits:["toggleDarkMode"],setup(r){const{hideApiClient:e,state:t}=Fc(),n=De.useMediaQuery("(max-width: 1000px)"),o=a.ref(!1);return(s,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.unref(t).showApiClient||s.overloadShow?(a.openBlock(),a.createElementBlock("div",SX,[a.createElementVNode("div",$X,[a.renderSlot(s.$slots,"header",{},void 0,!0),a.createElementVNode("div",PX,[a.createVNode(a.unref(yB),{proxyUrl:s.proxyUrl,showSideBar:o.value,theme:"none",withDefaultFonts:!1,onEscapeKeyPress:a.unref(e)},{"address-bar-controls":a.withCtx(()=>[a.createElementVNode("div",xX,[a.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:i[0]||(i[0]=l=>o.value=!o.value)},[a.createVNode(a.unref(Ze),{icon:o.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),a.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:i[1]||(i[1]=(...l)=>a.unref(e)&&a.unref(e)(...l))},[a.createVNode(a.unref(Ze),{icon:"Close",size:"sm"})])])]),sidebar:a.withCtx(()=>[a.createElementVNode("div",_X,[a.withDirectives(a.createVNode(a.unref(zm),{parsedSpec:s.parsedSpec},{"sidebar-start":a.withCtx(()=>[a.renderSlot(s.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[a.vShow,!a.unref(n)]])])]),_:3},8,["proxyUrl","showSideBar","onEscapeKeyPress"])])])])):a.createCommentVNode("",!0),a.unref(t).showApiClient?(a.openBlock(),a.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:i[2]||(i[2]=(...l)=>a.unref(e)&&a.unref(e)(...l))})):a.createCommentVNode("",!0)],64))}}),jS=W(CX,[["__scopeId","data-v-09847367"]]),DS=()=>({targetKey:"shell",clientKey:"curl"}),As=a.reactive(DS());function TX(){Ew(As,DS())}function MS(r){var t;const{availableTargets:e}=Yi();return((t=e.value.find(n=>n.key===r.targetKey))==null?void 0:t.title)??r.targetKey}function qS(r){var t,n;const{availableTargets:e}=Yi();return((n=(t=e.value.find(o=>o.key===r.targetKey))==null?void 0:t.clients.find(o=>o.key===r.clientKey))==null?void 0:n.title)??r.clientKey}const QX=r=>{Object.assign(As,{...As,...r})},EX=a.computed(()=>MS(As)),NX=a.computed(()=>qS(As)),Jd=()=>({httpClient:a.readonly(As),resetState:TX,setHttpClient:QX,httpTargetTitle:EX,httpClientTitle:NX,getClientTitle:qS,getTargetTitle:MS}),AX={},RX={class:"scalar-card"};function VX(r,e){return a.openBlock(),a.createElementBlock("div",RX,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xn=W(AX,[["render",VX],["__scopeId","data-v-dcabb131"]]),BX=a.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[a.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),Or=W(BX,[["__scopeId","data-v-5312c2e0"]]),ZX={class:"scalar-card-header-slots"},IX={class:"scalar-card-header-slot scalar-card-header-title"},jX={class:"scalar-card-header-slot scalar-card-header-actions"},DX=a.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createBlock(Or,a.mergeProps(e,{class:"scalar-card-header"}),{default:a.withCtx(()=>[a.createElementVNode("div",ZX,[a.createElementVNode("div",IX,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),a.createElementVNode("div",jX,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),Wn=W(DX,[["__scopeId","data-v-bbd0c20a"]]),MX=a.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createBlock(Or,a.normalizeProps(a.guardReactiveProps(e)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Li=W(MX,[["__scopeId","data-v-918ab8d6"]]),qX=a.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(a.openBlock(),a.createBlock(Wn,{class:"scalar-card-header-tabs"},{actions:a.withCtx(()=>[a.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabGroup),{onChange:n},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabList),{class:"tab-list custom-scroll"},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),XS=W(qX,[["__scopeId","data-v-6a91b57c"]]),XX=a.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(ye.Tab),{as:"template"},{default:a.withCtx(({selected:n})=>[a.createElementVNode("button",{class:a.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[a.createElementVNode("span",null,[a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),WS=W(XX,[["__scopeId","data-v-f373ecc2"]]),WX={class:"selector"},zX=a.defineComponent({__name:"Authentication",props:{parsedSpec:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=qn(),o=a.computed(()=>{var i,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(i=e.parsedSpec)==null?void 0:i.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return a.watch(()=>{var s,i;return(i=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:i.securitySchemes},()=>{var s,i;n({securitySchemes:(i=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:i.securitySchemes})},{deep:!0,immediate:!0}),a.onServerPrefetch(async()=>{const s=a.useSSRContext();await Dr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,i)=>a.unref(Cw)(s.parsedSpec)?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",class:"authentication-header",transparent:""},{actions:a.withCtx(()=>{var l,c;return[a.createElementVNode("div",WX,[a.createVNode(a.unref(kw),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]}),default:a.withCtx(()=>[a.createTextVNode(" Authentication ")]),_:1}),o.value?(a.openBlock(),a.createBlock(a.unref(Or),{key:0,class:"authentication-content",transparent:""},{default:a.withCtx(()=>{var l,c,d;return[a.unref(t).preferredSecurityScheme?(a.openBlock(),a.createBlock(a.unref(ww),{key:0,value:(d=(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes)==null?void 0:d[a.unref(t).preferredSecurityScheme]},null,8,["value"])):a.createCommentVNode("",!0)]}),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}),UX=W(zX,[["__scopeId","data-v-3e7b39cf"]]),YX=["innerHTML"],LX=a.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=a.ref(""),n=e.withImages?[]:["img","picture"];return a.watch(()=>e.value,async()=>{var s;const o=await jy.unified().use(Iy).use(T$).use(Q$,{allowDangerousHtml:!0}).use(_$).use(ru,{...ru.defaultSchema,tagNames:(s=ru.defaultSchema.tagNames)==null?void 0:s.filter(i=>!n.includes(i))}).use(x$).use($$,{target:"_blank"}).use(P$).use(C$).process(e.value);t.value=String(o.value)},{immediate:!0}),a.onServerPrefetch(async()=>await Dr(1)),(o,s)=>(a.openBlock(),a.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,YX))}}),jt=W(LX,[["__scopeId","data-v-0f4a67fc"]]),HX=["title","innerHTML"],GX=a.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=na(),n=a.computed(()=>{var i;const s=(((i=e.value)==null?void 0:i.url)??"").replace(/(<([^>]+)>)/gi,"");return Qp(s,l=>{var d;const c=(d=e.variables)==null?void 0:d.find(u=>u.name===l);return`<span class="base-url-variable">${((c==null?void 0:c.value)??"")!==""?c==null?void 0:c.value:`{${l}}`}</span>`})});return(o,s)=>o.value?(a.openBlock(),a.createElementBlock("a",{key:0,class:"base-url",title:o.value.description,onClick:s[0]||(s[0]=i=>a.unref(t)(o.value.url)),innerHTML:n.value},null,8,HX)):a.createCommentVNode("",!0)}}),FX=W(GX,[["__scopeId","data-v-8df90bd1"]]),KX={key:0},JX=["for"],e9=["id","value","onInput"],t9=["value"],r9={class:"input-value"},n9=["id","value","onInput"],o9=a.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=qs(),n=(s,i)=>{const l=i.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const i=e.variables.findIndex(l=>l.name===s);return e.variables[i].value??""};return(s,i)=>s.value?(a.openBlock(),a.createElementBlock("div",KX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,l=>(a.openBlock(),a.createElementBlock("div",{key:l.name,class:"input"},[a.createElementVNode("label",{for:`variable-${l.name}`},[a.createElementVNode("code",null,a.toDisplayString(l.name),1)],8,JX),l.enum?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.enum,c=>(a.openBlock(),a.createElementBlock("option",{key:c,value:c},a.toDisplayString(c),9,t9))),128))],40,e9),a.createElementVNode("div",r9,a.toDisplayString(l.default),1)],64)):(a.openBlock(),a.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,n9))]))),128))])):a.createCommentVNode("",!0)}}),s9=W(o9,[["__scopeId","data-v-a812e319"]]),a9={class:"scalar-card-serverlist-container"},i9={class:"server-item"},l9={class:"server-selector"},c9=["value"],d9=["value"],u9={class:"description"},h9=a.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=qs(),n=a.ref(0);return a.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];i5((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{deep:!0}),(o,s)=>a.unref(e).servers.length>0?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",muted:""},{default:a.withCtx(()=>[a.createTextVNode(" Base URL ")]),_:1}),a.createVNode(a.unref(Or),{class:"scalar-card-serverlist"},{default:a.withCtx(()=>[a.createElementVNode("div",a9,[a.createElementVNode("div",i9,[a.createElementVNode("div",l9,[a.unref(e).servers.length>1?(a.openBlock(),a.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=i=>n.value=parseInt(i.target.value,10))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).servers,(i,l)=>(a.openBlock(),a.createElementBlock("option",{key:l,value:l},a.toDisplayString(i.url),9,d9))),128))],40,c9)):a.createCommentVNode("",!0),a.createVNode(FX,{value:a.unref(e).servers[n.value],variables:a.unref(e).variables},null,8,["value","variables"]),a.unref(e).servers.length>1?(a.openBlock(),a.createBlock(a.unref(Ze),{key:1,icon:"ChevronDown"})):a.createCommentVNode("",!0)])]),a.createVNode(s9,{value:a.unref(e).variables},null,8,["value"])])]),_:1}),a.unref(e).description?(a.openBlock(),a.createBlock(a.unref(Or),{key:0,muted:""},{default:a.withCtx(()=>[a.createElementVNode("div",u9,[a.createVNode(a.unref(jt),{value:a.unref(e).description},null,8,["value"])])]),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}),f9=W(h9,[["__scopeId","data-v-db459e3b"]]),zS=r=>(a.pushScopeId("data-v-cae9ee2d"),r=r(),a.popScopeId(),r),p9=["onClick"],m9=["value"],g9=["label"],O9=["value"],y9={class:"code-languages-background code-languages-icon__more"},b9={key:1,class:"code-languages-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},v9=zS(()=>a.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[a.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),w9=[v9],k9=zS(()=>a.createElementVNode("span",null,"More",-1)),S9=a.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,getClientTitle:n,getTargetTitle:o}=Jd(),{availableTargets:s}=Yi(),i=a.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"},{targetKey:"c",clientKey:"libcurl"}],c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"containerRef",ref:i,class:"client-libraries-content"},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(l,p=>a.createElementVNode("div",{key:p.clientKey,class:a.normalizeClass(["code-languages rendered-code-sdks",{"code-languages__active":d(p)}]),onClick:()=>a.unref(t)(p)},[a.createElementVNode("div",{class:a.normalizeClass(["code-languages-background",`code-languages-icon__${p.targetKey}`])},[a.createVNode(a.unref(Ze),{class:"code-languages-icon",icon:c(p.targetKey)},null,8,["icon"])],2),a.createElementVNode("span",null,a.toDisplayString(a.unref(o)(p)),1)],10,p9)),64)),a.createElementVNode("div",{class:a.normalizeClass(["code-languages code-languages__select",{"code-languages__active":a.unref(e)&&!u(a.unref(e))}])},[a.createElementVNode("select",{class:"language-select",value:JSON.stringify(a.unref(e)),onInput:f[0]||(f[0]=p=>a.unref(t)(JSON.parse(p.target.value)))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),p=>(a.openBlock(),a.createElementBlock("optgroup",{key:p.key,label:p.title},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.clients,m=>(a.openBlock(),a.createElementBlock("option",{key:m.key,value:JSON.stringify({targetKey:p.key,clientKey:m.key})},a.toDisplayString(a.unref(n)({targetKey:p.key,clientKey:m.key})),9,O9))),128))],8,g9))),128))],40,m9),a.createElementVNode("div",y9,[a.unref(e)&&!u(a.unref(e))?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`code-languages-icon__${a.unref(e).targetKey}`)},[a.createVNode(a.unref(Ze),{class:"code-languages-icon",icon:c(a.unref(e).targetKey)},null,8,["icon"])],2)):(a.openBlock(),a.createElementBlock("svg",b9,w9))]),k9],2)],512))}}),$9=W(S9,[["__scopeId","data-v-cae9ee2d"]]),P9=a.defineComponent({__name:"ClientLibraries",setup(r){const{httpTargetTitle:e,httpClientTitle:t}=Jd();return(n,o)=>(a.openBlock(),a.createBlock(a.unref(Xn),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",transparent:""},{default:a.withCtx(()=>[a.createTextVNode(" Client Libraries ")]),_:1}),a.createVNode(a.unref(Or),{frameless:"",transparent:""},{default:a.withCtx(()=>[a.createVNode($9)]),_:1}),a.createVNode(a.unref(Li),{class:"selected-client card-footer",muted:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(t))+" "+a.toDisplayString(a.unref(e)),1)]),_:1})]),_:1}))}}),x9=W(P9,[["__scopeId","data-v-2a099868"]]),_9={},C9={class:"badge"};function T9(r,e){return a.openBlock(),a.createElementBlock("div",C9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const wi=W(_9,[["render",T9],["__scopeId","data-v-190574ac"]]),Um=a.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=a.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},i=l=>l.offsetHeight<window.innerHeight?.8:.5;return a.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:i(o.value)};De.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:a.withCtx(()=>[a.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),Q9=a.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=mt(),{setCollapsedSidebarItem:i}=vr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&i(t(e.id),!0)}return(c,d)=>(a.openBlock(),a.createBlock(Um,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),oa=W(Q9,[["__scopeId","data-v-0494f9f3"]]),E9={class:"section-accordion-button-content"},N9={key:0,class:"section-accordion-button-actions"},A9={key:0,class:"section-accordion-description"},R9={class:"section-accordion-content-card"},V9=a.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=a.ref(),t=De.useElementHover(e);return(n,o)=>(a.openBlock(),a.createBlock(Um,{id:n.id,class:"section-wrapper"},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.Disclosure),{as:"section",class:a.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:a.withCtx(({open:s})=>[a.createVNode(a.unref(ye.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:a.withCtx(()=>[a.createElementVNode("div",E9,[a.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(a.openBlock(),a.createElementBlock("div",N9,[a.renderSlot(n.$slots,"actions",{active:a.unref(t)||s},void 0,!0)])):a.createCommentVNode("",!0),a.createVNode(a.unref(Ze),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),a.createVNode(a.unref(ye.DisclosurePanel),{class:"section-accordion-content"},{default:a.withCtx(()=>[n.$slots.description?(a.openBlock(),a.createElementBlock("div",A9,[a.renderSlot(n.$slots,"description",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",R9,[a.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),US=W(V9,[["__scopeId","data-v-07cabcb0"]]),B9={},Z9={class:"section-column"};function I9(r,e){return a.openBlock(),a.createElementBlock("div",Z9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Rs=W(B9,[["render",I9],["__scopeId","data-v-d64e7382"]]),j9={},D9={class:"section-columns"};function M9(r,e){return a.openBlock(),a.createElementBlock("div",D9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Ym=W(j9,[["render",M9],["__scopeId","data-v-8b9602bf"]]),q9={},X9={class:"section-container"};function W9(r,e){return a.openBlock(),a.createElementBlock("div",X9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Hi=W(q9,[["render",W9],["__scopeId","data-v-34b26958"]]),z9={class:"section-accordion-wrapper"},U9={class:"section-accordion-title"},Y9=a.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",z9,[a.createVNode(a.unref(ye.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:a.withCtx(({open:n})=>[a.createVNode(a.unref(ye.DisclosureButton),{class:"section-accordion-button"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ze),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),a.createElementVNode("div",U9,[a.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),a.createVNode(a.unref(ye.DisclosurePanel),{class:"section-accordion-content"},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),YS=W(Y9,[["__scopeId","data-v-2049975e"]]),L9=a.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList([...Array(e.lines).keys()],n=>(a.openBlock(),a.createElementBlock("div",{key:n,class:a.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),LS=W(L9,[["__scopeId","data-v-c90b2c46"]]),H9={class:"section-content"},G9=a.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",H9,[e.loading?(a.openBlock(),a.createBlock(LS,{key:1,lines:8})):a.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),sa=W(G9,[["__scopeId","data-v-9735459e"]]),F9=a.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(a.openBlock(),a.createBlock(LS,{key:0})):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(`h${e.level}`),{key:1,class:a.normalizeClass(["section-header",{tight:e.tight}])},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),zn=W(F9,[["__scopeId","data-v-3bd1b9f0"]]),K9={key:0,class:"introduction-description"},J9=a.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Zf(e.value)}`,o=De.computedAsync(async()=>{if(!e.value)return[];const u=await pi(e.value),h=yd(u);return await Promise.all(TS(e.value,h).map(async f=>({heading:(await pi(f))[0],content:f})))},Bs[n]??[]),{getHeadingId:s,hash:i,isIntersectionEnabled:l,pathRouting:c}=mt();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,i.value=u,window.history.replaceState({},"",h)}return a.onServerPrefetch(async()=>{const u=a.useSSRContext();await Dr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(a.openBlock(),a.createElementBlock("div",K9,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),(f,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:p},[f.heading?(a.openBlock(),a.createBlock(Um,{key:0,id:a.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(a.unref(s)(f.heading))},{default:a.withCtx(()=>[a.createVNode(a.unref(jt),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(a.openBlock(),a.createBlock(a.unref(jt),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):a.createCommentVNode("",!0)}}),eW=W(J9,[["__scopeId","data-v-5e475391"]]),tW={class:"download"},rW={class:"download-cta"},nW=a.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=a.inject(Dm),n=()=>{Mm.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var i;return a.openBlock(),a.createElementBlock("div",tW,[a.createElementVNode("div",rW,[(i=a.unref(t))!=null&&i()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),oW=W(nW,[["__scopeId","data-v-810904a4"]]),sW={class:"badges"},aW={class:"sticky-cards"},iW=a.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new ki,n=a.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=a.computed(()=>t.slug(e.info.title??""));return(s,i)=>(a.openBlock(),a.createBlock(a.unref(Hi),null,{default:a.withCtx(()=>[a.createVNode(a.unref(oa),{class:"introduction-section"},{default:a.withCtx(()=>[a.createVNode(a.unref(sa),{loading:!s.info.description&&!s.info.title},{default:a.withCtx(()=>[a.createVNode(a.unref(Ym),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>[a.createElementVNode("div",sW,[s.info.version?(a.openBlock(),a.createBlock(a.unref(wi),{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.info.version),1)]),_:1})):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createBlock(a.unref(wi),{key:1},{default:a.withCtx(()=>[a.createTextVNode(" OAS "+a.toDisplayString(n.value),1)]),_:1})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(zn),{level:1,loading:!s.info.title,tight:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),a.createVNode(oW,{specTitle:o.value},null,8,["specTitle"]),a.createVNode(eW,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(a.openBlock(),a.createBlock(a.unref(Rs),{key:0},{default:a.withCtx(()=>[a.createElementVNode("div",aW,[a.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):a.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),a.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),lW=W(iW,[["__scopeId","data-v-30c2e131"]]),cW=Symbol(),Rf=De.useEventBus(cW),Hc=a.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>a.nextTick(o),e.lazyTimeout??300))},n=a.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&a.nextTick(()=>Rf.emit({id:e.id}))}):e.id&&a.nextTick(()=>Rf.emit({id:e.id})),(o,s)=>n.value?a.renderSlot(o.$slots,"default",{key:0}):a.createCommentVNode("",!0)}}),dW={key:0,class:"screenreader-only"},uW=a.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(a.openBlock(),a.createElementBlock("span",dW,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),HS=W(uW,[["__scopeId","data-v-681ebf2c"]]),hW=r=>(a.pushScopeId("data-v-d9801d4e"),r=r(),a.popScopeId(),r),fW={class:"label"},pW={class:"anchor"},mW=hW(()=>a.createElementVNode("span",null,"​",-1)),gW=a.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=na(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(a.openBlock(),a.createElementBlock("span",fW,[a.renderSlot(n.$slots,"default",{},void 0,!0),a.createElementVNode("span",pW,[mW,a.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=a.withModifiers(s=>a.unref(e)(t(n.id)),["stop"]))},[a.createTextVNode(" # "),a.createVNode(HS,null,{default:a.withCtx(()=>[a.createTextVNode('Copy link to "'),a.renderSlot(n.$slots,"default",{},void 0,!0),a.createTextVNode('"')]),_:3})])])]))}}),Un=W(gW,[["__scopeId","data-v-d9801d4e"]]),OW=["value"],yW=["label"],bW=["value"],vW=["value"],Lm=a.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[a.createElementVNode("span",null,[a.renderSlot(e.$slots,"default")]),a.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,n=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:n.value},[n.options?(a.openBlock(),a.createElementBlock("optgroup",{key:0,label:n.label},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,o=>(a.openBlock(),a.createElementBlock("option",{key:o.value,value:o.value},a.toDisplayString(o.label),9,bW))),128))],8,yW)):(a.openBlock(),a.createElementBlock("option",{key:n.value,value:n.value},a.toDisplayString(n.label),9,vW))],64))),128))],40,OW)],2))}}),wW={class:"request-header"},kW=a.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=a.ref(0),n=a.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=a.computed(()=>e.examples[t.value]);a.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=na();return(i,l)=>(a.openBlock(),a.createBlock(a.unref(Xn),{class:"dark-mode"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{muted:""},{actions:a.withCtx(()=>[a.createVNode(Lm,{class:"request-client-picker",modelValue:t.value,options:i.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),a.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>a.unref(s)(o.value.source.trim()))},[a.createVNode(a.unref(Ze),{icon:"Clipboard",width:"10px"})])]),default:a.withCtx(()=>[a.createElementVNode("div",wW,[a.createVNode(a.unref(Eo),{class:"request-method",method:i.operation.httpVerb},null,8,["method"]),a.renderSlot(i.$slots,"header",{},void 0,!0)])]),_:3}),a.createVNode(a.unref(Or),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:a.withCtx(()=>[a.createVNode(a.unref(Lr),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),i.$slots.footer?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,class:"scalar-card-footer",contrast:""},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"footer",{},void 0,!0)]),_:3})):a.createCommentVNode("",!0)]),_:3}))}}),SW=W(kW,[["__scopeId","data-v-18ba624d"]]),$W={class:"schema-type"},PW=["title"],xW=a.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,i,l,c;return a.openBlock(),a.createElementBlock("span",$W,[a.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" {} ")],64)):a.createCommentVNode("",!0),e.value.type==="array"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" [] ")],64)):a.createCommentVNode("",!0),e.value.enum?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(" enum ")],64)):a.createCommentVNode("",!0)],8,PW),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((i=(s=e.value)==null?void 0:s.xml)==null?void 0:i.name)!=="##default"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" <"+a.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.name),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(e.value.type),1)],64))])}}}),GS=W(xW,[["__scopeId","data-v-6c5c3c96"]]),_W={key:0,class:"property-detail-prefix"},CW={key:1,class:"property-detail-value"},TW={key:2,class:"property-detail-value"},QW=a.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(a.openBlock(),a.createElementBlock("div",_W,[a.renderSlot(e.$slots,"prefix",{},void 0,!0),a.createTextVNode("  ")])):a.createCommentVNode("",!0),e.code?(a.openBlock(),a.createElementBlock("code",CW,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("span",TW,[a.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),nr=W(QW,[["__scopeId","data-v-16d94ef5"]]),EW={class:"property-heading"},NW={key:0,class:"property-name"},AW={key:1,class:"property-additional"},RW={key:2,class:"property-deprecated"},VW={key:3,class:"property-required"},BW={key:4,class:"property-details"},ZW={key:5,class:"property-write-only"},IW={key:6,class:"property-read-only"},jW=a.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,i,l;return a.openBlock(),a.createElementBlock("div",EW,[t.$slots.name?(a.openBlock(),a.createElementBlock("div",NW,[a.renderSlot(t.$slots,"name",{},void 0,!0)])):a.createCommentVNode("",!0),t.additional?(a.openBlock(),a.createElementBlock("div",AW," additional properties ")):a.createCommentVNode("",!0),(o=t.value)!=null&&o.deprecated?(a.openBlock(),a.createElementBlock("div",RW,[a.createVNode(a.unref(wi),null,{default:a.withCtx(()=>[a.createTextVNode("deprecated")]),_:1})])):a.createCommentVNode("",!0),t.required?(a.openBlock(),a.createElementBlock("div",VW," required ")):a.createCommentVNode("",!0),(s=t.value)!=null&&s.type?(a.openBlock(),a.createElementBlock("div",BW,[t.additional?(a.openBlock(),a.createBlock(nr,{key:0},{prefix:a.withCtx(()=>[a.createTextVNode("key:")]),default:a.withCtx(()=>[a.createTextVNode(" string ")]),_:1})):a.createCommentVNode("",!0),a.createVNode(nr,null,a.createSlots({default:a.withCtx(()=>{var c,d,u;return[(d=(c=t.value)==null?void 0:c.items)!=null&&d.type?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(t.value.type)+" "+a.toDisplayString(t.value.items.type)+"[] ",1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+a.toDisplayString((u=t.value)!=null&&u.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(t.value.minItems)+"…"+a.toDisplayString(t.value.maxItems),1)],64)):a.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:a.withCtx(()=>[a.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(a.openBlock(),a.createBlock(nr,{key:1},{prefix:a.withCtx(()=>[a.createTextVNode("min:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.minLength),1)]),_:1})):a.createCommentVNode("",!0),t.value.maxLength?(a.openBlock(),a.createBlock(nr,{key:2},{prefix:a.withCtx(()=>[a.createTextVNode("max:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.maxLength),1)]),_:1})):a.createCommentVNode("",!0),t.value.uniqueItems?(a.openBlock(),a.createBlock(nr,{key:3},{default:a.withCtx(()=>[a.createTextVNode(" unique! ")]),_:1})):a.createCommentVNode("",!0),t.value.format?(a.openBlock(),a.createBlock(nr,{key:4},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.value.format),1)]),_:1})):a.createCommentVNode("",!0),t.value.minimum?(a.openBlock(),a.createBlock(nr,{key:5},{prefix:a.withCtx(()=>[a.createTextVNode("min:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.minimum),1)]),_:1})):a.createCommentVNode("",!0),t.value.maximum?(a.openBlock(),a.createBlock(nr,{key:6},{prefix:a.withCtx(()=>[a.createTextVNode("max:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.maximum),1)]),_:1})):a.createCommentVNode("",!0),t.value.pattern?(a.openBlock(),a.createBlock(nr,{key:7,code:"",truncate:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.value.pattern),1)]),_:1})):a.createCommentVNode("",!0),t.$props.enum?(a.openBlock(),a.createBlock(nr,{key:8},{default:a.withCtx(()=>[a.createTextVNode("enum")]),_:1})):a.createCommentVNode("",!0),t.value.default?(a.openBlock(),a.createBlock(nr,{key:9,truncate:""},{prefix:a.withCtx(()=>[a.createTextVNode("default:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.default),1)]),_:1})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),(i=t.value)!=null&&i.writeOnly?(a.openBlock(),a.createElementBlock("div",ZW," write-only ")):(l=t.value)!=null&&l.readOnly?(a.openBlock(),a.createElementBlock("div",IW," read-only ")):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.filter(c=>{var d,u,h;return((d=t.value)==null?void 0:d[c])||((h=(u=t.value)==null?void 0:u.items)==null?void 0:h[c])}),c=>(a.openBlock(),a.createBlock(a.unref(wi),{key:c},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c),1)]),_:2},1024))),128))])}}}),DW=W(jW,[["__scopeId","data-v-3ad74b91"]]),MW=r=>(a.pushScopeId("data-v-ca3c524d"),r=r(),a.popScopeId(),r),qW={key:0,class:"property-description"},XW={key:1,class:"property-description"},WW={key:2,class:"property-example custom-scroll"},zW=MW(()=>a.createElementVNode("span",{class:"property-example-label"},"Example",-1)),UW={class:"property-example-value"},YW={key:3,class:"property-enum"},LW={class:"property-enum-values"},HW={key:4,class:"children"},GW={key:0,class:"children"},FW={key:0,class:"property-rule"},KW={key:1,class:"property-rule"},JW=a.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(i,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:i||(l==null?void 0:l.description)||null},n=function(i){return!i||!e[i.type]?null:e[i.type][i.format||"_default"]},o=function(i){var l;return(i==null?void 0:i.enum)||((l=i==null?void 0:i.items)==null?void 0:l.enum)||null},s=["oneOf","anyOf","allOf","not"];return(i,l)=>{var c,d,u,h,f,p,m,g,O;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["property",[`property--level-${i.level}`,{"property--compact":i.compact,"property--deprecated":(c=i.value)==null?void 0:c.deprecated}]])},[a.createVNode(DW,{additional:i.additional,enum:!!o(i.value),required:i.required,value:i.value},a.createSlots({_:2},[i.name?{name:"name",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(i.description,i.value)?(a.openBlock(),a.createElementBlock("div",qW,[a.createVNode(a.unref(jt),{value:t(i.description,i.value)},null,8,["value"])])):n(i.value)?(a.openBlock(),a.createElementBlock("div",XW,[a.createVNode(a.unref(jt),{value:n(i.value)||""},null,8,["value"])])):a.createCommentVNode("",!0),(d=i.value)!=null&&d.example||(h=(u=i.value)==null?void 0:u.items)!=null&&h.example?(a.openBlock(),a.createElementBlock("div",WW,[zW,a.createElementVNode("code",UW,a.toDisplayString(i.value.example||((f=i.value)==null?void 0:f.items.example)),1)])):a.createCommentVNode("",!0),o(i.value)?(a.openBlock(),a.createElementBlock("div",YW,[a.createElementVNode("ul",LW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o(i.value),y=>(a.openBlock(),a.createElementBlock("li",{key:y,class:"property-enum-value"},a.toDisplayString(y),1))),128))])])):a.createCommentVNode("",!0),((p=i.value)==null?void 0:p.type)==="object"&&((m=i.value)!=null&&m.properties||(g=i.value)!=null&&g.additionalProperties)?(a.openBlock(),a.createElementBlock("div",HW,[a.createVNode(yo,{compact:i.compact,level:i.level+1,value:i.value},null,8,["compact","level","value"])])):a.createCommentVNode("",!0),(O=i.value)!=null&&O.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[["object"].includes(i.value.items.type)?(a.openBlock(),a.createElementBlock("div",GW,[a.createVNode(yo,{compact:i.compact,level:i.level+1,value:i.value.items},null,8,["compact","level","value"])])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(s,y=>{var b,v,k;return a.openBlock(),a.createElementBlock(a.Fragment,{key:y},[(b=i.value)!=null&&b[y]?(a.openBlock(),a.createElementBlock("div",FW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value[y],(S,w)=>(a.openBlock(),a.createBlock(yo,{key:w,compact:i.compact,level:i.level+1,value:S},null,8,["compact","level","value"]))),128))])):a.createCommentVNode("",!0),(k=(v=i.value)==null?void 0:v.items)!=null&&k[y]&&i.level<3?(a.openBlock(),a.createElementBlock("div",KW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value.items[y],(S,w)=>(a.openBlock(),a.createBlock(yo,{key:w,compact:i.compact,level:i.level+1,value:S},null,8,["compact","level","value"]))),128))])):a.createCommentVNode("",!0)],64)}),64))],2)}}}),Oo=W(JW,[["__scopeId","data-v-ca3c524d"]]),ez=r=>(a.pushScopeId("data-v-7f5d0941"),r=r(),a.popScopeId(),r),tz={key:0,class:"schema-card-description"},rz=ez(()=>a.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),nz=[rz],oz=a.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=a.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(a.openBlock(),a.createBlock(a.unref(ye.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:a.withCtx(({open:i})=>{var l;return[a.createElementVNode("div",{class:a.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":i}]])},[(l=o.value)!=null&&l.description?(a.openBlock(),a.createElementBlock("div",tz,[a.createVNode(a.unref(jt),{value:o.value.description},null,8,["value"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["schema-properties",{"schema-properties-open":i}])},[a.withDirectives(a.createVNode(a.unref(ye.DisclosureButton),{as:o.noncollapsible?"div":"button",class:a.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:a.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:a.withCtx(()=>{var c,d,u;return[o.compact?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.value?(a.openBlock(),a.createElementBlock("svg",{key:0,class:a.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":i}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},nz,2)):a.createCommentVNode("",!0),i?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" Hide "+a.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(" Show "+a.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.value?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,class:a.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":i}]),icon:"ChevronRight",size:"md"},null,8,["class"])):a.createCommentVNode("",!0),a.createVNode(GS,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[a.vShow,!(o.noncollapsible&&o.compact)]]),a.createVNode(a.unref(ye.DisclosurePanel),{static:o.noncollapsible},{default:a.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[o.value.properties?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return a.openBlock(),a.createBlock(Oo,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):a.createCommentVNode("",!0),o.value.additionalProperties?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(a.openBlock(),a.createBlock(Oo,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(a.openBlock(),a.createBlock(Oo,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createBlock(Oo,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):a.createCommentVNode("",!0)}}),yo=W(oz,[["__scopeId","data-v-7f5d0941"]]),sz={class:"parameter-item"},az={class:"parameter-item-container"},iz=a.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("li",sz,[a.createElementVNode("div",az,[a.createVNode(a.unref(Oo),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),lz=W(iz,[["__scopeId","data-v-f70ee55c"]]),cz={key:0,class:"parameters"},dz={class:"parameters-title"},uz={class:"parameter-list"},hz=a.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(a.openBlock(),a.createElementBlock("div",cz,[a.createElementVNode("div",dz,[a.renderSlot(e.$slots,"title",{},void 0,!0)]),a.createElementVNode("ul",uz,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.parameters,o=>(a.openBlock(),a.createBlock(lz,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):a.createCommentVNode("",!0)}}}),ir=W(hz,[["__scopeId","data-v-45fca787"]]),fz={key:0},pz={class:"request-body-title"},mz=["value"],gz={key:0,class:"request-body-description"},Oz={key:0,class:"request-body-schema"},yz=a.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=a.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=a.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,i)=>{var l,c,d,u;return e!=null&&e.requestBody?(a.openBlock(),a.createElementBlock("div",fz,[a.createElementVNode("div",pz,[a.renderSlot(s.$slots,"title",{},void 0,!0),a.createElementVNode("div",{class:a.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[a.createElementVNode("span",null,a.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":i[0]||(i[0]=h=>n.value=h)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(a.openBlock(),a.createElementBlock("option",{key:f,value:f},a.toDisplayString(f),9,mz))),128))],512)),[[a.vModelSelect,n.value]]):a.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(a.openBlock(),a.createElementBlock("div",gz,[a.createVNode(a.unref(jt),{value:e.requestBody.description},null,8,["value"])])):a.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(a.openBlock(),a.createElementBlock("div",Oz,[a.createVNode(a.unref(yo),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}}),Hm=W(yz,[["__scopeId","data-v-e095eb63"]]),bz={class:"endpoint-details"},vz={class:"endpoint-description"},wz=a.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Xm(e),{responses:n}=Wm(e.operation);return(o,s)=>{var i,l;return a.openBlock(),a.createElementBlock("div",bz,[a.createElementVNode("div",vz,[a.createVNode(a.unref(jt),{value:o.operation.description,withImages:""},null,8,["value"])]),a.createVNode(ir,{parameters:a.unref(t).path},{title:a.withCtx(()=>[a.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).query},{title:a.withCtx(()=>[a.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).header},{title:a.withCtx(()=>[a.createTextVNode("Headers")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).body,showChildren:""},{title:a.withCtx(()=>[a.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).formData},{title:a.withCtx(()=>[a.createTextVNode("Form Data")]),_:1},8,["parameters"]),(i=o.operation.information)!=null&&i.requestBody?(a.openBlock(),a.createBlock(Hm,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:a.withCtx(()=>[a.createTextVNode("Body")]),_:1},8,["requestBody"])):a.createCommentVNode("",!0),a.createVNode(ir,{parameters:a.unref(n)},{title:a.withCtx(()=>[a.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),kz={key:0},Sz=a.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=a.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(i,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:l},[t(i)?(a.openBlock(),a.createElementBlock("em",kz,a.toDisplayString(i),1)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(i),1)],64))],64))),128))],2))}}),Vf=W(Sz,[["__scopeId","data-v-a4eadd9b"]]);function Gi(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function $z(r){return/\s|-/.test(r)}function Mr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,i]of Object.entries(r)){let l=$z(s)?`'${s}'`:s;if(Array.isArray(i)){const c=i.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?Mr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(i&&typeof i=="object")t.push(`${o}${l}: ${Mr(i,e+2)}`);else if(typeof i=="string"){let c=`${i}`;if(i.startsWith("JSON.stringify")){const d=i.split(`
231
+ `,s),o===void 0){t(((n=s==null?void 0:s[0])==null?void 0:n.error)??"Failed to parse the OpenAPI file.");return}e(Dq(structuredClone(o)))}catch(o){t(o)}}),Dq=r=>{r.tags||(r.tags=[]),r.paths||(r.paths={});const e={};return Object.keys(r.webhooks??{}).forEach(n=>{var o;Object.keys(((o=r.webhooks)==null?void 0:o[n])??{}).forEach(s=>{var l,c,d;const i=((l=r.webhooks)==null?void 0:l[n])[s];e[n]===void 0&&(e[n]={}),e[n][s]={httpVerb:s,path:n,operationId:(i==null?void 0:i.operationId)||n,name:(i==null?void 0:i.summary)||n||"",description:(i==null?void 0:i.description)||"",pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters,information:{...i}}})}),Object.keys(r.paths).forEach(n=>{Object.keys(r.paths[n]).filter(s=>sb.includes(s.toUpperCase())).forEach(s=>{var c,d,u,h,f,p;const i=r.paths[n][s],l={httpVerb:s,path:n,operationId:i.operationId||n,name:i.summary||n||"",description:i.description||"",information:{...i},pathParameters:(d=(c=r.paths)==null?void 0:c[n])==null?void 0:d.parameters};if(!i.tags||i.tags.length===0){(u=r.tags)!=null&&u.find(g=>g.name==="default")||(h=r.tags)==null||h.push({name:"default",description:"",operations:[]});const m=(f=r.tags)==null?void 0:f.findIndex(g=>g.name==="default");m>=0&&((p=r.tags[m])==null||p.operations.push(l))}else i.tags.forEach(m=>{var y,b,v;const g=(y=r.tags)==null?void 0:y.findIndex(k=>k.name===m);g===-1&&((b=r.tags)==null||b.push({name:m,description:""}));const O=g!==-1?g:r.tags.length-1;typeof((v=r.tags[O])==null?void 0:v.operations)>"u"&&(r.tags[O].operations=[]),r.tags[O].operations.push(l)})})}),r.tags.forEach((n,o)=>{var i;const s=n["x-displayName"];s&&((i=r.tags)!=null&&i[o])&&(r.tags[o].name=s)}),{...r,webhooks:e}},Kd=Symbol(),Dm=Symbol(),vi=async r=>{var e;(e=document.getElementById(r))==null||e.scrollIntoView()},Dr=r=>new Promise(e=>setTimeout(e,r)),Mq=Symbol("downloadSpec"),Mm=De.useEventBus(Mq);function CS(r,e){const t=cc(r),n=t?new Blob([r],{type:"application/json"}):new Blob([r],{type:"application/x-yaml"}),o=URL.createObjectURL(n),s=t?".json":".yaml",i="spec"+s,l=e?e+s:i,c=document.createElement("a");c.href=o,c.download=l,c.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(o),c.remove()},100)}function TS(r,e=1){const t=new RegExp(`^(?=#{${e}} )`,"m");return r.split(t).map(n=>n.trim()).filter(Boolean)}var qq=Object.defineProperty,Xq=(r,e,t)=>e in r?qq(r,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):r[e]=t,gt=(r,e,t)=>(Xq(r,typeof e!="symbol"?e+"":e,t),t);function Wq(r){if(!r||typeof document>"u")return;let e=document.head||document.getElementsByTagName("head")[0],t=document.createElement("style");t.type="text/css",e.appendChild(t),t.styleSheet?t.styleSheet.cssText=r:t.appendChild(document.createTextNode(r))}Wq("[data-sonner-toaster][dir=ltr],html[dir=ltr]{--toast-icon-margin-start:-3px;--toast-icon-margin-end:4px;--toast-svg-margin-start:-1px;--toast-svg-margin-end:0px;--toast-button-margin-start:auto;--toast-button-margin-end:0;--toast-close-button-start:0;--toast-close-button-end:unset;--toast-close-button-transform:translate(-35%, -35%)}[data-sonner-toaster][dir=rtl],html[dir=rtl]{--toast-icon-margin-start:4px;--toast-icon-margin-end:-3px;--toast-svg-margin-start:0px;--toast-svg-margin-end:-1px;--toast-button-margin-start:0;--toast-button-margin-end:auto;--toast-close-button-start:unset;--toast-close-button-end:0;--toast-close-button-transform:translate(35%, -35%)}[data-sonner-toaster]{position:fixed;width:var(--width);font-family:ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Color Emoji,Segoe UI Emoji,Segoe UI Symbol,Noto Color Emoji;--gray1:hsl(0, 0%, 99%);--gray2:hsl(0, 0%, 97.3%);--gray3:hsl(0, 0%, 95.1%);--gray4:hsl(0, 0%, 93%);--gray5:hsl(0, 0%, 90.9%);--gray6:hsl(0, 0%, 88.7%);--gray7:hsl(0, 0%, 85.8%);--gray8:hsl(0, 0%, 78%);--gray9:hsl(0, 0%, 56.1%);--gray10:hsl(0, 0%, 52.3%);--gray11:hsl(0, 0%, 43.5%);--gray12:hsl(0, 0%, 9%);--border-radius:8px;box-sizing:border-box;padding:0;margin:0;list-style:none;outline:0;z-index:999999999}[data-sonner-toaster][data-x-position=right]{right:max(var(--offset),env(safe-area-inset-right))}[data-sonner-toaster][data-x-position=left]{left:max(var(--offset),env(safe-area-inset-left))}[data-sonner-toaster][data-x-position=center]{left:50%;transform:translateX(-50%)}[data-sonner-toaster][data-y-position=top]{top:max(var(--offset),env(safe-area-inset-top))}[data-sonner-toaster][data-y-position=bottom]{bottom:max(var(--offset),env(safe-area-inset-bottom))}[data-sonner-toast]{--y:translateY(100%);--lift-amount:calc(var(--lift) * var(--gap));z-index:var(--z-index);position:absolute;opacity:0;transform:var(--y);touch-action:none;will-change:transform,opacity,height;transition:transform .4s,opacity .4s,height .4s,box-shadow .2s;box-sizing:border-box;outline:0;overflow-wrap:anywhere}[data-sonner-toast][data-styled=true]{padding:16px;background:var(--normal-bg);border:1px solid var(--normal-border);color:var(--normal-text);border-radius:var(--border-radius);box-shadow:0 4px 12px rgba(0,0,0,.1);width:var(--width);font-size:13px;display:flex;align-items:center;gap:6px}[data-sonner-toast]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast][data-y-position=top]{top:0;--y:translateY(-100%);--lift:1;--lift-amount:calc(1 * var(--gap))}[data-sonner-toast][data-y-position=bottom]{bottom:0;--y:translateY(100%);--lift:-1;--lift-amount:calc(var(--lift) * var(--gap))}[data-sonner-toast] [data-description]{font-weight:400;line-height:1.4;color:inherit}[data-sonner-toast] [data-title]{font-weight:500;line-height:1.5;color:inherit}[data-sonner-toast] [data-icon]{display:flex;height:20px;width:20px;position:relative;justify-content:flex-start;align-items:center;flex-shrink:0;margin-left:var(--toast-icon-margin-start);margin-right:var(--toast-icon-margin-end)}[data-sonner-toast][data-promise=true] [data-icon]>svg{opacity:0;transform:scale(.8);transform-origin:center;animation:sonner-fade-in .3s ease forwards}[data-sonner-toast] [data-icon]>*{flex-shrink:0}[data-sonner-toast] [data-icon] svg{margin-left:var(--toast-svg-margin-start);margin-right:var(--toast-svg-margin-end)}[data-sonner-toast] [data-content]{display:flex;flex-direction:column;gap:2px}[data-sonner-toast] [data-button]{border-radius:4px;padding-left:8px;padding-right:8px;height:24px;font-size:12px;color:var(--normal-bg);background:var(--normal-text);margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end);border:none;cursor:pointer;outline:0;transition:opacity .4s,box-shadow .2s;z-index:100}[data-sonner-toast] [data-button]:focus-visible{box-shadow:0 0 0 2px rgba(0,0,0,.4)}[data-sonner-toast] [data-button]:first-of-type{margin-left:var(--toast-button-margin-start);margin-right:var(--toast-button-margin-end)}[data-sonner-toast] [data-cancel]{color:var(--normal-text);background:rgba(0,0,0,.08)}[data-sonner-toast][data-theme=dark] [data-cancel]{background:rgba(255,255,255,.3)}[data-sonner-toast] [data-close-button]{position:absolute;left:var(--toast-close-button-start);right:var(--toast-close-button-end);top:0;height:20px;width:20px;display:flex;justify-content:center;align-items:center;padding:0;background:var(--gray1);color:var(--gray12);border:1px solid var(--gray4);transform:var(--toast-close-button-transform);border-radius:50%;opacity:0;cursor:pointer;z-index:1;transition:opacity .1s,background .2s,border-color .2s}[data-sonner-toast] [data-close-button]:focus-visible{box-shadow:0 4px 12px rgba(0,0,0,.1),0 0 0 2px rgba(0,0,0,.2)}[data-sonner-toast] [data-disabled=true]{cursor:not-allowed}[data-sonner-toast]:hover [data-close-button]{opacity:1}[data-sonner-toast]:focus [data-close-button]{opacity:1}[data-sonner-toast]:focus-within [data-close-button]{opacity:1}[data-sonner-toast]:hover [data-close-button]:hover{background:var(--gray2);border-color:var(--gray5)}[data-sonner-toast][data-swiping=true]:before{content:'';position:absolute;left:0;right:0;height:100%}[data-sonner-toast][data-y-position=top][data-swiping=true]:before{bottom:50%;transform:scaleY(3) translateY(50%)}[data-sonner-toast][data-y-position=bottom][data-swiping=true]:before{top:50%;transform:scaleY(3) translateY(-50%)}[data-sonner-toast][data-swiping=false][data-removed=true]:before{content:'';position:absolute;inset:0;transform:scaleY(2)}[data-sonner-toast]:after{content:'';position:absolute;left:0;height:calc(var(--gap) + 1px);bottom:100%;width:100%}[data-sonner-toast][data-mounted=true]{--y:translateY(0);opacity:1}[data-sonner-toast][data-expanded=false][data-front=false]{--scale:var(--toasts-before) * 0.05 + 1;--y:translateY(calc(var(--lift-amount) * var(--toasts-before))) scale(calc(-1 * var(--scale)));height:var(--front-toast-height)}[data-sonner-toast]>*{transition:opacity .4s}[data-sonner-toast][data-expanded=false][data-front=false][data-styled=true]>*{opacity:0}[data-sonner-toast][data-visible=false]{opacity:0;pointer-events:none}[data-sonner-toast][data-mounted=true][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset)));height:var(--initial-height)}[data-sonner-toast][data-removed=true][data-front=true][data-swipe-out=false]{--y:translateY(calc(var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=true]{--y:translateY(calc(var(--lift) * var(--offset) + var(--lift) * -100%));opacity:0}[data-sonner-toast][data-removed=true][data-front=false][data-swipe-out=false][data-expanded=false]{--y:translateY(40%);opacity:0;transition:transform .5s,opacity .2s}[data-sonner-toast][data-removed=true][data-front=false]:before{height:calc(var(--initial-height) + 20%)}[data-sonner-toast][data-swiping=true]{transform:var(--y) translateY(var(--swipe-amount,0));transition:none}[data-sonner-toast][data-swipe-out=true][data-y-position=bottom],[data-sonner-toast][data-swipe-out=true][data-y-position=top]{animation:swipe-out .2s ease-out forwards}@keyframes swipe-out{from{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount)));opacity:1}to{transform:translateY(calc(var(--lift) * var(--offset) + var(--swipe-amount) + var(--lift) * -100%));opacity:0}}@media (max-width:600px){[data-sonner-toaster]{position:fixed;--mobile-offset:16px;right:var(--mobile-offset);left:var(--mobile-offset);width:100%}[data-sonner-toaster] [data-sonner-toast]{left:0;right:0;width:calc(100% - 32px)}[data-sonner-toaster][data-x-position=left]{left:var(--mobile-offset)}[data-sonner-toaster][data-y-position=bottom]{bottom:20px}[data-sonner-toaster][data-y-position=top]{top:20px}[data-sonner-toaster][data-x-position=center]{left:var(--mobile-offset);right:var(--mobile-offset);transform:none}}[data-sonner-toaster][data-theme=light]{--normal-bg:#fff;--normal-border:var(--gray4);--normal-text:var(--gray12);--success-bg:hsl(143, 85%, 96%);--success-border:hsl(145, 92%, 91%);--success-text:hsl(140, 100%, 27%);--info-bg:hsl(208, 100%, 97%);--info-border:hsl(221, 91%, 91%);--info-text:hsl(210, 92%, 45%);--warning-bg:hsl(49, 100%, 97%);--warning-border:hsl(49, 91%, 91%);--warning-text:hsl(31, 92%, 45%);--error-bg:hsl(359, 100%, 97%);--error-border:hsl(359, 100%, 94%);--error-text:hsl(360, 100%, 45%)}[data-sonner-toaster][data-theme=light] [data-sonner-toast][data-invert=true]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1)}[data-sonner-toaster][data-theme=dark] [data-sonner-toast][data-invert=true]{--normal-bg:#fff;--normal-border:var(--gray3);--normal-text:var(--gray12)}[data-sonner-toaster][data-theme=dark]{--normal-bg:#000;--normal-border:hsl(0, 0%, 20%);--normal-text:var(--gray1);--success-bg:hsl(150, 100%, 6%);--success-border:hsl(147, 100%, 12%);--success-text:hsl(150, 86%, 65%);--info-bg:hsl(215, 100%, 6%);--info-border:hsl(223, 100%, 12%);--info-text:hsl(216, 87%, 65%);--warning-bg:hsl(64, 100%, 6%);--warning-border:hsl(60, 100%, 12%);--warning-text:hsl(46, 87%, 65%);--error-bg:hsl(358, 76%, 10%);--error-border:hsl(357, 89%, 16%);--error-text:hsl(358, 100%, 81%)}[data-rich-colors=true] [data-sonner-toast][data-type=success]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=success] [data-close-button]{background:var(--success-bg);border-color:var(--success-border);color:var(--success-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=info] [data-close-button]{background:var(--info-bg);border-color:var(--info-border);color:var(--info-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=warning] [data-close-button]{background:var(--warning-bg);border-color:var(--warning-border);color:var(--warning-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}[data-rich-colors=true] [data-sonner-toast][data-type=error] [data-close-button]{background:var(--error-bg);border-color:var(--error-border);color:var(--error-text)}.sonner-loading-wrapper{--size:16px;height:var(--size);width:var(--size);inset:0;z-index:10}.sonner-loading-wrapper[data-visible=false]{display:none;transform-origin:center;animation:sonner-fade-out .2s ease forwards}.sonner-spinner{position:relative;top:50%;left:50%;height:var(--size);width:var(--size)}.sonner-loading-bar{animation:sonner-spin 1.2s linear infinite;background:var(--gray11);border-radius:6px;height:8%;left:-10%;position:absolute;top:-3.9%;width:24%}.sonner-loading-bar:first-child{animation-delay:-1.2s;transform:rotate(.0001deg) translate(146%)}.sonner-loading-bar:nth-child(2){animation-delay:-1.1s;transform:rotate(30deg) translate(146%)}.sonner-loading-bar:nth-child(3){animation-delay:-1s;transform:rotate(60deg) translate(146%)}.sonner-loading-bar:nth-child(4){animation-delay:-.9s;transform:rotate(90deg) translate(146%)}.sonner-loading-bar:nth-child(5){animation-delay:-.8s;transform:rotate(120deg) translate(146%)}.sonner-loading-bar:nth-child(6){animation-delay:-.7s;transform:rotate(150deg) translate(146%)}.sonner-loading-bar:nth-child(7){animation-delay:-.6s;transform:rotate(180deg) translate(146%)}.sonner-loading-bar:nth-child(8){animation-delay:-.5s;transform:rotate(210deg) translate(146%)}.sonner-loading-bar:nth-child(9){animation-delay:-.4s;transform:rotate(240deg) translate(146%)}.sonner-loading-bar:nth-child(10){animation-delay:-.3s;transform:rotate(270deg) translate(146%)}.sonner-loading-bar:nth-child(11){animation-delay:-.2s;transform:rotate(300deg) translate(146%)}.sonner-loading-bar:nth-child(12){animation-delay:-.1s;transform:rotate(330deg) translate(146%)}@keyframes sonner-fade-in{0%{opacity:0;transform:scale(.8)}100%{opacity:1;transform:scale(1)}}@keyframes sonner-fade-out{0%{opacity:1;transform:scale(1)}100%{opacity:0;transform:scale(.8)}}@keyframes sonner-spin{0%{opacity:1}100%{opacity:.15}}@media (prefers-reduced-motion){.sonner-loading-bar,[data-sonner-toast],[data-sonner-toast]>*{transition:none!important;animation:none!important}}");let Ef=1;class zq{constructor(){gt(this,"subscribers"),gt(this,"toasts"),gt(this,"subscribe",e=>(this.subscribers.push(e),()=>{const t=this.subscribers.indexOf(e);this.subscribers.splice(t,1)})),gt(this,"publish",e=>{this.subscribers.forEach(t=>t(e))}),gt(this,"addToast",e=>{this.publish(e),this.toasts=[...this.toasts,e]}),gt(this,"create",e=>{var t;const{message:n,...o}=e,s=typeof(e==null?void 0:e.id)=="number"||((t=e.id)==null?void 0:t.length)>0?e.id:Ef++,i=this.toasts.findIndex(c=>c.id===s),l=e.dismissible===void 0?!0:e.dismissible;return i!==-1?this.toasts=this.toasts.map(c=>c.id===s?(this.publish({...c,...e,id:s,title:n}),{...c,...e,id:s,dismissible:l,title:n}):c):this.addToast({title:n,...o,dismissible:l,id:s}),s}),gt(this,"dismiss",e=>(e||this.toasts.forEach(t=>{this.subscribers.forEach(n=>n({id:t.id,dismiss:!0}))}),this.subscribers.forEach(t=>t({id:e,dismiss:!0})),e)),gt(this,"message",(e,t)=>this.create({...t,message:e})),gt(this,"error",(e,t)=>this.create({...t,type:"error",message:e})),gt(this,"success",(e,t)=>this.create({...t,type:"success",message:e})),gt(this,"info",(e,t)=>this.create({...t,type:"info",message:e})),gt(this,"warning",(e,t)=>this.create({...t,type:"warning",message:e})),gt(this,"loading",(e,t)=>this.create({...t,type:"loading",message:e})),gt(this,"promise",(e,t)=>{if(!t)return;let n;t.loading!==void 0&&(n=this.create({...t,promise:e,type:"loading",message:t.loading}));const o=e instanceof Promise?e:e();let s=n!==void 0;return o.then(i=>{if(t.success!==void 0){s=!1;const l=typeof t.success=="function"?t.success(i):t.success;this.create({id:n,type:"success",message:l})}}).catch(i=>{if(t.error!==void 0){s=!1;const l=typeof t.error=="function"?t.error(i):t.error;this.create({id:n,type:"error",message:l})}}).finally(()=>{var i;s&&(this.dismiss(n),n=void 0),(i=t.finally)==null||i.call(t)}),n}),gt(this,"custom",(e,t)=>{const n=(t==null?void 0:t.id)||Ef++;return this.publish({...t,id:n,title:e}),n}),this.subscribers=[],this.toasts=[]}}const ar=new zq,Uq=(r,e)=>{const t=(e==null?void 0:e.id)||Ef++;return ar.publish({title:r,...e,id:t}),t},Yq=Uq,Rl=Object.assign(Yq,{success:ar.success,info:ar.info,warning:ar.warning,error:ar.error,custom:ar.custom,message:ar.message,promise:ar.promise,dismiss:ar.dismiss,loading:ar.loading}),Lq=["data-visible"],Hq={className:"sonner-spinner"},Gq=a.defineComponent({__name:"Loader",props:{visible:Boolean},setup(r){const e=Array(12).fill(0);return(t,n)=>(a.openBlock(),a.createElementBlock("div",{className:"sonner-loading-wrapper","data-visible":r.visible},[a.createElementVNode("div",Hq,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e),o=>(a.openBlock(),a.createElementBlock("div",{key:`spinner-bar-${o}`,className:"sonner-loading-bar"}))),128))])],8,Lq))}}),Ui=(r,e)=>{const t=r.__vccOpts||r;for(const[n,o]of e)t[n]=o;return t},Fq={},Kq={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},Jq=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M10 18a8 8 0 100-16 8 8 0 000 16zm3.857-9.809a.75.75 0 00-1.214-.882l-3.483 4.79-1.88-1.88a.75.75 0 10-1.06 1.061l2.5 2.5a.75.75 0 001.137-.089l4-5.5z","clip-rule":"evenodd"},null,-1),e8=[Jq];function t8(r,e){return a.openBlock(),a.createElementBlock("svg",Kq,e8)}const r8=Ui(Fq,[["render",t8]]),n8={},o8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},s8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-7-4a1 1 0 11-2 0 1 1 0 012 0zM9 9a.75.75 0 000 1.5h.253a.25.25 0 01.244.304l-.459 2.066A1.75 1.75 0 0010.747 15H11a.75.75 0 000-1.5h-.253a.25.25 0 01-.244-.304l.459-2.066A1.75 1.75 0 009.253 9H9z","clip-rule":"evenodd"},null,-1),a8=[s8];function i8(r,e){return a.openBlock(),a.createElementBlock("svg",o8,a8)}const l8=Ui(n8,[["render",i8]]),c8={},d8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",fill:"currentColor",height:"20",width:"20"},u8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M9.401 3.003c1.155-2 4.043-2 5.197 0l7.355 12.748c1.154 2-.29 4.5-2.599 4.5H4.645c-2.309 0-3.752-2.5-2.598-4.5L9.4 3.003zM12 8.25a.75.75 0 01.75.75v3.75a.75.75 0 01-1.5 0V9a.75.75 0 01.75-.75zm0 8.25a.75.75 0 100-1.5.75.75 0 000 1.5z","clip-rule":"evenodd"},null,-1),h8=[u8];function f8(r,e){return a.openBlock(),a.createElementBlock("svg",d8,h8)}const p8=Ui(c8,[["render",f8]]),m8={},g8={xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 20 20",fill:"currentColor",height:"20",width:"20"},O8=a.createElementVNode("path",{"fill-rule":"evenodd",d:"M18 10a8 8 0 11-16 0 8 8 0 0116 0zm-8-5a.75.75 0 01.75.75v4.5a.75.75 0 01-1.5 0v-4.5A.75.75 0 0110 5zm0 10a1 1 0 100-2 1 1 0 000 2z","clip-rule":"evenodd"},null,-1),y8=[O8];function b8(r,e){return a.openBlock(),a.createElementBlock("svg",g8,y8)}const v8=Ui(m8,[["render",b8]]),w8={},k8={xmlns:"http://www.w3.org/2000/svg",width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor","stoke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"},S8=a.createElementVNode("line",{x1:"18",y1:"6",x2:"6",y2:"18"},null,-1),$8=a.createElementVNode("line",{x1:"6",y1:"6",x2:"18",y2:"18"},null,-1),P8=[S8,$8];function x8(r,e){return a.openBlock(),a.createElementBlock("svg",k8,P8)}const _8=Ui(w8,[["render",x8]]),C8=["aria-live","data-styled","data-mounted","data-promise","data-removed","data-visible","data-y-position","data-x-position","data-index","data-front","data-swiping","data-type","data-invert","data-swipe-out","data-expanded"],T8=["data-disabled"],Q8={key:1,"data-icon":""},E8={"data-content":""},N8={"data-title":""},A8=4e3,R8=14,V8=20,B8=200,Z8=a.defineComponent({__name:"Toast",props:{toast:{},toasts:{},index:{},expanded:{type:Boolean},invert:{type:Boolean},heights:{},position:{},visibleToasts:{},expandByDefault:{type:Boolean},closeButton:{type:Boolean},interacting:{type:Boolean},duration:{},descriptionClass:{}},emits:["update:heights","removeToast"],setup(r,{emit:e}){const t=A=>!!A.promise,n=e,o=r,s=a.ref(!1),i=a.ref(!1),l=a.ref(!1),c=a.ref(!1),d=a.ref(null),u=a.ref(0),h=a.ref(0),f=a.ref(null),p=a.ref(null),m=a.computed(()=>o.index===0),g=a.computed(()=>o.index+1<=o.visibleToasts),O=a.computed(()=>o.toast.type),y=a.computed(()=>o.toast.dismissible),b=o.toast.className||"",v=o.toast.descriptionClassName||"",k=o.toast.style||{},S=a.computed(()=>o.heights.findIndex(A=>A.toastId===o.toast.id)||0),w=a.computed(()=>o.toast.duration||o.duration||A8),$=a.ref(0),T=a.ref(0),R=a.ref(w.value),B=a.ref(0),M=a.ref(null),V=a.computed(()=>o.position.split("-")),K=a.computed(()=>V.value[0]),L=a.computed(()=>V.value[1]),ne=a.computed(()=>o.heights.reduce((A,X,z)=>z>=S.value?A:A+X.height,0)),ge=a.computed(()=>o.toast.invert||o.invert),Se=a.computed(()=>d.value==="loading"),Pe=a.computed(()=>d.value??(o.toast.type||null)),ie=a.computed(()=>!t(o.toast)&&typeof o.toast.title=="object"),q=a.computed(()=>{if(!t(o.toast))return null;switch(d.value){case"loading":return o.toast.loading;case"success":return typeof o.toast.success=="function"?f.value:o.toast.success;case"error":return typeof o.toast.error=="function"?f.value:o.toast.error;default:return null}});a.onMounted(()=>s.value=!0),a.watchEffect(()=>{T.value=S.value*R8+ne.value});function N(){var A,X;(!Se.value||y.value)&&(I(),(X=(A=o.toast).onDismiss)==null||X.call(A,o.toast))}function I(){i.value=!0,u.value=T.value;const A=o.heights.filter(X=>X.toastId!==o.toast.id);n("update:heights",A),setTimeout(()=>{n("removeToast",o.toast)},B8)}const Z=A=>{Se||(u.value=T.value,A.target.setPointerCapture(A.pointerId),A.target.tagName!=="BUTTON"&&(l.value=!0,M.value={x:A.clientX,y:A.clientY}))},P=A=>{var X,z,le,ae;if(c.value)return;M.value=null;const be=Number(((X=p.value)==null?void 0:X.style.getPropertyValue("--swipe-amount").replace("px",""))||0);if(Math.abs(be)>=V8){u.value=T.value,(le=(z=o.toast).onDismiss)==null||le.call(z,o.toast),I(),c.value=!0;return}(ae=p.value)==null||ae.style.setProperty("--swipe-amount","0px"),l.value=!0},Q=A=>{var X;if(!M.value)return;const z=A.clientY-M.value.y,le=A.clientX-M.value.x,ae=(V.value[0]==="top"?Math.min:Math.max)(0,z),be=A.pointerType==="touch"?10:2;Math.abs(ae)>be?(X=p.value)==null||X.style.setProperty("--swipe-amount",`${z}px`):Math.abs(le)>be&&(M.value=null)};return a.watchEffect(A=>{if(o.toast.promise&&d.value==="loading"||o.toast.duration===1/0)return;let X;const z=()=>{if(B.value<$.value){const ae=new Date().getTime()-$.value;R.value=R.value-ae}B.value=new Date().getTime()},le=()=>{$.value=new Date().getTime(),X=setTimeout(()=>{var ae,be;(be=(ae=o.toast).onAutoClose)==null||be.call(ae,o.toast),I()},R.value)};o.expanded||o.interacting?z():le(),A(()=>{clearTimeout(X)})}),a.onMounted(()=>{if(p.value){const A=p.value.getBoundingClientRect().height;h.value=A;const X=[{toastId:o.toast.id,height:A},...o.heights];n("update:heights",X)}}),a.onUnmounted(()=>{if(p.value){const A=o.heights.filter(X=>X.toastId!==o.toast.id);n("update:heights",A)}}),a.watchEffect(()=>{o.toast.delete&&I()}),(A,X)=>(a.openBlock(),a.createElementBlock("li",{"aria-live":A.toast.important?"assertive":"polite","aria-atomic":"",role:"status",tabindex:"0",ref_key:"toastRef",ref:p,"data-sonner-toast":"",class:a.normalizeClass(a.unref(b)),"data-styled":!ie.value,"data-mounted":s.value,"data-promise":!!A.toast.promise,"data-removed":i.value,"data-visible":g.value,"data-y-position":K.value,"data-x-position":L.value,"data-index":o.index,"data-front":m.value,"data-swiping":l.value,"data-type":d.value!=="loading"&&d.value?d.value:O.value,"data-invert":ge.value,"data-swipe-out":c.value,"data-expanded":!!(o.expanded||o.expandByDefault&&s.value),style:a.normalizeStyle({"--index":o.index,"--toasts-before":o.index,"--z-index":A.toasts.length-o.index,"--offset":`${i.value?u.value:T.value}px`,"--initial-height":o.expandByDefault?"auto":`${h.value}px`,...a.unref(k)}),onPointerdown:Z,onPointerup:P,onPointermove:Q},[o.closeButton&&!ie.value?(a.openBlock(),a.createElementBlock("button",{key:0,"aria-label":"Close toast","data-close-button":"","data-disabled":Se.value,onClick:N},[a.createVNode(_8)],8,T8)):a.createCommentVNode("",!0),O.value||A.toast.icon||A.toast.promise?(a.openBlock(),a.createElementBlock("div",Q8,[typeof A.toast.promise=="function"||O.value==="loading"?(a.openBlock(),a.createBlock(Gq,{key:0,visible:d.value==="loading"||O.value==="loading"},null,8,["visible"])):a.createCommentVNode("",!0),Pe.value==="success"?(a.openBlock(),a.createBlock(r8,{key:1})):Pe.value==="info"?(a.openBlock(),a.createBlock(l8,{key:2})):Pe.value==="warning"?(a.openBlock(),a.createBlock(p8,{key:3})):Pe.value==="error"?(a.openBlock(),a.createBlock(v8,{key:4})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",E8,[a.createElementVNode("div",N8,[typeof A.toast.title=="string"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(A.toast.title),1)],64)):A.toast.title===void 0||A.toast.title===null?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(q.value),1)],64)):ie.value?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(A.toast.title),{key:2,onCloseToast:X[0]||(X[0]=()=>{var z;I(),(z=A.toast.cancel)!=null&&z.onClick&&A.toast.cancel.onClick()})},null,32)):a.createCommentVNode("",!0)]),A.toast.description?(a.openBlock(),a.createElementBlock("div",{key:0,"data-description":"",class:a.normalizeClass(A.descriptionClass+a.unref(v))},a.toDisplayString(A.toast.description),3)):a.createCommentVNode("",!0)]),A.toast.cancel?(a.openBlock(),a.createElementBlock("button",{key:2,"data-button":"","data-cancel":"",onClick:X[1]||(X[1]=()=>{var z;I(),(z=A.toast.cancel)!=null&&z.onClick&&A.toast.cancel.onClick()})},a.toDisplayString(A.toast.cancel.label),1)):a.createCommentVNode("",!0),A.toast.action?(a.openBlock(),a.createElementBlock("button",{key:3,"data-button":"",onClick:X[2]||(X[2]=()=>{var z;I(),(z=A.toast.action)==null||z.onClick()})},a.toDisplayString(A.toast.action.label),1)):a.createCommentVNode("",!0)],46,C8))}}),I8=["aria-label"],j8=["dir","data-theme","data-rich-colors","data-y-position","data-x-position"],D8=3,Ty="32px",M8=4e3,q8=356,Qy=14,X8=typeof window<"u"&&typeof document<"u",W8=a.defineComponent({name:"Toaster",inheritAttrs:!1,__name:"Toaster",props:{invert:{type:Boolean,default:!1},theme:{default:"light"},position:{default:"bottom-right"},hotkey:{default:()=>["altKey","KeyT"]},richColors:{type:Boolean,default:!1},expand:{type:Boolean,default:!1},duration:{default:M8},gap:{default:Qy},visibleToasts:{default:D8},closeButton:{type:Boolean,default:!1},toastOptions:{default:()=>({})},className:{default:""},style:{default:()=>({})},offset:{default:Ty},dir:{default:"auto"}},setup(r){const e=r,t=a.useAttrs(),n=a.ref([]),o=a.ref([]),s=a.ref(!1),i=a.ref(!1),l=a.ref(e.theme!=="system"?e.theme:typeof window<"u"&&window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"),c=a.computed(()=>e.position.split("-")),d=a.ref(null),u=e.hotkey.join("+").replace(/Key/g,"").replace(/Digit/g,"");function h(p){n.value=n.value.filter(({id:m})=>m!==p.id)}function f(){if(typeof window>"u")return"ltr";const p=document.documentElement.getAttribute("dir");return p==="auto"||!p?window.getComputedStyle(document.documentElement).direction:p}return a.onMounted(()=>{const p=ar.subscribe(m=>{if(m.dismiss){n.value=n.value.map(g=>g.id===m.id?{...g,delete:!0}:g);return}a.nextTick(()=>{const g=n.value.findIndex(O=>O.id===m.id);g!==-1?n.value.splice(g,1,m):n.value=[m,...n.value]})});a.onUnmounted(()=>{p()})}),a.watch(()=>e.theme,p=>{if(p!=="system"){l.value=p;return}p==="system"&&(window.matchMedia&&window.matchMedia("(prefers-color-scheme: dark)").matches?l.value="dark":l.value="light"),!(typeof window>"u")&&window.matchMedia("(prefers-color-scheme: dark)").addEventListener("change",({matches:m})=>{m?l.value="dark":l.value="light"})}),a.watchEffect(()=>{n.value.length<=1&&(s.value=!1)}),a.watchEffect(p=>{function m(g){var O,y;e.hotkey.every(b=>g[b]||g.code===b)&&(s.value=!0,(O=d.value)==null||O.focus()),g.code==="Escape"&&(document.activeElement===d.value||(y=d.value)!=null&&y.contains(document.activeElement))&&(s.value=!1)}X8&&(document.addEventListener("keydown",m),p(()=>{document.removeEventListener("keydown",m)}))}),(p,m)=>{var g;return a.openBlock(),a.createElementBlock("section",{"aria-label":`Notifications ${a.unref(u)}`,tabIndex:-1},[a.createElementVNode("ol",{ref_key:"listRef",ref:d,"data-sonner-toaster":"",dir:p.dir==="auto"?f():p.dir,tabIndex:-1,"data-theme":p.theme,"data-rich-colors":p.richColors,"data-y-position":c.value[0],"data-x-position":c.value[1],style:a.normalizeStyle({"--front-toast-height":`${(g=o.value[0])==null?void 0:g.height}px`,"--offset":typeof p.offset=="number"?`${p.offset}px`:p.offset||Ty,"--width":`${q8}px`,"--gap":`${Qy}px`,...a.unref(t).style}),onMouseenter:m[1]||(m[1]=O=>s.value=!0),onMousemove:m[2]||(m[2]=O=>s.value=!0),onMouseleave:m[3]||(m[3]=()=>{i.value||(s.value=!1)}),onPointerdown:m[4]||(m[4]=O=>i.value=!1),onPointerup:m[5]||(m[5]=O=>i.value=!1)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(O,y)=>{var b,v,k,S;return a.openBlock(),a.createBlock(Z8,{key:O.id,index:y,toast:O,duration:((b=p.toastOptions)==null?void 0:b.duration)??p.duration,className:(v=p.toastOptions)==null?void 0:v.className,descriptionClassName:(k=p.toastOptions)==null?void 0:k.descriptionClassName,invert:p.invert,visibleToasts:p.visibleToasts,closeButton:p.closeButton,interacting:i.value,position:p.position,style:a.normalizeStyle((S=p.toastOptions)==null?void 0:S.style),toasts:n.value,expandByDefault:p.expand,gap:p.gap,expanded:s.value,heights:o.value,"onUpdate:heights":m[0]||(m[0]=w=>o.value=w),onRemoveToast:h},null,8,["index","toast","duration","className","descriptionClassName","invert","visibleToasts","closeButton","interacting","position","style","toasts","expandByDefault","gap","expanded","heights"])}),128))],44,j8)],8,I8)}}}),QS={toast:()=>null};function z8(r){QS.toast=r}function ES(){return{initializeToasts:z8,toast:(r,e="info",t={timeout:3e3})=>{QS.toast(r,e,t)}}}const U8=a.defineComponent({__name:"ScalarToasts",setup(r){const e=a.ref(!1);a.onMounted(()=>e.value=!0);const t={success:Rl.success,error:Rl.error,warn:Rl.warning,info:Rl},{initializeToasts:n}=ES();return n((o,s="info",i={})=>{(t[s]||t.info)(o,{duration:i.timeout||3e3})}),(o,s)=>e.value?(a.openBlock(),a.createBlock(a.unref(W8),{key:0,toastOptions:{className:"toaster"}})):a.createCommentVNode("",!0)}}),na=()=>{const{toast:r}=ES();return{copyToClipboard:t=>{navigator.clipboard.writeText(t).then(()=>{r("Copied to the clipboard","info")})}}},On=a.ref(!1);function Y8(r){var o;const e=()=>{var i,l;const s=typeof window<"u"?(i=window.localStorage)==null?void 0:i.getItem("isDark"):null;return typeof s=="string"?!!JSON.parse(s):!!(typeof window<"u"&&((l=window==null?void 0:window.matchMedia("(prefers-color-scheme: dark)"))!=null&&l.matches))},t=()=>{var s;On.value=!On.value,typeof window<"u"&&((s=window==null?void 0:window.localStorage)==null||s.setItem("isDark",JSON.stringify(On.value)))};function n(s){var i;On.value=s,typeof window<"u"&&((i=window==null?void 0:window.localStorage)==null||i.setItem("isDark",JSON.stringify(On.value)))}return On.value=(typeof window>"u"?null:JSON.parse(((o=window.localStorage)==null?void 0:o.getItem("isDark"))||"null"))??r??e(),a.watch(On,s=>{typeof document>"u"||(document.body.classList.toggle("dark-mode",s),document.body.classList.toggle("light-mode",!s))},{immediate:!0}),{isDark:On,toggleDarkMode:t,setDarkMode:n}}const L8=["unirest"],Nf=a.ref([...L8]),H8=Dy.availableTargets().map(r=>(r.key==="node"&&(r.default="undici",r.clients.unshift({description:"An HTTP/1.1 client, written from scratch for Node.js.",key:"undici",link:"https://github.com/nodejs/undici",title:"undici"})),r.clients=r.clients.filter(e=>!Nf.value.includes(e.key)),r)).filter(r=>r.clients.length);function Yi(){return{availableTargets:a.computed(()=>H8),excludedClients:a.readonly(Nf),setExcludedClients:e=>Nf.value=e}}const qm=a.ref(Bs.hash??""),Uc=a.ref(),G8=a.ref(!1),F8=r=>r.slug?`description/${r.slug}`:"",NS=r=>{var t;if(!Uc.value)return"";const e=new RegExp("^"+((t=Uc.value)==null?void 0:t.basePath)+"/?");return decodeURIComponent(r.replace(e,""))},K8=(r,e)=>{if(!r)return"webhooks";const t=ki.slug(r),n=encodeURIComponent(t);return`webhook/${e}/${n}`},J8=r=>{if(!r)return"models";const e=ki.slug(r);return`model/${encodeURIComponent(e)}`},eX=(r,e)=>`${AS(e)}/${r.httpVerb}${r.path}`,AS=({name:r})=>{const e=ki.slug(r);return`tag/${encodeURIComponent(e)}`},tX=(r=qm.value)=>{var n;const e=(n=r.match(/(tag\/[^/]+)/))==null?void 0:n[0],t=r.startsWith("model")?"models":"";return e??t},rX=()=>{qm.value=Uc.value?NS(window.location.pathname):decodeURIComponent(window.location.hash.replace(/^#/,""))},mt=()=>({hash:qm,getWebhookId:K8,getModelId:J8,getHeadingId:F8,getOperationId:eX,getPathRoutingId:NS,getSectionId:tX,getTagId:AS,isIntersectionEnabled:G8,pathRouting:Uc,updateHash:rX});function Xm(r){return{parameterMap:a.computed(()=>{var o;const t=((o=r.operation.information)==null?void 0:o.parameters)??[],n={path:[],query:[],header:[],body:[],formData:[]};return r.operation.pathParameters&&r.operation.pathParameters.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),t&&t.forEach(s=>{s.in==="path"?n.path.push(s):s.in==="query"?n.query.push(s):s.in==="header"?n.header.push(s):s.in==="body"?n.body.push(s):s.in==="formData"&&n.formData.push(s)}),n})}}const Ey=()=>({info:{title:"",description:"",termsOfService:"",version:"",license:{name:"",url:""},contact:{email:""}},externalDocs:{description:"",url:""},components:{schemas:{},securitySchemes:{}},servers:[],tags:[]}),nX=async({url:r,content:e},t)=>{if(r)return Qw(r)?await pg(r,t):await pg(r);const n=typeof e=="function"?e():e;if(typeof n=="string")return n;if(typeof n=="object")return JSON.stringify(n)};function RS({specConfig:r,proxy:e}){const t=a.ref(""),n=a.reactive(Ey()),o=a.ref(null);function s(i){return i?_S(i).then(l=>{o.value=null,Object.assign(n,{servers:[],...l})}).catch(l=>{o.value=l.toString()}):Object.assign(n,Ey())}return a.watch(()=>a.toValue(r),async i=>{var l;if(i){const c=(l=await nX(i,a.toValue(e)))==null?void 0:l.trim();typeof c=="string"&&(t.value=c)}},{immediate:!0,deep:!0}),a.watch(t,()=>{s(t.value)}),{rawSpec:t,parsedSpec:n,specErrors:o}}function Wm(r){return{responses:a.computed(()=>{if(!r.information)return[];const{responses:t}=r.information,n=[];return t&&Object.keys(t).forEach(o=>{n.push({name:o,description:t[o].description})}),n})}}const{getHeadingId:Ny,getModelId:Ay,getOperationId:Ry,getSectionId:oX,getTagId:VS,getWebhookId:Ju,hash:Af}=mt(),Je=a.ref(void 0);function sX(r){return Je.value=r}const BS=a.ref(!1),Yc=a.reactive(Bs["useSidebarContent-collapsedSidebarItems"]??{});function aX(r){Yc[r]=!Yc[r]}function eh(r,e){Yc[r]=e}const Lc=a.ref([]),iX=async r=>{const e=await pi(r),t=yd(e);return e.filter(n=>n.depth===t||n.depth===t+1)},ZS=a.computed(()=>{var h,f,p,m,g,O,y,b,v,k;const{state:r}=Fc(),e={},{openApi:{globalSecurity:t}}=rd(),n=[];let o=null;Lc.value.forEach(S=>{var w;S.depth===yd(Lc.value)?(o={id:Ny(S),title:S.value.toUpperCase(),show:!r.showApiClient,children:[]},n.push(o)):o&&((w=o.children)==null||w.push({id:Ny(S),title:S.value,show:!r.showApiClient}))});const s=(f=(h=Je.value)==null?void 0:h.tags)==null?void 0:f[0],l=s&&(S=>(S==null?void 0:S.length)!==1||S[0].name!=="default"||S[0].description!=="")((p=Je.value)==null?void 0:p.tags)?(g=(m=Je.value)==null?void 0:m.tags)==null?void 0:g.filter(S=>{var w;return((w=S.operations)==null?void 0:w.length)>0}).map(S=>{var w;return{id:VS(S),title:S.name.toUpperCase(),show:!0,children:(w=S.operations)==null?void 0:w.map($=>{var B;const T=Ry($,S),R=$.name??$.path;return e[T]=R,{id:T,title:R,httpVerb:$.httpVerb,deprecated:((B=$.information)==null?void 0:B.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Bc($,t)}}})}}):(O=s==null?void 0:s.operations)==null?void 0:O.map(S=>{var T;const w=Ry(S,s),$=S.name??S.path;return e[w]=$,{id:w,title:$,httpVerb:S.httpVerb,deprecated:((T=S.information)==null?void 0:T.deprecated)??!1,show:!0,select:()=>{r.showApiClient&&Bc(S,t)}}}),c=Ep(Je.value)&&!BS.value?[{id:Ay(),title:"MODELS",show:!r.showApiClient,children:Object.keys(ur(Je.value)??{}).map(S=>{var $;const w=Ay(S);return e[w]=S,{id:w,title:(($=ur(Je.value))==null?void 0:$[S]).title??S,show:!r.showApiClient}})}]:[],d=(y=Je.value)!=null&&y["x-tagGroups"]?(v=(b=Je.value)==null?void 0:b["x-tagGroups"])==null?void 0:v.map(S=>{const w=[];return S.tags.map(T=>{if(T.toUpperCase()==="MODELS"&&c.length>0)w.push(c[0]);else{const R=l==null?void 0:l.find(B=>B.title===T.toUpperCase());R&&w.push(R)}}),{id:S.name,title:S.name.toUpperCase(),children:w,show:!0,isGroup:!0}}):void 0,u=Tw(Je.value)?[{id:Ju(),title:"WEBHOOKS",show:!r.showApiClient,children:Object.keys(((k=Je.value)==null?void 0:k.webhooks)??{}).map(S=>{var $,T;const w=Ju(S);return e[w]=S,Object.keys(((T=($=Je.value)==null?void 0:$.webhooks)==null?void 0:T[S])??{}).map(R=>{var B,M,V;return{id:Ju(S,R),title:(V=(M=(B=Je.value)==null?void 0:B.webhooks)==null?void 0:M[S][R])==null?void 0:V.name,httpVerb:R,show:!r.showApiClient}})}).flat()}]:[];return{entries:[...n,...d??l??[],...d?[]:u,...d?[]:c],titles:e}}),lX=a.ref(!1),cX=a.computed(()=>{var r,e;return((e=(r=ZS.value)==null?void 0:r.titles)==null?void 0:e[Af.value])??""});function vr(r){return r!=null&&r.parsedSpec&&(Je.value=r.parsedSpec,a.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t.length},()=>{var e,t;if(Af.value){const n=oX(Af.value);n&&eh(n,!0)}else{const n=(t=(e=Je.value)==null?void 0:e.tags)==null?void 0:t[0];n&&eh(VS(n),!0)}}),a.watch(()=>{var e,t;return(t=(e=Je.value)==null?void 0:e.info)==null?void 0:t.description},async()=>{var t,n;const e=(n=(t=Je.value)==null?void 0:t.info)==null?void 0:n.description;return e?Lc.value=await iX(e):Lc.value=[]})),{breadcrumb:cX,items:ZS,isSidebarOpen:lX,collapsedSidebarItems:Yc,toggleCollapsedSidebarItem:aX,setCollapsedSidebarItem:eh,hideModels:BS,setParsedSpec:sX}}const dX=a.defineComponent({__name:"SidebarHttpBadge",props:{active:{type:Boolean},method:{}},setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(Eo),{class:a.normalizeClass(["sidebar-heading-type",{"sidebar-heading-type-active":e.active}]),method:e.method,property:"--method-color",short:""},null,8,["class","method"]))}}),IS=W(dX,[["__scopeId","data-v-6563458b"]]),uX=["id"],hX={key:0,class:"sidebar-heading-chevron"},fX=["href"],pX={class:"sidebar-heading-link-title"},mX={key:1,class:"sidebar-heading-link-method"},gX={key:1,class:"action-menu"},OX=a.defineComponent({__name:"SidebarElement",props:{id:{},item:{},isActive:{type:Boolean},hasChildren:{type:Boolean},open:{type:Boolean}},emits:["toggleOpen"],setup(r,{emit:e}){const t=r,n=e,{hash:o,isIntersectionEnabled:s,pathRouting:i}=mt(),l=async()=>{var u,h;t.hasChildren&&n("toggleOpen"),(h=(u=t.item)==null?void 0:u.select)==null||h.call(u),t.open&&(s.value=!1,await Dr(100),s.value=!0)},c=()=>{if(i.value)return i.value.basePath+"/"+t.item.id;{const u=new URL(window.location.href);return u.hash=t.item.id,`${u.pathname}${u.search}${u.hash}`}},d=async u=>{var h,f;if(i.value){u.preventDefault(),t.hasChildren&&n("toggleOpen"),(f=(h=t.item)==null?void 0:h.select)==null||f.call(h),n("toggleOpen"),s.value=!1,o.value=t.item.id;const p=new URL(window.location.href);p.pathname=i.value.basePath+"/"+t.item.id,window.history.pushState({},"",p),vi(t.item.id),await Dr(100),s.value=!0}};return(u,h)=>{var f,p;return a.openBlock(),a.createElementBlock("li",{id:u.id,class:"sidebar-group-item"},[a.createElementVNode("div",{class:a.normalizeClass(["sidebar-heading",{"sidebar-group-item__folder":u.hasChildren,active_page:u.isActive,deprecated:u.item.deprecated??!1}]),onClick:l},[u.hasChildren?(a.openBlock(),a.createElementBlock("p",hX,[a.createVNode(a.unref(Ni),{class:"toggle-nested-icon",icon:u.open?"ChevronDown":"ChevronRight",label:"Toggle group",size:"sm",onClick:a.withModifiers(l,["stop"])},null,8,["icon"]),a.createTextVNode("   ")])):a.createCommentVNode("",!0),a.createElementVNode("a",{class:"sidebar-heading-link",href:c(),onClick:d},[(p=(f=u.item)==null?void 0:f.icon)!=null&&p.src?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,class:"sidebar-icon",icon:u.item.icon.src},null,8,["icon"])):a.createCommentVNode("",!0),a.createElementVNode("p",pX,a.toDisplayString(u.item.title),1),u.item.httpVerb&&!u.hasChildren?(a.openBlock(),a.createElementBlock("p",mX,[a.createTextVNode("   "),a.createVNode(IS,{active:u.isActive,method:u.item.httpVerb},null,8,["active","method"])])):a.createCommentVNode("",!0)],8,fX)],2),u.open?a.renderSlot(u.$slots,"default",{key:0},void 0,!0):a.createCommentVNode("",!0),u.$slots["action-menu"]?(a.openBlock(),a.createElementBlock("div",gX,[a.renderSlot(u.$slots,"action-menu",{},void 0,!0)])):a.createCommentVNode("",!0)],8,uX)}}}),Vl=W(OX,[["__scopeId","data-v-07a8209e"]]),yX=a.defineComponent({__name:"SidebarGroup",props:{level:{}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("ul",{class:"sidebar-group sidebar-indent-nested",style:a.normalizeStyle({"--scalar-sidebar-level":e.level})},[a.renderSlot(e.$slots,"default",{},void 0,!0)],4))}}),th=W(yX,[["__scopeId","data-v-58237183"]]),bX={class:"sidebar"},vX={class:"sidebar-group-title"},wX=-160,kX=a.defineComponent({__name:"Sidebar",props:{parsedSpec:{}},setup(r){const e=r,{hash:t,isIntersectionEnabled:n}=mt(),{items:o,toggleCollapsedSidebarItem:s,collapsedSidebarItems:i}=vr({parsedSpec:e.parsedSpec}),l=a.ref(null),c=a.ref(!0);a.watch(t,u=>{!n.value||c.value||typeof window>"u"||d(u)});const d=u=>{var p,m,g,O;const h=document.getElementById(`sidebar-${u}`);if(!h||!l.value)return;let f=wX;h.getAttribute("data-sidebar-type")==="heading"?f+=h.offsetTop+((p=h.getElementsByClassName("sidebar-heading"))==null?void 0:p[0]).offsetHeight:f+=h.offsetTop+(((m=h.parentElement)==null?void 0:m.offsetTop)??0)+(((O=(g=h.parentElement)==null?void 0:g.parentElement)==null?void 0:O.offsetTop)??0),l.value.scrollTo({top:f,behavior:"smooth"})};return a.onMounted(()=>{setTimeout(()=>d(t.value),500),c.value=!1}),(u,h)=>(a.openBlock(),a.createElementBlock("div",bX,[a.renderSlot(u.$slots,"sidebar-start",{},void 0,!0),a.createElementVNode("div",{ref_key:"scrollerEl",ref:l,class:"sidebar-pages custom-scroll custom-scroll-self-contain-overflow"},[a.createVNode(th,{level:0},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o).entries,f=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:f.id},[f.isGroup?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("li",vX,a.toDisplayString(f.title),1),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,p=>(a.openBlock(),a.createBlock(Vl,{key:p.id,id:`sidebar-${p.id}`,"data-sidebar-type":"heading",hasChildren:p.children&&p.children.length>0,isActive:a.unref(t)===p.id,item:{id:p.id,title:p.title,select:p.select,httpVerb:p.httpVerb,deprecated:p.deprecated??!1},open:a.unref(i)[p.id]??!1,onToggleOpen:async()=>{c.value=!0,a.unref(s)(p.id),await a.unref(Dr)(100),c.value=!1}},{default:a.withCtx(()=>{var m;return[p.children&&((m=p.children)==null?void 0:m.length)>0?(a.openBlock(),a.createBlock(th,{key:0,level:2},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.children,g=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:g.id},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${g.id}`,isActive:a.unref(t)===g.id,item:{id:g.id,title:g.title,select:g.select,httpVerb:g.httpVerb,deprecated:g.deprecated??!1}},null,8,["id","isActive","item"])):a.createCommentVNode("",!0)],64))),128))]),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"]))),128))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${f.id}`,"data-sidebar-type":"heading",hasChildren:f.children&&f.children.length>0,isActive:a.unref(t)===f.id,item:{id:f.id,title:f.title,select:f.select,httpVerb:f.httpVerb,deprecated:f.deprecated??!1},open:a.unref(i)[f.id]??!1,onToggleOpen:async()=>{c.value=!0,a.unref(s)(f.id),await a.unref(Dr)(100),c.value=!1}},{default:a.withCtx(()=>{var p;return[f.children&&((p=f.children)==null?void 0:p.length)>0?(a.openBlock(),a.createBlock(th,{key:0,level:1},{default:a.withCtx(()=>[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(f.children,m=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:m.id},[f.show?(a.openBlock(),a.createBlock(Vl,{key:0,id:`sidebar-${m.id}`,isActive:a.unref(t)===m.id,item:{id:m.id,title:m.title,select:m.select,httpVerb:m.httpVerb,deprecated:m.deprecated??!1}},null,8,["id","isActive","item"])):a.createCommentVNode("",!0)],64))),128))]),_:2},1024)):a.createCommentVNode("",!0)]}),_:2},1032,["id","hasChildren","isActive","item","open","onToggleOpen"])):a.createCommentVNode("",!0)],64))],64))),128))]),_:1})],512),a.renderSlot(u.$slots,"sidebar-end",{},void 0,!0)]))}}),zm=W(kX,[["__scopeId","data-v-404804be"]]),SX={key:0,class:"api-client-drawer"},$X={class:"api-client-container"},PX={class:"scalar-api-client-height"},xX={class:"scalar-api-client-states"},_X={class:"t-doc__sidebar"},CX=a.defineComponent({__name:"ApiClientModal",props:{parsedSpec:{},overloadShow:{type:Boolean},proxyUrl:{}},emits:["toggleDarkMode"],setup(r){const{hideApiClient:e,state:t}=Fc(),n=De.useMediaQuery("(max-width: 1000px)"),o=a.ref(!1);return(s,i)=>(a.openBlock(),a.createElementBlock(a.Fragment,null,[a.unref(t).showApiClient||s.overloadShow?(a.openBlock(),a.createElementBlock("div",SX,[a.createElementVNode("div",$X,[a.renderSlot(s.$slots,"header",{},void 0,!0),a.createElementVNode("div",PX,[a.createVNode(a.unref(yB),{proxyUrl:s.proxyUrl,showSideBar:o.value,theme:"none",withDefaultFonts:!1,onEscapeKeyPress:a.unref(e)},{"address-bar-controls":a.withCtx(()=>[a.createElementVNode("div",xX,[a.createElementVNode("button",{class:"scalar-api-client-states-button scalar-api-client-states-button__endpoints",type:"button",onClick:i[0]||(i[0]=l=>o.value=!o.value)},[a.createVNode(a.unref(Ze),{icon:o.value?"SideBarClosed":"SideBarOpen",size:"sm"},null,8,["icon"])]),a.createElementVNode("button",{class:"scalar-api-client-states-button",type:"button",onClick:i[1]||(i[1]=(...l)=>a.unref(e)&&a.unref(e)(...l))},[a.createVNode(a.unref(Ze),{icon:"Close",size:"sm"})])])]),sidebar:a.withCtx(()=>[a.createElementVNode("div",_X,[a.withDirectives(a.createVNode(a.unref(zm),{parsedSpec:s.parsedSpec},{"sidebar-start":a.withCtx(()=>[a.renderSlot(s.$slots,"sidebar-start",{},void 0,!0)]),_:3},8,["parsedSpec"]),[[a.vShow,!a.unref(n)]])])]),_:3},8,["proxyUrl","showSideBar","onEscapeKeyPress"])])])])):a.createCommentVNode("",!0),a.unref(t).showApiClient?(a.openBlock(),a.createElementBlock("div",{key:1,class:"api-client-drawer-exit",onClick:i[2]||(i[2]=(...l)=>a.unref(e)&&a.unref(e)(...l))})):a.createCommentVNode("",!0)],64))}}),jS=W(CX,[["__scopeId","data-v-09847367"]]),DS=()=>({targetKey:"shell",clientKey:"curl"}),As=a.reactive(DS());function TX(){Ew(As,DS())}function MS(r){var t;const{availableTargets:e}=Yi();return((t=e.value.find(n=>n.key===r.targetKey))==null?void 0:t.title)??r.targetKey}function qS(r){var t,n;const{availableTargets:e}=Yi();return((n=(t=e.value.find(o=>o.key===r.targetKey))==null?void 0:t.clients.find(o=>o.key===r.clientKey))==null?void 0:n.title)??r.clientKey}const QX=r=>{Object.assign(As,{...As,...r})},EX=a.computed(()=>MS(As)),NX=a.computed(()=>qS(As)),Jd=()=>({httpClient:a.readonly(As),resetState:TX,setHttpClient:QX,httpTargetTitle:EX,httpClientTitle:NX,getClientTitle:qS,getTargetTitle:MS}),AX={},RX={class:"scalar-card"};function VX(r,e){return a.openBlock(),a.createElementBlock("div",RX,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Xn=W(AX,[["render",VX],["__scopeId","data-v-dcabb131"]]),BX=a.defineComponent({__name:"CardContent",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["scalar-card-content",{"scalar-card--muted":e.muted,"scalar-card--contrast":e.contrast,"scalar-card--frameless":e.frameless,"scalar-card--transparent":e.transparent,"scalar-card--borderless":e.borderless}])},[a.renderSlot(e.$slots,"default",{},void 0,!0)],2))}}),Or=W(BX,[["__scopeId","data-v-5312c2e0"]]),ZX={class:"scalar-card-header-slots"},IX={class:"scalar-card-header-slot scalar-card-header-title"},jX={class:"scalar-card-header-slot scalar-card-header-actions"},DX=a.defineComponent({__name:"CardHeader",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createBlock(Or,a.mergeProps(e,{class:"scalar-card-header"}),{default:a.withCtx(()=>[a.createElementVNode("div",ZX,[a.createElementVNode("div",IX,[a.renderSlot(t.$slots,"default",{},void 0,!0)]),a.createElementVNode("div",jX,[a.renderSlot(t.$slots,"actions",{},void 0,!0)])])]),_:3},16))}}),Wn=W(DX,[["__scopeId","data-v-bbd0c20a"]]),MX=a.defineComponent({__name:"CardFooter",props:{muted:{type:Boolean},contrast:{type:Boolean},frameless:{type:Boolean},transparent:{type:Boolean},borderless:{type:Boolean}},setup(r){const e=r;return(t,n)=>(a.openBlock(),a.createBlock(Or,a.normalizeProps(a.guardReactiveProps(e)),{default:a.withCtx(()=>[a.renderSlot(t.$slots,"default",{},void 0,!0)]),_:3},16))}}),Li=W(MX,[["__scopeId","data-v-918ab8d6"]]),qX=a.defineComponent({__name:"CardTabHeader",emits:["change"],setup(r,{emit:e}){const t=e,n=o=>{t("change",o)};return(o,s)=>(a.openBlock(),a.createBlock(Wn,{class:"scalar-card-header-tabs"},{actions:a.withCtx(()=>[a.renderSlot(o.$slots,"actions",{},void 0,!0)]),default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabGroup),{onChange:n},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.TabList),{class:"tab-list custom-scroll"},{default:a.withCtx(()=>[a.renderSlot(o.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]),_:3}))}}),XS=W(qX,[["__scopeId","data-v-6a91b57c"]]),XX=a.defineComponent({__name:"CardTab",setup(r){return(e,t)=>(a.openBlock(),a.createBlock(a.unref(ye.Tab),{as:"template"},{default:a.withCtx(({selected:n})=>[a.createElementVNode("button",{class:a.normalizeClass({tab:!0,"tab-selected":n}),type:"button"},[a.createElementVNode("span",null,[a.renderSlot(e.$slots,"default",{},void 0,!0)])],2)]),_:3}))}}),WS=W(XX,[["__scopeId","data-v-f373ecc2"]]),WX={class:"selector"},zX=a.defineComponent({__name:"Authentication",props:{parsedSpec:{}},setup(r){const e=r,{authentication:t,setAuthentication:n}=qn(),o=a.computed(()=>{var i,l,c;if(!t.preferredSecurityScheme)return!1;const s=(c=(l=(i=e.parsedSpec)==null?void 0:i.components)==null?void 0:l.securitySchemes)==null?void 0:c[t.preferredSecurityScheme];return!!s&&"type"in s&&!!s.type});return a.watch(()=>{var s,i;return(i=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:i.securitySchemes},()=>{var s,i;n({securitySchemes:(i=(s=e.parsedSpec)==null?void 0:s.components)==null?void 0:i.securitySchemes})},{deep:!0,immediate:!0}),a.onServerPrefetch(async()=>{const s=a.useSSRContext();await Dr(1),s.payload.data["useGlobalStore-authentication"]=t}),(s,i)=>a.unref(Cw)(s.parsedSpec)?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",class:"authentication-header",transparent:""},{actions:a.withCtx(()=>{var l,c;return[a.createElementVNode("div",WX,[a.createVNode(a.unref(kw),{value:(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes},null,8,["value"])])]}),default:a.withCtx(()=>[a.createTextVNode(" Authentication ")]),_:1}),o.value?(a.openBlock(),a.createBlock(a.unref(Or),{key:0,class:"authentication-content",transparent:""},{default:a.withCtx(()=>{var l,c,d;return[a.unref(t).preferredSecurityScheme?(a.openBlock(),a.createBlock(a.unref(ww),{key:0,value:(d=(c=(l=s.parsedSpec)==null?void 0:l.components)==null?void 0:c.securitySchemes)==null?void 0:d[a.unref(t).preferredSecurityScheme]},null,8,["value"])):a.createCommentVNode("",!0)]}),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}),UX=W(zX,[["__scopeId","data-v-3e7b39cf"]]),YX=["innerHTML"],LX=a.defineComponent({__name:"MarkdownRenderer",props:{value:{},withImages:{type:Boolean,default:!1}},setup(r){const e=r,t=a.ref(""),n=e.withImages?[]:["img","picture"];return a.watch(()=>e.value,async()=>{var s;const o=await jy.unified().use(Iy).use(T$).use(Q$,{allowDangerousHtml:!0}).use(_$).use(ru,{...ru.defaultSchema,tagNames:(s=ru.defaultSchema.tagNames)==null?void 0:s.filter(i=>!n.includes(i))}).use(x$).use($$,{target:"_blank"}).use(P$).use(C$).process(e.value);t.value=String(o.value)},{immediate:!0}),a.onServerPrefetch(async()=>await Dr(1)),(o,s)=>(a.openBlock(),a.createElementBlock("div",{class:"markdown",innerHTML:t.value},null,8,YX))}}),jt=W(LX,[["__scopeId","data-v-e301bbc8"]]),HX=["title","innerHTML"],GX=a.defineComponent({__name:"ServerItem",props:{value:{},variables:{}},setup(r){const e=r,{copyToClipboard:t}=na(),n=a.computed(()=>{var i;const s=(((i=e.value)==null?void 0:i.url)??"").replace(/(<([^>]+)>)/gi,"");return Qp(s,l=>{var d;const c=(d=e.variables)==null?void 0:d.find(u=>u.name===l);return`<span class="base-url-variable">${((c==null?void 0:c.value)??"")!==""?c==null?void 0:c.value:`{${l}}`}</span>`})});return(o,s)=>o.value?(a.openBlock(),a.createElementBlock("a",{key:0,class:"base-url",title:o.value.description,onClick:s[0]||(s[0]=i=>a.unref(t)(o.value.url)),innerHTML:n.value},null,8,HX)):a.createCommentVNode("",!0)}}),FX=W(GX,[["__scopeId","data-v-8df90bd1"]]),KX={key:0},JX=["for"],e9=["id","value","onInput"],t9=["value"],r9={class:"input-value"},n9=["id","value","onInput"],o9=a.defineComponent({__name:"ServerVariables",props:{value:{}},setup(r){const{server:e,setServer:t}=qs(),n=(s,i)=>{const l=i.target.value,c=[...e.variables],d=c.findIndex(u=>u.name===s);c[d].value=l,t({variables:c})},o=s=>{const i=e.variables.findIndex(l=>l.name===s);return e.variables[i].value??""};return(s,i)=>s.value?(a.openBlock(),a.createElementBlock("div",KX,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(s.value,l=>(a.openBlock(),a.createElementBlock("div",{key:l.name,class:"input"},[a.createElementVNode("label",{for:`variable-${l.name}`},[a.createElementVNode("code",null,a.toDisplayString(l.name),1)],8,JX),l.enum?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createElementVNode("select",{id:`variable-${l.name}`,value:o(l.name),onInput:c=>n(l.name,c)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(l.enum,c=>(a.openBlock(),a.createElementBlock("option",{key:c,value:c},a.toDisplayString(c),9,t9))),128))],40,e9),a.createElementVNode("div",r9,a.toDisplayString(l.default),1)],64)):(a.openBlock(),a.createElementBlock("input",{key:1,id:`variable-${l.name}`,autocomplete:"off",placeholder:"value",spellcheck:"false",type:"text",value:o(l.name),onInput:c=>n(l.name,c)},null,40,n9))]))),128))])):a.createCommentVNode("",!0)}}),s9=W(o9,[["__scopeId","data-v-a812e319"]]),a9={class:"scalar-card-serverlist-container"},i9={class:"server-item"},l9={class:"server-selector"},c9=["value"],d9=["value"],u9={class:"description"},h9=a.defineComponent({__name:"BaseUrl",setup(r){const{server:e,setServer:t}=qs(),n=a.ref(0);return a.watch([n,()=>e.servers],()=>{var l,c,d;if(!e.servers.length)return;const o=((l=e.servers[n.value])==null?void 0:l.variables)??{},s=o?Object.keys(o).map(u=>{var h;return{name:u,value:((h=o[u].default)==null?void 0:h.toString())??""}}):[];i5((c=e.servers[n.value])==null?void 0:c.url).filter(u=>!o[u]).forEach(u=>{s.push({name:u,value:""})}),t({selectedServer:n.value,description:(d=e.servers[n.value])==null?void 0:d.description,variables:s})},{deep:!0}),(o,s)=>a.unref(e).servers.length>0?(a.openBlock(),a.createBlock(a.unref(Xn),{key:0},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",muted:""},{default:a.withCtx(()=>[a.createTextVNode(" Base URL ")]),_:1}),a.createVNode(a.unref(Or),{class:"scalar-card-serverlist"},{default:a.withCtx(()=>[a.createElementVNode("div",a9,[a.createElementVNode("div",i9,[a.createElementVNode("div",l9,[a.unref(e).servers.length>1?(a.openBlock(),a.createElementBlock("select",{key:0,value:n.value,onInput:s[0]||(s[0]=i=>n.value=parseInt(i.target.value,10))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(e).servers,(i,l)=>(a.openBlock(),a.createElementBlock("option",{key:l,value:l},a.toDisplayString(i.url),9,d9))),128))],40,c9)):a.createCommentVNode("",!0),a.createVNode(FX,{value:a.unref(e).servers[n.value],variables:a.unref(e).variables},null,8,["value","variables"]),a.unref(e).servers.length>1?(a.openBlock(),a.createBlock(a.unref(Ze),{key:1,icon:"ChevronDown"})):a.createCommentVNode("",!0)])]),a.createVNode(s9,{value:a.unref(e).variables},null,8,["value"])])]),_:1}),a.unref(e).description?(a.openBlock(),a.createBlock(a.unref(Or),{key:0,muted:""},{default:a.withCtx(()=>[a.createElementVNode("div",u9,[a.createVNode(a.unref(jt),{value:a.unref(e).description},null,8,["value"])])]),_:1})):a.createCommentVNode("",!0)]),_:1})):a.createCommentVNode("",!0)}}),f9=W(h9,[["__scopeId","data-v-db459e3b"]]),zS=r=>(a.pushScopeId("data-v-cae9ee2d"),r=r(),a.popScopeId(),r),p9=["onClick"],m9=["value"],g9=["label"],O9=["value"],y9={class:"code-languages-background code-languages-icon__more"},b9={key:1,class:"code-languages-icon",height:"50",viewBox:"0 0 50 50",width:"50",xmlns:"http://www.w3.org/2000/svg"},v9=zS(()=>a.createElementVNode("g",{fill:"currentColor","fill-rule":"nonzero"},[a.createElementVNode("path",{d:"M10.71 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M21.13 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0M31.55 25.3a3.87 3.87 0 1 0 7.74 0 3.87 3.87 0 0 0-7.74 0"})],-1)),w9=[v9],k9=zS(()=>a.createElementVNode("span",null,"More",-1)),S9=a.defineComponent({__name:"ClientSelector",setup(r){const{httpClient:e,setHttpClient:t,getClientTitle:n,getTargetTitle:o}=Jd(),{availableTargets:s}=Yi(),i=a.ref(),l=[{targetKey:"shell",clientKey:"curl"},{targetKey:"ruby",clientKey:"native"},{targetKey:"node",clientKey:"undici"},{targetKey:"php",clientKey:"guzzle"},{targetKey:"python",clientKey:"python3"},{targetKey:"c",clientKey:"libcurl"}],c=h=>`programming-language-${h}`,d=h=>h.targetKey===e.targetKey&&h.clientKey===e.clientKey,u=h=>l.some(f=>f.targetKey===h.targetKey&&f.clientKey===h.clientKey);return(h,f)=>(a.openBlock(),a.createElementBlock("div",{ref_key:"containerRef",ref:i,class:"client-libraries-content"},[(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(l,p=>a.createElementVNode("div",{key:p.clientKey,class:a.normalizeClass(["code-languages rendered-code-sdks",{"code-languages__active":d(p)}]),onClick:()=>a.unref(t)(p)},[a.createElementVNode("div",{class:a.normalizeClass(["code-languages-background",`code-languages-icon__${p.targetKey}`])},[a.createVNode(a.unref(Ze),{class:"code-languages-icon",icon:c(p.targetKey)},null,8,["icon"])],2),a.createElementVNode("span",null,a.toDisplayString(a.unref(o)(p)),1)],10,p9)),64)),a.createElementVNode("div",{class:a.normalizeClass(["code-languages code-languages__select",{"code-languages__active":a.unref(e)&&!u(a.unref(e))}])},[a.createElementVNode("select",{class:"language-select",value:JSON.stringify(a.unref(e)),onInput:f[0]||(f[0]=p=>a.unref(t)(JSON.parse(p.target.value)))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(s),p=>(a.openBlock(),a.createElementBlock("optgroup",{key:p.key,label:p.title},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(p.clients,m=>(a.openBlock(),a.createElementBlock("option",{key:m.key,value:JSON.stringify({targetKey:p.key,clientKey:m.key})},a.toDisplayString(a.unref(n)({targetKey:p.key,clientKey:m.key})),9,O9))),128))],8,g9))),128))],40,m9),a.createElementVNode("div",y9,[a.unref(e)&&!u(a.unref(e))?(a.openBlock(),a.createElementBlock("div",{key:0,class:a.normalizeClass(`code-languages-icon__${a.unref(e).targetKey}`)},[a.createVNode(a.unref(Ze),{class:"code-languages-icon",icon:c(a.unref(e).targetKey)},null,8,["icon"])],2)):(a.openBlock(),a.createElementBlock("svg",b9,w9))]),k9],2)],512))}}),$9=W(S9,[["__scopeId","data-v-cae9ee2d"]]),P9=a.defineComponent({__name:"ClientLibraries",setup(r){const{httpTargetTitle:e,httpClientTitle:t}=Jd();return(n,o)=>(a.openBlock(),a.createBlock(a.unref(Xn),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{borderless:"",transparent:""},{default:a.withCtx(()=>[a.createTextVNode(" Client Libraries ")]),_:1}),a.createVNode(a.unref(Or),{frameless:"",transparent:""},{default:a.withCtx(()=>[a.createVNode($9)]),_:1}),a.createVNode(a.unref(Li),{class:"selected-client card-footer",muted:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(a.unref(t))+" "+a.toDisplayString(a.unref(e)),1)]),_:1})]),_:1}))}}),x9=W(P9,[["__scopeId","data-v-2a099868"]]),_9={},C9={class:"badge"};function T9(r,e){return a.openBlock(),a.createElementBlock("div",C9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const wi=W(_9,[["render",T9],["__scopeId","data-v-190574ac"]]),Um=a.defineComponent({__name:"IntersectionObserver",props:{id:{},is:{}},emits:["intersecting"],setup(r,{emit:e}){const t=r,n=e,o=a.ref(),s=l=>{const c=l.offsetHeight;return`${c/2}px 0px ${c/2}px 0px`},i=l=>l.offsetHeight<window.innerHeight?.8:.5;return a.onMounted(()=>{if(o.value){const l={rootMargin:s(o.value),threshold:i(o.value)};De.useIntersectionObserver(o,([{isIntersecting:c}])=>{c&&t.id&&n("intersecting")},l)}}),(l,c)=>(a.openBlock(),a.createBlock(a.resolveDynamicComponent(l.is??"div"),{id:l.id,ref_key:"intersectionObserverRef",ref:o},{default:a.withCtx(()=>[a.renderSlot(l.$slots,"default")]),_:3},8,["id"]))}}),Q9=a.defineComponent({__name:"Section",props:{id:{},label:{}},setup(r){const e=r,{getSectionId:t,hash:n,isIntersectionEnabled:o,pathRouting:s}=mt(),{setCollapsedSidebarItem:i}=vr();function l(){var u;if(!e.label||!o.value)return;const c=new URL(window.location.href),d=e.id??"";s.value?c.pathname=s.value.basePath+"/"+d:c.hash=d,n.value=d,window.history.replaceState({},"",c),(u=e.id)!=null&&u.startsWith("model")&&i(t(e.id),!0)}return(c,d)=>(a.openBlock(),a.createBlock(Um,{is:"section",id:c.id,class:"section",onIntersecting:l},{default:a.withCtx(()=>[a.renderSlot(c.$slots,"default",{},void 0,!0)]),_:3},8,["id"]))}}),oa=W(Q9,[["__scopeId","data-v-0494f9f3"]]),E9={class:"section-accordion-button-content"},N9={key:0,class:"section-accordion-button-actions"},A9={key:0,class:"section-accordion-description"},R9={class:"section-accordion-content-card"},V9=a.defineComponent({__name:"SectionAccordion",props:{id:{},transparent:{type:Boolean}},setup(r){const e=a.ref(),t=De.useElementHover(e);return(n,o)=>(a.openBlock(),a.createBlock(Um,{id:n.id,class:"section-wrapper"},{default:a.withCtx(()=>[a.createVNode(a.unref(ye.Disclosure),{as:"section",class:a.normalizeClass(["section-accordion",{"section-accordion-transparent":n.transparent}])},{default:a.withCtx(({open:s})=>[a.createVNode(a.unref(ye.DisclosureButton),{ref_key:"button",ref:e,class:"section-accordion-button"},{default:a.withCtx(()=>[a.createElementVNode("div",E9,[a.renderSlot(n.$slots,"title",{},void 0,!0)]),n.$slots.actions?(a.openBlock(),a.createElementBlock("div",N9,[a.renderSlot(n.$slots,"actions",{active:a.unref(t)||s},void 0,!0)])):a.createCommentVNode("",!0),a.createVNode(a.unref(Ze),{class:"section-accordion-chevron",icon:s?"ChevronDown":"ChevronRight"},null,8,["icon"])]),_:2},1536),a.createVNode(a.unref(ye.DisclosurePanel),{class:"section-accordion-content"},{default:a.withCtx(()=>[n.$slots.description?(a.openBlock(),a.createElementBlock("div",A9,[a.renderSlot(n.$slots,"description",{},void 0,!0)])):a.createCommentVNode("",!0),a.createElementVNode("div",R9,[a.renderSlot(n.$slots,"default",{},void 0,!0)])]),_:3})]),_:3},8,["class"])]),_:3},8,["id"]))}}),US=W(V9,[["__scopeId","data-v-07cabcb0"]]),B9={},Z9={class:"section-column"};function I9(r,e){return a.openBlock(),a.createElementBlock("div",Z9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Rs=W(B9,[["render",I9],["__scopeId","data-v-d64e7382"]]),j9={},D9={class:"section-columns"};function M9(r,e){return a.openBlock(),a.createElementBlock("div",D9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Ym=W(j9,[["render",M9],["__scopeId","data-v-8b9602bf"]]),q9={},X9={class:"section-container"};function W9(r,e){return a.openBlock(),a.createElementBlock("div",X9,[a.renderSlot(r.$slots,"default",{},void 0,!0)])}const Hi=W(q9,[["render",W9],["__scopeId","data-v-34b26958"]]),z9={class:"section-accordion-wrapper"},U9={class:"section-accordion-title"},Y9=a.defineComponent({__name:"SectionContainerAccordion",setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",z9,[a.createVNode(a.unref(ye.Disclosure),{as:"div",class:"section-accordion",defaultOpen:""},{default:a.withCtx(({open:n})=>[a.createVNode(a.unref(ye.DisclosureButton),{class:"section-accordion-button"},{default:a.withCtx(()=>[a.createVNode(a.unref(Ze),{class:"section-accordion-chevron",icon:n?"ChevronDown":"ChevronRight"},null,8,["icon"]),a.createElementVNode("div",U9,[a.renderSlot(e.$slots,"title",{},void 0,!0)])]),_:2},1024),a.createVNode(a.unref(ye.DisclosurePanel),{class:"section-accordion-content"},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3})]),_:3})]))}}),YS=W(Y9,[["__scopeId","data-v-2049975e"]]),L9=a.defineComponent({__name:"LoadingSkeleton",props:{lines:{default:1}},setup(r){return(e,t)=>(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList([...Array(e.lines).keys()],n=>(a.openBlock(),a.createElementBlock("div",{key:n,class:a.normalizeClass(["loading",{"single-line":e.lines===1}])},null,2))),128))}}),LS=W(L9,[["__scopeId","data-v-c90b2c46"]]),H9={class:"section-content"},G9=a.defineComponent({__name:"SectionContent",props:{loading:{type:Boolean,default:!1}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",H9,[e.loading?(a.openBlock(),a.createBlock(LS,{key:1,lines:8})):a.renderSlot(e.$slots,"default",{key:0},void 0,!0)]))}}),sa=W(G9,[["__scopeId","data-v-9735459e"]]),F9=a.defineComponent({__name:"SectionHeader",props:{loading:{type:Boolean,default:!1},tight:{type:Boolean,default:!1},level:{default:1}},setup(r){return(e,t)=>e.loading?(a.openBlock(),a.createBlock(LS,{key:0})):(a.openBlock(),a.createBlock(a.resolveDynamicComponent(`h${e.level}`),{key:1,class:a.normalizeClass(["section-header",{tight:e.tight}])},{default:a.withCtx(()=>[a.renderSlot(e.$slots,"default",{},void 0,!0)]),_:3},8,["class"]))}}),zn=W(F9,[["__scopeId","data-v-3bd1b9f0"]]),K9={key:0,class:"introduction-description"},J9=a.defineComponent({__name:"Description",props:{value:{}},setup(r){const e=r,n=`components-Content-Introduction-Description-sections${Zf(e.value)}`,o=De.computedAsync(async()=>{if(!e.value)return[];const u=await pi(e.value),h=yd(u);return await Promise.all(TS(e.value,h).map(async f=>({heading:(await pi(f))[0],content:f})))},Bs[n]??[]),{getHeadingId:s,hash:i,isIntersectionEnabled:l,pathRouting:c}=mt();function d(u=""){if(!l.value)return;const h=new URL(window.location.href);c.value?h.pathname=c.value.basePath+"/"+u:h.hash=u,i.value=u,window.history.replaceState({},"",h)}return a.onServerPrefetch(async()=>{const u=a.useSSRContext();await Dr(1),u.payload.data[n]=o.value}),(u,h)=>u.value?(a.openBlock(),a.createElementBlock("div",K9,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(a.unref(o),(f,p)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:p},[f.heading?(a.openBlock(),a.createBlock(Um,{key:0,id:a.unref(s)(f.heading),class:"introduction-description-heading",onIntersecting:()=>d(a.unref(s)(f.heading))},{default:a.withCtx(()=>[a.createVNode(a.unref(jt),{value:f.content,withImages:""},null,8,["value"])]),_:2},1032,["id","onIntersecting"])):(a.openBlock(),a.createBlock(a.unref(jt),{key:1,value:f.content,withImages:""},null,8,["value"]))],64))),128))])):a.createCommentVNode("",!0)}}),eW=W(J9,[["__scopeId","data-v-5e475391"]]),tW={class:"download"},rW={class:"download-cta"},nW=a.defineComponent({__name:"DownloadSpec",props:{specTitle:{}},setup(r){const e=r,t=a.inject(Dm),n=()=>{Mm.emit({id:"",specTitle:e.specTitle})};return(o,s)=>{var i;return a.openBlock(),a.createElementBlock("div",tW,[a.createElementVNode("div",rW,[(i=a.unref(t))!=null&&i()?a.createCommentVNode("",!0):(a.openBlock(),a.createElementBlock("button",{key:0,class:"download-button",type:"button",onClick:n}," Download OpenAPI Spec "))])])}}}),oW=W(nW,[["__scopeId","data-v-810904a4"]]),sW={class:"badges"},aW={class:"sticky-cards"},iW=a.defineComponent({__name:"Introduction",props:{info:{},parsedSpec:{}},setup(r){const e=r,t=new ki,n=a.computed(()=>e.parsedSpec.openapi??e.parsedSpec.swagger??""),o=a.computed(()=>t.slug(e.info.title??""));return(s,i)=>(a.openBlock(),a.createBlock(a.unref(Hi),null,{default:a.withCtx(()=>[a.createVNode(a.unref(oa),{class:"introduction-section"},{default:a.withCtx(()=>[a.createVNode(a.unref(sa),{loading:!s.info.description&&!s.info.title},{default:a.withCtx(()=>[a.createVNode(a.unref(Ym),null,{default:a.withCtx(()=>[a.createVNode(a.unref(Rs),null,{default:a.withCtx(()=>[a.createElementVNode("div",sW,[s.info.version?(a.openBlock(),a.createBlock(a.unref(wi),{key:0},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.info.version),1)]),_:1})):a.createCommentVNode("",!0),n.value?(a.openBlock(),a.createBlock(a.unref(wi),{key:1},{default:a.withCtx(()=>[a.createTextVNode(" OAS "+a.toDisplayString(n.value),1)]),_:1})):a.createCommentVNode("",!0)]),a.createVNode(a.unref(zn),{level:1,loading:!s.info.title,tight:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(s.info.title),1)]),_:1},8,["loading"]),a.createVNode(oW,{specTitle:o.value},null,8,["specTitle"]),a.createVNode(eW,{value:s.info.description},null,8,["value"])]),_:1}),s.$slots.aside?(a.openBlock(),a.createBlock(a.unref(Rs),{key:0},{default:a.withCtx(()=>[a.createElementVNode("div",aW,[a.renderSlot(s.$slots,"aside",{},void 0,!0)])]),_:3})):a.createCommentVNode("",!0)]),_:3})]),_:3},8,["loading"]),a.renderSlot(s.$slots,"after",{},void 0,!0)]),_:3})]),_:3}))}}),lW=W(iW,[["__scopeId","data-v-30c2e131"]]),cW=Symbol(),Rf=De.useEventBus(cW),Hc=a.defineComponent({__name:"Lazy",props:{id:{},isLazy:{type:Boolean,default:!0},lazyTimeout:{default:0}},setup(r){const e=r,t=(o=()=>{})=>{typeof window>"u"||("requestIdleCallback"in window?setTimeout(()=>window.requestIdleCallback(o),e.lazyTimeout):setTimeout(()=>a.nextTick(o),e.lazyTimeout??300))},n=a.ref(!e.isLazy);return e.isLazy?t(()=>{n.value=!0,e.id&&a.nextTick(()=>Rf.emit({id:e.id}))}):e.id&&a.nextTick(()=>Rf.emit({id:e.id})),(o,s)=>n.value?a.renderSlot(o.$slots,"default",{key:0}):a.createCommentVNode("",!0)}}),dW={key:0,class:"screenreader-only"},uW=a.defineComponent({__name:"ScreenReader",props:{if:{type:Boolean,default:!0}},setup(r){return(e,t)=>e.$props.if?(a.openBlock(),a.createElementBlock("span",dW,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):a.renderSlot(e.$slots,"default",{key:1},void 0,!0)}}),HS=W(uW,[["__scopeId","data-v-681ebf2c"]]),hW=r=>(a.pushScopeId("data-v-d9801d4e"),r=r(),a.popScopeId(),r),fW={class:"label"},pW={class:"anchor"},mW=hW(()=>a.createElementVNode("span",null,"​",-1)),gW=a.defineComponent({__name:"Anchor",props:{id:{}},setup(r){const{copyToClipboard:e}=na(),t=n=>{const o=new URL(window.location.href);return o.hash=n,o.toString()};return(n,o)=>(a.openBlock(),a.createElementBlock("span",fW,[a.renderSlot(n.$slots,"default",{},void 0,!0),a.createElementVNode("span",pW,[mW,a.createElementVNode("button",{class:"anchor-copy",type:"button",onClick:o[0]||(o[0]=a.withModifiers(s=>a.unref(e)(t(n.id)),["stop"]))},[a.createTextVNode(" # "),a.createVNode(HS,null,{default:a.withCtx(()=>[a.createTextVNode('Copy link to "'),a.renderSlot(n.$slots,"default",{},void 0,!0),a.createTextVNode('"')]),_:3})])])]))}}),Un=W(gW,[["__scopeId","data-v-d9801d4e"]]),OW=["value"],yW=["label"],bW=["value"],vW=["value"],Lm=a.defineComponent({__name:"TextSelect",props:{modelValue:{},options:{}},emits:["update:modelValue"],setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["text-select",e.options.length===1?"text-select--single-option":""])},[a.createElementVNode("span",null,[a.renderSlot(e.$slots,"default")]),a.createElementVNode("select",{value:e.modelValue,onInput:t[0]||(t[0]=n=>e.$emit("update:modelValue",n.target.value))},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.options,n=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:n.value},[n.options?(a.openBlock(),a.createElementBlock("optgroup",{key:0,label:n.label},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.options,o=>(a.openBlock(),a.createElementBlock("option",{key:o.value,value:o.value},a.toDisplayString(o.label),9,bW))),128))],8,yW)):(a.openBlock(),a.createElementBlock("option",{key:n.value,value:n.value},a.toDisplayString(n.label),9,vW))],64))),128))],40,OW)],2))}}),wW={class:"request-header"},kW=a.defineComponent({__name:"CustomRequestExamples",props:{operation:{},examples:{}},setup(r){const e=r,t=a.ref(0),n=a.computed(()=>({C:"c","C#":"csharp",Go:"go",HTML:"html",Java:"java",JavaScript:"javascript",Kotlin:"kotlin","Objective-C":"objc",PowerShell:"powershell",Python:"python",Ruby:"ruby",Shell:"shell",Swift:"swift",TypeScript:"javascript",cURL:"shell"})[e.examples[t.value].lang]??e.examples[t.value].lang),o=a.computed(()=>e.examples[t.value]);a.watch(e.examples,()=>{e.examples[t.value]==="undefined"&&(t.value=0)});const{copyToClipboard:s}=na();return(i,l)=>(a.openBlock(),a.createBlock(a.unref(Xn),{class:"dark-mode"},{default:a.withCtx(()=>[a.createVNode(a.unref(Wn),{muted:""},{actions:a.withCtx(()=>[a.createVNode(Lm,{class:"request-client-picker",modelValue:t.value,options:i.examples.map((c,d)=>({value:d.toString(),label:c.label})),"onUpdate:modelValue":l[0]||(l[0]=c=>(t.value=parseInt(c),10))},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(o.value.label),1)]),_:1},8,["modelValue","options"]),a.createElementVNode("button",{class:"copy-button",type:"button",onClick:l[1]||(l[1]=c=>a.unref(s)(o.value.source.trim()))},[a.createVNode(a.unref(Ze),{icon:"Clipboard",width:"10px"})])]),default:a.withCtx(()=>[a.createElementVNode("div",wW,[a.createVNode(a.unref(Eo),{class:"request-method",method:i.operation.httpVerb},null,8,["method"]),a.renderSlot(i.$slots,"header",{},void 0,!0)])]),_:3}),a.createVNode(a.unref(Or),{borderless:"",class:"request-editor-section custom-scroll",frameless:""},{default:a.withCtx(()=>[a.createVNode(a.unref(Lr),{content:o.value.source.trim(),lang:n.value,lineNumbers:""},null,8,["content","lang"])]),_:1}),i.$slots.footer?(a.openBlock(),a.createBlock(a.unref(Li),{key:0,class:"scalar-card-footer",contrast:""},{default:a.withCtx(()=>[a.renderSlot(i.$slots,"footer",{},void 0,!0)]),_:3})):a.createCommentVNode("",!0)]),_:3}))}}),SW=W(kW,[["__scopeId","data-v-18ba624d"]]),$W={class:"schema-type"},PW=["title"],xW=a.defineComponent({__name:"SchemaHeading",props:{value:{},name:{}},setup(r){return(e,t)=>{var n,o,s,i,l,c;return a.openBlock(),a.createElementBlock("span",$W,[a.createElementVNode("span",{class:"schema-type-icon",title:typeof e.value.type=="string"?e.value.type:Array.isArray(e.value.type)?e.value.type.join(" | "):"unkown type"},[e.value.type==="object"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" {} ")],64)):a.createCommentVNode("",!0),e.value.type==="array"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" [] ")],64)):a.createCommentVNode("",!0),e.value.enum?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(" enum ")],64)):a.createCommentVNode("",!0)],8,PW),(o=(n=e.value)==null?void 0:n.xml)!=null&&o.name&&((i=(s=e.value)==null?void 0:s.xml)==null?void 0:i.name)!=="##default"?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(" <"+a.toDisplayString((c=(l=e.value)==null?void 0:l.xml)==null?void 0:c.name)+" /> ",1)],64)):e.name?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(e.name),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(e.value.type),1)],64))])}}}),GS=W(xW,[["__scopeId","data-v-6c5c3c96"]]),_W={key:0,class:"property-detail-prefix"},CW={key:1,class:"property-detail-value"},TW={key:2,class:"property-detail-value"},QW=a.defineComponent({__name:"SchemaPropertyDetail",props:{truncate:{type:Boolean},code:{type:Boolean}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["property-detail",{"property-detail-truncate":e.truncate}])},[e.$slots.prefix?(a.openBlock(),a.createElementBlock("div",_W,[a.renderSlot(e.$slots,"prefix",{},void 0,!0),a.createTextVNode("  ")])):a.createCommentVNode("",!0),e.code?(a.openBlock(),a.createElementBlock("code",CW,[a.renderSlot(e.$slots,"default",{},void 0,!0)])):(a.openBlock(),a.createElementBlock("span",TW,[a.renderSlot(e.$slots,"default",{},void 0,!0)]))],2))}}),nr=W(QW,[["__scopeId","data-v-16d94ef5"]]),EW={class:"property-heading"},NW={key:0,class:"property-name"},AW={key:1,class:"property-additional"},RW={key:2,class:"property-deprecated"},VW={key:3,class:"property-required"},BW={key:4,class:"property-details"},ZW={key:5,class:"property-write-only"},IW={key:6,class:"property-read-only"},jW=a.defineComponent({__name:"SchemaPropertyHeading",props:{value:{},enum:{type:Boolean},required:{type:Boolean,default:!1},additional:{type:Boolean}},setup(r){const e=["oneOf","anyOf","allOf","not"];return(t,n)=>{var o,s,i,l;return a.openBlock(),a.createElementBlock("div",EW,[t.$slots.name?(a.openBlock(),a.createElementBlock("div",NW,[a.renderSlot(t.$slots,"name",{},void 0,!0)])):a.createCommentVNode("",!0),t.additional?(a.openBlock(),a.createElementBlock("div",AW," additional properties ")):a.createCommentVNode("",!0),(o=t.value)!=null&&o.deprecated?(a.openBlock(),a.createElementBlock("div",RW,[a.createVNode(a.unref(wi),null,{default:a.withCtx(()=>[a.createTextVNode("deprecated")]),_:1})])):a.createCommentVNode("",!0),t.required?(a.openBlock(),a.createElementBlock("div",VW," required ")):a.createCommentVNode("",!0),(s=t.value)!=null&&s.type?(a.openBlock(),a.createElementBlock("div",BW,[t.additional?(a.openBlock(),a.createBlock(nr,{key:0},{prefix:a.withCtx(()=>[a.createTextVNode("key:")]),default:a.withCtx(()=>[a.createTextVNode(" string ")]),_:1})):a.createCommentVNode("",!0),a.createVNode(nr,null,a.createSlots({default:a.withCtx(()=>{var c,d,u;return[(d=(c=t.value)==null?void 0:c.items)!=null&&d.type?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[a.createTextVNode(a.toDisplayString(t.value.type)+" "+a.toDisplayString(t.value.items.type)+"[] ",1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(Array.isArray(t.value.type)?t.value.type.join(" | "):t.value.type)+" "+a.toDisplayString((u=t.value)!=null&&u.nullable?" | nullable":""),1)],64)),t.value.minItems||t.value.maxItems?(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(a.toDisplayString(t.value.minItems)+"…"+a.toDisplayString(t.value.maxItems),1)],64)):a.createCommentVNode("",!0)]}),_:2},[t.additional?{name:"prefix",fn:a.withCtx(()=>[a.createTextVNode("value:")]),key:"0"}:void 0]),1024),t.value.minLength?(a.openBlock(),a.createBlock(nr,{key:1},{prefix:a.withCtx(()=>[a.createTextVNode("min:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.minLength),1)]),_:1})):a.createCommentVNode("",!0),t.value.maxLength?(a.openBlock(),a.createBlock(nr,{key:2},{prefix:a.withCtx(()=>[a.createTextVNode("max:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.maxLength),1)]),_:1})):a.createCommentVNode("",!0),t.value.uniqueItems?(a.openBlock(),a.createBlock(nr,{key:3},{default:a.withCtx(()=>[a.createTextVNode(" unique! ")]),_:1})):a.createCommentVNode("",!0),t.value.format?(a.openBlock(),a.createBlock(nr,{key:4},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.value.format),1)]),_:1})):a.createCommentVNode("",!0),t.value.minimum?(a.openBlock(),a.createBlock(nr,{key:5},{prefix:a.withCtx(()=>[a.createTextVNode("min:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.minimum),1)]),_:1})):a.createCommentVNode("",!0),t.value.maximum?(a.openBlock(),a.createBlock(nr,{key:6},{prefix:a.withCtx(()=>[a.createTextVNode("max:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.maximum),1)]),_:1})):a.createCommentVNode("",!0),t.value.pattern?(a.openBlock(),a.createBlock(nr,{key:7,code:"",truncate:""},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(t.value.pattern),1)]),_:1})):a.createCommentVNode("",!0),t.$props.enum?(a.openBlock(),a.createBlock(nr,{key:8},{default:a.withCtx(()=>[a.createTextVNode("enum")]),_:1})):a.createCommentVNode("",!0),t.value.default?(a.openBlock(),a.createBlock(nr,{key:9,truncate:""},{prefix:a.withCtx(()=>[a.createTextVNode("default:")]),default:a.withCtx(()=>[a.createTextVNode(" "+a.toDisplayString(t.value.default),1)]),_:1})):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0),(i=t.value)!=null&&i.writeOnly?(a.openBlock(),a.createElementBlock("div",ZW," write-only ")):(l=t.value)!=null&&l.readOnly?(a.openBlock(),a.createElementBlock("div",IW," read-only ")):a.createCommentVNode("",!0),(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.filter(c=>{var d,u,h;return((d=t.value)==null?void 0:d[c])||((h=(u=t.value)==null?void 0:u.items)==null?void 0:h[c])}),c=>(a.openBlock(),a.createBlock(a.unref(wi),{key:c},{default:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(c),1)]),_:2},1024))),128))])}}}),DW=W(jW,[["__scopeId","data-v-0b4351f0"]]),MW=r=>(a.pushScopeId("data-v-ca3c524d"),r=r(),a.popScopeId(),r),qW={key:0,class:"property-description"},XW={key:1,class:"property-description"},WW={key:2,class:"property-example custom-scroll"},zW=MW(()=>a.createElementVNode("span",{class:"property-example-label"},"Example",-1)),UW={class:"property-example-value"},YW={key:3,class:"property-enum"},LW={class:"property-enum-values"},HW={key:4,class:"children"},GW={key:0,class:"children"},FW={key:0,class:"property-rule"},KW={key:1,class:"property-rule"},JW=a.defineComponent({__name:"SchemaProperty",props:{value:{},level:{default:0},name:{},required:{type:Boolean,default:!1},compact:{type:Boolean,default:!1},description:{},additional:{type:Boolean}},setup(r){const e={integer:{_default:"Integer numbers.",int32:"Signed 32-bit integers (commonly used integer type).",int64:"Signed 64-bit integers (long type)."},string:{date:"full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21","date-time":"the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z",password:"a hint to UIs to mask the input",byte:"base64-encoded characters, for example, U3dhZ2dlciByb2Nrcw==",binary:"binary data, used to describe files"}},t=function(i,l){return l!=null&&l.properties||l!=null&&l.additionalProperties?null:i||(l==null?void 0:l.description)||null},n=function(i){return!i||!e[i.type]?null:e[i.type][i.format||"_default"]},o=function(i){var l;return(i==null?void 0:i.enum)||((l=i==null?void 0:i.items)==null?void 0:l.enum)||null},s=["oneOf","anyOf","allOf","not"];return(i,l)=>{var c,d,u,h,f,p,m,g,O;return a.openBlock(),a.createElementBlock("div",{class:a.normalizeClass(["property",[`property--level-${i.level}`,{"property--compact":i.compact,"property--deprecated":(c=i.value)==null?void 0:c.deprecated}]])},[a.createVNode(DW,{additional:i.additional,enum:!!o(i.value),required:i.required,value:i.value},a.createSlots({_:2},[i.name?{name:"name",fn:a.withCtx(()=>[a.createTextVNode(a.toDisplayString(i.name),1)]),key:"0"}:void 0]),1032,["additional","enum","required","value"]),t(i.description,i.value)?(a.openBlock(),a.createElementBlock("div",qW,[a.createVNode(a.unref(jt),{value:t(i.description,i.value)},null,8,["value"])])):n(i.value)?(a.openBlock(),a.createElementBlock("div",XW,[a.createVNode(a.unref(jt),{value:n(i.value)||""},null,8,["value"])])):a.createCommentVNode("",!0),(d=i.value)!=null&&d.example||(h=(u=i.value)==null?void 0:u.items)!=null&&h.example?(a.openBlock(),a.createElementBlock("div",WW,[zW,a.createElementVNode("code",UW,a.toDisplayString(i.value.example||((f=i.value)==null?void 0:f.items.example)),1)])):a.createCommentVNode("",!0),o(i.value)?(a.openBlock(),a.createElementBlock("div",YW,[a.createElementVNode("ul",LW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(o(i.value),y=>(a.openBlock(),a.createElementBlock("li",{key:y,class:"property-enum-value"},a.toDisplayString(y),1))),128))])])):a.createCommentVNode("",!0),((p=i.value)==null?void 0:p.type)==="object"&&((m=i.value)!=null&&m.properties||(g=i.value)!=null&&g.additionalProperties)?(a.openBlock(),a.createElementBlock("div",HW,[a.createVNode(yo,{compact:i.compact,level:i.level+1,value:i.value},null,8,["compact","level","value"])])):a.createCommentVNode("",!0),(O=i.value)!=null&&O.items?(a.openBlock(),a.createElementBlock(a.Fragment,{key:5},[["object"].includes(i.value.items.type)?(a.openBlock(),a.createElementBlock("div",GW,[a.createVNode(yo,{compact:i.compact,level:i.level+1,value:i.value.items},null,8,["compact","level","value"])])):a.createCommentVNode("",!0)],64)):a.createCommentVNode("",!0),(a.openBlock(),a.createElementBlock(a.Fragment,null,a.renderList(s,y=>{var b,v,k;return a.openBlock(),a.createElementBlock(a.Fragment,{key:y},[(b=i.value)!=null&&b[y]?(a.openBlock(),a.createElementBlock("div",FW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value[y],(S,w)=>(a.openBlock(),a.createBlock(yo,{key:w,compact:i.compact,level:i.level+1,value:S},null,8,["compact","level","value"]))),128))])):a.createCommentVNode("",!0),(k=(v=i.value)==null?void 0:v.items)!=null&&k[y]&&i.level<3?(a.openBlock(),a.createElementBlock("div",KW,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(i.value.items[y],(S,w)=>(a.openBlock(),a.createBlock(yo,{key:w,compact:i.compact,level:i.level+1,value:S},null,8,["compact","level","value"]))),128))])):a.createCommentVNode("",!0)],64)}),64))],2)}}}),Oo=W(JW,[["__scopeId","data-v-ca3c524d"]]),ez=r=>(a.pushScopeId("data-v-7f5d0941"),r=r(),a.popScopeId(),r),tz={key:0,class:"schema-card-description"},rz=ez(()=>a.createElementVNode("polygon",{"fill-rule":"nonzero",points:"14 8 8 8 8 14 6 14 6 8 0 8 0 6 6 6 6 0 8 0 8 6 14 6"},null,-1)),nz=[rz],oz=a.defineComponent({__name:"Schema",props:{value:{},level:{default:0},name:{},compact:{type:Boolean},noncollapsible:{type:Boolean}},setup(r){const e=r,t=a.computed(()=>!(e.noncollapsible||e.level===0)),n=o=>e.noncollapsible&&o.stopPropagation();return(o,s)=>typeof o.value=="object"&&Object.keys(o.value).length?(a.openBlock(),a.createBlock(a.unref(ye.Disclosure),{key:0,defaultOpen:o.noncollapsible},{default:a.withCtx(({open:i})=>{var l;return[a.createElementVNode("div",{class:a.normalizeClass(["schema-card",[`schema-card--level-${o.level}`,{"schema-card--compact":o.compact,"schema-card--open":i}]])},[(l=o.value)!=null&&l.description?(a.openBlock(),a.createElementBlock("div",tz,[a.createVNode(a.unref(jt),{value:o.value.description},null,8,["value"])])):a.createCommentVNode("",!0),a.createElementVNode("div",{class:a.normalizeClass(["schema-properties",{"schema-properties-open":i}])},[a.withDirectives(a.createVNode(a.unref(ye.DisclosureButton),{as:o.noncollapsible?"div":"button",class:a.normalizeClass(["schema-card-title",{"schema-card-title--compact":o.compact}]),style:a.normalizeStyle({top:`calc(var(--refs-header-height) + calc(var(--schema-title-height) * ${o.level}))`}),onClickCapture:n},{default:a.withCtx(()=>{var c,d,u;return[o.compact?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[t.value?(a.openBlock(),a.createElementBlock("svg",{key:0,class:a.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":i}]),fill:"currentColor",height:"14",viewBox:"0 0 14 14",width:"14",xmlns:"http://www.w3.org/2000/svg"},nz,2)):a.createCommentVNode("",!0),i?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(" Hide "+a.toDisplayString(((c=o.value)==null?void 0:c.title)??"Child Attributes"),1)],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:2},[a.createTextVNode(" Show "+a.toDisplayString(((d=o.value)==null?void 0:d.title)??"Child Attributes"),1)],64))],64)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[t.value?(a.openBlock(),a.createBlock(a.unref(Ze),{key:0,class:a.normalizeClass(["schema-card-title-icon",{"schema-card-title-icon--open":i}]),icon:"ChevronRight",size:"md"},null,8,["class"])):a.createCommentVNode("",!0),a.createVNode(GS,{name:((u=o.value)==null?void 0:u.title)??o.name,value:o.value},null,8,["name","value"])],64))]}),_:2},1032,["as","class","style"]),[[a.vShow,!(o.noncollapsible&&o.compact)]]),a.createVNode(a.unref(ye.DisclosurePanel),{static:o.noncollapsible},{default:a.withCtx(()=>{var c;return[o.value.properties||o.value.additionalProperties?(a.openBlock(),a.createElementBlock(a.Fragment,{key:0},[o.value.properties?(a.openBlock(!0),a.createElementBlock(a.Fragment,{key:0},a.renderList(Object.keys((c=o.value)==null?void 0:c.properties),d=>{var u;return a.openBlock(),a.createBlock(Oo,{key:d,compact:o.compact,level:o.level,name:d,required:o.value.required&&o.value.required.length&&o.value.required.includes(d),value:(u=o.value.properties)==null?void 0:u[d]},null,8,["compact","level","name","required","value"])}),128)):a.createCommentVNode("",!0),o.value.additionalProperties?(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[o.value.additionalProperties===!0||Object.keys(o.value.additionalProperties).length===0||!o.value.additionalProperties.type?(a.openBlock(),a.createBlock(Oo,{key:0,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:{type:"any",...o.value.additionalProperties}},null,8,["compact","level","value"])):(a.openBlock(),a.createBlock(Oo,{key:1,additional:"",compact:o.compact,level:o.level,noncollapsible:"",value:o.value.additionalProperties},null,8,["compact","level","value"]))],64)):a.createCommentVNode("",!0)],64)):(a.openBlock(),a.createBlock(Oo,{key:1,compact:o.compact,level:o.level,name:o.value.name,value:o.value},null,8,["compact","level","name","value"]))]}),_:1},8,["static"])],2)],2)]}),_:1},8,["defaultOpen"])):a.createCommentVNode("",!0)}}),yo=W(oz,[["__scopeId","data-v-7f5d0941"]]),sz={class:"parameter-item"},az={class:"parameter-item-container"},iz=a.defineComponent({__name:"ParameterItem",props:{parameter:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>(a.openBlock(),a.createElementBlock("li",sz,[a.createElementVNode("div",az,[a.createVNode(a.unref(Oo),{compact:"",description:e.parameter.description,level:0,name:e.parameter.name,noncollapsible:e.showChildren,required:e.parameter.required,value:e.parameter.schema},null,8,["description","name","noncollapsible","required","value"])])]))}}),lz=W(iz,[["__scopeId","data-v-f70ee55c"]]),cz={key:0,class:"parameters"},dz={class:"parameters-title"},uz={class:"parameter-list"},hz=a.defineComponent({__name:"Parameters",props:{parameters:{},showChildren:{type:Boolean,default:!1}},setup(r){return(e,t)=>{var n;return(n=e.parameters)!=null&&n.length?(a.openBlock(),a.createElementBlock("div",cz,[a.createElementVNode("div",dz,[a.renderSlot(e.$slots,"title",{},void 0,!0)]),a.createElementVNode("ul",uz,[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.parameters,o=>(a.openBlock(),a.createBlock(lz,{key:o.name,parameter:o,showChildren:e.showChildren},null,8,["parameter","showChildren"]))),128))])])):a.createCommentVNode("",!0)}}}),ir=W(hz,[["__scopeId","data-v-45fca787"]]),fz={key:0},pz={class:"request-body-title"},mz=["value"],gz={key:0,class:"request-body-description"},Oz={key:0,class:"request-body-schema"},yz=a.defineComponent({__name:"RequestBody",props:{requestBody:{}},setup(r){var o;const e=r,t=a.computed(()=>{var s;return(s=e.requestBody)!=null&&s.content?Object.keys(e.requestBody.content):[]}),n=a.ref("application/json");return(o=e.requestBody)!=null&&o.content&&t.value.length>0&&(n.value=t.value[0]),(s,i)=>{var l,c,d,u;return e!=null&&e.requestBody?(a.openBlock(),a.createElementBlock("div",fz,[a.createElementVNode("div",pz,[a.renderSlot(s.$slots,"title",{},void 0,!0),a.createElementVNode("div",{class:a.normalizeClass(["request-body-title-select",{"request-body-title-no-select":t.value.length<=1}])},[a.createElementVNode("span",null,a.toDisplayString(n.value),1),e!=null&&e.requestBody&&t.value.length>1?a.withDirectives((a.openBlock(),a.createElementBlock("select",{key:0,"onUpdate:modelValue":i[0]||(i[0]=h=>n.value=h)},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList((l=e.requestBody)==null?void 0:l.content,(h,f)=>(a.openBlock(),a.createElementBlock("option",{key:f,value:f},a.toDisplayString(f),9,mz))),128))],512)),[[a.vModelSelect,n.value]]):a.createCommentVNode("",!0)],2),e!=null&&e.requestBody.description?(a.openBlock(),a.createElementBlock("div",gz,[a.createVNode(a.unref(jt),{value:e.requestBody.description},null,8,["value"])])):a.createCommentVNode("",!0)]),(c=e==null?void 0:e.requestBody.content)!=null&&c[n.value]?(a.openBlock(),a.createElementBlock("div",Oz,[a.createVNode(a.unref(yo),{compact:"",noncollapsible:"",value:(u=(d=e==null?void 0:e.requestBody.content)==null?void 0:d[n.value])==null?void 0:u.schema},null,8,["value"])])):a.createCommentVNode("",!0)])):a.createCommentVNode("",!0)}}}),Hm=W(yz,[["__scopeId","data-v-e095eb63"]]),bz={class:"endpoint-details"},vz={class:"endpoint-description"},wz=a.defineComponent({__name:"EndpointDetails",props:{operation:{}},setup(r){const e=r,{parameterMap:t}=Xm(e),{responses:n}=Wm(e.operation);return(o,s)=>{var i,l;return a.openBlock(),a.createElementBlock("div",bz,[a.createElementVNode("div",vz,[a.createVNode(a.unref(jt),{value:o.operation.description,withImages:""},null,8,["value"])]),a.createVNode(ir,{parameters:a.unref(t).path},{title:a.withCtx(()=>[a.createTextVNode("Path Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).query},{title:a.withCtx(()=>[a.createTextVNode("Query Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).header},{title:a.withCtx(()=>[a.createTextVNode("Headers")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).body,showChildren:""},{title:a.withCtx(()=>[a.createTextVNode("Body Parameters")]),_:1},8,["parameters"]),a.createVNode(ir,{parameters:a.unref(t).formData},{title:a.withCtx(()=>[a.createTextVNode("Form Data")]),_:1},8,["parameters"]),(i=o.operation.information)!=null&&i.requestBody?(a.openBlock(),a.createBlock(Hm,{key:0,requestBody:(l=o.operation.information)==null?void 0:l.requestBody},{title:a.withCtx(()=>[a.createTextVNode("Body")]),_:1},8,["requestBody"])):a.createCommentVNode("",!0),a.createVNode(ir,{parameters:a.unref(n)},{title:a.withCtx(()=>[a.createTextVNode("Responses")]),_:1},8,["parameters"])])}}}),kz={key:0},Sz=a.defineComponent({__name:"EndpointPath",props:{path:{},deprecated:{type:Boolean}},setup(r){const e=r,t=o=>o.startsWith("{")&&o.endsWith("}"),n=a.computed(()=>e.path.split(/({[^}]+})/));return(o,s)=>(a.openBlock(),a.createElementBlock("span",{class:a.normalizeClass(["endpoint-path",{deprecated:o.deprecated}])},[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.value,(i,l)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:l},[t(i)?(a.openBlock(),a.createElementBlock("em",kz,a.toDisplayString(i),1)):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[a.createTextVNode(a.toDisplayString(i),1)],64))],64))),128))],2))}}),Vf=W(Sz,[["__scopeId","data-v-a4eadd9b"]]);function Gi(r){return r.reduce((e,t)=>(e[t.name]=t.value,e),{})}function $z(r){return/\s|-/.test(r)}function Mr(r,e=0){let t=[],n=" ".repeat(e),o=" ".repeat(e+2);for(const[s,i]of Object.entries(r)){let l=$z(s)?`'${s}'`:s;if(Array.isArray(i)){const c=i.map(d=>typeof d=="string"?`'${d}'`:d&&typeof d=="object"?Mr(d,e+2):d).join(`, ${o}`);t.push(`${o}${l}: [${c}]`)}else if(i&&typeof i=="object")t.push(`${o}${l}: ${Mr(i,e+2)}`);else if(typeof i=="string"){let c=`${i}`;if(i.startsWith("JSON.stringify")){const d=i.split(`
232
232
  `);d.length>1&&(c=d.map((u,h)=>h===0?u:`${o}${u}`).join(`
233
233
  `))}else c=`'${i}'`;t.push(`${o}${l}: ${c}`)}else t.push(`${o}${l}: ${i}`)}return`{
234
234
  ${t.join(`,