swagger-client 3.24.3 → 3.24.5
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/swagger-client.browser.js +1007 -344
- package/dist/swagger-client.browser.min.js +1 -1
- package/dist/swagger-client.browser.min.js.map +1 -1
- package/es/execute/index.js +1 -1
- package/es/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +62 -23
- package/es/resolver/strategies/openapi-3-1-apidom/resolve.js +1 -1
- package/lib/execute/index.js +1 -1
- package/lib/resolver/apidom/reference/dereference/strategies/openapi-3-1-swagger-client/visitors/dereference.js +61 -22
- package/lib/resolver/strategies/openapi-3-1-apidom/resolve.js +1 -1
- package/package.json +6 -5
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
/*! For license information please see swagger-client.browser.min.js.LICENSE.txt */
|
|
2
|
-
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={1924:(e,t,r)=>{"use strict";var n=r(210),s=r(5559),i=s(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?s(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),s=r(210),i=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),l=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(n,o,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},6489:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||s,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var c=e.indexOf(";",i);if(-1===c)c=e.length;else if(c<a){i=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(i,a).trim();if(void 0===r[l]){var u=e.slice(a+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=o(u,n)}i=c+1}return r},t.serialize=function(e,t,s){var o=s||{},a=o.encode||i;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!n.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function o(e,t){try{return t(e)}catch(t){return e}}},4101:(e,t,r)=>{"use strict";var n=r(8957);e.exports=n},415:(e,t,r)=>{"use strict";r(1181),r(7627),r(4415),r(6274),r(7971);var n=r(4058);e.exports=n.AggregateError},6121:(e,t,r)=>{"use strict";e.exports=r(8644)},8644:(e,t,r)=>{"use strict";r(9731);var n=r(4101);e.exports=n},4883:(e,t,r)=>{"use strict";var n=r(7475),s=r(9826),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},1851:(e,t,r)=>{"use strict";var n=r(7475),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},8479:e=>{"use strict";e.exports=function(){}},6059:(e,t,r)=>{"use strict";var n=r(941),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},1692:(e,t,r)=>{"use strict";var n=r(4529),s=r(9413),i=r(623),o=function(e){return function(t,r,o){var a,c=n(t),l=i(c),u=s(o,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},2532:(e,t,r)=>{"use strict";var n=r(5329),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9697:(e,t,r)=>{"use strict";var n=r(2885),s=r(7475),i=r(2532),o=r(9813)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},3489:(e,t,r)=>{"use strict";var n=r(953),s=r(1136),i=r(9677),o=r(5988);e.exports=function(e,t,r){for(var a=s(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},1310:(e,t,r)=>{"use strict";var n=r(5981);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3538:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2029:(e,t,r)=>{"use strict";var n=r(5746),s=r(5988),i=r(1887);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},1887:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5929:(e,t,r)=>{"use strict";var n=r(2029);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5609:(e,t,r)=>{"use strict";var n=r(1899),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5746:(e,t,r)=>{"use strict";var n=r(5981);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},1333:(e,t,r)=>{"use strict";var n=r(1899),s=r(941),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3281:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2861:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:(e,t,r)=>{"use strict";var n,s,i=r(1899),o=r(2861),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},6759:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3995:(e,t,r)=>{"use strict";var n=r(5329),s=Error,i=n("".replace),o=String(s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},9585:(e,t,r)=>{"use strict";var n=r(2029),s=r(3995),i=r(8780),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},8780:(e,t,r)=>{"use strict";var n=r(5981),s=r(1887);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},6887:(e,t,r)=>{"use strict";var n=r(1899),s=r(9730),i=r(7484),o=r(7475),a=r(9677).f,c=r(7252),l=r(4058),u=r(6843),p=r(2029),h=r(953),f=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,g,v,b,x,E=e.target,w=e.global,j=e.stat,O=e.proto,S=w?n:j?n[E]:(n[E]||{}).prototype,P=w?l:l[E]||p(l,E,{})[E],A=P.prototype;for(d in t)s=!(r=c(w?d:E+(j?".":"#")+d,e.forced))&&S&&h(S,d),g=P[d],s&&(v=e.dontCallGetSet?(x=a(S,d))&&x.value:S[d]),y=s&&v?v:t[d],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),O&&(h(l,m=E+"Prototype")||p(l,m,{}),p(l[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,y)))}},5981:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9730:(e,t,r)=>{"use strict";var n=r(8285),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},6843:(e,t,r)=>{"use strict";var n=r(7484),s=r(4883),i=r(8285),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},8285:(e,t,r)=>{"use strict";var n=r(5981);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8834:(e,t,r)=>{"use strict";var n=r(8285),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},9417:(e,t,r)=>{"use strict";var n=r(5746),s=r(953),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},5526:(e,t,r)=>{"use strict";var n=r(5329),s=r(4883);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7484:(e,t,r)=>{"use strict";var n=r(2532),s=r(5329);e.exports=function(e){if("Function"===n(e))return s(e)}},5329:(e,t,r)=>{"use strict";var n=r(8285),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},626:(e,t,r)=>{"use strict";var n=r(4058),s=r(1899),i=r(7475),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},2902:(e,t,r)=>{"use strict";var n=r(9697),s=r(4229),i=r(2119),o=r(2077),a=r(9813)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},3476:(e,t,r)=>{"use strict";var n=r(8834),s=r(4883),i=r(6059),o=r(9826),a=r(2902),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw c(o(e)+" is not iterable")}},4229:(e,t,r)=>{"use strict";var n=r(4883),s=r(2119);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},1899:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},953:(e,t,r)=>{"use strict";var n=r(5329),s=r(9678),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},7748:e=>{"use strict";e.exports={}},5463:(e,t,r)=>{"use strict";var n=r(626);e.exports=n("document","documentElement")},2840:(e,t,r)=>{"use strict";var n=r(5746),s=r(5981),i=r(1333);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:(e,t,r)=>{"use strict";var n=r(5329),s=r(5981),i=r(2532),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},926:(e,t,r)=>{"use strict";var n=r(7475),s=r(941),i=r(8929);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},3794:(e,t,r)=>{"use strict";var n=r(941),s=r(2029);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},5402:(e,t,r)=>{"use strict";var n,s,i,o=r(7093),a=r(1899),c=r(941),l=r(2029),u=r(953),p=r(3030),h=r(4262),f=r(7748),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw d(m);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");f[v]=!0,n=function(e,t){if(u(e,v))throw d(m);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},6782:(e,t,r)=>{"use strict";var n=r(9813),s=r(2077),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},7475:(e,t,r)=>{"use strict";var n=r(6616),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},7252:(e,t,r)=>{"use strict";var n=r(5981),s=r(7475),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===u||r!==l&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},2119:e=>{"use strict";e.exports=function(e){return null==e}},941:(e,t,r)=>{"use strict";var n=r(7475),s=r(6616),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},2529:e=>{"use strict";e.exports=!0},6664:(e,t,r)=>{"use strict";var n=r(626),s=r(7475),i=r(7046),o=r(2302),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},3091:(e,t,r)=>{"use strict";var n=r(6843),s=r(8834),i=r(6059),o=r(9826),a=r(6782),c=r(623),l=r(7046),u=r(3476),p=r(2902),h=r(7609),f=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,g,v,b,x,E,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=n(t,j),k=function(e){return y&&h(y,"normal",e),new m(!0,e)},T=function(e){return O?(i(e),A?$(e[0],e[1],k):$(e[0],e[1])):A?$(e,k):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw f(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=T(e[v]))&&l(d,x))return x;return new m(!1)}y=u(e,g)}for(E=S?e.next:y.next;!(w=s(E,y)).done;){try{x=T(w.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(d,x))return x}return new m(!1)}},7609:(e,t,r)=>{"use strict";var n=r(8834),s=r(6059),i=r(4229);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},3847:(e,t,r)=>{"use strict";var n=r(5143).IteratorPrototype,s=r(9290),i=r(1887),o=r(904),a=r(2077),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},5105:(e,t,r)=>{"use strict";var n=r(6887),s=r(8834),i=r(2529),o=r(9417),a=r(7475),c=r(3847),l=r(249),u=r(8929),p=r(904),h=r(2029),f=r(5929),m=r(9813),d=r(2077),y=r(5143),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,P){c(r,t,o);var A,$,k,T=function(e){if(e===m&&F)return F;if(!x&&e&&e in R)return R[e];switch(e){case w:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},C=t+" Iterator",M=!1,R=e.prototype,I=R[E]||R["@@iterator"]||m&&R[m],F=!x&&I||T(m),_="Array"===t&&R.entries||I;if(_&&(A=l(_.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[E])||f(A,E,S)),p(A,C,!0,!0),i&&(d[C]=S)),g&&m===j&&I&&I.name!==j&&(!i&&v?h(R,"name",j):(M=!0,F=function(){return s(I,this)})),m)if($={values:T(j),keys:y?F:T(w),entries:T(O)},P)for(k in $)(x||M||!(k in R))&&f(R,k,$[k]);else n({target:t,proto:!0,forced:x||M},$);return i&&!P||R[E]===F||f(R,E,F,{name:m}),d[t]=F,$}},5143:(e,t,r)=>{"use strict";var n,s,i,o=r(5981),a=r(7475),c=r(941),l=r(9290),u=r(249),p=r(5929),h=r(9813),f=r(2529),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2077:e=>{"use strict";e.exports={}},623:(e,t,r)=>{"use strict";var n=r(3057);e.exports=function(e){return n(e.length)}},5331:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4649:(e,t,r)=>{"use strict";var n=r(5803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9290:(e,t,r)=>{"use strict";var n,s=r(6059),i=r(9938),o=r(6759),a=r(7748),c=r(5463),l=r(1333),u=r(4262),p="prototype",h="script",f=u("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=s(e),r=new m,m[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},9938:(e,t,r)=>{"use strict";var n=r(5746),s=r(3937),i=r(5988),o=r(6059),a=r(4529),c=r(4771);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),l=s.length,u=0;l>u;)i.f(e,r=s[u++],n[r]);return e}},5988:(e,t,r)=>{"use strict";var n=r(5746),s=r(2840),i=r(3937),o=r(6059),a=r(3894),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9677:(e,t,r)=>{"use strict";var n=r(5746),s=r(8834),i=r(6760),o=r(1887),a=r(4529),c=r(3894),l=r(953),u=r(2840),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},946:(e,t,r)=>{"use strict";var n=r(5629),s=r(6759).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7857:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},249:(e,t,r)=>{"use strict";var n=r(953),s=r(7475),i=r(9678),o=r(4262),a=r(1310),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},7046:(e,t,r)=>{"use strict";var n=r(5329);e.exports=n({}.isPrototypeOf)},5629:(e,t,r)=>{"use strict";var n=r(5329),s=r(953),i=r(4529),o=r(1692).indexOf,a=r(7748),c=n([].push);e.exports=function(e,t){var r,n=i(e),l=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&c(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},4771:(e,t,r)=>{"use strict";var n=r(5629),s=r(6759);e.exports=Object.keys||function(e){return n(e,s)}},6760:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8929:(e,t,r)=>{"use strict";var n=r(5526),s=r(6059),i=r(1851);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},5623:(e,t,r)=>{"use strict";var n=r(2885),s=r(9697);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9811:(e,t,r)=>{"use strict";var n=r(8834),s=r(7475),i=r(941),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},1136:(e,t,r)=>{"use strict";var n=r(626),s=r(5329),i=r(946),o=r(7857),a=r(6059),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},4058:e=>{"use strict";e.exports={}},9056:(e,t,r)=>{"use strict";var n=r(5988).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},7962:(e,t,r)=>{"use strict";var n=r(2119),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},904:(e,t,r)=>{"use strict";var n=r(2885),s=r(5988).f,i=r(2029),o=r(953),a=r(5623),c=r(9813)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,c)||s(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",a)}}},4262:(e,t,r)=>{"use strict";var n=r(8726),s=r(9418),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3030:(e,t,r)=>{"use strict";var n=r(1899),s=r(5609),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8726:(e,t,r)=>{"use strict";var n=r(2529),s=r(3030);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4620:(e,t,r)=>{"use strict";var n=r(5329),s=r(2435),i=r(5803),o=r(7962),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=i(o(t)),h=s(r),f=p.length;return h<0||h>=f?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===f||(u=c(p,h+1))<56320||u>57343?e?a(p,h):n:e?l(p,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},3405:(e,t,r)=>{"use strict";var n=r(3385),s=r(5981),i=r(1899).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9413:(e,t,r)=>{"use strict";var n=r(2435),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4529:(e,t,r)=>{"use strict";var n=r(7026),s=r(7962);e.exports=function(e){return n(s(e))}},2435:(e,t,r)=>{"use strict";var n=r(5331);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3057:(e,t,r)=>{"use strict";var n=r(2435),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},9678:(e,t,r)=>{"use strict";var n=r(7962),s=Object;e.exports=function(e){return s(n(e))}},6935:(e,t,r)=>{"use strict";var n=r(8834),s=r(941),i=r(6664),o=r(4229),a=r(9811),c=r(9813),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},3894:(e,t,r)=>{"use strict";var n=r(6935),s=r(6664);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},2885:(e,t,r)=>{"use strict";var n={};n[r(9813)("toStringTag")]="z",e.exports="[object z]"===String(n)},5803:(e,t,r)=>{"use strict";var n=r(9697),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9826:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9418:(e,t,r)=>{"use strict";var n=r(5329),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},2302:(e,t,r)=>{"use strict";var n=r(3405);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(e,t,r)=>{"use strict";var n=r(5746),s=r(5981);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7093:(e,t,r)=>{"use strict";var n=r(1899),s=r(7475),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},9813:(e,t,r)=>{"use strict";var n=r(1899),s=r(8726),i=r(953),o=r(9418),a=r(3405),c=r(2302),l=n.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},2864:(e,t,r)=>{"use strict";var n=r(626),s=r(953),i=r(2029),o=r(7046),a=r(8929),c=r(3489),l=r(9056),u=r(926),p=r(4649),h=r(3794),f=r(9585),m=r(5746),d=r(2529);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],E=n.apply(null,b);if(E){var w=E.prototype;if(!d&&s(w,"cause")&&delete w.cause,!r)return E;var j=n("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),n=y?new E(e):new E;return void 0!==r&&i(n,"message",r),f(n,O,n.stack,2),this&&o(w,this)&&u(n,this,O),arguments.length>v&&h(n,arguments[v]),n}));if(O.prototype=w,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):m&&g in E&&(l(O,E,g),l(O,E,"prepareStackTrace")),c(O,E),!d)try{w.name!==x&&i(w,"name",x),w.constructor=O}catch(e){}return O}}},4415:(e,t,r)=>{"use strict";var n=r(6887),s=r(626),i=r(9730),o=r(5981),a=r(2864),c="AggregateError",l=s(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},9812:(e,t,r)=>{"use strict";var n=r(6887),s=r(7046),i=r(249),o=r(8929),a=r(3489),c=r(9290),l=r(2029),u=r(1887),p=r(3794),h=r(9585),f=r(3091),m=r(4649),d=r(9813)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,n=s(b,this);o?r=o(y(),n?i(this):b):(r=n?this:c(b),l(r,d,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return f(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},7627:(e,t,r)=>{"use strict";r(9812)},6274:(e,t,r)=>{"use strict";var n=r(4529),s=r(8479),i=r(2077),o=r(5402),a=r(5988).f,c=r(5105),l=r(3538),u=r(2529),p=r(5746),h="Array Iterator",f=o.set,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(r){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},1181:(e,t,r)=>{"use strict";var n=r(6887),s=r(1899),i=r(9730),o=r(2864),a="WebAssembly",c=s[a],l=7!==Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),n({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},7971:(e,t,r)=>{"use strict";var n=r(4620).charAt,s=r(5803),i=r(5402),o=r(5105),a=r(3538),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},9731:(e,t,r)=>{"use strict";r(7627)},7634:(e,t,r)=>{"use strict";r(6274);var n=r(3281),s=r(1899),i=r(9697),o=r(2029),a=r(2077),c=r(9813)("toStringTag");for(var l in n){var u=s[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},8957:(e,t,r)=>{"use strict";r(9731);var n=r(415);r(7634),e.exports=n},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function s(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var s={};return r.isMergeableObject(e)&&i(e).forEach((function(t){s[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):s[i]=n(t[i],r))})),s}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||s,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):n(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},7648:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r};e.exports=function(e){var s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var i,o=function(e,t){for(var r=[],n=t||0,s=0;n<e.length;n+=1,s+=1)r[s]=e[n];return r}(arguments,1),a=r(0,s.length-o.length),c=[],l=0;l<a;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=s.apply(this,n(o,arguments));return Object(t)===t?t:this}return s.apply(e,n(o,arguments))})),s.prototype){var u=function(){};u.prototype=s.prototype,i.prototype=new u,u.prototype=null}return i}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,s=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=r(1405)(),h=r(8185)(),f=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),m={},d="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&f&&(r=f(s.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(8612),E=r(7642),w=x.call(Function.call,Array.prototype.concat),j=x.call(Function.apply,Array.prototype.splice),O=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),P=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,k=function(e,t){var r,n=e;if(E(b,n)&&(n="%"+(r=b[n])[0]+"%"),E(y,n)){var i=y[n];if(i===m&&(i=v(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,A,(function(e,t,r,s){n[n.length]=r?O(s,$,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=k("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],j(r,w([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var m=r[h],d=S(m,0,1),g=S(m,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),E(y,a="%"+(n+="."+m)+"%"))l=y[a];else if(null!=l){if(!(m in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(l,m);l=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[m]}else f=E(l,m),l=l[m];f&&!u&&(y[a]=l)}}return l}},8185:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),s=r(401),i=r(7667),o=r(1327),a=r(1866);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8407:(e,t,r)=>{var n=r(7040),s=r(4125),i=r(2117),o=r(7518),a=r(4705);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),s=r(1285),i=r(6e3),o=r(9916),a=r(5265);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},3818:(e,t,r)=>{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),s=r(619),i=r(2385);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6384:(e,t,r)=>{var n=r(8407),s=r(7465),i=r(3779),o=r(7599),a=r(4758),c=r(4309);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},4636:(e,t,r)=>{var n=r(2545),s=r(5694),i=r(1469),o=r(4144),a=r(5776),c=r(6719),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&s(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),f=r||u||p||h,m=f?n(e.length,String):[],d=m.length;for(var y in e)!t&&!l.call(e,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,d))||m.push(y);return m}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},2908:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8866:(e,t,r)=>{var n=r(2488),s=r(1469);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},4239:(e,t,r)=>{var n=r(2705),s=r(9607),i=r(2333),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},9454:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),s=r(7005);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},2492:(e,t,r)=>{var n=r(6384),s=r(7114),i=r(8351),o=r(6096),a=r(4160),c=r(1469),l=r(4144),u=r(6719),p="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,g){var v=c(e),b=c(t),x=v?h:a(e),E=b?h:a(t),w=(x=x==p?f:x)==f,j=(E=E==p?f:E)==f,O=x==E;if(O&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(O&&!w)return g||(g=new n),v||u(e)?s(e,t,r,d,y,g):i(e,t,x,r,d,y,g);if(!(1&r)){var S=w&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new n),y(A,$,r,d,g)}}return!!O&&(g||(g=new n),o(e,t,r,d,y,g))}},8458:(e,t,r)=>{var n=r(3560),s=r(5346),i=r(3218),o=r(346),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:a).test(o(e))}},8749:(e,t,r)=>{var n=r(4239),s=r(1780),i=r(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},280:(e,t,r)=>{var n=r(5726),s=r(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},7114:(e,t,r)=>{var n=r(8668),s=r(2908),i=r(4757);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),f=c.get(t);if(h&&f)return h==t&&f==e;var m=-1,d=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8351:(e,t,r)=>{var n=r(2705),s=r(1149),i=r(7813),o=r(7114),a=r(8776),c=r(1814),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var m=1&n;if(f||(f=c),e.size!=t.size&&!m)return!1;var d=h.get(e);if(d)return d==t;n|=2,h.set(e,t);var y=o(f(e),f(t),n,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:s.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(d=!1)}return a.delete(e),a.delete(t),d}},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),s=r(9551),i=r(3674);e.exports=function(e){return n(e,i,s)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),s=r(7801);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},9551:(e,t,r)=>{var n=r(4963),s=r(479),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},4160:(e,t,r)=>{var n=r(8552),s=r(7071),i=r(3818),o=r(8525),a=r(577),c=r(4239),l=r(346),u="[object Map]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",d=l(n),y=l(s),g=l(i),v=l(o),b=l(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||s&&x(new s)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=f)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case d:return m;case y:return u;case g:return p;case v:return h;case b:return f}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,s=r(4429),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),s=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5639:(e,t,r)=>{var n=r(1957),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),s=r(7071),i=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,r)=>{var n=r(9454),s=r(7005),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},1469:e=>{var t=Array.isArray;e.exports=t},1240:(e,t,r)=>{var n=r(3560),s=r(1780);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},1584:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),s=r(5062),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},3560:(e,t,r)=>{var n=r(4239),s=r(3218);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5220:e=>{e.exports=function(e){return null===e}},1763:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7037:(e,t,r)=>{var n=r(4239),s=r(1469),i=r(7005);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),s=r(1717),i=r(1167),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},3674:(e,t,r)=>{var n=r(4636),s=r(280),i=r(1240);e.exports=function(e){return i(e)?n(e):s(e)}},4885:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},2566:(e,t,r)=>{const n=r(4885);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},7645:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},8520:(e,t,r)=>{const n=r(5220),s=r(7037),i=r(1763),o=r(1584),a=r(3218),c=r(8219),l=r(9829);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},7526:(e,t,r)=>{const n=r(4885),s=r(2566);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},9829:(e,t,r)=>{const n=r(3079),s=r(6295),i=r(6036),o=r(1090),a=r(9371),c=r(5804),l=r(5946),u=r(6735),p=r(9964),h=r(8588),f=r(2566),m=r(7526),d=r(7645);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=h,n.prototype.MemberElement=l,n.prototype.refract=y,f.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:f,ObjectSlice:m,KeyValuePair:d}},9964:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},8588:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},3500:(e,t,r)=>{const n=r(8520),s=r(9829);t.lS=n,t.KeyValuePair=r(7645),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(8219),r(3414)},5804:(e,t,r)=>{const n=r(4885),s=r(3079),i=r(2566);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9371:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},3079:(e,t,r)=>{const n=r(8446),s=r(7645),i=r(2566);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},5946:(e,t,r)=>{const n=r(7645),s=r(3079);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},6295:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},1090:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},6735:(e,t,r)=>{const n=r(4885),s=r(3218),i=r(5804),o=r(5946),a=r(7526);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},6036:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3414:(e,t,r)=>{const n=r(8219);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},8219:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&s&&"function"==typeof s.get?s.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,d=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,E=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,k="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,T="function"==typeof Symbol&&"object"==typeof Symbol.iterator,C="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===T||"symbol")?Symbol.toStringTag:null,M=Object.prototype.propertyIsEnumerable,R=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function I(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var s=String(n),i=v.call(t,s.length+1);return b.call(s,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var F=r(4654),_=F.custom,N=U(_)?_:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return b.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==H(e)||C&&"object"==typeof e&&C in e)}function B(e){return!("[object RegExp]"!==H(e)||C&&"object"==typeof e&&C in e)}function U(e){if(T)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!k)return!1;try{return k.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,s){var a=r||{};if(z(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return d?I(t,x):x}if("bigint"==typeof t){var w=String(t)+"n";return d?I(t,w):w}var P=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var $=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(J(s,t)>=0)return"[Circular]";function _(t,r,i){if(r&&(s=S.call(s)).push(r),i){var o={depth:a.depth};return z(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,s)}return e(t,a,n+1,s)}if("function"==typeof t&&!B(t)){var V=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),W=Z(t,_);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(W.length>0?" { "+O.call(W,", ")+" }":"")}if(U(t)){var ee=T?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):k.call(t);return"object"!=typeof t||T?ee:K(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+E.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+D(q(re[ne].value),"double",a);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+E.call(String(t.nodeName))+">"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,_);return $&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)){var ie=Z(t,_);return"cause"in Error.prototype||!("cause"in t)||M.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+_(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(N&&"function"==typeof t[N]&&F)return F(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(_(r,t,!0)+" => "+_(e,t))})),X("Map",i.call(t),oe,$)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u&&u.call(t,(function(e){ae.push(_(e,t))})),X("Set",l.call(t),ae,$)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(_(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return K(_(A.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==H(e)||C&&"object"==typeof e&&C in e)}(t))return K(_(String(t)));if(!function(e){return!("[object Date]"!==H(e)||C&&"object"==typeof e&&C in e)}(t)&&!B(t)){var ce=Z(t,_),le=R?R(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!le&&C&&Object(t)===t&&C in t?v.call(H(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+O.call(j.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+Q(ce,$)+"}":he+"{ "+O.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function H(e){return d.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return D(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=L(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=z(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(T){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||T&&i["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof $)for(var l=0;l<o.length;l++)M.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}},4155:e=>{var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||l||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:s}},129:(e,t,r)=>{"use strict";var n=r(8261),s=r(5235),i=r(5798);e.exports={formats:i,parse:s,stringify:n}},5235:(e,t,r)=>{"use strict";var n=r(2769),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!r.plainObjects&&s.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var d,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=t.decoder(g,o.decoder,m,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(g.slice(0,b),o.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(l,d)?l[d]=n.combine(l[d],y):l[d]=y}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var m=h[f],d=l(m,u[m],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},8261:(e,t,r)=>{"use strict";var n=r(7478),s=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,h=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},m={},d=function e(t,r,i,o,a,l,p,h,d,y,g,v,b,x,E,w){for(var j,O=t,S=w,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var $=S.get(t);if(P+=1,void 0!==$){if($===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=g(O):"comma"===i&&c(O)&&(O=s.maybeMap(O,(function(e){return e instanceof Date?g(e):e}))),null===O){if(a)return p&&!x?p(r,f.encoder,E,"key",v):r;O=""}if("string"==typeof(j=O)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||s.isBuffer(O))return p?[b(x?r:p(r,f.encoder,E,"key",v))+"="+b(p(O,f.encoder,E,"value",v))]:[b(r)+"="+b(String(O))];var k,T=[];if(void 0===O)return T;if("comma"===i&&c(O))x&&p&&(O=s.maybeMap(O,p)),k=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(h))k=h;else{var C=Object.keys(O);k=d?C.sort(d):C}for(var M=o&&c(O)&&1===O.length?r+"[]":r,R=0;R<k.length;++R){var I=k[R],F="object"==typeof I&&void 0!==I.value?I.value:O[I];if(!l||null!==F){var _=c(O)?"function"==typeof i?i(M,I):M:M+(y?"."+I:"["+I+"]");w.set(t,P);var N=n();N.set(m,w),u(T,e(F,_,i,o,a,l,"comma"===i&&x&&c(O)?null:p,h,d,y,g,v,b,x,E,N))}}return T};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=f.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?s=(0,l.filter)("",s):c(l.filter)&&(r=l.filter);var p,h=[];if("object"!=typeof s||null===s)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===m&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var g=n(),v=0;v<r.length;++v){var b=r[v];l.skipNulls&&null===s[b]||u(h,d(s[b],b,m,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var x=h.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),x.length>0?E+x:""}},2769:(e,t,r)=>{"use strict";var n=r(5798),s=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},7478:(e,t,r)=>{"use strict";var n=r(210),s=r(1924),i=r(631),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=s("WeakMap.prototype.get",!0),u=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),h=s("Map.prototype.get",!0),f=s("Map.prototype.set",!0),m=s("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=d(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return m(t,n)}else if(r)return function(e,t){return!!d(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,s)):c?(t||(t=new c),f(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},3992:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",f="deepConfiguration",m="deepProps",d="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",x="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=w.bind(0,(function(e,t){if(t)for(var r=E(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function O(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||O(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var s,i,o=E(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(P(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return O(e)&&r.indexOf(e)===t}))).length?r:t}function k(e,t){function n(r,n){S(t[r])&&(S(e[r])||(e[r]={}),(n||j)(e[r],t[r]))}function s(n){(r=$(e[n],t[n]))&&(e[n]=r)}return t&&S(t=t[x]||t)&&(n(v),n(o),n(a,A),n(c),n(l),n(u,A),n(p),n(h),n(f,A),s(g),s(b)),e}function T(){return function(e){return r=function e(r){var n,s,i=e[x]||{},l={__proto__:i[v]},u=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&A(l,h),(h=i[o])&&j(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)O(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&A(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=O(r[x])?r[x]:T,j(r[x]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(k,{}))}function C(e){return O(e)&&O(e[x])}var M={};function R(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[x]||n).call(r,s)}}M[v]=R(v,j),M[o]=M.props=R(o,j),M[g]=M.init=R(g,$),M[b]=R(b,$),M[a]=M[m]=R(a,A),M[l]=M.statics=R(l,j),M[u]=M[d]=R(u,A),M[h]=M.conf=R(h,j),M[f]=M[y]=R(f,A),M[c]=R(c,j),M[p]=R(p,j),n=M[x]=j((function(){for(var e,E,w=0,O=[],P=arguments,k=this;w<P.length;)S(e=P[w++])&&O.push(C(e)?e:((s={})[v]=(E=e)[v]||t,n=E.props,s[o]=S((r=E[o])||n)?j({},n,r):t,s[g]=$(E.init,E[g]),s[b]=$(E[b]),n=E[m],s[a]=S((r=E[a])||n)?A({},n,r):t,s[c]=E[c],n=E.statics,s[l]=S((r=E[l])||n)?j({},n,r):t,n=E[d],s[u]=S((r=E[u])||n)?A({},n,r):t,r=E[p],s[p]=S((n=E.name&&{name:{value:E.name}})||r)?j({},r,n):t,n=E.conf,s[h]=S((r=E[h])||n)?j({},n,r):t,n=E[y],s[f]=S((r=E[f])||n)?A({},n,r):t,s));if(e=T.apply(k||i,O),k&&O.unshift(k),Array.isArray(P=e[x][b]))for(w=0;w<P.length;)e=C(k=P[w++]({stamp:e,composables:O}))?k:e;return e}),M),M.create=function(){return this.apply(t,arguments)},(s={})[l]=M,i=T(s),n[x]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=Object.prototype.hasOwnProperty||function(e,t){return t in e};function o(e){if("object"==typeof e&&null!==e){var i;if(r(e))i=[];else if("[object Date]"===t(e))i=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))i=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))i={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))i=Object(e);else if(Object.create&&Object.getPrototypeOf)i=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)i={};else{var o=e.constructor&&e.constructor.prototype||e.__proto__||{},a=function(){};a.prototype=o,i=new a}return n(s(e),(function(t){i[t]=e[t]})),i}return e}function a(e,t,a){var c=[],l=[],u=!0;return function e(p){var h=a?o(p):p,f={},m=!0,d={node:h,node_:p,path:[].concat(c),parent:l[l.length-1],parents:l,key:c[c.length-1],isRoot:0===c.length,level:c.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(m=!1)},delete:function(e){delete d.parent.node[d.key],e&&(m=!1)},remove:function(e){r(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(m=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return d;function y(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=s(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<l.length;e++)if(l[e].node_===p){d.circular=l[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}y();var g=t.call(d,d.node);return void 0!==g&&d.update&&d.update(g),f.before&&f.before.call(d,d.node),m?("object"!=typeof d.node||null===d.node||d.circular||(l.push(d),y(),n(d.keys,(function(t,r){c.push(t),f.pre&&f.pre.call(d,d.node[t],t);var n=e(d.node[t]);a&&i.call(d.node,t)&&(d.node[t]=n.node),n.isLast=r===d.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(d,n),c.pop()})),l.pop()),f.after&&f.after.call(d,d.node),d):d}(e).node}function c(e){this.value=e}function l(e){return new c(e)}c.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return;t=t[n]}return t},c.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return!1;t=t[n]}return!0},c.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];i.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},c.prototype.map=function(e){return a(this.value,e,!0)},c.prototype.forEach=function(e){return this.value=a(this.value,e,!1),this.value},c.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},c.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},c.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},c.prototype.clone=function(){var e=[],t=[];return function r(i){for(var a=0;a<e.length;a++)if(e[a]===i)return t[a];if("object"==typeof i&&null!==i){var c=o(i);return e.push(i),t.push(c),n(s(i),(function(e){c[e]=r(i[e])})),e.pop(),t.pop(),c}return i}(this.value)},n(s(c.prototype),(function(e){l[e]=function(t){var r=[].slice.call(arguments,1),n=new c(t);return n[e].apply(n,r)}})),e.exports=l},4654:()=>{},538:(e,t,r)=>{e.exports=r(6121)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>hO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Zr,_areEquals:()=>un,applyOperation:()=>sn,applyPatch:()=>on,applyReducer:()=>an,deepClone:()=>en,getValueByPointer:()=>nn,validate:()=>ln,validator:()=>cn});var t={};r.r(t),r.d(t,{compare:()=>vn,generate:()=>yn,observe:()=>dn,unobserve:()=>mn});var s={};r.r(s),r.d(s,{Vj:()=>da,RT:()=>la,XR:()=>fa,fO:()=>ua,isHttpUrl:()=>pa,DB:()=>ya,Nw:()=>ga,Ep:()=>ma,UE:()=>va});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Xc,includesClasses:()=>Zc,includesSymbols:()=>Qc,isAnnotationElement:()=>Jc,isArrayElement:()=>Uc,isBooleanElement:()=>Lc,isCommentElement:()=>Gc,isElement:()=>_c,isLinkElement:()=>zc,isMemberElement:()=>Vc,isNullElement:()=>qc,isNumberElement:()=>Dc,isObjectElement:()=>Bc,isParseResultElement:()=>Wc,isPrimitiveElement:()=>Yc,isRefElement:()=>Hc,isSourceMapElement:()=>Kc,isStringElement:()=>Nc});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>$h,isJSONSchemaElement:()=>Ah,isLinkDescriptionElement:()=>Th,isMediaElement:()=>kh});var a={};r.r(a),r.d(a,{isOpenApi3_0LikeElement:()=>Zh,isOpenApiExtension:()=>af,isParameterLikeElement:()=>ef,isReferenceLikeElement:()=>tf,isRequestBodyLikeElement:()=>rf,isResponseLikeElement:()=>nf,isServerLikeElement:()=>sf,isTagLikeElement:()=>of});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>bm,isCallbackElement:()=>Yf,isComponentsElement:()=>Xf,isContactElement:()=>Qf,isExampleElement:()=>Zf,isExternalDocumentationElement:()=>em,isHeaderElement:()=>tm,isInfoElement:()=>rm,isLicenseElement:()=>nm,isLinkElement:()=>sm,isLinkElementExternal:()=>im,isMediaTypeElement:()=>jm,isOpenApi3_0Element:()=>am,isOpenapiElement:()=>om,isOperationElement:()=>cm,isParameterElement:()=>lm,isPathItemElement:()=>um,isPathItemElementExternal:()=>pm,isPathsElement:()=>hm,isReferenceElement:()=>fm,isReferenceElementExternal:()=>mm,isRequestBodyElement:()=>dm,isResponseElement:()=>ym,isResponsesElement:()=>gm,isSchemaElement:()=>vm,isSecurityRequirementElement:()=>xm,isServerElement:()=>Em,isServerVariableElement:()=>wm});var l={};r.r(l),r.d(l,{isBooleanJsonSchemaElement:()=>Qb,isCallbackElement:()=>$b,isComponentsElement:()=>kb,isContactElement:()=>Tb,isExampleElement:()=>Cb,isExternalDocumentationElement:()=>Mb,isHeaderElement:()=>Rb,isInfoElement:()=>Ib,isJsonSchemaDialectElement:()=>Fb,isLicenseElement:()=>_b,isLinkElement:()=>Nb,isLinkElementExternal:()=>Db,isMediaTypeElement:()=>rx,isOpenApi3_1Element:()=>Lb,isOpenapiElement:()=>qb,isOperationElement:()=>Bb,isParameterElement:()=>Ub,isPathItemElement:()=>Vb,isPathItemElementExternal:()=>zb,isPathsElement:()=>Hb,isReferenceElement:()=>Jb,isReferenceElementExternal:()=>Gb,isRequestBodyElement:()=>Wb,isResponseElement:()=>Kb,isResponsesElement:()=>Yb,isSchemaElement:()=>Xb,isSecurityRequirementElement:()=>Zb,isServerElement:()=>ex,isServerVariableElement:()=>tx});var u={};r.r(u),r.d(u,{cookie:()=>Jj,header:()=>Hj,path:()=>Uj,query:()=>Vj});const p="application/json, application/yaml",h="https://swagger.io",f=Object.freeze({url:"/"});var m=r(129),d=r.n(m);function y(e){return null==e}var g=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},v={isNothing:y,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:y(e)?[]:[e]},repeat:g,isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,s,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[s=i[r]]=t[s];return e}};function b(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function x(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=b(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x.prototype.toString=function(e){return this.name+": "+b(this,e)};var E=x;function w(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function j(e,t){return v.repeat(" ",t-e.length)+e}var O=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=w(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=v.repeat(" ",t.indent)+j((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=w(e.buffer,s[o],i[o],e.position,p),l+=v.repeat(" ",t.indent)+j((e.line+1).toString(),u)+" | "+c.str+"\n",l+=v.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=w(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=v.repeat(" ",t.indent)+j((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},S=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],P=["scalar","sequence","mapping"];var A=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===S.indexOf(t))throw new E('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===P.indexOf(this.kind))throw new E('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function $(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function k(e){return this.extend(e)}k.prototype.extend=function(e){var t=[],r=[];if(e instanceof A)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new E("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof A))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new E("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new E("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof A))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(k.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=$(n,"implicit"),n.compiledExplicit=$(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var T=k,C=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),M=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),R=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),I=new T({explicit:[C,M,R]});var F=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var _=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function N(e){return 48<=e&&e<=55}function D(e){return 48<=e&&e<=57}var q=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,s=0,i=!1;if(!n)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===n)return!0;if("b"===(t=e[++s])){for(s++;s<n;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!(48<=(r=e.charCodeAt(s))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!N(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!D(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!v.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),L=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var B=/^[-+]?[0-9]+e/;var U=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!L.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||v.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(v.isNegativeZero(e))return"-0.0";return r=e.toString(10),B.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),V=I.extend({implicit:[F,_,q,U]}),z=V,H=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),J=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var G=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==H.exec(e)||null!==J.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=H.exec(e))&&(t=J.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,s,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var W=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Y=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=K;for(r=0;r<s;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,i=K,o=0,a=[];for(t=0;t<s;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=s%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=K;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]),s=(s<<8)+e[t];return 0===(r=i%3)?(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]):2===r?(n+=o[s>>10&63],n+=o[s>>4&63],n+=o[s<<2&63],n+=o[64]):1===r&&(n+=o[s>>2&63],n+=o[s<<4&63],n+=o[64],n+=o[64]),n}}),X=Object.prototype.hasOwnProperty,Q=Object.prototype.toString;var Z=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(n=a[t],i=!1,"[object Object]"!==Q.call(n))return!1;for(s in n)if(X.call(n,s)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(s))return!1;o.push(s)}return!0},construct:function(e){return null!==e?e:[]}}),ee=Object.prototype.toString;var te=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==ee.call(n))return!1;if(1!==(s=Object.keys(n)).length)return!1;i[t]=[s[0],n[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],s=Object.keys(n),i[t]=[s[0],n[s[0]]];return i}}),re=Object.prototype.hasOwnProperty;var ne=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(re.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),se=z.extend({implicit:[G,W],explicit:[Y,Z,te,ne]}),ie=Object.prototype.hasOwnProperty,oe=1,ae=2,ce=3,le=4,ue=1,pe=2,he=3,fe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=/[\x85\u2028\u2029]/,de=/[,\[\]\{\}]/,ye=/^(?:!|!!|![a-z\-]+!)$/i,ge=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ve(e){return Object.prototype.toString.call(e)}function be(e){return 10===e||13===e}function xe(e){return 9===e||32===e}function Ee(e){return 9===e||32===e||10===e||13===e}function we(e){return 44===e||91===e||93===e||123===e||125===e}function je(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Oe(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Se(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Pe=new Array(256),Ae=new Array(256),$e=0;$e<256;$e++)Pe[$e]=Oe($e)?1:0,Ae[$e]=Oe($e);function ke(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||se,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function Te(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=O(r),new E(t,r)}function Ce(e,t){throw Te(e,t)}function Me(e,t){e.onWarning&&e.onWarning.call(null,Te(e,t))}var Re={YAML:function(e,t,r){var n,s,i;null!==e.version&&Ce(e,"duplication of %YAML directive"),1!==r.length&&Ce(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Ce(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Ce(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Me(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Ce(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],ye.test(n)||Ce(e,"ill-formed tag handle (first argument) of the TAG directive"),ie.call(e.tagMap,n)&&Ce(e,'there is a previously declared suffix for "'+n+'" tag handle'),ge.test(s)||Ce(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Ce(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Ie(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||Ce(e,"expected valid JSON character");else fe.test(a)&&Ce(e,"the stream contains non-printable characters");e.result+=a}}function Fe(e,t,r,n){var s,i,o,a;for(v.isObject(r)||Ce(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(s=Object.keys(r)).length;o<a;o+=1)i=s[o],ie.call(t,i)||(t[i]=r[i],n[i]=!0)}function _e(e,t,r,n,s,i,o,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&Ce(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===ve(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===ve(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Fe(e,t,i[l],r);else Fe(e,t,i,r);else e.json||ie.call(r,s)||!ie.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Ce(e,"duplicated mapping key")),"__proto__"===s?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete r[s];return t}function Ne(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Ce(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function De(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;xe(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!be(s))break;for(Ne(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&Me(e,"deficient indentation"),n}function qe(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Ee(t)))}function Le(e,t){1===t?e.result+=" ":t>1&&(e.result+=v.repeat("\n",t-1))}function Be(e,t){var r,n,s=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Ce(e,"tab characters must not be used in indentation")),45===n)&&Ee(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,De(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,ze(e,t,ce,!1,!0),o.push(e.result),De(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Ce(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function Ue(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Ce(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(o=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Ce(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!Ee(s);)33===s&&(o?Ce(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),ye.test(r)||Ce(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),de.test(n)&&Ce(e,"tag suffix cannot contain flow indicator characters")}n&&!ge.test(n)&&Ce(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Ce(e,"tag name is malformed: "+n)}return i?e.tag=n:ie.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Ce(e,'undeclared tag handle "'+r+'"'),!0}function Ve(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Ce(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Ee(r)&&!we(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Ce(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ze(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,m=1,d=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=le===r||ce===r,n&&De(e,!0,-1)&&(d=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Ue(e)||Ve(e);)De(e,!0,-1)?(d=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=d||s),1!==m&&le!==r||(h=oe===r||ae===r?t:t+1,f=e.position-e.lineStart,1===m?a&&(Be(e,f)||function(e,t,r){var n,s,i,o,a,c,l,u=e.tag,p=e.anchor,h={},f=Object.create(null),m=null,d=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Ce(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Ee(n)){if(o=e.line,a=e.lineStart,c=e.position,!ze(e,r,ae,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);xe(l);)l=e.input.charCodeAt(++e.position);if(58===l)Ee(l=e.input.charCodeAt(++e.position))||Ce(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(_e(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!1,s=!1,m=e.tag,d=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Ce(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Ce(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(_e(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):Ce(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),ze(e,t,le,!0,s)&&(g?d=e.result:y=e.result),g||(_e(e,h,f,m,d,y,o,a,c),m=d=y=null),De(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Ce(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&_e(e,h,f,m,d,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,f,h))||function(e,t){var r,n,s,i,o,a,c,l,u,p,h,f,m=!0,d=e.tag,y=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==f)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(De(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===f&&Ce(e,"expected the node content, but found ','"):Ce(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&Ee(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,De(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,ze(e,t,oe,!1,!0),p=e.tag,u=e.result,De(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),De(e,!0,t),ze(e,t,oe,!1,!0),h=e.result),l?_e(e,i,g,p,u,h,r,n,s):a?i.push(_e(e,null,g,p,u,h,r,n,s)):i.push(u),De(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}Ce(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,n,s,i,o,a=ue,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)ue===a?a=43===i?he:pe:Ce(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Ce(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Ce(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(xe(i)){do{i=e.input.charCodeAt(++e.position)}while(xe(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!be(i)&&0!==i)}for(;0!==i;){for(Ne(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),be(i))p++;else{if(e.lineIndent<u){a===he?e.result+=v.repeat("\n",c?1+p:p):a===ue&&c&&(e.result+="\n");break}for(n?xe(i)?(h=!0,e.result+=v.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=v.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=v.repeat("\n",p):e.result+=v.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!be(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Ie(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Ie(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else be(r)?(Ie(e,n,s,!0),Le(e,De(e,!1,t)),n=s=e.position):e.position===e.lineStart&&qe(e)?Ce(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Ce(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Ie(e,r,e.position,!0),e.position++,!0;if(92===a){if(Ie(e,r,e.position,!0),be(a=e.input.charCodeAt(++e.position)))De(e,!1,t);else if(a<256&&Pe[a])e.result+=Ae[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(s=o,i=0;s>0;s--)(o=je(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Ce(e,"expected hexadecimal character");e.result+=Se(i),e.position++}else Ce(e,"unknown escape sequence");r=n=e.position}else be(a)?(Ie(e,r,n,!0),Le(e,De(e,!1,t)),r=n=e.position):e.position===e.lineStart&&qe(e)?Ce(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Ce(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Ee(n)&&!we(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Ce(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ie.call(e.anchorMap,r)||Ce(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],De(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,a,c,l,u,p=e.kind,h=e.result;if(Ee(u=e.input.charCodeAt(e.position))||we(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Ee(n=e.input.charCodeAt(e.position+1))||r&&we(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(Ee(n=e.input.charCodeAt(e.position+1))||r&&we(n))break}else if(35===u){if(Ee(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&qe(e)||r&&we(u))break;if(be(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,De(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Ie(e,s,i,!1),Le(e,e.line-a),s=i=e.position,o=!1),xe(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Ie(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,oe===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||Ce(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&Be(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Ce(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ie.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||Ce(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Ce(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Ce(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function He(e){var t,r,n,s,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(De(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Ee(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Ce(e,"directive name must not be less than one character in length");0!==s;){for(;xe(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!be(s));break}if(be(s))break;for(t=e.position;0!==s&&!Ee(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Ne(e),ie.call(Re,r)?Re[r](e,r,n):Me(e,'unknown document directive "'+r+'"')}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)):o&&Ce(e,"directives end mark is expected"),ze(e,e.lineIndent-1,le,!1,!0),De(e,!0,-1),e.checkLineBreaks&&me.test(e.input.slice(i,e.position))&&Me(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&qe(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,De(e,!0,-1)):e.position<e.length-1&&Ce(e,"end of the stream or a document separator is expected")}function Je(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new ke(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Ce(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)He(r);return r.documents}var Ge={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Je(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},load:function(e,t){var r=Je(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new E("expected a single document in the stream, but found more")}}},We=Object.prototype.toString,Ke=Object.prototype.hasOwnProperty,Ye=65279,Xe=9,Qe=10,Ze=13,et=32,tt=33,rt=34,nt=35,st=37,it=38,ot=39,at=42,ct=44,lt=45,ut=58,pt=61,ht=62,ft=63,mt=64,dt=91,yt=93,gt=96,vt=123,bt=124,xt=125,Et={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ot(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new E("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+v.repeat("0",n-t.length)+t}var St=1,Pt=2;function At(e){this.schema=e.schema||se,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=v.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&Ke.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?Pt:St,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $t(e,t){for(var r,n=v.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function kt(e,t){return"\n"+v.repeat(" ",e.indent*t)}function Tt(e){return e===et||e===Xe}function Ct(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Ye||65536<=e&&e<=1114111}function Mt(e){return Ct(e)&&e!==Ye&&e!==Ze&&e!==Qe}function Rt(e,t,r){var n=Mt(e),s=n&&!Tt(e);return(r?n:n&&e!==ct&&e!==dt&&e!==yt&&e!==vt&&e!==xt)&&e!==nt&&!(t===ut&&!s)||Mt(t)&&!Tt(t)&&e===nt||t===ut&&s}function It(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Ft(e){return/^\n* /.test(e)}var _t=1,Nt=2,Dt=3,qt=4,Lt=5;function Bt(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=Ct(l=It(e,0))&&l!==Ye&&!Tt(l)&&l!==lt&&l!==ft&&l!==ut&&l!==ct&&l!==dt&&l!==yt&&l!==vt&&l!==xt&&l!==nt&&l!==it&&l!==at&&l!==tt&&l!==bt&&l!==pt&&l!==ht&&l!==ot&&l!==rt&&l!==st&&l!==mt&&l!==gt&&function(e){return!Tt(e)&&e!==ut}(It(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Ct(u=It(e,c)))return Lt;y=y&&Rt(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=It(e,c))===Qe)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!Ct(u))return Lt;y=y&&Rt(u,p,a),p=u}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Ft(e)?Lt:o?i===Pt?Lt:Nt:f?qt:Dt:!y||o||s(e)?i===Pt?Lt:Nt:_t}function Ut(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===Pt?'""':"''";if(!e.noCompatMode&&(-1!==wt.indexOf(t)||jt.test(t)))return e.quotingType===Pt?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Bt(t,a,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,s)){case _t:return t;case Nt:return"'"+t.replace(/'/g,"''")+"'";case Dt:return"|"+Vt(t,e.indent)+zt($t(t,i));case qt:return">"+Vt(t,e.indent)+zt($t(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,Ht(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;n=s.exec(e);){var c=n[1],l=n[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+Ht(l,t),o=r}return i}(t,o),i));case Lt:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=It(e,s),!(t=Et[n])&&Ct(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Ot(n);return r}(t)+'"';default:throw new E("impossible error: invalid scalar style")}}()}function Vt(e,t){var r=Ft(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function zt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Ht(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,a=0,c="";r=s.exec(e);)(a=r.index)-i>t&&(n=o>i?o:a,c+="\n"+e.slice(i,n),i=n+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Jt(e,t,r,n){var s,i,o,a="",c=e.tag;for(s=0,i=r.length;s<i;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(Wt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Wt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=kt(e,t)),e.dump&&Qe===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Gt(e,t,r){var n,s,i,o,a,c;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=s[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===We.call(a.represent))n=a.represent(t,c);else{if(!Ke.call(a.represent,c))throw new E("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function Wt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,Gt(e,r,!1)||Gt(e,r,!0);var a,c=We.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new E("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=kt(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),Wt(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Qe===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=kt(e,t)),Wt(e,t+1,a,!0,c)&&(e.dump&&Qe===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o,a,c="",l=e.tag,u=Object.keys(r);for(n=0,s=u.length;n<s;n+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[n]],e.replacer&&(o=e.replacer.call(r,i,o)),Wt(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wt(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Jt(e,t-1,e.dump,s):Jt(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o="",a=e.tag;for(n=0,s=r.length;n<s;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(Wt(e,t,i,!1,!1)||void 0===i&&Wt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Ut(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Kt(e,t){var r,n,s=[],i=[];for(Yt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function Yt(e,t,r){var n,s,i;if(null!==e&&"object"==typeof e)if(-1!==(s=t.indexOf(e)))-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)Yt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)Yt(e[n[s]],t,r)}function Xt(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 Qt=A,Zt=T,er=I,tr=V,rr=z,nr=se,sr=Ge.load,ir=Ge.loadAll,or={dump:function(e,t){var r=new At(t=t||{});r.noRefs||Kt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Wt(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,ar=E,cr={binary:Y,float:U,map:R,null:F,pairs:te,set:ne,timestamp:G,bool:_,int:q,merge:W,omap:Z,seq:M,str:C},lr=Xt("safeLoad","load"),ur=Xt("safeLoadAll","loadAll"),pr=Xt("safeDump","dump");const hr={Type:Qt,Schema:Zt,FAILSAFE_SCHEMA:er,JSON_SCHEMA:tr,CORE_SCHEMA:rr,DEFAULT_SCHEMA:nr,load:sr,loadAll:ir,dump:or,YAMLException:ar,types:cr,safeLoad:lr,safeLoadAll:ur,safeDump:pr},{fetch:fr,Response:mr,Headers:dr,Request:yr,FormData:gr,File:vr,Blob:br}=globalThis;void 0===globalThis.fetch&&(globalThis.fetch=fr),void 0===globalThis.Headers&&(globalThis.Headers=dr),void 0===globalThis.Request&&(globalThis.Request=yr),void 0===globalThis.Response&&(globalThis.Response=mr),void 0===globalThis.FormData&&(globalThis.FormData=gr),void 0===globalThis.File&&(globalThis.File=vr),void 0===globalThis.Blob&&(globalThis.Blob=br);const xr=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Er=e=>/^[a-z0-9\-._~]+$/i.test(e);function wr(e){let{escape:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(Er(e))return e;if(xr(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join(""):e}function jr(e){const{value:t}=e;return Array.isArray(t)?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>wr(e,{escape:i});if("simple"===n)return r.map((e=>o(e))).join(",");if("label"===n)return`.${r.map((e=>o(e))).join(".")}`;if("matrix"===n)return r.map((e=>o(e))).reduce(((e,r)=>!e||s?`${e||""};${t}=${r}`:`${e},${r}`),"");if("form"===n){const e=s?`&${t}=`:",";return r.map((e=>o(e))).join(e)}if("spaceDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(` ${e}`)}if("pipeDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(`|${e}`)}return}(e):"object"==typeof t?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>wr(e,{escape:i}),a=Object.keys(r);if("simple"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e},`:""}${t}${s?"=":","}${n}`}),"");if("label"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}.`:"."}${t}${s?"=":"."}${n}`}),"");if("matrix"===n&&s)return a.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${o(r[t])}`),"");if("matrix"===n)return a.reduce(((e,n)=>{const s=o(r[n]);return`${e?`${e},`:`;${t}=`}${n},${s}`}),"");if("form"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}${s?"&":","}`:""}${t}${s?"=":","}${n}`}),"");return}(e):function(e){let{key:t,value:r,style:n,escape:s}=e;const i=e=>wr(e,{escape:s});if("simple"===n)return i(r);if("label"===n)return`.${i(r)}`;if("matrix"===n)return`;${t}=${i(r)}`;if("form"===n)return i(r);if("deepObject"===n)return i(r,{},!0);return}(e)}const Or={serializeRes:Ar,mergeInQueryOrForm:Nr};async function Sr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e&&(t=e,e=t.url),t.headers=t.headers||{},Or.mergeInQueryOrForm(t),t.headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Or.serializeRes(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}const Pr=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function Ar(e,t){let{loadSpec:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:$r(e.headers)},s=n.headers["content-type"],i=r||Pr(s);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):hr.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function $r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,t)=>{let[r,n]=t;return e[r]=function(e){return e.includes(", ")?e.split(", "):e}(n),e}),{})}function kr(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function Tr(e,t){return Array.isArray(e)&&e.some((e=>kr(e,t)))}const Cr={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Mr={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Rr extends File{constructor(e){super([e],arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Ir(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&s)return[[l,""]];if(kr(a)||Tr(a))return[[l,a]];if(i)return Fr(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=o;return Fr(e,a,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new Rr(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new Rr(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===n?[[l,a.map(c)]]:[[l,a.map(c).join(Mr[n||"csv"])]]:[[l,""]]}function Fr(e,t,r,n){const s=n.style||"form",i=void 0===n.explode?"form"===s:n.explode,o=!r&&(n&&n.allowReserved?"unsafe":"reserved"),a=e=>wr(e,{escape:o}),c=r?e=>e:e=>wr(e,{escape:o});return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(Cr[s])]]:"deepObject"===s?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function _r(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Ir(r,e[r]))t[n]=s instanceof Rr?s.valueOf():s;return t}),{});return d().stringify(t,{encode:!1,indices:!1})||""}function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return kr(t)||Tr(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,t)=>{let[r,n]=t;for(const[t,s]of Ir(r,n,!0))if(Array.isArray(s))for(const r of s)if(ArrayBuffer.isView(r)){const n=new Blob([r]);e.append(t,n)}else e.append(t,r);else if(ArrayBuffer.isView(s)){const r=new Blob([s]);e.append(t,r)}else e.append(t,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=_r(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=d().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=d().stringify(e,{encode:!0})}const o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.filter((e=>e)).join("&");return n?`?${n}`:""}(i,_r(r));e.url=n+o,delete e.query}return e}function Dr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:p},credentials:s}).then((e=>e.body))}const qr=e=>{const{baseDoc:t,url:r}=e,n=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(n,globalThis.document.baseURI)):n},Lr=e=>{const{fetch:t,http:r}=e;return t||r||Sr};var Br,Ur=(Br=function(e,t){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Br(e,t)},function(e,t){function r(){this.constructor=e}Br(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Vr=Object.prototype.hasOwnProperty;function zr(e,t){return Vr.call(e,t)}function Hr(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var s in e)zr(e,s)&&n.push(s);return n}function Jr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Gr(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Wr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Kr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Yr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Yr(e[t]))return!0}else if("object"==typeof e)for(var n=Hr(e),s=n.length,i=0;i<s;i++)if(Yr(e[n[i]]))return!0;return!1}function Xr(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var Qr=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,Xr(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Xr(t,{name:r,index:n,operation:s,tree:i}),a}return Ur(t,e),t}(Error),Zr=Qr,en=Jr,tn={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=nn(r,this.path);n&&(n=Jr(n));var s=sn(r,{op:"remove",path:this.from}).removed;return sn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=nn(r,this.from);return sn(r,{op:"add",path:this.path,value:Jr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:un(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},rn={add:function(e,t,r){return Gr(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:tn.move,copy:tn.copy,test:tn.test,_get:tn._get};function nn(e,t){if(""==t)return e;var r={op:"_get",path:t};return sn(e,r),r.value}function sn(e,t,r,n,s,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===s&&(s=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):cn(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=nn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=un(e,t.value),!1===o.test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Zr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Jr(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,f=void 0;for(f="function"==typeof r?r:cn;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Kr(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-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===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!Gr(h))throw new Zr("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",i,t,e);Gr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Zr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=rn[t.op].call(t,c,h,e)).test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=tn[t.op].call(t,c,h,e)).test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Zr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function on(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Zr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Jr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=sn(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function an(e,t,r){var n=sn(e,t);if(!1===n.test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function cn(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Zr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!tn[e.op])throw new Zr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Zr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Zr('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 Zr("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 Zr("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)&&Yr(e.value))throw new Zr("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 s=e.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new Zr("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!==n)throw new Zr("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 o=ln([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Zr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function ln(e,t,r){try{if(!Array.isArray(e))throw new Zr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)on(Jr(t),Jr(e),r||!0);else{r=r||cn;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Zr)return e;throw e}}function un(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,s,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!un(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!un(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var pn=new WeakMap,hn=function(e){this.observers=new Map,this.obj=e},fn=function(e,t){this.callback=e,this.observer=t};function mn(e,t){t.unobserve()}function dn(e,t){var r,n=function(e){return pn.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new hn(e),pn.set(e,n);if(r)return r;if(r={},n.value=Jr(e),t){r.callback=t,r.next=null;var i=function(){yn(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){yn(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},n.observers.set(t,new fn(t,r)),r}function yn(e,t){void 0===t&&(t=!1);var r=pn.get(e.object);gn(r.value,e.object,e.patches,"",t),e.patches.length&&on(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function gn(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Hr(t),o=Hr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!zr(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+Wr(p),value:Jr(l)}),r.push({op:"remove",path:n+"/"+Wr(p)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?gn(l,u,r,n+"/"+Wr(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+Wr(p),value:Jr(l)}),r.push({op:"replace",path:n+"/"+Wr(p),value:Jr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;zr(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Wr(p),value:Jr(t[p])})}}}function vn(e,t,r){void 0===r&&(r=!1);var n=[];return gn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Qr,deepClone:Jr,escapePathComponent:Wr,unescapePathComponent:Kr});var bn=r(9996),xn=r.n(bn);const En={add:function(e,t){return{op:"add",path:e,value:t}},replace:jn,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&wn(t.path)}).op){const r=_n(e,t.path);Object.assign(r,t.value),on(e,[jn(t.path,r)])}else if("mergeDeep"===t.op){const r=_n(e,t.path),n=xn()(r,t.value);e=on(e,[jn(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&Tn(t.value)){on(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${wn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&In(t)&&(Array.isArray(t.value)||Tn(t.value))&&(n={...n,...t.meta}),e=n}else if(on(e,[t]),r.allowMetaPatches&&t.meta&&In(t)&&(Array.isArray(t.value)||Tn(t.value))){const r={..._n(e,t.path),...t.meta};on(e,[jn(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:$n,fullyNormalizeArray:function(e){return kn($n(An(e)))},normalizeArray:An,isPromise:function(e){return Tn(e)&&Cn(e.then)},forEachNew:function(e,t){try{return On(e,Pn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return On(e,Sn,t)}catch(e){return e}},isJsonPatch:Mn,isContextPatch:function(e){return Fn(e)&&"context"===e.type},isPatch:Fn,isMutation:Rn,isAdditiveMutation:In,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Cn,isObject:Tn,isError:function(e){return e instanceof Error}};function wn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function jn(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function On(e,t,r){return kn($n(e.filter(In).map((e=>t(e.value,r,e.path)))||[]))}function Sn(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>Sn(e,t,r.concat(n)))):Tn(e)?Object.keys(e).map((n=>Sn(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function Pn(e,t,r){let n=[];if((r=r||[]).length>0){const s=t(e,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(e)){const s=e.map(((e,n)=>Pn(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(Tn(e)){const s=Object.keys(e).map((n=>Pn(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=$n(n),n}function An(e){return Array.isArray(e)?e:[e]}function $n(e){return[].concat(...e.map((e=>Array.isArray(e)?$n(e):e)))}function kn(e){return e.filter((e=>void 0!==e))}function Tn(e){return e&&"object"==typeof e}function Cn(e){return e&&"function"==typeof e}function Mn(e){if(Fn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Rn(e){return Mn(e)||Fn(e)&&"mutation"===e.type}function In(e){return Rn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Fn(e){return e&&"object"==typeof e}function _n(e,t){try{return nn(e,t)}catch(e){return console.error(e),{}}}var Nn=r(4155);const Dn=function(){return!1};const qn=function(){return!0};function Ln(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Bn(e){return function t(r){return 0===arguments.length||Ln(r)?t:e.apply(this,arguments)}}function Un(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Ln(r)?t:Bn((function(t){return e(r,t)}));default:return Ln(r)&&Ln(n)?t:Ln(r)?Bn((function(t){return e(t,n)})):Ln(n)?Bn((function(t){return e(r,t)})):e(r,n)}}}const Vn=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function zn(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!Vn(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function Hn(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Jn=function(){return this.xf["@@transducer/init"]()},Gn=function(e){return this.xf["@@transducer/result"](e)};var Wn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Hn(this.xf["@@transducer/step"](e,!1))),e},e}();function Kn(e){return function(t){return new Wn(e,t)}}const Yn=Un(zn(["all"],Kn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function Xn(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Qn(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!Ln(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,Ln(a)||(i-=1),o+=1}return i<=0?r.apply(this,n):Xn(i,Qn(e,n,r))}}const Zn=Un((function(e,t){return 1===e?Bn(t):Xn(e,Qn(e,[],t))}));function es(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ts(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function rs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ns="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ss=Object.prototype.toString;const is=function(){return"[object Arguments]"===ss.call(arguments)?function(e){return"[object Arguments]"===ss.call(e)}:function(e){return rs("callee",e)}}();var os=!{toString:null}.propertyIsEnumerable("toString"),as=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],cs=function(){return arguments.propertyIsEnumerable("length")}(),ls=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const us="function"!=typeof Object.keys||cs?Bn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=cs&&is(e);for(t in e)!rs(t,e)||s&&"length"===t||(n[n.length]=t);if(os)for(r=as.length-1;r>=0;)rs(t=as[r],e)&&!ls(n,t)&&(n[n.length]=t),r-=1;return n})):Bn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ps=Bn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function hs(e,t,r,n){var s=es(e);function i(e,t){return fs(e,t,r.slice(),n.slice())}return!ts((function(e,t){return!ts(i,t,e)}),es(t),s)}function fs(e,t,r,n){if(ns(e,t))return!0;var s,i,o=ps(e);if(o!==ps(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!ns(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ns(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 a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&hs(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&hs(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=us(e);if(c.length!==us(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!rs(p,t)||!fs(t[p],e[p],l,u))return!1;a-=1}return!0}const ms=Un((function(e,t){return fs(e,t,[],[])}));function ds(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(ms(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ys(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function gs(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 vs=function(e){return(e<10?"0":"")+e};const bs="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+vs(e.getUTCMonth()+1)+"-"+vs(e.getUTCDate())+"T"+vs(e.getUTCHours())+":"+vs(e.getUTCMinutes())+":"+vs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function xs(e){return function(){return!e.apply(this,arguments)}}function Es(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function ws(e){return"[object Object]"===Object.prototype.toString.call(e)}var js=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Os(e){return function(t){return new js(e,t)}}const Ss=Un(zn(["fantasy-land/filter","filter"],Os,(function(e,t){return ws(t)?Es((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},us(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const Ps=Un((function(e,t){return Ss(xs(e),t)}));function As(e,t){var r=function(r){var n=t.concat([e]);return ds(r,n)?"<Circular>":As(r,n)},n=function(e,t){return ys((function(t){return gs(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ys(r,e).join(", ")+"))";case"[object Array]":return"["+ys(r,e).concat(n(e,Ps((function(e){return/^\d+$/.test(e)}),us(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):gs(bs(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())+")":gs(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,us(e)).join(", ")+"}"}}const $s=Bn((function(e){return As(e,[])}));const ks=Un((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=$s(e),o=r(i,$s(t));return void 0!==o&&o===i?e:t}));var Ts=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Cs=Un(zn(["fantasy-land/map","map"],(function(e){return function(t){return new Ts(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Zn(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Es((function(r,n){return r[n]=e(t[n]),r}),{},us(t));default:return ys(e,t)}}))),Ms=Number.isInteger||function(e){return e<<0===e};function Rs(e){return"[object String]"===Object.prototype.toString.call(e)}const Is=Un((function(e,t){var r=e<0?t.length+e:e;return Rs(t)?t.charAt(r):t[r]}));const Fs=Un((function(e,t){if(null!=t)return Ms(e)?Is(e,t):t[e]}));const _s=Un((function(e,t){return Cs(Fs(e),t)}));function Ns(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Ln(r)?t:Un((function(t,n){return e(r,t,n)}));case 2:return Ln(r)&&Ln(n)?t:Ln(r)?Un((function(t,r){return e(t,n,r)})):Ln(n)?Un((function(t,n){return e(r,t,n)})):Bn((function(t){return e(r,n,t)}));default:return Ln(r)&&Ln(n)&&Ln(s)?t:Ln(r)&&Ln(n)?Un((function(t,r){return e(t,r,s)})):Ln(r)&&Ln(s)?Un((function(t,r){return e(t,n,r)})):Ln(n)&&Ln(s)?Un((function(t,n){return e(r,t,n)})):Ln(r)?Bn((function(t){return e(t,n,s)})):Ln(n)?Bn((function(t){return e(r,t,s)})):Ln(s)?Bn((function(t){return e(r,n,t)})):e(r,n,s)}}}const Ds=Bn((function(e){return!!Vn(e)||!!e&&("object"==typeof e&&(!Rs(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var qs="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ls(e,t,r){return function(n,s,i){if(Ds(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[qs])return r(n,s,i[qs]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Bs(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const Us=Un((function(e,t){return Xn(e.length,(function(){return e.apply(t,arguments)}))}));function Vs(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function zs(e,t,r,n){return e["@@transducer/result"](r[n](Us(e["@@transducer/step"],e),t))}const Hs=Ls(Bs,zs,Vs);var Js=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function Gs(e){return new Js(e)}const Ws=Ns((function(e,t,r){return Hs("function"==typeof e?Gs(e):e,t,r)}));const Ks=Bn((function(e){return Zn(Ws(ks,0,_s("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ys=Bn((function(e){return function(){return e}}));const Xs=Bn((function(e){return Zn(Ws(ks,0,_s("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Qs(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Zs(e,t,r,n){return r[n](e,t)}const ei=Ls(Es,Zs,Qs);const ti=Un((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:ei((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,Cs(r,t))}),[],e)}));const ri=Un((function(e,t){return e.apply(this,t)}));var ni=Bn((function(e){for(var t=us(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));const si=ni;const ii=Bn((function(e){return null==e}));const oi=Ns((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!ii(n)&&rs(s,n)&&"object"==typeof n[s]?n[s]:Ms(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Ms(e)&&Vn(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));function ai(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ci=Un((function(e,t){return e&&t}));const li=Un((function(e,t){var r=Zn(e,t);return Zn(e,(function(){return Es(ti,Cs(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ui=Bn((function(e){return li(e.length,e)}));const pi=Un((function(e,t){return ai(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ui(ci)(e,t)}));const hi=Bn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const fi=ui(Bn((function(e){return!e})));function mi(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function di(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Vn(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const yi=Ns(di("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const gi=Bn(di("tail",yi(1,1/0)));function vi(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Xn(arguments[0].length,Ws(mi,arguments[0],gi(arguments)))}var bi=Un((function(e,t){return Zn(Ws(ks,0,_s("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ys((function(e){return e.apply(n,r)}),t))}))}));const xi=bi;function Ei(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 wi(e,t,r){if(r||(r=new ji),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?wi(e[i],!0,r):e[i]);return n};switch(ps(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return Ei(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 ji=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}(),Oi=function(){function e(e,t,r,n){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(rs(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,wi(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Si(e,t,r){return function(n){return new Oi(e,t,r,n)}}const Pi=Qn(4,[],zn([],Si,(function(e,t,r,n){var s=Gs((function(n,s){var i=r(s),o=e(rs(i,n)?n[i]:wi(t,!1),s);return o&&o["@@transducer/reduced"]?Hn(n):(n[i]=o,n)}));return Hs(s,{},n)})));const Ai=Bn((function(e){return Zn(e.length,e)}));const $i=Un((function(e,t){return null==t||t!=t?e:t}));function ki(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!ds(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!ds(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const Ti=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!ki(e,!0,this)},e.prototype.has=function(e){return ki(e,!1,this)},e}();var Ci=Un((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new Ti,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));const Mi=Ci;var Ri=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Hn(r):r},e}();function Ii(e){return function(t){return new Ri(e,t)}}const Fi=Un(zn(["take"],Ii,(function(e,t){return yi(0,e<0?1/0:e,t)})));function _i(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return yi(0,r+1,t)}var Ni=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Hs(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function Di(e){return function(t){return new Ni(e,t)}}const qi=Un(zn([],Di,_i));var Li=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Bi(e){return function(t){return new Li(e,t)}}const Ui=Un(zn(["dropWhile"],Bi,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return yi(r,1/0,t)})));const Vi=Un((function(e,t){return e||t}));const zi=Un((function(e,t){return ai(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ui(Vi)(e,t)}));var Hi=Bn((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Vn(e)?[]:Rs(e)?"":ws(e)?{}:is(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ji=Hi;const Gi=Bn((function(e){return Zn(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Wi=Un(di("groupBy",Pi((function(e,t){return e.push(t),e}),[])));const Ki=Un((function(e,t){if(0===e.length||ii(t))return!1;for(var r=t,n=0;n<e.length;){if(ii(r)||!rs(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Yi=Un((function(e,t){return Ki([e],t)}));const Xi=Un((function(e,t){return!ii(t)&&e in t}));const Qi=Is(0);var Zi=function(e,t){switch(arguments.length){case 0:return Zi;case 1:return function t(r){return 0===arguments.length?t:ns(e,r)};default:return ns(e,t)}};const eo=Zi;function to(e){return e}const ro=Bn(to);const no=Ns((function(e,t,r){return Zn(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const so=Un(ds);const io=yi(0,-1);"function"==typeof Object.assign&&Object.assign;const oo=Un((function(e,t){return Zn(e+1,(function(){var r=arguments[e];if(null!=r&&ai(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError($s(r)+' does not have a method named "'+t+'"')}))}));const ao=Bn((function(e){return null!=e&&ms(e,Ji(e))}));const co=oo(1,"join");const lo=Is(-1);const uo=Un((function(e,t){return function(r){return function(n){return Cs((function(e){return t(e,n)}),r(e(n)))}}}));const po=Un((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Ms(r)?Is(r,n):n[r],s+=1}return n}))}));const ho=Un((function(e,t){return po([e],t)[0]}));const fo=Un((function(e,t){return Es((function(r,n){return r[n]=e(t[n],n,t),r}),{},us(t))}));const mo=Ns((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})rs(n,t)&&(s[n]=rs(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)rs(n,r)&&!rs(n,s)&&(s[n]=r[n]);return s}));const yo=Ns((function e(t,r,n){return mo((function(r,n,s){return ws(n)&&ws(s)?e(t,n,s):t(r,n,s)}),r,n)}));const go=Un((function(e,t){return yo((function(e,t,r){return r}),e,t)}));const vo=Un((function(e,t){return Yn(xs(e),t)}));const bo=Un((function(e,t){for(var r={},n={},s=0,i=e.length;s<i;)n[e[s]]=1,s+=1;for(var o in t)n.hasOwnProperty(o)||(r[o]=t[o]);return r}));var xo=function(e){return{value:e,map:function(t){return xo(t(e))}}};const Eo=Ns((function(e,t,r){return e((function(e){return xo(t(e))}))(r).value}));const wo=Ns((function(e,t,r){return $i(e,ho(t,r))}));const jo=Ns((function(e,t,r){return e(ho(t,r))}));const Oo=Un((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const So=Ns((function(e,t,r){return ms(e,Fs(t,r))}));const Po=Ns((function(e,t,r){return $i(e,Fs(t,r))}));const Ao=Ns((function(e,t,r){return e(Fs(t,r))}));function $o(e){return"[object Number]"===Object.prototype.toString.call(e)}var ko=Un((function(e,t){if(!$o(e)||!$o(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const To=ko;const Co=Bn(Hn);var Mo=Ns((function(e,t,r){return r.replace(e,t)}));const Ro=Mo;var Io=Un((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Fo=Io;const _o=oo(1,"split");const No=Un((function(e,t){return ms(Fi(e.length,t),e)}));var Do=Un((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+$s(e));var r;return Ei(e).test(t)}));const qo=Do;var Lo="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;var Bo=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){return ts(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Uo(e){return function(t){return new Bo(e,t)}}const Vo=Un(zn([],Uo,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)ts(e,r=t[n],i)||(i[i.length]=r),n+=1;return i})));const zo=Ns((function(e,t,r){return e(r)?t(r):r}));const Ho=Gi(so);const Jo=Ai((function(e,t){return vi(_o(""),qi(Ho(e)),co(""))(t)}));const Go=Ys(void 0);const Wo=ms(Go());const Ko=fi(Wo);const Yo=Zn(1,vi(ps,eo("GeneratorFunction")));const Xo=Zn(1,vi(ps,eo("AsyncFunction")));const Qo=Xs([vi(ps,eo("Function")),Yo,Xo]);const Zo=Zn(1,vi(ps,eo("RegExp")));const ea=Zn(1,vi(ps,eo("String")));const ta=zo(ea,Ro(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var ra=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const na=function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),ra(r,"str"),ra(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var n=new RegExp(Zo(e)?e:ta(e),"g");return Ro(n,t,r)};var sa=Zn(3,na),ia=oo(2,"replaceAll");const oa=Qo(String.prototype.replaceAll)?ia:sa,aa=()=>jo(qo(/^win/),["platform"],Nn),ca=e=>{try{const t=new URL(e);return Jo(":",t.protocol)}catch{return}},la=(vi(ca,Ko),e=>{const t=e.lastIndexOf(".");return t>=0?e.substr(t).toLowerCase():""}),ua=e=>{if(Nn.browser)return!1;const t=ca(e);return Wo(t)||"file"===t||/^[a-zA-Z]$/.test(t)},pa=e=>{const t=ca(e);return"http"===t||"https"===t},ha=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Po(!1,"keepFileProtocol",t),s=Po(aa,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substr(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substr(8):i.substr(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substr(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=oa("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},fa=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},ma=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substr(0,t)),r},da=()=>{if(Nn.browser)return ma(globalThis.location.href);const e=Nn.cwd(),t=lo(e);return["/","\\"].includes(t)?e:e+(aa()?"\\":"/")},ya=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()},ga=e=>{if(ua(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;aa()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(ha(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},va=e=>ua(e)?ha(e):decodeURI(e);function ba(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];[this.message]=r,t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var xa=r(3692),Ea=r.n(xa);const wa=["properties"],ja=["properties"],Oa=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],Sa=["schema/example","items/example"];function Pa(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return wa.indexOf(t)>-1&&-1===ja.indexOf(r)||Oa.indexOf(n)>-1||Sa.some((e=>n.indexOf(e)>-1))}function Aa(e,t){const[r,n]=e.split("#"),s=t??"",i=r??"";let o;if(pa(s))o=ya(s,i);else{const e=ya(h,s),t=ya(e,i).replace(h,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const $a=/^([a-z]+:\/\/|\/\/)/i,ka=ba("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),Ta={},Ca=new WeakMap,Ma=[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]],Ra={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(Pa(i)||(e=>Ma.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new ka("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=Da(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?_a(c,o):null}catch(t){return Na(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=Ca.get(n);s||(s={},Ca.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(za).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&Ja(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${za(e)}`,s[l]&&s[l].some((e=>Ja(e,o)||Ja(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=Aa(e,u);return e===t?null:En.replace(r,t)}if(null==u?(h=Ua(l),p=n.get(h),void 0===p&&(p=new ka(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=qa(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw Na(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[En.remove(r),p];const f=Aa(e,u),m=En.replace(i,p,{$$ref:f});if(u&&u!==o)return[m,En.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),n(t.value);function n(e){return En.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,m)||s.useCircularStructures)return m}catch(e){return null}}},Ia=Object.assign(Ra,{docCache:Ta,absoluteify:_a,clearCache:function(e){void 0!==e?delete Ta[e]:Object.keys(Ta).forEach((e=>{delete Ta[e]}))},JSONRefError:ka,wrapError:Na,getDoc:La,split:Da,extractFromDoc:qa,fetchJSON:function(e){return fetch(e,{headers:{Accept:p},loadSpec:!0}).then((e=>e.text())).then((e=>hr.load(e)))},extract:Ba,jsonPointerToArray:Ua,unescapeJsonPointerToken:Va}),Fa=Ia;function _a(e,t){if(!$a.test(e)){if(!t)throw new ka(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return ya(t,e)}return e}function Na(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new ka(`Could not resolve reference: ${r}`,t,e)}function Da(e){return(e+"").split("#")}function qa(e,t){const r=Ta[e];if(r&&!En.isPromise(r))try{const e=Ba(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return La(e).then((e=>Ba(t,e)))}function La(e){const t=Ta[e];return t?En.isPromise(t)?t:Promise.resolve(t):(Ta[e]=Ia.fetchJSON(e).then((t=>(Ta[e]=t,t))),Ta[e])}function Ba(e,t){const r=Ua(e);if(r.length<1)return t;const n=En.getIn(t,r);if(void 0===n)throw new ka(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function Ua(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(Va)}function Va(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function za(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const Ha=e=>!e||"/"===e||"#"===e;function Ja(e,t){if(Ha(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const Ga={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(Pa(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(n.replace(i,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(n.mergeDeep(i,e));const s=function(e,t){let{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return Ea()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=Aa(this.node,n(e));i.push(r.replace(s,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>n.getContext([...r,t,...e]).baseDoc,specmap:n});c.push(...s)})),a.example&&c.push(n.remove([].concat(i,"example"))),c.push(n.mergeDeep(i,a)),a.$$ref||c.push(n.remove([].concat(i,"$$ref"))),c}},Wa={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...En.getIn(n.spec,s)};for(let s=0;s<e.length;s+=1){const o=e[s];try{t[s].default=n.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return En.replace(r,t)}return En.replace(r,e)}},Ka={key:"properties",plugin:(e,t,r,n)=>{const s={...e};for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return En.replace(r,s)}};class Ya{constructor(e){this.root=Xa(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Qa(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Qa(s[n],t,r):s[n]=Xa(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,n=this.root;for(let s=0;s<e.length&&(r=e[s],t=n.children,t[r]);s+=1)n=t[r];return n&&n.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:n}=e;return!n[r]&&t&&(n[r]=Xa(null,e)),n[r]}),this.root)}}function Xa(e,t){return Qa({children:{}},e,t)}function Qa(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Qa(r,r.value,e)})),e}const Za=()=>{};class ec{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Ya,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),En,{getInstance:()=>this}),allowMetaPatches:!1},e),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(En.isFunction),this.patches.push(En.add([],this.spec)),this.patches.push(En.context([],this.context)),this.updatePatches(this.patches)}debug(e){if(this.debugLevel===e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(...r)}}verbose(e){if("verbose"===this.debugLevel){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(`[${e}] `,...r)}}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):En.isFunction(e)?n=e:En.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const e of n.filter(En.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(n,a,c){if(En.isObject(n)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,f=s.allowMetaPatches&&i[n.$$ref];for(const l of Object.keys(n)){const u=n[l],p=a.concat(l),m=En.isObject(u),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:En.isGenerator(n)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){En.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!En.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),En.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(En.isContextPatch(e))return void this.setContext(e.path,e.value);En.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=En.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return En.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||{},e.pluginCount[t]=(e.pluginCount[t]||0)+1,e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(Za,Za)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const n=e.getCurrentMutations(),s=e.mutations.length-1;try{if(t.isGenerator)for(const s of t(n,e.getLib()))r(s);else{r(t(n,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:s})}return e.dispatch()}();function r(r){r&&(r=En.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const tc={refs:Fa,allOf:Ga,parameters:Wa,properties:Ka},rc=e=>e.replace(/\W/gi,"_");function nc(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?rc(e.operationId):function(e,t){let{v2OperationIdCompatibilityMode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${rc(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function sc(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const e in r){const s=r[e];if(null==s||!["object","function"].includes(typeof s))continue;const i=s.parameters;for(const r in s){const o=s[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=nc(o,e,r);if(a){n[a]?n[a].push(o):n[a]=[o];const e=n[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const n in t)"produces"!==n&&"consumes"!==n&&"security"!==n||(r[n]=t[n],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}async function ic(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l,useCircularStructures:u}=e,p=qr(e),h=Lr(e);return function(e){p&&(tc.refs.docCache[p]=e);tc.refs.fetchJSON=Dr(h,{requestInterceptor:a,responseInterceptor:c});const t=[tc.refs];"function"==typeof o&&t.push(tc.parameters);"function"==typeof i&&t.push(tc.properties);"strict"!==r&&t.push(tc.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new ec(f).dispatch()).then(l?async e=>e:sc);var f}(t)}const oc={name:"generic",match:()=>!0,normalize(e){let{spec:t}=e;const{spec:r}=sc({spec:t});return r},resolve:async e=>ic(e)};const ac=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},cc=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},lc=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},uc=e=>cc(e)||lc(e),pc={name:"openapi-2",match(e){let{spec:t}=e;return ac(t)},normalize(e){let{spec:t}=e;const{spec:r}=sc({spec:t});return r},resolve:async e=>async function(e){return ic(e)}(e)};const hc={name:"openapi-3-0",match(e){let{spec:t}=e;return cc(t)},normalize(e){let{spec:t}=e;const{spec:r}=sc({spec:t});return r},resolve:async e=>async function(e){return ic(e)}(e)},fc=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=qr(e),i=Lr(e),o=t||await Dr(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:o};return e.strategies.find((e=>e.match(a))).resolve(a)})({...e,...t}),mc=fc({strategies:[hc,pc,oc]}),dc=e=>async function(t,r){return async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((e=>e.match(p))).normalize(p),f=await mc({...p,spec:h,allowMetaPatches:!0,skipNormalization:!0});return!n&&Array.isArray(t)&&t.length&&(f.spec=t.reduce(((e,t)=>e?.[t]),f.spec)||null),f}(t,r,{...e,...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}})};dc({strategies:[hc,pc,oc]});var yc=r(3500);class gc extends yc.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const vc=gc;class bc extends yc.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const xc=bc;class Ec extends yc.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Wo(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const wc=Ec;class jc extends yc.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new yc.ON([e.start.row,e.start.column,e.start.char]),r=new yc.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const Oc=jc;const Sc=fi(Qo);const Pc=Zn(1,Qo(Array.isArray)?Array.isArray:vi(ps,eo("Array")));const Ac=pi(Pc,ao);var $c=Zn(3,(function(e,t,r){var n=ho(e,r),s=ho(io(e),r);if(!Sc(n)&&!Ac(e)){var i=Us(n,s);return ri(i,t)}}));const kc=$c,Tc=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],Cc=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,Mc=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Rc=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof yc.ON)&&t.classes.includes(e),Ic=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Fc=e=>e({hasMethod:Tc,hasBasicElementProps:Cc,primitiveEq:Mc,isElementType:Ic,hasClass:Rc}),_c=Fc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof yc.W_||e(r)&&t(void 0,r))),Nc=Fc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof yc.RP||e(r)&&t("string",r))),Dc=Fc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof yc.VL||e(r)&&t("number",r))),qc=Fc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof yc.zr||e(r)&&t("null",r))),Lc=Fc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof yc.hh||e(r)&&t("boolean",r))),Bc=Fc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof yc.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Uc=Fc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof yc.ON&&!(n instanceof yc.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Vc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yc.c6||e(n)&&t("member",n)&&r(void 0,n))),zc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yc.EA||e(n)&&t("link",n)&&r(void 0,n))),Hc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yc.tK||e(n)&&t("ref",n)&&r(void 0,n))),Jc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vc||e(n)&&t("annotation",n)&&r("array",n))),Gc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xc||e(n)&&t("comment",n)&&r("string",n))),Wc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wc||e(n)&&t("parseResult",n)&&r("array",n))),Kc=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Oc||e(n)&&t("sourceMap",n)&&r("array",n))),Yc=e=>Ic("object",e)||Ic("array",e)||Ic("boolean",e)||Ic("number",e)||Ic("string",e)||Ic("null",e)||Ic("member",e),Xc=e=>Kc(e.meta.get("sourceMap")),Qc=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Uc(r)&&Yn(Ho(r.toValue()),e)},Zc=(e,t)=>0===e.length||Yn(Ho(t.classes.toValue()),e);const el=ms(null);const tl=fi(el);function rl(e){return rl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rl(e)}const nl=function(e){return"object"===rl(e)};const sl=Zn(1,pi(tl,nl));var il=vi(ps,eo("Object")),ol=vi($s,ms($s(Object))),al=jo(pi(Qo,ol),["constructor"]);const cl=Zn(1,(function(e){if(!sl(e)||!il(e))return!1;var t=Object.getPrototypeOf(e);return!!el(t)||al(t)}));class ll extends yc.lS{constructor(){super(),this.register("annotation",vc),this.register("comment",xc),this.register("parseResult",wc),this.register("sourceMap",Oc)}}const ul=new ll,pl=e=>{const t=new ll;return cl(e)&&t.use(e),t},hl=ul,fl=()=>({predicates:{...i},namespace:hl});var ml=r(3992),dl=r(538);const yl=class extends dl{constructor(e,t,r){if(super(e,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,cl(r)&&Xi("cause",r)&&!Xi("cause",this)){const{cause:e}=r;this.cause=e,e instanceof Error&&Xi("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}};class gl extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(yl,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,cl(t)&&Xi("cause",t)&&!Xi("cause",this)){const{cause:e}=t;this.cause=e,e instanceof Error&&Xi("stack",e)&&(this.stack=`${this.stack}\nCAUSE: ${null==e?void 0:e.stack}`)}}}const vl=gl;const bl=class extends vl{constructor(e,t){super(e,t),void 0!==t&&Object.assign(this,bo(["cause"],t))}},xl=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},El={},wl=e=>null==e?void 0:e.type,jl=e=>"string"==typeof wl(e),Ol=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),Sl=(e,{visitFnGetter:t=xl,nodeTypeGetter:r=wl}={})=>{const n=new Array(e.length).fill(null);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null===n[o]){const a=t(e[o],r(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===El)n[o]=El;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null===n[o]){const a=t(e[o],r(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===El)n[o]=El;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}},Pl=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=El,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xl,nodeTypeGetter:c=wl,nodePredicate:l=jl,nodeCloneFn:u=Ol,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=m,m=E.pop(),j)if(d){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}if(E.includes(b))continue;let O;if(!Array.isArray(b)){if(!l(b))throw new bl(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;O=i.call(t,b,r,m,x,E)}if(O===s)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var w;if(void 0===O&&j&&v.push([r,b]),!e)f={inArray:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(w=h[c(b)])&&void 0!==w?w:[],g=-1,v=[],m!==i&&void 0!==m&&E.push(m),m=b}while(void 0!==f);return 0!==v.length?v.at(-1)[1]:e};Pl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=El,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=xl,nodeTypeGetter:c=wl,nodePredicate:l=jl,nodeCloneFn:u=Ol,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=m,m=E.pop(),j)if(d){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new bl(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;O=await i.call(t,b,r,m,x,E)}if(O===s)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var w;if(void 0===O&&j&&v.push([r,b]),!e)f={inArray:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(w=h[c(b)])&&void 0!==w?w:[],g=-1,v=[],m!==i&&void 0!==m&&E.push(m),m=b}while(void 0!==f);return 0!==v.length?v.at(-1)[1]:e};const Al=class extends bl{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.source)}};const $l=class extends Al{};const kl=class extends Al{},Tl=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof yc.KeyValuePair){const{key:t,value:s}=e,i=_c(t)?Tl(t,n):t,o=_c(s)?Tl(s,n):s,a=new yc.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof yc.rm){const t=e=>Tl(e,n),s=[...e].map(t),i=new yc.rm(s);return r.set(e,i),i}if(e instanceof yc.O4){const t=e=>Tl(e,n),s=[...e].map(t),i=new yc.O4(s);return r.set(e,i),i}if(_c(e)){const t=Rl(e);if(r.set(e,t),e.content)if(_c(e.content))t.content=Tl(e.content,n);else if(e.content instanceof yc.KeyValuePair)t.content=Tl(e.content,n);else if(Array.isArray(e.content)){const r=e=>Tl(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new $l("Value provided to cloneDeep function couldn't be cloned",{value:e})};Tl.safe=e=>{try{return Tl(e)}catch{return e}};const Cl=e=>{const{key:t,value:r}=e;return new yc.KeyValuePair(t,r)},Ml=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=Tl(e.meta)),e.attributes.length>0&&(t._attributes=Tl(e.attributes)),_c(e.content)){const r=e.content;t.content=Ml(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof yc.KeyValuePair?t.content=Cl(e.content):t.content=e.content;return t},Rl=e=>{if(e instanceof yc.KeyValuePair)return Cl(e);if(e instanceof yc.rm)return(e=>{const t=[...e];return new yc.rm(t)})(e);if(e instanceof yc.O4)return(e=>{const t=[...e];return new yc.O4(t)})(e);if(_c(e))return Ml(e);throw new kl("Value provided to cloneShallow function couldn't be cloned",{value:e})};Rl.safe=e=>{try{return Rl(e)}catch{return e}};const Il=e=>Bc(e)?"ObjectElement":Uc(e)?"ArrayElement":Vc(e)?"MemberElement":Nc(e)?"StringElement":Lc(e)?"BooleanElement":Dc(e)?"NumberElement":qc(e)?"NullElement":zc(e)?"LinkElement":Hc(e)?"RefElement":void 0,Fl=e=>_c(e)?Rl(e):Ol(e),_l=vi(Il,ea),Nl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},Dl=ml({props:{result:[],predicate:Dn,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),ql=(e,t,{keyMap:r=Nl,...n}={})=>Pl(e,t,{keyMap:r,nodeTypeGetter:Il,nodePredicate:_l,nodeCloneFn:Fl,...n});ql[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Nl,...n}={})=>Pl[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Il,nodePredicate:_l,nodeCloneFn:Fl,...n});const Ll=(e,t,r={})=>{if(0===t.length)return e;const n=Po(fl,"toolboxCreator",r),s=Po({},"visitorOptions",r),i=Po(Il,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=Sl(a.map(Po({},"visitor")),{nodeTypeGetter:i});a.forEach(kc(["pre"],[]));const l=ql(e,c,s);return a.forEach(kc(["post"],[])),l},Bl=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Ll(n,r,{toolboxCreator:fl,visitorOptions:{nodeTypeGetter:Il}})},Ul=e=>(t,r={})=>Bl(t,{...r,Type:e});yc.Sb.refract=Ul(yc.Sb),yc.ON.refract=Ul(yc.ON),yc.RP.refract=Ul(yc.RP),yc.hh.refract=Ul(yc.hh),yc.zr.refract=Ul(yc.zr),yc.VL.refract=Ul(yc.VL),yc.EA.refract=Ul(yc.EA),yc.tK.refract=Ul(yc.tK),vc.refract=Ul(vc),xc.refract=Ul(xc),wc.refract=Ul(wc),Oc.refract=Ul(Oc);const Vl=(e,t=new WeakMap)=>(Vc(e)?(t.set(e.key,e),Vl(e.key,t),t.set(e.value,e),Vl(e.value,t)):e.children.forEach((r=>{t.set(r,e),Vl(r,t)})),t),zl=ml.init((function({element:e}){let t;this.transclude=function(r,n){var s;if(r===e)return n;if(r===n)return e;t=null!==(s=t)&&void 0!==s?s:Vl(e);const i=t.get(r);return Wo(i)?void 0:(Bc(i)?((e,t,r)=>{const n=r.get(e);Bc(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(r,n,t):Uc(i)?((e,t,r)=>{const n=r.get(e);Uc(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(r,n,t):Vc(i)&&((e,t,r)=>{const n=r.get(e);Vc(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(r,n,t),e)}})),Hl=zl,Jl=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Il(e),Gl={EphemeralObject:["content"],EphemeralArray:["content"],...Nl},Wl=(e,t,{keyMap:r=Gl,...n}={})=>ql(e,t,{keyMap:r,nodeTypeGetter:Jl,nodePredicate:qn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Wl[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Gl,...r}={})=>ql[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:Jl,nodePredicate:qn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Kl=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Yl=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Xl=ml.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new Yl(t.content);return e.set(t,r),r}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new Kl(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}})),Ql=e=>_c(e)?Nc(e)||Dc(e)||Lc(e)||qc(e)?e.toValue():Wl(e,Xl()):e,Zl=vi(Ro(/~/g,"~0"),Ro(/\//g,"~1"),encodeURIComponent);const eu=class extends bl{};const tu=class extends eu{constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},ru=e=>{try{return 0===e.length?"":`/${e.map(Zl).join("/")}`}catch(t){throw new tu("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var nu=pi(Zn(1,vi(ps,eo("Number"))),isFinite);var su=Zn(1,nu);var iu=pi(Qo(Number.isFinite)?Zn(1,Us(Number.isFinite,Number)):su,xi(ms,[Math.floor,ro]));var ou=Zn(1,iu);const au=Qo(Number.isInteger)?Zn(1,Us(Number.isInteger,Number)):ou;const cu=ms("");const lu=Ai((function(e,t){return vi(_o(""),Ui(Ho(e)),co(""))(t)})),uu=vi(Ro(/~1/g,"/"),Ro(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const pu=class extends eu{constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},hu=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return lu("#",t)},fu=e=>{if(cu(e))return[];if(!No("/",e))throw new pu(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=vi(_o("/"),Cs(uu))(e);return gi(t)}catch(t){throw new pu(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const mu=class extends eu{constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},du=(e,t)=>{let r;try{r=fu(e)}catch(r){throw new mu(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:Tl(t),cause:r})}return r.reduce(((t,n,s)=>{if(Bc(t)){if(!t.hasKey(n))throw new mu(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Tl(t)});return t.get(n)}if(Uc(t)){if(!(n in t.content)||!au(Number(n)))throw new mu(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Tl(t)});return t.get(Number(n))}throw new mu(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:Tl(t)})}),t)};class yu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const gu=yu;class vu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const bu=vu;class xu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const Eu=xu;class wu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const ju=wu;class Ou extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const Su=Ou;class Pu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Au=Pu;class $u extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const ku=$u;class Tu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new yc.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new yc.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Tu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Cu=Tu;class Mu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Ru=Mu;class Iu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Fu=Iu;class _u extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Nc(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Nc(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Nu=_u;class Du extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const qu=Du;class Lu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const Bu=Lu;class Uu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Vu=Uu;class zu extends yc.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Hu=zu;class Ju extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Gu=Ju;class Wu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new yc.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Ku=Wu;class Yu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new yc.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new yc.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Yu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Xu=Yu;class Qu extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get 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)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Zu=Qu;class ep extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const tp=ep;class rp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const np=rp;class sp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new yc.hh(!1)}set required(e){this.set("required",e)}}const ip=sp;class op extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const ap=op;class cp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const lp=cp;const up=class extends vl{};class pp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const hp=pp;class fp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const mp=fp;class dp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const yp=dp;class gp extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const vp=gp,bp=(e,t)=>{const r=$i(e,t);return fo((e=>{if(cl(e)&&Yi("$ref",e)&&Ao(ea,"$ref",e)){const t=ho(["$ref"],e),n=lu("#/",t);return ho(n.split("/"),r)}return cl(e)?bp(e,r):e}),e)},xp=ml({props:{element:null},methods:{copyMetaAndAttributes(e,t){Xc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Ep=xp,wp=ml(Ep,{methods:{enter(e){return this.element=Tl(e),El}}});const jp=Ys(Go()),Op=e=>{if(_c(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Sp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Nl},Pp=ml(Ep,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return Oo(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=ho(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return jo(Qo,["visitors",...e],this.specObj)?ho(["visitors",...e],this.specObj):ho(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Wo(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?Tl(t):(ql(t,n,{keyMap:Sp,nodeTypeGetter:Op,...r}),n.element)}}}),Ap=ml(Pp,{props:{specPath:jp,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(((e,n,s)=>{if(Nc(n)&&r.includes(Ql(n))&&!this.ignoredFields.includes(Ql(n))){const r=this.toRefractedElement([...t,"fixedFields",Ql(n)],e),i=new yc.c6(Tl(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ql(n))||this.element.content.push(Tl(s))})),this.copyMetaAndAttributes(e,this.element),El}}}),$p=ml(Ap,wp,{props:{specPath:Ys(["document","objects","JSONSchema"])},init(){this.element=new hp}}),kp=wp,Tp=wp,Cp=wp,Mp=wp,Rp=wp,Ip=wp,Fp=wp,_p=wp,Np=wp,Dp=wp,qp=ml({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Lp=e=>Bc(e)&&e.hasKey("$ref"),Bp=ml(Pp,qp,wp,{methods:{ObjectElement(e){const t=Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),El},ArrayElement(e){return this.element=new yc.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),Up=wp,Vp=wp,zp=wp,Hp=wp,Jp=wp,Gp=ml(wp,{methods:{ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-required"),El}}});const Wp=fi(Zn(1,pi(tl,zi(nl,Qo))));const Kp=fi(ao);const Yp=Ks([ea,Wp,Kp]),Xp=ml(Pp,{props:{fieldPatternPredicate:Dn,specPath:jp,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Ql(t))&&this.fieldPatternPredicate(Ql(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new yc.c6(Tl(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ql(t))||this.element.content.push(Tl(r))})),this.copyMetaAndAttributes(e,this.element),El}}}),Qp=ml(Xp,{props:{fieldPatternPredicate:Yp}}),Zp=ml(Qp,qp,wp,{props:{specPath:e=>Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-properties")}}),eh=ml(Qp,qp,wp,{props:{specPath:e=>Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-patternProperties")}}),th=ml(Qp,qp,wp,{props:{specPath:e=>Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-dependencies")}}),rh=ml(wp,{methods:{ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-enum"),El}}}),nh=ml(wp,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-type"),El},ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-type"),El}}}),sh=ml(Pp,qp,wp,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),ih=ml(Pp,qp,wp,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),oh=ml(Pp,qp,wp,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),ah=ml(Qp,qp,wp,{props:{specPath:e=>Lp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-definitions")}}),ch=wp,lh=wp,uh=wp,ph=wp,hh=wp,fh=ml(Pp,qp,wp,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),El}}}),mh=wp,dh=ml(Ap,wp,{props:{specPath:Ys(["document","objects","JSONReference"])},init(){this.element=new mp},methods:{ObjectElement(e){const t=Ap.compose.methods.ObjectElement.call(this,e);return Nc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),yh=ml(wp,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}});const gh=fi(ii);const vh=pi(Pc,Kp);function bh(e){return function(e){if(Array.isArray(e))return xh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return xh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return xh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function xh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var Eh=vi(Fo(hi((function(e,t){return e.length>t.length}))),Qi,Fs("length")),wh=Ai((function(e,t,r){var n=r.apply(void 0,bh(e));return gh(n)?Co(n):t}));const jh=no(vh,(function(e){var t=Eh(e);return Zn(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ws(wh(r),void 0,e)}))}),Go),Oh=ml(Pp,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>no(e,Ys(t),Go))),r=jh(t)(e);return this.element=this.toRefractedElement(r,e),El}}}),Sh=ml(Oh,{props:{alternator:[{predicate:Lp,specPath:["document","objects","JSONReference"]},{predicate:qn,specPath:["document","objects","JSONSchema"]}]}}),Ph={visitors:{value:wp,JSONSchemaOrJSONReferenceVisitor:Sh,document:{objects:{JSONSchema:{$visitor:$p,fixedFields:{id:kp,$schema:Tp,multipleOf:Cp,maximum:Mp,exclusiveMaximum:Rp,minimum:Ip,exclusiveMinimum:Fp,maxLength:_p,minLength:Np,pattern:Dp,additionalItems:Sh,items:Bp,maxItems:Up,minItems:Vp,uniqueItems:zp,maxProperties:Hp,minProperties:Jp,required:Gp,properties:Zp,additionalProperties:Sh,patternProperties:eh,dependencies:th,enum:rh,type:nh,allOf:sh,anyOf:ih,oneOf:oh,not:Sh,definitions:ah,title:ch,description:lh,default:uh,format:ph,base:hh,links:fh,media:{$ref:"#/visitors/document/objects/Media"},readOnly:mh}},JSONReference:{$visitor:dh,fixedFields:{$ref:yh}},Media:{$visitor:ml(Ap,wp,{props:{specPath:Ys(["document","objects","Media"])},init(){this.element=new yp}}),fixedFields:{binaryEncoding:wp,type:wp}},LinkDescription:{$visitor:ml(Ap,wp,{props:{specPath:Ys(["document","objects","LinkDescription"])},init(){this.element=new vp}}),fixedFields:{href:wp,rel:wp,title:wp,targetSchema:Sh,mediaType:wp,method:wp,encType:wp,schema:Sh}}}}}},Ah=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hp||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),$h=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mp||e(n)&&t("JSONReference",n)&&r("object",n))),kh=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yp||e(n)&&t("media",n)&&r("object",n))),Th=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vp||e(n)&&t("linkDescription",n)&&r("object",n))),Ch={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",hp),t.register("jSONReference",mp),t.register("media",yp),t.register("linkDescription",vp),t}},Mh=()=>{const e=pl(Ch);return{predicates:{...o,isStringElement:Nc},namespace:e}},Rh=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Ph}={})=>{const s=(0,yc.Qc)(e),i=bp(n),o=kc(t,[],i);return ql(s,o,{state:{specObj:i}}),Ll(o.element,r,{toolboxCreator:Mh,visitorOptions:{keyMap:Sp,nodeTypeGetter:Op}})},Ih=e=>(t,r={})=>Rh(t,{specPath:e,...r});hp.refract=Ih(["visitors","document","objects","JSONSchema","$visitor"]),mp.refract=Ih(["visitors","document","objects","JSONReference","$visitor"]),yp.refract=Ih(["visitors","document","objects","Media","$visitor"]),vp.refract=Ih(["visitors","document","objects","LinkDescription","$visitor"]);const Fh=class extends hp{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new up("idProp getter in Schema class is not not supported.")}set idProp(e){throw new up("idProp setter in Schema class is not not supported.")}get $schema(){throw new up("$schema getter in Schema class is not not supported.")}set $schema(e){throw new up("$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 up("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new up("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new up("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new up("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 up("definitions getter in Schema class is not not supported.")}set definitions(e){throw new up("definitions setter in Schema class is not not supported.")}get base(){throw new up("base getter in Schema class is not not supported.")}set base(e){throw new up("base setter in Schema class is not not supported.")}get links(){throw new up("links getter in Schema class is not not supported.")}set links(e){throw new up("links setter in Schema class is not not supported.")}get media(){throw new up("media getter in Schema class is not not supported.")}set media(e){throw new up("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 _h extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Nh=_h;class Dh extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const qh=Dh;class Lh extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const Bh=Lh;class Uh extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Vh=Uh;class zh extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Hh=zh;class Jh extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Gh=Jh,Wh=ml({props:{element:null},methods:{copyMetaAndAttributes(e,t){Xc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Kh=Wh,Yh=e=>{if(_c(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Xh={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"],...Nl},Qh=ml(Kh,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return Oo(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=ho(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return jo(Qo,["visitors",...e],this.specObj)?ho(["visitors",...e],this.specObj):ho(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Wo(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?Tl(t):(ql(t,n,{keyMap:Xh,nodeTypeGetter:Yh,...r}),n.element)}}}),Zh=e=>Bc(e)&&e.hasKey("openapi")&&e.hasKey("info"),ef=e=>Bc(e)&&e.hasKey("name")&&e.hasKey("in"),tf=e=>Bc(e)&&e.hasKey("$ref"),rf=e=>Bc(e)&&e.hasKey("content"),nf=e=>Bc(e)&&e.hasKey("description"),sf=Bc,of=Bc,af=e=>Nc(e.key)&&No("x-",Ql(e.key)),cf=ml(Qh,{props:{specPath:jp,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:af},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Nc(n)&&r.includes(Ql(n))&&!this.ignoredFields.includes(Ql(n))){const r=this.toRefractedElement([...t,"fixedFields",Ql(n)],e),i=new yc.c6(Tl(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Ql(n))||this.element.content.push(Tl(s))})),this.copyMetaAndAttributes(e,this.element),El}}}),lf=ml(Kh,{methods:{enter(e){return this.element=Tl(e),El}}}),uf=ml(cf,lf,{props:{specPath:Ys(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Gu},methods:{ObjectElement(e){return this.unrefractedElement=e,cf.compose.methods.ObjectElement.call(this,e)}}}),pf=ml(Qh,lf,{methods:{StringElement(e){const t=new Hu(Ql(e));return this.copyMetaAndAttributes(e,t),this.element=t,El}}}),hf=ml(Qh,{methods:{MemberElement(e){return this.element=Tl(e),this.element.classes.push("specification-extension"),El}}}),ff=ml(cf,lf,{props:{specPath:Ys(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ru}}),mf=lf,df=lf,yf=lf,gf=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("api-version"),this.element.classes.push("version"),El}}}),vf=ml(cf,lf,{props:{specPath:Ys(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new Eu}}),bf=lf,xf=lf,Ef=lf,wf=ml(cf,lf,{props:{specPath:Ys(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fu}}),jf=lf,Of=lf,Sf=ml(cf,lf,{props:{specPath:Ys(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Nu},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return(Nc(this.element.operationId)||Nc(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Pf=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}}),Af=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}}),$f=ml(Qh,{props:{fieldPatternPredicate:Dn,specPath:jp,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:af},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(Ql(t))&&this.fieldPatternPredicate(Ql(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new yc.c6(Tl(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Ql(t))||this.element.content.push(Tl(r))})),this.copyMetaAndAttributes(e,this.element),El}}}),kf=ml($f,{props:{fieldPatternPredicate:Yp}});class Tf extends yc.Sb{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Tf.primaryClass)}}const Cf=Tf,Mf=ml(kf,lf,{props:{specPath:Ys(["value"])},init(){this.element=new Cf}}),Rf=lf,If=lf,Ff=ml(cf,lf,{props:{specPath:Ys(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bh}}),_f=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("server-url"),El}}}),Nf=lf;class Df extends yc.ON{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Df.primaryClass)}}const qf=Df,Lf=ml(Qh,lf,{init(){this.element=new qf},methods:{ArrayElement(e){return e.forEach((e=>{const t=sf(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),Bf=ml(cf,lf,{props:{specPath:Ys(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vh}}),Uf=lf,Vf=lf,zf=lf;class Hf extends yc.Sb{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Hf.primaryClass)}}const Jf=Hf,Gf=ml(kf,lf,{props:{specPath:Ys(["document","objects","ServerVariable"])},init(){this.element=new Jf}}),Wf=ml(cf,lf,{props:{specPath:Ys(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new qu}}),Kf=ml(Qh,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>no(e,Ys(t),Go))),r=jh(t)(e);return this.element=this.toRefractedElement(r,e),El}}}),Yf=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gu||e(n)&&t("callback",n)&&r("object",n))),Xf=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bu||e(n)&&t("components",n)&&r("object",n))),Qf=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Eu||e(n)&&t("contact",n)&&r("object",n))),Zf=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Au||e(n)&&t("example",n)&&r("object",n))),em=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ku||e(n)&&t("externalDocumentation",n)&&r("object",n))),tm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cu||e(n)&&t("header",n)&&r("object",n))),rm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ru||e(n)&&t("info",n)&&r("object",n))),nm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fu||e(n)&&t("license",n)&&r("object",n))),sm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nu||e(n)&&t("link",n)&&r("object",n))),im=e=>{if(!sm(e))return!1;if(!Nc(e.operationRef))return!1;const t=Ql(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},om=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hu||e(n)&&t("openapi",n)&&r("string",n))),am=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Gu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),cm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ku||e(n)&&t("operation",n)&&r("object",n))),lm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xu||e(n)&&t("parameter",n)&&r("object",n))),um=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zu||e(n)&&t("pathItem",n)&&r("object",n))),pm=e=>{if(!um(e))return!1;if(!Nc(e.$ref))return!1;const t=Ql(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},hm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tp||e(n)&&t("paths",n)&&r("object",n))),fm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof np||e(n)&&t("reference",n)&&r("object",n))),mm=e=>{if(!fm(e))return!1;if(!Nc(e.$ref))return!1;const t=Ql(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},dm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ip||e(n)&&t("requestBody",n)&&r("object",n))),ym=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ap||e(n)&&t("response",n)&&r("object",n))),gm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof lp||e(n)&&t("responses",n)&&r("object",n))),vm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fh||e(n)&&t("schema",n)&&r("object",n))),bm=e=>Lc(e)&&e.classes.includes("boolean-json-schema"),xm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nh||e(n)&&t("securityRequirement",n)&&r("object",n))),Em=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bh||e(n)&&t("server",n)&&r("object",n))),wm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vh||e(n)&&t("serverVariable",n)&&r("object",n))),jm=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qu||e(n)&&t("mediaType",n)&&r("object",n))),Om=ml(Kf,lf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Kf.compose.methods.enter.call(this,e);return fm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Sm=lf,Pm=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new yc.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Am extends yc.Sb{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Am.primaryClass),this.classes.push("examples")}}const $m=Am,km=ml(Pm,{init(){this.element=new $m}});class Tm extends yc.Sb{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(Tm.primaryClass)}}const Cm=Tm,Mm=ml(kf,lf,{props:{specPath:Ys(["document","objects","Encoding"])},init(){this.element=new Cm}}),Rm=ml(kf,lf,{props:{specPath:Ys(["value"])},init(){this.element=new Nh}});class Im extends yc.ON{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Im.primaryClass)}}const Fm=Im,_m=ml(Qh,lf,{init(){this.element=new Fm},methods:{ArrayElement(e){return e.forEach((e=>{if(Bc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push(Tl(e))})),this.copyMetaAndAttributes(e,this.element),El}}}),Nm=ml(cf,lf,{props:{specPath:Ys(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new bu}}),Dm=ml(cf,lf,{props:{specPath:Ys(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hh}}),qm=lf,Lm=lf,Bm=ml(cf,lf,{props:{specPath:Ys(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new np},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return Nc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Um=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}}),Vm=ml(cf,lf,{props:{specPath:Ys(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Xu},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return Bc(this.element.contentProp)&&this.element.contentProp.filter(jm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ql(t))})),t}}}),zm=lf,Hm=lf,Jm=lf,Gm=lf,Wm=lf,Km=lf,Ym=lf,Xm=lf,Qm=lf,Zm=ml(Kf,lf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Kf.compose.methods.enter.call(this,e);return fm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ed=ml(cf,lf,{props:{specPath:Ys(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cu}}),td=lf,rd=lf,nd=lf,sd=lf,id=lf,od=lf,ad=lf,cd=ml(Kf,lf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Kf.compose.methods.enter.call(this,e);return fm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),ld=lf;class ud extends yc.Sb{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ud.primaryClass),this.classes.push("examples")}}const pd=ud,hd=ml(Pm,{init(){this.element=new pd}}),fd=ml(kf,lf,{props:{specPath:Ys(["document","objects","MediaType"])},init(){this.element=new yc.Sb,this.element.classes.push("content")}});class md extends yc.Sb{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(md.primaryClass),this.classes.push("content")}}const dd=md,yd=ml(fd,{init(){this.element=new dd}}),gd=ml(cf,lf,{props:{specPath:Ys(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Fh}}),{allOf:vd}=Ph.visitors.document.objects.JSONSchema.fixedFields,bd=ml(vd,{methods:{ArrayElement(e){const t=vd.compose.methods.ArrayElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:xd}=Ph.visitors.document.objects.JSONSchema.fixedFields,Ed=ml(xd,{methods:{ArrayElement(e){const t=xd.compose.methods.ArrayElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:wd}=Ph.visitors.document.objects.JSONSchema.fixedFields,jd=ml(wd,{methods:{ArrayElement(e){const t=wd.compose.methods.ArrayElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:Od}=Ph.visitors.document.objects.JSONSchema.fixedFields,Sd=ml(Od,{methods:{ObjectElement(e){const t=Od.compose.methods.ObjectElement.call(this,e);return fm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=Tl(e),El}}}),{properties:Pd}=Ph.visitors.document.objects.JSONSchema.fixedFields,Ad=ml(Pd,{methods:{ObjectElement(e){const t=Pd.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:$d}=Ph.visitors.document.objects.JSONSchema.fixedFields,kd=ml($d,{methods:{ArrayElement(e){return this.element=Tl(e),El}}}),Td=lf,Cd=lf,Md=lf,Rd=lf,{JSONSchemaOrJSONReferenceVisitor:Id}=Ph.visitors,Fd=ml(Id,{methods:{ObjectElement(e){const t=Id.compose.methods.enter.call(this,e);return fm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),_d=ml(cf,lf,{props:{specPath:Ys(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new ju}}),Nd=lf;class Dd extends yc.Sb{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Dd.primaryClass)}}const qd=Dd,Ld=ml(kf,lf,{props:{specPath:Ys(["value"])},init(){this.element=new qd}}),Bd=ml(cf,lf,{props:{specPath:Ys(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Gh}}),Ud=lf,Vd=lf,zd=lf,Hd=lf,Jd=lf,Gd=lf;class Wd extends yc.Sb{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Wd.primaryClass),this.classes.push("examples")}}const Kd=Wd,Yd=ml(Pm,{init(){this.element=new Kd}});class Xd extends yc.Sb{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Xd.primaryClass),this.classes.push("content")}}const Qd=Xd,Zd=ml(fd,{init(){this.element=new Qd}});class ey extends yc.Sb{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(ey.primaryClass)}}const ty=ey,ry=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new ty},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class ny extends yc.Sb{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(ny.primaryClass)}}const sy=ny,iy=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new sy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(ym).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Ql(t))})),t}}});class oy extends yc.Sb{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(oy.primaryClass),this.classes.push("parameters")}}const ay=oy,cy=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new ay},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class ly extends yc.Sb{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ly.primaryClass),this.classes.push("examples")}}const uy=ly,py=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new uy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class hy extends yc.Sb{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(hy.primaryClass)}}const fy=hy,my=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new fy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class dy extends yc.Sb{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(dy.primaryClass)}}const yy=dy,gy=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new yy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(tm).forEach(((e,t)=>{e.setMetaProperty("header-name",Ql(t))})),t}}});class vy extends yc.Sb{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(vy.primaryClass)}}const by=vy,xy=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new by},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class Ey extends yc.Sb{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(Ey.primaryClass)}}const wy=Ey,jy=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new wy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class Oy extends yc.Sb{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(Oy.primaryClass)}}const Sy=Oy,Py=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Sy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Ay=ml(cf,lf,{props:{specPath:Ys(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Au},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return Nc(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),$y=lf,ky=lf,Ty=lf,Cy=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}}),My=ml(cf,lf,{props:{specPath:Ys(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new ku}}),Ry=lf,Iy=lf,Fy=ml(cf,lf,{props:{specPath:Ys(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new Su},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return Bc(this.element.headers)&&this.element.headers.filter(tm).forEach(((e,t)=>{e.setMetaProperty("header-name",Ql(t))})),t}}}),_y=lf;class Ny extends yc.Sb{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Ny.primaryClass)}}const Dy=Ny,qy=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Dy},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!tm(e))return;const r=Ql(t);e.setMetaProperty("headerName",r)})),t}}}),Ly=lf,By=lf,Uy=lf,Vy=ml($f,lf,{props:{fieldPatternPredicate:qo(/^\/(?<path>.*)$/),specPath:Ys(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new tp},methods:{ObjectElement(e){const t=$f.compose.methods.ObjectElement.call(this,e);return this.element.filter(um).forEach(((e,t)=>{e.setMetaProperty("path",Tl(t))})),t}}}),zy=ml(cf,lf,{props:{specPath:Ys(["document","objects","RequestBody"])},init(){this.element=new ip},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return Bc(this.element.contentProp)&&this.element.contentProp.filter(jm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ql(t))})),t}}}),Hy=lf;class Jy extends yc.Sb{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Jy.primaryClass),this.classes.push("content")}}const Gy=Jy,Wy=ml(fd,{init(){this.element=new Gy}}),Ky=lf,Yy=ml($f,lf,{props:{fieldPatternPredicate:qo(/{(?<expression>.*)}/),specPath:Ys(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new gu},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(um).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Ql(t))})),t}}}),Xy=ml(cf,lf,{props:{specPath:Ys(["document","objects","Response"])},init(){this.element=new ap},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return Bc(this.element.contentProp)&&this.element.contentProp.filter(jm).forEach(((e,t)=>{e.setMetaProperty("media-type",Ql(t))})),Bc(this.element.headers)&&this.element.headers.filter(tm).forEach(((e,t)=>{e.setMetaProperty("header-name",Ql(t))})),t}}}),Qy=lf;class Zy extends yc.Sb{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Zy.primaryClass)}}const eg=Zy,tg=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new eg},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!tm(e))return;const r=Ql(t);e.setMetaProperty("header-name",r)})),t}}});class rg extends yc.Sb{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(rg.primaryClass),this.classes.push("content")}}const ng=rg,sg=ml(fd,{init(){this.element=new ng}});class ig extends yc.Sb{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(ig.primaryClass)}}const og=ig,ag=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new og},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),cg=ml(cf,$f,{props:{specPathFixedFields:jp,specPathPatternedFields:jp},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Mi(e.keys(),t)],cf.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,$f.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return El}}}),lg=ml(cg,lf,{props:{specPathFixedFields:Ys(["document","objects","Responses"]),specPathPatternedFields:e=>tf(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:qo(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${To(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new lp},methods:{ObjectElement(e){const t=cg.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(ym).forEach(((e,t)=>{const r=Tl(t);this.fieldPatternPredicate(Ql(r))&&e.setMetaProperty("http-status-code",r)})),t}}}),ug=ml(Kf,lf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Kf.compose.methods.enter.call(this,e);return fm(this.element)?this.element.setMetaProperty("referenced-element","response"):ym(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),pg=ml(cf,lf,{props:{specPath:Ys(["document","objects","Operation"])},init(){this.element=new Ku}});class hg extends yc.ON{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(hg.primaryClass)}}const fg=hg,mg=ml(lf,{init(){this.element=new fg},methods:{ArrayElement(e){return this.element=this.element.concat(Tl(e)),El}}}),dg=lf,yg=lf,gg=lf;class vg extends yc.ON{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(vg.primaryClass),this.classes.push("parameters")}}const bg=vg,xg=ml(Qh,lf,{init(){this.element=new yc.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=tf(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);fm(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),Eg=ml(xg,{init(){this.element=new bg}}),wg=ml(Kf,{props:{alternator:[{predicate:tf,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Kf.compose.methods.enter.call(this,e);return fm(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class jg extends yc.Sb{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(jg.primaryClass)}}const Og=jg,Sg=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Og},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(fm).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Pg=lf;class Ag extends yc.ON{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Ag.primaryClass),this.classes.push("security")}}const $g=Ag,kg=ml(Qh,lf,{init(){this.element=new $g},methods:{ArrayElement(e){return e.forEach((e=>{const t=Bc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}});class Tg extends yc.ON{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Tg.primaryClass),this.classes.push("servers")}}const Cg=Tg,Mg=ml(Lf,{init(){this.element=new Cg}}),Rg=ml(cf,lf,{props:{specPath:Ys(["document","objects","PathItem"])},init(){this.element=new Zu},methods:{ObjectElement(e){const t=cf.compose.methods.ObjectElement.call(this,e);return this.element.filter(cm).forEach(((e,t)=>{const r=Tl(t);r.content=Ql(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Nc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Ig=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}}),Fg=lf,_g=lf;class Ng extends yc.ON{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ng.primaryClass),this.classes.push("servers")}}const Dg=Ng,qg=ml(Lf,{init(){this.element=new Dg}});class Lg extends yc.ON{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(Lg.primaryClass),this.classes.push("parameters")}}const Bg=Lg,Ug=ml(xg,{init(){this.element=new Bg}}),Vg=ml(cf,lf,{props:{specPath:Ys(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new qh}}),zg=lf,Hg=lf,Jg=lf,Gg=lf,Wg=lf,Kg=lf,Yg=lf,Xg=ml(cf,lf,{props:{specPath:Ys(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vu}}),Qg=ml(cf,lf,{props:{specPath:Ys(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bu}}),Zg=lf,ev=lf,tv=lf;class rv extends yc.Sb{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(rv.primaryClass)}}const nv=rv,sv=ml(kf,lf,{props:{specPath:Ys(["value"])},init(){this.element=new nv}});class iv extends yc.ON{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(iv.primaryClass)}}const ov=iv,av=ml(Qh,lf,{init(){this.element=new ov},methods:{ArrayElement(e){return e.forEach((e=>{const t=of(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),El}}}),{fixedFields:cv}=Ph.visitors.document.objects.JSONSchema,lv={visitors:{value:lf,document:{objects:{OpenApi:{$visitor:uf,fixedFields:{openapi:pf,info:{$ref:"#/visitors/document/objects/Info"},servers:Lf,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:_m,tags:av,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:ff,fixedFields:{title:mf,description:df,termsOfService:yf,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:gf}},Contact:{$visitor:vf,fixedFields:{name:bf,url:xf,email:Ef}},License:{$visitor:wf,fixedFields:{name:jf,url:Of}},Server:{$visitor:Ff,fixedFields:{url:_f,description:Nf,variables:Gf}},ServerVariable:{$visitor:Bf,fixedFields:{enum:Uf,default:Vf,description:zf}},Components:{$visitor:Nm,fixedFields:{schemas:ry,responses:iy,parameters:cy,examples:py,requestBodies:my,headers:gy,securitySchemes:xy,links:jy,callbacks:Py}},Paths:{$visitor:Vy},PathItem:{$visitor:Rg,fixedFields:{$ref:Ig,summary:Fg,description:_g,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:qg,parameters:Ug}},Operation:{$visitor:pg,fixedFields:{tags:mg,summary:dg,description:yg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:gg,parameters:Eg,requestBody:wg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Sg,deprecated:Pg,security:kg,servers:Mg}},ExternalDocumentation:{$visitor:My,fixedFields:{description:Ry,url:Iy}},Parameter:{$visitor:Vm,fixedFields:{name:zm,in:Hm,description:Jm,required:Gm,deprecated:Wm,allowEmptyValue:Km,style:Ym,explode:Xm,allowReserved:Qm,schema:Zm,example:Gd,examples:Yd,content:Zd}},RequestBody:{$visitor:zy,fixedFields:{description:Hy,content:Wy,required:Ky}},MediaType:{$visitor:Wf,fixedFields:{schema:Om,example:Sm,examples:km,encoding:Mm}},Encoding:{$visitor:Fy,fixedFields:{contentType:_y,headers:qy,style:Ly,explode:By,allowReserved:Uy}},Responses:{$visitor:lg,fixedFields:{default:ug}},Response:{$visitor:Xy,fixedFields:{description:Qy,headers:tg,content:sg,links:ag}},Callback:{$visitor:Yy},Example:{$visitor:Ay,fixedFields:{summary:$y,description:ky,value:Ty,externalValue:Cy}},Link:{$visitor:Sf,fixedFields:{operationRef:Pf,operationId:Af,parameters:Mf,requestBody:Rf,description:If,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:ed,fixedFields:{description:td,required:rd,deprecated:nd,allowEmptyValue:sd,style:id,explode:od,allowReserved:ad,schema:cd,example:ld,examples:hd,content:yd}},Tag:{$visitor:Dm,fixedFields:{name:qm,description:Lm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Bm,fixedFields:{$ref:Um}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:gd,fixedFields:{title:cv.title,multipleOf:cv.multipleOf,maximum:cv.maximum,exclusiveMaximum:cv.exclusiveMaximum,minimum:cv.minimum,exclusiveMinimum:cv.exclusiveMinimum,maxLength:cv.maxLength,minLength:cv.minLength,pattern:cv.pattern,maxItems:cv.maxItems,minItems:cv.minItems,uniqueItems:cv.uniqueItems,maxProperties:cv.maxProperties,minProperties:cv.minProperties,required:cv.required,enum:cv.enum,type:kd,allOf:bd,anyOf:Ed,oneOf:jd,not:Fd,items:Sd,properties:Ad,additionalProperties:Fd,description:cv.description,format:cv.format,default:cv.default,nullable:Td,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:Cd,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Md,deprecated:Rd}},Discriminator:{$visitor:_d,fixedFields:{propertyName:Nd,mapping:Ld}},XML:{$visitor:Bd,fixedFields:{name:Ud,namespace:Vd,prefix:zd,attribute:Hd,wrapped:Jd}},SecurityScheme:{$visitor:Vg,fixedFields:{type:zg,description:Hg,name:Jg,in:Gg,scheme:Wg,bearerFormat:Kg,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Yg}},OAuthFlows:{$visitor:Xg,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:Qg,fixedFields:{authorizationUrl:Zg,tokenUrl:ev,refreshUrl:tv,scopes:sv}},SecurityRequirement:{$visitor:Rm}},extension:{$visitor:hf}}}},uv={namespace:e=>{const{base:t}=e;return t.register("callback",gu),t.register("components",bu),t.register("contact",Eu),t.register("discriminator",ju),t.register("encoding",Su),t.register("example",Au),t.register("externalDocumentation",ku),t.register("header",Cu),t.register("info",Ru),t.register("license",Fu),t.register("link",Nu),t.register("mediaType",qu),t.register("oAuthFlow",Bu),t.register("oAuthFlows",Vu),t.register("openapi",Hu),t.register("openApi3_0",Gu),t.register("operation",Ku),t.register("parameter",Xu),t.register("pathItem",Zu),t.register("paths",tp),t.register("reference",np),t.register("requestBody",ip),t.register("response",ap),t.register("responses",lp),t.register("schema",Fh),t.register("securityRequirement",Nh),t.register("securityScheme",qh),t.register("server",Bh),t.register("serverVariable",Vh),t.register("tag",Hh),t.register("xml",Gh),t}},pv=()=>{const e=pl(uv);return{predicates:{...a,...c,isStringElement:Nc},namespace:e}},hv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,yc.Qc)(e),s=bp(lv),i=kc(t,[],s);return ql(n,i,{state:{specObj:s}}),Ll(i.element,r,{toolboxCreator:pv,visitorOptions:{keyMap:Xh,nodeTypeGetter:Yh}})},fv=e=>(t,r={})=>hv(t,{specPath:e,...r});gu.refract=fv(["visitors","document","objects","Callback","$visitor"]),bu.refract=fv(["visitors","document","objects","Components","$visitor"]),Eu.refract=fv(["visitors","document","objects","Contact","$visitor"]),Au.refract=fv(["visitors","document","objects","Example","$visitor"]),ju.refract=fv(["visitors","document","objects","Discriminator","$visitor"]),Su.refract=fv(["visitors","document","objects","Encoding","$visitor"]),ku.refract=fv(["visitors","document","objects","ExternalDocumentation","$visitor"]),Cu.refract=fv(["visitors","document","objects","Header","$visitor"]),Ru.refract=fv(["visitors","document","objects","Info","$visitor"]),Fu.refract=fv(["visitors","document","objects","License","$visitor"]),Nu.refract=fv(["visitors","document","objects","Link","$visitor"]),qu.refract=fv(["visitors","document","objects","MediaType","$visitor"]),Bu.refract=fv(["visitors","document","objects","OAuthFlow","$visitor"]),Vu.refract=fv(["visitors","document","objects","OAuthFlows","$visitor"]),Hu.refract=fv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Gu.refract=fv(["visitors","document","objects","OpenApi","$visitor"]),Ku.refract=fv(["visitors","document","objects","Operation","$visitor"]),Xu.refract=fv(["visitors","document","objects","Parameter","$visitor"]),Zu.refract=fv(["visitors","document","objects","PathItem","$visitor"]),tp.refract=fv(["visitors","document","objects","Paths","$visitor"]),np.refract=fv(["visitors","document","objects","Reference","$visitor"]),ip.refract=fv(["visitors","document","objects","RequestBody","$visitor"]),ap.refract=fv(["visitors","document","objects","Response","$visitor"]),lp.refract=fv(["visitors","document","objects","Responses","$visitor"]),Fh.refract=fv(["visitors","document","objects","Schema","$visitor"]),Nh.refract=fv(["visitors","document","objects","SecurityRequirement","$visitor"]),qh.refract=fv(["visitors","document","objects","SecurityScheme","$visitor"]),Bh.refract=fv(["visitors","document","objects","Server","$visitor"]),Vh.refract=fv(["visitors","document","objects","ServerVariable","$visitor"]),Hh.refract=fv(["visitors","document","objects","Tag","$visitor"]),Gh.refract=fv(["visitors","document","objects","XML","$visitor"]);const mv=class extends gu{};const dv=class extends bu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const yv=class extends Eu{};const gv=class extends ju{};const vv=class extends Su{};const bv=class extends Au{};const xv=class extends ku{};const Ev=class extends Cu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const wv=class extends Ru{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)}};class jv extends yc.RP{static default=new jv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const Ov=jv;const Sv=class extends Fu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Pv=class extends Nu{};const Av=class extends qu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const $v=class extends Bu{};const kv=class extends Vu{};const Tv=class extends Hu{};class Cv extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Mv=Cv;const Rv=class extends Ku{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Iv=class extends Xu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Fv=class extends Zu{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)}};const _v=class extends tp{};class Nv extends np{}Object.defineProperty(Nv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Nv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Dv=Nv;const qv=class extends ip{};const Lv=class extends ap{};const Bv=class extends lp{};class Uv extends yc.Sb{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Vv=Uv;const zv=class extends Nh{};const Hv=class extends qh{};const Jv=class extends Bh{};const Gv=class extends Vh{};const Wv=class extends Hh{};const Kv=class extends Gh{},Yv=ml(cf,lf,{props:{specPath:Ys(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Mv,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,cf.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:Xv}}}}}=lv,Qv=ml(Xv,{init(){this.element=new wv}}),Zv=lf,{visitors:{document:{objects:{Contact:{$visitor:eb}}}}}=lv,tb=ml(eb,{init(){this.element=new yv}}),{visitors:{document:{objects:{License:{$visitor:rb}}}}}=lv,nb=ml(rb,{init(){this.element=new Sv}}),sb=lf,{visitors:{document:{objects:{Link:{$visitor:ib}}}}}=lv,ob=ml(ib,{init(){this.element=new Pv}}),ab=ml(Qh,lf,{methods:{StringElement(e){const t=new Ov(Ql(e));return this.copyMetaAndAttributes(e,t),this.element=t,El}}}),{visitors:{document:{objects:{Server:{$visitor:cb}}}}}=lv,lb=ml(cb,{init(){this.element=new Jv}}),{visitors:{document:{objects:{ServerVariable:{$visitor:ub}}}}}=lv,pb=ml(ub,{init(){this.element=new Gv}}),{visitors:{document:{objects:{MediaType:{$visitor:hb}}}}}=lv,fb=ml(hb,{init(){this.element=new Av}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:mb}}}}}=lv,db=ml(mb,{init(){this.element=new zv}}),{visitors:{document:{objects:{Components:{$visitor:yb}}}}}=lv,gb=ml(yb,{init(){this.element=new dv}}),{visitors:{document:{objects:{Tag:{$visitor:vb}}}}}=lv,bb=ml(vb,{init(){this.element=new Wv}}),{visitors:{document:{objects:{Reference:{$visitor:xb}}}}}=lv,Eb=ml(xb,{init(){this.element=new Dv}}),wb=lf,jb=lf,{visitors:{document:{objects:{Parameter:{$visitor:Ob}}}}}=lv,Sb=ml(Ob,{init(){this.element=new Iv}}),{visitors:{document:{objects:{Header:{$visitor:Pb}}}}}=lv,Ab=ml(Pb,{init(){this.element=new Ev}}),$b=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("callback",n)&&r("object",n))),kb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dv||e(n)&&t("components",n)&&r("object",n))),Tb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yv||e(n)&&t("contact",n)&&r("object",n))),Cb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("example",n)&&r("object",n))),Mb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xv||e(n)&&t("externalDocumentation",n)&&r("object",n))),Rb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("header",n)&&r("object",n))),Ib=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wv||e(n)&&t("info",n)&&r("object",n))),Fb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ov||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),_b=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sv||e(n)&&t("license",n)&&r("object",n))),Nb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pv||e(n)&&t("link",n)&&r("object",n))),Db=e=>{if(!Nb(e))return!1;if(!Nc(e.operationRef))return!1;const t=Ql(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},qb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tv||e(n)&&t("openapi",n)&&r("string",n))),Lb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Mv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),Bb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rv||e(n)&&t("operation",n)&&r("object",n))),Ub=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Iv||e(n)&&t("parameter",n)&&r("object",n))),Vb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Fv||e(n)&&t("pathItem",n)&&r("object",n))),zb=e=>{if(!Vb(e))return!1;if(!Nc(e.$ref))return!1;const t=Ql(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Hb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _v||e(n)&&t("paths",n)&&r("object",n))),Jb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dv||e(n)&&t("reference",n)&&r("object",n))),Gb=e=>{if(!Jb(e))return!1;if(!Nc(e.$ref))return!1;const t=Ql(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Wb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qv||e(n)&&t("requestBody",n)&&r("object",n))),Kb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lv||e(n)&&t("response",n)&&r("object",n))),Yb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bv||e(n)&&t("responses",n)&&r("object",n))),Xb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vv||e(n)&&t("schema",n)&&r("object",n))),Qb=e=>Lc(e)&&e.classes.includes("boolean-json-schema"),Zb=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof zv||e(n)&&t("securityRequirement",n)&&r("object",n))),ex=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jv||e(n)&&t("server",n)&&r("object",n))),tx=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gv||e(n)&&t("serverVariable",n)&&r("object",n))),rx=Fc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Av||e(n)&&t("mediaType",n)&&r("object",n))),nx=ml({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),sx=ml(cf,nx,lf,{props:{specPath:Ys(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&Fb(this.openApiSemanticElement.jsonSchemaDialect)?Ql(this.openApiSemanticElement.jsonSchemaDialect):null!==this.openApiGenericElement&&Nc(this.openApiGenericElement.get("jsonSchemaDialect"))?Ql(this.openApiGenericElement.get("jsonSchemaDialect")):Ql(Ov.default),e},t=t=>{if(el(this.parent)&&!Nc(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(Xb(this.parent)&&!Nc(t.get("$schema"))){const e=$i(Ql(this.parent.meta.get("inherited$schema")),Ql(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}},r=e=>{const t=null!==this.parent?Tl(this.parent.getMetaProperty("inherited$id",[])):new yc.ON,r=Ql(e.get("$id"));Yp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)};this.ObjectElement=function(e){this.element=new Vv,t(e),r(e),this.parent=this.element;const n=cf.compose.methods.ObjectElement.call(this,e);return Nc(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=Tl(e),this.element.classes.push("boolean-json-schema"),El}}}),ix=lf,ox=ml(lf,{methods:{ObjectElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-$vocabulary"),El}}}),ax=lf,cx=lf,lx=lf,ux=lf,px=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("reference-value"),El}}}),hx=ml(kf,nx,lf,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-$defs")}}),fx=lf,mx=ml(Qh,nx,lf,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Bc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Tl(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),El}}}),dx=ml(Qh,nx,lf,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Bc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Tl(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),El}}}),yx=ml(Qh,nx,lf,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(Bc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Tl(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),El}}}),gx=ml(kf,nx,lf,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),vx=ml(Qh,nx,lf,{init(){this.element=new yc.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(Bc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=Tl(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),El}}}),bx=ml(kf,nx,lf,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-properties")}}),xx=ml(kf,nx,lf,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new yc.Sb,this.element.classes.push("json-schema-patternProperties")}}),Ex=ml(lf,{methods:{StringElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-type"),El},ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-type"),El}}}),wx=ml(lf,{methods:{ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-enum"),El}}}),jx=lf,Ox=lf,Sx=lf,Px=lf,Ax=lf,$x=lf,kx=lf,Tx=lf,Cx=lf,Mx=lf,Rx=lf,Ix=lf,Fx=lf,_x=lf,Nx=lf,Dx=lf,qx=ml(lf,{methods:{ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-required"),El}}}),Lx=ml(lf,{methods:{ObjectElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-dependentRequired"),El}}}),Bx=lf,Ux=lf,Vx=lf,zx=lf,Hx=lf,Jx=lf,Gx=ml(lf,{methods:{ArrayElement(e){return this.element=Tl(e),this.element.classes.push("json-schema-examples"),El}}}),Wx=lf,Kx=lf,Yx=lf,Xx=lf,{visitors:{document:{objects:{Discriminator:{$visitor:Qx}}}}}=lv,Zx=ml(Qx,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new gv}}),{visitors:{document:{objects:{XML:{$visitor:eE}}}}}=lv,tE=ml(eE,{init(){this.element=new Kv}}),rE=ml(kf,lf,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new ty}});class nE extends yc.Sb{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(nE.primaryClass)}}const sE=nE,iE=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new sE},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Jb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:oE}}}}}=lv,aE=ml(oE,{init(){this.element=new bv}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:cE}}}}}=lv,lE=ml(cE,{init(){this.element=new xv}}),{visitors:{document:{objects:{Encoding:{$visitor:uE}}}}}=lv,pE=ml(uE,{init(){this.element=new vv}}),{visitors:{document:{objects:{Paths:{$visitor:hE}}}}}=lv,fE=ml(hE,{init(){this.element=new _v}}),{visitors:{document:{objects:{RequestBody:{$visitor:mE}}}}}=lv,dE=ml(mE,{init(){this.element=new qv}}),{visitors:{document:{objects:{Callback:{$visitor:yE}}}}}=lv,gE=ml(yE,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new mv},methods:{ObjectElement(e){const t=yE.compose.methods.ObjectElement.call(this,e);return this.element.filter(Jb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:vE}}}}}=lv,bE=ml(vE,{init(){this.element=new Lv}}),{visitors:{document:{objects:{Responses:{$visitor:xE}}}}}=lv,EE=ml(xE,{init(){this.element=new Bv}}),{visitors:{document:{objects:{Operation:{$visitor:wE}}}}}=lv,jE=ml(wE,{init(){this.element=new Rv}}),{visitors:{document:{objects:{PathItem:{$visitor:OE}}}}}=lv,SE=ml(OE,{init(){this.element=new Fv}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:PE}}}}}=lv,AE=ml(PE,{init(){this.element=new Hv}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:$E}}}}}=lv,kE=ml($E,{init(){this.element=new kv}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:TE}}}}}=lv,CE=ml(TE,{init(){this.element=new $v}});class ME extends yc.Sb{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(ME.primaryClass)}}const RE=ME,IE=ml(kf,lf,{props:{specPath:e=>tf(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new RE},methods:{ObjectElement(e){const t=kf.compose.methods.ObjectElement.call(this,e);return this.element.filter(Jb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Vb).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Ql(t))})),t}}}),FE={visitors:{value:lv.visitors.value,document:{objects:{OpenApi:{$visitor:Yv,fixedFields:{openapi:lv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ab,servers:lv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:IE,components:{$ref:"#/visitors/document/objects/Components"},security:lv.visitors.document.objects.OpenApi.fixedFields.security,tags:lv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Qv,fixedFields:{title:lv.visitors.document.objects.Info.fixedFields.title,description:lv.visitors.document.objects.Info.fixedFields.description,summary:Zv,termsOfService:lv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:lv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:tb,fixedFields:{name:lv.visitors.document.objects.Contact.fixedFields.name,url:lv.visitors.document.objects.Contact.fixedFields.url,email:lv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:nb,fixedFields:{name:lv.visitors.document.objects.License.fixedFields.name,identifier:sb,url:lv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:lb,fixedFields:{url:lv.visitors.document.objects.Server.fixedFields.url,description:lv.visitors.document.objects.Server.fixedFields.description,variables:lv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:pb,fixedFields:{enum:lv.visitors.document.objects.ServerVariable.fixedFields.enum,default:lv.visitors.document.objects.ServerVariable.fixedFields.default,description:lv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:gb,fixedFields:{schemas:rE,responses:lv.visitors.document.objects.Components.fixedFields.responses,parameters:lv.visitors.document.objects.Components.fixedFields.parameters,examples:lv.visitors.document.objects.Components.fixedFields.examples,requestBodies:lv.visitors.document.objects.Components.fixedFields.requestBodies,headers:lv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:lv.visitors.document.objects.Components.fixedFields.securitySchemes,links:lv.visitors.document.objects.Components.fixedFields.links,callbacks:lv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:iE}},Paths:{$visitor:fE},PathItem:{$visitor:SE,fixedFields:{$ref:lv.visitors.document.objects.PathItem.fixedFields.$ref,summary:lv.visitors.document.objects.PathItem.fixedFields.summary,description:lv.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:lv.visitors.document.objects.PathItem.fixedFields.servers,parameters:lv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:jE,fixedFields:{tags:lv.visitors.document.objects.Operation.fixedFields.tags,summary:lv.visitors.document.objects.Operation.fixedFields.summary,description:lv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:lv.visitors.document.objects.Operation.fixedFields.operationId,parameters:lv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:lv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:lv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:lv.visitors.document.objects.Operation.fixedFields.deprecated,security:lv.visitors.document.objects.Operation.fixedFields.security,servers:lv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:lE,fixedFields:{description:lv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:lv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Sb,fixedFields:{name:lv.visitors.document.objects.Parameter.fixedFields.name,in:lv.visitors.document.objects.Parameter.fixedFields.in,description:lv.visitors.document.objects.Parameter.fixedFields.description,required:lv.visitors.document.objects.Parameter.fixedFields.required,deprecated:lv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:lv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:lv.visitors.document.objects.Parameter.fixedFields.style,explode:lv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:lv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:lv.visitors.document.objects.Parameter.fixedFields.example,examples:lv.visitors.document.objects.Parameter.fixedFields.examples,content:lv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:dE,fixedFields:{description:lv.visitors.document.objects.RequestBody.fixedFields.description,content:lv.visitors.document.objects.RequestBody.fixedFields.content,required:lv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:fb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:lv.visitors.document.objects.MediaType.fixedFields.example,examples:lv.visitors.document.objects.MediaType.fixedFields.examples,encoding:lv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:pE,fixedFields:{contentType:lv.visitors.document.objects.Encoding.fixedFields.contentType,headers:lv.visitors.document.objects.Encoding.fixedFields.headers,style:lv.visitors.document.objects.Encoding.fixedFields.style,explode:lv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:lv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:EE,fixedFields:{default:lv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:bE,fixedFields:{description:lv.visitors.document.objects.Response.fixedFields.description,headers:lv.visitors.document.objects.Response.fixedFields.headers,content:lv.visitors.document.objects.Response.fixedFields.content,links:lv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:gE},Example:{$visitor:aE,fixedFields:{summary:lv.visitors.document.objects.Example.fixedFields.summary,description:lv.visitors.document.objects.Example.fixedFields.description,value:lv.visitors.document.objects.Example.fixedFields.value,externalValue:lv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ob,fixedFields:{operationRef:lv.visitors.document.objects.Link.fixedFields.operationRef,operationId:lv.visitors.document.objects.Link.fixedFields.operationId,parameters:lv.visitors.document.objects.Link.fixedFields.parameters,requestBody:lv.visitors.document.objects.Link.fixedFields.requestBody,description:lv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Ab,fixedFields:{description:lv.visitors.document.objects.Header.fixedFields.description,required:lv.visitors.document.objects.Header.fixedFields.required,deprecated:lv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:lv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:lv.visitors.document.objects.Header.fixedFields.style,explode:lv.visitors.document.objects.Header.fixedFields.explode,allowReserved:lv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:lv.visitors.document.objects.Header.fixedFields.example,examples:lv.visitors.document.objects.Header.fixedFields.examples,content:lv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:bb,fixedFields:{name:lv.visitors.document.objects.Tag.fixedFields.name,description:lv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Eb,fixedFields:{$ref:lv.visitors.document.objects.Reference.fixedFields.$ref,summary:wb,description:jb}},Schema:{$visitor:sx,fixedFields:{$schema:ix,$vocabulary:ox,$id:ax,$anchor:cx,$dynamicAnchor:lx,$dynamicRef:ux,$ref:px,$defs:hx,$comment:fx,allOf:mx,anyOf:dx,oneOf:yx,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:gx,prefixItems:vx,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:bx,patternProperties:xx,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:Ex,enum:wx,const:jx,multipleOf:Ox,maximum:Sx,exclusiveMaximum:Px,minimum:Ax,exclusiveMinimum:$x,maxLength:kx,minLength:Tx,pattern:Cx,maxItems:Mx,minItems:Rx,uniqueItems:Ix,maxContains:Fx,minContains:_x,maxProperties:Nx,minProperties:Dx,required:qx,dependentRequired:Lx,title:Bx,description:Ux,default:Vx,deprecated:zx,readOnly:Hx,writeOnly:Jx,examples:Gx,format:Wx,contentEncoding:Kx,contentMediaType:Yx,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:Xx}},Discriminator:{$visitor:Zx,fixedFields:{propertyName:lv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:lv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:tE,fixedFields:{name:lv.visitors.document.objects.XML.fixedFields.name,namespace:lv.visitors.document.objects.XML.fixedFields.namespace,prefix:lv.visitors.document.objects.XML.fixedFields.prefix,attribute:lv.visitors.document.objects.XML.fixedFields.attribute,wrapped:lv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:AE,fixedFields:{type:lv.visitors.document.objects.SecurityScheme.fixedFields.type,description:lv.visitors.document.objects.SecurityScheme.fixedFields.description,name:lv.visitors.document.objects.SecurityScheme.fixedFields.name,in:lv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:lv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:lv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:lv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:kE,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:CE,fixedFields:{authorizationUrl:lv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:lv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:lv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:lv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:db}},extension:{$visitor:lv.visitors.document.extension.$visitor}}}},_E=e=>{if(_c(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},NE={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"],...Nl},DE={namespace:e=>{const{base:t}=e;return t.register("callback",mv),t.register("components",dv),t.register("contact",yv),t.register("discriminator",gv),t.register("encoding",vv),t.register("example",bv),t.register("externalDocumentation",xv),t.register("header",Ev),t.register("info",wv),t.register("jsonSchemaDialect",Ov),t.register("license",Sv),t.register("link",Pv),t.register("mediaType",Av),t.register("oAuthFlow",$v),t.register("oAuthFlows",kv),t.register("openapi",Tv),t.register("openApi3_1",Mv),t.register("operation",Rv),t.register("parameter",Iv),t.register("pathItem",Fv),t.register("paths",_v),t.register("reference",Dv),t.register("requestBody",qv),t.register("response",Lv),t.register("responses",Bv),t.register("schema",Vv),t.register("securityRequirement",zv),t.register("securityScheme",Hv),t.register("server",Jv),t.register("serverVariable",Gv),t.register("tag",Wv),t.register("xml",Kv),t}},qE=()=>{const e=pl(DE);return{predicates:{...l,isStringElement:Nc,isArrayElement:Uc,isObjectElement:Bc,includesClasses:Zc},namespace:e}},LE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,yc.Qc)(e),s=bp(FE),i=kc(t,[],s);return ql(n,i,{state:{specObj:s}}),Ll(i.element,r,{toolboxCreator:qE,visitorOptions:{keyMap:NE,nodeTypeGetter:_E}})},BE=e=>(t,r={})=>LE(t,{specPath:e,...r});mv.refract=BE(["visitors","document","objects","Callback","$visitor"]),dv.refract=BE(["visitors","document","objects","Components","$visitor"]),yv.refract=BE(["visitors","document","objects","Contact","$visitor"]),bv.refract=BE(["visitors","document","objects","Example","$visitor"]),gv.refract=BE(["visitors","document","objects","Discriminator","$visitor"]),vv.refract=BE(["visitors","document","objects","Encoding","$visitor"]),xv.refract=BE(["visitors","document","objects","ExternalDocumentation","$visitor"]),Ev.refract=BE(["visitors","document","objects","Header","$visitor"]),wv.refract=BE(["visitors","document","objects","Info","$visitor"]),Ov.refract=BE(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Sv.refract=BE(["visitors","document","objects","License","$visitor"]),Pv.refract=BE(["visitors","document","objects","Link","$visitor"]),Av.refract=BE(["visitors","document","objects","MediaType","$visitor"]),$v.refract=BE(["visitors","document","objects","OAuthFlow","$visitor"]),kv.refract=BE(["visitors","document","objects","OAuthFlows","$visitor"]),Tv.refract=BE(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Mv.refract=BE(["visitors","document","objects","OpenApi","$visitor"]),Rv.refract=BE(["visitors","document","objects","Operation","$visitor"]),Iv.refract=BE(["visitors","document","objects","Parameter","$visitor"]),Fv.refract=BE(["visitors","document","objects","PathItem","$visitor"]),_v.refract=BE(["visitors","document","objects","Paths","$visitor"]),Dv.refract=BE(["visitors","document","objects","Reference","$visitor"]),qv.refract=BE(["visitors","document","objects","RequestBody","$visitor"]),Lv.refract=BE(["visitors","document","objects","Response","$visitor"]),Bv.refract=BE(["visitors","document","objects","Responses","$visitor"]),Vv.refract=BE(["visitors","document","objects","Schema","$visitor"]),zv.refract=BE(["visitors","document","objects","SecurityRequirement","$visitor"]),Hv.refract=BE(["visitors","document","objects","SecurityScheme","$visitor"]),Jv.refract=BE(["visitors","document","objects","Server","$visitor"]),Gv.refract=BE(["visitors","document","objects","ServerVariable","$visitor"]),Wv.refract=BE(["visitors","document","objects","Tag","$visitor"]),Kv.refract=BE(["visitors","document","objects","XML","$visitor"]);const UE=class extends up{};const VE=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new UE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new UE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new UE("latest method in MediaTypes class is not yet implemented.")}};class zE extends VE{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return lo(this.filterByFormat(e))}}const HE=new zE("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"),JE=ml({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:n=this.value}={}){this.uri=r,this.value=n,this.depth=e,this.refSet=t,this.errors=[]}}),GE=ml({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach((e=>this.add(e)))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=null===this.rootRef?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=ea(e)?e:e.uri;return Ko(this.find(So(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),WE=GE,KE={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},YE=uo(ho(["resolve","baseURI"]),oi(["resolve","baseURI"])),XE=e=>cu(e)?da():e,QE=ml({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:n=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n},methods:{get extension(){return ea(this.uri)?la(this.uri):""},toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ps(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const ZE=class extends vl{constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},ew=async(e,t,r)=>{const n=await Promise.all(r.map(kc([e],[t])));return r.filter(((e,t)=>n[t]))},tw=async(e,t,r)=>{let n;for(const s of r)try{const r=await s[e].call(s,...t);return{plugin:s,result:r}}catch(e){n=new ZE("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const rw=class extends vl{};const nw=class extends rw{};const sw=class extends vl{},iw=async(e,t)=>{let r=e,n=!1;if(!Wc(e)){const t=Rl(e);t.classes.push("result"),r=new wc([t]),n=!0}const s=QE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await ew("canDereference",s,t.dereference.strategies);if(ao(i))throw new nw(s.uri);try{const{result:e}=await tw("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new sw(`Error while dereferencing file "${s.uri}"`,{cause:e})}},ow=async(e,t={})=>{const r=((e,t)=>{const r=go(e,t);return Eo(YE,XE,r)})(KE,t);return iw(e,r)},aw=ml({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:n=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=n},methods:{async canParse(){throw new UE("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new UE("parse method in Parser stamp is not yet implemented.")}}}),cw=aw,lw=ml(cw,{props:{name:"binary"},methods:{async canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),n=new wc;if(0!==r.length){const e=new yc.RP(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new rw(`Error parsing "${e.uri}"`,{cause:t})}}}}),uw=ml({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new UE("resolve method in ResolveStrategy stamp is not yet implemented.")}}});const pw=Zn(1,Us(Promise.all,Promise));const hw=class extends sw{};const fw=class extends vl{};const mw=class extends fw{};const dw=class extends vl{};const yw=class extends dw{};const gw=class extends fw{},vw=async(e,t)=>{const r=QE({uri:ga(ma(e)),mediaType:t.parse.mediaType}),n=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),n=await ew("canRead",e,r);if(ao(n))throw new gw(e.uri);try{const{result:t}=await tw("read",[e],n);return t}catch(t){throw new fw(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),n=await ew("canParse",e,r);if(ao(n))throw new gw(e.uri);try{const{plugin:t,result:r}=await tw("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new rw(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new rw(`Error while parsing file "${e.uri}"`,{cause:t})}})(QE({...r,data:n}),t)},bw=(e,t)=>{const r=Dl({predicate:e});return ql(t,r),new yc.O4(r.result)},xw=(e,t)=>{const r=Dl({predicate:e,returnOnTrue:El});return ql(t,r),wo(void 0,[0],r.result)};const Ew=class extends vl{};const ww=class extends Ew{};const jw=class extends Ew{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},Ow=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Sw=e=>{const t=fa(e);return lu("#",t)},Pw=(e,t)=>{const r=(e=>{if(!Ow(e))throw new jw(e);return e})(e),n=xw((e=>Xb(e)&&Ql(e.$anchor)===r),t);if(Wo(n))throw new ww(`Evaluation failed on token: "${r}"`);return n},Aw=(e,t)=>{if(void 0===t.$ref)return;const r=fa(Ql(t.$ref)),n=Ql(t.meta.get("inherited$id"));return`${Ws(((e,t)=>ya(e,ga(ma(t)))),e,[...n,Ql(t.$ref)])}${"#"===r?"":r}`},$w=e=>{if($w.cache.has(e))return $w.cache.get(e);const t=Vv.refract(e);return $w.cache.set(e,t),t};$w.cache=new WeakMap;const kw=e=>Yc(e)?$w(e):e,Tw=(e,t)=>{const{cache:r}=Tw,n=ma(e),s=e=>Xb(e)&&void 0!==e.$id;if(!r.has(t)){const e=bw(s,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=Ql(t.meta.get("inherited$id"));return Ws(((e,t)=>ya(e,ga(ma(t)))),e,[...r,Ql(t.$id)])})(n,e)===n));if(Wo(i))throw new yw(`Evaluation failed on URI: "${e}"`);let o,a;return Ow(Sw(e))?(o=Pw,a=Sw(e)):(o=du,a=hu(e)),o(a,i)};Tw.cache=new WeakMap;const Cw=ql[Symbol.for("nodejs.util.promisify.custom")],Mw=ml({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return ya(this.reference.uri,ga(ma(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new mw(`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(So(t,"uri"));const n=await vw(va(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=JE({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){if(!this.options.resolve.external&&Gb(e))return!1;const t=Ql(e.$ref),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!Nc(e.$ref))return;if(!this.options.resolve.external&&zb(e))return;const t=Ql(e.$ref),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},LinkElement(e){if((Nc(e.operationRef)||Nc(e.operationId))&&(this.options.resolve.external||!Db(e))){if(Nc(e.operationRef)&&Nc(e.operationId))throw new vl("LinkElement operationRef and operationId are mutually exclusive.");if(Db(e)){const t=Ql(e.operationRef),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t))}}},ExampleElement(e){if(!Nc(e.externalValue))return;if(!this.options.resolve.external&&Nc(e.externalValue))return;if(e.hasKey("value")&&Nc(e.externalValue))throw new vl("ExampleElement value and externalValue fields are mutually exclusive.");const t=Ql(e.externalValue),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!Nc(e.$ref))return void this.visited.add(e);const t=await this.toReference(va(this.reference.uri)),{uri:r}=t,n=Aw(r,e),s=ma(n),i=QE({uri:s}),o=vo((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=!o&&r!==s;if(this.options.resolve.external||!c){if(!Yi(s,this.crawlingMap))try{this.crawlingMap[s]=o||a?t:this.toReference(va(n))}catch(e){if(!(a&&e instanceof yw))throw e;this.crawlingMap[s]=this.toReference(va(n))}this.crawledElements.push(e)}else this.visited.add(e)},async crawlReferenceElement(e){const t=await this.toReference(Ql(e.$ref));this.indirections.push(e);const r=hu(Ql(e.$ref));let n=du(r,t.value.result);if(Yc(n)){const t=Ql(e.meta.get("referenced-element"));if(tf(n))n=Dv.refract(n),n.setMetaProperty("referenced-element",t);else{n=this.namespace.getElementClass(t).refract(n)}}if(this.indirections.includes(n))throw new vl("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=Mw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Cw(n,s,{keyMap:NE,nodeTypeGetter:_E}),await s.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Ql(e.$ref));this.indirections.push(e);const r=hu(Ql(e.$ref));let n=du(r,t.value.result);if(Yc(n)&&(n=Fv.refract(n)),this.indirections.includes(n))throw new vl("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=Mw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await Cw(n,s,{keyMap:NE,nodeTypeGetter:_E}),await s.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(va(this.reference.uri));const{uri:r}=t,n=Aw(r,e),s=ma(n),i=QE({uri:s}),o=vo((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o;let c;this.indirections.push(e);try{if(o||a){c=Tw(n,kw(t.value.result))}else{t=await this.toReference(va(n));const e=hu(n);c=kw(du(e,t.value.result))}}catch(e){if(!(a&&e instanceof yw))throw e;if(Ow(Sw(n))){t=await this.toReference(va(n));const e=Sw(n);c=Pw(e,kw(t.value.result))}else{t=await this.toReference(va(n));const e=hu(n);c=kw(du(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(c))throw new vl("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const l=Mw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await Cw(c,l,{keyMap:NE,nodeTypeGetter:_E}),await l.crawl(),this.indirections.pop()},async crawl(){await vi(si,pw)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)Jb(e)?await this.crawlReferenceElement(e):Xb(e)?await this.crawlSchemaElement(e):Vb(e)&&await this.crawlPathItemElement(e)}}}),Rw=Mw,Iw=ql[Symbol.for("nodejs.util.promisify.custom")],Fw=ml(uw,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?HE.includes(e.mediaType):Lb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=pl(DE),n=JE({uri:e.uri,value:e.parseResult}),s=Rw({reference:n,namespace:r,options:t}),i=WE();return i.add(n),await Iw(i.rootRef.value,s,{keyMap:NE,nodeTypeGetter:_E}),await s.crawl(),i}}}),_w=Fw,Nw=e=>e.replace(/\s/g,""),Dw=e=>e.replace(/\W/gi,"_"),qw=(e,t,r)=>{const n=Nw(e);return n.length>0?Dw(n):((e,t)=>`${Dw(Nw(t.toLowerCase()))}${Dw(Nw(e))}`)(t,r)},Lw=({operationIdNormalizer:e=qw}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=Wi((e=>Ql(e.operationId)),s);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,n)=>{const s=`${e}${n+1}`;t.operationId=new r.elements.String(s)})))})),i.forEach((e=>{if(void 0===e.operationId)return;const t=String(Ql(e.operationId)),r=s.find((e=>Ql(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=Tl.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=$i("path",Ql(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(Ql(t.operationId)),o=lo(n),a=$i("method",Ql(t.meta.get("http-method"))),c=e(i,o,a);i!==c&&(t.operationId=new r.elements.String(c),t.set("__originalOperationId",i),t.meta.set("originalOperationId",i),s.push(t))}},LinkElement:{leave(e){t.isLinkElement(e)&&void 0!==e.operationId&&i.push(e)}}}}},Bw=()=>({predicates:e})=>{const t=(t,r)=>!!e.isParameterElement(t)&&(!!e.isParameterElement(r)&&(!!e.isStringElement(t.name)&&(!!e.isStringElement(t.in)&&(!!e.isStringElement(r.name)&&(!!e.isStringElement(r.in)&&(Ql(t.name)===Ql(r.name)&&Ql(t.in)===Ql(r.in))))))),r=[];return{visitor:{PathItemElement:{enter(t,n,s,i,o){if(o.some(e.isComponentsElement))return;const{parameters:a}=t;e.isArrayElement(a)?r.push([...a.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(e){const n=lo(r);if(!Array.isArray(n)||0===n.length)return;const s=wo([],["parameters","content"],e),i=Vo(t,[...s,...n]);e.parameters=new bg(i)}}}}},Uw=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,n,s,i,o){if(o.some(e.isComponentsElement))return;var a;void 0===r.security&&void 0!==t&&(r.security=new $g(null===(a=t)||void 0===a?void 0:a.content))}}}}},Vw=()=>({predicates:e})=>{let t;const r=[];return{visitor:{OpenApi3_1Element:{enter(r){var n;e.isArrayElement(r.servers)&&(t=null===(n=r.servers)||void 0===n?void 0:n.content)},leave(){t=void 0}},PathItemElement:{enter(n,s,i,o,a){if(a.some(e.isComponentsElement))return;void 0===n.servers&&void 0!==t&&(n.servers=new Dg(t));const{servers:c}=n;void 0!==c&&e.isArrayElement(c)?r.push([...c.content]):r.push(void 0)},leave(){r.pop()}},OperationElement:{enter(t){const n=lo(r);void 0!==n&&(e.isArrayElement(t.servers)||(t.servers=new Cg(n)))}}}}},zw=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,n,s,i){var o,a;if(!i.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>Tl.safe(e.value)));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[Tl(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Tl(t.example)))}}}}}),Hw=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,n,s,i){var o,a;if(!i.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>Tl.safe(e.value)));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[Tl(t.example)]),void 0!==t.schema.example&&t.schema.set("example",Tl(t.example)))}}}}}),Jw=e=>t=>{if(t?.$$normalized)return t;if(Jw.cache.has(t))return t;const r=Mv.refract(t),n=e(r),s=Ql(n);return Jw.cache.set(t,s),s};Jw.cache=new WeakMap;const Gw=e=>{if(!Bc(e))return e;if(e.hasKey("$$normalized"))return e;const t=[Lw({operationIdNormalizer:(e,t,r)=>nc({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Bw(),Uw(),Vw(),zw(),Hw()],r=Ll(e,t,{toolboxCreator:qE,visitorOptions:{keyMap:NE,nodeTypeGetter:_E}});return r.set("$$normalized",!0),r},Ww=ml({props:{name:null},methods:{canRead:()=>!1,async read(){throw new UE("read method in Resolver stamp is not yet implemented.")}}}),Kw=ml(Ww,{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=>pa(e.uri),async read(){throw new UE("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new UE("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),{AbortController:Yw,AbortSignal:Xw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=Yw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=Xw);const Qw=Kw.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Sr,swaggerHTTPClientConfig:{}},init(){let{swaggerHTTPClient:e=this.swaggerHTTPClient}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new fw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),Zw=(e,t=hl)=>{if(ea(e))try{return t.fromRefract(JSON.parse(e))}catch{}return cl(e)&&Yi("element",e)?t.fromRefract(e):t.toElement(e)},ej=cw.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||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(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new rw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new wc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Zw(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new rw(`Error parsing "${e.uri}"`,{cause:t})}}}}),tj=cw.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return hr.load(e.toString(),{schema:tr}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new rw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new wc,r=e.toString();try{const e=hr.load(r,{schema:tr});if(this.allowEmpty&&void 0===e)return t;const n=Zw(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new rw(`Error parsing "${e.uri}"`,{cause:t})}}}}),rj=cw.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new zE(...HE.filterByFormat("generic"),...HE.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new rw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new wc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=Mv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new rw(`Error parsing "${e.uri}"`,{cause:t})}}}}),nj=cw.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new zE(...HE.filterByFormat("generic"),...HE.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=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return hr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new rw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new wc,r=e.toString();try{const e=hr.load(r,{schema:tr});if(this.allowEmpty&&void 0===e)return t;const n=Mv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new rw(`Error parsing "${e.uri}"`,{cause:t})}}}}),sj=ml({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new UE("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});class ij extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof WeakSet?super.includes(e,t):this.some((t=>t.has(e)))}}const oj=ql[Symbol.for("nodejs.util.promisify.custom")],aj=ml({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=new ij}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new ij(...s)},methods:{toBaseURI(e){return ya(this.reference.uri,ga(ma(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new mw(`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(So(t,"uri"));const n=await vw(va(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=JE({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},toAncestorLineage(e){const t=new WeakSet(e.filter(_c));return[new ij(...this.ancestors,t),t]},async ReferenceElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(i.includesCycle(e))return!1;if(!this.options.resolve.external&&Gb(e))return!1;const a=await this.toReference(Ql(e.$ref)),{uri:c}=a,l=ya(c,Ql(e.$ref));this.indirections.push(e);const u=hu(l);let p=du(u,a.value.result);if(Yc(p)){const t=Ql(e.meta.get("referenced-element"));if(tf(p))p=Dv.refract(p),p.setMetaProperty("referenced-element",t);else{p=this.namespace.getElementClass(t).refract(p)}}if(this.indirections.includes(p))throw new vl("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=aj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});p=await oj(p,h,{keyMap:NE,nodeTypeGetter:_E}),o.delete(e),this.indirections.pop();const f=t=>{const r=Rl(t);return r.setMetaProperty("ref-fields",{$ref:Ql(e.$ref),description:Ql(e.description),summary:Ql(e.summary)}),r.setMetaProperty("ref-origin",a.uri),Bc(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),r};return i.includes(p)?(Vc(r)?r.value=f(p):Array.isArray(r)&&(r[t]=f(p)),!1):f(p)},async PathItemElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Nc(e.$ref))return;if(i.includesCycle(e))return!1;if(!this.options.resolve.external&&zb(e))return;const a=await this.toReference(Ql(e.$ref)),{uri:c}=a,l=ya(c,Ql(e.$ref));this.indirections.push(e);const u=hu(l);let p=du(u,a.value.result);if(Yc(p)&&(p=Fv.refract(p)),this.indirections.includes(p))throw new vl("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=aj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});p=await oj(p,h,{keyMap:NE,nodeTypeGetter:_E}),o.delete(e),this.indirections.pop();const f=t=>{const r=new Fv([...t.content],Tl(t.meta),Tl(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Ql(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Ql(e.$ref)}),r.setMetaProperty("ref-origin",a.uri),r};return i.includes(p)?(Vc(r)?r.value=f(p):Array.isArray(r)&&(r[t]=f(p)),!1):f(p)},async LinkElement(e){if(!Nc(e.operationRef)&&!Nc(e.operationId))return;if(!this.options.resolve.external&&Db(e))return;if(Nc(e.operationRef)&&Nc(e.operationId))throw new vl("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Nc(e.operationRef)){var r;const n=hu(Ql(e.operationRef)),s=await this.toReference(Ql(e.operationRef));t=du(n,s.value.result),Yc(t)&&(t=Rv.refract(t)),t=Rl(t),t.setMetaProperty("ref-origin",s.uri);const i=Rl(e);return null===(r=i.operationRef)||void 0===r||r.meta.set("operation",t),i}if(Nc(e.operationId)){var n;const r=Ql(e.operationId),s=await this.toReference(va(this.reference.uri));if(t=xw((e=>Bb(e)&&_c(e.operationId)&&e.operationId.equals(r)),s.value.result),Wo(t))throw new vl(`OperationElement(operationId=${r}) not found.`);const i=Rl(e);return null===(n=i.operationId)||void 0===n||n.meta.set("operation",t),i}},async ExampleElement(e,t,r,n,s){const[i]=this.toAncestorLineage([...s,r]);if(!Nc(e.externalValue))return;if(i.includesCycle(e))return!1;if(!this.options.resolve.external&&Nc(e.externalValue))return;if(e.hasKey("value")&&Nc(e.externalValue))throw new vl("ExampleElement value and externalValue fields are mutually exclusive.");const o=await this.toReference(Ql(e.externalValue)),a=Rl(o.value.result);a.setMetaProperty("ref-origin",o.uri);const c=Rl(e);return c.value=a,c},async SchemaElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Nc(e.$ref))return;if(i.includesCycle(e))return!1;let a=await this.toReference(va(this.reference.uri)),{uri:c}=a;const l=Aw(c,e),u=ma(l),p=QE({uri:u}),h=vo((e=>e.canRead(p)),this.options.resolve.resolvers),f=!h,m=f&&c!==u;if(!this.options.resolve.external&&m)return;let d;this.indirections.push(e);try{if(h||f){d=Tw(l,kw(a.value.result))}else{a=await this.toReference(va(l));const e=hu(l);d=kw(du(e,a.value.result))}}catch(e){if(!(f&&e instanceof yw))throw e;if(Ow(Sw(l))){a=await this.toReference(va(l)),c=a.uri;const e=Sw(l);d=Pw(e,kw(a.value.result))}else{a=await this.toReference(va(l)),c=a.uri;const e=hu(l);d=kw(du(e,a.value.result))}}if(this.indirections.includes(d))throw new vl("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const y=aj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});if(d=await oj(d,y,{keyMap:NE,nodeTypeGetter:_E}),o.delete(e),this.indirections.pop(),Qb(d)){const t=Tl(d);return t.setMetaProperty("ref-fields",{$ref:Ql(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t}const g=t=>{const r=new Vv([...t.content],Tl(t.meta),Tl(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Ql(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Ql(e.$ref)}),r.setMetaProperty("ref-origin",a.uri),r};return i.includes(d)?(Vc(r)?r.value=g(d):Array.isArray(r)&&(r[t]=g(d)),!1):g(d)}}}),cj=aj,lj=ql[Symbol.for("nodejs.util.promisify.custom")],uj=ml(sj,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?HE.includes(e.mediaType):Lb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=pl(DE),n=$i(WE(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(So(e.uri,"uri")):(s=JE({uri:e.uri,value:e.parseResult}),n.add(s));const i=cj({reference:s,namespace:r,options:t}),o=await lj(n.rootRef.value,i,{keyMap:NE,nodeTypeGetter:_E});return null===t.dereference.refSet&&n.clean(),o}}}),pj=uj,hj=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Vc(r)){const t=String(Ql(r.key));e.push(t)}else if(Uc(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},fj=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},mj=ba("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:dj}=Fa,yj=ql[Symbol.for("nodejs.util.promisify.custom")],gj=cj.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init(e){let{allowMetaPatches:t=this.allowMetaPatches,useCircularStructures:r=this.useCircularStructures,basePath:n=this.basePath}=e;this.allowMetaPatches=t,this.useCircularStructures=r,this.basePath=n},methods:{async ReferenceElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&Gb(e))return!1;const o=await this.toReference(Ql(e.$ref)),{uri:a}=o,c=ya(a,Ql(e.$ref));this.indirections.push(e);const l=hu(c);let u=du(l,o.value.result);if(Yc(u)){const t=Ql(e.meta.get("referenced-element"));if(tf(u))u=Dv.refract(u),u.setMetaProperty("referenced-element",t);else{u=this.namespace.getElementClass(t).refract(u)}}if(this.indirections.includes(u))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u))return!(!pa(a)&&!ua(a))&&new Dv({$ref:c},Tl(e.meta),Tl(e.attributes))}i.add(e);const p=gj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...hj([...s,r,e]),"$ref"]});u=await yj(u,p,{keyMap:NE,nodeTypeGetter:_E}),i.delete(e),this.indirections.pop();const h=t=>{const r=Rl(t);if(r.setMetaProperty("ref-fields",{$ref:Ql(e.$ref),description:Ql(e.description),summary:Ql(e.summary)}),r.setMetaProperty("ref-origin",o.uri),Bc(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),this.allowMetaPatches&&Bc(r)&&!r.hasKey("$$ref")){const e=ya(a,c);r.set("$$ref",e)}return r};return n.includes(u)?(Vc(r)?r.value=h(u):Array.isArray(r)&&(r[t]=h(u)),!1):h(u)}catch(t){const n=fj(t),i=dj(n,{baseDoc:this.reference.uri,$ref:Ql(e.$ref),pointer:hu(Ql(e.$ref)),fullPath:this.basePath??[...hj([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Nc(e.$ref))return;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&zb(e))return;const o=await this.toReference(Ql(e.$ref)),{uri:a}=o,c=ya(a,Ql(e.$ref));this.indirections.push(e);const l=hu(c);let u=du(l,o.value.result);if(Yc(u)&&(u=Fv.refract(u)),this.indirections.includes(u))throw new Error("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u))return!(!pa(a)&&!ua(a))&&new Fv({$ref:c},Tl(e.meta),Tl(e.attributes))}i.add(e);const p=gj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...hj([...s,r,e]),"$ref"]});u=await yj(u,p,{keyMap:NE,nodeTypeGetter:_E}),i.delete(e),this.indirections.pop();const h=t=>{const r=new Fv([...t.content],Tl(t.meta),Tl(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Ql(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Ql(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=ya(a,c);r.set("$$ref",e)}return r};return n.includes(u)?(Vc(r)?r.value=h(u):Array.isArray(r)&&(r[t]=h(u)),!1):h(u)}catch(t){const n=fj(t),i=dj(n,{baseDoc:this.reference.uri,$ref:Ql(e.$ref),pointer:hu(Ql(e.$ref)),fullPath:this.basePath??[...hj([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Nc(e.$ref))return;if(n.includesCycle(e))return!1;let o=await this.toReference(va(this.reference.uri)),{uri:a}=o;const c=Aw(a,e),l=ma(c),u=QE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p,f=h&&a!==l;if(!this.options.resolve.external&&f)return;let m;this.indirections.push(e);try{if(p||h){m=Tw(c,kw(o.value.result))}else{o=await this.toReference(va(c)),a=o.uri;const e=hu(c);m=kw(du(e,o.value.result))}}catch(e){if(!(h&&e instanceof yw))throw e;if(Ow(Sw(c))){o=await this.toReference(va(c)),a=o.uri;const e=Sw(c);m=Pw(e,kw(o.value.result))}else{o=await this.toReference(va(c)),a=o.uri;const e=hu(c);m=kw(du(e,o.value.result))}}if(this.indirections.includes(m))throw new Error("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new hw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.some((e=>e.has(m)))){if(pa(a)||ua(a)){const t=ya(a,c);return new Vv({$ref:t},Tl(e.meta),Tl(e.attributes))}return!1}}i.add(e);const d=gj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...hj([...s,r,e]),"$ref"]});if(m=await yj(m,d,{keyMap:NE,nodeTypeGetter:_E}),i.delete(e),this.indirections.pop(),Qb(m)){const t=Tl(m);return t.setMetaProperty("ref-fields",{$ref:Ql(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t}const y=t=>{const r=new Vv([...t.content],Tl(t.meta),Tl(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Ql(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Ql(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=ya(a,c);r.set("$$ref",e)}return r};return n.includes(m)?(Vc(r)?r.value=y(m):Array.isArray(r)&&(r[t]=y(m)),!1):y(m)}catch(t){const n=fj(t),i=new mj(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:Ql(e.$ref),fullPath:this.basePath??[...hj([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await cj.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=fj(t),i=dj(n,{baseDoc:this.reference.uri,externalValue:Ql(e.externalValue),fullPath:this.basePath??[...hj([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),vj=gj,bj=pj.compose.bind(),xj=bj({init(e){let{parameterMacro:t,options:r}=e;this.parameterMacro=t,this.options=r},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,n,s){const i=null===this.macroOperation?null:Ql(this.macroOperation),o=Ql(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=hj([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),Ej=bj({init(e){let{modelPropertyMacro:t,options:r}=e;this.modelPropertyMacro=t,this.options=r},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,n,s){void 0!==e.properties&&Bc(e.properties)&&e.properties.forEach((t=>{if(Bc(t))try{const e=this.modelPropertyMacro(Ql(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...hj([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),wj=e=>{const t=Tl(e.meta),r=Tl(e.attributes);return new e.constructor(void 0,t,r)},jj=(e,t)=>t.clone&&t.isMergeableElement(e)?Pj(wj(e),e,t):e,Oj=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>jj(e,r))),Sj=(e,t,r)=>{const n=Bc(e)?wj(e):wj(t);return Bc(e)&&e.forEach(((e,t,s)=>{const i=Rl(s);i.value=jj(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=Ql(s);let a;if(Bc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=Rl(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Pj;const r=t.customMerge(e,t);return"function"==typeof r?r:Pj})(s,r)(n,t)}else a=Rl(i),a.value=jj(t,r);n.remove(o),n.content.push(a)})),n};function Pj(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>Bc(e)||Uc(e),arrayElementMerge:Oj,objectElementMerge:Sj,customMerge:void 0},a={...o,...r};a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:o.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:o.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:o.objectElementMerge;const c=Uc(t);return c===Uc(e)?c&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):jj(t,a)}Pj.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new yc.Sb:e.reduce(((e,r)=>Pj(e,r,t)),wj(e[0]))};const Aj=bj({init(e){let{options:t}=e;this.options=t},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Uc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...hj([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new Vv(e.content.filter((e=>"allOf"!==Ql(e.key))),Tl(e.meta),Tl(e.attributes));if(!e.allOf.content.every(Xb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...hj([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=Pj.all([...e.allOf.content,e]);if(e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")){i.getMember("example").value=e.get("example")}if(e.hasKey("examples")){i.getMember("examples").value=e.get("examples")}return i.remove("allOf"),i}}}}),$j=ql[Symbol.for("nodejs.util.promisify.custom")],kj=pj.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init(){let{useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=pl(DE),s=t.dereference.refSet??WE();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=JE({uri:e.uri,value:e.parseResult}),s.add(i));const o=vj({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=xj({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=Ej({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=Aj({options:t});r.push(e)}const a=Sl(r,{nodeTypeGetter:_E}),c=await $j(s.rootRef.value,a,{keyMap:NE,nodeTypeGetter:_E});return null===t.dereference.refSet&&s.clean(),c}}}),Tj=kj,Cj=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:f="non-strict"}=e;try{const{cache:m}=Cj,d=pa(da())?da():h,y=qr(e),g=ya(d,y);let v;m.has(t)?v=m.get(t):(v=Mv.refract(t),v.classes.push("result"),m.set(t,v));const b=new wc([v]),x=ru(o),E=""===x?"":`#${x}`,w=du(x,v),j=JE({uri:g,value:b}),O=WE({refs:[j]});""!==x&&(O.rootRef=null);const S=[new WeakSet([w])],P=[],A=((e,t,r)=>Hl({element:r}).transclude(e,t))(w,await ow(w,{resolve:{baseURI:`${g}${E}`,resolvers:[Qw({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[_w()]},parse:{mediaType:HE.latest(),parsers:[rj({allowEmpty:!1,sourceMap:!1}),nj({allowEmpty:!1,sourceMap:!1}),ej({allowEmpty:!1,sourceMap:!1}),tj({allowEmpty:!1,sourceMap:!1}),lw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Tj({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:P}}}),v),$=l?A:Gw(A);return{spec:Ql($),errors:P}}catch(e){if(e instanceof pu||e instanceof mu)return{spec:null,errors:[]};throw e}};Cj.cache=new WeakMap;const Mj=Cj,Rj={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return lc(t)},normalize(e){let{spec:t}=e;return Jw(Gw)(t)},resolve:async e=>Mj(e)};function Ij(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:n}=e;for(const s in n)for(const i in n[s]){if("PARAMETERS"===i.toUpperCase())continue;const o=n[s][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:s,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const Fj=()=>null,_j={mapTagOperations:function(e){let{spec:t,cb:r=Fj,defaultTag:n="default",v2OperationIdCompatibilityMode:s}=e;const i={},o={};return Ij(t,(e=>{let{pathName:a,method:c,operation:l}=e;var u;(l.tags?(u=l.tags,Array.isArray(u)?u:[u]):[n]).forEach((e=>{if("string"!=typeof e)return;o[e]=o[e]||{};const n=o[e],u=nc(l,a,c,{v2OperationIdCompatibilityMode:s}),p=r({spec:t,pathName:a,method:c,operation:l,operationId:u});if(i[u])i[u]+=1,n[`${u}${i[u]}`]=p;else if(void 0!==n[u]){const e=i[u]||1;i[u]=e+1,n[`${u}${i[u]}`]=p;const t=n[u];delete n[u],n[`${u}${e}`]=t}else n[u]=p}))})),o},makeExecute:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{pathName:r,method:n,operationId:s}=t;return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:r,method:n,parameters:t,operationId:s,...i})}}}};var Nj=r(6489);function Dj(e){return"[object Object]"===Object.prototype.toString.call(e)}function qj(e){var t,r;return!1!==Dj(e)&&(void 0===(t=e.constructor)||!1!==Dj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const Lj={body:function(e){let{req:t,value:r}=e;t.body=r},header:function(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){let{req:t,value:r,parameter:n}=e;t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false");0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0");if(r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}},path:function(e){let{req:t,value:r,parameter:n}=e;t.url=t.url.split(`{${n.name}}`).join(encodeURIComponent(r))},formData:function(e){let{req:t,value:r,parameter:n}=e;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function Bj(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function Uj(e){let{req:t,value:r,parameter:n}=e;const{name:s,style:i,explode:o,content:a}=n;if(a){const e=Object.keys(a)[0];return void(t.url=t.url.split(`{${s}}`).join(wr(Bj(r,e),{escape:!0})))}const c=jr({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split(`{${s}}`).join(c)}function Vj(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},n.content){const e=Bj(r,Object.keys(n.content)[0]);if(e)t.query[n.name]=e;else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}else if(!1===r&&(r="false"),0===r&&(r="0"),r){const{style:e,explode:s,allowReserved:i}=n;t.query[n.name]={value:r,serializationOption:{style:e,explode:s,allowReserved:i}}}else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}const zj=["accept","authorization","content-type"];function Hj(e){let{req:t,parameter:r,value:n}=e;if(t.headers=t.headers||{},!(zj.indexOf(r.name.toLowerCase())>-1))if(r.content){const e=Object.keys(r.content)[0];t.headers[r.name]=Bj(n,e)}else void 0!==n&&(t.headers[r.name]=jr({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function Jj(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{};const s=typeof n;if(r.content){const e=Object.keys(r.content)[0];t.headers.Cookie=`${r.name}=${Bj(n,e)}`}else if("undefined"!==s){const e="object"===s&&!Array.isArray(n)&&r.explode?"":`${r.name}=`;t.headers.Cookie=e+jr({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}const Gj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:Wj}=Gj,Kj=Wj;function Yj(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i={...t},{authorized:o={}}=r,a=n.security||s.security||[],c=o&&!!Object.keys(o).length,l=s?.components?.securitySchemes||{};if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!c||!a||Array.isArray(n.security)&&!n.security.length)return t;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=l[e];if(!t)return;const n=t.value||t,{type:s}=r;if(t)if("apiKey"===s)"query"===r.in&&(i.query[r.name]=n),"header"===r.in&&(i.headers[r.name]=n),"cookie"===r.in&&(i.cookies[r.name]=n);else if("http"===s){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=Kj(`${e}:${t}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===s||"openIdConnect"===s){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),i.headers.Authorization=`${s} ${n}`}}))})),i}({request:t,securities:s,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(n||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((e=>{let[t,r]=e;const n=parseInt(t,10);return n>=200&&n<300&&qj(r.content)})).reduce(((e,t)=>{let[,r]=t;return e.concat(Object.keys(r.content))}),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof n){const e=c.content[a]?.encoding??{};t.form={},Object.keys(n).forEach((r=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function Xj(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i={...t},{authorized:o={},specSecurity:a=[]}=r,c=n.security||a,l=o&&!!Object.keys(o).length,u=s.securityDefinitions;if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!l||!c||Array.isArray(n.security)&&!n.security.length)return t;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:r}=t,n=t.value||t,s=u[e],{type:a}=s,c=s["x-tokenName"]||"access_token",l=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===s.in?"query":"headers";i[e]=i[e]||{},i[e][s.name]=n}else if("basic"===a)if(n.header)i.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=Kj(`${e}:${t}`),i.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&l&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",i.headers.authorization=`${p} ${l}`)}))})),i}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=n.parameters&&n.parameters.filter((e=>"body"===e.in)).length>0,r=n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}function Qj(e,t){return`${t.toLowerCase()}-${e}`}function Zj(e,t){return e&&e.paths?function(e,t){return Ij(e,t,!0)||null}(e,(e=>{let{pathName:r,method:n,operation:s}=e;if(!s||"object"!=typeof s)return!1;const i=s.operationId;return[nc(s,r,n),Qj(r,n),i].some((e=>e&&e===t))})):null}const eO=e=>Array.isArray(e)?e:[],tO=e=>{try{return new URL(e)}catch{const t=new URL(e,h),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}}},rO=ba("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),nO={buildRequest:sO};function sO(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=uc(t);d||(d=y?u:Lj);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(g.signal=f),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=Zj(t,r);if(!v)throw new rO(`Operation ${r} not found`);const{operation:b={},method:x,pathName:E}=v;if(g.url+=oO({spec:t,scheme:s,contextUrl:a,server:l,serverVariables:p,pathName:E,method:x}),!r)return delete g.cookies,g;g.url+=E,g.method=`${x}`.toUpperCase(),m=m||{};const w=t.paths[E]||{};n&&(g.headers.accept=n);const j=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(eO(b.parameters)).concat(eO(w.parameters)));j.forEach((e=>{const r=d[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,j).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(y&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:g,parameter:e,value:n,operation:b,spec:t})}}));const O={...e,operation:b};if(g=y?Yj(O,g):Xj(O,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+Nj.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Nr(g),g}const iO=e=>e?e.replace(/\W/g,""):null;function oO(e){return uc(e.spec)?function(e){let t,{spec:r,pathName:n,method:s,server:i,contextUrl:o,serverVariables:a={}}=e,c=[],l="";const u=r?.paths?.[n]?.[(s||"").toLowerCase()]?.servers,p=r?.paths?.[n]?.servers,h=r?.servers;c=aO(u)?u:aO(p)?p:aO(h)?h:[f],i&&(t=c.find((e=>e.url===i)),t&&(l=i));l||(t=c.at(0),l=t.url);if(l.includes("{")){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(l);e.forEach((e=>{if(t.variables&&t.variables[e]){const r=t.variables[e],n=a[e]||r.default,s=new RegExp(`{${e}}`,"g");l=l.replace(s,n)}}))}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=tO(e&&t?ya(t,e):e),n=tO(t),s=iO(r.protocol)||iO(n.protocol),i=r.host||n.host,o=r.pathname;let a;a=s&&i?`${s}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(l,o)}(e):function(e){let{spec:t,scheme:r,contextUrl:n=""}=e;const s=tO(n),i=Array.isArray(t.schemes)?t.schemes[0]:null,o=r||i||iO(s.protocol)||"http",a=t.host||s.host||"",c=t.basePath||"";let l;l=o&&a?`${o}://${a+c}`:c;return"/"===l[l.length-1]?l.slice(0,-1):l}(e)}const aO=e=>Array.isArray(e)&&e.length>0;const{isHttpUrl:cO}=s,lO=cO;function uO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof uO))return new uO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,uO.makeApisTagOperation(this)),this)));return r.client=this,r}uO.http=Sr,uO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),Or.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,uO.http),uO.resolveStrategies={"openapi-3-1-apidom":Rj,"openapi-3-0":hc,"openapi-2-0":pc,generic:oc},uO.resolve=fc({strategies:[uO.resolveStrategies["openapi-3-1-apidom"],uO.resolveStrategies["openapi-3-0"],uO.resolveStrategies["openapi-2-0"],uO.resolveStrategies.generic]}),uO.resolveSubtree=dc({strategies:[uO.resolveStrategies["openapi-3-1-apidom"],uO.resolveStrategies["openapi-3-0"],uO.resolveStrategies["openapi-2-0"],uO.resolveStrategies.generic]}),uO.execute=function(e){let{http:t,fetch:r,spec:n,operationId:s,pathName:i,method:o,parameters:a,securities:c,...l}=e;const u=t||r||Sr;i&&o&&!s&&(s=Qj(i,o));const p=nO.buildRequest({spec:n,operationId:s,parameters:a,securities:c,http:u,...l});return p.body&&(qj(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),u(p)},uO.serializeRes=Ar,uO.serializeHeaders=$r,uO.clearCache=function(){tc.refs.clearCache()},uO.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=_j.makeExecute(e);return{apis:_j.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},uO.buildRequest=sO,uO.helpers={opId:nc},uO.getBaseUrl=oO,uO.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:Qw}},parse:{parsers:{JsonParser:ej,YamlParser:tj,OpenApiJson3_1Parser:rj,OpenApiYaml3_1Parser:nj}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Tj}}},uO.prototype={http:Sr,execute(e){return this.applyDefaults(),uO.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return uO.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},uO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(ac(e)&&lO(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(uc(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[f])}};const{helpers:pO}=uO,hO=uO})(),n=n.default})()));
|
|
2
|
+
!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.SwaggerClient=t():e.SwaggerClient=t()}(window,(()=>(()=>{var e={1924:(e,t,r)=>{"use strict";var n=r(210),s=r(5559),i=s(n("String.prototype.indexOf"));e.exports=function(e,t){var r=n(e,!!t);return"function"==typeof r&&i(e,".prototype.")>-1?s(r):r}},5559:(e,t,r)=>{"use strict";var n=r(8612),s=r(210),i=s("%Function.prototype.apply%"),o=s("%Function.prototype.call%"),a=s("%Reflect.apply%",!0)||n.call(o,i),c=s("%Object.getOwnPropertyDescriptor%",!0),l=s("%Object.defineProperty%",!0),u=s("%Math.max%");if(l)try{l({},"a",{value:1})}catch(e){l=null}e.exports=function(e){var t=a(n,o,arguments);c&&l&&(c(t,"length").configurable&&l(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return a(n,i,arguments)};l?l(e.exports,"apply",{value:p}):e.exports.apply=p},6489:(e,t)=>{"use strict";t.parse=function(e,t){if("string"!=typeof e)throw new TypeError("argument str must be a string");var r={},n=(t||{}).decode||s,i=0;for(;i<e.length;){var a=e.indexOf("=",i);if(-1===a)break;var c=e.indexOf(";",i);if(-1===c)c=e.length;else if(c<a){i=e.lastIndexOf(";",a-1)+1;continue}var l=e.slice(i,a).trim();if(void 0===r[l]){var u=e.slice(a+1,c).trim();34===u.charCodeAt(0)&&(u=u.slice(1,-1)),r[l]=o(u,n)}i=c+1}return r},t.serialize=function(e,t,s){var o=s||{},a=o.encode||i;if("function"!=typeof a)throw new TypeError("option encode is invalid");if(!n.test(e))throw new TypeError("argument name is invalid");var c=a(t);if(c&&!n.test(c))throw new TypeError("argument val is invalid");var l=e+"="+c;if(null!=o.maxAge){var u=o.maxAge-0;if(isNaN(u)||!isFinite(u))throw new TypeError("option maxAge is invalid");l+="; Max-Age="+Math.floor(u)}if(o.domain){if(!n.test(o.domain))throw new TypeError("option domain is invalid");l+="; Domain="+o.domain}if(o.path){if(!n.test(o.path))throw new TypeError("option path is invalid");l+="; Path="+o.path}if(o.expires){var p=o.expires;if(!function(e){return"[object Date]"===r.call(e)||e instanceof Date}(p)||isNaN(p.valueOf()))throw new TypeError("option expires is invalid");l+="; Expires="+p.toUTCString()}o.httpOnly&&(l+="; HttpOnly");o.secure&&(l+="; Secure");if(o.priority){switch("string"==typeof o.priority?o.priority.toLowerCase():o.priority){case"low":l+="; Priority=Low";break;case"medium":l+="; Priority=Medium";break;case"high":l+="; Priority=High";break;default:throw new TypeError("option priority is invalid")}}if(o.sameSite){switch("string"==typeof o.sameSite?o.sameSite.toLowerCase():o.sameSite){case!0:l+="; SameSite=Strict";break;case"lax":l+="; SameSite=Lax";break;case"strict":l+="; SameSite=Strict";break;case"none":l+="; SameSite=None";break;default:throw new TypeError("option sameSite is invalid")}}return l};var r=Object.prototype.toString,n=/^[\u0009\u0020-\u007e\u0080-\u00ff]+$/;function s(e){return-1!==e.indexOf("%")?decodeURIComponent(e):e}function i(e){return encodeURIComponent(e)}function o(e,t){try{return t(e)}catch(t){return e}}},4101:(e,t,r)=>{"use strict";var n=r(8957);e.exports=n},415:(e,t,r)=>{"use strict";r(1181),r(7627),r(4415),r(6274),r(7971);var n=r(4058);e.exports=n.AggregateError},6121:(e,t,r)=>{"use strict";e.exports=r(8644)},8644:(e,t,r)=>{"use strict";r(9731);var n=r(4101);e.exports=n},4883:(e,t,r)=>{"use strict";var n=r(7475),s=r(9826),i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not a function")}},1851:(e,t,r)=>{"use strict";var n=r(7475),s=String,i=TypeError;e.exports=function(e){if("object"==typeof e||n(e))return e;throw i("Can't set "+s(e)+" as a prototype")}},8479:e=>{"use strict";e.exports=function(){}},6059:(e,t,r)=>{"use strict";var n=r(941),s=String,i=TypeError;e.exports=function(e){if(n(e))return e;throw i(s(e)+" is not an object")}},1692:(e,t,r)=>{"use strict";var n=r(4529),s=r(9413),i=r(623),o=function(e){return function(t,r,o){var a,c=n(t),l=i(c),u=s(o,l);if(e&&r!=r){for(;l>u;)if((a=c[u++])!=a)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===r)return e||u||0;return!e&&-1}};e.exports={includes:o(!0),indexOf:o(!1)}},2532:(e,t,r)=>{"use strict";var n=r(5329),s=n({}.toString),i=n("".slice);e.exports=function(e){return i(s(e),8,-1)}},9697:(e,t,r)=>{"use strict";var n=r(2885),s=r(7475),i=r(2532),o=r(9813)("toStringTag"),a=Object,c="Arguments"===i(function(){return arguments}());e.exports=n?i:function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=function(e,t){try{return e[t]}catch(e){}}(t=a(e),o))?r:c?i(t):"Object"===(n=i(t))&&s(t.callee)?"Arguments":n}},3489:(e,t,r)=>{"use strict";var n=r(953),s=r(1136),i=r(9677),o=r(5988);e.exports=function(e,t,r){for(var a=s(t),c=o.f,l=i.f,u=0;u<a.length;u++){var p=a[u];n(e,p)||r&&n(r,p)||c(e,p,l(t,p))}}},1310:(e,t,r)=>{"use strict";var n=r(5981);e.exports=!n((function(){function e(){}return e.prototype.constructor=null,Object.getPrototypeOf(new e)!==e.prototype}))},3538:e=>{"use strict";e.exports=function(e,t){return{value:e,done:t}}},2029:(e,t,r)=>{"use strict";var n=r(5746),s=r(5988),i=r(1887);e.exports=n?function(e,t,r){return s.f(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},1887:e=>{"use strict";e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},5929:(e,t,r)=>{"use strict";var n=r(2029);e.exports=function(e,t,r,s){return s&&s.enumerable?e[t]=r:n(e,t,r),e}},5609:(e,t,r)=>{"use strict";var n=r(1899),s=Object.defineProperty;e.exports=function(e,t){try{s(n,e,{value:t,configurable:!0,writable:!0})}catch(r){n[e]=t}return t}},5746:(e,t,r)=>{"use strict";var n=r(5981);e.exports=!n((function(){return 7!==Object.defineProperty({},1,{get:function(){return 7}})[1]}))},6616:e=>{"use strict";var t="object"==typeof document&&document.all,r=void 0===t&&void 0!==t;e.exports={all:t,IS_HTMLDDA:r}},1333:(e,t,r)=>{"use strict";var n=r(1899),s=r(941),i=n.document,o=s(i)&&s(i.createElement);e.exports=function(e){return o?i.createElement(e):{}}},3281:e=>{"use strict";e.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},2861:e=>{"use strict";e.exports="undefined"!=typeof navigator&&String(navigator.userAgent)||""},3385:(e,t,r)=>{"use strict";var n,s,i=r(1899),o=r(2861),a=i.process,c=i.Deno,l=a&&a.versions||c&&c.version,u=l&&l.v8;u&&(s=(n=u.split("."))[0]>0&&n[0]<4?1:+(n[0]+n[1])),!s&&o&&(!(n=o.match(/Edge\/(\d+)/))||n[1]>=74)&&(n=o.match(/Chrome\/(\d+)/))&&(s=+n[1]),e.exports=s},6759:e=>{"use strict";e.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},3995:(e,t,r)=>{"use strict";var n=r(5329),s=Error,i=n("".replace),o=String(s("zxcasd").stack),a=/\n\s*at [^:]*:[^\n]*/,c=a.test(o);e.exports=function(e,t){if(c&&"string"==typeof e&&!s.prepareStackTrace)for(;t--;)e=i(e,a,"");return e}},9585:(e,t,r)=>{"use strict";var n=r(2029),s=r(3995),i=r(8780),o=Error.captureStackTrace;e.exports=function(e,t,r,a){i&&(o?o(e,t):n(e,"stack",s(r,a)))}},8780:(e,t,r)=>{"use strict";var n=r(5981),s=r(1887);e.exports=!n((function(){var e=Error("a");return!("stack"in e)||(Object.defineProperty(e,"stack",s(1,7)),7!==e.stack)}))},6887:(e,t,r)=>{"use strict";var n=r(1899),s=r(9730),i=r(7484),o=r(7475),a=r(9677).f,c=r(7252),l=r(4058),u=r(6843),p=r(2029),h=r(953),f=function(e){var t=function(r,n,i){if(this instanceof t){switch(arguments.length){case 0:return new e;case 1:return new e(r);case 2:return new e(r,n)}return new e(r,n,i)}return s(e,this,arguments)};return t.prototype=e.prototype,t};e.exports=function(e,t){var r,s,m,d,y,g,v,b,x,E=e.target,w=e.global,j=e.stat,O=e.proto,S=w?n:j?n[E]:(n[E]||{}).prototype,P=w?l:l[E]||p(l,E,{})[E],A=P.prototype;for(d in t)s=!(r=c(w?d:E+(j?".":"#")+d,e.forced))&&S&&h(S,d),g=P[d],s&&(v=e.dontCallGetSet?(x=a(S,d))&&x.value:S[d]),y=s&&v?v:t[d],s&&typeof g==typeof y||(b=e.bind&&s?u(y,n):e.wrap&&s?f(y):O&&o(y)?i(y):y,(e.sham||y&&y.sham||g&&g.sham)&&p(b,"sham",!0),p(P,d,b),O&&(h(l,m=E+"Prototype")||p(l,m,{}),p(l[m],d,y),e.real&&A&&(r||!A[d])&&p(A,d,y)))}},5981:e=>{"use strict";e.exports=function(e){try{return!!e()}catch(e){return!0}}},9730:(e,t,r)=>{"use strict";var n=r(8285),s=Function.prototype,i=s.apply,o=s.call;e.exports="object"==typeof Reflect&&Reflect.apply||(n?o.bind(i):function(){return o.apply(i,arguments)})},6843:(e,t,r)=>{"use strict";var n=r(7484),s=r(4883),i=r(8285),o=n(n.bind);e.exports=function(e,t){return s(e),void 0===t?e:i?o(e,t):function(){return e.apply(t,arguments)}}},8285:(e,t,r)=>{"use strict";var n=r(5981);e.exports=!n((function(){var e=function(){}.bind();return"function"!=typeof e||e.hasOwnProperty("prototype")}))},8834:(e,t,r)=>{"use strict";var n=r(8285),s=Function.prototype.call;e.exports=n?s.bind(s):function(){return s.apply(s,arguments)}},9417:(e,t,r)=>{"use strict";var n=r(5746),s=r(953),i=Function.prototype,o=n&&Object.getOwnPropertyDescriptor,a=s(i,"name"),c=a&&"something"===function(){}.name,l=a&&(!n||n&&o(i,"name").configurable);e.exports={EXISTS:a,PROPER:c,CONFIGURABLE:l}},5526:(e,t,r)=>{"use strict";var n=r(5329),s=r(4883);e.exports=function(e,t,r){try{return n(s(Object.getOwnPropertyDescriptor(e,t)[r]))}catch(e){}}},7484:(e,t,r)=>{"use strict";var n=r(2532),s=r(5329);e.exports=function(e){if("Function"===n(e))return s(e)}},5329:(e,t,r)=>{"use strict";var n=r(8285),s=Function.prototype,i=s.call,o=n&&s.bind.bind(i,i);e.exports=n?o:function(e){return function(){return i.apply(e,arguments)}}},626:(e,t,r)=>{"use strict";var n=r(4058),s=r(1899),i=r(7475),o=function(e){return i(e)?e:void 0};e.exports=function(e,t){return arguments.length<2?o(n[e])||o(s[e]):n[e]&&n[e][t]||s[e]&&s[e][t]}},2902:(e,t,r)=>{"use strict";var n=r(9697),s=r(4229),i=r(2119),o=r(2077),a=r(9813)("iterator");e.exports=function(e){if(!i(e))return s(e,a)||s(e,"@@iterator")||o[n(e)]}},3476:(e,t,r)=>{"use strict";var n=r(8834),s=r(4883),i=r(6059),o=r(9826),a=r(2902),c=TypeError;e.exports=function(e,t){var r=arguments.length<2?a(e):t;if(s(r))return i(n(r,e));throw c(o(e)+" is not iterable")}},4229:(e,t,r)=>{"use strict";var n=r(4883),s=r(2119);e.exports=function(e,t){var r=e[t];return s(r)?void 0:n(r)}},1899:function(e,t,r){"use strict";var n=function(e){return e&&e.Math===Math&&e};e.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof r.g&&r.g)||function(){return this}()||this||Function("return this")()},953:(e,t,r)=>{"use strict";var n=r(5329),s=r(9678),i=n({}.hasOwnProperty);e.exports=Object.hasOwn||function(e,t){return i(s(e),t)}},7748:e=>{"use strict";e.exports={}},5463:(e,t,r)=>{"use strict";var n=r(626);e.exports=n("document","documentElement")},2840:(e,t,r)=>{"use strict";var n=r(5746),s=r(5981),i=r(1333);e.exports=!n&&!s((function(){return 7!==Object.defineProperty(i("div"),"a",{get:function(){return 7}}).a}))},7026:(e,t,r)=>{"use strict";var n=r(5329),s=r(5981),i=r(2532),o=Object,a=n("".split);e.exports=s((function(){return!o("z").propertyIsEnumerable(0)}))?function(e){return"String"===i(e)?a(e,""):o(e)}:o},926:(e,t,r)=>{"use strict";var n=r(7475),s=r(941),i=r(8929);e.exports=function(e,t,r){var o,a;return i&&n(o=t.constructor)&&o!==r&&s(a=o.prototype)&&a!==r.prototype&&i(e,a),e}},3794:(e,t,r)=>{"use strict";var n=r(941),s=r(2029);e.exports=function(e,t){n(t)&&"cause"in t&&s(e,"cause",t.cause)}},5402:(e,t,r)=>{"use strict";var n,s,i,o=r(7093),a=r(1899),c=r(941),l=r(2029),u=r(953),p=r(3030),h=r(4262),f=r(7748),m="Object already initialized",d=a.TypeError,y=a.WeakMap;if(o||p.state){var g=p.state||(p.state=new y);g.get=g.get,g.has=g.has,g.set=g.set,n=function(e,t){if(g.has(e))throw d(m);return t.facade=e,g.set(e,t),t},s=function(e){return g.get(e)||{}},i=function(e){return g.has(e)}}else{var v=h("state");f[v]=!0,n=function(e,t){if(u(e,v))throw d(m);return t.facade=e,l(e,v,t),t},s=function(e){return u(e,v)?e[v]:{}},i=function(e){return u(e,v)}}e.exports={set:n,get:s,has:i,enforce:function(e){return i(e)?s(e):n(e,{})},getterFor:function(e){return function(t){var r;if(!c(t)||(r=s(t)).type!==e)throw d("Incompatible receiver, "+e+" required");return r}}}},6782:(e,t,r)=>{"use strict";var n=r(9813),s=r(2077),i=n("iterator"),o=Array.prototype;e.exports=function(e){return void 0!==e&&(s.Array===e||o[i]===e)}},7475:(e,t,r)=>{"use strict";var n=r(6616),s=n.all;e.exports=n.IS_HTMLDDA?function(e){return"function"==typeof e||e===s}:function(e){return"function"==typeof e}},7252:(e,t,r)=>{"use strict";var n=r(5981),s=r(7475),i=/#|\.prototype\./,o=function(e,t){var r=c[a(e)];return r===u||r!==l&&(s(t)?n(t):!!t)},a=o.normalize=function(e){return String(e).replace(i,".").toLowerCase()},c=o.data={},l=o.NATIVE="N",u=o.POLYFILL="P";e.exports=o},2119:e=>{"use strict";e.exports=function(e){return null==e}},941:(e,t,r)=>{"use strict";var n=r(7475),s=r(6616),i=s.all;e.exports=s.IS_HTMLDDA?function(e){return"object"==typeof e?null!==e:n(e)||e===i}:function(e){return"object"==typeof e?null!==e:n(e)}},2529:e=>{"use strict";e.exports=!0},6664:(e,t,r)=>{"use strict";var n=r(626),s=r(7475),i=r(7046),o=r(2302),a=Object;e.exports=o?function(e){return"symbol"==typeof e}:function(e){var t=n("Symbol");return s(t)&&i(t.prototype,a(e))}},3091:(e,t,r)=>{"use strict";var n=r(6843),s=r(8834),i=r(6059),o=r(9826),a=r(6782),c=r(623),l=r(7046),u=r(3476),p=r(2902),h=r(7609),f=TypeError,m=function(e,t){this.stopped=e,this.result=t},d=m.prototype;e.exports=function(e,t,r){var y,g,v,b,x,E,w,j=r&&r.that,O=!(!r||!r.AS_ENTRIES),S=!(!r||!r.IS_RECORD),P=!(!r||!r.IS_ITERATOR),A=!(!r||!r.INTERRUPTED),$=n(t,j),_=function(e){return y&&h(y,"normal",e),new m(!0,e)},k=function(e){return O?(i(e),A?$(e[0],e[1],_):$(e[0],e[1])):A?$(e,_):$(e)};if(S)y=e.iterator;else if(P)y=e;else{if(!(g=p(e)))throw f(o(e)+" is not iterable");if(a(g)){for(v=0,b=c(e);b>v;v++)if((x=k(e[v]))&&l(d,x))return x;return new m(!1)}y=u(e,g)}for(E=S?e.next:y.next;!(w=s(E,y)).done;){try{x=k(w.value)}catch(e){h(y,"throw",e)}if("object"==typeof x&&x&&l(d,x))return x}return new m(!1)}},7609:(e,t,r)=>{"use strict";var n=r(8834),s=r(6059),i=r(4229);e.exports=function(e,t,r){var o,a;s(e);try{if(!(o=i(e,"return"))){if("throw"===t)throw r;return r}o=n(o,e)}catch(e){a=!0,o=e}if("throw"===t)throw r;if(a)throw o;return s(o),r}},3847:(e,t,r)=>{"use strict";var n=r(5143).IteratorPrototype,s=r(9290),i=r(1887),o=r(904),a=r(2077),c=function(){return this};e.exports=function(e,t,r,l){var u=t+" Iterator";return e.prototype=s(n,{next:i(+!l,r)}),o(e,u,!1,!0),a[u]=c,e}},5105:(e,t,r)=>{"use strict";var n=r(6887),s=r(8834),i=r(2529),o=r(9417),a=r(7475),c=r(3847),l=r(249),u=r(8929),p=r(904),h=r(2029),f=r(5929),m=r(9813),d=r(2077),y=r(5143),g=o.PROPER,v=o.CONFIGURABLE,b=y.IteratorPrototype,x=y.BUGGY_SAFARI_ITERATORS,E=m("iterator"),w="keys",j="values",O="entries",S=function(){return this};e.exports=function(e,t,r,o,m,y,P){c(r,t,o);var A,$,_,k=function(e){if(e===m&&R)return R;if(!x&&e&&e in C)return C[e];switch(e){case w:case j:case O:return function(){return new r(this,e)}}return function(){return new r(this)}},T=t+" Iterator",I=!1,C=e.prototype,M=C[E]||C["@@iterator"]||m&&C[m],R=!x&&M||k(m),F="Array"===t&&C.entries||M;if(F&&(A=l(F.call(new e)))!==Object.prototype&&A.next&&(i||l(A)===b||(u?u(A,b):a(A[E])||f(A,E,S)),p(A,T,!0,!0),i&&(d[T]=S)),g&&m===j&&M&&M.name!==j&&(!i&&v?h(C,"name",j):(I=!0,R=function(){return s(M,this)})),m)if($={values:k(j),keys:y?R:k(w),entries:k(O)},P)for(_ in $)(x||I||!(_ in C))&&f(C,_,$[_]);else n({target:t,proto:!0,forced:x||I},$);return i&&!P||C[E]===R||f(C,E,R,{name:m}),d[t]=R,$}},5143:(e,t,r)=>{"use strict";var n,s,i,o=r(5981),a=r(7475),c=r(941),l=r(9290),u=r(249),p=r(5929),h=r(9813),f=r(2529),m=h("iterator"),d=!1;[].keys&&("next"in(i=[].keys())?(s=u(u(i)))!==Object.prototype&&(n=s):d=!0),!c(n)||o((function(){var e={};return n[m].call(e)!==e}))?n={}:f&&(n=l(n)),a(n[m])||p(n,m,(function(){return this})),e.exports={IteratorPrototype:n,BUGGY_SAFARI_ITERATORS:d}},2077:e=>{"use strict";e.exports={}},623:(e,t,r)=>{"use strict";var n=r(3057);e.exports=function(e){return n(e.length)}},5331:e=>{"use strict";var t=Math.ceil,r=Math.floor;e.exports=Math.trunc||function(e){var n=+e;return(n>0?r:t)(n)}},4649:(e,t,r)=>{"use strict";var n=r(5803);e.exports=function(e,t){return void 0===e?arguments.length<2?"":t:n(e)}},9290:(e,t,r)=>{"use strict";var n,s=r(6059),i=r(9938),o=r(6759),a=r(7748),c=r(5463),l=r(1333),u=r(4262),p="prototype",h="script",f=u("IE_PROTO"),m=function(){},d=function(e){return"<"+h+">"+e+"</"+h+">"},y=function(e){e.write(d("")),e.close();var t=e.parentWindow.Object;return e=null,t},g=function(){try{n=new ActiveXObject("htmlfile")}catch(e){}var e,t,r;g="undefined"!=typeof document?document.domain&&n?y(n):(t=l("iframe"),r="java"+h+":",t.style.display="none",c.appendChild(t),t.src=String(r),(e=t.contentWindow.document).open(),e.write(d("document.F=Object")),e.close(),e.F):y(n);for(var s=o.length;s--;)delete g[p][o[s]];return g()};a[f]=!0,e.exports=Object.create||function(e,t){var r;return null!==e?(m[p]=s(e),r=new m,m[p]=null,r[f]=e):r=g(),void 0===t?r:i.f(r,t)}},9938:(e,t,r)=>{"use strict";var n=r(5746),s=r(3937),i=r(5988),o=r(6059),a=r(4529),c=r(4771);t.f=n&&!s?Object.defineProperties:function(e,t){o(e);for(var r,n=a(t),s=c(t),l=s.length,u=0;l>u;)i.f(e,r=s[u++],n[r]);return e}},5988:(e,t,r)=>{"use strict";var n=r(5746),s=r(2840),i=r(3937),o=r(6059),a=r(3894),c=TypeError,l=Object.defineProperty,u=Object.getOwnPropertyDescriptor,p="enumerable",h="configurable",f="writable";t.f=n?i?function(e,t,r){if(o(e),t=a(t),o(r),"function"==typeof e&&"prototype"===t&&"value"in r&&f in r&&!r[f]){var n=u(e,t);n&&n[f]&&(e[t]=r.value,r={configurable:h in r?r[h]:n[h],enumerable:p in r?r[p]:n[p],writable:!1})}return l(e,t,r)}:l:function(e,t,r){if(o(e),t=a(t),o(r),s)try{return l(e,t,r)}catch(e){}if("get"in r||"set"in r)throw c("Accessors not supported");return"value"in r&&(e[t]=r.value),e}},9677:(e,t,r)=>{"use strict";var n=r(5746),s=r(8834),i=r(6760),o=r(1887),a=r(4529),c=r(3894),l=r(953),u=r(2840),p=Object.getOwnPropertyDescriptor;t.f=n?p:function(e,t){if(e=a(e),t=c(t),u)try{return p(e,t)}catch(e){}if(l(e,t))return o(!s(i.f,e,t),e[t])}},946:(e,t,r)=>{"use strict";var n=r(5629),s=r(6759).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return n(e,s)}},7857:(e,t)=>{"use strict";t.f=Object.getOwnPropertySymbols},249:(e,t,r)=>{"use strict";var n=r(953),s=r(7475),i=r(9678),o=r(4262),a=r(1310),c=o("IE_PROTO"),l=Object,u=l.prototype;e.exports=a?l.getPrototypeOf:function(e){var t=i(e);if(n(t,c))return t[c];var r=t.constructor;return s(r)&&t instanceof r?r.prototype:t instanceof l?u:null}},7046:(e,t,r)=>{"use strict";var n=r(5329);e.exports=n({}.isPrototypeOf)},5629:(e,t,r)=>{"use strict";var n=r(5329),s=r(953),i=r(4529),o=r(1692).indexOf,a=r(7748),c=n([].push);e.exports=function(e,t){var r,n=i(e),l=0,u=[];for(r in n)!s(a,r)&&s(n,r)&&c(u,r);for(;t.length>l;)s(n,r=t[l++])&&(~o(u,r)||c(u,r));return u}},4771:(e,t,r)=>{"use strict";var n=r(5629),s=r(6759);e.exports=Object.keys||function(e){return n(e,s)}},6760:(e,t)=>{"use strict";var r={}.propertyIsEnumerable,n=Object.getOwnPropertyDescriptor,s=n&&!r.call({1:2},1);t.f=s?function(e){var t=n(this,e);return!!t&&t.enumerable}:r},8929:(e,t,r)=>{"use strict";var n=r(5526),s=r(6059),i=r(1851);e.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var e,t=!1,r={};try{(e=n(Object.prototype,"__proto__","set"))(r,[]),t=r instanceof Array}catch(e){}return function(r,n){return s(r),i(n),t?e(r,n):r.__proto__=n,r}}():void 0)},5623:(e,t,r)=>{"use strict";var n=r(2885),s=r(9697);e.exports=n?{}.toString:function(){return"[object "+s(this)+"]"}},9811:(e,t,r)=>{"use strict";var n=r(8834),s=r(7475),i=r(941),o=TypeError;e.exports=function(e,t){var r,a;if("string"===t&&s(r=e.toString)&&!i(a=n(r,e)))return a;if(s(r=e.valueOf)&&!i(a=n(r,e)))return a;if("string"!==t&&s(r=e.toString)&&!i(a=n(r,e)))return a;throw o("Can't convert object to primitive value")}},1136:(e,t,r)=>{"use strict";var n=r(626),s=r(5329),i=r(946),o=r(7857),a=r(6059),c=s([].concat);e.exports=n("Reflect","ownKeys")||function(e){var t=i.f(a(e)),r=o.f;return r?c(t,r(e)):t}},4058:e=>{"use strict";e.exports={}},9056:(e,t,r)=>{"use strict";var n=r(5988).f;e.exports=function(e,t,r){r in e||n(e,r,{configurable:!0,get:function(){return t[r]},set:function(e){t[r]=e}})}},7962:(e,t,r)=>{"use strict";var n=r(2119),s=TypeError;e.exports=function(e){if(n(e))throw s("Can't call method on "+e);return e}},904:(e,t,r)=>{"use strict";var n=r(2885),s=r(5988).f,i=r(2029),o=r(953),a=r(5623),c=r(9813)("toStringTag");e.exports=function(e,t,r,l){if(e){var u=r?e:e.prototype;o(u,c)||s(u,c,{configurable:!0,value:t}),l&&!n&&i(u,"toString",a)}}},4262:(e,t,r)=>{"use strict";var n=r(8726),s=r(9418),i=n("keys");e.exports=function(e){return i[e]||(i[e]=s(e))}},3030:(e,t,r)=>{"use strict";var n=r(1899),s=r(5609),i="__core-js_shared__",o=n[i]||s(i,{});e.exports=o},8726:(e,t,r)=>{"use strict";var n=r(2529),s=r(3030);(e.exports=function(e,t){return s[e]||(s[e]=void 0!==t?t:{})})("versions",[]).push({version:"3.32.2",mode:n?"pure":"global",copyright:"© 2014-2023 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.32.2/LICENSE",source:"https://github.com/zloirock/core-js"})},4620:(e,t,r)=>{"use strict";var n=r(5329),s=r(2435),i=r(5803),o=r(7962),a=n("".charAt),c=n("".charCodeAt),l=n("".slice),u=function(e){return function(t,r){var n,u,p=i(o(t)),h=s(r),f=p.length;return h<0||h>=f?e?"":void 0:(n=c(p,h))<55296||n>56319||h+1===f||(u=c(p,h+1))<56320||u>57343?e?a(p,h):n:e?l(p,h,h+2):u-56320+(n-55296<<10)+65536}};e.exports={codeAt:u(!1),charAt:u(!0)}},3405:(e,t,r)=>{"use strict";var n=r(3385),s=r(5981),i=r(1899).String;e.exports=!!Object.getOwnPropertySymbols&&!s((function(){var e=Symbol("symbol detection");return!i(e)||!(Object(e)instanceof Symbol)||!Symbol.sham&&n&&n<41}))},9413:(e,t,r)=>{"use strict";var n=r(2435),s=Math.max,i=Math.min;e.exports=function(e,t){var r=n(e);return r<0?s(r+t,0):i(r,t)}},4529:(e,t,r)=>{"use strict";var n=r(7026),s=r(7962);e.exports=function(e){return n(s(e))}},2435:(e,t,r)=>{"use strict";var n=r(5331);e.exports=function(e){var t=+e;return t!=t||0===t?0:n(t)}},3057:(e,t,r)=>{"use strict";var n=r(2435),s=Math.min;e.exports=function(e){return e>0?s(n(e),9007199254740991):0}},9678:(e,t,r)=>{"use strict";var n=r(7962),s=Object;e.exports=function(e){return s(n(e))}},6935:(e,t,r)=>{"use strict";var n=r(8834),s=r(941),i=r(6664),o=r(4229),a=r(9811),c=r(9813),l=TypeError,u=c("toPrimitive");e.exports=function(e,t){if(!s(e)||i(e))return e;var r,c=o(e,u);if(c){if(void 0===t&&(t="default"),r=n(c,e,t),!s(r)||i(r))return r;throw l("Can't convert object to primitive value")}return void 0===t&&(t="number"),a(e,t)}},3894:(e,t,r)=>{"use strict";var n=r(6935),s=r(6664);e.exports=function(e){var t=n(e,"string");return s(t)?t:t+""}},2885:(e,t,r)=>{"use strict";var n={};n[r(9813)("toStringTag")]="z",e.exports="[object z]"===String(n)},5803:(e,t,r)=>{"use strict";var n=r(9697),s=String;e.exports=function(e){if("Symbol"===n(e))throw TypeError("Cannot convert a Symbol value to a string");return s(e)}},9826:e=>{"use strict";var t=String;e.exports=function(e){try{return t(e)}catch(e){return"Object"}}},9418:(e,t,r)=>{"use strict";var n=r(5329),s=0,i=Math.random(),o=n(1..toString);e.exports=function(e){return"Symbol("+(void 0===e?"":e)+")_"+o(++s+i,36)}},2302:(e,t,r)=>{"use strict";var n=r(3405);e.exports=n&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},3937:(e,t,r)=>{"use strict";var n=r(5746),s=r(5981);e.exports=n&&s((function(){return 42!==Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},7093:(e,t,r)=>{"use strict";var n=r(1899),s=r(7475),i=n.WeakMap;e.exports=s(i)&&/native code/.test(String(i))},9813:(e,t,r)=>{"use strict";var n=r(1899),s=r(8726),i=r(953),o=r(9418),a=r(3405),c=r(2302),l=n.Symbol,u=s("wks"),p=c?l.for||l:l&&l.withoutSetter||o;e.exports=function(e){return i(u,e)||(u[e]=a&&i(l,e)?l[e]:p("Symbol."+e)),u[e]}},2864:(e,t,r)=>{"use strict";var n=r(626),s=r(953),i=r(2029),o=r(7046),a=r(8929),c=r(3489),l=r(9056),u=r(926),p=r(4649),h=r(3794),f=r(9585),m=r(5746),d=r(2529);e.exports=function(e,t,r,y){var g="stackTraceLimit",v=y?2:1,b=e.split("."),x=b[b.length-1],E=n.apply(null,b);if(E){var w=E.prototype;if(!d&&s(w,"cause")&&delete w.cause,!r)return E;var j=n("Error"),O=t((function(e,t){var r=p(y?t:e,void 0),n=y?new E(e):new E;return void 0!==r&&i(n,"message",r),f(n,O,n.stack,2),this&&o(w,this)&&u(n,this,O),arguments.length>v&&h(n,arguments[v]),n}));if(O.prototype=w,"Error"!==x?a?a(O,j):c(O,j,{name:!0}):m&&g in E&&(l(O,E,g),l(O,E,"prepareStackTrace")),c(O,E),!d)try{w.name!==x&&i(w,"name",x),w.constructor=O}catch(e){}return O}}},4415:(e,t,r)=>{"use strict";var n=r(6887),s=r(626),i=r(9730),o=r(5981),a=r(2864),c="AggregateError",l=s(c),u=!o((function(){return 1!==l([1]).errors[0]}))&&o((function(){return 7!==l([1],c,{cause:7}).cause}));n({global:!0,constructor:!0,arity:2,forced:u},{AggregateError:a(c,(function(e){return function(t,r){return i(e,this,arguments)}}),u,!0)})},9812:(e,t,r)=>{"use strict";var n=r(6887),s=r(7046),i=r(249),o=r(8929),a=r(3489),c=r(9290),l=r(2029),u=r(1887),p=r(3794),h=r(9585),f=r(3091),m=r(4649),d=r(9813)("toStringTag"),y=Error,g=[].push,v=function(e,t){var r,n=s(b,this);o?r=o(y(),n?i(this):b):(r=n?this:c(b),l(r,d,"Error")),void 0!==t&&l(r,"message",m(t)),h(r,v,r.stack,1),arguments.length>2&&p(r,arguments[2]);var a=[];return f(e,g,{that:a}),l(r,"errors",a),r};o?o(v,y):a(v,y,{name:!0});var b=v.prototype=c(y.prototype,{constructor:u(1,v),message:u(1,""),name:u(1,"AggregateError")});n({global:!0,constructor:!0,arity:2},{AggregateError:v})},7627:(e,t,r)=>{"use strict";r(9812)},6274:(e,t,r)=>{"use strict";var n=r(4529),s=r(8479),i=r(2077),o=r(5402),a=r(5988).f,c=r(5105),l=r(3538),u=r(2529),p=r(5746),h="Array Iterator",f=o.set,m=o.getterFor(h);e.exports=c(Array,"Array",(function(e,t){f(this,{type:h,target:n(e),index:0,kind:t})}),(function(){var e=m(this),t=e.target,r=e.kind,n=e.index++;if(!t||n>=t.length)return e.target=void 0,l(void 0,!0);switch(r){case"keys":return l(n,!1);case"values":return l(t[n],!1)}return l([n,t[n]],!1)}),"values");var d=i.Arguments=i.Array;if(s("keys"),s("values"),s("entries"),!u&&p&&"values"!==d.name)try{a(d,"name",{value:"values"})}catch(e){}},1181:(e,t,r)=>{"use strict";var n=r(6887),s=r(1899),i=r(9730),o=r(2864),a="WebAssembly",c=s[a],l=7!==Error("e",{cause:7}).cause,u=function(e,t){var r={};r[e]=o(e,t,l),n({global:!0,constructor:!0,arity:1,forced:l},r)},p=function(e,t){if(c&&c[e]){var r={};r[e]=o(a+"."+e,t,l),n({target:a,stat:!0,constructor:!0,arity:1,forced:l},r)}};u("Error",(function(e){return function(t){return i(e,this,arguments)}})),u("EvalError",(function(e){return function(t){return i(e,this,arguments)}})),u("RangeError",(function(e){return function(t){return i(e,this,arguments)}})),u("ReferenceError",(function(e){return function(t){return i(e,this,arguments)}})),u("SyntaxError",(function(e){return function(t){return i(e,this,arguments)}})),u("TypeError",(function(e){return function(t){return i(e,this,arguments)}})),u("URIError",(function(e){return function(t){return i(e,this,arguments)}})),p("CompileError",(function(e){return function(t){return i(e,this,arguments)}})),p("LinkError",(function(e){return function(t){return i(e,this,arguments)}})),p("RuntimeError",(function(e){return function(t){return i(e,this,arguments)}}))},7971:(e,t,r)=>{"use strict";var n=r(4620).charAt,s=r(5803),i=r(5402),o=r(5105),a=r(3538),c="String Iterator",l=i.set,u=i.getterFor(c);o(String,"String",(function(e){l(this,{type:c,string:s(e),index:0})}),(function(){var e,t=u(this),r=t.string,s=t.index;return s>=r.length?a(void 0,!0):(e=n(r,s),t.index+=e.length,a(e,!1))}))},9731:(e,t,r)=>{"use strict";r(7627)},7634:(e,t,r)=>{"use strict";r(6274);var n=r(3281),s=r(1899),i=r(9697),o=r(2029),a=r(2077),c=r(9813)("toStringTag");for(var l in n){var u=s[l],p=u&&u.prototype;p&&i(p)!==c&&o(p,c,l),a[l]=a.Array}},8957:(e,t,r)=>{"use strict";r(9731);var n=r(415);r(7634),e.exports=n},9996:e=>{"use strict";var t=function(e){return function(e){return!!e&&"object"==typeof e}(e)&&!function(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||function(e){return e.$$typeof===r}(e)}(e)};var r="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function n(e,t){return!1!==t.clone&&t.isMergeableObject(e)?c((r=e,Array.isArray(r)?[]:{}),e,t):e;var r}function s(e,t,r){return e.concat(t).map((function(e){return n(e,r)}))}function i(e){return Object.keys(e).concat(function(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter((function(t){return Object.propertyIsEnumerable.call(e,t)})):[]}(e))}function o(e,t){try{return t in e}catch(e){return!1}}function a(e,t,r){var s={};return r.isMergeableObject(e)&&i(e).forEach((function(t){s[t]=n(e[t],r)})),i(t).forEach((function(i){(function(e,t){return o(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))})(e,i)||(o(e,i)&&r.isMergeableObject(t[i])?s[i]=function(e,t){if(!t.customMerge)return c;var r=t.customMerge(e);return"function"==typeof r?r:c}(i,r)(e[i],t[i],r):s[i]=n(t[i],r))})),s}function c(e,r,i){(i=i||{}).arrayMerge=i.arrayMerge||s,i.isMergeableObject=i.isMergeableObject||t,i.cloneUnlessOtherwiseSpecified=n;var o=Array.isArray(r);return o===Array.isArray(e)?o?i.arrayMerge(e,r,i):a(e,r,i):n(r,i)}c.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce((function(e,r){return c(e,r,t)}),{})};var l=c;e.exports=l},7648:e=>{"use strict";var t=Object.prototype.toString,r=Math.max,n=function(e,t){for(var r=[],n=0;n<e.length;n+=1)r[n]=e[n];for(var s=0;s<t.length;s+=1)r[s+e.length]=t[s];return r};e.exports=function(e){var s=this;if("function"!=typeof s||"[object Function]"!==t.apply(s))throw new TypeError("Function.prototype.bind called on incompatible "+s);for(var i,o=function(e,t){for(var r=[],n=t||0,s=0;n<e.length;n+=1,s+=1)r[s]=e[n];return r}(arguments,1),a=r(0,s.length-o.length),c=[],l=0;l<a;l++)c[l]="$"+l;if(i=Function("binder","return function ("+function(e,t){for(var r="",n=0;n<e.length;n+=1)r+=e[n],n+1<e.length&&(r+=t);return r}(c,",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof i){var t=s.apply(this,n(o,arguments));return Object(t)===t?t:this}return s.apply(e,n(o,arguments))})),s.prototype){var u=function(){};u.prototype=s.prototype,i.prototype=new u,u.prototype=null}return i}},8612:(e,t,r)=>{"use strict";var n=r(7648);e.exports=Function.prototype.bind||n},210:(e,t,r)=>{"use strict";var n,s=SyntaxError,i=Function,o=TypeError,a=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},c=Object.getOwnPropertyDescriptor;if(c)try{c({},"")}catch(e){c=null}var l=function(){throw new o},u=c?function(){try{return l}catch(e){try{return c(arguments,"callee").get}catch(e){return l}}}():l,p=r(1405)(),h=r(8185)(),f=Object.getPrototypeOf||(h?function(e){return e.__proto__}:null),m={},d="undefined"!=typeof Uint8Array&&f?f(Uint8Array):n,y={"%AggregateError%":"undefined"==typeof AggregateError?n:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?n:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):n,"%AsyncFromSyncIteratorPrototype%":n,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?n:Atomics,"%BigInt%":"undefined"==typeof BigInt?n:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?n:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?n:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?n:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?n:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?n:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?n:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?n:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?n:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?n:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):n,"%JSON%":"object"==typeof JSON?JSON:n,"%Map%":"undefined"==typeof Map?n:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):n,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?n:Promise,"%Proxy%":"undefined"==typeof Proxy?n:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?n:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?n:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):n,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?n:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):n,"%Symbol%":p?Symbol:n,"%SyntaxError%":s,"%ThrowTypeError%":u,"%TypedArray%":d,"%TypeError%":o,"%Uint8Array%":"undefined"==typeof Uint8Array?n:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?n:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?n:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?n:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?n:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?n:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?n:WeakSet};if(f)try{null.error}catch(e){var g=f(f(e));y["%Error.prototype%"]=g}var v=function e(t){var r;if("%AsyncFunction%"===t)r=a("async function () {}");else if("%GeneratorFunction%"===t)r=a("function* () {}");else if("%AsyncGeneratorFunction%"===t)r=a("async function* () {}");else if("%AsyncGenerator%"===t){var n=e("%AsyncGeneratorFunction%");n&&(r=n.prototype)}else if("%AsyncIteratorPrototype%"===t){var s=e("%AsyncGenerator%");s&&f&&(r=f(s.prototype))}return y[t]=r,r},b={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},x=r(8612),E=r(7642),w=x.call(Function.call,Array.prototype.concat),j=x.call(Function.apply,Array.prototype.splice),O=x.call(Function.call,String.prototype.replace),S=x.call(Function.call,String.prototype.slice),P=x.call(Function.call,RegExp.prototype.exec),A=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,$=/\\(\\)?/g,_=function(e,t){var r,n=e;if(E(b,n)&&(n="%"+(r=b[n])[0]+"%"),E(y,n)){var i=y[n];if(i===m&&(i=v(n)),void 0===i&&!t)throw new o("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:r,name:n,value:i}}throw new s("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new o("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new o('"allowMissing" argument must be a boolean');if(null===P(/^%?[^%]*%?$/,e))throw new s("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var r=function(e){var t=S(e,0,1),r=S(e,-1);if("%"===t&&"%"!==r)throw new s("invalid intrinsic syntax, expected closing `%`");if("%"===r&&"%"!==t)throw new s("invalid intrinsic syntax, expected opening `%`");var n=[];return O(e,A,(function(e,t,r,s){n[n.length]=r?O(s,$,"$1"):t||e})),n}(e),n=r.length>0?r[0]:"",i=_("%"+n+"%",t),a=i.name,l=i.value,u=!1,p=i.alias;p&&(n=p[0],j(r,w([0,1],p)));for(var h=1,f=!0;h<r.length;h+=1){var m=r[h],d=S(m,0,1),g=S(m,-1);if(('"'===d||"'"===d||"`"===d||'"'===g||"'"===g||"`"===g)&&d!==g)throw new s("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),E(y,a="%"+(n+="."+m)+"%"))l=y[a];else if(null!=l){if(!(m in l)){if(!t)throw new o("base intrinsic for "+e+" exists, but the property is not available.");return}if(c&&h+1>=r.length){var v=c(l,m);l=(f=!!v)&&"get"in v&&!("originalValue"in v.get)?v.get:l[m]}else f=E(l,m),l=l[m];f&&!u&&(y[a]=l)}}return l}},8185:e=>{"use strict";var t={foo:{}},r=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof r)}},1405:(e,t,r)=>{"use strict";var n="undefined"!=typeof Symbol&&Symbol,s=r(5419);e.exports=function(){return"function"==typeof n&&("function"==typeof Symbol&&("symbol"==typeof n("foo")&&("symbol"==typeof Symbol("bar")&&s())))}},5419:e=>{"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),r=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(r))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var n=Object.getOwnPropertySymbols(e);if(1!==n.length||n[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var s=Object.getOwnPropertyDescriptor(e,t);if(42!==s.value||!0!==s.enumerable)return!1}return!0}},7642:(e,t,r)=>{"use strict";var n=r(8612);e.exports=n.call(Function.call,Object.prototype.hasOwnProperty)},8552:(e,t,r)=>{var n=r(852)(r(5639),"DataView");e.exports=n},1989:(e,t,r)=>{var n=r(1789),s=r(401),i=r(7667),o=r(1327),a=r(1866);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},8407:(e,t,r)=>{var n=r(7040),s=r(4125),i=r(2117),o=r(7518),a=r(4705);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},7071:(e,t,r)=>{var n=r(852)(r(5639),"Map");e.exports=n},3369:(e,t,r)=>{var n=r(4785),s=r(1285),i=r(6e3),o=r(9916),a=r(5265);function c(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}c.prototype.clear=n,c.prototype.delete=s,c.prototype.get=i,c.prototype.has=o,c.prototype.set=a,e.exports=c},3818:(e,t,r)=>{var n=r(852)(r(5639),"Promise");e.exports=n},8525:(e,t,r)=>{var n=r(852)(r(5639),"Set");e.exports=n},8668:(e,t,r)=>{var n=r(3369),s=r(619),i=r(2385);function o(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}o.prototype.add=o.prototype.push=s,o.prototype.has=i,e.exports=o},6384:(e,t,r)=>{var n=r(8407),s=r(7465),i=r(3779),o=r(7599),a=r(4758),c=r(4309);function l(e){var t=this.__data__=new n(e);this.size=t.size}l.prototype.clear=s,l.prototype.delete=i,l.prototype.get=o,l.prototype.has=a,l.prototype.set=c,e.exports=l},2705:(e,t,r)=>{var n=r(5639).Symbol;e.exports=n},1149:(e,t,r)=>{var n=r(5639).Uint8Array;e.exports=n},577:(e,t,r)=>{var n=r(852)(r(5639),"WeakMap");e.exports=n},4963:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,s=0,i=[];++r<n;){var o=e[r];t(o,r,e)&&(i[s++]=o)}return i}},4636:(e,t,r)=>{var n=r(2545),s=r(5694),i=r(1469),o=r(4144),a=r(5776),c=r(6719),l=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&s(e),p=!r&&!u&&o(e),h=!r&&!u&&!p&&c(e),f=r||u||p||h,m=f?n(e.length,String):[],d=m.length;for(var y in e)!t&&!l.call(e,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||h&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||a(y,d))||m.push(y);return m}},2488:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,s=e.length;++r<n;)e[s+r]=t[r];return e}},2908:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},8470:(e,t,r)=>{var n=r(7813);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},8866:(e,t,r)=>{var n=r(2488),s=r(1469);e.exports=function(e,t,r){var i=t(e);return s(e)?i:n(i,r(e))}},4239:(e,t,r)=>{var n=r(2705),s=r(9607),i=r(2333),o=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?s(e):i(e)}},9454:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return s(e)&&"[object Arguments]"==n(e)}},939:(e,t,r)=>{var n=r(2492),s=r(7005);e.exports=function e(t,r,i,o,a){return t===r||(null==t||null==r||!s(t)&&!s(r)?t!=t&&r!=r:n(t,r,i,o,e,a))}},2492:(e,t,r)=>{var n=r(6384),s=r(7114),i=r(8351),o=r(6096),a=r(4160),c=r(1469),l=r(4144),u=r(6719),p="[object Arguments]",h="[object Array]",f="[object Object]",m=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,d,y,g){var v=c(e),b=c(t),x=v?h:a(e),E=b?h:a(t),w=(x=x==p?f:x)==f,j=(E=E==p?f:E)==f,O=x==E;if(O&&l(e)){if(!l(t))return!1;v=!0,w=!1}if(O&&!w)return g||(g=new n),v||u(e)?s(e,t,r,d,y,g):i(e,t,x,r,d,y,g);if(!(1&r)){var S=w&&m.call(e,"__wrapped__"),P=j&&m.call(t,"__wrapped__");if(S||P){var A=S?e.value():e,$=P?t.value():t;return g||(g=new n),y(A,$,r,d,g)}}return!!O&&(g||(g=new n),o(e,t,r,d,y,g))}},8458:(e,t,r)=>{var n=r(3560),s=r(5346),i=r(3218),o=r(346),a=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,p=l.hasOwnProperty,h=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||s(e))&&(n(e)?h:a).test(o(e))}},8749:(e,t,r)=>{var n=r(4239),s=r(1780),i=r(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&s(e.length)&&!!o[n(e)]}},280:(e,t,r)=>{var n=r(5726),s=r(6916),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return s(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},2545:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},4429:(e,t,r)=>{var n=r(5639)["__core-js_shared__"];e.exports=n},7114:(e,t,r)=>{var n=r(8668),s=r(2908),i=r(4757);e.exports=function(e,t,r,o,a,c){var l=1&r,u=e.length,p=t.length;if(u!=p&&!(l&&p>u))return!1;var h=c.get(e),f=c.get(t);if(h&&f)return h==t&&f==e;var m=-1,d=!0,y=2&r?new n:void 0;for(c.set(e,t),c.set(t,e);++m<u;){var g=e[m],v=t[m];if(o)var b=l?o(v,g,m,t,e,c):o(g,v,m,e,t,c);if(void 0!==b){if(b)continue;d=!1;break}if(y){if(!s(t,(function(e,t){if(!i(y,t)&&(g===e||a(g,e,r,o,c)))return y.push(t)}))){d=!1;break}}else if(g!==v&&!a(g,v,r,o,c)){d=!1;break}}return c.delete(e),c.delete(t),d}},8351:(e,t,r)=>{var n=r(2705),s=r(1149),i=r(7813),o=r(7114),a=r(8776),c=r(1814),l=n?n.prototype:void 0,u=l?l.valueOf:void 0;e.exports=function(e,t,r,n,l,p,h){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!p(new s(e),new s(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var f=a;case"[object Set]":var m=1&n;if(f||(f=c),e.size!=t.size&&!m)return!1;var d=h.get(e);if(d)return d==t;n|=2,h.set(e,t);var y=o(f(e),f(t),n,l,p,h);return h.delete(e),y;case"[object Symbol]":if(u)return u.call(e)==u.call(t)}return!1}},6096:(e,t,r)=>{var n=r(8234),s=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,o,a){var c=1&r,l=n(e),u=l.length;if(u!=n(t).length&&!c)return!1;for(var p=u;p--;){var h=l[p];if(!(c?h in t:s.call(t,h)))return!1}var f=a.get(e),m=a.get(t);if(f&&m)return f==t&&m==e;var d=!0;a.set(e,t),a.set(t,e);for(var y=c;++p<u;){var g=e[h=l[p]],v=t[h];if(i)var b=c?i(v,g,h,t,e,a):i(g,v,h,e,t,a);if(!(void 0===b?g===v||o(g,v,r,i,a):b)){d=!1;break}y||(y="constructor"==h)}if(d&&!y){var x=e.constructor,E=t.constructor;x==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof x&&x instanceof x&&"function"==typeof E&&E instanceof E||(d=!1)}return a.delete(e),a.delete(t),d}},1957:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},8234:(e,t,r)=>{var n=r(8866),s=r(9551),i=r(3674);e.exports=function(e){return n(e,i,s)}},5050:(e,t,r)=>{var n=r(7019);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},852:(e,t,r)=>{var n=r(8458),s=r(7801);e.exports=function(e,t){var r=s(e,t);return n(r)?r:void 0}},9607:(e,t,r)=>{var n=r(2705),s=Object.prototype,i=s.hasOwnProperty,o=s.toString,a=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,a),r=e[a];try{e[a]=void 0;var n=!0}catch(e){}var s=o.call(e);return n&&(t?e[a]=r:delete e[a]),s}},9551:(e,t,r)=>{var n=r(4963),s=r(479),i=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),n(o(e),(function(t){return i.call(e,t)})))}:s;e.exports=a},4160:(e,t,r)=>{var n=r(8552),s=r(7071),i=r(3818),o=r(8525),a=r(577),c=r(4239),l=r(346),u="[object Map]",p="[object Promise]",h="[object Set]",f="[object WeakMap]",m="[object DataView]",d=l(n),y=l(s),g=l(i),v=l(o),b=l(a),x=c;(n&&x(new n(new ArrayBuffer(1)))!=m||s&&x(new s)!=u||i&&x(i.resolve())!=p||o&&x(new o)!=h||a&&x(new a)!=f)&&(x=function(e){var t=c(e),r="[object Object]"==t?e.constructor:void 0,n=r?l(r):"";if(n)switch(n){case d:return m;case y:return u;case g:return p;case v:return h;case b:return f}return t}),e.exports=x},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},1789:(e,t,r)=>{var n=r(4536);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,r)=>{var n=r(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return s.call(t,e)?t[e]:void 0}},1327:(e,t,r)=>{var n=r(4536),s=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:s.call(t,e)}},1866:(e,t,r)=>{var n=r(4536);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,r)=>{var n,s=r(4429),i=(n=/[^.]+$/.exec(s&&s.keys&&s.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,r)=>{var n=r(8470),s=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():s.call(t,r,1),--this.size,!0)}},2117:(e,t,r)=>{var n=r(8470);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},7518:(e,t,r)=>{var n=r(8470);e.exports=function(e){return n(this.__data__,e)>-1}},4705:(e,t,r)=>{var n=r(8470);e.exports=function(e,t){var r=this.__data__,s=n(r,e);return s<0?(++this.size,r.push([e,t])):r[s][1]=t,this}},4785:(e,t,r)=>{var n=r(1989),s=r(8407),i=r(7071);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||s),string:new n}}},1285:(e,t,r)=>{var n=r(5050);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).get(e)}},9916:(e,t,r)=>{var n=r(5050);e.exports=function(e){return n(this,e).has(e)}},5265:(e,t,r)=>{var n=r(5050);e.exports=function(e,t){var r=n(this,e),s=r.size;return r.set(e,t),this.size+=r.size==s?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},4536:(e,t,r)=>{var n=r(852)(Object,"create");e.exports=n},6916:(e,t,r)=>{var n=r(5569)(Object.keys,Object);e.exports=n},1167:(e,t,r)=>{e=r.nmd(e);var n=r(1957),s=t&&!t.nodeType&&t,i=s&&e&&!e.nodeType&&e,o=i&&i.exports===s&&n.process,a=function(){try{var e=i&&i.require&&i.require("util").types;return e||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},5639:(e,t,r)=>{var n=r(1957),s="object"==typeof self&&self&&self.Object===Object&&self,i=n||s||Function("return this")();e.exports=i},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},7465:(e,t,r)=>{var n=r(8407);e.exports=function(){this.__data__=new n,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,r)=>{var n=r(8407),s=r(7071),i=r(3369);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var o=r.__data__;if(!s||o.length<199)return o.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(o)}return r.set(e,t),this.size=r.size,this}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},5694:(e,t,r)=>{var n=r(9454),s=r(7005),i=Object.prototype,o=i.hasOwnProperty,a=i.propertyIsEnumerable,c=n(function(){return arguments}())?n:function(e){return s(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=c},1469:e=>{var t=Array.isArray;e.exports=t},1240:(e,t,r)=>{var n=r(3560),s=r(1780);e.exports=function(e){return null!=e&&s(e.length)&&!n(e)}},1584:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return!0===e||!1===e||s(e)&&"[object Boolean]"==n(e)}},4144:(e,t,r)=>{e=r.nmd(e);var n=r(5639),s=r(5062),i=t&&!t.nodeType&&t,o=i&&e&&!e.nodeType&&e,a=o&&o.exports===i?n.Buffer:void 0,c=(a?a.isBuffer:void 0)||s;e.exports=c},8446:(e,t,r)=>{var n=r(939);e.exports=function(e,t){return n(e,t)}},3560:(e,t,r)=>{var n=r(4239),s=r(3218);e.exports=function(e){if(!s(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},5220:e=>{e.exports=function(e){return null===e}},1763:(e,t,r)=>{var n=r(4239),s=r(7005);e.exports=function(e){return"number"==typeof e||s(e)&&"[object Number]"==n(e)}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},7037:(e,t,r)=>{var n=r(4239),s=r(1469),i=r(7005);e.exports=function(e){return"string"==typeof e||!s(e)&&i(e)&&"[object String]"==n(e)}},6719:(e,t,r)=>{var n=r(8749),s=r(1717),i=r(1167),o=i&&i.isTypedArray,a=o?s(o):n;e.exports=a},3674:(e,t,r)=>{var n=r(4636),s=r(280),i=r(1240);e.exports=function(e){return i(e)?n(e):s(e)}},4885:e=>{e.exports=function(e){if("function"!=typeof e)throw new TypeError("Expected a function");return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},2566:(e,t,r)=>{const n=r(4885);function s(e){return"string"==typeof e?t=>t.element===e:e.constructor&&e.extend?t=>t instanceof e:e}class i{constructor(e){this.elements=e||[]}toValue(){return this.elements.map((e=>e.toValue()))}map(e,t){return this.elements.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return e=s(e),new i(this.elements.filter(e,t))}reject(e,t){return e=s(e),new i(this.elements.filter(n(e),t))}find(e,t){return e=s(e),this.elements.find(e,t)}forEach(e,t){this.elements.forEach(e,t)}reduce(e,t){return this.elements.reduce(e,t)}includes(e){return this.elements.some((t=>t.equals(e)))}shift(){return this.elements.shift()}unshift(e){this.elements.unshift(this.refract(e))}push(e){return this.elements.push(this.refract(e)),this}add(e){this.push(e)}get(e){return this.elements[e]}getValue(e){const t=this.elements[e];if(t)return t.toValue()}get length(){return this.elements.length}get isEmpty(){return 0===this.elements.length}get first(){return this.elements[0]}}"undefined"!=typeof Symbol&&(i.prototype[Symbol.iterator]=function(){return this.elements[Symbol.iterator]()}),e.exports=i},7645:e=>{class t{constructor(e,t){this.key=e,this.value=t}clone(){const e=new t;return this.key&&(e.key=this.key.clone()),this.value&&(e.value=this.value.clone()),e}}e.exports=t},8520:(e,t,r)=>{const n=r(5220),s=r(7037),i=r(1763),o=r(1584),a=r(3218),c=r(8219),l=r(9829);class u{constructor(e){this.elementMap={},this.elementDetection=[],this.Element=l.Element,this.KeyValuePair=l.KeyValuePair,e&&e.noDefault||this.useDefault(),this._attributeElementKeys=[],this._attributeElementArrayKeys=[]}use(e){return e.namespace&&e.namespace({base:this}),e.load&&e.load({base:this}),this}useDefault(){return this.register("null",l.NullElement).register("string",l.StringElement).register("number",l.NumberElement).register("boolean",l.BooleanElement).register("array",l.ArrayElement).register("object",l.ObjectElement).register("member",l.MemberElement).register("ref",l.RefElement).register("link",l.LinkElement),this.detect(n,l.NullElement,!1).detect(s,l.StringElement,!1).detect(i,l.NumberElement,!1).detect(o,l.BooleanElement,!1).detect(Array.isArray,l.ArrayElement,!1).detect(a,l.ObjectElement,!1),this}register(e,t){return this._elements=void 0,this.elementMap[e]=t,this}unregister(e){return this._elements=void 0,delete this.elementMap[e],this}detect(e,t,r){return void 0===r||r?this.elementDetection.unshift([e,t]):this.elementDetection.push([e,t]),this}toElement(e){if(e instanceof this.Element)return e;let t;for(let r=0;r<this.elementDetection.length;r+=1){const n=this.elementDetection[r][0],s=this.elementDetection[r][1];if(n(e)){t=new s(e);break}}return t}getElementClass(e){const t=this.elementMap[e];return void 0===t?this.Element:t}fromRefract(e){return this.serialiser.deserialise(e)}toRefract(e){return this.serialiser.serialise(e)}get elements(){return void 0===this._elements&&(this._elements={Element:this.Element},Object.keys(this.elementMap).forEach((e=>{const t=e[0].toUpperCase()+e.substr(1);this._elements[t]=this.elementMap[e]}))),this._elements}get serialiser(){return new c(this)}}c.prototype.Namespace=u,e.exports=u},7526:(e,t,r)=>{const n=r(4885),s=r(2566);class i extends s{map(e,t){return this.elements.map((r=>e.bind(t)(r.value,r.key,r)))}filter(e,t){return new i(this.elements.filter((r=>e.bind(t)(r.value,r.key,r))))}reject(e,t){return this.filter(n(e.bind(t)))}forEach(e,t){return this.elements.forEach(((r,n)=>{e.bind(t)(r.value,r.key,r,n)}))}keys(){return this.map(((e,t)=>t.toValue()))}values(){return this.map((e=>e.toValue()))}}e.exports=i},9829:(e,t,r)=>{const n=r(3079),s=r(6295),i=r(6036),o=r(1090),a=r(9371),c=r(5804),l=r(5946),u=r(6735),p=r(9964),h=r(8588),f=r(2566),m=r(7526),d=r(7645);function y(e){if(e instanceof n)return e;if("string"==typeof e)return new i(e);if("number"==typeof e)return new o(e);if("boolean"==typeof e)return new a(e);if(null===e)return new s;if(Array.isArray(e))return new c(e.map(y));if("object"==typeof e){return new u(e)}return e}n.prototype.ObjectElement=u,n.prototype.RefElement=h,n.prototype.MemberElement=l,n.prototype.refract=y,f.prototype.refract=y,e.exports={Element:n,NullElement:s,StringElement:i,NumberElement:o,BooleanElement:a,ArrayElement:c,MemberElement:l,ObjectElement:u,LinkElement:p,RefElement:h,refract:y,ArraySlice:f,ObjectSlice:m,KeyValuePair:d}},9964:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="link"}get relation(){return this.attributes.get("relation")}set relation(e){this.attributes.set("relation",e)}get href(){return this.attributes.get("href")}set href(e){this.attributes.set("href",e)}}},8588:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e||[],t,r),this.element="ref",this.path||(this.path="element")}get path(){return this.attributes.get("path")}set path(e){this.attributes.set("path",e)}}},3500:(e,t,r)=>{const n=r(8520),s=r(9829);t.lS=n,t.KeyValuePair=r(7645),t.O4=s.ArraySlice,t.rm=s.ObjectSlice,t.W_=s.Element,t.RP=s.StringElement,t.VL=s.NumberElement,t.hh=s.BooleanElement,t.zr=s.NullElement,t.ON=s.ArrayElement,t.Sb=s.ObjectElement,t.c6=s.MemberElement,t.tK=s.RefElement,t.EA=s.LinkElement,t.Qc=s.refract,r(8219),r(3414)},5804:(e,t,r)=>{const n=r(4885),s=r(3079),i=r(2566);class o extends s{constructor(e,t,r){super(e||[],t,r),this.element="array"}primitive(){return"array"}get(e){return this.content[e]}getValue(e){const t=this.get(e);if(t)return t.toValue()}getIndex(e){return this.content[e]}set(e,t){return this.content[e]=this.refract(t),this}remove(e){const t=this.content.splice(e,1);return t.length?t[0]:null}map(e,t){return this.content.map(e,t)}flatMap(e,t){return this.map(e,t).reduce(((e,t)=>e.concat(t)),[])}compactMap(e,t){const r=[];return this.forEach((n=>{const s=e.bind(t)(n);s&&r.push(s)})),r}filter(e,t){return new i(this.content.filter(e,t))}reject(e,t){return this.filter(n(e),t)}reduce(e,t){let r,n;void 0!==t?(r=0,n=this.refract(t)):(r=1,n="object"===this.primitive()?this.first.value:this.first);for(let t=r;t<this.length;t+=1){const r=this.content[t];n="object"===this.primitive()?this.refract(e(n,r.value,r.key,r,this)):this.refract(e(n,r,t,this))}return n}forEach(e,t){this.content.forEach(((r,n)=>{e.bind(t)(r,this.refract(n))}))}shift(){return this.content.shift()}unshift(e){this.content.unshift(this.refract(e))}push(e){return this.content.push(this.refract(e)),this}add(e){this.push(e)}findElements(e,t){const r=t||{},n=!!r.recursive,s=void 0===r.results?[]:r.results;return this.forEach(((t,r,i)=>{n&&void 0!==t.findElements&&t.findElements(e,{results:s,recursive:n}),e(t,r,i)&&s.push(t)})),s}find(e){return new i(this.findElements(e,{recursive:!0}))}findByElement(e){return this.find((t=>t.element===e))}findByClass(e){return this.find((t=>t.classes.includes(e)))}getById(e){return this.find((t=>t.id.toValue()===e)).first}includes(e){return this.content.some((t=>t.equals(e)))}contains(e){return this.includes(e)}empty(){return new this.constructor([])}"fantasy-land/empty"(){return this.empty()}concat(e){return new this.constructor(this.content.concat(e.content))}"fantasy-land/concat"(e){return this.concat(e)}"fantasy-land/map"(e){return new this.constructor(this.map(e))}"fantasy-land/chain"(e){return this.map((t=>e(t)),this).reduce(((e,t)=>e.concat(t)),this.empty())}"fantasy-land/filter"(e){return new this.constructor(this.content.filter(e))}"fantasy-land/reduce"(e,t){return this.content.reduce(e,t)}get length(){return this.content.length}get isEmpty(){return 0===this.content.length}get first(){return this.getIndex(0)}get second(){return this.getIndex(1)}get last(){return this.getIndex(this.length-1)}}o.empty=function(){return new this},o["fantasy-land/empty"]=o.empty,"undefined"!=typeof Symbol&&(o.prototype[Symbol.iterator]=function(){return this.content[Symbol.iterator]()}),e.exports=o},9371:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="boolean"}primitive(){return"boolean"}}},3079:(e,t,r)=>{const n=r(8446),s=r(7645),i=r(2566);class o{constructor(e,t,r){t&&(this.meta=t),r&&(this.attributes=r),this.content=e}freeze(){Object.isFrozen(this)||(this._meta&&(this.meta.parent=this,this.meta.freeze()),this._attributes&&(this.attributes.parent=this,this.attributes.freeze()),this.children.forEach((e=>{e.parent=this,e.freeze()}),this),this.content&&Array.isArray(this.content)&&Object.freeze(this.content),Object.freeze(this))}primitive(){}clone(){const e=new this.constructor;return e.element=this.element,this.meta.length&&(e._meta=this.meta.clone()),this.attributes.length&&(e._attributes=this.attributes.clone()),this.content?this.content.clone?e.content=this.content.clone():Array.isArray(this.content)?e.content=this.content.map((e=>e.clone())):e.content=this.content:e.content=this.content,e}toValue(){return this.content instanceof o?this.content.toValue():this.content instanceof s?{key:this.content.key.toValue(),value:this.content.value?this.content.value.toValue():void 0}:this.content&&this.content.map?this.content.map((e=>e.toValue()),this):this.content}toRef(e){if(""===this.id.toValue())throw Error("Cannot create reference to an element that does not contain an ID");const t=new this.RefElement(this.id.toValue());return e&&(t.path=e),t}findRecursive(...e){if(arguments.length>1&&!this.isFrozen)throw new Error("Cannot find recursive with multiple element names without first freezing the element. Call `element.freeze()`");const t=e.pop();let r=new i;const n=(e,t)=>(e.push(t),e),o=(e,r)=>{r.element===t&&e.push(r);const i=r.findRecursive(t);return i&&i.reduce(n,e),r.content instanceof s&&(r.content.key&&o(e,r.content.key),r.content.value&&o(e,r.content.value)),e};return this.content&&(this.content.element&&o(r,this.content),Array.isArray(this.content)&&this.content.reduce(o,r)),e.isEmpty||(r=r.filter((t=>{let r=t.parents.map((e=>e.element));for(const t in e){const n=e[t],s=r.indexOf(n);if(-1===s)return!1;r=r.splice(0,s)}return!0}))),r}set(e){return this.content=e,this}equals(e){return n(this.toValue(),e)}getMetaProperty(e,t){if(!this.meta.hasKey(e)){if(this.isFrozen){const e=this.refract(t);return e.freeze(),e}this.meta.set(e,t)}return this.meta.get(e)}setMetaProperty(e,t){this.meta.set(e,t)}get element(){return this._storedElement||"element"}set element(e){this._storedElement=e}get content(){return this._content}set content(e){if(e instanceof o)this._content=e;else if(e instanceof i)this.content=e.elements;else if("string"==typeof e||"number"==typeof e||"boolean"==typeof e||"null"===e||null==e)this._content=e;else if(e instanceof s)this._content=e;else if(Array.isArray(e))this._content=e.map(this.refract);else{if("object"!=typeof e)throw new Error("Cannot set content to given value");this._content=Object.keys(e).map((t=>new this.MemberElement(t,e[t])))}}get meta(){if(!this._meta){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._meta=new this.ObjectElement}return this._meta}set meta(e){e instanceof this.ObjectElement?this._meta=e:this.meta.set(e||{})}get attributes(){if(!this._attributes){if(this.isFrozen){const e=new this.ObjectElement;return e.freeze(),e}this._attributes=new this.ObjectElement}return this._attributes}set attributes(e){e instanceof this.ObjectElement?this._attributes=e:this.attributes.set(e||{})}get id(){return this.getMetaProperty("id","")}set id(e){this.setMetaProperty("id",e)}get classes(){return this.getMetaProperty("classes",[])}set classes(e){this.setMetaProperty("classes",e)}get title(){return this.getMetaProperty("title","")}set title(e){this.setMetaProperty("title",e)}get description(){return this.getMetaProperty("description","")}set description(e){this.setMetaProperty("description",e)}get links(){return this.getMetaProperty("links",[])}set links(e){this.setMetaProperty("links",e)}get isFrozen(){return Object.isFrozen(this)}get parents(){let{parent:e}=this;const t=new i;for(;e;)t.push(e),e=e.parent;return t}get children(){if(Array.isArray(this.content))return new i(this.content);if(this.content instanceof s){const e=new i([this.content.key]);return this.content.value&&e.push(this.content.value),e}return this.content instanceof o?new i([this.content]):new i}get recursiveChildren(){const e=new i;return this.children.forEach((t=>{e.push(t),t.recursiveChildren.forEach((t=>{e.push(t)}))})),e}}e.exports=o},5946:(e,t,r)=>{const n=r(7645),s=r(3079);e.exports=class extends s{constructor(e,t,r,s){super(new n,r,s),this.element="member",this.key=e,this.value=t}get key(){return this.content.key}set key(e){this.content.key=this.refract(e)}get value(){return this.content.value}set value(e){this.content.value=this.refract(e)}}},6295:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e||null,t,r),this.element="null"}primitive(){return"null"}set(){return new Error("Cannot set the value of null")}}},1090:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="number"}primitive(){return"number"}}},6735:(e,t,r)=>{const n=r(4885),s=r(3218),i=r(5804),o=r(5946),a=r(7526);e.exports=class extends i{constructor(e,t,r){super(e||[],t,r),this.element="object"}primitive(){return"object"}toValue(){return this.content.reduce(((e,t)=>(e[t.key.toValue()]=t.value?t.value.toValue():void 0,e)),{})}get(e){const t=this.getMember(e);if(t)return t.value}getMember(e){if(void 0!==e)return this.content.find((t=>t.key.toValue()===e))}remove(e){let t=null;return this.content=this.content.filter((r=>r.key.toValue()!==e||(t=r,!1))),t}getKey(e){const t=this.getMember(e);if(t)return t.key}set(e,t){if(s(e))return Object.keys(e).forEach((t=>{this.set(t,e[t])})),this;const r=e,n=this.getMember(r);return n?n.value=t:this.content.push(new o(r,t)),this}keys(){return this.content.map((e=>e.key.toValue()))}values(){return this.content.map((e=>e.value.toValue()))}hasKey(e){return this.content.some((t=>t.key.equals(e)))}items(){return this.content.map((e=>[e.key.toValue(),e.value.toValue()]))}map(e,t){return this.content.map((r=>e.bind(t)(r.value,r.key,r)))}compactMap(e,t){const r=[];return this.forEach(((n,s,i)=>{const o=e.bind(t)(n,s,i);o&&r.push(o)})),r}filter(e,t){return new a(this.content).filter(e,t)}reject(e,t){return this.filter(n(e),t)}forEach(e,t){return this.content.forEach((r=>e.bind(t)(r.value,r.key,r)))}}},6036:(e,t,r)=>{const n=r(3079);e.exports=class extends n{constructor(e,t,r){super(e,t,r),this.element="string"}primitive(){return"string"}get length(){return this.content.length}}},3414:(e,t,r)=>{const n=r(8219);e.exports=class extends n{serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);let t;e._attributes&&e.attributes.get("variable")&&(t=e.attributes.get("variable"));const r={element:e.element};e._meta&&e._meta.length>0&&(r.meta=this.serialiseObject(e.meta));const n="enum"===e.element||-1!==e.attributes.keys().indexOf("enumerations");if(n){const t=this.enumSerialiseAttributes(e);t&&(r.attributes=t)}else if(e._attributes&&e._attributes.length>0){let{attributes:n}=e;n.get("metadata")&&(n=n.clone(),n.set("meta",n.get("metadata")),n.remove("metadata")),"member"===e.element&&t&&(n=n.clone(),n.remove("variable")),n.length>0&&(r.attributes=this.serialiseObject(n))}if(n)r.content=this.enumSerialiseContent(e,r);else if(this[`${e.element}SerialiseContent`])r.content=this[`${e.element}SerialiseContent`](e,r);else if(void 0!==e.content){let n;t&&e.content.key?(n=e.content.clone(),n.key.attributes.set("variable",t),n=this.serialiseContent(n)):n=this.serialiseContent(e.content),this.shouldSerialiseContent(e,n)&&(r.content=n)}else this.shouldSerialiseContent(e,e.content)&&e instanceof this.namespace.elements.Array&&(r.content=[]);return r}shouldSerialiseContent(e,t){return"parseResult"===e.element||"httpRequest"===e.element||"httpResponse"===e.element||"category"===e.element||"link"===e.element||void 0!==t&&(!Array.isArray(t)||0!==t.length)}refSerialiseContent(e,t){return delete t.attributes,{href:e.toValue(),path:e.path.toValue()}}sourceMapSerialiseContent(e){return e.toValue()}dataStructureSerialiseContent(e){return[this.serialiseContent(e.content)]}enumSerialiseAttributes(e){const t=e.attributes.clone(),r=t.remove("enumerations")||new this.namespace.elements.Array([]),n=t.get("default");let s=t.get("samples")||new this.namespace.elements.Array([]);if(n&&n.content&&(n.content.attributes&&n.content.attributes.remove("typeAttributes"),t.set("default",new this.namespace.elements.Array([n.content]))),s.forEach((e=>{e.content&&e.content.element&&e.content.attributes.remove("typeAttributes")})),e.content&&0!==r.length&&s.unshift(e.content),s=s.map((e=>e instanceof this.namespace.elements.Array?[e]:new this.namespace.elements.Array([e.content]))),s.length&&t.set("samples",s),t.length>0)return this.serialiseObject(t)}enumSerialiseContent(e){if(e._attributes){const t=e.attributes.get("enumerations");if(t&&t.length>0)return t.content.map((e=>{const t=e.clone();return t.attributes.remove("typeAttributes"),this.serialise(t)}))}if(e.content){const t=e.content.clone();return t.attributes.remove("typeAttributes"),[this.serialise(t)]}return[]}deserialise(e){if("string"==typeof e)return new this.namespace.elements.String(e);if("number"==typeof e)return new this.namespace.elements.Number(e);if("boolean"==typeof e)return new this.namespace.elements.Boolean(e);if(null===e)return new this.namespace.elements.Null;if(Array.isArray(e))return new this.namespace.elements.Array(e.map(this.deserialise,this));const t=this.namespace.getElementClass(e.element),r=new t;r.element!==e.element&&(r.element=e.element),e.meta&&this.deserialiseObject(e.meta,r.meta),e.attributes&&this.deserialiseObject(e.attributes,r.attributes);const n=this.deserialiseContent(e.content);if(void 0===n&&null!==r.content||(r.content=n),"enum"===r.element){r.content&&r.attributes.set("enumerations",r.content);let e=r.attributes.get("samples");if(r.attributes.remove("samples"),e){const n=e;e=new this.namespace.elements.Array,n.forEach((n=>{n.forEach((n=>{const s=new t(n);s.element=r.element,e.push(s)}))}));const s=e.shift();r.content=s?s.content:void 0,r.attributes.set("samples",e)}else r.content=void 0;let n=r.attributes.get("default");if(n&&n.length>0){n=n.get(0);const e=new t(n);e.element=r.element,r.attributes.set("default",e)}}else if("dataStructure"===r.element&&Array.isArray(r.content))[r.content]=r.content;else if("category"===r.element){const e=r.attributes.get("meta");e&&(r.attributes.set("metadata",e),r.attributes.remove("meta"))}else"member"===r.element&&r.key&&r.key._attributes&&r.key._attributes.getValue("variable")&&(r.attributes.set("variable",r.key.attributes.get("variable")),r.key.attributes.remove("variable"));return r}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}return e&&e.map?e.map(this.serialise,this):e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}shouldRefract(e){return!!(e._attributes&&e.attributes.keys().length||e._meta&&e.meta.keys().length)||"enum"!==e.element&&(e.element!==e.primitive()||"member"===e.element)}convertKeyToRefract(e,t){return this.shouldRefract(t)?this.serialise(t):"enum"===t.element?this.serialiseEnum(t):"array"===t.element?t.map((t=>this.shouldRefract(t)||"default"===e?this.serialise(t):"array"===t.element||"object"===t.element||"enum"===t.element?t.children.map((e=>this.serialise(e))):t.toValue())):"object"===t.element?(t.content||[]).map(this.serialise,this):t.toValue()}serialiseEnum(e){return e.children.map((e=>this.serialise(e)))}serialiseObject(e){const t={};return e.forEach(((e,r)=>{if(e){const n=r.toValue();t[n]=this.convertKeyToRefract(n,e)}})),t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},8219:e=>{e.exports=class{constructor(e){this.namespace=e||new this.Namespace}serialise(e){if(!(e instanceof this.namespace.elements.Element))throw new TypeError(`Given element \`${e}\` is not an Element instance`);const t={element:e.element};e._meta&&e._meta.length>0&&(t.meta=this.serialiseObject(e.meta)),e._attributes&&e._attributes.length>0&&(t.attributes=this.serialiseObject(e.attributes));const r=this.serialiseContent(e.content);return void 0!==r&&(t.content=r),t}deserialise(e){if(!e.element)throw new Error("Given value is not an object containing an element name");const t=new(this.namespace.getElementClass(e.element));t.element!==e.element&&(t.element=e.element),e.meta&&this.deserialiseObject(e.meta,t.meta),e.attributes&&this.deserialiseObject(e.attributes,t.attributes);const r=this.deserialiseContent(e.content);return void 0===r&&null!==t.content||(t.content=r),t}serialiseContent(e){if(e instanceof this.namespace.elements.Element)return this.serialise(e);if(e instanceof this.namespace.KeyValuePair){const t={key:this.serialise(e.key)};return e.value&&(t.value=this.serialise(e.value)),t}if(e&&e.map){if(0===e.length)return;return e.map(this.serialise,this)}return e}deserialiseContent(e){if(e){if(e.element)return this.deserialise(e);if(e.key){const t=new this.namespace.KeyValuePair(this.deserialise(e.key));return e.value&&(t.value=this.deserialise(e.value)),t}if(e.map)return e.map(this.deserialise,this)}return e}serialiseObject(e){const t={};if(e.forEach(((e,r)=>{e&&(t[r.toValue()]=this.serialise(e))})),0!==Object.keys(t).length)return t}deserialiseObject(e,t){Object.keys(e).forEach((r=>{t.set(r,this.deserialise(e[r]))}))}}},631:(e,t,r)=>{var n="function"==typeof Map&&Map.prototype,s=Object.getOwnPropertyDescriptor&&n?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,i=n&&s&&"function"==typeof s.get?s.get:null,o=n&&Map.prototype.forEach,a="function"==typeof Set&&Set.prototype,c=Object.getOwnPropertyDescriptor&&a?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,l=a&&c&&"function"==typeof c.get?c.get:null,u=a&&Set.prototype.forEach,p="function"==typeof WeakMap&&WeakMap.prototype?WeakMap.prototype.has:null,h="function"==typeof WeakSet&&WeakSet.prototype?WeakSet.prototype.has:null,f="function"==typeof WeakRef&&WeakRef.prototype?WeakRef.prototype.deref:null,m=Boolean.prototype.valueOf,d=Object.prototype.toString,y=Function.prototype.toString,g=String.prototype.match,v=String.prototype.slice,b=String.prototype.replace,x=String.prototype.toUpperCase,E=String.prototype.toLowerCase,w=RegExp.prototype.test,j=Array.prototype.concat,O=Array.prototype.join,S=Array.prototype.slice,P=Math.floor,A="function"==typeof BigInt?BigInt.prototype.valueOf:null,$=Object.getOwnPropertySymbols,_="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?Symbol.prototype.toString:null,k="function"==typeof Symbol&&"object"==typeof Symbol.iterator,T="function"==typeof Symbol&&Symbol.toStringTag&&(typeof Symbol.toStringTag===k||"symbol")?Symbol.toStringTag:null,I=Object.prototype.propertyIsEnumerable,C=("function"==typeof Reflect?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function M(e,t){if(e===1/0||e===-1/0||e!=e||e&&e>-1e3&&e<1e3||w.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if("number"==typeof e){var n=e<0?-P(-e):P(e);if(n!==e){var s=String(n),i=v.call(t,s.length+1);return b.call(s,r,"$&_")+"."+b.call(b.call(i,/([0-9]{3})/g,"$&_"),/_$/,"")}}return b.call(t,r,"$&_")}var R=r(4654),F=R.custom,N=U(F)?F:null;function D(e,t,r){var n="double"===(r.quoteStyle||t)?'"':"'";return n+e+n}function q(e){return b.call(String(e),/"/g,""")}function L(e){return!("[object Array]"!==H(e)||T&&"object"==typeof e&&T in e)}function B(e){return!("[object RegExp]"!==H(e)||T&&"object"==typeof e&&T in e)}function U(e){if(k)return e&&"object"==typeof e&&e instanceof Symbol;if("symbol"==typeof e)return!0;if(!e||"object"!=typeof e||!_)return!1;try{return _.call(e),!0}catch(e){}return!1}e.exports=function e(t,r,n,s){var a=r||{};if(z(a,"quoteStyle")&&"single"!==a.quoteStyle&&"double"!==a.quoteStyle)throw new TypeError('option "quoteStyle" must be "single" or "double"');if(z(a,"maxStringLength")&&("number"==typeof a.maxStringLength?a.maxStringLength<0&&a.maxStringLength!==1/0:null!==a.maxStringLength))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var c=!z(a,"customInspect")||a.customInspect;if("boolean"!=typeof c&&"symbol"!==c)throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(z(a,"indent")&&null!==a.indent&&"\t"!==a.indent&&!(parseInt(a.indent,10)===a.indent&&a.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(z(a,"numericSeparator")&&"boolean"!=typeof a.numericSeparator)throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var d=a.numericSeparator;if(void 0===t)return"undefined";if(null===t)return"null";if("boolean"==typeof t)return t?"true":"false";if("string"==typeof t)return G(t,a);if("number"==typeof t){if(0===t)return 1/0/t>0?"0":"-0";var x=String(t);return d?M(t,x):x}if("bigint"==typeof t){var w=String(t)+"n";return d?M(t,w):w}var P=void 0===a.depth?5:a.depth;if(void 0===n&&(n=0),n>=P&&P>0&&"object"==typeof t)return L(t)?"[Array]":"[Object]";var $=function(e,t){var r;if("\t"===e.indent)r="\t";else{if(!("number"==typeof e.indent&&e.indent>0))return null;r=O.call(Array(e.indent+1)," ")}return{base:r,prev:O.call(Array(t+1),r)}}(a,n);if(void 0===s)s=[];else if(J(s,t)>=0)return"[Circular]";function F(t,r,i){if(r&&(s=S.call(s)).push(r),i){var o={depth:a.depth};return z(a,"quoteStyle")&&(o.quoteStyle=a.quoteStyle),e(t,o,n+1,s)}return e(t,a,n+1,s)}if("function"==typeof t&&!B(t)){var V=function(e){if(e.name)return e.name;var t=g.call(y.call(e),/^function\s*([\w$]+)/);if(t)return t[1];return null}(t),W=Z(t,F);return"[Function"+(V?": "+V:" (anonymous)")+"]"+(W.length>0?" { "+O.call(W,", ")+" }":"")}if(U(t)){var ee=k?b.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):_.call(t);return"object"!=typeof t||k?ee:K(ee)}if(function(e){if(!e||"object"!=typeof e)return!1;if("undefined"!=typeof HTMLElement&&e instanceof HTMLElement)return!0;return"string"==typeof e.nodeName&&"function"==typeof e.getAttribute}(t)){for(var te="<"+E.call(String(t.nodeName)),re=t.attributes||[],ne=0;ne<re.length;ne++)te+=" "+re[ne].name+"="+D(q(re[ne].value),"double",a);return te+=">",t.childNodes&&t.childNodes.length&&(te+="..."),te+="</"+E.call(String(t.nodeName))+">"}if(L(t)){if(0===t.length)return"[]";var se=Z(t,F);return $&&!function(e){for(var t=0;t<e.length;t++)if(J(e[t],"\n")>=0)return!1;return!0}(se)?"["+Q(se,$)+"]":"[ "+O.call(se,", ")+" ]"}if(function(e){return!("[object Error]"!==H(e)||T&&"object"==typeof e&&T in e)}(t)){var ie=Z(t,F);return"cause"in Error.prototype||!("cause"in t)||I.call(t,"cause")?0===ie.length?"["+String(t)+"]":"{ ["+String(t)+"] "+O.call(ie,", ")+" }":"{ ["+String(t)+"] "+O.call(j.call("[cause]: "+F(t.cause),ie),", ")+" }"}if("object"==typeof t&&c){if(N&&"function"==typeof t[N]&&R)return R(t,{depth:P-n});if("symbol"!==c&&"function"==typeof t.inspect)return t.inspect()}if(function(e){if(!i||!e||"object"!=typeof e)return!1;try{i.call(e);try{l.call(e)}catch(e){return!0}return e instanceof Map}catch(e){}return!1}(t)){var oe=[];return o&&o.call(t,(function(e,r){oe.push(F(r,t,!0)+" => "+F(e,t))})),X("Map",i.call(t),oe,$)}if(function(e){if(!l||!e||"object"!=typeof e)return!1;try{l.call(e);try{i.call(e)}catch(e){return!0}return e instanceof Set}catch(e){}return!1}(t)){var ae=[];return u&&u.call(t,(function(e){ae.push(F(e,t))})),X("Set",l.call(t),ae,$)}if(function(e){if(!p||!e||"object"!=typeof e)return!1;try{p.call(e,p);try{h.call(e,h)}catch(e){return!0}return e instanceof WeakMap}catch(e){}return!1}(t))return Y("WeakMap");if(function(e){if(!h||!e||"object"!=typeof e)return!1;try{h.call(e,h);try{p.call(e,p)}catch(e){return!0}return e instanceof WeakSet}catch(e){}return!1}(t))return Y("WeakSet");if(function(e){if(!f||!e||"object"!=typeof e)return!1;try{return f.call(e),!0}catch(e){}return!1}(t))return Y("WeakRef");if(function(e){return!("[object Number]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return K(F(Number(t)));if(function(e){if(!e||"object"!=typeof e||!A)return!1;try{return A.call(e),!0}catch(e){}return!1}(t))return K(F(A.call(t)));if(function(e){return!("[object Boolean]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return K(m.call(t));if(function(e){return!("[object String]"!==H(e)||T&&"object"==typeof e&&T in e)}(t))return K(F(String(t)));if(!function(e){return!("[object Date]"!==H(e)||T&&"object"==typeof e&&T in e)}(t)&&!B(t)){var ce=Z(t,F),le=C?C(t)===Object.prototype:t instanceof Object||t.constructor===Object,ue=t instanceof Object?"":"null prototype",pe=!le&&T&&Object(t)===t&&T in t?v.call(H(t),8,-1):ue?"Object":"",he=(le||"function"!=typeof t.constructor?"":t.constructor.name?t.constructor.name+" ":"")+(pe||ue?"["+O.call(j.call([],pe||[],ue||[]),": ")+"] ":"");return 0===ce.length?he+"{}":$?he+"{"+Q(ce,$)+"}":he+"{ "+O.call(ce,", ")+" }"}return String(t)};var V=Object.prototype.hasOwnProperty||function(e){return e in this};function z(e,t){return V.call(e,t)}function H(e){return d.call(e)}function J(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,n=e.length;r<n;r++)if(e[r]===t)return r;return-1}function G(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,n="... "+r+" more character"+(r>1?"s":"");return G(v.call(e,0,t.maxStringLength),t)+n}return D(b.call(b.call(e,/(['\\])/g,"\\$1"),/[\x00-\x1f]/g,W),"single",t)}function W(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+x.call(t.toString(16))}function K(e){return"Object("+e+")"}function Y(e){return e+" { ? }"}function X(e,t,r,n){return e+" ("+t+") {"+(n?Q(r,n):O.call(r,", "))+"}"}function Q(e,t){if(0===e.length)return"";var r="\n"+t.prev+t.base;return r+O.call(e,","+r)+"\n"+t.prev}function Z(e,t){var r=L(e),n=[];if(r){n.length=e.length;for(var s=0;s<e.length;s++)n[s]=z(e,s)?t(e[s],e):""}var i,o="function"==typeof $?$(e):[];if(k){i={};for(var a=0;a<o.length;a++)i["$"+o[a]]=o[a]}for(var c in e)z(e,c)&&(r&&String(Number(c))===c&&c<e.length||k&&i["$"+c]instanceof Symbol||(w.call(/[^\w$]/,c)?n.push(t(c,e)+": "+t(e[c],e)):n.push(c+": "+t(e[c],e))));if("function"==typeof $)for(var l=0;l<o.length;l++)I.call(e,o[l])&&n.push("["+t(o[l])+"]: "+t(e[o[l]],e));return n}},4155:e=>{var t,r,n=e.exports={};function s(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function o(e){if(t===setTimeout)return setTimeout(e,0);if((t===s||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(r){try{return t.call(null,e,0)}catch(r){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:s}catch(e){t=s}try{r="function"==typeof clearTimeout?clearTimeout:i}catch(e){r=i}}();var a,c=[],l=!1,u=-1;function p(){l&&a&&(l=!1,a.length?c=a.concat(c):u=-1,c.length&&h())}function h(){if(!l){var e=o(p);l=!0;for(var t=c.length;t;){for(a=c,c=[];++u<t;)a&&a[u].run();u=-1,t=c.length}a=null,l=!1,function(e){if(r===clearTimeout)return clearTimeout(e);if((r===i||!r)&&clearTimeout)return r=clearTimeout,clearTimeout(e);try{return r(e)}catch(t){try{return r.call(null,e)}catch(t){return r.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function m(){}n.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];c.push(new f(e,t)),1!==c.length||l||o(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},n.title="browser",n.browser=!0,n.env={},n.argv=[],n.version="",n.versions={},n.on=m,n.addListener=m,n.once=m,n.off=m,n.removeListener=m,n.removeAllListeners=m,n.emit=m,n.prependListener=m,n.prependOnceListener=m,n.listeners=function(e){return[]},n.binding=function(e){throw new Error("process.binding is not supported")},n.cwd=function(){return"/"},n.chdir=function(e){throw new Error("process.chdir is not supported")},n.umask=function(){return 0}},5798:e=>{"use strict";var t=String.prototype.replace,r=/%20/g,n="RFC1738",s="RFC3986";e.exports={default:s,formatters:{RFC1738:function(e){return t.call(e,r,"+")},RFC3986:function(e){return String(e)}},RFC1738:n,RFC3986:s}},129:(e,t,r)=>{"use strict";var n=r(8261),s=r(5235),i=r(5798);e.exports={formats:i,parse:s,stringify:n}},5235:(e,t,r)=>{"use strict";var n=r(2769),s=Object.prototype.hasOwnProperty,i=Array.isArray,o={allowDots:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decoder:n.decode,delimiter:"&",depth:5,ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictNullHandling:!1},a=function(e){return e.replace(/&#(\d+);/g,(function(e,t){return String.fromCharCode(parseInt(t,10))}))},c=function(e,t){return e&&"string"==typeof e&&t.comma&&e.indexOf(",")>-1?e.split(","):e},l=function(e,t,r,n){if(e){var i=r.allowDots?e.replace(/\.([^.[]+)/g,"[$1]"):e,o=/(\[[^[\]]*])/g,a=r.depth>0&&/(\[[^[\]]*])/.exec(i),l=a?i.slice(0,a.index):i,u=[];if(l){if(!r.plainObjects&&s.call(Object.prototype,l)&&!r.allowPrototypes)return;u.push(l)}for(var p=0;r.depth>0&&null!==(a=o.exec(i))&&p<r.depth;){if(p+=1,!r.plainObjects&&s.call(Object.prototype,a[1].slice(1,-1))&&!r.allowPrototypes)return;u.push(a[1])}return a&&u.push("["+i.slice(a.index)+"]"),function(e,t,r,n){for(var s=n?t:c(t,r),i=e.length-1;i>=0;--i){var o,a=e[i];if("[]"===a&&r.parseArrays)o=[].concat(s);else{o=r.plainObjects?Object.create(null):{};var l="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,u=parseInt(l,10);r.parseArrays||""!==l?!isNaN(u)&&a!==l&&String(u)===l&&u>=0&&r.parseArrays&&u<=r.arrayLimit?(o=[])[u]=s:"__proto__"!==l&&(o[l]=s):o={0:s}}s=o}return s}(u,t,r,n)}};e.exports=function(e,t){var r=function(e){if(!e)return o;if(null!==e.decoder&&void 0!==e.decoder&&"function"!=typeof e.decoder)throw new TypeError("Decoder has to be a function.");if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var t=void 0===e.charset?o.charset:e.charset;return{allowDots:void 0===e.allowDots?o.allowDots:!!e.allowDots,allowPrototypes:"boolean"==typeof e.allowPrototypes?e.allowPrototypes:o.allowPrototypes,allowSparse:"boolean"==typeof e.allowSparse?e.allowSparse:o.allowSparse,arrayLimit:"number"==typeof e.arrayLimit?e.arrayLimit:o.arrayLimit,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:o.charsetSentinel,comma:"boolean"==typeof e.comma?e.comma:o.comma,decoder:"function"==typeof e.decoder?e.decoder:o.decoder,delimiter:"string"==typeof e.delimiter||n.isRegExp(e.delimiter)?e.delimiter:o.delimiter,depth:"number"==typeof e.depth||!1===e.depth?+e.depth:o.depth,ignoreQueryPrefix:!0===e.ignoreQueryPrefix,interpretNumericEntities:"boolean"==typeof e.interpretNumericEntities?e.interpretNumericEntities:o.interpretNumericEntities,parameterLimit:"number"==typeof e.parameterLimit?e.parameterLimit:o.parameterLimit,parseArrays:!1!==e.parseArrays,plainObjects:"boolean"==typeof e.plainObjects?e.plainObjects:o.plainObjects,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:o.strictNullHandling}}(t);if(""===e||null==e)return r.plainObjects?Object.create(null):{};for(var u="string"==typeof e?function(e,t){var r,l={__proto__:null},u=t.ignoreQueryPrefix?e.replace(/^\?/,""):e,p=t.parameterLimit===1/0?void 0:t.parameterLimit,h=u.split(t.delimiter,p),f=-1,m=t.charset;if(t.charsetSentinel)for(r=0;r<h.length;++r)0===h[r].indexOf("utf8=")&&("utf8=%E2%9C%93"===h[r]?m="utf-8":"utf8=%26%2310003%3B"===h[r]&&(m="iso-8859-1"),f=r,r=h.length);for(r=0;r<h.length;++r)if(r!==f){var d,y,g=h[r],v=g.indexOf("]="),b=-1===v?g.indexOf("="):v+1;-1===b?(d=t.decoder(g,o.decoder,m,"key"),y=t.strictNullHandling?null:""):(d=t.decoder(g.slice(0,b),o.decoder,m,"key"),y=n.maybeMap(c(g.slice(b+1),t),(function(e){return t.decoder(e,o.decoder,m,"value")}))),y&&t.interpretNumericEntities&&"iso-8859-1"===m&&(y=a(y)),g.indexOf("[]=")>-1&&(y=i(y)?[y]:y),s.call(l,d)?l[d]=n.combine(l[d],y):l[d]=y}return l}(e,r):e,p=r.plainObjects?Object.create(null):{},h=Object.keys(u),f=0;f<h.length;++f){var m=h[f],d=l(m,u[m],r,"string"==typeof e);p=n.merge(p,d,r)}return!0===r.allowSparse?p:n.compact(p)}},8261:(e,t,r)=>{"use strict";var n=r(7478),s=r(2769),i=r(5798),o=Object.prototype.hasOwnProperty,a={brackets:function(e){return e+"[]"},comma:"comma",indices:function(e,t){return e+"["+t+"]"},repeat:function(e){return e}},c=Array.isArray,l=Array.prototype.push,u=function(e,t){l.apply(e,c(t)?t:[t])},p=Date.prototype.toISOString,h=i.default,f={addQueryPrefix:!1,allowDots:!1,charset:"utf-8",charsetSentinel:!1,delimiter:"&",encode:!0,encoder:s.encode,encodeValuesOnly:!1,format:h,formatter:i.formatters[h],indices:!1,serializeDate:function(e){return p.call(e)},skipNulls:!1,strictNullHandling:!1},m={},d=function e(t,r,i,o,a,l,p,h,d,y,g,v,b,x,E,w){for(var j,O=t,S=w,P=0,A=!1;void 0!==(S=S.get(m))&&!A;){var $=S.get(t);if(P+=1,void 0!==$){if($===P)throw new RangeError("Cyclic object value");A=!0}void 0===S.get(m)&&(P=0)}if("function"==typeof h?O=h(r,O):O instanceof Date?O=g(O):"comma"===i&&c(O)&&(O=s.maybeMap(O,(function(e){return e instanceof Date?g(e):e}))),null===O){if(a)return p&&!x?p(r,f.encoder,E,"key",v):r;O=""}if("string"==typeof(j=O)||"number"==typeof j||"boolean"==typeof j||"symbol"==typeof j||"bigint"==typeof j||s.isBuffer(O))return p?[b(x?r:p(r,f.encoder,E,"key",v))+"="+b(p(O,f.encoder,E,"value",v))]:[b(r)+"="+b(String(O))];var _,k=[];if(void 0===O)return k;if("comma"===i&&c(O))x&&p&&(O=s.maybeMap(O,p)),_=[{value:O.length>0?O.join(",")||null:void 0}];else if(c(h))_=h;else{var T=Object.keys(O);_=d?T.sort(d):T}for(var I=o&&c(O)&&1===O.length?r+"[]":r,C=0;C<_.length;++C){var M=_[C],R="object"==typeof M&&void 0!==M.value?M.value:O[M];if(!l||null!==R){var F=c(O)?"function"==typeof i?i(I,M):I:I+(y?"."+M:"["+M+"]");w.set(t,P);var N=n();N.set(m,w),u(k,e(R,F,i,o,a,l,"comma"===i&&x&&c(O)?null:p,h,d,y,g,v,b,x,E,N))}}return k};e.exports=function(e,t){var r,s=e,l=function(e){if(!e)return f;if(null!==e.encoder&&void 0!==e.encoder&&"function"!=typeof e.encoder)throw new TypeError("Encoder has to be a function.");var t=e.charset||f.charset;if(void 0!==e.charset&&"utf-8"!==e.charset&&"iso-8859-1"!==e.charset)throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var r=i.default;if(void 0!==e.format){if(!o.call(i.formatters,e.format))throw new TypeError("Unknown format option provided.");r=e.format}var n=i.formatters[r],s=f.filter;return("function"==typeof e.filter||c(e.filter))&&(s=e.filter),{addQueryPrefix:"boolean"==typeof e.addQueryPrefix?e.addQueryPrefix:f.addQueryPrefix,allowDots:void 0===e.allowDots?f.allowDots:!!e.allowDots,charset:t,charsetSentinel:"boolean"==typeof e.charsetSentinel?e.charsetSentinel:f.charsetSentinel,delimiter:void 0===e.delimiter?f.delimiter:e.delimiter,encode:"boolean"==typeof e.encode?e.encode:f.encode,encoder:"function"==typeof e.encoder?e.encoder:f.encoder,encodeValuesOnly:"boolean"==typeof e.encodeValuesOnly?e.encodeValuesOnly:f.encodeValuesOnly,filter:s,format:r,formatter:n,serializeDate:"function"==typeof e.serializeDate?e.serializeDate:f.serializeDate,skipNulls:"boolean"==typeof e.skipNulls?e.skipNulls:f.skipNulls,sort:"function"==typeof e.sort?e.sort:null,strictNullHandling:"boolean"==typeof e.strictNullHandling?e.strictNullHandling:f.strictNullHandling}}(t);"function"==typeof l.filter?s=(0,l.filter)("",s):c(l.filter)&&(r=l.filter);var p,h=[];if("object"!=typeof s||null===s)return"";p=t&&t.arrayFormat in a?t.arrayFormat:t&&"indices"in t?t.indices?"indices":"repeat":"indices";var m=a[p];if(t&&"commaRoundTrip"in t&&"boolean"!=typeof t.commaRoundTrip)throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var y="comma"===m&&t&&t.commaRoundTrip;r||(r=Object.keys(s)),l.sort&&r.sort(l.sort);for(var g=n(),v=0;v<r.length;++v){var b=r[v];l.skipNulls&&null===s[b]||u(h,d(s[b],b,m,y,l.strictNullHandling,l.skipNulls,l.encode?l.encoder:null,l.filter,l.sort,l.allowDots,l.serializeDate,l.format,l.formatter,l.encodeValuesOnly,l.charset,g))}var x=h.join(l.delimiter),E=!0===l.addQueryPrefix?"?":"";return l.charsetSentinel&&("iso-8859-1"===l.charset?E+="utf8=%26%2310003%3B&":E+="utf8=%E2%9C%93&"),x.length>0?E+x:""}},2769:(e,t,r)=>{"use strict";var n=r(5798),s=Object.prototype.hasOwnProperty,i=Array.isArray,o=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),a=function(e,t){for(var r=t&&t.plainObjects?Object.create(null):{},n=0;n<e.length;++n)void 0!==e[n]&&(r[n]=e[n]);return r};e.exports={arrayToObject:a,assign:function(e,t){return Object.keys(t).reduce((function(e,r){return e[r]=t[r],e}),e)},combine:function(e,t){return[].concat(e,t)},compact:function(e){for(var t=[{obj:{o:e},prop:"o"}],r=[],n=0;n<t.length;++n)for(var s=t[n],o=s.obj[s.prop],a=Object.keys(o),c=0;c<a.length;++c){var l=a[c],u=o[l];"object"==typeof u&&null!==u&&-1===r.indexOf(u)&&(t.push({obj:o,prop:l}),r.push(u))}return function(e){for(;e.length>1;){var t=e.pop(),r=t.obj[t.prop];if(i(r)){for(var n=[],s=0;s<r.length;++s)void 0!==r[s]&&n.push(r[s]);t.obj[t.prop]=n}}}(t),e},decode:function(e,t,r){var n=e.replace(/\+/g," ");if("iso-8859-1"===r)return n.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(n)}catch(e){return n}},encode:function(e,t,r,s,i){if(0===e.length)return e;var a=e;if("symbol"==typeof e?a=Symbol.prototype.toString.call(e):"string"!=typeof e&&(a=String(e)),"iso-8859-1"===r)return escape(a).replace(/%u[0-9a-f]{4}/gi,(function(e){return"%26%23"+parseInt(e.slice(2),16)+"%3B"}));for(var c="",l=0;l<a.length;++l){var u=a.charCodeAt(l);45===u||46===u||95===u||126===u||u>=48&&u<=57||u>=65&&u<=90||u>=97&&u<=122||i===n.RFC1738&&(40===u||41===u)?c+=a.charAt(l):u<128?c+=o[u]:u<2048?c+=o[192|u>>6]+o[128|63&u]:u<55296||u>=57344?c+=o[224|u>>12]+o[128|u>>6&63]+o[128|63&u]:(l+=1,u=65536+((1023&u)<<10|1023&a.charCodeAt(l)),c+=o[240|u>>18]+o[128|u>>12&63]+o[128|u>>6&63]+o[128|63&u])}return c},isBuffer:function(e){return!(!e||"object"!=typeof e)&&!!(e.constructor&&e.constructor.isBuffer&&e.constructor.isBuffer(e))},isRegExp:function(e){return"[object RegExp]"===Object.prototype.toString.call(e)},maybeMap:function(e,t){if(i(e)){for(var r=[],n=0;n<e.length;n+=1)r.push(t(e[n]));return r}return t(e)},merge:function e(t,r,n){if(!r)return t;if("object"!=typeof r){if(i(t))t.push(r);else{if(!t||"object"!=typeof t)return[t,r];(n&&(n.plainObjects||n.allowPrototypes)||!s.call(Object.prototype,r))&&(t[r]=!0)}return t}if(!t||"object"!=typeof t)return[t].concat(r);var o=t;return i(t)&&!i(r)&&(o=a(t,n)),i(t)&&i(r)?(r.forEach((function(r,i){if(s.call(t,i)){var o=t[i];o&&"object"==typeof o&&r&&"object"==typeof r?t[i]=e(o,r,n):t.push(r)}else t[i]=r})),t):Object.keys(r).reduce((function(t,i){var o=r[i];return s.call(t,i)?t[i]=e(t[i],o,n):t[i]=o,t}),o)}}},7913:e=>{"use strict";var t=(()=>{var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,r=Object.getOwnPropertyNames,n=Object.getOwnPropertySymbols,s=Object.prototype.hasOwnProperty,i=Object.prototype.propertyIsEnumerable,o=(t,r,n)=>r in t?e(t,r,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[r]=n,a=(e,t)=>{for(var r in t||(t={}))s.call(t,r)&&o(e,r,t[r]);if(n)for(var r of n(t))i.call(t,r)&&o(e,r,t[r]);return e},c=(e,t,r)=>(o(e,"symbol"!=typeof t?t+"":t,r),r),l={};((t,r)=>{for(var n in r)e(t,n,{get:r[n],enumerable:!0})})(l,{DEFAULT_OPTIONS:()=>p,DEFAULT_UUID_LENGTH:()=>u,default:()=>m});var u=6,p={dictionary:"alphanum",shuffle:!0,debug:!1,length:u,counter:0},h=class{constructor(e={}){c(this,"counter"),c(this,"debug"),c(this,"dict"),c(this,"version"),c(this,"dictIndex",0),c(this,"dictRange",[]),c(this,"lowerBound",0),c(this,"upperBound",0),c(this,"dictLength",0),c(this,"uuidLength"),c(this,"_digit_first_ascii",48),c(this,"_digit_last_ascii",58),c(this,"_alpha_lower_first_ascii",97),c(this,"_alpha_lower_last_ascii",123),c(this,"_hex_last_ascii",103),c(this,"_alpha_upper_first_ascii",65),c(this,"_alpha_upper_last_ascii",91),c(this,"_number_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii]}),c(this,"_alpha_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alpha_lower_dict_ranges",{lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alpha_upper_dict_ranges",{upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_alphanum_lower_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],lowerCase:[this._alpha_lower_first_ascii,this._alpha_lower_last_ascii]}),c(this,"_alphanum_upper_dict_ranges",{digits:[this._digit_first_ascii,this._digit_last_ascii],upperCase:[this._alpha_upper_first_ascii,this._alpha_upper_last_ascii]}),c(this,"_hex_dict_ranges",{decDigits:[this._digit_first_ascii,this._digit_last_ascii],alphaDigits:[this._alpha_lower_first_ascii,this._hex_last_ascii]}),c(this,"_dict_ranges",{_number_dict_ranges:this._number_dict_ranges,_alpha_dict_ranges:this._alpha_dict_ranges,_alpha_lower_dict_ranges:this._alpha_lower_dict_ranges,_alpha_upper_dict_ranges:this._alpha_upper_dict_ranges,_alphanum_dict_ranges:this._alphanum_dict_ranges,_alphanum_lower_dict_ranges:this._alphanum_lower_dict_ranges,_alphanum_upper_dict_ranges:this._alphanum_upper_dict_ranges,_hex_dict_ranges:this._hex_dict_ranges}),c(this,"log",((...e)=>{const t=[...e];if(t[0]=`[short-unique-id] ${e[0]}`,!0===this.debug&&"undefined"!=typeof console&&null!==console)return console.log(...t)})),c(this,"setDictionary",((e,t)=>{let r;if(e&&Array.isArray(e)&&e.length>1)r=e;else{let t;r=[],this.dictIndex=t=0;const n=`_${e}_dict_ranges`,s=this._dict_ranges[n];Object.keys(s).forEach((e=>{const n=e;for(this.dictRange=s[n],this.lowerBound=this.dictRange[0],this.upperBound=this.dictRange[1],this.dictIndex=t=this.lowerBound;this.lowerBound<=this.upperBound?t<this.upperBound:t>this.upperBound;this.dictIndex=this.lowerBound<=this.upperBound?t+=1:t-=1)r.push(String.fromCharCode(this.dictIndex))}))}if(t){const e=.5;r=r.sort((()=>Math.random()-e))}this.dict=r,this.dictLength=this.dict.length,this.setCounter(0)})),c(this,"seq",(()=>this.sequentialUUID())),c(this,"sequentialUUID",(()=>{let e,t,r="";e=this.counter;do{t=e%this.dictLength,e=Math.trunc(e/this.dictLength),r+=this.dict[t]}while(0!==e);return this.counter+=1,r})),c(this,"rnd",((e=this.uuidLength||u)=>this.randomUUID(e))),c(this,"randomUUID",((e=this.uuidLength||u)=>{let t,r,n;if(null==e||e<1)throw new Error("Invalid UUID Length Provided");for(t="",n=0;n<e;n+=1)r=parseInt((Math.random()*this.dictLength).toFixed(0),10)%this.dictLength,t+=this.dict[r];return t})),c(this,"fmt",((e,t)=>this.formattedUUID(e,t))),c(this,"formattedUUID",((e,t)=>{const r={$r:this.randomUUID,$s:this.sequentialUUID,$t:this.stamp};return e.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const n=e.slice(0,2),s=parseInt(e.slice(2),10);return"$s"===n?r[n]().padStart(s,"0"):"$t"===n&&t?r[n](s,t):r[n](s)}))})),c(this,"availableUUIDs",((e=this.uuidLength)=>parseFloat(Math.pow([...new Set(this.dict)].length,e).toFixed(0)))),c(this,"approxMaxBeforeCollision",((e=this.availableUUIDs(this.uuidLength))=>parseFloat(Math.sqrt(Math.PI/2*e).toFixed(20)))),c(this,"collisionProbability",((e=this.availableUUIDs(this.uuidLength),t=this.uuidLength)=>parseFloat((this.approxMaxBeforeCollision(e)/this.availableUUIDs(t)).toFixed(20)))),c(this,"uniqueness",((e=this.availableUUIDs(this.uuidLength))=>{const t=parseFloat((1-this.approxMaxBeforeCollision(e)/e).toFixed(20));return t>1?1:t<0?0:t})),c(this,"getVersion",(()=>this.version)),c(this,"stamp",((e,t)=>{const r=Math.floor(+(t||new Date)/1e3).toString(16);if("number"==typeof e&&0===e)return r;if("number"!=typeof e||e<10)throw new Error(["Param finalLength must be a number greater than or equal to 10,","or 0 if you want the raw hexadecimal timestamp"].join("\n"));const n=e-9,s=Math.round(Math.random()*(n>15?15:n)),i=this.randomUUID(n);return`${i.substring(0,s)}${r}${i.substring(s)}${s.toString(16)}`})),c(this,"parseStamp",((e,t)=>{if(t&&!/t0|t[1-9]\d{1,}/.test(t))throw new Error("Cannot extract date from a formated UUID with no timestamp in the format");const r=t?t.replace(/\$[rs]\d{0,}|\$t0|\$t[1-9]\d{1,}/g,(e=>{const t={$r:e=>[...Array(e)].map((()=>"r")).join(""),$s:e=>[...Array(e)].map((()=>"s")).join(""),$t:e=>[...Array(e)].map((()=>"t")).join("")},r=e.slice(0,2),n=parseInt(e.slice(2),10);return t[r](n)})).replace(/^(.*?)(t{8,})(.*)$/g,((t,r,n)=>e.substring(r.length,r.length+n.length))):e;if(8===r.length)return new Date(1e3*parseInt(r,16));if(r.length<10)throw new Error("Stamp length invalid");const n=parseInt(r.substring(r.length-1),16);return new Date(1e3*parseInt(r.substring(n,n+8),16))})),c(this,"setCounter",(e=>{this.counter=e}));const t=a(a({},p),e);this.counter=0,this.debug=!1,this.dict=[],this.version="5.0.2";const{dictionary:r,shuffle:n,length:s,counter:i}=t;return this.uuidLength=s,this.setDictionary(r,n),this.setCounter(i),this.debug=t.debug,this.log(this.dict),this.log(`Generator instantiated with Dictionary Size ${this.dictLength} and counter set to ${this.counter}`),this.log=this.log.bind(this),this.setDictionary=this.setDictionary.bind(this),this.setCounter=this.setCounter.bind(this),this.seq=this.seq.bind(this),this.sequentialUUID=this.sequentialUUID.bind(this),this.rnd=this.rnd.bind(this),this.randomUUID=this.randomUUID.bind(this),this.fmt=this.fmt.bind(this),this.formattedUUID=this.formattedUUID.bind(this),this.availableUUIDs=this.availableUUIDs.bind(this),this.approxMaxBeforeCollision=this.approxMaxBeforeCollision.bind(this),this.collisionProbability=this.collisionProbability.bind(this),this.uniqueness=this.uniqueness.bind(this),this.getVersion=this.getVersion.bind(this),this.stamp=this.stamp.bind(this),this.parseStamp=this.parseStamp.bind(this),this}};c(h,"default",h);var f,m=h;return f=l,((n,i,o,a)=>{if(i&&"object"==typeof i||"function"==typeof i)for(let c of r(i))s.call(n,c)||c===o||e(n,c,{get:()=>i[c],enumerable:!(a=t(i,c))||a.enumerable});return n})(e({},"__esModule",{value:!0}),f)})();e.exports=t.default,"undefined"!=typeof window&&(t=t.default)},7478:(e,t,r)=>{"use strict";var n=r(210),s=r(1924),i=r(631),o=n("%TypeError%"),a=n("%WeakMap%",!0),c=n("%Map%",!0),l=s("WeakMap.prototype.get",!0),u=s("WeakMap.prototype.set",!0),p=s("WeakMap.prototype.has",!0),h=s("Map.prototype.get",!0),f=s("Map.prototype.set",!0),m=s("Map.prototype.has",!0),d=function(e,t){for(var r,n=e;null!==(r=n.next);n=r)if(r.key===t)return n.next=r.next,r.next=e.next,e.next=r,r};e.exports=function(){var e,t,r,n={assert:function(e){if(!n.has(e))throw new o("Side channel does not contain "+i(e))},get:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return l(e,n)}else if(c){if(t)return h(t,n)}else if(r)return function(e,t){var r=d(e,t);return r&&r.value}(r,n)},has:function(n){if(a&&n&&("object"==typeof n||"function"==typeof n)){if(e)return p(e,n)}else if(c){if(t)return m(t,n)}else if(r)return function(e,t){return!!d(e,t)}(r,n);return!1},set:function(n,s){a&&n&&("object"==typeof n||"function"==typeof n)?(e||(e=new a),u(e,n,s)):c?(t||(t=new c),f(t,n,s)):(r||(r={key:{},next:null}),function(e,t,r){var n=d(e,t);n?n.value=r:e.next={key:t,next:e.next,value:r}}(r,n,s))}};return n}},3992:e=>{!function(){"use strict";var t,r,n,s,i,o="properties",a="deepProperties",c="propertyDescriptors",l="staticProperties",u="staticDeepProperties",p="staticPropertyDescriptors",h="configuration",f="deepConfiguration",m="deepProps",d="deepStatics",y="deepConf",g="initializers",v="methods",b="composers",x="compose";function E(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e):[])}function w(e,t){return Array.prototype.slice.call(arguments,2).reduce(e,t)}var j=w.bind(0,(function(e,t){if(t)for(var r=E(t),n=0;n<r.length;n+=1)Object.defineProperty(e,r[n],Object.getOwnPropertyDescriptor(t,r[n]));return e}));function O(e){return"function"==typeof e}function S(e){return e&&"object"==typeof e||O(e)}function P(e){return e&&"object"==typeof e&&e.__proto__==Object.prototype}var A=w.bind(0,(function e(r,n){if(n===t)return r;if(Array.isArray(n))return(Array.isArray(r)?r:[]).concat(n);if(!P(n))return n;for(var s,i,o=E(n),a=0;a<o.length;)s=o[a++],(i=Object.getOwnPropertyDescriptor(n,s)).hasOwnProperty("value")?i.value!==t&&(r[s]=e(P(r[s])||Array.isArray(n[s])?r[s]:{},n[s])):Object.defineProperty(r,s,i);return r}));function $(){return(r=Array.prototype.concat.apply([],arguments).filter((function(e,t,r){return O(e)&&r.indexOf(e)===t}))).length?r:t}function _(e,t){function n(r,n){S(t[r])&&(S(e[r])||(e[r]={}),(n||j)(e[r],t[r]))}function s(n){(r=$(e[n],t[n]))&&(e[n]=r)}return t&&S(t=t[x]||t)&&(n(v),n(o),n(a,A),n(c),n(l),n(u,A),n(p),n(h),n(f,A),s(g),s(b)),e}function k(){return function(e){return r=function e(r){var n,s,i=e[x]||{},l={__proto__:i[v]},u=i[g],p=Array.prototype.slice.apply(arguments),h=i[a];if(h&&A(l,h),(h=i[o])&&j(l,h),(h=i[c])&&Object.defineProperties(l,h),!u||!u.length)return l;for(r===t&&(r={}),i=0;i<u.length;)O(n=u[i++])&&(l=(s=n.call(l,r,{instance:l,stamp:e,args:p}))===t?l:s);return l},(n=e[u])&&A(r,n),(n=e[l])&&j(r,n),(n=e[p])&&Object.defineProperties(r,n),n=O(r[x])?r[x]:k,j(r[x]=function(){return n.apply(this,arguments)},e),r}(Array.prototype.concat.apply([this],arguments).reduce(_,{}))}function T(e){return O(e)&&O(e[x])}var I={};function C(e,i){return function(){return(s={})[e]=i.apply(t,Array.prototype.concat.apply([{}],arguments)),((r=this)&&r[x]||n).call(r,s)}}I[v]=C(v,j),I[o]=I.props=C(o,j),I[g]=I.init=C(g,$),I[b]=C(b,$),I[a]=I[m]=C(a,A),I[l]=I.statics=C(l,j),I[u]=I[d]=C(u,A),I[h]=I.conf=C(h,j),I[f]=I[y]=C(f,A),I[c]=C(c,j),I[p]=C(p,j),n=I[x]=j((function(){for(var e,E,w=0,O=[],P=arguments,_=this;w<P.length;)S(e=P[w++])&&O.push(T(e)?e:((s={})[v]=(E=e)[v]||t,n=E.props,s[o]=S((r=E[o])||n)?j({},n,r):t,s[g]=$(E.init,E[g]),s[b]=$(E[b]),n=E[m],s[a]=S((r=E[a])||n)?A({},n,r):t,s[c]=E[c],n=E.statics,s[l]=S((r=E[l])||n)?j({},n,r):t,n=E[d],s[u]=S((r=E[u])||n)?A({},n,r):t,r=E[p],s[p]=S((n=E.name&&{name:{value:E.name}})||r)?j({},r,n):t,n=E.conf,s[h]=S((r=E[h])||n)?j({},n,r):t,n=E[y],s[f]=S((r=E[f])||n)?A({},n,r):t,s));if(e=k.apply(_||i,O),_&&O.unshift(_),Array.isArray(P=e[x][b]))for(w=0;w<P.length;)e=T(_=P[w++]({stamp:e,composables:O}))?_:e;return e}),I),I.create=function(){return this.apply(t,arguments)},(s={})[l]=I,i=k(s),n[x]=n.bind(),n.version="4.3.2","object"!=typeof t?e.exports=n:self.stampit=n}()},3692:e=>{"use strict";function t(e){return Object.prototype.toString.call(e)}var r=Array.isArray||function(e){return"[object Array]"===Object.prototype.toString.call(e)};function n(e,t){if(e.forEach)return e.forEach(t);for(var r=0;r<e.length;r++)t(e[r],r,e)}var s=Object.keys||function(e){var t=[];for(var r in e)t.push(r);return t},i=Object.prototype.hasOwnProperty||function(e,t){return t in e};function o(e){if("object"==typeof e&&null!==e){var i;if(r(e))i=[];else if("[object Date]"===t(e))i=new Date(e.getTime?e.getTime():e);else if(function(e){return"[object RegExp]"===t(e)}(e))i=new RegExp(e);else if(function(e){return"[object Error]"===t(e)}(e))i={message:e.message};else if(function(e){return"[object Boolean]"===t(e)}(e)||function(e){return"[object Number]"===t(e)}(e)||function(e){return"[object String]"===t(e)}(e))i=Object(e);else if(Object.create&&Object.getPrototypeOf)i=Object.create(Object.getPrototypeOf(e));else if(e.constructor===Object)i={};else{var o=e.constructor&&e.constructor.prototype||e.__proto__||{},a=function(){};a.prototype=o,i=new a}return n(s(e),(function(t){i[t]=e[t]})),i}return e}function a(e,t,a){var c=[],l=[],u=!0;return function e(p){var h=a?o(p):p,f={},m=!0,d={node:h,node_:p,path:[].concat(c),parent:l[l.length-1],parents:l,key:c[c.length-1],isRoot:0===c.length,level:c.length,circular:null,update:function(e,t){d.isRoot||(d.parent.node[d.key]=e),d.node=e,t&&(m=!1)},delete:function(e){delete d.parent.node[d.key],e&&(m=!1)},remove:function(e){r(d.parent.node)?d.parent.node.splice(d.key,1):delete d.parent.node[d.key],e&&(m=!1)},keys:null,before:function(e){f.before=e},after:function(e){f.after=e},pre:function(e){f.pre=e},post:function(e){f.post=e},stop:function(){u=!1},block:function(){m=!1}};if(!u)return d;function y(){if("object"==typeof d.node&&null!==d.node){d.keys&&d.node_===d.node||(d.keys=s(d.node)),d.isLeaf=0===d.keys.length;for(var e=0;e<l.length;e++)if(l[e].node_===p){d.circular=l[e];break}}else d.isLeaf=!0,d.keys=null;d.notLeaf=!d.isLeaf,d.notRoot=!d.isRoot}y();var g=t.call(d,d.node);return void 0!==g&&d.update&&d.update(g),f.before&&f.before.call(d,d.node),m?("object"!=typeof d.node||null===d.node||d.circular||(l.push(d),y(),n(d.keys,(function(t,r){c.push(t),f.pre&&f.pre.call(d,d.node[t],t);var n=e(d.node[t]);a&&i.call(d.node,t)&&(d.node[t]=n.node),n.isLast=r===d.keys.length-1,n.isFirst=0===r,f.post&&f.post.call(d,n),c.pop()})),l.pop()),f.after&&f.after.call(d,d.node),d):d}(e).node}function c(e){this.value=e}function l(e){return new c(e)}c.prototype.get=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return;t=t[n]}return t},c.prototype.has=function(e){for(var t=this.value,r=0;r<e.length;r++){var n=e[r];if(!t||!i.call(t,n))return!1;t=t[n]}return!0},c.prototype.set=function(e,t){for(var r=this.value,n=0;n<e.length-1;n++){var s=e[n];i.call(r,s)||(r[s]={}),r=r[s]}return r[e[n]]=t,t},c.prototype.map=function(e){return a(this.value,e,!0)},c.prototype.forEach=function(e){return this.value=a(this.value,e,!1),this.value},c.prototype.reduce=function(e,t){var r=1===arguments.length,n=r?this.value:t;return this.forEach((function(t){this.isRoot&&r||(n=e.call(this,n,t))})),n},c.prototype.paths=function(){var e=[];return this.forEach((function(){e.push(this.path)})),e},c.prototype.nodes=function(){var e=[];return this.forEach((function(){e.push(this.node)})),e},c.prototype.clone=function(){var e=[],t=[];return function r(i){for(var a=0;a<e.length;a++)if(e[a]===i)return t[a];if("object"==typeof i&&null!==i){var c=o(i);return e.push(i),t.push(c),n(s(i),(function(e){c[e]=r(i[e])})),e.pop(),t.pop(),c}return i}(this.value)},n(s(c.prototype),(function(e){l[e]=function(t){var r=[].slice.call(arguments,1),n=new c(t);return n[e].apply(n,r)}})),e.exports=l},4654:()=>{},538:(e,t,r)=>{e.exports=r(6121)}},t={};function r(n){var s=t[n];if(void 0!==s)return s.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var n={};return(()=>{"use strict";r.d(n,{default:()=>vO});var e={};r.r(e),r.d(e,{JsonPatchError:()=>Zr,_areEquals:()=>un,applyOperation:()=>sn,applyPatch:()=>on,applyReducer:()=>an,deepClone:()=>en,getValueByPointer:()=>nn,validate:()=>ln,validator:()=>cn});var t={};r.r(t),r.d(t,{compare:()=>vn,generate:()=>yn,observe:()=>dn,unobserve:()=>mn});var s={};r.r(s),r.d(s,{Vj:()=>fa,RT:()=>aa,XR:()=>pa,fO:()=>ca,isHttpUrl:()=>la,DB:()=>ma,Nw:()=>da,Ep:()=>ha,UE:()=>ya});var i={};r.r(i),r.d(i,{hasElementSourceMap:()=>Kc,includesClasses:()=>Xc,includesSymbols:()=>Yc,isAnnotationElement:()=>zc,isArrayElement:()=>Lc,isBooleanElement:()=>Dc,isCommentElement:()=>Hc,isElement:()=>Mc,isLinkElement:()=>Uc,isMemberElement:()=>Bc,isNullElement:()=>Nc,isNumberElement:()=>Fc,isObjectElement:()=>qc,isParseResultElement:()=>Jc,isPrimitiveElement:()=>Wc,isRefElement:()=>Vc,isSourceMapElement:()=>Gc,isStringElement:()=>Rc});var o={};r.r(o),r.d(o,{isJSONReferenceElement:()=>Ph,isJSONSchemaElement:()=>Sh,isLinkDescriptionElement:()=>$h,isMediaElement:()=>Ah});var a={};r.r(a),r.d(a,{isOpenApi3_0LikeElement:()=>Xh,isOpenApiExtension:()=>sf,isParameterLikeElement:()=>Qh,isReferenceLikeElement:()=>Zh,isRequestBodyLikeElement:()=>ef,isResponseLikeElement:()=>tf,isServerLikeElement:()=>rf,isTagLikeElement:()=>nf});var c={};r.r(c),r.d(c,{isBooleanJsonSchemaElement:()=>gm,isCallbackElement:()=>Wf,isComponentsElement:()=>Kf,isContactElement:()=>Yf,isExampleElement:()=>Xf,isExternalDocumentationElement:()=>Qf,isHeaderElement:()=>Zf,isInfoElement:()=>em,isLicenseElement:()=>tm,isLinkElement:()=>rm,isLinkElementExternal:()=>nm,isMediaTypeElement:()=>Em,isOpenApi3_0Element:()=>im,isOpenapiElement:()=>sm,isOperationElement:()=>om,isParameterElement:()=>am,isPathItemElement:()=>cm,isPathItemElementExternal:()=>lm,isPathsElement:()=>um,isReferenceElement:()=>pm,isReferenceElementExternal:()=>hm,isRequestBodyElement:()=>fm,isResponseElement:()=>mm,isResponsesElement:()=>dm,isSchemaElement:()=>ym,isSecurityRequirementElement:()=>vm,isServerElement:()=>bm,isServerVariableElement:()=>xm,isServersElement:()=>wm});var l={};r.r(l),r.d(l,{isBooleanJsonSchemaElement:()=>Xb,isCallbackElement:()=>Ab,isComponentsElement:()=>$b,isContactElement:()=>_b,isExampleElement:()=>kb,isExternalDocumentationElement:()=>Tb,isHeaderElement:()=>Ib,isInfoElement:()=>Cb,isJsonSchemaDialectElement:()=>Mb,isLicenseElement:()=>Rb,isLinkElement:()=>Fb,isLinkElementExternal:()=>Nb,isMediaTypeElement:()=>tx,isOpenApi3_1Element:()=>qb,isOpenapiElement:()=>Db,isOperationElement:()=>Lb,isParameterElement:()=>Bb,isPathItemElement:()=>Ub,isPathItemElementExternal:()=>Vb,isPathsElement:()=>zb,isReferenceElement:()=>Hb,isReferenceElementExternal:()=>Jb,isRequestBodyElement:()=>Gb,isResponseElement:()=>Wb,isResponsesElement:()=>Kb,isSchemaElement:()=>Yb,isSecurityRequirementElement:()=>Qb,isServerElement:()=>Zb,isServerVariableElement:()=>ex});var u={};r.r(u),r.d(u,{cookie:()=>Qj,header:()=>Xj,path:()=>Wj,query:()=>Kj});const p="application/json, application/yaml",h="https://swagger.io",f=Object.freeze({url:"/"});var m=r(129),d=r.n(m);function y(e){return null==e}var g=function(e,t){var r,n="";for(r=0;r<t;r+=1)n+=e;return n},v={isNothing:y,isObject:function(e){return"object"==typeof e&&null!==e},toArray:function(e){return Array.isArray(e)?e:y(e)?[]:[e]},repeat:g,isNegativeZero:function(e){return 0===e&&Number.NEGATIVE_INFINITY===1/e},extend:function(e,t){var r,n,s,i;if(t)for(r=0,n=(i=Object.keys(t)).length;r<n;r+=1)e[s=i[r]]=t[s];return e}};function b(e,t){var r="",n=e.reason||"(unknown reason)";return e.mark?(e.mark.name&&(r+='in "'+e.mark.name+'" '),r+="("+(e.mark.line+1)+":"+(e.mark.column+1)+")",!t&&e.mark.snippet&&(r+="\n\n"+e.mark.snippet),n+" "+r):n}function x(e,t){Error.call(this),this.name="YAMLException",this.reason=e,this.mark=t,this.message=b(this,!1),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack||""}x.prototype=Object.create(Error.prototype),x.prototype.constructor=x,x.prototype.toString=function(e){return this.name+": "+b(this,e)};var E=x;function w(e,t,r,n,s){var i="",o="",a=Math.floor(s/2)-1;return n-t>a&&(t=n-a+(i=" ... ").length),r-n>a&&(r=n+a-(o=" ...").length),{str:i+e.slice(t,r).replace(/\t/g,"→")+o,pos:n-t+i.length}}function j(e,t){return v.repeat(" ",t-e.length)+e}var O=function(e,t){if(t=Object.create(t||null),!e.buffer)return null;t.maxLength||(t.maxLength=79),"number"!=typeof t.indent&&(t.indent=1),"number"!=typeof t.linesBefore&&(t.linesBefore=3),"number"!=typeof t.linesAfter&&(t.linesAfter=2);for(var r,n=/\r?\n|\r|\0/g,s=[0],i=[],o=-1;r=n.exec(e.buffer);)i.push(r.index),s.push(r.index+r[0].length),e.position<=r.index&&o<0&&(o=s.length-2);o<0&&(o=s.length-1);var a,c,l="",u=Math.min(e.line+t.linesAfter,i.length).toString().length,p=t.maxLength-(t.indent+u+3);for(a=1;a<=t.linesBefore&&!(o-a<0);a++)c=w(e.buffer,s[o-a],i[o-a],e.position-(s[o]-s[o-a]),p),l=v.repeat(" ",t.indent)+j((e.line-a+1).toString(),u)+" | "+c.str+"\n"+l;for(c=w(e.buffer,s[o],i[o],e.position,p),l+=v.repeat(" ",t.indent)+j((e.line+1).toString(),u)+" | "+c.str+"\n",l+=v.repeat("-",t.indent+u+3+c.pos)+"^\n",a=1;a<=t.linesAfter&&!(o+a>=i.length);a++)c=w(e.buffer,s[o+a],i[o+a],e.position-(s[o]-s[o+a]),p),l+=v.repeat(" ",t.indent)+j((e.line+a+1).toString(),u)+" | "+c.str+"\n";return l.replace(/\n$/,"")},S=["kind","multi","resolve","construct","instanceOf","predicate","represent","representName","defaultStyle","styleAliases"],P=["scalar","sequence","mapping"];var A=function(e,t){if(t=t||{},Object.keys(t).forEach((function(t){if(-1===S.indexOf(t))throw new E('Unknown option "'+t+'" is met in definition of "'+e+'" YAML type.')})),this.options=t,this.tag=e,this.kind=t.kind||null,this.resolve=t.resolve||function(){return!0},this.construct=t.construct||function(e){return e},this.instanceOf=t.instanceOf||null,this.predicate=t.predicate||null,this.represent=t.represent||null,this.representName=t.representName||null,this.defaultStyle=t.defaultStyle||null,this.multi=t.multi||!1,this.styleAliases=function(e){var t={};return null!==e&&Object.keys(e).forEach((function(r){e[r].forEach((function(e){t[String(e)]=r}))})),t}(t.styleAliases||null),-1===P.indexOf(this.kind))throw new E('Unknown kind "'+this.kind+'" is specified for "'+e+'" YAML type.')};function $(e,t){var r=[];return e[t].forEach((function(e){var t=r.length;r.forEach((function(r,n){r.tag===e.tag&&r.kind===e.kind&&r.multi===e.multi&&(t=n)})),r[t]=e})),r}function _(e){return this.extend(e)}_.prototype.extend=function(e){var t=[],r=[];if(e instanceof A)r.push(e);else if(Array.isArray(e))r=r.concat(e);else{if(!e||!Array.isArray(e.implicit)&&!Array.isArray(e.explicit))throw new E("Schema.extend argument should be a Type, [ Type ], or a schema definition ({ implicit: [...], explicit: [...] })");e.implicit&&(t=t.concat(e.implicit)),e.explicit&&(r=r.concat(e.explicit))}t.forEach((function(e){if(!(e instanceof A))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.");if(e.loadKind&&"scalar"!==e.loadKind)throw new E("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.");if(e.multi)throw new E("There is a multi type in the implicit list of a schema. Multi tags can only be listed as explicit.")})),r.forEach((function(e){if(!(e instanceof A))throw new E("Specified list of YAML types (or a single Type object) contains a non-Type object.")}));var n=Object.create(_.prototype);return n.implicit=(this.implicit||[]).concat(t),n.explicit=(this.explicit||[]).concat(r),n.compiledImplicit=$(n,"implicit"),n.compiledExplicit=$(n,"explicit"),n.compiledTypeMap=function(){var e,t,r={scalar:{},sequence:{},mapping:{},fallback:{},multi:{scalar:[],sequence:[],mapping:[],fallback:[]}};function n(e){e.multi?(r.multi[e.kind].push(e),r.multi.fallback.push(e)):r[e.kind][e.tag]=r.fallback[e.tag]=e}for(e=0,t=arguments.length;e<t;e+=1)arguments[e].forEach(n);return r}(n.compiledImplicit,n.compiledExplicit),n};var k=_,T=new A("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return null!==e?e:""}}),I=new A("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return null!==e?e:[]}}),C=new A("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return null!==e?e:{}}}),M=new k({explicit:[T,I,C]});var R=new A("tag:yaml.org,2002:null",{kind:"scalar",resolve:function(e){if(null===e)return!0;var t=e.length;return 1===t&&"~"===e||4===t&&("null"===e||"Null"===e||"NULL"===e)},construct:function(){return null},predicate:function(e){return null===e},represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"},empty:function(){return""}},defaultStyle:"lowercase"});var F=new A("tag:yaml.org,2002:bool",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t=e.length;return 4===t&&("true"===e||"True"===e||"TRUE"===e)||5===t&&("false"===e||"False"===e||"FALSE"===e)},construct:function(e){return"true"===e||"True"===e||"TRUE"===e},predicate:function(e){return"[object Boolean]"===Object.prototype.toString.call(e)},represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"});function N(e){return 48<=e&&e<=55}function D(e){return 48<=e&&e<=57}var q=new A("tag:yaml.org,2002:int",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=e.length,s=0,i=!1;if(!n)return!1;if("-"!==(t=e[s])&&"+"!==t||(t=e[++s]),"0"===t){if(s+1===n)return!0;if("b"===(t=e[++s])){for(s++;s<n;s++)if("_"!==(t=e[s])){if("0"!==t&&"1"!==t)return!1;i=!0}return i&&"_"!==t}if("x"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!(48<=(r=e.charCodeAt(s))&&r<=57||65<=r&&r<=70||97<=r&&r<=102))return!1;i=!0}return i&&"_"!==t}if("o"===t){for(s++;s<n;s++)if("_"!==(t=e[s])){if(!N(e.charCodeAt(s)))return!1;i=!0}return i&&"_"!==t}}if("_"===t)return!1;for(;s<n;s++)if("_"!==(t=e[s])){if(!D(e.charCodeAt(s)))return!1;i=!0}return!(!i||"_"===t)},construct:function(e){var t,r=e,n=1;if(-1!==r.indexOf("_")&&(r=r.replace(/_/g,"")),"-"!==(t=r[0])&&"+"!==t||("-"===t&&(n=-1),t=(r=r.slice(1))[0]),"0"===r)return 0;if("0"===t){if("b"===r[1])return n*parseInt(r.slice(2),2);if("x"===r[1])return n*parseInt(r.slice(2),16);if("o"===r[1])return n*parseInt(r.slice(2),8)}return n*parseInt(r,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&e%1==0&&!v.isNegativeZero(e)},represent:{binary:function(e){return e>=0?"0b"+e.toString(2):"-0b"+e.toString(2).slice(1)},octal:function(e){return e>=0?"0o"+e.toString(8):"-0o"+e.toString(8).slice(1)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return e>=0?"0x"+e.toString(16).toUpperCase():"-0x"+e.toString(16).toUpperCase().slice(1)}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}}),L=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)(?:\\.[0-9_]*)?(?:[eE][-+]?[0-9]+)?|\\.[0-9_]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");var B=/^[-+]?[0-9]+e/;var U=new A("tag:yaml.org,2002:float",{kind:"scalar",resolve:function(e){return null!==e&&!(!L.test(e)||"_"===e[e.length-1])},construct:function(e){var t,r;return r="-"===(t=e.replace(/_/g,"").toLowerCase())[0]?-1:1,"+-".indexOf(t[0])>=0&&(t=t.slice(1)),".inf"===t?1===r?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:".nan"===t?NaN:r*parseFloat(t,10)},predicate:function(e){return"[object Number]"===Object.prototype.toString.call(e)&&(e%1!=0||v.isNegativeZero(e))},represent:function(e,t){var r;if(isNaN(e))switch(t){case"lowercase":return".nan";case"uppercase":return".NAN";case"camelcase":return".NaN"}else if(Number.POSITIVE_INFINITY===e)switch(t){case"lowercase":return".inf";case"uppercase":return".INF";case"camelcase":return".Inf"}else if(Number.NEGATIVE_INFINITY===e)switch(t){case"lowercase":return"-.inf";case"uppercase":return"-.INF";case"camelcase":return"-.Inf"}else if(v.isNegativeZero(e))return"-0.0";return r=e.toString(10),B.test(r)?r.replace("e",".e"):r},defaultStyle:"lowercase"}),V=M.extend({implicit:[R,F,q,U]}),z=V,H=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),J=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9]?)-([0-9][0-9]?)(?:[Tt]|[ \\t]+)([0-9][0-9]?):([0-9][0-9]):([0-9][0-9])(?:\\.([0-9]*))?(?:[ \\t]*(Z|([-+])([0-9][0-9]?)(?::([0-9][0-9]))?))?$");var G=new A("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:function(e){return null!==e&&(null!==H.exec(e)||null!==J.exec(e))},construct:function(e){var t,r,n,s,i,o,a,c,l=0,u=null;if(null===(t=H.exec(e))&&(t=J.exec(e)),null===t)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,s=+t[3],!t[4])return new Date(Date.UTC(r,n,s));if(i=+t[4],o=+t[5],a=+t[6],t[7]){for(l=t[7].slice(0,3);l.length<3;)l+="0";l=+l}return t[9]&&(u=6e4*(60*+t[10]+ +(t[11]||0)),"-"===t[9]&&(u=-u)),c=new Date(Date.UTC(r,n,s,i,o,a,l)),u&&c.setTime(c.getTime()-u),c},instanceOf:Date,represent:function(e){return e.toISOString()}});var W=new A("tag:yaml.org,2002:merge",{kind:"scalar",resolve:function(e){return"<<"===e||null===e}}),K="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=\n\r";var Y=new A("tag:yaml.org,2002:binary",{kind:"scalar",resolve:function(e){if(null===e)return!1;var t,r,n=0,s=e.length,i=K;for(r=0;r<s;r++)if(!((t=i.indexOf(e.charAt(r)))>64)){if(t<0)return!1;n+=6}return n%8==0},construct:function(e){var t,r,n=e.replace(/[\r\n=]/g,""),s=n.length,i=K,o=0,a=[];for(t=0;t<s;t++)t%4==0&&t&&(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)),o=o<<6|i.indexOf(n.charAt(t));return 0===(r=s%4*6)?(a.push(o>>16&255),a.push(o>>8&255),a.push(255&o)):18===r?(a.push(o>>10&255),a.push(o>>2&255)):12===r&&a.push(o>>4&255),new Uint8Array(a)},predicate:function(e){return"[object Uint8Array]"===Object.prototype.toString.call(e)},represent:function(e){var t,r,n="",s=0,i=e.length,o=K;for(t=0;t<i;t++)t%3==0&&t&&(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]),s=(s<<8)+e[t];return 0===(r=i%3)?(n+=o[s>>18&63],n+=o[s>>12&63],n+=o[s>>6&63],n+=o[63&s]):2===r?(n+=o[s>>10&63],n+=o[s>>4&63],n+=o[s<<2&63],n+=o[64]):1===r&&(n+=o[s>>2&63],n+=o[s<<4&63],n+=o[64],n+=o[64]),n}}),X=Object.prototype.hasOwnProperty,Q=Object.prototype.toString;var Z=new A("tag:yaml.org,2002:omap",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=[],a=e;for(t=0,r=a.length;t<r;t+=1){if(n=a[t],i=!1,"[object Object]"!==Q.call(n))return!1;for(s in n)if(X.call(n,s)){if(i)return!1;i=!0}if(!i)return!1;if(-1!==o.indexOf(s))return!1;o.push(s)}return!0},construct:function(e){return null!==e?e:[]}}),ee=Object.prototype.toString;var te=new A("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:function(e){if(null===e)return!0;var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1){if(n=o[t],"[object Object]"!==ee.call(n))return!1;if(1!==(s=Object.keys(n)).length)return!1;i[t]=[s[0],n[s[0]]]}return!0},construct:function(e){if(null===e)return[];var t,r,n,s,i,o=e;for(i=new Array(o.length),t=0,r=o.length;t<r;t+=1)n=o[t],s=Object.keys(n),i[t]=[s[0],n[s[0]]];return i}}),re=Object.prototype.hasOwnProperty;var ne=new A("tag:yaml.org,2002:set",{kind:"mapping",resolve:function(e){if(null===e)return!0;var t,r=e;for(t in r)if(re.call(r,t)&&null!==r[t])return!1;return!0},construct:function(e){return null!==e?e:{}}}),se=z.extend({implicit:[G,W],explicit:[Y,Z,te,ne]}),ie=Object.prototype.hasOwnProperty,oe=1,ae=2,ce=3,le=4,ue=1,pe=2,he=3,fe=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,me=/[\x85\u2028\u2029]/,de=/[,\[\]\{\}]/,ye=/^(?:!|!!|![a-z\-]+!)$/i,ge=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function ve(e){return Object.prototype.toString.call(e)}function be(e){return 10===e||13===e}function xe(e){return 9===e||32===e}function Ee(e){return 9===e||32===e||10===e||13===e}function we(e){return 44===e||91===e||93===e||123===e||125===e}function je(e){var t;return 48<=e&&e<=57?e-48:97<=(t=32|e)&&t<=102?t-97+10:-1}function Oe(e){return 48===e?"\0":97===e?"":98===e?"\b":116===e||9===e?"\t":110===e?"\n":118===e?"\v":102===e?"\f":114===e?"\r":101===e?"":32===e?" ":34===e?'"':47===e?"/":92===e?"\\":78===e?"
":95===e?" ":76===e?"\u2028":80===e?"\u2029":""}function Se(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(55296+(e-65536>>10),56320+(e-65536&1023))}for(var Pe=new Array(256),Ae=new Array(256),$e=0;$e<256;$e++)Pe[$e]=Oe($e)?1:0,Ae[$e]=Oe($e);function _e(e,t){this.input=e,this.filename=t.filename||null,this.schema=t.schema||se,this.onWarning=t.onWarning||null,this.legacy=t.legacy||!1,this.json=t.json||!1,this.listener=t.listener||null,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=e.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.firstTabInLine=-1,this.documents=[]}function ke(e,t){var r={name:e.filename,buffer:e.input.slice(0,-1),position:e.position,line:e.line,column:e.position-e.lineStart};return r.snippet=O(r),new E(t,r)}function Te(e,t){throw ke(e,t)}function Ie(e,t){e.onWarning&&e.onWarning.call(null,ke(e,t))}var Ce={YAML:function(e,t,r){var n,s,i;null!==e.version&&Te(e,"duplication of %YAML directive"),1!==r.length&&Te(e,"YAML directive accepts exactly one argument"),null===(n=/^([0-9]+)\.([0-9]+)$/.exec(r[0]))&&Te(e,"ill-formed argument of the YAML directive"),s=parseInt(n[1],10),i=parseInt(n[2],10),1!==s&&Te(e,"unacceptable YAML version of the document"),e.version=r[0],e.checkLineBreaks=i<2,1!==i&&2!==i&&Ie(e,"unsupported YAML version of the document")},TAG:function(e,t,r){var n,s;2!==r.length&&Te(e,"TAG directive accepts exactly two arguments"),n=r[0],s=r[1],ye.test(n)||Te(e,"ill-formed tag handle (first argument) of the TAG directive"),ie.call(e.tagMap,n)&&Te(e,'there is a previously declared suffix for "'+n+'" tag handle'),ge.test(s)||Te(e,"ill-formed tag prefix (second argument) of the TAG directive");try{s=decodeURIComponent(s)}catch(t){Te(e,"tag prefix is malformed: "+s)}e.tagMap[n]=s}};function Me(e,t,r,n){var s,i,o,a;if(t<r){if(a=e.input.slice(t,r),n)for(s=0,i=a.length;s<i;s+=1)9===(o=a.charCodeAt(s))||32<=o&&o<=1114111||Te(e,"expected valid JSON character");else fe.test(a)&&Te(e,"the stream contains non-printable characters");e.result+=a}}function Re(e,t,r,n){var s,i,o,a;for(v.isObject(r)||Te(e,"cannot merge mappings; the provided source object is unacceptable"),o=0,a=(s=Object.keys(r)).length;o<a;o+=1)i=s[o],ie.call(t,i)||(t[i]=r[i],n[i]=!0)}function Fe(e,t,r,n,s,i,o,a,c){var l,u;if(Array.isArray(s))for(l=0,u=(s=Array.prototype.slice.call(s)).length;l<u;l+=1)Array.isArray(s[l])&&Te(e,"nested arrays are not supported inside keys"),"object"==typeof s&&"[object Object]"===ve(s[l])&&(s[l]="[object Object]");if("object"==typeof s&&"[object Object]"===ve(s)&&(s="[object Object]"),s=String(s),null===t&&(t={}),"tag:yaml.org,2002:merge"===n)if(Array.isArray(i))for(l=0,u=i.length;l<u;l+=1)Re(e,t,i[l],r);else Re(e,t,i,r);else e.json||ie.call(r,s)||!ie.call(t,s)||(e.line=o||e.line,e.lineStart=a||e.lineStart,e.position=c||e.position,Te(e,"duplicated mapping key")),"__proto__"===s?Object.defineProperty(t,s,{configurable:!0,enumerable:!0,writable:!0,value:i}):t[s]=i,delete r[s];return t}function Ne(e){var t;10===(t=e.input.charCodeAt(e.position))?e.position++:13===t?(e.position++,10===e.input.charCodeAt(e.position)&&e.position++):Te(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.firstTabInLine=-1}function De(e,t,r){for(var n=0,s=e.input.charCodeAt(e.position);0!==s;){for(;xe(s);)9===s&&-1===e.firstTabInLine&&(e.firstTabInLine=e.position),s=e.input.charCodeAt(++e.position);if(t&&35===s)do{s=e.input.charCodeAt(++e.position)}while(10!==s&&13!==s&&0!==s);if(!be(s))break;for(Ne(e),s=e.input.charCodeAt(e.position),n++,e.lineIndent=0;32===s;)e.lineIndent++,s=e.input.charCodeAt(++e.position)}return-1!==r&&0!==n&&e.lineIndent<r&&Ie(e,"deficient indentation"),n}function qe(e){var t,r=e.position;return!(45!==(t=e.input.charCodeAt(r))&&46!==t||t!==e.input.charCodeAt(r+1)||t!==e.input.charCodeAt(r+2)||(r+=3,0!==(t=e.input.charCodeAt(r))&&!Ee(t)))}function Le(e,t){1===t?e.result+=" ":t>1&&(e.result+=v.repeat("\n",t-1))}function Be(e,t){var r,n,s=e.tag,i=e.anchor,o=[],a=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=o),n=e.input.charCodeAt(e.position);0!==n&&(-1!==e.firstTabInLine&&(e.position=e.firstTabInLine,Te(e,"tab characters must not be used in indentation")),45===n)&&Ee(e.input.charCodeAt(e.position+1));)if(a=!0,e.position++,De(e,!0,-1)&&e.lineIndent<=t)o.push(null),n=e.input.charCodeAt(e.position);else if(r=e.line,ze(e,t,ce,!1,!0),o.push(e.result),De(e,!0,-1),n=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&0!==n)Te(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break;return!!a&&(e.tag=s,e.anchor=i,e.kind="sequence",e.result=o,!0)}function Ue(e){var t,r,n,s,i=!1,o=!1;if(33!==(s=e.input.charCodeAt(e.position)))return!1;if(null!==e.tag&&Te(e,"duplication of a tag property"),60===(s=e.input.charCodeAt(++e.position))?(i=!0,s=e.input.charCodeAt(++e.position)):33===s?(o=!0,r="!!",s=e.input.charCodeAt(++e.position)):r="!",t=e.position,i){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&62!==s);e.position<e.length?(n=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):Te(e,"unexpected end of the stream within a verbatim tag")}else{for(;0!==s&&!Ee(s);)33===s&&(o?Te(e,"tag suffix cannot contain exclamation marks"):(r=e.input.slice(t-1,e.position+1),ye.test(r)||Te(e,"named tag handle cannot contain such characters"),o=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);n=e.input.slice(t,e.position),de.test(n)&&Te(e,"tag suffix cannot contain flow indicator characters")}n&&!ge.test(n)&&Te(e,"tag name cannot contain such characters: "+n);try{n=decodeURIComponent(n)}catch(t){Te(e,"tag name is malformed: "+n)}return i?e.tag=n:ie.call(e.tagMap,r)?e.tag=e.tagMap[r]+n:"!"===r?e.tag="!"+n:"!!"===r?e.tag="tag:yaml.org,2002:"+n:Te(e,'undeclared tag handle "'+r+'"'),!0}function Ve(e){var t,r;if(38!==(r=e.input.charCodeAt(e.position)))return!1;for(null!==e.anchor&&Te(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;0!==r&&!Ee(r)&&!we(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&Te(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function ze(e,t,r,n,s){var i,o,a,c,l,u,p,h,f,m=1,d=!1,y=!1;if(null!==e.listener&&e.listener("open",e),e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=o=a=le===r||ce===r,n&&De(e,!0,-1)&&(d=!0,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)),1===m)for(;Ue(e)||Ve(e);)De(e,!0,-1)?(d=!0,a=i,e.lineIndent>t?m=1:e.lineIndent===t?m=0:e.lineIndent<t&&(m=-1)):a=!1;if(a&&(a=d||s),1!==m&&le!==r||(h=oe===r||ae===r?t:t+1,f=e.position-e.lineStart,1===m?a&&(Be(e,f)||function(e,t,r){var n,s,i,o,a,c,l,u=e.tag,p=e.anchor,h={},f=Object.create(null),m=null,d=null,y=null,g=!1,v=!1;if(-1!==e.firstTabInLine)return!1;for(null!==e.anchor&&(e.anchorMap[e.anchor]=h),l=e.input.charCodeAt(e.position);0!==l;){if(g||-1===e.firstTabInLine||(e.position=e.firstTabInLine,Te(e,"tab characters must not be used in indentation")),n=e.input.charCodeAt(e.position+1),i=e.line,63!==l&&58!==l||!Ee(n)){if(o=e.line,a=e.lineStart,c=e.position,!ze(e,r,ae,!1,!0))break;if(e.line===i){for(l=e.input.charCodeAt(e.position);xe(l);)l=e.input.charCodeAt(++e.position);if(58===l)Ee(l=e.input.charCodeAt(++e.position))||Te(e,"a whitespace character is expected after the key-value separator within a block mapping"),g&&(Fe(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!1,s=!1,m=e.tag,d=e.result;else{if(!v)return e.tag=u,e.anchor=p,!0;Te(e,"can not read an implicit mapping pair; a colon is missed")}}else{if(!v)return e.tag=u,e.anchor=p,!0;Te(e,"can not read a block mapping entry; a multiline key may not be an implicit key")}}else 63===l?(g&&(Fe(e,h,f,m,d,null,o,a,c),m=d=y=null),v=!0,g=!0,s=!0):g?(g=!1,s=!0):Te(e,"incomplete explicit mapping pair; a key node is missed; or followed by a non-tabulated empty line"),e.position+=1,l=n;if((e.line===i||e.lineIndent>t)&&(g&&(o=e.line,a=e.lineStart,c=e.position),ze(e,t,le,!0,s)&&(g?d=e.result:y=e.result),g||(Fe(e,h,f,m,d,y,o,a,c),m=d=y=null),De(e,!0,-1),l=e.input.charCodeAt(e.position)),(e.line===i||e.lineIndent>t)&&0!==l)Te(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return g&&Fe(e,h,f,m,d,null,o,a,c),v&&(e.tag=u,e.anchor=p,e.kind="mapping",e.result=h),v}(e,f,h))||function(e,t){var r,n,s,i,o,a,c,l,u,p,h,f,m=!0,d=e.tag,y=e.anchor,g=Object.create(null);if(91===(f=e.input.charCodeAt(e.position)))o=93,l=!1,i=[];else{if(123!==f)return!1;o=125,l=!0,i={}}for(null!==e.anchor&&(e.anchorMap[e.anchor]=i),f=e.input.charCodeAt(++e.position);0!==f;){if(De(e,!0,t),(f=e.input.charCodeAt(e.position))===o)return e.position++,e.tag=d,e.anchor=y,e.kind=l?"mapping":"sequence",e.result=i,!0;m?44===f&&Te(e,"expected the node content, but found ','"):Te(e,"missed comma between flow collection entries"),h=null,a=c=!1,63===f&&Ee(e.input.charCodeAt(e.position+1))&&(a=c=!0,e.position++,De(e,!0,t)),r=e.line,n=e.lineStart,s=e.position,ze(e,t,oe,!1,!0),p=e.tag,u=e.result,De(e,!0,t),f=e.input.charCodeAt(e.position),!c&&e.line!==r||58!==f||(a=!0,f=e.input.charCodeAt(++e.position),De(e,!0,t),ze(e,t,oe,!1,!0),h=e.result),l?Fe(e,i,g,p,u,h,r,n,s):a?i.push(Fe(e,null,g,p,u,h,r,n,s)):i.push(u),De(e,!0,t),44===(f=e.input.charCodeAt(e.position))?(m=!0,f=e.input.charCodeAt(++e.position)):m=!1}Te(e,"unexpected end of the stream within a flow collection")}(e,h)?y=!0:(o&&function(e,t){var r,n,s,i,o,a=ue,c=!1,l=!1,u=t,p=0,h=!1;if(124===(i=e.input.charCodeAt(e.position)))n=!1;else{if(62!==i)return!1;n=!0}for(e.kind="scalar",e.result="";0!==i;)if(43===(i=e.input.charCodeAt(++e.position))||45===i)ue===a?a=43===i?he:pe:Te(e,"repeat of a chomping mode identifier");else{if(!((s=48<=(o=i)&&o<=57?o-48:-1)>=0))break;0===s?Te(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):l?Te(e,"repeat of an indentation width identifier"):(u=t+s-1,l=!0)}if(xe(i)){do{i=e.input.charCodeAt(++e.position)}while(xe(i));if(35===i)do{i=e.input.charCodeAt(++e.position)}while(!be(i)&&0!==i)}for(;0!==i;){for(Ne(e),e.lineIndent=0,i=e.input.charCodeAt(e.position);(!l||e.lineIndent<u)&&32===i;)e.lineIndent++,i=e.input.charCodeAt(++e.position);if(!l&&e.lineIndent>u&&(u=e.lineIndent),be(i))p++;else{if(e.lineIndent<u){a===he?e.result+=v.repeat("\n",c?1+p:p):a===ue&&c&&(e.result+="\n");break}for(n?xe(i)?(h=!0,e.result+=v.repeat("\n",c?1+p:p)):h?(h=!1,e.result+=v.repeat("\n",p+1)):0===p?c&&(e.result+=" "):e.result+=v.repeat("\n",p):e.result+=v.repeat("\n",c?1+p:p),c=!0,l=!0,p=0,r=e.position;!be(i)&&0!==i;)i=e.input.charCodeAt(++e.position);Me(e,r,e.position,!1)}}return!0}(e,h)||function(e,t){var r,n,s;if(39!==(r=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,n=s=e.position;0!==(r=e.input.charCodeAt(e.position));)if(39===r){if(Me(e,n,e.position,!0),39!==(r=e.input.charCodeAt(++e.position)))return!0;n=e.position,e.position++,s=e.position}else be(r)?(Me(e,n,s,!0),Le(e,De(e,!1,t)),n=s=e.position):e.position===e.lineStart&&qe(e)?Te(e,"unexpected end of the document within a single quoted scalar"):(e.position++,s=e.position);Te(e,"unexpected end of the stream within a single quoted scalar")}(e,h)||function(e,t){var r,n,s,i,o,a,c;if(34!==(a=e.input.charCodeAt(e.position)))return!1;for(e.kind="scalar",e.result="",e.position++,r=n=e.position;0!==(a=e.input.charCodeAt(e.position));){if(34===a)return Me(e,r,e.position,!0),e.position++,!0;if(92===a){if(Me(e,r,e.position,!0),be(a=e.input.charCodeAt(++e.position)))De(e,!1,t);else if(a<256&&Pe[a])e.result+=Ae[a],e.position++;else if((o=120===(c=a)?2:117===c?4:85===c?8:0)>0){for(s=o,i=0;s>0;s--)(o=je(a=e.input.charCodeAt(++e.position)))>=0?i=(i<<4)+o:Te(e,"expected hexadecimal character");e.result+=Se(i),e.position++}else Te(e,"unknown escape sequence");r=n=e.position}else be(a)?(Me(e,r,n,!0),Le(e,De(e,!1,t)),r=n=e.position):e.position===e.lineStart&&qe(e)?Te(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}Te(e,"unexpected end of the stream within a double quoted scalar")}(e,h)?y=!0:!function(e){var t,r,n;if(42!==(n=e.input.charCodeAt(e.position)))return!1;for(n=e.input.charCodeAt(++e.position),t=e.position;0!==n&&!Ee(n)&&!we(n);)n=e.input.charCodeAt(++e.position);return e.position===t&&Te(e,"name of an alias node must contain at least one character"),r=e.input.slice(t,e.position),ie.call(e.anchorMap,r)||Te(e,'unidentified alias "'+r+'"'),e.result=e.anchorMap[r],De(e,!0,-1),!0}(e)?function(e,t,r){var n,s,i,o,a,c,l,u,p=e.kind,h=e.result;if(Ee(u=e.input.charCodeAt(e.position))||we(u)||35===u||38===u||42===u||33===u||124===u||62===u||39===u||34===u||37===u||64===u||96===u)return!1;if((63===u||45===u)&&(Ee(n=e.input.charCodeAt(e.position+1))||r&&we(n)))return!1;for(e.kind="scalar",e.result="",s=i=e.position,o=!1;0!==u;){if(58===u){if(Ee(n=e.input.charCodeAt(e.position+1))||r&&we(n))break}else if(35===u){if(Ee(e.input.charCodeAt(e.position-1)))break}else{if(e.position===e.lineStart&&qe(e)||r&&we(u))break;if(be(u)){if(a=e.line,c=e.lineStart,l=e.lineIndent,De(e,!1,-1),e.lineIndent>=t){o=!0,u=e.input.charCodeAt(e.position);continue}e.position=i,e.line=a,e.lineStart=c,e.lineIndent=l;break}}o&&(Me(e,s,i,!1),Le(e,e.line-a),s=i=e.position,o=!1),xe(u)||(i=e.position+1),u=e.input.charCodeAt(++e.position)}return Me(e,s,i,!1),!!e.result||(e.kind=p,e.result=h,!1)}(e,h,oe===r)&&(y=!0,null===e.tag&&(e.tag="?")):(y=!0,null===e.tag&&null===e.anchor||Te(e,"alias node should not have any properties")),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):0===m&&(y=a&&Be(e,f))),null===e.tag)null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);else if("?"===e.tag){for(null!==e.result&&"scalar"!==e.kind&&Te(e,'unacceptable node kind for !<?> tag; it should be "scalar", not "'+e.kind+'"'),c=0,l=e.implicitTypes.length;c<l;c+=1)if((p=e.implicitTypes[c]).resolve(e.result)){e.result=p.construct(e.result),e.tag=p.tag,null!==e.anchor&&(e.anchorMap[e.anchor]=e.result);break}}else if("!"!==e.tag){if(ie.call(e.typeMap[e.kind||"fallback"],e.tag))p=e.typeMap[e.kind||"fallback"][e.tag];else for(p=null,c=0,l=(u=e.typeMap.multi[e.kind||"fallback"]).length;c<l;c+=1)if(e.tag.slice(0,u[c].tag.length)===u[c].tag){p=u[c];break}p||Te(e,"unknown tag !<"+e.tag+">"),null!==e.result&&p.kind!==e.kind&&Te(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+p.kind+'", not "'+e.kind+'"'),p.resolve(e.result,e.tag)?(e.result=p.construct(e.result,e.tag),null!==e.anchor&&(e.anchorMap[e.anchor]=e.result)):Te(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")}return null!==e.listener&&e.listener("close",e),null!==e.tag||null!==e.anchor||y}function He(e){var t,r,n,s,i=e.position,o=!1;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap=Object.create(null),e.anchorMap=Object.create(null);0!==(s=e.input.charCodeAt(e.position))&&(De(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||37!==s));){for(o=!0,s=e.input.charCodeAt(++e.position),t=e.position;0!==s&&!Ee(s);)s=e.input.charCodeAt(++e.position);for(n=[],(r=e.input.slice(t,e.position)).length<1&&Te(e,"directive name must not be less than one character in length");0!==s;){for(;xe(s);)s=e.input.charCodeAt(++e.position);if(35===s){do{s=e.input.charCodeAt(++e.position)}while(0!==s&&!be(s));break}if(be(s))break;for(t=e.position;0!==s&&!Ee(s);)s=e.input.charCodeAt(++e.position);n.push(e.input.slice(t,e.position))}0!==s&&Ne(e),ie.call(Ce,r)?Ce[r](e,r,n):Ie(e,'unknown document directive "'+r+'"')}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)):o&&Te(e,"directives end mark is expected"),ze(e,e.lineIndent-1,le,!1,!0),De(e,!0,-1),e.checkLineBreaks&&me.test(e.input.slice(i,e.position))&&Ie(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&qe(e)?46===e.input.charCodeAt(e.position)&&(e.position+=3,De(e,!0,-1)):e.position<e.length-1&&Te(e,"end of the stream or a document separator is expected")}function Je(e,t){t=t||{},0!==(e=String(e)).length&&(10!==e.charCodeAt(e.length-1)&&13!==e.charCodeAt(e.length-1)&&(e+="\n"),65279===e.charCodeAt(0)&&(e=e.slice(1)));var r=new _e(e,t),n=e.indexOf("\0");for(-1!==n&&(r.position=n,Te(r,"null byte is not allowed in input")),r.input+="\0";32===r.input.charCodeAt(r.position);)r.lineIndent+=1,r.position+=1;for(;r.position<r.length-1;)He(r);return r.documents}var Ge={loadAll:function(e,t,r){null!==t&&"object"==typeof t&&void 0===r&&(r=t,t=null);var n=Je(e,r);if("function"!=typeof t)return n;for(var s=0,i=n.length;s<i;s+=1)t(n[s])},load:function(e,t){var r=Je(e,t);if(0!==r.length){if(1===r.length)return r[0];throw new E("expected a single document in the stream, but found more")}}},We=Object.prototype.toString,Ke=Object.prototype.hasOwnProperty,Ye=65279,Xe=9,Qe=10,Ze=13,et=32,tt=33,rt=34,nt=35,st=37,it=38,ot=39,at=42,ct=44,lt=45,ut=58,pt=61,ht=62,ft=63,mt=64,dt=91,yt=93,gt=96,vt=123,bt=124,xt=125,Et={0:"\\0",7:"\\a",8:"\\b",9:"\\t",10:"\\n",11:"\\v",12:"\\f",13:"\\r",27:"\\e",34:'\\"',92:"\\\\",133:"\\N",160:"\\_",8232:"\\L",8233:"\\P"},wt=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"],jt=/^[-+]?[0-9_]+(?::[0-9_]+)+(?:\.[0-9_]*)?$/;function Ot(e){var t,r,n;if(t=e.toString(16).toUpperCase(),e<=255)r="x",n=2;else if(e<=65535)r="u",n=4;else{if(!(e<=4294967295))throw new E("code point within a string may not be greater than 0xFFFFFFFF");r="U",n=8}return"\\"+r+v.repeat("0",n-t.length)+t}var St=1,Pt=2;function At(e){this.schema=e.schema||se,this.indent=Math.max(1,e.indent||2),this.noArrayIndent=e.noArrayIndent||!1,this.skipInvalid=e.skipInvalid||!1,this.flowLevel=v.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=function(e,t){var r,n,s,i,o,a,c;if(null===t)return{};for(r={},s=0,i=(n=Object.keys(t)).length;s<i;s+=1)o=n[s],a=String(t[o]),"!!"===o.slice(0,2)&&(o="tag:yaml.org,2002:"+o.slice(2)),(c=e.compiledTypeMap.fallback[o])&&Ke.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[o]=a;return r}(this.schema,e.styles||null),this.sortKeys=e.sortKeys||!1,this.lineWidth=e.lineWidth||80,this.noRefs=e.noRefs||!1,this.noCompatMode=e.noCompatMode||!1,this.condenseFlow=e.condenseFlow||!1,this.quotingType='"'===e.quotingType?Pt:St,this.forceQuotes=e.forceQuotes||!1,this.replacer="function"==typeof e.replacer?e.replacer:null,this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function $t(e,t){for(var r,n=v.repeat(" ",t),s=0,i=-1,o="",a=e.length;s<a;)-1===(i=e.indexOf("\n",s))?(r=e.slice(s),s=a):(r=e.slice(s,i+1),s=i+1),r.length&&"\n"!==r&&(o+=n),o+=r;return o}function _t(e,t){return"\n"+v.repeat(" ",e.indent*t)}function kt(e){return e===et||e===Xe}function Tt(e){return 32<=e&&e<=126||161<=e&&e<=55295&&8232!==e&&8233!==e||57344<=e&&e<=65533&&e!==Ye||65536<=e&&e<=1114111}function It(e){return Tt(e)&&e!==Ye&&e!==Ze&&e!==Qe}function Ct(e,t,r){var n=It(e),s=n&&!kt(e);return(r?n:n&&e!==ct&&e!==dt&&e!==yt&&e!==vt&&e!==xt)&&e!==nt&&!(t===ut&&!s)||It(t)&&!kt(t)&&e===nt||t===ut&&s}function Mt(e,t){var r,n=e.charCodeAt(t);return n>=55296&&n<=56319&&t+1<e.length&&(r=e.charCodeAt(t+1))>=56320&&r<=57343?1024*(n-55296)+r-56320+65536:n}function Rt(e){return/^\n* /.test(e)}var Ft=1,Nt=2,Dt=3,qt=4,Lt=5;function Bt(e,t,r,n,s,i,o,a){var c,l,u=0,p=null,h=!1,f=!1,m=-1!==n,d=-1,y=Tt(l=Mt(e,0))&&l!==Ye&&!kt(l)&&l!==lt&&l!==ft&&l!==ut&&l!==ct&&l!==dt&&l!==yt&&l!==vt&&l!==xt&&l!==nt&&l!==it&&l!==at&&l!==tt&&l!==bt&&l!==pt&&l!==ht&&l!==ot&&l!==rt&&l!==st&&l!==mt&&l!==gt&&function(e){return!kt(e)&&e!==ut}(Mt(e,e.length-1));if(t||o)for(c=0;c<e.length;u>=65536?c+=2:c++){if(!Tt(u=Mt(e,c)))return Lt;y=y&&Ct(u,p,a),p=u}else{for(c=0;c<e.length;u>=65536?c+=2:c++){if((u=Mt(e,c))===Qe)h=!0,m&&(f=f||c-d-1>n&&" "!==e[d+1],d=c);else if(!Tt(u))return Lt;y=y&&Ct(u,p,a),p=u}f=f||m&&c-d-1>n&&" "!==e[d+1]}return h||f?r>9&&Rt(e)?Lt:o?i===Pt?Lt:Nt:f?qt:Dt:!y||o||s(e)?i===Pt?Lt:Nt:Ft}function Ut(e,t,r,n,s){e.dump=function(){if(0===t.length)return e.quotingType===Pt?'""':"''";if(!e.noCompatMode&&(-1!==wt.indexOf(t)||jt.test(t)))return e.quotingType===Pt?'"'+t+'"':"'"+t+"'";var i=e.indent*Math.max(1,r),o=-1===e.lineWidth?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-i),a=n||e.flowLevel>-1&&r>=e.flowLevel;switch(Bt(t,a,e.indent,o,(function(t){return function(e,t){var r,n;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(e.implicitTypes[r].resolve(t))return!0;return!1}(e,t)}),e.quotingType,e.forceQuotes&&!n,s)){case Ft:return t;case Nt:return"'"+t.replace(/'/g,"''")+"'";case Dt:return"|"+Vt(t,e.indent)+zt($t(t,i));case qt:return">"+Vt(t,e.indent)+zt($t(function(e,t){var r,n,s=/(\n+)([^\n]*)/g,i=(a=e.indexOf("\n"),a=-1!==a?a:e.length,s.lastIndex=a,Ht(e.slice(0,a),t)),o="\n"===e[0]||" "===e[0];var a;for(;n=s.exec(e);){var c=n[1],l=n[2];r=" "===l[0],i+=c+(o||r||""===l?"":"\n")+Ht(l,t),o=r}return i}(t,o),i));case Lt:return'"'+function(e){for(var t,r="",n=0,s=0;s<e.length;n>=65536?s+=2:s++)n=Mt(e,s),!(t=Et[n])&&Tt(n)?(r+=e[s],n>=65536&&(r+=e[s+1])):r+=t||Ot(n);return r}(t)+'"';default:throw new E("impossible error: invalid scalar style")}}()}function Vt(e,t){var r=Rt(e)?String(t):"",n="\n"===e[e.length-1];return r+(n&&("\n"===e[e.length-2]||"\n"===e)?"+":n?"":"-")+"\n"}function zt(e){return"\n"===e[e.length-1]?e.slice(0,-1):e}function Ht(e,t){if(""===e||" "===e[0])return e;for(var r,n,s=/ [^ ]/g,i=0,o=0,a=0,c="";r=s.exec(e);)(a=r.index)-i>t&&(n=o>i?o:a,c+="\n"+e.slice(i,n),i=n+1),o=a;return c+="\n",e.length-i>t&&o>i?c+=e.slice(i,o)+"\n"+e.slice(o+1):c+=e.slice(i),c.slice(1)}function Jt(e,t,r,n){var s,i,o,a="",c=e.tag;for(s=0,i=r.length;s<i;s+=1)o=r[s],e.replacer&&(o=e.replacer.call(r,String(s),o)),(Wt(e,t+1,o,!0,!0,!1,!0)||void 0===o&&Wt(e,t+1,null,!0,!0,!1,!0))&&(n&&""===a||(a+=_t(e,t)),e.dump&&Qe===e.dump.charCodeAt(0)?a+="-":a+="- ",a+=e.dump);e.tag=c,e.dump=a||"[]"}function Gt(e,t,r){var n,s,i,o,a,c;for(i=0,o=(s=r?e.explicitTypes:e.implicitTypes).length;i<o;i+=1)if(((a=s[i]).instanceOf||a.predicate)&&(!a.instanceOf||"object"==typeof t&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(r?a.multi&&a.representName?e.tag=a.representName(t):e.tag=a.tag:e.tag="?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,"[object Function]"===We.call(a.represent))n=a.represent(t,c);else{if(!Ke.call(a.represent,c))throw new E("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');n=a.represent[c](t,c)}e.dump=n}return!0}return!1}function Wt(e,t,r,n,s,i,o){e.tag=null,e.dump=r,Gt(e,r,!1)||Gt(e,r,!0);var a,c=We.call(e.dump),l=n;n&&(n=e.flowLevel<0||e.flowLevel>t);var u,p,h="[object Object]"===c||"[object Array]"===c;if(h&&(p=-1!==(u=e.duplicates.indexOf(r))),(null!==e.tag&&"?"!==e.tag||p||2!==e.indent&&t>0)&&(s=!1),p&&e.usedDuplicates[u])e.dump="*ref_"+u;else{if(h&&p&&!e.usedDuplicates[u]&&(e.usedDuplicates[u]=!0),"[object Object]"===c)n&&0!==Object.keys(e.dump).length?(!function(e,t,r,n){var s,i,o,a,c,l,u="",p=e.tag,h=Object.keys(r);if(!0===e.sortKeys)h.sort();else if("function"==typeof e.sortKeys)h.sort(e.sortKeys);else if(e.sortKeys)throw new E("sortKeys must be a boolean or a function");for(s=0,i=h.length;s<i;s+=1)l="",n&&""===u||(l+=_t(e,t)),a=r[o=h[s]],e.replacer&&(a=e.replacer.call(r,o,a)),Wt(e,t+1,o,!0,!0,!0)&&((c=null!==e.tag&&"?"!==e.tag||e.dump&&e.dump.length>1024)&&(e.dump&&Qe===e.dump.charCodeAt(0)?l+="?":l+="? "),l+=e.dump,c&&(l+=_t(e,t)),Wt(e,t+1,a,!0,c)&&(e.dump&&Qe===e.dump.charCodeAt(0)?l+=":":l+=": ",u+=l+=e.dump));e.tag=p,e.dump=u||"{}"}(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o,a,c="",l=e.tag,u=Object.keys(r);for(n=0,s=u.length;n<s;n+=1)a="",""!==c&&(a+=", "),e.condenseFlow&&(a+='"'),o=r[i=u[n]],e.replacer&&(o=e.replacer.call(r,i,o)),Wt(e,t,i,!1,!1)&&(e.dump.length>1024&&(a+="? "),a+=e.dump+(e.condenseFlow?'"':"")+":"+(e.condenseFlow?"":" "),Wt(e,t,o,!1,!1)&&(c+=a+=e.dump));e.tag=l,e.dump="{"+c+"}"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else if("[object Array]"===c)n&&0!==e.dump.length?(e.noArrayIndent&&!o&&t>0?Jt(e,t-1,e.dump,s):Jt(e,t,e.dump,s),p&&(e.dump="&ref_"+u+e.dump)):(!function(e,t,r){var n,s,i,o="",a=e.tag;for(n=0,s=r.length;n<s;n+=1)i=r[n],e.replacer&&(i=e.replacer.call(r,String(n),i)),(Wt(e,t,i,!1,!1)||void 0===i&&Wt(e,t,null,!1,!1))&&(""!==o&&(o+=","+(e.condenseFlow?"":" ")),o+=e.dump);e.tag=a,e.dump="["+o+"]"}(e,t,e.dump),p&&(e.dump="&ref_"+u+" "+e.dump));else{if("[object String]"!==c){if("[object Undefined]"===c)return!1;if(e.skipInvalid)return!1;throw new E("unacceptable kind of an object to dump "+c)}"?"!==e.tag&&Ut(e,e.dump,t,i,l)}null!==e.tag&&"?"!==e.tag&&(a=encodeURI("!"===e.tag[0]?e.tag.slice(1):e.tag).replace(/!/g,"%21"),a="!"===e.tag[0]?"!"+a:"tag:yaml.org,2002:"===a.slice(0,18)?"!!"+a.slice(18):"!<"+a+">",e.dump=a+" "+e.dump)}return!0}function Kt(e,t){var r,n,s=[],i=[];for(Yt(e,s,i),r=0,n=i.length;r<n;r+=1)t.duplicates.push(s[i[r]]);t.usedDuplicates=new Array(n)}function Yt(e,t,r){var n,s,i;if(null!==e&&"object"==typeof e)if(-1!==(s=t.indexOf(e)))-1===r.indexOf(s)&&r.push(s);else if(t.push(e),Array.isArray(e))for(s=0,i=e.length;s<i;s+=1)Yt(e[s],t,r);else for(s=0,i=(n=Object.keys(e)).length;s<i;s+=1)Yt(e[n[s]],t,r)}function Xt(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 Qt=A,Zt=k,er=M,tr=V,rr=z,nr=se,sr=Ge.load,ir=Ge.loadAll,or={dump:function(e,t){var r=new At(t=t||{});r.noRefs||Kt(e,r);var n=e;return r.replacer&&(n=r.replacer.call({"":n},"",n)),Wt(r,0,n,!0,!0)?r.dump+"\n":""}}.dump,ar=E,cr={binary:Y,float:U,map:C,null:R,pairs:te,set:ne,timestamp:G,bool:F,int:q,merge:W,omap:Z,seq:I,str:T},lr=Xt("safeLoad","load"),ur=Xt("safeLoadAll","loadAll"),pr=Xt("safeDump","dump");const hr={Type:Qt,Schema:Zt,FAILSAFE_SCHEMA:er,JSON_SCHEMA:tr,CORE_SCHEMA:rr,DEFAULT_SCHEMA:nr,load:sr,loadAll:ir,dump:or,YAMLException:ar,types:cr,safeLoad:lr,safeLoadAll:ur,safeDump:pr},{fetch:fr,Response:mr,Headers:dr,Request:yr,FormData:gr,File:vr,Blob:br}=globalThis;void 0===globalThis.fetch&&(globalThis.fetch=fr),void 0===globalThis.Headers&&(globalThis.Headers=dr),void 0===globalThis.Request&&(globalThis.Request=yr),void 0===globalThis.Response&&(globalThis.Response=mr),void 0===globalThis.FormData&&(globalThis.FormData=gr),void 0===globalThis.File&&(globalThis.File=vr),void 0===globalThis.Blob&&(globalThis.Blob=br);const xr=e=>":/?#[]@!$&'()*+,;=".indexOf(e)>-1,Er=e=>/^[a-z0-9\-._~]+$/i.test(e);function wr(e){let{escape:t}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2?arguments[2]:void 0;return"number"==typeof e&&(e=e.toString()),"string"==typeof e&&e.length&&t?r?JSON.parse(e):[...e].map((e=>{if(Er(e))return e;if(xr(e)&&"unsafe"===t)return e;const r=new TextEncoder;return Array.from(r.encode(e)).map((e=>`0${e.toString(16).toUpperCase()}`.slice(-2))).map((e=>`%${e}`)).join("")})).join(""):e}function jr(e){const{value:t}=e;return Array.isArray(t)?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>wr(e,{escape:i});if("simple"===n)return r.map((e=>o(e))).join(",");if("label"===n)return`.${r.map((e=>o(e))).join(".")}`;if("matrix"===n)return r.map((e=>o(e))).reduce(((e,r)=>!e||s?`${e||""};${t}=${r}`:`${e},${r}`),"");if("form"===n){const e=s?`&${t}=`:",";return r.map((e=>o(e))).join(e)}if("spaceDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(` ${e}`)}if("pipeDelimited"===n){const e=s?`${t}=`:"";return r.map((e=>o(e))).join(`|${e}`)}return}(e):"object"==typeof t?function(e){let{key:t,value:r,style:n,explode:s,escape:i}=e;const o=e=>wr(e,{escape:i}),a=Object.keys(r);if("simple"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e},`:""}${t}${s?"=":","}${n}`}),"");if("label"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}.`:"."}${t}${s?"=":"."}${n}`}),"");if("matrix"===n&&s)return a.reduce(((e,t)=>`${e?`${e};`:";"}${t}=${o(r[t])}`),"");if("matrix"===n)return a.reduce(((e,n)=>{const s=o(r[n]);return`${e?`${e},`:`;${t}=`}${n},${s}`}),"");if("form"===n)return a.reduce(((e,t)=>{const n=o(r[t]);return`${e?`${e}${s?"&":","}`:""}${t}${s?"=":","}${n}`}),"");return}(e):function(e){let{key:t,value:r,style:n,escape:s}=e;const i=e=>wr(e,{escape:s});if("simple"===n)return i(r);if("label"===n)return`.${i(r)}`;if("matrix"===n)return`;${t}=${i(r)}`;if("form"===n)return i(r);if("deepObject"===n)return i(r,{},!0);return}(e)}const Or={serializeRes:Ar,mergeInQueryOrForm:Nr};async function Sr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};"object"==typeof e&&(t=e,e=t.url),t.headers=t.headers||{},Or.mergeInQueryOrForm(t),t.headers&&Object.keys(t.headers).forEach((e=>{const r=t.headers[e];"string"==typeof r&&(t.headers[e]=r.replace(/\n+/g," "))})),t.requestInterceptor&&(t=await t.requestInterceptor(t)||t);const r=t.headers["content-type"]||t.headers["Content-Type"];let n;/multipart\/form-data/i.test(r)&&(delete t.headers["content-type"],delete t.headers["Content-Type"]);try{n=await(t.userFetch||fetch)(t.url,t),n=await Or.serializeRes(n,e,t),t.responseInterceptor&&(n=await t.responseInterceptor(n)||n)}catch(e){if(!n)throw e;const t=new Error(n.statusText||`response status is ${n.status}`);throw t.status=n.status,t.statusCode=n.status,t.responseError=e,t}if(!n.ok){const e=new Error(n.statusText||`response status is ${n.status}`);throw e.status=n.status,e.statusCode=n.status,e.response=n,e}return n}const Pr=function(){return/(json|xml|yaml|text)\b/.test(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"")};function Ar(e,t){let{loadSpec:r=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const n={ok:e.ok,url:e.url||t,status:e.status,statusText:e.statusText,headers:$r(e.headers)},s=n.headers["content-type"],i=r||Pr(s);return(i?e.text:e.blob||e.buffer).call(e).then((e=>{if(n.text=e,n.data=e,i)try{const t=function(e,t){return t&&(0===t.indexOf("application/json")||t.indexOf("+json")>0)?JSON.parse(e):hr.load(e)}(e,s);n.body=t,n.obj=t}catch(e){n.parseError=e}return n}))}function $r(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return"function"!=typeof e.entries?{}:Array.from(e.entries()).reduce(((e,t)=>{let[r,n]=t;return e[r]=function(e){return e.includes(", ")?e.split(", "):e}(n),e}),{})}function _r(e,t){return t||"undefined"==typeof navigator||(t=navigator),t&&"ReactNative"===t.product?!(!e||"object"!=typeof e||"string"!=typeof e.uri):"undefined"!=typeof File&&e instanceof File||("undefined"!=typeof Blob&&e instanceof Blob||(!!ArrayBuffer.isView(e)||null!==e&&"object"==typeof e&&"function"==typeof e.pipe))}function kr(e,t){return Array.isArray(e)&&e.some((e=>_r(e,t)))}const Tr={form:",",spaceDelimited:"%20",pipeDelimited:"|"},Ir={csv:",",ssv:"%20",tsv:"%09",pipes:"|"};class Cr extends File{constructor(e){super([e],arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}),this.data=e}valueOf(){return this.data}toString(){return this.valueOf()}}function Mr(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const{collectionFormat:n,allowEmptyValue:s,serializationOption:i,encoding:o}=t,a="object"!=typeof t||Array.isArray(t)?t:t.value,c=r?e=>e.toString():e=>encodeURIComponent(e),l=c(e);if(void 0===a&&s)return[[l,""]];if(_r(a)||kr(a))return[[l,a]];if(i)return Rr(e,a,r,i);if(o){if([typeof o.style,typeof o.explode,typeof o.allowReserved].some((e=>"undefined"!==e))){const{style:t,explode:n,allowReserved:s}=o;return Rr(e,a,r,{style:t,explode:n,allowReserved:s})}if("string"==typeof o.contentType){if(o.contentType.startsWith("application/json")){const e=c("string"==typeof a?a:JSON.stringify(a));return[[l,new Cr(e,"blob",{type:o.contentType})]]}const e=c(String(a));return[[l,new Cr(e,"blob",{type:o.contentType})]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)&&a.every((e=>"object"!=typeof e))?[[l,a.map(c).join(",")]]:[[l,c(JSON.stringify(a))]]}return"object"!=typeof a?[[l,c(a)]]:Array.isArray(a)?"multi"===n?[[l,a.map(c)]]:[[l,a.map(c).join(Ir[n||"csv"])]]:[[l,""]]}function Rr(e,t,r,n){const s=n.style||"form",i=void 0===n.explode?"form"===s:n.explode,o=!r&&(n&&n.allowReserved?"unsafe":"reserved"),a=e=>wr(e,{escape:o}),c=r?e=>e:e=>wr(e,{escape:o});return"object"!=typeof t?[[c(e),a(t)]]:Array.isArray(t)?i?[[c(e),t.map(a)]]:[[c(e),t.map(a).join(Tr[s])]]:"deepObject"===s?Object.keys(t).map((r=>[c(`${e}[${r}]`),a(t[r])])):i?Object.keys(t).map((e=>[c(e),a(t[e])])):[[c(e),Object.keys(t).map((e=>[`${c(e)},${a(t[e])}`])).join(",")]]}function Fr(e){const t=Object.keys(e).reduce(((t,r)=>{for(const[n,s]of Mr(r,e[r]))t[n]=s instanceof Cr?s.valueOf():s;return t}),{});return d().stringify(t,{encode:!1,indices:!1})||""}function Nr(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{url:t="",query:r,form:n}=e;if(n){const t=Object.keys(n).some((e=>{const{value:t}=n[e];return _r(t)||kr(t)})),r=e.headers["content-type"]||e.headers["Content-Type"];if(t||/multipart\/form-data/i.test(r)){const t=(s=e.form,Object.entries(s).reduce(((e,t)=>{let[r,n]=t;for(const[t,s]of Mr(r,n,!0))if(Array.isArray(s))for(const r of s)if(ArrayBuffer.isView(r)){const n=new Blob([r]);e.append(t,n)}else e.append(t,r);else if(ArrayBuffer.isView(s)){const r=new Blob([s]);e.append(t,r)}else e.append(t,s);return e}),new FormData));e.formdata=t,e.body=t}else e.body=Fr(n);delete e.form}var s;if(r){const[n,s]=t.split("?");let i="";if(s){const e=d().parse(s);Object.keys(r).forEach((t=>delete e[t])),i=d().stringify(e,{encode:!0})}const o=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.filter((e=>e)).join("&");return n?`?${n}`:""}(i,Fr(r));e.url=n+o,delete e.query}return e}function Dr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:r,responseInterceptor:n}=t,s=e.withCredentials?"include":"same-origin";return t=>e({url:t,loadSpec:!0,requestInterceptor:r,responseInterceptor:n,headers:{Accept:p},credentials:s}).then((e=>e.body))}const qr=e=>{const{baseDoc:t,url:r}=e,n=t??r??"";return"string"==typeof globalThis.document?.baseURI?String(new URL(n,globalThis.document.baseURI)):n},Lr=e=>{const{fetch:t,http:r}=e;return t||r||Sr};var Br,Ur=(Br=function(e,t){return Br=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},Br(e,t)},function(e,t){function r(){this.constructor=e}Br(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),Vr=Object.prototype.hasOwnProperty;function zr(e,t){return Vr.call(e,t)}function Hr(e){if(Array.isArray(e)){for(var t=new Array(e.length),r=0;r<t.length;r++)t[r]=""+r;return t}if(Object.keys)return Object.keys(e);var n=[];for(var s in e)zr(e,s)&&n.push(s);return n}function Jr(e){switch(typeof e){case"object":return JSON.parse(JSON.stringify(e));case"undefined":return null;default:return e}}function Gr(e){for(var t,r=0,n=e.length;r<n;){if(!((t=e.charCodeAt(r))>=48&&t<=57))return!1;r++}return!0}function Wr(e){return-1===e.indexOf("/")&&-1===e.indexOf("~")?e:e.replace(/~/g,"~0").replace(/\//g,"~1")}function Kr(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}function Yr(e){if(void 0===e)return!0;if(e)if(Array.isArray(e)){for(var t=0,r=e.length;t<r;t++)if(Yr(e[t]))return!0}else if("object"==typeof e)for(var n=Hr(e),s=n.length,i=0;i<s;i++)if(Yr(e[n[i]]))return!0;return!1}function Xr(e,t){var r=[e];for(var n in t){var s="object"==typeof t[n]?JSON.stringify(t[n],null,2):t[n];void 0!==s&&r.push(n+": "+s)}return r.join("\n")}var Qr=function(e){function t(t,r,n,s,i){var o=this.constructor,a=e.call(this,Xr(t,{name:r,index:n,operation:s,tree:i}))||this;return a.name=r,a.index=n,a.operation=s,a.tree=i,Object.setPrototypeOf(a,o.prototype),a.message=Xr(t,{name:r,index:n,operation:s,tree:i}),a}return Ur(t,e),t}(Error),Zr=Qr,en=Jr,tn={add:function(e,t,r){return e[t]=this.value,{newDocument:r}},remove:function(e,t,r){var n=e[t];return delete e[t],{newDocument:r,removed:n}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:function(e,t,r){var n=nn(r,this.path);n&&(n=Jr(n));var s=sn(r,{op:"remove",path:this.from}).removed;return sn(r,{op:"add",path:this.path,value:s}),{newDocument:r,removed:n}},copy:function(e,t,r){var n=nn(r,this.from);return sn(r,{op:"add",path:this.path,value:Jr(n)}),{newDocument:r}},test:function(e,t,r){return{newDocument:r,test:un(e[t],this.value)}},_get:function(e,t,r){return this.value=e[t],{newDocument:r}}},rn={add:function(e,t,r){return Gr(t)?e.splice(t,0,this.value):e[t]=this.value,{newDocument:r,index:t}},remove:function(e,t,r){return{newDocument:r,removed:e.splice(t,1)[0]}},replace:function(e,t,r){var n=e[t];return e[t]=this.value,{newDocument:r,removed:n}},move:tn.move,copy:tn.copy,test:tn.test,_get:tn._get};function nn(e,t){if(""==t)return e;var r={op:"_get",path:t};return sn(e,r),r.value}function sn(e,t,r,n,s,i){if(void 0===r&&(r=!1),void 0===n&&(n=!0),void 0===s&&(s=!0),void 0===i&&(i=0),r&&("function"==typeof r?r(t,0,e,t.path):cn(t,0)),""===t.path){var o={newDocument:e};if("add"===t.op)return o.newDocument=t.value,o;if("replace"===t.op)return o.newDocument=t.value,o.removed=e,o;if("move"===t.op||"copy"===t.op)return o.newDocument=nn(e,t.from),"move"===t.op&&(o.removed=e),o;if("test"===t.op){if(o.test=un(e,t.value),!1===o.test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o.newDocument=e,o}if("remove"===t.op)return o.removed=e,o.newDocument=null,o;if("_get"===t.op)return t.value=e,o;if(r)throw new Zr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",i,t,e);return o}n||(e=Jr(e));var a=(t.path||"").split("/"),c=e,l=1,u=a.length,p=void 0,h=void 0,f=void 0;for(f="function"==typeof r?r:cn;;){if((h=a[l])&&-1!=h.indexOf("~")&&(h=Kr(h)),s&&("__proto__"==h||"prototype"==h&&l>0&&"constructor"==a[l-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===c[h]?p=a.slice(0,l).join("/"):l==u-1&&(p=t.path),void 0!==p&&f(t,0,e,p)),l++,Array.isArray(c)){if("-"===h)h=c.length;else{if(r&&!Gr(h))throw new Zr("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",i,t,e);Gr(h)&&(h=~~h)}if(l>=u){if(r&&"add"===t.op&&h>c.length)throw new Zr("The specified index MUST NOT be greater than the number of elements in the array","OPERATION_VALUE_OUT_OF_BOUNDS",i,t,e);if(!1===(o=rn[t.op].call(t,c,h,e)).test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}}else if(l>=u){if(!1===(o=tn[t.op].call(t,c,h,e)).test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",i,t,e);return o}if(c=c[h],r&&l<u&&(!c||"object"!=typeof c))throw new Zr("Cannot perform operation at the desired path","OPERATION_PATH_UNRESOLVABLE",i,t,e)}}function on(e,t,r,n,s){if(void 0===n&&(n=!0),void 0===s&&(s=!0),r&&!Array.isArray(t))throw new Zr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");n||(e=Jr(e));for(var i=new Array(t.length),o=0,a=t.length;o<a;o++)i[o]=sn(e,t[o],r,!0,s,o),e=i[o].newDocument;return i.newDocument=e,i}function an(e,t,r){var n=sn(e,t);if(!1===n.test)throw new Zr("Test operation failed","TEST_OPERATION_FAILED",r,t,e);return n.newDocument}function cn(e,t,r,n){if("object"!=typeof e||null===e||Array.isArray(e))throw new Zr("Operation is not an object","OPERATION_NOT_AN_OBJECT",t,e,r);if(!tn[e.op])throw new Zr("Operation `op` property is not one of operations defined in RFC-6902","OPERATION_OP_INVALID",t,e,r);if("string"!=typeof e.path)throw new Zr("Operation `path` property is not a string","OPERATION_PATH_INVALID",t,e,r);if(0!==e.path.indexOf("/")&&e.path.length>0)throw new Zr('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 Zr("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 Zr("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)&&Yr(e.value))throw new Zr("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 s=e.path.split("/").length,i=n.split("/").length;if(s!==i+1&&s!==i)throw new Zr("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!==n)throw new Zr("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 o=ln([{op:"_get",path:e.from,value:void 0}],r);if(o&&"OPERATION_PATH_UNRESOLVABLE"===o.name)throw new Zr("Cannot perform the operation from a path that does not exist","OPERATION_FROM_UNRESOLVABLE",t,e,r)}}function ln(e,t,r){try{if(!Array.isArray(e))throw new Zr("Patch sequence must be an array","SEQUENCE_NOT_AN_ARRAY");if(t)on(Jr(t),Jr(e),r||!0);else{r=r||cn;for(var n=0;n<e.length;n++)r(e[n],n,t,void 0)}}catch(e){if(e instanceof Zr)return e;throw e}}function un(e,t){if(e===t)return!0;if(e&&t&&"object"==typeof e&&"object"==typeof t){var r,n,s,i=Array.isArray(e),o=Array.isArray(t);if(i&&o){if((n=e.length)!=t.length)return!1;for(r=n;0!=r--;)if(!un(e[r],t[r]))return!1;return!0}if(i!=o)return!1;var a=Object.keys(e);if((n=a.length)!==Object.keys(t).length)return!1;for(r=n;0!=r--;)if(!t.hasOwnProperty(a[r]))return!1;for(r=n;0!=r--;)if(!un(e[s=a[r]],t[s]))return!1;return!0}return e!=e&&t!=t}var pn=new WeakMap,hn=function(e){this.observers=new Map,this.obj=e},fn=function(e,t){this.callback=e,this.observer=t};function mn(e,t){t.unobserve()}function dn(e,t){var r,n=function(e){return pn.get(e)}(e);if(n){var s=function(e,t){return e.observers.get(t)}(n,t);r=s&&s.observer}else n=new hn(e),pn.set(e,n);if(r)return r;if(r={},n.value=Jr(e),t){r.callback=t,r.next=null;var i=function(){yn(r)},o=function(){clearTimeout(r.next),r.next=setTimeout(i)};"undefined"!=typeof window&&(window.addEventListener("mouseup",o),window.addEventListener("keyup",o),window.addEventListener("mousedown",o),window.addEventListener("keydown",o),window.addEventListener("change",o))}return r.patches=[],r.object=e,r.unobserve=function(){yn(r),clearTimeout(r.next),function(e,t){e.observers.delete(t.callback)}(n,r),"undefined"!=typeof window&&(window.removeEventListener("mouseup",o),window.removeEventListener("keyup",o),window.removeEventListener("mousedown",o),window.removeEventListener("keydown",o),window.removeEventListener("change",o))},n.observers.set(t,new fn(t,r)),r}function yn(e,t){void 0===t&&(t=!1);var r=pn.get(e.object);gn(r.value,e.object,e.patches,"",t),e.patches.length&&on(r.value,e.patches);var n=e.patches;return n.length>0&&(e.patches=[],e.callback&&e.callback(n)),n}function gn(e,t,r,n,s){if(t!==e){"function"==typeof t.toJSON&&(t=t.toJSON());for(var i=Hr(t),o=Hr(e),a=!1,c=o.length-1;c>=0;c--){var l=e[p=o[c]];if(!zr(t,p)||void 0===t[p]&&void 0!==l&&!1===Array.isArray(t))Array.isArray(e)===Array.isArray(t)?(s&&r.push({op:"test",path:n+"/"+Wr(p),value:Jr(l)}),r.push({op:"remove",path:n+"/"+Wr(p)}),a=!0):(s&&r.push({op:"test",path:n,value:e}),r.push({op:"replace",path:n,value:t}),!0);else{var u=t[p];"object"==typeof l&&null!=l&&"object"==typeof u&&null!=u&&Array.isArray(l)===Array.isArray(u)?gn(l,u,r,n+"/"+Wr(p),s):l!==u&&(!0,s&&r.push({op:"test",path:n+"/"+Wr(p),value:Jr(l)}),r.push({op:"replace",path:n+"/"+Wr(p),value:Jr(u)}))}}if(a||i.length!=o.length)for(c=0;c<i.length;c++){var p;zr(e,p=i[c])||void 0===t[p]||r.push({op:"add",path:n+"/"+Wr(p),value:Jr(t[p])})}}}function vn(e,t,r){void 0===r&&(r=!1);var n=[];return gn(e,t,n,"",r),n}Object.assign({},e,t,{JsonPatchError:Qr,deepClone:Jr,escapePathComponent:Wr,unescapePathComponent:Kr});var bn=r(9996),xn=r.n(bn);const En={add:function(e,t){return{op:"add",path:e,value:t}},replace:jn,remove:function(e){return{op:"remove",path:e}},merge:function(e,t){return{type:"mutation",op:"merge",path:e,value:t}},mergeDeep:function(e,t){return{type:"mutation",op:"mergeDeep",path:e,value:t}},context:function(e,t){return{type:"context",path:e,value:t}},getIn:function(e,t){return t.reduce(((e,t)=>void 0!==t&&e?e[t]:e),e)},applyPatch:function(e,t,r){if(r=r||{},"merge"===(t={...t,path:t.path&&wn(t.path)}).op){const r=Fn(e,t.path);Object.assign(r,t.value),on(e,[jn(t.path,r)])}else if("mergeDeep"===t.op){const r=Fn(e,t.path),n=xn()(r,t.value);e=on(e,[jn(t.path,n)]).newDocument}else if("add"===t.op&&""===t.path&&kn(t.value)){on(e,Object.keys(t.value).reduce(((e,r)=>(e.push({op:"add",path:`/${wn(r)}`,value:t.value[r]}),e)),[]))}else if("replace"===t.op&&""===t.path){let{value:n}=t;r.allowMetaPatches&&t.meta&&Mn(t)&&(Array.isArray(t.value)||kn(t.value))&&(n={...n,...t.meta}),e=n}else if(on(e,[t]),r.allowMetaPatches&&t.meta&&Mn(t)&&(Array.isArray(t.value)||kn(t.value))){const r={...Fn(e,t.path),...t.meta};on(e,[jn(t.path,r)])}return e},parentPathMatch:function(e,t){if(!Array.isArray(t))return!1;for(let r=0,n=t.length;r<n;r+=1)if(t[r]!==e[r])return!1;return!0},flatten:$n,fullyNormalizeArray:function(e){return _n($n(An(e)))},normalizeArray:An,isPromise:function(e){return kn(e)&&Tn(e.then)},forEachNew:function(e,t){try{return On(e,Pn,t)}catch(e){return e}},forEachNewPrimitive:function(e,t){try{return On(e,Sn,t)}catch(e){return e}},isJsonPatch:In,isContextPatch:function(e){return Rn(e)&&"context"===e.type},isPatch:Rn,isMutation:Cn,isAdditiveMutation:Mn,isGenerator:function(e){return"[object GeneratorFunction]"===Object.prototype.toString.call(e)},isFunction:Tn,isObject:kn,isError:function(e){return e instanceof Error}};function wn(e){return Array.isArray(e)?e.length<1?"":`/${e.map((e=>(e+"").replace(/~/g,"~0").replace(/\//g,"~1"))).join("/")}`:e}function jn(e,t,r){return{op:"replace",path:e,value:t,meta:r}}function On(e,t,r){return _n($n(e.filter(Mn).map((e=>t(e.value,r,e.path)))||[]))}function Sn(e,t,r){return r=r||[],Array.isArray(e)?e.map(((e,n)=>Sn(e,t,r.concat(n)))):kn(e)?Object.keys(e).map((n=>Sn(e[n],t,r.concat(n)))):t(e,r[r.length-1],r)}function Pn(e,t,r){let n=[];if((r=r||[]).length>0){const s=t(e,r[r.length-1],r);s&&(n=n.concat(s))}if(Array.isArray(e)){const s=e.map(((e,n)=>Pn(e,t,r.concat(n))));s&&(n=n.concat(s))}else if(kn(e)){const s=Object.keys(e).map((n=>Pn(e[n],t,r.concat(n))));s&&(n=n.concat(s))}return n=$n(n),n}function An(e){return Array.isArray(e)?e:[e]}function $n(e){return[].concat(...e.map((e=>Array.isArray(e)?$n(e):e)))}function _n(e){return e.filter((e=>void 0!==e))}function kn(e){return e&&"object"==typeof e}function Tn(e){return e&&"function"==typeof e}function In(e){if(Rn(e)){const{op:t}=e;return"add"===t||"remove"===t||"replace"===t}return!1}function Cn(e){return In(e)||Rn(e)&&"mutation"===e.type}function Mn(e){return Cn(e)&&("add"===e.op||"replace"===e.op||"merge"===e.op||"mergeDeep"===e.op)}function Rn(e){return e&&"object"==typeof e}function Fn(e,t){try{return nn(e,t)}catch(e){return console.error(e),{}}}var Nn=r(4155);const Dn=function(){return!1};const qn=function(){return!0};function Ln(e){return null!=e&&"object"==typeof e&&!0===e["@@functional/placeholder"]}function Bn(e){return function t(r){return 0===arguments.length||Ln(r)?t:e.apply(this,arguments)}}function Un(e){return function t(r,n){switch(arguments.length){case 0:return t;case 1:return Ln(r)?t:Bn((function(t){return e(r,t)}));default:return Ln(r)&&Ln(n)?t:Ln(r)?Bn((function(t){return e(t,n)})):Ln(n)?Bn((function(t){return e(r,t)})):e(r,n)}}}const Vn=Array.isArray||function(e){return null!=e&&e.length>=0&&"[object Array]"===Object.prototype.toString.call(e)};function zn(e,t,r){return function(){if(0===arguments.length)return r();var n=arguments[arguments.length-1];if(!Vn(n)){for(var s=0;s<e.length;){if("function"==typeof n[e[s]])return n[e[s]].apply(n,Array.prototype.slice.call(arguments,0,-1));s+=1}if(function(e){return null!=e&&"function"==typeof e["@@transducer/step"]}(n))return t.apply(null,Array.prototype.slice.call(arguments,0,-1))(n)}return r.apply(this,arguments)}}function Hn(e){return e&&e["@@transducer/reduced"]?e:{"@@transducer/value":e,"@@transducer/reduced":!0}}const Jn=function(){return this.xf["@@transducer/init"]()},Gn=function(e){return this.xf["@@transducer/result"](e)};var Wn=function(){function e(e,t){this.xf=t,this.f=e,this.all=!0}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=function(e){return this.all&&(e=this.xf["@@transducer/step"](e,!0)),this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)||(this.all=!1,e=Hn(this.xf["@@transducer/step"](e,!1))),e},e}();function Kn(e){return function(t){return new Wn(e,t)}}const Yn=Un(zn(["all"],Kn,(function(e,t){for(var r=0;r<t.length;){if(!e(t[r]))return!1;r+=1}return!0})));function Xn(e,t){switch(e){case 0:return function(){return t.apply(this,arguments)};case 1:return function(e){return t.apply(this,arguments)};case 2:return function(e,r){return t.apply(this,arguments)};case 3:return function(e,r,n){return t.apply(this,arguments)};case 4:return function(e,r,n,s){return t.apply(this,arguments)};case 5:return function(e,r,n,s,i){return t.apply(this,arguments)};case 6:return function(e,r,n,s,i,o){return t.apply(this,arguments)};case 7:return function(e,r,n,s,i,o,a){return t.apply(this,arguments)};case 8:return function(e,r,n,s,i,o,a,c){return t.apply(this,arguments)};case 9:return function(e,r,n,s,i,o,a,c,l){return t.apply(this,arguments)};case 10:return function(e,r,n,s,i,o,a,c,l,u){return t.apply(this,arguments)};default:throw new Error("First argument to _arity must be a non-negative integer no greater than ten")}}function Qn(e,t,r){return function(){for(var n=[],s=0,i=e,o=0;o<t.length||s<arguments.length;){var a;o<t.length&&(!Ln(t[o])||s>=arguments.length)?a=t[o]:(a=arguments[s],s+=1),n[o]=a,Ln(a)||(i-=1),o+=1}return i<=0?r.apply(this,n):Xn(i,Qn(e,n,r))}}const Zn=Un((function(e,t){return 1===e?Bn(t):Xn(e,Qn(e,[],t))}));function es(e){for(var t,r=[];!(t=e.next()).done;)r.push(t.value);return r}function ts(e,t,r){for(var n=0,s=r.length;n<s;){if(e(t,r[n]))return!0;n+=1}return!1}function rs(e,t){return Object.prototype.hasOwnProperty.call(t,e)}const ns="function"==typeof Object.is?Object.is:function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t};var ss=Object.prototype.toString;const is=function(){return"[object Arguments]"===ss.call(arguments)?function(e){return"[object Arguments]"===ss.call(e)}:function(e){return rs("callee",e)}}();var os=!{toString:null}.propertyIsEnumerable("toString"),as=["constructor","valueOf","isPrototypeOf","toString","propertyIsEnumerable","hasOwnProperty","toLocaleString"],cs=function(){return arguments.propertyIsEnumerable("length")}(),ls=function(e,t){for(var r=0;r<e.length;){if(e[r]===t)return!0;r+=1}return!1};const us="function"!=typeof Object.keys||cs?Bn((function(e){if(Object(e)!==e)return[];var t,r,n=[],s=cs&&is(e);for(t in e)!rs(t,e)||s&&"length"===t||(n[n.length]=t);if(os)for(r=as.length-1;r>=0;)rs(t=as[r],e)&&!ls(n,t)&&(n[n.length]=t),r-=1;return n})):Bn((function(e){return Object(e)!==e?[]:Object.keys(e)}));const ps=Bn((function(e){return null===e?"Null":void 0===e?"Undefined":Object.prototype.toString.call(e).slice(8,-1)}));function hs(e,t,r,n){var s=es(e);function i(e,t){return fs(e,t,r.slice(),n.slice())}return!ts((function(e,t){return!ts(i,t,e)}),es(t),s)}function fs(e,t,r,n){if(ns(e,t))return!0;var s,i,o=ps(e);if(o!==ps(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(o){case"Arguments":case"Array":case"Object":if("function"==typeof e.constructor&&"Promise"===(s=e.constructor,null==(i=String(s).match(/^function (\w*)/))?"":i[1]))return e===t;break;case"Boolean":case"Number":case"String":if(typeof e!=typeof t||!ns(e.valueOf(),t.valueOf()))return!1;break;case"Date":if(!ns(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 a=r.length-1;a>=0;){if(r[a]===e)return n[a]===t;a-=1}switch(o){case"Map":return e.size===t.size&&hs(e.entries(),t.entries(),r.concat([e]),n.concat([t]));case"Set":return e.size===t.size&&hs(e.values(),t.values(),r.concat([e]),n.concat([t]));case"Arguments":case"Array":case"Object":case"Boolean":case"Number":case"String":case"Date":case"Error":case"RegExp":case"Int8Array":case"Uint8Array":case"Uint8ClampedArray":case"Int16Array":case"Uint16Array":case"Int32Array":case"Uint32Array":case"Float32Array":case"Float64Array":case"ArrayBuffer":break;default:return!1}var c=us(e);if(c.length!==us(t).length)return!1;var l=r.concat([e]),u=n.concat([t]);for(a=c.length-1;a>=0;){var p=c[a];if(!rs(p,t)||!fs(t[p],e[p],l,u))return!1;a-=1}return!0}const ms=Un((function(e,t){return fs(e,t,[],[])}));function ds(e,t){return function(e,t,r){var n,s;if("function"==typeof e.indexOf)switch(typeof t){case"number":if(0===t){for(n=1/t;r<e.length;){if(0===(s=e[r])&&1/s===n)return r;r+=1}return-1}if(t!=t){for(;r<e.length;){if("number"==typeof(s=e[r])&&s!=s)return r;r+=1}return-1}return e.indexOf(t,r);case"string":case"boolean":case"function":case"undefined":return e.indexOf(t,r);case"object":if(null===t)return e.indexOf(t,r)}for(;r<e.length;){if(ms(e[r],t))return r;r+=1}return-1}(t,e,0)>=0}function ys(e,t){for(var r=0,n=t.length,s=Array(n);r<n;)s[r]=e(t[r]),r+=1;return s}function gs(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 vs=function(e){return(e<10?"0":"")+e};const bs="function"==typeof Date.prototype.toISOString?function(e){return e.toISOString()}:function(e){return e.getUTCFullYear()+"-"+vs(e.getUTCMonth()+1)+"-"+vs(e.getUTCDate())+"T"+vs(e.getUTCHours())+":"+vs(e.getUTCMinutes())+":"+vs(e.getUTCSeconds())+"."+(e.getUTCMilliseconds()/1e3).toFixed(3).slice(2,5)+"Z"};function xs(e){return function(){return!e.apply(this,arguments)}}function Es(e,t,r){for(var n=0,s=r.length;n<s;)t=e(t,r[n]),n+=1;return t}function ws(e){return"[object Object]"===Object.prototype.toString.call(e)}var js=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.xf["@@transducer/step"](e,t):e},e}();function Os(e){return function(t){return new js(e,t)}}const Ss=Un(zn(["fantasy-land/filter","filter"],Os,(function(e,t){return ws(t)?Es((function(r,n){return e(t[n])&&(r[n]=t[n]),r}),{},us(t)):function(e,t){for(var r=0,n=t.length,s=[];r<n;)e(t[r])&&(s[s.length]=t[r]),r+=1;return s}(e,t)})));const Ps=Un((function(e,t){return Ss(xs(e),t)}));function As(e,t){var r=function(r){var n=t.concat([e]);return ds(r,n)?"<Circular>":As(r,n)},n=function(e,t){return ys((function(t){return gs(t)+": "+r(e[t])}),t.slice().sort())};switch(Object.prototype.toString.call(e)){case"[object Arguments]":return"(function() { return arguments; }("+ys(r,e).join(", ")+"))";case"[object Array]":return"["+ys(r,e).concat(n(e,Ps((function(e){return/^\d+$/.test(e)}),us(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):gs(bs(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())+")":gs(e);case"[object Undefined]":return"undefined";default:if("function"==typeof e.toString){var s=e.toString();if("[object Object]"!==s)return s}return"{"+n(e,us(e)).join(", ")+"}"}}const $s=Bn((function(e){return As(e,[])}));const _s=Un((function(e,t){if(e===t)return t;function r(e,t){if(e>t!=t>e)return t>e?t:e}var n=r(e,t);if(void 0!==n)return n;var s=r(typeof e,typeof t);if(void 0!==s)return s===typeof e?e:t;var i=$s(e),o=r(i,$s(t));return void 0!==o&&o===i?e:t}));var ks=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){return this.xf["@@transducer/step"](e,this.f(t))},e}();const Ts=Un(zn(["fantasy-land/map","map"],(function(e){return function(t){return new ks(e,t)}}),(function(e,t){switch(Object.prototype.toString.call(t)){case"[object Function]":return Zn(t.length,(function(){return e.call(this,t.apply(this,arguments))}));case"[object Object]":return Es((function(r,n){return r[n]=e(t[n]),r}),{},us(t));default:return ys(e,t)}}))),Is=Number.isInteger||function(e){return e<<0===e};function Cs(e){return"[object String]"===Object.prototype.toString.call(e)}const Ms=Un((function(e,t){var r=e<0?t.length+e:e;return Cs(t)?t.charAt(r):t[r]}));const Rs=Un((function(e,t){if(null!=t)return Is(e)?Ms(e,t):t[e]}));const Fs=Un((function(e,t){return Ts(Rs(e),t)}));function Ns(e){return function t(r,n,s){switch(arguments.length){case 0:return t;case 1:return Ln(r)?t:Un((function(t,n){return e(r,t,n)}));case 2:return Ln(r)&&Ln(n)?t:Ln(r)?Un((function(t,r){return e(t,n,r)})):Ln(n)?Un((function(t,n){return e(r,t,n)})):Bn((function(t){return e(r,n,t)}));default:return Ln(r)&&Ln(n)&&Ln(s)?t:Ln(r)&&Ln(n)?Un((function(t,r){return e(t,r,s)})):Ln(r)&&Ln(s)?Un((function(t,r){return e(t,n,r)})):Ln(n)&&Ln(s)?Un((function(t,n){return e(r,t,n)})):Ln(r)?Bn((function(t){return e(t,n,s)})):Ln(n)?Bn((function(t){return e(r,t,s)})):Ln(s)?Bn((function(t){return e(r,n,t)})):e(r,n,s)}}}const Ds=Bn((function(e){return!!Vn(e)||!!e&&("object"==typeof e&&(!Cs(e)&&(0===e.length||e.length>0&&(e.hasOwnProperty(0)&&e.hasOwnProperty(e.length-1)))))}));var qs="undefined"!=typeof Symbol?Symbol.iterator:"@@iterator";function Ls(e,t,r){return function(n,s,i){if(Ds(i))return e(n,s,i);if(null==i)return s;if("function"==typeof i["fantasy-land/reduce"])return t(n,s,i,"fantasy-land/reduce");if(null!=i[qs])return r(n,s,i[qs]());if("function"==typeof i.next)return r(n,s,i);if("function"==typeof i.reduce)return t(n,s,i,"reduce");throw new TypeError("reduce: list must be array or iterable")}}function Bs(e,t,r){for(var n=0,s=r.length;n<s;){if((t=e["@@transducer/step"](t,r[n]))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n+=1}return e["@@transducer/result"](t)}const Us=Un((function(e,t){return Xn(e.length,(function(){return e.apply(t,arguments)}))}));function Vs(e,t,r){for(var n=r.next();!n.done;){if((t=e["@@transducer/step"](t,n.value))&&t["@@transducer/reduced"]){t=t["@@transducer/value"];break}n=r.next()}return e["@@transducer/result"](t)}function zs(e,t,r,n){return e["@@transducer/result"](r[n](Us(e["@@transducer/step"],e),t))}const Hs=Ls(Bs,zs,Vs);var Js=function(){function e(e){this.f=e}return e.prototype["@@transducer/init"]=function(){throw new Error("init not implemented on XWrap")},e.prototype["@@transducer/result"]=function(e){return e},e.prototype["@@transducer/step"]=function(e,t){return this.f(e,t)},e}();function Gs(e){return new Js(e)}const Ws=Ns((function(e,t,r){return Hs("function"==typeof e?Gs(e):e,t,r)}));const Ks=Bn((function(e){return Zn(Ws(_s,0,Fs("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(!e[t].apply(this,arguments))return!1;t+=1}return!0}))}));const Ys=Bn((function(e){return function(){return e}}));const Xs=Bn((function(e){return Zn(Ws(_s,0,Fs("length",e)),(function(){for(var t=0,r=e.length;t<r;){if(e[t].apply(this,arguments))return!0;t+=1}return!1}))}));function Qs(e,t,r){for(var n=r.next();!n.done;)t=e(t,n.value),n=r.next();return t}function Zs(e,t,r,n){return r[n](e,t)}const ei=Ls(Es,Zs,Qs);const ti=Un((function(e,t){return"function"==typeof t["fantasy-land/ap"]?t["fantasy-land/ap"](e):"function"==typeof e.ap?e.ap(t):"function"==typeof e?function(r){return e(r)(t(r))}:ei((function(e,r){return function(e,t){var r;t=t||[];var n=(e=e||[]).length,s=t.length,i=[];for(r=0;r<n;)i[i.length]=e[r],r+=1;for(r=0;r<s;)i[i.length]=t[r],r+=1;return i}(e,Ts(r,t))}),[],e)}));const ri=Un((function(e,t){return e.apply(this,t)}));var ni=Bn((function(e){for(var t=us(e),r=t.length,n=[],s=0;s<r;)n[s]=e[t[s]],s+=1;return n}));const si=ni;const ii=Bn((function(e){return null==e}));const oi=Ns((function e(t,r,n){if(0===t.length)return r;var s=t[0];if(t.length>1){var i=!ii(n)&&rs(s,n)&&"object"==typeof n[s]?n[s]:Is(t[1])?[]:{};r=e(Array.prototype.slice.call(t,1),r,i)}return function(e,t,r){if(Is(e)&&Vn(r)){var n=[].concat(r);return n[e]=t,n}var s={};for(var i in r)s[i]=r[i];return s[e]=t,s}(s,r,n)}));function ai(e){var t=Object.prototype.toString.call(e);return"[object Function]"===t||"[object AsyncFunction]"===t||"[object GeneratorFunction]"===t||"[object AsyncGeneratorFunction]"===t}const ci=Un((function(e,t){return e&&t}));const li=Un((function(e,t){var r=Zn(e,t);return Zn(e,(function(){return Es(ti,Ts(r,arguments[0]),Array.prototype.slice.call(arguments,1))}))}));const ui=Bn((function(e){return li(e.length,e)}));const pi=Un((function(e,t){return ai(e)?function(){return e.apply(this,arguments)&&t.apply(this,arguments)}:ui(ci)(e,t)}));const hi=Bn((function(e){return function(t,r){return e(t,r)?-1:e(r,t)?1:0}}));const fi=ui(Bn((function(e){return!e})));function mi(e,t){return function(){return t.call(this,e.apply(this,arguments))}}function di(e,t){return function(){var r=arguments.length;if(0===r)return t();var n=arguments[r-1];return Vn(n)||"function"!=typeof n[e]?t.apply(this,arguments):n[e].apply(n,Array.prototype.slice.call(arguments,0,r-1))}}const yi=Ns(di("slice",(function(e,t,r){return Array.prototype.slice.call(r,e,t)})));const gi=Bn(di("tail",yi(1,1/0)));function vi(){if(0===arguments.length)throw new Error("pipe requires at least one argument");return Xn(arguments[0].length,Ws(mi,arguments[0],gi(arguments)))}var bi=Un((function(e,t){return Zn(Ws(_s,0,Fs("length",t)),(function(){var r=arguments,n=this;return e.apply(n,ys((function(e){return e.apply(n,r)}),t))}))}));const xi=bi;function Ei(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 wi(e,t,r){if(r||(r=new ji),function(e){var t=typeof e;return null==e||"object"!=t&&"function"!=t}(e))return e;var n=function(n){var s=r.get(e);if(s)return s;for(var i in r.set(e,n),e)Object.prototype.hasOwnProperty.call(e,i)&&(n[i]=t?wi(e[i],!0,r):e[i]);return n};switch(ps(e)){case"Object":return n(Object.create(Object.getPrototypeOf(e)));case"Array":return n([]);case"Date":return new Date(e.valueOf());case"RegExp":return Ei(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 ji=function(){function e(){this.map={},this.length=0}return e.prototype.set=function(e,t){const r=this.hash(e);let n=this.map[r];n||(this.map[r]=n=[]),n.push([e,t]),this.length+=1},e.prototype.hash=function(e){let t=[];for(var r in e)t.push(Object.prototype.toString.call(e[r]));return t.join()},e.prototype.get=function(e){if(this.length<=180){for(const t in this.map){const r=this.map[t];for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}}return}const t=this.hash(e),r=this.map[t];if(r)for(let t=0;t<r.length;t+=1){const n=r[t];if(n[0]===e)return n[1]}},e}(),Oi=function(){function e(e,t,r,n){this.valueFn=e,this.valueAcc=t,this.keyFn=r,this.xf=n,this.inputs={}}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=function(e){var t;for(t in this.inputs)if(rs(t,this.inputs)&&(e=this.xf["@@transducer/step"](e,this.inputs[t]))["@@transducer/reduced"]){e=e["@@transducer/value"];break}return this.inputs=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){var r=this.keyFn(t);return this.inputs[r]=this.inputs[r]||[r,wi(this.valueAcc,!1)],this.inputs[r][1]=this.valueFn(this.inputs[r][1],t),e},e}();function Si(e,t,r){return function(n){return new Oi(e,t,r,n)}}const Pi=Qn(4,[],zn([],Si,(function(e,t,r,n){var s=Gs((function(n,s){var i=r(s),o=e(rs(i,n)?n[i]:wi(t,!1),s);return o&&o["@@transducer/reduced"]?Hn(n):(n[i]=o,n)}));return Hs(s,{},n)})));const Ai=Bn((function(e){return Zn(e.length,e)}));const $i=Un((function(e,t){return null==t||t!=t?e:t}));function _i(e,t,r){var n,s=typeof e;switch(s){case"string":case"number":return 0===e&&1/e==-1/0?!!r._items["-0"]||(t&&(r._items["-0"]=!0),!1):null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?e in r._items[s]||(t&&(r._items[s][e]=!0),!1):(t&&(r._items[s]={},r._items[s][e]=!0),!1);case"boolean":if(s in r._items){var i=e?1:0;return!!r._items[s][i]||(t&&(r._items[s][i]=!0),!1)}return t&&(r._items[s]=e?[!1,!0]:[!0,!1]),!1;case"function":return null!==r._nativeSet?t?(n=r._nativeSet.size,r._nativeSet.add(e),r._nativeSet.size===n):r._nativeSet.has(e):s in r._items?!!ds(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1);case"undefined":return!!r._items[s]||(t&&(r._items[s]=!0),!1);case"object":if(null===e)return!!r._items.null||(t&&(r._items.null=!0),!1);default:return(s=Object.prototype.toString.call(e))in r._items?!!ds(e,r._items[s])||(t&&r._items[s].push(e),!1):(t&&(r._items[s]=[e]),!1)}}const ki=function(){function e(){this._nativeSet="function"==typeof Set?new Set:null,this._items={}}return e.prototype.add=function(e){return!_i(e,!0,this)},e.prototype.has=function(e){return _i(e,!1,this)},e}();var Ti=Un((function(e,t){for(var r=[],n=0,s=e.length,i=t.length,o=new ki,a=0;a<i;a+=1)o.add(t[a]);for(;n<s;)o.add(e[n])&&(r[r.length]=e[n]),n+=1;return r}));const Ii=Ti;var Ci=function(){function e(e,t){this.xf=t,this.n=e,this.i=0}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){this.i+=1;var r=0===this.n?e:this.xf["@@transducer/step"](e,t);return this.n>=0&&this.i>=this.n?Hn(r):r},e}();function Mi(e){return function(t){return new Ci(e,t)}}const Ri=Un(zn(["take"],Mi,(function(e,t){return yi(0,e<0?1/0:e,t)})));function Fi(e,t){for(var r=t.length-1;r>=0&&e(t[r]);)r-=1;return yi(0,r+1,t)}var Ni=function(){function e(e,t){this.f=e,this.retained=[],this.xf=t}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=function(e){return this.retained=null,this.xf["@@transducer/result"](e)},e.prototype["@@transducer/step"]=function(e,t){return this.f(t)?this.retain(e,t):this.flush(e,t)},e.prototype.flush=function(e,t){return e=Hs(this.xf,e,this.retained),this.retained=[],this.xf["@@transducer/step"](e,t)},e.prototype.retain=function(e,t){return this.retained.push(t),e},e}();function Di(e){return function(t){return new Ni(e,t)}}const qi=Un(zn([],Di,Fi));var Li=function(){function e(e,t){this.xf=t,this.f=e}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){if(this.f){if(this.f(t))return e;this.f=null}return this.xf["@@transducer/step"](e,t)},e}();function Bi(e){return function(t){return new Li(e,t)}}const Ui=Un(zn(["dropWhile"],Bi,(function(e,t){for(var r=0,n=t.length;r<n&&e(t[r]);)r+=1;return yi(r,1/0,t)})));const Vi=Un((function(e,t){return e||t}));const zi=Un((function(e,t){return ai(e)?function(){return e.apply(this,arguments)||t.apply(this,arguments)}:ui(Vi)(e,t)}));var Hi=Bn((function(e){return null!=e&&"function"==typeof e["fantasy-land/empty"]?e["fantasy-land/empty"]():null!=e&&null!=e.constructor&&"function"==typeof e.constructor["fantasy-land/empty"]?e.constructor["fantasy-land/empty"]():null!=e&&"function"==typeof e.empty?e.empty():null!=e&&null!=e.constructor&&"function"==typeof e.constructor.empty?e.constructor.empty():Vn(e)?[]:Cs(e)?"":ws(e)?{}:is(e)?function(){return arguments}():function(e){var t=Object.prototype.toString.call(e);return"[object Uint8ClampedArray]"===t||"[object Int8Array]"===t||"[object Uint8Array]"===t||"[object Int16Array]"===t||"[object Uint16Array]"===t||"[object Int32Array]"===t||"[object Uint32Array]"===t||"[object Float32Array]"===t||"[object Float64Array]"===t||"[object BigInt64Array]"===t||"[object BigUint64Array]"===t}(e)?e.constructor.from(""):void 0}));const Ji=Hi;const Gi=Bn((function(e){return Zn(e.length,(function(t,r){var n=Array.prototype.slice.call(arguments,0);return n[0]=r,n[1]=t,e.apply(this,n)}))}));const Wi=Un(di("groupBy",Pi((function(e,t){return e.push(t),e}),[])));const Ki=Un((function(e,t){if(0===e.length||ii(t))return!1;for(var r=t,n=0;n<e.length;){if(ii(r)||!rs(e[n],r))return!1;r=r[e[n]],n+=1}return!0}));const Yi=Un((function(e,t){return Ki([e],t)}));const Xi=Ms(0);var Qi=function(e,t){switch(arguments.length){case 0:return Qi;case 1:return function t(r){return 0===arguments.length?t:ns(e,r)};default:return ns(e,t)}};const Zi=Qi;function eo(e){return e}const to=Bn(eo);const ro=Ns((function(e,t,r){return Zn(Math.max(e.length,t.length,r.length),(function(){return e.apply(this,arguments)?t.apply(this,arguments):r.apply(this,arguments)}))}));const no=Un(ds);const so=yi(0,-1);"function"==typeof Object.assign&&Object.assign;const io=Un((function(e,t){return Zn(e+1,(function(){var r=arguments[e];if(null!=r&&ai(r[t]))return r[t].apply(r,Array.prototype.slice.call(arguments,0,e));throw new TypeError($s(r)+' does not have a method named "'+t+'"')}))}));const oo=Bn((function(e){return null!=e&&ms(e,Ji(e))}));const ao=io(1,"join");const co=Ms(-1);const lo=Un((function(e,t){return function(r){return function(n){return Ts((function(e){return t(e,n)}),r(e(n)))}}}));const uo=Un((function(e,t){return e.map((function(e){for(var r,n=t,s=0;s<e.length;){if(null==n)return;r=e[s],n=Is(r)?Ms(r,n):n[r],s+=1}return n}))}));const po=Un((function(e,t){return uo([e],t)[0]}));const ho=Un((function(e,t){return Es((function(r,n){return r[n]=e(t[n],n,t),r}),{},us(t))}));const fo=Ns((function(e,t,r){var n,s={};for(n in r=r||{},t=t||{})rs(n,t)&&(s[n]=rs(n,r)?e(n,t[n],r[n]):t[n]);for(n in r)rs(n,r)&&!rs(n,s)&&(s[n]=r[n]);return s}));const mo=Ns((function e(t,r,n){return fo((function(r,n,s){return ws(n)&&ws(s)?e(t,n,s):t(r,n,s)}),r,n)}));const yo=Un((function(e,t){return mo((function(e,t,r){return r}),e,t)}));const go=Un((function(e,t){return Yn(xs(e),t)}));var vo=function(e){return{value:e,map:function(t){return vo(t(e))}}};const bo=Ns((function(e,t,r){return e((function(e){return vo(t(e))}))(r).value}));const xo=Ns((function(e,t,r){return $i(e,po(t,r))}));const Eo=Ns((function(e,t,r){return e(po(t,r))}));const wo=Un((function(e,t){for(var r={},n=0;n<e.length;)e[n]in t&&(r[e[n]]=t[e[n]]),n+=1;return r}));const jo=Ns((function(e,t,r){return ms(e,Rs(t,r))}));const Oo=Ns((function(e,t,r){return $i(e,Rs(t,r))}));const So=Ns((function(e,t,r){return e(Rs(t,r))}));function Po(e){return"[object Number]"===Object.prototype.toString.call(e)}var Ao=Un((function(e,t){if(!Po(e)||!Po(t))throw new TypeError("Both arguments to range must be numbers");for(var r=[],n=e;n<t;)r.push(n),n+=1;return r}));const $o=Ao;const _o=Bn(Hn);var ko=Ns((function(e,t,r){return r.replace(e,t)}));const To=ko;var Io=Un((function(e,t){return Array.prototype.slice.call(t,0).sort(e)}));const Co=Io;const Mo=io(1,"split");const Ro=Un((function(e,t){return ms(Ri(e.length,t),e)}));var Fo=Un((function(e,t){if(r=e,"[object RegExp]"!==Object.prototype.toString.call(r))throw new TypeError("‘test’ requires a value of type RegExp as its first argument; received "+$s(e));var r;return Ei(e).test(t)}));const No=Fo;var Do="\t\n\v\f\r \u2028\u2029\ufeff";String.prototype.trim;var qo=function(){function e(e,t){this.xf=t,this.pred=e,this.items=[]}return e.prototype["@@transducer/init"]=Jn,e.prototype["@@transducer/result"]=Gn,e.prototype["@@transducer/step"]=function(e,t){return ts(this.pred,t,this.items)?e:(this.items.push(t),this.xf["@@transducer/step"](e,t))},e}();function Lo(e){return function(t){return new qo(e,t)}}const Bo=Un(zn([],Lo,(function(e,t){for(var r,n=0,s=t.length,i=[];n<s;)ts(e,r=t[n],i)||(i[i.length]=r),n+=1;return i})));const Uo=Ns((function(e,t,r){return e(r)?t(r):r}));const Vo=Gi(no);const zo=Ai((function(e,t){return vi(Mo(""),qi(Vo(e)),ao(""))(t)}));const Ho=Ys(void 0);const Jo=ms(Ho());const Go=fi(Jo);const Wo=Zn(1,vi(ps,Zi("GeneratorFunction")));const Ko=Zn(1,vi(ps,Zi("AsyncFunction")));const Yo=Xs([vi(ps,Zi("Function")),Wo,Ko]);const Xo=Zn(1,vi(ps,Zi("RegExp")));const Qo=Zn(1,vi(ps,Zi("String")));const Zo=Uo(Qo,To(/[.*+?^${}()|[\]\\-]/g,"\\$&"));var ea=function(e,t){if("string"!=typeof e&&!(e instanceof String))throw TypeError("`".concat(t,"` must be a string"))};const ta=function(e,t,r){!function(e,t,r){if(null==r||null==e||null==t)throw TypeError("Input values must not be `null` or `undefined`")}(e,t,r),ea(r,"str"),ea(t,"replaceValue"),function(e){if(!("string"==typeof e||e instanceof String||e instanceof RegExp))throw TypeError("`searchValue` must be a string or an regexp")}(e);var n=new RegExp(Xo(e)?e:Zo(e),"g");return To(n,t,r)};var ra=Zn(3,ta),na=io(2,"replaceAll");const sa=Yo(String.prototype.replaceAll)?na:ra,ia=()=>Eo(No(/^win/),["platform"],Nn),oa=e=>{try{const t=new URL(e);return zo(":",t.protocol)}catch{return}},aa=(vi(oa,Go),e=>{const t=e.lastIndexOf(".");return t>=0?e.substr(t).toLowerCase():""}),ca=e=>{if(Nn.browser)return!1;const t=oa(e);return Jo(t)||"file"===t||/^[a-zA-Z]$/.test(t)},la=e=>{const t=oa(e);return"http"===t||"https"===t},ua=(e,t)=>{const r=[/%23/g,"#",/%24/g,"$",/%26/g,"&",/%2C/g,",",/%40/g,"@"],n=Oo(!1,"keepFileProtocol",t),s=Oo(ia,"isWindows",t);let i=decodeURI(e);for(let e=0;e<r.length;e+=2)i=i.replace(r[e],r[e+1]);let o="file://"===i.substr(0,7).toLowerCase();return o&&(i="/"===i[7]?i.substr(8):i.substr(7),s()&&"/"===i[1]&&(i=`${i[0]}:${i.substr(1)}`),n?i=`file:///${i}`:(o=!1,i=s()?i:`/${i}`)),s()&&!o&&(i=sa("/","\\",i),":\\"===i.substr(1,2)&&(i=i[0].toUpperCase()+i.substr(1))),i},pa=e=>{const t=e.indexOf("#");return-1!==t?e.substr(t):"#"},ha=e=>{const t=e.indexOf("#");let r=e;return t>=0&&(r=e.substr(0,t)),r},fa=()=>{if(Nn.browser)return ha(globalThis.location.href);const e=Nn.cwd(),t=co(e);return["/","\\"].includes(t)?e:e+(ia()?"\\":"/")},ma=(e,t)=>{const r=new URL(t,new URL(e,"resolve://"));if("resolve:"===r.protocol){const{pathname:e,search:t,hash:n}=r;return e+t+n}return r.toString()},da=e=>{if(ca(e))return(e=>{const t=[/\?/g,"%3F",/#/g,"%23"];let r=e;ia()&&(r=r.replace(/\\/g,"/")),r=encodeURI(r);for(let e=0;e<t.length;e+=2)r=r.replace(t[e],t[e+1]);return r})(ua(e));try{return new URL(e).toString()}catch{return encodeURI(decodeURI(e)).replace(/%5B/g,"[").replace(/%5D/g,"]")}},ya=e=>ca(e)?ua(e):decodeURI(e);function ga(e,t){function r(){Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=(new Error).stack;for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];[this.message]=r,t&&t.apply(this,r)}return r.prototype=new Error,r.prototype.name=e,r.prototype.constructor=r,r}var va=r(3692),ba=r.n(va);const xa=["properties"],Ea=["properties"],wa=["definitions","parameters","responses","securityDefinitions","components/schemas","components/responses","components/parameters","components/securitySchemes"],ja=["schema/example","items/example"];function Oa(e){const t=e[e.length-1],r=e[e.length-2],n=e.join("/");return xa.indexOf(t)>-1&&-1===Ea.indexOf(r)||wa.indexOf(n)>-1||ja.some((e=>n.indexOf(e)>-1))}function Sa(e,t){const[r,n]=e.split("#"),s=t??"",i=r??"";let o;if(la(s))o=ma(s,i);else{const e=ma(h,s),t=ma(e,i).replace(h,"");o=i.startsWith("/")?t:t.substring(1)}return n?`${o}#${n}`:o}const Pa=/^([a-z]+:\/\/|\/\/)/i,Aa=ga("JSONRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),$a={},_a=new WeakMap,ka=[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]],Ta={key:"$ref",plugin:(e,t,r,n)=>{const s=n.getInstance(),i=r.slice(0,-1);if(Oa(i)||(e=>ka.some((t=>t(e))))(i))return;const{baseDoc:o}=n.getContext(r);if("string"!=typeof e)return new Aa("$ref: must be a string (JSON-Ref)",{$ref:e,baseDoc:o,fullPath:r});const a=Fa(e),c=a[0],l=a[1]||"";let u,p,h;try{u=o||c?Ma(c,o):null}catch(t){return Ra(t,{pointer:l,$ref:e,basePath:u,fullPath:r})}if(function(e,t,r,n){let s=_a.get(n);s||(s={},_a.set(n,s));const i=function(e){if(0===e.length)return"";return`/${e.map(Ua).join("/")}`}(r),o=`${t||"<specmap-base>"}#${e}`,a=i.replace(/allOf\/\d+\/?/g,""),c=n.contextTree.get([]).baseDoc;if(t===c&&za(a,e))return!0;let l="";const u=r.some((e=>(l=`${l}/${Ua(e)}`,s[l]&&s[l].some((e=>za(e,o)||za(o,e))))));if(u)return!0;return void(s[a]=(s[a]||[]).concat(o))}(l,u,i,n)&&!s.useCircularStructures){const t=Sa(e,u);return e===t?null:En.replace(r,t)}if(null==u?(h=La(l),p=n.get(h),void 0===p&&(p=new Aa(`Could not resolve reference: ${e}`,{pointer:l,$ref:e,baseDoc:o,fullPath:r}))):(p=Na(u,l),p=null!=p.__value?p.__value:p.catch((t=>{throw Ra(t,{pointer:l,$ref:e,baseDoc:o,fullPath:r})}))),p instanceof Error)return[En.remove(r),p];const f=Sa(e,u),m=En.replace(i,p,{$$ref:f});if(u&&u!==o)return[m,En.context(i,{baseDoc:u})];try{if(!function(e,t){const r=[e];return t.path.reduce(((e,t)=>(r.push(e[t]),e[t])),e),n(t.value);function n(e){return En.isObject(e)&&(r.indexOf(e)>=0||Object.keys(e).some((t=>n(e[t]))))}}(n.state,m)||s.useCircularStructures)return m}catch(e){return null}}},Ia=Object.assign(Ta,{docCache:$a,absoluteify:Ma,clearCache:function(e){void 0!==e?delete $a[e]:Object.keys($a).forEach((e=>{delete $a[e]}))},JSONRefError:Aa,wrapError:Ra,getDoc:Da,split:Fa,extractFromDoc:Na,fetchJSON:function(e){return fetch(e,{headers:{Accept:p},loadSpec:!0}).then((e=>e.text())).then((e=>hr.load(e)))},extract:qa,jsonPointerToArray:La,unescapeJsonPointerToken:Ba}),Ca=Ia;function Ma(e,t){if(!Pa.test(e)){if(!t)throw new Aa(`Tried to resolve a relative URL, without having a basePath. path: '${e}' basePath: '${t}'`);return ma(t,e)}return e}function Ra(e,t){let r;return r=e&&e.response&&e.response.body?`${e.response.body.code} ${e.response.body.message}`:e.message,new Aa(`Could not resolve reference: ${r}`,t,e)}function Fa(e){return(e+"").split("#")}function Na(e,t){const r=$a[e];if(r&&!En.isPromise(r))try{const e=qa(t,r);return Object.assign(Promise.resolve(e),{__value:e})}catch(e){return Promise.reject(e)}return Da(e).then((e=>qa(t,e)))}function Da(e){const t=$a[e];return t?En.isPromise(t)?t:Promise.resolve(t):($a[e]=Ia.fetchJSON(e).then((t=>($a[e]=t,t))),$a[e])}function qa(e,t){const r=La(e);if(r.length<1)return t;const n=En.getIn(t,r);if(void 0===n)throw new Aa(`Could not resolve pointer: ${e} does not exist in document`,{pointer:e});return n}function La(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(Ba)}function Ba(e){if("string"!=typeof e)return e;return new URLSearchParams(`=${e.replace(/~1/g,"/").replace(/~0/g,"~")}`).get("")}function Ua(e){return new URLSearchParams([["",e.replace(/~/g,"~0").replace(/\//g,"~1")]]).toString().slice(1)}const Va=e=>!e||"/"===e||"#"===e;function za(e,t){if(Va(t))return!0;const r=e.charAt(t.length),n=t.slice(-1);return 0===e.indexOf(t)&&(!r||"/"===r||"#"===r)&&"#"!==n}const Ha={key:"allOf",plugin:(e,t,r,n,s)=>{if(s.meta&&s.meta.$$ref)return;const i=r.slice(0,-1);if(Oa(i))return;if(!Array.isArray(e)){const e=new TypeError("allOf must be an array");return e.fullPath=r,e}let o=!1,a=s.value;if(i.forEach((e=>{a&&(a=a[e])})),a={...a},0===Object.keys(a).length)return;delete a.allOf;const c=[];return c.push(n.replace(i,{})),e.forEach(((e,t)=>{if(!n.isObject(e)){if(o)return null;o=!0;const e=new TypeError("Elements in allOf must be objects");return e.fullPath=r,c.push(e)}c.push(n.mergeDeep(i,e));const s=function(e,t){let{specmap:r,getBaseUrlForNodePath:n=(e=>r.getContext([...t,...e]).baseDoc),targetKeys:s=["$ref","$$ref"]}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=[];return ba()(e).forEach((function(){if(s.includes(this.key)&&"string"==typeof this.node){const e=this.path,s=t.concat(this.path),o=Sa(this.node,n(e));i.push(r.replace(s,o))}})),i}(e,r.slice(0,-1),{getBaseUrlForNodePath:e=>n.getContext([...r,t,...e]).baseDoc,specmap:n});c.push(...s)})),a.example&&c.push(n.remove([].concat(i,"example"))),c.push(n.mergeDeep(i,a)),a.$$ref||c.push(n.remove([].concat(i,"$$ref"))),c}},Ja={key:"parameters",plugin:(e,t,r,n)=>{if(Array.isArray(e)&&e.length){const t=Object.assign([],e),s=r.slice(0,-1),i={...En.getIn(n.spec,s)};for(let s=0;s<e.length;s+=1){const o=e[s];try{t[s].default=n.parameterMacro(i,o)}catch(e){const t=new Error(e);return t.fullPath=r,t}}return En.replace(r,t)}return En.replace(r,e)}},Ga={key:"properties",plugin:(e,t,r,n)=>{const s={...e};for(const t in e)try{s[t].default=n.modelPropertyMacro(s[t])}catch(e){const t=new Error(e);return t.fullPath=r,t}return En.replace(r,s)}};class Wa{constructor(e){this.root=Ka(e||{})}set(e,t){const r=this.getParent(e,!0);if(!r)return void Ya(this.root,t,null);const n=e[e.length-1],{children:s}=r;s[n]?Ya(s[n],t,r):s[n]=Ka(t,r)}get(e){if((e=e||[]).length<1)return this.root.value;let t,r,n=this.root;for(let s=0;s<e.length&&(r=e[s],t=n.children,t[r]);s+=1)n=t[r];return n&&n.protoValue}getParent(e,t){return!e||e.length<1?null:e.length<2?this.root:e.slice(0,-1).reduce(((e,r)=>{if(!e)return e;const{children:n}=e;return!n[r]&&t&&(n[r]=Ka(null,e)),n[r]}),this.root)}}function Ka(e,t){return Ya({children:{}},e,t)}function Ya(e,t,r){return e.value=t||{},e.protoValue=r?{...r.protoValue,...e.value}:e.value,Object.keys(e.children).forEach((t=>{const r=e.children[t];e.children[t]=Ya(r,r.value,e)})),e}const Xa=()=>{};class Qa{static getPluginName(e){return e.pluginName}static getPatchesOfType(e,t){return e.filter(t)}constructor(e){Object.assign(this,{spec:"",debugLevel:"info",plugins:[],pluginHistory:{},errors:[],mutations:[],promisedPatches:[],state:{},patches:[],context:{},contextTree:new Wa,showDebug:!1,allPatches:[],pluginProp:"specMap",libMethods:Object.assign(Object.create(this),En,{getInstance:()=>this}),allowMetaPatches:!1},e),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(En.isFunction),this.patches.push(En.add([],this.spec)),this.patches.push(En.context([],this.context)),this.updatePatches(this.patches)}debug(e){if(this.debugLevel===e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(...r)}}verbose(e){if("verbose"===this.debugLevel){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];console.log(`[${e}] `,...r)}}wrapPlugin(e,t){const{pathDiscriminator:r}=this;let n,s=null;return e[this.pluginProp]?(s=e,n=e[this.pluginProp]):En.isFunction(e)?n=e:En.isObject(e)&&(n=function(e){const t=(e,t)=>!Array.isArray(e)||e.every(((e,r)=>e===t[r]));return function*(n,s){const i={};for(const e of n.filter(En.isAdditiveMutation))yield*o(e.value,e.path,e);function*o(n,a,c){if(En.isObject(n)){const l=a.length-1,u=a[l],p=a.indexOf("properties"),h="properties"===u&&l===p,f=s.allowMetaPatches&&i[n.$$ref];for(const l of Object.keys(n)){const u=n[l],p=a.concat(l),m=En.isObject(u),d=n.$$ref;if(f||m&&(s.allowMetaPatches&&d&&(i[d]=!0),yield*o(u,p,c)),!h&&l===e.key){const n=t(r,a);r&&!n||(yield e.plugin(u,l,p,s,c))}}}else e.key===a[a.length-1]&&(yield e.plugin(n,e.key,a,s))}}}(e)),Object.assign(n.bind(s),{pluginName:e.name||t,isGenerator:En.isGenerator(n)})}nextPlugin(){return this.wrappedPlugins.find((e=>this.getMutationsForPlugin(e).length>0))}nextPromisedPatch(){if(this.promisedPatches.length>0)return Promise.race(this.promisedPatches.map((e=>e.value)))}getPluginHistory(e){const t=this.constructor.getPluginName(e);return this.pluginHistory[t]||[]}getPluginRunCount(e){return this.getPluginHistory(e).length}getPluginHistoryTip(e){const t=this.getPluginHistory(e);return t&&t[t.length-1]||{}}getPluginMutationIndex(e){const t=this.getPluginHistoryTip(e).mutationIndex;return"number"!=typeof t?-1:t}updatePluginHistory(e,t){const r=this.constructor.getPluginName(e);this.pluginHistory[r]=this.pluginHistory[r]||[],this.pluginHistory[r].push(t)}updatePatches(e){En.normalizeArray(e).forEach((e=>{if(e instanceof Error)this.errors.push(e);else try{if(!En.isObject(e))return void this.debug("updatePatches","Got a non-object patch",e);if(this.showDebug&&this.allPatches.push(e),En.isPromise(e.value))return this.promisedPatches.push(e),void this.promisedPatchThen(e);if(En.isContextPatch(e))return void this.setContext(e.path,e.value);En.isMutation(e)&&this.updateMutations(e)}catch(e){console.error(e),this.errors.push(e)}}))}updateMutations(e){"object"==typeof e.value&&!Array.isArray(e.value)&&this.allowMetaPatches&&(e.value={...e.value});const t=En.applyPatch(this.state,e,{allowMetaPatches:this.allowMetaPatches});t&&(this.mutations.push(e),this.state=t)}removePromisedPatch(e){const t=this.promisedPatches.indexOf(e);t<0?this.debug("Tried to remove a promisedPatch that isn't there!"):this.promisedPatches.splice(t,1)}promisedPatchThen(e){return e.value=e.value.then((t=>{const r={...e,value:t};this.removePromisedPatch(e),this.updatePatches(r)})).catch((t=>{this.removePromisedPatch(e),this.updatePatches(t)})),e.value}getMutations(e,t){return e=e||0,"number"!=typeof t&&(t=this.mutations.length),this.mutations.slice(e,t)}getCurrentMutations(){return this.getMutationsForPlugin(this.getCurrentPlugin())}getMutationsForPlugin(e){const t=this.getPluginMutationIndex(e);return this.getMutations(t+1)}getCurrentPlugin(){return this.currentPlugin}getLib(){return this.libMethods}_get(e){return En.getIn(this.state,e)}_getContext(e){return this.contextTree.get(e)}setContext(e,t){return this.contextTree.set(e,t)}_hasRun(e){return this.getPluginRunCount(this.getCurrentPlugin())>(e||0)}dispatch(){const e=this,t=this.nextPlugin();if(!t){const e=this.nextPromisedPatch();if(e)return e.then((()=>this.dispatch())).catch((()=>this.dispatch()));const t={spec:this.state,errors:this.errors};return this.showDebug&&(t.patches=this.allPatches),Promise.resolve(t)}if(e.pluginCount=e.pluginCount||{},e.pluginCount[t]=(e.pluginCount[t]||0)+1,e.pluginCount[t]>100)return Promise.resolve({spec:e.state,errors:e.errors.concat(new Error("We've reached a hard limit of 100 plugin runs"))});if(t!==this.currentPlugin&&this.promisedPatches.length){const e=this.promisedPatches.map((e=>e.value));return Promise.all(e.map((e=>e.then(Xa,Xa)))).then((()=>this.dispatch()))}return function(){e.currentPlugin=t;const n=e.getCurrentMutations(),s=e.mutations.length-1;try{if(t.isGenerator)for(const s of t(n,e.getLib()))r(s);else{r(t(n,e.getLib()))}}catch(e){console.error(e),r([Object.assign(Object.create(e),{plugin:t})])}finally{e.updatePluginHistory(t,{mutationIndex:s})}return e.dispatch()}();function r(r){r&&(r=En.fullyNormalizeArray(r),e.updatePatches(r,t))}}}const Za={refs:Ca,allOf:Ha,parameters:Ja,properties:Ga},ec=e=>e.replace(/\W/gi,"_");function tc(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",{v2OperationIdCompatibilityMode:n}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!e||"object"!=typeof e)return null;return(e.operationId||"").replace(/\s/g,"").length?ec(e.operationId):function(e,t){let{v2OperationIdCompatibilityMode:r}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(r){let r=`${t.toLowerCase()}_${e}`.replace(/[\s!@#$%^&*()_+=[{\]};:<>|./?,\\'""-]/g,"_");return r=r||`${e.substring(1)}_${t}`,r.replace(/((_){2,})/g,"_").replace(/^(_)*/g,"").replace(/([_])*$/g,"")}return`${t.toLowerCase()}${ec(e)}`}(t,r,{v2OperationIdCompatibilityMode:n})}function rc(e){const{spec:t}=e,{paths:r}=t,n={};if(!r||t.$$normalized)return e;for(const e in r){const s=r[e];if(null==s||!["object","function"].includes(typeof s))continue;const i=s.parameters;for(const r in s){const o=s[r];if(null==o||!["object","function"].includes(typeof o))continue;const a=tc(o,e,r);if(a){n[a]?n[a].push(o):n[a]=[o];const e=n[a];if(e.length>1)e.forEach(((e,t)=>{e.__originalOperationId=e.__originalOperationId||e.operationId,e.operationId=`${a}${t+1}`}));else if(void 0!==o.operationId){const t=e[0];t.__originalOperationId=t.__originalOperationId||o.operationId,t.operationId=a}}if("parameters"!==r){const e=[],r={};for(const n in t)"produces"!==n&&"consumes"!==n&&"security"!==n||(r[n]=t[n],e.push(r));if(i&&(r.parameters=i,e.push(r)),e.length)for(const t of e)for(const e in t)if(o[e]){if("parameters"===e)for(const r of t[e]){o[e].some((e=>e.name&&e.name===r.name||e.$ref&&e.$ref===r.$ref||e.$$ref&&e.$$ref===r.$$ref||e===r))||o[e].push(r)}}else o[e]=t[e]}}}return t.$$normalized=!0,e}async function nc(e){const{spec:t,mode:r,allowMetaPatches:n=!0,pathDiscriminator:s,modelPropertyMacro:i,parameterMacro:o,requestInterceptor:a,responseInterceptor:c,skipNormalization:l,useCircularStructures:u}=e,p=qr(e),h=Lr(e);return function(e){p&&(Za.refs.docCache[p]=e);Za.refs.fetchJSON=Dr(h,{requestInterceptor:a,responseInterceptor:c});const t=[Za.refs];"function"==typeof o&&t.push(Za.parameters);"function"==typeof i&&t.push(Za.properties);"strict"!==r&&t.push(Za.allOf);return(f={spec:e,context:{baseDoc:p},plugins:t,allowMetaPatches:n,pathDiscriminator:s,parameterMacro:o,modelPropertyMacro:i,useCircularStructures:u},new Qa(f).dispatch()).then(l?async e=>e:rc);var f}(t)}const sc={name:"generic",match:()=>!0,normalize(e){let{spec:t}=e;const{spec:r}=rc({spec:t});return r},resolve:async e=>nc(e)};const ic=e=>{try{const{swagger:t}=e;return"2.0"===t}catch{return!1}},oc=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.0\.([0123])(?:-rc[012])?$/.test(t)}catch{return!1}},ac=e=>{try{const{openapi:t}=e;return"string"==typeof t&&/^3\.1\.(?:[1-9]\d*|0)$/.test(t)}catch{return!1}},cc=e=>oc(e)||ac(e),lc={name:"openapi-2",match(e){let{spec:t}=e;return ic(t)},normalize(e){let{spec:t}=e;const{spec:r}=rc({spec:t});return r},resolve:async e=>async function(e){return nc(e)}(e)};const uc={name:"openapi-3-0",match(e){let{spec:t}=e;return oc(t)},normalize(e){let{spec:t}=e;const{spec:r}=rc({spec:t});return r},resolve:async e=>async function(e){return nc(e)}(e)},pc=e=>async t=>(async e=>{const{spec:t,requestInterceptor:r,responseInterceptor:n}=e,s=qr(e),i=Lr(e),o=t||await Dr(i,{requestInterceptor:r,responseInterceptor:n})(s),a={...e,spec:o};return e.strategies.find((e=>e.match(a))).resolve(a)})({...e,...t}),hc=pc({strategies:[uc,lc,sc]}),fc=e=>async function(t,r){return async function(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{returnEntireTree:n,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u}=r,p={spec:e,pathDiscriminator:t,baseDoc:s,requestInterceptor:i,responseInterceptor:o,parameterMacro:a,modelPropertyMacro:c,useCircularStructures:l,strategies:u},h=u.find((e=>e.match(p))).normalize(p),f=await hc({...p,spec:h,allowMetaPatches:!0,skipNormalization:!0});return!n&&Array.isArray(t)&&t.length&&(f.spec=t.reduce(((e,t)=>e?.[t]),f.spec)||null),f}(t,r,{...e,...arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}})};fc({strategies:[uc,lc,sc]});var mc=r(3500);class dc extends mc.RP{constructor(e,t,r){super(e,t,r),this.element="annotation"}get code(){return this.attributes.get("code")}set code(e){this.attributes.set("code",e)}}const yc=dc;class gc extends mc.RP{constructor(e,t,r){super(e,t,r),this.element="comment"}}const vc=gc;class bc extends mc.ON{constructor(e,t,r){super(e,t,r),this.element="parseResult"}get api(){return this.children.filter((e=>e.classes.contains("api"))).first}get results(){return this.children.filter((e=>e.classes.contains("result")))}get result(){return this.results.first}get annotations(){return this.children.filter((e=>"annotation"===e.element))}get warnings(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("warning")))}get errors(){return this.children.filter((e=>"annotation"===e.element&&e.classes.contains("error")))}get isEmpty(){return this.children.reject((e=>"annotation"===e.element)).isEmpty}replaceResult(e){const{result:t}=this;if(Jo(t))return!1;const r=this.content.findIndex((e=>e===t));return-1!==r&&(this.content[r]=e,!0)}}const xc=bc;class Ec extends mc.ON{constructor(e,t,r){super(e,t,r),this.element="sourceMap"}get positionStart(){return this.children.filter((e=>e.classes.contains("position"))).get(0)}get positionEnd(){return this.children.filter((e=>e.classes.contains("position"))).get(1)}set position(e){if(null===e)return;const t=new mc.ON([e.start.row,e.start.column,e.start.char]),r=new mc.ON([e.end.row,e.end.column,e.end.char]);t.classes.push("position"),r.classes.push("position"),this.push(t).push(r)}}const wc=Ec;const jc=fi(Yo);const Oc=Zn(1,Yo(Array.isArray)?Array.isArray:vi(ps,Zi("Array")));const Sc=pi(Oc,oo);var Pc=Zn(3,(function(e,t,r){var n=po(e,r),s=po(so(e),r);if(!jc(n)&&!Sc(e)){var i=Us(n,s);return ri(i,t)}}));const Ac=Pc,$c=(e,t)=>"object"==typeof t&&null!==t&&e in t&&"function"==typeof t[e],_c=e=>"object"==typeof e&&null!=e&&"_storedElement"in e&&"string"==typeof e._storedElement&&"_content"in e,kc=(e,t)=>"object"==typeof t&&null!==t&&"primitive"in t&&("function"==typeof t.primitive&&t.primitive()===e),Tc=(e,t)=>"object"==typeof t&&null!==t&&"classes"in t&&(Array.isArray(t.classes)||t.classes instanceof mc.ON)&&t.classes.includes(e),Ic=(e,t)=>"object"==typeof t&&null!==t&&"element"in t&&t.element===e,Cc=e=>e({hasMethod:$c,hasBasicElementProps:_c,primitiveEq:kc,isElementType:Ic,hasClass:Tc}),Mc=Cc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof mc.W_||e(r)&&t(void 0,r))),Rc=Cc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof mc.RP||e(r)&&t("string",r))),Fc=Cc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof mc.VL||e(r)&&t("number",r))),Nc=Cc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof mc.zr||e(r)&&t("null",r))),Dc=Cc((({hasBasicElementProps:e,primitiveEq:t})=>r=>r instanceof mc.hh||e(r)&&t("boolean",r))),qc=Cc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof mc.Sb||e(n)&&t("object",n)&&r("keys",n)&&r("values",n)&&r("items",n))),Lc=Cc((({hasBasicElementProps:e,primitiveEq:t,hasMethod:r})=>n=>n instanceof mc.ON&&!(n instanceof mc.Sb)||e(n)&&t("array",n)&&r("push",n)&&r("unshift",n)&&r("map",n)&&r("reduce",n))),Bc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mc.c6||e(n)&&t("member",n)&&r(void 0,n))),Uc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mc.EA||e(n)&&t("link",n)&&r(void 0,n))),Vc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mc.tK||e(n)&&t("ref",n)&&r(void 0,n))),zc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yc||e(n)&&t("annotation",n)&&r("array",n))),Hc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vc||e(n)&&t("comment",n)&&r("string",n))),Jc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xc||e(n)&&t("parseResult",n)&&r("array",n))),Gc=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof wc||e(n)&&t("sourceMap",n)&&r("array",n))),Wc=e=>Ic("object",e)||Ic("array",e)||Ic("boolean",e)||Ic("number",e)||Ic("string",e)||Ic("null",e)||Ic("member",e),Kc=e=>Gc(e.meta.get("sourceMap")),Yc=(e,t)=>{if(0===e.length)return!0;const r=t.attributes.get("symbols");return!!Lc(r)&&Yn(Vo(r.toValue()),e)},Xc=(e,t)=>0===e.length||Yn(Vo(t.classes.toValue()),e);const Qc=ms(null);const Zc=fi(Qc);function el(e){return el="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},el(e)}const tl=function(e){return"object"===el(e)};const rl=Zn(1,pi(Zc,tl));var nl=vi(ps,Zi("Object")),sl=vi($s,ms($s(Object))),il=Eo(pi(Yo,sl),["constructor"]);const ol=Zn(1,(function(e){if(!rl(e)||!nl(e))return!1;var t=Object.getPrototypeOf(e);return!!Qc(t)||il(t)}));class al extends mc.lS{constructor(){super(),this.register("annotation",yc),this.register("comment",vc),this.register("parseResult",xc),this.register("sourceMap",wc)}}const cl=new al,ll=e=>{const t=new al;return ol(e)&&t.use(e),t},ul=cl,pl=()=>({predicates:{...i},namespace:ul});var hl=r(3992),fl=r(538);const ml=class extends fl{constructor(e,t,r){if(super(e,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:e}=r;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}};class dl extends Error{static[Symbol.hasInstance](e){return super[Symbol.hasInstance](e)||Function.prototype[Symbol.hasInstance].call(ml,e)}constructor(e,t){if(super(e,t),this.name=this.constructor.name,"string"==typeof e&&(this.message=e),"function"==typeof Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack,null!=t&&"object"==typeof t&&Object.hasOwn(t,"cause")&&!("cause"in this)){const{cause:e}=t;this.cause=e,e instanceof Error&&"stack"in e&&(this.stack=`${this.stack}\nCAUSE: ${e.stack}`)}}}const yl=dl;const gl=class extends yl{constructor(e,t){if(super(e,t),null!=t&&"object"==typeof t){const{cause:e,...r}=t;Object.assign(this,r)}}},vl=(e,t,r)=>{const n=e[t];if(null!=n){if(!r&&"function"==typeof n)return n;const e=r?n.leave:n.enter;if("function"==typeof e)return e}else{const n=r?e.leave:e.enter;if(null!=n){if("function"==typeof n)return n;const e=n[t];if("function"==typeof e)return e}}return null},bl={},xl=e=>null==e?void 0:e.type,El=e=>"string"==typeof xl(e),wl=e=>Object.create(Object.getPrototypeOf(e),Object.getOwnPropertyDescriptors(e)),jl=(e,{visitFnGetter:t=vl,nodeTypeGetter:r=xl}={})=>{const n=new Array(e.length).fill(null);return{enter(s,...i){for(let o=0;o<e.length;o+=1)if(null===n[o]){const a=t(e[o],r(s),!1);if("function"==typeof a){const t=a.call(e[o],s,...i);if(!1===t)n[o]=s;else if(t===bl)n[o]=bl;else if(void 0!==t)return t}}},leave(s,...i){for(let o=0;o<e.length;o+=1)if(null===n[o]){const a=t(e[o],r(s),!0);if("function"==typeof a){const t=a.call(e[o],s,...i);if(t===bl)n[o]=bl;else if(void 0!==t&&!1!==t)return t}}else n[o]===s&&(n[o]=null)}}},Ol=(e,t,{keyMap:r=null,state:n={},breakSymbol:s=bl,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=vl,nodeTypeGetter:c=xl,nodePredicate:l=El,nodeCloneFn:u=wl,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=m,m=E.pop(),j)if(d){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}if(E.includes(b))continue;let O;if(!Array.isArray(b)){if(!l(b))throw new gl(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;O=i.call(t,b,r,m,x,E)}if(O===s)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var w;if(void 0===O&&j&&v.push([r,b]),!e)f={inArray:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(w=h[c(b)])&&void 0!==w?w:[],g=-1,v=[],m!==i&&void 0!==m&&E.push(m),m=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};Ol[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=null,state:n={},breakSymbol:s=bl,deleteNodeSymbol:i=null,skipVisitingNodeSymbol:o=!1,visitFnGetter:a=vl,nodeTypeGetter:c=xl,nodePredicate:l=El,nodeCloneFn:u=wl,detectCycles:p=!0}={})=>{const h=r||{};let f,m,d=Array.isArray(e),y=[e],g=-1,v=[],b=e;const x=[],E=[];do{g+=1;const e=g===y.length;let r;const j=e&&0!==v.length;if(e){if(r=0===E.length?void 0:x.pop(),b=m,m=E.pop(),j)if(d){b=b.slice();let e=0;for(const[t,r]of v){const n=t-e;r===i?(b.splice(n,1),e+=1):b[n]=r}}else{b=u(b);for(const[e,t]of v)b[e]=t}g=f.index,y=f.keys,v=f.edits,d=f.inArray,f=f.prev}else if(m!==i&&void 0!==m){if(r=d?g:y[g],b=m[r],b===i||void 0===b)continue;x.push(r)}let O;if(!Array.isArray(b)){if(!l(b))throw new gl(`Invalid AST Node: ${String(b)}`,{node:b});if(p&&E.includes(b)){x.pop();continue}const i=a(t,c(b),e);if(i){for(const[e,r]of Object.entries(n))t[e]=r;O=await i.call(t,b,r,m,x,E)}if(O===s)break;if(O===o){if(!e){x.pop();continue}}else if(void 0!==O&&(v.push([r,O]),!e)){if(!l(O)){x.pop();continue}b=O}}var w;if(void 0===O&&j&&v.push([r,b]),!e)f={inArray:d,index:g,keys:y,edits:v,prev:f},d=Array.isArray(b),y=d?b:null!==(w=h[c(b)])&&void 0!==w?w:[],g=-1,v=[],m!==i&&void 0!==m&&E.push(m),m=b}while(void 0!==f);return 0!==v.length?v[v.length-1][1]:e};const Sl=class extends gl{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}};const Pl=class extends Sl{};const Al=class extends Sl{},$l=(e,t={})=>{const{visited:r=new WeakMap}=t,n={...t,visited:r};if(r.has(e))return r.get(e);if(e instanceof mc.KeyValuePair){const{key:t,value:s}=e,i=Mc(t)?$l(t,n):t,o=Mc(s)?$l(s,n):s,a=new mc.KeyValuePair(i,o);return r.set(e,a),a}if(e instanceof mc.rm){const t=e=>$l(e,n),s=[...e].map(t),i=new mc.rm(s);return r.set(e,i),i}if(e instanceof mc.O4){const t=e=>$l(e,n),s=[...e].map(t),i=new mc.O4(s);return r.set(e,i),i}if(Mc(e)){const t=Tl(e);if(r.set(e,t),e.content)if(Mc(e.content))t.content=$l(e.content,n);else if(e.content instanceof mc.KeyValuePair)t.content=$l(e.content,n);else if(Array.isArray(e.content)){const r=e=>$l(e,n);t.content=e.content.map(r)}else t.content=e.content;else t.content=e.content;return t}throw new Pl("Value provided to cloneDeep function couldn't be cloned",{value:e})};$l.safe=e=>{try{return $l(e)}catch{return e}};const _l=e=>{const{key:t,value:r}=e;return new mc.KeyValuePair(t,r)},kl=e=>{const t=new e.constructor;if(t.element=e.element,e.meta.length>0&&(t._meta=$l(e.meta)),e.attributes.length>0&&(t._attributes=$l(e.attributes)),Mc(e.content)){const r=e.content;t.content=kl(r)}else Array.isArray(e.content)?t.content=[...e.content]:e.content instanceof mc.KeyValuePair?t.content=_l(e.content):t.content=e.content;return t},Tl=e=>{if(e instanceof mc.KeyValuePair)return _l(e);if(e instanceof mc.rm)return(e=>{const t=[...e];return new mc.rm(t)})(e);if(e instanceof mc.O4)return(e=>{const t=[...e];return new mc.O4(t)})(e);if(Mc(e))return kl(e);throw new Al("Value provided to cloneShallow function couldn't be cloned",{value:e})};Tl.safe=e=>{try{return Tl(e)}catch{return e}};const Il=e=>qc(e)?"ObjectElement":Lc(e)?"ArrayElement":Bc(e)?"MemberElement":Rc(e)?"StringElement":Dc(e)?"BooleanElement":Fc(e)?"NumberElement":Nc(e)?"NullElement":Uc(e)?"LinkElement":Vc(e)?"RefElement":void 0,Cl=e=>Mc(e)?Tl(e):wl(e),Ml=vi(Il,Qo),Rl={ObjectElement:["content"],ArrayElement:["content"],MemberElement:["key","value"],StringElement:[],BooleanElement:[],NumberElement:[],NullElement:[],RefElement:[],LinkElement:[],Annotation:[],Comment:[],ParseResultElement:["content"],SourceMap:["content"]},Fl=hl({props:{result:[],predicate:Dn,returnOnTrue:void 0,returnOnFalse:void 0},init({predicate:e=this.predicate,returnOnTrue:t=this.returnOnTrue,returnOnFalse:r=this.returnOnFalse}={}){this.result=[],this.predicate=e,this.returnOnTrue=t,this.returnOnFalse=r},methods:{enter(e){return this.predicate(e)?(this.result.push(e),this.returnOnTrue):this.returnOnFalse}}}),Nl=(e,t,{keyMap:r=Rl,...n}={})=>Ol(e,t,{keyMap:r,nodeTypeGetter:Il,nodePredicate:Ml,nodeCloneFn:Cl,...n});Nl[Symbol.for("nodejs.util.promisify.custom")]=async(e,t,{keyMap:r=Rl,...n}={})=>Ol[Symbol.for("nodejs.util.promisify.custom")](e,t,{keyMap:r,nodeTypeGetter:Il,nodePredicate:Ml,nodeCloneFn:Cl,...n});const Dl=(e,t,r={})=>{if(0===t.length)return e;const n=Oo(pl,"toolboxCreator",r),s=Oo({},"visitorOptions",r),i=Oo(Il,"nodeTypeGetter",s),o=n(),a=t.map((e=>e(o))),c=jl(a.map(Oo({},"visitor")),{nodeTypeGetter:i});a.forEach(Ac(["pre"],[]));const l=Nl(e,c,s);return a.forEach(Ac(["post"],[])),l},ql=(e,{Type:t,plugins:r=[]})=>{const n=new t(e);return Dl(n,r,{toolboxCreator:pl,visitorOptions:{nodeTypeGetter:Il}})},Ll=e=>(t,r={})=>ql(t,{...r,Type:e});mc.Sb.refract=Ll(mc.Sb),mc.ON.refract=Ll(mc.ON),mc.RP.refract=Ll(mc.RP),mc.hh.refract=Ll(mc.hh),mc.zr.refract=Ll(mc.zr),mc.VL.refract=Ll(mc.VL),mc.EA.refract=Ll(mc.EA),mc.tK.refract=Ll(mc.tK),yc.refract=Ll(yc),vc.refract=Ll(vc),xc.refract=Ll(xc),wc.refract=Ll(wc);const Bl=(e,t=new WeakMap)=>(Bc(e)?(t.set(e.key,e),Bl(e.key,t),t.set(e.value,e),Bl(e.value,t)):e.children.forEach((r=>{t.set(r,e),Bl(r,t)})),t),Ul=hl.init((function({element:e}){let t;this.transclude=function(r,n){var s;if(r===e)return n;if(r===n)return e;t=null!==(s=t)&&void 0!==s?s:Bl(e);const i=t.get(r);return Jo(i)?void 0:(qc(i)?((e,t,r)=>{const n=r.get(e);qc(n)&&(n.content=n.map(((s,i,o)=>o===e?(r.delete(e),r.set(t,n),t):o)))})(r,n,t):Lc(i)?((e,t,r)=>{const n=r.get(e);Lc(n)&&(n.content=n.map((s=>s===e?(r.delete(e),r.set(t,n),t):s)))})(r,n,t):Bc(i)&&((e,t,r)=>{const n=r.get(e);Bc(n)&&(n.key===e&&(n.key=t,r.delete(e),r.set(t,n)),n.value===e&&(n.value=t,r.delete(e),r.set(t,n)))})(r,n,t),e)}})),Vl=Ul,zl=e=>"string"==typeof(null==e?void 0:e.type)?e.type:Il(e),Hl={EphemeralObject:["content"],EphemeralArray:["content"],...Rl},Jl=(e,t,{keyMap:r=Hl,...n}={})=>Nl(e,t,{keyMap:r,nodeTypeGetter:zl,nodePredicate:qn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...n});Jl[Symbol.for("nodejs.util.promisify.custom")]=async(e,{keyMap:t=Hl,...r}={})=>Nl[Symbol.for("nodejs.util.promisify.custom")](e,visitor,{keyMap:t,nodeTypeGetter:zl,nodePredicate:qn,detectCycles:!1,deleteNodeSymbol:Symbol.for("delete-node"),skipVisitingNodeSymbol:Symbol.for("skip-visiting-node"),...r});const Gl=class{type="EphemeralArray";content=[];reference=void 0;constructor(e){this.content=e,this.reference=[]}toReference(){return this.reference}toArray(){return this.reference.push(...this.content),this.reference}};const Wl=class{type="EphemeralObject";content=[];reference=void 0;constructor(e){this.content=e,this.reference={}}toReference(){return this.reference}toObject(){return Object.assign(this.reference,Object.fromEntries(this.content))}},Kl=hl.init((function(){const e=new WeakMap;this.BooleanElement=function(e){return e.toValue()},this.NumberElement=function(e){return e.toValue()},this.StringElement=function(e){return e.toValue()},this.NullElement=function(){return null},this.ObjectElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new Wl(t.content);return e.set(t,r),r}},this.EphemeralObject={leave:e=>e.toObject()},this.MemberElement={enter:e=>[e.key,e.value]},this.ArrayElement={enter(t){if(e.has(t))return e.get(t).toReference();const r=new Gl(t.content);return e.set(t,r),r}},this.EphemeralArray={leave:e=>e.toArray()}})),Yl=e=>Mc(e)?Rc(e)||Fc(e)||Dc(e)||Nc(e)?e.toValue():Jl(e,Kl()):e,Xl=vi(To(/~/g,"~0"),To(/\//g,"~1"),encodeURIComponent);const Ql=class extends gl{};const Zl=class extends Ql{constructor(e,t){super(e,t),void 0!==t&&(this.tokens=[...t.tokens])}},eu=e=>{try{return 0===e.length?"":`/${e.map(Xl).join("/")}`}catch(t){throw new Zl("JSON Pointer compilation of tokens encountered an error.",{tokens:e,cause:t})}};var tu=pi(Zn(1,vi(ps,Zi("Number"))),isFinite);var ru=Zn(1,tu);var nu=pi(Yo(Number.isFinite)?Zn(1,Us(Number.isFinite,Number)):ru,xi(ms,[Math.floor,to]));var su=Zn(1,nu);const iu=Yo(Number.isInteger)?Zn(1,Us(Number.isInteger,Number)):su;const ou=ms("");const au=Ai((function(e,t){return vi(Mo(""),Ui(Vo(e)),ao(""))(t)})),cu=vi(To(/~1/g,"/"),To(/~0/g,"~"),(e=>{try{return decodeURIComponent(e)}catch{return e}}));const lu=class extends Ql{constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer)}},uu=e=>{const t=(e=>{const t=e.indexOf("#");return-1!==t?e.substring(t):"#"})(e);return au("#",t)},pu=e=>{if(ou(e))return[];if(!Ro("/",e))throw new lu(`Invalid JSON Pointer "${e}". JSON Pointers must begin with "/"`,{pointer:e});try{const t=vi(Mo("/"),Ts(cu))(e);return gi(t)}catch(t){throw new lu(`JSON Pointer parsing of "${e}" encountered an error.`,{pointer:e,cause:t})}};const hu=class extends Ql{constructor(e,t){super(e,t),void 0!==t&&(this.pointer=t.pointer,Array.isArray(t.tokens)&&(this.tokens=[...t.tokens]),this.failedToken=t.failedToken,this.failedTokenPosition=t.failedTokenPosition,this.element=t.element)}},fu=(e,t)=>{let r;try{r=pu(e)}catch(r){throw new hu(`JSON Pointer evaluation failed while parsing the pointer "${e}".`,{pointer:e,element:$l(t),cause:r})}return r.reduce(((t,n,s)=>{if(qc(t)){if(!t.hasKey(n))throw new hu(`JSON Pointer evaluation failed while evaluating token "${n}" against an ObjectElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:$l(t)});return t.get(n)}if(Lc(t)){if(!(n in t.content)||!iu(Number(n)))throw new hu(`JSON Pointer evaluation failed while evaluating token "${n}" against an ArrayElement`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:$l(t)});return t.get(Number(n))}throw new hu(`JSON Pointer evaluation failed while evaluating token "${n}" against an unexpected Element`,{pointer:e,tokens:r,failedToken:n,failedTokenPosition:s,element:$l(t)})}),t)};class mu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="callback"}}const du=mu;class yu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="components"}get schemas(){return this.get("schemas")}set schemas(e){this.set("schemas",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get requestBodies(){return this.get("requestBodies")}set requestBodies(e){this.set("requestBodies",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get securitySchemes(){return this.get("securitySchemes")}set securitySchemes(e){this.set("securitySchemes",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}}const gu=yu;class vu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="contact"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}get email(){return this.get("email")}set email(e){this.set("email",e)}}const bu=vu;class xu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="discriminator"}get propertyName(){return this.get("propertyName")}set propertyName(e){this.set("propertyName",e)}get mapping(){return this.get("mapping")}set mapping(e){this.set("mapping",e)}}const Eu=xu;class wu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="encoding"}get contentType(){return this.get("contentType")}set contentType(e){this.set("contentType",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowedReserved(){return this.get("allowedReserved")}set allowedReserved(e){this.set("allowedReserved",e)}}const ju=wu;class Ou extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="example"}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get value(){return this.get("value")}set value(e){this.set("value",e)}get externalValue(){return this.get("externalValue")}set externalValue(e){this.set("externalValue",e)}}const Su=Ou;class Pu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="externalDocumentation"}get description(){return this.get("description")}set description(e){this.set("description",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Au=Pu;class $u extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="header"}get required(){return this.hasKey("required")?this.get("required"):new mc.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new mc.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty($u.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const _u=$u;class ku extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="info",this.classes.push("info")}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get termsOfService(){return this.get("termsOfService")}set termsOfService(e){this.set("termsOfService",e)}get contact(){return this.get("contact")}set contact(e){this.set("contact",e)}get license(){return this.get("license")}set license(e){this.set("license",e)}get version(){return this.get("version")}set version(e){this.set("version",e)}}const Tu=ku;class Iu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="license"}get name(){return this.get("name")}set name(e){this.set("name",e)}get url(){return this.get("url")}set url(e){this.set("url",e)}}const Cu=Iu;class Mu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="link"}get operationRef(){return this.get("operationRef")}set operationRef(e){this.set("operationRef",e)}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get operation(){var e,t;return Rc(this.operationRef)?null===(e=this.operationRef)||void 0===e?void 0:e.meta.get("operation"):Rc(this.operationId)?null===(t=this.operationId)||void 0===t?void 0:t.meta.get("operation"):void 0}set operation(e){this.set("operation",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get server(){return this.get("server")}set server(e){this.set("server",e)}}const Ru=Mu;class Fu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="mediaType"}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get encoding(){return this.get("encoding")}set encoding(e){this.set("encoding",e)}}const Nu=Fu;class Du extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlow"}get authorizationUrl(){return this.get("authorizationUrl")}set authorizationUrl(e){this.set("authorizationUrl",e)}get tokenUrl(){return this.get("tokenUrl")}set tokenUrl(e){this.set("tokenUrl",e)}get refreshUrl(){return this.get("refreshUrl")}set refreshUrl(e){this.set("refreshUrl",e)}get scopes(){return this.get("scopes")}set scopes(e){this.set("scopes",e)}}const qu=Du;class Lu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="oAuthFlows"}get implicit(){return this.get("implicit")}set implicit(e){this.set("implicit",e)}get password(){return this.get("password")}set password(e){this.set("password",e)}get clientCredentials(){return this.get("clientCredentials")}set clientCredentials(e){this.set("clientCredentials",e)}get authorizationCode(){return this.get("authorizationCode")}set authorizationCode(e){this.set("authorizationCode",e)}}const Bu=Lu;class Uu extends mc.RP{constructor(e,t,r){super(e,t,r),this.element="openapi",this.classes.push("spec-version"),this.classes.push("version")}}const Vu=Uu;class zu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_0",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Hu=zu;class Ju extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="operation"}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}set externalDocs(e){this.set("externalDocs",e)}get externalDocs(){return this.get("externalDocs")}get operationId(){return this.get("operationId")}set operationId(e){this.set("operationId",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}get responses(){return this.get("responses")}set responses(e){this.set("responses",e)}get callbacks(){return this.get("callbacks")}set callbacks(e){this.set("callbacks",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new mc.hh(!1)}set deprecated(e){this.set("deprecated",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get servers(){return this.get("severs")}set servers(e){this.set("servers",e)}}const Gu=Ju;class Wu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="parameter"}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get required(){return this.hasKey("required")?this.get("required"):new mc.hh(!1)}set required(e){this.set("required",e)}get deprecated(){return this.hasKey("deprecated")?this.get("deprecated"):new mc.hh(!1)}set deprecated(e){this.set("deprecated",e)}get allowEmptyValue(){return this.get("allowEmptyValue")}set allowEmptyValue(e){this.set("allowEmptyValue",e)}get style(){return this.get("style")}set style(e){this.set("style",e)}get explode(){return this.get("explode")}set explode(e){this.set("explode",e)}get allowReserved(){return this.get("allowReserved")}set allowReserved(e){this.set("allowReserved",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}}Object.defineProperty(Wu.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0});const Ku=Wu;class Yu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="pathItem"}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get summary(){return this.get("summary")}set summary(e){this.set("summary",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get 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)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get parameters(){return this.get("parameters")}set parameters(e){this.set("parameters",e)}}const Xu=Yu;class Qu extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="paths"}}const Zu=Qu;class ep extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="reference",this.classes.push("openapi-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const tp=ep;class rp extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="requestBody"}get description(){return this.get("description")}set description(e){this.set("description",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get required(){return this.hasKey("required")?this.get("required"):new mc.hh(!1)}set required(e){this.set("required",e)}}const np=rp;class sp extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="response"}get description(){return this.get("description")}set description(e){this.set("description",e)}get headers(){return this.get("headers")}set headers(e){this.set("headers",e)}get contentProp(){return this.get("content")}set contentProp(e){this.set("content",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}}const ip=sp;class op extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="responses"}get default(){return this.get("default")}set default(e){this.set("default",e)}}const ap=op;const cp=class extends yl{};class lp extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONSchemaDraft4"}get idProp(){return this.get("id")}set idProp(e){this.set("id",e)}get $schema(){return this.get("$schema")}set $schema(e){this.set("idProp",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get additionalItems(){return this.get("additionalItems")}set additionalItems(e){this.set("additionalItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get dependencies(){return this.get("dependencies")}set dependencies(e){this.set("dependencies",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get definitions(){return this.get("definitions")}set definitions(e){this.set("definitions",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get base(){return this.get("base")}set base(e){this.set("base",e)}get links(){return this.get("links")}set links(e){this.set("links",e)}get media(){return this.get("media")}set media(e){this.set("media",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}}const up=lp;class pp extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="JSONReference",this.classes.push("json-reference")}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}}const hp=pp;class fp extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="media"}get binaryEncoding(){return this.get("binaryEncoding")}set binaryEncoding(e){this.set("binaryEncoding",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}}const mp=fp;class dp extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="linkDescription"}get href(){return this.get("href")}set href(e){this.set("href",e)}get rel(){return this.get("rel")}set rel(e){this.set("rel",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get targetSchema(){return this.get("targetSchema")}set targetSchema(e){this.set("targetSchema",e)}get mediaType(){return this.get("mediaType")}set mediaType(e){this.set("mediaType",e)}get method(){return this.get("method")}set method(e){this.set("method",e)}get encType(){return this.get("encType")}set encType(e){this.set("encType",e)}get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}}const yp=dp,gp=(e,t)=>{const r=$i(e,t);return ho((e=>{if(ol(e)&&Yi("$ref",e)&&So(Qo,"$ref",e)){const t=po(["$ref"],e),n=au("#/",t);return po(n.split("/"),r)}return ol(e)?gp(e,r):e}),e)},vp=hl({props:{element:null},methods:{copyMetaAndAttributes(e,t){Kc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),bp=vp,xp=hl(bp,{methods:{enter(e){return this.element=$l(e),bl}}});const Ep=Ys(Ho()),wp=e=>{if(Mc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},jp={JSONSchemaDraft4Element:["content"],JSONReferenceElement:["content"],MediaElement:["content"],LinkDescriptionElement:["content"],...Rl},Op=hl(bp,{props:{specObj:null,passingOptionsNames:["specObj"]},init({specObj:e=this.specObj}){this.specObj=e},methods:{retrievePassingOptions(){return wo(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=po(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Eo(Yo,["visitors",...e],this.specObj)?po(["visitors",...e],this.specObj):po(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Jo(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?$l(t):(Nl(t,n,{keyMap:jp,nodeTypeGetter:wp,...r}),n.element)}}}),Sp=hl(Op,{props:{specPath:Ep,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(((e,n,s)=>{if(Rc(n)&&r.includes(Yl(n))&&!this.ignoredFields.includes(Yl(n))){const r=this.toRefractedElement([...t,"fixedFields",Yl(n)],e),i=new mc.c6($l(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else this.ignoredFields.includes(Yl(n))||this.element.content.push($l(s))})),this.copyMetaAndAttributes(e,this.element),bl}}}),Pp=hl(Sp,xp,{props:{specPath:Ys(["document","objects","JSONSchema"])},init(){this.element=new up}}),Ap=xp,$p=xp,_p=xp,kp=xp,Tp=xp,Ip=xp,Cp=xp,Mp=xp,Rp=xp,Fp=xp,Np=hl({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),Dp=e=>qc(e)&&e.hasKey("$ref"),qp=hl(Op,Np,xp,{methods:{ObjectElement(e){const t=Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"];return this.element=this.toRefractedElement(t,e),bl},ArrayElement(e){return this.element=new mc.ON,this.element.classes.push("json-schema-items"),e.forEach((e=>{const t=Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),Lp=xp,Bp=xp,Up=xp,Vp=xp,zp=xp,Hp=hl(xp,{methods:{ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-required"),bl}}});const Jp=fi(Zn(1,pi(Zc,zi(tl,Yo))));const Gp=fi(oo);const Wp=Ks([Qo,Jp,Gp]),Kp=hl(Op,{props:{fieldPatternPredicate:Dn,specPath:Ep,ignoredFields:[]},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields}={}){this.specPath=e,this.ignoredFields=t},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(!this.ignoredFields.includes(Yl(t))&&this.fieldPatternPredicate(Yl(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new mc.c6($l(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Yl(t))||this.element.content.push($l(r))})),this.copyMetaAndAttributes(e,this.element),bl}}}),Yp=hl(Kp,{props:{fieldPatternPredicate:Wp}}),Xp=hl(Yp,Np,xp,{props:{specPath:e=>Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-properties")}}),Qp=hl(Yp,Np,xp,{props:{specPath:e=>Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-patternProperties")}}),Zp=hl(Yp,Np,xp,{props:{specPath:e=>Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-dependencies")}}),eh=hl(xp,{methods:{ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-enum"),bl}}}),th=hl(xp,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("json-schema-type"),bl},ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-type"),bl}}}),rh=hl(Op,Np,xp,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),nh=hl(Op,Np,xp,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),sh=hl(Op,Np,xp,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),ih=hl(Yp,Np,xp,{props:{specPath:e=>Dp(e)?["document","objects","JSONReference"]:["document","objects","JSONSchema"]},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-definitions")}}),oh=xp,ah=xp,ch=xp,lh=xp,uh=xp,ph=hl(Op,Np,xp,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-links")},methods:{ArrayElement(e){return e.forEach((e=>{const t=this.toRefractedElement(["document","objects","LinkDescription"],e);this.element.push(t)})),this.copyMetaAndAttributes(e,this.element),bl}}}),hh=xp,fh=hl(Sp,xp,{props:{specPath:Ys(["document","objects","JSONReference"])},init(){this.element=new hp},methods:{ObjectElement(e){const t=Sp.compose.methods.ObjectElement.call(this,e);return Rc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),mh=hl(xp,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}});const dh=fi(ii);const yh=pi(Oc,Gp);function gh(e){return function(e){if(Array.isArray(e))return vh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return vh(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(e);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return vh(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function vh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}var bh=vi(Co(hi((function(e,t){return e.length>t.length}))),Xi,Rs("length")),xh=Ai((function(e,t,r){var n=r.apply(void 0,gh(e));return dh(n)?_o(n):t}));const Eh=ro(yh,(function(e){var t=bh(e);return Zn(t,(function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return Ws(xh(r),void 0,e)}))}),Ho),wh=hl(Op,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ro(e,Ys(t),Ho))),r=Eh(t)(e);return this.element=this.toRefractedElement(r,e),bl}}}),jh=hl(wh,{props:{alternator:[{predicate:Dp,specPath:["document","objects","JSONReference"]},{predicate:qn,specPath:["document","objects","JSONSchema"]}]}}),Oh={visitors:{value:xp,JSONSchemaOrJSONReferenceVisitor:jh,document:{objects:{JSONSchema:{$visitor:Pp,fixedFields:{id:Ap,$schema:$p,multipleOf:_p,maximum:kp,exclusiveMaximum:Tp,minimum:Ip,exclusiveMinimum:Cp,maxLength:Mp,minLength:Rp,pattern:Fp,additionalItems:jh,items:qp,maxItems:Lp,minItems:Bp,uniqueItems:Up,maxProperties:Vp,minProperties:zp,required:Hp,properties:Xp,additionalProperties:jh,patternProperties:Qp,dependencies:Zp,enum:eh,type:th,allOf:rh,anyOf:nh,oneOf:sh,not:jh,definitions:ih,title:oh,description:ah,default:ch,format:lh,base:uh,links:ph,media:{$ref:"#/visitors/document/objects/Media"},readOnly:hh}},JSONReference:{$visitor:fh,fixedFields:{$ref:mh}},Media:{$visitor:hl(Sp,xp,{props:{specPath:Ys(["document","objects","Media"])},init(){this.element=new mp}}),fixedFields:{binaryEncoding:xp,type:xp}},LinkDescription:{$visitor:hl(Sp,xp,{props:{specPath:Ys(["document","objects","LinkDescription"])},init(){this.element=new yp}}),fixedFields:{href:xp,rel:xp,title:xp,targetSchema:jh,mediaType:xp,method:xp,encType:xp,schema:jh}}}}}},Sh=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof up||e(n)&&t("JSONSchemaDraft4",n)&&r("object",n))),Ph=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof hp||e(n)&&t("JSONReference",n)&&r("object",n))),Ah=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mp||e(n)&&t("media",n)&&r("object",n))),$h=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof yp||e(n)&&t("linkDescription",n)&&r("object",n))),_h={namespace:e=>{const{base:t}=e;return t.register("jSONSchemaDraft4",up),t.register("jSONReference",hp),t.register("media",mp),t.register("linkDescription",yp),t}},kh=()=>{const e=ll(_h);return{predicates:{...o,isStringElement:Rc},namespace:e}},Th=(e,{specPath:t=["visitors","document","objects","JSONSchema","$visitor"],plugins:r=[],specificationObj:n=Oh}={})=>{const s=(0,mc.Qc)(e),i=gp(n),o=Ac(t,[],i);return Nl(s,o,{state:{specObj:i}}),Dl(o.element,r,{toolboxCreator:kh,visitorOptions:{keyMap:jp,nodeTypeGetter:wp}})},Ih=e=>(t,r={})=>Th(t,{specPath:e,...r});up.refract=Ih(["visitors","document","objects","JSONSchema","$visitor"]),hp.refract=Ih(["visitors","document","objects","JSONReference","$visitor"]),mp.refract=Ih(["visitors","document","objects","Media","$visitor"]),yp.refract=Ih(["visitors","document","objects","LinkDescription","$visitor"]);const Ch=class extends up{constructor(e,t,r){super(e,t,r),this.element="schema",this.classes.push("json-schema-draft-4")}get idProp(){throw new cp("idProp getter in Schema class is not not supported.")}set idProp(e){throw new cp("idProp setter in Schema class is not not supported.")}get $schema(){throw new cp("$schema getter in Schema class is not not supported.")}set $schema(e){throw new cp("$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 cp("patternProperties getter in Schema class is not not supported.")}set patternProperties(e){throw new cp("patternProperties setter in Schema class is not not supported.")}get dependencies(){throw new cp("dependencies getter in Schema class is not not supported.")}set dependencies(e){throw new cp("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 cp("definitions getter in Schema class is not not supported.")}set definitions(e){throw new cp("definitions setter in Schema class is not not supported.")}get base(){throw new cp("base getter in Schema class is not not supported.")}set base(e){throw new cp("base setter in Schema class is not not supported.")}get links(){throw new cp("links getter in Schema class is not not supported.")}set links(e){throw new cp("links setter in Schema class is not not supported.")}get media(){throw new cp("media getter in Schema class is not not supported.")}set media(e){throw new cp("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 Mh extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="securityRequirement"}}const Rh=Mh;class Fh extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="securityScheme"}get type(){return this.get("type")}set type(e){this.set("type",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get name(){return this.get("name")}set name(e){this.set("name",e)}get in(){return this.get("in")}set in(e){this.set("in",e)}get scheme(){return this.get("scheme")}set scheme(e){this.set("scheme",e)}get bearerFormat(){return this.get("bearerFormat")}set bearerFormat(e){this.set("bearerFormat",e)}get flows(){return this.get("flows")}set flows(e){this.set("flows",e)}get openIdConnectUrl(){return this.get("openIdConnectUrl")}set openIdConnectUrl(e){this.set("openIdConnectUrl",e)}}const Nh=Fh;class Dh extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="server"}get url(){return this.get("url")}set url(e){this.set("url",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get variables(){return this.get("variables")}set variables(e){this.set("variables",e)}}const qh=Dh;class Lh extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="serverVariable"}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}}const Bh=Lh;class Uh extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="tag"}get name(){return this.get("name")}set name(e){this.set("name",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}}const Vh=Uh;class zh extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="xml"}get name(){return this.get("name")}set name(e){this.set("name",e)}get namespace(){return this.get("namespace")}set namespace(e){this.set("namespace",e)}get prefix(){return this.get("prefix")}set prefix(e){this.set("prefix",e)}get attribute(){return this.get("attribute")}set attribute(e){this.set("attribute",e)}get wrapped(){return this.get("wrapped")}set wrapped(e){this.set("wrapped",e)}}const Hh=zh,Jh=hl({props:{element:null},methods:{copyMetaAndAttributes(e,t){Kc(e)&&t.meta.set("sourceMap",e.meta.get("sourceMap"))}}}),Gh=Jh,Wh=e=>{if(Mc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},Kh={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"],...Rl},Yh=hl(Gh,{props:{passingOptionsNames:["specObj","openApiGenericElement","openApiSemanticElement"],specObj:null,openApiGenericElement:null,openApiSemanticElement:null},init({specObj:e=this.specObj,openApiGenericElement:t=this.openApiGenericElement,openApiSemanticElement:r=this.openApiSemanticElement}){this.specObj=e,this.openApiGenericElement=t,this.openApiSemanticElement=r},methods:{retrievePassingOptions(){return wo(this.passingOptionsNames,this)},retrieveFixedFields(e){const t=po(["visitors",...e,"fixedFields"],this.specObj);return"object"==typeof t&&null!==t?Object.keys(t):[]},retrieveVisitor(e){return Eo(Yo,["visitors",...e],this.specObj)?po(["visitors",...e],this.specObj):po(["visitors",...e,"$visitor"],this.specObj)},retrieveVisitorInstance(e,t={}){const r=this.retrievePassingOptions();return this.retrieveVisitor(e)({...r,...t})},toRefractedElement(e,t,r={}){const n=this.retrieveVisitorInstance(e,r),s=Object.getPrototypeOf(n);return Jo(this.fallbackVisitorPrototype)&&(this.fallbackVisitorPrototype=Object.getPrototypeOf(this.retrieveVisitorInstance(["value"]))),this.fallbackVisitorPrototype===s?$l(t):(Nl(t,n,{keyMap:Kh,nodeTypeGetter:Wh,...r}),n.element)}}}),Xh=e=>qc(e)&&e.hasKey("openapi")&&e.hasKey("info"),Qh=e=>qc(e)&&e.hasKey("name")&&e.hasKey("in"),Zh=e=>qc(e)&&e.hasKey("$ref"),ef=e=>qc(e)&&e.hasKey("content"),tf=e=>qc(e)&&e.hasKey("description"),rf=qc,nf=qc,sf=e=>Rc(e.key)&&Ro("x-",Yl(e.key)),of=hl(Yh,{props:{specPath:Ep,ignoredFields:[],canSupportSpecificationExtensions:!0,specificationExtensionPredicate:sf},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){const t=this.specPath(e),r=this.retrieveFixedFields(t);return e.forEach(((e,n,s)=>{if(Rc(n)&&r.includes(Yl(n))&&!this.ignoredFields.includes(Yl(n))){const r=this.toRefractedElement([...t,"fixedFields",Yl(n)],e),i=new mc.c6($l(n),r);this.copyMetaAndAttributes(s,i),i.classes.push("fixed-field"),this.element.content.push(i)}else if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(s)){const e=this.toRefractedElement(["document","extension"],s);this.element.content.push(e)}else this.ignoredFields.includes(Yl(n))||this.element.content.push($l(s))})),this.copyMetaAndAttributes(e,this.element),bl}}}),af=hl(Gh,{methods:{enter(e){return this.element=$l(e),bl}}}),cf=hl(of,af,{props:{specPath:Ys(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hu},methods:{ObjectElement(e){return this.unrefractedElement=e,of.compose.methods.ObjectElement.call(this,e)}}}),lf=hl(Yh,af,{methods:{StringElement(e){const t=new Vu(Yl(e));return this.copyMetaAndAttributes(e,t),this.element=t,bl}}}),uf=hl(Yh,{methods:{MemberElement(e){return this.element=$l(e),this.element.classes.push("specification-extension"),bl}}}),pf=hl(of,af,{props:{specPath:Ys(["document","objects","Info"]),canSupportSpecificationExtensions:!0},init(){this.element=new Tu}}),hf=af,ff=af,mf=af,df=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("api-version"),this.element.classes.push("version"),bl}}}),yf=hl(of,af,{props:{specPath:Ys(["document","objects","Contact"]),canSupportSpecificationExtensions:!0},init(){this.element=new bu}}),gf=af,vf=af,bf=af,xf=hl(of,af,{props:{specPath:Ys(["document","objects","License"]),canSupportSpecificationExtensions:!0},init(){this.element=new Cu}}),Ef=af,wf=af,jf=hl(of,af,{props:{specPath:Ys(["document","objects","Link"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ru},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return(Rc(this.element.operationId)||Rc(this.element.operationRef))&&this.element.classes.push("reference-element"),t}}}),Of=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}}),Sf=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}}),Pf=hl(Yh,{props:{fieldPatternPredicate:Dn,specPath:Ep,ignoredFields:[],canSupportSpecificationExtensions:!1,specificationExtensionPredicate:sf},init({specPath:e=this.specPath,ignoredFields:t=this.ignoredFields,canSupportSpecificationExtensions:r=this.canSupportSpecificationExtensions,specificationExtensionPredicate:n=this.specificationExtensionPredicate}={}){this.specPath=e,this.ignoredFields=t,this.canSupportSpecificationExtensions=r,this.specificationExtensionPredicate=n},methods:{ObjectElement(e){return e.forEach(((e,t,r)=>{if(this.canSupportSpecificationExtensions&&this.specificationExtensionPredicate(r)){const e=this.toRefractedElement(["document","extension"],r);this.element.content.push(e)}else if(!this.ignoredFields.includes(Yl(t))&&this.fieldPatternPredicate(Yl(t))){const n=this.specPath(e),s=this.toRefractedElement(n,e),i=new mc.c6($l(t),s);this.copyMetaAndAttributes(r,i),i.classes.push("patterned-field"),this.element.content.push(i)}else this.ignoredFields.includes(Yl(t))||this.element.content.push($l(r))})),this.copyMetaAndAttributes(e,this.element),bl}}}),Af=hl(Pf,{props:{fieldPatternPredicate:Wp}});class $f extends mc.Sb{static primaryClass="link-parameters";constructor(e,t,r){super(e,t,r),this.classes.push($f.primaryClass)}}const _f=$f,kf=hl(Af,af,{props:{specPath:Ys(["value"])},init(){this.element=new _f}}),Tf=af,If=af,Cf=hl(of,af,{props:{specPath:Ys(["document","objects","Server"]),canSupportSpecificationExtensions:!0},init(){this.element=new qh}}),Mf=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("server-url"),bl}}}),Rf=af;class Ff extends mc.ON{static primaryClass="servers";constructor(e,t,r){super(e,t,r),this.classes.push(Ff.primaryClass)}}const Nf=Ff,Df=hl(Yh,af,{init(){this.element=new Nf},methods:{ArrayElement(e){return e.forEach((e=>{const t=rf(e)?["document","objects","Server"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),qf=hl(of,af,{props:{specPath:Ys(["document","objects","ServerVariable"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bh}}),Lf=af,Bf=af,Uf=af;class Vf extends mc.Sb{static primaryClass="server-variables";constructor(e,t,r){super(e,t,r),this.classes.push(Vf.primaryClass)}}const zf=Vf,Hf=hl(Af,af,{props:{specPath:Ys(["document","objects","ServerVariable"])},init(){this.element=new zf}}),Jf=hl(of,af,{props:{specPath:Ys(["document","objects","MediaType"]),canSupportSpecificationExtensions:!0},init(){this.element=new Nu}}),Gf=hl(Yh,{props:{alternator:[]},methods:{enter(e){const t=this.alternator.map((({predicate:e,specPath:t})=>ro(e,Ys(t),Ho))),r=Eh(t)(e);return this.element=this.toRefractedElement(r,e),bl}}}),Wf=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof du||e(n)&&t("callback",n)&&r("object",n))),Kf=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof gu||e(n)&&t("components",n)&&r("object",n))),Yf=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bu||e(n)&&t("contact",n)&&r("object",n))),Xf=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Su||e(n)&&t("example",n)&&r("object",n))),Qf=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Au||e(n)&&t("externalDocumentation",n)&&r("object",n))),Zf=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _u||e(n)&&t("header",n)&&r("object",n))),em=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Tu||e(n)&&t("info",n)&&r("object",n))),tm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cu||e(n)&&t("license",n)&&r("object",n))),rm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ru||e(n)&&t("link",n)&&r("object",n))),nm=e=>{if(!rm(e))return!1;if(!Rc(e.operationRef))return!1;const t=Yl(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},sm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vu||e(n)&&t("openapi",n)&&r("string",n))),im=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Hu||e(s)&&t("openApi3_0",s)&&r("object",s)&&n("api",s))),om=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Gu||e(n)&&t("operation",n)&&r("object",n))),am=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ku||e(n)&&t("parameter",n)&&r("object",n))),cm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Xu||e(n)&&t("pathItem",n)&&r("object",n))),lm=e=>{if(!cm(e))return!1;if(!Rc(e.$ref))return!1;const t=Yl(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},um=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Zu||e(n)&&t("paths",n)&&r("object",n))),pm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof tp||e(n)&&t("reference",n)&&r("object",n))),hm=e=>{if(!pm(e))return!1;if(!Rc(e.$ref))return!1;const t=Yl(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},fm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof np||e(n)&&t("requestBody",n)&&r("object",n))),mm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ip||e(n)&&t("response",n)&&r("object",n))),dm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof ap||e(n)&&t("responses",n)&&r("object",n))),ym=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ch||e(n)&&t("schema",n)&&r("object",n))),gm=e=>Dc(e)&&e.classes.includes("boolean-json-schema"),vm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rh||e(n)&&t("securityRequirement",n)&&r("object",n))),bm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qh||e(n)&&t("server",n)&&r("object",n))),xm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Bh||e(n)&&t("serverVariable",n)&&r("object",n))),Em=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nu||e(n)&&t("mediaType",n)&&r("object",n))),wm=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Nf||e(s)&&t("array",s)&&r("array",s)&&n("servers",s))),jm=hl(Gf,af,{props:{alternator:[{predicate:Zh,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Gf.compose.methods.enter.call(this,e);return pm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Om=af,Sm=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Example"],canSupportSpecificationExtensions:!0},init(){this.element=new mc.Sb,this.element.classes.push("examples")},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class Pm extends mc.Sb{static primaryClass="media-type-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Pm.primaryClass),this.classes.push("examples")}}const Am=Pm,$m=hl(Sm,{init(){this.element=new Am}});class _m extends mc.Sb{static primaryClass="media-type-encoding";constructor(e,t,r){super(e,t,r),this.classes.push(_m.primaryClass)}}const km=_m,Tm=hl(Af,af,{props:{specPath:Ys(["document","objects","Encoding"])},init(){this.element=new km}}),Im=hl(Af,af,{props:{specPath:Ys(["value"])},init(){this.element=new Rh}});class Cm extends mc.ON{static primaryClass="security";constructor(e,t,r){super(e,t,r),this.classes.push(Cm.primaryClass)}}const Mm=Cm,Rm=hl(Yh,af,{init(){this.element=new Mm},methods:{ArrayElement(e){return e.forEach((e=>{if(qc(e)){const t=this.toRefractedElement(["document","objects","SecurityRequirement"],e);this.element.push(t)}else this.element.push($l(e))})),this.copyMetaAndAttributes(e,this.element),bl}}}),Fm=hl(of,af,{props:{specPath:Ys(["document","objects","Components"]),canSupportSpecificationExtensions:!0},init(){this.element=new gu}}),Nm=hl(of,af,{props:{specPath:Ys(["document","objects","Tag"]),canSupportSpecificationExtensions:!0},init(){this.element=new Vh}}),Dm=af,qm=af,Lm=hl(of,af,{props:{specPath:Ys(["document","objects","Reference"]),canSupportSpecificationExtensions:!1},init(){this.element=new tp},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return Rc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Bm=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}}),Um=hl(of,af,{props:{specPath:Ys(["document","objects","Parameter"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ku},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return qc(this.element.contentProp)&&this.element.contentProp.filter(Em).forEach(((e,t)=>{e.setMetaProperty("media-type",Yl(t))})),t}}}),Vm=af,zm=af,Hm=af,Jm=af,Gm=af,Wm=af,Km=af,Ym=af,Xm=af,Qm=hl(Gf,af,{props:{alternator:[{predicate:Zh,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Gf.compose.methods.enter.call(this,e);return pm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Zm=hl(of,af,{props:{specPath:Ys(["document","objects","Header"]),canSupportSpecificationExtensions:!0},init(){this.element=new _u}}),ed=af,td=af,rd=af,nd=af,sd=af,id=af,od=af,ad=hl(Gf,af,{props:{alternator:[{predicate:Zh,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Schema"]}]},methods:{ObjectElement(e){const t=Gf.compose.methods.enter.call(this,e);return pm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),cd=af;class ld extends mc.Sb{static primaryClass="header-examples";constructor(e,t,r){super(e,t,r),this.classes.push(ld.primaryClass),this.classes.push("examples")}}const ud=ld,pd=hl(Sm,{init(){this.element=new ud}}),hd=hl(Af,af,{props:{specPath:Ys(["document","objects","MediaType"])},init(){this.element=new mc.Sb,this.element.classes.push("content")}});class fd extends mc.Sb{static primaryClass="header-content";constructor(e,t,r){super(e,t,r),this.classes.push(fd.primaryClass),this.classes.push("content")}}const md=fd,dd=hl(hd,{init(){this.element=new md}}),yd=hl(of,af,{props:{specPath:Ys(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){this.element=new Ch}}),{allOf:gd}=Oh.visitors.document.objects.JSONSchema.fixedFields,vd=hl(gd,{methods:{ArrayElement(e){const t=gd.compose.methods.ArrayElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{anyOf:bd}=Oh.visitors.document.objects.JSONSchema.fixedFields,xd=hl(bd,{methods:{ArrayElement(e){const t=bd.compose.methods.ArrayElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{oneOf:Ed}=Oh.visitors.document.objects.JSONSchema.fixedFields,wd=hl(Ed,{methods:{ArrayElement(e){const t=Ed.compose.methods.ArrayElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{items:jd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Od=hl(jd,{methods:{ObjectElement(e){const t=jd.compose.methods.ObjectElement.call(this,e);return pm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t},ArrayElement(e){return this.element=$l(e),bl}}}),{properties:Sd}=Oh.visitors.document.objects.JSONSchema.fixedFields,Pd=hl(Sd,{methods:{ObjectElement(e){const t=Sd.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}}),{type:Ad}=Oh.visitors.document.objects.JSONSchema.fixedFields,$d=hl(Ad,{methods:{ArrayElement(e){return this.element=$l(e),bl}}}),_d=af,kd=af,Td=af,Id=af,{JSONSchemaOrJSONReferenceVisitor:Cd}=Oh.visitors,Md=hl(Cd,{methods:{ObjectElement(e){const t=Cd.compose.methods.enter.call(this,e);return pm(this.element)&&this.element.setMetaProperty("referenced-element","schema"),t}}}),Rd=hl(of,af,{props:{specPath:Ys(["document","objects","Discriminator"]),canSupportSpecificationExtensions:!1},init(){this.element=new Eu}}),Fd=af;class Nd extends mc.Sb{static primaryClass="discriminator-mapping";constructor(e,t,r){super(e,t,r),this.classes.push(Nd.primaryClass)}}const Dd=Nd,qd=hl(Af,af,{props:{specPath:Ys(["value"])},init(){this.element=new Dd}}),Ld=hl(of,af,{props:{specPath:Ys(["document","objects","XML"]),canSupportSpecificationExtensions:!0},init(){this.element=new Hh}}),Bd=af,Ud=af,Vd=af,zd=af,Hd=af,Jd=af;class Gd extends mc.Sb{static primaryClass="parameter-examples";constructor(e,t,r){super(e,t,r),this.classes.push(Gd.primaryClass),this.classes.push("examples")}}const Wd=Gd,Kd=hl(Sm,{init(){this.element=new Wd}});class Yd extends mc.Sb{static primaryClass="parameter-content";constructor(e,t,r){super(e,t,r),this.classes.push(Yd.primaryClass),this.classes.push("content")}}const Xd=Yd,Qd=hl(hd,{init(){this.element=new Xd}});class Zd extends mc.Sb{static primaryClass="components-schemas";constructor(e,t,r){super(e,t,r),this.classes.push(Zd.primaryClass)}}const ey=Zd,ty=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Schema"]},init(){this.element=new ey},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","schema")})),t}}});class ry extends mc.Sb{static primaryClass="components-responses";constructor(e,t,r){super(e,t,r),this.classes.push(ry.primaryClass)}}const ny=ry,sy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Response"]},init(){this.element=new ny},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(mm).forEach(((e,t)=>{e.setMetaProperty("http-status-code",Yl(t))})),t}}});class iy extends mc.Sb{static primaryClass="components-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(iy.primaryClass),this.classes.push("parameters")}}const oy=iy,ay=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Parameter"]},init(){this.element=new oy},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","parameter")})),t}}});class cy extends mc.Sb{static primaryClass="components-examples";constructor(e,t,r){super(e,t,r),this.classes.push(cy.primaryClass),this.classes.push("examples")}}const ly=cy,uy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Example"]},init(){this.element=new ly},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","example")})),t}}});class py extends mc.Sb{static primaryClass="components-request-bodies";constructor(e,t,r){super(e,t,r),this.classes.push(py.primaryClass)}}const hy=py,fy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","RequestBody"]},init(){this.element=new hy},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","requestBody")})),t}}});class my extends mc.Sb{static primaryClass="components-headers";constructor(e,t,r){super(e,t,r),this.classes.push(my.primaryClass)}}const dy=my,yy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new dy},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.filter(Zf).forEach(((e,t)=>{e.setMetaProperty("header-name",Yl(t))})),t}}});class gy extends mc.Sb{static primaryClass="components-security-schemes";constructor(e,t,r){super(e,t,r),this.classes.push(gy.primaryClass)}}const vy=gy,by=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","SecurityScheme"]},init(){this.element=new vy},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","securityScheme")})),t}}});class xy extends mc.Sb{static primaryClass="components-links";constructor(e,t,r){super(e,t,r),this.classes.push(xy.primaryClass)}}const Ey=xy,wy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new Ey},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}});class jy extends mc.Sb{static primaryClass="components-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(jy.primaryClass)}}const Oy=jy,Sy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new Oy},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Py=hl(of,af,{props:{specPath:Ys(["document","objects","Example"]),canSupportSpecificationExtensions:!0},init(){this.element=new Su},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return Rc(this.element.externalValue)&&this.element.classes.push("reference-element"),t}}}),Ay=af,$y=af,_y=af,ky=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}}),Ty=hl(of,af,{props:{specPath:Ys(["document","objects","ExternalDocumentation"]),canSupportSpecificationExtensions:!0},init(){this.element=new Au}}),Iy=af,Cy=af,My=hl(of,af,{props:{specPath:Ys(["document","objects","Encoding"]),canSupportSpecificationExtensions:!0},init(){this.element=new ju},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return qc(this.element.headers)&&this.element.headers.filter(Zf).forEach(((e,t)=>{e.setMetaProperty("header-name",Yl(t))})),t}}}),Ry=af;class Fy extends mc.Sb{static primaryClass="encoding-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Fy.primaryClass)}}const Ny=Fy,Dy=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Ny},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Zf(e))return;const r=Yl(t);e.setMetaProperty("headerName",r)})),t}}}),qy=af,Ly=af,By=af,Uy=hl(Pf,af,{props:{fieldPatternPredicate:No(/^\/(?<path>.*)$/),specPath:Ys(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new Zu},methods:{ObjectElement(e){const t=Pf.compose.methods.ObjectElement.call(this,e);return this.element.filter(cm).forEach(((e,t)=>{e.setMetaProperty("path",$l(t))})),t}}}),Vy=hl(of,af,{props:{specPath:Ys(["document","objects","RequestBody"])},init(){this.element=new np},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return qc(this.element.contentProp)&&this.element.contentProp.filter(Em).forEach(((e,t)=>{e.setMetaProperty("media-type",Yl(t))})),t}}}),zy=af;class Hy extends mc.Sb{static primaryClass="request-body-content";constructor(e,t,r){super(e,t,r),this.classes.push(Hy.primaryClass),this.classes.push("content")}}const Jy=Hy,Gy=hl(hd,{init(){this.element=new Jy}}),Wy=af,Ky=hl(Pf,af,{props:{fieldPatternPredicate:No(/{(?<expression>.*)}/),specPath:Ys(["document","objects","PathItem"]),canSupportSpecificationExtensions:!0},init(){this.element=new du},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(cm).forEach(((e,t)=>{e.setMetaProperty("runtime-expression",Yl(t))})),t}}}),Yy=hl(of,af,{props:{specPath:Ys(["document","objects","Response"])},init(){this.element=new ip},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return qc(this.element.contentProp)&&this.element.contentProp.filter(Em).forEach(((e,t)=>{e.setMetaProperty("media-type",Yl(t))})),qc(this.element.headers)&&this.element.headers.filter(Zf).forEach(((e,t)=>{e.setMetaProperty("header-name",Yl(t))})),t}}}),Xy=af;class Qy extends mc.Sb{static primaryClass="response-headers";constructor(e,t,r){super(e,t,r),this.classes.push(Qy.primaryClass)}}const Zy=Qy,eg=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Header"]},init(){this.element=new Zy},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","header")})),this.element.forEach(((e,t)=>{if(!Zf(e))return;const r=Yl(t);e.setMetaProperty("header-name",r)})),t}}});class tg extends mc.Sb{static primaryClass="response-content";constructor(e,t,r){super(e,t,r),this.classes.push(tg.primaryClass),this.classes.push("content")}}const rg=tg,ng=hl(hd,{init(){this.element=new rg}});class sg extends mc.Sb{static primaryClass="response-links";constructor(e,t,r){super(e,t,r),this.classes.push(sg.primaryClass)}}const ig=sg,og=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Link"]},init(){this.element=new ig},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","link")})),t}}}),ag=hl(of,Pf,{props:{specPathFixedFields:Ep,specPathPatternedFields:Ep},methods:{ObjectElement(e){const{specPath:t,ignoredFields:r}=this;try{this.specPath=this.specPathFixedFields;const t=this.retrieveFixedFields(this.specPath(e));this.ignoredFields=[...r,...Ii(e.keys(),t)],of.compose.methods.ObjectElement.call(this,e),this.specPath=this.specPathPatternedFields,this.ignoredFields=t,Pf.compose.methods.ObjectElement.call(this,e)}catch(e){throw this.specPath=t,e}return bl}}}),cg=hl(ag,af,{props:{specPathFixedFields:Ys(["document","objects","Responses"]),specPathPatternedFields:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Response"],fieldPatternPredicate:No(new RegExp(`^(1XX|2XX|3XX|4XX|5XX|${$o(100,600).join("|")})$`)),canSupportSpecificationExtensions:!0},init(){this.element=new ap},methods:{ObjectElement(e){const t=ag.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","response")})),this.element.filter(mm).forEach(((e,t)=>{const r=$l(t);this.fieldPatternPredicate(Yl(r))&&e.setMetaProperty("http-status-code",r)})),t}}}),lg=hl(Gf,af,{props:{alternator:[{predicate:Zh,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","Response"]}]},methods:{ObjectElement(e){const t=Gf.compose.methods.enter.call(this,e);return pm(this.element)?this.element.setMetaProperty("referenced-element","response"):mm(this.element)&&this.element.setMetaProperty("http-status-code","default"),t}}}),ug=hl(of,af,{props:{specPath:Ys(["document","objects","Operation"])},init(){this.element=new Gu}});class pg extends mc.ON{static primaryClass="operation-tags";constructor(e,t,r){super(e,t,r),this.classes.push(pg.primaryClass)}}const hg=pg,fg=hl(af,{init(){this.element=new hg},methods:{ArrayElement(e){return this.element=this.element.concat($l(e)),bl}}}),mg=af,dg=af,yg=af;class gg extends mc.ON{static primaryClass="operation-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(gg.primaryClass),this.classes.push("parameters")}}const vg=gg,bg=hl(Yh,af,{init(){this.element=new mc.ON,this.element.classes.push("parameters")},methods:{ArrayElement(e){return e.forEach((e=>{const t=Zh(e)?["document","objects","Reference"]:["document","objects","Parameter"],r=this.toRefractedElement(t,e);pm(r)&&r.setMetaProperty("referenced-element","parameter"),this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),xg=hl(bg,{init(){this.element=new vg}}),Eg=hl(Gf,{props:{alternator:[{predicate:Zh,specPath:["document","objects","Reference"]},{predicate:qn,specPath:["document","objects","RequestBody"]}]},methods:{ObjectElement(e){const t=Gf.compose.methods.enter.call(this,e);return pm(this.element)&&this.element.setMetaProperty("referenced-element","requestBody"),t}}});class wg extends mc.Sb{static primaryClass="operation-callbacks";constructor(e,t,r){super(e,t,r),this.classes.push(wg.primaryClass)}}const jg=wg,Og=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","Callback"]},init(){this.element=new jg},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(pm).forEach((e=>{e.setMetaProperty("referenced-element","callback")})),t}}}),Sg=af;class Pg extends mc.ON{static primaryClass="operation-security";constructor(e,t,r){super(e,t,r),this.classes.push(Pg.primaryClass),this.classes.push("security")}}const Ag=Pg,$g=hl(Yh,af,{init(){this.element=new Ag},methods:{ArrayElement(e){return e.forEach((e=>{const t=qc(e)?["document","objects","SecurityRequirement"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}});class _g extends mc.ON{static primaryClass="operation-servers";constructor(e,t,r){super(e,t,r),this.classes.push(_g.primaryClass),this.classes.push("servers")}}const kg=_g,Tg=hl(Df,{init(){this.element=new kg}}),Ig=hl(of,af,{props:{specPath:Ys(["document","objects","PathItem"])},init(){this.element=new Xu},methods:{ObjectElement(e){const t=of.compose.methods.ObjectElement.call(this,e);return this.element.filter(om).forEach(((e,t)=>{const r=$l(t);r.content=Yl(r).toUpperCase(),e.setMetaProperty("http-method",r)})),Rc(this.element.$ref)&&this.element.classes.push("reference-element"),t}}}),Cg=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}}),Mg=af,Rg=af;class Fg extends mc.ON{static primaryClass="path-item-servers";constructor(e,t,r){super(e,t,r),this.classes.push(Fg.primaryClass),this.classes.push("servers")}}const Ng=Fg,Dg=hl(Df,{init(){this.element=new Ng}});class qg extends mc.ON{static primaryClass="path-item-parameters";constructor(e,t,r){super(e,t,r),this.classes.push(qg.primaryClass),this.classes.push("parameters")}}const Lg=qg,Bg=hl(bg,{init(){this.element=new Lg}}),Ug=hl(of,af,{props:{specPath:Ys(["document","objects","SecurityScheme"]),canSupportSpecificationExtensions:!0},init(){this.element=new Nh}}),Vg=af,zg=af,Hg=af,Jg=af,Gg=af,Wg=af,Kg=af,Yg=hl(of,af,{props:{specPath:Ys(["document","objects","OAuthFlows"]),canSupportSpecificationExtensions:!0},init(){this.element=new Bu}}),Xg=hl(of,af,{props:{specPath:Ys(["document","objects","OAuthFlow"]),canSupportSpecificationExtensions:!0},init(){this.element=new qu}}),Qg=af,Zg=af,ev=af;class tv extends mc.Sb{static primaryClass="oauth-flow-scopes";constructor(e,t,r){super(e,t,r),this.classes.push(tv.primaryClass)}}const rv=tv,nv=hl(Af,af,{props:{specPath:Ys(["value"])},init(){this.element=new rv}});class sv extends mc.ON{static primaryClass="tags";constructor(e,t,r){super(e,t,r),this.classes.push(sv.primaryClass)}}const iv=sv,ov=hl(Yh,af,{init(){this.element=new iv},methods:{ArrayElement(e){return e.forEach((e=>{const t=nf(e)?["document","objects","Tag"]:["value"],r=this.toRefractedElement(t,e);this.element.push(r)})),this.copyMetaAndAttributes(e,this.element),bl}}}),{fixedFields:av}=Oh.visitors.document.objects.JSONSchema,cv={visitors:{value:af,document:{objects:{OpenApi:{$visitor:cf,fixedFields:{openapi:lf,info:{$ref:"#/visitors/document/objects/Info"},servers:Df,paths:{$ref:"#/visitors/document/objects/Paths"},components:{$ref:"#/visitors/document/objects/Components"},security:Rm,tags:ov,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:pf,fixedFields:{title:hf,description:ff,termsOfService:mf,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:df}},Contact:{$visitor:yf,fixedFields:{name:gf,url:vf,email:bf}},License:{$visitor:xf,fixedFields:{name:Ef,url:wf}},Server:{$visitor:Cf,fixedFields:{url:Mf,description:Rf,variables:Hf}},ServerVariable:{$visitor:qf,fixedFields:{enum:Lf,default:Bf,description:Uf}},Components:{$visitor:Fm,fixedFields:{schemas:ty,responses:sy,parameters:ay,examples:uy,requestBodies:fy,headers:yy,securitySchemes:by,links:wy,callbacks:Sy}},Paths:{$visitor:Uy},PathItem:{$visitor:Ig,fixedFields:{$ref:Cg,summary:Mg,description:Rg,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:Dg,parameters:Bg}},Operation:{$visitor:ug,fixedFields:{tags:fg,summary:mg,description:dg,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:yg,parameters:xg,requestBody:Eg,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:Og,deprecated:Sg,security:$g,servers:Tg}},ExternalDocumentation:{$visitor:Ty,fixedFields:{description:Iy,url:Cy}},Parameter:{$visitor:Um,fixedFields:{name:Vm,in:zm,description:Hm,required:Jm,deprecated:Gm,allowEmptyValue:Wm,style:Km,explode:Ym,allowReserved:Xm,schema:Qm,example:Jd,examples:Kd,content:Qd}},RequestBody:{$visitor:Vy,fixedFields:{description:zy,content:Gy,required:Wy}},MediaType:{$visitor:Jf,fixedFields:{schema:jm,example:Om,examples:$m,encoding:Tm}},Encoding:{$visitor:My,fixedFields:{contentType:Ry,headers:Dy,style:qy,explode:Ly,allowReserved:By}},Responses:{$visitor:cg,fixedFields:{default:lg}},Response:{$visitor:Yy,fixedFields:{description:Xy,headers:eg,content:ng,links:og}},Callback:{$visitor:Ky},Example:{$visitor:Py,fixedFields:{summary:Ay,description:$y,value:_y,externalValue:ky}},Link:{$visitor:jf,fixedFields:{operationRef:Of,operationId:Sf,parameters:kf,requestBody:Tf,description:If,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Zm,fixedFields:{description:ed,required:td,deprecated:rd,allowEmptyValue:nd,style:sd,explode:id,allowReserved:od,schema:ad,example:cd,examples:pd,content:dd}},Tag:{$visitor:Nm,fixedFields:{name:Dm,description:qm,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:Lm,fixedFields:{$ref:Bm}},JSONSchema:{$ref:"#/visitors/document/objects/Schema"},JSONReference:{$ref:"#/visitors/document/objects/Reference"},Schema:{$visitor:yd,fixedFields:{title:av.title,multipleOf:av.multipleOf,maximum:av.maximum,exclusiveMaximum:av.exclusiveMaximum,minimum:av.minimum,exclusiveMinimum:av.exclusiveMinimum,maxLength:av.maxLength,minLength:av.minLength,pattern:av.pattern,maxItems:av.maxItems,minItems:av.minItems,uniqueItems:av.uniqueItems,maxProperties:av.maxProperties,minProperties:av.minProperties,required:av.required,enum:av.enum,type:$d,allOf:vd,anyOf:xd,oneOf:wd,not:Md,items:Od,properties:Pd,additionalProperties:Md,description:av.description,format:av.format,default:av.default,nullable:_d,discriminator:{$ref:"#/visitors/document/objects/Discriminator"},writeOnly:kd,xml:{$ref:"#/visitors/document/objects/XML"},externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},example:Td,deprecated:Id}},Discriminator:{$visitor:Rd,fixedFields:{propertyName:Fd,mapping:qd}},XML:{$visitor:Ld,fixedFields:{name:Bd,namespace:Ud,prefix:Vd,attribute:zd,wrapped:Hd}},SecurityScheme:{$visitor:Ug,fixedFields:{type:Vg,description:zg,name:Hg,in:Jg,scheme:Gg,bearerFormat:Wg,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:Kg}},OAuthFlows:{$visitor:Yg,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:Xg,fixedFields:{authorizationUrl:Qg,tokenUrl:Zg,refreshUrl:ev,scopes:nv}},SecurityRequirement:{$visitor:Im}},extension:{$visitor:uf}}}},lv={namespace:e=>{const{base:t}=e;return t.register("callback",du),t.register("components",gu),t.register("contact",bu),t.register("discriminator",Eu),t.register("encoding",ju),t.register("example",Su),t.register("externalDocumentation",Au),t.register("header",_u),t.register("info",Tu),t.register("license",Cu),t.register("link",Ru),t.register("mediaType",Nu),t.register("oAuthFlow",qu),t.register("oAuthFlows",Bu),t.register("openapi",Vu),t.register("openApi3_0",Hu),t.register("operation",Gu),t.register("parameter",Ku),t.register("pathItem",Xu),t.register("paths",Zu),t.register("reference",tp),t.register("requestBody",np),t.register("response",ip),t.register("responses",ap),t.register("schema",Ch),t.register("securityRequirement",Rh),t.register("securityScheme",Nh),t.register("server",qh),t.register("serverVariable",Bh),t.register("tag",Vh),t.register("xml",Hh),t}},uv=()=>{const e=ll(lv);return{predicates:{...a,...c,isStringElement:Rc},namespace:e}},pv=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,mc.Qc)(e),s=gp(cv),i=Ac(t,[],s);return Nl(n,i,{state:{specObj:s}}),Dl(i.element,r,{toolboxCreator:uv,visitorOptions:{keyMap:Kh,nodeTypeGetter:Wh}})},hv=e=>(t,r={})=>pv(t,{specPath:e,...r});du.refract=hv(["visitors","document","objects","Callback","$visitor"]),gu.refract=hv(["visitors","document","objects","Components","$visitor"]),bu.refract=hv(["visitors","document","objects","Contact","$visitor"]),Su.refract=hv(["visitors","document","objects","Example","$visitor"]),Eu.refract=hv(["visitors","document","objects","Discriminator","$visitor"]),ju.refract=hv(["visitors","document","objects","Encoding","$visitor"]),Au.refract=hv(["visitors","document","objects","ExternalDocumentation","$visitor"]),_u.refract=hv(["visitors","document","objects","Header","$visitor"]),Tu.refract=hv(["visitors","document","objects","Info","$visitor"]),Cu.refract=hv(["visitors","document","objects","License","$visitor"]),Ru.refract=hv(["visitors","document","objects","Link","$visitor"]),Nu.refract=hv(["visitors","document","objects","MediaType","$visitor"]),qu.refract=hv(["visitors","document","objects","OAuthFlow","$visitor"]),Bu.refract=hv(["visitors","document","objects","OAuthFlows","$visitor"]),Vu.refract=hv(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Hu.refract=hv(["visitors","document","objects","OpenApi","$visitor"]),Gu.refract=hv(["visitors","document","objects","Operation","$visitor"]),Ku.refract=hv(["visitors","document","objects","Parameter","$visitor"]),Xu.refract=hv(["visitors","document","objects","PathItem","$visitor"]),Zu.refract=hv(["visitors","document","objects","Paths","$visitor"]),tp.refract=hv(["visitors","document","objects","Reference","$visitor"]),np.refract=hv(["visitors","document","objects","RequestBody","$visitor"]),ip.refract=hv(["visitors","document","objects","Response","$visitor"]),ap.refract=hv(["visitors","document","objects","Responses","$visitor"]),Ch.refract=hv(["visitors","document","objects","Schema","$visitor"]),Rh.refract=hv(["visitors","document","objects","SecurityRequirement","$visitor"]),Nh.refract=hv(["visitors","document","objects","SecurityScheme","$visitor"]),qh.refract=hv(["visitors","document","objects","Server","$visitor"]),Bh.refract=hv(["visitors","document","objects","ServerVariable","$visitor"]),Vh.refract=hv(["visitors","document","objects","Tag","$visitor"]),Hh.refract=hv(["visitors","document","objects","XML","$visitor"]);const fv=class extends du{};const mv=class extends gu{get pathItems(){return this.get("pathItems")}set pathItems(e){this.set("pathItems",e)}};const dv=class extends bu{};const yv=class extends Eu{};const gv=class extends ju{};const vv=class extends Su{};const bv=class extends Au{};const xv=class extends _u{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Ev=class extends Tu{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)}};class wv extends mc.RP{static default=new wv("https://spec.openapis.org/oas/3.1/dialect/base");constructor(e,t,r){super(e,t,r),this.element="jsonSchemaDialect"}}const jv=wv;const Ov=class extends Cu{get identifier(){return this.get("identifier")}set identifier(e){this.set("identifier",e)}};const Sv=class extends Ru{};const Pv=class extends Nu{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Av=class extends qu{};const $v=class extends Bu{};const _v=class extends Vu{};class kv extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="openApi3_1",this.classes.push("api")}get openapi(){return this.get("openapi")}set openapi(e){this.set("openapi",e)}get info(){return this.get("info")}set info(e){this.set("info",e)}get jsonSchemaDialect(){return this.get("jsonSchemaDialect")}set jsonSchemaDialect(e){this.set("jsonSchemaDialect",e)}get servers(){return this.get("servers")}set servers(e){this.set("servers",e)}get paths(){return this.get("paths")}set paths(e){this.set("paths",e)}get components(){return this.get("components")}set components(e){this.set("components",e)}get security(){return this.get("security")}set security(e){this.set("security",e)}get tags(){return this.get("tags")}set tags(e){this.set("tags",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get webhooks(){return this.get("webhooks")}set webhooks(e){this.set("webhooks",e)}}const Tv=kv;const Iv=class extends Gu{get requestBody(){return this.get("requestBody")}set requestBody(e){this.set("requestBody",e)}};const Cv=class extends Ku{get schema(){return this.get("schema")}set schema(e){this.set("schema",e)}};const Mv=class extends Xu{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)}};const Rv=class extends Zu{};class Fv extends tp{}Object.defineProperty(Fv.prototype,"description",{get(){return this.get("description")},set(e){this.set("description",e)},enumerable:!0}),Object.defineProperty(Fv.prototype,"summary",{get(){return this.get("summary")},set(e){this.set("summary",e)},enumerable:!0});const Nv=Fv;const Dv=class extends np{};const qv=class extends ip{};const Lv=class extends ap{};class Bv extends mc.Sb{constructor(e,t,r){super(e,t,r),this.element="schema"}get $schema(){return this.get("$schema")}set $schema(e){this.set("$schema",e)}get $vocabulary(){return this.get("$vocabulary")}set $vocabulary(e){this.set("$vocabulary",e)}get $id(){return this.get("$id")}set $id(e){this.set("$id",e)}get $anchor(){return this.get("$anchor")}set $anchor(e){this.set("$anchor",e)}get $dynamicAnchor(){return this.get("$dynamicAnchor")}set $dynamicAnchor(e){this.set("$dynamicAnchor",e)}get $dynamicRef(){return this.get("$dynamicRef")}set $dynamicRef(e){this.set("$dynamicRef",e)}get $ref(){return this.get("$ref")}set $ref(e){this.set("$ref",e)}get $defs(){return this.get("$defs")}set $defs(e){this.set("$defs",e)}get $comment(){return this.get("$comment")}set $comment(e){this.set("$comment",e)}get allOf(){return this.get("allOf")}set allOf(e){this.set("allOf",e)}get anyOf(){return this.get("anyOf")}set anyOf(e){this.set("anyOf",e)}get oneOf(){return this.get("oneOf")}set oneOf(e){this.set("oneOf",e)}get not(){return this.get("not")}set not(e){this.set("not",e)}get if(){return this.get("if")}set if(e){this.set("if",e)}get then(){return this.get("then")}set then(e){this.set("then",e)}get else(){return this.get("else")}set else(e){this.set("else",e)}get dependentSchemas(){return this.get("dependentSchemas")}set dependentSchemas(e){this.set("dependentSchemas",e)}get prefixItems(){return this.get("prefixItems")}set prefixItems(e){this.set("prefixItems",e)}get items(){return this.get("items")}set items(e){this.set("items",e)}get containsProp(){return this.get("contains")}set containsProp(e){this.set("contains",e)}get properties(){return this.get("properties")}set properties(e){this.set("properties",e)}get patternProperties(){return this.get("patternProperties")}set patternProperties(e){this.set("patternProperties",e)}get additionalProperties(){return this.get("additionalProperties")}set additionalProperties(e){this.set("additionalProperties",e)}get propertyNames(){return this.get("propertyNames")}set propertyNames(e){this.set("propertyNames",e)}get unevaluatedItems(){return this.get("unevaluatedItems")}set unevaluatedItems(e){this.set("unevaluatedItems",e)}get unevaluatedProperties(){return this.get("unevaluatedProperties")}set unevaluatedProperties(e){this.set("unevaluatedProperties",e)}get type(){return this.get("type")}set type(e){this.set("type",e)}get enum(){return this.get("enum")}set enum(e){this.set("enum",e)}get const(){return this.get("const")}set const(e){this.set("const",e)}get multipleOf(){return this.get("multipleOf")}set multipleOf(e){this.set("multipleOf",e)}get maximum(){return this.get("maximum")}set maximum(e){this.set("maximum",e)}get exclusiveMaximum(){return this.get("exclusiveMaximum")}set exclusiveMaximum(e){this.set("exclusiveMaximum",e)}get minimum(){return this.get("minimum")}set minimum(e){this.set("minimum",e)}get exclusiveMinimum(){return this.get("exclusiveMinimum")}set exclusiveMinimum(e){this.set("exclusiveMinimum",e)}get maxLength(){return this.get("maxLength")}set maxLength(e){this.set("maxLength",e)}get minLength(){return this.get("minLength")}set minLength(e){this.set("minLength",e)}get pattern(){return this.get("pattern")}set pattern(e){this.set("pattern",e)}get maxItems(){return this.get("maxItems")}set maxItems(e){this.set("maxItems",e)}get minItems(){return this.get("minItems")}set minItems(e){this.set("minItems",e)}get uniqueItems(){return this.get("uniqueItems")}set uniqueItems(e){this.set("uniqueItems",e)}get maxContains(){return this.get("maxContains")}set maxContains(e){this.set("maxContains",e)}get minContains(){return this.get("minContains")}set minContains(e){this.set("minContains",e)}get maxProperties(){return this.get("maxProperties")}set maxProperties(e){this.set("maxProperties",e)}get minProperties(){return this.get("minProperties")}set minProperties(e){this.set("minProperties",e)}get required(){return this.get("required")}set required(e){this.set("required",e)}get dependentRequired(){return this.get("dependentRequired")}set dependentRequired(e){this.set("dependentRequired",e)}get title(){return this.get("title")}set title(e){this.set("title",e)}get description(){return this.get("description")}set description(e){this.set("description",e)}get default(){return this.get("default")}set default(e){this.set("default",e)}get deprecated(){return this.get("deprecated")}set deprecated(e){this.set("deprecated",e)}get readOnly(){return this.get("readOnly")}set readOnly(e){this.set("readOnly",e)}get writeOnly(){return this.get("writeOnly")}set writeOnly(e){this.set("writeOnly",e)}get examples(){return this.get("examples")}set examples(e){this.set("examples",e)}get format(){return this.get("format")}set format(e){this.set("format",e)}get contentEncoding(){return this.get("contentEncoding")}set contentEncoding(e){this.set("contentEncoding",e)}get contentMediaType(){return this.get("contentMediaType")}set contentMediaType(e){this.set("contentMediaType",e)}get contentSchema(){return this.get("contentSchema")}set contentSchema(e){this.set("contentSchema",e)}get discriminator(){return this.get("discriminator")}set discriminator(e){this.set("discriminator",e)}get xml(){return this.get("xml")}set xml(e){this.set("xml",e)}get externalDocs(){return this.get("externalDocs")}set externalDocs(e){this.set("externalDocs",e)}get example(){return this.get("example")}set example(e){this.set("example",e)}}const Uv=Bv;const Vv=class extends Rh{};const zv=class extends Nh{};const Hv=class extends qh{};const Jv=class extends Bh{};const Gv=class extends Vh{};const Wv=class extends Hh{},Kv=hl(of,af,{props:{specPath:Ys(["document","objects","OpenApi"]),canSupportSpecificationExtensions:!0},init(){this.element=new Tv,this.openApiSemanticElement=this.element},methods:{ObjectElement(e){return this.openApiGenericElement=e,of.compose.methods.ObjectElement.call(this,e)}}}),{visitors:{document:{objects:{Info:{$visitor:Yv}}}}}=cv,Xv=hl(Yv,{init(){this.element=new Ev}}),Qv=af,{visitors:{document:{objects:{Contact:{$visitor:Zv}}}}}=cv,eb=hl(Zv,{init(){this.element=new dv}}),{visitors:{document:{objects:{License:{$visitor:tb}}}}}=cv,rb=hl(tb,{init(){this.element=new Ov}}),nb=af,{visitors:{document:{objects:{Link:{$visitor:sb}}}}}=cv,ib=hl(sb,{init(){this.element=new Sv}}),ob=hl(Yh,af,{methods:{StringElement(e){const t=new jv(Yl(e));return this.copyMetaAndAttributes(e,t),this.element=t,bl}}}),{visitors:{document:{objects:{Server:{$visitor:ab}}}}}=cv,cb=hl(ab,{init(){this.element=new Hv}}),{visitors:{document:{objects:{ServerVariable:{$visitor:lb}}}}}=cv,ub=hl(lb,{init(){this.element=new Jv}}),{visitors:{document:{objects:{MediaType:{$visitor:pb}}}}}=cv,hb=hl(pb,{init(){this.element=new Pv}}),{visitors:{document:{objects:{SecurityRequirement:{$visitor:fb}}}}}=cv,mb=hl(fb,{init(){this.element=new Vv}}),{visitors:{document:{objects:{Components:{$visitor:db}}}}}=cv,yb=hl(db,{init(){this.element=new mv}}),{visitors:{document:{objects:{Tag:{$visitor:gb}}}}}=cv,vb=hl(gb,{init(){this.element=new Gv}}),{visitors:{document:{objects:{Reference:{$visitor:bb}}}}}=cv,xb=hl(bb,{init(){this.element=new Nv}}),Eb=af,wb=af,{visitors:{document:{objects:{Parameter:{$visitor:jb}}}}}=cv,Ob=hl(jb,{init(){this.element=new Cv}}),{visitors:{document:{objects:{Header:{$visitor:Sb}}}}}=cv,Pb=hl(Sb,{init(){this.element=new xv}}),Ab=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof fv||e(n)&&t("callback",n)&&r("object",n))),$b=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof mv||e(n)&&t("components",n)&&r("object",n))),_b=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof dv||e(n)&&t("contact",n)&&r("object",n))),kb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof vv||e(n)&&t("example",n)&&r("object",n))),Tb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof bv||e(n)&&t("externalDocumentation",n)&&r("object",n))),Ib=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof xv||e(n)&&t("header",n)&&r("object",n))),Cb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ev||e(n)&&t("info",n)&&r("object",n))),Mb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof jv||e(n)&&t("jsonSchemaDialect",n)&&r("string",n))),Rb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Ov||e(n)&&t("license",n)&&r("object",n))),Fb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Sv||e(n)&&t("link",n)&&r("object",n))),Nb=e=>{if(!Fb(e))return!1;if(!Rc(e.operationRef))return!1;const t=Yl(e.operationRef);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Db=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof _v||e(n)&&t("openapi",n)&&r("string",n))),qb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r,hasClass:n})=>s=>s instanceof Tv||e(s)&&t("openApi3_1",s)&&r("object",s)&&n("api",s))),Lb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Iv||e(n)&&t("operation",n)&&r("object",n))),Bb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Cv||e(n)&&t("parameter",n)&&r("object",n))),Ub=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Mv||e(n)&&t("pathItem",n)&&r("object",n))),Vb=e=>{if(!Ub(e))return!1;if(!Rc(e.$ref))return!1;const t=Yl(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},zb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Rv||e(n)&&t("paths",n)&&r("object",n))),Hb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Nv||e(n)&&t("reference",n)&&r("object",n))),Jb=e=>{if(!Hb(e))return!1;if(!Rc(e.$ref))return!1;const t=Yl(e.$ref);return"string"==typeof t&&t.length>0&&!t.startsWith("#")},Gb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Dv||e(n)&&t("requestBody",n)&&r("object",n))),Wb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof qv||e(n)&&t("response",n)&&r("object",n))),Kb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Lv||e(n)&&t("responses",n)&&r("object",n))),Yb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Uv||e(n)&&t("schema",n)&&r("object",n))),Xb=e=>Dc(e)&&e.classes.includes("boolean-json-schema"),Qb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Vv||e(n)&&t("securityRequirement",n)&&r("object",n))),Zb=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Hv||e(n)&&t("server",n)&&r("object",n))),ex=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Jv||e(n)&&t("serverVariable",n)&&r("object",n))),tx=Cc((({hasBasicElementProps:e,isElementType:t,primitiveEq:r})=>n=>n instanceof Pv||e(n)&&t("mediaType",n)&&r("object",n))),rx=hl({props:{parent:null},init({parent:e=this.parent}){this.parent=e,this.passingOptionsNames=[...this.passingOptionsNames,"parent"]}}),nx=hl(of,rx,af,{props:{specPath:Ys(["document","objects","Schema"]),canSupportSpecificationExtensions:!0},init(){const e=()=>{let e;return e=null!==this.openApiSemanticElement&&Mb(this.openApiSemanticElement.jsonSchemaDialect)?Yl(this.openApiSemanticElement.jsonSchemaDialect):null!==this.openApiGenericElement&&Rc(this.openApiGenericElement.get("jsonSchemaDialect"))?Yl(this.openApiGenericElement.get("jsonSchemaDialect")):Yl(jv.default),e},t=t=>{if(Qc(this.parent)&&!Rc(t.get("$schema")))this.element.setMetaProperty("inherited$schema",e());else if(Yb(this.parent)&&!Rc(t.get("$schema"))){const e=$i(Yl(this.parent.meta.get("inherited$schema")),Yl(this.parent.$schema));this.element.setMetaProperty("inherited$schema",e)}},r=e=>{const t=null!==this.parent?$l(this.parent.getMetaProperty("inherited$id",[])):new mc.ON,r=Yl(e.get("$id"));Wp(r)&&t.push(r),this.element.setMetaProperty("inherited$id",t)};this.ObjectElement=function(e){this.element=new Uv,t(e),r(e),this.parent=this.element;const n=of.compose.methods.ObjectElement.call(this,e);return Rc(this.element.$ref)&&(this.element.classes.push("reference-element"),this.element.setMetaProperty("referenced-element","schema")),n},this.BooleanElement=function(e){return this.element=$l(e),this.element.classes.push("boolean-json-schema"),bl}}}),sx=af,ix=hl(af,{methods:{ObjectElement(e){return this.element=$l(e),this.element.classes.push("json-schema-$vocabulary"),bl}}}),ox=af,ax=af,cx=af,lx=af,ux=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("reference-value"),bl}}}),px=hl(Af,rx,af,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-$defs")}}),hx=af,fx=hl(Yh,rx,af,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-allOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(qc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=$l(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),bl}}}),mx=hl(Yh,rx,af,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-anyOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(qc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=$l(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),bl}}}),dx=hl(Yh,rx,af,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-oneOf")},methods:{ArrayElement(e){return e.forEach((e=>{if(qc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=$l(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),bl}}}),yx=hl(Af,rx,af,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-dependentSchemas")}}),gx=hl(Yh,rx,af,{init(){this.element=new mc.ON,this.element.classes.push("json-schema-prefixItems")},methods:{ArrayElement(e){return e.forEach((e=>{if(qc(e)){const t=this.toRefractedElement(["document","objects","Schema"],e);this.element.push(t)}else{const t=$l(e);this.element.push(t)}})),this.copyMetaAndAttributes(e,this.element),bl}}}),vx=hl(Af,rx,af,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-properties")}}),bx=hl(Af,rx,af,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new mc.Sb,this.element.classes.push("json-schema-patternProperties")}}),xx=hl(af,{methods:{StringElement(e){return this.element=$l(e),this.element.classes.push("json-schema-type"),bl},ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-type"),bl}}}),Ex=hl(af,{methods:{ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-enum"),bl}}}),wx=af,jx=af,Ox=af,Sx=af,Px=af,Ax=af,$x=af,_x=af,kx=af,Tx=af,Ix=af,Cx=af,Mx=af,Rx=af,Fx=af,Nx=af,Dx=hl(af,{methods:{ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-required"),bl}}}),qx=hl(af,{methods:{ObjectElement(e){return this.element=$l(e),this.element.classes.push("json-schema-dependentRequired"),bl}}}),Lx=af,Bx=af,Ux=af,Vx=af,zx=af,Hx=af,Jx=hl(af,{methods:{ArrayElement(e){return this.element=$l(e),this.element.classes.push("json-schema-examples"),bl}}}),Gx=af,Wx=af,Kx=af,Yx=af,{visitors:{document:{objects:{Discriminator:{$visitor:Xx}}}}}=cv,Qx=hl(Xx,{props:{canSupportSpecificationExtensions:!0},init(){this.element=new yv}}),{visitors:{document:{objects:{XML:{$visitor:Zx}}}}}=cv,eE=hl(Zx,{init(){this.element=new Wv}}),tE=hl(Af,af,{props:{specPath:Ys(["document","objects","Schema"])},init(){this.element=new ey}});class rE extends mc.Sb{static primaryClass="components-path-items";constructor(e,t,r){super(e,t,r),this.classes.push(rE.primaryClass)}}const nE=rE,sE=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new nE},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(Hb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Example:{$visitor:iE}}}}}=cv,oE=hl(iE,{init(){this.element=new vv}}),{visitors:{document:{objects:{ExternalDocumentation:{$visitor:aE}}}}}=cv,cE=hl(aE,{init(){this.element=new bv}}),{visitors:{document:{objects:{Encoding:{$visitor:lE}}}}}=cv,uE=hl(lE,{init(){this.element=new gv}}),{visitors:{document:{objects:{Paths:{$visitor:pE}}}}}=cv,hE=hl(pE,{init(){this.element=new Rv}}),{visitors:{document:{objects:{RequestBody:{$visitor:fE}}}}}=cv,mE=hl(fE,{init(){this.element=new Dv}}),{visitors:{document:{objects:{Callback:{$visitor:dE}}}}}=cv,yE=hl(dE,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new fv},methods:{ObjectElement(e){const t=dE.compose.methods.ObjectElement.call(this,e);return this.element.filter(Hb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),t}}}),{visitors:{document:{objects:{Response:{$visitor:gE}}}}}=cv,vE=hl(gE,{init(){this.element=new qv}}),{visitors:{document:{objects:{Responses:{$visitor:bE}}}}}=cv,xE=hl(bE,{init(){this.element=new Lv}}),{visitors:{document:{objects:{Operation:{$visitor:EE}}}}}=cv,wE=hl(EE,{init(){this.element=new Iv}}),{visitors:{document:{objects:{PathItem:{$visitor:jE}}}}}=cv,OE=hl(jE,{init(){this.element=new Mv}}),{visitors:{document:{objects:{SecurityScheme:{$visitor:SE}}}}}=cv,PE=hl(SE,{init(){this.element=new zv}}),{visitors:{document:{objects:{OAuthFlows:{$visitor:AE}}}}}=cv,$E=hl(AE,{init(){this.element=new $v}}),{visitors:{document:{objects:{OAuthFlow:{$visitor:_E}}}}}=cv,kE=hl(_E,{init(){this.element=new Av}});class TE extends mc.Sb{static primaryClass="webhooks";constructor(e,t,r){super(e,t,r),this.classes.push(TE.primaryClass)}}const IE=TE,CE=hl(Af,af,{props:{specPath:e=>Zh(e)?["document","objects","Reference"]:["document","objects","PathItem"]},init(){this.element=new IE},methods:{ObjectElement(e){const t=Af.compose.methods.ObjectElement.call(this,e);return this.element.filter(Hb).forEach((e=>{e.setMetaProperty("referenced-element","pathItem")})),this.element.filter(Ub).forEach(((e,t)=>{e.setMetaProperty("webhook-name",Yl(t))})),t}}}),ME={visitors:{value:cv.visitors.value,document:{objects:{OpenApi:{$visitor:Kv,fixedFields:{openapi:cv.visitors.document.objects.OpenApi.fixedFields.openapi,info:{$ref:"#/visitors/document/objects/Info"},jsonSchemaDialect:ob,servers:cv.visitors.document.objects.OpenApi.fixedFields.servers,paths:{$ref:"#/visitors/document/objects/Paths"},webhooks:CE,components:{$ref:"#/visitors/document/objects/Components"},security:cv.visitors.document.objects.OpenApi.fixedFields.security,tags:cv.visitors.document.objects.OpenApi.fixedFields.tags,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Info:{$visitor:Xv,fixedFields:{title:cv.visitors.document.objects.Info.fixedFields.title,description:cv.visitors.document.objects.Info.fixedFields.description,summary:Qv,termsOfService:cv.visitors.document.objects.Info.fixedFields.termsOfService,contact:{$ref:"#/visitors/document/objects/Contact"},license:{$ref:"#/visitors/document/objects/License"},version:cv.visitors.document.objects.Info.fixedFields.version}},Contact:{$visitor:eb,fixedFields:{name:cv.visitors.document.objects.Contact.fixedFields.name,url:cv.visitors.document.objects.Contact.fixedFields.url,email:cv.visitors.document.objects.Contact.fixedFields.email}},License:{$visitor:rb,fixedFields:{name:cv.visitors.document.objects.License.fixedFields.name,identifier:nb,url:cv.visitors.document.objects.License.fixedFields.url}},Server:{$visitor:cb,fixedFields:{url:cv.visitors.document.objects.Server.fixedFields.url,description:cv.visitors.document.objects.Server.fixedFields.description,variables:cv.visitors.document.objects.Server.fixedFields.variables}},ServerVariable:{$visitor:ub,fixedFields:{enum:cv.visitors.document.objects.ServerVariable.fixedFields.enum,default:cv.visitors.document.objects.ServerVariable.fixedFields.default,description:cv.visitors.document.objects.ServerVariable.fixedFields.description}},Components:{$visitor:yb,fixedFields:{schemas:tE,responses:cv.visitors.document.objects.Components.fixedFields.responses,parameters:cv.visitors.document.objects.Components.fixedFields.parameters,examples:cv.visitors.document.objects.Components.fixedFields.examples,requestBodies:cv.visitors.document.objects.Components.fixedFields.requestBodies,headers:cv.visitors.document.objects.Components.fixedFields.headers,securitySchemes:cv.visitors.document.objects.Components.fixedFields.securitySchemes,links:cv.visitors.document.objects.Components.fixedFields.links,callbacks:cv.visitors.document.objects.Components.fixedFields.callbacks,pathItems:sE}},Paths:{$visitor:hE},PathItem:{$visitor:OE,fixedFields:{$ref:cv.visitors.document.objects.PathItem.fixedFields.$ref,summary:cv.visitors.document.objects.PathItem.fixedFields.summary,description:cv.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:cv.visitors.document.objects.PathItem.fixedFields.servers,parameters:cv.visitors.document.objects.PathItem.fixedFields.parameters}},Operation:{$visitor:wE,fixedFields:{tags:cv.visitors.document.objects.Operation.fixedFields.tags,summary:cv.visitors.document.objects.Operation.fixedFields.summary,description:cv.visitors.document.objects.Operation.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"},operationId:cv.visitors.document.objects.Operation.fixedFields.operationId,parameters:cv.visitors.document.objects.Operation.fixedFields.parameters,requestBody:cv.visitors.document.objects.Operation.fixedFields.requestBody,responses:{$ref:"#/visitors/document/objects/Responses"},callbacks:cv.visitors.document.objects.Operation.fixedFields.callbacks,deprecated:cv.visitors.document.objects.Operation.fixedFields.deprecated,security:cv.visitors.document.objects.Operation.fixedFields.security,servers:cv.visitors.document.objects.Operation.fixedFields.servers}},ExternalDocumentation:{$visitor:cE,fixedFields:{description:cv.visitors.document.objects.ExternalDocumentation.fixedFields.description,url:cv.visitors.document.objects.ExternalDocumentation.fixedFields.url}},Parameter:{$visitor:Ob,fixedFields:{name:cv.visitors.document.objects.Parameter.fixedFields.name,in:cv.visitors.document.objects.Parameter.fixedFields.in,description:cv.visitors.document.objects.Parameter.fixedFields.description,required:cv.visitors.document.objects.Parameter.fixedFields.required,deprecated:cv.visitors.document.objects.Parameter.fixedFields.deprecated,allowEmptyValue:cv.visitors.document.objects.Parameter.fixedFields.allowEmptyValue,style:cv.visitors.document.objects.Parameter.fixedFields.style,explode:cv.visitors.document.objects.Parameter.fixedFields.explode,allowReserved:cv.visitors.document.objects.Parameter.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:cv.visitors.document.objects.Parameter.fixedFields.example,examples:cv.visitors.document.objects.Parameter.fixedFields.examples,content:cv.visitors.document.objects.Parameter.fixedFields.content}},RequestBody:{$visitor:mE,fixedFields:{description:cv.visitors.document.objects.RequestBody.fixedFields.description,content:cv.visitors.document.objects.RequestBody.fixedFields.content,required:cv.visitors.document.objects.RequestBody.fixedFields.required}},MediaType:{$visitor:hb,fixedFields:{schema:{$ref:"#/visitors/document/objects/Schema"},example:cv.visitors.document.objects.MediaType.fixedFields.example,examples:cv.visitors.document.objects.MediaType.fixedFields.examples,encoding:cv.visitors.document.objects.MediaType.fixedFields.encoding}},Encoding:{$visitor:uE,fixedFields:{contentType:cv.visitors.document.objects.Encoding.fixedFields.contentType,headers:cv.visitors.document.objects.Encoding.fixedFields.headers,style:cv.visitors.document.objects.Encoding.fixedFields.style,explode:cv.visitors.document.objects.Encoding.fixedFields.explode,allowReserved:cv.visitors.document.objects.Encoding.fixedFields.allowReserved}},Responses:{$visitor:xE,fixedFields:{default:cv.visitors.document.objects.Responses.fixedFields.default}},Response:{$visitor:vE,fixedFields:{description:cv.visitors.document.objects.Response.fixedFields.description,headers:cv.visitors.document.objects.Response.fixedFields.headers,content:cv.visitors.document.objects.Response.fixedFields.content,links:cv.visitors.document.objects.Response.fixedFields.links}},Callback:{$visitor:yE},Example:{$visitor:oE,fixedFields:{summary:cv.visitors.document.objects.Example.fixedFields.summary,description:cv.visitors.document.objects.Example.fixedFields.description,value:cv.visitors.document.objects.Example.fixedFields.value,externalValue:cv.visitors.document.objects.Example.fixedFields.externalValue}},Link:{$visitor:ib,fixedFields:{operationRef:cv.visitors.document.objects.Link.fixedFields.operationRef,operationId:cv.visitors.document.objects.Link.fixedFields.operationId,parameters:cv.visitors.document.objects.Link.fixedFields.parameters,requestBody:cv.visitors.document.objects.Link.fixedFields.requestBody,description:cv.visitors.document.objects.Link.fixedFields.description,server:{$ref:"#/visitors/document/objects/Server"}}},Header:{$visitor:Pb,fixedFields:{description:cv.visitors.document.objects.Header.fixedFields.description,required:cv.visitors.document.objects.Header.fixedFields.required,deprecated:cv.visitors.document.objects.Header.fixedFields.deprecated,allowEmptyValue:cv.visitors.document.objects.Header.fixedFields.allowEmptyValue,style:cv.visitors.document.objects.Header.fixedFields.style,explode:cv.visitors.document.objects.Header.fixedFields.explode,allowReserved:cv.visitors.document.objects.Header.fixedFields.allowReserved,schema:{$ref:"#/visitors/document/objects/Schema"},example:cv.visitors.document.objects.Header.fixedFields.example,examples:cv.visitors.document.objects.Header.fixedFields.examples,content:cv.visitors.document.objects.Header.fixedFields.content}},Tag:{$visitor:vb,fixedFields:{name:cv.visitors.document.objects.Tag.fixedFields.name,description:cv.visitors.document.objects.Tag.fixedFields.description,externalDocs:{$ref:"#/visitors/document/objects/ExternalDocumentation"}}},Reference:{$visitor:xb,fixedFields:{$ref:cv.visitors.document.objects.Reference.fixedFields.$ref,summary:Eb,description:wb}},Schema:{$visitor:nx,fixedFields:{$schema:sx,$vocabulary:ix,$id:ox,$anchor:ax,$dynamicAnchor:cx,$dynamicRef:lx,$ref:ux,$defs:px,$comment:hx,allOf:fx,anyOf:mx,oneOf:dx,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:yx,prefixItems:gx,items:{$ref:"#/visitors/document/objects/Schema"},contains:{$ref:"#/visitors/document/objects/Schema"},properties:vx,patternProperties:bx,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:xx,enum:Ex,const:wx,multipleOf:jx,maximum:Ox,exclusiveMaximum:Sx,minimum:Px,exclusiveMinimum:Ax,maxLength:$x,minLength:_x,pattern:kx,maxItems:Tx,minItems:Ix,uniqueItems:Cx,maxContains:Mx,minContains:Rx,maxProperties:Fx,minProperties:Nx,required:Dx,dependentRequired:qx,title:Lx,description:Bx,default:Ux,deprecated:Vx,readOnly:zx,writeOnly:Hx,examples:Jx,format:Gx,contentEncoding:Wx,contentMediaType:Kx,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:Yx}},Discriminator:{$visitor:Qx,fixedFields:{propertyName:cv.visitors.document.objects.Discriminator.fixedFields.propertyName,mapping:cv.visitors.document.objects.Discriminator.fixedFields.mapping}},XML:{$visitor:eE,fixedFields:{name:cv.visitors.document.objects.XML.fixedFields.name,namespace:cv.visitors.document.objects.XML.fixedFields.namespace,prefix:cv.visitors.document.objects.XML.fixedFields.prefix,attribute:cv.visitors.document.objects.XML.fixedFields.attribute,wrapped:cv.visitors.document.objects.XML.fixedFields.wrapped}},SecurityScheme:{$visitor:PE,fixedFields:{type:cv.visitors.document.objects.SecurityScheme.fixedFields.type,description:cv.visitors.document.objects.SecurityScheme.fixedFields.description,name:cv.visitors.document.objects.SecurityScheme.fixedFields.name,in:cv.visitors.document.objects.SecurityScheme.fixedFields.in,scheme:cv.visitors.document.objects.SecurityScheme.fixedFields.scheme,bearerFormat:cv.visitors.document.objects.SecurityScheme.fixedFields.bearerFormat,flows:{$ref:"#/visitors/document/objects/OAuthFlows"},openIdConnectUrl:cv.visitors.document.objects.SecurityScheme.fixedFields.openIdConnectUrl}},OAuthFlows:{$visitor:$E,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:kE,fixedFields:{authorizationUrl:cv.visitors.document.objects.OAuthFlow.fixedFields.authorizationUrl,tokenUrl:cv.visitors.document.objects.OAuthFlow.fixedFields.tokenUrl,refreshUrl:cv.visitors.document.objects.OAuthFlow.fixedFields.refreshUrl,scopes:cv.visitors.document.objects.OAuthFlow.fixedFields.scopes}},SecurityRequirement:{$visitor:mb}},extension:{$visitor:cv.visitors.document.extension.$visitor}}}},RE=e=>{if(Mc(e))return`${e.element.charAt(0).toUpperCase()+e.element.slice(1)}Element`},FE={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"],...Rl},NE={namespace:e=>{const{base:t}=e;return t.register("callback",fv),t.register("components",mv),t.register("contact",dv),t.register("discriminator",yv),t.register("encoding",gv),t.register("example",vv),t.register("externalDocumentation",bv),t.register("header",xv),t.register("info",Ev),t.register("jsonSchemaDialect",jv),t.register("license",Ov),t.register("link",Sv),t.register("mediaType",Pv),t.register("oAuthFlow",Av),t.register("oAuthFlows",$v),t.register("openapi",_v),t.register("openApi3_1",Tv),t.register("operation",Iv),t.register("parameter",Cv),t.register("pathItem",Mv),t.register("paths",Rv),t.register("reference",Nv),t.register("requestBody",Dv),t.register("response",qv),t.register("responses",Lv),t.register("schema",Uv),t.register("securityRequirement",Vv),t.register("securityScheme",zv),t.register("server",Hv),t.register("serverVariable",Jv),t.register("tag",Gv),t.register("xml",Wv),t}},DE=()=>{const e=ll(NE);return{predicates:{...l,isStringElement:Rc,isArrayElement:Lc,isObjectElement:qc,isServersElement:wm,includesClasses:Xc},namespace:e}},qE=(e,{specPath:t=["visitors","document","objects","OpenApi","$visitor"],plugins:r=[]}={})=>{const n=(0,mc.Qc)(e),s=gp(ME),i=Ac(t,[],s);return Nl(n,i,{state:{specObj:s}}),Dl(i.element,r,{toolboxCreator:DE,visitorOptions:{keyMap:FE,nodeTypeGetter:RE}})},LE=e=>(t,r={})=>qE(t,{specPath:e,...r});fv.refract=LE(["visitors","document","objects","Callback","$visitor"]),mv.refract=LE(["visitors","document","objects","Components","$visitor"]),dv.refract=LE(["visitors","document","objects","Contact","$visitor"]),vv.refract=LE(["visitors","document","objects","Example","$visitor"]),yv.refract=LE(["visitors","document","objects","Discriminator","$visitor"]),gv.refract=LE(["visitors","document","objects","Encoding","$visitor"]),bv.refract=LE(["visitors","document","objects","ExternalDocumentation","$visitor"]),xv.refract=LE(["visitors","document","objects","Header","$visitor"]),Ev.refract=LE(["visitors","document","objects","Info","$visitor"]),jv.refract=LE(["visitors","document","objects","OpenApi","fixedFields","jsonSchemaDialect"]),Ov.refract=LE(["visitors","document","objects","License","$visitor"]),Sv.refract=LE(["visitors","document","objects","Link","$visitor"]),Pv.refract=LE(["visitors","document","objects","MediaType","$visitor"]),Av.refract=LE(["visitors","document","objects","OAuthFlow","$visitor"]),$v.refract=LE(["visitors","document","objects","OAuthFlows","$visitor"]),_v.refract=LE(["visitors","document","objects","OpenApi","fixedFields","openapi"]),Tv.refract=LE(["visitors","document","objects","OpenApi","$visitor"]),Iv.refract=LE(["visitors","document","objects","Operation","$visitor"]),Cv.refract=LE(["visitors","document","objects","Parameter","$visitor"]),Mv.refract=LE(["visitors","document","objects","PathItem","$visitor"]),Rv.refract=LE(["visitors","document","objects","Paths","$visitor"]),Nv.refract=LE(["visitors","document","objects","Reference","$visitor"]),Dv.refract=LE(["visitors","document","objects","RequestBody","$visitor"]),qv.refract=LE(["visitors","document","objects","Response","$visitor"]),Lv.refract=LE(["visitors","document","objects","Responses","$visitor"]),Uv.refract=LE(["visitors","document","objects","Schema","$visitor"]),Vv.refract=LE(["visitors","document","objects","SecurityRequirement","$visitor"]),zv.refract=LE(["visitors","document","objects","SecurityScheme","$visitor"]),Hv.refract=LE(["visitors","document","objects","Server","$visitor"]),Jv.refract=LE(["visitors","document","objects","ServerVariable","$visitor"]),Gv.refract=LE(["visitors","document","objects","Tag","$visitor"]),Wv.refract=LE(["visitors","document","objects","XML","$visitor"]);const BE=class extends cp{};const UE=class extends Array{unknownMediaType="application/octet-stream";filterByFormat(){throw new BE("filterByFormat method in MediaTypes class is not yet implemented.")}findBy(){throw new BE("findBy method in MediaTypes class is not yet implemented.")}latest(){throw new BE("latest method in MediaTypes class is not yet implemented.")}};class VE extends UE{filterByFormat(e="generic"){const t="generic"===e?"openapi;version":e;return this.filter((e=>e.includes(t)))}findBy(e="3.1.0",t="generic"){const r="generic"===t?`vnd.oai.openapi;version=${e}`:`vnd.oai.openapi+${t};version=${e}`;return this.find((e=>e.includes(r)))||this.unknownMediaType}latest(e="generic"){return co(this.filterByFormat(e))}}const zE=new VE("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"),HE=hl({props:{uri:"",value:null,depth:0,refSet:null,errors:[]},init({depth:e=this.depth,refSet:t=this.refSet,uri:r=this.uri,value:n=this.value}={}){this.uri=r,this.value=n,this.depth=e,this.refSet=t,this.errors=[]}}),JE=hl({props:{rootRef:null,refs:[],circular:!1},init({refs:e=[]}={}){this.refs=[],e.forEach((e=>this.add(e)))},methods:{get size(){return this.refs.length},add(e){return this.has(e)||(this.refs.push(e),this.rootRef=null===this.rootRef?e:this.rootRef,e.refSet=this),this},merge(e){for(const t of e.values())this.add(t);return this},has(e){const t=Qo(e)?e:e.uri;return Go(this.find(jo(t,"uri")))},find(e){return this.refs.find(e)},*values(){yield*this.refs},clean(){this.refs.forEach((e=>{e.refSet=null})),this.refs=[]}}}),GE=JE,WE={parse:{mediaType:"text/plain",parsers:[],parserOpts:{}},resolve:{baseURI:"",resolvers:[],resolverOpts:{},strategies:[],external:!0,maxDepth:1/0},dereference:{strategies:[],refSet:null,maxDepth:1/0}},KE=lo(po(["resolve","baseURI"]),oi(["resolve","baseURI"])),YE=e=>ou(e)?fa():e,XE=hl({props:{uri:null,mediaType:"text/plain",data:null,parseResult:null},init({uri:e=this.uri,mediaType:t=this.mediaType,data:r=this.data,parseResult:n=this.parseResult}={}){this.uri=e,this.mediaType=t,this.data=r,this.parseResult=n},methods:{get extension(){return Qo(this.uri)?aa(this.uri):""},toString(){if("string"==typeof this.data)return this.data;if(this.data instanceof ArrayBuffer||["ArrayBuffer"].includes(ps(this.data))||ArrayBuffer.isView(this.data)){return new TextDecoder("utf-8").decode(this.data)}return String(this.data)}}});const QE=class extends yl{constructor(e,t){super(e,{cause:t.cause}),this.plugin=t.plugin}},ZE=async(e,t,r)=>{const n=await Promise.all(r.map(Ac([e],[t])));return r.filter(((e,t)=>n[t]))},ew=async(e,t,r)=>{let n;for(const s of r)try{const r=await s[e].call(s,...t);return{plugin:s,result:r}}catch(e){n=new QE("Error while running plugin",{cause:e,plugin:s})}return Promise.reject(n)};const tw=class extends yl{};const rw=class extends tw{};const nw=class extends yl{},sw=async(e,t)=>{let r=e,n=!1;if(!Jc(e)){const t=Tl(e);t.classes.push("result"),r=new xc([t]),n=!0}const s=XE({uri:t.resolve.baseURI,parseResult:r,mediaType:t.parse.mediaType}),i=await ZE("canDereference",s,t.dereference.strategies);if(oo(i))throw new rw(s.uri);try{const{result:e}=await ew("dereference",[s,t],i);return n?e.get(0):e}catch(e){throw new nw(`Error while dereferencing file "${s.uri}"`,{cause:e})}},iw=async(e,t={})=>{const r=((e,t)=>{const r=yo(e,t);return bo(KE,YE,r)})(WE,t);return sw(e,r)},ow=hl({props:{name:"",allowEmpty:!0,sourceMap:!1,fileExtensions:[],mediaTypes:[]},init({allowEmpty:e=this.allowEmpty,sourceMap:t=this.sourceMap,fileExtensions:r=this.fileExtensions,mediaTypes:n=this.mediaTypes}={}){this.allowEmpty=e,this.sourceMap=t,this.fileExtensions=r,this.mediaTypes=n},methods:{async canParse(){throw new BE("canParse method in Parser stamp is not yet implemented.")},async parse(){throw new BE("parse method in Parser stamp is not yet implemented.")}}}),aw=ow,cw=hl(aw,{props:{name:"binary"},methods:{async canParse(e){return 0===this.fileExtensions.length||this.fileExtensions.includes(e.extension)},async parse(e){try{const t=unescape(encodeURIComponent(e.toString())),r=btoa(t),n=new xc;if(0!==r.length){const e=new mc.RP(r);e.classes.push("result"),n.push(e)}return n}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}}}),lw=hl({props:{name:null},methods:{canResolve:()=>!1,async resolve(){throw new BE("resolve method in ResolveStrategy stamp is not yet implemented.")}}});const uw=Zn(1,Us(Promise.all,Promise));const pw=class extends nw{};const hw=class extends yl{};const fw=class extends hw{};const mw=class extends yl{};const dw=class extends mw{};const yw=class extends hw{},gw=async(e,t)=>{const r=XE({uri:da(ha(e)),mediaType:t.parse.mediaType}),n=await(async(e,t)=>{const r=t.resolve.resolvers.map((e=>{const r=Object.create(e);return Object.assign(r,t.resolve.resolverOpts)})),n=await ZE("canRead",e,r);if(oo(n))throw new yw(e.uri);try{const{result:t}=await ew("read",[e],n);return t}catch(t){throw new hw(`Error while reading file "${e.uri}"`,{cause:t})}})(r,t);return(async(e,t)=>{const r=t.parse.parsers.map((e=>{const r=Object.create(e);return Object.assign(r,t.parse.parserOpts)})),n=await ZE("canParse",e,r);if(oo(n))throw new yw(e.uri);try{const{plugin:t,result:r}=await ew("parse",[e],n);return!t.allowEmpty&&r.isEmpty?Promise.reject(new tw(`Error while parsing file "${e.uri}". File is empty.`)):r}catch(t){throw new tw(`Error while parsing file "${e.uri}"`,{cause:t})}})(XE({...r,data:n}),t)},vw=(e,t)=>{const r=Fl({predicate:e});return Nl(t,r),new mc.O4(r.result)},bw=(e,t)=>{const r=Fl({predicate:e,returnOnTrue:bl});return Nl(t,r),xo(void 0,[0],r.result)};const xw=class extends yl{};const Ew=class extends xw{};const ww=class extends xw{constructor(e){super(`Invalid JSON Schema $anchor "${e}".`)}},jw=e=>/^[A-Za-z_][A-Za-z_0-9.-]*$/.test(e),Ow=e=>{const t=pa(e);return au("#",t)},Sw=(e,t)=>{const r=(e=>{if(!jw(e))throw new ww(e);return e})(e),n=bw((e=>Yb(e)&&Yl(e.$anchor)===r),t);if(Jo(n))throw new Ew(`Evaluation failed on token: "${r}"`);return n},Pw=(e,t)=>{if(void 0===t.$ref)return;const r=pa(Yl(t.$ref)),n=Yl(t.meta.get("inherited$id"));return`${Ws(((e,t)=>ma(e,da(ha(t)))),e,[...n,Yl(t.$ref)])}${"#"===r?"":r}`},Aw=e=>{if(Aw.cache.has(e))return Aw.cache.get(e);const t=Uv.refract(e);return Aw.cache.set(e,t),t};Aw.cache=new WeakMap;const $w=e=>Wc(e)?Aw(e):e,_w=(e,t)=>{const{cache:r}=_w,n=ha(e),s=e=>Yb(e)&&void 0!==e.$id;if(!r.has(t)){const e=vw(s,t);r.set(t,Array.from(e))}const i=r.get(t).find((e=>((e,t)=>{if(void 0===t.$id)return;const r=Yl(t.meta.get("inherited$id"));return Ws(((e,t)=>ma(e,da(ha(t)))),e,[...r,Yl(t.$id)])})(n,e)===n));if(Jo(i))throw new dw(`Evaluation failed on URI: "${e}"`);let o,a;return jw(Ow(e))?(o=Sw,a=Ow(e)):(o=fu,a=uu(e)),o(a,i)};_w.cache=new WeakMap;const kw=Nl[Symbol.for("nodejs.util.promisify.custom")],Tw=hl({props:{indirections:[],namespace:null,reference:null,crawledElements:null,crawlingMap:null,visited:null,options:null},init({reference:e,namespace:t,indirections:r=[],visited:n=new WeakSet,options:s}){this.indirections=r,this.namespace=t,this.reference=e,this.crawledElements=[],this.crawlingMap={},this.visited=n,this.options=s},methods:{toBaseURI(e){return ma(this.reference.uri,da(ha(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new fw(`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(jo(t,"uri"));const n=await gw(ya(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=HE({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},ReferenceElement(e){if(!this.options.resolve.external&&Jb(e))return!1;const t=Yl(e.$ref),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},PathItemElement(e){if(!Rc(e.$ref))return;if(!this.options.resolve.external&&Vb(e))return;const t=Yl(e.$ref),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t)),this.crawledElements.push(e)},LinkElement(e){if((Rc(e.operationRef)||Rc(e.operationId))&&(this.options.resolve.external||!Nb(e))){if(Rc(e.operationRef)&&Rc(e.operationId))throw new yl("LinkElement operationRef and operationId are mutually exclusive.");if(Nb(e)){const t=Yl(e.operationRef),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t))}}},ExampleElement(e){if(!Rc(e.externalValue))return;if(!this.options.resolve.external&&Rc(e.externalValue))return;if(e.hasKey("value")&&Rc(e.externalValue))throw new yl("ExampleElement value and externalValue fields are mutually exclusive.");const t=Yl(e.externalValue),r=this.toBaseURI(t);Yi(r,this.crawlingMap)||(this.crawlingMap[r]=this.toReference(t))},async SchemaElement(e){if(this.visited.has(e))return!1;if(!Rc(e.$ref))return void this.visited.add(e);const t=await this.toReference(ya(this.reference.uri)),{uri:r}=t,n=Pw(r,e),s=ha(n),i=XE({uri:s}),o=go((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o,c=!o&&r!==s;if(this.options.resolve.external||!c){if(!Yi(s,this.crawlingMap))try{this.crawlingMap[s]=o||a?t:this.toReference(ya(n))}catch(e){if(!(a&&e instanceof dw))throw e;this.crawlingMap[s]=this.toReference(ya(n))}this.crawledElements.push(e)}else this.visited.add(e)},async crawlReferenceElement(e){const t=await this.toReference(Yl(e.$ref));this.indirections.push(e);const r=uu(Yl(e.$ref));let n=fu(r,t.value.result);if(Wc(n)){const t=Yl(e.meta.get("referenced-element"));if(Zh(n))n=Nv.refract(n),n.setMetaProperty("referenced-element",t);else{n=this.namespace.getElementClass(t).refract(n)}}if(this.indirections.includes(n))throw new yl("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=Tw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await kw(n,s,{keyMap:FE,nodeTypeGetter:RE}),await s.crawl(),this.indirections.pop()},async crawlPathItemElement(e){const t=await this.toReference(Yl(e.$ref));this.indirections.push(e);const r=uu(Yl(e.$ref));let n=fu(r,t.value.result);if(Wc(n)&&(n=Mv.refract(n)),this.indirections.includes(n))throw new yl("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const s=Tw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options});await kw(n,s,{keyMap:FE,nodeTypeGetter:RE}),await s.crawl(),this.indirections.pop()},async crawlSchemaElement(e){let t=await this.toReference(ya(this.reference.uri));const{uri:r}=t,n=Pw(r,e),s=ha(n),i=XE({uri:s}),o=go((e=>e.canRead(i)),this.options.resolve.resolvers),a=!o;let c;this.indirections.push(e);try{if(o||a){c=_w(n,$w(t.value.result))}else{t=await this.toReference(ya(n));const e=uu(n);c=$w(fu(e,t.value.result))}}catch(e){if(!(a&&e instanceof dw))throw e;if(jw(Ow(n))){t=await this.toReference(ya(n));const e=Ow(n);c=Sw(e,$w(t.value.result))}else{t=await this.toReference(ya(n));const e=uu(n);c=$w(fu(e,t.value.result))}}if(this.visited.add(e),this.indirections.includes(c))throw new yl("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);const l=Tw({reference:t,namespace:this.namespace,indirections:[...this.indirections],options:this.options,visited:this.visited});await kw(c,l,{keyMap:FE,nodeTypeGetter:RE}),await l.crawl(),this.indirections.pop()},async crawl(){await vi(si,uw)(this.crawlingMap),this.crawlingMap=null;for(const e of this.crawledElements)Hb(e)?await this.crawlReferenceElement(e):Yb(e)?await this.crawlSchemaElement(e):Ub(e)&&await this.crawlPathItemElement(e)}}}),Iw=Tw,Cw=Nl[Symbol.for("nodejs.util.promisify.custom")],Mw=hl(lw,{init(){this.name="openapi-3-1"},methods:{canResolve(e){var t;return"text/plain"!==e.mediaType?zE.includes(e.mediaType):qb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async resolve(e,t){const r=ll(NE),n=HE({uri:e.uri,value:e.parseResult}),s=Iw({reference:n,namespace:r,options:t}),i=GE();return i.add(n),await Cw(i.rootRef.value,s,{keyMap:FE,nodeTypeGetter:RE}),await s.crawl(),i}}}),Rw=Mw,Fw=e=>e.replace(/\s/g,""),Nw=e=>e.replace(/\W/gi,"_"),Dw=(e,t,r)=>{const n=Fw(e);return n.length>0?Nw(n):((e,t)=>`${Nw(Fw(t.toLowerCase()))}${Nw(Fw(e))}`)(t,r)},qw=({operationIdNormalizer:e=Dw}={})=>({predicates:t,namespace:r})=>{const n=[],s=[],i=[];return{visitor:{OpenApi3_1Element:{leave(){const e=Wi((e=>Yl(e.operationId)),s);Object.entries(e).forEach((([e,t])=>{Array.isArray(t)&&(t.length<=1||t.forEach(((t,n)=>{const s=`${e}${n+1}`;t.operationId=new r.elements.String(s)})))})),i.forEach((e=>{if(void 0===e.operationId)return;const t=String(Yl(e.operationId)),r=s.find((e=>Yl(e.meta.get("originalOperationId"))===t));void 0!==r&&(e.operationId=$l.safe(r.operationId),e.meta.set("originalOperationId",t),e.set("__originalOperationId",t))})),s.length=0,i.length=0}},PathItemElement:{enter(e){const t=$i("path",Yl(e.meta.get("path")));n.push(t)},leave(){n.pop()}},OperationElement:{enter(t){if(void 0===t.operationId)return;const i=String(Yl(t.operationId)),o=co(n),a=$i("method",Yl(t.meta.get("http-method"))),c=e(i,o,a);i!==c&&(t.operationId=new r.elements.String(c),t.set("__originalOperationId",i),t.meta.set("originalOperationId",i),s.push(t))}},LinkElement:{leave(e){t.isLinkElement(e)&&void 0!==e.operationId&&i.push(e)}}}}},Lw=()=>({predicates:e})=>{const t=(t,r)=>!!e.isParameterElement(t)&&(!!e.isParameterElement(r)&&(!!e.isStringElement(t.name)&&(!!e.isStringElement(t.in)&&(!!e.isStringElement(r.name)&&(!!e.isStringElement(r.in)&&(Yl(t.name)===Yl(r.name)&&Yl(t.in)===Yl(r.in))))))),r=[];return{visitor:{PathItemElement:{enter(t,n,s,i,o){if(o.some(e.isComponentsElement))return;const{parameters:a}=t;e.isArrayElement(a)?r.push([...a.content]):r.push([])},leave(){r.pop()}},OperationElement:{leave(e){const n=co(r);if(!Array.isArray(n)||0===n.length)return;const s=xo([],["parameters","content"],e),i=Bo(t,[...s,...n]);e.parameters=new vg(i)}}}}},Bw=()=>({predicates:e})=>{let t;return{visitor:{OpenApi3_1Element:{enter(r){e.isArrayElement(r.security)&&(t=r.security)},leave(){t=void 0}},OperationElement:{leave(r,n,s,i,o){if(o.some(e.isComponentsElement))return;var a;void 0===r.security&&void 0!==t&&(r.security=new Ag(null===(a=t)||void 0===a?void 0:a.content))}}}}},Uw=()=>({predicates:e,namespace:t})=>({visitor:{OpenApi3_1Element(r){const n=void 0===r.servers,s=e.isArrayElement(r.servers),i=s&&0===r.servers.length,o=t.elements.Server.refract({url:"/"});n||!s?r.servers=new Nf([o]):s&&i&&r.servers.push(o)},PathItemElement(t,r,n,s,i){if(i.some(e.isComponentsElement))return;if(!i.some(e.isOpenApi3_1Element))return;const o=i.find(e.isOpenApi3_1Element),a=void 0===t.servers,c=e.isArrayElement(t.servers),l=c&&0===t.servers.length;if(e.isOpenApi3_1Element(o)){var u;const e=null===(u=o.servers)||void 0===u?void 0:u.content,r=null!=e?e:[];a||!c?t.servers=new Ng(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}},OperationElement(t,r,n,s,i){if(i.some(e.isComponentsElement))return;if(!i.some(e.isOpenApi3_1Element))return;const o=[...i].reverse().find(e.isPathItemElement),a=void 0===t.servers,c=e.isArrayElement(t.servers),l=c&&0===t.servers.length;if(e.isPathItemElement(o)){var u;const e=null===(u=o.servers)||void 0===u?void 0:u.content,r=null!=e?e:[];a||!c?t.servers=new kg(r):c&&l&&r.forEach((e=>{t.servers.push(e)}))}}}}),Vw=()=>({predicates:e})=>({visitor:{ParameterElement:{leave(t,r,n,s,i){var o,a;if(!i.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>$l.safe(e.value)));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[$l(t.example)]),void 0!==t.schema.example&&t.schema.set("example",$l(t.example)))}}}}}),zw=()=>({predicates:e})=>({visitor:{HeaderElement:{leave(t,r,n,s,i){var o,a;if(!i.some(e.isComponentsElement)&&void 0!==t.schema&&e.isSchemaElement(t.schema)&&(void 0!==(null===(o=t.schema)||void 0===o?void 0:o.example)||void 0!==(null===(a=t.schema)||void 0===a?void 0:a.examples))){if(void 0!==t.examples&&e.isObjectElement(t.examples)){const e=t.examples.map((e=>$l.safe(e.value)));return void 0!==t.schema.examples&&t.schema.set("examples",e),void(void 0!==t.schema.example&&t.schema.set("example",e))}void 0!==t.example&&(void 0!==t.schema.examples&&t.schema.set("examples",[$l(t.example)]),void 0!==t.schema.example&&t.schema.set("example",$l(t.example)))}}}}}),Hw=e=>t=>{if(t?.$$normalized)return t;if(Hw.cache.has(t))return t;const r=Tv.refract(t),n=e(r),s=Yl(n);return Hw.cache.set(t,s),s};Hw.cache=new WeakMap;const Jw=e=>{if(!qc(e))return e;if(e.hasKey("$$normalized"))return e;const t=[qw({operationIdNormalizer:(e,t,r)=>tc({operationId:e},t,r,{v2OperationIdCompatibilityMode:!1})}),Lw(),Bw(),Uw(),Vw(),zw()],r=Dl(e,t,{toolboxCreator:DE,visitorOptions:{keyMap:FE,nodeTypeGetter:RE}});return r.set("$$normalized",!0),r},Gw=hl({props:{name:null},methods:{canRead:()=>!1,async read(){throw new BE("read method in Resolver stamp is not yet implemented.")}}}),Ww=hl(Gw,{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=>la(e.uri),async read(){throw new BE("read method in HttpResolver stamp is not yet implemented.")},getHttpClient(){throw new BE("getHttpClient method in HttpResolver stamp is not yet implemented.")}}}),{AbortController:Kw,AbortSignal:Yw}=globalThis;void 0===globalThis.AbortController&&(globalThis.AbortController=Kw),void 0===globalThis.AbortSignal&&(globalThis.AbortSignal=Yw);const Xw=Ww.compose({props:{name:"http-swagger-client",swaggerHTTPClient:Sr,swaggerHTTPClientConfig:{}},init(){let{swaggerHTTPClient:e=this.swaggerHTTPClient}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.swaggerHTTPClient=e},methods:{getHttpClient(){return this.swaggerHTTPClient},async read(e){const t=this.getHttpClient(),r=new AbortController,{signal:n}=r,s=setTimeout((()=>{r.abort()}),this.timeout),i=this.getHttpClient().withCredentials||this.withCredentials?"include":"same-origin",o=0===this.redirects?"error":"follow",a=this.redirects>0?this.redirects:void 0;try{return(await t({url:e.uri,signal:n,userFetch:async(e,t)=>{let r=await fetch(e,t);try{r.headers.delete("Content-Type")}catch{r=new Response(r.body,{...r,headers:new Headers(r.headers)}),r.headers.delete("Content-Type")}return r},credentials:i,redirect:o,follow:a,...this.swaggerHTTPClientConfig})).text.arrayBuffer()}catch(t){throw new hw(`Error downloading "${e.uri}"`,{cause:t})}finally{clearTimeout(s)}}}}),Qw=(e,t=ul)=>{if(Qo(e))try{return t.fromRefract(JSON.parse(e))}catch{}return ol(e)&&Yi("element",e)?t.fromRefract(e):t.toElement(e)},Zw=aw.compose({props:{name:"json-swagger-client",fileExtensions:[".json"],mediaTypes:["application/json"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||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(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new tw("json-swagger-client parser plugin doesn't support sourceMaps option");const t=new xc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=Qw(JSON.parse(r));return e.classes.push("result"),t.push(e),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}}}),ej=aw.compose({props:{name:"yaml-1-2-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:["text/yaml","application/yaml"]},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{return hr.load(e.toString(),{schema:tr}),!0}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new tw("yaml-1-2-swagger-client parser plugin doesn't support sourceMaps option");const t=new xc,r=e.toString();try{const e=hr.load(r,{schema:tr});if(this.allowEmpty&&void 0===e)return t;const n=Qw(e);return n.classes.push("result"),t.push(n),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}}}),tj=aw.compose({props:{name:"openapi-json-3-1-swagger-client",fileExtensions:[".json"],mediaTypes:new VE(...zE.filterByFormat("generic"),...zE.filterByFormat("json")),detectionRegExp:/"openapi"\s*:\s*"(?<version_json>3\.1\.(?:[1-9]\d*|0))"/},methods:{async canParse(e){const t=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return JSON.parse(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new tw("openapi-json-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new xc,r=e.toString();if(this.allowEmpty&&""===r.trim())return t;try{const e=JSON.parse(r),n=Tv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}}}),rj=aw.compose({props:{name:"openapi-yaml-3-1-swagger-client",fileExtensions:[".yaml",".yml"],mediaTypes:new VE(...zE.filterByFormat("generic"),...zE.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=0===this.fileExtensions.length||this.fileExtensions.includes(e.extension),r=this.mediaTypes.includes(e.mediaType);if(!t)return!1;if(r)return!0;if(!r)try{const t=e.toString();return hr.load(t),this.detectionRegExp.test(t)}catch(e){return!1}return!1},async parse(e){if(this.sourceMap)throw new tw("openapi-yaml-3-1-swagger-client parser plugin doesn't support sourceMaps option");const t=new xc,r=e.toString();try{const e=hr.load(r,{schema:tr});if(this.allowEmpty&&void 0===e)return t;const n=Tv.refract(e,this.refractorOpts);return n.classes.push("result"),t.push(n),t}catch(t){throw new tw(`Error parsing "${e.uri}"`,{cause:t})}}}}),nj=hl({props:{name:null},methods:{canDereference:()=>!1,async dereference(){throw new BE("dereference method in DereferenceStrategy stamp is not yet implemented.")}}});var sj=r(7913);const ij=class extends gl{constructor(e,t){super(e,t),void 0!==t&&(this.value=t.value)}},oj=hl({props:{uuid:null,length:null,identityMap:null},init({length:e=6}={}){this.length=6,this.uuid=new sj({length:e}),this.identityMap=new WeakMap},methods:{identify(e){if(!Mc(e))throw new ij("Cannot not identify the element. `element` is neither structurally compatible nor a subclass of an Element class.",{value:e});if(e.meta.hasKey("id")&&Rc(e.meta.id)&&!e.meta.id.equals(""))return e.id;if(this.identityMap.has(e))return this.identityMap.get(e);const t=new mc.RP(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()}}});oj({length:6});class aj extends Array{includesCycle(e){return this.filter((t=>t.has(e))).length>1}includes(e,t){return e instanceof Set?super.includes(e,t):this.some((t=>t.has(e)))}findItem(e){for(const t of this)for(const r of t)if(Mc(r)&&e(r))return r}}const cj=Nl[Symbol.for("nodejs.util.promisify.custom")],lj=oj(),uj=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Yl(lj.identify(e))),pj=hl({props:{indirections:null,namespace:null,reference:null,options:null,ancestors:null},init({indirections:e=[],reference:t,namespace:r,options:n,ancestors:s=new aj}){this.indirections=e,this.namespace=r,this.reference=t,this.options=n,this.ancestors=new aj(...s)},methods:{toBaseURI(e){return ma(this.reference.uri,da(ha(e)))},async toReference(e){if(this.reference.depth>=this.options.resolve.maxDepth)throw new fw(`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(jo(t,"uri"));const n=await gw(ya(t),{...this.options,parse:{...this.options.parse,mediaType:"text/plain"}}),s=HE({uri:t,value:n,depth:this.reference.depth+1});return r.add(s),s},toAncestorLineage(e){const t=new Set(e.filter(Mc));return[new aj(...this.ancestors,t),t]},async ReferenceElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(i.includesCycle(e))return!1;if(!this.options.resolve.external&&Jb(e))return!1;const a=await this.toReference(Yl(e.$ref)),{uri:c}=a,l=ma(c,Yl(e.$ref));this.indirections.push(e);const u=uu(l);let p=fu(u,a.value.result);if(Wc(p)){const t=Yl(e.meta.get("referenced-element"));if(Zh(p))p=Nv.refract(p),p.setMetaProperty("referenced-element",t);else{p=this.namespace.getElementClass(t).refract(p)}}if(this.indirections.includes(p))throw new yl("Recursive Reference Object detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=pj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});p=await cj(p,h,{keyMap:FE,nodeTypeGetter:RE}),o.delete(e),this.indirections.pop();const f=t=>{const r=Tl(t);return r.setMetaProperty("ref-fields",{$ref:Yl(e.$ref),description:Yl(e.description),summary:Yl(e.summary)}),r.setMetaProperty("ref-origin",a.uri),r.setMetaProperty("ref-referencing-element-id",$l(lj.identify(e))),qc(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),r};if(i.includes(e)||i.includes(p)){var m;const n=null!==(m=i.findItem(uj(e)))&&void 0!==m?m:f(p);return Bc(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return f(p)},async PathItemElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Rc(e.$ref))return;if(i.includesCycle(e))return!1;if(!this.options.resolve.external&&Vb(e))return;const a=await this.toReference(Yl(e.$ref)),{uri:c}=a,l=ma(c,Yl(e.$ref));this.indirections.push(e);const u=uu(l);let p=fu(u,a.value.result);if(Wc(p)&&(p=Mv.refract(p)),this.indirections.includes(p))throw new yl("Recursive Path Item Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const h=pj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});p=await cj(p,h,{keyMap:FE,nodeTypeGetter:RE}),o.delete(e),this.indirections.pop();const f=t=>{const r=new Mv([...t.content],$l(t.meta),$l(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Yl(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Yl(e.$ref)}),r.setMetaProperty("ref-origin",a.uri),r.setMetaProperty("ref-referencing-element-id",$l(lj.identify(e))),r};if(i.includes(e)||i.includes(p)){var m;const n=null!==(m=i.findItem(uj(e)))&&void 0!==m?m:f(p);return Bc(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return f(p)},async LinkElement(e){if(!Rc(e.operationRef)&&!Rc(e.operationId))return;if(!this.options.resolve.external&&Nb(e))return;if(Rc(e.operationRef)&&Rc(e.operationId))throw new yl("LinkElement operationRef and operationId fields are mutually exclusive.");let t;if(Rc(e.operationRef)){var r;const n=uu(Yl(e.operationRef)),s=await this.toReference(Yl(e.operationRef));t=fu(n,s.value.result),Wc(t)&&(t=Iv.refract(t)),t=Tl(t),t.setMetaProperty("ref-origin",s.uri);const i=Tl(e);return null===(r=i.operationRef)||void 0===r||r.meta.set("operation",t),i}if(Rc(e.operationId)){var n;const r=Yl(e.operationId),s=await this.toReference(ya(this.reference.uri));if(t=bw((e=>Lb(e)&&Mc(e.operationId)&&e.operationId.equals(r)),s.value.result),Jo(t))throw new yl(`OperationElement(operationId=${r}) not found.`);const i=Tl(e);return null===(n=i.operationId)||void 0===n||n.meta.set("operation",t),i}},async ExampleElement(e,t,r,n,s){const[i]=this.toAncestorLineage([...s,r]);if(!Rc(e.externalValue))return;if(i.includesCycle(e))return!1;if(!this.options.resolve.external&&Rc(e.externalValue))return;if(e.hasKey("value")&&Rc(e.externalValue))throw new yl("ExampleElement value and externalValue fields are mutually exclusive.");const o=await this.toReference(Yl(e.externalValue)),a=Tl(o.value.result);a.setMetaProperty("ref-origin",o.uri);const c=Tl(e);return c.value=a,c},async SchemaElement(e,t,r,n,s){const[i,o]=this.toAncestorLineage([...s,r]);if(!Rc(e.$ref))return;if(i.includesCycle(e))return!1;let a=await this.toReference(ya(this.reference.uri)),{uri:c}=a;const l=Pw(c,e),u=ha(l),p=XE({uri:u}),h=go((e=>e.canRead(p)),this.options.resolve.resolvers),f=!h,m=f&&c!==u;if(!this.options.resolve.external&&m)return;let d;this.indirections.push(e);try{if(h||f){d=_w(l,$w(a.value.result))}else{a=await this.toReference(ya(l));const e=uu(l);d=$w(fu(e,a.value.result))}}catch(e){if(!(f&&e instanceof dw))throw e;if(jw(Ow(l))){a=await this.toReference(ya(l)),c=a.uri;const e=Ow(l);d=Sw(e,$w(a.value.result))}else{a=await this.toReference(ya(l)),c=a.uri;const e=uu(l);d=$w(fu(e,a.value.result))}}if(this.indirections.includes(d))throw new yl("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);o.add(e);const y=pj({reference:a,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:i});if(d=await cj(d,y,{keyMap:FE,nodeTypeGetter:RE}),o.delete(e),this.indirections.pop(),Xb(d)){const t=$l(d);return t.setMetaProperty("ref-fields",{$ref:Yl(e.$ref)}),t.setMetaProperty("ref-origin",a.uri),t.setMetaProperty("ref-referencing-element-id",$l(lj.identify(e))),t}const g=t=>{const r=new Uv([...t.content],$l(t.meta),$l(t.attributes));return e.forEach(((e,t,n)=>{r.remove(Yl(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Yl(e.$ref)}),r.setMetaProperty("ref-origin",a.uri),r.setMetaProperty("ref-referencing-element-id",$l(lj.identify(e))),r};if(i.includes(e)||i.includes(d)){var v;const n=null!==(v=i.findItem(uj(e)))&&void 0!==v?v:g(d);return Bc(r)?r.value=n:Array.isArray(r)&&(r[t]=n),!1}return g(d)}}}),hj=pj,fj=Nl[Symbol.for("nodejs.util.promisify.custom")],mj=hl(nj,{init(){this.name="openapi-3-1"},methods:{canDereference(e){var t;return"text/plain"!==e.mediaType?zE.includes(e.mediaType):qb(null===(t=e.parseResult)||void 0===t?void 0:t.result)},async dereference(e,t){const r=ll(NE),n=$i(GE(),t.dereference.refSet);let s;n.has(e.uri)?s=n.find(jo(e.uri,"uri")):(s=HE({uri:e.uri,value:e.parseResult}),n.add(s));const i=hj({reference:s,namespace:r,options:t}),o=await fj(n.rootRef.value,i,{keyMap:FE,nodeTypeGetter:RE});return null===t.dereference.refSet&&n.clean(),o}}}),dj=mj,yj=e=>{const t=(e=>e.slice(2))(e);return t.reduce(((e,r,n)=>{if(Bc(r)){const t=String(Yl(r.key));e.push(t)}else if(Lc(t[n-2])){const s=t[n-2].content.indexOf(r);e.push(s)}return e}),[])},gj=e=>{if(null==e.cause)return e;let{cause:t}=e;for(;null!=t.cause;)t=t.cause;return t},vj=ga("SchemaRefError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),{wrapError:bj}=Ca,xj=Nl[Symbol.for("nodejs.util.promisify.custom")],Ej=oj(),wj=e=>t=>t.meta.hasKey("ref-referencing-element-id")&&t.meta.get("ref-referencing-element-id").equals(Yl(Ej.identify(e))),jj=hj.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,basePath:null},init(e){let{allowMetaPatches:t=this.allowMetaPatches,useCircularStructures:r=this.useCircularStructures,basePath:n=this.basePath}=e;this.allowMetaPatches=t,this.useCircularStructures=r,this.basePath=n},methods:{async ReferenceElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(Xc(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&Jb(e))return!1;const o=await this.toReference(Yl(e.$ref)),{uri:a}=o,c=ma(a,Yl(e.$ref));this.indirections.push(e);const l=uu(c);let u=fu(l,o.value.result);if(Wc(u)){const t=Yl(e.meta.get("referenced-element"));if(Zh(u))u=Nv.refract(u),u.setMetaProperty("referenced-element",t);else{u=this.namespace.getElementClass(t).refract(u)}}if(this.indirections.includes(u))throw new yl("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u)){if(la(a)||ca(a)){const t=new Nv({$ref:c},$l(e.meta),$l(e.attributes));return t.get("$ref").classes.push("cycle"),t}return!1}}i.add(e);const p=jj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...yj([...s,r,e]),"$ref"]});u=await xj(u,p,{keyMap:FE,nodeTypeGetter:RE}),i.delete(e),this.indirections.pop();const h=t=>{const r=Tl(t);if(r.setMetaProperty("ref-fields",{$ref:Yl(e.$ref),description:Yl(e.description),summary:Yl(e.summary)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",$l(Ej.identify(e))),qc(t)&&(e.hasKey("description")&&"description"in t&&(r.remove("description"),r.set("description",e.get("description"))),e.hasKey("summary")&&"summary"in t&&(r.remove("summary"),r.set("summary",e.get("summary")))),this.allowMetaPatches&&qc(r)&&!r.hasKey("$$ref")){const e=ma(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(u)){const s=n.findItem(wj(e))??h(u);return Bc(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(u)}catch(t){const n=gj(t),i=bj(n,{baseDoc:this.reference.uri,$ref:Yl(e.$ref),pointer:uu(Yl(e.$ref)),fullPath:this.basePath??[...yj([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async PathItemElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Rc(e.$ref))return;if(Xc(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;if(!this.options.resolve.external&&Vb(e))return;const o=await this.toReference(Yl(e.$ref)),{uri:a}=o,c=ma(a,Yl(e.$ref));this.indirections.push(e);const l=uu(c);let u=fu(l,o.value.result);if(Wc(u)&&(u=Mv.refract(u)),this.indirections.includes(u))throw new yl("Recursive JSON Pointer detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(u)){if(la(a)||ca(a)){const t=new Mv({$ref:c},$l(e.meta),$l(e.attributes));return t.get("$ref").classes.push("cycle"),t}return!1}}i.add(e);const p=jj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,ancestors:n,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,basePath:this.basePath??[...yj([...s,r,e]),"$ref"]});u=await xj(u,p,{keyMap:FE,nodeTypeGetter:RE}),i.delete(e),this.indirections.pop();const h=t=>{const r=new Mv([...t.content],$l(t.meta),$l(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Yl(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Yl(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",$l(Ej.identify(e))),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=ma(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(u)){const s=n.findItem(wj(e))??h(u);return Bc(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return h(u)}catch(t){const n=gj(t),i=bj(n,{baseDoc:this.reference.uri,$ref:Yl(e.$ref),pointer:uu(Yl(e.$ref)),fullPath:this.basePath??[...yj([...s,r,e]),"$ref"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async SchemaElement(e,t,r,n,s){try{const[n,i]=this.toAncestorLineage([...s,r]);if(!Rc(e.$ref))return;if(Xc(["cycle"],e.$ref))return!1;if(n.includesCycle(e))return!1;let o=await this.toReference(ya(this.reference.uri)),{uri:a}=o;const c=Pw(a,e),l=ha(c),u=XE({uri:l}),p=!this.options.resolve.resolvers.some((e=>e.canRead(u))),h=!p,f=h&&a!==l;if(!this.options.resolve.external&&f)return;let m;this.indirections.push(e);try{if(p||h){m=_w(c,$w(o.value.result))}else{o=await this.toReference(ya(c)),a=o.uri;const e=uu(c);m=$w(fu(e,o.value.result))}}catch(e){if(!(h&&e instanceof dw))throw e;if(jw(Ow(c))){o=await this.toReference(ya(c)),a=o.uri;const e=Ow(c);m=Sw(e,$w(o.value.result))}else{o=await this.toReference(ya(c)),a=o.uri;const e=uu(c);m=$w(fu(e,o.value.result))}}if(this.indirections.includes(m))throw new yl("Recursive Schema Object reference detected");if(this.indirections.length>this.options.dereference.maxDepth)throw new pw(`Maximum dereference depth of "${this.options.dereference.maxDepth}" has been exceeded in file "${this.reference.uri}"`);if(!this.useCircularStructures){if(n.includes(m)){if(la(a)||ca(a)){const t=ma(a,c),r=new Uv({$ref:t},$l(e.meta),$l(e.attributes));return r.get("$ref").classes.push("cycle"),r}return!1}}i.add(e);const d=jj({reference:o,namespace:this.namespace,indirections:[...this.indirections],options:this.options,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:n,basePath:this.basePath??[...yj([...s,r,e]),"$ref"]});if(m=await xj(m,d,{keyMap:FE,nodeTypeGetter:RE}),i.delete(e),this.indirections.pop(),Xb(m)){const t=$l(m);return t.setMetaProperty("ref-fields",{$ref:Yl(e.$ref)}),t.setMetaProperty("ref-origin",o.uri),t.setMetaProperty("ref-referencing-element-id",$l(Ej.identify(e))),t}const y=t=>{const r=new Uv([...t.content],$l(t.meta),$l(t.attributes));if(e.forEach(((e,t,n)=>{r.remove(Yl(t)),r.content.push(n)})),r.remove("$ref"),r.setMetaProperty("ref-fields",{$ref:Yl(e.$ref)}),r.setMetaProperty("ref-origin",o.uri),r.setMetaProperty("ref-referencing-element-id",$l(Ej.identify(e))),this.allowMetaPatches&&void 0===r.get("$$ref")){const e=ma(a,c);r.set("$$ref",e)}return r};if(n.includes(e)||n.includes(m)){const s=n.findItem(wj(e))??y(m);return Bc(r)?r.value=s:Array.isArray(r)&&(r[t]=s),!1}return y(m)}catch(t){const n=gj(t),i=new vj(`Could not resolve reference: ${n.message}`,{baseDoc:this.reference.uri,$ref:Yl(e.$ref),fullPath:this.basePath??[...yj([...s,r,e]),"$ref"]},n);return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}},async LinkElement(){},async ExampleElement(e,t,r,n,s){try{return await hj.compose.methods.ExampleElement.call(this,e,t,r,n,s)}catch(t){const n=gj(t),i=bj(n,{baseDoc:this.reference.uri,externalValue:Yl(e.externalValue),fullPath:this.basePath??[...yj([...s,r,e]),"externalValue"]});return void this.options.dereference.dereferenceOpts?.errors?.push?.(i)}}}}),Oj=jj,Sj=dj.compose.bind(),Pj=Sj({init(e){let{parameterMacro:t,options:r}=e;this.parameterMacro=t,this.options=r},props:{parameterMacro:null,options:null,macroOperation:null,OperationElement:{enter(e){this.macroOperation=e},leave(){this.macroOperation=null}},ParameterElement:{leave(e,t,r,n,s){const i=null===this.macroOperation?null:Yl(this.macroOperation),o=Yl(e);try{const t=this.parameterMacro(i,o);e.set("default",t)}catch(e){const t=new Error(e,{cause:e});t.fullPath=yj([...s,r]),this.options.dereference.dereferenceOpts?.errors?.push?.(t)}}}}}),Aj=Sj({init(e){let{modelPropertyMacro:t,options:r}=e;this.modelPropertyMacro=t,this.options=r},props:{modelPropertyMacro:null,options:null,SchemaElement:{leave(e,t,r,n,s){void 0!==e.properties&&qc(e.properties)&&e.properties.forEach((t=>{if(qc(t))try{const e=this.modelPropertyMacro(Yl(t));t.set("default",e)}catch(t){const n=new Error(t,{cause:t});n.fullPath=[...yj([...s,r,e]),"properties"],this.options.dereference.dereferenceOpts?.errors?.push?.(n)}}))}}}}),$j=e=>{const t=$l(e.meta),r=$l(e.attributes);return new e.constructor(void 0,t,r)},_j=(e,t)=>t.clone&&t.isMergeableElement(e)?Ij($j(e),e,t):e,kj=(e,t,r)=>e.concat(t)["fantasy-land/map"]((e=>_j(e,r))),Tj=(e,t,r)=>{const n=qc(e)?$j(e):$j(t);return qc(e)&&e.forEach(((e,t,s)=>{const i=Tl(s);i.value=_j(e,r),n.content.push(i)})),t.forEach(((t,s,i)=>{const o=Yl(s);let a;if(qc(e)&&e.hasKey(o)&&r.isMergeableElement(t)){const n=e.get(o);a=Tl(i),a.value=((e,t)=>{if("function"!=typeof t.customMerge)return Ij;const r=t.customMerge(e,t);return"function"==typeof r?r:Ij})(s,r)(n,t)}else a=Tl(i),a.value=_j(t,r);n.remove(o),n.content.push(a)})),n};function Ij(e,t,r){var n,s,i;const o={clone:!0,isMergeableElement:e=>qc(e)||Lc(e),arrayElementMerge:kj,objectElementMerge:Tj,customMerge:void 0},a={...o,...r};a.isMergeableElement=null!==(n=a.isMergeableElement)&&void 0!==n?n:o.isMergeableElement,a.arrayElementMerge=null!==(s=a.arrayElementMerge)&&void 0!==s?s:o.arrayElementMerge,a.objectElementMerge=null!==(i=a.objectElementMerge)&&void 0!==i?i:o.objectElementMerge;const c=Lc(t);return c===Lc(e)?c&&"function"==typeof a.arrayElementMerge?a.arrayElementMerge(e,t,a):a.objectElementMerge(e,t,a):_j(t,a)}Ij.all=(e,t)=>{if(!Array.isArray(e))throw new TypeError("First argument of deepmerge should be an array.");return 0===e.length?new mc.Sb:e.reduce(((e,r)=>Ij(e,r,t)),$j(e[0]))};const Cj=Sj({init(e){let{options:t}=e;this.options=t},props:{options:null,SchemaElement:{leave(e,t,r,n,s){if(void 0===e.allOf)return;if(!Lc(e.allOf)){const t=new TypeError("allOf must be an array");return t.fullPath=[...yj([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}if(e.allOf.isEmpty)return new Uv(e.content.filter((e=>"allOf"!==Yl(e.key))),$l(e.meta),$l(e.attributes));if(!e.allOf.content.every(Yb)){const t=new TypeError("Elements in allOf must be objects");return t.fullPath=[...yj([...s,r,e]),"allOf"],void this.options.dereference.dereferenceOpts?.errors?.push?.(t)}const i=Ij.all([...e.allOf.content,e]);if(e.hasKey("$$ref")||i.remove("$$ref"),e.hasKey("example")){i.getMember("example").value=e.get("example")}if(e.hasKey("examples")){i.getMember("examples").value=e.get("examples")}return i.remove("allOf"),i}}}}),Mj=Nl[Symbol.for("nodejs.util.promisify.custom")],Rj=dj.compose({props:{useCircularStructures:!0,allowMetaPatches:!1,parameterMacro:null,modelPropertyMacro:null,mode:"non-strict",ancestors:null},init(){let{useCircularStructures:e=this.useCircularStructures,allowMetaPatches:t=this.allowMetaPatches,parameterMacro:r=this.parameterMacro,modelPropertyMacro:n=this.modelPropertyMacro,mode:s=this.mode,ancestors:i=[]}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.name="openapi-3-1-swagger-client",this.useCircularStructures=e,this.allowMetaPatches=t,this.parameterMacro=r,this.modelPropertyMacro=n,this.mode=s,this.ancestors=[...i]},methods:{async dereference(e,t){const r=[],n=ll(NE),s=t.dereference.refSet??GE();let i;s.has(e.uri)?i=s.find((t=>t.uri===e.uri)):(i=HE({uri:e.uri,value:e.parseResult}),s.add(i));const o=Oj({reference:i,namespace:n,options:t,useCircularStructures:this.useCircularStructures,allowMetaPatches:this.allowMetaPatches,ancestors:this.ancestors});if(r.push(o),"function"==typeof this.parameterMacro){const e=Pj({parameterMacro:this.parameterMacro,options:t});r.push(e)}if("function"==typeof this.modelPropertyMacro){const e=Aj({modelPropertyMacro:this.modelPropertyMacro,options:t});r.push(e)}if("strict"!==this.mode){const e=Cj({options:t});r.push(e)}const a=jl(r,{nodeTypeGetter:RE}),c=await Mj(s.rootRef.value,a,{keyMap:FE,nodeTypeGetter:RE});return null===t.dereference.refSet&&s.clean(),c}}}),Fj=Rj,Nj=async e=>{const{spec:t,timeout:r,redirects:n,requestInterceptor:s,responseInterceptor:i,pathDiscriminator:o=[],allowMetaPatches:a=!1,useCircularStructures:c=!1,skipNormalization:l=!1,parameterMacro:u=null,modelPropertyMacro:p=null,mode:f="non-strict"}=e;try{const{cache:m}=Nj,d=la(fa())?fa():h,y=qr(e),g=ma(d,y);let v;m.has(t)?v=m.get(t):(v=Tv.refract(t),v.classes.push("result"),m.set(t,v));const b=new xc([v]),x=eu(o),E=""===x?"":`#${x}`,w=fu(x,v),j=HE({uri:g,value:b}),O=GE({refs:[j]});""!==x&&(O.rootRef=null);const S=[new Set([w])],P=[],A=((e,t,r)=>Vl({element:r}).transclude(e,t))(w,await iw(w,{resolve:{baseURI:`${g}${E}`,resolvers:[Xw({timeout:r||1e4,redirects:n||10})],resolverOpts:{swaggerHTTPClientConfig:{requestInterceptor:s,responseInterceptor:i}},strategies:[Rw()]},parse:{mediaType:zE.latest(),parsers:[tj({allowEmpty:!1,sourceMap:!1}),rj({allowEmpty:!1,sourceMap:!1}),Zw({allowEmpty:!1,sourceMap:!1}),ej({allowEmpty:!1,sourceMap:!1}),cw({allowEmpty:!1,sourceMap:!1})]},dereference:{maxDepth:100,strategies:[Fj({allowMetaPatches:a,useCircularStructures:c,parameterMacro:u,modelPropertyMacro:p,mode:f,ancestors:S})],refSet:O,dereferenceOpts:{errors:P}}}),v),$=l?A:Jw(A);return{spec:Yl($),errors:P}}catch(e){if(e instanceof lu||e instanceof hu)return{spec:null,errors:[]};throw e}};Nj.cache=new WeakMap;const Dj=Nj,qj={name:"openapi-3-1-apidom",match(e){let{spec:t}=e;return ac(t)},normalize(e){let{spec:t}=e;return Hw(Jw)(t)},resolve:async e=>Dj(e)};function Lj(e,t,r){if(!e||"object"!=typeof e||!e.paths||"object"!=typeof e.paths)return null;const{paths:n}=e;for(const s in n)for(const i in n[s]){if("PARAMETERS"===i.toUpperCase())continue;const o=n[s][i];if(!o||"object"!=typeof o)continue;const a={spec:e,pathName:s,method:i.toUpperCase(),operation:o},c=t(a);if(r&&c)return a}}const Bj=()=>null,Uj={mapTagOperations:function(e){let{spec:t,cb:r=Bj,defaultTag:n="default",v2OperationIdCompatibilityMode:s}=e;const i={},o={};return Lj(t,(e=>{let{pathName:a,method:c,operation:l}=e;var u;(l.tags?(u=l.tags,Array.isArray(u)?u:[u]):[n]).forEach((e=>{if("string"!=typeof e)return;o[e]=o[e]||{};const n=o[e],u=tc(l,a,c,{v2OperationIdCompatibilityMode:s}),p=r({spec:t,pathName:a,method:c,operation:l,operationId:u});if(i[u])i[u]+=1,n[`${u}${i[u]}`]=p;else if(void 0!==n[u]){const e=i[u]||1;i[u]=e+1,n[`${u}${i[u]}`]=p;const t=n[u];delete n[u],n[`${u}${e}`]=t}else n[u]=p}))})),o},makeExecute:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t=>{let{pathName:r,method:n,operationId:s}=t;return function(t){let i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{requestInterceptor:o,responseInterceptor:a,userFetch:c}=e;return e.execute({spec:e.spec,requestInterceptor:o,responseInterceptor:a,userFetch:c,pathName:r,method:n,parameters:t,operationId:s,...i})}}}};var Vj=r(6489);function zj(e){return"[object Object]"===Object.prototype.toString.call(e)}function Hj(e){var t,r;return!1!==zj(e)&&(void 0===(t=e.constructor)||!1!==zj(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf"))}const Jj={body:function(e){let{req:t,value:r}=e;t.body=r},header:function(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{},void 0!==n&&(t.headers[r.name]=n)},query:function(e){let{req:t,value:r,parameter:n}=e;t.query=t.query||{},!1===r&&"boolean"===n.type&&(r="false");0===r&&["number","integer"].indexOf(n.type)>-1&&(r="0");if(r)t.query[n.name]={collectionFormat:n.collectionFormat,value:r};else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}},path:function(e){let{req:t,value:r,parameter:n}=e;t.url=t.url.split(`{${n.name}}`).join(encodeURIComponent(r))},formData:function(e){let{req:t,value:r,parameter:n}=e;(r||n.allowEmptyValue)&&(t.form=t.form||{},t.form[n.name]={value:r,allowEmptyValue:n.allowEmptyValue,collectionFormat:n.collectionFormat})}};function Gj(e,t){return t.includes("application/json")?"string"==typeof e?e:JSON.stringify(e):e.toString()}function Wj(e){let{req:t,value:r,parameter:n}=e;const{name:s,style:i,explode:o,content:a}=n;if(a){const e=Object.keys(a)[0];return void(t.url=t.url.split(`{${s}}`).join(wr(Gj(r,e),{escape:!0})))}const c=jr({key:n.name,value:r,style:i||"simple",explode:o||!1,escape:!0});t.url=t.url.split(`{${s}}`).join(c)}function Kj(e){let{req:t,value:r,parameter:n}=e;if(t.query=t.query||{},n.content){const e=Gj(r,Object.keys(n.content)[0]);if(e)t.query[n.name]=e;else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}else if(!1===r&&(r="false"),0===r&&(r="0"),r){const{style:e,explode:s,allowReserved:i}=n;t.query[n.name]={value:r,serializationOption:{style:e,explode:s,allowReserved:i}}}else if(n.allowEmptyValue&&void 0!==r){const e=n.name;t.query[e]=t.query[e]||{},t.query[e].allowEmptyValue=!0}}const Yj=["accept","authorization","content-type"];function Xj(e){let{req:t,parameter:r,value:n}=e;if(t.headers=t.headers||{},!(Yj.indexOf(r.name.toLowerCase())>-1))if(r.content){const e=Object.keys(r.content)[0];t.headers[r.name]=Gj(n,e)}else void 0!==n&&(t.headers[r.name]=jr({key:r.name,value:n,style:r.style||"simple",explode:void 0!==r.explode&&r.explode,escape:!1}))}function Qj(e){let{req:t,parameter:r,value:n}=e;t.headers=t.headers||{};const s=typeof n;if(r.content){const e=Object.keys(r.content)[0];t.headers.Cookie=`${r.name}=${Gj(n,e)}`}else if("undefined"!==s){const e="object"===s&&!Array.isArray(n)&&r.explode?"":`${r.name}=`;t.headers.Cookie=e+jr({key:r.name,value:n,escape:!1,style:r.style||"form",explode:void 0!==r.explode&&r.explode})}}const Zj="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:window,{btoa:eO}=Zj,tO=eO;function rO(e,t){const{operation:r,requestBody:n,securities:s,spec:i,attachContentTypeForEmptyPayload:o}=e;let{requestContentType:a}=e;t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i={...t},{authorized:o={}}=r,a=n.security||s.security||[],c=o&&!!Object.keys(o).length,l=s?.components?.securitySchemes||{};if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!c||!a||Array.isArray(n.security)&&!n.security.length)return t;return a.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e],r=l[e];if(!t)return;const n=t.value||t,{type:s}=r;if(t)if("apiKey"===s)"query"===r.in&&(i.query[r.name]=n),"header"===r.in&&(i.headers[r.name]=n),"cookie"===r.in&&(i.cookies[r.name]=n);else if("http"===s){if(/^basic$/i.test(r.scheme)){const e=n.username||"",t=n.password||"",r=tO(`${e}:${t}`);i.headers.Authorization=`Basic ${r}`}/^bearer$/i.test(r.scheme)&&(i.headers.Authorization=`Bearer ${n}`)}else if("oauth2"===s||"openIdConnect"===s){const e=t.token||{},n=e[r["x-tokenName"]||"access_token"];let s=e.token_type;s&&"bearer"!==s.toLowerCase()||(s="Bearer"),i.headers.Authorization=`${s} ${n}`}}))})),i}({request:t,securities:s,operation:r,spec:i});const c=r.requestBody||{},l=Object.keys(c.content||{}),u=a&&l.indexOf(a)>-1;if(n||o){if(a&&u)t.headers["Content-Type"]=a;else if(!a){const e=l[0];e&&(t.headers["Content-Type"]=e,a=e)}}else a&&u&&(t.headers["Content-Type"]=a);if(!e.responseContentType&&r.responses){const e=Object.entries(r.responses).filter((e=>{let[t,r]=e;const n=parseInt(t,10);return n>=200&&n<300&&Hj(r.content)})).reduce(((e,t)=>{let[,r]=t;return e.concat(Object.keys(r.content))}),[]);e.length>0&&(t.headers.accept=e.join(", "))}if(n)if(a){if(l.indexOf(a)>-1)if("application/x-www-form-urlencoded"===a||"multipart/form-data"===a)if("object"==typeof n){const e=c.content[a]?.encoding??{};t.form={},Object.keys(n).forEach((r=>{t.form[r]={value:n[r],encoding:e[r]||{}}}))}else t.form=n;else t.body=n}else t.body=n;return t}function nO(e,t){const{spec:r,operation:n,securities:s,requestContentType:i,responseContentType:o,attachContentTypeForEmptyPayload:a}=e;if(t=function(e){let{request:t,securities:r={},operation:n={},spec:s}=e;const i={...t},{authorized:o={},specSecurity:a=[]}=r,c=n.security||a,l=o&&!!Object.keys(o).length,u=s.securityDefinitions;if(i.headers=i.headers||{},i.query=i.query||{},!Object.keys(r).length||!l||!c||Array.isArray(n.security)&&!n.security.length)return t;return c.forEach((e=>{Object.keys(e).forEach((e=>{const t=o[e];if(!t)return;const{token:r}=t,n=t.value||t,s=u[e],{type:a}=s,c=s["x-tokenName"]||"access_token",l=r&&r[c];let p=r&&r.token_type;if(t)if("apiKey"===a){const e="query"===s.in?"query":"headers";i[e]=i[e]||{},i[e][s.name]=n}else if("basic"===a)if(n.header)i.headers.authorization=n.header;else{const e=n.username||"",t=n.password||"";n.base64=tO(`${e}:${t}`),i.headers.authorization=`Basic ${n.base64}`}else"oauth2"===a&&l&&(p=p&&"bearer"!==p.toLowerCase()?p:"Bearer",i.headers.authorization=`${p} ${l}`)}))})),i}({request:t,securities:s,operation:n,spec:r}),t.body||t.form||a)i?t.headers["Content-Type"]=i:Array.isArray(n.consumes)?[t.headers["Content-Type"]]=n.consumes:Array.isArray(r.consumes)?[t.headers["Content-Type"]]=r.consumes:n.parameters&&n.parameters.filter((e=>"file"===e.type)).length?t.headers["Content-Type"]="multipart/form-data":n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length&&(t.headers["Content-Type"]="application/x-www-form-urlencoded");else if(i){const e=n.parameters&&n.parameters.filter((e=>"body"===e.in)).length>0,r=n.parameters&&n.parameters.filter((e=>"formData"===e.in)).length>0;(e||r)&&(t.headers["Content-Type"]=i)}return!o&&Array.isArray(n.produces)&&n.produces.length>0&&(t.headers.accept=n.produces.join(", ")),t}function sO(e,t){return`${t.toLowerCase()}-${e}`}function iO(e,t){return e&&e.paths?function(e,t){return Lj(e,t,!0)||null}(e,(e=>{let{pathName:r,method:n,operation:s}=e;if(!s||"object"!=typeof s)return!1;const i=s.operationId;return[tc(s,r,n),sO(r,n),i].some((e=>e&&e===t))})):null}const oO=e=>Array.isArray(e)?e:[],aO=e=>{try{return new URL(e)}catch{const t=new URL(e,h),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}}},cO=ga("OperationNotFoundError",(function(e,t,r){this.originalError=r,Object.assign(this,t||{})})),lO={buildRequest:uO};function uO(e){const{spec:t,operationId:r,responseContentType:n,scheme:s,requestInterceptor:i,responseInterceptor:o,contextUrl:a,userFetch:c,server:l,serverVariables:p,http:h,signal:f}=e;let{parameters:m,parameterBuilders:d}=e;const y=cc(t);d||(d=y?u:Jj);let g={url:"",credentials:h&&h.withCredentials?"include":"same-origin",headers:{},cookies:{}};f&&(g.signal=f),i&&(g.requestInterceptor=i),o&&(g.responseInterceptor=o),c&&(g.userFetch=c);const v=iO(t,r);if(!v)throw new cO(`Operation ${r} not found`);const{operation:b={},method:x,pathName:E}=v;if(g.url+=hO({spec:t,scheme:s,contextUrl:a,server:l,serverVariables:p,pathName:E,method:x}),!r)return delete g.cookies,g;g.url+=E,g.method=`${x}`.toUpperCase(),m=m||{};const w=t.paths[E]||{};n&&(g.headers.accept=n);const j=(e=>{const t={};e.forEach((e=>{t[e.in]||(t[e.in]={}),t[e.in][e.name]=e}));const r=[];return Object.keys(t).forEach((e=>{Object.keys(t[e]).forEach((n=>{r.push(t[e][n])}))})),r})([].concat(oO(b.parameters)).concat(oO(w.parameters)));j.forEach((e=>{const r=d[e.in];let n;if("body"===e.in&&e.schema&&e.schema.properties&&(n=m),n=e&&e.name&&m[e.name],void 0===n?n=e&&e.name&&m[`${e.in}.${e.name}`]:((e,t)=>t.filter((t=>t.name===e)))(e.name,j).length>1&&console.warn(`Parameter '${e.name}' is ambiguous because the defined spec has more than one parameter with the name: '${e.name}' and the passed-in parameter values did not define an 'in' value.`),null!==n){if(void 0!==e.default&&void 0===n&&(n=e.default),void 0===n&&e.required&&!e.allowEmptyValue)throw new Error(`Required parameter ${e.name} is not provided`);if(y&&e.schema&&"object"===e.schema.type&&"string"==typeof n)try{n=JSON.parse(n)}catch(e){throw new Error("Could not parse object parameter value string as JSON")}r&&r({req:g,parameter:e,value:n,operation:b,spec:t})}}));const O={...e,operation:b};if(g=y?rO(O,g):nO(O,g),g.cookies&&Object.keys(g.cookies).length){const e=Object.keys(g.cookies).reduce(((e,t)=>{const r=g.cookies[t];return e+(e?"&":"")+Vj.serialize(t,r)}),"");g.headers.Cookie=e}return g.cookies&&delete g.cookies,Nr(g),g}const pO=e=>e?e.replace(/\W/g,""):null;function hO(e){return cc(e.spec)?function(e){let t,{spec:r,pathName:n,method:s,server:i,contextUrl:o,serverVariables:a={}}=e,c=[],l="";const u=r?.paths?.[n]?.[(s||"").toLowerCase()]?.servers,p=r?.paths?.[n]?.servers,h=r?.servers;c=fO(u)?u:fO(p)?p:fO(h)?h:[f],i&&(t=c.find((e=>e.url===i)),t&&(l=i));l||([t]=c,l=t.url);if(l.includes("{")){const e=function(e){const t=[],r=/{([^}]+)}/g;let n;for(;n=r.exec(e);)t.push(n[1]);return t}(l);e.forEach((e=>{if(t.variables&&t.variables[e]){const r=t.variables[e],n=a[e]||r.default,s=new RegExp(`{${e}}`,"g");l=l.replace(s,n)}}))}return function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";const r=aO(e&&t?ma(t,e):e),n=aO(t),s=pO(r.protocol)||pO(n.protocol),i=r.host||n.host,o=r.pathname;let a;a=s&&i?`${s}://${i+o}`:o;return"/"===a[a.length-1]?a.slice(0,-1):a}(l,o)}(e):function(e){let{spec:t,scheme:r,contextUrl:n=""}=e;const s=aO(n),i=Array.isArray(t.schemes)?t.schemes[0]:null,o=r||i||pO(s.protocol)||"http",a=t.host||s.host||"",c=t.basePath||"";let l;l=o&&a?`${o}://${a+c}`:c;return"/"===l[l.length-1]?l.slice(0,-1):l}(e)}const fO=e=>Array.isArray(e)&&e.length>0;const{isHttpUrl:mO}=s,dO=mO;function yO(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if("string"==typeof e?t.url=e:t=e,!(this instanceof yO))return new yO(t);Object.assign(this,t);const r=this.resolve().then((()=>(this.disableInterfaces||Object.assign(this,yO.makeApisTagOperation(this)),this)));return r.client=this,r}yO.http=Sr,yO.makeHttp=function(e,t,r){return r=r||(e=>e),t=t||(e=>e),n=>("string"==typeof n&&(n={url:n}),Or.mergeInQueryOrForm(n),n=t(n),r(e(n)))}.bind(null,yO.http),yO.resolveStrategies={"openapi-3-1-apidom":qj,"openapi-3-0":uc,"openapi-2-0":lc,generic:sc},yO.resolve=pc({strategies:[yO.resolveStrategies["openapi-3-1-apidom"],yO.resolveStrategies["openapi-3-0"],yO.resolveStrategies["openapi-2-0"],yO.resolveStrategies.generic]}),yO.resolveSubtree=fc({strategies:[yO.resolveStrategies["openapi-3-1-apidom"],yO.resolveStrategies["openapi-3-0"],yO.resolveStrategies["openapi-2-0"],yO.resolveStrategies.generic]}),yO.execute=function(e){let{http:t,fetch:r,spec:n,operationId:s,pathName:i,method:o,parameters:a,securities:c,...l}=e;const u=t||r||Sr;i&&o&&!s&&(s=sO(i,o));const p=lO.buildRequest({spec:n,operationId:s,parameters:a,securities:c,http:u,...l});return p.body&&(Hj(p.body)||Array.isArray(p.body))&&(p.body=JSON.stringify(p.body)),u(p)},yO.serializeRes=Ar,yO.serializeHeaders=$r,yO.clearCache=function(){Za.refs.clearCache()},yO.makeApisTagOperation=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const t=Uj.makeExecute(e);return{apis:Uj.mapTagOperations({v2OperationIdCompatibilityMode:e.v2OperationIdCompatibilityMode,spec:e.spec,cb:t})}},yO.buildRequest=uO,yO.helpers={opId:tc},yO.getBaseUrl=hO,yO.apidom={resolve:{resolvers:{HttpResolverSwaggerClient:Xw}},parse:{parsers:{JsonParser:Zw,YamlParser:ej,OpenApiJson3_1Parser:tj,OpenApiYaml3_1Parser:rj}},dereference:{strategies:{OpenApi3_1SwaggerClientDereferenceStrategy:Fj}}},yO.prototype={http:Sr,execute(e){return this.applyDefaults(),yO.execute({spec:this.spec,http:this.http,securities:{authorized:this.authorizations},contextUrl:"string"==typeof this.url?this.url:void 0,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,...e})},resolve(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return yO.resolve({spec:this.spec,url:this.url,http:this.http||this.fetch,allowMetaPatches:this.allowMetaPatches,useCircularStructures:this.useCircularStructures,requestInterceptor:this.requestInterceptor||null,responseInterceptor:this.responseInterceptor||null,skipNormalization:this.skipNormalization||!1,...e}).then((e=>(this.originalSpec=this.spec,this.spec=e.spec,this.errors=e.errors,this)))}},yO.prototype.applyDefaults=function(){const{spec:e}=this,t=this.url;if(ic(e)&&dO(t)){const r=new URL(t);e.host||(e.host=r.host),e.schemes||(e.schemes=[r.protocol.replace(":","")]),e.basePath||(e.basePath="/")}else if(cc(e)){const t=Array.isArray(e.servers)&&0===e.servers.length;e.servers&&!t||(e.servers=[f])}};const{helpers:gO}=yO,vO=yO})(),n=n.default})()));
|
|
3
3
|
//# sourceMappingURL=swagger-client.browser.min.js.map
|