0){for(i=u,s=0;i>0;i--)(u=ku(f=e.input.charCodeAt(++e.position)))>=0?s=(s<<4)+u:_n(e,"expected hexadecimal character");e.result+=ju(s),e.position++}else _n(e,"unknown escape sequence");r=o=e.position}else ls(f)?(j(e,r,o,!0),We(e,de(e,!1,t)),r=o=e.position):e.position===e.lineStart&&Re(e)?_n(e,"unexpected end of the document within a double quoted scalar"):(e.position++,o=e.position)}_n(e,"unexpected end of the stream within a double quoted scalar")}(e,d)?T=!0:function cs(e){var t,r,o;if(42!==(o=e.input.charCodeAt(e.position)))return!1;for(o=e.input.charCodeAt(++e.position),t=e.position;0!==o&&!oo(o)&&!Hs(o);)o=e.input.charCodeAt(++e.position);return e.position===t&&_n(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),Zi.call(e.anchorMap,r)||_n(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],de(e,!0,-1),!0}(e)?(T=!0,(null!==e.tag||null!==e.anchor)&&_n(e,"alias node should not have any properties")):function _t(e,t,r){var i,s,u,f,m,S,T,O,I=e.kind,P=e.result;if(oo(O=e.input.charCodeAt(e.position))||Hs(O)||35===O||38===O||42===O||33===O||124===O||62===O||39===O||34===O||37===O||64===O||96===O||(63===O||45===O)&&(oo(i=e.input.charCodeAt(e.position+1))||r&&Hs(i)))return!1;for(e.kind="scalar",e.result="",s=u=e.position,f=!1;0!==O;){if(58===O){if(oo(i=e.input.charCodeAt(e.position+1))||r&&Hs(i))break}else if(35===O){if(oo(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&Re(e)||r&&Hs(O))break;if(ls(O)){if(m=e.line,S=e.lineStart,T=e.lineIndent,de(e,!1,-1),e.lineIndent>=t){f=!0,O=e.input.charCodeAt(e.position);continue}e.position=u,e.line=m,e.lineStart=S,e.lineIndent=T;break}}f&&(j(e,s,u,!1),We(e,e.line-m),s=u=e.position,f=!1),oi(O)||(u=e.position+1),O=e.input.charCodeAt(++e.position)}return j(e,s,u,!1),!!e.result||(e.kind=I,e.result=P,!1)}(e,d,Ll===r)&&(T=!0,null===e.tag&&(e.tag="?")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(T=f&&Nn(e,D))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&_n(e,'unacceptable node kind for !> tag; it should be "scalar", not "'+e.kind+'"'),I=0,P=e.implicitTypes.length;I"),null!==e.result&&M.kind!==e.kind&&_n(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+M.kind+'", not "'+e.kind+'"'),M.resolve(e.result,e.tag)?(e.result=M.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):_n(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||T}function of(e){var r,o,i,u,t=e.position,s=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(u=e.input.charCodeAt(e.position))&&(de(e,!0,-1),u=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==u));){for(s=!0,u=e.input.charCodeAt(++e.position),r=e.position;0!==u&&!oo(u);)u=e.input.charCodeAt(++e.position);for(i=[],(o=e.input.slice(r,e.position)).length<1&&_n(e,"directive name must not be less than one character in length");0!==u;){for(;oi(u);)u=e.input.charCodeAt(++e.position);if(35===u){do{u=e.input.charCodeAt(++e.position)}while(0!==u&&!ls(u));break}if(ls(u))break;for(r=e.position;0!==u&&!oo(u);)u=e.input.charCodeAt(++e.position);i.push(e.input.slice(r,e.position))}0!==u&&fe(e),Zi.call(_,o)?_[o](e,o,i):C(e,'unknown document directive "'+o+'"')}de(e,!0,-1),0===e.lineIndent&&45===e.input.charCodeAt(e.position)&&45===e.input.charCodeAt(e.position+1)&&45===e.input.charCodeAt(e.position+2)?(e.position+=3,de(e,!0,-1)):s&&_n(e,"directives end mark is expected"),Vs(e,e.lineIndent-1,Bl,!1,!0),de(e,!0,-1),e.checkLineBreaks&&Qa.test(e.input.slice(t,e.position))&&C(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Re(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,de(e,!0,-1)):e.position"u"&&(r=t,t=null);var o=ud(e,r);if("function"!=typeof t)return o;for(var i=0,s=o.length;i=55296&&r<=56319&&t+1=56320&&o<=57343?1024*(r-55296)+o-56320+65536:r}function pf(e){return/^\n* /.test(e)}var Ed=1,zl=2,fs=3,Al=4,Hl=5;function Vl(e,t,r,o,i){e.dump=function(){if(0===t.length)return e.quotingType===zu?'""':"''";if(!e.noCompatMode&&(-1!==cf.indexOf(t)||yd.test(t)))return e.quotingType===zu?'"'+t+'"':"'"+t+"'";var s=e.indent*Math.max(1,r),u=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-s);switch(function kp(e,t,r,o,i,s,u,f){var m,S=0,T=null,I=!1,P=!1,O=-1!==o,M=-1,d=function Vu(e){return Va(e)&&e!==ka&&!ff(e)&&e!==dd&&e!==Kh&&e!==lf&&e!==sf&&e!==hd&&e!==md&&e!==gd&&e!==Rp&&e!==Uu&&e!==fd&&e!==Gh&&e!==Cp&&e!==vd&&e!==Tp&&e!==pd&&e!==cu&&e!==Ap&&e!==Op&&e!==uf&&e!==Ip}(du(e,0))&&function df(e){return!ff(e)&&e!==lf}(du(e,e.length-1));if(t||u)for(m=0;m=65536?m+=2:m++){if(!Va(S=du(e,m)))return Hl;d=d&&mc(S,T,f),T=S}else{for(m=0;m=65536?m+=2:m++){if((S=du(e,m))===dl)I=!0,O&&(P=P||m-M-1>o&&" "!==e[M+1],M=m);else if(!Va(S))return Hl;d=d&&mc(S,T,f),T=S}P=P||O&&m-M-1>o&&" "!==e[M+1]}return I||P?r>9&&pf(e)?Hl:u?s===zu?Hl:zl:P?Al:fs:!d||u||i(e)?s===zu?Hl:zl:Ed}(t,o||e.flowLevel>-1&&r>=e.flowLevel,e.indent,u,function m(S){return function Mp(e,t){var r,o;for(r=0,o=e.implicitTypes.length;r"+Ol(t,e.indent)+bd(Hu(function gc(e,t){for(var s,u,r=/(\n+)([^\n]*)/g,o=(S=void 0,S=e.indexOf("\n"),r.lastIndex=S=-1!==S?S:e.length,xd(e.slice(0,S),t)),i="\n"===e[0]||" "===e[0];u=r.exec(e);){var m=u[2];s=" "===m[0],o+=u[1]+(i||s||""===m?"":"\n")+xd(m,t),i=s}var S;return o}(t,u),s));case Hl:return'"'+function Np(e){for(var o,t="",r=0,i=0;i=65536?i+=2:i++)r=du(e,i),!(o=Fi[r])&&Va(r)?(t+=e[i],r>=65536&&(t+=e[i+1])):t+=o||Na(r);return t}(t)+'"';default:throw new ji("impossible error: invalid scalar style")}}()}function Ol(e,t){var r=pf(e)?String(t):"",o="\n"===e[e.length-1];return r+(!o||"\n"!==e[e.length-2]&&"\n"!==e?o?"":"-":"+")+"\n"}function bd(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function xd(e,t){if(""===e||" "===e[0])return e;for(var o,s,r=/ [^ ]/g,i=0,u=0,f=0,m="";o=r.exec(e);)(f=o.index)-i>t&&(m+="\n"+e.slice(i,s=u>i?u:f),i=s+1),u=f;return m+="\n",(m+=e.length-i>t&&u>i?e.slice(i,u)+"\n"+e.slice(u+1):e.slice(i)).slice(1)}function Sd(e,t,r){var o,i,s,u,f,m;for(s=0,u=(i=r?e.explicitTypes:e.implicitTypes).length;s tag resolver accepts not "'+m+'" style');o=f.represent[m](t,m)}e.dump=o}return!0}return!1}function Ws(e,t,r,o,i,s,u){e.tag=null,e.dump=r,Sd(e,r,!1)||Sd(e,r,!0);var S,f=Cl.call(e.dump),m=o;o&&(o=e.flowLevel<0||e.flowLevel>t);var I,P,T="[object Object]"===f||"[object Array]"===f;if(T&&(P=-1!==(I=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||P||2!==e.indent&&t>0)&&(i=!1),P&&e.usedDuplicates[I])e.dump="*ref_"+I;else{if(T&&P&&!e.usedDuplicates[I]&&(e.usedDuplicates[I]=!0),"[object Object]"===f)o&&0!==Object.keys(e.dump).length?(function Dp(e,t,r,o){var f,m,S,T,I,P,i="",s=e.tag,u=Object.keys(r);if(!0===e.sortKeys)u.sort();else if("function"==typeof e.sortKeys)u.sort(e.sortKeys);else if(e.sortKeys)throw new ji("sortKeys must be a boolean or a function");for(f=0,m=u.length;f1024)&&(e.dump&&dl===e.dump.charCodeAt(0)?P+="?":P+="? "),P+=e.dump,I&&(P+=Is(e,t)),Ws(e,t+1,T,!0,I)&&(e.dump&&dl===e.dump.charCodeAt(0)?P+=":":P+=": ",i+=P+=e.dump));e.tag=s,e.dump=i||"{}"}(e,t,e.dump,i),P&&(e.dump="&ref_"+I+e.dump)):(function jp(e,t,r){var u,f,m,S,T,o="",i=e.tag,s=Object.keys(r);for(u=0,f=s.length;u1024&&(T+="? "),T+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Ws(e,t,S,!1,!1)&&(o+=T+=e.dump));e.tag=i,e.dump="{"+o+"}"}(e,t,e.dump),P&&(e.dump="&ref_"+I+" "+e.dump));else if("[object Array]"===f)o&&0!==e.dump.length?(function vc(e,t,r,o){var u,f,m,i="",s=e.tag;for(u=0,f=r.length;u"u"&&Ws(e,t+1,null,!0,!0,!1,!0))&&((!o||""!==i)&&(i+=Is(e,t)),e.dump&&dl===e.dump.charCodeAt(0)?i+="-":i+="- ",i+=e.dump);e.tag=s,e.dump=i||"[]"}(e,e.noArrayIndent&&!u&&t>0?t-1:t,e.dump,i),P&&(e.dump="&ref_"+I+e.dump)):(function hf(e,t,r){var s,u,f,o="",i=e.tag;for(s=0,u=r.length;s"u"&&Ws(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=i,e.dump="["+o+"]"}(e,t,e.dump),P&&(e.dump="&ref_"+I+" "+e.dump));else{if("[object String]"!==f){if("[object Undefined]"===f)return!1;if(e.skipInvalid)return!1;throw new ji("unacceptable kind of an object to dump "+f)}"?"!==e.tag&&Vl(e,e.dump,t,s,m)}null!==e.tag&&"?"!==e.tag&&(S=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),S="!"===e.tag[0]?"!"+S:"tag:yaml.org,2002:"===S.slice(0,18)?"!!"+S.slice(18):"!<"+S+">",e.dump=S+" "+e.dump)}return!0}function mf(e,t){var i,s,r=[],o=[];for(pu(e,r,o),i=0,s=o.length;i/(json|xml|yaml|text)\b/.test(e);function bf(e={}){return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce((t,[r,o])=>(t[r]=function Up(e){return e.includes(", ")?e.split(", "):e}(o),t),{})}function xf(e,t,{loadSpec:r=!1}={}){const o={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:bf(e.headers)},i=o.headers["content-type"],s=r||Bp(i);return(s?e.text:e.blob||e.buffer).call(e).then(f=>{if(o.text=f,o.data=f,s)try{const m=function Ad(e,t){if(t){if(0===t.indexOf("application/json")||t.indexOf("+json")>0)return JSON.parse(e);if(0===t.indexOf("application/xml")||t.indexOf("+xml")>0)return e}return Cd.load(e)}(f,i);o.body=m,o.obj=m}catch(m){o.parseError=m}return o})}function Gl(e){return xc.apply(this,arguments)}function xc(){return(xc=(0,b.A)(function*(e,t={}){let o;"object"==typeof e&&(e=(t=e).url),t.headers=t.headers||{},(t=yi(t)).headers&&Object.keys(t.headers).forEach(i=>{const s=t.headers[i];"string"==typeof s&&(t.headers[i]=s.replace(/\n+/g," "))}),t.requestInterceptor&&(t=(yield t.requestInterceptor(t))||t),/multipart\/form-data/i.test(t.headers["content-type"]||t.headers["Content-Type"])&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{o=yield(t.userFetch||fetch)(t.url,t),o=yield xf(o,e,t),t.responseInterceptor&&(o=(yield t.responseInterceptor(o))||o)}catch(i){if(!o)throw i;const s=new Error(o.statusText||`response status is ${o.status}`);throw s.status=o.status,s.statusCode=o.status,s.responseError=i,s}if(!o.ok){const i=new Error(o.statusText||`response status is ${o.status}`);throw i.status=o.status,i.statusCode=o.status,i.response=o,i}return o})).apply(this,arguments)}function Sc(e,t,r){return r=r||(o=>o),t=t||(o=>o),o=>("string"==typeof o&&(o={url:o}),o=yi(o),o=t(o),r(e(o)))}const ds=e=>{var t,r;const{baseDoc:o,url:i}=e,s=null!==(t=o??i)&&void 0!==t?t:"";return"string"==typeof(null===(r=globalThis.document)||void 0===r?void 0:r.baseURI)?String(new URL(s,globalThis.document.baseURI)):s},Gu=e=>{const{fetch:t,http:r}=e;return t||r||Gl};var e,Qi=(e=function(t,r){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(o,i){o.__proto__=i}||function(o,i){for(var s in i)i.hasOwnProperty(s)&&(o[s]=i[s])})(t,r)},function(t,r){function o(){this.constructor=t}e(t,r),t.prototype=null===r?Object.create(r):(o.prototype=r.prototype,new o)}),ja=Object.prototype.hasOwnProperty;function sa(e,t){return ja.call(e,t)}function Ku(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r=48&&o<=57))return!1;t++}return!0}function Gs(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Sf(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Rs(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t0&&"constructor"==m[T-1]))throw new TypeError("JSON-Patch: modifying `__proto__` or `constructor/prototype` prop is banned for security reasons, if this was on purpose, please set `banPrototypeModifications` flag false and pass it to this function. More info in fast-json-patch README");if(r&&void 0===P&&(void 0===S[O]?P=m.slice(0,T).join("/"):T==I-1&&(P=t.path),void 0!==P&&M(t,0,e,P)),T++,Array.isArray(S)){if("-"===O)O=S.length;else{if(r&&!Da(O))throw new zi("Expected an unsigned base-10 integer value, making the new referenced value the array element with the zero-based index","OPERATION_PATH_ILLEGAL_ARRAY_INDEX",s,t,e);Da(O)&&(O=~~O)}if(T>=I){if(r&&"add"===t.op&&O>S.length)throw new zi("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",s,t,e);if(!1===(u=_c[t.op].call(t,S,O,e)).test)throw new zi("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return u}}else if(T>=I){if(!1===(u=mu[t.op].call(t,S,O,e)).test)throw new zi("Test operation failed","TEST_OPERATION_FAILED",s,t,e);return u}if(S=S[O],r&&T0)throw new zi('Operation `path` property must start with "/"',"OPERATION_PATH_INVALID",t,e,r);if(("move"===e.op||"copy"===e.op)&&"string"!=typeof e.from)throw new zi("Operation `from` property is not present (applicable in `move` and `copy` operations)","OPERATION_FROM_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&void 0===e.value)throw new zi("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_REQUIRED",t,e,r);if(("add"===e.op||"replace"===e.op||"test"===e.op)&&Rs(e.value))throw new zi("Operation `value` property is not present (applicable in `add`, `replace` and `test` operations)","OPERATION_VALUE_CANNOT_CONTAIN_UNDEFINED",t,e,r);if(r)if("add"==e.op){var i=e.path.split("/").length,s=o.split("/").length;if(i!==s+1&&i!==s)throw new zi("Cannot perform an `add` operation at the desired path","OPERATION_PATH_CANNOT_ADD",t,e,r)}else if("replace"===e.op||"remove"===e.op||"_get"===e.op){if(e.path!==o)throw new zi("Cannot perform the operation at a path that does not exist","OPERATION_PATH_UNRESOLVABLE",t,e,r)}else if("move"===e.op||"copy"===e.op){var f=Td([{op:"_get",path:e.from,value:void 0}],r);if(f&&"OPERATION_PATH_UNRESOLVABLE"===f.name)throw new zi("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function Td(e,t,r){try{if(!Array.isArray(e))throw new zi("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)Ks(wa(t),wa(e),r||!0);else{r=r||Zu;for(var o=0;o0&&(e.patches=[],e.callback&&e.callback(o)),o}function Pd(e,t,r,o,i){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var s=Ku(t),u=Ku(e),m=!1,S=u.length-1;S>=0;S--){var I=e[T=u[S]];if(!sa(t,T)||void 0===t[T]&&void 0!==I&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(i&&r.push({op:"test",path:o+"/"+Gs(T),value:wa(I)}),r.push({op:"remove",path:o+"/"+Gs(T)}),m=!0):(i&&r.push({op:"test",path:o,value:e}),r.push({op:"replace",path:o,value:t}));else{var P=t[T];"object"==typeof I&&null!=I&&"object"==typeof P&&null!=P&&Array.isArray(I)===Array.isArray(P)?Pd(I,P,r,o+"/"+Gs(T),i):I!==P&&(i&&r.push({op:"test",path:o+"/"+Gs(T),value:wa(I)}),r.push({op:"replace",path:o+"/"+Gs(T),value:wa(P)}))}}if(m||s.length!=u.length)for(S=0;Stypeof o<"u"&&r?r[o]:r,e)},applyPatch:function Gp(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&Md(t.path)}).op){const o=Tf(e,t.path);Object.assign(o,t.value),Ks(e,[qu(t.path,o)])}else if("mergeDeep"===t.op){const o=Tf(e,t.path),i=Ps()(o,t.value,{customMerge:s=>{if("enum"===s)return(u,f)=>Array.isArray(u)&&Array.isArray(f)?[...new Set([...u,...f])]:Ps()(u,f)}});e=Ks(e,[qu(t.path,i)]).newDocument}else if("add"===t.op&&""===t.path&&Il(t.value))Ks(e,Object.keys(t.value).reduce((i,s)=>(i.push({op:"add",path:`/${Md(s)}`,value:t.value[s]}),i),[]));else if("replace"===t.op&&""===t.path){let{value:o}=t;r.allowMetaPatches&&t.meta&&ec(t)&&(Array.isArray(t.value)||Il(t.value))&&(o={...o,...t.meta}),e=o}else if(Ks(e,[t]),r.allowMetaPatches&&t.meta&&ec(t)&&(Array.isArray(t.value)||Il(t.value))){const i={...Tf(e,t.path),...t.meta};Ks(e,[qu(t.path,i)])}return e},parentPathMatch:function Zp(e,t){if(!Array.isArray(t))return!1;for(let r=0,o=t.length;r(t+"").replace(/~/g,"~0").replace(/\//g,"~1")).join("/")}`:e}function qu(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function jd(e,t,r){return Ld(ps(e.filter(ec).map(u=>t(u.value,r,u.path))||[]))}function Cf(e,t,r){return r=r||[],Array.isArray(e)?e.map((o,i)=>Cf(o,t,r.concat(i))):Il(e)?Object.keys(e).map(o=>Cf(e[o],t,r.concat(o))):t(e,r[r.length-1],r)}function Af(e,t,r){let o=[];if((r=r||[]).length>0){const i=t(e,r[r.length-1],r);i&&(o=o.concat(i))}if(Array.isArray(e)){const i=e.map((s,u)=>Af(s,t,r.concat(u)));i&&(o=o.concat(i))}else if(Il(e)){const i=Object.keys(e).map(s=>Af(e[s],t,r.concat(s)));i&&(o=o.concat(i))}return o=ps(o),o}function Fd(e){return Array.isArray(e)?e:[e]}function ps(e){return[].concat(...e.map(t=>Array.isArray(t)?ps(t):t))}function Ld(e){return e.filter(t=>typeof t<"u")}function Il(e){return e&&"object"==typeof e}function Bd(e){return e&&"function"==typeof e}function eh(e){if(Cc(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Of(e){return eh(e)||Cc(e)&&"mutation"===e.type}function ec(e){return Of(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Cc(e){return e&&"object"==typeof e}function Tf(e,t){try{return Yl(e,t)}catch(r){return console.error(r),{}}}var qh=n(48675);const em=class th extends qh{constructor(t,r,o){if(super(t,r,o),this.name=this.constructor.name,"string"==typeof r&&(this.message=r),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(r).stack,null!=o&&"object"==typeof o&&Object.hasOwn(o,"cause")&&!("cause"in this)){const{cause:i}=o;this.cause=i,i instanceof Error&&"stack"in i&&(this.stack=`${this.stack}\nCAUSE: ${i.stack}`)}}};class tm extends Error{static[Symbol.hasInstance](t){return super[Symbol.hasInstance](t)||Function.prototype[Symbol.hasInstance].call(em,t)}constructor(t,r){if(super(t,r),this.name=this.constructor.name,"string"==typeof t&&(this.message=t),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(t).stack,null!=r&&"object"==typeof r&&Object.hasOwn(r,"cause")&&!("cause"in this)){const{cause:o}=r;this.cause=o,o instanceof Error&&"stack"in o&&(this.stack=`${this.stack}\nCAUSE: ${o.stack}`)}}}const rh=tm,Ud=class nh extends rh{constructor(t,r){if(super(t,r),null!=r&&"object"==typeof r){const{cause:o,...i}=r;Object.assign(this,i)}}};function Ac(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,i){return t.apply(this,arguments)};case 4:return function(r,o,i,s){return t.apply(this,arguments)};case 5:return function(r,o,i,s,u){return t.apply(this,arguments)};case 6:return function(r,o,i,s,u,f){return t.apply(this,arguments)};case 7:return function(r,o,i,s,u,f,m){return t.apply(this,arguments)};case 8:return function(r,o,i,s,u,f,m,S){return t.apply(this,arguments)};case 9:return function(r,o,i,s,u,f,m,S,T){return t.apply(this,arguments)};case 10:return function(r,o,i,s,u,f,m,S,T,I){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function oh(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function bi(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function mi(e){return function t(r){return 0===arguments.length||bi(r)?t:e.apply(this,arguments)}}function gi(e){return function t(r,o){switch(arguments.length){case 0:return t;case 1:return bi(r)?t:mi(function(i){return e(r,i)});default:return bi(r)&&bi(o)?t:bi(r)?mi(function(i){return e(i,o)}):bi(o)?mi(function(i){return e(r,i)}):e(r,o)}}}function gu(e){return function t(r,o,i){switch(arguments.length){case 0:return t;case 1:return bi(r)?t:gi(function(s,u){return e(r,s,u)});case 2:return bi(r)&&bi(o)?t:bi(r)?gi(function(s,u){return e(s,o,u)}):bi(o)?gi(function(s,u){return e(r,s,u)}):mi(function(s){return e(r,o,s)});default:return bi(r)&&bi(o)&&bi(i)?t:bi(r)&&bi(o)?gi(function(s,u){return e(s,u,i)}):bi(r)&&bi(i)?gi(function(s,u){return e(s,o,u)}):bi(o)&&bi(i)?gi(function(s,u){return e(r,s,u)}):bi(r)?mi(function(s){return e(s,o,i)}):bi(o)?mi(function(s){return e(r,s,i)}):bi(i)?mi(function(s){return e(r,o,s)}):e(r,o,i)}}}const Oc=Array.isArray||function(t){return null!=t&&t.length>=0&&"[object Array]"===Object.prototype.toString.call(t)};function $d(e){return"[object String]"===Object.prototype.toString.call(e)}const If=mi(function(t){return!!Oc(t)||!(!t||"object"!=typeof t||$d(t))&&(0===t.length||t.length>0&&t.hasOwnProperty(0)&&t.hasOwnProperty(t.length-1))});var Rf=typeof Symbol<"u"?Symbol.iterator:"@@iterator";function Zn(e,t,r){return function(i,s,u){if(If(u))return e(i,s,u);if(null==u)return s;if("function"==typeof u["fantasy-land/reduce"])return t(i,s,u,"fantasy-land/reduce");if(null!=u[Rf])return r(i,s,u[Rf]());if("function"==typeof u.next)return r(i,s,u);if("function"==typeof u.reduce)return t(i,s,u,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Wa(e,t,r){for(var o=0,i=r.length;o=arguments.length)?m=t[u]:(m=arguments[i],i+=1),o[u]=m,bi(m)?f=!0:s-=1,u+=1}return!f&&s<=0?r.apply(this,o):Ac(Math.max(0,s),kf(e,o,r))}}var ml=gi(function(t,r){return 1===t?mi(r):Ac(t,kf(t,[],r))});const qi=ml;const Mc=mi(function(t){return qi(t.length,t)});function kc(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}function Nf(e){for(var r,t=[];!(r=e.next()).done;)t.push(r.value);return t}function gl(e,t,r){for(var o=0,i=r.length;o=0;)Js(r=Rl[o],t)&&!Df(i,r)&&(i[i.length]=r),o-=1;return i}:function(t){return Object(t)!==t?[]:Object.keys(t)});const yu=Ms;const Ml=mi(function(t){return null===t?"Null":void 0===t?"Undefined":Object.prototype.toString.call(t).slice(8,-1)});function ih(e,t,r,o){var i=Nf(e);function u(f,m){return Ff(f,m,r.slice(),o.slice())}return!gl(function(f,m){return!gl(u,m,f)},Nf(t),i)}function Ff(e,t,r,o){if(hs(e,t))return!0;var i=Ml(e);if(i!==Ml(t))return!1;if("function"==typeof e["fantasy-land/equals"]||"function"==typeof t["fantasy-land/equals"])return"function"==typeof e["fantasy-land/equals"]&&e["fantasy-land/equals"](t)&&"function"==typeof t["fantasy-land/equals"]&&t["fantasy-land/equals"](e);if("function"==typeof e.equals||"function"==typeof t.equals)return"function"==typeof e.equals&&e.equals(t)&&"function"==typeof t.equals&&t.equals(e);switch(i){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===function Nc(e){var t=String(e).match(/^function (\w*)/);return null==t?"":t[1]}(e.constructor))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!hs(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!hs(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 s=r.length-1;s>=0;){if(r[s]===e)return o[s]===t;s-=1}switch(i){case"Map":return e.size===t.size&&ih(e.entries(),t.entries(),r.concat([e]),o.concat([t]));case"Set":return e.size===t.size&&ih(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 u=yu(e);if(u.length!==yu(t).length)return!1;var f=r.concat([e]),m=o.concat([t]);for(s=u.length-1;s>=0;){var S=u[s];if(!Js(S,t)||!Ff(t[S],e[S],f,m))return!1;s-=1}return!0}var ah=gi(function(t,r){return Ff(t,r,[],[])});const Zl=ah;function Eu(e,t){return function Vd(e,t,r){var o,i;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(o=1/t;r=0}function Lc(e,t){for(var r=0,o=t.length,i=Array(o);r":Gd(u,f)},o=function(s,u){return Lc(function(f){return Lf(f)+": "+r(s[f])},u.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+Lc(r,e).join(", ")+"))";case"[object Array]":return"["+Lc(r,e).concat(o(e,lm(function(s){return/^\d+$/.test(s)},yu(e)))).join(", ")+"]";case"[object Boolean]":return"object"==typeof e?"new Boolean("+r(e.valueOf())+")":e.toString();case"[object Date]":return"new Date("+(isNaN(e.valueOf())?r(NaN):Lf(om(e)))+")";case"[object Map]":return"new Map("+r(Array.from(e))+")";case"[object Null]":return"null";case"[object Number]":return"object"==typeof e?"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"object"==typeof e?"new String("+r(e.valueOf())+")":Lf(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var i=e.toString();if("[object Object]"!==i)return i}return"{"+o(e,yu(e)).join(", ")+"}"}}const La=mi(function(t){return Gd(t,[])});var Kd=gi(function(t,r){return qi(t+1,function(){var o=arguments[t];if(null!=o&&kc(o[r]))return o[r].apply(o,Array.prototype.slice.call(arguments,0,t));throw new TypeError(La(o)+' does not have a method named "'+r+'"')})});const ch=Kd,Bf=ch(1,"split");function ic(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return Mf(0,r+1,t)}var Yd=function(){function e(t,r){this.f=t,this.retained=[],this.xf=r}return e.prototype["@@transducer/init"]=Uc_init,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=Tc(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 Jd(e){return function(t){return new Yd(e,t)}}const cm=gi(Wd([],Jd,ic)),Uf=ch(1,"join");var Zd=mi(function(t){return qi(t.length,function(r,o){var i=Array.prototype.slice.call(arguments,0);return i[0]=o,i[1]=r,t.apply(this,i)})});const $c=Zd(gi(Eu));var dm=Mc(function(e,t){return Ys(Bf(""),cm($c(e)),Uf(""))(t)});const $f=dm;function pm(e,t,r){for(var o=r.next();!o.done;)t=e(t,o.value),o=r.next();return t}function zc(e,t,r,o){return r[o](e,t)}const zf=Zn(Bc,zc,pm);var a=function(){function e(t,r){this.xf=r,this.f=t}return e.prototype["@@transducer/init"]=Uc_init,e.prototype["@@transducer/result"]=Uc_result,e.prototype["@@transducer/step"]=function(t,r){return this.xf["@@transducer/step"](t,this.f(r))},e}(),l=function(t){return function(r){return new a(t,r)}},k=gi(Wd(["fantasy-land/map","map"],l,function(t,r){switch(Object.prototype.toString.call(r)){case"[object Function]":return qi(r.length,function(){return t.call(this,r.apply(this,arguments))});case"[object Object]":return Bc(function(o,i){return o[i]=t(r[i]),o},{},yu(r));default:return Lc(t,r)}}));const z=k;var re=gi(function(t,r){return"function"==typeof r["fantasy-land/ap"]?r["fantasy-land/ap"](t):"function"==typeof t.ap?t.ap(r):"function"==typeof t?function(o){return t(o)(r(o))}:zf(function(o,i){return function dh(e,t){var r,o=(e=e||[]).length,i=(t=t||[]).length,s=[];for(r=0;r{try{const t=new URL(e);return $f(":",t.protocol)}catch{return}},l1=(Ys(bo,uo),e=>{const t=bo(e);return"http"===t||"https"===t}),ep=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:o,search:i,hash:s}=r;return o+i+s}return r.toString()};function Dg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r"u"?"undefined":Hf(e))&&null!==e){var r;if(Hg(e))r=[];else if(y1(e))r=new Date(e.getTime?e.getTime():e);else if(E1(e))r=new RegExp(e);else if(b1(e))r={message:e.message};else if(x1(e)||S1(e)||_1(e))r=Object(e);else{if(zg(e))return e.slice();r=Object.create(Object.getPrototypeOf(e))}var o=t.includeSymbols?gm:Object.keys,i=!0,s=!1,u=void 0;try{for(var m,f=o(e)[Symbol.iterator]();!(i=(m=f.next()).done);i=!0){var S=m.value;r[S]=e[S]}}catch(T){s=!0,u=T}finally{try{!i&&null!=f.return&&f.return()}finally{if(s)throw u}}return r}return e}var Wg={includeSymbols:!1,immutable:!1};function Gg(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Wg,o=[],i=[],s=!0,u=r.includeSymbols?gm:Object.keys,f=!!r.immutable;return function m(S){var T=f?Vg(S,r):S,I={},P=!0,O={node:T,node_:S,path:[].concat(o),parent:i[i.length-1],parents:i,key:o[o.length-1],isRoot:0===o.length,level:o.length,circular:void 0,isLeaf:!1,notLeaf:!0,notRoot:!0,isFirst:!1,isLast:!1,update:function(wt){var Ot=arguments.length>1&&void 0!==arguments[1]&&arguments[1];O.isRoot||(O.parent.node[O.key]=wt),O.node=wt,Ot&&(P=!1)},delete:function(wt){delete O.parent.node[O.key],wt&&(P=!1)},remove:function(wt){Hg(O.parent.node)?O.parent.node.splice(O.key,1):delete O.parent.node[O.key],wt&&(P=!1)},keys:null,before:function(wt){I.before=wt},after:function(wt){I.after=wt},pre:function(wt){I.pre=wt},post:function(wt){I.post=wt},stop:function(){s=!1},block:function(){P=!1}};if(!s)return O;function M(){if("object"===Hf(O.node)&&null!==O.node){(!O.keys||O.node_!==O.node)&&(O.keys=u(O.node)),O.isLeaf=0===O.keys.length;for(var Ze=0;Ze1&&void 0!==arguments[1]?arguments[1]:Wg;(function d1(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),$g(this,ks),$g(this,ac),mm(this,ks,t),mm(this,ac,r)}return function p1(e,t,r){t&&Fg(e.prototype,t),r&&Fg(e,r)}(e,[{key:"get",value:function(r){for(var o=gs(this,ks),i=0;o&&i"u"?"undefined":Hf(s)))return;o=o[s]}return o}},{key:"has",value:function(r){for(var o=gs(this,ks),i=0;o&&i"u"?"undefined":Hf(s)))return!1;o=o[s]}return!0}},{key:"set",value:function(r,o){var i=gs(this,ks),s=0;for(s=0;s"u"?"undefined":Hf(u))&&null!==u){var m=Vg(u,i);r.push(u),o.push(m);var S=i.includeSymbols?gm:Object.keys,T=!0,I=!1,P=void 0;try{for(var M,O=S(u)[Symbol.iterator]();!(T=(M=O.next()).done);T=!0){var d=M.value;m[d]=s(u[d])}}catch(D){I=!0,P=D}finally{try{!T&&null!=O.return&&O.return()}finally{if(I)throw P}}return r.pop(),o.pop(),m}return u}(gs(this,ks))}}]),e}();ks=new WeakMap,ac=new WeakMap;var tu=function(e,t){return new eu(e,t)};tu.get=function(e,t,r){return new eu(e,r).get(t)},tu.set=function(e,t,r,o){return new eu(e,o).set(t,r)},tu.has=function(e,t,r){return new eu(e,r).has(t)},tu.map=function(e,t,r){return new eu(e,r).map(t)},tu.forEach=function(e,t,r){return new eu(e,r).forEach(t)},tu.reduce=function(e,t,r,o){return new eu(e,o).reduce(t,r)},tu.paths=function(e,t){return new eu(e,t).paths()},tu.nodes=function(e,t){return new eu(e,t).nodes()},tu.clone=function(e,t){return new eu(e,t).clone()};var T1=tu;const I1=["properties"],R1=["properties"],P1=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],M1=["schema/example","items/example"];function Kg(e){const t=e[e.length-1],r=e[e.length-2],o=e.join("/");return I1.indexOf(t)>-1&&-1===R1.indexOf(r)||P1.indexOf(o)>-1||M1.some(i=>o.indexOf(i)>-1)}function vm(e,t){const[r,o]=e.split("#"),i=t??"",s=r??"";let u;if(l1(i))u=ep(i,s);else{const f=ep(Ua,i),S=ep(f,s).replace(Ua,"");u=s.startsWith("/")?S:S.substring(1)}return o?`${u}#${o}`:u}const N1=/^([a-z]+:\/\/|\/\/)/i;class Wf extends Ud{}const Su={},Yg=new WeakMap,j1=[e=>"paths"===e[0]&&"responses"===e[3]&&"examples"===e[5],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"example"===e[7],e=>"paths"===e[0]&&"responses"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"requestBody"===e[3]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[2]&&"example"===e[4],e=>"paths"===e[0]&&"parameters"===e[3]&&"example"===e[5],e=>"paths"===e[0]&&"parameters"===e[2]&&"examples"===e[4]&&"value"===e[6],e=>"paths"===e[0]&&"parameters"===e[3]&&"examples"===e[5]&&"value"===e[7],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"example"===e[6],e=>"paths"===e[0]&&"parameters"===e[2]&&"content"===e[4]&&"examples"===e[6]&&"value"===e[8],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[4]&&"example"===e[7],e=>"paths"===e[0]&&"parameters"===e[3]&&"content"===e[5]&&"examples"===e[7]&&"value"===e[9]],Jg=Object.assign({key:"$ref",plugin:(e,t,r,o)=>{const i=o.getInstance(),s=r.slice(0,-1);if(Kg(s)||(e=>j1.some(t=>t(e)))(s))return;const{baseDoc:u}=o.getContext(r);if("string"!=typeof e)return new Wf("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:u,fullPath:r});const f=Zg(e),m=f[0],S=f[1]||"";let T,I,P;try{T=u||m?Xg(m,u):null}catch(d){return ym(d,{pointer:S,$ref:e,basePath:T,fullPath:r})}if(function z1(e,t,r,o){let i=Yg.get(o);i||(i={},Yg.set(o,i));const s=function U1(e){return 0===e.length?"":`/${e.map(tv).join("/")}`}(r),u=`${t||""}#${e}`,f=s.replace(/allOf\/\d+\/?/g,"");if(t===o.contextTree.get([]).baseDoc&&xm(f,e))return!0;let S="";if(r.some(I=>(S=`${S}/${tv(I)}`,i[S]&&i[S].some(P=>xm(P,u)||xm(u,P)))))return!0;i[f]=(i[f]||[]).concat(u)}(S,T,s,o)&&!i.useCircularStructures){const d=vm(e,T);return e===d?null:co.replace(r,d)}if(null==T?(P=bm(S),I=o.get(P),typeof I>"u"&&(I=new Wf(`Could not resolve reference: ${e}`,{pointer:S,$ref:e,baseDoc:u,fullPath:r}))):(I=Qg(T,S),I=null!=I.__value?I.__value:I.catch(d=>{throw ym(d,{pointer:S,$ref:e,baseDoc:u,fullPath:r})})),I instanceof Error)return[co.remove(r),I];const O=vm(e,T),M=co.replace(s,I,{$$ref:O});if(T&&T!==u)return[M,co.context(s,{baseDoc:T})];try{if(!function H1(e,t){const r=[e];return t.path.reduce((i,s)=>(r.push(i[s]),i[s]),e),function o(i){return co.isObject(i)&&(r.indexOf(i)>=0||Object.keys(i).some(s=>o(i[s])))}(t.value)}(o.state,M)||i.useCircularStructures)return M}catch{return null}}},{docCache:Su,absoluteify:Xg,clearCache:function L1(e){typeof e<"u"?delete Su[e]:Object.keys(Su).forEach(t=>{delete Su[t]})},JSONRefError:Wf,wrapError:ym,getDoc:qg,split:Zg,extractFromDoc:Qg,fetchJSON:function B1(e){return fetch(e,{headers:{Accept:Si},loadSpec:!0}).then(t=>t.text()).then(t=>Cd.load(t))},extract:Em,jsonPointerToArray:bm,unescapeJsonPointerToken:ev}),F1=Jg;function Xg(e,t){if(!N1.test(e)){if(!t)throw new Wf(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return ep(t,e)}return e}function ym(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new Wf(`Could not resolve reference: ${r}`,{...t,cause:e})}function Zg(e){return(e+"").split("#")}function Qg(e,t){const r=Su[e];if(r&&!co.isPromise(r))try{const o=Em(t,r);return Object.assign(Promise.resolve(o),{__value:o})}catch(o){return Promise.reject(o)}return qg(e).then(o=>Em(t,o))}function qg(e){const t=Su[e];return t?co.isPromise(t)?t:Promise.resolve(t):(Su[e]=Jg.fetchJSON(e).then(r=>(Su[e]=r,r)),Su[e])}function Em(e,t){const r=bm(e);if(r.length<1)return t;const o=co.getIn(t,r);if(typeof o>"u")throw new Wf(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return o}function bm(e){if("string"!=typeof e)throw new TypeError("Expected a string, got a "+typeof e);return"/"===e[0]&&(e=e.substr(1)),""===e?[]:e.split("/").map(ev)}function ev(e){return"string"!=typeof e?e:new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function tv(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const $1=e=>!e||"/"===e||"#"===e;function xm(e,t){if($1(t))return!0;const r=e.charAt(t.length),o=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==o}const V1={key:"allOf",plugin:(e,t,r,o,i)=>{if(i.meta&&i.meta.$$ref)return;const s=r.slice(0,-1);if(Kg(s))return;if(!Array.isArray(e)){const S=new TypeError("allOf must be an array");return S.fullPath=r,S}let u=!1,f=i.value;if(s.forEach(S=>{f&&(f=f[S])}),f={...f},0===Object.keys(f).length)return;delete f.allOf;const m=[];return m.push(o.replace(s,{})),e.forEach((S,T)=>{if(!o.isObject(S)){if(u)return null;u=!0;const O=new TypeError("Elements in allOf must be objects");return O.fullPath=r,m.push(O)}m.push(o.mergeDeep(s,S));const P=function k1(e,t,{specmap:r,getBaseUrlForNodePath:o=(s=>r.getContext([...t,...s]).baseDoc),targetKeys:i=["$ref","$$ref"]}={}){const s=[];return T1(e).forEach(function(){if(i.includes(this.key)&&"string"==typeof this.node){const f=this.path,m=t.concat(this.path),S=vm(this.node,o(f));s.push(r.replace(m,S))}}),s}(S,r.slice(0,-1),{getBaseUrlForNodePath:O=>o.getContext([...r,T,...O]).baseDoc,specmap:o});m.push(...P)}),f.example&&m.push(o.remove([].concat(s,"example"))),m.push(o.mergeDeep(s,f)),f.$$ref||m.push(o.remove([].concat(s,"$$ref"))),m}},W1={key:"parameters",plugin:(e,t,r,o)=>{if(Array.isArray(e)&&e.length){const i=Object.assign([],e),s=r.slice(0,-1),u={...co.getIn(o.spec,s)};for(let f=0;f{const i={...e};for(const u in e)try{i[u].default=o.modelPropertyMacro(i[u])}catch(f){const m=new Error(f);return m.fullPath=r,m}return co.replace(r,i)}};class K1{constructor(t){this.root=Sm(t||{})}set(t,r){const o=this.getParent(t,!0);if(!o)return void mh(this.root,r,null);const i=t[t.length-1],{children:s}=o;s[i]?mh(s[i],r,o):s[i]=Sm(r,o)}get(t){if((t=t||[]).length<1)return this.root.value;let o,i,r=this.root;for(let s=0;s