@kong-ui-public/spec-renderer 2.1.18 → 2.1.19
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/spec-renderer.es.js
CHANGED
|
@@ -40178,7 +40178,13 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
|
|
|
40178
40178
|
}
|
|
40179
40179
|
} };
|
|
40180
40180
|
function Em(e, t) {
|
|
40181
|
-
return t.includes("application/json") ? typeof e == "string" ? e :
|
|
40181
|
+
return t.includes("application/json") ? typeof e == "string" ? e : (Array.isArray(e) && (e = e.map((r) => {
|
|
40182
|
+
try {
|
|
40183
|
+
return JSON.parse(r);
|
|
40184
|
+
} catch {
|
|
40185
|
+
return r;
|
|
40186
|
+
}
|
|
40187
|
+
})), JSON.stringify(e)) : String(e);
|
|
40182
40188
|
}
|
|
40183
40189
|
function KE({ req: e, value: t, parameter: r }) {
|
|
40184
40190
|
const { name: o, style: n, explode: l, content: h } = r;
|
|
@@ -176,7 +176,7 @@ Add a <Suspense fallback=...> component higher in the tree to provide a loading
|
|
|
176
176
|
`:""};function ac(e,t){return function(){throw new Error("Function yaml."+e+" is removed in js-yaml 4. Use yaml."+t+" instead, which is now safe by default.")}}var $p=Zn,ng=gi,Gh=An,Oi=mc,du=Cl,Yh=Nc,zl=Wd.load,Ku=Wd.loadAll,wc=z0,Zh=ka,T0={binary:Ti,float:Ki,map:Al,null:Ic,pairs:ts,set:Ls,timestamp:bc,bool:cs,int:zc,merge:ri,omap:ls,seq:kn,str:Cs},nc=ac("safeLoad","load"),Up=ac("safeLoadAll","loadAll"),qp=ac("safeDump","dump");const Gs={Type:$p,Schema:ng,FAILSAFE_SCHEMA:Gh,JSON_SCHEMA:Oi,CORE_SCHEMA:du,DEFAULT_SCHEMA:Yh,load:zl,loadAll:Ku,dump:wc,YAMLException:Zh,types:T0,safeLoad:nc,safeLoadAll:Up,safeDump:qp};var Tl=st(46632);function Qn(e){return e!=null&&typeof e=="object"&&e["@@functional/placeholder"]===!0}function Un(e){return function t(r){return arguments.length===0||Qn(r)?t:e.apply(this,arguments)}}function Da(e){return function t(r,o){switch(arguments.length){case 0:return t;case 1:return Qn(r)?t:Un(function(n){return e(r,n)});default:return Qn(r)&&Qn(o)?t:Qn(r)?Un(function(n){return e(n,o)}):Qn(o)?Un(function(n){return e(r,n)}):e(r,o)}}}function Ri(e){return function t(r,o,n){switch(arguments.length){case 0:return t;case 1:return Qn(r)?t:Da(function(l,h){return e(r,l,h)});case 2:return Qn(r)&&Qn(o)?t:Qn(r)?Da(function(l,h){return e(l,o,h)}):Qn(o)?Da(function(l,h){return e(r,l,h)}):Un(function(l){return e(r,o,l)});default:return Qn(r)&&Qn(o)&&Qn(n)?t:Qn(r)&&Qn(o)?Da(function(l,h){return e(l,h,n)}):Qn(r)&&Qn(n)?Da(function(l,h){return e(l,o,h)}):Qn(o)&&Qn(n)?Da(function(l,h){return e(r,l,h)}):Qn(r)?Un(function(l){return e(l,o,n)}):Qn(o)?Un(function(l){return e(r,l,n)}):Qn(n)?Un(function(l){return e(r,o,l)}):e(r,o,n)}}}const bs=Number.isInteger||function(e){return e<<0===e};function kc(e){return Object.prototype.toString.call(e)==="[object String]"}var ig=Da(function(e,t){var r=e<0?t.length+e:e;return kc(t)?t.charAt(r):t[r]});const Hu=ig,gl=Da(function(e,t){return e.map(function(r){for(var o,n=t,l=0;l<r.length;){if(n==null)return;o=r[l],n=bs(o)?Hu(o,n):n[o],l+=1}return n})}),vi=Da(function(e,t){return gl([e],t)[0]}),Vu=Ri(function(e,t,r){return e(vi(t,r))});function gu(e){return new RegExp(e.source,e.flags?e.flags:(e.global?"g":"")+(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.sticky?"y":"")+(e.unicode?"u":"")+(e.dotAll?"s":""))}function sg(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function Wu(e,t,r){for(var o=0,n=r.length;o<n;){if(e(t,r[o]))return!0;o+=1}return!1}function vs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const hl=typeof Object.is=="function"?Object.is:function(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t};var cg=Object.prototype.toString;const lg=function(){return cg.call(arguments)==="[object Arguments]"?function(e){return cg.call(e)==="[object Arguments]"}:function(e){return vs("callee",e)}}();var Qh=!{toString:null}.propertyIsEnumerable("toString"),Kp=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],Ju=function(){return arguments.propertyIsEnumerable("length")}(),Gu=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1},Hp=Un(typeof Object.keys!="function"||Ju?function(e){if(Object(e)!==e)return[];var t,r,o=[],n=Ju&&lg(e);for(t in e)!vs(t,e)||n&&t==="length"||(o[o.length]=t);if(Qh)for(r=Kp.length-1;r>=0;)vs(t=Kp[r],e)&&!Gu(o,t)&&(o[o.length]=t),r-=1;return o}:function(e){return Object(e)!==e?[]:Object.keys(e)});const fl=Hp,ys=Un(function(e){return e===null?"Null":e===void 0?"Undefined":Object.prototype.toString.call(e).slice(8,-1)});function ug(e,t,r,o){var n=sg(e);function l(h,m){return Rl(h,m,r.slice(),o.slice())}return!Wu(function(h,m){return!Wu(l,m,h)},sg(t),n)}function Rl(e,t,r,o){if(hl(e,t))return!0;var n,l,h=ys(e);if(h!==ys(t))return!1;if(typeof e["fantasy-land/equals"]=="function"||typeof t["fantasy-land/equals"]=="function")return typeof e["fantasy-land/equals"]=="function"&&e["fantasy-land/equals"](t)&&typeof t["fantasy-land/equals"]=="function"&&t["fantasy-land/equals"](e);if(typeof e.equals=="function"||typeof t.equals=="function")return typeof e.equals=="function"&&e.equals(t)&&typeof t.equals=="function"&&t.equals(e);switch(h){case"Arguments":case"Array":case"Object":if(typeof e.constructor=="function"&&(n=e.constructor,((l=String(n).match(/^function (\w*)/))==null?"":l[1])==="Promise"))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!hl(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!hl(e.valueOf(),t.valueOf()))return!1;break;case"Error":return e.name===t.name&&e.message===t.message;case"RegExp":if(e.source!==t.source||e.global!==t.global||e.ignoreCase!==t.ignoreCase||e.multiline!==t.multiline||e.sticky!==t.sticky||e.unicode!==t.unicode)return!1}for(var m=r.length-1;m>=0;){if(r[m]===e)return o[m]===t;m-=1}switch(h){case"Map":return e.size===t.size&&ug(e.entries(),t.entries(),r.concat([e]),o.concat([t]));case"Set":return e.size===t.size&&ug(e.values(),t.values(),r.concat([e]),o.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var E=fl(e);if(E.length!==fl(t).length)return!1;var R=r.concat([e]),B=o.concat([t]);for(m=E.length-1;m>=0;){var $=E[m];if(!vs($,t)||!Rl(t[$],e[$],R,B))return!1;m-=1}return!0}const Hi=Da(function(e,t){return Rl(e,t,[],[])});function ml(e,t){return function(r,o,n){var l,h;if(typeof r.indexOf=="function")switch(typeof o){case"number":if(o===0){for(l=1/o;n<r.length;){if((h=r[n])===0&&1/h===l)return n;n+=1}return-1}if(o!=o){for(;n<r.length;){if(typeof(h=r[n])=="number"&&h!=h)return n;n+=1}return-1}return r.indexOf(o,n);case"string":case"boolean":case"function":case"undefined":return r.indexOf(o,n);case"object":if(o===null)return r.indexOf(o,n)}for(;n<r.length;){if(Hi(r[n],o))return n;n+=1}return-1}(t,e,0)>=0}function Mc(e,t){for(var r=0,o=t.length,n=Array(o);r<o;)n[r]=e(t[r]),r+=1;return n}function Lc(e){return'"'+e.replace(/\\/g,"\\\\").replace(/[\b]/g,"\\b").replace(/\f/g,"\\f").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\t/g,"\\t").replace(/\v/g,"\\v").replace(/\0/g,"\\0").replace(/"/g,'\\"')+'"'}var Nl=function(e){return(e<10?"0":"")+e};const hu=typeof Date.prototype.toISOString=="function"?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+Nl(e.getUTCMonth()+1)+"-"+Nl(e.getUTCDate())+"T"+Nl(e.getUTCHours())+":"+Nl(e.getUTCMinutes())+":"+Nl(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function pg(e){return function(){return!e.apply(this,arguments)}}function Dl(e,t,r){for(var o=0,n=r.length;o<n;)t=e(t,r[o]),o+=1;return t}const si=Array.isArray||function(e){return e!=null&&e.length>=0&&Object.prototype.toString.call(e)==="[object Array]"};function ic(e,t,r){return function(){if(arguments.length===0)return r();var o=arguments[arguments.length-1];if(!si(o)){for(var n=0;n<e.length;){if(typeof o[e[n]]=="function")return o[e[n]].apply(o,Array.prototype.slice.call(arguments,0,-1));n+=1}if(function(l){return l!=null&&typeof l["@@transducer/step"]=="function"}(o))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(o)}return r.apply(this,arguments)}}function Ys(e){return Object.prototype.toString.call(e)==="[object Object]"}const ws=function(){return this.xf["@@transducer/init"]()},Ts=function(e){return this.xf["@@transducer/result"](e)};var Xh=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=Ts,e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.xf["@@transducer/step"](t,r):t},e}();function ef(e){return function(t){return new Xh(e,t)}}var dg=Da(ic(["fantasy-land/filter","filter"],ef,function(e,t){return Ys(t)?Dl(function(r,o){return e(t[o])&&(r[o]=t[o]),r},{},fl(t)):function(r,o){for(var n=0,l=o.length,h=[];n<l;)r(o[n])&&(h[h.length]=o[n]),n+=1;return h}(e,t)}));const tf=dg,Vp=Da(function(e,t){return tf(pg(e),t)});function Wp(e,t){var r=function(l){var h=t.concat([e]);return ml(l,h)?"<Circular>":Wp(l,h)},o=function(l,h){return Mc(function(m){return Lc(m)+": "+r(l[m])},h.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Mc(r,e).join(", ")+"))";case"[object Array]":return"["+Mc(r,e).concat(o(e,Vp(function(l){return/^\d+$/.test(l)},fl(e)))).join(", ")+"]";case"[object Boolean]":return typeof e=="object"?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Lc(hu(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return typeof e=="object"?"new Number("+r(e.valueOf())+")":1/e==-1/0?"-0":e.toString(10);case"[object Set]":return"new Set("+r(Array.from(e).sort())+")";case"[object String]":return typeof e=="object"?"new String("+r(e.valueOf())+")":Lc(e);case"[object Undefined]":return"undefined";default:if(typeof e.toString=="function"){var n=e.toString();if(n!=="[object Object]")return n}return"{"+o(e,fl(e)).join(", ")+"}"}}const sc=Un(function(e){return Wp(e,[])});var gg=Da(function(e,t){if(r=e,Object.prototype.toString.call(r)!=="[object RegExp]")throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+sc(e));var r;return gu(e).test(t)});const Yu=gg;function ks(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(r){return t.apply(this,arguments)};case 2:return function(r,o){return t.apply(this,arguments)};case 3:return function(r,o,n){return t.apply(this,arguments)};case 4:return function(r,o,n,l){return t.apply(this,arguments)};case 5:return function(r,o,n,l,h){return t.apply(this,arguments)};case 6:return function(r,o,n,l,h,m){return t.apply(this,arguments)};case 7:return function(r,o,n,l,h,m,E){return t.apply(this,arguments)};case 8:return function(r,o,n,l,h,m,E,R){return t.apply(this,arguments)};case 9:return function(r,o,n,l,h,m,E,R,B){return t.apply(this,arguments)};case 10:return function(r,o,n,l,h,m,E,R,B,$){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Zu(e,t){return function(){return t.call(this,e.apply(this,arguments))}}const ki=Un(function(e){return!!si(e)||!!e&&typeof e=="object"&&!kc(e)&&(e.length===0||e.length>0&&e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1))});var gs=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Vi(e,t,r){return function(o,n,l){if(ki(l))return e(o,n,l);if(l==null)return n;if(typeof l["fantasy-land/reduce"]=="function")return t(o,n,l,"fantasy-land/reduce");if(l[gs]!=null)return r(o,n,l[gs]());if(typeof l.next=="function")return r(o,n,l);if(typeof l.reduce=="function")return t(o,n,l,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Jp(e,t,r){for(var o=0,n=r.length;o<n;){if((t=e["@@transducer/step"](t,r[o]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}o+=1}return e["@@transducer/result"](t)}var Qu=Da(function(e,t){return ks(e.length,function(){return e.apply(t,arguments)})});const rs=Qu;function hg(e,t,r){for(var o=r.next();!o.done;){if((t=e["@@transducer/step"](t,o.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}o=r.next()}return e["@@transducer/result"](t)}function fg(e,t,r,o){return e["@@transducer/result"](r[o](rs(e["@@transducer/step"],e),t))}const Fc=Vi(Jp,fg,hg);var Bl=function(){function e(t){this.f=t}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(t){return t},e.prototype["@@transducer/step"]=function(t,r){return this.f(t,r)},e}();function cc(e){return new Bl(e)}var Xu=Ri(function(e,t,r){return Fc(typeof e=="function"?cc(e):e,t,r)});const lc=Xu;function Gp(e,t){return function(){var r=arguments.length;if(r===0)return t();var o=arguments[r-1];return si(o)||typeof o[e]!="function"?t.apply(this,arguments):o[e].apply(o,Array.prototype.slice.call(arguments,0,r-1))}}var rf=Ri(Gp("slice",function(e,t,r){return Array.prototype.slice.call(r,e,t)}));const fu=rf,mu=Un(Gp("tail",fu(1,1/0)));function Ai(){if(arguments.length===0)throw new Error("pipe requires at least one argument");return ks(arguments[0].length,lc(Zu,arguments[0],mu(arguments)))}const Ml=Da(function(e,t){return t==null||t!=t?e:t}),bl=Da(function(e,t){if(t!=null)return bs(e)?Hu(e,t):t[e]}),bu=Ri(function(e,t,r){return Ml(e,bl(t,r))}),vu=Hu(-1);function Yp(e,t,r){return function(){for(var o=[],n=0,l=e,h=0,m=!1;h<t.length||n<arguments.length;){var E;h<t.length&&(!Qn(t[h])||n>=arguments.length)?E=t[h]:(E=arguments[n],n+=1),o[h]=E,Qn(E)?m=!0:l-=1,h+=1}return!m&&l<=0?r.apply(this,o):ks(Math.max(0,l),Yp(e,o,r))}}var Zp=Da(function(e,t){return e===1?Un(t):ks(e,Yp(e,[],t))});const Xn=Zp;var of=Un(function(e){return Xn(e.length,e)});const Qp=of;function ep(e){var t=Object.prototype.toString.call(e);return t==="[object Function]"||t==="[object AsyncFunction]"||t==="[object GeneratorFunction]"||t==="[object AsyncGeneratorFunction]"}const Xp=Da(function(e,t){return Xn(e+1,function(){var r=arguments[e];if(r!=null&&ep(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError(sc(r)+' does not have a method named "'+t+'"')})}),ed=Xp(1,"split");function R0(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return fu(0,r+1,t)}var mg=function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=function(t){return this.retained=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)?this.retain(t,r):this.flush(t,r)},e.prototype.flush=function(t,r){return t=Fc(this.xf,t,this.retained),this.retained=[],this.xf["@@transducer/step"](t,r)},e.prototype.retain=function(t,r){return this.retained.push(r),t},e}();function td(e){return function(t){return new mg(e,t)}}const N0=Da(ic([],td,R0)),af=Xp(1,"join");var D0=Un(function(e){return Xn(e.length,function(t,r){var o=Array.prototype.slice.call(arguments,0);return o[0]=r,o[1]=t,e.apply(this,o)})});const rd=D0(Da(ml)),uc=Qp(function(e,t){return Ai(ed(""),N0(rd(e)),af(""))(t)});function $s(e,t,r){for(var o=r.next();!o.done;)t=e(t,o.value),o=r.next();return t}function nf(e,t,r,o){return r[o](e,t)}const sf=Vi(Dl,nf,$s);var cf=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=Ts,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),lf=Da(ic(["fantasy-land/map","map"],function(e){return function(t){return new cf(e,t)}},function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Xn(t.length,function(){return e.call(this,t.apply(this,arguments))});case"[object Object]":return Dl(function(r,o){return r[o]=e(t[o]),r},{},fl(t));default:return Mc(e,t)}}));const yu=lf,bg=Da(function(e,t){return typeof t["fantasy-land/ap"]=="function"?t["fantasy-land/ap"](e):typeof e.ap=="function"?e.ap(t):typeof e=="function"?function(r){return e(r)(t(r))}:sf(function(r,o){return function(n,l){var h;l=l||[];var m=(n=n||[]).length,E=l.length,R=[];for(h=0;h<m;)R[R.length]=n[h],h+=1;for(h=0;h<E;)R[R.length]=l[h],h+=1;return R}(r,yu(o,t))},[],e)});var uf=Da(function(e,t){var r=Xn(e,t);return Xn(e,function(){return Dl(bg,yu(r,arguments[0]),Array.prototype.slice.call(arguments,1))})});const vg=uf;var pf=Un(function(e){return vg(e.length,e)});const od=pf,vl=od(Un(function(e){return!e})),_a=Un(function(e){return function(){return e}}),wu=_a(void 0),pc=Hi(wu()),yg=vl(pc),ad=Da(function(e,t){if(e===t)return t;function r(m,E){if(m>E!=E>m)return E>m?E:m}var o=r(e,t);if(o!==void 0)return o;var n=r(typeof e,typeof t);if(n!==void 0)return n===typeof e?e:t;var l=sc(e),h=r(l,sc(t));return h!==void 0&&h===l?e:t});var B0=Da(function(e,t){return yu(bl(e),t)});const wg=B0,df=Un(function(e){return Xn(lc(ad,0,wg("length",e)),function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1})});var nd=function(e,t){switch(arguments.length){case 0:return nd;case 1:return function r(o){return arguments.length===0?r:hl(e,o)};default:return hl(e,t)}};const $c=nd,Uc=Xn(1,Ai(ys,$c("GeneratorFunction"))),tp=Xn(1,Ai(ys,$c("AsyncFunction"))),qc=df([Ai(ys,$c("Function")),Uc,tp]);var M0=Ri(function(e,t,r){return r.replace(e,t)});const yl=M0,kg=Xn(1,Ai(ys,$c("RegExp"))),L0=Ri(function(e,t,r){return e(r)?t(r):r}),wl=Xn(1,Ai(ys,$c("String"))),gf=L0(wl,yl(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var hf=function(e,t){if(typeof e!="string"&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))},$0=Xn(3,function(e,t,r){(function(n,l,h){if(h==null||n==null||l==null)throw TypeError("Input values must not be `null` or `undefined`")})(e,t,r),hf(r,"str"),hf(t,"replaceValue"),function(n){if(!(typeof n=="string"||n instanceof String||n instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var o=new RegExp(kg(e)?e:gf(e),"g");return yl(o,t,r)}),U0=Xp(2,"replaceAll");const ff=qc(String.prototype.replaceAll)?U0:$0,id=()=>Vu(Yu(/^win/),["platform"],Tl),sd=e=>{try{const t=new URL(e);return uc(":",t.protocol)}catch{return}},xg=(Ai(sd,yg),e=>{const t=e.lastIndexOf(".");return t>=0?e.substring(t).toLowerCase():""}),Ll=e=>{if(Tl.browser)return!1;const t=sd(e);return pc(t)||t==="file"||/^[a-zA-Z]$/.test(t)},Kc=e=>{const t=sd(e);return t==="http"||t==="https"},cd=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],o=bu(!1,"keepFileProtocol",t),n=bu(id,"isWindows",t);let l=decodeURI(e);for(let m=0;m<r.length;m+=2)l=l.replace(r[m],r[m+1]);let h=l.substring(0,7).toLowerCase()==="file://";return h&&(l=l[7]==="/"?l.substring(8):l.substring(7),n()&&l[1]==="/"&&(l=`${l[0]}:${l.substring(1)}`),o?l=`file:///${l}`:(h=!1,l=n()?l:`/${l}`)),n()&&!h&&(l=ff("/","\\",l),l.substring(1,3)===":\\"&&(l=l[0].toUpperCase()+l.substring(1))),l},ld=e=>{const t=e.indexOf("#");return t!==-1?e.substring(t):"#"},ci=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substring(0,t)),r},rp=()=>{if(Tl.browser)return ci(globalThis.location.href);const e=Tl.cwd(),t=vu(e);return["/","\\"].includes(t)?e:e+(id()?"\\":"/")},Wi=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if(r.protocol==="resolve:"){const{pathname:o,search:n,hash:l}=r;return o+n+l}return r.toString()},op=e=>{if(Ll(e))return(t=>{const r=[/\?/g,"%3F",/#/g,"%23"];let o=t;id()&&(o=o.replace(/\\/g,"/")),o=encodeURI(o);for(let n=0;n<r.length;n+=2)o=o.replace(r[n],r[n+1]);return o})(cd(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},Rs=e=>Ll(e)?cd(e):decodeURI(e),{fetch:Eg,Response:Za,Headers:xs,Request:Ni,FormData:hs,File:Fl,Blob:Sg}=globalThis;function Di(e,t){function r(...o){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,[this.message]=o,t&&t.apply(this,o)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}globalThis.fetch===void 0&&(globalThis.fetch=Eg),globalThis.Headers===void 0&&(globalThis.Headers=xs),globalThis.Request===void 0&&(globalThis.Request=Ni),globalThis.Response===void 0&&(globalThis.Response=Za),globalThis.FormData===void 0&&(globalThis.FormData=hs),globalThis.File===void 0&&(globalThis.File=Fl),globalThis.Blob===void 0&&(globalThis.Blob=Sg);var ud=st(7356),ku=st.n(ud);const xu="application/json, application/yaml",Hc="https://swagger.io",pd=Object.freeze({url:"/"}),_g=["properties"],jg=["properties"],Og=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Eu=["schema/example","items/example"];function Ag(e){const t=e[e.length-1],r=e[e.length-2],o=e.join("/");return _g.indexOf(t)>-1&&jg.indexOf(r)===-1||Og.indexOf(o)>-1||Eu.some(n=>o.indexOf(n)>-1)}function ra(e,t){const[r,o]=e.split("#"),n=t??"",l=r??"";let h;if(Kc(n))h=Wi(n,l);else{const m=Wi(Hc,n),E=Wi(m,l).replace(Hc,"");h=l.startsWith("/")?E:E.substring(1)}return o?`${h}#${o}`:h}const dd=/^([a-z]+:\/\/|\/\/)/i,kl=Di("JSONRefError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),Ji={},Vc=new WeakMap,ap=[e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="examples",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="responses"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[3]==="requestBody"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="examples"&&e[6]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="examples"&&e[7]==="value",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="example",e=>e[0]==="paths"&&e[2]==="parameters"&&e[4]==="content"&&e[6]==="examples"&&e[8]==="value",e=>e[0]==="paths"&&e[3]==="parameters"&&e[4]==="content"&&e[7]==="example",e=>e[0]==="paths"&&e[3]==="parameters"&&e[5]==="content"&&e[7]==="examples"&&e[9]==="value"],np={key:"$ref",plugin:(e,t,r,o)=>{const n=o.getInstance(),l=r.slice(0,-1);if(Ag(l)||(f=>ap.some(Y=>Y(f)))(l))return;const{baseDoc:h}=o.getContext(r);if(typeof e!="string")return new kl("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:h,fullPath:r});const m=fd(e),E=m[0],R=m[1]||"";let B,$,K;try{B=h||E?xc(E,h):null}catch(f){return $l(f,{pointer:R,$ref:e,basePath:B,fullPath:r})}if(function(f,Y,V,ne){let re=Vc.get(ne);re||(re={},Vc.set(ne,re));const pe=function(xe){return xe.length===0?"":`/${xe.map(Ns).join("/")}`}(V),ve=`${Y||"<specmap-base>"}#${f}`,he=pe.replace(/allOf\/\d+\/?/g,""),Ee=ne.contextTree.get([]).baseDoc;if(Y===Ee&&Sc(he,f))return!0;let Ke="";return V.some(xe=>(Ke=`${Ke}/${Ns(xe)}`,re[Ke]&&re[Ke].some(Ye=>Sc(Ye,ve)||Sc(ve,Ye))))?!0:void(re[he]=(re[he]||[]).concat(ve))}(R,B,l,o)&&!n.useCircularStructures){const f=ra(e,B);return e===f?null:aa.replace(r,f)}if(B==null?(K=Ul(R),$=o.get(K),$===void 0&&($=new kl(`Could not resolve reference: ${e}`,{pointer:R,$ref:e,baseDoc:h,fullPath:r}))):($=ip(B,R),$=$.__value!=null?$.__value:$.catch(f=>{throw $l(f,{pointer:R,$ref:e,baseDoc:h,fullPath:r})})),$ instanceof Error)return[aa.remove(r),$];const L=ra(e,B),H=aa.replace(l,$,{$$ref:L});if(B&&B!==h)return[H,aa.context(l,{baseDoc:B})];try{if(!function(f,Y){const V=[f];return Y.path.reduce((re,pe)=>(V.push(re[pe]),re[pe]),f),ne(Y.value);function ne(re){return aa.isObject(re)&&(V.indexOf(re)>=0||Object.keys(re).some(pe=>ne(re[pe])))}}(o.state,H)||n.useCircularStructures)return H}catch{return null}}},gd=Object.assign(np,{docCache:Ji,absoluteify:xc,clearCache:function(e){e!==void 0?delete Ji[e]:Object.keys(Ji).forEach(t=>{delete Ji[t]})},JSONRefError:kl,wrapError:$l,getDoc:Ec,split:fd,extractFromDoc:ip,fetchJSON:function(e){return fetch(e,{headers:{Accept:xu},loadSpec:!0}).then(t=>t.text()).then(t=>Gs.load(t))},extract:Su,jsonPointerToArray:Ul,unescapeJsonPointerToken:sp}),hd=gd;function xc(e,t){if(!dd.test(e)){if(!t)throw new kl(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return Wi(t,e)}return e}function $l(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new kl(`Could not resolve reference: ${r}`,t,e)}function fd(e){return(e+"").split("#")}function ip(e,t){const r=Ji[e];if(r&&!aa.isPromise(r))try{const o=Su(t,r);return Object.assign(Promise.resolve(o),{__value:o})}catch(o){return Promise.reject(o)}return Ec(e).then(o=>Su(t,o))}function Ec(e){const t=Ji[e];return t?aa.isPromise(t)?t:Promise.resolve(t):(Ji[e]=gd.fetchJSON(e).then(r=>(Ji[e]=r,r)),Ji[e])}function Su(e,t){const r=Ul(e);if(r.length<1)return t;const o=aa.getIn(t,r);if(o===void 0)throw new kl(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return o}function Ul(e){if(typeof e!="string")throw new TypeError("Expected a string, got a "+typeof e);return e[0]==="/"&&(e=e.substr(1)),e===""?[]:e.split("/").map(sp)}function sp(e){return typeof e!="string"?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Ns(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const xl=e=>!e||e==="/"||e==="#";function Sc(e,t){if(xl(t))return!0;const r=e.charAt(t.length),o=t.slice(-1);return e.indexOf(t)===0&&(!r||r==="/"||r==="#")&&o!=="#"}const md={key:"allOf",plugin:(e,t,r,o,n)=>{if(n.meta&&n.meta.$$ref)return;const l=r.slice(0,-1);if(Ag(l))return;if(!Array.isArray(e)){const R=new TypeError("allOf must be an array");return R.fullPath=r,R}let h=!1,m=n.value;if(l.forEach(R=>{m&&(m=m[R])}),m={...m},Object.keys(m).length===0)return;delete m.allOf;const E=[];return E.push(o.replace(l,{})),e.forEach((R,B)=>{if(!o.isObject(R)){if(h)return null;h=!0;const K=new TypeError("Elements in allOf must be objects");return K.fullPath=r,E.push(K)}E.push(o.mergeDeep(l,R));const $=function(K,L,{specmap:H,getBaseUrlForNodePath:f=V=>H.getContext([...L,...V]).baseDoc,targetKeys:Y=["$ref","$$ref"]}={}){const V=[];return ku()(K).forEach(function(){if(Y.includes(this.key)&&typeof this.node=="string"){const ne=this.path,re=L.concat(this.path),pe=ra(this.node,f(ne));V.push(H.replace(re,pe))}}),V}(R,r.slice(0,-1),{getBaseUrlForNodePath:K=>o.getContext([...r,B,...K]).baseDoc,specmap:o});E.push(...$)}),m.example&&E.push(o.remove([].concat(l,"example"))),E.push(o.mergeDeep(l,m)),m.$$ref||E.push(o.remove([].concat(l,"$$ref"))),E}},Zs={key:"parameters",plugin:(e,t,r,o)=>{if(Array.isArray(e)&&e.length){const n=Object.assign([],e),l=r.slice(0,-1),h={...aa.getIn(o.spec,l)};for(let m=0;m<e.length;m+=1){const E=e[m];try{n[m].default=o.parameterMacro(h,E)}catch(R){const B=new Error(R);return B.fullPath=r,B}}return aa.replace(r,n)}return aa.replace(r,e)}},mf={key:"properties",plugin:(e,t,r,o)=>{const n={...e};for(const l in e)try{n[l].default=o.modelPropertyMacro(n[l])}catch(h){const m=new Error(h);return m.fullPath=r,m}return aa.replace(r,n)}};class _u{constructor(t){this.root=cp(t||{})}set(t,r){const o=this.getParent(t,!0);if(!o)return void lp(this.root,r,null);const n=t[t.length-1],{children:l}=o;l[n]?lp(l[n],r,o):l[n]=cp(r,o)}get(t){if((t=t||[]).length<1)return this.root.value;let r,o,n=this.root;for(let l=0;l<t.length&&(o=t[l],r=n.children,r[o]);l+=1)n=r[o];return n&&n.protoValue}getParent(t,r){return!t||t.length<1?null:t.length<2?this.root:t.slice(0,-1).reduce((o,n)=>{if(!o)return o;const{children:l}=o;return!l[n]&&r&&(l[n]=cp(null,o)),l[n]},this.root)}}function cp(e,t){return lp({children:{}},e,t)}function lp(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach(o=>{const n=e.children[o];e.children[o]=lp(n,n.value,e)}),e}const Cg=()=>{};class bd{static getPluginName(t){return t.pluginName}static getPatchesOfType(t,r){return t.filter(r)}constructor(t){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new _u,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),aa,{getInstance:()=>this}),allowMetaPatches:!1},t),this.get=this._get.bind(this),this.getContext=this._getContext.bind(this),this.hasRun=this._hasRun.bind(this),this.wrappedPlugins=this.plugins.map(this.wrapPlugin.bind(this)).filter(aa.isFunction),this.patches.push(aa.add([],this.spec)),this.patches.push(aa.context([],this.context)),this.updatePatches(this.patches)}debug(t,...r){this.debugLevel===t&&console.log(...r)}verbose(t,...r){this.debugLevel==="verbose"&&console.log(`[${t}] `,...r)}wrapPlugin(t,r){const{pathDiscriminator:o}=this;let n,l=null;return t[this.pluginProp]?(l=t,n=t[this.pluginProp]):aa.isFunction(t)?n=t:aa.isObject(t)&&(n=function(h){const m=(E,R)=>!Array.isArray(E)||E.every((B,$)=>B===R[$]);return function*(E,R){const B={};for(const[K,L]of E.filter(aa.isAdditiveMutation).entries()){if(!(K<3e3))return;yield*$(L.value,L.path,L)}function*$(K,L,H){if(aa.isObject(K)){const f=L.length-1,Y=L[f],V=L.indexOf("properties"),ne=Y==="properties"&&f===V,re=R.allowMetaPatches&&B[K.$$ref];for(const pe of Object.keys(K)){const ve=K[pe],he=L.concat(pe),Ee=aa.isObject(ve),Ke=K.$$ref;if(re||Ee&&(R.allowMetaPatches&&Ke&&(B[Ke]=!0),yield*$(ve,he,H)),!ne&&pe===h.key){const Fe=m(o,L);o&&!Fe||(yield h.plugin(ve,pe,he,R,H))}}}else h.key===L[L.length-1]&&(yield h.plugin(K,h.key,L,R))}}}(t)),Object.assign(n.bind(l),{pluginName:t.name||r,isGenerator:aa.isGenerator(n)})}nextPlugin(){return this.wrappedPlugins.find(t=>this.getMutationsForPlugin(t).length>0)}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map(t=>t.value))}getPluginHistory(t){const r=this.constructor.getPluginName(t);return this.pluginHistory[r]||[]}getPluginRunCount(t){return this.getPluginHistory(t).length}getPluginHistoryTip(t){const r=this.getPluginHistory(t);return r&&r[r.length-1]||{}}getPluginMutationIndex(t){const r=this.getPluginHistoryTip(t).mutationIndex;return typeof r!="number"?-1:r}updatePluginHistory(t,r){const o=this.constructor.getPluginName(t);this.pluginHistory[o]=this.pluginHistory[o]||[],this.pluginHistory[o].push(r)}updatePatches(t){aa.normalizeArray(t).forEach(r=>{if(r instanceof Error)this.errors.push(r);else try{if(!aa.isObject(r))return void this.debug("updatePatches","Got a non-object patch",r);if(this.showDebug&&this.allPatches.push(r),aa.isPromise(r.value))return this.promisedPatches.push(r),void this.promisedPatchThen(r);if(aa.isContextPatch(r))return void this.setContext(r.path,r.value);aa.isMutation(r)&&this.updateMutations(r)}catch(o){console.error(o),this.errors.push(o)}})}updateMutations(t){typeof t.value=="object"&&!Array.isArray(t.value)&&this.allowMetaPatches&&(t.value={...t.value});const r=aa.applyPatch(this.state,t,{allowMetaPatches:this.allowMetaPatches});r&&(this.mutations.push(t),this.state=r)}removePromisedPatch(t){const r=this.promisedPatches.indexOf(t);r<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(r,1)}promisedPatchThen(t){return t.value=t.value.then(r=>{const o={...t,value:r};this.removePromisedPatch(t),this.updatePatches(o)}).catch(r=>{this.removePromisedPatch(t),this.updatePatches(r)}),t.value}getMutations(t,r){return t=t||0,typeof r!="number"&&(r=this.mutations.length),this.mutations.slice(t,r)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(t){const r=this.getPluginMutationIndex(t);return this.getMutations(r+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(t){return aa.getIn(this.state,t)}_getContext(t){return this.contextTree.get(t)}setContext(t,r){return this.contextTree.set(t,r)}_hasRun(t){return this.getPluginRunCount(this.getCurrentPlugin())>(t||0)}dispatch(){const t=this,r=this.nextPlugin();if(!r){const n=this.nextPromisedPatch();if(n)return n.then(()=>this.dispatch()).catch(()=>this.dispatch());const l={spec:this.state,errors:this.errors};return this.showDebug&&(l.patches=this.allPatches),Promise.resolve(l)}if(t.pluginCount=t.pluginCount||new WeakMap,t.pluginCount.set(r,(t.pluginCount.get(r)||0)+1),t.pluginCount[r]>100)return Promise.resolve({spec:t.state,errors:t.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(r!==this.currentPlugin&&this.promisedPatches.length){const n=this.promisedPatches.map(l=>l.value);return Promise.all(n.map(l=>l.then(Cg,Cg))).then(()=>this.dispatch())}return function(){t.currentPlugin=r;const n=t.getCurrentMutations(),l=t.mutations.length-1;try{if(r.isGenerator)for(const h of r(n,t.getLib()))o(h);else o(r(n,t.getLib()))}catch(h){console.error(h),o([Object.assign(Object.create(h),{plugin:r})])}finally{t.updatePluginHistory(r,{mutationIndex:l})}return t.dispatch()}();function o(n){n&&(n=aa.fullyNormalizeArray(n),t.updatePatches(n,r))}}}const Wc={refs:hd,allOf:md,parameters:Zs,properties:mf},ql=e=>e.replace(/\W/gi,"_");function Kl(e,t,r="",{v2OperationIdCompatibilityMode:o}={}){return!e||typeof e!="object"?null:(e.operationId||"").replace(/\s/g,"").length?ql(e.operationId):function(n,l,{v2OperationIdCompatibilityMode:h}={}){if(h){let m=`${l.toLowerCase()}_${n}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return m=m||`${n.substring(1)}_${l}`,m.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${l.toLowerCase()}${ql(n)}`}(t,r,{v2OperationIdCompatibilityMode:o})}function up(e){const{spec:t}=e,{paths:r}=t,o={};if(!r||t.$$normalized)return e;for(const n in r){const l=r[n];if(l==null||!["object","function"].includes(typeof l))continue;const h=l.parameters;for(const m in l){const E=l[m];if(E==null||!["object","function"].includes(typeof E))continue;const R=Kl(E,n,m);if(R){o[R]?o[R].push(E):o[R]=[E];const B=o[R];if(B.length>1)B.forEach(($,K)=>{$.__originalOperationId=$.__originalOperationId||$.operationId,$.operationId=`${R}${K+1}`});else if(E.operationId!==void 0){const $=B[0];$.__originalOperationId=$.__originalOperationId||E.operationId,$.operationId=R}}if(m!=="parameters"){const B=[],$={};for(const K in t)K!=="produces"&&K!=="consumes"&&K!=="security"||($[K]=t[K],B.push($));if(h&&($.parameters=h,B.push($)),B.length)for(const K of B)for(const L in K)if(E[L]){if(L==="parameters")for(const H of K[L])E[L].some(f=>f.name&&f.name===H.name||f.$ref&&f.$ref===H.$ref||f.$$ref&&f.$$ref===H.$$ref||f===H)||E[L].push(H)}else E[L]=K[L]}}}return t.$$normalized=!0,e}function ju(e,t={}){const{requestInterceptor:r,responseInterceptor:o}=t,n=e.withCredentials?"include":"same-origin";return l=>e({url:l,loadSpec:!0,requestInterceptor:r,responseInterceptor:o,headers:{Accept:xu},credentials:n}).then(h=>h.body)}var q0=st(72047),Pg=st.n(q0);const bf=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,vf=e=>/^[a-z0-9\-._~]+$/i.test(e);function Hl(e,t="reserved"){return[...e].map(r=>{if(vf(r)||bf(r)&&t==="unsafe")return r;const o=new TextEncoder;return Array.from(o.encode(r)).map(n=>`0${n.toString(16).toUpperCase()}`.slice(-2)).map(n=>`%${n}`).join("")}).join("")}function Ig(e){const{value:t}=e;return Array.isArray(t)?function({key:r,value:o,style:n,explode:l,escape:h}){if(n==="simple")return o.map(m=>os(m,h)).join(",");if(n==="label")return`.${o.map(m=>os(m,h)).join(".")}`;if(n==="matrix")return o.map(m=>os(m,h)).reduce((m,E)=>!m||l?`${m||""};${r}=${E}`:`${m},${E}`,"");if(n==="form"){const m=l?`&${r}=`:",";return o.map(E=>os(E,h)).join(m)}if(n==="spaceDelimited"){const m=l?`${r}=`:"";return o.map(E=>os(E,h)).join(` ${m}`)}if(n==="pipeDelimited"){const m=l?`${r}=`:"";return o.map(E=>os(E,h)).join(`|${m}`)}}(e):typeof t=="object"?function({key:r,value:o,style:n,explode:l,escape:h}){const m=Object.keys(o);if(n==="simple")return m.reduce((E,R)=>{const B=os(o[R],h);return`${E?`${E},`:""}${R}${l?"=":","}${B}`},"");if(n==="label")return m.reduce((E,R)=>{const B=os(o[R],h);return`${E?`${E}.`:"."}${R}${l?"=":"."}${B}`},"");if(n==="matrix"&&l)return m.reduce((E,R)=>`${E?`${E};`:";"}${R}=${os(o[R],h)}`,"");if(n==="matrix")return m.reduce((E,R)=>{const B=os(o[R],h);return`${E?`${E},`:`;${r}=`}${R},${B}`},"");if(n==="form")return m.reduce((E,R)=>{const B=os(o[R],h);return`${E?`${E}${l?"&":","}`:""}${R}${l?"=":","}${B}`},"")}(e):function({key:r,value:o,style:n,escape:l}){if(n==="simple")return os(o,l);if(n==="label")return`.${os(o,l)}`;if(n==="matrix")return`;${r}=${os(o,l)}`;if(n==="form"||n==="deepObject")return os(o,l)}(e)}function os(e,t=!1){return Array.isArray(e)||e!==null&&typeof e=="object"?e=JSON.stringify(e):typeof e!="number"&&typeof e!="boolean"||(e=String(e)),t&&e.length>0?Hl(e,t):e}const _c={serializeRes:zg,mergeInQueryOrForm:Vl};async function Ou(e,t={}){typeof e=="object"&&(e=(t=e).url),t.headers=t.headers||{},_c.mergeInQueryOrForm(t),t.headers&&Object.keys(t.headers).forEach(n=>{const l=t.headers[n];typeof l=="string"&&(t.headers[n]=l.replace(/\n+/g," "))}),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let o;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{o=await(t.userFetch||fetch)(t.url,t),o=await _c.serializeRes(o,e,t),t.responseInterceptor&&(o=await t.responseInterceptor(o)||o)}catch(n){if(!o)throw n;const l=new Error(o.statusText||`response status is ${o.status}`);throw l.status=o.status,l.statusCode=o.status,l.responseError=n,l}if(!o.ok){const n=new Error(o.statusText||`response status is ${o.status}`);throw n.status=o.status,n.statusCode=o.status,n.response=o,n}return o}const yf=(e="")=>/(json|xml|yaml|text)\b/.test(e);function zg(e,t,{loadSpec:r=!1}={}){const o={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:Tg(e.headers)},n=o.headers["content-type"],l=r||yf(n);return(l?e.text:e.blob||e.buffer).call(e).then(h=>{if(o.text=h,o.data=h,l)try{const m=function(E,R){return R&&(R.indexOf("application/json")===0||R.indexOf("+json")>0)?JSON.parse(E):Gs.load(E)}(h,n);o.body=m,o.obj=m}catch(m){o.parseError=m}return o})}function Tg(e={}){return typeof e.entries!="function"?{}:Array.from(e.entries()).reduce((t,[r,o])=>(t[r]=function(n){return n.includes(", ")?n.split(", "):n}(o),t),{})}function jc(e,t){return t||typeof navigator>"u"||(t=navigator),t&&t.product==="ReactNative"?!(!e||typeof e!="object"||typeof e.uri!="string"):typeof File<"u"&&e instanceof File||typeof Blob<"u"&&e instanceof Blob||!!ArrayBuffer.isView(e)||e!==null&&typeof e=="object"&&typeof e.pipe=="function"}function wf(e,t){return Array.isArray(e)&&e.some(r=>jc(r,t))}const K0={form:",",spaceDelimited:"%20",pipeDelimited:"|"},H0={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Ds extends File{constructor(t,r="",o={}){super([t],r,o),this.data=t}valueOf(){return this.data}toString(){return this.valueOf()}}function vd(e,t,r=!1){const{collectionFormat:o,allowEmptyValue:n,serializationOption:l,encoding:h}=t,m=typeof t!="object"||Array.isArray(t)?t:t.value,E=r?B=>B.toString():B=>encodeURIComponent(B),R=E(e);if(m===void 0&&n)return[[R,""]];if(jc(m)||wf(m))return[[R,m]];if(l)return Jc(e,m,r,l);if(h){if([typeof h.style,typeof h.explode,typeof h.allowReserved].some(B=>B!=="undefined")){const{style:B,explode:$,allowReserved:K}=h;return Jc(e,m,r,{style:B,explode:$,allowReserved:K})}if(typeof h.contentType=="string"){if(h.contentType.startsWith("application/json")){const $=E(typeof m=="string"?m:JSON.stringify(m));return[[R,new Ds($,"blob",{type:h.contentType})]]}const B=E(String(m));return[[R,new Ds(B,"blob",{type:h.contentType})]]}return typeof m!="object"?[[R,E(m)]]:Array.isArray(m)&&m.every(B=>typeof B!="object")?[[R,m.map(E).join(",")]]:[[R,E(JSON.stringify(m))]]}return typeof m!="object"?[[R,E(m)]]:Array.isArray(m)?o==="multi"?[[R,m.map(E)]]:[[R,m.map(E).join(H0[o||"csv"])]]:[[R,""]]}function Jc(e,t,r,o){const n=o.style||"form",l=o.explode===void 0?n==="form":o.explode,h=!r&&(o&&o.allowReserved?"unsafe":"reserved"),m=R=>os(R,h),E=r?R=>R:R=>m(R);return typeof t!="object"?[[E(e),m(t)]]:Array.isArray(t)?l?[[E(e),t.map(m)]]:[[E(e),t.map(m).join(K0[n])]]:n==="deepObject"?Object.keys(t).map(R=>[E(`${e}[${R}]`),m(t[R])]):l?Object.keys(t).map(R=>[E(R),m(t[R])]):[[E(e),Object.keys(t).map(R=>[`${E(R)},${m(t[R])}`]).join(",")]]}function pp(e){const t=Object.keys(e).reduce((r,o)=>{for(const[n,l]of vd(o,e[o]))r[n]=l instanceof Ds?l.valueOf():l;return r},{});return Pg().stringify(t,{encode:!1,indices:!1})||""}function Vl(e={}){const{url:t="",query:r,form:o}=e;if(o){const l=Object.keys(o).some(m=>{const{value:E}=o[m];return jc(E)||wf(E)}),h=e.headers["content-type"]||e.headers["Content-Type"];if(l||/multipart\/form-data/i.test(h)){const m=(n=e.form,Object.entries(n).reduce((E,[R,B])=>{for(const[$,K]of vd(R,B,!0))if(Array.isArray(K))for(const L of K)if(ArrayBuffer.isView(L)){const H=new Blob([L]);E.append($,H)}else E.append($,L);else if(ArrayBuffer.isView(K)){const L=new Blob([K]);E.append($,L)}else E.append($,K);return E},new FormData));e.formdata=m,e.body=m}else e.body=pp(o);delete e.form}var n;if(r){const[l,h]=t.split("?");let m="";if(h){const R=Pg().parse(h);Object.keys(r).forEach(B=>delete R[B]),m=Pg().stringify(R,{encode:!0})}const E=((...R)=>{const B=R.filter($=>$).join("&");return B?`?${B}`:""})(m,pp(r));e.url=l+E,delete e.query}return e}function yd(e,t,r){return r=r||(o=>o),t=t||(o=>o),o=>(typeof o=="string"&&(o={url:o}),_c.mergeInQueryOrForm(o),o=t(o),r(e(o)))}const dp=e=>{var t,r;const{baseDoc:o,url:n}=e,l=(t=o??n)!==null&&t!==void 0?t:"";return typeof((r=globalThis.document)===null||r===void 0?void 0:r.baseURI)=="string"?String(new URL(l,globalThis.document.baseURI)):l},wd=e=>{const{fetch:t,http:r}=e;return t||r||Ou};async function Rg(e){const{spec:t,mode:r,allowMetaPatches:o=!0,pathDiscriminator:n,modelPropertyMacro:l,parameterMacro:h,requestInterceptor:m,responseInterceptor:E,skipNormalization:R,useCircularStructures:B}=e,$=dp(e),K=wd(e);return function(L){$&&(Wc.refs.docCache[$]=L),Wc.refs.fetchJSON=ju(K,{requestInterceptor:m,responseInterceptor:E});const H=[Wc.refs];return typeof h=="function"&&H.push(Wc.parameters),typeof l=="function"&&H.push(Wc.properties),r!=="strict"&&H.push(Wc.allOf),(f={spec:L,context:{baseDoc:$},plugins:H,allowMetaPatches:o,pathDiscriminator:n,parameterMacro:h,modelPropertyMacro:l,useCircularStructures:B},new bd(f).dispatch()).then(R?async Y=>Y:up);var f}(t)}const kd={name:"generic",match:()=>!0,normalize({spec:e}){const{spec:t}=up({spec:e});return t},resolve:async e=>Rg(e)},gp=kd,Ng=e=>{try{const{swagger:t}=e;return t==="2.0"}catch{return!1}},xd=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},Ed=e=>{try{const{openapi:t}=e;return typeof t=="string"&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},Wl=e=>xd(e)||Ed(e),Sd={name:"openapi-2",match:({spec:e})=>Ng(e),normalize({spec:e}){const{spec:t}=up({spec:e});return t},resolve:async e=>async function(t){return Rg(t)}(e)},_d=Sd,V0={name:"openapi-3-0",match:({spec:e})=>xd(e),normalize({spec:e}){const{spec:t}=up({spec:e});return t},resolve:async e=>async function(t){return Rg(t)}(e)},Jl=V0;var Or=st(53282);class jd extends Or.Om{constructor(t,r,o){super(t,r,o),this.element="annotation"}get code(){return this.attributes.get("code")}set code(t){this.attributes.set("code",t)}}const c=jd;class y extends Or.Om{constructor(t,r,o){super(t,r,o),this.element="comment"}}const D=y;class X extends Or.wE{constructor(t,r,o){super(t,r,o),this.element="parseResult"}get api(){return this.children.filter(t=>t.classes.contains("api")).first}get results(){return this.children.filter(t=>t.classes.contains("result"))}get result(){return this.results.first}get annotations(){return this.children.filter(t=>t.element==="annotation")}get warnings(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("warning"))}get errors(){return this.children.filter(t=>t.element==="annotation"&&t.classes.contains("error"))}get isEmpty(){return this.children.reject(t=>t.element==="annotation").isEmpty}replaceResult(t){const{result:r}=this;if(pc(r))return!1;const o=this.content.findIndex(n=>n===r);return o!==-1&&(this.content[o]=t,!0)}}const le=X;class Ie extends Or.wE{constructor(t,r,o){super(t,r,o),this.element="sourceMap"}get positionStart(){return this.children.filter(t=>t.classes.contains("position")).get(0)}get positionEnd(){return this.children.filter(t=>t.classes.contains("position")).get(1)}set position(t){if(t===void 0)return;const r=new Or.wE([t.start.row,t.start.column,t.start.char]),o=new Or.wE([t.end.row,t.end.column,t.end.char]);r.classes.push("position"),o.classes.push("position"),this.push(r).push(o)}}const Ue=Ie;var ut=Ri(function(e,t,r){var o,n={};for(o in r=r||{},t=t||{})vs(o,t)&&(n[o]=vs(o,r)?e(o,t[o],r[o]):t[o]);for(o in r)vs(o,r)&&!vs(o,n)&&(n[o]=r[o]);return n});const Kt=ut;var _r=Ri(function e(t,r,o){return Kt(function(n,l,h){return Ys(l)&&Ys(h)?e(t,l,h):t(n,l,h)},r,o)});const yo=_r,Xo=Da(function(e,t){return yo(function(r,o,n){return n},e,t)}),bo=fu(0,-1);var ma=Da(function(e,t){return e.apply(this,t)});const Ha=ma,La=vl(qc),Cr=Da(function(e,t){return e&&t}),ir=Da(function(e,t){return ep(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:od(Cr)(e,t)});var xr=Un(function(e){return e!=null&&typeof e["fantasy-land/empty"]=="function"?e["fantasy-land/empty"]():e!=null&&e.constructor!=null&&typeof e.constructor["fantasy-land/empty"]=="function"?e.constructor["fantasy-land/empty"]():e!=null&&typeof e.empty=="function"?e.empty():e!=null&&e.constructor!=null&&typeof e.constructor.empty=="function"?e.constructor.empty():si(e)?[]:kc(e)?"":Ys(e)?{}:lg(e)?function(){return arguments}():function(t){var r=Object.prototype.toString.call(t);return r==="[object Uint8ClampedArray]"||r==="[object Int8Array]"||r==="[object Uint8Array]"||r==="[object Int16Array]"||r==="[object Uint16Array]"||r==="[object Int32Array]"||r==="[object Uint32Array]"||r==="[object Float32Array]"||r==="[object Float64Array]"||r==="[object BigInt64Array]"||r==="[object BigUint64Array]"}(e)?e.constructor.from(""):void 0});const uo=xr,po=Un(function(e){return e!=null&&Hi(e,uo(e))}),qa=Xn(1,qc(Array.isArray)?Array.isArray:Ai(ys,$c("Array"))),ga=ir(qa,po);var en=Xn(3,function(e,t,r){var o=vi(e,r),n=vi(bo(e),r);if(!La(o)&&!ga(e)){var l=rs(o,n);return Ha(l,t)}});const rn=en;function Aa(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}var oi=function(){function e(t,r){this.xf=r,this.f=t,this.all=!0}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=function(t){return this.all&&(t=this.xf["@@transducer/step"](t,!0)),this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){return this.f(r)||(this.all=!1,t=Aa(this.xf["@@transducer/step"](t,!1))),t},e}();function W0(e){return function(t){return new oi(e,t)}}var Cx=Da(ic(["all"],W0,function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0}));const J0=Cx,Px=(e,t)=>typeof t=="object"&&t!==null&&e in t&&typeof t[e]=="function",Ix=e=>typeof e=="object"&&e!=null&&"_storedElement"in e&&typeof e._storedElement=="string"&&"_content"in e,zx=(e,t)=>typeof t=="object"&&t!==null&&"primitive"in t&&typeof t.primitive=="function"&&t.primitive()===e,Tx=(e,t)=>typeof t=="object"&&t!==null&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof Or.wE)&&t.classes.includes(e),Au=(e,t)=>typeof t=="object"&&t!==null&&"element"in t&&t.element===e,ea=e=>e({hasMethod:Px,hasBasicElementProps:Ix,primitiveEq:zx,isElementType:Au,hasClass:Tx}),as=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Or.Hg||e(r)&&t(void 0,r)),hn=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Or.Om||e(r)&&t("string",r)),G0=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Or.kT||e(r)&&t("number",r)),Y0=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Or.Os||e(r)&&t("null",r)),Dg=ea(({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof Or.bd||e(r)&&t("boolean",r)),zn=ea(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>o=>o instanceof Or.Sh||e(o)&&t("object",o)&&r("keys",o)&&r("values",o)&&r("items",o)),dc=ea(({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>o=>o instanceof Or.wE&&!(o instanceof Or.Sh)||e(o)&&t("array",o)&&r("push",o)&&r("unshift",o)&&r("map",o)&&r("reduce",o)),Bi=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Or.Pr||e(o)&&t("member",o)&&r(void 0,o)),ky=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Or.Ft||e(o)&&t("link",o)&&r(void 0,o)),xy=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Or.sI||e(o)&&t("ref",o)&&r(void 0,o)),Rx=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof c||e(o)&&t("annotation",o)&&r("array",o)),Nx=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof D||e(o)&&t("comment",o)&&r("string",o)),Ey=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof le||e(o)&&t("parseResult",o)&&r("array",o)),Sy=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ue||e(o)&&t("sourceMap",o)&&r("array",o)),hp=e=>Au("object",e)||Au("array",e)||Au("boolean",e)||Au("number",e)||Au("string",e)||Au("null",e)||Au("member",e),Bg=e=>Sy(e.meta.get("sourceMap")),Dx=(e,t)=>{if(e.length===0)return!0;const r=t.attributes.get("symbols");return!!dc(r)&&J0(rd(r.toValue()),e)},Od=(e,t)=>e.length===0||J0(rd(t.classes.toValue()),e),_y=Hi(null),jy=vl(_y);function Z0(e){return Z0=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Z0(e)}const Oy=function(e){return Z0(e)==="object"},Bx=Xn(1,ir(jy,Oy));var Mx=Ai(ys,$c("Object")),Lx=Ai(sc,Hi(sc(Object))),Fx=Vu(ir(qc,Lx),["constructor"]);const kf=Xn(1,function(e){if(!Bx(e)||!Mx(e))return!1;var t=Object.getPrototypeOf(e);return!!_y(t)||Fx(t)});class Ay extends Or.g${constructor(){super(),this.register("annotation",c),this.register("comment",D),this.register("parseResult",le),this.register("sourceMap",Ue)}}const $x=new Ay,Mg=e=>{const t=new Ay;return kf(e)&&t.use(e),t},Cy=$x,Py=()=>({predicates:{...p},namespace:Cy}),Q0=function(){return!1};var Ux=st(82559);const qx=class extends Ux{constructor(e,t,r){if(super(e,t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:o}=r;this.cause=o,o instanceof Error&&"stack"in o&&(this.stack=`${this.stack}
|
|
177
177
|
CAUSE: ${o.stack}`)}}};class Kx extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(qx,t)}constructor(t,r){if(super(t,r),this.name=this.constructor.name,typeof t=="string"&&(this.message=t),typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,r!=null&&typeof r=="object"&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:o}=r;this.cause=o,o instanceof Error&&"stack"in o&&(this.stack=`${this.stack}
|
|
178
178
|
CAUSE: ${o.stack}`)}}}const Gi=Kx,Cu=class extends Gi{constructor(e,t){if(super(e,t),t!=null&&typeof t=="object"){const{cause:r,...o}=t;Object.assign(this,o)}}},xf=(e,t,r)=>{const o=e[t];if(o!=null){if(!r&&typeof o=="function")return o;const n=r?o.leave:o.enter;if(typeof n=="function")return n}else{const n=r?e.leave:e.enter;if(n!=null){if(typeof n=="function")return n;const l=n[t];if(typeof l=="function")return l}}return null},pn={},Lg=e=>e==null?void 0:e.type,Iy=e=>typeof Lg(e)=="string",X0=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Ef=(e,{visitFnGetter:t=xf,nodeTypeGetter:r=Lg,breakSymbol:o=pn,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:l=!1,exposeEdits:h=!1}={})=>{const m=Symbol("skip"),E=new Array(e.length).fill(m);return{enter(R,...B){let $=R,K=!1;for(let L=0;L<e.length;L+=1)if(E[L]===m){const H=t(e[L],r($),!1);if(typeof H=="function"){const f=H.call(e[L],$,...B);if(typeof(f==null?void 0:f.then)=="function")throw new Cu("Async visitor not supported in sync mode",{visitor:e[L],visitFn:H});if(f===l)E[L]=R;else if(f===o)E[L]=o;else{if(f===n)return f;if(f!==void 0){if(!h)return f;$=f,K=!0}}}}return K?$:void 0},leave(R,...B){for(let $=0;$<e.length;$+=1)if(E[$]===m){const K=t(e[$],r(R),!0);if(typeof K=="function"){const L=K.call(e[$],R,...B);if(typeof(L==null?void 0:L.then)=="function")throw new Cu("Async visitor not supported in sync mode",{visitor:e[$],visitFn:K});if(L===o)E[$]=o;else if(L!==void 0&&L!==l)return L}}else E[$]===R&&(E[$]=m)}}};Ef[Symbol.for("nodejs.util.promisify.custom")]=(e,{visitFnGetter:t=xf,nodeTypeGetter:r=Lg,breakSymbol:o=pn,deleteNodeSymbol:n=null,skipVisitingNodeSymbol:l=!1,exposeEdits:h=!1}={})=>{const m=Symbol("skip"),E=new Array(e.length).fill(m);return{async enter(R,...B){let $=R,K=!1;for(let L=0;L<e.length;L+=1)if(E[L]===m){const H=t(e[L],r($),!1);if(typeof H=="function"){const f=await H.call(e[L],$,...B);if(f===l)E[L]=R;else if(f===o)E[L]=o;else{if(f===n)return f;if(f!==void 0){if(!h)return f;$=f,K=!0}}}}return K?$:void 0},async leave(R,...B){for(let $=0;$<e.length;$+=1)if(E[$]===m){const K=t(e[$],r(R),!0);if(typeof K=="function"){const L=await K.call(e[$],R,...B);if(L===o)E[$]=o;else if(L!==void 0&&L!==l)return L}}else E[$]===R&&(E[$]=m)}}};const eb=(e,t,{keyMap:r=null,state:o={},breakSymbol:n=pn,deleteNodeSymbol:l=null,skipVisitingNodeSymbol:h=!1,visitFnGetter:m=xf,nodeTypeGetter:E=Lg,nodePredicate:R=Iy,nodeCloneFn:B=X0,detectCycles:$=!0}={})=>{const K=r||{};let L,H,f=Array.isArray(e),Y=[e],V=-1,ne=[],re=e;const pe=[],ve=[];do{V+=1;const Ke=V===Y.length;let Fe;const xe=Ke&&ne.length!==0;if(Ke){if(Fe=ve.length===0?void 0:pe.pop(),re=H,H=ve.pop(),xe)if(f){re=re.slice();let It=0;for(const[Bt,gt]of ne){const Xt=Bt-It;gt===l?(re.splice(Xt,1),It+=1):re[Xt]=gt}}else{re=B(re);for(const[It,Bt]of ne)re[It]=Bt}V=L.index,Y=L.keys,ne=L.edits,f=L.inArray,L=L.prev}else if(H!==l&&H!==void 0){if(Fe=f?V:Y[V],re=H[Fe],re===l||re===void 0)continue;pe.push(Fe)}let Ye;if(!Array.isArray(re)){var he;if(!R(re))throw new Cu(`Invalid AST Node: ${String(re)}`,{node:re});if($&&ve.includes(re)){pe.pop();continue}const It=m(t,E(re),Ke);if(It){for(const[Bt,gt]of Object.entries(o))t[Bt]=gt;Ye=It.call(t,re,Fe,H,pe,ve)}if(typeof((he=Ye)===null||he===void 0?void 0:he.then)=="function")throw new Cu("Async visitor not supported in sync mode",{visitor:t,visitFn:It});if(Ye===n)break;if(Ye===h){if(!Ke){pe.pop();continue}}else if(Ye!==void 0&&(ne.push([Fe,Ye]),!Ke)){if(!R(Ye)){pe.pop();continue}re=Ye}}var Ee;Ye===void 0&&xe&&ne.push([Fe,re]),!Ke&&(L={inArray:f,index:V,keys:Y,edits:ne,prev:L},f=Array.isArray(re),Y=f?re:(Ee=K[E(re)])!==null&&Ee!==void 0?Ee:[],V=-1,ne=[],H!==l&&H!==void 0&&ve.push(H),H=re)}while(L!==void 0);return ne.length!==0?ne[ne.length-1][1]:e};eb[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:o={},breakSymbol:n=pn,deleteNodeSymbol:l=null,skipVisitingNodeSymbol:h=!1,visitFnGetter:m=xf,nodeTypeGetter:E=Lg,nodePredicate:R=Iy,nodeCloneFn:B=X0,detectCycles:$=!0}={})=>{const K=r||{};let L,H,f=Array.isArray(e),Y=[e],V=-1,ne=[],re=e;const pe=[],ve=[];do{V+=1;const Ee=V===Y.length;let Ke;const Fe=Ee&&ne.length!==0;if(Ee){if(Ke=ve.length===0?void 0:pe.pop(),re=H,H=ve.pop(),Fe)if(f){re=re.slice();let Ye=0;for(const[It,Bt]of ne){const gt=It-Ye;Bt===l?(re.splice(gt,1),Ye+=1):re[gt]=Bt}}else{re=B(re);for(const[Ye,It]of ne)re[Ye]=It}V=L.index,Y=L.keys,ne=L.edits,f=L.inArray,L=L.prev}else if(H!==l&&H!==void 0){if(Ke=f?V:Y[V],re=H[Ke],re===l||re===void 0)continue;pe.push(Ke)}let xe;if(!Array.isArray(re)){if(!R(re))throw new Cu(`Invalid AST Node: ${String(re)}`,{node:re});if($&&ve.includes(re)){pe.pop();continue}const Ye=m(t,E(re),Ee);if(Ye){for(const[It,Bt]of Object.entries(o))t[It]=Bt;xe=await Ye.call(t,re,Ke,H,pe,ve)}if(xe===n)break;if(xe===h){if(!Ee){pe.pop();continue}}else if(xe!==void 0&&(ne.push([Ke,xe]),!Ee)){if(!R(xe)){pe.pop();continue}re=xe}}var he;xe===void 0&&Fe&&ne.push([Ke,re]),!Ee&&(L={inArray:f,index:V,keys:Y,edits:ne,prev:L},f=Array.isArray(re),Y=f?re:(he=K[E(re)])!==null&&he!==void 0?he:[],V=-1,ne=[],H!==l&&H!==void 0&&ve.push(H),H=re)}while(L!==void 0);return ne.length!==0?ne[ne.length-1][1]:e};const zy=class extends Cu{constructor(t,r){super(t,r);Io(this,"value");r!==void 0&&(this.value=r.value)}},Hx=class extends zy{},Vx=class extends zy{},To=(e,t={})=>{const{visited:r=new WeakMap}=t,o={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof Or.KeyValuePair){const{key:n,value:l}=e,h=as(n)?To(n,o):n,m=as(l)?To(l,o):l,E=new Or.KeyValuePair(h,m);return r.set(e,E),E}if(e instanceof Or.ot){const n=m=>To(m,o),l=[...e].map(n),h=new Or.ot(l);return r.set(e,h),h}if(e instanceof Or.G6){const n=m=>To(m,o),l=[...e].map(n),h=new Or.G6(l);return r.set(e,h),h}if(as(e)){const n=Us(e);if(r.set(e,n),e.content)if(as(e.content))n.content=To(e.content,o);else if(e.content instanceof Or.KeyValuePair)n.content=To(e.content,o);else if(Array.isArray(e.content)){const l=h=>To(h,o);n.content=e.content.map(l)}else n.content=e.content;else n.content=e.content;return n}throw new Hx("Value provided to cloneDeep function couldn't be cloned",{value:e})};To.safe=e=>{try{return To(e)}catch{return e}};const Ty=e=>{const{key:t,value:r}=e;return new Or.KeyValuePair(t,r)},Ry=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=To(e.meta)),e.attributes.length>0&&(t._attributes=To(e.attributes)),as(e.content)){const r=e.content;t.content=Ry(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof Or.KeyValuePair?t.content=Ty(e.content):t.content=e.content;return t},Us=e=>{if(e instanceof Or.KeyValuePair)return Ty(e);if(e instanceof Or.ot)return(t=>{const r=[...t];return new Or.ot(r)})(e);if(e instanceof Or.G6)return(t=>{const r=[...t];return new Or.G6(r)})(e);if(as(e))return Ry(e);throw new Vx("Value provided to cloneShallow function couldn't be cloned",{value:e})};Us.safe=e=>{try{return Us(e)}catch{return e}};const Ad=e=>zn(e)?"ObjectElement":dc(e)?"ArrayElement":Bi(e)?"MemberElement":hn(e)?"StringElement":Dg(e)?"BooleanElement":G0(e)?"NumberElement":Y0(e)?"NullElement":ky(e)?"LinkElement":xy(e)?"RefElement":void 0,Ny=e=>as(e)?Us(e):X0(e),Dy=Ai(Ad,wl),Cd={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]};class By{constructor({predicate:t=Q0,returnOnTrue:r,returnOnFalse:o}={}){Io(this,"result");Io(this,"predicate");Io(this,"returnOnTrue");Io(this,"returnOnFalse");this.result=[],this.predicate=t,this.returnOnTrue=r,this.returnOnFalse=o}enter(t){return this.predicate(t)?(this.result.push(t),this.returnOnTrue):this.returnOnFalse}}const Bs=(e,t,{keyMap:r=Cd,...o}={})=>eb(e,t,{keyMap:r,nodeTypeGetter:Ad,nodePredicate:Dy,nodeCloneFn:Ny,...o});Bs[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Cd,...o}={})=>eb[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Ad,nodePredicate:Dy,nodeCloneFn:Ny,...o});const My={toolboxCreator:Py,visitorOptions:{nodeTypeGetter:Ad,exposeEdits:!0}},Pd=(e,t,r={})=>{if(t.length===0)return e;const o=Xo(My,r),{toolboxCreator:n,visitorOptions:l}=o,h=n(),m=t.map(B=>B(h)),E=Ef(m.map(bu({},"visitor")),{...l});m.forEach(rn(["pre"],[]));const R=Bs(e,E,l);return m.forEach(rn(["post"],[])),R};Pd[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,r={})=>{if(t.length===0)return e;const o=Xo(My,r),{toolboxCreator:n,visitorOptions:l}=o,h=n(),m=t.map(K=>K(h)),E=Ef[Symbol.for("nodejs.util.promisify.custom")],R=Bs[Symbol.for("nodejs.util.promisify.custom")],B=E(m.map(bu({},"visitor")),{...l});await Promise.allSettled(m.map(rn(["pre"],[])));const $=await R(e,B,l);return await Promise.allSettled(m.map(rn(["post"],[]))),$};const Wx=(e,{Type:t,plugins:r=[]})=>{const o=new t(e);return as(e)&&(e.meta.length>0&&(o.meta=To(e.meta)),e.attributes.length>0&&(o.attributes=To(e.attributes))),Pd(o,r,{toolboxCreator:Py,visitorOptions:{nodeTypeGetter:Ad}})},Oc=e=>(t,r={})=>Wx(t,{...r,Type:e});Or.Sh.refract=Oc(Or.Sh),Or.wE.refract=Oc(Or.wE),Or.Om.refract=Oc(Or.Om),Or.bd.refract=Oc(Or.bd),Or.Os.refract=Oc(Or.Os),Or.kT.refract=Oc(Or.kT),Or.Ft.refract=Oc(Or.Ft),Or.sI.refract=Oc(Or.sI),c.refract=Oc(c),D.refract=Oc(D),le.refract=Oc(le),Ue.refract=Oc(Ue);const Sf=(e,t=new WeakMap)=>(Bi(e)?(t.set(e.key,e),Sf(e.key,t),t.set(e.value,e),Sf(e.value,t)):e.children.forEach(r=>{t.set(r,e),Sf(r,t)}),t),Jx=class{constructor({element:e}){Io(this,"element");Io(this,"edges");this.element=e}transclude(e,t){var r;if(e===this.element)return t;if(e===t)return this.element;this.edges=(r=this.edges)!==null&&r!==void 0?r:Sf(this.element);const o=this.edges.get(e);return pc(o)?void 0:(zn(o)?((n,l,h)=>{const m=h.get(n);zn(m)&&(m.content=m.map((E,R,B)=>B===n?(h.delete(n),h.set(l,m),l):B))})(e,t,this.edges):dc(o)?((n,l,h)=>{const m=h.get(n);dc(m)&&(m.content=m.map(E=>E===n?(h.delete(n),h.set(l,m),l):E))})(e,t,this.edges):Bi(o)&&((n,l,h)=>{const m=h.get(n);Bi(m)&&(m.key===n&&(m.key=l,h.delete(n),h.set(l,m)),m.value===n&&(m.value=l,h.delete(n),h.set(l,m)))})(e,t,this.edges),this.element)}},Gl=function(){return!0},Ly=e=>typeof(e==null?void 0:e.type)=="string"?e.type:Ad(e),Fy={EphemeralObject:["content"],EphemeralArray:["content"],...Cd},$y=(e,t,{keyMap:r=Fy,...o}={})=>Bs(e,t,{keyMap:r,nodeTypeGetter:Ly,nodePredicate:Gl,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...o});$y[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Fy,...r}={})=>Bs[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Ly,nodePredicate:Gl,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Gx=class{constructor(e){Io(this,"type","EphemeralArray");Io(this,"content",[]);Io(this,"reference");this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}},Yx=class{constructor(e){Io(this,"type","EphemeralObject");Io(this,"content",[]);Io(this,"reference");this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}};class Zx{constructor(){Io(this,"ObjectElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new Yx(t.content);return this.references.set(t,r),r}});Io(this,"EphemeralObject",{leave:t=>t.toObject()});Io(this,"MemberElement",{enter:t=>[t.key,t.value]});Io(this,"ArrayElement",{enter:t=>{if(this.references.has(t))return this.references.get(t).toReference();const r=new Gx(t.content);return this.references.set(t,r),r}});Io(this,"EphemeralArray",{leave:t=>t.toArray()});Io(this,"references",new WeakMap)}BooleanElement(t){return t.toValue()}NumberElement(t){return t.toValue()}StringElement(t){return t.toValue()}NullElement(){return null}RefElement(t,...r){var o;const n=r[3];return((o=n[n.length-1])===null||o===void 0?void 0:o.type)==="EphemeralObject"?Symbol.for("delete-node"):String(t.toValue())}LinkElement(t){return hn(t.href)?t.href.toValue():""}}const ro=e=>as(e)?hn(e)||G0(e)||Dg(e)||Y0(e)?e.toValue():$y(e,new Zx):e,Qx=Ai(yl(/~/g,"~0"),yl(/\//g,"~1"),encodeURIComponent),tb=class extends Cu{},Xx=class extends tb{constructor(t,r){super(t,r);Io(this,"tokens");r!==void 0&&(this.tokens=[...r.tokens])}},e2=e=>{try{return e.length===0?"":`/${e.map(Qx).join("/")}`}catch(t){throw new Xx("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var t2=Da(function(e,t){return Xn(lc(ad,0,wg("length",t)),function(){var r=arguments,o=this;return e.apply(o,Mc(function(n){return n.apply(o,r)},t))})});const r2=t2;function o2(e){return e}const Uy=Un(o2);var a2=ir(Xn(1,Ai(ys,$c("Number"))),isFinite),n2=Xn(1,a2),i2=ir(qc(Number.isFinite)?Xn(1,rs(Number.isFinite,Number)):n2,r2(Hi,[Math.floor,Uy])),s2=Xn(1,i2);const c2=qc(Number.isInteger)?Xn(1,rs(Number.isInteger,Number)):s2;var l2=function(){function e(t,r){this.xf=r,this.n=t,this.i=0}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=Ts,e.prototype["@@transducer/step"]=function(t,r){this.i+=1;var o=this.n===0?t:this.xf["@@transducer/step"](t,r);return this.n>=0&&this.i>=this.n?Aa(o):o},e}();function u2(e){return function(t){return new l2(e,t)}}const p2=Da(ic(["take"],u2,function(e,t){return fu(0,e<0?1/0:e,t)}));var d2=Da(function(e,t){return Hi(p2(e.length,t),e)});const qy=d2,Ky=Hi("");var g2=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=Ts,e.prototype["@@transducer/step"]=function(t,r){if(this.f){if(this.f(r))return t;this.f=null}return this.xf["@@transducer/step"](t,r)},e}();function h2(e){return function(t){return new g2(e,t)}}const f2=Da(ic(["dropWhile"],h2,function(e,t){for(var r=0,o=t.length;r<o&&e(t[r]);)r+=1;return fu(r,1/0,t)})),rb=Qp(function(e,t){return Ai(ed(""),f2(rd(e)),af(""))(t)}),m2=Ai(yl(/~1/g,"/"),yl(/~0/g,"~"),e=>{try{return decodeURIComponent(e)}catch{return e}}),ob=class extends tb{constructor(t,r){super(t,r);Io(this,"pointer");r!==void 0&&(this.pointer=r.pointer)}},Ac=e=>{const t=(r=>{const o=r.indexOf("#");return o!==-1?r.substring(o):"#"})(e);return rb("#",t)},b2=e=>{if(Ky(e))return[];if(!qy("/",e))throw new ob(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=Ai(ed("/"),yu(m2))(e);return mu(t)}catch(t){throw new ob(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}},Fg=class extends tb{constructor(t,r){super(t,r);Io(this,"pointer");Io(this,"tokens");Io(this,"failedToken");Io(this,"failedTokenPosition");Io(this,"element");r!==void 0&&(this.pointer=r.pointer,Array.isArray(r.tokens)&&(this.tokens=[...r.tokens]),this.failedToken=r.failedToken,this.failedTokenPosition=r.failedTokenPosition,this.element=r.element)}},Gc=(e,t)=>{let r;try{r=b2(e)}catch(o){throw new Fg(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:To(t),cause:o})}return r.reduce((o,n,l)=>{if(zn(o)){if(!o.hasKey(n))throw new Fg(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:l,element:To(o)});return o.get(n)}if(dc(o)){if(!(n in o.content)||!c2(Number(n)))throw new Fg(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:l,element:To(o)});return o.get(Number(n))}throw new Fg(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:l,element:To(o)})},t)};class v2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="callback"}}const $g=v2;class y2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="components"}get schemas(){return this.get("schemas")}set schemas(t){this.set("schemas",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get requestBodies(){return this.get("requestBodies")}set requestBodies(t){this.set("requestBodies",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(t){this.set("securitySchemes",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}}const Ug=y2;class w2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="contact"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}get email(){return this.get("email")}set email(t){this.set("email",t)}}const qg=w2;class k2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(t){this.set("propertyName",t)}get mapping(){return this.get("mapping")}set mapping(t){this.set("mapping",t)}}const _f=k2;class x2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(t){this.set("contentType",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(t){this.set("allowedReserved",t)}}const jf=x2;class E2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="example"}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get value(){return this.get("value")}set value(t){this.set("value",t)}get externalValue(){return this.get("externalValue")}set externalValue(t){this.set("externalValue",t)}}const Kg=E2;class S2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="externalDocumentation"}get description(){return this.get("description")}set description(t){this.set("description",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}}const Hg=S2;class Hy extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new Or.bd(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Or.bd(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}}Object.defineProperty(Hy.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Vg=Hy;class _2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get termsOfService(){return this.get("termsOfService")}set termsOfService(t){this.set("termsOfService",t)}get contact(){return this.get("contact")}set contact(t){this.set("contact",t)}get license(){return this.get("license")}set license(t){this.set("license",t)}get version(){return this.get("version")}set version(t){this.set("version",t)}}const Wg=_2;class j2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="license"}get name(){return this.get("name")}set name(t){this.set("name",t)}get url(){return this.get("url")}set url(t){this.set("url",t)}}const Jg=j2;class O2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(t){this.set("operationRef",t)}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get operation(){var t,r;return hn(this.operationRef)?(t=this.operationRef)===null||t===void 0?void 0:t.meta.get("operation"):hn(this.operationId)?(r=this.operationId)===null||r===void 0?void 0:r.meta.get("operation"):void 0}set operation(t){this.set("operation",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get server(){return this.get("server")}set server(t){this.set("server",t)}}const Gg=O2;class A2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="mediaType"}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get encoding(){return this.get("encoding")}set encoding(t){this.set("encoding",t)}}const Yg=A2;class C2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(t){this.set("authorizationUrl",t)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(t){this.set("tokenUrl",t)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(t){this.set("refreshUrl",t)}get scopes(){return this.get("scopes")}set scopes(t){this.set("scopes",t)}}const Of=C2;class P2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(t){this.set("implicit",t)}get password(){return this.get("password")}set password(t){this.set("password",t)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(t){this.set("clientCredentials",t)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(t){this.set("authorizationCode",t)}}const Af=P2;class I2 extends Or.Om{constructor(t,r,o){super(t,r,o),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Zg=I2;class z2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const Cf=z2;class T2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="operation"}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}set externalDocs(t){this.set("externalDocs",t)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(t){this.set("operationId",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}get requestBody(){return this.get("requestBody")}set requestBody(t){this.set("requestBody",t)}get responses(){return this.get("responses")}set responses(t){this.set("responses",t)}get callbacks(){return this.get("callbacks")}set callbacks(t){this.set("callbacks",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Or.bd(!1)}set deprecated(t){this.set("deprecated",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get servers(){return this.get("severs")}set servers(t){this.set("servers",t)}}const Qg=T2;class Vy extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="parameter"}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get required(){return this.hasKey("required")?this.get("required"):new Or.bd(!1)}set required(t){this.set("required",t)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new Or.bd(!1)}set deprecated(t){this.set("deprecated",t)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(t){this.set("allowEmptyValue",t)}get style(){return this.get("style")}set style(t){this.set("style",t)}get explode(){return this.get("explode")}set explode(t){this.set("explode",t)}get allowReserved(){return this.get("allowReserved")}set allowReserved(t){this.set("allowReserved",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}}Object.defineProperty(Vy.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Xg=Vy;class R2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get summary(){return this.get("summary")}set summary(t){this.set("summary",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get GET(){return this.get("get")}set GET(t){this.set("GET",t)}get PUT(){return this.get("put")}set PUT(t){this.set("PUT",t)}get POST(){return this.get("post")}set POST(t){this.set("POST",t)}get DELETE(){return this.get("delete")}set DELETE(t){this.set("DELETE",t)}get OPTIONS(){return this.get("options")}set OPTIONS(t){this.set("OPTIONS",t)}get HEAD(){return this.get("head")}set HEAD(t){this.set("HEAD",t)}get PATCH(){return this.get("patch")}set PATCH(t){this.set("PATCH",t)}get TRACE(){return this.get("trace")}set TRACE(t){this.set("TRACE",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get parameters(){return this.get("parameters")}set parameters(t){this.set("parameters",t)}}const eh=R2;class N2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="paths"}}const th=N2;class D2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}const rh=D2;class B2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="requestBody"}get description(){return this.get("description")}set description(t){this.set("description",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get required(){return this.hasKey("required")?this.get("required"):new Or.bd(!1)}set required(t){this.set("required",t)}}const oh=B2;class M2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="response"}get description(){return this.get("description")}set description(t){this.set("description",t)}get headers(){return this.get("headers")}set headers(t){this.set("headers",t)}get contentProp(){return this.get("content")}set contentProp(t){this.set("content",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}}const ah=M2;class L2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="responses"}get default(){return this.get("default")}set default(t){this.set("default",t)}}const nh=L2,Es=class extends Gi{};class F2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(t){this.set("id",t)}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get additionalItems(){return this.get("additionalItems")}set additionalItems(t){this.set("additionalItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get dependencies(){return this.get("dependencies")}set dependencies(t){this.set("dependencies",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get definitions(){return this.get("definitions")}set definitions(t){this.set("definitions",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get base(){return this.get("base")}set base(t){this.set("base",t)}get links(){return this.get("links")}set links(t){this.set("links",t)}get media(){return this.get("media")}set media(t){this.set("media",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}}const ih=F2;class $2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}}const Pf=$2;class U2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(t){this.set("binaryEncoding",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}}const If=U2;class q2 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="linkDescription"}get href(){return this.get("href")}set href(t){this.set("href",t)}get rel(){return this.get("rel")}set rel(t){this.set("rel",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get targetSchema(){return this.get("targetSchema")}set targetSchema(t){this.set("targetSchema",t)}get mediaType(){return this.get("mediaType")}set mediaType(t){this.set("mediaType",t)}get method(){return this.get("method")}set method(t){this.set("method",t)}get encType(){return this.get("encType")}set encType(t){this.set("encType",t)}get schema(){return this.get("schema")}set schema(t){this.set("schema",t)}}const zf=q2;var K2=Da(function(e,t){return Dl(function(r,o){return r[o]=e(t[o],o,t),r},{},fl(t))});const H2=K2,Tf=Un(function(e){return e==null}),V2=Da(function(e,t){if(e.length===0||Tf(t))return!1;for(var r=t,o=0;o<e.length;){if(Tf(r)||!vs(e[o],r))return!1;r=r[e[o]],o+=1}return!0});var W2=Da(function(e,t){return V2([e],t)});const Wy=W2,J2=Ri(function(e,t,r){return e(bl(t,r))}),Rf=(e,t)=>{const r=Ml(e,t);return H2(o=>{if(kf(o)&&Wy("$ref",o)&&J2(wl,"$ref",o)){const n=vi(["$ref"],o),l=rb("#/",n);return vi(l.split("/"),r)}return kf(o)?Rf(o,r):o},e)};var fn=st(70335);const Nf=e=>{const t=e.meta.length>0?To(e.meta):void 0,r=e.attributes.length>0?To(e.attributes):void 0;return new e.constructor(void 0,t,r)},Df=(e,t)=>t.clone&&t.isMergeableElement(e)?El(Nf(e),e,t):e,G2=e=>typeof e.customMetaMerge!="function"?t=>To(t):e.customMetaMerge,Y2=e=>typeof e.customAttributesMerge!="function"?t=>To(t):e.customAttributesMerge,Bf={clone:!0,isMergeableElement:e=>zn(e)||dc(e),arrayElementMerge:(e,t,r)=>e.concat(t)["fantasy-land/map"](o=>Df(o,r)),objectElementMerge:(e,t,r)=>{const o=zn(e)?Nf(e):Nf(t);return zn(e)&&e.forEach((n,l,h)=>{const m=Us(h);m.value=Df(n,r),o.content.push(m)}),t.forEach((n,l,h)=>{const m=ro(l);let E;if(zn(e)&&e.hasKey(m)&&r.isMergeableElement(n)){const R=e.get(m);E=Us(h),E.value=((B,$)=>{if(typeof $.customMerge!="function")return El;const K=$.customMerge(B,$);return typeof K=="function"?K:El})(l,r)(R,n)}else E=Us(h),E.value=Df(n,r);o.remove(m),o.content.push(E)}),o},customMerge:void 0,customMetaMerge:void 0,customAttributesMerge:void 0};function El(e,t,r){var o,n,l;const h={...Bf,...r};h.isMergeableElement=(o=h.isMergeableElement)!==null&&o!==void 0?o:Bf.isMergeableElement,h.arrayElementMerge=(n=h.arrayElementMerge)!==null&&n!==void 0?n:Bf.arrayElementMerge,h.objectElementMerge=(l=h.objectElementMerge)!==null&&l!==void 0?l:Bf.objectElementMerge;const m=dc(t);if(m!==dc(e))return Df(t,h);const E=m&&typeof h.arrayElementMerge=="function"?h.arrayElementMerge(e,t,h):h.objectElementMerge(e,t,h);return E.meta=G2(h)(e.meta,t.meta),E.attributes=Y2(h)(e.attributes,t.attributes),E}El.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return e.length===0?new Or.Sh:e.reduce((r,o)=>El(r,o,t),Nf(e[0]))};const Z2=fn({props:{element:null},methods:{copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=El(t.meta,e.meta),Bg(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=El(t.attributes,e.attributes))}}}),Jy=Z2,Ka=fn(Jy,{methods:{enter(e){return this.element=To(e),pn}}}),Gy=_a(wu()),Yy=Da(function(e,t){for(var r={},o=0;o<e.length;)e[o]in t&&(r[e[o]]=t[e[o]]),o+=1;return r}),Q2=fn(Jy,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Yy(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=vi(["visitors",...e,"fixedFields"],this.specObj);return typeof t=="object"&&t!==null?Object.keys(t):[]},retrieveVisitor(e){return Vu(qc,["visitors",...e],this.specObj)?vi(["visitors",...e],this.specObj):vi(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return new(this.retrieveVisitor(e))({...r,...t})},toRefractedElement(e,t,r={}){const o=this.retrieveVisitorInstance(e,r),n=Object.getPrototypeOf(o);return pc(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===n?To(t):(Bs(t,o,r),o.element)}}}),Pu=Q2,sh=fn(Pu,{props:{specPath:Gy,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach((o,n,l)=>{if(hn(n)&&r.includes(ro(n))&&!this.ignoredFields.includes(ro(n))){const h=this.toRefractedElement([...t,"fixedFields",ro(n)],o),m=new Or.Pr(To(n),h);this.copyMetaAndAttributes(l,m),m.classes.push("fixed-field"),this.element.content.push(m)}else this.ignoredFields.includes(ro(n))||this.element.content.push(To(l))}),this.copyMetaAndAttributes(e,this.element),pn}}}),X2=fn(sh,Ka,{props:{specPath:_a(["document","objects","JSONSchema"])},init(){this.element=new ih}}),e4=Ka,t4=Ka,r4=Ka,o4=Ka,a4=Ka,n4=Ka,i4=Ka,s4=Ka,c4=Ka,l4=Ka,Yl=fn({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Sl=e=>zn(e)&&e.hasKey("$ref"),u4=fn(Pu,Yl,Ka,{methods:{ObjectElement(e){const t=Sl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),pn},ArrayElement(e){return this.element=new Or.wE,this.element.classes.push("json-schema-items"),e.forEach(t=>{const r=Sl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],o=this.toRefractedElement(r,t);this.element.push(o)}),this.copyMetaAndAttributes(e,this.element),pn}}}),p4=Ka,d4=Ka,g4=Ka,h4=Ka,f4=Ka,m4=fn(Ka,{methods:{ArrayElement(e){return this.element=To(e),this.element.classes.push("json-schema-required"),pn}}}),b4=Un(function(e){return Xn(lc(ad,0,wg("length",e)),function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0})}),v4=Da(function(e,t){return e||t}),y4=vl(Xn(1,ir(jy,Da(function(e,t){return ep(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:od(v4)(e,t)})(Oy,qc)))),Zy=vl(po),ab=b4([wl,y4,Zy]),w4=fn(Pu,{props:{fieldPatternPredicate:Q0,specPath:Gy,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach((t,r,o)=>{if(!this.ignoredFields.includes(ro(r))&&this.fieldPatternPredicate(ro(r))){const n=this.specPath(t),l=this.toRefractedElement(n,t),h=new Or.Pr(To(r),l);this.copyMetaAndAttributes(o,h),h.classes.push("patterned-field"),this.element.content.push(h)}else this.ignoredFields.includes(ro(r))||this.element.content.push(To(o))}),this.copyMetaAndAttributes(e,this.element),pn}}}),Mf=fn(w4,{props:{fieldPatternPredicate:ab}}),k4=fn(Mf,Yl,Ka,{props:{specPath:e=>Sl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Or.Sh,this.element.classes.push("json-schema-properties")}}),x4=fn(Mf,Yl,Ka,{props:{specPath:e=>Sl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Or.Sh,this.element.classes.push("json-schema-patternProperties")}}),E4=fn(Mf,Yl,Ka,{props:{specPath:e=>Sl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Or.Sh,this.element.classes.push("json-schema-dependencies")}}),S4=fn(Ka,{methods:{ArrayElement(e){return this.element=To(e),this.element.classes.push("json-schema-enum"),pn}}}),_4=fn(Ka,{methods:{StringElement(e){return this.element=To(e),this.element.classes.push("json-schema-type"),pn},ArrayElement(e){return this.element=To(e),this.element.classes.push("json-schema-type"),pn}}}),j4=fn(Pu,Yl,Ka,{init(){this.element=new Or.wE,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach(t=>{const r=Sl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],o=this.toRefractedElement(r,t);this.element.push(o)}),this.copyMetaAndAttributes(e,this.element),pn}}}),O4=fn(Pu,Yl,Ka,{init(){this.element=new Or.wE,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach(t=>{const r=Sl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],o=this.toRefractedElement(r,t);this.element.push(o)}),this.copyMetaAndAttributes(e,this.element),pn}}}),A4=fn(Pu,Yl,Ka,{init(){this.element=new Or.wE,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach(t=>{const r=Sl(t)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],o=this.toRefractedElement(r,t);this.element.push(o)}),this.copyMetaAndAttributes(e,this.element),pn}}}),C4=fn(Mf,Yl,Ka,{props:{specPath:e=>Sl(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new Or.Sh,this.element.classes.push("json-schema-definitions")}}),P4=Ka,I4=Ka,z4=Ka,T4=Ka,R4=Ka,N4=fn(Pu,Yl,Ka,{init(){this.element=new Or.wE,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach(t=>{const r=this.toRefractedElement(["document","objects","LinkDescription"],t);this.element.push(r)}),this.copyMetaAndAttributes(e,this.element),pn}}}),D4=Ka,B4=fn(sh,Ka,{props:{specPath:_a(["document","objects","JSONReference"])},init(){this.element=new Pf},methods:{ObjectElement(e){const t=sh.compose.methods.ObjectElement.call(this,e);return hn(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),M4=fn(Ka,{methods:{StringElement(e){return this.element=To(e),this.element.classes.push("reference-value"),pn}}}),nb=Ri(function(e,t,r){return Xn(Math.max(e.length,t.length,r.length),function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)})}),L4=Un(function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}});var F4=Da(function(e,t){return Array.prototype.slice.call(t,0).sort(e)});const $4=F4,U4=Hu(0),q4=Un(Aa),K4=vl(Tf),H4=ir(qa,Zy);function V4(e){return function(t){if(Array.isArray(t))return ib(t)}(e)||function(t){if(typeof Symbol<"u"&&t[Symbol.iterator]!=null||t["@@iterator"]!=null)return Array.from(t)}(e)||function(t,r){if(t){if(typeof t=="string")return ib(t,r);var o=Object.prototype.toString.call(t).slice(8,-1);if(o==="Object"&&t.constructor&&(o=t.constructor.name),o==="Map"||o==="Set")return Array.from(t);if(o==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return ib(t,r)}}(e)||function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
179
|
-
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ib(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var W4=Ai($4(L4(function(e,t){return e.length>t.length})),U4,bl("length")),J4=Qp(function(e,t,r){var o=r.apply(void 0,V4(e));return K4(o)?q4(o):t});const Qy=nb(H4,function(e){var t=W4(e);return Xn(t,function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return lc(J4(o),void 0,e)})},wu),G4=fn(Pu,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map(({predicate:o,specPath:n})=>nb(o,_a(n),wu)),r=Qy(t)(e);return this.element=this.toRefractedElement(r,e),pn}}}),Id=fn(G4,{props:{alternator:[{predicate:Sl,specPath:["document","objects","JSONReference"]},{predicate:Gl,specPath:["document","objects","JSONSchema"]}]}}),Zl={visitors:{value:Ka,JSONSchemaOrJSONReferenceVisitor:Id,document:{objects:{JSONSchema:{$visitor:X2,fixedFields:{id:e4,$schema:t4,multipleOf:r4,maximum:o4,exclusiveMaximum:a4,minimum:n4,exclusiveMinimum:i4,maxLength:s4,minLength:c4,pattern:l4,additionalItems:Id,items:u4,maxItems:p4,minItems:d4,uniqueItems:g4,maxProperties:h4,minProperties:f4,required:m4,properties:k4,additionalProperties:Id,patternProperties:x4,dependencies:E4,enum:S4,type:_4,allOf:j4,anyOf:O4,oneOf:A4,not:Id,definitions:C4,title:P4,description:I4,default:z4,format:T4,base:R4,links:N4,media:{$ref:"#/visitors/document/objects/Media"},readOnly:D4}},JSONReference:{$visitor:B4,fixedFields:{$ref:M4}},Media:{$visitor:fn(sh,Ka,{props:{specPath:_a(["document","objects","Media"])},init(){this.element=new If}}),fixedFields:{binaryEncoding:Ka,type:Ka}},LinkDescription:{$visitor:fn(sh,Ka,{props:{specPath:_a(["document","objects","LinkDescription"])},init(){this.element=new zf}}),fixedFields:{href:Ka,rel:Ka,title:Ka,targetSchema:Id,mediaType:Ka,method:Ka,encType:Ka,schema:Id}}}}}},Y4=e=>{if(as(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Z4={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Cd},Q4=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ih||e(o)&&t("JSONSchemaDraft4",o)&&r("object",o)),X4=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Pf||e(o)&&t("JSONReference",o)&&r("object",o)),e5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof If||e(o)&&t("media",o)&&r("object",o)),t5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof zf||e(o)&&t("linkDescription",o)&&r("object",o)),r5={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ih),t.register("jSONReference",Pf),t.register("media",If),t.register("linkDescription",zf),t}},o5=r5,a5=()=>{const e=Mg(o5);return{predicates:{...k,isStringElement:hn},namespace:e}},n5=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:o=Zl}={})=>{const n=(0,Or.e)(e),l=Rf(o),h=rn(t,[],l);return Bs(n,h,{state:{specObj:l}}),Pd(h.element,r,{toolboxCreator:a5,visitorOptions:{keyMap:Z4,nodeTypeGetter:Y4}})},Lf=e=>(t,r={})=>n5(t,{specPath:e,...r});ih.refract=Lf(["visitors","document","objects","JSONSchema","$visitor"]),Pf.refract=Lf(["visitors","document","objects","JSONReference","$visitor"]),If.refract=Lf(["visitors","document","objects","Media","$visitor"]),zf.refract=Lf(["visitors","document","objects","LinkDescription","$visitor"]);const Ff=class extends ih{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Es("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Es("idProp setter in Schema class is not not supported.")}get $schema(){throw new Es("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Es("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Es("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Es("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Es("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Es("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Es("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Es("definitions setter in Schema class is not not supported.")}get base(){throw new Es("base getter in Schema class is not not supported.")}set base(e){throw new Es("base setter in Schema class is not not supported.")}get links(){throw new Es("links getter in Schema class is not not supported.")}set links(e){throw new Es("links setter in Schema class is not not supported.")}get media(){throw new Es("media getter in Schema class is not not supported.")}set media(e){throw new Es("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class i5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="securityRequirement"}}const ch=i5;class s5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}}const lh=s5;class c5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}}const uh=c5;class l5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const ph=l5;class u5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const $f=u5;class p5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}}const Uf=p5,Xy=(e,t,r=[])=>{const o=Object.getOwnPropertyDescriptors(t);for(let n of r)delete o[n];Object.defineProperties(e,o)},dh=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:dh(r,[...t,r])},ew=(e,t,r=[])=>{var o;const n=(o=((...m)=>{if(m.length===0)return;let E;const R=m.map(B=>dh(B));for(;R.every(B=>B.length>0);){const B=R.map(K=>K.pop()),$=B[0];if(!B.every(K=>K===$))break;E=$}return E})(...e))!==null&&o!==void 0?o:Object.prototype,l=Object.create(n),h=dh(n);for(let m of e){let E=dh(m);for(let R=E.length-1;R>=0;R--){let B=E[R];h.indexOf(B)===-1&&(Xy(l,B,["constructor",...r]),h.push(B))}}return l.constructor=t,l},sb=e=>e.filter((t,r)=>e.indexOf(t)==r),tw=new WeakMap,d5=e=>tw.get(e),rw=(e,t)=>{var r,o;const n=sb([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),l={};for(let h of n)l[h]=sb([...(r=e==null?void 0:e[h])!==null&&r!==void 0?r:[],...(o=t==null?void 0:t[h])!==null&&o!==void 0?o:[]]);return l},ow=(e,t)=>{var r,o,n,l;return{property:rw((r=e==null?void 0:e.property)!==null&&r!==void 0?r:{},(o=t==null?void 0:t.property)!==null&&o!==void 0?o:{}),method:rw((n=e==null?void 0:e.method)!==null&&n!==void 0?n:{},(l=t==null?void 0:t.method)!==null&&l!==void 0?l:{})}},g5=(e,t)=>{var r,o,n,l,h,m;return{class:sb([...(r=e==null?void 0:e.class)!==null&&r!==void 0?r:[],...(o=t==null?void 0:t.class)!==null&&o!==void 0?o:[]]),static:ow((n=e==null?void 0:e.static)!==null&&n!==void 0?n:{},(l=t==null?void 0:t.static)!==null&&l!==void 0?l:{}),instance:ow((h=e==null?void 0:e.instance)!==null&&h!==void 0?h:{},(m=t==null?void 0:t.instance)!==null&&m!==void 0?m:{})}},h5=new Map,f5=(...e)=>{const t=((...r)=>{var o;const n=new Set,l=new Set([...r]);for(;l.size>0;)for(let h of l){const m=[...dh(h.prototype).map(E=>E.constructor),...(o=d5(h))!==null&&o!==void 0?o:[]].filter(E=>!n.has(E));for(let E of m)l.add(E);n.add(h),l.delete(h)}return[...n]})(...e).map(r=>h5.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,o)=>g5(r,o))};function Wo(...e){var t,r,o;const n=e.map(R=>R.prototype);function l(...R){for(const B of e)Xy(this,new B(...R))}l.prototype=ew(n,l),Object.setPrototypeOf(l,ew(e,null,["prototype"]));let h=l;{const R=f5(...e);for(let B of(t=R==null?void 0:R.class)!==null&&t!==void 0?t:[]){const $=B(h);$&&(h=$)}aw((r=R==null?void 0:R.static)!==null&&r!==void 0?r:{},h),aw((o=R==null?void 0:R.instance)!==null&&o!==void 0?o:{},h.prototype)}var m,E;return m=h,E=e,tw.set(m,E),h}const aw=(e,t)=>{const r=e.property,o=e.method;if(r)for(let n in r)for(let l of r[n])l(t,n);if(o)for(let n in o)for(let l of o[n])l(t,n,Object.getOwnPropertyDescriptor(t,n))},nw=class{constructor(e={}){Io(this,"element");Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=El(t.meta,e.meta),Bg(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=El(t.attributes,e.attributes))}},_o=class extends nw{enter(e){return this.element=To(e),pn}},qs=class extends nw{constructor({specObj:t,passingOptionsNames:r,openApiGenericElement:o,openApiSemanticElement:n,...l}){super({...l});Io(this,"specObj");Io(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);Io(this,"openApiGenericElement");Io(this,"openApiSemanticElement");this.specObj=t,this.openApiGenericElement=o,this.openApiSemanticElement=n,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return Yy(this.passingOptionsNames,this)}retrieveFixedFields(t){const r=vi(["visitors",...t,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(t){return Vu(qc,["visitors",...t],this.specObj)?vi(["visitors",...t],this.specObj):vi(["visitors",...t,"$visitor"],this.specObj)}retrieveVisitorInstance(t,r={}){const o=this.retrievePassingOptions();return new(this.retrieveVisitor(t))({...o,...r})}toRefractedElement(t,r,o={}){const n=this.retrieveVisitorInstance(t,o);return n instanceof _o&&(n==null?void 0:n.constructor)===_o?To(r):(Bs(r,n,o),n.element)}},ui=e=>zn(e)&&e.hasKey("$ref"),m5=zn,b5=zn,iw=e=>hn(e.key)&&qy("x-",ro(e.key)),on=class extends qs{constructor({specPath:t,ignoredFields:r,canSupportSpecificationExtensions:o,specificationExtensionPredicate:n,...l}){super({...l});Io(this,"specPath");Io(this,"ignoredFields");Io(this,"canSupportSpecificationExtensions",!0);Io(this,"specificationExtensionPredicate",iw);this.specPath=t,this.ignoredFields=r||[],typeof o=="boolean"&&(this.canSupportSpecificationExtensions=o),typeof n=="function"&&(this.specificationExtensionPredicate=n)}ObjectElement(t){const r=this.specPath(t),o=this.retrieveFixedFields(r);return t.forEach((n,l,h)=>{if(hn(l)&&o.includes(ro(l))&&!this.ignoredFields.includes(ro(l))){const m=this.toRefractedElement([...r,"fixedFields",ro(l)],n),E=new Or.Pr(To(l),m);this.copyMetaAndAttributes(h,E),E.classes.push("fixed-field"),this.element.content.push(E)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(h)){const m=this.toRefractedElement(["document","extension"],h);this.element.content.push(m)}else this.ignoredFields.includes(ro(l))||this.element.content.push(To(h))}),this.copyMetaAndAttributes(t,this.element),pn}};class v5 extends Wo(on,_o){constructor(t){super(t),this.element=new Cf,this.specPath=_a(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return on.prototype.ObjectElement.call(this,t)}}const y5=v5;class w5 extends Wo(qs,_o){StringElement(t){const r=new Zg(ro(t));return this.copyMetaAndAttributes(t,r),this.element=r,pn}}const k5=w5,x5=class extends qs{MemberElement(e){return this.element=To(e),this.element.classes.push("specification-extension"),pn}};class E5 extends Wo(on,_o){constructor(t){super(t),this.element=new Wg,this.specPath=_a(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const S5=E5,_5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class j5 extends Wo(on,_o){constructor(t){super(t),this.element=new qg,this.specPath=_a(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const O5=j5;class A5 extends Wo(on,_o){constructor(t){super(t),this.element=new Jg,this.specPath=_a(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const C5=A5;class P5 extends Wo(on,_o){constructor(t){super(t),this.element=new Gg,this.specPath=_a(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return(hn(this.element.operationId)||hn(this.element.operationRef))&&this.element.classes.push("reference-element"),r}}const I5=P5,z5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},T5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},zd=class extends qs{constructor({specPath:t,ignoredFields:r,fieldPatternPredicate:o,canSupportSpecificationExtensions:n,specificationExtensionPredicate:l,...h}){super({...h});Io(this,"specPath");Io(this,"ignoredFields");Io(this,"fieldPatternPredicate",Q0);Io(this,"canSupportSpecificationExtensions",!1);Io(this,"specificationExtensionPredicate",iw);this.specPath=t,this.ignoredFields=r||[],typeof o=="function"&&(this.fieldPatternPredicate=o),typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof l=="function"&&(this.specificationExtensionPredicate=l)}ObjectElement(t){return t.forEach((r,o,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const l=this.toRefractedElement(["document","extension"],n);this.element.content.push(l)}else if(!this.ignoredFields.includes(ro(o))&&this.fieldPatternPredicate(ro(o))){const l=this.specPath(r),h=this.toRefractedElement(l,r),m=new Or.Pr(To(o),h);this.copyMetaAndAttributes(n,m),m.classes.push("patterned-field"),this.element.content.push(m)}else this.ignoredFields.includes(ro(o))||this.element.content.push(To(n))}),this.copyMetaAndAttributes(t,this.element),pn}},Wa=class extends zd{constructor(e){super(e),this.fieldPatternPredicate=ab}},Nm=class Nm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Nm.primaryClass)}};Io(Nm,"primaryClass","link-parameters");let cb=Nm;const R5=cb;class N5 extends Wo(Wa,_o){constructor(t){super(t),this.element=new R5,this.specPath=_a(["value"])}}const D5=N5;class B5 extends Wo(on,_o){constructor(t){super(t),this.element=new uh,this.specPath=_a(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const M5=B5,L5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}},Dm=class Dm extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(Dm.primaryClass)}};Io(Dm,"primaryClass","servers");let lb=Dm;const ub=lb;class F5 extends Wo(qs,_o){constructor(t){super(t),this.element=new ub}ArrayElement(t){return t.forEach(r=>{const o=m5(r)?["document","objects","Server"]:["value"],n=this.toRefractedElement(o,r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const pb=F5;class $5 extends Wo(on,_o){constructor(t){super(t),this.element=new ph,this.specPath=_a(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const U5=$5,Bm=class Bm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Bm.primaryClass)}};Io(Bm,"primaryClass","server-variables");let db=Bm;const q5=db;class K5 extends Wo(Wa,_o){constructor(t){super(t),this.element=new q5,this.specPath=_a(["document","objects","ServerVariable"])}}const H5=K5;class V5 extends Wo(on,_o){constructor(t){super(t),this.element=new Yg,this.specPath=_a(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const W5=V5,_l=class extends qs{constructor({alternator:t,...r}){super({...r});Io(this,"alternator");this.alternator=t||[]}enter(t){const r=this.alternator.map(({predicate:n,specPath:l})=>nb(n,_a(l),wu)),o=Qy(r)(t);return this.element=this.toRefractedElement(o,t),pn}},J5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof $g||e(o)&&t("callback",o)&&r("object",o)),G5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ug||e(o)&&t("components",o)&&r("object",o)),Y5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof qg||e(o)&&t("contact",o)&&r("object",o)),Z5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Kg||e(o)&&t("example",o)&&r("object",o)),Q5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Hg||e(o)&&t("externalDocumentation",o)&&r("object",o)),Td=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Vg||e(o)&&t("header",o)&&r("object",o)),X5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Wg||e(o)&&t("info",o)&&r("object",o)),e6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Jg||e(o)&&t("license",o)&&r("object",o)),t6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Gg||e(o)&&t("link",o)&&r("object",o)),r6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Zg||e(o)&&t("openapi",o)&&r("string",o)),o6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:o})=>n=>n instanceof Cf||e(n)&&t("openApi3_0",n)&&r("object",n)&&o("api",n)),sw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Qg||e(o)&&t("operation",o)&&r("object",o)),a6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Xg||e(o)&&t("parameter",o)&&r("object",o)),gb=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof eh||e(o)&&t("pathItem",o)&&r("object",o)),n6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof th||e(o)&&t("paths",o)&&r("object",o)),ai=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof rh||e(o)&&t("reference",o)&&r("object",o)),i6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof oh||e(o)&&t("requestBody",o)&&r("object",o)),qf=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ah||e(o)&&t("response",o)&&r("object",o)),s6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof nh||e(o)&&t("responses",o)&&r("object",o)),c6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ff||e(o)&&t("schema",o)&&r("object",o)),l6=e=>Dg(e)&&e.classes.includes("boolean-json-schema"),u6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ch||e(o)&&t("securityRequirement",o)&&r("object",o)),p6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof lh||e(o)&&t("securityScheme",o)&&r("object",o)),d6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof uh||e(o)&&t("server",o)&&r("object",o)),g6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ph||e(o)&&t("serverVariable",o)&&r("object",o)),Kf=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Yg||e(o)&&t("mediaType",o)&&r("object",o)),cw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:o})=>n=>n instanceof ub||e(n)&&t("array",n)&&r("array",n)&&o("servers",n));class h6 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const f6=h6;class m6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("examples"),this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","example")}),r}}const hb=m6,Mm=class Mm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Mm.primaryClass),this.classes.push("examples")}};Io(Mm,"primaryClass","media-type-examples");let fb=Mm;const b6=fb,v6=class extends hb{constructor(e){super(e),this.element=new b6}},Lm=class Lm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Lm.primaryClass)}};Io(Lm,"primaryClass","media-type-encoding");let mb=Lm;const y6=mb;class w6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new y6,this.specPath=_a(["document","objects","Encoding"])}}const k6=w6;class x6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new ch,this.specPath=_a(["value"])}}const E6=x6,Fm=class Fm extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(Fm.primaryClass)}};Io(Fm,"primaryClass","security");let bb=Fm;const S6=bb;class _6 extends Wo(qs,_o){constructor(t){super(t),this.element=new S6}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(o)}else this.element.push(To(r))}),this.copyMetaAndAttributes(t,this.element),pn}}const j6=_6;class O6 extends Wo(on,_o){constructor(t){super(t),this.element=new Ug,this.specPath=_a(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const A6=O6;class C6 extends Wo(on,_o){constructor(t){super(t),this.element=new $f,this.specPath=_a(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const P6=C6;class I6 extends Wo(on,_o){constructor(t){super(t),this.element=new rh,this.specPath=_a(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return hn(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const z6=I6,T6=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class R6 extends Wo(on,_o){constructor(t){super(t),this.element=new Xg,this.specPath=_a(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach((o,n)=>{o.setMetaProperty("media-type",ro(n))}),r}}const N6=R6;class D6 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const B6=D6;class M6 extends Wo(on,_o){constructor(t){super(t),this.element=new Vg,this.specPath=_a(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const L6=M6;class F6 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const $6=F6,$m=class $m extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push($m.primaryClass),this.classes.push("examples")}};Io($m,"primaryClass","header-examples");let vb=$m;const U6=vb,q6=class extends hb{constructor(e){super(e),this.element=new U6}};class K6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("content"),this.specPath=_a(["document","objects","MediaType"])}}const Hf=K6,Um=class Um extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Um.primaryClass),this.classes.push("content")}};Io(Um,"primaryClass","header-content");let yb=Um;const H6=yb,V6=class extends Hf{constructor(e){super(e),this.element=new H6}};class W6 extends Wo(on,_o){constructor(t){super(t),this.element=new Ff,this.specPath=_a(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const J6=W6,{allOf:lw}=Zl.visitors.document.objects.JSONSchema.fixedFields,G6=lw.compose({methods:{ArrayElement(e){const t=lw.compose.methods.ArrayElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{anyOf:uw}=Zl.visitors.document.objects.JSONSchema.fixedFields,Y6=uw.compose({methods:{ArrayElement(e){const t=uw.compose.methods.ArrayElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{oneOf:pw}=Zl.visitors.document.objects.JSONSchema.fixedFields,Z6=pw.compose({methods:{ArrayElement(e){const t=pw.compose.methods.ArrayElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{items:dw}=Zl.visitors.document.objects.JSONSchema.fixedFields,Q6=dw.compose({methods:{ObjectElement(e){const t=dw.compose.methods.ObjectElement.call(this,e);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=To(e),pn}}}),{properties:gw}=Zl.visitors.document.objects.JSONSchema.fixedFields,X6=gw.compose({methods:{ObjectElement(e){const t=gw.compose.methods.ObjectElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{type:e3}=Zl.visitors.document.objects.JSONSchema.fixedFields,t3=e3.compose({methods:{ArrayElement(e){return this.element=To(e),pn}}}),{JSONSchemaOrJSONReferenceVisitor:hw}=Zl.visitors,fw=hw.compose({methods:{ObjectElement(e){const t=hw.compose.methods.enter.call(this,e);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class r3 extends Wo(on,_o){constructor(t){super(t),this.element=new _f,this.specPath=_a(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const o3=r3,qm=class qm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(qm.primaryClass)}};Io(qm,"primaryClass","discriminator-mapping");let wb=qm;const a3=wb;class n3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new a3,this.specPath=_a(["value"])}}const i3=n3;class s3 extends Wo(on,_o){constructor(t){super(t),this.element=new Uf,this.specPath=_a(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const c3=s3,Km=class Km extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Km.primaryClass),this.classes.push("examples")}};Io(Km,"primaryClass","parameter-examples");let kb=Km;const l3=kb,u3=class extends hb{constructor(e){super(e),this.element=new l3}},Hm=class Hm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Hm.primaryClass),this.classes.push("content")}};Io(Hm,"primaryClass","parameter-content");let xb=Hm;const p3=xb,d3=class extends Hf{constructor(e){super(e),this.element=new p3}},Vm=class Vm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Vm.primaryClass)}};Io(Vm,"primaryClass","components-schemas");let Eb=Vm;const mw=Eb;class g3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new mw,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","schema")}),r}}const h3=g3,Wm=class Wm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Wm.primaryClass)}};Io(Wm,"primaryClass","components-responses");let Sb=Wm;const f3=Sb;class m3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new f3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","response")}),this.element.filter(qf).forEach((o,n)=>{o.setMetaProperty("http-status-code",ro(n))}),r}}const b3=m3,Jm=class Jm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Jm.primaryClass),this.classes.push("parameters")}};Io(Jm,"primaryClass","components-parameters");let _b=Jm;const v3=_b;class y3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new v3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","parameter")}),r}}const w3=y3,Gm=class Gm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Gm.primaryClass),this.classes.push("examples")}};Io(Gm,"primaryClass","components-examples");let jb=Gm;const k3=jb;class x3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new k3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","example")}),r}}const E3=x3,Ym=class Ym extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Ym.primaryClass)}};Io(Ym,"primaryClass","components-request-bodies");let Ob=Ym;const S3=Ob;class _3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new S3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","requestBody")}),r}}const j3=_3,Zm=class Zm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Zm.primaryClass)}};Io(Zm,"primaryClass","components-headers");let Ab=Zm;const O3=Ab;class A3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new O3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","header")}),this.element.filter(Td).forEach((o,n)=>{o.setMetaProperty("header-name",ro(n))}),r}}const C3=A3,Qm=class Qm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Qm.primaryClass)}};Io(Qm,"primaryClass","components-security-schemes");let Cb=Qm;const P3=Cb;class I3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new P3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","securityScheme")}),r}}const z3=I3,Xm=class Xm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Xm.primaryClass)}};Io(Xm,"primaryClass","components-links");let Pb=Xm;const T3=Pb;class R3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new T3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","link")}),r}}const N3=R3,e0=class e0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(e0.primaryClass)}};Io(e0,"primaryClass","components-callbacks");let Ib=e0;const D3=Ib;class B3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new D3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","callback")}),r}}const M3=B3;class L3 extends Wo(on,_o){constructor(t){super(t),this.element=new Kg,this.specPath=_a(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return hn(this.element.externalValue)&&this.element.classes.push("reference-element"),r}}const F3=L3,$3=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class U3 extends Wo(on,_o){constructor(t){super(t),this.element=new Hg,this.specPath=_a(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const q3=U3;class K3 extends Wo(on,_o){constructor(t){super(t),this.element=new jf,this.specPath=_a(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.headers)&&this.element.headers.filter(Td).forEach((o,n)=>{o.setMetaProperty("header-name",ro(n))}),r}}const H3=K3,t0=class t0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(t0.primaryClass)}};Io(t0,"primaryClass","encoding-headers");let zb=t0;const V3=zb;class W3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new V3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","header")}),this.element.forEach((o,n)=>{if(!Td(o))return;const l=ro(n);o.setMetaProperty("headerName",l)}),r}}const J3=W3;class G3 extends Wo(zd,_o){constructor(t){super(t),this.element=new th,this.specPath=_a(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Gl}ObjectElement(t){const r=zd.prototype.ObjectElement.call(this,t);return this.element.filter(gb).forEach((o,n)=>{n.classes.push("openapi-path-template"),n.classes.push("path-template"),o.setMetaProperty("path",To(n))}),r}}const Y3=G3;class Z3 extends Wo(on,_o){constructor(t){super(t),this.element=new oh,this.specPath=_a(["document","objects","RequestBody"])}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach((o,n)=>{o.setMetaProperty("media-type",ro(n))}),r}}const Q3=Z3,r0=class r0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(r0.primaryClass),this.classes.push("content")}};Io(r0,"primaryClass","request-body-content");let Tb=r0;const X3=Tb,e7=class extends Hf{constructor(e){super(e),this.element=new X3}};class t7 extends Wo(zd,_o){constructor(t){super(t),this.element=new $g,this.specPath=_a(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(gb).forEach((o,n)=>{o.setMetaProperty("runtime-expression",ro(n))}),r}}const r7=t7;class o7 extends Wo(on,_o){constructor(t){super(t),this.element=new ah,this.specPath=_a(["document","objects","Response"])}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach((o,n)=>{o.setMetaProperty("media-type",ro(n))}),zn(this.element.headers)&&this.element.headers.filter(Td).forEach((o,n)=>{o.setMetaProperty("header-name",ro(n))}),r}}const a7=o7,o0=class o0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(o0.primaryClass)}};Io(o0,"primaryClass","response-headers");let Rb=o0;const n7=Rb;class i7 extends Wo(Wa,_o){constructor(t){super(t),this.element=new n7,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","header")}),this.element.forEach((o,n)=>{if(!Td(o))return;const l=ro(n);o.setMetaProperty("header-name",l)}),r}}const s7=i7,a0=class a0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(a0.primaryClass),this.classes.push("content")}};Io(a0,"primaryClass","response-content");let Nb=a0;const c7=Nb,l7=class extends Hf{constructor(e){super(e),this.element=new c7}},n0=class n0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(n0.primaryClass)}};Io(n0,"primaryClass","response-links");let Db=n0;const u7=Db;class p7 extends Wo(Wa,_o){constructor(t){super(t),this.element=new u7,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","link")}),r}}const d7=p7;function bw(e){return Object.prototype.toString.call(e)==="[object Number]"}var g7=Da(function(e,t){if(!bw(e)||!bw(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],o=e;o<t;)r.push(o),o+=1;return r});const h7=g7;function vw(e,t,r){var o,n=typeof e;switch(n){case"string":case"number":return e===0&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(o=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===o):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var l=e?1:0;return!!r._items[n][l]||(t&&(r._items[n][l]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(o=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===o):r._nativeSet.has(e):n in r._items?!!ml(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(e===null)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!ml(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const f7=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!vw(t,!0,this)},e.prototype.has=function(t){return vw(t,!1,this)},e}();var m7=Da(function(e,t){for(var r=[],o=0,n=e.length,l=t.length,h=new f7,m=0;m<l;m+=1)h.add(t[m]);for(;o<n;)h.add(e[o])&&(r[r.length]=e[o]),o+=1;return r});const b7=m7;class v7 extends Wo(on,zd){constructor({specPathFixedFields:r,specPathPatternedFields:o,...n}){super({...n});Io(this,"specPathFixedFields");Io(this,"specPathPatternedFields");this.specPathFixedFields=r,this.specPathPatternedFields=o}ObjectElement(r){const{specPath:o,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const l=this.retrieveFixedFields(this.specPath(r));this.ignoredFields=[...n,...b7(r.keys(),l)],on.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=l,zd.prototype.ObjectElement.call(this,r)}catch(l){throw this.specPath=o,l}return pn}}const yw=v7;class y7 extends Wo(yw,_o){constructor(t){super(t),this.element=new nh,this.specPathFixedFields=_a(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>ui(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${h7(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=yw.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","response")}),this.element.filter(qf).forEach((o,n)=>{const l=To(n);this.fieldPatternPredicate(ro(l))&&o.setMetaProperty("http-status-code",l)}),r}}const w7=y7;class k7 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)?this.element.setMetaProperty("referenced-element","response"):qf(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}const x7=k7;class E7 extends Wo(on,_o){constructor(t){super(t),this.element=new Qg,this.specPath=_a(["document","objects","Operation"])}}const S7=E7,i0=class i0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(i0.primaryClass)}};Io(i0,"primaryClass","operation-tags");let Bb=i0;const _7=Bb,j7=class extends _o{constructor(e){super(e),this.element=new _7}ArrayElement(e){return this.element=this.element.concat(To(e)),pn}},s0=class s0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(s0.primaryClass),this.classes.push("parameters")}};Io(s0,"primaryClass","operation-parameters");let Mb=s0;const ww=Mb;class O7 extends Wo(qs,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const o=ui(r)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(o,r);ai(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const kw=O7,A7=class extends kw{constructor(e){super(e),this.element=new ww}},C7=class extends _l{constructor(e){super(e),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=_l.prototype.enter.call(this,e);return ai(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}},c0=class c0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(c0.primaryClass)}};Io(c0,"primaryClass","operation-callbacks");let Lb=c0;const P7=Lb;class I7 extends Wo(Wa,_o){constructor(r){super(r);Io(this,"specPath");this.element=new P7,this.specPath=o=>ui(o)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const o=Wa.prototype.ObjectElement.call(this,r);return this.element.filter(ai).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),o}}const z7=I7,l0=class l0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(l0.primaryClass),this.classes.push("security")}};Io(l0,"primaryClass","operation-security");let Fb=l0;const xw=Fb;class T7 extends Wo(qs,_o){constructor(t){super(t),this.element=new xw}ArrayElement(t){return t.forEach(r=>{const o=zn(r)?["document","objects","SecurityRequirement"]:["value"],n=this.toRefractedElement(o,r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const R7=T7,u0=class u0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(u0.primaryClass),this.classes.push("servers")}};Io(u0,"primaryClass","operation-servers");let $b=u0;const Ew=$b,N7=class extends pb{constructor(e){super(e),this.element=new Ew}};class D7 extends Wo(on,_o){constructor(t){super(t),this.element=new eh,this.specPath=_a(["document","objects","PathItem"])}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return this.element.filter(sw).forEach((o,n)=>{const l=To(n);l.content=ro(l).toUpperCase(),o.setMetaProperty("http-method",l)}),hn(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const B7=D7,M7=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},p0=class p0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(p0.primaryClass),this.classes.push("servers")}};Io(p0,"primaryClass","path-item-servers");let Ub=p0;const Sw=Ub,L7=class extends pb{constructor(e){super(e),this.element=new Sw}},d0=class d0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(d0.primaryClass),this.classes.push("parameters")}};Io(d0,"primaryClass","path-item-parameters");let qb=d0;const F7=qb,$7=class extends kw{constructor(e){super(e),this.element=new F7}};class U7 extends Wo(on,_o){constructor(t){super(t),this.element=new lh,this.specPath=_a(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const q7=U7;class K7 extends Wo(on,_o){constructor(t){super(t),this.element=new Af,this.specPath=_a(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const H7=K7;class V7 extends Wo(on,_o){constructor(t){super(t),this.element=new Of,this.specPath=_a(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const W7=V7,g0=class g0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(g0.primaryClass)}};Io(g0,"primaryClass","oauth-flow-scopes");let Kb=g0;const J7=Kb;class G7 extends Wo(Wa,_o){constructor(t){super(t),this.element=new J7,this.specPath=_a(["value"])}}const Y7=G7,h0=class h0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(h0.primaryClass)}};Io(h0,"primaryClass","tags");let Hb=h0;const Z7=Hb;class Q7 extends Wo(qs,_o){constructor(t){super(t),this.element=new Z7}ArrayElement(t){return t.forEach(r=>{const o=b5(r)?["document","objects","Tag"]:["value"],n=this.toRefractedElement(o,r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const X7=Q7,{fixedFields:ns}=Zl.visitors.document.objects.JSONSchema,Fr={visitors:{value:_o,document:{objects:{OpenApi:{$visitor:y5,fixedFields:{openapi:k5,info:{$ref:"#/visitors/document/objects/Info"},servers:pb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:j6,tags:X7,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:S5,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:_5}},Contact:{$visitor:O5,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:C5,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:M5,fixedFields:{url:L5,description:{$ref:"#/visitors/value"},variables:H5}},ServerVariable:{$visitor:U5,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:A6,fixedFields:{schemas:h3,responses:b3,parameters:w3,examples:E3,requestBodies:j3,headers:C3,securitySchemes:z3,links:N3,callbacks:M3}},Paths:{$visitor:Y3},PathItem:{$visitor:B7,fixedFields:{$ref:M7,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:L7,parameters:$7}},Operation:{$visitor:S7,fixedFields:{tags:j7,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:A7,requestBody:C7,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:z7,deprecated:{$ref:"#/visitors/value"},security:R7,servers:N7}},ExternalDocumentation:{$visitor:q3,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:N6,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:B6,example:{$ref:"#/visitors/value"},examples:u3,content:d3}},RequestBody:{$visitor:Q3,fixedFields:{description:{$ref:"#/visitors/value"},content:e7,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:W5,fixedFields:{schema:f6,example:{$ref:"#/visitors/value"},examples:v6,encoding:k6}},Encoding:{$visitor:H3,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:J3,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:w7,fixedFields:{default:x7}},Response:{$visitor:a7,fixedFields:{description:{$ref:"#/visitors/value"},headers:s7,content:l7,links:d7}},Callback:{$visitor:r7},Example:{$visitor:F3,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:$3}},Link:{$visitor:I5,fixedFields:{operationRef:z5,operationId:T5,parameters:D5,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:L6,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:$6,example:{$ref:"#/visitors/value"},examples:q6,content:V6}},Tag:{$visitor:P6,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:z6,fixedFields:{$ref:T6}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:J6,fixedFields:{title:ns.title,multipleOf:ns.multipleOf,maximum:ns.maximum,exclusiveMaximum:ns.exclusiveMaximum,minimum:ns.minimum,exclusiveMinimum:ns.exclusiveMinimum,maxLength:ns.maxLength,minLength:ns.minLength,pattern:ns.pattern,maxItems:ns.maxItems,minItems:ns.minItems,uniqueItems:ns.uniqueItems,maxProperties:ns.maxProperties,minProperties:ns.minProperties,required:ns.required,enum:ns.enum,type:t3,allOf:G6,anyOf:Y6,oneOf:Z6,not:fw,items:Q6,properties:X6,additionalProperties:fw,description:ns.description,format:ns.format,default:ns.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:o3,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:i3}},XML:{$visitor:c3,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:q7,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:H7,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:W7,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Y7}},SecurityRequirement:{$visitor:E6}},extension:{$visitor:x5}}}},e8=e=>{if(as(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},t8={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Cd},r8={namespace:e=>{const{base:t}=e;return t.register("callback",$g),t.register("components",Ug),t.register("contact",qg),t.register("discriminator",_f),t.register("encoding",jf),t.register("example",Kg),t.register("externalDocumentation",Hg),t.register("header",Vg),t.register("info",Wg),t.register("license",Jg),t.register("link",Gg),t.register("mediaType",Yg),t.register("oAuthFlow",Of),t.register("oAuthFlows",Af),t.register("openapi",Zg),t.register("openApi3_0",Cf),t.register("operation",Qg),t.register("parameter",Xg),t.register("pathItem",eh),t.register("paths",th),t.register("reference",rh),t.register("requestBody",oh),t.register("response",ah),t.register("responses",nh),t.register("schema",Ff),t.register("securityRequirement",ch),t.register("securityScheme",lh),t.register("server",uh),t.register("serverVariable",ph),t.register("tag",$f),t.register("xml",Uf),t}},o8=r8,a8=()=>{const e=Mg(o8);return{predicates:{..._,isElement:as,isStringElement:hn,isArrayElement:dc,isObjectElement:zn,isMemberElement:Bi,includesClasses:Od,hasElementSourceMap:Bg},namespace:e}},n8=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const o=(0,Or.e)(e),n=Rf(Fr),l=new(vi(t,n))({specObj:n});return Bs(o,l),Pd(l.element,r,{toolboxCreator:a8,visitorOptions:{keyMap:t8,nodeTypeGetter:e8}})},qn=e=>(t,r={})=>n8(t,{specPath:e,...r});$g.refract=qn(["visitors","document","objects","Callback","$visitor"]),Ug.refract=qn(["visitors","document","objects","Components","$visitor"]),qg.refract=qn(["visitors","document","objects","Contact","$visitor"]),Kg.refract=qn(["visitors","document","objects","Example","$visitor"]),_f.refract=qn(["visitors","document","objects","Discriminator","$visitor"]),jf.refract=qn(["visitors","document","objects","Encoding","$visitor"]),Hg.refract=qn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Vg.refract=qn(["visitors","document","objects","Header","$visitor"]),Wg.refract=qn(["visitors","document","objects","Info","$visitor"]),Jg.refract=qn(["visitors","document","objects","License","$visitor"]),Gg.refract=qn(["visitors","document","objects","Link","$visitor"]),Yg.refract=qn(["visitors","document","objects","MediaType","$visitor"]),Of.refract=qn(["visitors","document","objects","OAuthFlow","$visitor"]),Af.refract=qn(["visitors","document","objects","OAuthFlows","$visitor"]),Zg.refract=qn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Cf.refract=qn(["visitors","document","objects","OpenApi","$visitor"]),Qg.refract=qn(["visitors","document","objects","Operation","$visitor"]),Xg.refract=qn(["visitors","document","objects","Parameter","$visitor"]),eh.refract=qn(["visitors","document","objects","PathItem","$visitor"]),th.refract=qn(["visitors","document","objects","Paths","$visitor"]),rh.refract=qn(["visitors","document","objects","Reference","$visitor"]),oh.refract=qn(["visitors","document","objects","RequestBody","$visitor"]),ah.refract=qn(["visitors","document","objects","Response","$visitor"]),nh.refract=qn(["visitors","document","objects","Responses","$visitor"]),Ff.refract=qn(["visitors","document","objects","Schema","$visitor"]),ch.refract=qn(["visitors","document","objects","SecurityRequirement","$visitor"]),lh.refract=qn(["visitors","document","objects","SecurityScheme","$visitor"]),uh.refract=qn(["visitors","document","objects","Server","$visitor"]),ph.refract=qn(["visitors","document","objects","ServerVariable","$visitor"]),$f.refract=qn(["visitors","document","objects","Tag","$visitor"]),Uf.refract=qn(["visitors","document","objects","XML","$visitor"]);const Vf=class extends $g{},Wf=class extends Ug{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},Jf=class extends qg{},Vb=class extends _f{},Wb=class extends jf{},Gf=class extends Kg{},Yf=class extends Hg{},Zf=class extends Vg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Qf=class extends Wg{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}},f0=class f0 extends Or.Om{constructor(t,r,o){super(t,r,o),this.element="jsonSchemaDialect"}};Io(f0,"default",new f0("https://spec.openapis.org/oas/3.1/dialect/base"));let Jb=f0;const gh=Jb,Xf=class extends Jg{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},em=class extends Gg{},tm=class extends Yg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Gb=class extends Of{},Yb=class extends Af{},Zb=class extends Zg{};class i8 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}const Iu=i8,hh=class extends Qg{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},rm=class extends Xg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Ql=class extends eh{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},om=class extends th{};class Qb extends rh{}Object.defineProperty(Qb.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Qb.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const fp=Qb,am=class extends oh{},nm=class extends ah{},im=class extends nh{};class s8 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}const Xl=s8,sm=class extends ch{},cm=class extends lh{},lm=class extends uh{},um=class extends ph{},Xb=class extends $f{},ev=class extends Uf{};class c8 extends Wo(on,_o){constructor(t){super(t),this.element=new Iu,this.specPath=_a(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,on.prototype.ObjectElement.call(this,t)}}const l8=c8,{visitors:{document:{objects:{Info:{$visitor:u8}}}}}=Fr,p8=class extends u8{constructor(e){super(e),this.element=new Qf}},{visitors:{document:{objects:{Contact:{$visitor:d8}}}}}=Fr,g8=class extends d8{constructor(e){super(e),this.element=new Jf}},{visitors:{document:{objects:{License:{$visitor:h8}}}}}=Fr,f8=class extends h8{constructor(e){super(e),this.element=new Xf}},{visitors:{document:{objects:{Link:{$visitor:m8}}}}}=Fr,b8=class extends m8{constructor(e){super(e),this.element=new em}};class v8 extends Wo(qs,_o){StringElement(t){const r=new gh(ro(t));return this.copyMetaAndAttributes(t,r),this.element=r,pn}}const y8=v8,{visitors:{document:{objects:{Server:{$visitor:w8}}}}}=Fr,k8=class extends w8{constructor(e){super(e),this.element=new lm}},{visitors:{document:{objects:{ServerVariable:{$visitor:x8}}}}}=Fr,E8=class extends x8{constructor(e){super(e),this.element=new um}},{visitors:{document:{objects:{MediaType:{$visitor:S8}}}}}=Fr,_8=class extends S8{constructor(e){super(e),this.element=new tm}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:j8}}}}}=Fr,O8=class extends j8{constructor(e){super(e),this.element=new sm}},{visitors:{document:{objects:{Components:{$visitor:A8}}}}}=Fr,C8=class extends A8{constructor(e){super(e),this.element=new Wf}},{visitors:{document:{objects:{Tag:{$visitor:P8}}}}}=Fr,I8=class extends P8{constructor(e){super(e),this.element=new Xb}},{visitors:{document:{objects:{Reference:{$visitor:z8}}}}}=Fr,T8=class extends z8{constructor(e){super(e),this.element=new fp}},{visitors:{document:{objects:{Parameter:{$visitor:R8}}}}}=Fr,N8=class extends R8{constructor(e){super(e),this.element=new rm}},{visitors:{document:{objects:{Header:{$visitor:D8}}}}}=Fr,B8=class extends D8{constructor(e){super(e),this.element=new Zf}},M8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Vf||e(o)&&t("callback",o)&&r("object",o)),L8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Wf||e(o)&&t("components",o)&&r("object",o)),F8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Jf||e(o)&&t("contact",o)&&r("object",o)),$8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Gf||e(o)&&t("example",o)&&r("object",o)),U8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Yf||e(o)&&t("externalDocumentation",o)&&r("object",o)),q8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Zf||e(o)&&t("header",o)&&r("object",o)),K8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Qf||e(o)&&t("info",o)&&r("object",o)),_w=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof gh||e(o)&&t("jsonSchemaDialect",o)&&r("string",o)),H8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Xf||e(o)&&t("license",o)&&r("object",o)),V8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof em||e(o)&&t("link",o)&&r("object",o)),W8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Zb||e(o)&&t("openapi",o)&&r("string",o)),jw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:o})=>n=>n instanceof Iu||e(n)&&t("openApi3_1",n)&&r("object",n)&&o("api",n)),Ow=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof hh||e(o)&&t("operation",o)&&r("object",o)),J8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof rm||e(o)&&t("parameter",o)&&r("object",o)),fh=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ql||e(o)&&t("pathItem",o)&&r("object",o)),G8=e=>{if(!fh(e)||!hn(e.$ref))return!1;const t=ro(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Y8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof om||e(o)&&t("paths",o)&&r("object",o)),Rd=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof fp||e(o)&&t("reference",o)&&r("object",o)),Z8=e=>{if(!Rd(e)||!hn(e.$ref))return!1;const t=ro(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Q8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof am||e(o)&&t("requestBody",o)&&r("object",o)),X8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof nm||e(o)&&t("response",o)&&r("object",o)),e9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof im||e(o)&&t("responses",o)&&r("object",o)),mp=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Xl||e(o)&&t("schema",o)&&r("object",o)),tv=e=>Dg(e)&&e.classes.includes("boolean-json-schema"),t9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof sm||e(o)&&t("securityRequirement",o)&&r("object",o)),r9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof cm||e(o)&&t("securityScheme",o)&&r("object",o)),o9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof lm||e(o)&&t("server",o)&&r("object",o)),a9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof um||e(o)&&t("serverVariable",o)&&r("object",o)),n9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof tm||e(o)&&t("mediaType",o)&&r("object",o)),eu=class{constructor({parent:e}){Io(this,"parent");this.parent=e}};class i9 extends Wo(on,eu,_o){constructor(t){super(t),this.element=new Xl,this.specPath=_a(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=gh.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handle$schema(t),this.handle$id(t),this.parent=this.element;const r=on.prototype.ObjectElement.call(this,t);return hn(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){const r=super.enter(t);return this.element.classes.push("boolean-json-schema"),r}getJsonSchemaDialect(){let t;return t=this.openApiSemanticElement!==void 0&&_w(this.openApiSemanticElement.jsonSchemaDialect)?ro(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&hn(this.openApiGenericElement.get("jsonSchemaDialect"))?ro(this.openApiGenericElement.get("jsonSchemaDialect")):ro(this.jsonSchemaDefaultDialect),t}handle$schema(t){if(pc(this.parent)&&!hn(t.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(mp(this.parent)&&!hn(t.get("$schema"))){const r=Ml(ro(this.parent.meta.get("inherited$schema")),ro(this.parent.$schema));this.element.setMetaProperty("inherited$schema",r)}}handle$id(t){const r=this.parent!==void 0?To(this.parent.getMetaProperty("inherited$id",[])):new Or.wE,o=ro(t.get("$id"));ab(o)&&r.push(o),this.element.setMetaProperty("inherited$id",r)}}const s9=i9,c9=class extends _o{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}},l9=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class u9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const p9=u9;class d9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const g9=d9;class h9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const f9=h9;class m9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const b9=m9;class v9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const y9=v9;class w9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const k9=w9;class x9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-properties"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const E9=x9;class S9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const _9=S9,j9=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}},O9=class extends _o{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}},A9=class extends _o{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}},C9=class extends _o{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:P9}}}}}=Fr,I9=class extends P9{constructor(e){super(e),this.element=new Vb,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:z9}}}}}=Fr,T9=class extends z9{constructor(e){super(e),this.element=new ev}};class R9 extends Wo(Wa,_o){constructor(t){super(t),this.element=new mw,this.specPath=_a(["document","objects","Schema"])}}const N9=R9,m0=class m0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(m0.primaryClass)}};Io(m0,"primaryClass","components-path-items");let rv=m0;const D9=rv;class B9 extends Wo(Wa,_o){constructor(t){super(t),this.element=new D9,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(Rd).forEach(o=>{o.setMetaProperty("referenced-element","pathItem")}),r}}const M9=B9,{visitors:{document:{objects:{Example:{$visitor:L9}}}}}=Fr,F9=class extends L9{constructor(e){super(e),this.element=new Gf}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:$9}}}}}=Fr,U9=class extends $9{constructor(e){super(e),this.element=new Yf}},{visitors:{document:{objects:{Encoding:{$visitor:q9}}}}}=Fr,K9=class extends q9{constructor(e){super(e),this.element=new Wb}},{visitors:{document:{objects:{Paths:{$visitor:H9}}}}}=Fr,V9=class extends H9{constructor(e){super(e),this.element=new om}},{visitors:{document:{objects:{RequestBody:{$visitor:W9}}}}}=Fr,J9=class extends W9{constructor(e){super(e),this.element=new am}},{visitors:{document:{objects:{Callback:{$visitor:Aw}}}}}=Fr,G9=class extends Aw{constructor(e){super(e),this.element=new Vf,this.specPath=t=>ui(t)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Aw.prototype.ObjectElement.call(this,e);return this.element.filter(Rd).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),t}},{visitors:{document:{objects:{Response:{$visitor:Y9}}}}}=Fr,Z9=class extends Y9{constructor(e){super(e),this.element=new nm}},{visitors:{document:{objects:{Responses:{$visitor:Q9}}}}}=Fr,X9=class extends Q9{constructor(e){super(e),this.element=new im}},{visitors:{document:{objects:{Operation:{$visitor:eE}}}}}=Fr,tE=class extends eE{constructor(e){super(e),this.element=new hh}},{visitors:{document:{objects:{PathItem:{$visitor:rE}}}}}=Fr,oE=class extends rE{constructor(e){super(e),this.element=new Ql}},{visitors:{document:{objects:{SecurityScheme:{$visitor:aE}}}}}=Fr,nE=class extends aE{constructor(e){super(e),this.element=new cm}},{visitors:{document:{objects:{OAuthFlows:{$visitor:iE}}}}}=Fr,sE=class extends iE{constructor(e){super(e),this.element=new Yb}},{visitors:{document:{objects:{OAuthFlow:{$visitor:cE}}}}}=Fr,lE=class extends cE{constructor(e){super(e),this.element=new Gb}},b0=class b0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(b0.primaryClass)}};Io(b0,"primaryClass","webhooks");let ov=b0;const uE=ov;class pE extends Wo(Wa,_o){constructor(t){super(t),this.element=new uE,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(Rd).forEach(o=>{o.setMetaProperty("referenced-element","pathItem")}),this.element.filter(fh).forEach((o,n)=>{o.setMetaProperty("webhook-name",ro(n))}),r}}const dE=pE,gE={visitors:{value:Fr.visitors.value,document:{objects:{OpenApi:{$visitor:l8,fixedFields:{openapi:Fr.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:y8,servers:Fr.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:dE,components:{$ref:"#/visitors/document/objects/Components"},security:Fr.visitors.document.objects.OpenApi.fixedFields.security,tags:Fr.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:p8,fixedFields:{title:Fr.visitors.document.objects.Info.fixedFields.title,description:Fr.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Fr.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Fr.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:g8,fixedFields:{name:Fr.visitors.document.objects.Contact.fixedFields.name,url:Fr.visitors.document.objects.Contact.fixedFields.url,email:Fr.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:f8,fixedFields:{name:Fr.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Fr.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:k8,fixedFields:{url:Fr.visitors.document.objects.Server.fixedFields.url,description:Fr.visitors.document.objects.Server.fixedFields.description,variables:Fr.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:E8,fixedFields:{enum:Fr.visitors.document.objects.ServerVariable.fixedFields.enum,default:Fr.visitors.document.objects.ServerVariable.fixedFields.default,description:Fr.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:C8,fixedFields:{schemas:N9,responses:Fr.visitors.document.objects.Components.fixedFields.responses,parameters:Fr.visitors.document.objects.Components.fixedFields.parameters,examples:Fr.visitors.document.objects.Components.fixedFields.examples,requestBodies:Fr.visitors.document.objects.Components.fixedFields.requestBodies,headers:Fr.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Fr.visitors.document.objects.Components.fixedFields.securitySchemes,links:Fr.visitors.document.objects.Components.fixedFields.links,callbacks:Fr.visitors.document.objects.Components.fixedFields.callbacks,pathItems:M9}},Paths:{$visitor:V9},PathItem:{$visitor:oE,fixedFields:{$ref:Fr.visitors.document.objects.PathItem.fixedFields.$ref,summary:Fr.visitors.document.objects.PathItem.fixedFields.summary,description:Fr.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Fr.visitors.document.objects.PathItem.fixedFields.servers,parameters:Fr.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:tE,fixedFields:{tags:Fr.visitors.document.objects.Operation.fixedFields.tags,summary:Fr.visitors.document.objects.Operation.fixedFields.summary,description:Fr.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Fr.visitors.document.objects.Operation.fixedFields.operationId,parameters:Fr.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Fr.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Fr.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Fr.visitors.document.objects.Operation.fixedFields.deprecated,security:Fr.visitors.document.objects.Operation.fixedFields.security,servers:Fr.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:U9,fixedFields:{description:Fr.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Fr.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:N8,fixedFields:{name:Fr.visitors.document.objects.Parameter.fixedFields.name,in:Fr.visitors.document.objects.Parameter.fixedFields.in,description:Fr.visitors.document.objects.Parameter.fixedFields.description,required:Fr.visitors.document.objects.Parameter.fixedFields.required,deprecated:Fr.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Fr.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Fr.visitors.document.objects.Parameter.fixedFields.style,explode:Fr.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Fr.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fr.visitors.document.objects.Parameter.fixedFields.example,examples:Fr.visitors.document.objects.Parameter.fixedFields.examples,content:Fr.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:J9,fixedFields:{description:Fr.visitors.document.objects.RequestBody.fixedFields.description,content:Fr.visitors.document.objects.RequestBody.fixedFields.content,required:Fr.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:_8,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Fr.visitors.document.objects.MediaType.fixedFields.example,examples:Fr.visitors.document.objects.MediaType.fixedFields.examples,encoding:Fr.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:K9,fixedFields:{contentType:Fr.visitors.document.objects.Encoding.fixedFields.contentType,headers:Fr.visitors.document.objects.Encoding.fixedFields.headers,style:Fr.visitors.document.objects.Encoding.fixedFields.style,explode:Fr.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Fr.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:X9,fixedFields:{default:Fr.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Z9,fixedFields:{description:Fr.visitors.document.objects.Response.fixedFields.description,headers:Fr.visitors.document.objects.Response.fixedFields.headers,content:Fr.visitors.document.objects.Response.fixedFields.content,links:Fr.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:G9},Example:{$visitor:F9,fixedFields:{summary:Fr.visitors.document.objects.Example.fixedFields.summary,description:Fr.visitors.document.objects.Example.fixedFields.description,value:Fr.visitors.document.objects.Example.fixedFields.value,externalValue:Fr.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:b8,fixedFields:{operationRef:Fr.visitors.document.objects.Link.fixedFields.operationRef,operationId:Fr.visitors.document.objects.Link.fixedFields.operationId,parameters:Fr.visitors.document.objects.Link.fixedFields.parameters,requestBody:Fr.visitors.document.objects.Link.fixedFields.requestBody,description:Fr.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:B8,fixedFields:{description:Fr.visitors.document.objects.Header.fixedFields.description,required:Fr.visitors.document.objects.Header.fixedFields.required,deprecated:Fr.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Fr.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Fr.visitors.document.objects.Header.fixedFields.style,explode:Fr.visitors.document.objects.Header.fixedFields.explode,allowReserved:Fr.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fr.visitors.document.objects.Header.fixedFields.example,examples:Fr.visitors.document.objects.Header.fixedFields.examples,content:Fr.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:I8,fixedFields:{name:Fr.visitors.document.objects.Tag.fixedFields.name,description:Fr.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:T8,fixedFields:{$ref:Fr.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:s9,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:c9,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:l9,$defs:p9,$comment:{$ref:"#/visitors/value"},allOf:g9,anyOf:f9,oneOf:b9,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:y9,prefixItems:k9,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:E9,patternProperties:_9,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:j9,enum:O9,const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:A9,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:C9,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:I9,fixedFields:{propertyName:Fr.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Fr.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:T9,fixedFields:{name:Fr.visitors.document.objects.XML.fixedFields.name,namespace:Fr.visitors.document.objects.XML.fixedFields.namespace,prefix:Fr.visitors.document.objects.XML.fixedFields.prefix,attribute:Fr.visitors.document.objects.XML.fixedFields.attribute,wrapped:Fr.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:nE,fixedFields:{type:Fr.visitors.document.objects.SecurityScheme.fixedFields.type,description:Fr.visitors.document.objects.SecurityScheme.fixedFields.description,name:Fr.visitors.document.objects.SecurityScheme.fixedFields.name,in:Fr.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Fr.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Fr.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Fr.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:sE,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:lE,fixedFields:{authorizationUrl:Fr.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Fr.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Fr.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Fr.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:O8}},extension:{$visitor:Fr.visitors.document.extension.$visitor}}}},Yc=e=>{if(as(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},jl={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Cd},hE={namespace:e=>{const{base:t}=e;return t.register("callback",Vf),t.register("components",Wf),t.register("contact",Jf),t.register("discriminator",Vb),t.register("encoding",Wb),t.register("example",Gf),t.register("externalDocumentation",Yf),t.register("header",Zf),t.register("info",Qf),t.register("jsonSchemaDialect",gh),t.register("license",Xf),t.register("link",em),t.register("mediaType",tm),t.register("oAuthFlow",Gb),t.register("oAuthFlows",Yb),t.register("openapi",Zb),t.register("openApi3_1",Iu),t.register("operation",hh),t.register("parameter",rm),t.register("pathItem",Ql),t.register("paths",om),t.register("reference",fp),t.register("requestBody",am),t.register("response",nm),t.register("responses",im),t.register("schema",Xl),t.register("securityRequirement",sm),t.register("securityScheme",cm),t.register("server",lm),t.register("serverVariable",um),t.register("tag",Xb),t.register("xml",ev),t}},av=hE,Cw=()=>{const e=Mg(av);return{predicates:{...x,isElement:as,isStringElement:hn,isArrayElement:dc,isObjectElement:zn,isMemberElement:Bi,isServersElement:cw,includesClasses:Od,hasElementSourceMap:Bg},namespace:e}},fE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const o=(0,Or.e)(e),n=Rf(gE),l=new(vi(t,n))({specObj:n});return Bs(o,l),Pd(l.element,r,{toolboxCreator:Cw,visitorOptions:{keyMap:jl,nodeTypeGetter:Yc}})},Nn=e=>(t,r={})=>fE(t,{specPath:e,...r});Vf.refract=Nn(["visitors","document","objects","Callback","$visitor"]),Wf.refract=Nn(["visitors","document","objects","Components","$visitor"]),Jf.refract=Nn(["visitors","document","objects","Contact","$visitor"]),Gf.refract=Nn(["visitors","document","objects","Example","$visitor"]),Vb.refract=Nn(["visitors","document","objects","Discriminator","$visitor"]),Wb.refract=Nn(["visitors","document","objects","Encoding","$visitor"]),Yf.refract=Nn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Zf.refract=Nn(["visitors","document","objects","Header","$visitor"]),Qf.refract=Nn(["visitors","document","objects","Info","$visitor"]),gh.refract=Nn(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Xf.refract=Nn(["visitors","document","objects","License","$visitor"]),em.refract=Nn(["visitors","document","objects","Link","$visitor"]),tm.refract=Nn(["visitors","document","objects","MediaType","$visitor"]),Gb.refract=Nn(["visitors","document","objects","OAuthFlow","$visitor"]),Yb.refract=Nn(["visitors","document","objects","OAuthFlows","$visitor"]),Zb.refract=Nn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Iu.refract=Nn(["visitors","document","objects","OpenApi","$visitor"]),hh.refract=Nn(["visitors","document","objects","Operation","$visitor"]),rm.refract=Nn(["visitors","document","objects","Parameter","$visitor"]),Ql.refract=Nn(["visitors","document","objects","PathItem","$visitor"]),om.refract=Nn(["visitors","document","objects","Paths","$visitor"]),fp.refract=Nn(["visitors","document","objects","Reference","$visitor"]),am.refract=Nn(["visitors","document","objects","RequestBody","$visitor"]),nm.refract=Nn(["visitors","document","objects","Response","$visitor"]),im.refract=Nn(["visitors","document","objects","Responses","$visitor"]),Xl.refract=Nn(["visitors","document","objects","Schema","$visitor"]),sm.refract=Nn(["visitors","document","objects","SecurityRequirement","$visitor"]),cm.refract=Nn(["visitors","document","objects","SecurityScheme","$visitor"]),lm.refract=Nn(["visitors","document","objects","Server","$visitor"]),um.refract=Nn(["visitors","document","objects","ServerVariable","$visitor"]),Xb.refract=Nn(["visitors","document","objects","Tag","$visitor"]),ev.refract=Nn(["visitors","document","objects","XML","$visitor"]);const Ol=class extends Es{},mE=class extends Array{constructor(){super(...arguments);Io(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Ol("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ol("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ol("latest method in MediaTypes class is not yet implemented.")}};class nv extends mE{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(o=>o.includes(r))}findBy(t="3.1.0",r="generic"){const o=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(n=>n.includes(o))||this.unknownMediaType}latest(t="generic"){return vu(this.filterByFormat(t))}}const Nd=new nv("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),bp=fn({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:o=this.value}={}){this.uri=r,this.value=o,this.depth=e,this.refSet=t,this.errors=[]}}),iv=Ri(function(e,t,r){return Hi(e,bl(t,r))}),bE=fn({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach(t=>this.add(t))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===null?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=wl(e)?e:e.uri;return yg(this.find(iv(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach(e=>{e.refSet=null}),this.rootRef=null,this.refs=[]}}}),mh=bE,vE={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:Uy,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},yE=Da(function(e,t){return function(r){return function(o){return yu(function(n){return t(n,o)},r(e(o)))}}});var wE=Ri(function e(t,r,o){if(t.length===0)return r;var n=t[0];if(t.length>1){var l=!Tf(o)&&vs(n,o)&&typeof o[n]=="object"?o[n]:bs(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,l)}return function(h,m,E){if(bs(h)&&si(E)){var R=[].concat(E);return R[h]=m,R}var B={};for(var $ in E)B[$]=E[$];return B[h]=m,B}(n,r,o)});const kE=wE;var Pw=function(e){return{value:e,map:function(t){return Pw(t(e))}}},xE=Ri(function(e,t,r){return e(function(o){return Pw(t(o))})(r).value});const EE=xE,SE=yE(vi(["resolve","baseURI"]),kE(["resolve","baseURI"])),_E=e=>Ky(e)?rp():e,Iw=(e,t)=>{const r=Xo(e,t);return EE(SE,_E,r)},bh=fn({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:o=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=o},methods:{get extension(){return wl(this.uri)?xg(this.uri):""},toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ys(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}}}),jE=class extends Gi{constructor(t,r){super(t,{cause:r.cause});Io(this,"plugin");this.plugin=r.plugin}},sv=async(e,t,r)=>{const o=await Promise.all(r.map(rn([e],t)));return r.filter((n,l)=>o[l])},cv=async(e,t,r)=>{let o;for(const n of r)try{const l=await n[e].call(n,...t);return{plugin:n,result:l}}catch(l){o=new jE("Error while running plugin",{cause:l,plugin:n})}return Promise.reject(o)},lv=class extends Gi{},zw=class extends lv{},OE=async(e,t)=>{let r=e,o=!1;if(!Ey(e)){const h=Us(e);h.classes.push("result"),r=new le([h]),o=!0}const n=bh({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),l=await sv("canDereference",[n,t],t.dereference.strategies);if(po(l))throw new zw(n.uri);try{const{result:h}=await cv("dereference",[n,t],l);return o?h.get(0):h}catch(h){throw new lv(`Error while dereferencing file "${n.uri}"`,{cause:h})}},uv=class extends Gi{},tu=class extends uv{},AE=fn({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:o=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=o},methods:{async canParse(){throw new Ol("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Ol("parse method in Parser stamp is not yet implemented.")}}}),vh=AE,CE=fn(vh,{props:{name:"binary"},methods:{async canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),o=new le;if(r.length!==0){const n=new Or.Om(r);n.classes.push("result"),o.push(n)}return o}catch(t){throw new tu(`Error parsing "${e.uri}"`,{cause:t})}}}}),PE=fn({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Ol("resolve method in ResolveStrategy stamp is not yet implemented.")}}}),IE=fn(PE,{init(){this.name="openapi-3-1"},methods:{canResolve(e,t){const r=t.dereference.strategies.find(o=>o.name==="openapi-3-1");return r!==void 0&&r.canDereference(e,t)},async resolve(e,t){const r=t.dereference.strategies.find(l=>l.name==="openapi-3-1");if(r===void 0)throw new zw('"openapi-3-1" dereference strategy is not available.');const o=mh(),n=Iw(t,{resolve:{internal:!1},dereference:{refSet:o}});return await r.dereference(e,n),o}}}),zE=IE;function pv(e,t,r){if(r||(r=new TE),function(n){var l=typeof n;return n==null||l!="object"&&l!="function"}(e))return e;var o=function(n){var l=r.get(e);if(l)return l;for(var h in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,h)&&(n[h]=t?pv(e[h],!0,r):e[h]);return n};switch(ys(e)){case"Object":return o(Object.create(Object.getPrototypeOf(e)));case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return gu(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var TE=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){const o=this.hash(t);let n=this.map[o];n||(this.map[o]=n=[]),n.push([t,r]),this.length+=1},e.prototype.hash=function(t){let r=[];for(var o in t)r.push(Object.prototype.toString.call(t[o]));return r.join()},e.prototype.get=function(t){if(this.length<=180){for(const n in this.map){const l=this.map[n];for(let h=0;h<l.length;h+=1){const m=l[h];if(m[0]===t)return m[1]}}return}const r=this.hash(t),o=this.map[r];if(o)for(let n=0;n<o.length;n+=1){const l=o[n];if(l[0]===t)return l[1]}},e}(),RE=function(){function e(t,r,o,n){this.valueFn=t,this.valueAcc=r,this.keyFn=o,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(vs(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,pv(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),t},e}();function NE(e,t,r){return function(o){return new RE(e,t,r,o)}}var DE=Yp(4,[],ic([],NE,function(e,t,r,o){var n=cc(function(l,h){var m=r(h),E=e(vs(m,l)?l[m]:pv(t,!1),h);return E&&E["@@transducer/reduced"]?Aa(l):(l[m]=E,l)});return Fc(n,{},o)}));const BE=Da(Gp("groupBy",DE(function(e,t){return e.push(t),e},[]))),dv=e=>e.replace(/\s/g,""),gv=e=>e.replace(/\W/gi,"_"),ME=(e,t,r)=>{const o=dv(e);return o.length>0?gv(o):((n,l)=>`${gv(dv(l.toLowerCase()))}${gv(dv(n))}`)(t,r)},LE=({operationIdNormalizer:e=ME}={})=>({predicates:t,namespace:r})=>{const o=[],n=[],l=[];return{visitor:{OpenApi3_1Element:{leave(){const h=BE(m=>ro(m.operationId),n);Object.entries(h).forEach(([m,E])=>{Array.isArray(E)&&(E.length<=1||E.forEach((R,B)=>{const $=`${m}${B+1}`;R.operationId=new r.elements.String($)}))}),l.forEach(m=>{if(m.operationId===void 0)return;const E=String(ro(m.operationId)),R=n.find(B=>ro(B.meta.get("originalOperationId"))===E);R!==void 0&&(m.operationId=To.safe(R.operationId),m.meta.set("originalOperationId",E),m.set("__originalOperationId",E))}),n.length=0,l.length=0}},PathItemElement:{enter(h){const m=Ml("path",ro(h.meta.get("path")));o.push(m)},leave(){o.pop()}},OperationElement:{enter(h){if(h.operationId===void 0)return;const m=String(ro(h.operationId)),E=vu(o),R=Ml("method",ro(h.meta.get("http-method"))),B=e(m,E,R);m!==B&&(h.operationId=new r.elements.String(B),h.set("__originalOperationId",m),h.meta.set("originalOperationId",m),n.push(h))}},LinkElement:{leave(h){t.isLinkElement(h)&&h.operationId!==void 0&&l.push(h)}}}}},Tw=Ri(function(e,t,r){return Ml(e,vi(t,r))});var FE=function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=Ts,e.prototype["@@transducer/step"]=function(t,r){return Wu(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e}();function $E(e){return function(t){return new FE(e,t)}}var UE=Da(ic([],$E,function(e,t){for(var r,o=0,n=t.length,l=[];o<n;)Wu(e,r=t[o],l)||(l[l.length]=r),o+=1;return l}));const qE=UE,KE=()=>({predicates:e})=>{const t=(o,n)=>!!e.isParameterElement(o)&&!!e.isParameterElement(n)&&!!e.isStringElement(o.name)&&!!e.isStringElement(o.in)&&!!e.isStringElement(n.name)&&!!e.isStringElement(n.in)&&ro(o.name)===ro(n.name)&&ro(o.in)===ro(n.in),r=[];return{visitor:{PathItemElement:{enter(o,n,l,h,m){if(m.some(e.isComponentsElement))return;const{parameters:E}=o;e.isArrayElement(E)?r.push([...E.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(o){const n=vu(r);if(!Array.isArray(n)||n.length===0)return;const l=Tw([],["parameters","content"],o),h=qE(t,[...l,...n]);o.parameters=new ww(h)}}}}},HE=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,o,n,l,h){if(!h.some(e.isComponentsElement)){var m;r.security===void 0&&t!==void 0&&(r.security=new xw((m=t)===null||m===void 0?void 0:m.content))}}}}}},VE=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const o=r.servers===void 0,n=e.isArrayElement(r.servers),l=n&&r.servers.length===0,h=t.elements.Server.refract({url:"/"});o||!n?r.servers=new ub([h]):n&&l&&r.servers.push(h)},PathItemElement(r,o,n,l,h){if(h.some(e.isComponentsElement)||!h.some(e.isOpenApi3_1Element))return;const m=h.find(e.isOpenApi3_1Element),E=r.servers===void 0,R=e.isArrayElement(r.servers),B=R&&r.servers.length===0;if(e.isOpenApi3_1Element(m)){var $;const K=($=m.servers)===null||$===void 0?void 0:$.content,L=K??[];E||!R?r.servers=new Sw(L):R&&B&&L.forEach(H=>{r.servers.push(H)})}},OperationElement(r,o,n,l,h){if(h.some(e.isComponentsElement)||!h.some(e.isOpenApi3_1Element))return;const m=[...h].reverse().find(e.isPathItemElement),E=r.servers===void 0,R=e.isArrayElement(r.servers),B=R&&r.servers.length===0;if(e.isPathItemElement(m)){var $;const K=($=m.servers)===null||$===void 0?void 0:$.content,L=K??[];E||!R?r.servers=new Ew(L):R&&B&&L.forEach(H=>{r.servers.push(H)})}}}}),WE=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,o,n,l){var h,m;if(!l.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((h=t.schema)===null||h===void 0?void 0:h.example)!==void 0||((m=t.schema)===null||m===void 0?void 0:m.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const E=t.examples.map(R=>To.safe(R.value));return t.schema.examples!==void 0&&t.schema.set("examples",E),void(t.schema.example!==void 0&&t.schema.set("example",E))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[To(t.example)]),t.schema.example!==void 0&&t.schema.set("example",To(t.example)))}}}}}),JE=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,o,n,l){var h,m;if(!l.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((h=t.schema)===null||h===void 0?void 0:h.example)!==void 0||((m=t.schema)===null||m===void 0?void 0:m.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const E=t.examples.map(R=>To.safe(R.value));return t.schema.examples!==void 0&&t.schema.set("examples",E),void(t.schema.example!==void 0&&t.schema.set("example",E))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[To(t.example)]),t.schema.example!==void 0&&t.schema.set("example",To(t.example)))}}}}}),yh=e=>t=>{if(t!=null&&t.$$normalized)return t;if(yh.cache.has(t))return yh.cache.get(t);const r=Iu.refract(t),o=e(r),n=ro(o);return yh.cache.set(t,n),n};yh.cache=new WeakMap;const Rw=e=>{if(!zn(e)||e.hasKey("$$normalized"))return e;const t=[LE({operationIdNormalizer:(o,n,l)=>Kl({operationId:o},n,l,{v2OperationIdCompatibilityMode:!1})}),KE(),HE(),VE(),WE(),JE()],r=Pd(e,t,{toolboxCreator:Cw,visitorOptions:{keyMap:jl,nodeTypeGetter:Yc}});return r.set("$$normalized",!0),r},GE=fn({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Ol("read method in Resolver stamp is not yet implemented.")}}}),YE=fn(GE,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>Kc(e.uri),async read(){throw new Ol("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Ol("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),hv=class extends Gi{},Nw=class extends hv{},{AbortController:ZE,AbortSignal:QE}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=ZE),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=QE);const XE=YE.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Ou,swaggerHTTPClientConfig:{}},init({swaggerHTTPClient:e=this.swaggerHTTPClient}={}){this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:o}=r,n=setTimeout(()=>{r.abort()},this.timeout),l=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",h=this.redirects===0?"error":"follow",m=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:o,userFetch:async(R,B)=>{let $=await fetch(R,B);try{$.headers.delete("Content-Type")}catch{$=new Response($.body,{...$,headers:new Headers($.headers)}),$.headers.delete("Content-Type")}return $},credentials:l,redirect:h,follow:m,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(E){throw new Nw(`Error downloading "${e.uri}"`,{cause:E})}finally{clearTimeout(n)}}}}),Dw=XE,Bw=(e,t=Cy)=>{if(wl(e))try{return t.fromRefract(JSON.parse(e))}catch{}return kf(e)&&Wy("element",e)?t.fromRefract(e):t.toElement(e)},Mw=vh.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const o=Bw(JSON.parse(r));return o.classes.push("result"),t.push(o),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),Lw=vh.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Gs.load(e.toString(),{schema:Oi}),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();try{const o=Gs.load(r,{schema:Oi});if(this.allowEmpty&&o===void 0)return t;const n=Bw(o);return n.classes.push("result"),t.push(n),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),Fw=vh.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new nv(...Nd.filterByFormat("generic"),...Nd.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const o=e.toString();return JSON.parse(o),this.detectionRegExp.test(o)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const o=JSON.parse(r),n=Iu.refract(o,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),$w=vh.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new nv(...Nd.filterByFormat("generic"),...Nd.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const o=e.toString();return Gs.load(o),this.detectionRegExp.test(o)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();try{const o=Gs.load(r,{schema:Oi});if(this.allowEmpty&&o===void 0)return t;const n=Iu.refract(o,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),eS=fn({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Ol("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var tS=Da(function(e,t){return J0(pg(e),t)});const rS=tS;var oS=st(10885);const aS=class extends Cu{constructor(t,r){super(t,r);Io(this,"value");r!==void 0&&(this.value=r.value)}},fv=fn({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new oS({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!as(e))throw new aS("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&hn(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Or.Om(this.generateId());return this.identityMap.set(e,t),t},forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)},generateId(){return this.uuid.randomUUID()}}}),Uw=(fv({length:6}),(e,t)=>{const r=new By({predicate:e,returnOnTrue:pn});return Bs(t,r),Tw(void 0,[0],r.result)}),qw=class extends Gi{},nS=class extends qw{},iS=class extends qw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},pm=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Dd=e=>{const t=ld(e);return rb("#",t)},mv=(e,t)=>{const r=(n=>{if(!pm(n))throw new iS(n);return n})(e),o=Uw(n=>mp(n)&&ro(n.$anchor)===r,t);if(pc(o))throw new nS(`Evaluation failed on token: "${r}"`);return o},sS=(e,t)=>{const r=new By({predicate:e});return Bs(t,r),new Or.G6(r.result)},cS=class extends Gi{},bv=class extends cS{},Kw=(e,t)=>{if(t.$ref===void 0)return;const r=ld(ro(t.$ref)),o=ro(t.meta.get("inherited$id"));return`${lc((n,l)=>Wi(n,op(ci(l))),e,[...o,ro(t.$ref)])}${r==="#"?"":r}`},wh=e=>{if(wh.cache.has(e))return wh.cache.get(e);const t=Xl.refract(e);return wh.cache.set(e,t),t};wh.cache=new WeakMap;const Cc=e=>hp(e)?wh(e):e,dm=(e,t)=>{const{cache:r}=dm,o=ci(e),n=E=>mp(E)&&E.$id!==void 0;if(!r.has(t)){const E=sS(n,t);r.set(t,Array.from(E))}const l=r.get(t).find(E=>((R,B)=>{if(B.$id===void 0)return;const $=ro(B.meta.get("inherited$id"));return lc((K,L)=>Wi(K,op(ci(L))),R,[...$,ro(B.$id)])})(o,E)===o);if(pc(l))throw new bv(`Evaluation failed on URI: "${e}"`);let h,m;return pm(Dd(e))?(h=mv,m=Dd(e)):(h=Gc,m=Ac(e)),h(m,l)};dm.cache=new WeakMap;const Bd=class extends lv{},lS=class extends hv{},Hw=class extends Nw{},uS=async(e,t)=>{const r=bh({uri:op(ci(e)),mediaType:t.parse.mediaType}),o=await(async(n,l)=>{const h=l.resolve.resolvers.map(E=>{const R=Object.create(E);return Object.assign(R,l.resolve.resolverOpts)}),m=await sv("canRead",[n,l],h);if(po(m))throw new Hw(n.uri);try{const{result:E}=await cv("read",[n],m);return E}catch(E){throw new hv(`Error while reading file "${n.uri}"`,{cause:E})}})(r,t);return(async(n,l)=>{const h=l.parse.parsers.map(E=>{const R=Object.create(E);return Object.assign(R,l.parse.parserOpts)}),m=await sv("canParse",[n,l],h);if(po(m))throw new Hw(n.uri);try{const{plugin:E,result:R}=await cv("parse",[n,l],m);return!E.allowEmpty&&R.isEmpty?Promise.reject(new uv(`Error while parsing file "${n.uri}". File is empty.`)):R}catch(E){throw new uv(`Error while parsing file "${n.uri}"`,{cause:E})}})(bh({...r,data:o}),t)};class vv extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(o=>o.has(t))}findItem(t){for(const r of this)for(const o of r)if(as(o)&&t(o))return o}}const yv=Bs[Symbol.for("nodejs.util.promisify.custom")],Ss=fv(),gm=fn({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null,refractCache:null},init({indirections:e=[],reference:t,namespace:r,options:o,ancestors:n=new vv,refractCache:l=new Map}){this.indirections=e,this.namespace=r,this.reference=t,this.options=o,this.ancestors=new vv(...n),this.refractCache=l},methods:{toBaseURI(e){return Wi(this.reference.uri,op(ci(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new lS(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(iv(t,"uri"));const o=await uS(Rs(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=bp({uri:t,value:To(o),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const l=bp({uri:`immutable://${t}`,value:o,depth:this.reference.depth+1});r.add(l)}return n},toAncestorLineage(e){const t=new Set(e.filter(as));return[new vv(...this.ancestors,t),t]},async ReferenceElement(e,t,r,o,n){if(this.indirections.includes(e))return!1;const[l,h]=this.toAncestorLineage([...n,r]),m=this.toBaseURI(ro(e.$ref)),E=ci(this.reference.uri)===m,R=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&R)return!1;const B=await this.toReference(ro(e.$ref)),$=Wi(m,ro(e.$ref));this.indirections.push(e);const K=Ac($);let L=Gc(K,B.value.result);if(L.id=Ss.identify(L),hp(L)){const re=ro(e.meta.get("referenced-element")),pe=`${re}-${ro(Ss.identify(L))}`;this.refractCache.has(pe)?L=this.refractCache.get(pe):ui(L)?(L=fp.refract(L),L.setMetaProperty("referenced-element",re),this.refractCache.set(pe,L)):(L=this.namespace.getElementClass(re).refract(L),this.refractCache.set(pe,L))}if(e===L)throw new Gi("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(l.includes(L)){if(B.refSet.circular=!0,this.options.dereference.circular==="error")throw new Gi("Circular reference detected");if(this.options.dereference.circular==="replace"){var H,f;const re=new Or.sI(L.id,{type:"reference",uri:B.uri,$ref:ro(e.$ref)}),pe=((H=(f=this.options.dereference.strategyOpts["openapi-3-1"])===null||f===void 0?void 0:f.circularReplacer)!==null&&H!==void 0?H:this.options.dereference.circularReplacer)(re);return Bi(r)?r.value=pe:Array.isArray(r)&&(r[t]=pe),!r&&pe}}const Y=ci(B.refSet.rootRef.uri)!==B.uri,V=["error","replace"].includes(this.options.dereference.circular);if((R||Y||Rd(L)||V)&&!l.includesCycle(L)){h.add(e);const re=gm({reference:B,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l});L=await yv(L,re,{keyMap:jl,nodeTypeGetter:Yc}),h.delete(e)}this.indirections.pop();const ne=Us(L);return ne.setMetaProperty("id",Ss.generateId()),ne.setMetaProperty("ref-fields",{$ref:ro(e.$ref),description:ro(e.description),summary:ro(e.summary)}),ne.setMetaProperty("ref-origin",B.uri),ne.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),zn(L)&&zn(ne)&&(e.hasKey("description")&&"description"in L&&(ne.remove("description"),ne.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in L&&(ne.remove("summary"),ne.set("summary",e.get("summary")))),Bi(r)?r.value=ne:Array.isArray(r)&&(r[t]=ne),!r&&ne},async PathItemElement(e,t,r,o,n){if(!hn(e.$ref))return;if(this.indirections.includes(e))return!1;const[l,h]=this.toAncestorLineage([...n,r]),m=this.toBaseURI(ro(e.$ref)),E=ci(this.reference.uri)===m,R=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&R)return;const B=await this.toReference(ro(e.$ref)),$=Wi(m,ro(e.$ref));this.indirections.push(e);const K=Ac($);let L=Gc(K,B.value.result);if(L.id=Ss.identify(L),hp(L)){const ne=`path-item-${ro(Ss.identify(L))}`;this.refractCache.has(ne)?L=this.refractCache.get(ne):(L=Ql.refract(L),this.refractCache.set(ne,L))}if(e===L)throw new Gi("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(l.includes(L)){if(B.refSet.circular=!0,this.options.dereference.circular==="error")throw new Gi("Circular reference detected");if(this.options.dereference.circular==="replace"){var H,f;const ne=new Or.sI(L.id,{type:"path-item",uri:B.uri,$ref:ro(e.$ref)}),re=((H=(f=this.options.dereference.strategyOpts["openapi-3-1"])===null||f===void 0?void 0:f.circularReplacer)!==null&&H!==void 0?H:this.options.dereference.circularReplacer)(ne);return Bi(r)?r.value=re:Array.isArray(r)&&(r[t]=re),!r&&re}}const Y=ci(B.refSet.rootRef.uri)!==B.uri,V=["error","replace"].includes(this.options.dereference.circular);if((R||Y||fh(L)&&hn(L.$ref)||V)&&!l.includesCycle(L)){h.add(e);const ne=gm({reference:B,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l});L=await yv(L,ne,{keyMap:jl,nodeTypeGetter:Yc}),h.delete(e)}if(this.indirections.pop(),fh(L)){const ne=new Ql([...L.content],To(L.meta),To(L.attributes));ne.setMetaProperty("id",Ss.generateId()),e.forEach((re,pe,ve)=>{ne.remove(ro(pe)),ne.content.push(ve)}),ne.remove("$ref"),ne.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),ne.setMetaProperty("ref-origin",B.uri),ne.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),L=ne}return Bi(r)?r.value=L:Array.isArray(r)&&(r[t]=L),r?void 0:L},async LinkElement(e,t,r){if(!hn(e.operationRef)&&!hn(e.operationId))return;if(hn(e.operationRef)&&hn(e.operationId))throw new Gi("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(hn(e.operationRef)){var n;const h=Ac(ro(e.operationRef)),m=this.toBaseURI(ro(e.operationRef)),E=ci(this.reference.uri)===m,R=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&R)return;const B=await this.toReference(ro(e.operationRef));if(o=Gc(h,B.value.result),hp(o)){const K=`operation-${ro(Ss.identify(o))}`;this.refractCache.has(K)?o=this.refractCache.get(K):(o=hh.refract(o),this.refractCache.set(K,o))}o=Us(o),o.setMetaProperty("ref-origin",B.uri);const $=Us(e);return(n=$.operationRef)===null||n===void 0||n.meta.set("operation",o),Bi(r)?r.value=$:Array.isArray(r)&&(r[t]=$),r?void 0:$}if(hn(e.operationId)){var l;const h=ro(e.operationId),m=await this.toReference(Rs(this.reference.uri));if(o=Uw(R=>Ow(R)&&as(R.operationId)&&R.operationId.equals(h),m.value.result),pc(o))throw new Gi(`OperationElement(operationId=${h}) not found.`);const E=Us(e);return(l=E.operationId)===null||l===void 0||l.meta.set("operation",o),Bi(r)?r.value=E:Array.isArray(r)&&(r[t]=E),r?void 0:E}},async ExampleElement(e,t,r){if(!hn(e.externalValue))return;if(e.hasKey("value")&&hn(e.externalValue))throw new Gi("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(ro(e.externalValue)),n=ci(this.reference.uri)===o,l=!n;if(!this.options.resolve.internal&&n||!this.options.resolve.external&&l)return;const h=await this.toReference(ro(e.externalValue)),m=Us(h.value.result);m.setMetaProperty("ref-origin",h.uri);const E=Us(e);return E.value=m,Bi(r)?r.value=E:Array.isArray(r)&&(r[t]=E),r?void 0:E},async SchemaElement(e,t,r,o,n){if(!hn(e.$ref))return;if(this.indirections.includes(e))return!1;const[l,h]=this.toAncestorLineage([...n,r]);let m=await this.toReference(Rs(this.reference.uri)),{uri:E}=m;const R=Kw(E,e),B=ci(R),$=bh({uri:B}),K=rS(ve=>ve.canRead($),this.options.resolve.resolvers),L=!K;let H,f=ci(this.reference.uri)===R,Y=!f;this.indirections.push(e);try{if(K||L){E=this.toBaseURI(R);const ve=R,he=Cc(m.value.result);if(H=dm(ve,he),H=Cc(H),H.id=Ss.identify(H),!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return}else{if(E=this.toBaseURI(R),f=ci(this.reference.uri)===E,Y=!f,!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return;m=await this.toReference(Rs(R));const ve=Ac(R),he=Cc(m.value.result);H=Gc(ve,he),H=Cc(H),H.id=Ss.identify(H)}}catch(ve){if(!(L&&ve instanceof bv))throw ve;if(pm(Dd(R))){if(f=ci(this.reference.uri)===E,Y=!f,!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return;m=await this.toReference(Rs(R));const he=Dd(R),Ee=Cc(m.value.result);H=mv(he,Ee),H=Cc(H),H.id=Ss.identify(H)}else{if(E=this.toBaseURI(R),f=ci(this.reference.uri)===E,Y=!f,!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return;m=await this.toReference(Rs(R));const he=Ac(R),Ee=Cc(m.value.result);H=Gc(he,Ee),H=Cc(H),H.id=Ss.identify(H)}}if(e===H)throw new Gi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(l.includes(H)){if(m.refSet.circular=!0,this.options.dereference.circular==="error")throw new Gi("Circular reference detected");if(this.options.dereference.circular==="replace"){var V,ne;const ve=new Or.sI(H.id,{type:"json-schema",uri:m.uri,$ref:ro(e.$ref)}),he=((V=(ne=this.options.dereference.strategyOpts["openapi-3-1"])===null||ne===void 0?void 0:ne.circularReplacer)!==null&&V!==void 0?V:this.options.dereference.circularReplacer)(ve);return Bi(r)?r.value=he:Array.isArray(r)&&(r[t]=he),!r&&he}}const re=ci(m.refSet.rootRef.uri)!==m.uri,pe=["error","replace"].includes(this.options.dereference.circular);if((Y||re||mp(H)&&hn(H.$ref)||pe)&&!l.includesCycle(H)){h.add(e);const ve=gm({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l});H=await yv(H,ve,{keyMap:jl,nodeTypeGetter:Yc}),h.delete(e)}if(this.indirections.pop(),tv(H)){const ve=To(H);return ve.setMetaProperty("id",Ss.generateId()),ve.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),ve.setMetaProperty("ref-origin",m.uri),ve.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),Bi(r)?r.value=ve:Array.isArray(r)&&(r[t]=ve),!r&&ve}if(mp(H)){const ve=new Xl([...H.content],To(H.meta),To(H.attributes));ve.setMetaProperty("id",Ss.generateId()),e.forEach((he,Ee,Ke)=>{ve.remove(ro(Ee)),ve.content.push(Ke)}),ve.remove("$ref"),ve.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),ve.setMetaProperty("ref-origin",m.uri),ve.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),H=ve}return Bi(r)?r.value=H:Array.isArray(r)&&(r[t]=H),r?void 0:H}}}),wv=gm,pS=Bs[Symbol.for("nodejs.util.promisify.custom")],dS=fn(eS,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return e.mediaType!=="text/plain"?Nd.includes(e.mediaType):jw((t=e.parseResult)===null||t===void 0?void 0:t.result)},async dereference(e,t){var r;const o=Mg(av),n=(r=t.dereference.refSet)!==null&&r!==void 0?r:mh(),l=mh();let h,m=n;n.has(e.uri)?h=n.find(iv(e.uri,"uri")):(h=bp({uri:e.uri,value:e.parseResult}),n.add(h)),t.dereference.immutable&&(n.refs.map(B=>bp({...B,value:To(B.value)})).forEach(B=>l.add(B)),h=l.find(B=>B.uri===e.uri),m=l);const E=wv({reference:h,namespace:o,options:t}),R=await pS(m.rootRef.value,E,{keyMap:jl,nodeTypeGetter:Yc});return t.dereference.immutable&&(l.refs.filter(B=>B.uri.startsWith("immutable://")).map(B=>bp({...B,uri:B.uri.replace(/^immutable:\/\//,"")})).forEach(B=>n.add(B)),h=n.find(B=>B.uri===e.uri),m=n),t.dereference.refSet===null&&n.clean(),l.clean(),R}}}),Vw=dS,Zc=e=>{const t=(r=>r.slice(2))(e);return t.reduce((r,o,n)=>{if(Bi(o)){const l=String(ro(o.key));r.push(l)}else if(dc(t[n-2])){const l=t[n-2].content.indexOf(o);r.push(l)}return r},[])},hm=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t},gS=Di("SchemaRefError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),{wrapError:kv}=hd,xv=Bs[Symbol.for("nodejs.util.promisify.custom")],vp=fv(),Ev=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(ro(vp.identify(e))),fm=wv.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init({allowMetaPatches:e=this.allowMetaPatches,useCircularStructures:t=this.useCircularStructures,basePath:r=this.basePath}){this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r},methods:{async ReferenceElement(e,t,r,o,n){try{var l;const[B,$]=this.toAncestorLineage([...n,r]);if(Od(["cycle"],e.$ref)||B.includesCycle(e))return!1;const K=this.toBaseURI(ro(e.$ref)),L=ci(this.reference.uri)===K,H=!L;if(!this.options.resolve.internal&&L||!this.options.resolve.external&&H)return!1;const f=await this.toReference(ro(e.$ref)),Y=Wi(K,ro(e.$ref));this.indirections.push(e);const V=Ac(Y);let ne=Gc(V,f.value.result);if(hp(ne)){const ve=ro(e.meta.get("referenced-element")),he=`${ve}-${ro(vp.identify(ne))}`;this.refractCache.has(he)?ne=this.refractCache.get(he):ui(ne)?(ne=fp.refract(ne),ne.setMetaProperty("referenced-element",ve),this.refractCache.set(he,ne)):(ne=this.namespace.getElementClass(ve).refract(ne),this.refractCache.set(he,ne))}if(this.indirections.includes(ne))throw new Gi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&B.includes(ne)){if(Kc(K)||Ll(K)){const ve=new fp({$ref:Y},To(e.meta),To(e.attributes));return ve.get("$ref").classes.push("cycle"),ve}return!1}$.add(e);const re=fm({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:B,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"$ref"]});ne=await xv(ne,re,{keyMap:jl,nodeTypeGetter:Yc}),$.delete(e),this.indirections.pop();const pe=ve=>{const he=Us(ve);if(he.setMetaProperty("ref-fields",{$ref:ro(e.$ref),description:ro(e.description),summary:ro(e.summary)}),he.setMetaProperty("ref-origin",f.uri),he.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),zn(ve)&&(e.hasKey("description")&&"description"in ve&&(he.remove("description"),he.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in ve&&(he.remove("summary"),he.set("summary",e.get("summary")))),this.allowMetaPatches&&zn(he)&&!he.hasKey("$$ref")){const Ee=Wi(K,Y);he.set("$$ref",Ee)}return he};if(B.includes(e)||B.includes(ne)){var h;const ve=(h=B.findItem(Ev(e)))!==null&&h!==void 0?h:pe(ne);return Bi(r)?r.value=ve:Array.isArray(r)&&(r[t]=ve),!1}return pe(ne)}catch(B){var m,E,R;const $=hm(B),K=kv($,{baseDoc:this.reference.uri,$ref:ro(e.$ref),pointer:Ac(ro(e.$ref)),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...Zc([...n,r,e]),"$ref"]});return void((E=this.options.dereference.dereferenceOpts)===null||E===void 0||(E=E.errors)===null||E===void 0||(R=E.push)===null||R===void 0||R.call(E,K))}},async PathItemElement(e,t,r,o,n){try{var l;const[B,$]=this.toAncestorLineage([...n,r]);if(!hn(e.$ref))return;if(Od(["cycle"],e.$ref)||B.includesCycle(e))return!1;const K=this.toBaseURI(ro(e.$ref)),L=ci(this.reference.uri)===K,H=!L;if(!this.options.resolve.internal&&L||!this.options.resolve.external&&H)return;const f=await this.toReference(ro(e.$ref)),Y=Wi(K,ro(e.$ref));this.indirections.push(e);const V=Ac(Y);let ne=Gc(V,f.value.result);if(hp(ne)){const ve=`pathItem-${ro(vp.identify(ne))}`;this.refractCache.has(ve)?ne=this.refractCache.get(ve):(ne=Ql.refract(ne),this.refractCache.set(ve,ne))}if(this.indirections.includes(ne))throw new Gi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&B.includes(ne)){if(Kc(K)||Ll(K)){const ve=new Ql({$ref:Y},To(e.meta),To(e.attributes));return ve.get("$ref").classes.push("cycle"),ve}return!1}$.add(e);const re=fm({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:B,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"$ref"]});ne=await xv(ne,re,{keyMap:jl,nodeTypeGetter:Yc}),$.delete(e),this.indirections.pop();const pe=ve=>{const he=new Ql([...ve.content],To(ve.meta),To(ve.attributes));if(e.forEach((Ee,Ke,Fe)=>{he.remove(ro(Ke)),he.content.push(Fe)}),he.remove("$ref"),he.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),he.setMetaProperty("ref-origin",f.uri),he.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),this.allowMetaPatches&&he.get("$$ref")===void 0){const Ee=Wi(K,Y);he.set("$$ref",Ee)}return he};if(B.includes(e)||B.includes(ne)){var h;const ve=(h=B.findItem(Ev(e)))!==null&&h!==void 0?h:pe(ne);return Bi(r)?r.value=ve:Array.isArray(r)&&(r[t]=ve),!1}return pe(ne)}catch(B){var m,E,R;const $=hm(B),K=kv($,{baseDoc:this.reference.uri,$ref:ro(e.$ref),pointer:Ac(ro(e.$ref)),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...Zc([...n,r,e]),"$ref"]});return void((E=this.options.dereference.dereferenceOpts)===null||E===void 0||(E=E.errors)===null||E===void 0||(R=E.push)===null||R===void 0||R.call(E,K))}},async SchemaElement(e,t,r,o,n){try{var l;const[B,$]=this.toAncestorLineage([...n,r]);if(!hn(e.$ref))return;if(Od(["cycle"],e.$ref)||B.includesCycle(e))return!1;let K=await this.toReference(Rs(this.reference.uri)),{uri:L}=K;const H=Kw(L,e),f=ci(H),Y=bh({uri:f}),V=!this.options.resolve.resolvers.some(Ke=>Ke.canRead(Y)),ne=!V,re=Ke=>ci(this.reference.uri)===Ke,pe=Ke=>!re(Ke);let ve;this.indirections.push(e);try{if(V||ne)ve=dm(H,Cc(K.value.result));else{if(L=this.toBaseURI(ro(H)),!this.options.resolve.internal&&re(L)||!this.options.resolve.external&&pe(L))return;K=await this.toReference(Rs(H));const Ke=Ac(H);ve=Cc(Gc(Ke,K.value.result))}}catch(Ke){if(!(ne&&Ke instanceof bv))throw Ke;if(pm(Dd(H))){if(L=this.toBaseURI(ro(H)),!this.options.resolve.internal&&re(L)||!this.options.resolve.external&&pe(L))return;K=await this.toReference(Rs(H));const Fe=Dd(H);ve=mv(Fe,Cc(K.value.result))}else{if(L=this.toBaseURI(ro(H)),!this.options.resolve.internal&&re(L)||!this.options.resolve.external&&pe(L))return;K=await this.toReference(Rs(H));const Fe=Ac(H);ve=Cc(Gc(Fe,K.value.result))}}if(this.indirections.includes(ve))throw new Gi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&B.includes(ve)){if(Kc(L)||Ll(L)){const Ke=Wi(L,H),Fe=new Xl({$ref:Ke},To(e.meta),To(e.attributes));return Fe.get("$ref").classes.push("cycle"),Fe}return!1}$.add(e);const he=fm({reference:K,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:B,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"$ref"]});if(ve=await xv(ve,he,{keyMap:jl,nodeTypeGetter:Yc}),$.delete(e),this.indirections.pop(),tv(ve)){const Ke=To(ve);return Ke.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),Ke.setMetaProperty("ref-origin",K.uri),Ke.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),Ke}const Ee=Ke=>{const Fe=new Xl([...Ke.content],To(Ke.meta),To(Ke.attributes));if(e.forEach((xe,Ye,It)=>{Fe.remove(ro(Ye)),Fe.content.push(It)}),Fe.remove("$ref"),Fe.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),Fe.setMetaProperty("ref-origin",K.uri),Fe.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),this.allowMetaPatches&&Fe.get("$$ref")===void 0){const xe=Wi(L,H);Fe.set("$$ref",xe)}return Fe};if(B.includes(e)||B.includes(ve)){var h;const Ke=(h=B.findItem(Ev(e)))!==null&&h!==void 0?h:Ee(ve);return Bi(r)?r.value=Ke:Array.isArray(r)&&(r[t]=Ke),!1}return Ee(ve)}catch(B){var m,E,R;const $=hm(B),K=new gS(`Could not resolve reference: ${$.message}`,{baseDoc:this.reference.uri,$ref:ro(e.$ref),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...Zc([...n,r,e]),"$ref"]},$);return void((E=this.options.dereference.dereferenceOpts)===null||E===void 0||(E=E.errors)===null||E===void 0||(R=E.push)===null||R===void 0||R.call(E,K))}},async LinkElement(){},async ExampleElement(e,t,r,o,n){try{return await wv.compose.methods.ExampleElement.call(this,e,t,r,o,n)}catch(E){var l,h,m;const R=hm(E),B=kv(R,{baseDoc:this.reference.uri,externalValue:ro(e.externalValue),fullPath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"externalValue"]});return void((h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(m=h.push)===null||m===void 0||m.call(h,B))}}}}),hS=fm,Sv=Vw.compose.bind(),fS=Sv({init({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,o,n){const l=this.macroOperation===null?null:ro(this.macroOperation),h=ro(e);try{const R=this.parameterMacro(l,h);e.set("default",R)}catch(R){var m,E;const B=new Error(R,{cause:R});B.fullPath=Zc([...n,r]),(m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(E=m.push)===null||E===void 0||E.call(m,B)}}}}}),mS=fS,bS=Sv({init({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,o,n){e.properties!==void 0&&zn(e.properties)&&e.properties.forEach(l=>{if(zn(l))try{const E=this.modelPropertyMacro(ro(l));l.set("default",E)}catch(E){var h,m;const R=new Error(E,{cause:E});R.fullPath=[...Zc([...n,r,e]),"properties"],(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(m=h.push)===null||m===void 0||m.call(h,R)}})}}}}),vS=bS,yS=Sv({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,o,n){if(e.allOf===void 0)return;if(!dc(e.allOf)){var l,h;const B=new TypeError("allOf must be an array");return B.fullPath=[...Zc([...n,r,e]),"allOf"],void((l=this.options.dereference.dereferenceOpts)===null||l===void 0||(l=l.errors)===null||l===void 0||(h=l.push)===null||h===void 0||h.call(l,B))}if(e.allOf.isEmpty)return new Xl(e.content.filter(B=>ro(B.key)!=="allOf"),To(e.meta),To(e.attributes));if(!e.allOf.content.every(mp)){var m,E;const B=new TypeError("Elements in allOf must be objects");return B.fullPath=[...Zc([...n,r,e]),"allOf"],void((m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(E=m.push)===null||E===void 0||E.call(m,B))}const R=El.all([...e.allOf.content,e]);return e.hasKey("$$ref")||R.remove("$$ref"),e.hasKey("example")&&(R.getMember("example").value=e.get("example")),e.hasKey("examples")&&(R.getMember("examples").value=e.get("examples")),R.remove("allOf"),R}}}}),wS=yS,kS=Bs[Symbol.for("nodejs.util.promisify.custom")],xS=Ef[Symbol.for("nodejs.util.promisify.custom")],ES=Vw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:o=this.modelPropertyMacro,mode:n=this.mode,ancestors:l=[]}={}){this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=o,this.mode=n,this.ancestors=[...l]},methods:{async dereference(e,t){var r;const o=[],n=Mg(av),l=(r=t.dereference.refSet)!==null&&r!==void 0?r:mh();let h;l.has(e.uri)?h=l.find(B=>B.uri===e.uri):(h=bp({uri:e.uri,value:e.parseResult}),l.add(h));const m=hS({reference:h,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(o.push(m),typeof this.parameterMacro=="function"){const B=mS({parameterMacro:this.parameterMacro,options:t});o.push(B)}if(typeof this.modelPropertyMacro=="function"){const B=vS({modelPropertyMacro:this.modelPropertyMacro,options:t});o.push(B)}if(this.mode!=="strict"){const B=wS({options:t});o.push(B)}const E=xS(o,{nodeTypeGetter:Yc}),R=await kS(l.rootRef.value,E,{keyMap:jl,nodeTypeGetter:Yc});return t.dereference.refSet===null&&l.clean(),R}}}),Ww=ES,_v=async e=>{const{spec:t,timeout:r,redirects:o,requestInterceptor:n,responseInterceptor:l,pathDiscriminator:h=[],allowMetaPatches:m=!1,useCircularStructures:E=!1,skipNormalization:R=!1,parameterMacro:B=null,modelPropertyMacro:$=null,mode:K="non-strict"}=e;try{const{cache:L}=_v,H=Kc(rp())?rp():Hc,f=dp(e),Y=Wi(H,f);let V;L.has(t)?V=L.get(t):(V=Iu.refract(t),V.classes.push("result"),L.set(t,V));const ne=new le([V]),re=e2(h),pe=re===""?"":`#${re}`,ve=Gc(re,V),he=bp({uri:Y,value:ne}),Ee=mh({refs:[he]});re!==""&&(Ee.rootRef=null);const Ke=[new Set([ve])],Fe=[],xe=await(async(Bt,gt={})=>{const Xt=Iw(vE,gt);return OE(Bt,Xt)})(ve,{resolve:{baseURI:`${Y}${pe}`,resolvers:[Dw({timeout:r||1e4,redirects:o||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:l}},strategies:[zE()]},parse:{mediaType:Nd.latest(),parsers:[Fw({allowEmpty:!1,sourceMap:!1}),$w({allowEmpty:!1,sourceMap:!1}),Mw({allowEmpty:!1,sourceMap:!1}),Lw({allowEmpty:!1,sourceMap:!1}),CE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Ww({allowMetaPatches:m,useCircularStructures:E,parameterMacro:B,modelPropertyMacro:$,mode:K,ancestors:Ke})],refSet:Ee,dereferenceOpts:{errors:Fe},immutable:!1}}),Ye=((Bt,gt,Xt)=>new Jx({element:Xt}).transclude(Bt,gt))(ve,xe,V),It=R?Ye:Rw(Ye);return{spec:ro(It),errors:Fe}}catch(L){if(L instanceof ob||L instanceof Fg)return{spec:null,errors:[]};throw L}};_v.cache=new WeakMap;const SS=_v,_S={name:"openapi-3-1-apidom",match:({spec:e})=>Ed(e),normalize:({spec:e})=>yh(Rw)(e),resolve:async e=>SS(e)},Jw=_S,jv=e=>async t=>(async r=>{const{spec:o,requestInterceptor:n,responseInterceptor:l}=r,h=dp(r),m=wd(r),E=o||await ju(m,{requestInterceptor:n,responseInterceptor:l})(h),R={...r,spec:E};return r.strategies.find(B=>B.match(R)).resolve(R)})({...e,...t}),jS=jv({strategies:[Jl,_d,gp]});var OS=st(29225);function Gw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yw(e){var t,r;return Gw(e)!==!1&&((t=e.constructor)===void 0||Gw(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}const AS={body:function({req:e,value:t}){t!==void 0&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},r!==void 0&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){const o=r.name;e.query[o]=e.query[o]||{},e.query[o].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r}){t!==void 0&&(e.url=e.url.replace(new RegExp(`{${r.name}}`,"g"),encodeURIComponent(t)))},formData:function({req:e,value:t,parameter:r}){if(t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){e.form=e.form||{};const o=r.name;e.form[o]=e.form[o]||{},e.form[o].allowEmptyValue=!0}}};function mm(e,t){return t.includes("application/json")?typeof e=="string"?e:JSON.stringify(e):e.toString()}function CS({req:e,value:t,parameter:r}){const{name:o,style:n,explode:l,content:h}=r;if(t!==void 0)if(h){const m=Object.keys(h)[0];e.url=e.url.split(`{${o}}`).join(Hl(mm(t,m)))}else{const m=Ig({key:r.name,value:t,style:n||"simple",explode:l||!1,escape:"reserved"});e.url=e.url.replace(new RegExp(`{${o}}`,"g"),m)}}function PS({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const o=mm(t,Object.keys(r.content)[0]);if(o)e.query[r.name]=o;else if(r.allowEmptyValue){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}else if(t===!1&&(t="false"),t===0&&(t="0"),t){const{style:o,explode:n,allowReserved:l}=r;e.query[r.name]={value:t,serializationOption:{style:o,explode:n,allowReserved:l}}}else if(r.allowEmptyValue&&t!==void 0){const o=r.name;e.query[o]=e.query[o]||{},e.query[o].allowEmptyValue=!0}}const IS=["accept","authorization","content-type"];function zS({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(IS.indexOf(t.name.toLowerCase())>-1))if(r!==void 0&&t.content){const o=Object.keys(t.content)[0];e.headers[t.name]=mm(r,o)}else r===void 0||Array.isArray(r)&&r.length===0||(e.headers[t.name]=Ig({key:t.name,value:r,style:t.style||"simple",explode:t.explode!==void 0&&t.explode,escape:!1}))}function TS({req:e,parameter:t,value:r}){e.headers=e.headers||{};const o=typeof r;if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${mm(r,n)}`}else if(r!==void 0&&(!Array.isArray(r)||r.length!==0)){const n=o==="object"&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=n+Ig({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode!==void 0&&t.explode})}}const RS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:NS}=RS,Zw=NS;function DS(e,t){const{operation:r,requestBody:o,securities:n,spec:l,attachContentTypeForEmptyPayload:h}=e;let{requestContentType:m}=e;t=function({request:L,securities:H={},operation:f={},spec:Y}){var V;const ne={...L},{authorized:re={}}=H,pe=f.security||Y.security||[],ve=re&&!!Object.keys(re).length,he=(Y==null||(V=Y.components)===null||V===void 0?void 0:V.securitySchemes)||{};return ne.headers=ne.headers||{},ne.query=ne.query||{},!Object.keys(H).length||!ve||!pe||Array.isArray(f.security)&&!f.security.length?L:(pe.forEach(Ee=>{Object.keys(Ee).forEach(Ke=>{const Fe=re[Ke],xe=he[Ke];if(!Fe)return;const Ye=Fe.value||Fe,{type:It}=xe;if(Fe){if(It==="apiKey")xe.in==="query"&&(ne.query[xe.name]=Ye),xe.in==="header"&&(ne.headers[xe.name]=Ye),xe.in==="cookie"&&(ne.cookies[xe.name]=Ye);else if(It==="http"){if(/^basic$/i.test(xe.scheme)){const Bt=Ye.username||"",gt=Ye.password||"",Xt=Zw(`${Bt}:${gt}`);ne.headers.Authorization=`Basic ${Xt}`}/^bearer$/i.test(xe.scheme)&&(ne.headers.Authorization=`Bearer ${Ye}`)}else if(It==="oauth2"||It==="openIdConnect"){const Bt=Fe.token||{},gt=Bt[xe["x-tokenName"]||"access_token"];let Xt=Bt.token_type;Xt&&Xt.toLowerCase()!=="bearer"||(Xt="Bearer"),ne.headers.Authorization=`${Xt} ${gt}`}}})}),ne)}({request:t,securities:n,operation:r,spec:l});const E=r.requestBody||{},R=Object.keys(E.content||{}),B=m&&R.indexOf(m)>-1;if(o||h){if(m&&B)t.headers["Content-Type"]=m;else if(!m){const L=R[0];L&&(t.headers["Content-Type"]=L,m=L)}}else m&&B&&(t.headers["Content-Type"]=m);if(!e.responseContentType&&r.responses){const L=Object.entries(r.responses).filter(([H,f])=>{const Y=parseInt(H,10);return Y>=200&&Y<300&&Yw(f.content)}).reduce((H,[,f])=>H.concat(Object.keys(f.content)),[]);L.length>0&&(t.headers.accept=L.join(", "))}if(o)if(m){if(R.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(typeof o=="object"){var $,K;const L=($=(K=E.content[m])===null||K===void 0?void 0:K.encoding)!==null&&$!==void 0?$:{};t.form={},Object.keys(o).forEach(H=>{t.form[H]={value:o[H],encoding:L[H]||{}}})}else t.form=o;else t.body=o}else t.body=o;return t}function BS(e,t){const{spec:r,operation:o,securities:n,requestContentType:l,responseContentType:h,attachContentTypeForEmptyPayload:m}=e;if(t=function({request:E,securities:R={},operation:B={},spec:$}){const K={...E},{authorized:L={},specSecurity:H=[]}=R,f=B.security||H,Y=L&&!!Object.keys(L).length,V=$.securityDefinitions;return K.headers=K.headers||{},K.query=K.query||{},!Object.keys(R).length||!Y||!f||Array.isArray(B.security)&&!B.security.length?E:(f.forEach(ne=>{Object.keys(ne).forEach(re=>{const pe=L[re];if(!pe)return;const{token:ve}=pe,he=pe.value||pe,Ee=V[re],{type:Ke}=Ee,Fe=Ee["x-tokenName"]||"access_token",xe=ve&&ve[Fe];let Ye=ve&&ve.token_type;if(pe)if(Ke==="apiKey"){const It=Ee.in==="query"?"query":"headers";K[It]=K[It]||{},K[It][Ee.name]=he}else if(Ke==="basic")if(he.header)K.headers.authorization=he.header;else{const It=he.username||"",Bt=he.password||"";he.base64=Zw(`${It}:${Bt}`),K.headers.authorization=`Basic ${he.base64}`}else Ke==="oauth2"&&xe&&(Ye=Ye&&Ye.toLowerCase()!=="bearer"?Ye:"Bearer",K.headers.authorization=`${Ye} ${xe}`)})}),K)}({request:t,securities:n,operation:o,spec:r}),t.body||t.form||m)l?t.headers["Content-Type"]=l:Array.isArray(o.consumes)?[t.headers["Content-Type"]]=o.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:o.parameters&&o.parameters.filter(E=>E.type==="file").length?t.headers["Content-Type"]="multipart/form-data":o.parameters&&o.parameters.filter(E=>E.in==="formData").length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(l){const E=o.parameters&&o.parameters.filter(B=>B.in==="body").length>0,R=o.parameters&&o.parameters.filter(B=>B.in==="formData").length>0;(E||R)&&(t.headers["Content-Type"]=l)}return!h&&Array.isArray(o.produces)&&o.produces.length>0&&(t.headers.accept=o.produces.join(", ")),t}function Qw(e,t){return`${t.toLowerCase()}-${e}`}function Xw(e,t,r){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:o}=e;for(const n in o)for(const l in o[n]){if(l.toUpperCase()==="PARAMETERS")continue;const h=o[n][l];if(!h||typeof h!="object")continue;const m={spec:e,pathName:n,method:l.toUpperCase(),operation:h},E=t(m);if(r&&E)return m}}function MS(e,t){return e&&e.paths?function(r,o){return Xw(r,o,!0)||null}(e,({pathName:r,method:o,operation:n})=>{if(!n||typeof n!="object")return!1;const l=n.operationId;return[Kl(n,r,o),Qw(r,o),l].some(h=>h&&h===t)}):null}const ek=e=>Array.isArray(e)?e:[],Ov=e=>{try{return new URL(e)}catch{const t=new URL(e,Hc),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}},LS=Di("OperationNotFoundError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),FS={buildRequest:Av};function tk({http:e,fetch:t,spec:r,operationId:o,pathName:n,method:l,parameters:h,securities:m,...E}){const R=e||t||Ou;n&&l&&!o&&(o=Qw(n,l));const B=FS.buildRequest({spec:r,operationId:o,parameters:h,securities:m,http:R,...E});return B.body&&(Yw(B.body)||Array.isArray(B.body))&&(B.body=JSON.stringify(B.body)),R(B)}function Av(e){const{spec:t,operationId:r,responseContentType:o,scheme:n,requestInterceptor:l,responseInterceptor:h,contextUrl:m,userFetch:E,server:R,serverVariables:B,http:$,signal:K}=e;let{parameters:L,parameterBuilders:H}=e;const f=Wl(t);H||(H=f?C:AS);let Y={url:"",credentials:$&&$.withCredentials?"include":"same-origin",headers:{},cookies:{}};K&&(Y.signal=K),l&&(Y.requestInterceptor=l),h&&(Y.responseInterceptor=h),E&&(Y.userFetch=E);const V=MS(t,r);if(!V)throw new LS(`Operation ${r} not found`);const{operation:ne={},method:re,pathName:pe}=V;if(Y.url+=rk({spec:t,scheme:n,contextUrl:m,server:R,serverVariables:B,pathName:pe,method:re}),!r)return delete Y.cookies,Y;Y.url+=pe,Y.method=`${re}`.toUpperCase(),L=L||{};const ve=t.paths[pe]||{};o&&(Y.headers.accept=o);const he=(Ke=>{const Fe={};Ke.forEach(Ye=>{Fe[Ye.in]||(Fe[Ye.in]={}),Fe[Ye.in][Ye.name]=Ye});const xe=[];return Object.keys(Fe).forEach(Ye=>{Object.keys(Fe[Ye]).forEach(It=>{xe.push(Fe[Ye][It])})}),xe})([].concat(ek(ne.parameters)).concat(ek(ve.parameters)));he.forEach(Ke=>{const Fe=H[Ke.in];let xe;if(Ke.in==="body"&&Ke.schema&&Ke.schema.properties&&(xe=L),xe=Ke&&Ke.name&&L[Ke.name],xe===void 0?xe=Ke&&Ke.name&&L[`${Ke.in}.${Ke.name}`]:((Ye,It)=>It.filter(Bt=>Bt.name===Ye))(Ke.name,he).length>1&&console.warn(`Parameter '${Ke.name}' is ambiguous because the defined spec has more than one parameter with the name: '${Ke.name}' and the passed-in parameter values did not define an 'in' value.`),xe!==null){if(Ke.default!==void 0&&xe===void 0&&(xe=Ke.default),xe===void 0&&Ke.required&&!Ke.allowEmptyValue)throw new Error(`Required parameter ${Ke.name} is not provided`);if(f&&Ke.schema&&Ke.schema.type==="object"&&typeof xe=="string")try{xe=JSON.parse(xe)}catch{throw new Error("Could not parse object parameter value string as JSON")}Fe&&Fe({req:Y,parameter:Ke,value:xe,operation:ne,spec:t})}});const Ee={...e,operation:ne};if(Y=f?DS(Ee,Y):BS(Ee,Y),Y.cookies&&Object.keys(Y.cookies).length){const Ke=Object.keys(Y.cookies).reduce((Fe,xe)=>{const Ye=Y.cookies[xe];return Fe+(Fe?"&":"")+OS.serialize(xe,Ye)},"");Y.headers.Cookie=Ke}return Y.cookies&&delete Y.cookies,Vl(Y),Y}const Cv=e=>e?e.replace(/\W/g,""):null;function rk(e){return Wl(e.spec)?function({spec:t,pathName:r,method:o,server:n,contextUrl:l,serverVariables:h={}}){var m,E;let R,B=[],$="";const K=t==null||(m=t.paths)===null||m===void 0||(m=m[r])===null||m===void 0||(m=m[(o||"").toLowerCase()])===null||m===void 0?void 0:m.servers,L=t==null||(E=t.paths)===null||E===void 0||(E=E[r])===null||E===void 0?void 0:E.servers,H=t==null?void 0:t.servers;return B=Pv(K)?K:Pv(L)?L:Pv(H)?H:[pd],n&&(R=B.find(f=>f.url===n),R&&($=n)),$||([R]=B,$=R.url),$.includes("{")&&function(Y){const V=[],ne=/{([^}]+)}/g;let re;for(;re=ne.exec(Y);)V.push(re[1]);return V}($).forEach(Y=>{if(R.variables&&R.variables[Y]){const V=R.variables[Y],ne=h[Y]||V.default,re=new RegExp(`{${Y}}`,"g");$=$.replace(re,ne)}}),function(f="",Y=""){const V=Ov(f&&Y?Wi(Y,f):f),ne=Ov(Y),re=Cv(V.protocol)||Cv(ne.protocol),pe=V.host||ne.host,ve=V.pathname;let he;return he=re&&pe?`${re}://${pe+ve}`:ve,he[he.length-1]==="/"?he.slice(0,-1):he}($,l)}(e):function({spec:t,scheme:r,contextUrl:o=""}){const n=Ov(o),l=Array.isArray(t.schemes)?t.schemes[0]:null,h=r||l||Cv(n.protocol)||"http",m=t.host||n.host||"",E=t.basePath||"";let R;return R=h&&m?`${h}://${m+E}`:E,R[R.length-1]==="/"?R.slice(0,-1):R}(e)}const Pv=e=>Array.isArray(e)&&e.length>0,ok=e=>async(t,r,o={})=>(async(n,l,h={})=>{const{returnEntireTree:m,baseDoc:E,requestInterceptor:R,responseInterceptor:B,parameterMacro:$,modelPropertyMacro:K,useCircularStructures:L,strategies:H}=h,f={spec:n,pathDiscriminator:l,baseDoc:E,requestInterceptor:R,responseInterceptor:B,parameterMacro:$,modelPropertyMacro:K,useCircularStructures:L,strategies:H},Y=H.find(ne=>ne.match(f)).normalize(f),V=await jS({...f,spec:Y,allowMetaPatches:!0,skipNormalization:!0});return!m&&Array.isArray(l)&&l.length&&(V.spec=l.reduce((ne,re)=>ne==null?void 0:ne[re],V.spec)||null),V})(t,r,{...e,...o});var ak=st(30883),$S=st(17862),US=st(24904);let nk=function(e){e()};const qS=()=>nk,ik=Symbol.for("react-redux-context"),sk=typeof globalThis<"u"?globalThis:{};function KS(){var e;if(!P.createContext)return{};const t=(e=sk[ik])!=null?e:sk[ik]=new Map;let r=t.get(P.createContext);return r||(r=P.createContext(null),t.set(P.createContext,r)),r}const ck=KS();function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},yp.apply(this,arguments)}function Iv(e,t){if(e==null)return{};var r,o,n={},l=Object.keys(e);for(o=0;o<l.length;o++)r=l[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}var HS=st(69869),lk=st.n(HS),VS=st(67086);const WS=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function JS(e,t,r,o,{areStatesEqual:n,areOwnPropsEqual:l,areStatePropsEqual:h}){let m,E,R,B,$,K=!1;function L(H,f){const Y=!l(f,E),V=!n(H,m,f,E);return m=H,E=f,Y&&V?(R=e(m,E),t.dependsOnOwnProps&&(B=t(o,E)),$=r(R,B,E),$):Y?(e.dependsOnOwnProps&&(R=e(m,E)),t.dependsOnOwnProps&&(B=t(o,E)),$=r(R,B,E),$):V?function(){const ne=e(m,E),re=!h(ne,R);return R=ne,re&&($=r(R,B,E)),$}():$}return function(H,f){return K?L(H,f):(m=H,E=f,R=e(m,E),B=t(o,E),$=r(R,B,E),K=!0,$)}}function zv(e){return function(t){const r=e(t);function o(){return r}return o.dependsOnOwnProps=!1,o}}function uk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function pk(e,t){return function(r,{displayName:o}){const n=function(l,h){return n.dependsOnOwnProps?n.mapToProps(l,h):n.mapToProps(l,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(l,h){n.mapToProps=e,n.dependsOnOwnProps=uk(e);let m=n(l,h);return typeof m=="function"&&(n.mapToProps=m,n.dependsOnOwnProps=uk(m),m=n(l,h)),m},n}}function Tv(e,t){return(r,o)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function GS(e,t,r){return yp({},r,e,t)}const dk={notify(){},get:()=>[]};function gk(e,t){let r,o=dk,n=0,l=!1;function h(){R.onStateChange&&R.onStateChange()}function m(){n++,r||(r=t?t.addNestedSub(h):e.subscribe(h),o=function(){const B=qS();let $=null,K=null;return{clear(){$=null,K=null},notify(){B(()=>{let L=$;for(;L;)L.callback(),L=L.next})},get(){let L=[],H=$;for(;H;)L.push(H),H=H.next;return L},subscribe(L){let H=!0,f=K={callback:L,next:null,prev:K};return f.prev?f.prev.next=f:$=f,function(){H&&$!==null&&(H=!1,f.next?f.next.prev=f.prev:K=f.prev,f.prev?f.prev.next=f.next:$=f.next)}}}}())}function E(){n--,r&&n===0&&(r(),r=void 0,o.clear(),o=dk)}const R={addNestedSub:function(B){m();const $=o.subscribe(B);let K=!1;return()=>{K||(K=!0,$(),E())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:h,isSubscribed:function(){return l},trySubscribe:function(){l||(l=!0,m())},tryUnsubscribe:function(){l&&(l=!1,E())},getListeners:()=>o};return R}const bm=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?P.useEffect:P.useLayoutEffect;function hk(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!=e&&t!=t}function Rv(e,t){if(hk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!hk(e[r[n]],t[r[n]]))return!1;return!0}const YS=["reactReduxForwardedRef"];let fk=()=>{throw new Error("uSES not initialized!")};const ZS=[null,null];function QS(e,t,r,o,n,l){e.current=o,r.current=!1,n.current&&(n.current=null,l())}function XS(e,t){return e===t}const e_=function(e,t,r,{pure:o,areStatesEqual:n=XS,areOwnPropsEqual:l=Rv,areStatePropsEqual:h=Rv,areMergedPropsEqual:m=Rv,forwardRef:E=!1,context:R=ck}={}){const B=R,$=function(f){return f?typeof f=="function"?pk(f):Tv(f,"mapStateToProps"):zv(()=>({}))}(e),K=function(f){return f&&typeof f=="object"?zv(Y=>function(V,ne){const re={};for(const pe in V){const ve=V[pe];typeof ve=="function"&&(re[pe]=(...he)=>ne(ve(...he)))}return re}(f,Y)):f?typeof f=="function"?pk(f):Tv(f,"mapDispatchToProps"):zv(Y=>({dispatch:Y}))}(t),L=function(f){return f?typeof f=="function"?function(Y){return function(V,{displayName:ne,areMergedPropsEqual:re}){let pe,ve=!1;return function(he,Ee,Ke){const Fe=Y(he,Ee,Ke);return ve?re(Fe,pe)||(pe=Fe):(ve=!0,pe=Fe),pe}}}(f):Tv(f,"mergeProps"):()=>GS}(r),H=!!e;return f=>{const Y=f.displayName||f.name||"Component",V=`Connect(${Y})`,ne={shouldHandleStateChanges:H,displayName:V,wrappedComponentName:Y,WrappedComponent:f,initMapStateToProps:$,initMapDispatchToProps:K,initMergeProps:L,areStatesEqual:n,areStatePropsEqual:h,areOwnPropsEqual:l,areMergedPropsEqual:m};function re(ve){const[he,Ee,Ke]=P.useMemo(()=>{const{reactReduxForwardedRef:Jr}=ve,Vo=Iv(ve,YS);return[ve.context,Jr,Vo]},[ve]),Fe=P.useMemo(()=>he&&he.Consumer&&(0,VS.isContextConsumer)(P.createElement(he.Consumer,null))?he:B,[he,B]),xe=P.useContext(Fe),Ye=!!ve.store&&!!ve.store.getState&&!!ve.store.dispatch,It=!!xe&&!!xe.store,Bt=Ye?ve.store:xe.store,gt=It?xe.getServerState:Bt.getState,Xt=P.useMemo(()=>function(Jr,Vo){let{initMapStateToProps:la,initMapDispatchToProps:ho,initMergeProps:Po}=Vo,na=Iv(Vo,WS);return JS(la(Jr,na),ho(Jr,na),Po(Jr,na),Jr,na)}(Bt.dispatch,ne),[Bt]),[pt,wt]=P.useMemo(()=>{if(!H)return ZS;const Jr=gk(Bt,Ye?void 0:xe.subscription),Vo=Jr.notifyNestedSubs.bind(Jr);return[Jr,Vo]},[Bt,Ye,xe]),qe=P.useMemo(()=>Ye?xe:yp({},xe,{subscription:pt}),[Ye,xe,pt]),Mt=P.useRef(),cr=P.useRef(Ke),pr=P.useRef(),Vt=P.useRef(!1),vr=(P.useRef(!1),P.useRef(!1)),Ut=P.useRef();bm(()=>(vr.current=!0,()=>{vr.current=!1}),[]);const Hr=P.useMemo(()=>()=>pr.current&&Ke===cr.current?pr.current:Xt(Bt.getState(),Ke),[Bt,Ke]),rt=P.useMemo(()=>Jr=>pt?function(Vo,la,ho,Po,na,ce,we,Me,Dt,Ft,lr){if(!Vo)return()=>{};let Tr=!1,Jo=null;const ha=()=>{if(Tr||!Me.current)return;const Ia=la.getState();let wa,Qa;try{wa=Po(Ia,na.current)}catch(an){Qa=an,Jo=an}Qa||(Jo=null),wa===ce.current?we.current||Ft():(ce.current=wa,Dt.current=wa,we.current=!0,lr())};return ho.onStateChange=ha,ho.trySubscribe(),ha(),()=>{if(Tr=!0,ho.tryUnsubscribe(),ho.onStateChange=null,Jo)throw Jo}}(H,Bt,pt,Xt,cr,Mt,Vt,vr,pr,wt,Jr):()=>{},[pt]);var Ge,dr,Yr;let er;Ge=QS,dr=[cr,Mt,Vt,Ke,pr,wt],bm(()=>Ge(...dr),Yr);try{er=fk(rt,Hr,gt?()=>Xt(gt(),Ke):Hr)}catch(Jr){throw Ut.current&&(Jr.message+=`
|
|
179
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}()}function ib(e,t){(t==null||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}var W4=Ai($4(L4(function(e,t){return e.length>t.length})),U4,bl("length")),J4=Qp(function(e,t,r){var o=r.apply(void 0,V4(e));return K4(o)?q4(o):t});const Qy=nb(H4,function(e){var t=W4(e);return Xn(t,function(){for(var r=arguments.length,o=new Array(r),n=0;n<r;n++)o[n]=arguments[n];return lc(J4(o),void 0,e)})},wu),G4=fn(Pu,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map(({predicate:o,specPath:n})=>nb(o,_a(n),wu)),r=Qy(t)(e);return this.element=this.toRefractedElement(r,e),pn}}}),Id=fn(G4,{props:{alternator:[{predicate:Sl,specPath:["document","objects","JSONReference"]},{predicate:Gl,specPath:["document","objects","JSONSchema"]}]}}),Zl={visitors:{value:Ka,JSONSchemaOrJSONReferenceVisitor:Id,document:{objects:{JSONSchema:{$visitor:X2,fixedFields:{id:e4,$schema:t4,multipleOf:r4,maximum:o4,exclusiveMaximum:a4,minimum:n4,exclusiveMinimum:i4,maxLength:s4,minLength:c4,pattern:l4,additionalItems:Id,items:u4,maxItems:p4,minItems:d4,uniqueItems:g4,maxProperties:h4,minProperties:f4,required:m4,properties:k4,additionalProperties:Id,patternProperties:x4,dependencies:E4,enum:S4,type:_4,allOf:j4,anyOf:O4,oneOf:A4,not:Id,definitions:C4,title:P4,description:I4,default:z4,format:T4,base:R4,links:N4,media:{$ref:"#/visitors/document/objects/Media"},readOnly:D4}},JSONReference:{$visitor:B4,fixedFields:{$ref:M4}},Media:{$visitor:fn(sh,Ka,{props:{specPath:_a(["document","objects","Media"])},init(){this.element=new If}}),fixedFields:{binaryEncoding:Ka,type:Ka}},LinkDescription:{$visitor:fn(sh,Ka,{props:{specPath:_a(["document","objects","LinkDescription"])},init(){this.element=new zf}}),fixedFields:{href:Ka,rel:Ka,title:Ka,targetSchema:Id,mediaType:Ka,method:Ka,encType:Ka,schema:Id}}}}}},Y4=e=>{if(as(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Z4={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Cd},Q4=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ih||e(o)&&t("JSONSchemaDraft4",o)&&r("object",o)),X4=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Pf||e(o)&&t("JSONReference",o)&&r("object",o)),e5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof If||e(o)&&t("media",o)&&r("object",o)),t5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof zf||e(o)&&t("linkDescription",o)&&r("object",o)),r5={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",ih),t.register("jSONReference",Pf),t.register("media",If),t.register("linkDescription",zf),t}},o5=r5,a5=()=>{const e=Mg(o5);return{predicates:{...k,isStringElement:hn},namespace:e}},n5=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:o=Zl}={})=>{const n=(0,Or.e)(e),l=Rf(o),h=rn(t,[],l);return Bs(n,h,{state:{specObj:l}}),Pd(h.element,r,{toolboxCreator:a5,visitorOptions:{keyMap:Z4,nodeTypeGetter:Y4}})},Lf=e=>(t,r={})=>n5(t,{specPath:e,...r});ih.refract=Lf(["visitors","document","objects","JSONSchema","$visitor"]),Pf.refract=Lf(["visitors","document","objects","JSONReference","$visitor"]),If.refract=Lf(["visitors","document","objects","Media","$visitor"]),zf.refract=Lf(["visitors","document","objects","LinkDescription","$visitor"]);const Ff=class extends ih{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new Es("idProp getter in Schema class is not not supported.")}set idProp(e){throw new Es("idProp setter in Schema class is not not supported.")}get $schema(){throw new Es("$schema getter in Schema class is not not supported.")}set $schema(e){throw new Es("$schema setter in Schema class is not not supported.")}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){throw new Es("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new Es("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new Es("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new Es("dependencies setter in Schema class is not not supported.")}get type(){return this.get("type")}set type(e){this.set("type",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){throw new Es("definitions getter in Schema class is not not supported.")}set definitions(e){throw new Es("definitions setter in Schema class is not not supported.")}get base(){throw new Es("base getter in Schema class is not not supported.")}set base(e){throw new Es("base setter in Schema class is not not supported.")}get links(){throw new Es("links getter in Schema class is not not supported.")}set links(e){throw new Es("links setter in Schema class is not not supported.")}get media(){throw new Es("media getter in Schema class is not not supported.")}set media(e){throw new Es("media setter in Schema class is not not supported.")}get nullable(){return this.get("nullable")}set nullable(e){this.set("nullable",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}};class i5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="securityRequirement"}}const ch=i5;class s5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="securityScheme"}get type(){return this.get("type")}set type(t){this.set("type",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get name(){return this.get("name")}set name(t){this.set("name",t)}get in(){return this.get("in")}set in(t){this.set("in",t)}get scheme(){return this.get("scheme")}set scheme(t){this.set("scheme",t)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(t){this.set("bearerFormat",t)}get flows(){return this.get("flows")}set flows(t){this.set("flows",t)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(t){this.set("openIdConnectUrl",t)}}const lh=s5;class c5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="server"}get url(){return this.get("url")}set url(t){this.set("url",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get variables(){return this.get("variables")}set variables(t){this.set("variables",t)}}const uh=c5;class l5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}}const ph=l5;class u5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="tag"}get name(){return this.get("name")}set name(t){this.set("name",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}}const $f=u5;class p5 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="xml"}get name(){return this.get("name")}set name(t){this.set("name",t)}get namespace(){return this.get("namespace")}set namespace(t){this.set("namespace",t)}get prefix(){return this.get("prefix")}set prefix(t){this.set("prefix",t)}get attribute(){return this.get("attribute")}set attribute(t){this.set("attribute",t)}get wrapped(){return this.get("wrapped")}set wrapped(t){this.set("wrapped",t)}}const Uf=p5,Xy=(e,t,r=[])=>{const o=Object.getOwnPropertyDescriptors(t);for(let n of r)delete o[n];Object.defineProperties(e,o)},dh=(e,t=[e])=>{const r=Object.getPrototypeOf(e);return r===null?t:dh(r,[...t,r])},ew=(e,t,r=[])=>{var o;const n=(o=((...m)=>{if(m.length===0)return;let E;const R=m.map(B=>dh(B));for(;R.every(B=>B.length>0);){const B=R.map(K=>K.pop()),$=B[0];if(!B.every(K=>K===$))break;E=$}return E})(...e))!==null&&o!==void 0?o:Object.prototype,l=Object.create(n),h=dh(n);for(let m of e){let E=dh(m);for(let R=E.length-1;R>=0;R--){let B=E[R];h.indexOf(B)===-1&&(Xy(l,B,["constructor",...r]),h.push(B))}}return l.constructor=t,l},sb=e=>e.filter((t,r)=>e.indexOf(t)==r),tw=new WeakMap,d5=e=>tw.get(e),rw=(e,t)=>{var r,o;const n=sb([...Object.getOwnPropertyNames(e),...Object.getOwnPropertyNames(t)]),l={};for(let h of n)l[h]=sb([...(r=e==null?void 0:e[h])!==null&&r!==void 0?r:[],...(o=t==null?void 0:t[h])!==null&&o!==void 0?o:[]]);return l},ow=(e,t)=>{var r,o,n,l;return{property:rw((r=e==null?void 0:e.property)!==null&&r!==void 0?r:{},(o=t==null?void 0:t.property)!==null&&o!==void 0?o:{}),method:rw((n=e==null?void 0:e.method)!==null&&n!==void 0?n:{},(l=t==null?void 0:t.method)!==null&&l!==void 0?l:{})}},g5=(e,t)=>{var r,o,n,l,h,m;return{class:sb([...(r=e==null?void 0:e.class)!==null&&r!==void 0?r:[],...(o=t==null?void 0:t.class)!==null&&o!==void 0?o:[]]),static:ow((n=e==null?void 0:e.static)!==null&&n!==void 0?n:{},(l=t==null?void 0:t.static)!==null&&l!==void 0?l:{}),instance:ow((h=e==null?void 0:e.instance)!==null&&h!==void 0?h:{},(m=t==null?void 0:t.instance)!==null&&m!==void 0?m:{})}},h5=new Map,f5=(...e)=>{const t=((...r)=>{var o;const n=new Set,l=new Set([...r]);for(;l.size>0;)for(let h of l){const m=[...dh(h.prototype).map(E=>E.constructor),...(o=d5(h))!==null&&o!==void 0?o:[]].filter(E=>!n.has(E));for(let E of m)l.add(E);n.add(h),l.delete(h)}return[...n]})(...e).map(r=>h5.get(r)).filter(r=>!!r);return t.length==0?{}:t.length==1?t[0]:t.reduce((r,o)=>g5(r,o))};function Wo(...e){var t,r,o;const n=e.map(R=>R.prototype);function l(...R){for(const B of e)Xy(this,new B(...R))}l.prototype=ew(n,l),Object.setPrototypeOf(l,ew(e,null,["prototype"]));let h=l;{const R=f5(...e);for(let B of(t=R==null?void 0:R.class)!==null&&t!==void 0?t:[]){const $=B(h);$&&(h=$)}aw((r=R==null?void 0:R.static)!==null&&r!==void 0?r:{},h),aw((o=R==null?void 0:R.instance)!==null&&o!==void 0?o:{},h.prototype)}var m,E;return m=h,E=e,tw.set(m,E),h}const aw=(e,t)=>{const r=e.property,o=e.method;if(r)for(let n in r)for(let l of r[n])l(t,n);if(o)for(let n in o)for(let l of o[n])l(t,n,Object.getOwnPropertyDescriptor(t,n))},nw=class{constructor(e={}){Io(this,"element");Object.assign(this,e)}copyMetaAndAttributes(e,t){(e.meta.length>0||t.meta.length>0)&&(t.meta=El(t.meta,e.meta),Bg(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))),(e.attributes.length>0||e.meta.length>0)&&(t.attributes=El(t.attributes,e.attributes))}},_o=class extends nw{enter(e){return this.element=To(e),pn}},qs=class extends nw{constructor({specObj:t,passingOptionsNames:r,openApiGenericElement:o,openApiSemanticElement:n,...l}){super({...l});Io(this,"specObj");Io(this,"passingOptionsNames",["specObj","openApiGenericElement","openApiSemanticElement"]);Io(this,"openApiGenericElement");Io(this,"openApiSemanticElement");this.specObj=t,this.openApiGenericElement=o,this.openApiSemanticElement=n,Array.isArray(r)&&(this.passingOptionsNames=r)}retrievePassingOptions(){return Yy(this.passingOptionsNames,this)}retrieveFixedFields(t){const r=vi(["visitors",...t,"fixedFields"],this.specObj);return typeof r=="object"&&r!==null?Object.keys(r):[]}retrieveVisitor(t){return Vu(qc,["visitors",...t],this.specObj)?vi(["visitors",...t],this.specObj):vi(["visitors",...t,"$visitor"],this.specObj)}retrieveVisitorInstance(t,r={}){const o=this.retrievePassingOptions();return new(this.retrieveVisitor(t))({...o,...r})}toRefractedElement(t,r,o={}){const n=this.retrieveVisitorInstance(t,o);return n instanceof _o&&(n==null?void 0:n.constructor)===_o?To(r):(Bs(r,n,o),n.element)}},ui=e=>zn(e)&&e.hasKey("$ref"),m5=zn,b5=zn,iw=e=>hn(e.key)&&qy("x-",ro(e.key)),on=class extends qs{constructor({specPath:t,ignoredFields:r,canSupportSpecificationExtensions:o,specificationExtensionPredicate:n,...l}){super({...l});Io(this,"specPath");Io(this,"ignoredFields");Io(this,"canSupportSpecificationExtensions",!0);Io(this,"specificationExtensionPredicate",iw);this.specPath=t,this.ignoredFields=r||[],typeof o=="boolean"&&(this.canSupportSpecificationExtensions=o),typeof n=="function"&&(this.specificationExtensionPredicate=n)}ObjectElement(t){const r=this.specPath(t),o=this.retrieveFixedFields(r);return t.forEach((n,l,h)=>{if(hn(l)&&o.includes(ro(l))&&!this.ignoredFields.includes(ro(l))){const m=this.toRefractedElement([...r,"fixedFields",ro(l)],n),E=new Or.Pr(To(l),m);this.copyMetaAndAttributes(h,E),E.classes.push("fixed-field"),this.element.content.push(E)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(h)){const m=this.toRefractedElement(["document","extension"],h);this.element.content.push(m)}else this.ignoredFields.includes(ro(l))||this.element.content.push(To(h))}),this.copyMetaAndAttributes(t,this.element),pn}};class v5 extends Wo(on,_o){constructor(t){super(t),this.element=new Cf,this.specPath=_a(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){return on.prototype.ObjectElement.call(this,t)}}const y5=v5;class w5 extends Wo(qs,_o){StringElement(t){const r=new Zg(ro(t));return this.copyMetaAndAttributes(t,r),this.element=r,pn}}const k5=w5,x5=class extends qs{MemberElement(e){return this.element=To(e),this.element.classes.push("specification-extension"),pn}};class E5 extends Wo(on,_o){constructor(t){super(t),this.element=new Wg,this.specPath=_a(["document","objects","Info"]),this.canSupportSpecificationExtensions=!0}}const S5=E5,_5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("api-version"),this.element.classes.push("version"),t}};class j5 extends Wo(on,_o){constructor(t){super(t),this.element=new qg,this.specPath=_a(["document","objects","Contact"]),this.canSupportSpecificationExtensions=!0}}const O5=j5;class A5 extends Wo(on,_o){constructor(t){super(t),this.element=new Jg,this.specPath=_a(["document","objects","License"]),this.canSupportSpecificationExtensions=!0}}const C5=A5;class P5 extends Wo(on,_o){constructor(t){super(t),this.element=new Gg,this.specPath=_a(["document","objects","Link"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return(hn(this.element.operationId)||hn(this.element.operationRef))&&this.element.classes.push("reference-element"),r}}const I5=P5,z5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},T5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},zd=class extends qs{constructor({specPath:t,ignoredFields:r,fieldPatternPredicate:o,canSupportSpecificationExtensions:n,specificationExtensionPredicate:l,...h}){super({...h});Io(this,"specPath");Io(this,"ignoredFields");Io(this,"fieldPatternPredicate",Q0);Io(this,"canSupportSpecificationExtensions",!1);Io(this,"specificationExtensionPredicate",iw);this.specPath=t,this.ignoredFields=r||[],typeof o=="function"&&(this.fieldPatternPredicate=o),typeof n=="boolean"&&(this.canSupportSpecificationExtensions=n),typeof l=="function"&&(this.specificationExtensionPredicate=l)}ObjectElement(t){return t.forEach((r,o,n)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(n)){const l=this.toRefractedElement(["document","extension"],n);this.element.content.push(l)}else if(!this.ignoredFields.includes(ro(o))&&this.fieldPatternPredicate(ro(o))){const l=this.specPath(r),h=this.toRefractedElement(l,r),m=new Or.Pr(To(o),h);this.copyMetaAndAttributes(n,m),m.classes.push("patterned-field"),this.element.content.push(m)}else this.ignoredFields.includes(ro(o))||this.element.content.push(To(n))}),this.copyMetaAndAttributes(t,this.element),pn}},Wa=class extends zd{constructor(e){super(e),this.fieldPatternPredicate=ab}},Nm=class Nm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Nm.primaryClass)}};Io(Nm,"primaryClass","link-parameters");let cb=Nm;const R5=cb;class N5 extends Wo(Wa,_o){constructor(t){super(t),this.element=new R5,this.specPath=_a(["value"])}}const D5=N5;class B5 extends Wo(on,_o){constructor(t){super(t),this.element=new uh,this.specPath=_a(["document","objects","Server"]),this.canSupportSpecificationExtensions=!0}}const M5=B5,L5=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("server-url"),t}},Dm=class Dm extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(Dm.primaryClass)}};Io(Dm,"primaryClass","servers");let lb=Dm;const ub=lb;class F5 extends Wo(qs,_o){constructor(t){super(t),this.element=new ub}ArrayElement(t){return t.forEach(r=>{const o=m5(r)?["document","objects","Server"]:["value"],n=this.toRefractedElement(o,r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const pb=F5;class $5 extends Wo(on,_o){constructor(t){super(t),this.element=new ph,this.specPath=_a(["document","objects","ServerVariable"]),this.canSupportSpecificationExtensions=!0}}const U5=$5,Bm=class Bm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Bm.primaryClass)}};Io(Bm,"primaryClass","server-variables");let db=Bm;const q5=db;class K5 extends Wo(Wa,_o){constructor(t){super(t),this.element=new q5,this.specPath=_a(["document","objects","ServerVariable"])}}const H5=K5;class V5 extends Wo(on,_o){constructor(t){super(t),this.element=new Yg,this.specPath=_a(["document","objects","MediaType"]),this.canSupportSpecificationExtensions=!0}}const W5=V5,_l=class extends qs{constructor({alternator:t,...r}){super({...r});Io(this,"alternator");this.alternator=t||[]}enter(t){const r=this.alternator.map(({predicate:n,specPath:l})=>nb(n,_a(l),wu)),o=Qy(r)(t);return this.element=this.toRefractedElement(o,t),pn}},J5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof $g||e(o)&&t("callback",o)&&r("object",o)),G5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ug||e(o)&&t("components",o)&&r("object",o)),Y5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof qg||e(o)&&t("contact",o)&&r("object",o)),Z5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Kg||e(o)&&t("example",o)&&r("object",o)),Q5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Hg||e(o)&&t("externalDocumentation",o)&&r("object",o)),Td=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Vg||e(o)&&t("header",o)&&r("object",o)),X5=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Wg||e(o)&&t("info",o)&&r("object",o)),e6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Jg||e(o)&&t("license",o)&&r("object",o)),t6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Gg||e(o)&&t("link",o)&&r("object",o)),r6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Zg||e(o)&&t("openapi",o)&&r("string",o)),o6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:o})=>n=>n instanceof Cf||e(n)&&t("openApi3_0",n)&&r("object",n)&&o("api",n)),sw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Qg||e(o)&&t("operation",o)&&r("object",o)),a6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Xg||e(o)&&t("parameter",o)&&r("object",o)),gb=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof eh||e(o)&&t("pathItem",o)&&r("object",o)),n6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof th||e(o)&&t("paths",o)&&r("object",o)),ai=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof rh||e(o)&&t("reference",o)&&r("object",o)),i6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof oh||e(o)&&t("requestBody",o)&&r("object",o)),qf=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ah||e(o)&&t("response",o)&&r("object",o)),s6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof nh||e(o)&&t("responses",o)&&r("object",o)),c6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ff||e(o)&&t("schema",o)&&r("object",o)),l6=e=>Dg(e)&&e.classes.includes("boolean-json-schema"),u6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ch||e(o)&&t("securityRequirement",o)&&r("object",o)),p6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof lh||e(o)&&t("securityScheme",o)&&r("object",o)),d6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof uh||e(o)&&t("server",o)&&r("object",o)),g6=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof ph||e(o)&&t("serverVariable",o)&&r("object",o)),Kf=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Yg||e(o)&&t("mediaType",o)&&r("object",o)),cw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:o})=>n=>n instanceof ub||e(n)&&t("array",n)&&r("array",n)&&o("servers",n));class h6 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const f6=h6;class m6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("examples"),this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Example"],this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","example")}),r}}const hb=m6,Mm=class Mm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Mm.primaryClass),this.classes.push("examples")}};Io(Mm,"primaryClass","media-type-examples");let fb=Mm;const b6=fb,v6=class extends hb{constructor(e){super(e),this.element=new b6}},Lm=class Lm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Lm.primaryClass)}};Io(Lm,"primaryClass","media-type-encoding");let mb=Lm;const y6=mb;class w6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new y6,this.specPath=_a(["document","objects","Encoding"])}}const k6=w6;class x6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new ch,this.specPath=_a(["value"])}}const E6=x6,Fm=class Fm extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(Fm.primaryClass)}};Io(Fm,"primaryClass","security");let bb=Fm;const S6=bb;class _6 extends Wo(qs,_o){constructor(t){super(t),this.element=new S6}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","SecurityRequirement"],r);this.element.push(o)}else this.element.push(To(r))}),this.copyMetaAndAttributes(t,this.element),pn}}const j6=_6;class O6 extends Wo(on,_o){constructor(t){super(t),this.element=new Ug,this.specPath=_a(["document","objects","Components"]),this.canSupportSpecificationExtensions=!0}}const A6=O6;class C6 extends Wo(on,_o){constructor(t){super(t),this.element=new $f,this.specPath=_a(["document","objects","Tag"]),this.canSupportSpecificationExtensions=!0}}const P6=C6;class I6 extends Wo(on,_o){constructor(t){super(t),this.element=new rh,this.specPath=_a(["document","objects","Reference"]),this.canSupportSpecificationExtensions=!1}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return hn(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const z6=I6,T6=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class R6 extends Wo(on,_o){constructor(t){super(t),this.element=new Xg,this.specPath=_a(["document","objects","Parameter"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach((o,n)=>{o.setMetaProperty("media-type",ro(n))}),r}}const N6=R6;class D6 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const B6=D6;class M6 extends Wo(on,_o){constructor(t){super(t),this.element=new Vg,this.specPath=_a(["document","objects","Header"]),this.canSupportSpecificationExtensions=!0}}const L6=M6;class F6 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Schema"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),r}}const $6=F6,$m=class $m extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push($m.primaryClass),this.classes.push("examples")}};Io($m,"primaryClass","header-examples");let vb=$m;const U6=vb,q6=class extends hb{constructor(e){super(e),this.element=new U6}};class K6 extends Wo(Wa,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("content"),this.specPath=_a(["document","objects","MediaType"])}}const Hf=K6,Um=class Um extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Um.primaryClass),this.classes.push("content")}};Io(Um,"primaryClass","header-content");let yb=Um;const H6=yb,V6=class extends Hf{constructor(e){super(e),this.element=new H6}};class W6 extends Wo(on,_o){constructor(t){super(t),this.element=new Ff,this.specPath=_a(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0}}const J6=W6,{allOf:lw}=Zl.visitors.document.objects.JSONSchema.fixedFields,G6=lw.compose({methods:{ArrayElement(e){const t=lw.compose.methods.ArrayElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{anyOf:uw}=Zl.visitors.document.objects.JSONSchema.fixedFields,Y6=uw.compose({methods:{ArrayElement(e){const t=uw.compose.methods.ArrayElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{oneOf:pw}=Zl.visitors.document.objects.JSONSchema.fixedFields,Z6=pw.compose({methods:{ArrayElement(e){const t=pw.compose.methods.ArrayElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{items:dw}=Zl.visitors.document.objects.JSONSchema.fixedFields,Q6=dw.compose({methods:{ObjectElement(e){const t=dw.compose.methods.ObjectElement.call(this,e);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=To(e),pn}}}),{properties:gw}=Zl.visitors.document.objects.JSONSchema.fixedFields,X6=gw.compose({methods:{ObjectElement(e){const t=gw.compose.methods.ObjectElement.call(this,e);return this.element.filter(ai).forEach(r=>{r.setMetaProperty("referenced-element","schema")}),t}}}),{type:e3}=Zl.visitors.document.objects.JSONSchema.fixedFields,t3=e3.compose({methods:{ArrayElement(e){return this.element=To(e),pn}}}),{JSONSchemaOrJSONReferenceVisitor:hw}=Zl.visitors,fw=hw.compose({methods:{ObjectElement(e){const t=hw.compose.methods.enter.call(this,e);return ai(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}});class r3 extends Wo(on,_o){constructor(t){super(t),this.element=new _f,this.specPath=_a(["document","objects","Discriminator"]),this.canSupportSpecificationExtensions=!1}}const o3=r3,qm=class qm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(qm.primaryClass)}};Io(qm,"primaryClass","discriminator-mapping");let wb=qm;const a3=wb;class n3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new a3,this.specPath=_a(["value"])}}const i3=n3;class s3 extends Wo(on,_o){constructor(t){super(t),this.element=new Uf,this.specPath=_a(["document","objects","XML"]),this.canSupportSpecificationExtensions=!0}}const c3=s3,Km=class Km extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Km.primaryClass),this.classes.push("examples")}};Io(Km,"primaryClass","parameter-examples");let kb=Km;const l3=kb,u3=class extends hb{constructor(e){super(e),this.element=new l3}},Hm=class Hm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Hm.primaryClass),this.classes.push("content")}};Io(Hm,"primaryClass","parameter-content");let xb=Hm;const p3=xb,d3=class extends Hf{constructor(e){super(e),this.element=new p3}},Vm=class Vm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Vm.primaryClass)}};Io(Vm,"primaryClass","components-schemas");let Eb=Vm;const mw=Eb;class g3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new mw,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Schema"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","schema")}),r}}const h3=g3,Wm=class Wm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Wm.primaryClass)}};Io(Wm,"primaryClass","components-responses");let Sb=Wm;const f3=Sb;class m3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new f3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Response"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","response")}),this.element.filter(qf).forEach((o,n)=>{o.setMetaProperty("http-status-code",ro(n))}),r}}const b3=m3,Jm=class Jm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Jm.primaryClass),this.classes.push("parameters")}};Io(Jm,"primaryClass","components-parameters");let _b=Jm;const v3=_b;class y3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new v3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Parameter"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","parameter")}),r}}const w3=y3,Gm=class Gm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Gm.primaryClass),this.classes.push("examples")}};Io(Gm,"primaryClass","components-examples");let jb=Gm;const k3=jb;class x3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new k3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Example"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","example")}),r}}const E3=x3,Ym=class Ym extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Ym.primaryClass)}};Io(Ym,"primaryClass","components-request-bodies");let Ob=Ym;const S3=Ob;class _3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new S3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","RequestBody"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","requestBody")}),r}}const j3=_3,Zm=class Zm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Zm.primaryClass)}};Io(Zm,"primaryClass","components-headers");let Ab=Zm;const O3=Ab;class A3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new O3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","header")}),this.element.filter(Td).forEach((o,n)=>{o.setMetaProperty("header-name",ro(n))}),r}}const C3=A3,Qm=class Qm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Qm.primaryClass)}};Io(Qm,"primaryClass","components-security-schemes");let Cb=Qm;const P3=Cb;class I3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new P3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","SecurityScheme"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","securityScheme")}),r}}const z3=I3,Xm=class Xm extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(Xm.primaryClass)}};Io(Xm,"primaryClass","components-links");let Pb=Xm;const T3=Pb;class R3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new T3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","link")}),r}}const N3=R3,e0=class e0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(e0.primaryClass)}};Io(e0,"primaryClass","components-callbacks");let Ib=e0;const D3=Ib;class B3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new D3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","callback")}),r}}const M3=B3;class L3 extends Wo(on,_o){constructor(t){super(t),this.element=new Kg,this.specPath=_a(["document","objects","Example"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return hn(this.element.externalValue)&&this.element.classes.push("reference-element"),r}}const F3=L3,$3=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class U3 extends Wo(on,_o){constructor(t){super(t),this.element=new Hg,this.specPath=_a(["document","objects","ExternalDocumentation"]),this.canSupportSpecificationExtensions=!0}}const q3=U3;class K3 extends Wo(on,_o){constructor(t){super(t),this.element=new jf,this.specPath=_a(["document","objects","Encoding"]),this.canSupportSpecificationExtensions=!0}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.headers)&&this.element.headers.filter(Td).forEach((o,n)=>{o.setMetaProperty("header-name",ro(n))}),r}}const H3=K3,t0=class t0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(t0.primaryClass)}};Io(t0,"primaryClass","encoding-headers");let zb=t0;const V3=zb;class W3 extends Wo(Wa,_o){constructor(t){super(t),this.element=new V3,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","header")}),this.element.forEach((o,n)=>{if(!Td(o))return;const l=ro(n);o.setMetaProperty("headerName",l)}),r}}const J3=W3;class G3 extends Wo(zd,_o){constructor(t){super(t),this.element=new th,this.specPath=_a(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=Gl}ObjectElement(t){const r=zd.prototype.ObjectElement.call(this,t);return this.element.filter(gb).forEach((o,n)=>{n.classes.push("openapi-path-template"),n.classes.push("path-template"),o.setMetaProperty("path",To(n))}),r}}const Y3=G3;class Z3 extends Wo(on,_o){constructor(t){super(t),this.element=new oh,this.specPath=_a(["document","objects","RequestBody"])}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach((o,n)=>{o.setMetaProperty("media-type",ro(n))}),r}}const Q3=Z3,r0=class r0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(r0.primaryClass),this.classes.push("content")}};Io(r0,"primaryClass","request-body-content");let Tb=r0;const X3=Tb,e7=class extends Hf{constructor(e){super(e),this.element=new X3}};class t7 extends Wo(zd,_o){constructor(t){super(t),this.element=new $g,this.specPath=_a(["document","objects","PathItem"]),this.canSupportSpecificationExtensions=!0,this.fieldPatternPredicate=r=>/{(?<expression>[^}]{1,2083})}/.test(String(r))}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(gb).forEach((o,n)=>{o.setMetaProperty("runtime-expression",ro(n))}),r}}const r7=t7;class o7 extends Wo(on,_o){constructor(t){super(t),this.element=new ah,this.specPath=_a(["document","objects","Response"])}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return zn(this.element.contentProp)&&this.element.contentProp.filter(Kf).forEach((o,n)=>{o.setMetaProperty("media-type",ro(n))}),zn(this.element.headers)&&this.element.headers.filter(Td).forEach((o,n)=>{o.setMetaProperty("header-name",ro(n))}),r}}const a7=o7,o0=class o0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(o0.primaryClass)}};Io(o0,"primaryClass","response-headers");let Rb=o0;const n7=Rb;class i7 extends Wo(Wa,_o){constructor(t){super(t),this.element=new n7,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Header"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","header")}),this.element.forEach((o,n)=>{if(!Td(o))return;const l=ro(n);o.setMetaProperty("header-name",l)}),r}}const s7=i7,a0=class a0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(a0.primaryClass),this.classes.push("content")}};Io(a0,"primaryClass","response-content");let Nb=a0;const c7=Nb,l7=class extends Hf{constructor(e){super(e),this.element=new c7}},n0=class n0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(n0.primaryClass)}};Io(n0,"primaryClass","response-links");let Db=n0;const u7=Db;class p7 extends Wo(Wa,_o){constructor(t){super(t),this.element=new u7,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","Link"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","link")}),r}}const d7=p7;function bw(e){return Object.prototype.toString.call(e)==="[object Number]"}var g7=Da(function(e,t){if(!bw(e)||!bw(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],o=e;o<t;)r.push(o),o+=1;return r});const h7=g7;function vw(e,t,r){var o,n=typeof e;switch(n){case"string":case"number":return e===0&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):r._nativeSet!==null?t?(o=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===o):r._nativeSet.has(e):n in r._items?e in r._items[n]||(t&&(r._items[n][e]=!0),!1):(t&&(r._items[n]={},r._items[n][e]=!0),!1);case"boolean":if(n in r._items){var l=e?1:0;return!!r._items[n][l]||(t&&(r._items[n][l]=!0),!1)}return t&&(r._items[n]=e?[!1,!0]:[!0,!1]),!1;case"function":return r._nativeSet!==null?t?(o=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===o):r._nativeSet.has(e):n in r._items?!!ml(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1);case"undefined":return!!r._items[n]||(t&&(r._items[n]=!0),!1);case"object":if(e===null)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(n=Object.prototype.toString.call(e))in r._items?!!ml(e,r._items[n])||(t&&r._items[n].push(e),!1):(t&&(r._items[n]=[e]),!1)}}const f7=function(){function e(){this._nativeSet=typeof Set=="function"?new Set:null,this._items={}}return e.prototype.add=function(t){return!vw(t,!0,this)},e.prototype.has=function(t){return vw(t,!1,this)},e}();var m7=Da(function(e,t){for(var r=[],o=0,n=e.length,l=t.length,h=new f7,m=0;m<l;m+=1)h.add(t[m]);for(;o<n;)h.add(e[o])&&(r[r.length]=e[o]),o+=1;return r});const b7=m7;class v7 extends Wo(on,zd){constructor({specPathFixedFields:r,specPathPatternedFields:o,...n}){super({...n});Io(this,"specPathFixedFields");Io(this,"specPathPatternedFields");this.specPathFixedFields=r,this.specPathPatternedFields=o}ObjectElement(r){const{specPath:o,ignoredFields:n}=this;try{this.specPath=this.specPathFixedFields;const l=this.retrieveFixedFields(this.specPath(r));this.ignoredFields=[...n,...b7(r.keys(),l)],on.prototype.ObjectElement.call(this,r),this.specPath=this.specPathPatternedFields,this.ignoredFields=l,zd.prototype.ObjectElement.call(this,r)}catch(l){throw this.specPath=o,l}return pn}}const yw=v7;class y7 extends Wo(yw,_o){constructor(t){super(t),this.element=new nh,this.specPathFixedFields=_a(["document","objects","Responses"]),this.canSupportSpecificationExtensions=!0,this.specPathPatternedFields=r=>ui(r)?["document","objects","Reference"]:["document","objects","Response"],this.fieldPatternPredicate=r=>new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${h7(100,600).join("|")})$`).test(String(r))}ObjectElement(t){const r=yw.prototype.ObjectElement.call(this,t);return this.element.filter(ai).forEach(o=>{o.setMetaProperty("referenced-element","response")}),this.element.filter(qf).forEach((o,n)=>{const l=To(n);this.fieldPatternPredicate(ro(l))&&o.setMetaProperty("http-status-code",l)}),r}}const w7=y7;class k7 extends Wo(_l,_o){constructor(t){super(t),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","Response"]}]}ObjectElement(t){const r=_l.prototype.enter.call(this,t);return ai(this.element)?this.element.setMetaProperty("referenced-element","response"):qf(this.element)&&this.element.setMetaProperty("http-status-code","default"),r}}const x7=k7;class E7 extends Wo(on,_o){constructor(t){super(t),this.element=new Qg,this.specPath=_a(["document","objects","Operation"])}}const S7=E7,i0=class i0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(i0.primaryClass)}};Io(i0,"primaryClass","operation-tags");let Bb=i0;const _7=Bb,j7=class extends _o{constructor(e){super(e),this.element=new _7}ArrayElement(e){return this.element=this.element.concat(To(e)),pn}},s0=class s0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(s0.primaryClass),this.classes.push("parameters")}};Io(s0,"primaryClass","operation-parameters");let Mb=s0;const ww=Mb;class O7 extends Wo(qs,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("parameters")}ArrayElement(t){return t.forEach(r=>{const o=ui(r)?["document","objects","Reference"]:["document","objects","Parameter"],n=this.toRefractedElement(o,r);ai(n)&&n.setMetaProperty("referenced-element","parameter"),this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const kw=O7,A7=class extends kw{constructor(e){super(e),this.element=new ww}},C7=class extends _l{constructor(e){super(e),this.alternator=[{predicate:ui,specPath:["document","objects","Reference"]},{predicate:Gl,specPath:["document","objects","RequestBody"]}]}ObjectElement(e){const t=_l.prototype.enter.call(this,e);return ai(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}},c0=class c0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(c0.primaryClass)}};Io(c0,"primaryClass","operation-callbacks");let Lb=c0;const P7=Lb;class I7 extends Wo(Wa,_o){constructor(r){super(r);Io(this,"specPath");this.element=new P7,this.specPath=o=>ui(o)?["document","objects","Reference"]:["document","objects","Callback"]}ObjectElement(r){const o=Wa.prototype.ObjectElement.call(this,r);return this.element.filter(ai).forEach(n=>{n.setMetaProperty("referenced-element","callback")}),o}}const z7=I7,l0=class l0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(l0.primaryClass),this.classes.push("security")}};Io(l0,"primaryClass","operation-security");let Fb=l0;const xw=Fb;class T7 extends Wo(qs,_o){constructor(t){super(t),this.element=new xw}ArrayElement(t){return t.forEach(r=>{const o=zn(r)?["document","objects","SecurityRequirement"]:["value"],n=this.toRefractedElement(o,r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const R7=T7,u0=class u0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(u0.primaryClass),this.classes.push("servers")}};Io(u0,"primaryClass","operation-servers");let $b=u0;const Ew=$b,N7=class extends pb{constructor(e){super(e),this.element=new Ew}};class D7 extends Wo(on,_o){constructor(t){super(t),this.element=new eh,this.specPath=_a(["document","objects","PathItem"])}ObjectElement(t){const r=on.prototype.ObjectElement.call(this,t);return this.element.filter(sw).forEach((o,n)=>{const l=To(n);l.content=ro(l).toUpperCase(),o.setMetaProperty("http-method",l)}),hn(this.element.$ref)&&this.element.classes.push("reference-element"),r}}const B7=D7,M7=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}},p0=class p0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(p0.primaryClass),this.classes.push("servers")}};Io(p0,"primaryClass","path-item-servers");let Ub=p0;const Sw=Ub,L7=class extends pb{constructor(e){super(e),this.element=new Sw}},d0=class d0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(d0.primaryClass),this.classes.push("parameters")}};Io(d0,"primaryClass","path-item-parameters");let qb=d0;const F7=qb,$7=class extends kw{constructor(e){super(e),this.element=new F7}};class U7 extends Wo(on,_o){constructor(t){super(t),this.element=new lh,this.specPath=_a(["document","objects","SecurityScheme"]),this.canSupportSpecificationExtensions=!0}}const q7=U7;class K7 extends Wo(on,_o){constructor(t){super(t),this.element=new Af,this.specPath=_a(["document","objects","OAuthFlows"]),this.canSupportSpecificationExtensions=!0}}const H7=K7;class V7 extends Wo(on,_o){constructor(t){super(t),this.element=new Of,this.specPath=_a(["document","objects","OAuthFlow"]),this.canSupportSpecificationExtensions=!0}}const W7=V7,g0=class g0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(g0.primaryClass)}};Io(g0,"primaryClass","oauth-flow-scopes");let Kb=g0;const J7=Kb;class G7 extends Wo(Wa,_o){constructor(t){super(t),this.element=new J7,this.specPath=_a(["value"])}}const Y7=G7,h0=class h0 extends Or.wE{constructor(t,r,o){super(t,r,o),this.classes.push(h0.primaryClass)}};Io(h0,"primaryClass","tags");let Hb=h0;const Z7=Hb;class Q7 extends Wo(qs,_o){constructor(t){super(t),this.element=new Z7}ArrayElement(t){return t.forEach(r=>{const o=b5(r)?["document","objects","Tag"]:["value"],n=this.toRefractedElement(o,r);this.element.push(n)}),this.copyMetaAndAttributes(t,this.element),pn}}const X7=Q7,{fixedFields:ns}=Zl.visitors.document.objects.JSONSchema,Fr={visitors:{value:_o,document:{objects:{OpenApi:{$visitor:y5,fixedFields:{openapi:k5,info:{$ref:"#/visitors/document/objects/Info"},servers:pb,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:j6,tags:X7,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:S5,fixedFields:{title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},termsOfService:{$ref:"#/visitors/value"},contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:_5}},Contact:{$visitor:O5,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"},email:{$ref:"#/visitors/value"}}},License:{$visitor:C5,fixedFields:{name:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Server:{$visitor:M5,fixedFields:{url:L5,description:{$ref:"#/visitors/value"},variables:H5}},ServerVariable:{$visitor:U5,fixedFields:{enum:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Components:{$visitor:A6,fixedFields:{schemas:h3,responses:b3,parameters:w3,examples:E3,requestBodies:j3,headers:C3,securitySchemes:z3,links:N3,callbacks:M3}},Paths:{$visitor:Y3},PathItem:{$visitor:B7,fixedFields:{$ref:M7,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:L7,parameters:$7}},Operation:{$visitor:S7,fixedFields:{tags:j7,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:{$ref:"#/visitors/value"},parameters:A7,requestBody:C7,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:z7,deprecated:{$ref:"#/visitors/value"},security:R7,servers:N7}},ExternalDocumentation:{$visitor:q3,fixedFields:{description:{$ref:"#/visitors/value"},url:{$ref:"#/visitors/value"}}},Parameter:{$visitor:N6,fixedFields:{name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:B6,example:{$ref:"#/visitors/value"},examples:u3,content:d3}},RequestBody:{$visitor:Q3,fixedFields:{description:{$ref:"#/visitors/value"},content:e7,required:{$ref:"#/visitors/value"}}},MediaType:{$visitor:W5,fixedFields:{schema:f6,example:{$ref:"#/visitors/value"},examples:v6,encoding:k6}},Encoding:{$visitor:H3,fixedFields:{contentType:{$ref:"#/visitors/value"},headers:J3,style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"}}},Responses:{$visitor:w7,fixedFields:{default:x7}},Response:{$visitor:a7,fixedFields:{description:{$ref:"#/visitors/value"},headers:s7,content:l7,links:d7}},Callback:{$visitor:r7},Example:{$visitor:F3,fixedFields:{summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},value:{$ref:"#/visitors/value"},externalValue:$3}},Link:{$visitor:I5,fixedFields:{operationRef:z5,operationId:T5,parameters:D5,requestBody:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:L6,fixedFields:{description:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},allowEmptyValue:{$ref:"#/visitors/value"},style:{$ref:"#/visitors/value"},explode:{$ref:"#/visitors/value"},allowReserved:{$ref:"#/visitors/value"},schema:$6,example:{$ref:"#/visitors/value"},examples:q6,content:V6}},Tag:{$visitor:P6,fixedFields:{name:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:z6,fixedFields:{$ref:T6}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:J6,fixedFields:{title:ns.title,multipleOf:ns.multipleOf,maximum:ns.maximum,exclusiveMaximum:ns.exclusiveMaximum,minimum:ns.minimum,exclusiveMinimum:ns.exclusiveMinimum,maxLength:ns.maxLength,minLength:ns.minLength,pattern:ns.pattern,maxItems:ns.maxItems,minItems:ns.minItems,uniqueItems:ns.uniqueItems,maxProperties:ns.maxProperties,minProperties:ns.minProperties,required:ns.required,enum:ns.enum,type:t3,allOf:G6,anyOf:Y6,oneOf:Z6,not:fw,items:Q6,properties:X6,additionalProperties:fw,description:ns.description,format:ns.format,default:ns.default,nullable:{$ref:"#/visitors/value"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:{$ref:"#/visitors/value"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:o3,fixedFields:{propertyName:{$ref:"#/visitors/value"},mapping:i3}},XML:{$visitor:c3,fixedFields:{name:{$ref:"#/visitors/value"},namespace:{$ref:"#/visitors/value"},prefix:{$ref:"#/visitors/value"},attribute:{$ref:"#/visitors/value"},wrapped:{$ref:"#/visitors/value"}}},SecurityScheme:{$visitor:q7,fixedFields:{type:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},name:{$ref:"#/visitors/value"},in:{$ref:"#/visitors/value"},scheme:{$ref:"#/visitors/value"},bearerFormat:{$ref:"#/visitors/value"},flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:{$ref:"#/visitors/value"}}},OAuthFlows:{$visitor:H7,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:W7,fixedFields:{authorizationUrl:{$ref:"#/visitors/value"},tokenUrl:{$ref:"#/visitors/value"},refreshUrl:{$ref:"#/visitors/value"},scopes:Y7}},SecurityRequirement:{$visitor:E6}},extension:{$visitor:x5}}}},e8=e=>{if(as(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},t8={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_0Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Cd},r8={namespace:e=>{const{base:t}=e;return t.register("callback",$g),t.register("components",Ug),t.register("contact",qg),t.register("discriminator",_f),t.register("encoding",jf),t.register("example",Kg),t.register("externalDocumentation",Hg),t.register("header",Vg),t.register("info",Wg),t.register("license",Jg),t.register("link",Gg),t.register("mediaType",Yg),t.register("oAuthFlow",Of),t.register("oAuthFlows",Af),t.register("openapi",Zg),t.register("openApi3_0",Cf),t.register("operation",Qg),t.register("parameter",Xg),t.register("pathItem",eh),t.register("paths",th),t.register("reference",rh),t.register("requestBody",oh),t.register("response",ah),t.register("responses",nh),t.register("schema",Ff),t.register("securityRequirement",ch),t.register("securityScheme",lh),t.register("server",uh),t.register("serverVariable",ph),t.register("tag",$f),t.register("xml",Uf),t}},o8=r8,a8=()=>{const e=Mg(o8);return{predicates:{..._,isElement:as,isStringElement:hn,isArrayElement:dc,isObjectElement:zn,isMemberElement:Bi,includesClasses:Od,hasElementSourceMap:Bg},namespace:e}},n8=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const o=(0,Or.e)(e),n=Rf(Fr),l=new(vi(t,n))({specObj:n});return Bs(o,l),Pd(l.element,r,{toolboxCreator:a8,visitorOptions:{keyMap:t8,nodeTypeGetter:e8}})},qn=e=>(t,r={})=>n8(t,{specPath:e,...r});$g.refract=qn(["visitors","document","objects","Callback","$visitor"]),Ug.refract=qn(["visitors","document","objects","Components","$visitor"]),qg.refract=qn(["visitors","document","objects","Contact","$visitor"]),Kg.refract=qn(["visitors","document","objects","Example","$visitor"]),_f.refract=qn(["visitors","document","objects","Discriminator","$visitor"]),jf.refract=qn(["visitors","document","objects","Encoding","$visitor"]),Hg.refract=qn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Vg.refract=qn(["visitors","document","objects","Header","$visitor"]),Wg.refract=qn(["visitors","document","objects","Info","$visitor"]),Jg.refract=qn(["visitors","document","objects","License","$visitor"]),Gg.refract=qn(["visitors","document","objects","Link","$visitor"]),Yg.refract=qn(["visitors","document","objects","MediaType","$visitor"]),Of.refract=qn(["visitors","document","objects","OAuthFlow","$visitor"]),Af.refract=qn(["visitors","document","objects","OAuthFlows","$visitor"]),Zg.refract=qn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Cf.refract=qn(["visitors","document","objects","OpenApi","$visitor"]),Qg.refract=qn(["visitors","document","objects","Operation","$visitor"]),Xg.refract=qn(["visitors","document","objects","Parameter","$visitor"]),eh.refract=qn(["visitors","document","objects","PathItem","$visitor"]),th.refract=qn(["visitors","document","objects","Paths","$visitor"]),rh.refract=qn(["visitors","document","objects","Reference","$visitor"]),oh.refract=qn(["visitors","document","objects","RequestBody","$visitor"]),ah.refract=qn(["visitors","document","objects","Response","$visitor"]),nh.refract=qn(["visitors","document","objects","Responses","$visitor"]),Ff.refract=qn(["visitors","document","objects","Schema","$visitor"]),ch.refract=qn(["visitors","document","objects","SecurityRequirement","$visitor"]),lh.refract=qn(["visitors","document","objects","SecurityScheme","$visitor"]),uh.refract=qn(["visitors","document","objects","Server","$visitor"]),ph.refract=qn(["visitors","document","objects","ServerVariable","$visitor"]),$f.refract=qn(["visitors","document","objects","Tag","$visitor"]),Uf.refract=qn(["visitors","document","objects","XML","$visitor"]);const Vf=class extends $g{},Wf=class extends Ug{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}},Jf=class extends qg{},Vb=class extends _f{},Wb=class extends jf{},Gf=class extends Kg{},Yf=class extends Hg{},Zf=class extends Vg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Qf=class extends Wg{get license(){return this.get("license")}set license(e){this.set("license",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}},f0=class f0 extends Or.Om{constructor(t,r,o){super(t,r,o),this.element="jsonSchemaDialect"}};Io(f0,"default",new f0("https://spec.openapis.org/oas/3.1/dialect/base"));let Jb=f0;const gh=Jb,Xf=class extends Jg{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}},em=class extends Gg{},tm=class extends Yg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Gb=class extends Of{},Yb=class extends Af{},Zb=class extends Zg{};class i8 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(t){this.set("openapi",t)}get info(){return this.get("info")}set info(t){this.set("info",t)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(t){this.set("jsonSchemaDialect",t)}get servers(){return this.get("servers")}set servers(t){this.set("servers",t)}get paths(){return this.get("paths")}set paths(t){this.set("paths",t)}get components(){return this.get("components")}set components(t){this.set("components",t)}get security(){return this.get("security")}set security(t){this.set("security",t)}get tags(){return this.get("tags")}set tags(t){this.set("tags",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get webhooks(){return this.get("webhooks")}set webhooks(t){this.set("webhooks",t)}}const Iu=i8,hh=class extends Qg{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}},rm=class extends Xg{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}},Ql=class extends eh{get GET(){return this.get("get")}set GET(e){this.set("GET",e)}get PUT(){return this.get("put")}set PUT(e){this.set("PUT",e)}get POST(){return this.get("post")}set POST(e){this.set("POST",e)}get DELETE(){return this.get("delete")}set DELETE(e){this.set("DELETE",e)}get OPTIONS(){return this.get("options")}set OPTIONS(e){this.set("OPTIONS",e)}get HEAD(){return this.get("head")}set HEAD(e){this.set("HEAD",e)}get PATCH(){return this.get("patch")}set PATCH(e){this.set("PATCH",e)}get TRACE(){return this.get("trace")}set TRACE(e){this.set("TRACE",e)}},om=class extends th{};class Qb extends rh{}Object.defineProperty(Qb.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Qb.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const fp=Qb,am=class extends oh{},nm=class extends ah{},im=class extends nh{};class s8 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(t){this.set("$schema",t)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(t){this.set("$vocabulary",t)}get $id(){return this.get("$id")}set $id(t){this.set("$id",t)}get $anchor(){return this.get("$anchor")}set $anchor(t){this.set("$anchor",t)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(t){this.set("$dynamicAnchor",t)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(t){this.set("$dynamicRef",t)}get $ref(){return this.get("$ref")}set $ref(t){this.set("$ref",t)}get $defs(){return this.get("$defs")}set $defs(t){this.set("$defs",t)}get $comment(){return this.get("$comment")}set $comment(t){this.set("$comment",t)}get allOf(){return this.get("allOf")}set allOf(t){this.set("allOf",t)}get anyOf(){return this.get("anyOf")}set anyOf(t){this.set("anyOf",t)}get oneOf(){return this.get("oneOf")}set oneOf(t){this.set("oneOf",t)}get not(){return this.get("not")}set not(t){this.set("not",t)}get if(){return this.get("if")}set if(t){this.set("if",t)}get then(){return this.get("then")}set then(t){this.set("then",t)}get else(){return this.get("else")}set else(t){this.set("else",t)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(t){this.set("dependentSchemas",t)}get prefixItems(){return this.get("prefixItems")}set prefixItems(t){this.set("prefixItems",t)}get items(){return this.get("items")}set items(t){this.set("items",t)}get containsProp(){return this.get("contains")}set containsProp(t){this.set("contains",t)}get properties(){return this.get("properties")}set properties(t){this.set("properties",t)}get patternProperties(){return this.get("patternProperties")}set patternProperties(t){this.set("patternProperties",t)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(t){this.set("additionalProperties",t)}get propertyNames(){return this.get("propertyNames")}set propertyNames(t){this.set("propertyNames",t)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(t){this.set("unevaluatedItems",t)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(t){this.set("unevaluatedProperties",t)}get type(){return this.get("type")}set type(t){this.set("type",t)}get enum(){return this.get("enum")}set enum(t){this.set("enum",t)}get const(){return this.get("const")}set const(t){this.set("const",t)}get multipleOf(){return this.get("multipleOf")}set multipleOf(t){this.set("multipleOf",t)}get maximum(){return this.get("maximum")}set maximum(t){this.set("maximum",t)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(t){this.set("exclusiveMaximum",t)}get minimum(){return this.get("minimum")}set minimum(t){this.set("minimum",t)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(t){this.set("exclusiveMinimum",t)}get maxLength(){return this.get("maxLength")}set maxLength(t){this.set("maxLength",t)}get minLength(){return this.get("minLength")}set minLength(t){this.set("minLength",t)}get pattern(){return this.get("pattern")}set pattern(t){this.set("pattern",t)}get maxItems(){return this.get("maxItems")}set maxItems(t){this.set("maxItems",t)}get minItems(){return this.get("minItems")}set minItems(t){this.set("minItems",t)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(t){this.set("uniqueItems",t)}get maxContains(){return this.get("maxContains")}set maxContains(t){this.set("maxContains",t)}get minContains(){return this.get("minContains")}set minContains(t){this.set("minContains",t)}get maxProperties(){return this.get("maxProperties")}set maxProperties(t){this.set("maxProperties",t)}get minProperties(){return this.get("minProperties")}set minProperties(t){this.set("minProperties",t)}get required(){return this.get("required")}set required(t){this.set("required",t)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(t){this.set("dependentRequired",t)}get title(){return this.get("title")}set title(t){this.set("title",t)}get description(){return this.get("description")}set description(t){this.set("description",t)}get default(){return this.get("default")}set default(t){this.set("default",t)}get deprecated(){return this.get("deprecated")}set deprecated(t){this.set("deprecated",t)}get readOnly(){return this.get("readOnly")}set readOnly(t){this.set("readOnly",t)}get writeOnly(){return this.get("writeOnly")}set writeOnly(t){this.set("writeOnly",t)}get examples(){return this.get("examples")}set examples(t){this.set("examples",t)}get format(){return this.get("format")}set format(t){this.set("format",t)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(t){this.set("contentEncoding",t)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(t){this.set("contentMediaType",t)}get contentSchema(){return this.get("contentSchema")}set contentSchema(t){this.set("contentSchema",t)}get discriminator(){return this.get("discriminator")}set discriminator(t){this.set("discriminator",t)}get xml(){return this.get("xml")}set xml(t){this.set("xml",t)}get externalDocs(){return this.get("externalDocs")}set externalDocs(t){this.set("externalDocs",t)}get example(){return this.get("example")}set example(t){this.set("example",t)}}const Xl=s8,sm=class extends ch{},cm=class extends lh{},lm=class extends uh{},um=class extends ph{},Xb=class extends $f{},ev=class extends Uf{};class c8 extends Wo(on,_o){constructor(t){super(t),this.element=new Iu,this.specPath=_a(["document","objects","OpenApi"]),this.canSupportSpecificationExtensions=!0,this.openApiSemanticElement=this.element}ObjectElement(t){return this.openApiGenericElement=t,on.prototype.ObjectElement.call(this,t)}}const l8=c8,{visitors:{document:{objects:{Info:{$visitor:u8}}}}}=Fr,p8=class extends u8{constructor(e){super(e),this.element=new Qf}},{visitors:{document:{objects:{Contact:{$visitor:d8}}}}}=Fr,g8=class extends d8{constructor(e){super(e),this.element=new Jf}},{visitors:{document:{objects:{License:{$visitor:h8}}}}}=Fr,f8=class extends h8{constructor(e){super(e),this.element=new Xf}},{visitors:{document:{objects:{Link:{$visitor:m8}}}}}=Fr,b8=class extends m8{constructor(e){super(e),this.element=new em}};class v8 extends Wo(qs,_o){StringElement(t){const r=new gh(ro(t));return this.copyMetaAndAttributes(t,r),this.element=r,pn}}const y8=v8,{visitors:{document:{objects:{Server:{$visitor:w8}}}}}=Fr,k8=class extends w8{constructor(e){super(e),this.element=new lm}},{visitors:{document:{objects:{ServerVariable:{$visitor:x8}}}}}=Fr,E8=class extends x8{constructor(e){super(e),this.element=new um}},{visitors:{document:{objects:{MediaType:{$visitor:S8}}}}}=Fr,_8=class extends S8{constructor(e){super(e),this.element=new tm}},{visitors:{document:{objects:{SecurityRequirement:{$visitor:j8}}}}}=Fr,O8=class extends j8{constructor(e){super(e),this.element=new sm}},{visitors:{document:{objects:{Components:{$visitor:A8}}}}}=Fr,C8=class extends A8{constructor(e){super(e),this.element=new Wf}},{visitors:{document:{objects:{Tag:{$visitor:P8}}}}}=Fr,I8=class extends P8{constructor(e){super(e),this.element=new Xb}},{visitors:{document:{objects:{Reference:{$visitor:z8}}}}}=Fr,T8=class extends z8{constructor(e){super(e),this.element=new fp}},{visitors:{document:{objects:{Parameter:{$visitor:R8}}}}}=Fr,N8=class extends R8{constructor(e){super(e),this.element=new rm}},{visitors:{document:{objects:{Header:{$visitor:D8}}}}}=Fr,B8=class extends D8{constructor(e){super(e),this.element=new Zf}},M8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Vf||e(o)&&t("callback",o)&&r("object",o)),L8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Wf||e(o)&&t("components",o)&&r("object",o)),F8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Jf||e(o)&&t("contact",o)&&r("object",o)),$8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Gf||e(o)&&t("example",o)&&r("object",o)),U8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Yf||e(o)&&t("externalDocumentation",o)&&r("object",o)),q8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Zf||e(o)&&t("header",o)&&r("object",o)),K8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Qf||e(o)&&t("info",o)&&r("object",o)),_w=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof gh||e(o)&&t("jsonSchemaDialect",o)&&r("string",o)),H8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Xf||e(o)&&t("license",o)&&r("object",o)),V8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof em||e(o)&&t("link",o)&&r("object",o)),W8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Zb||e(o)&&t("openapi",o)&&r("string",o)),jw=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:o})=>n=>n instanceof Iu||e(n)&&t("openApi3_1",n)&&r("object",n)&&o("api",n)),Ow=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof hh||e(o)&&t("operation",o)&&r("object",o)),J8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof rm||e(o)&&t("parameter",o)&&r("object",o)),fh=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Ql||e(o)&&t("pathItem",o)&&r("object",o)),G8=e=>{if(!fh(e)||!hn(e.$ref))return!1;const t=ro(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Y8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof om||e(o)&&t("paths",o)&&r("object",o)),Rd=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof fp||e(o)&&t("reference",o)&&r("object",o)),Z8=e=>{if(!Rd(e)||!hn(e.$ref))return!1;const t=ro(e.$ref);return typeof t=="string"&&t.length>0&&!t.startsWith("#")},Q8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof am||e(o)&&t("requestBody",o)&&r("object",o)),X8=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof nm||e(o)&&t("response",o)&&r("object",o)),e9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof im||e(o)&&t("responses",o)&&r("object",o)),mp=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof Xl||e(o)&&t("schema",o)&&r("object",o)),tv=e=>Dg(e)&&e.classes.includes("boolean-json-schema"),t9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof sm||e(o)&&t("securityRequirement",o)&&r("object",o)),r9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof cm||e(o)&&t("securityScheme",o)&&r("object",o)),o9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof lm||e(o)&&t("server",o)&&r("object",o)),a9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof um||e(o)&&t("serverVariable",o)&&r("object",o)),n9=ea(({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>o=>o instanceof tm||e(o)&&t("mediaType",o)&&r("object",o)),eu=class{constructor({parent:e}){Io(this,"parent");this.parent=e}};class i9 extends Wo(on,eu,_o){constructor(t){super(t),this.element=new Xl,this.specPath=_a(["document","objects","Schema"]),this.canSupportSpecificationExtensions=!0,this.jsonSchemaDefaultDialect=gh.default,this.passingOptionsNames.push("parent")}ObjectElement(t){this.handle$schema(t),this.handle$id(t),this.parent=this.element;const r=on.prototype.ObjectElement.call(this,t);return hn(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),r}BooleanElement(t){const r=super.enter(t);return this.element.classes.push("boolean-json-schema"),r}getJsonSchemaDialect(){let t;return t=this.openApiSemanticElement!==void 0&&_w(this.openApiSemanticElement.jsonSchemaDialect)?ro(this.openApiSemanticElement.jsonSchemaDialect):this.openApiGenericElement!==void 0&&hn(this.openApiGenericElement.get("jsonSchemaDialect"))?ro(this.openApiGenericElement.get("jsonSchemaDialect")):ro(this.jsonSchemaDefaultDialect),t}handle$schema(t){if(pc(this.parent)&&!hn(t.get("$schema")))this.element.setMetaProperty("inherited$schema",this.getJsonSchemaDialect());else if(mp(this.parent)&&!hn(t.get("$schema"))){const r=Ml(ro(this.parent.meta.get("inherited$schema")),ro(this.parent.$schema));this.element.setMetaProperty("inherited$schema",r)}}handle$id(t){const r=this.parent!==void 0?To(this.parent.getMetaProperty("inherited$id",[])):new Or.wE,o=ro(t.get("$id"));ab(o)&&r.push(o),this.element.setMetaProperty("inherited$id",r)}}const s9=i9,c9=class extends _o{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-$vocabulary"),t}},l9=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("reference-value"),t}};class u9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-$defs"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const p9=u9;class d9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-allOf"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const g9=d9;class h9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-anyOf"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const f9=h9;class m9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-oneOf"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const b9=m9;class v9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-dependentSchemas"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const y9=v9;class w9 extends Wo(qs,eu,_o){constructor(t){super(t),this.element=new Or.wE,this.element.classes.push("json-schema-prefixItems"),this.passingOptionsNames.push("parent")}ArrayElement(t){return t.forEach(r=>{if(zn(r)){const o=this.toRefractedElement(["document","objects","Schema"],r);this.element.push(o)}else{const o=To(r);this.element.push(o)}}),this.copyMetaAndAttributes(t,this.element),pn}}const k9=w9;class x9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-properties"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const E9=x9;class S9 extends Wo(Wa,eu,_o){constructor(t){super(t),this.element=new Or.Sh,this.element.classes.push("json-schema-patternProperties"),this.specPath=_a(["document","objects","Schema"]),this.passingOptionsNames.push("parent")}}const _9=S9,j9=class extends _o{StringElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-type"),t}},O9=class extends _o{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-enum"),t}},A9=class extends _o{ObjectElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-dependentRequired"),t}},C9=class extends _o{ArrayElement(e){const t=super.enter(e);return this.element.classes.push("json-schema-examples"),t}},{visitors:{document:{objects:{Discriminator:{$visitor:P9}}}}}=Fr,I9=class extends P9{constructor(e){super(e),this.element=new Vb,this.canSupportSpecificationExtensions=!0}},{visitors:{document:{objects:{XML:{$visitor:z9}}}}}=Fr,T9=class extends z9{constructor(e){super(e),this.element=new ev}};class R9 extends Wo(Wa,_o){constructor(t){super(t),this.element=new mw,this.specPath=_a(["document","objects","Schema"])}}const N9=R9,m0=class m0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(m0.primaryClass)}};Io(m0,"primaryClass","components-path-items");let rv=m0;const D9=rv;class B9 extends Wo(Wa,_o){constructor(t){super(t),this.element=new D9,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(Rd).forEach(o=>{o.setMetaProperty("referenced-element","pathItem")}),r}}const M9=B9,{visitors:{document:{objects:{Example:{$visitor:L9}}}}}=Fr,F9=class extends L9{constructor(e){super(e),this.element=new Gf}},{visitors:{document:{objects:{ExternalDocumentation:{$visitor:$9}}}}}=Fr,U9=class extends $9{constructor(e){super(e),this.element=new Yf}},{visitors:{document:{objects:{Encoding:{$visitor:q9}}}}}=Fr,K9=class extends q9{constructor(e){super(e),this.element=new Wb}},{visitors:{document:{objects:{Paths:{$visitor:H9}}}}}=Fr,V9=class extends H9{constructor(e){super(e),this.element=new om}},{visitors:{document:{objects:{RequestBody:{$visitor:W9}}}}}=Fr,J9=class extends W9{constructor(e){super(e),this.element=new am}},{visitors:{document:{objects:{Callback:{$visitor:Aw}}}}}=Fr,G9=class extends Aw{constructor(e){super(e),this.element=new Vf,this.specPath=t=>ui(t)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(e){const t=Aw.prototype.ObjectElement.call(this,e);return this.element.filter(Rd).forEach(r=>{r.setMetaProperty("referenced-element","pathItem")}),t}},{visitors:{document:{objects:{Response:{$visitor:Y9}}}}}=Fr,Z9=class extends Y9{constructor(e){super(e),this.element=new nm}},{visitors:{document:{objects:{Responses:{$visitor:Q9}}}}}=Fr,X9=class extends Q9{constructor(e){super(e),this.element=new im}},{visitors:{document:{objects:{Operation:{$visitor:eE}}}}}=Fr,tE=class extends eE{constructor(e){super(e),this.element=new hh}},{visitors:{document:{objects:{PathItem:{$visitor:rE}}}}}=Fr,oE=class extends rE{constructor(e){super(e),this.element=new Ql}},{visitors:{document:{objects:{SecurityScheme:{$visitor:aE}}}}}=Fr,nE=class extends aE{constructor(e){super(e),this.element=new cm}},{visitors:{document:{objects:{OAuthFlows:{$visitor:iE}}}}}=Fr,sE=class extends iE{constructor(e){super(e),this.element=new Yb}},{visitors:{document:{objects:{OAuthFlow:{$visitor:cE}}}}}=Fr,lE=class extends cE{constructor(e){super(e),this.element=new Gb}},b0=class b0 extends Or.Sh{constructor(t,r,o){super(t,r,o),this.classes.push(b0.primaryClass)}};Io(b0,"primaryClass","webhooks");let ov=b0;const uE=ov;class pE extends Wo(Wa,_o){constructor(t){super(t),this.element=new uE,this.specPath=r=>ui(r)?["document","objects","Reference"]:["document","objects","PathItem"]}ObjectElement(t){const r=Wa.prototype.ObjectElement.call(this,t);return this.element.filter(Rd).forEach(o=>{o.setMetaProperty("referenced-element","pathItem")}),this.element.filter(fh).forEach((o,n)=>{o.setMetaProperty("webhook-name",ro(n))}),r}}const dE=pE,gE={visitors:{value:Fr.visitors.value,document:{objects:{OpenApi:{$visitor:l8,fixedFields:{openapi:Fr.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:y8,servers:Fr.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:dE,components:{$ref:"#/visitors/document/objects/Components"},security:Fr.visitors.document.objects.OpenApi.fixedFields.security,tags:Fr.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:p8,fixedFields:{title:Fr.visitors.document.objects.Info.fixedFields.title,description:Fr.visitors.document.objects.Info.fixedFields.description,summary:{$ref:"#/visitors/value"},termsOfService:Fr.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:Fr.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:g8,fixedFields:{name:Fr.visitors.document.objects.Contact.fixedFields.name,url:Fr.visitors.document.objects.Contact.fixedFields.url,email:Fr.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:f8,fixedFields:{name:Fr.visitors.document.objects.License.fixedFields.name,identifier:{$ref:"#/visitors/value"},url:Fr.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:k8,fixedFields:{url:Fr.visitors.document.objects.Server.fixedFields.url,description:Fr.visitors.document.objects.Server.fixedFields.description,variables:Fr.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:E8,fixedFields:{enum:Fr.visitors.document.objects.ServerVariable.fixedFields.enum,default:Fr.visitors.document.objects.ServerVariable.fixedFields.default,description:Fr.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:C8,fixedFields:{schemas:N9,responses:Fr.visitors.document.objects.Components.fixedFields.responses,parameters:Fr.visitors.document.objects.Components.fixedFields.parameters,examples:Fr.visitors.document.objects.Components.fixedFields.examples,requestBodies:Fr.visitors.document.objects.Components.fixedFields.requestBodies,headers:Fr.visitors.document.objects.Components.fixedFields.headers,securitySchemes:Fr.visitors.document.objects.Components.fixedFields.securitySchemes,links:Fr.visitors.document.objects.Components.fixedFields.links,callbacks:Fr.visitors.document.objects.Components.fixedFields.callbacks,pathItems:M9}},Paths:{$visitor:V9},PathItem:{$visitor:oE,fixedFields:{$ref:Fr.visitors.document.objects.PathItem.fixedFields.$ref,summary:Fr.visitors.document.objects.PathItem.fixedFields.summary,description:Fr.visitors.document.objects.PathItem.fixedFields.description,get:{$ref:"#/visitors/document/objects/Operation"},put:{$ref:"#/visitors/document/objects/Operation"},post:{$ref:"#/visitors/document/objects/Operation"},delete:{$ref:"#/visitors/document/objects/Operation"},options:{$ref:"#/visitors/document/objects/Operation"},head:{$ref:"#/visitors/document/objects/Operation"},patch:{$ref:"#/visitors/document/objects/Operation"},trace:{$ref:"#/visitors/document/objects/Operation"},servers:Fr.visitors.document.objects.PathItem.fixedFields.servers,parameters:Fr.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:tE,fixedFields:{tags:Fr.visitors.document.objects.Operation.fixedFields.tags,summary:Fr.visitors.document.objects.Operation.fixedFields.summary,description:Fr.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:Fr.visitors.document.objects.Operation.fixedFields.operationId,parameters:Fr.visitors.document.objects.Operation.fixedFields.parameters,requestBody:Fr.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Fr.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:Fr.visitors.document.objects.Operation.fixedFields.deprecated,security:Fr.visitors.document.objects.Operation.fixedFields.security,servers:Fr.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:U9,fixedFields:{description:Fr.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:Fr.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:N8,fixedFields:{name:Fr.visitors.document.objects.Parameter.fixedFields.name,in:Fr.visitors.document.objects.Parameter.fixedFields.in,description:Fr.visitors.document.objects.Parameter.fixedFields.description,required:Fr.visitors.document.objects.Parameter.fixedFields.required,deprecated:Fr.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:Fr.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:Fr.visitors.document.objects.Parameter.fixedFields.style,explode:Fr.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:Fr.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fr.visitors.document.objects.Parameter.fixedFields.example,examples:Fr.visitors.document.objects.Parameter.fixedFields.examples,content:Fr.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:J9,fixedFields:{description:Fr.visitors.document.objects.RequestBody.fixedFields.description,content:Fr.visitors.document.objects.RequestBody.fixedFields.content,required:Fr.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:_8,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:Fr.visitors.document.objects.MediaType.fixedFields.example,examples:Fr.visitors.document.objects.MediaType.fixedFields.examples,encoding:Fr.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:K9,fixedFields:{contentType:Fr.visitors.document.objects.Encoding.fixedFields.contentType,headers:Fr.visitors.document.objects.Encoding.fixedFields.headers,style:Fr.visitors.document.objects.Encoding.fixedFields.style,explode:Fr.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:Fr.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:X9,fixedFields:{default:Fr.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:Z9,fixedFields:{description:Fr.visitors.document.objects.Response.fixedFields.description,headers:Fr.visitors.document.objects.Response.fixedFields.headers,content:Fr.visitors.document.objects.Response.fixedFields.content,links:Fr.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:G9},Example:{$visitor:F9,fixedFields:{summary:Fr.visitors.document.objects.Example.fixedFields.summary,description:Fr.visitors.document.objects.Example.fixedFields.description,value:Fr.visitors.document.objects.Example.fixedFields.value,externalValue:Fr.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:b8,fixedFields:{operationRef:Fr.visitors.document.objects.Link.fixedFields.operationRef,operationId:Fr.visitors.document.objects.Link.fixedFields.operationId,parameters:Fr.visitors.document.objects.Link.fixedFields.parameters,requestBody:Fr.visitors.document.objects.Link.fixedFields.requestBody,description:Fr.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:B8,fixedFields:{description:Fr.visitors.document.objects.Header.fixedFields.description,required:Fr.visitors.document.objects.Header.fixedFields.required,deprecated:Fr.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:Fr.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:Fr.visitors.document.objects.Header.fixedFields.style,explode:Fr.visitors.document.objects.Header.fixedFields.explode,allowReserved:Fr.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:Fr.visitors.document.objects.Header.fixedFields.example,examples:Fr.visitors.document.objects.Header.fixedFields.examples,content:Fr.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:I8,fixedFields:{name:Fr.visitors.document.objects.Tag.fixedFields.name,description:Fr.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:T8,fixedFields:{$ref:Fr.visitors.document.objects.Reference.fixedFields.$ref,summary:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"}}},Schema:{$visitor:s9,fixedFields:{$schema:{$ref:"#/visitors/value"},$vocabulary:c9,$id:{$ref:"#/visitors/value"},$anchor:{$ref:"#/visitors/value"},$dynamicAnchor:{$ref:"#/visitors/value"},$dynamicRef:{$ref:"#/visitors/value"},$ref:l9,$defs:p9,$comment:{$ref:"#/visitors/value"},allOf:g9,anyOf:f9,oneOf:b9,not:{$ref:"#/visitors/document/objects/Schema"},if:{$ref:"#/visitors/document/objects/Schema"},then:{$ref:"#/visitors/document/objects/Schema"},else:{$ref:"#/visitors/document/objects/Schema"},dependentSchemas:y9,prefixItems:k9,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:E9,patternProperties:_9,additionalProperties:{$ref:"#/visitors/document/objects/Schema"},propertyNames:{$ref:"#/visitors/document/objects/Schema"},unevaluatedItems:{$ref:"#/visitors/document/objects/Schema"},unevaluatedProperties:{$ref:"#/visitors/document/objects/Schema"},type:j9,enum:O9,const:{$ref:"#/visitors/value"},multipleOf:{$ref:"#/visitors/value"},maximum:{$ref:"#/visitors/value"},exclusiveMaximum:{$ref:"#/visitors/value"},minimum:{$ref:"#/visitors/value"},exclusiveMinimum:{$ref:"#/visitors/value"},maxLength:{$ref:"#/visitors/value"},minLength:{$ref:"#/visitors/value"},pattern:{$ref:"#/visitors/value"},maxItems:{$ref:"#/visitors/value"},minItems:{$ref:"#/visitors/value"},uniqueItems:{$ref:"#/visitors/value"},maxContains:{$ref:"#/visitors/value"},minContains:{$ref:"#/visitors/value"},maxProperties:{$ref:"#/visitors/value"},minProperties:{$ref:"#/visitors/value"},required:{$ref:"#/visitors/value"},dependentRequired:A9,title:{$ref:"#/visitors/value"},description:{$ref:"#/visitors/value"},default:{$ref:"#/visitors/value"},deprecated:{$ref:"#/visitors/value"},readOnly:{$ref:"#/visitors/value"},writeOnly:{$ref:"#/visitors/value"},examples:C9,format:{$ref:"#/visitors/value"},contentEncoding:{$ref:"#/visitors/value"},contentMediaType:{$ref:"#/visitors/value"},contentSchema:{$ref:"#/visitors/document/objects/Schema"},discriminator:{$ref:"#/visitors/document/objects/Discriminator"},xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:{$ref:"#/visitors/value"}}},Discriminator:{$visitor:I9,fixedFields:{propertyName:Fr.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:Fr.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:T9,fixedFields:{name:Fr.visitors.document.objects.XML.fixedFields.name,namespace:Fr.visitors.document.objects.XML.fixedFields.namespace,prefix:Fr.visitors.document.objects.XML.fixedFields.prefix,attribute:Fr.visitors.document.objects.XML.fixedFields.attribute,wrapped:Fr.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:nE,fixedFields:{type:Fr.visitors.document.objects.SecurityScheme.fixedFields.type,description:Fr.visitors.document.objects.SecurityScheme.fixedFields.description,name:Fr.visitors.document.objects.SecurityScheme.fixedFields.name,in:Fr.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:Fr.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:Fr.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Fr.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:sE,fixedFields:{implicit:{$ref:"#/visitors/document/objects/OAuthFlow"},password:{$ref:"#/visitors/document/objects/OAuthFlow"},clientCredentials:{$ref:"#/visitors/document/objects/OAuthFlow"},authorizationCode:{$ref:"#/visitors/document/objects/OAuthFlow"}}},OAuthFlow:{$visitor:lE,fixedFields:{authorizationUrl:Fr.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:Fr.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:Fr.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:Fr.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:O8}},extension:{$visitor:Fr.visitors.document.extension.$visitor}}}},Yc=e=>{if(as(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},jl={CallbackElement:["content"],ComponentsElement:["content"],ContactElement:["content"],DiscriminatorElement:["content"],Encoding:["content"],Example:["content"],ExternalDocumentationElement:["content"],HeaderElement:["content"],InfoElement:["content"],LicenseElement:["content"],MediaTypeElement:["content"],OAuthFlowElement:["content"],OAuthFlowsElement:["content"],OpenApi3_1Element:["content"],OperationElement:["content"],ParameterElement:["content"],PathItemElement:["content"],PathsElement:["content"],ReferenceElement:["content"],RequestBodyElement:["content"],ResponseElement:["content"],ResponsesElement:["content"],SchemaElement:["content"],SecurityRequirementElement:["content"],SecuritySchemeElement:["content"],ServerElement:["content"],ServerVariableElement:["content"],TagElement:["content"],...Cd},hE={namespace:e=>{const{base:t}=e;return t.register("callback",Vf),t.register("components",Wf),t.register("contact",Jf),t.register("discriminator",Vb),t.register("encoding",Wb),t.register("example",Gf),t.register("externalDocumentation",Yf),t.register("header",Zf),t.register("info",Qf),t.register("jsonSchemaDialect",gh),t.register("license",Xf),t.register("link",em),t.register("mediaType",tm),t.register("oAuthFlow",Gb),t.register("oAuthFlows",Yb),t.register("openapi",Zb),t.register("openApi3_1",Iu),t.register("operation",hh),t.register("parameter",rm),t.register("pathItem",Ql),t.register("paths",om),t.register("reference",fp),t.register("requestBody",am),t.register("response",nm),t.register("responses",im),t.register("schema",Xl),t.register("securityRequirement",sm),t.register("securityScheme",cm),t.register("server",lm),t.register("serverVariable",um),t.register("tag",Xb),t.register("xml",ev),t}},av=hE,Cw=()=>{const e=Mg(av);return{predicates:{...x,isElement:as,isStringElement:hn,isArrayElement:dc,isObjectElement:zn,isMemberElement:Bi,isServersElement:cw,includesClasses:Od,hasElementSourceMap:Bg},namespace:e}},fE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const o=(0,Or.e)(e),n=Rf(gE),l=new(vi(t,n))({specObj:n});return Bs(o,l),Pd(l.element,r,{toolboxCreator:Cw,visitorOptions:{keyMap:jl,nodeTypeGetter:Yc}})},Nn=e=>(t,r={})=>fE(t,{specPath:e,...r});Vf.refract=Nn(["visitors","document","objects","Callback","$visitor"]),Wf.refract=Nn(["visitors","document","objects","Components","$visitor"]),Jf.refract=Nn(["visitors","document","objects","Contact","$visitor"]),Gf.refract=Nn(["visitors","document","objects","Example","$visitor"]),Vb.refract=Nn(["visitors","document","objects","Discriminator","$visitor"]),Wb.refract=Nn(["visitors","document","objects","Encoding","$visitor"]),Yf.refract=Nn(["visitors","document","objects","ExternalDocumentation","$visitor"]),Zf.refract=Nn(["visitors","document","objects","Header","$visitor"]),Qf.refract=Nn(["visitors","document","objects","Info","$visitor"]),gh.refract=Nn(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Xf.refract=Nn(["visitors","document","objects","License","$visitor"]),em.refract=Nn(["visitors","document","objects","Link","$visitor"]),tm.refract=Nn(["visitors","document","objects","MediaType","$visitor"]),Gb.refract=Nn(["visitors","document","objects","OAuthFlow","$visitor"]),Yb.refract=Nn(["visitors","document","objects","OAuthFlows","$visitor"]),Zb.refract=Nn(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Iu.refract=Nn(["visitors","document","objects","OpenApi","$visitor"]),hh.refract=Nn(["visitors","document","objects","Operation","$visitor"]),rm.refract=Nn(["visitors","document","objects","Parameter","$visitor"]),Ql.refract=Nn(["visitors","document","objects","PathItem","$visitor"]),om.refract=Nn(["visitors","document","objects","Paths","$visitor"]),fp.refract=Nn(["visitors","document","objects","Reference","$visitor"]),am.refract=Nn(["visitors","document","objects","RequestBody","$visitor"]),nm.refract=Nn(["visitors","document","objects","Response","$visitor"]),im.refract=Nn(["visitors","document","objects","Responses","$visitor"]),Xl.refract=Nn(["visitors","document","objects","Schema","$visitor"]),sm.refract=Nn(["visitors","document","objects","SecurityRequirement","$visitor"]),cm.refract=Nn(["visitors","document","objects","SecurityScheme","$visitor"]),lm.refract=Nn(["visitors","document","objects","Server","$visitor"]),um.refract=Nn(["visitors","document","objects","ServerVariable","$visitor"]),Xb.refract=Nn(["visitors","document","objects","Tag","$visitor"]),ev.refract=Nn(["visitors","document","objects","XML","$visitor"]);const Ol=class extends Es{},mE=class extends Array{constructor(){super(...arguments);Io(this,"unknownMediaType","application/octet-stream")}filterByFormat(){throw new Ol("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new Ol("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new Ol("latest method in MediaTypes class is not yet implemented.")}};class nv extends mE{filterByFormat(t="generic"){const r=t==="generic"?"openapi;version":t;return this.filter(o=>o.includes(r))}findBy(t="3.1.0",r="generic"){const o=r==="generic"?`vnd.oai.openapi;version=${t}`:`vnd.oai.openapi+${r};version=${t}`;return this.find(n=>n.includes(o))||this.unknownMediaType}latest(t="generic"){return vu(this.filterByFormat(t))}}const Nd=new nv("application/vnd.oai.openapi;version=3.1.0","application/vnd.oai.openapi+json;version=3.1.0","application/vnd.oai.openapi+yaml;version=3.1.0"),bp=fn({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:o=this.value}={}){this.uri=r,this.value=o,this.depth=e,this.refSet=t,this.errors=[]}}),iv=Ri(function(e,t,r){return Hi(e,bl(t,r))}),bE=fn({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach(t=>this.add(t))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=this.rootRef===null?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=wl(e)?e:e.uri;return yg(this.find(iv(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach(e=>{e.refSet=null}),this.rootRef=null,this.refs=[]}}}),mh=bE,vE={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],strategyOpts:{},internal:!0,external:!0,maxDepth:1/0},dereference:{strategies:[],strategyOpts:{},refSet:null,maxDepth:1/0,circular:"ignore",circularReplacer:Uy,immutable:!0},bundle:{strategies:[],refSet:null,maxDepth:1/0}},yE=Da(function(e,t){return function(r){return function(o){return yu(function(n){return t(n,o)},r(e(o)))}}});var wE=Ri(function e(t,r,o){if(t.length===0)return r;var n=t[0];if(t.length>1){var l=!Tf(o)&&vs(n,o)&&typeof o[n]=="object"?o[n]:bs(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,l)}return function(h,m,E){if(bs(h)&&si(E)){var R=[].concat(E);return R[h]=m,R}var B={};for(var $ in E)B[$]=E[$];return B[h]=m,B}(n,r,o)});const kE=wE;var Pw=function(e){return{value:e,map:function(t){return Pw(t(e))}}},xE=Ri(function(e,t,r){return e(function(o){return Pw(t(o))})(r).value});const EE=xE,SE=yE(vi(["resolve","baseURI"]),kE(["resolve","baseURI"])),_E=e=>Ky(e)?rp():e,Iw=(e,t)=>{const r=Xo(e,t);return EE(SE,_E,r)},bh=fn({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:o=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=o},methods:{get extension(){return wl(this.uri)?xg(this.uri):""},toString(){return typeof this.data=="string"?this.data:this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ys(this.data))||ArrayBuffer.isView(this.data)?new TextDecoder("utf-8").decode(this.data):String(this.data)}}}),jE=class extends Gi{constructor(t,r){super(t,{cause:r.cause});Io(this,"plugin");this.plugin=r.plugin}},sv=async(e,t,r)=>{const o=await Promise.all(r.map(rn([e],t)));return r.filter((n,l)=>o[l])},cv=async(e,t,r)=>{let o;for(const n of r)try{const l=await n[e].call(n,...t);return{plugin:n,result:l}}catch(l){o=new jE("Error while running plugin",{cause:l,plugin:n})}return Promise.reject(o)},lv=class extends Gi{},zw=class extends lv{},OE=async(e,t)=>{let r=e,o=!1;if(!Ey(e)){const h=Us(e);h.classes.push("result"),r=new le([h]),o=!0}const n=bh({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),l=await sv("canDereference",[n,t],t.dereference.strategies);if(po(l))throw new zw(n.uri);try{const{result:h}=await cv("dereference",[n,t],l);return o?h.get(0):h}catch(h){throw new lv(`Error while dereferencing file "${n.uri}"`,{cause:h})}},uv=class extends Gi{},tu=class extends uv{},AE=fn({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:o=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=o},methods:{async canParse(){throw new Ol("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new Ol("parse method in Parser stamp is not yet implemented.")}}}),vh=AE,CE=fn(vh,{props:{name:"binary"},methods:{async canParse(e){return this.fileExtensions.length===0||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),o=new le;if(r.length!==0){const n=new Or.Om(r);n.classes.push("result"),o.push(n)}return o}catch(t){throw new tu(`Error parsing "${e.uri}"`,{cause:t})}}}}),PE=fn({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new Ol("resolve method in ResolveStrategy stamp is not yet implemented.")}}}),IE=fn(PE,{init(){this.name="openapi-3-1"},methods:{canResolve(e,t){const r=t.dereference.strategies.find(o=>o.name==="openapi-3-1");return r!==void 0&&r.canDereference(e,t)},async resolve(e,t){const r=t.dereference.strategies.find(l=>l.name==="openapi-3-1");if(r===void 0)throw new zw('"openapi-3-1" dereference strategy is not available.');const o=mh(),n=Iw(t,{resolve:{internal:!1},dereference:{refSet:o}});return await r.dereference(e,n),o}}}),zE=IE;function pv(e,t,r){if(r||(r=new TE),function(n){var l=typeof n;return n==null||l!="object"&&l!="function"}(e))return e;var o=function(n){var l=r.get(e);if(l)return l;for(var h in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,h)&&(n[h]=t?pv(e[h],!0,r):e[h]);return n};switch(ys(e)){case"Object":return o(Object.create(Object.getPrototypeOf(e)));case"Array":return o([]);case"Date":return new Date(e.valueOf());case"RegExp":return gu(e);case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"BigInt64Array":case"BigUint64Array":return e.slice();default:return e}}var TE=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(t,r){const o=this.hash(t);let n=this.map[o];n||(this.map[o]=n=[]),n.push([t,r]),this.length+=1},e.prototype.hash=function(t){let r=[];for(var o in t)r.push(Object.prototype.toString.call(t[o]));return r.join()},e.prototype.get=function(t){if(this.length<=180){for(const n in this.map){const l=this.map[n];for(let h=0;h<l.length;h+=1){const m=l[h];if(m[0]===t)return m[1]}}return}const r=this.hash(t),o=this.map[r];if(o)for(let n=0;n<o.length;n+=1){const l=o[n];if(l[0]===t)return l[1]}},e}(),RE=function(){function e(t,r,o,n){this.valueFn=t,this.valueAcc=r,this.keyFn=o,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=function(t){var r;for(r in this.inputs)if(vs(r,this.inputs)&&(t=this.xf["@@transducer/step"](t,this.inputs[r]))["@@transducer/reduced"]){t=t["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](t)},e.prototype["@@transducer/step"]=function(t,r){var o=this.keyFn(r);return this.inputs[o]=this.inputs[o]||[o,pv(this.valueAcc,!1)],this.inputs[o][1]=this.valueFn(this.inputs[o][1],r),t},e}();function NE(e,t,r){return function(o){return new RE(e,t,r,o)}}var DE=Yp(4,[],ic([],NE,function(e,t,r,o){var n=cc(function(l,h){var m=r(h),E=e(vs(m,l)?l[m]:pv(t,!1),h);return E&&E["@@transducer/reduced"]?Aa(l):(l[m]=E,l)});return Fc(n,{},o)}));const BE=Da(Gp("groupBy",DE(function(e,t){return e.push(t),e},[]))),dv=e=>e.replace(/\s/g,""),gv=e=>e.replace(/\W/gi,"_"),ME=(e,t,r)=>{const o=dv(e);return o.length>0?gv(o):((n,l)=>`${gv(dv(l.toLowerCase()))}${gv(dv(n))}`)(t,r)},LE=({operationIdNormalizer:e=ME}={})=>({predicates:t,namespace:r})=>{const o=[],n=[],l=[];return{visitor:{OpenApi3_1Element:{leave(){const h=BE(m=>ro(m.operationId),n);Object.entries(h).forEach(([m,E])=>{Array.isArray(E)&&(E.length<=1||E.forEach((R,B)=>{const $=`${m}${B+1}`;R.operationId=new r.elements.String($)}))}),l.forEach(m=>{if(m.operationId===void 0)return;const E=String(ro(m.operationId)),R=n.find(B=>ro(B.meta.get("originalOperationId"))===E);R!==void 0&&(m.operationId=To.safe(R.operationId),m.meta.set("originalOperationId",E),m.set("__originalOperationId",E))}),n.length=0,l.length=0}},PathItemElement:{enter(h){const m=Ml("path",ro(h.meta.get("path")));o.push(m)},leave(){o.pop()}},OperationElement:{enter(h){if(h.operationId===void 0)return;const m=String(ro(h.operationId)),E=vu(o),R=Ml("method",ro(h.meta.get("http-method"))),B=e(m,E,R);m!==B&&(h.operationId=new r.elements.String(B),h.set("__originalOperationId",m),h.meta.set("originalOperationId",m),n.push(h))}},LinkElement:{leave(h){t.isLinkElement(h)&&h.operationId!==void 0&&l.push(h)}}}}},Tw=Ri(function(e,t,r){return Ml(e,vi(t,r))});var FE=function(){function e(t,r){this.xf=r,this.pred=t,this.items=[]}return e.prototype["@@transducer/init"]=ws,e.prototype["@@transducer/result"]=Ts,e.prototype["@@transducer/step"]=function(t,r){return Wu(this.pred,r,this.items)?t:(this.items.push(r),this.xf["@@transducer/step"](t,r))},e}();function $E(e){return function(t){return new FE(e,t)}}var UE=Da(ic([],$E,function(e,t){for(var r,o=0,n=t.length,l=[];o<n;)Wu(e,r=t[o],l)||(l[l.length]=r),o+=1;return l}));const qE=UE,KE=()=>({predicates:e})=>{const t=(o,n)=>!!e.isParameterElement(o)&&!!e.isParameterElement(n)&&!!e.isStringElement(o.name)&&!!e.isStringElement(o.in)&&!!e.isStringElement(n.name)&&!!e.isStringElement(n.in)&&ro(o.name)===ro(n.name)&&ro(o.in)===ro(n.in),r=[];return{visitor:{PathItemElement:{enter(o,n,l,h,m){if(m.some(e.isComponentsElement))return;const{parameters:E}=o;e.isArrayElement(E)?r.push([...E.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(o){const n=vu(r);if(!Array.isArray(n)||n.length===0)return;const l=Tw([],["parameters","content"],o),h=qE(t,[...l,...n]);o.parameters=new ww(h)}}}}},HE=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,o,n,l,h){if(!h.some(e.isComponentsElement)){var m;r.security===void 0&&t!==void 0&&(r.security=new xw((m=t)===null||m===void 0?void 0:m.content))}}}}}},VE=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const o=r.servers===void 0,n=e.isArrayElement(r.servers),l=n&&r.servers.length===0,h=t.elements.Server.refract({url:"/"});o||!n?r.servers=new ub([h]):n&&l&&r.servers.push(h)},PathItemElement(r,o,n,l,h){if(h.some(e.isComponentsElement)||!h.some(e.isOpenApi3_1Element))return;const m=h.find(e.isOpenApi3_1Element),E=r.servers===void 0,R=e.isArrayElement(r.servers),B=R&&r.servers.length===0;if(e.isOpenApi3_1Element(m)){var $;const K=($=m.servers)===null||$===void 0?void 0:$.content,L=K??[];E||!R?r.servers=new Sw(L):R&&B&&L.forEach(H=>{r.servers.push(H)})}},OperationElement(r,o,n,l,h){if(h.some(e.isComponentsElement)||!h.some(e.isOpenApi3_1Element))return;const m=[...h].reverse().find(e.isPathItemElement),E=r.servers===void 0,R=e.isArrayElement(r.servers),B=R&&r.servers.length===0;if(e.isPathItemElement(m)){var $;const K=($=m.servers)===null||$===void 0?void 0:$.content,L=K??[];E||!R?r.servers=new Ew(L):R&&B&&L.forEach(H=>{r.servers.push(H)})}}}}),WE=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,o,n,l){var h,m;if(!l.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((h=t.schema)===null||h===void 0?void 0:h.example)!==void 0||((m=t.schema)===null||m===void 0?void 0:m.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const E=t.examples.map(R=>To.safe(R.value));return t.schema.examples!==void 0&&t.schema.set("examples",E),void(t.schema.example!==void 0&&t.schema.set("example",E))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[To(t.example)]),t.schema.example!==void 0&&t.schema.set("example",To(t.example)))}}}}}),JE=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,o,n,l){var h,m;if(!l.some(e.isComponentsElement)&&t.schema!==void 0&&e.isSchemaElement(t.schema)&&(((h=t.schema)===null||h===void 0?void 0:h.example)!==void 0||((m=t.schema)===null||m===void 0?void 0:m.examples)!==void 0)){if(t.examples!==void 0&&e.isObjectElement(t.examples)){const E=t.examples.map(R=>To.safe(R.value));return t.schema.examples!==void 0&&t.schema.set("examples",E),void(t.schema.example!==void 0&&t.schema.set("example",E))}t.example!==void 0&&(t.schema.examples!==void 0&&t.schema.set("examples",[To(t.example)]),t.schema.example!==void 0&&t.schema.set("example",To(t.example)))}}}}}),yh=e=>t=>{if(t!=null&&t.$$normalized)return t;if(yh.cache.has(t))return yh.cache.get(t);const r=Iu.refract(t),o=e(r),n=ro(o);return yh.cache.set(t,n),n};yh.cache=new WeakMap;const Rw=e=>{if(!zn(e)||e.hasKey("$$normalized"))return e;const t=[LE({operationIdNormalizer:(o,n,l)=>Kl({operationId:o},n,l,{v2OperationIdCompatibilityMode:!1})}),KE(),HE(),VE(),WE(),JE()],r=Pd(e,t,{toolboxCreator:Cw,visitorOptions:{keyMap:jl,nodeTypeGetter:Yc}});return r.set("$$normalized",!0),r},GE=fn({props:{name:null},methods:{canRead:()=>!1,async read(){throw new Ol("read method in Resolver stamp is not yet implemented.")}}}),YE=fn(GE,{props:{timeout:5e3,redirects:5,withCredentials:!1},init({timeout:e=this.timeout,redirects:t=this.redirects,withCredentials:r=this.withCredentials}={}){this.timeout=e,this.redirects=t,this.withCredentials=r},methods:{canRead:e=>Kc(e.uri),async read(){throw new Ol("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new Ol("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),hv=class extends Gi{},Nw=class extends hv{},{AbortController:ZE,AbortSignal:QE}=globalThis;globalThis.AbortController===void 0&&(globalThis.AbortController=ZE),globalThis.AbortSignal===void 0&&(globalThis.AbortSignal=QE);const XE=YE.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Ou,swaggerHTTPClientConfig:{}},init({swaggerHTTPClient:e=this.swaggerHTTPClient}={}){this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:o}=r,n=setTimeout(()=>{r.abort()},this.timeout),l=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",h=this.redirects===0?"error":"follow",m=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:o,userFetch:async(R,B)=>{let $=await fetch(R,B);try{$.headers.delete("Content-Type")}catch{$=new Response($.body,{...$,headers:new Headers($.headers)}),$.headers.delete("Content-Type")}return $},credentials:l,redirect:h,follow:m,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(E){throw new Nw(`Error downloading "${e.uri}"`,{cause:E})}finally{clearTimeout(n)}}}}),Dw=XE,Bw=(e,t=Cy)=>{if(wl(e))try{return t.fromRefract(JSON.parse(e))}catch{}return kf(e)&&Wy("element",e)?t.fromRefract(e):t.toElement(e)},Mw=vh.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return JSON.parse(e.toString()),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const o=Bw(JSON.parse(r));return o.classes.push("result"),t.push(o),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),Lw=vh.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return Gs.load(e.toString(),{schema:Oi}),!0}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();try{const o=Gs.load(r,{schema:Oi});if(this.allowEmpty&&o===void 0)return t;const n=Bw(o);return n.classes.push("result"),t.push(n),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),Fw=vh.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new nv(...Nd.filterByFormat("generic"),...Nd.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const o=e.toString();return JSON.parse(o),this.detectionRegExp.test(o)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();if(this.allowEmpty&&r.trim()==="")return t;try{const o=JSON.parse(r),n=Iu.refract(o,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),$w=vh.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new nv(...Nd.filterByFormat("generic"),...Nd.filterByFormat("yaml")),detectionRegExp:/(?<YAML>^(["']?)openapi\2\s*:\s*(["']?)(?<version_yaml>3\.1\.(?:[1-9]\d*|0))\3(?:\s+|$))|(?<JSON>"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))")/m},methods:{async canParse(e){const t=this.fileExtensions.length===0||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const o=e.toString();return Gs.load(o),this.detectionRegExp.test(o)}catch{return!1}return!1},async parse(e){if(this.sourceMap)throw new tu("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new le,r=e.toString();try{const o=Gs.load(r,{schema:Oi});if(this.allowEmpty&&o===void 0)return t;const n=Iu.refract(o,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(o){throw new tu(`Error parsing "${e.uri}"`,{cause:o})}}}}),eS=fn({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new Ol("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var tS=Da(function(e,t){return J0(pg(e),t)});const rS=tS;var oS=st(10885);const aS=class extends Cu{constructor(t,r){super(t,r);Io(this,"value");r!==void 0&&(this.value=r.value)}},fv=fn({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new oS({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!as(e))throw new aS("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&hn(e.meta.get("id"))&&!e.meta.get("id").equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new Or.Om(this.generateId());return this.identityMap.set(e,t),t},forget(e){return!!this.identityMap.has(e)&&(this.identityMap.delete(e),!0)},generateId(){return this.uuid.randomUUID()}}}),Uw=(fv({length:6}),(e,t)=>{const r=new By({predicate:e,returnOnTrue:pn});return Bs(t,r),Tw(void 0,[0],r.result)}),qw=class extends Gi{},nS=class extends qw{},iS=class extends qw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},pm=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Dd=e=>{const t=ld(e);return rb("#",t)},mv=(e,t)=>{const r=(n=>{if(!pm(n))throw new iS(n);return n})(e),o=Uw(n=>mp(n)&&ro(n.$anchor)===r,t);if(pc(o))throw new nS(`Evaluation failed on token: "${r}"`);return o},sS=(e,t)=>{const r=new By({predicate:e});return Bs(t,r),new Or.G6(r.result)},cS=class extends Gi{},bv=class extends cS{},Kw=(e,t)=>{if(t.$ref===void 0)return;const r=ld(ro(t.$ref)),o=ro(t.meta.get("inherited$id"));return`${lc((n,l)=>Wi(n,op(ci(l))),e,[...o,ro(t.$ref)])}${r==="#"?"":r}`},wh=e=>{if(wh.cache.has(e))return wh.cache.get(e);const t=Xl.refract(e);return wh.cache.set(e,t),t};wh.cache=new WeakMap;const Cc=e=>hp(e)?wh(e):e,dm=(e,t)=>{const{cache:r}=dm,o=ci(e),n=E=>mp(E)&&E.$id!==void 0;if(!r.has(t)){const E=sS(n,t);r.set(t,Array.from(E))}const l=r.get(t).find(E=>((R,B)=>{if(B.$id===void 0)return;const $=ro(B.meta.get("inherited$id"));return lc((K,L)=>Wi(K,op(ci(L))),R,[...$,ro(B.$id)])})(o,E)===o);if(pc(l))throw new bv(`Evaluation failed on URI: "${e}"`);let h,m;return pm(Dd(e))?(h=mv,m=Dd(e)):(h=Gc,m=Ac(e)),h(m,l)};dm.cache=new WeakMap;const Bd=class extends lv{},lS=class extends hv{},Hw=class extends Nw{},uS=async(e,t)=>{const r=bh({uri:op(ci(e)),mediaType:t.parse.mediaType}),o=await(async(n,l)=>{const h=l.resolve.resolvers.map(E=>{const R=Object.create(E);return Object.assign(R,l.resolve.resolverOpts)}),m=await sv("canRead",[n,l],h);if(po(m))throw new Hw(n.uri);try{const{result:E}=await cv("read",[n],m);return E}catch(E){throw new hv(`Error while reading file "${n.uri}"`,{cause:E})}})(r,t);return(async(n,l)=>{const h=l.parse.parsers.map(E=>{const R=Object.create(E);return Object.assign(R,l.parse.parserOpts)}),m=await sv("canParse",[n,l],h);if(po(m))throw new Hw(n.uri);try{const{plugin:E,result:R}=await cv("parse",[n,l],m);return!E.allowEmpty&&R.isEmpty?Promise.reject(new uv(`Error while parsing file "${n.uri}". File is empty.`)):R}catch(E){throw new uv(`Error while parsing file "${n.uri}"`,{cause:E})}})(bh({...r,data:o}),t)};class vv extends Array{includesCycle(t){return this.filter(r=>r.has(t)).length>1}includes(t,r){return t instanceof Set?super.includes(t,r):this.some(o=>o.has(t))}findItem(t){for(const r of this)for(const o of r)if(as(o)&&t(o))return o}}const yv=Bs[Symbol.for("nodejs.util.promisify.custom")],Ss=fv(),gm=fn({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null,refractCache:null},init({indirections:e=[],reference:t,namespace:r,options:o,ancestors:n=new vv,refractCache:l=new Map}){this.indirections=e,this.namespace=r,this.reference=t,this.options=o,this.ancestors=new vv(...n),this.refractCache=l},methods:{toBaseURI(e){return Wi(this.reference.uri,op(ci(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new lS(`Maximum resolution depth of ${this.options.resolve.maxDepth} has been exceeded by file "${this.reference.uri}"`);const t=this.toBaseURI(e),{refSet:r}=this.reference;if(r.has(t))return r.find(iv(t,"uri"));const o=await uS(Rs(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),n=bp({uri:t,value:To(o),depth:this.reference.depth+1});if(r.add(n),this.options.dereference.immutable){const l=bp({uri:`immutable://${t}`,value:o,depth:this.reference.depth+1});r.add(l)}return n},toAncestorLineage(e){const t=new Set(e.filter(as));return[new vv(...this.ancestors,t),t]},async ReferenceElement(e,t,r,o,n){if(this.indirections.includes(e))return!1;const[l,h]=this.toAncestorLineage([...n,r]),m=this.toBaseURI(ro(e.$ref)),E=ci(this.reference.uri)===m,R=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&R)return!1;const B=await this.toReference(ro(e.$ref)),$=Wi(m,ro(e.$ref));this.indirections.push(e);const K=Ac($);let L=Gc(K,B.value.result);if(L.id=Ss.identify(L),hp(L)){const re=ro(e.meta.get("referenced-element")),pe=`${re}-${ro(Ss.identify(L))}`;this.refractCache.has(pe)?L=this.refractCache.get(pe):ui(L)?(L=fp.refract(L),L.setMetaProperty("referenced-element",re),this.refractCache.set(pe,L)):(L=this.namespace.getElementClass(re).refract(L),this.refractCache.set(pe,L))}if(e===L)throw new Gi("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(l.includes(L)){if(B.refSet.circular=!0,this.options.dereference.circular==="error")throw new Gi("Circular reference detected");if(this.options.dereference.circular==="replace"){var H,f;const re=new Or.sI(L.id,{type:"reference",uri:B.uri,$ref:ro(e.$ref)}),pe=((H=(f=this.options.dereference.strategyOpts["openapi-3-1"])===null||f===void 0?void 0:f.circularReplacer)!==null&&H!==void 0?H:this.options.dereference.circularReplacer)(re);return Bi(r)?r.value=pe:Array.isArray(r)&&(r[t]=pe),!r&&pe}}const Y=ci(B.refSet.rootRef.uri)!==B.uri,V=["error","replace"].includes(this.options.dereference.circular);if((R||Y||Rd(L)||V)&&!l.includesCycle(L)){h.add(e);const re=gm({reference:B,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l});L=await yv(L,re,{keyMap:jl,nodeTypeGetter:Yc}),h.delete(e)}this.indirections.pop();const ne=Us(L);return ne.setMetaProperty("id",Ss.generateId()),ne.setMetaProperty("ref-fields",{$ref:ro(e.$ref),description:ro(e.description),summary:ro(e.summary)}),ne.setMetaProperty("ref-origin",B.uri),ne.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),zn(L)&&zn(ne)&&(e.hasKey("description")&&"description"in L&&(ne.remove("description"),ne.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in L&&(ne.remove("summary"),ne.set("summary",e.get("summary")))),Bi(r)?r.value=ne:Array.isArray(r)&&(r[t]=ne),!r&&ne},async PathItemElement(e,t,r,o,n){if(!hn(e.$ref))return;if(this.indirections.includes(e))return!1;const[l,h]=this.toAncestorLineage([...n,r]),m=this.toBaseURI(ro(e.$ref)),E=ci(this.reference.uri)===m,R=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&R)return;const B=await this.toReference(ro(e.$ref)),$=Wi(m,ro(e.$ref));this.indirections.push(e);const K=Ac($);let L=Gc(K,B.value.result);if(L.id=Ss.identify(L),hp(L)){const ne=`path-item-${ro(Ss.identify(L))}`;this.refractCache.has(ne)?L=this.refractCache.get(ne):(L=Ql.refract(L),this.refractCache.set(ne,L))}if(e===L)throw new Gi("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(l.includes(L)){if(B.refSet.circular=!0,this.options.dereference.circular==="error")throw new Gi("Circular reference detected");if(this.options.dereference.circular==="replace"){var H,f;const ne=new Or.sI(L.id,{type:"path-item",uri:B.uri,$ref:ro(e.$ref)}),re=((H=(f=this.options.dereference.strategyOpts["openapi-3-1"])===null||f===void 0?void 0:f.circularReplacer)!==null&&H!==void 0?H:this.options.dereference.circularReplacer)(ne);return Bi(r)?r.value=re:Array.isArray(r)&&(r[t]=re),!r&&re}}const Y=ci(B.refSet.rootRef.uri)!==B.uri,V=["error","replace"].includes(this.options.dereference.circular);if((R||Y||fh(L)&&hn(L.$ref)||V)&&!l.includesCycle(L)){h.add(e);const ne=gm({reference:B,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l});L=await yv(L,ne,{keyMap:jl,nodeTypeGetter:Yc}),h.delete(e)}if(this.indirections.pop(),fh(L)){const ne=new Ql([...L.content],To(L.meta),To(L.attributes));ne.setMetaProperty("id",Ss.generateId()),e.forEach((re,pe,ve)=>{ne.remove(ro(pe)),ne.content.push(ve)}),ne.remove("$ref"),ne.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),ne.setMetaProperty("ref-origin",B.uri),ne.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),L=ne}return Bi(r)?r.value=L:Array.isArray(r)&&(r[t]=L),r?void 0:L},async LinkElement(e,t,r){if(!hn(e.operationRef)&&!hn(e.operationId))return;if(hn(e.operationRef)&&hn(e.operationId))throw new Gi("LinkElement operationRef and operationId fields are mutually exclusive.");let o;if(hn(e.operationRef)){var n;const h=Ac(ro(e.operationRef)),m=this.toBaseURI(ro(e.operationRef)),E=ci(this.reference.uri)===m,R=!E;if(!this.options.resolve.internal&&E||!this.options.resolve.external&&R)return;const B=await this.toReference(ro(e.operationRef));if(o=Gc(h,B.value.result),hp(o)){const K=`operation-${ro(Ss.identify(o))}`;this.refractCache.has(K)?o=this.refractCache.get(K):(o=hh.refract(o),this.refractCache.set(K,o))}o=Us(o),o.setMetaProperty("ref-origin",B.uri);const $=Us(e);return(n=$.operationRef)===null||n===void 0||n.meta.set("operation",o),Bi(r)?r.value=$:Array.isArray(r)&&(r[t]=$),r?void 0:$}if(hn(e.operationId)){var l;const h=ro(e.operationId),m=await this.toReference(Rs(this.reference.uri));if(o=Uw(R=>Ow(R)&&as(R.operationId)&&R.operationId.equals(h),m.value.result),pc(o))throw new Gi(`OperationElement(operationId=${h}) not found.`);const E=Us(e);return(l=E.operationId)===null||l===void 0||l.meta.set("operation",o),Bi(r)?r.value=E:Array.isArray(r)&&(r[t]=E),r?void 0:E}},async ExampleElement(e,t,r){if(!hn(e.externalValue))return;if(e.hasKey("value")&&hn(e.externalValue))throw new Gi("ExampleElement value and externalValue fields are mutually exclusive.");const o=this.toBaseURI(ro(e.externalValue)),n=ci(this.reference.uri)===o,l=!n;if(!this.options.resolve.internal&&n||!this.options.resolve.external&&l)return;const h=await this.toReference(ro(e.externalValue)),m=Us(h.value.result);m.setMetaProperty("ref-origin",h.uri);const E=Us(e);return E.value=m,Bi(r)?r.value=E:Array.isArray(r)&&(r[t]=E),r?void 0:E},async SchemaElement(e,t,r,o,n){if(!hn(e.$ref))return;if(this.indirections.includes(e))return!1;const[l,h]=this.toAncestorLineage([...n,r]);let m=await this.toReference(Rs(this.reference.uri)),{uri:E}=m;const R=Kw(E,e),B=ci(R),$=bh({uri:B}),K=rS(ve=>ve.canRead($),this.options.resolve.resolvers),L=!K;let H,f=ci(this.reference.uri)===R,Y=!f;this.indirections.push(e);try{if(K||L){E=this.toBaseURI(R);const ve=R,he=Cc(m.value.result);if(H=dm(ve,he),H=Cc(H),H.id=Ss.identify(H),!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return}else{if(E=this.toBaseURI(R),f=ci(this.reference.uri)===E,Y=!f,!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return;m=await this.toReference(Rs(R));const ve=Ac(R),he=Cc(m.value.result);H=Gc(ve,he),H=Cc(H),H.id=Ss.identify(H)}}catch(ve){if(!(L&&ve instanceof bv))throw ve;if(pm(Dd(R))){if(f=ci(this.reference.uri)===E,Y=!f,!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return;m=await this.toReference(Rs(R));const he=Dd(R),Ee=Cc(m.value.result);H=mv(he,Ee),H=Cc(H),H.id=Ss.identify(H)}else{if(E=this.toBaseURI(R),f=ci(this.reference.uri)===E,Y=!f,!this.options.resolve.internal&&f||!this.options.resolve.external&&Y)return;m=await this.toReference(Rs(R));const he=Ac(R),Ee=Cc(m.value.result);H=Gc(he,Ee),H=Cc(H),H.id=Ss.identify(H)}}if(e===H)throw new Gi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(l.includes(H)){if(m.refSet.circular=!0,this.options.dereference.circular==="error")throw new Gi("Circular reference detected");if(this.options.dereference.circular==="replace"){var V,ne;const ve=new Or.sI(H.id,{type:"json-schema",uri:m.uri,$ref:ro(e.$ref)}),he=((V=(ne=this.options.dereference.strategyOpts["openapi-3-1"])===null||ne===void 0?void 0:ne.circularReplacer)!==null&&V!==void 0?V:this.options.dereference.circularReplacer)(ve);return Bi(r)?r.value=he:Array.isArray(r)&&(r[t]=he),!r&&he}}const re=ci(m.refSet.rootRef.uri)!==m.uri,pe=["error","replace"].includes(this.options.dereference.circular);if((Y||re||mp(H)&&hn(H.$ref)||pe)&&!l.includesCycle(H)){h.add(e);const ve=gm({reference:m,namespace:this.namespace,indirections:[...this.indirections],options:this.options,refractCache:this.refractCache,ancestors:l});H=await yv(H,ve,{keyMap:jl,nodeTypeGetter:Yc}),h.delete(e)}if(this.indirections.pop(),tv(H)){const ve=To(H);return ve.setMetaProperty("id",Ss.generateId()),ve.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),ve.setMetaProperty("ref-origin",m.uri),ve.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),Bi(r)?r.value=ve:Array.isArray(r)&&(r[t]=ve),!r&&ve}if(mp(H)){const ve=new Xl([...H.content],To(H.meta),To(H.attributes));ve.setMetaProperty("id",Ss.generateId()),e.forEach((he,Ee,Ke)=>{ve.remove(ro(Ee)),ve.content.push(Ke)}),ve.remove("$ref"),ve.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),ve.setMetaProperty("ref-origin",m.uri),ve.setMetaProperty("ref-referencing-element-id",To(Ss.identify(e))),H=ve}return Bi(r)?r.value=H:Array.isArray(r)&&(r[t]=H),r?void 0:H}}}),wv=gm,pS=Bs[Symbol.for("nodejs.util.promisify.custom")],dS=fn(eS,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return e.mediaType!=="text/plain"?Nd.includes(e.mediaType):jw((t=e.parseResult)===null||t===void 0?void 0:t.result)},async dereference(e,t){var r;const o=Mg(av),n=(r=t.dereference.refSet)!==null&&r!==void 0?r:mh(),l=mh();let h,m=n;n.has(e.uri)?h=n.find(iv(e.uri,"uri")):(h=bp({uri:e.uri,value:e.parseResult}),n.add(h)),t.dereference.immutable&&(n.refs.map(B=>bp({...B,value:To(B.value)})).forEach(B=>l.add(B)),h=l.find(B=>B.uri===e.uri),m=l);const E=wv({reference:h,namespace:o,options:t}),R=await pS(m.rootRef.value,E,{keyMap:jl,nodeTypeGetter:Yc});return t.dereference.immutable&&(l.refs.filter(B=>B.uri.startsWith("immutable://")).map(B=>bp({...B,uri:B.uri.replace(/^immutable:\/\//,"")})).forEach(B=>n.add(B)),h=n.find(B=>B.uri===e.uri),m=n),t.dereference.refSet===null&&n.clean(),l.clean(),R}}}),Vw=dS,Zc=e=>{const t=(r=>r.slice(2))(e);return t.reduce((r,o,n)=>{if(Bi(o)){const l=String(ro(o.key));r.push(l)}else if(dc(t[n-2])){const l=t[n-2].content.indexOf(o);r.push(l)}return r},[])},hm=e=>{if(e.cause==null)return e;let{cause:t}=e;for(;t.cause!=null;)t=t.cause;return t},gS=Di("SchemaRefError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),{wrapError:kv}=hd,xv=Bs[Symbol.for("nodejs.util.promisify.custom")],vp=fv(),Ev=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(ro(vp.identify(e))),fm=wv.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init({allowMetaPatches:e=this.allowMetaPatches,useCircularStructures:t=this.useCircularStructures,basePath:r=this.basePath}){this.allowMetaPatches=e,this.useCircularStructures=t,this.basePath=r},methods:{async ReferenceElement(e,t,r,o,n){try{var l;const[B,$]=this.toAncestorLineage([...n,r]);if(Od(["cycle"],e.$ref)||B.includesCycle(e))return!1;const K=this.toBaseURI(ro(e.$ref)),L=ci(this.reference.uri)===K,H=!L;if(!this.options.resolve.internal&&L||!this.options.resolve.external&&H)return!1;const f=await this.toReference(ro(e.$ref)),Y=Wi(K,ro(e.$ref));this.indirections.push(e);const V=Ac(Y);let ne=Gc(V,f.value.result);if(hp(ne)){const ve=ro(e.meta.get("referenced-element")),he=`${ve}-${ro(vp.identify(ne))}`;this.refractCache.has(he)?ne=this.refractCache.get(he):ui(ne)?(ne=fp.refract(ne),ne.setMetaProperty("referenced-element",ve),this.refractCache.set(he,ne)):(ne=this.namespace.getElementClass(ve).refract(ne),this.refractCache.set(he,ne))}if(this.indirections.includes(ne))throw new Gi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&B.includes(ne)){if(Kc(K)||Ll(K)){const ve=new fp({$ref:Y},To(e.meta),To(e.attributes));return ve.get("$ref").classes.push("cycle"),ve}return!1}$.add(e);const re=fm({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:B,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"$ref"]});ne=await xv(ne,re,{keyMap:jl,nodeTypeGetter:Yc}),$.delete(e),this.indirections.pop();const pe=ve=>{const he=Us(ve);if(he.setMetaProperty("ref-fields",{$ref:ro(e.$ref),description:ro(e.description),summary:ro(e.summary)}),he.setMetaProperty("ref-origin",f.uri),he.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),zn(ve)&&(e.hasKey("description")&&"description"in ve&&(he.remove("description"),he.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in ve&&(he.remove("summary"),he.set("summary",e.get("summary")))),this.allowMetaPatches&&zn(he)&&!he.hasKey("$$ref")){const Ee=Wi(K,Y);he.set("$$ref",Ee)}return he};if(B.includes(e)||B.includes(ne)){var h;const ve=(h=B.findItem(Ev(e)))!==null&&h!==void 0?h:pe(ne);return Bi(r)?r.value=ve:Array.isArray(r)&&(r[t]=ve),!1}return pe(ne)}catch(B){var m,E,R;const $=hm(B),K=kv($,{baseDoc:this.reference.uri,$ref:ro(e.$ref),pointer:Ac(ro(e.$ref)),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...Zc([...n,r,e]),"$ref"]});return void((E=this.options.dereference.dereferenceOpts)===null||E===void 0||(E=E.errors)===null||E===void 0||(R=E.push)===null||R===void 0||R.call(E,K))}},async PathItemElement(e,t,r,o,n){try{var l;const[B,$]=this.toAncestorLineage([...n,r]);if(!hn(e.$ref))return;if(Od(["cycle"],e.$ref)||B.includesCycle(e))return!1;const K=this.toBaseURI(ro(e.$ref)),L=ci(this.reference.uri)===K,H=!L;if(!this.options.resolve.internal&&L||!this.options.resolve.external&&H)return;const f=await this.toReference(ro(e.$ref)),Y=Wi(K,ro(e.$ref));this.indirections.push(e);const V=Ac(Y);let ne=Gc(V,f.value.result);if(hp(ne)){const ve=`pathItem-${ro(vp.identify(ne))}`;this.refractCache.has(ve)?ne=this.refractCache.get(ve):(ne=Ql.refract(ne),this.refractCache.set(ve,ne))}if(this.indirections.includes(ne))throw new Gi("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&B.includes(ne)){if(Kc(K)||Ll(K)){const ve=new Ql({$ref:Y},To(e.meta),To(e.attributes));return ve.get("$ref").classes.push("cycle"),ve}return!1}$.add(e);const re=fm({reference:f,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:B,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"$ref"]});ne=await xv(ne,re,{keyMap:jl,nodeTypeGetter:Yc}),$.delete(e),this.indirections.pop();const pe=ve=>{const he=new Ql([...ve.content],To(ve.meta),To(ve.attributes));if(e.forEach((Ee,Ke,Fe)=>{he.remove(ro(Ke)),he.content.push(Fe)}),he.remove("$ref"),he.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),he.setMetaProperty("ref-origin",f.uri),he.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),this.allowMetaPatches&&he.get("$$ref")===void 0){const Ee=Wi(K,Y);he.set("$$ref",Ee)}return he};if(B.includes(e)||B.includes(ne)){var h;const ve=(h=B.findItem(Ev(e)))!==null&&h!==void 0?h:pe(ne);return Bi(r)?r.value=ve:Array.isArray(r)&&(r[t]=ve),!1}return pe(ne)}catch(B){var m,E,R;const $=hm(B),K=kv($,{baseDoc:this.reference.uri,$ref:ro(e.$ref),pointer:Ac(ro(e.$ref)),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...Zc([...n,r,e]),"$ref"]});return void((E=this.options.dereference.dereferenceOpts)===null||E===void 0||(E=E.errors)===null||E===void 0||(R=E.push)===null||R===void 0||R.call(E,K))}},async SchemaElement(e,t,r,o,n){try{var l;const[B,$]=this.toAncestorLineage([...n,r]);if(!hn(e.$ref))return;if(Od(["cycle"],e.$ref)||B.includesCycle(e))return!1;let K=await this.toReference(Rs(this.reference.uri)),{uri:L}=K;const H=Kw(L,e),f=ci(H),Y=bh({uri:f}),V=!this.options.resolve.resolvers.some(Ke=>Ke.canRead(Y)),ne=!V,re=Ke=>ci(this.reference.uri)===Ke,pe=Ke=>!re(Ke);let ve;this.indirections.push(e);try{if(V||ne)ve=dm(H,Cc(K.value.result));else{if(L=this.toBaseURI(ro(H)),!this.options.resolve.internal&&re(L)||!this.options.resolve.external&&pe(L))return;K=await this.toReference(Rs(H));const Ke=Ac(H);ve=Cc(Gc(Ke,K.value.result))}}catch(Ke){if(!(ne&&Ke instanceof bv))throw Ke;if(pm(Dd(H))){if(L=this.toBaseURI(ro(H)),!this.options.resolve.internal&&re(L)||!this.options.resolve.external&&pe(L))return;K=await this.toReference(Rs(H));const Fe=Dd(H);ve=mv(Fe,Cc(K.value.result))}else{if(L=this.toBaseURI(ro(H)),!this.options.resolve.internal&&re(L)||!this.options.resolve.external&&pe(L))return;K=await this.toReference(Rs(H));const Fe=Ac(H);ve=Cc(Gc(Fe,K.value.result))}}if(this.indirections.includes(ve))throw new Gi("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new Bd(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures&&B.includes(ve)){if(Kc(L)||Ll(L)){const Ke=Wi(L,H),Fe=new Xl({$ref:Ke},To(e.meta),To(e.attributes));return Fe.get("$ref").classes.push("cycle"),Fe}return!1}$.add(e);const he=fm({reference:K,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:B,basePath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"$ref"]});if(ve=await xv(ve,he,{keyMap:jl,nodeTypeGetter:Yc}),$.delete(e),this.indirections.pop(),tv(ve)){const Ke=To(ve);return Ke.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),Ke.setMetaProperty("ref-origin",K.uri),Ke.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),Ke}const Ee=Ke=>{const Fe=new Xl([...Ke.content],To(Ke.meta),To(Ke.attributes));if(e.forEach((xe,Ye,It)=>{Fe.remove(ro(Ye)),Fe.content.push(It)}),Fe.remove("$ref"),Fe.setMetaProperty("ref-fields",{$ref:ro(e.$ref)}),Fe.setMetaProperty("ref-origin",K.uri),Fe.setMetaProperty("ref-referencing-element-id",To(vp.identify(e))),this.allowMetaPatches&&Fe.get("$$ref")===void 0){const xe=Wi(L,H);Fe.set("$$ref",xe)}return Fe};if(B.includes(e)||B.includes(ve)){var h;const Ke=(h=B.findItem(Ev(e)))!==null&&h!==void 0?h:Ee(ve);return Bi(r)?r.value=Ke:Array.isArray(r)&&(r[t]=Ke),!1}return Ee(ve)}catch(B){var m,E,R;const $=hm(B),K=new gS(`Could not resolve reference: ${$.message}`,{baseDoc:this.reference.uri,$ref:ro(e.$ref),fullPath:(m=this.basePath)!==null&&m!==void 0?m:[...Zc([...n,r,e]),"$ref"]},$);return void((E=this.options.dereference.dereferenceOpts)===null||E===void 0||(E=E.errors)===null||E===void 0||(R=E.push)===null||R===void 0||R.call(E,K))}},async LinkElement(){},async ExampleElement(e,t,r,o,n){try{return await wv.compose.methods.ExampleElement.call(this,e,t,r,o,n)}catch(E){var l,h,m;const R=hm(E),B=kv(R,{baseDoc:this.reference.uri,externalValue:ro(e.externalValue),fullPath:(l=this.basePath)!==null&&l!==void 0?l:[...Zc([...n,r,e]),"externalValue"]});return void((h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(m=h.push)===null||m===void 0||m.call(h,B))}}}}),hS=fm,Sv=Vw.compose.bind(),fS=Sv({init({parameterMacro:e,options:t}){this.parameterMacro=e,this.options=t},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,o,n){const l=this.macroOperation===null?null:ro(this.macroOperation),h=ro(e);try{const R=this.parameterMacro(l,h);e.set("default",R)}catch(R){var m,E;const B=new Error(R,{cause:R});B.fullPath=Zc([...n,r]),(m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(E=m.push)===null||E===void 0||E.call(m,B)}}}}}),mS=fS,bS=Sv({init({modelPropertyMacro:e,options:t}){this.modelPropertyMacro=e,this.options=t},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,o,n){e.properties!==void 0&&zn(e.properties)&&e.properties.forEach(l=>{if(zn(l))try{const E=this.modelPropertyMacro(ro(l));l.set("default",E)}catch(E){var h,m;const R=new Error(E,{cause:E});R.fullPath=[...Zc([...n,r,e]),"properties"],(h=this.options.dereference.dereferenceOpts)===null||h===void 0||(h=h.errors)===null||h===void 0||(m=h.push)===null||m===void 0||m.call(h,R)}})}}}}),vS=bS,yS=Sv({init({options:e}){this.options=e},props:{options:null,SchemaElement:{leave(e,t,r,o,n){if(e.allOf===void 0)return;if(!dc(e.allOf)){var l,h;const B=new TypeError("allOf must be an array");return B.fullPath=[...Zc([...n,r,e]),"allOf"],void((l=this.options.dereference.dereferenceOpts)===null||l===void 0||(l=l.errors)===null||l===void 0||(h=l.push)===null||h===void 0||h.call(l,B))}if(e.allOf.isEmpty)return new Xl(e.content.filter(B=>ro(B.key)!=="allOf"),To(e.meta),To(e.attributes));if(!e.allOf.content.every(mp)){var m,E;const B=new TypeError("Elements in allOf must be objects");return B.fullPath=[...Zc([...n,r,e]),"allOf"],void((m=this.options.dereference.dereferenceOpts)===null||m===void 0||(m=m.errors)===null||m===void 0||(E=m.push)===null||E===void 0||E.call(m,B))}const R=El.all([...e.allOf.content,e]);return e.hasKey("$$ref")||R.remove("$$ref"),e.hasKey("example")&&(R.getMember("example").value=e.get("example")),e.hasKey("examples")&&(R.getMember("examples").value=e.get("examples")),R.remove("allOf"),R}}}}),wS=yS,kS=Bs[Symbol.for("nodejs.util.promisify.custom")],xS=Ef[Symbol.for("nodejs.util.promisify.custom")],ES=Vw.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init({useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:o=this.modelPropertyMacro,mode:n=this.mode,ancestors:l=[]}={}){this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=o,this.mode=n,this.ancestors=[...l]},methods:{async dereference(e,t){var r;const o=[],n=Mg(av),l=(r=t.dereference.refSet)!==null&&r!==void 0?r:mh();let h;l.has(e.uri)?h=l.find(B=>B.uri===e.uri):(h=bp({uri:e.uri,value:e.parseResult}),l.add(h));const m=hS({reference:h,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(o.push(m),typeof this.parameterMacro=="function"){const B=mS({parameterMacro:this.parameterMacro,options:t});o.push(B)}if(typeof this.modelPropertyMacro=="function"){const B=vS({modelPropertyMacro:this.modelPropertyMacro,options:t});o.push(B)}if(this.mode!=="strict"){const B=wS({options:t});o.push(B)}const E=xS(o,{nodeTypeGetter:Yc}),R=await kS(l.rootRef.value,E,{keyMap:jl,nodeTypeGetter:Yc});return t.dereference.refSet===null&&l.clean(),R}}}),Ww=ES,_v=async e=>{const{spec:t,timeout:r,redirects:o,requestInterceptor:n,responseInterceptor:l,pathDiscriminator:h=[],allowMetaPatches:m=!1,useCircularStructures:E=!1,skipNormalization:R=!1,parameterMacro:B=null,modelPropertyMacro:$=null,mode:K="non-strict"}=e;try{const{cache:L}=_v,H=Kc(rp())?rp():Hc,f=dp(e),Y=Wi(H,f);let V;L.has(t)?V=L.get(t):(V=Iu.refract(t),V.classes.push("result"),L.set(t,V));const ne=new le([V]),re=e2(h),pe=re===""?"":`#${re}`,ve=Gc(re,V),he=bp({uri:Y,value:ne}),Ee=mh({refs:[he]});re!==""&&(Ee.rootRef=null);const Ke=[new Set([ve])],Fe=[],xe=await(async(Bt,gt={})=>{const Xt=Iw(vE,gt);return OE(Bt,Xt)})(ve,{resolve:{baseURI:`${Y}${pe}`,resolvers:[Dw({timeout:r||1e4,redirects:o||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:n,responseInterceptor:l}},strategies:[zE()]},parse:{mediaType:Nd.latest(),parsers:[Fw({allowEmpty:!1,sourceMap:!1}),$w({allowEmpty:!1,sourceMap:!1}),Mw({allowEmpty:!1,sourceMap:!1}),Lw({allowEmpty:!1,sourceMap:!1}),CE({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Ww({allowMetaPatches:m,useCircularStructures:E,parameterMacro:B,modelPropertyMacro:$,mode:K,ancestors:Ke})],refSet:Ee,dereferenceOpts:{errors:Fe},immutable:!1}}),Ye=((Bt,gt,Xt)=>new Jx({element:Xt}).transclude(Bt,gt))(ve,xe,V),It=R?Ye:Rw(Ye);return{spec:ro(It),errors:Fe}}catch(L){if(L instanceof ob||L instanceof Fg)return{spec:null,errors:[]};throw L}};_v.cache=new WeakMap;const SS=_v,_S={name:"openapi-3-1-apidom",match:({spec:e})=>Ed(e),normalize:({spec:e})=>yh(Rw)(e),resolve:async e=>SS(e)},Jw=_S,jv=e=>async t=>(async r=>{const{spec:o,requestInterceptor:n,responseInterceptor:l}=r,h=dp(r),m=wd(r),E=o||await ju(m,{requestInterceptor:n,responseInterceptor:l})(h),R={...r,spec:E};return r.strategies.find(B=>B.match(R)).resolve(R)})({...e,...t}),jS=jv({strategies:[Jl,_d,gp]});var OS=st(29225);function Gw(e){return Object.prototype.toString.call(e)==="[object Object]"}function Yw(e){var t,r;return Gw(e)!==!1&&((t=e.constructor)===void 0||Gw(r=t.prototype)!==!1&&r.hasOwnProperty("isPrototypeOf")!==!1)}const AS={body:function({req:e,value:t}){t!==void 0&&(e.body=t)},header:function({req:e,parameter:t,value:r}){e.headers=e.headers||{},r!==void 0&&(e.headers[t.name]=r)},query:function({req:e,value:t,parameter:r}){if(e.query=e.query||{},t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.query[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){const o=r.name;e.query[o]=e.query[o]||{},e.query[o].allowEmptyValue=!0}},path:function({req:e,value:t,parameter:r}){t!==void 0&&(e.url=e.url.replace(new RegExp(`{${r.name}}`,"g"),encodeURIComponent(t)))},formData:function({req:e,value:t,parameter:r}){if(t===!1&&r.type==="boolean"&&(t="false"),t===0&&["number","integer"].indexOf(r.type)>-1&&(t="0"),t)e.form=e.form||{},e.form[r.name]={collectionFormat:r.collectionFormat,value:t};else if(r.allowEmptyValue&&t!==void 0){e.form=e.form||{};const o=r.name;e.form[o]=e.form[o]||{},e.form[o].allowEmptyValue=!0}}};function mm(e,t){return t.includes("application/json")?typeof e=="string"?e:(Array.isArray(e)&&(e=e.map(r=>{try{return JSON.parse(r)}catch{return r}})),JSON.stringify(e)):String(e)}function CS({req:e,value:t,parameter:r}){const{name:o,style:n,explode:l,content:h}=r;if(t!==void 0)if(h){const m=Object.keys(h)[0];e.url=e.url.split(`{${o}}`).join(Hl(mm(t,m)))}else{const m=Ig({key:r.name,value:t,style:n||"simple",explode:l||!1,escape:"reserved"});e.url=e.url.replace(new RegExp(`{${o}}`,"g"),m)}}function PS({req:e,value:t,parameter:r}){if(e.query=e.query||{},t!==void 0&&r.content){const o=mm(t,Object.keys(r.content)[0]);if(o)e.query[r.name]=o;else if(r.allowEmptyValue){const n=r.name;e.query[n]=e.query[n]||{},e.query[n].allowEmptyValue=!0}}else if(t===!1&&(t="false"),t===0&&(t="0"),t){const{style:o,explode:n,allowReserved:l}=r;e.query[r.name]={value:t,serializationOption:{style:o,explode:n,allowReserved:l}}}else if(r.allowEmptyValue&&t!==void 0){const o=r.name;e.query[o]=e.query[o]||{},e.query[o].allowEmptyValue=!0}}const IS=["accept","authorization","content-type"];function zS({req:e,parameter:t,value:r}){if(e.headers=e.headers||{},!(IS.indexOf(t.name.toLowerCase())>-1))if(r!==void 0&&t.content){const o=Object.keys(t.content)[0];e.headers[t.name]=mm(r,o)}else r===void 0||Array.isArray(r)&&r.length===0||(e.headers[t.name]=Ig({key:t.name,value:r,style:t.style||"simple",explode:t.explode!==void 0&&t.explode,escape:!1}))}function TS({req:e,parameter:t,value:r}){e.headers=e.headers||{};const o=typeof r;if(r!==void 0&&t.content){const n=Object.keys(t.content)[0];e.headers.Cookie=`${t.name}=${mm(r,n)}`}else if(r!==void 0&&(!Array.isArray(r)||r.length!==0)){const n=o==="object"&&!Array.isArray(r)&&t.explode?"":`${t.name}=`;e.headers.Cookie=n+Ig({key:t.name,value:r,escape:!1,style:t.style||"form",explode:t.explode!==void 0&&t.explode})}}const RS=typeof globalThis<"u"?globalThis:typeof self<"u"?self:window,{btoa:NS}=RS,Zw=NS;function DS(e,t){const{operation:r,requestBody:o,securities:n,spec:l,attachContentTypeForEmptyPayload:h}=e;let{requestContentType:m}=e;t=function({request:L,securities:H={},operation:f={},spec:Y}){var V;const ne={...L},{authorized:re={}}=H,pe=f.security||Y.security||[],ve=re&&!!Object.keys(re).length,he=(Y==null||(V=Y.components)===null||V===void 0?void 0:V.securitySchemes)||{};return ne.headers=ne.headers||{},ne.query=ne.query||{},!Object.keys(H).length||!ve||!pe||Array.isArray(f.security)&&!f.security.length?L:(pe.forEach(Ee=>{Object.keys(Ee).forEach(Ke=>{const Fe=re[Ke],xe=he[Ke];if(!Fe)return;const Ye=Fe.value||Fe,{type:It}=xe;if(Fe){if(It==="apiKey")xe.in==="query"&&(ne.query[xe.name]=Ye),xe.in==="header"&&(ne.headers[xe.name]=Ye),xe.in==="cookie"&&(ne.cookies[xe.name]=Ye);else if(It==="http"){if(/^basic$/i.test(xe.scheme)){const Bt=Ye.username||"",gt=Ye.password||"",Xt=Zw(`${Bt}:${gt}`);ne.headers.Authorization=`Basic ${Xt}`}/^bearer$/i.test(xe.scheme)&&(ne.headers.Authorization=`Bearer ${Ye}`)}else if(It==="oauth2"||It==="openIdConnect"){const Bt=Fe.token||{},gt=Bt[xe["x-tokenName"]||"access_token"];let Xt=Bt.token_type;Xt&&Xt.toLowerCase()!=="bearer"||(Xt="Bearer"),ne.headers.Authorization=`${Xt} ${gt}`}}})}),ne)}({request:t,securities:n,operation:r,spec:l});const E=r.requestBody||{},R=Object.keys(E.content||{}),B=m&&R.indexOf(m)>-1;if(o||h){if(m&&B)t.headers["Content-Type"]=m;else if(!m){const L=R[0];L&&(t.headers["Content-Type"]=L,m=L)}}else m&&B&&(t.headers["Content-Type"]=m);if(!e.responseContentType&&r.responses){const L=Object.entries(r.responses).filter(([H,f])=>{const Y=parseInt(H,10);return Y>=200&&Y<300&&Yw(f.content)}).reduce((H,[,f])=>H.concat(Object.keys(f.content)),[]);L.length>0&&(t.headers.accept=L.join(", "))}if(o)if(m){if(R.indexOf(m)>-1)if(m==="application/x-www-form-urlencoded"||m==="multipart/form-data")if(typeof o=="object"){var $,K;const L=($=(K=E.content[m])===null||K===void 0?void 0:K.encoding)!==null&&$!==void 0?$:{};t.form={},Object.keys(o).forEach(H=>{t.form[H]={value:o[H],encoding:L[H]||{}}})}else t.form=o;else t.body=o}else t.body=o;return t}function BS(e,t){const{spec:r,operation:o,securities:n,requestContentType:l,responseContentType:h,attachContentTypeForEmptyPayload:m}=e;if(t=function({request:E,securities:R={},operation:B={},spec:$}){const K={...E},{authorized:L={},specSecurity:H=[]}=R,f=B.security||H,Y=L&&!!Object.keys(L).length,V=$.securityDefinitions;return K.headers=K.headers||{},K.query=K.query||{},!Object.keys(R).length||!Y||!f||Array.isArray(B.security)&&!B.security.length?E:(f.forEach(ne=>{Object.keys(ne).forEach(re=>{const pe=L[re];if(!pe)return;const{token:ve}=pe,he=pe.value||pe,Ee=V[re],{type:Ke}=Ee,Fe=Ee["x-tokenName"]||"access_token",xe=ve&&ve[Fe];let Ye=ve&&ve.token_type;if(pe)if(Ke==="apiKey"){const It=Ee.in==="query"?"query":"headers";K[It]=K[It]||{},K[It][Ee.name]=he}else if(Ke==="basic")if(he.header)K.headers.authorization=he.header;else{const It=he.username||"",Bt=he.password||"";he.base64=Zw(`${It}:${Bt}`),K.headers.authorization=`Basic ${he.base64}`}else Ke==="oauth2"&&xe&&(Ye=Ye&&Ye.toLowerCase()!=="bearer"?Ye:"Bearer",K.headers.authorization=`${Ye} ${xe}`)})}),K)}({request:t,securities:n,operation:o,spec:r}),t.body||t.form||m)l?t.headers["Content-Type"]=l:Array.isArray(o.consumes)?[t.headers["Content-Type"]]=o.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:o.parameters&&o.parameters.filter(E=>E.type==="file").length?t.headers["Content-Type"]="multipart/form-data":o.parameters&&o.parameters.filter(E=>E.in==="formData").length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(l){const E=o.parameters&&o.parameters.filter(B=>B.in==="body").length>0,R=o.parameters&&o.parameters.filter(B=>B.in==="formData").length>0;(E||R)&&(t.headers["Content-Type"]=l)}return!h&&Array.isArray(o.produces)&&o.produces.length>0&&(t.headers.accept=o.produces.join(", ")),t}function Qw(e,t){return`${t.toLowerCase()}-${e}`}function Xw(e,t,r){if(!e||typeof e!="object"||!e.paths||typeof e.paths!="object")return null;const{paths:o}=e;for(const n in o)for(const l in o[n]){if(l.toUpperCase()==="PARAMETERS")continue;const h=o[n][l];if(!h||typeof h!="object")continue;const m={spec:e,pathName:n,method:l.toUpperCase(),operation:h},E=t(m);if(r&&E)return m}}function MS(e,t){return e&&e.paths?function(r,o){return Xw(r,o,!0)||null}(e,({pathName:r,method:o,operation:n})=>{if(!n||typeof n!="object")return!1;const l=n.operationId;return[Kl(n,r,o),Qw(r,o),l].some(h=>h&&h===t)}):null}const ek=e=>Array.isArray(e)?e:[],Ov=e=>{try{return new URL(e)}catch{const t=new URL(e,Hc),r=String(e).startsWith("/")?t.pathname:t.pathname.substring(1);return{hash:t.hash,host:"",hostname:"",href:"",origin:"",password:"",pathname:r,port:"",protocol:"",search:t.search,searchParams:t.searchParams}}},LS=Di("OperationNotFoundError",function(e,t,r){this.originalError=r,Object.assign(this,t||{})}),FS={buildRequest:Av};function tk({http:e,fetch:t,spec:r,operationId:o,pathName:n,method:l,parameters:h,securities:m,...E}){const R=e||t||Ou;n&&l&&!o&&(o=Qw(n,l));const B=FS.buildRequest({spec:r,operationId:o,parameters:h,securities:m,http:R,...E});return B.body&&(Yw(B.body)||Array.isArray(B.body))&&(B.body=JSON.stringify(B.body)),R(B)}function Av(e){const{spec:t,operationId:r,responseContentType:o,scheme:n,requestInterceptor:l,responseInterceptor:h,contextUrl:m,userFetch:E,server:R,serverVariables:B,http:$,signal:K}=e;let{parameters:L,parameterBuilders:H}=e;const f=Wl(t);H||(H=f?C:AS);let Y={url:"",credentials:$&&$.withCredentials?"include":"same-origin",headers:{},cookies:{}};K&&(Y.signal=K),l&&(Y.requestInterceptor=l),h&&(Y.responseInterceptor=h),E&&(Y.userFetch=E);const V=MS(t,r);if(!V)throw new LS(`Operation ${r} not found`);const{operation:ne={},method:re,pathName:pe}=V;if(Y.url+=rk({spec:t,scheme:n,contextUrl:m,server:R,serverVariables:B,pathName:pe,method:re}),!r)return delete Y.cookies,Y;Y.url+=pe,Y.method=`${re}`.toUpperCase(),L=L||{};const ve=t.paths[pe]||{};o&&(Y.headers.accept=o);const he=(Ke=>{const Fe={};Ke.forEach(Ye=>{Fe[Ye.in]||(Fe[Ye.in]={}),Fe[Ye.in][Ye.name]=Ye});const xe=[];return Object.keys(Fe).forEach(Ye=>{Object.keys(Fe[Ye]).forEach(It=>{xe.push(Fe[Ye][It])})}),xe})([].concat(ek(ne.parameters)).concat(ek(ve.parameters)));he.forEach(Ke=>{const Fe=H[Ke.in];let xe;if(Ke.in==="body"&&Ke.schema&&Ke.schema.properties&&(xe=L),xe=Ke&&Ke.name&&L[Ke.name],xe===void 0?xe=Ke&&Ke.name&&L[`${Ke.in}.${Ke.name}`]:((Ye,It)=>It.filter(Bt=>Bt.name===Ye))(Ke.name,he).length>1&&console.warn(`Parameter '${Ke.name}' is ambiguous because the defined spec has more than one parameter with the name: '${Ke.name}' and the passed-in parameter values did not define an 'in' value.`),xe!==null){if(Ke.default!==void 0&&xe===void 0&&(xe=Ke.default),xe===void 0&&Ke.required&&!Ke.allowEmptyValue)throw new Error(`Required parameter ${Ke.name} is not provided`);if(f&&Ke.schema&&Ke.schema.type==="object"&&typeof xe=="string")try{xe=JSON.parse(xe)}catch{throw new Error("Could not parse object parameter value string as JSON")}Fe&&Fe({req:Y,parameter:Ke,value:xe,operation:ne,spec:t})}});const Ee={...e,operation:ne};if(Y=f?DS(Ee,Y):BS(Ee,Y),Y.cookies&&Object.keys(Y.cookies).length){const Ke=Object.keys(Y.cookies).reduce((Fe,xe)=>{const Ye=Y.cookies[xe];return Fe+(Fe?"&":"")+OS.serialize(xe,Ye)},"");Y.headers.Cookie=Ke}return Y.cookies&&delete Y.cookies,Vl(Y),Y}const Cv=e=>e?e.replace(/\W/g,""):null;function rk(e){return Wl(e.spec)?function({spec:t,pathName:r,method:o,server:n,contextUrl:l,serverVariables:h={}}){var m,E;let R,B=[],$="";const K=t==null||(m=t.paths)===null||m===void 0||(m=m[r])===null||m===void 0||(m=m[(o||"").toLowerCase()])===null||m===void 0?void 0:m.servers,L=t==null||(E=t.paths)===null||E===void 0||(E=E[r])===null||E===void 0?void 0:E.servers,H=t==null?void 0:t.servers;return B=Pv(K)?K:Pv(L)?L:Pv(H)?H:[pd],n&&(R=B.find(f=>f.url===n),R&&($=n)),$||([R]=B,$=R.url),$.includes("{")&&function(Y){const V=[],ne=/{([^}]+)}/g;let re;for(;re=ne.exec(Y);)V.push(re[1]);return V}($).forEach(Y=>{if(R.variables&&R.variables[Y]){const V=R.variables[Y],ne=h[Y]||V.default,re=new RegExp(`{${Y}}`,"g");$=$.replace(re,ne)}}),function(f="",Y=""){const V=Ov(f&&Y?Wi(Y,f):f),ne=Ov(Y),re=Cv(V.protocol)||Cv(ne.protocol),pe=V.host||ne.host,ve=V.pathname;let he;return he=re&&pe?`${re}://${pe+ve}`:ve,he[he.length-1]==="/"?he.slice(0,-1):he}($,l)}(e):function({spec:t,scheme:r,contextUrl:o=""}){const n=Ov(o),l=Array.isArray(t.schemes)?t.schemes[0]:null,h=r||l||Cv(n.protocol)||"http",m=t.host||n.host||"",E=t.basePath||"";let R;return R=h&&m?`${h}://${m+E}`:E,R[R.length-1]==="/"?R.slice(0,-1):R}(e)}const Pv=e=>Array.isArray(e)&&e.length>0,ok=e=>async(t,r,o={})=>(async(n,l,h={})=>{const{returnEntireTree:m,baseDoc:E,requestInterceptor:R,responseInterceptor:B,parameterMacro:$,modelPropertyMacro:K,useCircularStructures:L,strategies:H}=h,f={spec:n,pathDiscriminator:l,baseDoc:E,requestInterceptor:R,responseInterceptor:B,parameterMacro:$,modelPropertyMacro:K,useCircularStructures:L,strategies:H},Y=H.find(ne=>ne.match(f)).normalize(f),V=await jS({...f,spec:Y,allowMetaPatches:!0,skipNormalization:!0});return!m&&Array.isArray(l)&&l.length&&(V.spec=l.reduce((ne,re)=>ne==null?void 0:ne[re],V.spec)||null),V})(t,r,{...e,...o});var ak=st(30883),$S=st(17862),US=st(24904);let nk=function(e){e()};const qS=()=>nk,ik=Symbol.for("react-redux-context"),sk=typeof globalThis<"u"?globalThis:{};function KS(){var e;if(!P.createContext)return{};const t=(e=sk[ik])!=null?e:sk[ik]=new Map;let r=t.get(P.createContext);return r||(r=P.createContext(null),t.set(P.createContext,r)),r}const ck=KS();function yp(){return yp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(e[o]=r[o])}return e},yp.apply(this,arguments)}function Iv(e,t){if(e==null)return{};var r,o,n={},l=Object.keys(e);for(o=0;o<l.length;o++)r=l[o],t.indexOf(r)>=0||(n[r]=e[r]);return n}var HS=st(69869),lk=st.n(HS),VS=st(67086);const WS=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function JS(e,t,r,o,{areStatesEqual:n,areOwnPropsEqual:l,areStatePropsEqual:h}){let m,E,R,B,$,K=!1;function L(H,f){const Y=!l(f,E),V=!n(H,m,f,E);return m=H,E=f,Y&&V?(R=e(m,E),t.dependsOnOwnProps&&(B=t(o,E)),$=r(R,B,E),$):Y?(e.dependsOnOwnProps&&(R=e(m,E)),t.dependsOnOwnProps&&(B=t(o,E)),$=r(R,B,E),$):V?function(){const ne=e(m,E),re=!h(ne,R);return R=ne,re&&($=r(R,B,E)),$}():$}return function(H,f){return K?L(H,f):(m=H,E=f,R=e(m,E),B=t(o,E),$=r(R,B,E),K=!0,$)}}function zv(e){return function(t){const r=e(t);function o(){return r}return o.dependsOnOwnProps=!1,o}}function uk(e){return e.dependsOnOwnProps?!!e.dependsOnOwnProps:e.length!==1}function pk(e,t){return function(r,{displayName:o}){const n=function(l,h){return n.dependsOnOwnProps?n.mapToProps(l,h):n.mapToProps(l,void 0)};return n.dependsOnOwnProps=!0,n.mapToProps=function(l,h){n.mapToProps=e,n.dependsOnOwnProps=uk(e);let m=n(l,h);return typeof m=="function"&&(n.mapToProps=m,n.dependsOnOwnProps=uk(m),m=n(l,h)),m},n}}function Tv(e,t){return(r,o)=>{throw new Error(`Invalid value of type ${typeof e} for ${t} argument when connecting component ${o.wrappedComponentName}.`)}}function GS(e,t,r){return yp({},r,e,t)}const dk={notify(){},get:()=>[]};function gk(e,t){let r,o=dk,n=0,l=!1;function h(){R.onStateChange&&R.onStateChange()}function m(){n++,r||(r=t?t.addNestedSub(h):e.subscribe(h),o=function(){const B=qS();let $=null,K=null;return{clear(){$=null,K=null},notify(){B(()=>{let L=$;for(;L;)L.callback(),L=L.next})},get(){let L=[],H=$;for(;H;)L.push(H),H=H.next;return L},subscribe(L){let H=!0,f=K={callback:L,next:null,prev:K};return f.prev?f.prev.next=f:$=f,function(){H&&$!==null&&(H=!1,f.next?f.next.prev=f.prev:K=f.prev,f.prev?f.prev.next=f.next:$=f.next)}}}}())}function E(){n--,r&&n===0&&(r(),r=void 0,o.clear(),o=dk)}const R={addNestedSub:function(B){m();const $=o.subscribe(B);let K=!1;return()=>{K||(K=!0,$(),E())}},notifyNestedSubs:function(){o.notify()},handleChangeWrapper:h,isSubscribed:function(){return l},trySubscribe:function(){l||(l=!0,m())},tryUnsubscribe:function(){l&&(l=!1,E())},getListeners:()=>o};return R}const bm=typeof window>"u"||window.document===void 0||window.document.createElement===void 0?P.useEffect:P.useLayoutEffect;function hk(e,t){return e===t?e!==0||t!==0||1/e==1/t:e!=e&&t!=t}function Rv(e,t){if(hk(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(let n=0;n<r.length;n++)if(!Object.prototype.hasOwnProperty.call(t,r[n])||!hk(e[r[n]],t[r[n]]))return!1;return!0}const YS=["reactReduxForwardedRef"];let fk=()=>{throw new Error("uSES not initialized!")};const ZS=[null,null];function QS(e,t,r,o,n,l){e.current=o,r.current=!1,n.current&&(n.current=null,l())}function XS(e,t){return e===t}const e_=function(e,t,r,{pure:o,areStatesEqual:n=XS,areOwnPropsEqual:l=Rv,areStatePropsEqual:h=Rv,areMergedPropsEqual:m=Rv,forwardRef:E=!1,context:R=ck}={}){const B=R,$=function(f){return f?typeof f=="function"?pk(f):Tv(f,"mapStateToProps"):zv(()=>({}))}(e),K=function(f){return f&&typeof f=="object"?zv(Y=>function(V,ne){const re={};for(const pe in V){const ve=V[pe];typeof ve=="function"&&(re[pe]=(...he)=>ne(ve(...he)))}return re}(f,Y)):f?typeof f=="function"?pk(f):Tv(f,"mapDispatchToProps"):zv(Y=>({dispatch:Y}))}(t),L=function(f){return f?typeof f=="function"?function(Y){return function(V,{displayName:ne,areMergedPropsEqual:re}){let pe,ve=!1;return function(he,Ee,Ke){const Fe=Y(he,Ee,Ke);return ve?re(Fe,pe)||(pe=Fe):(ve=!0,pe=Fe),pe}}}(f):Tv(f,"mergeProps"):()=>GS}(r),H=!!e;return f=>{const Y=f.displayName||f.name||"Component",V=`Connect(${Y})`,ne={shouldHandleStateChanges:H,displayName:V,wrappedComponentName:Y,WrappedComponent:f,initMapStateToProps:$,initMapDispatchToProps:K,initMergeProps:L,areStatesEqual:n,areStatePropsEqual:h,areOwnPropsEqual:l,areMergedPropsEqual:m};function re(ve){const[he,Ee,Ke]=P.useMemo(()=>{const{reactReduxForwardedRef:Jr}=ve,Vo=Iv(ve,YS);return[ve.context,Jr,Vo]},[ve]),Fe=P.useMemo(()=>he&&he.Consumer&&(0,VS.isContextConsumer)(P.createElement(he.Consumer,null))?he:B,[he,B]),xe=P.useContext(Fe),Ye=!!ve.store&&!!ve.store.getState&&!!ve.store.dispatch,It=!!xe&&!!xe.store,Bt=Ye?ve.store:xe.store,gt=It?xe.getServerState:Bt.getState,Xt=P.useMemo(()=>function(Jr,Vo){let{initMapStateToProps:la,initMapDispatchToProps:ho,initMergeProps:Po}=Vo,na=Iv(Vo,WS);return JS(la(Jr,na),ho(Jr,na),Po(Jr,na),Jr,na)}(Bt.dispatch,ne),[Bt]),[pt,wt]=P.useMemo(()=>{if(!H)return ZS;const Jr=gk(Bt,Ye?void 0:xe.subscription),Vo=Jr.notifyNestedSubs.bind(Jr);return[Jr,Vo]},[Bt,Ye,xe]),qe=P.useMemo(()=>Ye?xe:yp({},xe,{subscription:pt}),[Ye,xe,pt]),Mt=P.useRef(),cr=P.useRef(Ke),pr=P.useRef(),Vt=P.useRef(!1),vr=(P.useRef(!1),P.useRef(!1)),Ut=P.useRef();bm(()=>(vr.current=!0,()=>{vr.current=!1}),[]);const Hr=P.useMemo(()=>()=>pr.current&&Ke===cr.current?pr.current:Xt(Bt.getState(),Ke),[Bt,Ke]),rt=P.useMemo(()=>Jr=>pt?function(Vo,la,ho,Po,na,ce,we,Me,Dt,Ft,lr){if(!Vo)return()=>{};let Tr=!1,Jo=null;const ha=()=>{if(Tr||!Me.current)return;const Ia=la.getState();let wa,Qa;try{wa=Po(Ia,na.current)}catch(an){Qa=an,Jo=an}Qa||(Jo=null),wa===ce.current?we.current||Ft():(ce.current=wa,Dt.current=wa,we.current=!0,lr())};return ho.onStateChange=ha,ho.trySubscribe(),ha(),()=>{if(Tr=!0,ho.tryUnsubscribe(),ho.onStateChange=null,Jo)throw Jo}}(H,Bt,pt,Xt,cr,Mt,Vt,vr,pr,wt,Jr):()=>{},[pt]);var Ge,dr,Yr;let er;Ge=QS,dr=[cr,Mt,Vt,Ke,pr,wt],bm(()=>Ge(...dr),Yr);try{er=fk(rt,Hr,gt?()=>Xt(gt(),Ke):Hr)}catch(Jr){throw Ut.current&&(Jr.message+=`
|
|
180
180
|
The error may be correlated with this previous error:
|
|
181
181
|
${Ut.current.stack}
|
|
182
182
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kong-ui-public/spec-renderer",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.19",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./dist/spec-renderer.umd.js",
|
|
6
6
|
"module": "./dist/spec-renderer.es.js",
|
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
"vue": "^3.4.21"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@kong-ui-public/swagger-ui-web-component": "^0.11.
|
|
37
|
+
"@kong-ui-public/swagger-ui-web-component": "^0.11.9",
|
|
38
38
|
"@kong/icons": "^1.9.0",
|
|
39
39
|
"lodash.clonedeep": "^4.5.0",
|
|
40
40
|
"uuid": "^9.0.1",
|