@redocly/cli 2.44.1 → 2.45.0
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/lib/chunks/{QM6G7HHV.js → 2JWKPO7P.js} +1 -1
- package/lib/chunks/{VQ6DFAWM.js → 3OW7APQC.js} +1 -1
- package/lib/chunks/{E26CPZ7R.js → C2ERK3Q6.js} +1 -1
- package/lib/chunks/{TYSTK6PZ.js → CE3X3N6H.js} +1 -1
- package/lib/chunks/{WBBPOJGY.js → FDWT2URT.js} +1 -1
- package/lib/chunks/{EBDIX6RD.js → I5W5NEDL.js} +1 -1
- package/lib/chunks/{2NHISEXU.js → IMOI6ZFO.js} +1 -1
- package/lib/chunks/{KWC7BG2V.js → K4SYTLYO.js} +1 -1
- package/lib/chunks/{QMQHJELO.js → LCGBAHMY.js} +1 -1
- package/lib/chunks/{4W2GXXK4.js → NM5PRB4J.js} +1 -1
- package/lib/chunks/{ADOKRNF2.js → NXNAT6LY.js} +1 -1
- package/lib/chunks/{HZIDY6PS.js → PBK7R6TK.js} +1 -1
- package/lib/chunks/{FB52YXXA.js → Q4NHYVCT.js} +1 -1
- package/lib/chunks/{UOXNXMLD.js → SMUTDBNU.js} +1 -1
- package/lib/chunks/SSUYHPMB.js +184 -0
- package/lib/chunks/{3SJLJGQQ.js → UF5QX6NH.js} +1 -1
- package/lib/chunks/{M23DQRUQ.js → VEPC4UGS.js} +1 -1
- package/lib/chunks/{B3SZ327M.js → ZN6C27UV.js} +1 -1
- package/lib/chunks/{6PWY2XBQ.js → ZXRXP4OZ.js} +1 -1
- package/lib/index.js +7 -7
- package/package.json +1 -1
- package/lib/chunks/XJCGCKLR.js +0 -184
package/lib/chunks/XJCGCKLR.js
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
import { createRequire as __createRequire } from 'node:module';
|
|
2
|
-
import { fileURLToPath as __fileURLToPath } from 'node:url';
|
|
3
|
-
import { dirname as __pathDirname } from 'node:path';
|
|
4
|
-
const require = __createRequire(import.meta.url);
|
|
5
|
-
var __filename = __fileURLToPath(import.meta.url);
|
|
6
|
-
var __dirname = __pathDirname(__filename);
|
|
7
|
-
import{a as Dt,b as Fo,c as pR}from"./NEWT5A6S.js";import{a as Zl,c as S,d as cR,e as Tr}from"./RFWIIJFG.js";var Qu=S((Yu,Wu)=>{(function(e,t){typeof Zl=="function"&&typeof Yu=="object"&&typeof Wu=="object"?Wu.exports=t():typeof define=="function"&&define.amd?define(function(){return t()}):e.pluralize=t()})(Yu,function(){var e=[],t=[],r={},n={},o={};function i(d){return typeof d=="string"?new RegExp("^"+d+"$","i"):d}function s(d,f){return d===f?f:d===d.toLowerCase()?f.toLowerCase():d===d.toUpperCase()?f.toUpperCase():d[0]===d[0].toUpperCase()?f.charAt(0).toUpperCase()+f.substr(1).toLowerCase():f.toLowerCase()}function a(d,f){return d.replace(/\$(\d{1,2})/g,function(h,y){return f[y]||""})}function c(d,f){return d.replace(f[0],function(h,y){var g=a(f[1],arguments);return s(h===""?d[y-1]:h,g)})}function p(d,f,h){if(!d.length||r.hasOwnProperty(d))return f;for(var y=h.length;y--;){var g=h[y];if(g[0].test(f))return c(f,g)}return f}function l(d,f,h){return function(y){var g=y.toLowerCase();return f.hasOwnProperty(g)?s(y,g):d.hasOwnProperty(g)?s(y,d[g]):p(g,y,h)}}function u(d,f,h,y){return function(g){var v=g.toLowerCase();return f.hasOwnProperty(v)?!0:d.hasOwnProperty(v)?!1:p(v,v,h)===v}}function m(d,f,h){var y=f===1?m.singular(d):m.plural(d);return(h?f+" ":"")+y}return m.plural=l(o,n,e),m.isPlural=u(o,n,e),m.singular=l(n,o,t),m.isSingular=u(n,o,t),m.addPluralRule=function(d,f){e.push([i(d),f])},m.addSingularRule=function(d,f){t.push([i(d),f])},m.addUncountableRule=function(d){if(typeof d=="string"){r[d.toLowerCase()]=!0;return}m.addPluralRule(d,"$0"),m.addSingularRule(d,"$0")},m.addIrregularRule=function(d,f){f=f.toLowerCase(),d=d.toLowerCase(),o[d]=f,n[f]=d},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(d){return m.addIrregularRule(d[0],d[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(d){return m.addPluralRule(d[0],d[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(d){return m.addSingularRule(d[0],d[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(m.addUncountableRule),m})});var _s=S((p8,Nb)=>{"use strict";var kb="[^\\\\/]",Ck="(?=.)",Ib="[^/]",Ju="(?:\\/|$)",Cb="(?:^|\\/)",Xu=`\\.{1,2}${Ju}`,qk="(?!\\.)",Nk=`(?!${Cb}${Xu})`,Mk=`(?!\\.{0,1}${Ju})`,jk=`(?!${Xu})`,Dk="[^.\\/]",Lk=`${Ib}*?`,Uk="/",qb={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:Ck,QMARK:Ib,END_ANCHOR:Ju,DOTS_SLASH:Xu,NO_DOT:qk,NO_DOTS:Nk,NO_DOT_SLASH:Mk,NO_DOTS_SLASH:jk,QMARK_NO_DOT:Dk,STAR:Lk,START_ANCHOR:Cb,SEP:Uk},zk={...qb,SLASH_LITERAL:"[\\\\/]",QMARK:kb,STAR:`${kb}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"},Fk={__proto__:null,alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"};Nb.exports={DEFAULT_MAX_EXTGLOB_RECURSION:0,MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:Fk,REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars(e){return{"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(e){return e===!0?zk:qb}}});var Ps=S(At=>{"use strict";var{REGEX_BACKSLASH:Vk,REGEX_REMOVE_BACKSLASH:Bk,REGEX_SPECIAL_CHARS:Hk,REGEX_SPECIAL_CHARS_GLOBAL:Kk}=_s();At.isObject=e=>e!==null&&typeof e=="object"&&!Array.isArray(e);At.hasRegexChars=e=>Hk.test(e);At.isRegexChar=e=>e.length===1&&At.hasRegexChars(e);At.escapeRegex=e=>e.replace(Kk,"\\$1");At.toPosixSlashes=e=>e.replace(Vk,"/");At.isWindows=()=>{if(typeof navigator<"u"&&navigator.platform){let e=navigator.platform.toLowerCase();return e==="win32"||e==="windows"}return typeof process<"u"&&process.platform?process.platform==="win32":!1};At.removeBackslashes=e=>e.replace(Bk,t=>t==="\\"?"":t);At.escapeLast=(e,t,r)=>{let n=e.lastIndexOf(t,r);return n===-1?e:e[n-1]==="\\"?At.escapeLast(e,t,n-1):`${e.slice(0,n)}\\${e.slice(n)}`};At.removePrefix=(e,t={})=>{let r=e;return r.startsWith("./")&&(r=r.slice(2),t.prefix="./"),r};At.wrapOutput=(e,t={},r={})=>{let n=r.contains?"":"^",o=r.contains?"":"$",i=`${n}(?:${e})${o}`;return t.negated===!0&&(i=`(?:^(?!${i}).*$)`),i};At.basename=(e,{windows:t}={})=>{let r=e.split(t?/[\\/]/:"/"),n=r[r.length-1];return n===""?r[r.length-2]:n}});var Vb=S((u8,Fb)=>{"use strict";var Mb=Ps(),{CHAR_ASTERISK:Zu,CHAR_AT:Gk,CHAR_BACKWARD_SLASH:Es,CHAR_COMMA:Yk,CHAR_DOT:ed,CHAR_EXCLAMATION_MARK:td,CHAR_FORWARD_SLASH:zb,CHAR_LEFT_CURLY_BRACE:rd,CHAR_LEFT_PARENTHESES:nd,CHAR_LEFT_SQUARE_BRACKET:Wk,CHAR_PLUS:Qk,CHAR_QUESTION_MARK:jb,CHAR_RIGHT_CURLY_BRACE:Jk,CHAR_RIGHT_PARENTHESES:Db,CHAR_RIGHT_SQUARE_BRACKET:Xk}=_s(),Lb=e=>e===zb||e===Es,Ub=e=>{e.isPrefix!==!0&&(e.depth=e.isGlobstar?1/0:1)},Zk=(e,t)=>{let r=t||{},n=e.length-1,o=r.parts===!0||r.scanToEnd===!0,i=[],s=[],a=[],c=e,p=-1,l=0,u=0,m=!1,d=!1,f=!1,h=!1,y=!1,g=!1,v=!1,b=!1,x=!1,w=!1,_=0,T,A,R={value:"",depth:0,isGlob:!1},P=()=>p>=n,J=()=>c.charCodeAt(p+1),H=()=>(T=A,c.charCodeAt(++p));for(;p<n;){A=H();let X;if(A===Es){v=R.backslashes=!0,A=H(),A===rd&&(g=!0);continue}if(g===!0||A===rd){for(_++;P()!==!0&&(A=H());){if(A===Es){v=R.backslashes=!0,H();continue}if(A===rd){_++;continue}if(g!==!0&&A===ed&&(A=H())===ed){if(m=R.isBrace=!0,f=R.isGlob=!0,w=!0,o===!0)continue;break}if(g!==!0&&A===Yk){if(m=R.isBrace=!0,f=R.isGlob=!0,w=!0,o===!0)continue;break}if(A===Jk&&(_--,_===0)){g=!1,m=R.isBrace=!0,w=!0;break}}if(o===!0)continue;break}if(A===zb){if(i.push(p),s.push(R),R={value:"",depth:0,isGlob:!1},w===!0)continue;if(T===ed&&p===l+1){l+=2;continue}u=p+1;continue}if(r.noext!==!0&&(A===Qk||A===Gk||A===Zu||A===jb||A===td)===!0&&J()===nd){if(f=R.isGlob=!0,h=R.isExtglob=!0,w=!0,A===td&&p===l&&(x=!0),o===!0){for(;P()!==!0&&(A=H());){if(A===Es){v=R.backslashes=!0,A=H();continue}if(A===Db){f=R.isGlob=!0,w=!0;break}}continue}break}if(A===Zu){if(T===Zu&&(y=R.isGlobstar=!0),f=R.isGlob=!0,w=!0,o===!0)continue;break}if(A===jb){if(f=R.isGlob=!0,w=!0,o===!0)continue;break}if(A===Wk){for(;P()!==!0&&(X=H());){if(X===Es){v=R.backslashes=!0,H();continue}if(X===Xk){d=R.isBracket=!0,f=R.isGlob=!0,w=!0;break}}if(o===!0)continue;break}if(r.nonegate!==!0&&A===td&&p===l){b=R.negated=!0,l++;continue}if(r.noparen!==!0&&A===nd){if(f=R.isGlob=!0,o===!0){for(;P()!==!0&&(A=H());){if(A===nd){v=R.backslashes=!0,A=H();continue}if(A===Db){w=!0;break}}continue}break}if(f===!0){if(w=!0,o===!0)continue;break}}r.noext===!0&&(h=!1,f=!1);let z=c,E="",$="";l>0&&(E=c.slice(0,l),c=c.slice(l),u-=l),z&&f===!0&&u>0?(z=c.slice(0,u),$=c.slice(u)):f===!0?(z="",$=c):z=c,z&&z!==""&&z!=="/"&&z!==c&&Lb(z.charCodeAt(z.length-1))&&(z=z.slice(0,-1)),r.unescape===!0&&($&&($=Mb.removeBackslashes($)),z&&v===!0&&(z=Mb.removeBackslashes(z)));let oe={prefix:E,input:e,start:l,base:z,glob:$,isBrace:m,isBracket:d,isGlob:f,isExtglob:h,isGlobstar:y,negated:b,negatedExtglob:x};if(r.tokens===!0&&(oe.maxDepth=0,Lb(A)||s.push(R),oe.tokens=s),r.parts===!0||r.tokens===!0){let X;for(let le=0;le<i.length;le++){let N=X?X+1:l,U=i[le],ve=e.slice(N,U);r.tokens&&(le===0&&l!==0?(s[le].isPrefix=!0,s[le].value=E):s[le].value=ve,Ub(s[le]),oe.maxDepth+=s[le].depth),(le!==0||ve!=="")&&a.push(ve),X=U}if(X&&X+1<e.length){let le=e.slice(X+1);a.push(le),r.tokens&&(s[s.length-1].value=le,Ub(s[s.length-1]),oe.maxDepth+=s[s.length-1].depth)}oe.slashes=i,oe.parts=a}return oe};Fb.exports=Zk});var Yb=S((d8,Gb)=>{"use strict";var $s=_s(),Ut=Ps(),{MAX_LENGTH:cc,POSIX_REGEX_SOURCE:eI,REGEX_NON_SPECIAL_CHARS:tI,REGEX_SPECIAL_CHARS_BACKREF:rI,REPLACEMENTS:Bb}=$s,nI=(e,t)=>{if(typeof t.expandRange=="function")return t.expandRange(...e,t);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch{return e.map(o=>Ut.escapeRegex(o)).join("..")}return r},Xo=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,Hb=e=>{let t=[],r=0,n=0,o=0,i="",s=!1;for(let a of e){if(s===!0){i+=a,s=!1;continue}if(a==="\\"){i+=a,s=!0;continue}if(a==='"'){o=o===1?0:1,i+=a;continue}if(o===0){if(a==="[")r++;else if(a==="]"&&r>0)r--;else if(r===0){if(a==="(")n++;else if(a===")"&&n>0)n--;else if(a==="|"&&n===0){t.push(i),i="";continue}}}i+=a}return t.push(i),t},oI=e=>{let t=!1;for(let r of e){if(t===!0){t=!1;continue}if(r==="\\"){t=!0;continue}if(/[?*+@!()[\]{}]/.test(r))return!1}return!0},Kb=e=>{let t=e.trim(),r=!0;for(;r===!0;)r=!1,/^@\([^\\()[\]{}|]+\)$/.test(t)&&(t=t.slice(2,-1),r=!0);if(oI(t))return t.replace(/\\(.)/g,"$1")},iI=e=>{let t=e.map(Kb).filter(Boolean);for(let r=0;r<t.length;r++)for(let n=r+1;n<t.length;n++){let o=t[r],i=t[n],s=o[0];if(!(!s||o!==s.repeat(o.length)||i!==s.repeat(i.length))&&(o===i||o.startsWith(i)||i.startsWith(o)))return!0}return!1},od=(e,t=!0)=>{if(e[0]!=="+"&&e[0]!=="*"||e[1]!=="(")return;let r=0,n=0,o=0,i=!1;for(let s=1;s<e.length;s++){let a=e[s];if(i===!0){i=!1;continue}if(a==="\\"){i=!0;continue}if(a==='"'){o=o===1?0:1;continue}if(o!==1){if(a==="["){r++;continue}if(a==="]"&&r>0){r--;continue}if(!(r>0)){if(a==="("){n++;continue}if(a===")"&&(n--,n===0))return t===!0&&s!==e.length-1?void 0:{type:e[0],body:e.slice(2,s),end:s}}}}},sI=e=>{let t=0,r=[];for(;t<e.length;){let o=od(e.slice(t),!1);if(!o||o.type!=="*")return;let i=Hb(o.body).map(a=>a.trim());if(i.length!==1)return;let s=Kb(i[0]);if(!s||s.length!==1)return;r.push(s),t+=o.end+1}return r.length<1?void 0:`${r.length===1?Ut.escapeRegex(r[0]):`[${r.map(o=>Ut.escapeRegex(o)).join("")}]`}*`},aI=e=>{let t=0,r=e.trim(),n=od(r);for(;n;)t++,r=n.body.trim(),n=od(r);return t},cI=(e,t)=>{if(t.maxExtglobRecursion===!1)return{risky:!1};let r=typeof t.maxExtglobRecursion=="number"?t.maxExtglobRecursion:$s.DEFAULT_MAX_EXTGLOB_RECURSION,n=Hb(e).map(o=>o.trim());if(n.length>1&&(n.some(o=>o==="")||n.some(o=>/^[*?]+$/.test(o))||iI(n)))return{risky:!0};for(let o of n){let i=sI(o);if(i)return{risky:!0,safeOutput:i};if(aI(o)>r)return{risky:!0}}return{risky:!1}},id=(e,t)=>{if(typeof e!="string")throw new TypeError("Expected a string");e=Bb[e]||e;let r={...t},n=typeof r.maxLength=="number"?Math.min(cc,r.maxLength):cc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);let i={type:"bos",value:"",output:r.prepend||""},s=[i],a=r.capture?"":"?:",c=$s.globChars(r.windows),p=$s.extglobChars(c),{DOT_LITERAL:l,PLUS_LITERAL:u,SLASH_LITERAL:m,ONE_CHAR:d,DOTS_SLASH:f,NO_DOT:h,NO_DOT_SLASH:y,NO_DOTS_SLASH:g,QMARK:v,QMARK_NO_DOT:b,STAR:x,START_ANCHOR:w}=c,_=I=>`(${a}(?:(?!${w}${I.dot?f:l}).)*?)`,T=r.dot?"":h,A=r.dot?v:b,R=r.bash===!0?_(r):x;r.capture&&(R=`(${R})`),typeof r.noext=="boolean"&&(r.noextglob=r.noext);let P={input:e,index:-1,start:0,dot:r.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:s};e=Ut.removePrefix(e,P),o=e.length;let J=[],H=[],z=[],E=i,$,oe=()=>P.index===o-1,X=P.peek=(I=1)=>e[P.index+I],le=P.advance=()=>e[++P.index]||"",N=()=>e.slice(P.index+1),U=(I="",je=0)=>{P.consumed+=I,P.index+=je},ve=I=>{P.output+=I.output!=null?I.output:I.value,U(I.value)},Ht=()=>{let I=1;for(;X()==="!"&&(X(2)!=="("||X(3)==="?");)le(),P.start++,I++;return I%2===0?!1:(P.negated=!0,P.start++,!0)},ue=I=>{P[I]++,z.push(I)},Et=I=>{P[I]--,z.pop()},Z=I=>{if(E.type==="globstar"){let je=P.braces>0&&(I.type==="comma"||I.type==="brace"),k=I.extglob===!0||J.length&&(I.type==="pipe"||I.type==="paren");I.type!=="slash"&&I.type!=="paren"&&!je&&!k&&(P.output=P.output.slice(0,-E.output.length),E.type="star",E.value="*",E.output=R,P.output+=E.output)}if(J.length&&I.type!=="paren"&&(J[J.length-1].inner+=I.value),(I.value||I.output)&&ve(I),E&&E.type==="text"&&I.type==="text"){E.output=(E.output||E.value)+I.value,E.value+=I.value;return}I.prev=E,s.push(I),E=I},Er=(I,je)=>{let k={...p[je],conditions:1,inner:""};k.prev=E,k.parens=P.parens,k.output=P.output,k.startIndex=P.index,k.tokensIndex=s.length;let ce=(r.capture?"(":"")+k.open;ue("parens"),Z({type:I,value:je,output:P.output?"":d}),Z({type:"paren",extglob:!0,value:le(),output:ce}),J.push(k)},aR=I=>{let je=e.slice(I.startIndex,P.index+1),k=e.slice(I.startIndex+2,P.index),ce=cI(k,r);if((I.type==="plus"||I.type==="star")&&ce.risky){let ke=ce.safeOutput?(I.output?"":d)+(r.capture?`(${ce.safeOutput})`:ce.safeOutput):void 0,$r=s[I.tokensIndex];$r.type="text",$r.value=je,$r.output=ke||Ut.escapeRegex(je);for(let Ar=I.tokensIndex+1;Ar<s.length;Ar++)s[Ar].value="",s[Ar].output="",delete s[Ar].suffix;P.output=I.output+$r.output,P.backtrack=!0,Z({type:"paren",extglob:!0,value:$,output:""}),Et("parens");return}let Ie=I.close+(r.capture?")":""),Ke;if(I.type==="negate"){let ke=R;if(I.inner&&I.inner.length>1&&I.inner.includes("/")&&(ke=_(r)),(ke!==R||oe()||/^\)+$/.test(N()))&&(Ie=I.close=`)$))${ke}`),I.inner.includes("*")&&(Ke=N())&&/^\.[^\\/.]+$/.test(Ke)){let $r=id(Ke,{...t,fastpaths:!1}).output;Ie=I.close=`)${$r})${ke})`}I.prev.type==="bos"&&(P.negatedExtglob=!0)}Z({type:"paren",extglob:!0,value:$,output:Ie}),Et("parens")};if(r.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(e)){let I=!1,je=e.replace(rI,(k,ce,Ie,Ke,ke,$r)=>Ke==="\\"?(I=!0,k):Ke==="?"?ce?ce+Ke+(ke?v.repeat(ke.length):""):$r===0?A+(ke?v.repeat(ke.length):""):v.repeat(Ie.length):Ke==="."?l.repeat(Ie.length):Ke==="*"?ce?ce+Ke+(ke?R:""):R:ce?k:`\\${k}`);return I===!0&&(r.unescape===!0?je=je.replace(/\\/g,""):je=je.replace(/\\+/g,k=>k.length%2===0?"\\\\":k?"\\":"")),je===e&&r.contains===!0?(P.output=e,P):(P.output=Ut.wrapOutput(je,P,t),P)}for(;!oe();){if($=le(),$==="\0")continue;if($==="\\"){let k=X();if(k==="/"&&r.bash!==!0||k==="."||k===";")continue;if(!k){$+="\\",Z({type:"text",value:$});continue}let ce=/^\\+/.exec(N()),Ie=0;if(ce&&ce[0].length>2&&(Ie=ce[0].length,P.index+=Ie,Ie%2!==0&&($+="\\")),r.unescape===!0?$=le():$+=le(),P.brackets===0){Z({type:"text",value:$});continue}}if(P.brackets>0&&($!=="]"||E.value==="["||E.value==="[^")){if(r.posix!==!1&&$===":"){let k=E.value.slice(1);if(k.includes("[")&&(E.posix=!0,k.includes(":"))){let ce=E.value.lastIndexOf("["),Ie=E.value.slice(0,ce),Ke=E.value.slice(ce+2),ke=eI[Ke];if(ke){E.value=Ie+ke,P.backtrack=!0,le(),!i.output&&s.indexOf(E)===1&&(i.output=d);continue}}}($==="["&&X()!==":"||$==="-"&&X()==="]")&&($=`\\${$}`),$==="]"&&(E.value==="["||E.value==="[^")&&($=`\\${$}`),r.posix===!0&&$==="!"&&E.value==="["&&($="^"),E.value+=$,ve({value:$});continue}if(P.quotes===1&&$!=='"'){$=Ut.escapeRegex($),E.value+=$,ve({value:$});continue}if($==='"'){P.quotes=P.quotes===1?0:1,r.keepQuotes===!0&&Z({type:"text",value:$});continue}if($==="("){ue("parens"),Z({type:"paren",value:$});continue}if($===")"){if(P.parens===0&&r.strictBrackets===!0)throw new SyntaxError(Xo("opening","("));let k=J[J.length-1];if(k&&P.parens===k.parens+1){aR(J.pop());continue}Z({type:"paren",value:$,output:P.parens?")":"\\)"}),Et("parens");continue}if($==="["){if(r.nobracket===!0||!N().includes("]")){if(r.nobracket!==!0&&r.strictBrackets===!0)throw new SyntaxError(Xo("closing","]"));$=`\\${$}`}else ue("brackets");Z({type:"bracket",value:$});continue}if($==="]"){if(r.nobracket===!0||E&&E.type==="bracket"&&E.value.length===1){Z({type:"text",value:$,output:`\\${$}`});continue}if(P.brackets===0){if(r.strictBrackets===!0)throw new SyntaxError(Xo("opening","["));Z({type:"text",value:$,output:`\\${$}`});continue}Et("brackets");let k=E.value.slice(1);if(E.posix!==!0&&k[0]==="^"&&!k.includes("/")&&($=`/${$}`),E.value+=$,ve({value:$}),r.literalBrackets===!1||Ut.hasRegexChars(k))continue;let ce=Ut.escapeRegex(E.value);if(P.output=P.output.slice(0,-E.value.length),r.literalBrackets===!0){P.output+=ce,E.value=ce;continue}E.value=`(${a}${ce}|${E.value})`,P.output+=E.value;continue}if($==="{"&&r.nobrace!==!0){ue("braces");let k={type:"brace",value:$,output:"(",outputIndex:P.output.length,tokensIndex:P.tokens.length};H.push(k),Z(k);continue}if($==="}"){let k=H[H.length-1];if(r.nobrace===!0||!k){Z({type:"text",value:$,output:$});continue}let ce=")";if(k.dots===!0){let Ie=s.slice(),Ke=[];for(let ke=Ie.length-1;ke>=0&&(s.pop(),Ie[ke].type!=="brace");ke--)Ie[ke].type!=="dots"&&Ke.unshift(Ie[ke].value);ce=nI(Ke,r),P.backtrack=!0}if(k.comma!==!0&&k.dots!==!0){let Ie=P.output.slice(0,k.outputIndex),Ke=P.tokens.slice(k.tokensIndex);k.value=k.output="\\{",$=ce="\\}",P.output=Ie;for(let ke of Ke)P.output+=ke.output||ke.value}Z({type:"brace",value:$,output:ce}),Et("braces"),H.pop();continue}if($==="|"){J.length>0&&J[J.length-1].conditions++,Z({type:"text",value:$});continue}if($===","){let k=$,ce=H[H.length-1];ce&&z[z.length-1]==="braces"&&(ce.comma=!0,k="|"),Z({type:"comma",value:$,output:k});continue}if($==="/"){if(E.type==="dot"&&P.index===P.start+1){P.start=P.index+1,P.consumed="",P.output="",s.pop(),E=i;continue}Z({type:"slash",value:$,output:m});continue}if($==="."){if(P.braces>0&&E.type==="dot"){E.value==="."&&(E.output=l);let k=H[H.length-1];E.type="dots",E.output+=$,E.value+=$,k.dots=!0;continue}if(P.braces+P.parens===0&&E.type!=="bos"&&E.type!=="slash"){Z({type:"text",value:$,output:l});continue}Z({type:"dot",value:$,output:l});continue}if($==="?"){if(!(E&&E.value==="(")&&r.noextglob!==!0&&X()==="("&&X(2)!=="?"){Er("qmark",$);continue}if(E&&E.type==="paren"){let ce=X(),Ie=$;(E.value==="("&&!/[!=<:]/.test(ce)||ce==="<"&&!/<([!=]|\w+>)/.test(N()))&&(Ie=`\\${$}`),Z({type:"text",value:$,output:Ie});continue}if(r.dot!==!0&&(E.type==="slash"||E.type==="bos")){Z({type:"qmark",value:$,output:b});continue}Z({type:"qmark",value:$,output:v});continue}if($==="!"){if(r.noextglob!==!0&&X()==="("&&(X(2)!=="?"||!/[!=<:]/.test(X(3)))){Er("negate",$);continue}if(r.nonegate!==!0&&P.index===0){Ht();continue}}if($==="+"){if(r.noextglob!==!0&&X()==="("&&X(2)!=="?"){Er("plus",$);continue}if(E&&E.value==="("||r.regex===!1){Z({type:"plus",value:$,output:u});continue}if(E&&(E.type==="bracket"||E.type==="paren"||E.type==="brace")||P.parens>0){Z({type:"plus",value:$});continue}Z({type:"plus",value:u});continue}if($==="@"){if(r.noextglob!==!0&&X()==="("&&X(2)!=="?"){Z({type:"at",extglob:!0,value:$,output:""});continue}Z({type:"text",value:$});continue}if($!=="*"){($==="$"||$==="^")&&($=`\\${$}`);let k=tI.exec(N());k&&($+=k[0],P.index+=k[0].length),Z({type:"text",value:$});continue}if(E&&(E.type==="globstar"||E.star===!0)){E.type="star",E.star=!0,E.value+=$,E.output=R,P.backtrack=!0,P.globstar=!0,U($);continue}let I=N();if(r.noextglob!==!0&&/^\([^?]/.test(I)){Er("star",$);continue}if(E.type==="star"){if(r.noglobstar===!0){U($);continue}let k=E.prev,ce=k.prev,Ie=k.type==="slash"||k.type==="bos",Ke=ce&&(ce.type==="star"||ce.type==="globstar");if(r.bash===!0&&(!Ie||I[0]&&I[0]!=="/")){Z({type:"star",value:$,output:""});continue}let ke=P.braces>0&&(k.type==="comma"||k.type==="brace"),$r=J.length&&(k.type==="pipe"||k.type==="paren");if(!Ie&&k.type!=="paren"&&!ke&&!$r){Z({type:"star",value:$,output:""});continue}for(;I.slice(0,3)==="/**";){let Ar=e[P.index+4];if(Ar&&Ar!=="/")break;I=I.slice(3),U("/**",3)}if(k.type==="bos"&&oe()){E.type="globstar",E.value+=$,E.output=_(r),P.output=E.output,P.globstar=!0,U($);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&!Ke&&oe()){P.output=P.output.slice(0,-(k.output+E.output).length),k.output=`(?:${k.output}`,E.type="globstar",E.output=_(r)+(r.strictSlashes?")":"|$)"),E.value+=$,P.globstar=!0,P.output+=k.output+E.output,U($);continue}if(k.type==="slash"&&k.prev.type!=="bos"&&I[0]==="/"){let Ar=I[1]!==void 0?"|$":"";P.output=P.output.slice(0,-(k.output+E.output).length),k.output=`(?:${k.output}`,E.type="globstar",E.output=`${_(r)}${m}|${m}${Ar})`,E.value+=$,P.output+=k.output+E.output,P.globstar=!0,U($+le()),Z({type:"slash",value:"/",output:""});continue}if(k.type==="bos"&&I[0]==="/"){E.type="globstar",E.value+=$,E.output=`(?:^|${m}|${_(r)}${m})`,P.output=E.output,P.globstar=!0,U($+le()),Z({type:"slash",value:"/",output:""});continue}P.output=P.output.slice(0,-E.output.length),E.type="globstar",E.output=_(r),E.value+=$,P.output+=E.output,P.globstar=!0,U($);continue}let je={type:"star",value:$,output:R};if(r.bash===!0){je.output=".*?",(E.type==="bos"||E.type==="slash")&&(je.output=T+je.output),Z(je);continue}if(E&&(E.type==="bracket"||E.type==="paren")&&r.regex===!0){je.output=$,Z(je);continue}(P.index===P.start||E.type==="slash"||E.type==="dot")&&(E.type==="dot"?(P.output+=y,E.output+=y):r.dot===!0?(P.output+=g,E.output+=g):(P.output+=T,E.output+=T),X()!=="*"&&(P.output+=d,E.output+=d)),Z(je)}for(;P.brackets>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xo("closing","]"));P.output=Ut.escapeLast(P.output,"["),Et("brackets")}for(;P.parens>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xo("closing",")"));P.output=Ut.escapeLast(P.output,"("),Et("parens")}for(;P.braces>0;){if(r.strictBrackets===!0)throw new SyntaxError(Xo("closing","}"));P.output=Ut.escapeLast(P.output,"{"),Et("braces")}if(r.strictSlashes!==!0&&(E.type==="star"||E.type==="bracket")&&Z({type:"maybe_slash",value:"",output:`${m}?`}),P.backtrack===!0){P.output="";for(let I of P.tokens)P.output+=I.output!=null?I.output:I.value,I.suffix&&(P.output+=I.suffix)}return P};id.fastpaths=(e,t)=>{let r={...t},n=typeof r.maxLength=="number"?Math.min(cc,r.maxLength):cc,o=e.length;if(o>n)throw new SyntaxError(`Input length: ${o}, exceeds maximum allowed length: ${n}`);e=Bb[e]||e;let{DOT_LITERAL:i,SLASH_LITERAL:s,ONE_CHAR:a,DOTS_SLASH:c,NO_DOT:p,NO_DOTS:l,NO_DOTS_SLASH:u,STAR:m,START_ANCHOR:d}=$s.globChars(r.windows),f=r.dot?l:p,h=r.dot?u:p,y=r.capture?"":"?:",g={negated:!1,prefix:""},v=r.bash===!0?".*?":m;r.capture&&(v=`(${v})`);let b=T=>T.noglobstar===!0?v:`(${y}(?:(?!${d}${T.dot?c:i}).)*?)`,x=T=>{switch(T){case"*":return`${f}${a}${v}`;case".*":return`${i}${a}${v}`;case"*.*":return`${f}${v}${i}${a}${v}`;case"*/*":return`${f}${v}${s}${a}${h}${v}`;case"**":return f+b(r);case"**/*":return`(?:${f}${b(r)}${s})?${h}${a}${v}`;case"**/*.*":return`(?:${f}${b(r)}${s})?${h}${v}${i}${a}${v}`;case"**/.*":return`(?:${f}${b(r)}${s})?${i}${a}${v}`;default:{let A=/^(.*?)\.(\w+)$/.exec(T);if(!A)return;let R=x(A[1]);return R?R+i+A[2]:void 0}}},w=Ut.removePrefix(e,g),_=x(w);return _&&r.strictSlashes!==!0&&(_+=`${s}?`),_};Gb.exports=id});var Jb=S((f8,Qb)=>{"use strict";var pI=Vb(),sd=Yb(),Wb=Ps(),lI=_s(),uI=e=>e&&typeof e=="object"&&!Array.isArray(e),Ue=(e,t,r=!1)=>{if(Array.isArray(e)){let l=e.map(m=>Ue(m,t,r));return m=>{for(let d of l){let f=d(m);if(f)return f}return!1}}let n=uI(e)&&e.tokens&&e.input;if(e===""||typeof e!="string"&&!n)throw new TypeError("Expected pattern to be a non-empty string");let o=t||{},i=o.windows,s=n?Ue.compileRe(e,t):Ue.makeRe(e,t,!1,!0),a=s.state;delete s.state;let c=()=>!1;if(o.ignore){let l={...t,ignore:null,onMatch:null,onResult:null};c=Ue(o.ignore,l,r)}let p=(l,u=!1)=>{let{isMatch:m,match:d,output:f}=Ue.test(l,s,t,{glob:e,posix:i}),h={glob:e,state:a,regex:s,posix:i,input:l,output:f,match:d,isMatch:m};return typeof o.onResult=="function"&&o.onResult(h),m===!1?(h.isMatch=!1,u?h:!1):c(l)?(typeof o.onIgnore=="function"&&o.onIgnore(h),h.isMatch=!1,u?h:!1):(typeof o.onMatch=="function"&&o.onMatch(h),u?h:!0)};return r&&(p.state=a),p};Ue.test=(e,t,r,{glob:n,posix:o}={})=>{if(typeof e!="string")throw new TypeError("Expected input to be a string");if(e==="")return{isMatch:!1,output:""};let i=r||{},s=i.format||(o?Wb.toPosixSlashes:null),a=e===n,c=a&&s?s(e):e;return a===!1&&(c=s?s(e):e,a=c===n),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=Ue.matchBase(e,t,r,o):a=t.exec(c)),{isMatch:!!a,match:a,output:c}};Ue.matchBase=(e,t,r)=>(t instanceof RegExp?t:Ue.makeRe(t,r)).test(Wb.basename(e));Ue.isMatch=(e,t,r)=>Ue(t,r)(e);Ue.parse=(e,t)=>Array.isArray(e)?e.map(r=>Ue.parse(r,t)):sd(e,{...t,fastpaths:!1});Ue.scan=(e,t)=>pI(e,t);Ue.compileRe=(e,t,r=!1,n=!1)=>{if(r===!0)return e.output;let o=t||{},i=o.contains?"":"^",s=o.contains?"":"$",a=`${i}(?:${e.output})${s}`;e&&e.negated===!0&&(a=`^(?!${a}).*$`);let c=Ue.toRegex(a,t);return n===!0&&(c.state=e),c};Ue.makeRe=(e,t={},r=!1,n=!1)=>{if(!e||typeof e!="string")throw new TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return t.fastpaths!==!1&&(e[0]==="."||e[0]==="*")&&(o.output=sd.fastpaths(e,t)),o.output||(o=sd(e,t)),Ue.compileRe(o,t,r,n)};Ue.toRegex=(e,t)=>{try{let r=t||{};return new RegExp(e,r.flags||(r.nocase?"i":""))}catch(r){if(t&&t.debug===!0)throw r;return/$^/}};Ue.constants=lI;Qb.exports=Ue});var tv=S((m8,ev)=>{"use strict";var Xb=Jb(),dI=Ps();function Zb(e,t,r=!1){return t&&(t.windows===null||t.windows===void 0)&&(t={...t,windows:dI.isWindows()}),Xb(e,t,r)}Object.assign(Zb,Xb);ev.exports=Zb});var ks=S(Se=>{"use strict";Object.defineProperty(Se,"__esModule",{value:!0});Se.regexpCode=Se.getEsmExportName=Se.getProperty=Se.safeStringify=Se.stringify=Se.strConcat=Se.addCodeArg=Se.str=Se._=Se.nil=Se._Code=Se.Name=Se.IDENTIFIER=Se._CodeOrName=void 0;var Rs=class{};Se._CodeOrName=Rs;Se.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var co=class extends Rs{constructor(t){if(super(),!Se.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};Se.Name=co;var Yt=class extends Rs{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof co&&(r[n.str]=(r[n.str]||0)+1),r),{})}};Se._Code=Yt;Se.nil=new Yt("");function t0(e,...t){let r=[e[0]],n=0;for(;n<t.length;)Cd(r,t[n]),r.push(e[++n]);return new Yt(r)}Se._=t0;var Id=new Yt("+");function r0(e,...t){let r=[Os(e[0])],n=0;for(;n<t.length;)r.push(Id),Cd(r,t[n]),r.push(Id,Os(e[++n]));return c2(r),new Yt(r)}Se.str=r0;function Cd(e,t){t instanceof Yt?e.push(...t._items):t instanceof co?e.push(t):e.push(u2(t))}Se.addCodeArg=Cd;function c2(e){let t=1;for(;t<e.length-1;){if(e[t]===Id){let r=p2(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function p2(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof co||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof co))return`"${e}${t.slice(1)}`}function l2(e,t){return t.emptyStr()?e:e.emptyStr()?t:r0`${e}${t}`}Se.strConcat=l2;function u2(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:Os(Array.isArray(e)?e.join(","):e)}function d2(e){return new Yt(Os(e))}Se.stringify=d2;function Os(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}Se.safeStringify=Os;function f2(e){return typeof e=="string"&&Se.IDENTIFIER.test(e)?new Yt(`.${e}`):t0`[${e}]`}Se.getProperty=f2;function m2(e){if(typeof e=="string"&&Se.IDENTIFIER.test(e))return new Yt(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}Se.getEsmExportName=m2;function h2(e){return new Yt(e.toString())}Se.regexpCode=h2});var Md=S(Ot=>{"use strict";Object.defineProperty(Ot,"__esModule",{value:!0});Ot.ValueScope=Ot.ValueScopeName=Ot.Scope=Ot.varKinds=Ot.UsedValueState=void 0;var Rt=ks(),qd=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Ec;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Ec||(Ot.UsedValueState=Ec={}));Ot.varKinds={const:new Rt.Name("const"),let:new Rt.Name("let"),var:new Rt.Name("var")};var $c=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof Rt.Name?t:this.name(t)}name(t){return new Rt.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Ot.Scope=$c;var Ac=class extends Rt.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,Rt._)`.${new Rt.Name(r)}[${n}]`}};Ot.ValueScopeName=Ac;var y2=(0,Rt._)`\n`,Nd=class extends $c{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?y2:Rt.nil}}get(){return this._scope}name(t){return new Ac(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,Rt._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=Rt.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(p=>{if(c.has(p))return;c.set(p,Ec.Started);let l=r(p);if(l){let u=this.opts.es5?Ot.varKinds.var:Ot.varKinds.const;i=(0,Rt._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,Rt._)`${i}${l}${this.opts._n}`;else throw new qd(p);c.set(p,Ec.Completed)})}return i}};Ot.ValueScope=Nd});var V=S(re=>{"use strict";Object.defineProperty(re,"__esModule",{value:!0});re.or=re.and=re.not=re.CodeGen=re.operators=re.varKinds=re.ValueScopeName=re.ValueScope=re.Scope=re.Name=re.regexpCode=re.stringify=re.getProperty=re.nil=re.strConcat=re.str=re._=void 0;var de=ks(),dr=Md(),xn=ks();Object.defineProperty(re,"_",{enumerable:!0,get:function(){return xn._}});Object.defineProperty(re,"str",{enumerable:!0,get:function(){return xn.str}});Object.defineProperty(re,"strConcat",{enumerable:!0,get:function(){return xn.strConcat}});Object.defineProperty(re,"nil",{enumerable:!0,get:function(){return xn.nil}});Object.defineProperty(re,"getProperty",{enumerable:!0,get:function(){return xn.getProperty}});Object.defineProperty(re,"stringify",{enumerable:!0,get:function(){return xn.stringify}});Object.defineProperty(re,"regexpCode",{enumerable:!0,get:function(){return xn.regexpCode}});Object.defineProperty(re,"Name",{enumerable:!0,get:function(){return xn.Name}});var kc=Md();Object.defineProperty(re,"Scope",{enumerable:!0,get:function(){return kc.Scope}});Object.defineProperty(re,"ValueScope",{enumerable:!0,get:function(){return kc.ValueScope}});Object.defineProperty(re,"ValueScopeName",{enumerable:!0,get:function(){return kc.ValueScopeName}});Object.defineProperty(re,"varKinds",{enumerable:!0,get:function(){return kc.varKinds}});re.operators={GT:new de._Code(">"),GTE:new de._Code(">="),LT:new de._Code("<"),LTE:new de._Code("<="),EQ:new de._Code("==="),NEQ:new de._Code("!=="),NOT:new de._Code("!"),OR:new de._Code("||"),AND:new de._Code("&&"),ADD:new de._Code("+")};var en=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},jd=class extends en{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?dr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=pi(this.rhs,t,r)),this}get names(){return this.rhs instanceof de._CodeOrName?this.rhs.names:{}}},Tc=class extends en{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof de.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=pi(this.rhs,t,r),this}get names(){let t=this.lhs instanceof de.Name?{}:{...this.lhs.names};return Oc(t,this.rhs)}},Dd=class extends Tc{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},Ld=class extends en{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Ud=class extends en{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},zd=class extends en{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},Fd=class extends en{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=pi(this.code,t,r),this}get names(){return this.code instanceof de._CodeOrName?this.code.names:{}}},Is=class extends en{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(g2(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>uo(t,r.names),{})}},tn=class extends Is{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},Vd=class extends Is{},ci=class extends tn{};ci.kind="else";var po=class e extends tn{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new ci(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(n0(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=pi(this.condition,t,r),this}get names(){let t=super.names;return Oc(t,this.condition),this.else&&uo(t,this.else.names),t}};po.kind="if";var lo=class extends tn{};lo.kind="for";var Bd=class extends lo{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=pi(this.iteration,t,r),this}get names(){return uo(super.names,this.iteration.names)}},Hd=class extends lo{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?dr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=Oc(super.names,this.from);return Oc(t,this.to)}},Rc=class extends lo{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=pi(this.iterable,t,r),this}get names(){return uo(super.names,this.iterable.names)}},Cs=class extends tn{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};Cs.kind="func";var qs=class extends Is{render(t){return"return "+super.render(t)}};qs.kind="return";var Kd=class extends tn{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&uo(t,this.catch.names),this.finally&&uo(t,this.finally.names),t}},Ns=class extends tn{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};Ns.kind="catch";var Ms=class extends tn{render(t){return"finally"+super.render(t)}};Ms.kind="finally";var Gd=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
8
|
-
`:""},this._extScope=t,this._scope=new dr.Scope({parent:t}),this._nodes=[new Vd]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new jd(t,i,n)),i}const(t,r,n){return this._def(dr.varKinds.const,t,r,n)}let(t,r,n){return this._def(dr.varKinds.let,t,r,n)}var(t,r,n){return this._def(dr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Tc(t,r,n))}add(t,r){return this._leafNode(new Dd(t,re.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==de.nil&&this._leafNode(new Fd(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,de.addCodeArg)(r,o));return r.push("}"),new de._Code(r)}if(t,r,n){if(this._blockNode(new po(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new po(t))}else(){return this._elseNode(new ci)}endIf(){return this._endBlockNode(po,ci)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Bd(t),r)}forRange(t,r,n,o,i=this.opts.es5?dr.varKinds.var:dr.varKinds.let){let s=this._scope.toName(t);return this._for(new Hd(i,s,r,n),()=>o(s))}forOf(t,r,n,o=dr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof de.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,de._)`${s}.length`,a=>{this.var(i,(0,de._)`${s}[${a}]`),n(i)})}return this._for(new Rc("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?dr.varKinds.var:dr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,de._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new Rc("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(lo)}label(t){return this._leafNode(new Ld(t))}break(t){return this._leafNode(new Ud(t))}return(t){let r=new qs;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(qs)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new Kd;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new Ns(i),r(i)}return n&&(this._currNode=o.finally=new Ms,this.code(n)),this._endBlockNode(Ns,Ms)}throw(t){return this._leafNode(new zd(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=de.nil,n,o){return this._blockNode(new Cs(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(Cs)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof po))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};re.CodeGen=Gd;function uo(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Oc(e,t){return t instanceof de._CodeOrName?uo(e,t.names):e}function pi(e,t,r){if(e instanceof de.Name)return n(e);if(!o(e))return e;return new de._Code(e._items.reduce((i,s)=>(s instanceof de.Name&&(s=n(s)),s instanceof de._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof de._Code&&i._items.some(s=>s instanceof de.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function g2(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function n0(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,de._)`!${Yd(e)}`}re.not=n0;var b2=o0(re.operators.AND);function v2(...e){return e.reduce(b2)}re.and=v2;var S2=o0(re.operators.OR);function x2(...e){return e.reduce(S2)}re.or=x2;function o0(e){return(t,r)=>t===de.nil?r:r===de.nil?t:(0,de._)`${Yd(t)} ${e} ${Yd(r)}`}function Yd(e){return e instanceof de.Name?e:(0,de._)`(${e})`}});var se=S(ie=>{"use strict";Object.defineProperty(ie,"__esModule",{value:!0});ie.checkStrictMode=ie.getErrorPath=ie.Type=ie.useFunc=ie.setEvaluated=ie.evaluatedPropsToName=ie.mergeEvaluated=ie.eachItem=ie.unescapeJsonPointer=ie.escapeJsonPointer=ie.escapeFragment=ie.unescapeFragment=ie.schemaRefOrVal=ie.schemaHasRulesButRef=ie.schemaHasRules=ie.checkUnknownRules=ie.alwaysValidSchema=ie.toHash=void 0;var Te=V(),w2=ks();function _2(e){let t={};for(let r of e)t[r]=!0;return t}ie.toHash=_2;function P2(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(a0(e,t),!c0(t,e.self.RULES.all))}ie.alwaysValidSchema=P2;function a0(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||u0(e,`unknown keyword: "${i}"`)}ie.checkUnknownRules=a0;function c0(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ie.schemaHasRules=c0;function E2(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ie.schemaHasRulesButRef=E2;function $2({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Te._)`${r}`}return(0,Te._)`${e}${t}${(0,Te.getProperty)(n)}`}ie.schemaRefOrVal=$2;function A2(e){return p0(decodeURIComponent(e))}ie.unescapeFragment=A2;function T2(e){return encodeURIComponent(Qd(e))}ie.escapeFragment=T2;function Qd(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ie.escapeJsonPointer=Qd;function p0(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ie.unescapeJsonPointer=p0;function R2(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ie.eachItem=R2;function i0({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Te.Name?(i instanceof Te.Name?e(o,i,s):t(o,i,s),s):i instanceof Te.Name?(t(o,s,i),i):r(i,s);return a===Te.Name&&!(c instanceof Te.Name)?n(o,c):c}}ie.mergeEvaluated={props:i0({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Te._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Te._)`${r} || {}`).code((0,Te._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Te._)`${r} || {}`),Jd(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:l0}),items:i0({mergeNames:(e,t,r)=>e.if((0,Te._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Te._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Te._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Te._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function l0(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Te._)`{}`);return t!==void 0&&Jd(e,r,t),r}ie.evaluatedPropsToName=l0;function Jd(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Te._)`${t}${(0,Te.getProperty)(n)}`,!0))}ie.setEvaluated=Jd;var s0={};function O2(e,t){return e.scopeValue("func",{ref:t,code:s0[t.code]||(s0[t.code]=new w2._Code(t.code))})}ie.useFunc=O2;var Wd;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Wd||(ie.Type=Wd={}));function k2(e,t,r){if(e instanceof Te.Name){let n=t===Wd.Num;return r?n?(0,Te._)`"[" + ${e} + "]"`:(0,Te._)`"['" + ${e} + "']"`:n?(0,Te._)`"/" + ${e}`:(0,Te._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Te.getProperty)(e).toString():"/"+Qd(e)}ie.getErrorPath=k2;function u0(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ie.checkStrictMode=u0});var bt=S(Xd=>{"use strict";Object.defineProperty(Xd,"__esModule",{value:!0});var tt=V(),I2={data:new tt.Name("data"),valCxt:new tt.Name("valCxt"),instancePath:new tt.Name("instancePath"),parentData:new tt.Name("parentData"),parentDataProperty:new tt.Name("parentDataProperty"),rootData:new tt.Name("rootData"),dynamicAnchors:new tt.Name("dynamicAnchors"),isAllOfVariant:new tt.Name("isAllOfVariant"),vErrors:new tt.Name("vErrors"),errors:new tt.Name("errors"),this:new tt.Name("this"),self:new tt.Name("self"),scope:new tt.Name("scope"),json:new tt.Name("json"),jsonPos:new tt.Name("jsonPos"),jsonLen:new tt.Name("jsonLen"),jsonPart:new tt.Name("jsonPart")};Xd.default=I2});var js=S(ut=>{"use strict";Object.defineProperty(ut,"__esModule",{value:!0});ut.extendErrors=ut.resetErrorsCount=ut.reportExtraError=ut.reportError=ut.keyword$DataError=ut.keywordError=void 0;var ye=V(),Ic=se(),vt=bt();ut.keywordError={message:({keyword:e})=>(0,ye.str)`must pass "${e}" keyword validation`};ut.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,ye.str)`"${e}" keyword must be ${t} ($data)`:(0,ye.str)`"${e}" keyword is invalid ($data)`};function C2(e,t=ut.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=m0(e,t,r);n??(s||a)?d0(i,c):f0(o,(0,ye._)`[${c}]`)}ut.reportError=C2;function q2(e,t=ut.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=m0(e,t,r);d0(o,a),i||s||f0(n,vt.default.vErrors)}ut.reportExtraError=q2;function N2(e,t){e.assign(vt.default.errors,t),e.if((0,ye._)`${vt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,ye._)`${vt.default.vErrors}.length`,t),()=>e.assign(vt.default.vErrors,null)))}ut.resetErrorsCount=N2;function M2({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,vt.default.errors,a=>{e.const(s,(0,ye._)`${vt.default.vErrors}[${a}]`),e.if((0,ye._)`${s}.instancePath === undefined`,()=>e.assign((0,ye._)`${s}.instancePath`,(0,ye.strConcat)(vt.default.instancePath,i.errorPath))),e.assign((0,ye._)`${s}.schemaPath`,(0,ye.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,ye._)`${s}.schema`,r),e.assign((0,ye._)`${s}.data`,n))})}ut.extendErrors=M2;function d0(e,t){let r=e.const("err",t);e.if((0,ye._)`${vt.default.vErrors} === null`,()=>e.assign(vt.default.vErrors,(0,ye._)`[${r}]`),(0,ye._)`${vt.default.vErrors}.push(${r})`),e.code((0,ye._)`${vt.default.errors}++`)}function f0(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,ye._)`new ${e.ValidationError}(${t})`):(r.assign((0,ye._)`${n}.errors`,t),r.return(!1))}var fo={keyword:new ye.Name("keyword"),schemaPath:new ye.Name("schemaPath"),params:new ye.Name("params"),propertyName:new ye.Name("propertyName"),message:new ye.Name("message"),schema:new ye.Name("schema"),parentSchema:new ye.Name("parentSchema")};function m0(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,ye._)`{}`:j2(e,t,r)}function j2(e,t,r={}){let{gen:n,it:o}=e,i=[D2(o,r),L2(e,r)];return U2(e,t,i),n.object(...i)}function D2({errorPath:e},{instancePath:t}){let r=t?(0,ye.str)`${e}${(0,Ic.getErrorPath)(t,Ic.Type.Str)}`:e;return[vt.default.instancePath,(0,ye.strConcat)(vt.default.instancePath,r)]}function L2({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,ye.str)`${t}/${e}`;return r&&(o=(0,ye.str)`${o}${(0,Ic.getErrorPath)(r,Ic.Type.Str)}`),[fo.schemaPath,o]}function U2(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:p,topSchemaRef:l,schemaPath:u}=a;n.push([fo.keyword,o],[fo.params,typeof t=="function"?t(e):t||(0,ye._)`{}`]),c.messages&&n.push([fo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([fo.schema,s],[fo.parentSchema,(0,ye._)`${l}${u}`],[vt.default.data,i]),p&&n.push([fo.propertyName,p])}});var y0=S(li=>{"use strict";Object.defineProperty(li,"__esModule",{value:!0});li.boolOrEmptySchema=li.topBoolOrEmptySchema=void 0;var z2=js(),F2=V(),V2=bt(),B2={message:"boolean schema is false"};function H2(e){let{gen:t,schema:r,validateName:n}=e;r===!1?h0(e,!1):typeof r=="object"&&r.$async===!0?t.return(V2.default.data):(t.assign((0,F2._)`${n}.errors`,null),t.return(!0))}li.topBoolOrEmptySchema=H2;function K2(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),h0(e)):r.var(t,!0)}li.boolOrEmptySchema=K2;function h0(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,z2.reportError)(o,B2,void 0,t)}});var Zd=S(ui=>{"use strict";Object.defineProperty(ui,"__esModule",{value:!0});ui.getRules=ui.isJSONType=void 0;var G2=["string","number","integer","boolean","null","object","array"],Y2=new Set(G2);function W2(e){return typeof e=="string"&&Y2.has(e)}ui.isJSONType=W2;function Q2(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}ui.getRules=Q2});var ef=S(wn=>{"use strict";Object.defineProperty(wn,"__esModule",{value:!0});wn.shouldUseRule=wn.shouldUseGroup=wn.schemaHasRulesForType=void 0;function J2({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&g0(e,n)}wn.schemaHasRulesForType=J2;function g0(e,t){return t.rules.some(r=>b0(e,r))}wn.shouldUseGroup=g0;function b0(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}wn.shouldUseRule=b0});var Ds=S(dt=>{"use strict";Object.defineProperty(dt,"__esModule",{value:!0});dt.reportTypeError=dt.checkDataTypes=dt.checkDataType=dt.coerceAndCheckDataType=dt.getJSONTypes=dt.getSchemaTypes=dt.DataType=void 0;var X2=Zd(),Z2=ef(),eU=js(),W=V(),v0=se(),di;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(di||(dt.DataType=di={}));function tU(e){let t=S0(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}dt.getSchemaTypes=tU;function S0(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(X2.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}dt.getJSONTypes=S0;function rU(e,t){let{gen:r,data:n,opts:o}=e,i=nU(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,Z2.schemaHasRulesForType)(e,t[0]));if(s){let a=rf(t,n,o.strictNumbers,di.Wrong);r.if(a,()=>{i.length?oU(e,t,i):nf(e)})}return s}dt.coerceAndCheckDataType=rU;var x0=new Set(["string","number","integer","boolean","null"]);function nU(e,t){return t?e.filter(r=>x0.has(r)||t==="array"&&r==="array"):[]}function oU(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,W._)`typeof ${o}`),a=n.let("coerced",(0,W._)`undefined`);i.coerceTypes==="array"&&n.if((0,W._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,W._)`${o}[0]`).assign(s,(0,W._)`typeof ${o}`).if(rf(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,W._)`${a} !== undefined`);for(let p of r)(x0.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),nf(e),n.endIf(),n.if((0,W._)`${a} !== undefined`,()=>{n.assign(o,a),iU(e,a)});function c(p){switch(p){case"string":n.elseIf((0,W._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,W._)`"" + ${o}`).elseIf((0,W._)`${o} === null`).assign(a,(0,W._)`""`);return;case"number":n.elseIf((0,W._)`${s} == "boolean" || ${o} === null
|
|
9
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,W._)`+${o}`);return;case"integer":n.elseIf((0,W._)`${s} === "boolean" || ${o} === null
|
|
10
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,W._)`+${o}`);return;case"boolean":n.elseIf((0,W._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,W._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,W._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,W._)`${s} === "string" || ${s} === "number"
|
|
11
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,W._)`[${o}]`)}}}function iU({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,W._)`${t} !== undefined`,()=>e.assign((0,W._)`${t}[${r}]`,n))}function tf(e,t,r,n=di.Correct){let o=n===di.Correct?W.operators.EQ:W.operators.NEQ,i;switch(e){case"null":return(0,W._)`${t} ${o} null`;case"array":i=(0,W._)`Array.isArray(${t})`;break;case"object":i=(0,W._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,W._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,W._)`typeof ${t} ${o} ${e}`}return n===di.Correct?i:(0,W.not)(i);function s(a=W.nil){return(0,W.and)((0,W._)`typeof ${t} == "number"`,a,r?(0,W._)`isFinite(${t})`:W.nil)}}dt.checkDataType=tf;function rf(e,t,r,n){if(e.length===1)return tf(e[0],t,r,n);let o,i=(0,v0.toHash)(e);if(i.array&&i.object){let s=(0,W._)`typeof ${t} != "object"`;o=i.null?s:(0,W._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=W.nil;i.number&&delete i.integer;for(let s in i)o=(0,W.and)(o,tf(s,t,r,n));return o}dt.checkDataTypes=rf;var sU={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,W._)`{type: ${e}}`:(0,W._)`{type: ${t}}`};function nf(e){let t=aU(e);(0,eU.reportError)(t,sU)}dt.reportTypeError=nf;function aU(e){let{gen:t,data:r,schema:n}=e,o=(0,v0.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var _0=S(Cc=>{"use strict";Object.defineProperty(Cc,"__esModule",{value:!0});Cc.assignDefaults=void 0;var fi=V(),cU=se();function pU(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)w0(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>w0(e,i,o.default))}Cc.assignDefaults=pU;function w0(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,fi._)`${i}${(0,fi.getProperty)(t)}`;if(o){(0,cU.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,fi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,fi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,fi._)`${a} = ${(0,fi.stringify)(r)}`)}});var sf=S(Nc=>{"use strict";Object.defineProperty(Nc,"__esModule",{value:!0});Nc.getSkipCondition=void 0;var qc=V(),of=bt();function lU(e,t){var r;let n=(r=e.properties)===null||r===void 0?void 0:r[t];if(!n)return;let o=n.readOnly===!0,i=n.writeOnly===!0;if(!o&&!i)return;let s=[],a=(0,qc._)`typeof ${of.default.this} == "object" && ${of.default.this} && ${of.default.this}.apiContext`;return o&&s.push((0,qc._)`${a} === "request"`),i&&s.push((0,qc._)`${a} === "response"`),(0,qc.or)(...s)}Nc.getSkipCondition=lU});var Wt=S($e=>{"use strict";Object.defineProperty($e,"__esModule",{value:!0});$e.validateUnion=$e.validateArray=$e.usePattern=$e.callValidateCode=$e.schemaProperties=$e.allSchemaProperties=$e.noPropertyInData=$e.propertyInData=$e.isOwnProperty=$e.hasPropFunc=$e.reportMissingProp=$e.checkMissingProp=$e.checkReportMissingProp=void 0;var Re=V(),af=se(),rn=bt(),uU=se(),dU=sf();function fU(e,t){let{gen:r,data:n,it:o}=e;r.if(pf(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Re._)`${t}`},!0),e.error()})}$e.checkReportMissingProp=fU;function mU({gen:e,data:t,it:{opts:r},parentSchema:n},o,i){return(0,Re.or)(...o.map(s=>{var a;return(0,Re.and)((0,Re.not)((a=(0,dU.getSkipCondition)(n,s))!==null&&a!==void 0?a:(0,Re._)`false`),pf(e,t,s,r.ownProperties),(0,Re._)`${i} = ${s}`)}))}$e.checkMissingProp=mU;function hU(e,t){e.setParams({missingProperty:t},!0),e.error()}$e.reportMissingProp=hU;function P0(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Re._)`Object.prototype.hasOwnProperty`})}$e.hasPropFunc=P0;function cf(e,t,r){return(0,Re._)`${P0(e)}.call(${t}, ${r})`}$e.isOwnProperty=cf;function yU(e,t,r,n){let o=(0,Re._)`${t}${(0,Re.getProperty)(r)} !== undefined`;return n?(0,Re._)`${o} && ${cf(e,t,r)}`:o}$e.propertyInData=yU;function pf(e,t,r,n){let o=(0,Re._)`${t}${(0,Re.getProperty)(r)} === undefined`;return n?(0,Re.or)(o,(0,Re.not)(cf(e,t,r))):o}$e.noPropertyInData=pf;function E0(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}$e.allSchemaProperties=E0;function gU(e,t){return E0(t).filter(r=>!(0,af.alwaysValidSchema)(e,t[r]))}$e.schemaProperties=gU;function bU({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Re._)`${e}, ${t}, ${n}${o}`:t,u=[[rn.default.instancePath,(0,Re.strConcat)(rn.default.instancePath,i)],[rn.default.parentData,s.parentData],[rn.default.parentDataProperty,s.parentDataProperty],[rn.default.rootData,rn.default.rootData],[rn.default.isAllOfVariant,s.isAllOfVariant?1:0]];s.opts.dynamicRef&&u.push([rn.default.dynamicAnchors,rn.default.dynamicAnchors]);let m=(0,Re._)`${l}, ${r.object(...u)}`;return c!==Re.nil?(0,Re._)`${a}.call(${c}, ${m})`:(0,Re._)`${a}(${m})`}$e.callValidateCode=bU;var vU=(0,Re._)`new RegExp`;function SU({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Re._)`${o.code==="new RegExp"?vU:(0,uU.useFunc)(e,o)}(${r}, ${n})`})}$e.usePattern=SU;function xU(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,Re._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:af.Type.Num},i),t.if((0,Re.not)(i),a)})}}$e.validateArray=xU;function wU(e){let{gen:t,schema:r,keyword:n,parentSchema:o,it:i}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(i.opts.discriminator&&o.discriminator||r.some(p=>(0,af.alwaysValidSchema)(i,p))&&!i.opts.unevaluated)return;let a=t.let("valid",!1),c=t.name("_valid");t.block(()=>r.forEach((p,l)=>{let u=e.subschema({keyword:n,schemaProp:l,compositeRule:!0},c);t.assign(a,(0,Re._)`${a} || ${c}`),e.mergeValidEvaluated(u,c)||t.if((0,Re.not)(a))})),e.result(a,()=>e.reset(),()=>e.error(!0))}$e.validateUnion=wU});var T0=S(Cr=>{"use strict";Object.defineProperty(Cr,"__esModule",{value:!0});Cr.validateKeywordUsage=Cr.validSchemaType=Cr.funcKeywordCode=Cr.macroKeywordCode=void 0;var St=V(),mo=bt(),_U=Wt(),PU=js();function EU(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=A0(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:St.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Cr.macroKeywordCode=EU;function $U(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;TU(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=A0(n,o,p),u=n.let("valid");e.block$data(u,m),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function m(){if(t.errors===!1)h(),t.modifying&&$0(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&$0(e),y(()=>AU(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,St._)`await `),v=>n.assign(u,!1).if((0,St._)`${v} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,St._)`${v}.errors`),()=>n.throw(v))),g}function f(){let g=(0,St._)`${l}.errors`;return n.assign(g,null),h(St.nil),g}function h(g=t.async?(0,St._)`await `:St.nil){let v=c.opts.passContext?mo.default.this:mo.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,St._)`${g}${(0,_U.callValidateCode)(e,l,v,b)}`,t.modifying)}function y(g){var v;n.if((0,St.not)((v=t.valid)!==null&&v!==void 0?v:u),g)}}Cr.funcKeywordCode=$U;function $0(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,St._)`${n.parentData}[${n.parentDataProperty}]`))}function AU(e,t){let{gen:r}=e;r.if((0,St._)`Array.isArray(${t})`,()=>{r.assign(mo.default.vErrors,(0,St._)`${mo.default.vErrors} === null ? ${t} : ${mo.default.vErrors}.concat(${t})`).assign(mo.default.errors,(0,St._)`${mo.default.vErrors}.length`),(0,PU.extendErrors)(e)},()=>e.error())}function TU({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function A0(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,St.stringify)(r)})}function RU(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Cr.validSchemaType=RU;function OU({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Cr.validateKeywordUsage=OU});var O0=S(_n=>{"use strict";Object.defineProperty(_n,"__esModule",{value:!0});_n.extendSubschemaMode=_n.extendSubschemaData=_n.getSubschema=void 0;var qr=V(),R0=se();function kU(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,qr._)`${e.schemaPath}${(0,qr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,qr._)`${e.schemaPath}${(0,qr.getProperty)(t)}${(0,qr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,R0.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}_n.getSubschema=kU;function IU(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:p,dataPathArr:l,opts:u}=t,m=a.let("data",(0,qr._)`${t.data}${(0,qr.getProperty)(r)}`,!0);c(m),e.errorPath=(0,qr.str)`${p}${(0,R0.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,qr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof qr.Name?o:a.let("data",o,!0);c(p),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}_n.extendSubschemaData=IU;function CU(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}_n.extendSubschemaMode=CU});var Ls=S((F7,k0)=>{"use strict";k0.exports=function e(t,r){if(t===r)return!0;if(t&&r&&typeof t=="object"&&typeof r=="object"){if(t.constructor!==r.constructor)return!1;var n,o,i;if(Array.isArray(t)){if(n=t.length,n!=r.length)return!1;for(o=n;o--!==0;)if(!e(t[o],r[o]))return!1;return!0}if(t.constructor===RegExp)return t.source===r.source&&t.flags===r.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===r.valueOf();if(t.toString!==Object.prototype.toString)return t.toString()===r.toString();if(i=Object.keys(t),n=i.length,n!==Object.keys(r).length)return!1;for(o=n;o--!==0;)if(!Object.prototype.hasOwnProperty.call(r,i[o]))return!1;for(o=n;o--!==0;){var s=i[o];if(!e(t[s],r[s]))return!1}return!0}return t!==t&&r!==r}});var lf=S((V7,I0)=>{"use strict";var Pn=I0.exports=function(e,t,r){typeof t=="function"&&(r=t,t={}),r=t.cb||r;var n=typeof r=="function"?r:r.pre||function(){},o=r.post||function(){};Mc(t,n,o,e,"",e)};Pn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0,if:!0,then:!0,else:!0};Pn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Pn.propsKeywords={$defs:!0,definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Pn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function Mc(e,t,r,n,o,i,s,a,c,p){if(n&&typeof n=="object"&&!Array.isArray(n)){t(n,o,i,s,a,c,p);for(var l in n){var u=n[l];if(Array.isArray(u)){if(l in Pn.arrayKeywords)for(var m=0;m<u.length;m++)Mc(e,t,r,u[m],o+"/"+l+"/"+m,i,o,l,n,m)}else if(l in Pn.propsKeywords){if(u&&typeof u=="object")for(var d in u)Mc(e,t,r,u[d],o+"/"+l+"/"+qU(d),i,o,l,n,d)}else(l in Pn.keywords||e.allKeys&&!(l in Pn.skipKeywords))&&Mc(e,t,r,u,o+"/"+l,i,o,l,n)}r(n,o,i,s,a,c,p)}}function qU(e){return e.replace(/~/g,"~0").replace(/\//g,"~1")}});var Us=S(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.getSchemaRefs=kt.resolveUrl=kt.normalizeId=kt._getFullPath=kt.getFullPath=kt.inlineRef=void 0;var NU=se(),MU=Ls(),jU=lf(),DU=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function LU(e,t=!0){return typeof e=="boolean"?!0:t===!0?!uf(e):t?C0(e)<=t:!1}kt.inlineRef=LU;var UU=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function uf(e){for(let t in e){if(UU.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(uf)||typeof r=="object"&&uf(r))return!0}return!1}function C0(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!DU.has(r)&&(typeof e[r]=="object"&&(0,NU.eachItem)(e[r],n=>t+=C0(n)),t===1/0))return 1/0}return t}function q0(e,t="",r){r!==!1&&(t=mi(t));let n=e.parse(t);return N0(e,n)}kt.getFullPath=q0;function N0(e,t){return e.serialize(t).split("#")[0]+"#"}kt._getFullPath=N0;var zU=/#\/?$/;function mi(e){return e?e.replace(zU,""):""}kt.normalizeId=mi;function FU(e,t,r){return r=mi(r),e.resolve(t,r)}kt.resolveUrl=FU;var VU=/^[a-z_][-a-z0-9._]*$/i;function BU(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=mi(e[r]||t),i={"":o},s=q0(n,o,!1),a={},c=new Set;return jU(e,{allKeys:!0},(u,m,d,f)=>{if(f===void 0)return;let h=s+m,y=i[f];typeof u[r]=="string"&&(y=g.call(this,u[r])),v.call(this,u.$anchor),v.call(this,u.$dynamicAnchor),i[m]=y;function g(b){let x=this.opts.uriResolver.resolve;if(b=mi(y?x(y,b):b),c.has(b))throw l(b);c.add(b);let w=this.refs[b];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?p(u,w.schema,b):b!==mi(h)&&(b[0]==="#"?(p(u,a[b],b),a[b]=u):this.refs[b]=h),b}function v(b){if(typeof b=="string"){if(!VU.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function p(u,m,d){if(m!==void 0&&!MU(u,m))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}kt.getSchemaRefs=BU});var hi=S(En=>{"use strict";Object.defineProperty(En,"__esModule",{value:!0});En.getData=En.KeywordCxt=En.validateFunctionCode=void 0;var U0=y0(),M0=Ds(),ff=ef(),jc=Ds(),HU=_0(),Fs=T0(),df=O0(),M=V(),F=bt(),KU=Us(),nn=se(),zs=js();function GU(e){if(V0(e)&&(B0(e),F0(e))){QU(e);return}z0(e,()=>(0,U0.topBoolOrEmptySchema)(e))}En.validateFunctionCode=GU;function z0({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,M._)`${F.default.data}, ${F.default.valCxt}`,n.$async,()=>{e.code((0,M._)`"use strict"; ${j0(r,o)}`),WU(e,o),e.code(i)}):e.func(t,(0,M._)`${F.default.data}, ${YU(o)}`,n.$async,()=>e.code(j0(r,o)).code(i))}function YU(e){return(0,M._)`{${F.default.instancePath}="", ${F.default.parentData}, ${F.default.parentDataProperty}, ${F.default.rootData}=${F.default.data}${e.dynamicRef?(0,M._)`, ${F.default.dynamicAnchors}={}`:M.nil}, ${F.default.isAllOfVariant} = 0}={}`}function WU(e,t){e.if(F.default.valCxt,()=>{e.var(F.default.instancePath,(0,M._)`${F.default.valCxt}.${F.default.instancePath}`),e.var(F.default.parentData,(0,M._)`${F.default.valCxt}.${F.default.parentData}`),e.var(F.default.parentDataProperty,(0,M._)`${F.default.valCxt}.${F.default.parentDataProperty}`),e.var(F.default.rootData,(0,M._)`${F.default.valCxt}.${F.default.rootData}`),e.var(F.default.isAllOfVariant,(0,M._)`${F.default.valCxt}.${F.default.isAllOfVariant}`),t.dynamicRef&&e.var(F.default.dynamicAnchors,(0,M._)`${F.default.valCxt}.${F.default.dynamicAnchors}`)},()=>{e.var(F.default.instancePath,(0,M._)`""`),e.var(F.default.parentData,(0,M._)`undefined`),e.var(F.default.parentDataProperty,(0,M._)`undefined`),e.var(F.default.rootData,F.default.data),e.var(F.default.isAllOfVariant,(0,M._)`0`),t.dynamicRef&&e.var(F.default.dynamicAnchors,(0,M._)`{}`)})}function QU(e){let{schema:t,opts:r,gen:n}=e;z0(e,()=>{r.$comment&&t.$comment&&K0(e),tz(e),n.let(F.default.vErrors,null),n.let(F.default.errors,0),r.unevaluated&&JU(e),H0(e),oz(e)})}function JU(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,M._)`${r}.evaluated`),t.if((0,M._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,M._)`${e.evaluated}.props`,(0,M._)`undefined`)),t.if((0,M._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,M._)`${e.evaluated}.items`,(0,M._)`undefined`))}function j0(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,M._)`/*# sourceURL=${r} */`:M.nil}function XU(e,t){if(V0(e)&&(B0(e),F0(e))){ZU(e,t);return}(0,U0.boolOrEmptySchema)(e,t)}function F0({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function V0(e){return typeof e.schema!="boolean"}function ZU(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&K0(e),rz(e),nz(e);let i=n.const("_errs",F.default.errors);H0(e,i),n.var(t,(0,M._)`${i} === ${F.default.errors}`)}function B0(e){(0,nn.checkUnknownRules)(e),ez(e)}function H0(e,t){if(e.opts.jtd)return D0(e,[],!1,t);let r=(0,M0.getSchemaTypes)(e.schema),n=(0,M0.coerceAndCheckDataType)(e,r);D0(e,r,!n,t)}function ez(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,nn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function tz(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,nn.checkStrictMode)(e,"default is ignored in the schema root")}function rz(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,KU.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function nz(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function K0({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,M._)`${F.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,M.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,M._)`${F.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function oz(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,M._)`${F.default.errors} === 0`,()=>t.return(F.default.data),()=>t.throw((0,M._)`new ${o}(${F.default.vErrors})`)):(t.assign((0,M._)`${n}.errors`,F.default.vErrors),i.unevaluated&&iz(e),t.return((0,M._)`${F.default.errors} === 0`))}function iz({gen:e,evaluated:t,props:r,items:n}){r instanceof M.Name&&e.assign((0,M._)`${t}.props`,r),n instanceof M.Name&&e.assign((0,M._)`${t}.items`,n)}function D0(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:p}=e,{RULES:l}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,nn.schemaHasRulesButRef)(i,l))){o.block(()=>Y0(e,"$ref",l.all.$ref.definition));return}c.jtd||sz(e,t),o.block(()=>{for(let m of l.rules)u(m);u(l.post)});function u(m){(0,ff.shouldUseGroup)(i,m)&&(m.type?(o.if((0,jc.checkDataType)(m.type,s,c.strictNumbers)),L0(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,jc.reportTypeError)(e)),o.endIf()):L0(e,m),a||o.if((0,M._)`${F.default.errors} === ${n||0}`))}}function L0(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,HU.assignDefaults)(e,t.type),r.block(()=>{for(let s of t.rules)((0,ff.shouldUseRule)(n,s)||i(n,s))&&Y0(e,s.keyword,s.definition,t.type)});function i(s,a){return!!(a.keyword==="unevaluatedProperties"&&(s.properties||s.patternProperties)&&!e.isAllOfVariant&&e.opts.defaultUnevaluatedProperties===!1)}}function sz(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(az(e,t),e.opts.allowUnionTypes||cz(e,t),pz(e,e.dataTypes))}function az(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{G0(e.dataTypes,r)||mf(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),uz(e,t)}}function cz(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&mf(e,"use allowUnionTypes to allow union type keyword")}function pz(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,ff.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>lz(t,s))&&mf(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function lz(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function G0(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function uz(e,t){let r=[];for(let n of e.dataTypes)G0(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function mf(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,nn.checkStrictMode)(e,t,e.opts.strictTypes)}var Dc=class{constructor(t,r,n){if((0,Fs.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,nn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",W0(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Fs.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",F.default.errors))}result(t,r,n){this.failResult((0,M.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,M.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,M._)`${r} !== undefined && (${(0,M.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?zs.reportExtraError:zs.reportError)(this,this.def.error,r)}$dataError(){(0,zs.reportError)(this,this.def.$dataError||zs.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,zs.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=M.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=M.nil,r=M.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,M.or)((0,M._)`${o} === undefined`,r)),t!==M.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==M.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,M.or)(s(),a());function s(){if(n.length){if(!(r instanceof M.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,M._)`${(0,jc.checkDataTypes)(c,r,i.opts.strictNumbers,jc.DataType.Wrong)}`}return M.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,M._)`!${c}(${r})`}return M.nil}}subschema(t,r,n){let o=(0,df.getSubschema)(this.it,t);(0,df.extendSubschemaData)(o,this.it,t),(0,df.extendSubschemaMode)(o,t);let i={...this.it,...o,items:void 0,props:void 0,isAllOfVariant:n};return XU(i,r),i}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=nn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=nn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,M.Name)),!0}};En.KeywordCxt=Dc;function Y0(e,t,r,n){let o=new Dc(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Fs.funcKeywordCode)(o,r):"macro"in r?(0,Fs.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Fs.funcKeywordCode)(o,r)}var dz=/^\/(?:[^~]|~0|~1)*$/,fz=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function W0(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return F.default.rootData;if(e[0]==="/"){if(!dz.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=F.default.rootData}else{let p=fz.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+p[1];if(o=p[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(i=r[t-l],!o)return i}let s=i,a=o.split("/");for(let p of a)p&&(i=(0,M._)`${i}${(0,M.getProperty)((0,nn.unescapeJsonPointer)(p))}`,s=(0,M._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}En.getData=W0});var Vs=S(yf=>{"use strict";Object.defineProperty(yf,"__esModule",{value:!0});var hf=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};yf.default=hf});var yi=S(vf=>{"use strict";Object.defineProperty(vf,"__esModule",{value:!0});var gf=Us(),bf=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,gf.resolveUrl)(t,r,n),this.missingSchema=(0,gf.normalizeId)((0,gf.getFullPath)(t,this.missingRef))}};vf.default=bf});var Bs=S(Qt=>{"use strict";Object.defineProperty(Qt,"__esModule",{value:!0});Qt.resolveSchema=Qt.getCompilingSchema=Qt.resolveRef=Qt.compileSchema=Qt.SchemaEnv=void 0;var fr=V(),mz=Vs(),ho=bt(),mr=Us(),Q0=se(),hz=hi(),gi=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,mr.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};Qt.SchemaEnv=gi;function xf(e){let t=X0.call(this,e);if(t)return t;let r=(0,mr.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new fr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:mz.default,code:(0,fr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:ho.default.data,parentData:ho.default.parentData,parentDataProperty:ho.default.parentDataProperty,dataNames:[ho.default.data],dataPathArr:[fr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,fr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:fr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,fr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,hz.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`const visitedNodesForRef = new WeakMap(); ${s.scopeRefs(ho.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${ho.default.self}`,`${ho.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=p;d.evaluated={props:f instanceof fr.Name?void 0:f,items:h instanceof fr.Name?void 0:h,dynamicProps:f instanceof fr.Name,dynamicItems:h instanceof fr.Name},d.source&&(d.source.evaluated=(0,fr.stringify)(d.evaluated))}return e.validate=d,e}catch(u){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),u}finally{this._compilations.delete(e)}}Qt.compileSchema=xf;function yz(e,t,r){var n;let o=(0,mr.resolveUrl)(this.opts.uriResolver,t,r),i=e.refs[o];if(i)return i;let s=J0.call(this,e,o);if(s===void 0){let a=(n=e.localRefs)===null||n===void 0?void 0:n[o],{schemaId:c}=this.opts;a&&(s=new gi({schema:a,schemaId:c,root:e,baseId:t}))}if(s===void 0&&this.opts.loadSchemaSync){let a=this.opts.loadSchemaSync(t,r,o);a&&!(this.refs[o]||this.schemas[o])&&(this.addSchema(a,o,void 0),s=J0.call(this,e,o))}if(s!==void 0)return e.refs[o]=gz.call(this,s)}Qt.resolveRef=yz;function gz(e){return(0,mr.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:xf.call(this,e)}function X0(e){for(let t of this._compilations)if(bz(t,e))return t}Qt.getCompilingSchema=X0;function bz(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function J0(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Lc.call(this,e,t)}function Lc(e,t){let r=this.opts.uriResolver.parse(t),n=(0,mr._getFullPath)(this.opts.uriResolver,r),o=(0,mr.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Sf.call(this,r,e);let i=(0,mr.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Lc.call(this,e,s);return typeof a?.schema!="object"?void 0:Sf.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||xf.call(this,s),i===(0,mr.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,mr.resolveUrl)(this.opts.uriResolver,o,p)),new gi({schema:a,schemaId:c,root:e,baseId:o})}return Sf.call(this,r,s)}}Qt.resolveSchema=Lc;var vz=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Sf(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,Q0.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!vz.has(a)&&p&&(t=(0,mr.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,Q0.schemaHasRulesButRef)(r,this.RULES)){let a=(0,mr.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Lc.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new gi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var Z0=S((W7,Sz)=>{Sz.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var Pf=S((Q7,iS)=>{"use strict";var xz=RegExp.prototype.test.bind(/^[\da-f]{8}-[\da-f]{4}-[\da-f]{4}-[\da-f]{4}-[\da-f]{12}$/iu),tS=RegExp.prototype.test.bind(/^(?:(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d{2}|[1-9]\d|\d)$/u),wf=RegExp.prototype.test.bind(/^[\da-f]{2}$/iu),rS=RegExp.prototype.test.bind(/^[\da-z\-._~]$/iu),wz=RegExp.prototype.test.bind(/^[\da-z\-._~!$&'()*+,;=:@/]$/iu);function _f(e){let t="",r=0,n=0;for(n=0;n<e.length;n++)if(r=e[n].charCodeAt(0),r!==48){if(!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n];break}for(n+=1;n<e.length;n++){if(r=e[n].charCodeAt(0),!(r>=48&&r<=57||r>=65&&r<=70||r>=97&&r<=102))return"";t+=e[n]}return t}var _z=RegExp.prototype.test.bind(/[^!"$&'()*+,\-.;=_`a-z{}~]/u);function eS(e){return e.length=0,!0}function Pz(e,t,r){if(e.length){let n=_f(e);if(n!=="")t.push(n);else return r.error=!0,!1;e.length=0}return!0}function Ez(e){let t=0,r={error:!1,address:"",zone:""},n=[],o=[],i=!1,s=!1,a=Pz;for(let c=0;c<e.length;c++){let p=e[c];if(!(p==="["||p==="]"))if(p===":"){if(i===!0&&(s=!0),!a(o,n,r))break;if(++t>7){r.error=!0;break}c>0&&e[c-1]===":"&&(i=!0),n.push(":");continue}else if(p==="%"){if(!a(o,n,r))break;a=eS}else{o.push(p);continue}}return o.length&&(a===eS?r.zone=o.join(""):s?n.push(o.join("")):n.push(_f(o))),r.address=n.join(""),r}function nS(e){if($z(e,":")<2)return{host:e,isIPV6:!1};let t=Ez(e);if(t.error)return{host:e,isIPV6:!1};{let r=t.address,n=t.address;return t.zone&&(r+="%"+t.zone,n+="%25"+t.zone),{host:r,isIPV6:!0,escapedHost:n}}}function $z(e,t){let r=0;for(let n=0;n<e.length;n++)e[n]===t&&r++;return r}function Az(e){let t=e,r=[],n=-1,o=0;for(;o=t.length;){if(o===1){if(t===".")break;if(t==="/"){r.push("/");break}else{r.push(t);break}}else if(o===2){if(t[0]==="."){if(t[1]===".")break;if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&(t[1]==="."||t[1]==="/")){r.push("/");break}}else if(o===3&&t==="/.."){r.length!==0&&r.pop(),r.push("/");break}if(t[0]==="."){if(t[1]==="."){if(t[2]==="/"){t=t.slice(3);continue}}else if(t[1]==="/"){t=t.slice(2);continue}}else if(t[0]==="/"&&t[1]==="."){if(t[2]==="/"){t=t.slice(2);continue}else if(t[2]==="."&&t[3]==="/"){t=t.slice(3),r.length!==0&&r.pop();continue}}if((n=t.indexOf("/",1))===-1){r.push(t);break}else r.push(t.slice(0,n)),t=t.slice(n)}return r.join("")}var Tz={"@":"%40","/":"%2F","?":"%3F","#":"%23",":":"%3A"},Rz=/[@/?#:]/g,Oz=/[@/?#]/g;function oS(e,t){let r=t?Oz:Rz;return r.lastIndex=0,e.replace(r,n=>Tz[n])}function kz(e,t=!1){if(e.indexOf("%")===-1)return e;let r="";for(let n=0;n<e.length;n++){if(e[n]==="%"&&n+2<e.length){let o=e.slice(n+1,n+3);if(wf(o)){let i=o.toUpperCase(),s=String.fromCharCode(parseInt(i,16));t&&rS(s)?r+=s:r+="%"+i,n+=2;continue}}r+=e[n]}return r}function Iz(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(wf(n)){let o=n.toUpperCase(),i=String.fromCharCode(parseInt(o,16));i!=="."&&rS(i)?t+=i:t+="%"+o,r+=2;continue}}wz(e[r])?t+=e[r]:t+=escape(e[r])}return t}function Cz(e){let t="";for(let r=0;r<e.length;r++){if(e[r]==="%"&&r+2<e.length){let n=e.slice(r+1,r+3);if(wf(n)){t+="%"+n.toUpperCase(),r+=2;continue}}t+=escape(e[r])}return t}function qz(e){let t=[];if(e.userinfo!==void 0&&(t.push(e.userinfo),t.push("@")),e.host!==void 0){let r=unescape(e.host);if(!tS(r)){let n=nS(r);n.isIPV6===!0?r=`[${n.escapedHost}]`:r=oS(r,!1)}t.push(r)}return(typeof e.port=="number"||typeof e.port=="string")&&(t.push(":"),t.push(String(e.port))),t.length?t.join(""):void 0}iS.exports={nonSimpleDomain:_z,recomposeAuthority:qz,reescapeHostDelimiters:oS,normalizePercentEncoding:kz,normalizePathEncoding:Iz,escapePreservingEscapes:Cz,removeDotSegments:Az,isIPv4:tS,isUUID:xz,normalizeIPv6:nS,stringArrayToHexStripped:_f}});var lS=S((J7,pS)=>{"use strict";var{isUUID:Nz}=Pf(),Mz=/([\da-z][\d\-a-z]{0,31}):((?:[\w!$'()*+,\-.:;=@]|%[\da-f]{2})+)/iu,jz=["http","https","ws","wss","urn","urn:uuid"];function Dz(e){return jz.indexOf(e)!==-1}function Ef(e){return e.secure===!0?!0:e.secure===!1?!1:e.scheme?e.scheme.length===3&&(e.scheme[0]==="w"||e.scheme[0]==="W")&&(e.scheme[1]==="s"||e.scheme[1]==="S")&&(e.scheme[2]==="s"||e.scheme[2]==="S"):!1}function sS(e){return e.host||(e.error=e.error||"HTTP URIs must have a host."),e}function aS(e){let t=String(e.scheme).toLowerCase()==="https";return(e.port===(t?443:80)||e.port==="")&&(e.port=void 0),e.path||(e.path="/"),e}function Lz(e){return e.secure=Ef(e),e.resourceName=(e.path||"/")+(e.query?"?"+e.query:""),e.path=void 0,e.query=void 0,e}function Uz(e){if((e.port===(Ef(e)?443:80)||e.port==="")&&(e.port=void 0),typeof e.secure=="boolean"&&(e.scheme=e.secure?"wss":"ws",e.secure=void 0),e.resourceName){let[t,r]=e.resourceName.split("?");e.path=t&&t!=="/"?t:void 0,e.query=r,e.resourceName=void 0}return e.fragment=void 0,e}function zz(e,t){if(!e.path)return e.error="URN can not be parsed",e;let r=e.path.match(Mz);if(r){let n=t.scheme||e.scheme||"urn";e.nid=r[1].toLowerCase(),e.nss=r[2];let o=`${n}:${t.nid||e.nid}`,i=$f(o);e.path=void 0,i&&(e=i.parse(e,t))}else e.error=e.error||"URN can not be parsed.";return e}function Fz(e,t){if(e.nid===void 0)throw new Error("URN without nid cannot be serialized");let r=t.scheme||e.scheme||"urn",n=e.nid.toLowerCase(),o=`${r}:${t.nid||n}`,i=$f(o);i&&(e=i.serialize(e,t));let s=e,a=e.nss;return s.path=`${n||t.nid}:${a}`,t.skipEscape=!0,s}function Vz(e,t){let r=e;return r.uuid=r.nss,r.nss=void 0,!t.tolerant&&(!r.uuid||!Nz(r.uuid))&&(r.error=r.error||"UUID is not valid."),r}function Bz(e){let t=e;return t.nss=(e.uuid||"").toLowerCase(),t}var cS={scheme:"http",domainHost:!0,parse:sS,serialize:aS},Hz={scheme:"https",domainHost:cS.domainHost,parse:sS,serialize:aS},Uc={scheme:"ws",domainHost:!0,parse:Lz,serialize:Uz},Kz={scheme:"wss",domainHost:Uc.domainHost,parse:Uc.parse,serialize:Uc.serialize},Gz={scheme:"urn",parse:zz,serialize:Fz,skipNormalize:!0},Yz={scheme:"urn:uuid",parse:Vz,serialize:Bz,skipNormalize:!0},zc={http:cS,https:Hz,ws:Uc,wss:Kz,urn:Gz,"urn:uuid":Yz};Object.setPrototypeOf(zc,null);function $f(e){return e&&(zc[e]||zc[e.toLowerCase()])||void 0}pS.exports={wsIsSecure:Ef,SCHEMES:zc,isValidSchemeName:Dz,getSchemeHandler:$f}});var Tf=S((X7,Bc)=>{"use strict";var{normalizeIPv6:Wz,removeDotSegments:Hs,recomposeAuthority:Qz,normalizePercentEncoding:Jz,normalizePathEncoding:Xz,escapePreservingEscapes:Zz,reescapeHostDelimiters:eF,isIPv4:tF,nonSimpleDomain:rF}=Pf(),{SCHEMES:nF,getSchemeHandler:dS}=lS();function oF(e,t){return typeof e=="string"?e=uF(e,t):typeof e=="object"&&(e=Vc(yo(e,t),t)),e}function iF(e,t,r){let n=r?Object.assign({scheme:"null"},r):{scheme:"null"},{parsed:o,malformedAuthorityOrPort:i}=Fc(e,n),{parsed:s,malformedAuthorityOrPort:a}=Fc(t,n);if(i||a)throw new Error(o.error||s.error||"URI is malformed.");let c=fS(o,s,n,!0);return n.skipEscape=!0,yo(c,n)}function fS(e,t,r,n){let o={};return n||(e=Vc(yo(e,r),r),t=Vc(yo(t,r),r)),r=r||{},!r.tolerant&&t.scheme?(o.scheme=t.scheme,o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Hs(t.path||""),o.query=t.query):(t.userinfo!==void 0||t.host!==void 0||t.port!==void 0?(o.userinfo=t.userinfo,o.host=t.host,o.port=t.port,o.path=Hs(t.path||""),o.query=t.query):(t.path?(t.path[0]==="/"?o.path=Hs(t.path):((e.userinfo!==void 0||e.host!==void 0||e.port!==void 0)&&!e.path?o.path="/"+t.path:e.path?o.path=e.path.slice(0,e.path.lastIndexOf("/")+1)+t.path:o.path=t.path,o.path=Hs(o.path)),o.query=t.query):(o.path=e.path,t.query!==void 0?o.query=t.query:o.query=e.query),o.userinfo=e.userinfo,o.host=e.host,o.port=e.port),o.scheme=e.scheme),o.fragment=t.fragment,o}function sF(e,t,r){let n=uS(e,r),o=uS(t,r);return n!==void 0&&o!==void 0&&n.toLowerCase()===o.toLowerCase()}function yo(e,t){let r={host:e.host,scheme:e.scheme,userinfo:e.userinfo,port:e.port,path:e.path,query:e.query,nid:e.nid,nss:e.nss,uuid:e.uuid,fragment:e.fragment,reference:e.reference,resourceName:e.resourceName,secure:e.secure,error:""},n=Object.assign({},t),o=[],i=dS(n.scheme||r.scheme);i&&i.serialize&&i.serialize(r,n),r.path!==void 0&&(n.skipEscape?r.path=Jz(r.path):(r.path=Zz(r.path),r.scheme!==void 0&&(r.path=r.path.split("%3A").join(":")))),n.reference!=="suffix"&&r.scheme&&o.push(r.scheme,":");let s=Qz(r);if(s!==void 0&&(n.reference!=="suffix"&&o.push("//"),o.push(s),r.path&&r.path[0]!=="/"&&o.push("/")),r.path!==void 0){let a=r.path;!n.absolutePath&&(!i||!i.absolutePath)&&(a=Hs(a)),s===void 0&&a[0]==="/"&&a[1]==="/"&&(a="/%2F"+a.slice(2)),o.push(a)}return r.query!==void 0&&o.push("?",r.query),r.fragment!==void 0&&o.push("#",r.fragment),o.join("")}var aF=/^(?:([^#/:?]+):)?(?:\/\/((?:([^#/?@]*)@)?(\[[^#/?\]]+\]|[^#/:?]*)(?::(\d*))?))?([^#?]*)(?:\?([^#]*))?(?:#((?:.|[\n\r])*))?/u,cF=/^(?:[^#/:?]+:)?\/\/([^/?#]*)/,pF=/^(?:[^#/:?]+:)?([/\\\t\n\r]*)/;function lF(e,t){if(t[2]!==void 0&&e.path&&e.path[0]!=="/")return'URI path must start with "/" when authority is present.';if(typeof e.port=="number"&&(e.port<0||e.port>65535))return"URI port is malformed."}function Fc(e,t){let r=Object.assign({},t),n={scheme:void 0,userinfo:void 0,host:"",port:void 0,path:"",query:void 0,fragment:void 0},o=!1,i=!1;r.reference==="suffix"&&(r.scheme?e=r.scheme+":"+e:e="//"+e);let s=e.match(cF);s!==null&&s[1].indexOf("\\")!==-1&&(n.error="URI authority must not contain a literal backslash.",o=!0);let a=e.match(pF);if(a!==null){let p=a[1],l=p.replace(/[\t\n\r]/g,"");l.length>=2&&(l.slice(0,2)!=="//"?(n.error=n.error||"URI authority must not contain a literal backslash.",o=!0):p.length!==l.length&&(n.error=n.error||"URI authority introducer must not contain whitespace.",o=!0))}let c=e.match(aF);if(c){n.scheme=c[1],n.userinfo=c[3],n.host=c[4],n.port=parseInt(c[5],10),n.path=c[6]||"",n.query=c[7],n.fragment=c[8],isNaN(n.port)&&(n.port=c[5]);let p=lF(n,c);if(p!==void 0&&(n.error=n.error||p,o=!0),n.host)if(tF(n.host)===!1){let m=Wz(n.host);n.host=m.host.toLowerCase(),i=m.isIPV6}else i=!0;n.scheme===void 0&&n.userinfo===void 0&&n.host===void 0&&n.port===void 0&&n.query===void 0&&!n.path?n.reference="same-document":n.scheme===void 0?n.reference="relative":n.fragment===void 0?n.reference="absolute":n.reference="uri",r.reference&&r.reference!=="suffix"&&r.reference!==n.reference&&(n.error=n.error||"URI is not a "+r.reference+" reference.");let l=dS(r.scheme||n.scheme);if(!r.unicodeSupport&&(!l||!l.unicodeSupport)&&n.host&&(r.domainHost||l&&l.domainHost)&&i===!1&&rF(n.host))try{n.host=new URL("http://"+n.host).hostname}catch(u){n.error=n.error||"Host's domain name can not be converted to ASCII: "+u}if((!l||l&&!l.skipNormalize)&&(e.indexOf("%")!==-1&&(n.scheme!==void 0&&(n.scheme=unescape(n.scheme)),n.host!==void 0&&(n.host=eF(unescape(n.host),i))),n.path&&(n.path=Xz(n.path)),n.fragment))try{n.fragment=encodeURI(decodeURIComponent(n.fragment))}catch{n.error=n.error||"URI malformed"}l&&l.parse&&l.parse(n,r)}else n.error=n.error||"URI can not be parsed.";return{parsed:n,malformedAuthorityOrPort:o}}function Vc(e,t){return Fc(e,t).parsed}function uF(e,t){return mS(e,t).normalized}function mS(e,t){let{parsed:r,malformedAuthorityOrPort:n}=Fc(e,t);return{normalized:n?e:yo(r,t),malformedAuthorityOrPort:n}}function uS(e,t){if(typeof e=="string"){let{normalized:r,malformedAuthorityOrPort:n}=mS(e,t);return n?void 0:r}if(typeof e=="object")return yo(e,t)}var Af={SCHEMES:nF,normalize:oF,resolve:iF,resolveComponent:fS,equal:sF,serialize:yo,parse:Vc};Bc.exports=Af;Bc.exports.default=Af;Bc.exports.fastUri=Af});var yS=S(Rf=>{"use strict";Object.defineProperty(Rf,"__esModule",{value:!0});var hS=Tf();hS.code='require("ajv/dist/runtime/uri").default';Rf.default=hS});var If=S(rt=>{"use strict";Object.defineProperty(rt,"__esModule",{value:!0});rt.CodeGen=rt.Name=rt.nil=rt.stringify=rt.str=rt._=rt.KeywordCxt=void 0;var dF=hi();Object.defineProperty(rt,"KeywordCxt",{enumerable:!0,get:function(){return dF.KeywordCxt}});var bi=V();Object.defineProperty(rt,"_",{enumerable:!0,get:function(){return bi._}});Object.defineProperty(rt,"str",{enumerable:!0,get:function(){return bi.str}});Object.defineProperty(rt,"stringify",{enumerable:!0,get:function(){return bi.stringify}});Object.defineProperty(rt,"nil",{enumerable:!0,get:function(){return bi.nil}});Object.defineProperty(rt,"Name",{enumerable:!0,get:function(){return bi.Name}});Object.defineProperty(rt,"CodeGen",{enumerable:!0,get:function(){return bi.CodeGen}});var fF=Vs(),xS=yi(),mF=Zd(),Ks=Bs(),hF=V(),Gs=Us(),Hc=Ds(),kf=se(),gS=Z0(),yF=yS(),wS=(e,t)=>new RegExp(e,t);wS.code="new RegExp";var gF=["removeAdditional","useDefaults","coerceTypes","defaultUnevaluatedProperties","defaultAdditionalProperties"],bF=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),vF={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},SF={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},bS=200;function xF(e){var t,r,n,o,i,s,a,c,p,l,u,m,d,f,h,y,g,v,b,x,w,_,T,A,R;let P=e.strict,J=(t=e.code)===null||t===void 0?void 0:t.optimize,H=J===!0||J===void 0?1:J||0,z=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:wS,E=(o=e.uriResolver)!==null&&o!==void 0?o:yF.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:P)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:P)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:P)!==null&&l!==void 0?l:"log",strictTuples:(m=(u=e.strictTuples)!==null&&u!==void 0?u:P)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:P)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:H,regExp:z}:{optimize:H,regExp:z},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:bS,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:bS,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(_=e.validateSchema)!==null&&_!==void 0?_:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(R=e.int32range)!==null&&R!==void 0?R:!0,uriResolver:E}}var Ys=class{constructor(t={}){this.schemas={},this.refs={},this.formats={},this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...xF(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new hF.ValueScope({scope:{},prefixes:bF,es5:r,lines:n}),this.logger=AF(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,mF.getRules)(),vS.call(this,vF,t,"NOT SUPPORTED"),vS.call(this,SF,t,"DEPRECATED","warn"),this._metaOpts=EF.call(this),t.formats&&_F.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&PF.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),wF.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=gS;n==="id"&&(o={...gS},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}setDefaultUnevaluatedProperties(t){this.opts.defaultUnevaluatedProperties=t}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(l,u){await i.call(this,l.$schema);let m=this._addSchema(l,u);return m.validate||s.call(this,m)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(u){if(!(u instanceof xS.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:u}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${u} cannot be resolved`)}async function c(l){let u=await p.call(this,l);this.refs[l]||await i.call(this,u.$schema),this.refs[l]||this.addSchema(u,l,r)}async function p(l){let u=this._loading[l];if(u)return u;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Gs.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=SS.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Ks.SchemaEnv({schema:{},schemaId:n});if(r=Ks.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=SS.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Gs.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(RF.call(this,n,r),!r)return(0,kf.eachItem)(n,i=>Of.call(this,i)),this;kF.call(this,r);let o={...r,type:(0,Hc.getJSONTypes)(r.type),schemaType:(0,Hc.getJSONTypes)(r.schemaType)};return(0,kf.eachItem)(n,o.type.length===0?i=>Of.call(this,i,o):i=>o.type.forEach(s=>Of.call(this,i,o,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:p}=c.definition,l=s[a];p&&l&&(s[a]=_S(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Gs.normalizeId)(s||n);let p=Gs.getSchemaRefs.call(this,t,n);return c=new Ks.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Ks.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Ks.compileSchema.call(this,t)}finally{this.opts=r}}};Ys.ValidationError=fF.default;Ys.MissingRefError=xS.default;rt.default=Ys;function vS(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function SS(e){return e=(0,Gs.normalizeId)(e),this.schemas[e]||this.refs[e]}function wF(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function _F(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function PF(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function EF(){let e={...this.opts};for(let t of gF)delete e[t];return e}var $F={log(){},warn(){},error(){}};function AF(e){if(e===!1)return $F;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var TF=/^[a-z_$][a-z0-9_$:-]*$/i;function RF(e,t){let{RULES:r}=this;if((0,kf.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!TF.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function Of(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Hc.getJSONTypes)(t.type),schemaType:(0,Hc.getJSONTypes)(t.schemaType)}};t.before?OF.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function OF(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function kF(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=_S(t)),e.validateSchema=this.compile(t,!0))}var IF={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function _S(e){return{anyOf:[e,IF]}}});var PS=S(Cf=>{"use strict";Object.defineProperty(Cf,"__esModule",{value:!0});var CF={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};Cf.default=CF});var Ws=S(go=>{"use strict";Object.defineProperty(go,"__esModule",{value:!0});go.callRef=go.getValidate=void 0;var qF=yi(),ES=Wt(),Be=V(),vi=bt(),$S=Bs(),Kc=se(),NF={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return u();let l=$S.resolveRef.call(c,p,o,r);if(l===void 0)throw new qF.default(n.opts.uriResolver,o,r);if(l instanceof $S.SchemaEnv)return m(l);return d(l);function u(){if(i===p)return Gc(e,s,i,i.$async);let f=t.scopeValue("root",{ref:p});return Gc(e,(0,Be._)`${f}.validate`,p,p.$async)}function m(f){let h=AS(e,f);Gc(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,Be.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:Be.nil,topSchemaRef:h,errSchemaPath:r},y,n.isAllOfVariant);e.mergeEvaluated(g),e.ok(y)}}};function AS(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Be._)`${r.scopeValue("wrapper",{ref:t})}.validate`}go.getValidate=AS;function Gc(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?vi.default.this:Be.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=o.let("valid");o.try(()=>{o.code((0,Be._)`await ${(0,ES.callValidateCode)(e,t,p)}`),d(t),s||o.assign(f,!0)},h=>{o.if((0,Be._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),m(h),s||o.assign(f,!1)}),e.ok(f)}function u(){let f=o.name("visitedNodes");o.code((0,Be._)`const ${f} = (typeof visitedNodesForRef !== 'undefined') && visitedNodesForRef.get(${t}) || new Set()`),o.if((0,Be._)`!${f}.has(${e.data})`,()=>{o.code((0,Be._)`if (typeof visitedNodesForRef !== 'undefined') visitedNodesForRef.set(${t}, ${f})`),o.code((0,Be._)`const dataNode = ${e.data}`),o.code((0,Be._)`if (typeof dataNode === "object" && dataNode !== null) ${f}.add(dataNode)`);let h=e.result((0,ES.callValidateCode)(e,t,p),()=>d(t),()=>m(t));return o.code((0,Be._)`${f}.delete(dataNode)`),h})}function m(f){let h=(0,Be._)`${f}.errors`;o.assign(vi.default.vErrors,(0,Be._)`${vi.default.vErrors} === null ? ${h} : ${vi.default.vErrors}.concat(${h})`),o.assign(vi.default.errors,(0,Be._)`${vi.default.vErrors}.length`)}function d(f){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Kc.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,Be._)`${f}.evaluated.props`);i.props=Kc.mergeEvaluated.props(o,g,i.props,Be.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Kc.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,Be._)`${f}.evaluated.items`);i.items=Kc.mergeEvaluated.items(o,g,i.items,Be.Name)}}}go.callRef=Gc;go.default=NF});var TS=S(qf=>{"use strict";Object.defineProperty(qf,"__esModule",{value:!0});var MF=PS(),jF=Ws(),DF=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",MF.default,jF.default];qf.default=DF});var RS=S(Nf=>{"use strict";Object.defineProperty(Nf,"__esModule",{value:!0});var Yc=V(),$n=Yc.operators,Wc={maximum:{okStr:"<=",ok:$n.LTE,fail:$n.GT},minimum:{okStr:">=",ok:$n.GTE,fail:$n.LT},exclusiveMaximum:{okStr:"<",ok:$n.LT,fail:$n.GTE},exclusiveMinimum:{okStr:">",ok:$n.GT,fail:$n.LTE}},LF={message:({keyword:e,schemaCode:t})=>(0,Yc.str)`must be ${Wc[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Yc._)`{comparison: ${Wc[e].okStr}, limit: ${t}}`},UF={keyword:Object.keys(Wc),type:"number",schemaType:"number",$data:!0,error:LF,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Yc._)`${r} ${Wc[t].fail} ${n} || isNaN(${r})`)}};Nf.default=UF});var OS=S(Mf=>{"use strict";Object.defineProperty(Mf,"__esModule",{value:!0});var Qs=V(),zF={message:({schemaCode:e})=>(0,Qs.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Qs._)`{multipleOf: ${e}}`},FF={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:zF,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Qs._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Qs._)`${s} !== parseInt(${s})`;e.fail$data((0,Qs._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};Mf.default=FF});var IS=S(jf=>{"use strict";Object.defineProperty(jf,"__esModule",{value:!0});function kS(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}jf.default=kS;kS.code='require("ajv/dist/runtime/ucs2length").default'});var CS=S(Df=>{"use strict";Object.defineProperty(Df,"__esModule",{value:!0});var bo=V(),VF=se(),BF=IS(),HF={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,bo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,bo._)`{limit: ${e}}`},KF={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:HF,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?bo.operators.GT:bo.operators.LT,s=o.opts.unicode===!1?(0,bo._)`${r}.length`:(0,bo._)`${(0,VF.useFunc)(e.gen,BF.default)}(${r})`;e.fail$data((0,bo._)`${s} ${i} ${n}`)}};Df.default=KF});var qS=S(Lf=>{"use strict";Object.defineProperty(Lf,"__esModule",{value:!0});var GF=Wt(),YF=se(),Si=V(),WF={message:({schemaCode:e})=>(0,Si.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Si._)`{pattern: ${e}}`},QF={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:WF,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,p=c.code==="new RegExp"?(0,Si._)`new RegExp`:(0,YF.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Si._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Si._)`!${l}`)}else{let c=(0,GF.usePattern)(e,o);e.fail$data((0,Si._)`!${c}.test(${r})`)}}};Lf.default=QF});var NS=S(Uf=>{"use strict";Object.defineProperty(Uf,"__esModule",{value:!0});var Js=V(),JF={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,Js.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,Js._)`{limit: ${e}}`},XF={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:JF,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?Js.operators.GT:Js.operators.LT;e.fail$data((0,Js._)`Object.keys(${r}).length ${o} ${n}`)}};Uf.default=XF});var MS=S(zf=>{"use strict";Object.defineProperty(zf,"__esModule",{value:!0});var Xs=Wt(),ZF=sf(),vo=V(),eV=se(),tV={message:({params:{missingProperty:e}})=>(0,vo.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,vo._)`{missingProperty: ${e}}`},rV={keyword:"required",type:"object",schemaType:"array",$data:!0,error:tV,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?p():l(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if(d?.[h]===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,eV.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){var d;if(c||i)e.block$data(vo.nil,u);else for(let f of r){let h=(d=(0,ZF.getSkipCondition)(e.parentSchema,f))!==null&&d!==void 0?d:(0,vo._)`false`;t.if((0,vo.not)(h),()=>(0,Xs.checkReportMissingProp)(e,f))}}function l(){let d=t.let("missing");if(c||i){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Xs.checkMissingProp)(e,r,d)),(0,Xs.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Xs.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Xs.propertyInData)(t,o,d,a.ownProperties)),t.if((0,vo.not)(f),()=>{e.error(),t.break()})},vo.nil)}}};zf.default=rV});var DS=S(Vf=>{"use strict";Object.defineProperty(Vf,"__esModule",{value:!0});var Ff=V(),jS=bt(),nV={message:()=>(0,Ff.str)`must NOT be present in request context`},oV={keyword:"readOnly",schemaType:"boolean",error:nV,code(e){if(e.schema!==!0)return;let t=(0,Ff._)`(${jS.default.this} && ${jS.default.this}.apiContext)`;e.fail((0,Ff._)`${t} === "request"`)}};Vf.default=oV});var US=S(Hf=>{"use strict";Object.defineProperty(Hf,"__esModule",{value:!0});var Bf=V(),LS=bt(),iV={message:()=>(0,Bf.str)`must NOT be present in response context`},sV={keyword:"writeOnly",schemaType:"boolean",error:iV,code(e){if(e.schema!==!0)return;let t=(0,Bf._)`(${LS.default.this} && ${LS.default.this}.apiContext)`;e.fail((0,Bf._)`${t} === "response"`)}};Hf.default=sV});var zS=S(Kf=>{"use strict";Object.defineProperty(Kf,"__esModule",{value:!0});var Zs=V(),aV={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,Zs.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,Zs._)`{limit: ${e}}`},cV={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:aV,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?Zs.operators.GT:Zs.operators.LT;e.fail$data((0,Zs._)`${r}.length ${o} ${n}`)}};Kf.default=cV});var Qc=S(Gf=>{"use strict";Object.defineProperty(Gf,"__esModule",{value:!0});var FS=Ls();FS.code='require("ajv/dist/runtime/equal").default';Gf.default=FS});var VS=S(Wf=>{"use strict";Object.defineProperty(Wf,"__esModule",{value:!0});var Yf=Ds(),nt=V(),pV=se(),lV=Qc(),uV={message:({params:{i:e,j:t}})=>(0,nt.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,nt._)`{i: ${e}, j: ${t}}`},dV={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:uV,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,Yf.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,nt._)`${s} === false`),e.ok(c);function l(){let f=t.let("i",(0,nt._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,nt._)`${f} > 1`,()=>(u()?m:d)(f,h))}function u(){return p.length>0&&!p.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,Yf.checkDataTypes)(p,y,a.opts.strictNumbers,Yf.DataType.Wrong),v=t.const("indices",(0,nt._)`{}`);t.for((0,nt._)`;${f}--;`,()=>{t.let(y,(0,nt._)`${r}[${f}]`),t.if(g,(0,nt._)`continue`),p.length>1&&t.if((0,nt._)`typeof ${y} == "string"`,(0,nt._)`${y} += "_"`),t.if((0,nt._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(h,(0,nt._)`${v}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,nt._)`${v}[${y}] = ${f}`)})}function d(f,h){let y=(0,pV.useFunc)(t,lV.default),g=t.name("outer");t.label(g).for((0,nt._)`;${f}--;`,()=>t.for((0,nt._)`${h} = ${f}; ${h}--;`,()=>t.if((0,nt._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};Wf.default=dV});var BS=S(Jf=>{"use strict";Object.defineProperty(Jf,"__esModule",{value:!0});var Qf=V(),fV=se(),mV=Qc(),hV={message:"must be equal to constant",params:({schemaCode:e})=>(0,Qf._)`{allowedValue: ${e}}`},yV={keyword:"const",$data:!0,error:hV,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,Qf._)`!${(0,fV.useFunc)(t,mV.default)}(${r}, ${o})`):e.fail((0,Qf._)`${i} !== ${r}`)}};Jf.default=yV});var HS=S(Xf=>{"use strict";Object.defineProperty(Xf,"__esModule",{value:!0});var ea=V(),gV=se(),bV=Qc(),vV={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,ea._)`{allowedValues: ${e}}`},SV={keyword:"enum",schemaType:"array",$data:!0,error:vV,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,p=()=>c??(c=(0,gV.useFunc)(t,bV.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let d=t.const("vSchema",i);l=(0,ea.or)(...o.map((f,h)=>m(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,ea._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function m(d,f){let h=o[f];return typeof h=="object"&&h!==null?(0,ea._)`${p()}(${r}, ${d}[${f}])`:(0,ea._)`${r} === ${h}`}}};Xf.default=SV});var em=S(Zf=>{"use strict";Object.defineProperty(Zf,"__esModule",{value:!0});var xV=RS(),wV=OS(),_V=CS(),PV=qS(),EV=NS(),$V=MS(),AV=DS(),TV=US(),RV=zS(),OV=VS(),kV=BS(),IV=HS(),CV=[xV.default,wV.default,_V.default,PV.default,EV.default,$V.default,AV.default,TV.default,RV.default,OV.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},kV.default,IV.default];Zf.default=CV});var rm=S(ta=>{"use strict";Object.defineProperty(ta,"__esModule",{value:!0});ta.validateAdditionalItems=void 0;var So=V(),tm=se(),qV={message:({params:{len:e}})=>(0,So.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,So._)`{limit: ${e}}`},NV={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:qV,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,tm.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}KS(e,n)}};function KS(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,So._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,So._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,tm.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,So._)`${a} <= ${t.length}`);r.if((0,So.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:tm.Type.Num},p),s.allErrors||r.if((0,So.not)(p),()=>r.break())})}}ta.validateAdditionalItems=KS;ta.default=NV});var nm=S(ra=>{"use strict";Object.defineProperty(ra,"__esModule",{value:!0});ra.validateTuple=void 0;var GS=V(),Jc=se(),MV=Wt(),jV={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return YS(e,"additionalItems",t);r.items=!0,!(0,Jc.alwaysValidSchema)(r,t)&&e.ok((0,MV.validateArray)(e))}};function YS(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Jc.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,GS._)`${i}.length`);r.forEach((u,m)=>{(0,Jc.alwaysValidSchema)(a,u)||(n.if((0,GS._)`${p} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function l(u){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===u.minItems&&(f===u.maxItems||u[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Jc.checkStrictMode)(a,y,m.strictTuples)}}}ra.validateTuple=YS;ra.default=jV});var WS=S(om=>{"use strict";Object.defineProperty(om,"__esModule",{value:!0});var DV=nm(),LV={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,DV.validateTuple)(e,"items")};om.default=LV});var JS=S(im=>{"use strict";Object.defineProperty(im,"__esModule",{value:!0});var QS=V(),UV=se(),zV=Wt(),FV=rm(),VV={message:({params:{len:e}})=>(0,QS.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,QS._)`{limit: ${e}}`},BV={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:VV,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,UV.alwaysValidSchema)(n,t)&&(o?(0,FV.validateAdditionalItems)(e,o):e.ok((0,zV.validateArray)(e)))}};im.default=BV});var XS=S(sm=>{"use strict";Object.defineProperty(sm,"__esModule",{value:!0});var Jt=V(),Xc=se(),HV={message:({params:{min:e,max:t}})=>t===void 0?(0,Jt.str)`must contain at least ${e} valid item(s)`:(0,Jt.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,Jt._)`{minContains: ${e}}`:(0,Jt._)`{minContains: ${e}, maxContains: ${t}}`},KV={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:HV,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:p}=n;i.opts.next?(s=c===void 0?1:c,a=p):s=1;let l=t.const("len",(0,Jt._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,Xc.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,Xc.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,Xc.alwaysValidSchema)(i,r)){let h=(0,Jt._)`${l} >= ${s}`;a!==void 0&&(h=(0,Jt._)`${h} && ${l} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?d(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,Jt._)`${o}.length > 0`,m)):(t.let(u,!1),m()),e.result(u,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:Xc.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,Jt._)`${h}++`),a===void 0?t.if((0,Jt._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,Jt._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,Jt._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};sm.default=KV});var Zc=S(Nr=>{"use strict";Object.defineProperty(Nr,"__esModule",{value:!0});Nr.validateSchemaDeps=Nr.validatePropertyDeps=Nr.error=void 0;var am=V(),GV=se(),na=Wt();Nr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,am.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,am._)`{property: ${e},
|
|
12
|
-
missingProperty: ${n},
|
|
13
|
-
depsCount: ${t},
|
|
14
|
-
deps: ${r}}`};var YV={keyword:"dependencies",type:"object",schemaType:"object",error:Nr.error,code(e){let[t,r]=WV(e);ZS(e,t),ex(e,r)}};function WV({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function ZS(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,na.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of a)(0,na.checkReportMissingProp)(e,p)}):(r.if((0,am._)`${c} && (${(0,na.checkMissingProp)(e,a,i)})`),(0,na.reportMissingProp)(e,i),r.else())}}Nr.validatePropertyDeps=ZS;function ex(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,GV.alwaysValidSchema)(i,t[a])||(r.if((0,na.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Nr.validateSchemaDeps=ex;Nr.default=YV});var rx=S(cm=>{"use strict";Object.defineProperty(cm,"__esModule",{value:!0});var tx=V(),QV=se(),JV={message:"property name must be valid",params:({params:e})=>(0,tx._)`{propertyName: ${e.propertyName}}`},XV={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:JV,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,QV.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),t.if((0,tx.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};cm.default=XV});var lm=S(pm=>{"use strict";Object.defineProperty(pm,"__esModule",{value:!0});var ep=Wt(),hr=V(),ZV=bt(),tp=se(),eB={message:"must NOT have additional properties",params:({params:e})=>(0,hr._)`{additionalProperty: ${e.additionalProperty}}`},tB={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:eB,code(e){let{gen:t,parentSchema:r,data:n,errsCount:o,it:i}=e,{schema:s=i.opts.defaultAdditionalProperties}=e;if(!o)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=i;if(i.props=!0,c.removeAdditional!=="all"&&(0,tp.alwaysValidSchema)(i,s))return;let p=(0,ep.allSchemaProperties)(r.properties),l=(0,ep.allSchemaProperties)(r.patternProperties);u(),e.ok((0,hr._)`${o} === ${ZV.default.errors}`);function u(){t.forIn("key",n,y=>{!p.length&&!l.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(p.length>8){let v=(0,tp.schemaRefOrVal)(i,r.properties,"properties");g=(0,ep.isOwnProperty)(t,v,y)}else p.length?g=(0,hr.or)(...p.map(v=>(0,hr._)`${y} === ${v}`)):g=hr.nil;return l.length&&(g=(0,hr.or)(g,...l.map(v=>(0,hr._)`${(0,ep.usePattern)(e,v)}.test(${y})`))),(0,hr.not)(g)}function d(y){t.code((0,hr._)`delete ${n}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&s===!1){d(y);return}if(s===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof s=="object"&&!(0,tp.alwaysValidSchema)(i,s)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,hr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,hr.not)(g),()=>t.break()))}}function h(y,g,v){let b={keyword:"additionalProperties",dataProp:y,dataPropType:tp.Type.Str};v===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};pm.default=tB});var ix=S(dm=>{"use strict";Object.defineProperty(dm,"__esModule",{value:!0});var rB=hi(),nx=Wt(),um=se(),ox=lm(),nB={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;(i.opts.removeAdditional==="all"&&n.additionalProperties===void 0||i.opts.defaultAdditionalProperties===!1)&&ox.default.code(new rB.KeywordCxt(i,ox.default,"additionalProperties"));let s=(0,nx.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=um.mergeEvaluated.props(t,(0,um.toHash)(s),i.props));let a=s.filter(u=>!(0,um.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)p(u)?l(u):(t.if((0,nx.propertyInData)(t,o,u,i.opts.ownProperties)),l(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function p(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function l(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};dm.default=nB});var px=S(fm=>{"use strict";Object.defineProperty(fm,"__esModule",{value:!0});var sx=Wt(),rp=V(),ax=se(),cx=se(),oB={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:s}=i,a=(0,sx.allSchemaProperties)(r),c=a.filter(h=>(0,ax.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let p=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof rp.Name)&&(i.props=(0,cx.evaluatedPropsToName)(t,i.props));let{props:u}=i;m();function m(){for(let h of a)p&&d(h),i.allErrors?f(h):(t.var(l,!0),f(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,ax.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,rp._)`${(0,sx.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:cx.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,rp._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,rp.not)(l),()=>t.break())})})}}};fm.default=oB});var lx=S(mm=>{"use strict";Object.defineProperty(mm,"__esModule",{value:!0});var iB=se(),sB={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,iB.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};mm.default=sB});var ux=S(hm=>{"use strict";Object.defineProperty(hm,"__esModule",{value:!0});var aB=Wt(),cB={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:aB.validateUnion,error:{message:"must match a schema in anyOf"}};hm.default=cB});var dx=S(ym=>{"use strict";Object.defineProperty(ym,"__esModule",{value:!0});var np=V(),pB=se(),lB={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,np._)`{passingSchemas: ${e.passing}}`},uB={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:lB,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(p),e.result(s,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((l,u)=>{let m;(0,pB.alwaysValidSchema)(o,l)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,np._)`${c} && ${s}`).assign(s,!1).assign(a,(0,np._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),m&&e.mergeEvaluated(m,np.Name)})})}}};ym.default=uB});var fx=S(gm=>{"use strict";Object.defineProperty(gm,"__esModule",{value:!0});var dB=se(),fB={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,s)=>{if((0,dB.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o,!0);e.ok(o),e.mergeEvaluated(a)})}};gm.default=fB});var yx=S(bm=>{"use strict";Object.defineProperty(bm,"__esModule",{value:!0});var op=V(),hx=se(),mB={message:({params:e})=>(0,op.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,op._)`{failingKeyword: ${e.ifClause}}`},hB={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:mB,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,hx.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=mx(n,"then"),i=mx(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,p("then",l),p("else",l))}else o?t.if(a,p("then")):t.if((0,op.not)(a),p("else"));e.pass(s,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function p(l,u){return()=>{let m=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(m,s),u?t.assign(u,(0,op._)`${l}`):e.setParams({ifClause:l})}}}};function mx(e,t){let r=e.schema[t];return r!==void 0&&!(0,hx.alwaysValidSchema)(e,r)}bm.default=hB});var gx=S(vm=>{"use strict";Object.defineProperty(vm,"__esModule",{value:!0});var yB=se(),gB={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,yB.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};vm.default=gB});var xm=S(Sm=>{"use strict";Object.defineProperty(Sm,"__esModule",{value:!0});var bB=rm(),vB=WS(),SB=nm(),xB=JS(),wB=XS(),_B=Zc(),PB=rx(),EB=lm(),$B=ix(),AB=px(),TB=lx(),RB=ux(),OB=dx(),kB=fx(),IB=yx(),CB=gx();function qB(e=!1){let t=[TB.default,RB.default,OB.default,kB.default,IB.default,CB.default,PB.default,EB.default,_B.default,$B.default,AB.default];return e?t.push(vB.default,xB.default):t.push(bB.default,SB.default),t.push(wB.default),t}Sm.default=qB});var _m=S(oa=>{"use strict";Object.defineProperty(oa,"__esModule",{value:!0});oa.dynamicAnchor=void 0;var wm=V(),NB=bt(),bx=Bs(),MB=Ws(),jB={keyword:"$dynamicAnchor",schemaType:"string",code:e=>vx(e,e.schema)};function vx(e,t){let{gen:r,it:n}=e;n.schemaEnv.root.dynamicAnchors[t]=!0;let o=(0,wm._)`${NB.default.dynamicAnchors}${(0,wm.getProperty)(t)}`,i=n.errSchemaPath==="#"?n.validateName:DB(e);r.if((0,wm._)`!${o}`,()=>r.assign(o,i))}oa.dynamicAnchor=vx;function DB(e){let{schemaEnv:t,schema:r,self:n}=e.it,{root:o,baseId:i,localRefs:s,meta:a}=t.root,{schemaId:c}=n.opts,p=new bx.SchemaEnv({schema:r,schemaId:c,root:o,baseId:i,localRefs:s,meta:a});return bx.compileSchema.call(n,p),(0,MB.getValidate)(e,p)}oa.default=jB});var Pm=S(ia=>{"use strict";Object.defineProperty(ia,"__esModule",{value:!0});ia.dynamicRef=void 0;var Sx=V(),LB=bt(),xx=Ws(),UB={keyword:"$dynamicRef",schemaType:"string",code:e=>wx(e,e.schema)};function wx(e,t){let{gen:r,keyword:n,it:o}=e;if(t[0]!=="#")throw new Error(`"${n}" only supports hash fragment reference`);let i=t.slice(1);if(o.allErrors)s();else{let c=r.let("valid",!1);s(c),e.ok(c)}function s(c){if(o.schemaEnv.root.dynamicAnchors[i]){let p=r.let("_v",(0,Sx._)`${LB.default.dynamicAnchors}${(0,Sx.getProperty)(i)}`);r.if(p,a(p,c),a(o.validateName,c))}else a(o.validateName,c)()}function a(c,p){return p?()=>r.block(()=>{(0,xx.callRef)(e,c),r.let(p,!0)}):()=>(0,xx.callRef)(e,c)}}ia.dynamicRef=wx;ia.default=UB});var _x=S(Em=>{"use strict";Object.defineProperty(Em,"__esModule",{value:!0});var zB=_m(),FB=se(),VB={keyword:"$recursiveAnchor",schemaType:"boolean",code(e){e.schema?(0,zB.dynamicAnchor)(e,""):(0,FB.checkStrictMode)(e.it,"$recursiveAnchor: false is ignored")}};Em.default=VB});var Px=S($m=>{"use strict";Object.defineProperty($m,"__esModule",{value:!0});var BB=Pm(),HB={keyword:"$recursiveRef",schemaType:"string",code:e=>(0,BB.dynamicRef)(e,e.schema)};$m.default=HB});var Ex=S(Am=>{"use strict";Object.defineProperty(Am,"__esModule",{value:!0});var KB=_m(),GB=Pm(),YB=_x(),WB=Px(),QB=[KB.default,GB.default,YB.default,WB.default];Am.default=QB});var Ax=S(Tm=>{"use strict";Object.defineProperty(Tm,"__esModule",{value:!0});var $x=Zc(),JB={keyword:"dependentRequired",type:"object",schemaType:"object",error:$x.error,code:e=>(0,$x.validatePropertyDeps)(e)};Tm.default=JB});var Tx=S(Rm=>{"use strict";Object.defineProperty(Rm,"__esModule",{value:!0});var XB=Zc(),ZB={keyword:"dependentSchemas",type:"object",schemaType:"object",code:e=>(0,XB.validateSchemaDeps)(e)};Rm.default=ZB});var Rx=S(Om=>{"use strict";Object.defineProperty(Om,"__esModule",{value:!0});var e3=se(),t3={keyword:["maxContains","minContains"],type:"array",schemaType:"number",code({keyword:e,parentSchema:t,it:r}){t.contains===void 0&&(0,e3.checkStrictMode)(r,`"${e}" without "contains" is ignored`)}};Om.default=t3});var Ox=S(km=>{"use strict";Object.defineProperty(km,"__esModule",{value:!0});var r3=Ax(),n3=Tx(),o3=Rx(),i3=[r3.default,n3.default,o3.default];km.default=i3});var Cx=S(Im=>{"use strict";Object.defineProperty(Im,"__esModule",{value:!0});var on=V(),kx=se(),Ix=bt(),s3={message:"must NOT have unevaluated properties",params:({params:e})=>(0,on._)`{unevaluatedProperty: ${e.unevaluatedProperty}}`},a3={keyword:"unevaluatedProperties",type:"object",schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:s3,code(e){let{gen:t,schema:r=e.it.opts.defaultUnevaluatedProperties,data:n,errsCount:o,it:i}=e,s=e.schema===void 0&&e.it.opts.defaultUnevaluatedProperties===!1;if(!o)throw new Error("ajv implementation error");let{allErrors:a,props:c}=i;if(c instanceof on.Name)t.if((0,on._)`${c} !== true`,()=>t.forIn("key",n,m=>t.if(l(c,m),()=>p(m))));else if(c!==!0){let m=()=>t.forIn("key",n,d=>c===void 0?p(d):t.if(u(c,d),()=>p(d)));s&&i.errorPath.emptyStr()&&!i.compositeRule?t.if((0,on._)`${Ix.default.isAllOfVariant} === 0`,m):(!i.compositeRule||e.schema!==void 0)&&m()}s||(i.props=!0),e.ok((0,on._)`${o} === ${Ix.default.errors}`);function p(m){if(r===!1){e.setParams({unevaluatedProperty:m}),e.error(),a||t.break();return}if(!(0,kx.alwaysValidSchema)(i,r)){let d=t.name("valid");e.subschema({keyword:"unevaluatedProperties",dataProp:m,dataPropType:kx.Type.Str},d),a||t.if((0,on.not)(d),()=>t.break())}}function l(m,d){return(0,on._)`!${m} || !${m}[${d}]`}function u(m,d){let f=[];for(let h in m)m[h]===!0&&f.push((0,on._)`${d} !== ${h}`);return(0,on.and)(...f)}}};Im.default=a3});var Nx=S(Cm=>{"use strict";Object.defineProperty(Cm,"__esModule",{value:!0});var xo=V(),qx=se(),c3={message:({params:{len:e}})=>(0,xo.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,xo._)`{limit: ${e}}`},p3={keyword:"unevaluatedItems",type:"array",schemaType:["boolean","object"],error:c3,code(e){let{gen:t,schema:r,data:n,it:o}=e,i=o.items||0;if(i===!0)return;let s=t.const("len",(0,xo._)`${n}.length`);if(r===!1)e.setParams({len:i}),e.fail((0,xo._)`${s} > ${i}`);else if(typeof r=="object"&&!(0,qx.alwaysValidSchema)(o,r)){let c=t.var("valid",(0,xo._)`${s} <= ${i}`);t.if((0,xo.not)(c),()=>a(c,i)),e.ok(c)}o.items=!0;function a(c,p){t.forRange("i",p,s,l=>{e.subschema({keyword:"unevaluatedItems",dataProp:l,dataPropType:qx.Type.Num},c),o.allErrors||t.if((0,xo.not)(c),()=>t.break())})}}};Cm.default=p3});var Nm=S(qm=>{"use strict";Object.defineProperty(qm,"__esModule",{value:!0});var l3=Cx(),u3=Nx(),d3=[l3.default,u3.default];qm.default=d3});var Mx=S(Mm=>{"use strict";Object.defineProperty(Mm,"__esModule",{value:!0});var Fe=V(),f3={message:({schemaCode:e})=>(0,Fe.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Fe._)`{format: ${e}}`},m3={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:f3,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:p,schemaEnv:l,self:u}=a;if(!c.validateFormats)return;o?m():d();function m(){let f=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Fe._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Fe._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Fe._)`${h}.type || "string"`).assign(g,(0,Fe._)`${h}.validate`),()=>r.assign(y,(0,Fe._)`"string"`).assign(g,h)),e.fail$data((0,Fe.or)(v(),b()));function v(){return c.strictSchema===!1?Fe.nil:(0,Fe._)`${s} && !${g}`}function b(){let x=l.$async?(0,Fe._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Fe._)`${g}(${n})`,w=(0,Fe._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Fe._)`${g} && ${g} !== true && ${y} === ${t} && !${w}`}}function d(){let f=u.formats[i];if(!f){v();return}if(f===!0)return;let[h,y,g]=b(f);h===t&&e.pass(x());function v(){if(c.strictSchema===!1){u.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function b(w){let _=w instanceof RegExp?(0,Fe.regexpCode)(w):c.code.formats?(0,Fe._)`${c.code.formats}${(0,Fe.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:w,code:_});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Fe._)`${T}.validate`]:["string",w,T]}function x(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Fe._)`await ${g}(${n})`}return typeof y=="function"?(0,Fe._)`${g}(${n})`:(0,Fe._)`${g}.test(${n})`}}}};Mm.default=m3});var Dm=S(jm=>{"use strict";Object.defineProperty(jm,"__esModule",{value:!0});var h3=Mx(),y3=[h3.default];jm.default=y3});var jx=S(xi=>{"use strict";Object.defineProperty(xi,"__esModule",{value:!0});xi.contentVocabulary=xi.metadataVocabulary=void 0;xi.metadataVocabulary=["title","description","default","deprecated","examples"];xi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var Lx=S(Lm=>{"use strict";Object.defineProperty(Lm,"__esModule",{value:!0});var g3=TS(),b3=em(),v3=xm(),S3=Ex(),x3=Ox(),w3=Nm(),_3=Dm(),Dx=jx(),P3=[S3.default,g3.default,b3.default,(0,v3.default)(!0),_3.default,Dx.metadataVocabulary,Dx.contentVocabulary,x3.default,w3.default];Lm.default=P3});var zx=S(ip=>{"use strict";Object.defineProperty(ip,"__esModule",{value:!0});ip.DiscrError=void 0;var Ux;(function(e){e.Tag="tag",e.Mapping="mapping"})(Ux||(ip.DiscrError=Ux={}))});var Fm=S(zm=>{"use strict";Object.defineProperty(zm,"__esModule",{value:!0});var wi=V(),Um=zx(),Fx=Bs(),E3=yi(),$3=se(),A3={message:({params:{discrError:e,tagName:t}})=>e===Um.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf or anyOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,wi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`};function T3(e,t){var r;if(!(!e.allOf||!Array.isArray(e.allOf))){for(let n of e.allOf)if(!((r=n?.properties)===null||r===void 0)&&r[t])return n.properties[t]}}var R3={keyword:"discriminator",type:"object",schemaType:"object",error:A3,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,s=o.oneOf?"oneOf":o.anyOf?"anyOf":void 0;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(!s)throw new Error("discriminator: requires oneOf or anyOf composite keyword");let c=o[s],p=t.let("valid",!1),l=t.const("tag",(0,wi._)`${r}${(0,wi.getProperty)(a)}`);t.if((0,wi._)`typeof ${l} == "string"`,()=>u(),()=>e.error(!1,{discrError:Um.DiscrError.Tag,tag:l,tagName:a})),e.ok(p);function u(){let f=d();t.if(!1);for(let h in f)t.elseIf((0,wi._)`${l} === ${h}`),t.assign(p,m(f[h]));t.else(),e.error(!1,{discrError:Um.DiscrError.Mapping,tag:l,tagName:a}),t.endIf()}function m(f){let h=t.name("valid"),y=e.subschema({keyword:s,schemaProp:f},h);return e.mergeEvaluated(y,wi.Name),h}function d(){var f;let h={},y=v(o),g=!0;for(let w=0;w<c.length;w++){let _=c[w],T=_?.$ref;if(T&&n.mapping){let{mapping:R}=n,P=Object.keys(R).filter(J=>R[J]===_.$ref);if(P.length){for(let J of P)x(J,w);continue}}if(T&&!(0,$3.schemaHasRulesButRef)(_,i.self.RULES)&&(_=Fx.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),_ instanceof Fx.SchemaEnv&&(_=_.schema),_===void 0))throw new E3.default(i.opts.uriResolver,i.baseId,T);let A=(f=_?.properties)===null||f===void 0?void 0:f[a];if(!A&&_?.allOf&&(A=T3(_,a)),typeof A!="object")throw new Error(`discriminator: ${s} subschemas (or referenced schemas) must have "properties/${a}" or match mapping`);g=g&&(y||v(_)),b(A,w)}if(!g)throw new Error(`discriminator: "${a}" must be required`);return h;function v(w){if(Array.isArray(w.required)&&w.required.includes(a))return!0;if(w.allOf&&Array.isArray(w.allOf))for(let _ of w.allOf){let T=_;if(Array.isArray(T.required)&&T.required.includes(a))return!0}return!1}function b(w,_){if(w.const)x(w.const,_);else if(w.enum)for(let T of w.enum)x(T,_);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function x(w,_){if(typeof w!="string"||w in h)throw new Error(`discriminator: "${a}" values must be unique strings`);h[w]=_}}}};zm.default=R3});var Vx=S((eZ,O3)=>{O3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/schema",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0,"https://json-schema.org/draft/2020-12/vocab/applicator":!0,"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0,"https://json-schema.org/draft/2020-12/vocab/validation":!0,"https://json-schema.org/draft/2020-12/vocab/meta-data":!0,"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0,"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Core and Validation specifications meta-schema",allOf:[{$ref:"meta/core"},{$ref:"meta/applicator"},{$ref:"meta/unevaluated"},{$ref:"meta/validation"},{$ref:"meta/meta-data"},{$ref:"meta/format-annotation"},{$ref:"meta/content"}],type:["object","boolean"],$comment:"This meta-schema also defines keywords that have appeared in previous drafts in order to prevent incompatible extensions as they remain in common use.",properties:{definitions:{$comment:'"definitions" has been replaced by "$defs".',type:"object",additionalProperties:{$dynamicRef:"#meta"},deprecated:!0,default:{}},dependencies:{$comment:'"dependencies" has been split and replaced by "dependentSchemas" and "dependentRequired" in order to serve their differing semantics.',type:"object",additionalProperties:{anyOf:[{$dynamicRef:"#meta"},{$ref:"meta/validation#/$defs/stringArray"}]},deprecated:!0,default:{}},$recursiveAnchor:{$comment:'"$recursiveAnchor" has been replaced by "$dynamicAnchor".',$ref:"meta/core#/$defs/anchorString",deprecated:!0},$recursiveRef:{$comment:'"$recursiveRef" has been replaced by "$dynamicRef".',$ref:"meta/core#/$defs/uriReferenceString",deprecated:!0}}}});var Bx=S((tZ,k3)=>{k3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/applicator",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/applicator":!0},$dynamicAnchor:"meta",title:"Applicator vocabulary meta-schema",type:["object","boolean"],properties:{prefixItems:{$ref:"#/$defs/schemaArray"},items:{$dynamicRef:"#meta"},contains:{$dynamicRef:"#meta"},additionalProperties:{$dynamicRef:"#meta"},properties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},patternProperties:{type:"object",additionalProperties:{$dynamicRef:"#meta"},propertyNames:{format:"regex"},default:{}},dependentSchemas:{type:"object",additionalProperties:{$dynamicRef:"#meta"},default:{}},propertyNames:{$dynamicRef:"#meta"},if:{$dynamicRef:"#meta"},then:{$dynamicRef:"#meta"},else:{$dynamicRef:"#meta"},allOf:{$ref:"#/$defs/schemaArray"},anyOf:{$ref:"#/$defs/schemaArray"},oneOf:{$ref:"#/$defs/schemaArray"},not:{$dynamicRef:"#meta"}},$defs:{schemaArray:{type:"array",minItems:1,items:{$dynamicRef:"#meta"}}}}});var Hx=S((rZ,I3)=>{I3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/unevaluated",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/unevaluated":!0},$dynamicAnchor:"meta",title:"Unevaluated applicator vocabulary meta-schema",type:["object","boolean"],properties:{unevaluatedItems:{$dynamicRef:"#meta"},unevaluatedProperties:{$dynamicRef:"#meta"}}}});var Kx=S((nZ,C3)=>{C3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/content",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/content":!0},$dynamicAnchor:"meta",title:"Content vocabulary meta-schema",type:["object","boolean"],properties:{contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:{$dynamicRef:"#meta"}}}});var Gx=S((oZ,q3)=>{q3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/core",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/core":!0},$dynamicAnchor:"meta",title:"Core vocabulary meta-schema",type:["object","boolean"],properties:{$id:{$ref:"#/$defs/uriReferenceString",$comment:"Non-empty fragments not allowed.",pattern:"^[^#]*#?$"},$schema:{$ref:"#/$defs/uriString"},$ref:{$ref:"#/$defs/uriReferenceString"},$anchor:{$ref:"#/$defs/anchorString"},$dynamicRef:{$ref:"#/$defs/uriReferenceString"},$dynamicAnchor:{$ref:"#/$defs/anchorString"},$vocabulary:{type:"object",propertyNames:{$ref:"#/$defs/uriString"},additionalProperties:{type:"boolean"}},$comment:{type:"string"},$defs:{type:"object",additionalProperties:{$dynamicRef:"#meta"}}},$defs:{anchorString:{type:"string",pattern:"^[A-Za-z_][-A-Za-z0-9._]*$"},uriString:{type:"string",format:"uri"},uriReferenceString:{type:"string",format:"uri-reference"}}}});var Yx=S((iZ,N3)=>{N3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/format-annotation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/format-annotation":!0},$dynamicAnchor:"meta",title:"Format vocabulary meta-schema for annotation results",type:["object","boolean"],properties:{format:{type:"string"}}}});var Wx=S((sZ,M3)=>{M3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/meta-data",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/meta-data":!0},$dynamicAnchor:"meta",title:"Meta-data vocabulary meta-schema",type:["object","boolean"],properties:{title:{type:"string"},description:{type:"string"},default:!0,deprecated:{type:"boolean",default:!1},readOnly:{type:"boolean",default:!1},writeOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0}}}});var Qx=S((aZ,j3)=>{j3.exports={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://json-schema.org/draft/2020-12/meta/validation",$vocabulary:{"https://json-schema.org/draft/2020-12/vocab/validation":!0},$dynamicAnchor:"meta",title:"Validation vocabulary meta-schema",type:["object","boolean"],properties:{type:{anyOf:[{$ref:"#/$defs/simpleTypes"},{type:"array",items:{$ref:"#/$defs/simpleTypes"},minItems:1,uniqueItems:!0}]},const:!0,enum:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/$defs/nonNegativeInteger"},minLength:{$ref:"#/$defs/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},maxItems:{$ref:"#/$defs/nonNegativeInteger"},minItems:{$ref:"#/$defs/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxContains:{$ref:"#/$defs/nonNegativeInteger"},minContains:{$ref:"#/$defs/nonNegativeInteger",default:1},maxProperties:{$ref:"#/$defs/nonNegativeInteger"},minProperties:{$ref:"#/$defs/nonNegativeIntegerDefault0"},required:{$ref:"#/$defs/stringArray"},dependentRequired:{type:"object",additionalProperties:{$ref:"#/$defs/stringArray"}}},$defs:{nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{$ref:"#/$defs/nonNegativeInteger",default:0},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}}}});var Jx=S(Vm=>{"use strict";Object.defineProperty(Vm,"__esModule",{value:!0});var D3=Vx(),L3=Bx(),U3=Hx(),z3=Kx(),F3=Gx(),V3=Yx(),B3=Wx(),H3=Qx(),K3=["/properties"];function G3(e){return[D3,L3,U3,z3,F3,t(this,V3),B3,t(this,H3)].forEach(r=>this.addMetaSchema(r,void 0,!1)),this;function t(r,n){return e?r.$dataMetaSchema(n,K3):n}}Vm.default=G3});var Km=S((Ce,Hm)=>{"use strict";Object.defineProperty(Ce,"__esModule",{value:!0});Ce.MissingRefError=Ce.ValidationError=Ce.CodeGen=Ce.Name=Ce.nil=Ce.stringify=Ce.str=Ce._=Ce.KeywordCxt=Ce.Ajv2020=void 0;var Y3=If(),W3=Lx(),Q3=Fm(),J3=Jx(),Bm="https://json-schema.org/draft/2020-12/schema",_i=class extends Y3.default{constructor(t={}){super({...t,dynamicRef:!0,next:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),W3.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(Q3.default)}_addDefaultMetaSchema(){super._addDefaultMetaSchema();let{$data:t,meta:r}=this.opts;r&&(J3.default.call(this,t),this.refs["http://json-schema.org/schema"]=Bm)}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Bm)?Bm:void 0)}};Ce.Ajv2020=_i;Hm.exports=Ce=_i;Hm.exports.Ajv2020=_i;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.default=_i;var X3=hi();Object.defineProperty(Ce,"KeywordCxt",{enumerable:!0,get:function(){return X3.KeywordCxt}});var Pi=V();Object.defineProperty(Ce,"_",{enumerable:!0,get:function(){return Pi._}});Object.defineProperty(Ce,"str",{enumerable:!0,get:function(){return Pi.str}});Object.defineProperty(Ce,"stringify",{enumerable:!0,get:function(){return Pi.stringify}});Object.defineProperty(Ce,"nil",{enumerable:!0,get:function(){return Pi.nil}});Object.defineProperty(Ce,"Name",{enumerable:!0,get:function(){return Pi.Name}});Object.defineProperty(Ce,"CodeGen",{enumerable:!0,get:function(){return Pi.CodeGen}});var Z3=Vs();Object.defineProperty(Ce,"ValidationError",{enumerable:!0,get:function(){return Z3.default}});var eH=yi();Object.defineProperty(Ce,"MissingRefError",{enumerable:!0,get:function(){return eH.default}})});var Cw=S((_te,Iw)=>{"use strict";Iw.exports=(function(){function e(t,r,n,o,i){return t<r||n<r?t>n?n+1:t+1:o===i?r:r+1}return function(t,r){if(t===r)return 0;if(t.length>r.length){var n=t;t=r,r=n}for(var o=t.length,i=r.length;o>0&&t.charCodeAt(o-1)===r.charCodeAt(i-1);)o--,i--;for(var s=0;s<o&&t.charCodeAt(s)===r.charCodeAt(s);)s++;if(o-=s,i-=s,o===0||i<3)return i;var a=0,c,p,l,u,m,d,f,h,y,g,v,b,x=[];for(c=0;c<o;c++)x.push(c+1),x.push(t.charCodeAt(s+c));for(var w=x.length-1;a<i-3;)for(y=r.charCodeAt(s+(p=a)),g=r.charCodeAt(s+(l=a+1)),v=r.charCodeAt(s+(u=a+2)),b=r.charCodeAt(s+(m=a+3)),d=a+=4,c=0;c<w;c+=2)f=x[c],h=x[c+1],p=e(f,p,l,y,h),l=e(p,l,u,g,h),u=e(l,u,m,v,h),d=e(u,m,d,b,h),x[c]=d,m=u,u=l,l=p,p=f;for(;a<i;)for(y=r.charCodeAt(s+(p=a)),d=++a,c=0;c<w;c+=2)f=x[c],x[c]=d=e(f,p,d,y,x[c+1]),p=f;return d}})()});var T_=S(oh=>{"use strict";Object.defineProperty(oh,"__esModule",{value:!0});var kp=V(),jn=kp.operators,rh={maximum:{exclusive:"exclusiveMaximum",ops:[{okStr:"<=",ok:jn.LTE,fail:jn.GT},{okStr:"<",ok:jn.LT,fail:jn.GTE}]},minimum:{exclusive:"exclusiveMinimum",ops:[{okStr:">=",ok:jn.GTE,fail:jn.LT},{okStr:">",ok:jn.GT,fail:jn.LTE}]}},m9={message:e=>(0,kp.str)`must be ${nh(e).okStr} ${e.schemaCode}`,params:e=>(0,kp._)`{comparison: ${nh(e).okStr}, limit: ${e.schemaCode}}`},h9={keyword:Object.keys(rh),type:"number",schemaType:"number",$data:!0,error:m9,code(e){let{data:t,schemaCode:r}=e;e.fail$data((0,kp._)`${t} ${nh(e).fail} ${r} || isNaN(${t})`)}};function nh(e){var t;let r=e.keyword,n=!((t=e.parentSchema)===null||t===void 0)&&t[rh[r].exclusive]?1:0;return rh[r].ops[n]}oh.default=h9});var O_=S(ih=>{"use strict";Object.defineProperty(ih,"__esModule",{value:!0});var R_={exclusiveMaximum:"maximum",exclusiveMinimum:"minimum"},y9={keyword:Object.keys(R_),type:"number",schemaType:"boolean",code({keyword:e,parentSchema:t}){let r=R_[e];if(t[r]===void 0)throw new Error(`${e} can only be used with ${r}`)}};ih.default=y9});var k_=S(sh=>{"use strict";Object.defineProperty(sh,"__esModule",{value:!0});var g9=Ws(),b9=xm(),v9=Nm(),S9=Dm(),x9=em(),w9=T_(),_9=O_(),P9=["title","description","default"],E9=["$schema","id","$defs",{keyword:"$comment"},"definitions",g9.default],$9=[...x9.default.slice(1),w9.default,_9.default],A9=[E9,$9,(0,b9.default)(),S9.default,P9,v9.default];sh.default=A9});var I_=S((Noe,T9)=>{T9.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string",format:"uri"},$schema:{type:"string",format:"uri"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var N_=S((qe,q_)=>{"use strict";Object.defineProperty(qe,"__esModule",{value:!0});qe.MissingRefError=qe.ValidationError=qe.CodeGen=qe.Name=qe.nil=qe.stringify=qe.str=qe._=qe.KeywordCxt=qe.Ajv=void 0;var R9=If(),O9=k_(),k9=Fm(),C_=I_(),I9=["/properties"],Ip="http://json-schema.org/draft-04/schema",ua=class extends R9.default{constructor(t={}){super({...t,schemaId:"id",dynamicRef:!0,unevaluated:!0})}_addVocabularies(){super._addVocabularies(),O9.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(k9.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(C_,I9):C_;this.addMetaSchema(t,Ip,!1),this.refs["http://json-schema.org/schema"]=Ip}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(Ip)?Ip:void 0)}};qe.Ajv=ua;q_.exports=qe=ua;Object.defineProperty(qe,"__esModule",{value:!0});qe.default=ua;var C9=hi();Object.defineProperty(qe,"KeywordCxt",{enumerable:!0,get:function(){return C9.KeywordCxt}});var Mi=V();Object.defineProperty(qe,"_",{enumerable:!0,get:function(){return Mi._}});Object.defineProperty(qe,"str",{enumerable:!0,get:function(){return Mi.str}});Object.defineProperty(qe,"stringify",{enumerable:!0,get:function(){return Mi.stringify}});Object.defineProperty(qe,"nil",{enumerable:!0,get:function(){return Mi.nil}});Object.defineProperty(qe,"Name",{enumerable:!0,get:function(){return Mi.Name}});Object.defineProperty(qe,"CodeGen",{enumerable:!0,get:function(){return Mi.CodeGen}});var q9=Vs();Object.defineProperty(qe,"ValidationError",{enumerable:!0,get:function(){return q9.default}});var N9=yi();Object.defineProperty(qe,"MissingRefError",{enumerable:!0,get:function(){return N9.default}})});var V_=S(Br=>{"use strict";Object.defineProperty(Br,"__esModule",{value:!0});Br.formatNames=Br.fastFormats=Br.fullFormats=void 0;function Vr(e,t){return{validate:e,compare:t}}Br.fullFormats={date:Vr(L_,lh),time:Vr(ch(!0),uh),"date-time":Vr(M_(!0),z_),"iso-time":Vr(ch(),U_),"iso-date-time":Vr(M_(),F_),duration:/^P(?!$)((\d+Y)?(\d+M)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)?|(\d+W)?)$/,uri:z9,"uri-reference":/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,"uri-template":/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,url:/^(?:https?|ftp):\/\/(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)(?:\.(?:[a-z0-9\u{00a1}-\u{ffff}]+-)*[a-z0-9\u{00a1}-\u{ffff}]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)\.){3}(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)$/,ipv6:/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i,regex:Y9,uuid:/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,"json-pointer":/^(?:\/(?:[^~/]|~0|~1)*)*$/,"json-pointer-uri-fragment":/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,"relative-json-pointer":/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,byte:F9,int32:{type:"number",validate:H9},int64:{type:"number",validate:K9},float:{type:"number",validate:D_},double:{type:"number",validate:D_},password:!0,binary:!0};Br.fastFormats={...Br.fullFormats,date:Vr(/^\d\d\d\d-[0-1]\d-[0-3]\d$/,lh),time:Vr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uh),"date-time":Vr(/^\d\d\d\d-[0-1]\d-[0-3]\dt(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,z_),"iso-time":Vr(/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,U_),"iso-date-time":Vr(/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,F_),uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i};Br.formatNames=Object.keys(Br.fullFormats);function M9(e){return e%4===0&&(e%100!==0||e%400===0)}var j9=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,D9=[0,31,28,31,30,31,30,31,31,30,31,30,31];function L_(e){let t=j9.exec(e);if(!t)return!1;let r=+t[1],n=+t[2],o=+t[3];return n>=1&&n<=12&&o>=1&&o<=(n===2&&M9(r)?29:D9[n])}function lh(e,t){if(e&&t)return e>t?1:e<t?-1:0}var ah=/^(\d\d):(\d\d):(\d\d(?:\.\d+)?)(z|([+-])(\d\d)(?::?(\d\d))?)?$/i;function ch(e){return function(r){let n=ah.exec(r);if(!n)return!1;let o=+n[1],i=+n[2],s=+n[3],a=n[4],c=n[5]==="-"?-1:1,p=+(n[6]||0),l=+(n[7]||0);if(p>23||l>59||e&&!a)return!1;if(o<=23&&i<=59&&s<60)return!0;let u=i-l*c,m=o-p*c-(u<0?1:0);return(m===23||m===-1)&&(u===59||u===-1)&&s<61}}function uh(e,t){if(!(e&&t))return;let r=new Date("2020-01-01T"+e).valueOf(),n=new Date("2020-01-01T"+t).valueOf();if(r&&n)return r-n}function U_(e,t){if(!(e&&t))return;let r=ah.exec(e),n=ah.exec(t);if(r&&n)return e=r[1]+r[2]+r[3],t=n[1]+n[2]+n[3],e>t?1:e<t?-1:0}var ph=/t|\s/i;function M_(e){let t=ch(e);return function(n){let o=n.split(ph);return o.length===2&&L_(o[0])&&t(o[1])}}function z_(e,t){if(!(e&&t))return;let r=new Date(e).valueOf(),n=new Date(t).valueOf();if(r&&n)return r-n}function F_(e,t){if(!(e&&t))return;let[r,n]=e.split(ph),[o,i]=t.split(ph),s=lh(r,o);if(s!==void 0)return s||uh(n,i)}var L9=/\/|:/,U9=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i;function z9(e){return L9.test(e)&&U9.test(e)}var j_=/^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=)?$/gm;function F9(e){return j_.lastIndex=0,j_.test(e)}var V9=-(2**31),B9=2**31-1;function H9(e){return Number.isInteger(e)&&e<=B9&&e>=V9}function K9(e){return Number.isInteger(e)}function D_(){return!0}var G9=/[^\\]\\Z/;function Y9(e){if(G9.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}});var ma=S(xe=>{"use strict";Object.defineProperty(xe,"__esModule",{value:!0});xe.regexpCode=xe.getEsmExportName=xe.getProperty=xe.safeStringify=xe.stringify=xe.strConcat=xe.addCodeArg=xe.str=xe._=xe.nil=xe._Code=xe.Name=xe.IDENTIFIER=xe._CodeOrName=void 0;var da=class{};xe._CodeOrName=da;xe.IDENTIFIER=/^[a-z$_][a-z$_0-9]*$/i;var $o=class extends da{constructor(t){if(super(),!xe.IDENTIFIER.test(t))throw new Error("CodeGen: name must be a valid identifier");this.str=t}toString(){return this.str}emptyStr(){return!1}get names(){return{[this.str]:1}}};xe.Name=$o;var er=class extends da{constructor(t){super(),this._items=typeof t=="string"?[t]:t}toString(){return this.str}emptyStr(){if(this._items.length>1)return!1;let t=this._items[0];return t===""||t==='""'}get str(){var t;return(t=this._str)!==null&&t!==void 0?t:this._str=this._items.reduce((r,n)=>`${r}${n}`,"")}get names(){var t;return(t=this._names)!==null&&t!==void 0?t:this._names=this._items.reduce((r,n)=>(n instanceof $o&&(r[n.str]=(r[n.str]||0)+1),r),{})}};xe._Code=er;xe.nil=new er("");function B_(e,...t){let r=[e[0]],n=0;for(;n<t.length;)fh(r,t[n]),r.push(e[++n]);return new er(r)}xe._=B_;var dh=new er("+");function H_(e,...t){let r=[fa(e[0])],n=0;for(;n<t.length;)r.push(dh),fh(r,t[n]),r.push(dh,fa(e[++n]));return W9(r),new er(r)}xe.str=H_;function fh(e,t){t instanceof er?e.push(...t._items):t instanceof $o?e.push(t):e.push(X9(t))}xe.addCodeArg=fh;function W9(e){let t=1;for(;t<e.length-1;){if(e[t]===dh){let r=Q9(e[t-1],e[t+1]);if(r!==void 0){e.splice(t-1,3,r);continue}e[t++]="+"}t++}}function Q9(e,t){if(t==='""')return e;if(e==='""')return t;if(typeof e=="string")return t instanceof $o||e[e.length-1]!=='"'?void 0:typeof t!="string"?`${e.slice(0,-1)}${t}"`:t[0]==='"'?e.slice(0,-1)+t.slice(1):void 0;if(typeof t=="string"&&t[0]==='"'&&!(e instanceof $o))return`"${e}${t.slice(1)}`}function J9(e,t){return t.emptyStr()?e:e.emptyStr()?t:H_`${e}${t}`}xe.strConcat=J9;function X9(e){return typeof e=="number"||typeof e=="boolean"||e===null?e:fa(Array.isArray(e)?e.join(","):e)}function Z9(e){return new er(fa(e))}xe.stringify=Z9;function fa(e){return JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029")}xe.safeStringify=fa;function eK(e){return typeof e=="string"&&xe.IDENTIFIER.test(e)?new er(`.${e}`):B_`[${e}]`}xe.getProperty=eK;function tK(e){if(typeof e=="string"&&xe.IDENTIFIER.test(e))return new er(`${e}`);throw new Error(`CodeGen: invalid export name: ${e}, use explicit $id name mapping`)}xe.getEsmExportName=tK;function rK(e){return new er(e.toString())}xe.regexpCode=rK});var yh=S(Ct=>{"use strict";Object.defineProperty(Ct,"__esModule",{value:!0});Ct.ValueScope=Ct.ValueScopeName=Ct.Scope=Ct.varKinds=Ct.UsedValueState=void 0;var It=ma(),mh=class extends Error{constructor(t){super(`CodeGen: "code" for ${t} not defined`),this.value=t.value}},Cp;(function(e){e[e.Started=0]="Started",e[e.Completed=1]="Completed"})(Cp||(Ct.UsedValueState=Cp={}));Ct.varKinds={const:new It.Name("const"),let:new It.Name("let"),var:new It.Name("var")};var qp=class{constructor({prefixes:t,parent:r}={}){this._names={},this._prefixes=t,this._parent=r}toName(t){return t instanceof It.Name?t:this.name(t)}name(t){return new It.Name(this._newName(t))}_newName(t){let r=this._names[t]||this._nameGroup(t);return`${t}${r.index++}`}_nameGroup(t){var r,n;if(!((n=(r=this._parent)===null||r===void 0?void 0:r._prefixes)===null||n===void 0)&&n.has(t)||this._prefixes&&!this._prefixes.has(t))throw new Error(`CodeGen: prefix "${t}" is not allowed in this scope`);return this._names[t]={prefix:t,index:0}}};Ct.Scope=qp;var Np=class extends It.Name{constructor(t,r){super(r),this.prefix=t}setValue(t,{property:r,itemIndex:n}){this.value=t,this.scopePath=(0,It._)`.${new It.Name(r)}[${n}]`}};Ct.ValueScopeName=Np;var nK=(0,It._)`\n`,hh=class extends qp{constructor(t){super(t),this._values={},this._scope=t.scope,this.opts={...t,_n:t.lines?nK:It.nil}}get(){return this._scope}name(t){return new Np(t,this._newName(t))}value(t,r){var n;if(r.ref===void 0)throw new Error("CodeGen: ref must be passed in value");let o=this.toName(t),{prefix:i}=o,s=(n=r.key)!==null&&n!==void 0?n:r.ref,a=this._values[i];if(a){let l=a.get(s);if(l)return l}else a=this._values[i]=new Map;a.set(s,o);let c=this._scope[i]||(this._scope[i]=[]),p=c.length;return c[p]=r.ref,o.setValue(r,{property:i,itemIndex:p}),o}getValue(t,r){let n=this._values[t];if(n)return n.get(r)}scopeRefs(t,r=this._values){return this._reduceValues(r,n=>{if(n.scopePath===void 0)throw new Error(`CodeGen: name "${n}" has no value`);return(0,It._)`${t}${n.scopePath}`})}scopeCode(t=this._values,r,n){return this._reduceValues(t,o=>{if(o.value===void 0)throw new Error(`CodeGen: name "${o}" has no value`);return o.value.code},r,n)}_reduceValues(t,r,n={},o){let i=It.nil;for(let s in t){let a=t[s];if(!a)continue;let c=n[s]=n[s]||new Map;a.forEach(p=>{if(c.has(p))return;c.set(p,Cp.Started);let l=r(p);if(l){let u=this.opts.es5?Ct.varKinds.var:Ct.varKinds.const;i=(0,It._)`${i}${u} ${p} = ${l};${this.opts._n}`}else if(l=o?.(p))i=(0,It._)`${i}${l}${this.opts._n}`;else throw new mh(p);c.set(p,Cp.Completed)})}return i}};Ct.ValueScope=hh});var ee=S(ne=>{"use strict";Object.defineProperty(ne,"__esModule",{value:!0});ne.or=ne.and=ne.not=ne.CodeGen=ne.operators=ne.varKinds=ne.ValueScopeName=ne.ValueScope=ne.Scope=ne.Name=ne.regexpCode=ne.stringify=ne.getProperty=ne.nil=ne.strConcat=ne.str=ne._=void 0;var fe=ma(),yr=yh(),Dn=ma();Object.defineProperty(ne,"_",{enumerable:!0,get:function(){return Dn._}});Object.defineProperty(ne,"str",{enumerable:!0,get:function(){return Dn.str}});Object.defineProperty(ne,"strConcat",{enumerable:!0,get:function(){return Dn.strConcat}});Object.defineProperty(ne,"nil",{enumerable:!0,get:function(){return Dn.nil}});Object.defineProperty(ne,"getProperty",{enumerable:!0,get:function(){return Dn.getProperty}});Object.defineProperty(ne,"stringify",{enumerable:!0,get:function(){return Dn.stringify}});Object.defineProperty(ne,"regexpCode",{enumerable:!0,get:function(){return Dn.regexpCode}});Object.defineProperty(ne,"Name",{enumerable:!0,get:function(){return Dn.Name}});var Lp=yh();Object.defineProperty(ne,"Scope",{enumerable:!0,get:function(){return Lp.Scope}});Object.defineProperty(ne,"ValueScope",{enumerable:!0,get:function(){return Lp.ValueScope}});Object.defineProperty(ne,"ValueScopeName",{enumerable:!0,get:function(){return Lp.ValueScopeName}});Object.defineProperty(ne,"varKinds",{enumerable:!0,get:function(){return Lp.varKinds}});ne.operators={GT:new fe._Code(">"),GTE:new fe._Code(">="),LT:new fe._Code("<"),LTE:new fe._Code("<="),EQ:new fe._Code("==="),NEQ:new fe._Code("!=="),NOT:new fe._Code("!"),OR:new fe._Code("||"),AND:new fe._Code("&&"),ADD:new fe._Code("+")};var pn=class{optimizeNodes(){return this}optimizeNames(t,r){return this}},gh=class extends pn{constructor(t,r,n){super(),this.varKind=t,this.name=r,this.rhs=n}render({es5:t,_n:r}){let n=t?yr.varKinds.var:this.varKind,o=this.rhs===void 0?"":` = ${this.rhs}`;return`${n} ${this.name}${o};`+r}optimizeNames(t,r){if(t[this.name.str])return this.rhs&&(this.rhs=Di(this.rhs,t,r)),this}get names(){return this.rhs instanceof fe._CodeOrName?this.rhs.names:{}}},Mp=class extends pn{constructor(t,r,n){super(),this.lhs=t,this.rhs=r,this.sideEffects=n}render({_n:t}){return`${this.lhs} = ${this.rhs};`+t}optimizeNames(t,r){if(!(this.lhs instanceof fe.Name&&!t[this.lhs.str]&&!this.sideEffects))return this.rhs=Di(this.rhs,t,r),this}get names(){let t=this.lhs instanceof fe.Name?{}:{...this.lhs.names};return Dp(t,this.rhs)}},bh=class extends Mp{constructor(t,r,n,o){super(t,n,o),this.op=r}render({_n:t}){return`${this.lhs} ${this.op}= ${this.rhs};`+t}},vh=class extends pn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`${this.label}:`+t}},Sh=class extends pn{constructor(t){super(),this.label=t,this.names={}}render({_n:t}){return`break${this.label?` ${this.label}`:""};`+t}},xh=class extends pn{constructor(t){super(),this.error=t}render({_n:t}){return`throw ${this.error};`+t}get names(){return this.error.names}},wh=class extends pn{constructor(t){super(),this.code=t}render({_n:t}){return`${this.code};`+t}optimizeNodes(){return`${this.code}`?this:void 0}optimizeNames(t,r){return this.code=Di(this.code,t,r),this}get names(){return this.code instanceof fe._CodeOrName?this.code.names:{}}},ha=class extends pn{constructor(t=[]){super(),this.nodes=t}render(t){return this.nodes.reduce((r,n)=>r+n.render(t),"")}optimizeNodes(){let{nodes:t}=this,r=t.length;for(;r--;){let n=t[r].optimizeNodes();Array.isArray(n)?t.splice(r,1,...n):n?t[r]=n:t.splice(r,1)}return t.length>0?this:void 0}optimizeNames(t,r){let{nodes:n}=this,o=n.length;for(;o--;){let i=n[o];i.optimizeNames(t,r)||(oK(t,i.names),n.splice(o,1))}return n.length>0?this:void 0}get names(){return this.nodes.reduce((t,r)=>Ro(t,r.names),{})}},ln=class extends ha{render(t){return"{"+t._n+super.render(t)+"}"+t._n}},_h=class extends ha{},ji=class extends ln{};ji.kind="else";var Ao=class e extends ln{constructor(t,r){super(r),this.condition=t}render(t){let r=`if(${this.condition})`+super.render(t);return this.else&&(r+="else "+this.else.render(t)),r}optimizeNodes(){super.optimizeNodes();let t=this.condition;if(t===!0)return this.nodes;let r=this.else;if(r){let n=r.optimizeNodes();r=this.else=Array.isArray(n)?new ji(n):n}if(r)return t===!1?r instanceof e?r:r.nodes:this.nodes.length?this:new e(K_(t),r instanceof e?[r]:r.nodes);if(!(t===!1||!this.nodes.length))return this}optimizeNames(t,r){var n;if(this.else=(n=this.else)===null||n===void 0?void 0:n.optimizeNames(t,r),!!(super.optimizeNames(t,r)||this.else))return this.condition=Di(this.condition,t,r),this}get names(){let t=super.names;return Dp(t,this.condition),this.else&&Ro(t,this.else.names),t}};Ao.kind="if";var To=class extends ln{};To.kind="for";var Ph=class extends To{constructor(t){super(),this.iteration=t}render(t){return`for(${this.iteration})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iteration=Di(this.iteration,t,r),this}get names(){return Ro(super.names,this.iteration.names)}},Eh=class extends To{constructor(t,r,n,o){super(),this.varKind=t,this.name=r,this.from=n,this.to=o}render(t){let r=t.es5?yr.varKinds.var:this.varKind,{name:n,from:o,to:i}=this;return`for(${r} ${n}=${o}; ${n}<${i}; ${n}++)`+super.render(t)}get names(){let t=Dp(super.names,this.from);return Dp(t,this.to)}},jp=class extends To{constructor(t,r,n,o){super(),this.loop=t,this.varKind=r,this.name=n,this.iterable=o}render(t){return`for(${this.varKind} ${this.name} ${this.loop} ${this.iterable})`+super.render(t)}optimizeNames(t,r){if(super.optimizeNames(t,r))return this.iterable=Di(this.iterable,t,r),this}get names(){return Ro(super.names,this.iterable.names)}},ya=class extends ln{constructor(t,r,n){super(),this.name=t,this.args=r,this.async=n}render(t){return`${this.async?"async ":""}function ${this.name}(${this.args})`+super.render(t)}};ya.kind="func";var ga=class extends ha{render(t){return"return "+super.render(t)}};ga.kind="return";var $h=class extends ln{render(t){let r="try"+super.render(t);return this.catch&&(r+=this.catch.render(t)),this.finally&&(r+=this.finally.render(t)),r}optimizeNodes(){var t,r;return super.optimizeNodes(),(t=this.catch)===null||t===void 0||t.optimizeNodes(),(r=this.finally)===null||r===void 0||r.optimizeNodes(),this}optimizeNames(t,r){var n,o;return super.optimizeNames(t,r),(n=this.catch)===null||n===void 0||n.optimizeNames(t,r),(o=this.finally)===null||o===void 0||o.optimizeNames(t,r),this}get names(){let t=super.names;return this.catch&&Ro(t,this.catch.names),this.finally&&Ro(t,this.finally.names),t}},ba=class extends ln{constructor(t){super(),this.error=t}render(t){return`catch(${this.error})`+super.render(t)}};ba.kind="catch";var va=class extends ln{render(t){return"finally"+super.render(t)}};va.kind="finally";var Ah=class{constructor(t,r={}){this._values={},this._blockStarts=[],this._constants={},this.opts={...r,_n:r.lines?`
|
|
15
|
-
`:""},this._extScope=t,this._scope=new yr.Scope({parent:t}),this._nodes=[new _h]}toString(){return this._root.render(this.opts)}name(t){return this._scope.name(t)}scopeName(t){return this._extScope.name(t)}scopeValue(t,r){let n=this._extScope.value(t,r);return(this._values[n.prefix]||(this._values[n.prefix]=new Set)).add(n),n}getScopeValue(t,r){return this._extScope.getValue(t,r)}scopeRefs(t){return this._extScope.scopeRefs(t,this._values)}scopeCode(){return this._extScope.scopeCode(this._values)}_def(t,r,n,o){let i=this._scope.toName(r);return n!==void 0&&o&&(this._constants[i.str]=n),this._leafNode(new gh(t,i,n)),i}const(t,r,n){return this._def(yr.varKinds.const,t,r,n)}let(t,r,n){return this._def(yr.varKinds.let,t,r,n)}var(t,r,n){return this._def(yr.varKinds.var,t,r,n)}assign(t,r,n){return this._leafNode(new Mp(t,r,n))}add(t,r){return this._leafNode(new bh(t,ne.operators.ADD,r))}code(t){return typeof t=="function"?t():t!==fe.nil&&this._leafNode(new wh(t)),this}object(...t){let r=["{"];for(let[n,o]of t)r.length>1&&r.push(","),r.push(n),(n!==o||this.opts.es5)&&(r.push(":"),(0,fe.addCodeArg)(r,o));return r.push("}"),new fe._Code(r)}if(t,r,n){if(this._blockNode(new Ao(t)),r&&n)this.code(r).else().code(n).endIf();else if(r)this.code(r).endIf();else if(n)throw new Error('CodeGen: "else" body without "then" body');return this}elseIf(t){return this._elseNode(new Ao(t))}else(){return this._elseNode(new ji)}endIf(){return this._endBlockNode(Ao,ji)}_for(t,r){return this._blockNode(t),r&&this.code(r).endFor(),this}for(t,r){return this._for(new Ph(t),r)}forRange(t,r,n,o,i=this.opts.es5?yr.varKinds.var:yr.varKinds.let){let s=this._scope.toName(t);return this._for(new Eh(i,s,r,n),()=>o(s))}forOf(t,r,n,o=yr.varKinds.const){let i=this._scope.toName(t);if(this.opts.es5){let s=r instanceof fe.Name?r:this.var("_arr",r);return this.forRange("_i",0,(0,fe._)`${s}.length`,a=>{this.var(i,(0,fe._)`${s}[${a}]`),n(i)})}return this._for(new jp("of",o,i,r),()=>n(i))}forIn(t,r,n,o=this.opts.es5?yr.varKinds.var:yr.varKinds.const){if(this.opts.ownProperties)return this.forOf(t,(0,fe._)`Object.keys(${r})`,n);let i=this._scope.toName(t);return this._for(new jp("in",o,i,r),()=>n(i))}endFor(){return this._endBlockNode(To)}label(t){return this._leafNode(new vh(t))}break(t){return this._leafNode(new Sh(t))}return(t){let r=new ga;if(this._blockNode(r),this.code(t),r.nodes.length!==1)throw new Error('CodeGen: "return" should have one node');return this._endBlockNode(ga)}try(t,r,n){if(!r&&!n)throw new Error('CodeGen: "try" without "catch" and "finally"');let o=new $h;if(this._blockNode(o),this.code(t),r){let i=this.name("e");this._currNode=o.catch=new ba(i),r(i)}return n&&(this._currNode=o.finally=new va,this.code(n)),this._endBlockNode(ba,va)}throw(t){return this._leafNode(new xh(t))}block(t,r){return this._blockStarts.push(this._nodes.length),t&&this.code(t).endBlock(r),this}endBlock(t){let r=this._blockStarts.pop();if(r===void 0)throw new Error("CodeGen: not in self-balancing block");let n=this._nodes.length-r;if(n<0||t!==void 0&&n!==t)throw new Error(`CodeGen: wrong number of nodes: ${n} vs ${t} expected`);return this._nodes.length=r,this}func(t,r=fe.nil,n,o){return this._blockNode(new ya(t,r,n)),o&&this.code(o).endFunc(),this}endFunc(){return this._endBlockNode(ya)}optimize(t=1){for(;t-- >0;)this._root.optimizeNodes(),this._root.optimizeNames(this._root.names,this._constants)}_leafNode(t){return this._currNode.nodes.push(t),this}_blockNode(t){this._currNode.nodes.push(t),this._nodes.push(t)}_endBlockNode(t,r){let n=this._currNode;if(n instanceof t||r&&n instanceof r)return this._nodes.pop(),this;throw new Error(`CodeGen: not in block "${r?`${t.kind}/${r.kind}`:t.kind}"`)}_elseNode(t){let r=this._currNode;if(!(r instanceof Ao))throw new Error('CodeGen: "else" without "if"');return this._currNode=r.else=t,this}get _root(){return this._nodes[0]}get _currNode(){let t=this._nodes;return t[t.length-1]}set _currNode(t){let r=this._nodes;r[r.length-1]=t}};ne.CodeGen=Ah;function Ro(e,t){for(let r in t)e[r]=(e[r]||0)+(t[r]||0);return e}function Dp(e,t){return t instanceof fe._CodeOrName?Ro(e,t.names):e}function Di(e,t,r){if(e instanceof fe.Name)return n(e);if(!o(e))return e;return new fe._Code(e._items.reduce((i,s)=>(s instanceof fe.Name&&(s=n(s)),s instanceof fe._Code?i.push(...s._items):i.push(s),i),[]));function n(i){let s=r[i.str];return s===void 0||t[i.str]!==1?i:(delete t[i.str],s)}function o(i){return i instanceof fe._Code&&i._items.some(s=>s instanceof fe.Name&&t[s.str]===1&&r[s.str]!==void 0)}}function oK(e,t){for(let r in t)e[r]=(e[r]||0)-(t[r]||0)}function K_(e){return typeof e=="boolean"||typeof e=="number"||e===null?!e:(0,fe._)`!${Th(e)}`}ne.not=K_;var iK=G_(ne.operators.AND);function sK(...e){return e.reduce(iK)}ne.and=sK;var aK=G_(ne.operators.OR);function cK(...e){return e.reduce(aK)}ne.or=cK;function G_(e){return(t,r)=>t===fe.nil?r:r===fe.nil?t:(0,fe._)`${Th(t)} ${e} ${Th(r)}`}function Th(e){return e instanceof fe.Name?e:(0,fe._)`(${e})`}});var ge=S(ae=>{"use strict";Object.defineProperty(ae,"__esModule",{value:!0});ae.checkStrictMode=ae.getErrorPath=ae.Type=ae.useFunc=ae.setEvaluated=ae.evaluatedPropsToName=ae.mergeEvaluated=ae.eachItem=ae.unescapeJsonPointer=ae.escapeJsonPointer=ae.escapeFragment=ae.unescapeFragment=ae.schemaRefOrVal=ae.schemaHasRulesButRef=ae.schemaHasRules=ae.checkUnknownRules=ae.alwaysValidSchema=ae.toHash=void 0;var Oe=ee(),pK=ma();function lK(e){let t={};for(let r of e)t[r]=!0;return t}ae.toHash=lK;function uK(e,t){return typeof t=="boolean"?t:Object.keys(t).length===0?!0:(Q_(e,t),!J_(t,e.self.RULES.all))}ae.alwaysValidSchema=uK;function Q_(e,t=e.schema){let{opts:r,self:n}=e;if(!r.strictSchema||typeof t=="boolean")return;let o=n.RULES.keywords;for(let i in t)o[i]||eP(e,`unknown keyword: "${i}"`)}ae.checkUnknownRules=Q_;function J_(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(t[r])return!0;return!1}ae.schemaHasRules=J_;function dK(e,t){if(typeof e=="boolean")return!e;for(let r in e)if(r!=="$ref"&&t.all[r])return!0;return!1}ae.schemaHasRulesButRef=dK;function fK({topSchemaRef:e,schemaPath:t},r,n,o){if(!o){if(typeof r=="number"||typeof r=="boolean")return r;if(typeof r=="string")return(0,Oe._)`${r}`}return(0,Oe._)`${e}${t}${(0,Oe.getProperty)(n)}`}ae.schemaRefOrVal=fK;function mK(e){return X_(decodeURIComponent(e))}ae.unescapeFragment=mK;function hK(e){return encodeURIComponent(Oh(e))}ae.escapeFragment=hK;function Oh(e){return typeof e=="number"?`${e}`:e.replace(/~/g,"~0").replace(/\//g,"~1")}ae.escapeJsonPointer=Oh;function X_(e){return e.replace(/~1/g,"/").replace(/~0/g,"~")}ae.unescapeJsonPointer=X_;function yK(e,t){if(Array.isArray(e))for(let r of e)t(r);else t(e)}ae.eachItem=yK;function Y_({mergeNames:e,mergeToName:t,mergeValues:r,resultToName:n}){return(o,i,s,a)=>{let c=s===void 0?i:s instanceof Oe.Name?(i instanceof Oe.Name?e(o,i,s):t(o,i,s),s):i instanceof Oe.Name?(t(o,s,i),i):r(i,s);return a===Oe.Name&&!(c instanceof Oe.Name)?n(o,c):c}}ae.mergeEvaluated={props:Y_({mergeNames:(e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>{e.if((0,Oe._)`${t} === true`,()=>e.assign(r,!0),()=>e.assign(r,(0,Oe._)`${r} || {}`).code((0,Oe._)`Object.assign(${r}, ${t})`))}),mergeToName:(e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>{t===!0?e.assign(r,!0):(e.assign(r,(0,Oe._)`${r} || {}`),kh(e,r,t))}),mergeValues:(e,t)=>e===!0?!0:{...e,...t},resultToName:Z_}),items:Y_({mergeNames:(e,t,r)=>e.if((0,Oe._)`${r} !== true && ${t} !== undefined`,()=>e.assign(r,(0,Oe._)`${t} === true ? true : ${r} > ${t} ? ${r} : ${t}`)),mergeToName:(e,t,r)=>e.if((0,Oe._)`${r} !== true`,()=>e.assign(r,t===!0?!0:(0,Oe._)`${r} > ${t} ? ${r} : ${t}`)),mergeValues:(e,t)=>e===!0?!0:Math.max(e,t),resultToName:(e,t)=>e.var("items",t)})};function Z_(e,t){if(t===!0)return e.var("props",!0);let r=e.var("props",(0,Oe._)`{}`);return t!==void 0&&kh(e,r,t),r}ae.evaluatedPropsToName=Z_;function kh(e,t,r){Object.keys(r).forEach(n=>e.assign((0,Oe._)`${t}${(0,Oe.getProperty)(n)}`,!0))}ae.setEvaluated=kh;var W_={};function gK(e,t){return e.scopeValue("func",{ref:t,code:W_[t.code]||(W_[t.code]=new pK._Code(t.code))})}ae.useFunc=gK;var Rh;(function(e){e[e.Num=0]="Num",e[e.Str=1]="Str"})(Rh||(ae.Type=Rh={}));function bK(e,t,r){if(e instanceof Oe.Name){let n=t===Rh.Num;return r?n?(0,Oe._)`"[" + ${e} + "]"`:(0,Oe._)`"['" + ${e} + "']"`:n?(0,Oe._)`"/" + ${e}`:(0,Oe._)`"/" + ${e}.replace(/~/g, "~0").replace(/\\//g, "~1")`}return r?(0,Oe.getProperty)(e).toString():"/"+Oh(e)}ae.getErrorPath=bK;function eP(e,t,r=e.opts.strictSchema){if(r){if(t=`strict mode: ${t}`,r===!0)throw new Error(t);e.self.logger.warn(t)}}ae.checkStrictMode=eP});var un=S(Ih=>{"use strict";Object.defineProperty(Ih,"__esModule",{value:!0});var ft=ee(),vK={data:new ft.Name("data"),valCxt:new ft.Name("valCxt"),instancePath:new ft.Name("instancePath"),parentData:new ft.Name("parentData"),parentDataProperty:new ft.Name("parentDataProperty"),rootData:new ft.Name("rootData"),dynamicAnchors:new ft.Name("dynamicAnchors"),vErrors:new ft.Name("vErrors"),errors:new ft.Name("errors"),this:new ft.Name("this"),self:new ft.Name("self"),scope:new ft.Name("scope"),json:new ft.Name("json"),jsonPos:new ft.Name("jsonPos"),jsonLen:new ft.Name("jsonLen"),jsonPart:new ft.Name("jsonPart")};Ih.default=vK});var Sa=S(mt=>{"use strict";Object.defineProperty(mt,"__esModule",{value:!0});mt.extendErrors=mt.resetErrorsCount=mt.reportExtraError=mt.reportError=mt.keyword$DataError=mt.keywordError=void 0;var be=ee(),Up=ge(),wt=un();mt.keywordError={message:({keyword:e})=>(0,be.str)`must pass "${e}" keyword validation`};mt.keyword$DataError={message:({keyword:e,schemaType:t})=>t?(0,be.str)`"${e}" keyword must be ${t} ($data)`:(0,be.str)`"${e}" keyword is invalid ($data)`};function SK(e,t=mt.keywordError,r,n){let{it:o}=e,{gen:i,compositeRule:s,allErrors:a}=o,c=nP(e,t,r);n??(s||a)?tP(i,c):rP(o,(0,be._)`[${c}]`)}mt.reportError=SK;function xK(e,t=mt.keywordError,r){let{it:n}=e,{gen:o,compositeRule:i,allErrors:s}=n,a=nP(e,t,r);tP(o,a),i||s||rP(n,wt.default.vErrors)}mt.reportExtraError=xK;function wK(e,t){e.assign(wt.default.errors,t),e.if((0,be._)`${wt.default.vErrors} !== null`,()=>e.if(t,()=>e.assign((0,be._)`${wt.default.vErrors}.length`,t),()=>e.assign(wt.default.vErrors,null)))}mt.resetErrorsCount=wK;function _K({gen:e,keyword:t,schemaValue:r,data:n,errsCount:o,it:i}){if(o===void 0)throw new Error("ajv implementation error");let s=e.name("err");e.forRange("i",o,wt.default.errors,a=>{e.const(s,(0,be._)`${wt.default.vErrors}[${a}]`),e.if((0,be._)`${s}.instancePath === undefined`,()=>e.assign((0,be._)`${s}.instancePath`,(0,be.strConcat)(wt.default.instancePath,i.errorPath))),e.assign((0,be._)`${s}.schemaPath`,(0,be.str)`${i.errSchemaPath}/${t}`),i.opts.verbose&&(e.assign((0,be._)`${s}.schema`,r),e.assign((0,be._)`${s}.data`,n))})}mt.extendErrors=_K;function tP(e,t){let r=e.const("err",t);e.if((0,be._)`${wt.default.vErrors} === null`,()=>e.assign(wt.default.vErrors,(0,be._)`[${r}]`),(0,be._)`${wt.default.vErrors}.push(${r})`),e.code((0,be._)`${wt.default.errors}++`)}function rP(e,t){let{gen:r,validateName:n,schemaEnv:o}=e;o.$async?r.throw((0,be._)`new ${e.ValidationError}(${t})`):(r.assign((0,be._)`${n}.errors`,t),r.return(!1))}var Oo={keyword:new be.Name("keyword"),schemaPath:new be.Name("schemaPath"),params:new be.Name("params"),propertyName:new be.Name("propertyName"),message:new be.Name("message"),schema:new be.Name("schema"),parentSchema:new be.Name("parentSchema")};function nP(e,t,r){let{createErrors:n}=e.it;return n===!1?(0,be._)`{}`:PK(e,t,r)}function PK(e,t,r={}){let{gen:n,it:o}=e,i=[EK(o,r),$K(e,r)];return AK(e,t,i),n.object(...i)}function EK({errorPath:e},{instancePath:t}){let r=t?(0,be.str)`${e}${(0,Up.getErrorPath)(t,Up.Type.Str)}`:e;return[wt.default.instancePath,(0,be.strConcat)(wt.default.instancePath,r)]}function $K({keyword:e,it:{errSchemaPath:t}},{schemaPath:r,parentSchema:n}){let o=n?t:(0,be.str)`${t}/${e}`;return r&&(o=(0,be.str)`${o}${(0,Up.getErrorPath)(r,Up.Type.Str)}`),[Oo.schemaPath,o]}function AK(e,{params:t,message:r},n){let{keyword:o,data:i,schemaValue:s,it:a}=e,{opts:c,propertyName:p,topSchemaRef:l,schemaPath:u}=a;n.push([Oo.keyword,o],[Oo.params,typeof t=="function"?t(e):t||(0,be._)`{}`]),c.messages&&n.push([Oo.message,typeof r=="function"?r(e):r]),c.verbose&&n.push([Oo.schema,s],[Oo.parentSchema,(0,be._)`${l}${u}`],[wt.default.data,i]),p&&n.push([Oo.propertyName,p])}});var iP=S(Li=>{"use strict";Object.defineProperty(Li,"__esModule",{value:!0});Li.boolOrEmptySchema=Li.topBoolOrEmptySchema=void 0;var TK=Sa(),RK=ee(),OK=un(),kK={message:"boolean schema is false"};function IK(e){let{gen:t,schema:r,validateName:n}=e;r===!1?oP(e,!1):typeof r=="object"&&r.$async===!0?t.return(OK.default.data):(t.assign((0,RK._)`${n}.errors`,null),t.return(!0))}Li.topBoolOrEmptySchema=IK;function CK(e,t){let{gen:r,schema:n}=e;n===!1?(r.var(t,!1),oP(e)):r.var(t,!0)}Li.boolOrEmptySchema=CK;function oP(e,t){let{gen:r,data:n}=e,o={gen:r,keyword:"false schema",data:n,schema:!1,schemaCode:!1,schemaValue:!1,params:{},it:e};(0,TK.reportError)(o,kK,void 0,t)}});var Ch=S(Ui=>{"use strict";Object.defineProperty(Ui,"__esModule",{value:!0});Ui.getRules=Ui.isJSONType=void 0;var qK=["string","number","integer","boolean","null","object","array"],NK=new Set(qK);function MK(e){return typeof e=="string"&&NK.has(e)}Ui.isJSONType=MK;function jK(){let e={number:{type:"number",rules:[]},string:{type:"string",rules:[]},array:{type:"array",rules:[]},object:{type:"object",rules:[]}};return{types:{...e,integer:!0,boolean:!0,null:!0},rules:[{rules:[]},e.number,e.string,e.array,e.object],post:{rules:[]},all:{},keywords:{}}}Ui.getRules=jK});var qh=S(Ln=>{"use strict";Object.defineProperty(Ln,"__esModule",{value:!0});Ln.shouldUseRule=Ln.shouldUseGroup=Ln.schemaHasRulesForType=void 0;function DK({schema:e,self:t},r){let n=t.RULES.types[r];return n&&n!==!0&&sP(e,n)}Ln.schemaHasRulesForType=DK;function sP(e,t){return t.rules.some(r=>aP(e,r))}Ln.shouldUseGroup=sP;function aP(e,t){var r;return e[t.keyword]!==void 0||((r=t.definition.implements)===null||r===void 0?void 0:r.some(n=>e[n]!==void 0))}Ln.shouldUseRule=aP});var xa=S(ht=>{"use strict";Object.defineProperty(ht,"__esModule",{value:!0});ht.reportTypeError=ht.checkDataTypes=ht.checkDataType=ht.coerceAndCheckDataType=ht.getJSONTypes=ht.getSchemaTypes=ht.DataType=void 0;var LK=Ch(),UK=qh(),zK=Sa(),Q=ee(),cP=ge(),zi;(function(e){e[e.Correct=0]="Correct",e[e.Wrong=1]="Wrong"})(zi||(ht.DataType=zi={}));function FK(e){let t=pP(e.type);if(t.includes("null")){if(e.nullable===!1)throw new Error("type: null contradicts nullable: false")}else{if(!t.length&&e.nullable!==void 0)throw new Error('"nullable" cannot be used without "type"');e.nullable===!0&&t.push("null")}return t}ht.getSchemaTypes=FK;function pP(e){let t=Array.isArray(e)?e:e?[e]:[];if(t.every(LK.isJSONType))return t;throw new Error("type must be JSONType or JSONType[]: "+t.join(","))}ht.getJSONTypes=pP;function VK(e,t){let{gen:r,data:n,opts:o}=e,i=BK(t,o.coerceTypes),s=t.length>0&&!(i.length===0&&t.length===1&&(0,UK.schemaHasRulesForType)(e,t[0]));if(s){let a=Mh(t,n,o.strictNumbers,zi.Wrong);r.if(a,()=>{i.length?HK(e,t,i):jh(e)})}return s}ht.coerceAndCheckDataType=VK;var lP=new Set(["string","number","integer","boolean","null"]);function BK(e,t){return t?e.filter(r=>lP.has(r)||t==="array"&&r==="array"):[]}function HK(e,t,r){let{gen:n,data:o,opts:i}=e,s=n.let("dataType",(0,Q._)`typeof ${o}`),a=n.let("coerced",(0,Q._)`undefined`);i.coerceTypes==="array"&&n.if((0,Q._)`${s} == 'object' && Array.isArray(${o}) && ${o}.length == 1`,()=>n.assign(o,(0,Q._)`${o}[0]`).assign(s,(0,Q._)`typeof ${o}`).if(Mh(t,o,i.strictNumbers),()=>n.assign(a,o))),n.if((0,Q._)`${a} !== undefined`);for(let p of r)(lP.has(p)||p==="array"&&i.coerceTypes==="array")&&c(p);n.else(),jh(e),n.endIf(),n.if((0,Q._)`${a} !== undefined`,()=>{n.assign(o,a),KK(e,a)});function c(p){switch(p){case"string":n.elseIf((0,Q._)`${s} == "number" || ${s} == "boolean"`).assign(a,(0,Q._)`"" + ${o}`).elseIf((0,Q._)`${o} === null`).assign(a,(0,Q._)`""`);return;case"number":n.elseIf((0,Q._)`${s} == "boolean" || ${o} === null
|
|
16
|
-
|| (${s} == "string" && ${o} && ${o} == +${o})`).assign(a,(0,Q._)`+${o}`);return;case"integer":n.elseIf((0,Q._)`${s} === "boolean" || ${o} === null
|
|
17
|
-
|| (${s} === "string" && ${o} && ${o} == +${o} && !(${o} % 1))`).assign(a,(0,Q._)`+${o}`);return;case"boolean":n.elseIf((0,Q._)`${o} === "false" || ${o} === 0 || ${o} === null`).assign(a,!1).elseIf((0,Q._)`${o} === "true" || ${o} === 1`).assign(a,!0);return;case"null":n.elseIf((0,Q._)`${o} === "" || ${o} === 0 || ${o} === false`),n.assign(a,null);return;case"array":n.elseIf((0,Q._)`${s} === "string" || ${s} === "number"
|
|
18
|
-
|| ${s} === "boolean" || ${o} === null`).assign(a,(0,Q._)`[${o}]`)}}}function KK({gen:e,parentData:t,parentDataProperty:r},n){e.if((0,Q._)`${t} !== undefined`,()=>e.assign((0,Q._)`${t}[${r}]`,n))}function Nh(e,t,r,n=zi.Correct){let o=n===zi.Correct?Q.operators.EQ:Q.operators.NEQ,i;switch(e){case"null":return(0,Q._)`${t} ${o} null`;case"array":i=(0,Q._)`Array.isArray(${t})`;break;case"object":i=(0,Q._)`${t} && typeof ${t} == "object" && !Array.isArray(${t})`;break;case"integer":i=s((0,Q._)`!(${t} % 1) && !isNaN(${t})`);break;case"number":i=s();break;default:return(0,Q._)`typeof ${t} ${o} ${e}`}return n===zi.Correct?i:(0,Q.not)(i);function s(a=Q.nil){return(0,Q.and)((0,Q._)`typeof ${t} == "number"`,a,r?(0,Q._)`isFinite(${t})`:Q.nil)}}ht.checkDataType=Nh;function Mh(e,t,r,n){if(e.length===1)return Nh(e[0],t,r,n);let o,i=(0,cP.toHash)(e);if(i.array&&i.object){let s=(0,Q._)`typeof ${t} != "object"`;o=i.null?s:(0,Q._)`!${t} || ${s}`,delete i.null,delete i.array,delete i.object}else o=Q.nil;i.number&&delete i.integer;for(let s in i)o=(0,Q.and)(o,Nh(s,t,r,n));return o}ht.checkDataTypes=Mh;var GK={message:({schema:e})=>`must be ${e}`,params:({schema:e,schemaValue:t})=>typeof e=="string"?(0,Q._)`{type: ${e}}`:(0,Q._)`{type: ${t}}`};function jh(e){let t=YK(e);(0,zK.reportError)(t,GK)}ht.reportTypeError=jh;function YK(e){let{gen:t,data:r,schema:n}=e,o=(0,cP.schemaRefOrVal)(e,n,"type");return{gen:t,keyword:"type",data:r,schema:n.type,schemaCode:o,schemaValue:o,parentSchema:n,params:{},it:e}}});var dP=S(zp=>{"use strict";Object.defineProperty(zp,"__esModule",{value:!0});zp.assignDefaults=void 0;var Fi=ee(),WK=ge();function QK(e,t){let{properties:r,items:n}=e.schema;if(t==="object"&&r)for(let o in r)uP(e,o,r[o].default);else t==="array"&&Array.isArray(n)&&n.forEach((o,i)=>uP(e,i,o.default))}zp.assignDefaults=QK;function uP(e,t,r){let{gen:n,compositeRule:o,data:i,opts:s}=e;if(r===void 0)return;let a=(0,Fi._)`${i}${(0,Fi.getProperty)(t)}`;if(o){(0,WK.checkStrictMode)(e,`default is ignored for: ${a}`);return}let c=(0,Fi._)`${a} === undefined`;s.useDefaults==="empty"&&(c=(0,Fi._)`${c} || ${a} === null || ${a} === ""`),n.if(c,(0,Fi._)`${a} = ${(0,Fi.stringify)(r)}`)}});var tr=S(Ae=>{"use strict";Object.defineProperty(Ae,"__esModule",{value:!0});Ae.validateUnion=Ae.validateArray=Ae.usePattern=Ae.callValidateCode=Ae.schemaProperties=Ae.allSchemaProperties=Ae.noPropertyInData=Ae.propertyInData=Ae.isOwnProperty=Ae.hasPropFunc=Ae.reportMissingProp=Ae.checkMissingProp=Ae.checkReportMissingProp=void 0;var Ne=ee(),Dh=ge(),Un=un(),JK=ge();function XK(e,t){let{gen:r,data:n,it:o}=e;r.if(Uh(r,n,t,o.opts.ownProperties),()=>{e.setParams({missingProperty:(0,Ne._)`${t}`},!0),e.error()})}Ae.checkReportMissingProp=XK;function ZK({gen:e,data:t,it:{opts:r}},n,o){return(0,Ne.or)(...n.map(i=>(0,Ne.and)(Uh(e,t,i,r.ownProperties),(0,Ne._)`${o} = ${i}`)))}Ae.checkMissingProp=ZK;function e4(e,t){e.setParams({missingProperty:t},!0),e.error()}Ae.reportMissingProp=e4;function fP(e){return e.scopeValue("func",{ref:Object.prototype.hasOwnProperty,code:(0,Ne._)`Object.prototype.hasOwnProperty`})}Ae.hasPropFunc=fP;function Lh(e,t,r){return(0,Ne._)`${fP(e)}.call(${t}, ${r})`}Ae.isOwnProperty=Lh;function t4(e,t,r,n){let o=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} !== undefined`;return n?(0,Ne._)`${o} && ${Lh(e,t,r)}`:o}Ae.propertyInData=t4;function Uh(e,t,r,n){let o=(0,Ne._)`${t}${(0,Ne.getProperty)(r)} === undefined`;return n?(0,Ne.or)(o,(0,Ne.not)(Lh(e,t,r))):o}Ae.noPropertyInData=Uh;function mP(e){return e?Object.keys(e).filter(t=>t!=="__proto__"):[]}Ae.allSchemaProperties=mP;function r4(e,t){return mP(t).filter(r=>!(0,Dh.alwaysValidSchema)(e,t[r]))}Ae.schemaProperties=r4;function n4({schemaCode:e,data:t,it:{gen:r,topSchemaRef:n,schemaPath:o,errorPath:i},it:s},a,c,p){let l=p?(0,Ne._)`${e}, ${t}, ${n}${o}`:t,u=[[Un.default.instancePath,(0,Ne.strConcat)(Un.default.instancePath,i)],[Un.default.parentData,s.parentData],[Un.default.parentDataProperty,s.parentDataProperty],[Un.default.rootData,Un.default.rootData]];s.opts.dynamicRef&&u.push([Un.default.dynamicAnchors,Un.default.dynamicAnchors]);let m=(0,Ne._)`${l}, ${r.object(...u)}`;return c!==Ne.nil?(0,Ne._)`${a}.call(${c}, ${m})`:(0,Ne._)`${a}(${m})`}Ae.callValidateCode=n4;var o4=(0,Ne._)`new RegExp`;function i4({gen:e,it:{opts:t}},r){let n=t.unicodeRegExp?"u":"",{regExp:o}=t.code,i=o(r,n);return e.scopeValue("pattern",{key:i.toString(),ref:i,code:(0,Ne._)`${o.code==="new RegExp"?o4:(0,JK.useFunc)(e,o)}(${r}, ${n})`})}Ae.usePattern=i4;function s4(e){let{gen:t,data:r,keyword:n,it:o}=e,i=t.name("valid");if(o.allErrors){let a=t.let("valid",!0);return s(()=>t.assign(a,!1)),a}return t.var(i,!0),s(()=>t.break()),i;function s(a){let c=t.const("len",(0,Ne._)`${r}.length`);t.forRange("i",0,c,p=>{e.subschema({keyword:n,dataProp:p,dataPropType:Dh.Type.Num},i),t.if((0,Ne.not)(i),a)})}}Ae.validateArray=s4;function a4(e){let{gen:t,schema:r,keyword:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(r.some(c=>(0,Dh.alwaysValidSchema)(o,c))&&!o.opts.unevaluated)return;let s=t.let("valid",!1),a=t.name("_valid");t.block(()=>r.forEach((c,p)=>{let l=e.subschema({keyword:n,schemaProp:p,compositeRule:!0},a);t.assign(s,(0,Ne._)`${s} || ${a}`),e.mergeValidEvaluated(l,a)||t.if((0,Ne.not)(s))})),e.result(s,()=>e.reset(),()=>e.error(!0))}Ae.validateUnion=a4});var gP=S(Hr=>{"use strict";Object.defineProperty(Hr,"__esModule",{value:!0});Hr.validateKeywordUsage=Hr.validSchemaType=Hr.funcKeywordCode=Hr.macroKeywordCode=void 0;var _t=ee(),ko=un(),c4=tr(),p4=Sa();function l4(e,t){let{gen:r,keyword:n,schema:o,parentSchema:i,it:s}=e,a=t.macro.call(s.self,o,i,s),c=yP(r,n,a);s.opts.validateSchema!==!1&&s.self.validateSchema(a,!0);let p=r.name("valid");e.subschema({schema:a,schemaPath:_t.nil,errSchemaPath:`${s.errSchemaPath}/${n}`,topSchemaRef:c,compositeRule:!0},p),e.pass(p,()=>e.error(!0))}Hr.macroKeywordCode=l4;function u4(e,t){var r;let{gen:n,keyword:o,schema:i,parentSchema:s,$data:a,it:c}=e;f4(c,t);let p=!a&&t.compile?t.compile.call(c.self,i,s,c):t.validate,l=yP(n,o,p),u=n.let("valid");e.block$data(u,m),e.ok((r=t.valid)!==null&&r!==void 0?r:u);function m(){if(t.errors===!1)h(),t.modifying&&hP(e),y(()=>e.error());else{let g=t.async?d():f();t.modifying&&hP(e),y(()=>d4(e,g))}}function d(){let g=n.let("ruleErrs",null);return n.try(()=>h((0,_t._)`await `),v=>n.assign(u,!1).if((0,_t._)`${v} instanceof ${c.ValidationError}`,()=>n.assign(g,(0,_t._)`${v}.errors`),()=>n.throw(v))),g}function f(){let g=(0,_t._)`${l}.errors`;return n.assign(g,null),h(_t.nil),g}function h(g=t.async?(0,_t._)`await `:_t.nil){let v=c.opts.passContext?ko.default.this:ko.default.self,b=!("compile"in t&&!a||t.schema===!1);n.assign(u,(0,_t._)`${g}${(0,c4.callValidateCode)(e,l,v,b)}`,t.modifying)}function y(g){var v;n.if((0,_t.not)((v=t.valid)!==null&&v!==void 0?v:u),g)}}Hr.funcKeywordCode=u4;function hP(e){let{gen:t,data:r,it:n}=e;t.if(n.parentData,()=>t.assign(r,(0,_t._)`${n.parentData}[${n.parentDataProperty}]`))}function d4(e,t){let{gen:r}=e;r.if((0,_t._)`Array.isArray(${t})`,()=>{r.assign(ko.default.vErrors,(0,_t._)`${ko.default.vErrors} === null ? ${t} : ${ko.default.vErrors}.concat(${t})`).assign(ko.default.errors,(0,_t._)`${ko.default.vErrors}.length`),(0,p4.extendErrors)(e)},()=>e.error())}function f4({schemaEnv:e},t){if(t.async&&!e.$async)throw new Error("async keyword in sync schema")}function yP(e,t,r){if(r===void 0)throw new Error(`keyword "${t}" failed to compile`);return e.scopeValue("keyword",typeof r=="function"?{ref:r}:{ref:r,code:(0,_t.stringify)(r)})}function m4(e,t,r=!1){return!t.length||t.some(n=>n==="array"?Array.isArray(e):n==="object"?e&&typeof e=="object"&&!Array.isArray(e):typeof e==n||r&&typeof e>"u")}Hr.validSchemaType=m4;function h4({schema:e,opts:t,self:r,errSchemaPath:n},o,i){if(Array.isArray(o.keyword)?!o.keyword.includes(i):o.keyword!==i)throw new Error("ajv implementation error");let s=o.dependencies;if(s?.some(a=>!Object.prototype.hasOwnProperty.call(e,a)))throw new Error(`parent schema must have dependencies of ${i}: ${s.join(",")}`);if(o.validateSchema&&!o.validateSchema(e[i])){let c=`keyword "${i}" value is invalid at path "${n}": `+r.errorsText(o.validateSchema.errors);if(t.validateSchema==="log")r.logger.error(c);else throw new Error(c)}}Hr.validateKeywordUsage=h4});var vP=S(zn=>{"use strict";Object.defineProperty(zn,"__esModule",{value:!0});zn.extendSubschemaMode=zn.extendSubschemaData=zn.getSubschema=void 0;var Kr=ee(),bP=ge();function y4(e,{keyword:t,schemaProp:r,schema:n,schemaPath:o,errSchemaPath:i,topSchemaRef:s}){if(t!==void 0&&n!==void 0)throw new Error('both "keyword" and "schema" passed, only one allowed');if(t!==void 0){let a=e.schema[t];return r===void 0?{schema:a,schemaPath:(0,Kr._)`${e.schemaPath}${(0,Kr.getProperty)(t)}`,errSchemaPath:`${e.errSchemaPath}/${t}`}:{schema:a[r],schemaPath:(0,Kr._)`${e.schemaPath}${(0,Kr.getProperty)(t)}${(0,Kr.getProperty)(r)}`,errSchemaPath:`${e.errSchemaPath}/${t}/${(0,bP.escapeFragment)(r)}`}}if(n!==void 0){if(o===void 0||i===void 0||s===void 0)throw new Error('"schemaPath", "errSchemaPath" and "topSchemaRef" are required with "schema"');return{schema:n,schemaPath:o,topSchemaRef:s,errSchemaPath:i}}throw new Error('either "keyword" or "schema" must be passed')}zn.getSubschema=y4;function g4(e,t,{dataProp:r,dataPropType:n,data:o,dataTypes:i,propertyName:s}){if(o!==void 0&&r!==void 0)throw new Error('both "data" and "dataProp" passed, only one allowed');let{gen:a}=t;if(r!==void 0){let{errorPath:p,dataPathArr:l,opts:u}=t,m=a.let("data",(0,Kr._)`${t.data}${(0,Kr.getProperty)(r)}`,!0);c(m),e.errorPath=(0,Kr.str)`${p}${(0,bP.getErrorPath)(r,n,u.jsPropertySyntax)}`,e.parentDataProperty=(0,Kr._)`${r}`,e.dataPathArr=[...l,e.parentDataProperty]}if(o!==void 0){let p=o instanceof Kr.Name?o:a.let("data",o,!0);c(p),s!==void 0&&(e.propertyName=s)}i&&(e.dataTypes=i);function c(p){e.data=p,e.dataLevel=t.dataLevel+1,e.dataTypes=[],t.definedProperties=new Set,e.parentData=t.data,e.dataNames=[...t.dataNames,p]}}zn.extendSubschemaData=g4;function b4(e,{jtdDiscriminator:t,jtdMetadata:r,compositeRule:n,createErrors:o,allErrors:i}){n!==void 0&&(e.compositeRule=n),o!==void 0&&(e.createErrors=o),i!==void 0&&(e.allErrors=i),e.jtdDiscriminator=t,e.jtdMetadata=r}zn.extendSubschemaMode=b4});var wa=S(qt=>{"use strict";Object.defineProperty(qt,"__esModule",{value:!0});qt.getSchemaRefs=qt.resolveUrl=qt.normalizeId=qt._getFullPath=qt.getFullPath=qt.inlineRef=void 0;var v4=ge(),S4=Ls(),x4=lf(),w4=new Set(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum","const"]);function _4(e,t=!0){return typeof e=="boolean"?!0:t===!0?!zh(e):t?SP(e)<=t:!1}qt.inlineRef=_4;var P4=new Set(["$ref","$recursiveRef","$recursiveAnchor","$dynamicRef","$dynamicAnchor"]);function zh(e){for(let t in e){if(P4.has(t))return!0;let r=e[t];if(Array.isArray(r)&&r.some(zh)||typeof r=="object"&&zh(r))return!0}return!1}function SP(e){let t=0;for(let r in e){if(r==="$ref")return 1/0;if(t++,!w4.has(r)&&(typeof e[r]=="object"&&(0,v4.eachItem)(e[r],n=>t+=SP(n)),t===1/0))return 1/0}return t}function xP(e,t="",r){r!==!1&&(t=Vi(t));let n=e.parse(t);return wP(e,n)}qt.getFullPath=xP;function wP(e,t){return e.serialize(t).split("#")[0]+"#"}qt._getFullPath=wP;var E4=/#\/?$/;function Vi(e){return e?e.replace(E4,""):""}qt.normalizeId=Vi;function $4(e,t,r){return r=Vi(r),e.resolve(t,r)}qt.resolveUrl=$4;var A4=/^[a-z_][-a-z0-9._]*$/i;function T4(e,t){if(typeof e=="boolean")return{};let{schemaId:r,uriResolver:n}=this.opts,o=Vi(e[r]||t),i={"":o},s=xP(n,o,!1),a={},c=new Set;return x4(e,{allKeys:!0},(u,m,d,f)=>{if(f===void 0)return;let h=s+m,y=i[f];typeof u[r]=="string"&&(y=g.call(this,u[r])),v.call(this,u.$anchor),v.call(this,u.$dynamicAnchor),i[m]=y;function g(b){let x=this.opts.uriResolver.resolve;if(b=Vi(y?x(y,b):b),c.has(b))throw l(b);c.add(b);let w=this.refs[b];return typeof w=="string"&&(w=this.refs[w]),typeof w=="object"?p(u,w.schema,b):b!==Vi(h)&&(b[0]==="#"?(p(u,a[b],b),a[b]=u):this.refs[b]=h),b}function v(b){if(typeof b=="string"){if(!A4.test(b))throw new Error(`invalid anchor "${b}"`);g.call(this,`#${b}`)}}}),a;function p(u,m,d){if(m!==void 0&&!S4(u,m))throw l(d)}function l(u){return new Error(`reference "${u}" resolves to more than one schema`)}}qt.getSchemaRefs=T4});var Ea=S(Fn=>{"use strict";Object.defineProperty(Fn,"__esModule",{value:!0});Fn.getData=Fn.KeywordCxt=Fn.validateFunctionCode=void 0;var AP=iP(),_P=xa(),Vh=qh(),Fp=xa(),R4=dP(),Pa=gP(),Fh=vP(),j=ee(),K=un(),O4=wa(),dn=ge(),_a=Sa();function k4(e){if(OP(e)&&(kP(e),RP(e))){q4(e);return}TP(e,()=>(0,AP.topBoolOrEmptySchema)(e))}Fn.validateFunctionCode=k4;function TP({gen:e,validateName:t,schema:r,schemaEnv:n,opts:o},i){o.code.es5?e.func(t,(0,j._)`${K.default.data}, ${K.default.valCxt}`,n.$async,()=>{e.code((0,j._)`"use strict"; ${PP(r,o)}`),C4(e,o),e.code(i)}):e.func(t,(0,j._)`${K.default.data}, ${I4(o)}`,n.$async,()=>e.code(PP(r,o)).code(i))}function I4(e){return(0,j._)`{${K.default.instancePath}="", ${K.default.parentData}, ${K.default.parentDataProperty}, ${K.default.rootData}=${K.default.data}${e.dynamicRef?(0,j._)`, ${K.default.dynamicAnchors}={}`:j.nil}}={}`}function C4(e,t){e.if(K.default.valCxt,()=>{e.var(K.default.instancePath,(0,j._)`${K.default.valCxt}.${K.default.instancePath}`),e.var(K.default.parentData,(0,j._)`${K.default.valCxt}.${K.default.parentData}`),e.var(K.default.parentDataProperty,(0,j._)`${K.default.valCxt}.${K.default.parentDataProperty}`),e.var(K.default.rootData,(0,j._)`${K.default.valCxt}.${K.default.rootData}`),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,j._)`${K.default.valCxt}.${K.default.dynamicAnchors}`)},()=>{e.var(K.default.instancePath,(0,j._)`""`),e.var(K.default.parentData,(0,j._)`undefined`),e.var(K.default.parentDataProperty,(0,j._)`undefined`),e.var(K.default.rootData,K.default.data),t.dynamicRef&&e.var(K.default.dynamicAnchors,(0,j._)`{}`)})}function q4(e){let{schema:t,opts:r,gen:n}=e;TP(e,()=>{r.$comment&&t.$comment&&CP(e),L4(e),n.let(K.default.vErrors,null),n.let(K.default.errors,0),r.unevaluated&&N4(e),IP(e),F4(e)})}function N4(e){let{gen:t,validateName:r}=e;e.evaluated=t.const("evaluated",(0,j._)`${r}.evaluated`),t.if((0,j._)`${e.evaluated}.dynamicProps`,()=>t.assign((0,j._)`${e.evaluated}.props`,(0,j._)`undefined`)),t.if((0,j._)`${e.evaluated}.dynamicItems`,()=>t.assign((0,j._)`${e.evaluated}.items`,(0,j._)`undefined`))}function PP(e,t){let r=typeof e=="object"&&e[t.schemaId];return r&&(t.code.source||t.code.process)?(0,j._)`/*# sourceURL=${r} */`:j.nil}function M4(e,t){if(OP(e)&&(kP(e),RP(e))){j4(e,t);return}(0,AP.boolOrEmptySchema)(e,t)}function RP({schema:e,self:t}){if(typeof e=="boolean")return!e;for(let r in e)if(t.RULES.all[r])return!0;return!1}function OP(e){return typeof e.schema!="boolean"}function j4(e,t){let{schema:r,gen:n,opts:o}=e;o.$comment&&r.$comment&&CP(e),U4(e),z4(e);let i=n.const("_errs",K.default.errors);IP(e,i),n.var(t,(0,j._)`${i} === ${K.default.errors}`)}function kP(e){(0,dn.checkUnknownRules)(e),D4(e)}function IP(e,t){if(e.opts.jtd)return EP(e,[],!1,t);let r=(0,_P.getSchemaTypes)(e.schema),n=(0,_P.coerceAndCheckDataType)(e,r);EP(e,r,!n,t)}function D4(e){let{schema:t,errSchemaPath:r,opts:n,self:o}=e;t.$ref&&n.ignoreKeywordsWithRef&&(0,dn.schemaHasRulesButRef)(t,o.RULES)&&o.logger.warn(`$ref: keywords ignored in schema at path "${r}"`)}function L4(e){let{schema:t,opts:r}=e;t.default!==void 0&&r.useDefaults&&r.strictSchema&&(0,dn.checkStrictMode)(e,"default is ignored in the schema root")}function U4(e){let t=e.schema[e.opts.schemaId];t&&(e.baseId=(0,O4.resolveUrl)(e.opts.uriResolver,e.baseId,t))}function z4(e){if(e.schema.$async&&!e.schemaEnv.$async)throw new Error("async schema in sync schema")}function CP({gen:e,schemaEnv:t,schema:r,errSchemaPath:n,opts:o}){let i=r.$comment;if(o.$comment===!0)e.code((0,j._)`${K.default.self}.logger.log(${i})`);else if(typeof o.$comment=="function"){let s=(0,j.str)`${n}/$comment`,a=e.scopeValue("root",{ref:t.root});e.code((0,j._)`${K.default.self}.opts.$comment(${i}, ${s}, ${a}.schema)`)}}function F4(e){let{gen:t,schemaEnv:r,validateName:n,ValidationError:o,opts:i}=e;r.$async?t.if((0,j._)`${K.default.errors} === 0`,()=>t.return(K.default.data),()=>t.throw((0,j._)`new ${o}(${K.default.vErrors})`)):(t.assign((0,j._)`${n}.errors`,K.default.vErrors),i.unevaluated&&V4(e),t.return((0,j._)`${K.default.errors} === 0`))}function V4({gen:e,evaluated:t,props:r,items:n}){r instanceof j.Name&&e.assign((0,j._)`${t}.props`,r),n instanceof j.Name&&e.assign((0,j._)`${t}.items`,n)}function EP(e,t,r,n){let{gen:o,schema:i,data:s,allErrors:a,opts:c,self:p}=e,{RULES:l}=p;if(i.$ref&&(c.ignoreKeywordsWithRef||!(0,dn.schemaHasRulesButRef)(i,l))){o.block(()=>NP(e,"$ref",l.all.$ref.definition));return}c.jtd||B4(e,t),o.block(()=>{for(let m of l.rules)u(m);u(l.post)});function u(m){(0,Vh.shouldUseGroup)(i,m)&&(m.type?(o.if((0,Fp.checkDataType)(m.type,s,c.strictNumbers)),$P(e,m),t.length===1&&t[0]===m.type&&r&&(o.else(),(0,Fp.reportTypeError)(e)),o.endIf()):$P(e,m),a||o.if((0,j._)`${K.default.errors} === ${n||0}`))}}function $P(e,t){let{gen:r,schema:n,opts:{useDefaults:o}}=e;o&&(0,R4.assignDefaults)(e,t.type),r.block(()=>{for(let i of t.rules)(0,Vh.shouldUseRule)(n,i)&&NP(e,i.keyword,i.definition,t.type)})}function B4(e,t){e.schemaEnv.meta||!e.opts.strictTypes||(H4(e,t),e.opts.allowUnionTypes||K4(e,t),G4(e,e.dataTypes))}function H4(e,t){if(t.length){if(!e.dataTypes.length){e.dataTypes=t;return}t.forEach(r=>{qP(e.dataTypes,r)||Bh(e,`type "${r}" not allowed by context "${e.dataTypes.join(",")}"`)}),W4(e,t)}}function K4(e,t){t.length>1&&!(t.length===2&&t.includes("null"))&&Bh(e,"use allowUnionTypes to allow union type keyword")}function G4(e,t){let r=e.self.RULES.all;for(let n in r){let o=r[n];if(typeof o=="object"&&(0,Vh.shouldUseRule)(e.schema,o)){let{type:i}=o.definition;i.length&&!i.some(s=>Y4(t,s))&&Bh(e,`missing type "${i.join(",")}" for keyword "${n}"`)}}}function Y4(e,t){return e.includes(t)||t==="number"&&e.includes("integer")}function qP(e,t){return e.includes(t)||t==="integer"&&e.includes("number")}function W4(e,t){let r=[];for(let n of e.dataTypes)qP(t,n)?r.push(n):t.includes("integer")&&n==="number"&&r.push("integer");e.dataTypes=r}function Bh(e,t){let r=e.schemaEnv.baseId+e.errSchemaPath;t+=` at "${r}" (strictTypes)`,(0,dn.checkStrictMode)(e,t,e.opts.strictTypes)}var Vp=class{constructor(t,r,n){if((0,Pa.validateKeywordUsage)(t,r,n),this.gen=t.gen,this.allErrors=t.allErrors,this.keyword=n,this.data=t.data,this.schema=t.schema[n],this.$data=r.$data&&t.opts.$data&&this.schema&&this.schema.$data,this.schemaValue=(0,dn.schemaRefOrVal)(t,this.schema,n,this.$data),this.schemaType=r.schemaType,this.parentSchema=t.schema,this.params={},this.it=t,this.def=r,this.$data)this.schemaCode=t.gen.const("vSchema",MP(this.$data,t));else if(this.schemaCode=this.schemaValue,!(0,Pa.validSchemaType)(this.schema,r.schemaType,r.allowUndefined))throw new Error(`${n} value must be ${JSON.stringify(r.schemaType)}`);("code"in r?r.trackErrors:r.errors!==!1)&&(this.errsCount=t.gen.const("_errs",K.default.errors))}result(t,r,n){this.failResult((0,j.not)(t),r,n)}failResult(t,r,n){this.gen.if(t),n?n():this.error(),r?(this.gen.else(),r(),this.allErrors&&this.gen.endIf()):this.allErrors?this.gen.endIf():this.gen.else()}pass(t,r){this.failResult((0,j.not)(t),void 0,r)}fail(t){if(t===void 0){this.error(),this.allErrors||this.gen.if(!1);return}this.gen.if(t),this.error(),this.allErrors?this.gen.endIf():this.gen.else()}fail$data(t){if(!this.$data)return this.fail(t);let{schemaCode:r}=this;this.fail((0,j._)`${r} !== undefined && (${(0,j.or)(this.invalid$data(),t)})`)}error(t,r,n){if(r){this.setParams(r),this._error(t,n),this.setParams({});return}this._error(t,n)}_error(t,r){(t?_a.reportExtraError:_a.reportError)(this,this.def.error,r)}$dataError(){(0,_a.reportError)(this,this.def.$dataError||_a.keyword$DataError)}reset(){if(this.errsCount===void 0)throw new Error('add "trackErrors" to keyword definition');(0,_a.resetErrorsCount)(this.gen,this.errsCount)}ok(t){this.allErrors||this.gen.if(t)}setParams(t,r){r?Object.assign(this.params,t):this.params=t}block$data(t,r,n=j.nil){this.gen.block(()=>{this.check$data(t,n),r()})}check$data(t=j.nil,r=j.nil){if(!this.$data)return;let{gen:n,schemaCode:o,schemaType:i,def:s}=this;n.if((0,j.or)((0,j._)`${o} === undefined`,r)),t!==j.nil&&n.assign(t,!0),(i.length||s.validateSchema)&&(n.elseIf(this.invalid$data()),this.$dataError(),t!==j.nil&&n.assign(t,!1)),n.else()}invalid$data(){let{gen:t,schemaCode:r,schemaType:n,def:o,it:i}=this;return(0,j.or)(s(),a());function s(){if(n.length){if(!(r instanceof j.Name))throw new Error("ajv implementation error");let c=Array.isArray(n)?n:[n];return(0,j._)`${(0,Fp.checkDataTypes)(c,r,i.opts.strictNumbers,Fp.DataType.Wrong)}`}return j.nil}function a(){if(o.validateSchema){let c=t.scopeValue("validate$data",{ref:o.validateSchema});return(0,j._)`!${c}(${r})`}return j.nil}}subschema(t,r){let n=(0,Fh.getSubschema)(this.it,t);(0,Fh.extendSubschemaData)(n,this.it,t),(0,Fh.extendSubschemaMode)(n,t);let o={...this.it,...n,items:void 0,props:void 0};return M4(o,r),o}mergeEvaluated(t,r){let{it:n,gen:o}=this;n.opts.unevaluated&&(n.props!==!0&&t.props!==void 0&&(n.props=dn.mergeEvaluated.props(o,t.props,n.props,r)),n.items!==!0&&t.items!==void 0&&(n.items=dn.mergeEvaluated.items(o,t.items,n.items,r)))}mergeValidEvaluated(t,r){let{it:n,gen:o}=this;if(n.opts.unevaluated&&(n.props!==!0||n.items!==!0))return o.if(r,()=>this.mergeEvaluated(t,j.Name)),!0}};Fn.KeywordCxt=Vp;function NP(e,t,r,n){let o=new Vp(e,r,t);"code"in r?r.code(o,n):o.$data&&r.validate?(0,Pa.funcKeywordCode)(o,r):"macro"in r?(0,Pa.macroKeywordCode)(o,r):(r.compile||r.validate)&&(0,Pa.funcKeywordCode)(o,r)}var Q4=/^\/(?:[^~]|~0|~1)*$/,J4=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function MP(e,{dataLevel:t,dataNames:r,dataPathArr:n}){let o,i;if(e==="")return K.default.rootData;if(e[0]==="/"){if(!Q4.test(e))throw new Error(`Invalid JSON-pointer: ${e}`);o=e,i=K.default.rootData}else{let p=J4.exec(e);if(!p)throw new Error(`Invalid JSON-pointer: ${e}`);let l=+p[1];if(o=p[2],o==="#"){if(l>=t)throw new Error(c("property/index",l));return n[t-l]}if(l>t)throw new Error(c("data",l));if(i=r[t-l],!o)return i}let s=i,a=o.split("/");for(let p of a)p&&(i=(0,j._)`${i}${(0,j.getProperty)((0,dn.unescapeJsonPointer)(p))}`,s=(0,j._)`${s} && ${i}`);return s;function c(p,l){return`Cannot access ${p} ${l} levels up, current level is ${t}`}}Fn.getData=MP});var Bp=S(Kh=>{"use strict";Object.defineProperty(Kh,"__esModule",{value:!0});var Hh=class extends Error{constructor(t){super("validation failed"),this.errors=t,this.ajv=this.validation=!0}};Kh.default=Hh});var $a=S(Wh=>{"use strict";Object.defineProperty(Wh,"__esModule",{value:!0});var Gh=wa(),Yh=class extends Error{constructor(t,r,n,o){super(o||`can't resolve reference ${n} from id ${r}`),this.missingRef=(0,Gh.resolveUrl)(t,r,n),this.missingSchema=(0,Gh.normalizeId)((0,Gh.getFullPath)(t,this.missingRef))}};Wh.default=Yh});var Kp=S(rr=>{"use strict";Object.defineProperty(rr,"__esModule",{value:!0});rr.resolveSchema=rr.getCompilingSchema=rr.resolveRef=rr.compileSchema=rr.SchemaEnv=void 0;var gr=ee(),X4=Bp(),Io=un(),br=wa(),jP=ge(),Z4=Ea(),Bi=class{constructor(t){var r;this.refs={},this.dynamicAnchors={};let n;typeof t.schema=="object"&&(n=t.schema),this.schema=t.schema,this.schemaId=t.schemaId,this.root=t.root||this,this.baseId=(r=t.baseId)!==null&&r!==void 0?r:(0,br.normalizeId)(n?.[t.schemaId||"$id"]),this.schemaPath=t.schemaPath,this.localRefs=t.localRefs,this.meta=t.meta,this.$async=n?.$async,this.refs={}}};rr.SchemaEnv=Bi;function Jh(e){let t=DP.call(this,e);if(t)return t;let r=(0,br.getFullPath)(this.opts.uriResolver,e.root.baseId),{es5:n,lines:o}=this.opts.code,{ownProperties:i}=this.opts,s=new gr.CodeGen(this.scope,{es5:n,lines:o,ownProperties:i}),a;e.$async&&(a=s.scopeValue("Error",{ref:X4.default,code:(0,gr._)`require("ajv/dist/runtime/validation_error").default`}));let c=s.scopeName("validate");e.validateName=c;let p={gen:s,allErrors:this.opts.allErrors,data:Io.default.data,parentData:Io.default.parentData,parentDataProperty:Io.default.parentDataProperty,dataNames:[Io.default.data],dataPathArr:[gr.nil],dataLevel:0,dataTypes:[],definedProperties:new Set,topSchemaRef:s.scopeValue("schema",this.opts.code.source===!0?{ref:e.schema,code:(0,gr.stringify)(e.schema)}:{ref:e.schema}),validateName:c,ValidationError:a,schema:e.schema,schemaEnv:e,rootId:r,baseId:e.baseId||r,schemaPath:gr.nil,errSchemaPath:e.schemaPath||(this.opts.jtd?"":"#"),errorPath:(0,gr._)`""`,opts:this.opts,self:this},l;try{this._compilations.add(e),(0,Z4.validateFunctionCode)(p),s.optimize(this.opts.code.optimize);let u=s.toString();l=`${s.scopeRefs(Io.default.scope)}return ${u}`,this.opts.code.process&&(l=this.opts.code.process(l,e));let d=new Function(`${Io.default.self}`,`${Io.default.scope}`,l)(this,this.scope.get());if(this.scope.value(c,{ref:d}),d.errors=null,d.schema=e.schema,d.schemaEnv=e,e.$async&&(d.$async=!0),this.opts.code.source===!0&&(d.source={validateName:c,validateCode:u,scopeValues:s._values}),this.opts.unevaluated){let{props:f,items:h}=p;d.evaluated={props:f instanceof gr.Name?void 0:f,items:h instanceof gr.Name?void 0:h,dynamicProps:f instanceof gr.Name,dynamicItems:h instanceof gr.Name},d.source&&(d.source.evaluated=(0,gr.stringify)(d.evaluated))}return e.validate=d,e}catch(u){throw delete e.validate,delete e.validateName,l&&this.logger.error("Error compiling schema, function code:",l),u}finally{this._compilations.delete(e)}}rr.compileSchema=Jh;function eG(e,t,r){var n;r=(0,br.resolveUrl)(this.opts.uriResolver,t,r);let o=e.refs[r];if(o)return o;let i=nG.call(this,e,r);if(i===void 0){let s=(n=e.localRefs)===null||n===void 0?void 0:n[r],{schemaId:a}=this.opts;s&&(i=new Bi({schema:s,schemaId:a,root:e,baseId:t}))}if(i!==void 0)return e.refs[r]=tG.call(this,i)}rr.resolveRef=eG;function tG(e){return(0,br.inlineRef)(e.schema,this.opts.inlineRefs)?e.schema:e.validate?e:Jh.call(this,e)}function DP(e){for(let t of this._compilations)if(rG(t,e))return t}rr.getCompilingSchema=DP;function rG(e,t){return e.schema===t.schema&&e.root===t.root&&e.baseId===t.baseId}function nG(e,t){let r;for(;typeof(r=this.refs[t])=="string";)t=r;return r||this.schemas[t]||Hp.call(this,e,t)}function Hp(e,t){let r=this.opts.uriResolver.parse(t),n=(0,br._getFullPath)(this.opts.uriResolver,r),o=(0,br.getFullPath)(this.opts.uriResolver,e.baseId,void 0);if(Object.keys(e.schema).length>0&&n===o)return Qh.call(this,r,e);let i=(0,br.normalizeId)(n),s=this.refs[i]||this.schemas[i];if(typeof s=="string"){let a=Hp.call(this,e,s);return typeof a?.schema!="object"?void 0:Qh.call(this,r,a)}if(typeof s?.schema=="object"){if(s.validate||Jh.call(this,s),i===(0,br.normalizeId)(t)){let{schema:a}=s,{schemaId:c}=this.opts,p=a[c];return p&&(o=(0,br.resolveUrl)(this.opts.uriResolver,o,p)),new Bi({schema:a,schemaId:c,root:e,baseId:o})}return Qh.call(this,r,s)}}rr.resolveSchema=Hp;var oG=new Set(["properties","patternProperties","enum","dependencies","definitions"]);function Qh(e,{baseId:t,schema:r,root:n}){var o;if(((o=e.fragment)===null||o===void 0?void 0:o[0])!=="/")return;for(let a of e.fragment.slice(1).split("/")){if(typeof r=="boolean")return;let c=r[(0,jP.unescapeFragment)(a)];if(c===void 0)return;r=c;let p=typeof r=="object"&&r[this.opts.schemaId];!oG.has(a)&&p&&(t=(0,br.resolveUrl)(this.opts.uriResolver,t,p))}let i;if(typeof r!="boolean"&&r.$ref&&!(0,jP.schemaHasRulesButRef)(r,this.RULES)){let a=(0,br.resolveUrl)(this.opts.uriResolver,t,r.$ref);i=Hp.call(this,n,a)}let{schemaId:s}=this.opts;if(i=i||new Bi({schema:r,schemaId:s,root:n,baseId:t}),i.schema!==i.root.schema)return i}});var LP=S((rie,iG)=>{iG.exports={$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON AnySchema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var zP=S(Xh=>{"use strict";Object.defineProperty(Xh,"__esModule",{value:!0});var UP=Tf();UP.code='require("ajv/dist/runtime/uri").default';Xh.default=UP});var WP=S(st=>{"use strict";Object.defineProperty(st,"__esModule",{value:!0});st.CodeGen=st.Name=st.nil=st.stringify=st.str=st._=st.KeywordCxt=void 0;var sG=Ea();Object.defineProperty(st,"KeywordCxt",{enumerable:!0,get:function(){return sG.KeywordCxt}});var Hi=ee();Object.defineProperty(st,"_",{enumerable:!0,get:function(){return Hi._}});Object.defineProperty(st,"str",{enumerable:!0,get:function(){return Hi.str}});Object.defineProperty(st,"stringify",{enumerable:!0,get:function(){return Hi.stringify}});Object.defineProperty(st,"nil",{enumerable:!0,get:function(){return Hi.nil}});Object.defineProperty(st,"Name",{enumerable:!0,get:function(){return Hi.Name}});Object.defineProperty(st,"CodeGen",{enumerable:!0,get:function(){return Hi.CodeGen}});var aG=Bp(),KP=$a(),cG=Ch(),Aa=Kp(),pG=ee(),Ta=wa(),Gp=xa(),ey=ge(),FP=LP(),lG=zP(),GP=(e,t)=>new RegExp(e,t);GP.code="new RegExp";var uG=["removeAdditional","useDefaults","coerceTypes"],dG=new Set(["validate","serialize","parse","wrapper","root","schema","keyword","pattern","formats","validate$data","func","obj","Error"]),fG={errorDataPath:"",format:"`validateFormats: false` can be used instead.",nullable:'"nullable" keyword is supported by default.',jsonPointers:"Deprecated jsPropertySyntax can be used instead.",extendRefs:"Deprecated ignoreKeywordsWithRef can be used instead.",missingRefs:"Pass empty schema with $id that should be ignored to ajv.addSchema.",processCode:"Use option `code: {process: (code, schemaEnv: object) => string}`",sourceCode:"Use option `code: {source: true}`",strictDefaults:"It is default now, see option `strict`.",strictKeywords:"It is default now, see option `strict`.",uniqueItems:'"uniqueItems" keyword is always validated.',unknownFormats:"Disable strict mode or pass `true` to `ajv.addFormat` (or `formats` option).",cache:"Map is used as cache, schema object as key.",serialize:"Map is used as cache, schema object as key.",ajvErrors:"It is default now."},mG={ignoreKeywordsWithRef:"",jsPropertySyntax:"",unicode:'"minLength"/"maxLength" account for unicode characters by default.'},VP=200;function hG(e){var t,r,n,o,i,s,a,c,p,l,u,m,d,f,h,y,g,v,b,x,w,_,T,A,R;let P=e.strict,J=(t=e.code)===null||t===void 0?void 0:t.optimize,H=J===!0||J===void 0?1:J||0,z=(n=(r=e.code)===null||r===void 0?void 0:r.regExp)!==null&&n!==void 0?n:GP,E=(o=e.uriResolver)!==null&&o!==void 0?o:lG.default;return{strictSchema:(s=(i=e.strictSchema)!==null&&i!==void 0?i:P)!==null&&s!==void 0?s:!0,strictNumbers:(c=(a=e.strictNumbers)!==null&&a!==void 0?a:P)!==null&&c!==void 0?c:!0,strictTypes:(l=(p=e.strictTypes)!==null&&p!==void 0?p:P)!==null&&l!==void 0?l:"log",strictTuples:(m=(u=e.strictTuples)!==null&&u!==void 0?u:P)!==null&&m!==void 0?m:"log",strictRequired:(f=(d=e.strictRequired)!==null&&d!==void 0?d:P)!==null&&f!==void 0?f:!1,code:e.code?{...e.code,optimize:H,regExp:z}:{optimize:H,regExp:z},loopRequired:(h=e.loopRequired)!==null&&h!==void 0?h:VP,loopEnum:(y=e.loopEnum)!==null&&y!==void 0?y:VP,meta:(g=e.meta)!==null&&g!==void 0?g:!0,messages:(v=e.messages)!==null&&v!==void 0?v:!0,inlineRefs:(b=e.inlineRefs)!==null&&b!==void 0?b:!0,schemaId:(x=e.schemaId)!==null&&x!==void 0?x:"$id",addUsedSchema:(w=e.addUsedSchema)!==null&&w!==void 0?w:!0,validateSchema:(_=e.validateSchema)!==null&&_!==void 0?_:!0,validateFormats:(T=e.validateFormats)!==null&&T!==void 0?T:!0,unicodeRegExp:(A=e.unicodeRegExp)!==null&&A!==void 0?A:!0,int32range:(R=e.int32range)!==null&&R!==void 0?R:!0,uriResolver:E}}var Ra=class{constructor(t={}){this.schemas={},this.refs={},this.formats=Object.create(null),this._compilations=new Set,this._loading={},this._cache=new Map,t=this.opts={...t,...hG(t)};let{es5:r,lines:n}=this.opts.code;this.scope=new pG.ValueScope({scope:{},prefixes:dG,es5:r,lines:n}),this.logger=xG(t.logger);let o=t.validateFormats;t.validateFormats=!1,this.RULES=(0,cG.getRules)(),BP.call(this,fG,t,"NOT SUPPORTED"),BP.call(this,mG,t,"DEPRECATED","warn"),this._metaOpts=vG.call(this),t.formats&&gG.call(this),this._addVocabularies(),this._addDefaultMetaSchema(),t.keywords&&bG.call(this,t.keywords),typeof t.meta=="object"&&this.addMetaSchema(t.meta),yG.call(this),t.validateFormats=o}_addVocabularies(){this.addKeyword("$async")}_addDefaultMetaSchema(){let{$data:t,meta:r,schemaId:n}=this.opts,o=FP;n==="id"&&(o={...FP},o.id=o.$id,delete o.$id),r&&t&&this.addMetaSchema(o,o[n],!1)}defaultMeta(){let{meta:t,schemaId:r}=this.opts;return this.opts.defaultMeta=typeof t=="object"?t[r]||t:void 0}validate(t,r){let n;if(typeof t=="string"){if(n=this.getSchema(t),!n)throw new Error(`no schema with key or ref "${t}"`)}else n=this.compile(t);let o=n(r);return"$async"in n||(this.errors=n.errors),o}compile(t,r){let n=this._addSchema(t,r);return n.validate||this._compileSchemaEnv(n)}compileAsync(t,r){if(typeof this.opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");let{loadSchema:n}=this.opts;return o.call(this,t,r);async function o(l,u){await i.call(this,l.$schema);let m=this._addSchema(l,u);return m.validate||s.call(this,m)}async function i(l){l&&!this.getSchema(l)&&await o.call(this,{$ref:l},!0)}async function s(l){try{return this._compileSchemaEnv(l)}catch(u){if(!(u instanceof KP.default))throw u;return a.call(this,u),await c.call(this,u.missingSchema),s.call(this,l)}}function a({missingSchema:l,missingRef:u}){if(this.refs[l])throw new Error(`AnySchema ${l} is loaded but ${u} cannot be resolved`)}async function c(l){let u=await p.call(this,l);this.refs[l]||await i.call(this,u.$schema),this.refs[l]||this.addSchema(u,l,r)}async function p(l){let u=this._loading[l];if(u)return u;try{return await(this._loading[l]=n(l))}finally{delete this._loading[l]}}}addSchema(t,r,n,o=this.opts.validateSchema){if(Array.isArray(t)){for(let s of t)this.addSchema(s,void 0,n,o);return this}let i;if(typeof t=="object"){let{schemaId:s}=this.opts;if(i=t[s],i!==void 0&&typeof i!="string")throw new Error(`schema ${s} must be string`)}return r=(0,Ta.normalizeId)(r||i),this._checkUnique(r),this.schemas[r]=this._addSchema(t,n,r,o,!0),this}addMetaSchema(t,r,n=this.opts.validateSchema){return this.addSchema(t,r,!0,n),this}validateSchema(t,r){if(typeof t=="boolean")return!0;let n;if(n=t.$schema,n!==void 0&&typeof n!="string")throw new Error("$schema must be a string");if(n=n||this.opts.defaultMeta||this.defaultMeta(),!n)return this.logger.warn("meta-schema not available"),this.errors=null,!0;let o=this.validate(n,t);if(!o&&r){let i="schema is invalid: "+this.errorsText();if(this.opts.validateSchema==="log")this.logger.error(i);else throw new Error(i)}return o}getSchema(t){let r;for(;typeof(r=HP.call(this,t))=="string";)t=r;if(r===void 0){let{schemaId:n}=this.opts,o=new Aa.SchemaEnv({schema:{},schemaId:n});if(r=Aa.resolveSchema.call(this,o,t),!r)return;this.refs[t]=r}return r.validate||this._compileSchemaEnv(r)}removeSchema(t){if(t instanceof RegExp)return this._removeAllSchemas(this.schemas,t),this._removeAllSchemas(this.refs,t),this;switch(typeof t){case"undefined":return this._removeAllSchemas(this.schemas),this._removeAllSchemas(this.refs),this._cache.clear(),this;case"string":{let r=HP.call(this,t);return typeof r=="object"&&this._cache.delete(r.schema),delete this.schemas[t],delete this.refs[t],this}case"object":{let r=t;this._cache.delete(r);let n=t[this.opts.schemaId];return n&&(n=(0,Ta.normalizeId)(n),delete this.schemas[n],delete this.refs[n]),this}default:throw new Error("ajv.removeSchema: invalid parameter")}}addVocabulary(t){for(let r of t)this.addKeyword(r);return this}addKeyword(t,r){let n;if(typeof t=="string")n=t,typeof r=="object"&&(this.logger.warn("these parameters are deprecated, see docs for addKeyword"),r.keyword=n);else if(typeof t=="object"&&r===void 0){if(r=t,n=r.keyword,Array.isArray(n)&&!n.length)throw new Error("addKeywords: keyword must be string or non-empty array")}else throw new Error("invalid addKeywords parameters");if(_G.call(this,n,r),!r)return(0,ey.eachItem)(n,i=>Zh.call(this,i)),this;EG.call(this,r);let o={...r,type:(0,Gp.getJSONTypes)(r.type),schemaType:(0,Gp.getJSONTypes)(r.schemaType)};return(0,ey.eachItem)(n,o.type.length===0?i=>Zh.call(this,i,o):i=>o.type.forEach(s=>Zh.call(this,i,o,s))),this}getKeyword(t){let r=this.RULES.all[t];return typeof r=="object"?r.definition:!!r}removeKeyword(t){let{RULES:r}=this;delete r.keywords[t],delete r.all[t];for(let n of r.rules){let o=n.rules.findIndex(i=>i.keyword===t);o>=0&&n.rules.splice(o,1)}return this}addFormat(t,r){return typeof r=="string"&&(r=new RegExp(r)),this.formats[t]=r,this}errorsText(t=this.errors,{separator:r=", ",dataVar:n="data"}={}){return!t||t.length===0?"No errors":t.map(o=>`${n}${o.instancePath} ${o.message}`).reduce((o,i)=>o+r+i)}$dataMetaSchema(t,r){let n=this.RULES.all;t=JSON.parse(JSON.stringify(t));for(let o of r){let i=o.split("/").slice(1),s=t;for(let a of i)s=s[a];for(let a in n){let c=n[a];if(typeof c!="object")continue;let{$data:p}=c.definition,l=s[a];p&&l&&(s[a]=YP(l))}}return t}_removeAllSchemas(t,r){for(let n in t){let o=t[n];(!r||r.test(n))&&(typeof o=="string"?delete t[n]:o&&!o.meta&&(this._cache.delete(o.schema),delete t[n]))}}_addSchema(t,r,n,o=this.opts.validateSchema,i=this.opts.addUsedSchema){let s,{schemaId:a}=this.opts;if(typeof t=="object")s=t[a];else{if(this.opts.jtd)throw new Error("schema must be object");if(typeof t!="boolean")throw new Error("schema must be object or boolean")}let c=this._cache.get(t);if(c!==void 0)return c;n=(0,Ta.normalizeId)(s||n);let p=Ta.getSchemaRefs.call(this,t,n);return c=new Aa.SchemaEnv({schema:t,schemaId:a,meta:r,baseId:n,localRefs:p}),this._cache.set(c.schema,c),i&&!n.startsWith("#")&&(n&&this._checkUnique(n),this.refs[n]=c),o&&this.validateSchema(t,!0),c}_checkUnique(t){if(this.schemas[t]||this.refs[t])throw new Error(`schema with key or id "${t}" already exists`)}_compileSchemaEnv(t){if(t.meta?this._compileMetaSchema(t):Aa.compileSchema.call(this,t),!t.validate)throw new Error("ajv implementation error");return t.validate}_compileMetaSchema(t){let r=this.opts;this.opts=this._metaOpts;try{Aa.compileSchema.call(this,t)}finally{this.opts=r}}};Ra.ValidationError=aG.default;Ra.MissingRefError=KP.default;st.default=Ra;function BP(e,t,r,n="error"){for(let o in e){let i=o;i in t&&this.logger[n](`${r}: option ${o}. ${e[i]}`)}}function HP(e){return e=(0,Ta.normalizeId)(e),this.schemas[e]||this.refs[e]}function yG(){let e=this.opts.schemas;if(e)if(Array.isArray(e))this.addSchema(e);else for(let t in e)this.addSchema(e[t],t)}function gG(){for(let e in this.opts.formats){let t=this.opts.formats[e];t&&this.addFormat(e,t)}}function bG(e){if(Array.isArray(e)){this.addVocabulary(e);return}this.logger.warn("keywords option as map is deprecated, pass array");for(let t in e){let r=e[t];r.keyword||(r.keyword=t),this.addKeyword(r)}}function vG(){let e={...this.opts};for(let t of uG)delete e[t];return e}var SG={log(){},warn(){},error(){}};function xG(e){if(e===!1)return SG;if(e===void 0)return console;if(e.log&&e.warn&&e.error)return e;throw new Error("logger must implement log, warn and error methods")}var wG=/^[a-z_$][a-z0-9_$:-]*$/i;function _G(e,t){let{RULES:r}=this;if((0,ey.eachItem)(e,n=>{if(r.keywords[n])throw new Error(`Keyword ${n} is already defined`);if(!wG.test(n))throw new Error(`Keyword ${n} has invalid name`)}),!!t&&t.$data&&!("code"in t||"validate"in t))throw new Error('$data keyword must have "code" or "validate" function')}function Zh(e,t,r){var n;let o=t?.post;if(r&&o)throw new Error('keyword with "post" flag cannot have "type"');let{RULES:i}=this,s=o?i.post:i.rules.find(({type:c})=>c===r);if(s||(s={type:r,rules:[]},i.rules.push(s)),i.keywords[e]=!0,!t)return;let a={keyword:e,definition:{...t,type:(0,Gp.getJSONTypes)(t.type),schemaType:(0,Gp.getJSONTypes)(t.schemaType)}};t.before?PG.call(this,s,a,t.before):s.rules.push(a),i.all[e]=a,(n=t.implements)===null||n===void 0||n.forEach(c=>this.addKeyword(c))}function PG(e,t,r){let n=e.rules.findIndex(o=>o.keyword===r);n>=0?e.rules.splice(n,0,t):(e.rules.push(t),this.logger.warn(`rule ${r} is not defined`))}function EG(e){let{metaSchema:t}=e;t!==void 0&&(e.$data&&this.opts.$data&&(t=YP(t)),e.validateSchema=this.compile(t,!0))}var $G={$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"};function YP(e){return{anyOf:[e,$G]}}});var QP=S(ty=>{"use strict";Object.defineProperty(ty,"__esModule",{value:!0});var AG={keyword:"id",code(){throw new Error('NOT SUPPORTED: keyword "id", use "$id" for schema ID')}};ty.default=AG});var eE=S(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.callRef=Co.getValidate=void 0;var TG=$a(),JP=tr(),Nt=ee(),Ki=un(),XP=Kp(),Yp=ge(),RG={keyword:"$ref",schemaType:"string",code(e){let{gen:t,schema:r,it:n}=e,{baseId:o,schemaEnv:i,validateName:s,opts:a,self:c}=n,{root:p}=i;if((r==="#"||r==="#/")&&o===p.baseId)return u();let l=XP.resolveRef.call(c,p,o,r);if(l===void 0)throw new TG.default(n.opts.uriResolver,o,r);if(l instanceof XP.SchemaEnv)return m(l);return d(l);function u(){if(i===p)return Wp(e,s,i,i.$async);let f=t.scopeValue("root",{ref:p});return Wp(e,(0,Nt._)`${f}.validate`,p,p.$async)}function m(f){let h=ZP(e,f);Wp(e,h,f,f.$async)}function d(f){let h=t.scopeValue("schema",a.code.source===!0?{ref:f,code:(0,Nt.stringify)(f)}:{ref:f}),y=t.name("valid"),g=e.subschema({schema:f,dataTypes:[],schemaPath:Nt.nil,topSchemaRef:h,errSchemaPath:r},y);e.mergeEvaluated(g),e.ok(y)}}};function ZP(e,t){let{gen:r}=e;return t.validate?r.scopeValue("validate",{ref:t.validate}):(0,Nt._)`${r.scopeValue("wrapper",{ref:t})}.validate`}Co.getValidate=ZP;function Wp(e,t,r,n){let{gen:o,it:i}=e,{allErrors:s,schemaEnv:a,opts:c}=i,p=c.passContext?Ki.default.this:Nt.nil;n?l():u();function l(){if(!a.$async)throw new Error("async schema referenced by sync schema");let f=o.let("valid");o.try(()=>{o.code((0,Nt._)`await ${(0,JP.callValidateCode)(e,t,p)}`),d(t),s||o.assign(f,!0)},h=>{o.if((0,Nt._)`!(${h} instanceof ${i.ValidationError})`,()=>o.throw(h)),m(h),s||o.assign(f,!1)}),e.ok(f)}function u(){e.result((0,JP.callValidateCode)(e,t,p),()=>d(t),()=>m(t))}function m(f){let h=(0,Nt._)`${f}.errors`;o.assign(Ki.default.vErrors,(0,Nt._)`${Ki.default.vErrors} === null ? ${h} : ${Ki.default.vErrors}.concat(${h})`),o.assign(Ki.default.errors,(0,Nt._)`${Ki.default.vErrors}.length`)}function d(f){var h;if(!i.opts.unevaluated)return;let y=(h=r?.validate)===null||h===void 0?void 0:h.evaluated;if(i.props!==!0)if(y&&!y.dynamicProps)y.props!==void 0&&(i.props=Yp.mergeEvaluated.props(o,y.props,i.props));else{let g=o.var("props",(0,Nt._)`${f}.evaluated.props`);i.props=Yp.mergeEvaluated.props(o,g,i.props,Nt.Name)}if(i.items!==!0)if(y&&!y.dynamicItems)y.items!==void 0&&(i.items=Yp.mergeEvaluated.items(o,y.items,i.items));else{let g=o.var("items",(0,Nt._)`${f}.evaluated.items`);i.items=Yp.mergeEvaluated.items(o,g,i.items,Nt.Name)}}}Co.callRef=Wp;Co.default=RG});var tE=S(ry=>{"use strict";Object.defineProperty(ry,"__esModule",{value:!0});var OG=QP(),kG=eE(),IG=["$schema","$id","$defs","$vocabulary",{keyword:"$comment"},"definitions",OG.default,kG.default];ry.default=IG});var rE=S(ny=>{"use strict";Object.defineProperty(ny,"__esModule",{value:!0});var Qp=ee(),Vn=Qp.operators,Jp={maximum:{okStr:"<=",ok:Vn.LTE,fail:Vn.GT},minimum:{okStr:">=",ok:Vn.GTE,fail:Vn.LT},exclusiveMaximum:{okStr:"<",ok:Vn.LT,fail:Vn.GTE},exclusiveMinimum:{okStr:">",ok:Vn.GT,fail:Vn.LTE}},CG={message:({keyword:e,schemaCode:t})=>(0,Qp.str)`must be ${Jp[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Qp._)`{comparison: ${Jp[e].okStr}, limit: ${t}}`},qG={keyword:Object.keys(Jp),type:"number",schemaType:"number",$data:!0,error:CG,code(e){let{keyword:t,data:r,schemaCode:n}=e;e.fail$data((0,Qp._)`${r} ${Jp[t].fail} ${n} || isNaN(${r})`)}};ny.default=qG});var nE=S(oy=>{"use strict";Object.defineProperty(oy,"__esModule",{value:!0});var Oa=ee(),NG={message:({schemaCode:e})=>(0,Oa.str)`must be multiple of ${e}`,params:({schemaCode:e})=>(0,Oa._)`{multipleOf: ${e}}`},MG={keyword:"multipleOf",type:"number",schemaType:"number",$data:!0,error:NG,code(e){let{gen:t,data:r,schemaCode:n,it:o}=e,i=o.opts.multipleOfPrecision,s=t.let("res"),a=i?(0,Oa._)`Math.abs(Math.round(${s}) - ${s}) > 1e-${i}`:(0,Oa._)`${s} !== parseInt(${s})`;e.fail$data((0,Oa._)`(${n} === 0 || (${s} = ${r}/${n}, ${a}))`)}};oy.default=MG});var iE=S(iy=>{"use strict";Object.defineProperty(iy,"__esModule",{value:!0});function oE(e){let t=e.length,r=0,n=0,o;for(;n<t;)r++,o=e.charCodeAt(n++),o>=55296&&o<=56319&&n<t&&(o=e.charCodeAt(n),(o&64512)===56320&&n++);return r}iy.default=oE;oE.code='require("ajv/dist/runtime/ucs2length").default'});var sE=S(sy=>{"use strict";Object.defineProperty(sy,"__esModule",{value:!0});var qo=ee(),jG=ge(),DG=iE(),LG={message({keyword:e,schemaCode:t}){let r=e==="maxLength"?"more":"fewer";return(0,qo.str)`must NOT have ${r} than ${t} characters`},params:({schemaCode:e})=>(0,qo._)`{limit: ${e}}`},UG={keyword:["maxLength","minLength"],type:"string",schemaType:"number",$data:!0,error:LG,code(e){let{keyword:t,data:r,schemaCode:n,it:o}=e,i=t==="maxLength"?qo.operators.GT:qo.operators.LT,s=o.opts.unicode===!1?(0,qo._)`${r}.length`:(0,qo._)`${(0,jG.useFunc)(e.gen,DG.default)}(${r})`;e.fail$data((0,qo._)`${s} ${i} ${n}`)}};sy.default=UG});var aE=S(ay=>{"use strict";Object.defineProperty(ay,"__esModule",{value:!0});var zG=tr(),FG=ge(),Gi=ee(),VG={message:({schemaCode:e})=>(0,Gi.str)`must match pattern "${e}"`,params:({schemaCode:e})=>(0,Gi._)`{pattern: ${e}}`},BG={keyword:"pattern",type:"string",schemaType:"string",$data:!0,error:VG,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e,a=s.opts.unicodeRegExp?"u":"";if(n){let{regExp:c}=s.opts.code,p=c.code==="new RegExp"?(0,Gi._)`new RegExp`:(0,FG.useFunc)(t,c),l=t.let("valid");t.try(()=>t.assign(l,(0,Gi._)`${p}(${i}, ${a}).test(${r})`),()=>t.assign(l,!1)),e.fail$data((0,Gi._)`!${l}`)}else{let c=(0,zG.usePattern)(e,o);e.fail$data((0,Gi._)`!${c}.test(${r})`)}}};ay.default=BG});var cE=S(cy=>{"use strict";Object.defineProperty(cy,"__esModule",{value:!0});var ka=ee(),HG={message({keyword:e,schemaCode:t}){let r=e==="maxProperties"?"more":"fewer";return(0,ka.str)`must NOT have ${r} than ${t} properties`},params:({schemaCode:e})=>(0,ka._)`{limit: ${e}}`},KG={keyword:["maxProperties","minProperties"],type:"object",schemaType:"number",$data:!0,error:HG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxProperties"?ka.operators.GT:ka.operators.LT;e.fail$data((0,ka._)`Object.keys(${r}).length ${o} ${n}`)}};cy.default=KG});var pE=S(py=>{"use strict";Object.defineProperty(py,"__esModule",{value:!0});var Ia=tr(),Ca=ee(),GG=ge(),YG={message:({params:{missingProperty:e}})=>(0,Ca.str)`must have required property '${e}'`,params:({params:{missingProperty:e}})=>(0,Ca._)`{missingProperty: ${e}}`},WG={keyword:"required",type:"object",schemaType:"array",$data:!0,error:YG,code(e){let{gen:t,schema:r,schemaCode:n,data:o,$data:i,it:s}=e,{opts:a}=s;if(!i&&r.length===0)return;let c=r.length>=a.loopRequired;if(s.allErrors?p():l(),a.strictRequired){let d=e.parentSchema.properties,{definedProperties:f}=e.it;for(let h of r)if(d?.[h]===void 0&&!f.has(h)){let y=s.schemaEnv.baseId+s.errSchemaPath,g=`required property "${h}" is not defined at "${y}" (strictRequired)`;(0,GG.checkStrictMode)(s,g,s.opts.strictRequired)}}function p(){if(c||i)e.block$data(Ca.nil,u);else for(let d of r)(0,Ia.checkReportMissingProp)(e,d)}function l(){let d=t.let("missing");if(c||i){let f=t.let("valid",!0);e.block$data(f,()=>m(d,f)),e.ok(f)}else t.if((0,Ia.checkMissingProp)(e,r,d)),(0,Ia.reportMissingProp)(e,d),t.else()}function u(){t.forOf("prop",n,d=>{e.setParams({missingProperty:d}),t.if((0,Ia.noPropertyInData)(t,o,d,a.ownProperties),()=>e.error())})}function m(d,f){e.setParams({missingProperty:d}),t.forOf(d,n,()=>{t.assign(f,(0,Ia.propertyInData)(t,o,d,a.ownProperties)),t.if((0,Ca.not)(f),()=>{e.error(),t.break()})},Ca.nil)}}};py.default=WG});var lE=S(ly=>{"use strict";Object.defineProperty(ly,"__esModule",{value:!0});var qa=ee(),QG={message({keyword:e,schemaCode:t}){let r=e==="maxItems"?"more":"fewer";return(0,qa.str)`must NOT have ${r} than ${t} items`},params:({schemaCode:e})=>(0,qa._)`{limit: ${e}}`},JG={keyword:["maxItems","minItems"],type:"array",schemaType:"number",$data:!0,error:QG,code(e){let{keyword:t,data:r,schemaCode:n}=e,o=t==="maxItems"?qa.operators.GT:qa.operators.LT;e.fail$data((0,qa._)`${r}.length ${o} ${n}`)}};ly.default=JG});var Xp=S(uy=>{"use strict";Object.defineProperty(uy,"__esModule",{value:!0});var uE=Ls();uE.code='require("ajv/dist/runtime/equal").default';uy.default=uE});var dE=S(fy=>{"use strict";Object.defineProperty(fy,"__esModule",{value:!0});var dy=xa(),at=ee(),XG=ge(),ZG=Xp(),e5={message:({params:{i:e,j:t}})=>(0,at.str)`must NOT have duplicate items (items ## ${t} and ${e} are identical)`,params:({params:{i:e,j:t}})=>(0,at._)`{i: ${e}, j: ${t}}`},t5={keyword:"uniqueItems",type:"array",schemaType:"boolean",$data:!0,error:e5,code(e){let{gen:t,data:r,$data:n,schema:o,parentSchema:i,schemaCode:s,it:a}=e;if(!n&&!o)return;let c=t.let("valid"),p=i.items?(0,dy.getSchemaTypes)(i.items):[];e.block$data(c,l,(0,at._)`${s} === false`),e.ok(c);function l(){let f=t.let("i",(0,at._)`${r}.length`),h=t.let("j");e.setParams({i:f,j:h}),t.assign(c,!0),t.if((0,at._)`${f} > 1`,()=>(u()?m:d)(f,h))}function u(){return p.length>0&&!p.some(f=>f==="object"||f==="array")}function m(f,h){let y=t.name("item"),g=(0,dy.checkDataTypes)(p,y,a.opts.strictNumbers,dy.DataType.Wrong),v=t.const("indices",(0,at._)`{}`);t.for((0,at._)`;${f}--;`,()=>{t.let(y,(0,at._)`${r}[${f}]`),t.if(g,(0,at._)`continue`),p.length>1&&t.if((0,at._)`typeof ${y} == "string"`,(0,at._)`${y} += "_"`),t.if((0,at._)`typeof ${v}[${y}] == "number"`,()=>{t.assign(h,(0,at._)`${v}[${y}]`),e.error(),t.assign(c,!1).break()}).code((0,at._)`${v}[${y}] = ${f}`)})}function d(f,h){let y=(0,XG.useFunc)(t,ZG.default),g=t.name("outer");t.label(g).for((0,at._)`;${f}--;`,()=>t.for((0,at._)`${h} = ${f}; ${h}--;`,()=>t.if((0,at._)`${y}(${r}[${f}], ${r}[${h}])`,()=>{e.error(),t.assign(c,!1).break(g)})))}}};fy.default=t5});var fE=S(hy=>{"use strict";Object.defineProperty(hy,"__esModule",{value:!0});var my=ee(),r5=ge(),n5=Xp(),o5={message:"must be equal to constant",params:({schemaCode:e})=>(0,my._)`{allowedValue: ${e}}`},i5={keyword:"const",$data:!0,error:o5,code(e){let{gen:t,data:r,$data:n,schemaCode:o,schema:i}=e;n||i&&typeof i=="object"?e.fail$data((0,my._)`!${(0,r5.useFunc)(t,n5.default)}(${r}, ${o})`):e.fail((0,my._)`${i} !== ${r}`)}};hy.default=i5});var mE=S(yy=>{"use strict";Object.defineProperty(yy,"__esModule",{value:!0});var Na=ee(),s5=ge(),a5=Xp(),c5={message:"must be equal to one of the allowed values",params:({schemaCode:e})=>(0,Na._)`{allowedValues: ${e}}`},p5={keyword:"enum",schemaType:"array",$data:!0,error:c5,code(e){let{gen:t,data:r,$data:n,schema:o,schemaCode:i,it:s}=e;if(!n&&o.length===0)throw new Error("enum must have non-empty array");let a=o.length>=s.opts.loopEnum,c,p=()=>c??(c=(0,s5.useFunc)(t,a5.default)),l;if(a||n)l=t.let("valid"),e.block$data(l,u);else{if(!Array.isArray(o))throw new Error("ajv implementation error");let d=t.const("vSchema",i);l=(0,Na.or)(...o.map((f,h)=>m(d,h)))}e.pass(l);function u(){t.assign(l,!1),t.forOf("v",i,d=>t.if((0,Na._)`${p()}(${r}, ${d})`,()=>t.assign(l,!0).break()))}function m(d,f){let h=o[f];return typeof h=="object"&&h!==null?(0,Na._)`${p()}(${r}, ${d}[${f}])`:(0,Na._)`${r} === ${h}`}}};yy.default=p5});var hE=S(gy=>{"use strict";Object.defineProperty(gy,"__esModule",{value:!0});var l5=rE(),u5=nE(),d5=sE(),f5=aE(),m5=cE(),h5=pE(),y5=lE(),g5=dE(),b5=fE(),v5=mE(),S5=[l5.default,u5.default,d5.default,f5.default,m5.default,h5.default,y5.default,g5.default,{keyword:"type",schemaType:["string","array"]},{keyword:"nullable",schemaType:"boolean"},b5.default,v5.default];gy.default=S5});var vy=S(Ma=>{"use strict";Object.defineProperty(Ma,"__esModule",{value:!0});Ma.validateAdditionalItems=void 0;var No=ee(),by=ge(),x5={message:({params:{len:e}})=>(0,No.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,No._)`{limit: ${e}}`},w5={keyword:"additionalItems",type:"array",schemaType:["boolean","object"],before:"uniqueItems",error:x5,code(e){let{parentSchema:t,it:r}=e,{items:n}=t;if(!Array.isArray(n)){(0,by.checkStrictMode)(r,'"additionalItems" is ignored when "items" is not an array of schemas');return}yE(e,n)}};function yE(e,t){let{gen:r,schema:n,data:o,keyword:i,it:s}=e;s.items=!0;let a=r.const("len",(0,No._)`${o}.length`);if(n===!1)e.setParams({len:t.length}),e.pass((0,No._)`${a} <= ${t.length}`);else if(typeof n=="object"&&!(0,by.alwaysValidSchema)(s,n)){let p=r.var("valid",(0,No._)`${a} <= ${t.length}`);r.if((0,No.not)(p),()=>c(p)),e.ok(p)}function c(p){r.forRange("i",t.length,a,l=>{e.subschema({keyword:i,dataProp:l,dataPropType:by.Type.Num},p),s.allErrors||r.if((0,No.not)(p),()=>r.break())})}}Ma.validateAdditionalItems=yE;Ma.default=w5});var Sy=S(ja=>{"use strict";Object.defineProperty(ja,"__esModule",{value:!0});ja.validateTuple=void 0;var gE=ee(),Zp=ge(),_5=tr(),P5={keyword:"items",type:"array",schemaType:["object","array","boolean"],before:"uniqueItems",code(e){let{schema:t,it:r}=e;if(Array.isArray(t))return bE(e,"additionalItems",t);r.items=!0,!(0,Zp.alwaysValidSchema)(r,t)&&e.ok((0,_5.validateArray)(e))}};function bE(e,t,r=e.schema){let{gen:n,parentSchema:o,data:i,keyword:s,it:a}=e;l(o),a.opts.unevaluated&&r.length&&a.items!==!0&&(a.items=Zp.mergeEvaluated.items(n,r.length,a.items));let c=n.name("valid"),p=n.const("len",(0,gE._)`${i}.length`);r.forEach((u,m)=>{(0,Zp.alwaysValidSchema)(a,u)||(n.if((0,gE._)`${p} > ${m}`,()=>e.subschema({keyword:s,schemaProp:m,dataProp:m},c)),e.ok(c))});function l(u){let{opts:m,errSchemaPath:d}=a,f=r.length,h=f===u.minItems&&(f===u.maxItems||u[t]===!1);if(m.strictTuples&&!h){let y=`"${s}" is ${f}-tuple, but minItems or maxItems/${t} are not specified or different at path "${d}"`;(0,Zp.checkStrictMode)(a,y,m.strictTuples)}}}ja.validateTuple=bE;ja.default=P5});var vE=S(xy=>{"use strict";Object.defineProperty(xy,"__esModule",{value:!0});var E5=Sy(),$5={keyword:"prefixItems",type:"array",schemaType:["array"],before:"uniqueItems",code:e=>(0,E5.validateTuple)(e,"items")};xy.default=$5});var xE=S(wy=>{"use strict";Object.defineProperty(wy,"__esModule",{value:!0});var SE=ee(),A5=ge(),T5=tr(),R5=vy(),O5={message:({params:{len:e}})=>(0,SE.str)`must NOT have more than ${e} items`,params:({params:{len:e}})=>(0,SE._)`{limit: ${e}}`},k5={keyword:"items",type:"array",schemaType:["object","boolean"],before:"uniqueItems",error:O5,code(e){let{schema:t,parentSchema:r,it:n}=e,{prefixItems:o}=r;n.items=!0,!(0,A5.alwaysValidSchema)(n,t)&&(o?(0,R5.validateAdditionalItems)(e,o):e.ok((0,T5.validateArray)(e)))}};wy.default=k5});var wE=S(_y=>{"use strict";Object.defineProperty(_y,"__esModule",{value:!0});var nr=ee(),el=ge(),I5={message:({params:{min:e,max:t}})=>t===void 0?(0,nr.str)`must contain at least ${e} valid item(s)`:(0,nr.str)`must contain at least ${e} and no more than ${t} valid item(s)`,params:({params:{min:e,max:t}})=>t===void 0?(0,nr._)`{minContains: ${e}}`:(0,nr._)`{minContains: ${e}, maxContains: ${t}}`},C5={keyword:"contains",type:"array",schemaType:["object","boolean"],before:"uniqueItems",trackErrors:!0,error:I5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e,s,a,{minContains:c,maxContains:p}=n;i.opts.next?(s=c===void 0?1:c,a=p):s=1;let l=t.const("len",(0,nr._)`${o}.length`);if(e.setParams({min:s,max:a}),a===void 0&&s===0){(0,el.checkStrictMode)(i,'"minContains" == 0 without "maxContains": "contains" keyword ignored');return}if(a!==void 0&&s>a){(0,el.checkStrictMode)(i,'"minContains" > "maxContains" is always invalid'),e.fail();return}if((0,el.alwaysValidSchema)(i,r)){let h=(0,nr._)`${l} >= ${s}`;a!==void 0&&(h=(0,nr._)`${h} && ${l} <= ${a}`),e.pass(h);return}i.items=!0;let u=t.name("valid");a===void 0&&s===1?d(u,()=>t.if(u,()=>t.break())):s===0?(t.let(u,!0),a!==void 0&&t.if((0,nr._)`${o}.length > 0`,m)):(t.let(u,!1),m()),e.result(u,()=>e.reset());function m(){let h=t.name("_valid"),y=t.let("count",0);d(h,()=>t.if(h,()=>f(y)))}function d(h,y){t.forRange("i",0,l,g=>{e.subschema({keyword:"contains",dataProp:g,dataPropType:el.Type.Num,compositeRule:!0},h),y()})}function f(h){t.code((0,nr._)`${h}++`),a===void 0?t.if((0,nr._)`${h} >= ${s}`,()=>t.assign(u,!0).break()):(t.if((0,nr._)`${h} > ${a}`,()=>t.assign(u,!1).break()),s===1?t.assign(u,!0):t.if((0,nr._)`${h} >= ${s}`,()=>t.assign(u,!0)))}}};_y.default=C5});var EE=S(Gr=>{"use strict";Object.defineProperty(Gr,"__esModule",{value:!0});Gr.validateSchemaDeps=Gr.validatePropertyDeps=Gr.error=void 0;var Py=ee(),q5=ge(),Da=tr();Gr.error={message:({params:{property:e,depsCount:t,deps:r}})=>{let n=t===1?"property":"properties";return(0,Py.str)`must have ${n} ${r} when property ${e} is present`},params:({params:{property:e,depsCount:t,deps:r,missingProperty:n}})=>(0,Py._)`{property: ${e},
|
|
19
|
-
missingProperty: ${n},
|
|
20
|
-
depsCount: ${t},
|
|
21
|
-
deps: ${r}}`};var N5={keyword:"dependencies",type:"object",schemaType:"object",error:Gr.error,code(e){let[t,r]=M5(e);_E(e,t),PE(e,r)}};function M5({schema:e}){let t={},r={};for(let n in e){if(n==="__proto__")continue;let o=Array.isArray(e[n])?t:r;o[n]=e[n]}return[t,r]}function _E(e,t=e.schema){let{gen:r,data:n,it:o}=e;if(Object.keys(t).length===0)return;let i=r.let("missing");for(let s in t){let a=t[s];if(a.length===0)continue;let c=(0,Da.propertyInData)(r,n,s,o.opts.ownProperties);e.setParams({property:s,depsCount:a.length,deps:a.join(", ")}),o.allErrors?r.if(c,()=>{for(let p of a)(0,Da.checkReportMissingProp)(e,p)}):(r.if((0,Py._)`${c} && (${(0,Da.checkMissingProp)(e,a,i)})`),(0,Da.reportMissingProp)(e,i),r.else())}}Gr.validatePropertyDeps=_E;function PE(e,t=e.schema){let{gen:r,data:n,keyword:o,it:i}=e,s=r.name("valid");for(let a in t)(0,q5.alwaysValidSchema)(i,t[a])||(r.if((0,Da.propertyInData)(r,n,a,i.opts.ownProperties),()=>{let c=e.subschema({keyword:o,schemaProp:a},s);e.mergeValidEvaluated(c,s)},()=>r.var(s,!0)),e.ok(s))}Gr.validateSchemaDeps=PE;Gr.default=N5});var AE=S(Ey=>{"use strict";Object.defineProperty(Ey,"__esModule",{value:!0});var $E=ee(),j5=ge(),D5={message:"property name must be valid",params:({params:e})=>(0,$E._)`{propertyName: ${e.propertyName}}`},L5={keyword:"propertyNames",type:"object",schemaType:["object","boolean"],error:D5,code(e){let{gen:t,schema:r,data:n,it:o}=e;if((0,j5.alwaysValidSchema)(o,r))return;let i=t.name("valid");t.forIn("key",n,s=>{e.setParams({propertyName:s}),e.subschema({keyword:"propertyNames",data:s,dataTypes:["string"],propertyName:s,compositeRule:!0},i),t.if((0,$E.not)(i),()=>{e.error(!0),o.allErrors||t.break()})}),e.ok(i)}};Ey.default=L5});var Ay=S($y=>{"use strict";Object.defineProperty($y,"__esModule",{value:!0});var tl=tr(),vr=ee(),U5=un(),rl=ge(),z5={message:"must NOT have additional properties",params:({params:e})=>(0,vr._)`{additionalProperty: ${e.additionalProperty}}`},F5={keyword:"additionalProperties",type:["object"],schemaType:["boolean","object"],allowUndefined:!0,trackErrors:!0,error:z5,code(e){let{gen:t,schema:r,parentSchema:n,data:o,errsCount:i,it:s}=e;if(!i)throw new Error("ajv implementation error");let{allErrors:a,opts:c}=s;if(s.props=!0,c.removeAdditional!=="all"&&(0,rl.alwaysValidSchema)(s,r))return;let p=(0,tl.allSchemaProperties)(n.properties),l=(0,tl.allSchemaProperties)(n.patternProperties);u(),e.ok((0,vr._)`${i} === ${U5.default.errors}`);function u(){t.forIn("key",o,y=>{!p.length&&!l.length?f(y):t.if(m(y),()=>f(y))})}function m(y){let g;if(p.length>8){let v=(0,rl.schemaRefOrVal)(s,n.properties,"properties");g=(0,tl.isOwnProperty)(t,v,y)}else p.length?g=(0,vr.or)(...p.map(v=>(0,vr._)`${y} === ${v}`)):g=vr.nil;return l.length&&(g=(0,vr.or)(g,...l.map(v=>(0,vr._)`${(0,tl.usePattern)(e,v)}.test(${y})`))),(0,vr.not)(g)}function d(y){t.code((0,vr._)`delete ${o}[${y}]`)}function f(y){if(c.removeAdditional==="all"||c.removeAdditional&&r===!1){d(y);return}if(r===!1){e.setParams({additionalProperty:y}),e.error(),a||t.break();return}if(typeof r=="object"&&!(0,rl.alwaysValidSchema)(s,r)){let g=t.name("valid");c.removeAdditional==="failing"?(h(y,g,!1),t.if((0,vr.not)(g),()=>{e.reset(),d(y)})):(h(y,g),a||t.if((0,vr.not)(g),()=>t.break()))}}function h(y,g,v){let b={keyword:"additionalProperties",dataProp:y,dataPropType:rl.Type.Str};v===!1&&Object.assign(b,{compositeRule:!0,createErrors:!1,allErrors:!1}),e.subschema(b,g)}}};$y.default=F5});var OE=S(Ry=>{"use strict";Object.defineProperty(Ry,"__esModule",{value:!0});var V5=Ea(),TE=tr(),Ty=ge(),RE=Ay(),B5={keyword:"properties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,parentSchema:n,data:o,it:i}=e;i.opts.removeAdditional==="all"&&n.additionalProperties===void 0&&RE.default.code(new V5.KeywordCxt(i,RE.default,"additionalProperties"));let s=(0,TE.allSchemaProperties)(r);for(let u of s)i.definedProperties.add(u);i.opts.unevaluated&&s.length&&i.props!==!0&&(i.props=Ty.mergeEvaluated.props(t,(0,Ty.toHash)(s),i.props));let a=s.filter(u=>!(0,Ty.alwaysValidSchema)(i,r[u]));if(a.length===0)return;let c=t.name("valid");for(let u of a)p(u)?l(u):(t.if((0,TE.propertyInData)(t,o,u,i.opts.ownProperties)),l(u),i.allErrors||t.else().var(c,!0),t.endIf()),e.it.definedProperties.add(u),e.ok(c);function p(u){return i.opts.useDefaults&&!i.compositeRule&&r[u].default!==void 0}function l(u){e.subschema({keyword:"properties",schemaProp:u,dataProp:u},c)}}};Ry.default=B5});var qE=S(Oy=>{"use strict";Object.defineProperty(Oy,"__esModule",{value:!0});var kE=tr(),nl=ee(),IE=ge(),CE=ge(),H5={keyword:"patternProperties",type:"object",schemaType:"object",code(e){let{gen:t,schema:r,data:n,parentSchema:o,it:i}=e,{opts:s}=i,a=(0,kE.allSchemaProperties)(r),c=a.filter(h=>(0,IE.alwaysValidSchema)(i,r[h]));if(a.length===0||c.length===a.length&&(!i.opts.unevaluated||i.props===!0))return;let p=s.strictSchema&&!s.allowMatchingProperties&&o.properties,l=t.name("valid");i.props!==!0&&!(i.props instanceof nl.Name)&&(i.props=(0,CE.evaluatedPropsToName)(t,i.props));let{props:u}=i;m();function m(){for(let h of a)p&&d(h),i.allErrors?f(h):(t.var(l,!0),f(h),t.if(l))}function d(h){for(let y in p)new RegExp(h).test(y)&&(0,IE.checkStrictMode)(i,`property ${y} matches pattern ${h} (use allowMatchingProperties)`)}function f(h){t.forIn("key",n,y=>{t.if((0,nl._)`${(0,kE.usePattern)(e,h)}.test(${y})`,()=>{let g=c.includes(h);g||e.subschema({keyword:"patternProperties",schemaProp:h,dataProp:y,dataPropType:CE.Type.Str},l),i.opts.unevaluated&&u!==!0?t.assign((0,nl._)`${u}[${y}]`,!0):!g&&!i.allErrors&&t.if((0,nl.not)(l),()=>t.break())})})}}};Oy.default=H5});var NE=S(ky=>{"use strict";Object.defineProperty(ky,"__esModule",{value:!0});var K5=ge(),G5={keyword:"not",schemaType:["object","boolean"],trackErrors:!0,code(e){let{gen:t,schema:r,it:n}=e;if((0,K5.alwaysValidSchema)(n,r)){e.fail();return}let o=t.name("valid");e.subschema({keyword:"not",compositeRule:!0,createErrors:!1,allErrors:!1},o),e.failResult(o,()=>e.reset(),()=>e.error())},error:{message:"must NOT be valid"}};ky.default=G5});var ME=S(Iy=>{"use strict";Object.defineProperty(Iy,"__esModule",{value:!0});var Y5=tr(),W5={keyword:"anyOf",schemaType:"array",trackErrors:!0,code:Y5.validateUnion,error:{message:"must match a schema in anyOf"}};Iy.default=W5});var jE=S(Cy=>{"use strict";Object.defineProperty(Cy,"__esModule",{value:!0});var ol=ee(),Q5=ge(),J5={message:"must match exactly one schema in oneOf",params:({params:e})=>(0,ol._)`{passingSchemas: ${e.passing}}`},X5={keyword:"oneOf",schemaType:"array",trackErrors:!0,error:J5,code(e){let{gen:t,schema:r,parentSchema:n,it:o}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");if(o.opts.discriminator&&n.discriminator)return;let i=r,s=t.let("valid",!1),a=t.let("passing",null),c=t.name("_valid");e.setParams({passing:a}),t.block(p),e.result(s,()=>e.reset(),()=>e.error(!0));function p(){i.forEach((l,u)=>{let m;(0,Q5.alwaysValidSchema)(o,l)?t.var(c,!0):m=e.subschema({keyword:"oneOf",schemaProp:u,compositeRule:!0},c),u>0&&t.if((0,ol._)`${c} && ${s}`).assign(s,!1).assign(a,(0,ol._)`[${a}, ${u}]`).else(),t.if(c,()=>{t.assign(s,!0),t.assign(a,u),m&&e.mergeEvaluated(m,ol.Name)})})}}};Cy.default=X5});var DE=S(qy=>{"use strict";Object.defineProperty(qy,"__esModule",{value:!0});var Z5=ge(),eY={keyword:"allOf",schemaType:"array",code(e){let{gen:t,schema:r,it:n}=e;if(!Array.isArray(r))throw new Error("ajv implementation error");let o=t.name("valid");r.forEach((i,s)=>{if((0,Z5.alwaysValidSchema)(n,i))return;let a=e.subschema({keyword:"allOf",schemaProp:s},o);e.ok(o),e.mergeEvaluated(a)})}};qy.default=eY});var zE=S(Ny=>{"use strict";Object.defineProperty(Ny,"__esModule",{value:!0});var il=ee(),UE=ge(),tY={message:({params:e})=>(0,il.str)`must match "${e.ifClause}" schema`,params:({params:e})=>(0,il._)`{failingKeyword: ${e.ifClause}}`},rY={keyword:"if",schemaType:["object","boolean"],trackErrors:!0,error:tY,code(e){let{gen:t,parentSchema:r,it:n}=e;r.then===void 0&&r.else===void 0&&(0,UE.checkStrictMode)(n,'"if" without "then" and "else" is ignored');let o=LE(n,"then"),i=LE(n,"else");if(!o&&!i)return;let s=t.let("valid",!0),a=t.name("_valid");if(c(),e.reset(),o&&i){let l=t.let("ifClause");e.setParams({ifClause:l}),t.if(a,p("then",l),p("else",l))}else o?t.if(a,p("then")):t.if((0,il.not)(a),p("else"));e.pass(s,()=>e.error(!0));function c(){let l=e.subschema({keyword:"if",compositeRule:!0,createErrors:!1,allErrors:!1},a);e.mergeEvaluated(l)}function p(l,u){return()=>{let m=e.subschema({keyword:l},a);t.assign(s,a),e.mergeValidEvaluated(m,s),u?t.assign(u,(0,il._)`${l}`):e.setParams({ifClause:l})}}}};function LE(e,t){let r=e.schema[t];return r!==void 0&&!(0,UE.alwaysValidSchema)(e,r)}Ny.default=rY});var FE=S(My=>{"use strict";Object.defineProperty(My,"__esModule",{value:!0});var nY=ge(),oY={keyword:["then","else"],schemaType:["object","boolean"],code({keyword:e,parentSchema:t,it:r}){t.if===void 0&&(0,nY.checkStrictMode)(r,`"${e}" without "if" is ignored`)}};My.default=oY});var VE=S(jy=>{"use strict";Object.defineProperty(jy,"__esModule",{value:!0});var iY=vy(),sY=vE(),aY=Sy(),cY=xE(),pY=wE(),lY=EE(),uY=AE(),dY=Ay(),fY=OE(),mY=qE(),hY=NE(),yY=ME(),gY=jE(),bY=DE(),vY=zE(),SY=FE();function xY(e=!1){let t=[hY.default,yY.default,gY.default,bY.default,vY.default,SY.default,uY.default,dY.default,lY.default,fY.default,mY.default];return e?t.push(sY.default,cY.default):t.push(iY.default,aY.default),t.push(pY.default),t}jy.default=xY});var BE=S(Dy=>{"use strict";Object.defineProperty(Dy,"__esModule",{value:!0});var Ve=ee(),wY={message:({schemaCode:e})=>(0,Ve.str)`must match format "${e}"`,params:({schemaCode:e})=>(0,Ve._)`{format: ${e}}`},_Y={keyword:"format",type:["number","string"],schemaType:"string",$data:!0,error:wY,code(e,t){let{gen:r,data:n,$data:o,schema:i,schemaCode:s,it:a}=e,{opts:c,errSchemaPath:p,schemaEnv:l,self:u}=a;if(!c.validateFormats)return;o?m():d();function m(){let f=r.scopeValue("formats",{ref:u.formats,code:c.code.formats}),h=r.const("fDef",(0,Ve._)`${f}[${s}]`),y=r.let("fType"),g=r.let("format");r.if((0,Ve._)`typeof ${h} == "object" && !(${h} instanceof RegExp)`,()=>r.assign(y,(0,Ve._)`${h}.type || "string"`).assign(g,(0,Ve._)`${h}.validate`),()=>r.assign(y,(0,Ve._)`"string"`).assign(g,h)),e.fail$data((0,Ve.or)(v(),b()));function v(){return c.strictSchema===!1?Ve.nil:(0,Ve._)`${s} && !${g}`}function b(){let x=l.$async?(0,Ve._)`(${h}.async ? await ${g}(${n}) : ${g}(${n}))`:(0,Ve._)`${g}(${n})`,w=(0,Ve._)`(typeof ${g} == "function" ? ${x} : ${g}.test(${n}))`;return(0,Ve._)`${g} && ${g} !== true && ${y} === ${t} && !${w}`}}function d(){let f=u.formats[i];if(!f){v();return}if(f===!0)return;let[h,y,g]=b(f);h===t&&e.pass(x());function v(){if(c.strictSchema===!1){u.logger.warn(w());return}throw new Error(w());function w(){return`unknown format "${i}" ignored in schema at path "${p}"`}}function b(w){let _=w instanceof RegExp?(0,Ve.regexpCode)(w):c.code.formats?(0,Ve._)`${c.code.formats}${(0,Ve.getProperty)(i)}`:void 0,T=r.scopeValue("formats",{key:i,ref:w,code:_});return typeof w=="object"&&!(w instanceof RegExp)?[w.type||"string",w.validate,(0,Ve._)`${T}.validate`]:["string",w,T]}function x(){if(typeof f=="object"&&!(f instanceof RegExp)&&f.async){if(!l.$async)throw new Error("async format in sync schema");return(0,Ve._)`await ${g}(${n})`}return typeof y=="function"?(0,Ve._)`${g}(${n})`:(0,Ve._)`${g}.test(${n})`}}}};Dy.default=_Y});var HE=S(Ly=>{"use strict";Object.defineProperty(Ly,"__esModule",{value:!0});var PY=BE(),EY=[PY.default];Ly.default=EY});var KE=S(Yi=>{"use strict";Object.defineProperty(Yi,"__esModule",{value:!0});Yi.contentVocabulary=Yi.metadataVocabulary=void 0;Yi.metadataVocabulary=["title","description","default","deprecated","readOnly","writeOnly","examples"];Yi.contentVocabulary=["contentMediaType","contentEncoding","contentSchema"]});var YE=S(Uy=>{"use strict";Object.defineProperty(Uy,"__esModule",{value:!0});var $Y=tE(),AY=hE(),TY=VE(),RY=HE(),GE=KE(),OY=[$Y.default,AY.default,(0,TY.default)(),RY.default,GE.metadataVocabulary,GE.contentVocabulary];Uy.default=OY});var QE=S(sl=>{"use strict";Object.defineProperty(sl,"__esModule",{value:!0});sl.DiscrError=void 0;var WE;(function(e){e.Tag="tag",e.Mapping="mapping"})(WE||(sl.DiscrError=WE={}))});var XE=S(Fy=>{"use strict";Object.defineProperty(Fy,"__esModule",{value:!0});var Wi=ee(),zy=QE(),JE=Kp(),kY=$a(),IY=ge(),CY={message:({params:{discrError:e,tagName:t}})=>e===zy.DiscrError.Tag?`tag "${t}" must be string`:`value of tag "${t}" must be in oneOf`,params:({params:{discrError:e,tag:t,tagName:r}})=>(0,Wi._)`{error: ${e}, tag: ${r}, tagValue: ${t}}`},qY={keyword:"discriminator",type:"object",schemaType:"object",error:CY,code(e){let{gen:t,data:r,schema:n,parentSchema:o,it:i}=e,{oneOf:s}=o;if(!i.opts.discriminator)throw new Error("discriminator: requires discriminator option");let a=n.propertyName;if(typeof a!="string")throw new Error("discriminator: requires propertyName");if(n.mapping)throw new Error("discriminator: mapping is not supported");if(!s)throw new Error("discriminator: requires oneOf keyword");let c=t.let("valid",!1),p=t.const("tag",(0,Wi._)`${r}${(0,Wi.getProperty)(a)}`);t.if((0,Wi._)`typeof ${p} == "string"`,()=>l(),()=>e.error(!1,{discrError:zy.DiscrError.Tag,tag:p,tagName:a})),e.ok(c);function l(){let d=m();t.if(!1);for(let f in d)t.elseIf((0,Wi._)`${p} === ${f}`),t.assign(c,u(d[f]));t.else(),e.error(!1,{discrError:zy.DiscrError.Mapping,tag:p,tagName:a}),t.endIf()}function u(d){let f=t.name("valid"),h=e.subschema({keyword:"oneOf",schemaProp:d},f);return e.mergeEvaluated(h,Wi.Name),f}function m(){var d;let f={},h=g(o),y=!0;for(let x=0;x<s.length;x++){let w=s[x];if(w?.$ref&&!(0,IY.schemaHasRulesButRef)(w,i.self.RULES)){let T=w.$ref;if(w=JE.resolveRef.call(i.self,i.schemaEnv.root,i.baseId,T),w instanceof JE.SchemaEnv&&(w=w.schema),w===void 0)throw new kY.default(i.opts.uriResolver,i.baseId,T)}let _=(d=w?.properties)===null||d===void 0?void 0:d[a];if(typeof _!="object")throw new Error(`discriminator: oneOf subschemas (or referenced schemas) must have "properties/${a}"`);y=y&&(h||g(w)),v(_,x)}if(!y)throw new Error(`discriminator: "${a}" must be required`);return f;function g({required:x}){return Array.isArray(x)&&x.includes(a)}function v(x,w){if(x.const)b(x.const,w);else if(x.enum)for(let _ of x.enum)b(_,w);else throw new Error(`discriminator: "properties/${a}" must have "const" or "enum"`)}function b(x,w){if(typeof x!="string"||x in f)throw new Error(`discriminator: "${a}" values must be unique strings`);f[x]=w}}}};Fy.default=qY});var ZE=S((Bie,NY)=>{NY.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var t$=S((Me,Vy)=>{"use strict";Object.defineProperty(Me,"__esModule",{value:!0});Me.MissingRefError=Me.ValidationError=Me.CodeGen=Me.Name=Me.nil=Me.stringify=Me.str=Me._=Me.KeywordCxt=Me.Ajv=void 0;var MY=WP(),jY=YE(),DY=XE(),e$=ZE(),LY=["/properties"],al="http://json-schema.org/draft-07/schema",Qi=class extends MY.default{_addVocabularies(){super._addVocabularies(),jY.default.forEach(t=>this.addVocabulary(t)),this.opts.discriminator&&this.addKeyword(DY.default)}_addDefaultMetaSchema(){if(super._addDefaultMetaSchema(),!this.opts.meta)return;let t=this.opts.$data?this.$dataMetaSchema(e$,LY):e$;this.addMetaSchema(t,al,!1),this.refs["http://json-schema.org/schema"]=al}defaultMeta(){return this.opts.defaultMeta=super.defaultMeta()||(this.getSchema(al)?al:void 0)}};Me.Ajv=Qi;Vy.exports=Me=Qi;Vy.exports.Ajv=Qi;Object.defineProperty(Me,"__esModule",{value:!0});Me.default=Qi;var UY=Ea();Object.defineProperty(Me,"KeywordCxt",{enumerable:!0,get:function(){return UY.KeywordCxt}});var Ji=ee();Object.defineProperty(Me,"_",{enumerable:!0,get:function(){return Ji._}});Object.defineProperty(Me,"str",{enumerable:!0,get:function(){return Ji.str}});Object.defineProperty(Me,"stringify",{enumerable:!0,get:function(){return Ji.stringify}});Object.defineProperty(Me,"nil",{enumerable:!0,get:function(){return Ji.nil}});Object.defineProperty(Me,"Name",{enumerable:!0,get:function(){return Ji.Name}});Object.defineProperty(Me,"CodeGen",{enumerable:!0,get:function(){return Ji.CodeGen}});var zY=Bp();Object.defineProperty(Me,"ValidationError",{enumerable:!0,get:function(){return zY.default}});var FY=$a();Object.defineProperty(Me,"MissingRefError",{enumerable:!0,get:function(){return FY.default}})});var r$=S(Xi=>{"use strict";Object.defineProperty(Xi,"__esModule",{value:!0});Xi.formatLimitDefinition=void 0;var VY=t$(),Sr=ee(),Bn=Sr.operators,cl={formatMaximum:{okStr:"<=",ok:Bn.LTE,fail:Bn.GT},formatMinimum:{okStr:">=",ok:Bn.GTE,fail:Bn.LT},formatExclusiveMaximum:{okStr:"<",ok:Bn.LT,fail:Bn.GTE},formatExclusiveMinimum:{okStr:">",ok:Bn.GT,fail:Bn.LTE}},BY={message:({keyword:e,schemaCode:t})=>(0,Sr.str)`should be ${cl[e].okStr} ${t}`,params:({keyword:e,schemaCode:t})=>(0,Sr._)`{comparison: ${cl[e].okStr}, limit: ${t}}`};Xi.formatLimitDefinition={keyword:Object.keys(cl),type:"string",schemaType:"string",$data:!0,error:BY,code(e){let{gen:t,data:r,schemaCode:n,keyword:o,it:i}=e,{opts:s,self:a}=i;if(!s.validateFormats)return;let c=new VY.KeywordCxt(i,a.RULES.all.format.definition,"format");c.$data?p():l();function p(){let m=t.scopeValue("formats",{ref:a.formats,code:s.code.formats}),d=t.const("fmt",(0,Sr._)`${m}[${c.schemaCode}]`);e.fail$data((0,Sr.or)((0,Sr._)`typeof ${d} != "object"`,(0,Sr._)`${d} instanceof RegExp`,(0,Sr._)`typeof ${d}.compare != "function"`,u(d)))}function l(){let m=c.schema,d=a.formats[m];if(!d||d===!0)return;if(typeof d!="object"||d instanceof RegExp||typeof d.compare!="function")throw new Error(`"${o}": format "${m}" does not define "compare" function`);let f=t.scopeValue("formats",{key:m,ref:d,code:s.code.formats?(0,Sr._)`${s.code.formats}${(0,Sr.getProperty)(m)}`:void 0});e.fail$data(u(f))}function u(m){return(0,Sr._)`${m}.compare(${r}, ${n}) ${cl[o].fail} 0`}},dependencies:["format"]};var HY=e=>(e.addKeyword(Xi.formatLimitDefinition),e);Xi.default=HY});var s$=S((La,i$)=>{"use strict";Object.defineProperty(La,"__esModule",{value:!0});var Zi=V_(),KY=r$(),By=ee(),n$=new By.Name("fullFormats"),GY=new By.Name("fastFormats"),Hy=(e,t={keywords:!0})=>{if(Array.isArray(t))return o$(e,t,Zi.fullFormats,n$),e;let[r,n]=t.mode==="fast"?[Zi.fastFormats,GY]:[Zi.fullFormats,n$],o=t.formats||Zi.formatNames;return o$(e,o,r,n),t.keywords&&(0,KY.default)(e),e};Hy.get=(e,t="full")=>{let n=(t==="fast"?Zi.fastFormats:Zi.fullFormats)[e];if(!n)throw new Error(`Unknown format "${e}"`);return n};function o$(e,t,r,n){var o,i;(o=(i=e.opts.code).formats)!==null&&o!==void 0||(i.formats=(0,By._)`require("ajv-formats/dist/formats").${n}`);for(let s of t)e.addFormat(s,r[s])}i$.exports=La=Hy;Object.defineProperty(La,"__esModule",{value:!0});La.default=Hy});var Va=S(Yr=>{"use strict";Object.defineProperty(Yr,"__esModule",{value:!0});var ns;(function(e){e[e.SCALAR=0]="SCALAR",e[e.MAPPING=1]="MAPPING",e[e.MAP=2]="MAP",e[e.SEQ=3]="SEQ",e[e.ANCHOR_REF=4]="ANCHOR_REF",e[e.INCLUDE_REF=5]="INCLUDE_REF"})(ns=Yr.Kind||(Yr.Kind={}));function kW(e,t){var r=t?t.endPosition:e.endPosition+1,n={key:e,value:t,startPosition:e.startPosition,endPosition:r,kind:ns.MAPPING,parent:null,errors:[]};return n}Yr.newMapping=kW;function IW(e,t,r,n){return{errors:[],referencesAnchor:e,value:n,startPosition:t,endPosition:r,kind:ns.ANCHOR_REF,parent:null}}Yr.newAnchorRef=IW;function CW(e){e===void 0&&(e="");var t={errors:[],startPosition:-1,endPosition:-1,value:""+e,kind:ns.SCALAR,parent:null,doubleQuoted:!1,rawValue:""+e};return typeof e!="string"&&(t.valueObject=e),t}Yr.newScalar=CW;function qA(){return{errors:[],startPosition:-1,endPosition:-1,items:[],kind:ns.SEQ,parent:null}}Yr.newItems=qA;function qW(){return qA()}Yr.newSeq=qW;function NW(e){return{errors:[],startPosition:-1,endPosition:-1,mappings:e||[],kind:ns.MAP,parent:null}}Yr.newMap=NW});var jo=S(Wn=>{"use strict";Object.defineProperty(Wn,"__esModule",{value:!0});function NA(e){return typeof e>"u"||e===null}Wn.isNothing=NA;function MW(e){return typeof e=="object"&&e!==null}Wn.isObject=MW;function jW(e){return Array.isArray(e)?e:NA(e)?[]:[e]}Wn.toArray=jW;function DW(e,t){var r,n,o,i;if(t)for(i=Object.keys(t),r=0,n=i.length;r<n;r+=1)o=i[r],e[o]=t[o];return e}Wn.extend=DW;function LW(e,t){var r="",n;for(n=0;n<t;n+=1)r+=e;return r}Wn.repeat=LW;function UW(e){return e===0&&Number.NEGATIVE_INFINITY===1/e}Wn.isNegativeZero=UW});var os=S((Rde,MA)=>{"use strict";var zW=(function(){function e(t,r,n){r===void 0&&(r=null),n===void 0&&(n=!1),this.name="YAMLException",this.reason=t,this.mark=r,this.message=this.toString(!1),this.isWarning=n}return e.isInstance=function(t){if(t!=null&&t.getClassIdentifier&&typeof t.getClassIdentifier=="function")for(var r=0,n=t.getClassIdentifier();r<n.length;r++){var o=n[r];if(o==e.CLASS_IDENTIFIER)return!0}return!1},e.prototype.getClassIdentifier=function(){var t=[];return t.concat(e.CLASS_IDENTIFIER)},e.prototype.toString=function(t){t===void 0&&(t=!1);var r;return r="JS-YAML: "+(this.reason||"(unknown reason)"),!t&&this.mark&&(r+=" "+this.mark.toString()),r},e.CLASS_IDENTIFIER="yaml-ast-parser.YAMLException",e})();MA.exports=zW});var LA=S((Ode,DA)=>{"use strict";var jA=jo(),FW=(function(){function e(t,r,n,o,i){this.name=t,this.buffer=r,this.position=n,this.line=o,this.column=i}return e.prototype.getSnippet=function(t,r){t===void 0&&(t=0),r===void 0&&(r=75);var n,o,i,s,a;if(!this.buffer)return null;for(t=t||4,r=r||75,n="",o=this.position;o>0&&`\0\r
|
|
22
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(o-1))===-1;)if(o-=1,this.position-o>r/2-1){n=" ... ",o+=5;break}for(i="",s=this.position;s<this.buffer.length&&`\0\r
|
|
23
|
-
\x85\u2028\u2029`.indexOf(this.buffer.charAt(s))===-1;)if(s+=1,s-this.position>r/2-1){i=" ... ",s-=5;break}return a=this.buffer.slice(o,s),jA.repeat(" ",t)+n+a+i+`
|
|
24
|
-
`+jA.repeat(" ",t+this.position-o+n.length)+"^"},e.prototype.toString=function(t){t===void 0&&(t=!0);var r,n="";return this.name&&(n+='in "'+this.name+'" '),n+="at line "+(this.line+1)+", column "+(this.column+1),t||(r=this.getSnippet(),r&&(n+=`:
|
|
25
|
-
`+r)),n},e})();DA.exports=FW});var ct=S(cg=>{"use strict";Object.defineProperty(cg,"__esModule",{value:!0});var UA=os(),VW=["kind","resolve","construct","instanceOf","predicate","represent","defaultStyle","styleAliases"],BW=["scalar","sequence","mapping"];function HW(e){var t={};return e!==null&&Object.keys(e).forEach(function(r){e[r].forEach(function(n){t[String(n)]=r})}),t}var KW=(function(){function e(t,r){if(r=r||{},Object.keys(r).forEach(function(n){if(VW.indexOf(n)===-1)throw new UA('Unknown option "'+n+'" is met in definition of "'+t+'" YAML type.')}),this.tag=t,this.kind=r.kind||null,this.resolve=r.resolve||function(){return!0},this.construct=r.construct||function(n){return n},this.instanceOf=r.instanceOf||null,this.predicate=r.predicate||null,this.represent=r.represent||null,this.defaultStyle=r.defaultStyle||null,this.styleAliases=HW(r.styleAliases||null),BW.indexOf(this.kind)===-1)throw new UA('Unknown kind "'+this.kind+'" is specified for "'+t+'" YAML type.')}return e})();cg.Type=KW});var is=S(lg=>{"use strict";Object.defineProperty(lg,"__esModule",{value:!0});var zA=jo(),Ul=os(),GW=ct();function pg(e,t,r){var n=[];return e.include.forEach(function(o){r=pg(o,t,r)}),e[t].forEach(function(o){r.forEach(function(i,s){i.tag===o.tag&&n.push(s)}),r.push(o)}),r.filter(function(o,i){return n.indexOf(i)===-1})}function YW(){var e={},t,r;function n(o){e[o.tag]=o}for(t=0,r=arguments.length;t<r;t+=1)arguments[t].forEach(n);return e}var WW=(function(){function e(t){this.include=t.include||[],this.implicit=t.implicit||[],this.explicit=t.explicit||[],this.implicit.forEach(function(r){if(r.loadKind&&r.loadKind!=="scalar")throw new Ul("There is a non-scalar type in the implicit list of a schema. Implicit resolving of such types is not supported.")}),this.compiledImplicit=pg(this,"implicit",[]),this.compiledExplicit=pg(this,"explicit",[]),this.compiledTypeMap=YW(this.compiledImplicit,this.compiledExplicit)}return e.DEFAULT=null,e.create=function(){var r,n;switch(arguments.length){case 1:r=e.DEFAULT,n=arguments[0];break;case 2:r=arguments[0],n=arguments[1];break;default:throw new Ul("Wrong number of arguments for Schema.create function")}if(r=zA.toArray(r),n=zA.toArray(n),!r.every(function(o){return o instanceof e}))throw new Ul("Specified list of super schemas (or a single Schema object) contains a non-Schema object.");if(!n.every(function(o){return o instanceof GW.Type}))throw new Ul("Specified list of YAML types (or a single Type object) contains a non-Type object.");return new e({include:r,explicit:n})},e})();lg.Schema=WW});var VA=S((Cde,FA)=>{"use strict";var QW=ct();FA.exports=new QW.Type("tag:yaml.org,2002:str",{kind:"scalar",construct:function(e){return e!==null?e:""}})});var HA=S((qde,BA)=>{"use strict";var JW=ct();BA.exports=new JW.Type("tag:yaml.org,2002:seq",{kind:"sequence",construct:function(e){return e!==null?e:[]}})});var GA=S((Nde,KA)=>{"use strict";var XW=ct();KA.exports=new XW.Type("tag:yaml.org,2002:map",{kind:"mapping",construct:function(e){return e!==null?e:{}}})});var WA=S((Mde,YA)=>{"use strict";var ZW=is();YA.exports=new ZW.Schema({explicit:[VA(),HA(),GA()]})});var JA=S((jde,QA)=>{"use strict";var eQ=ct();function tQ(e){if(e===null)return!0;var t=e.length;return t===1&&e==="~"||t===4&&(e==="null"||e==="Null"||e==="NULL")}function rQ(){return null}function nQ(e){return e===null}QA.exports=new eQ.Type("tag:yaml.org,2002:null",{kind:"scalar",resolve:tQ,construct:rQ,predicate:nQ,represent:{canonical:function(){return"~"},lowercase:function(){return"null"},uppercase:function(){return"NULL"},camelcase:function(){return"Null"}},defaultStyle:"lowercase"})});var ZA=S((Dde,XA)=>{"use strict";var oQ=ct();function iQ(e){if(e===null)return!1;var t=e.length;return t===4&&(e==="true"||e==="True"||e==="TRUE")||t===5&&(e==="false"||e==="False"||e==="FALSE")}function sQ(e){return e==="true"||e==="True"||e==="TRUE"}function aQ(e){return Object.prototype.toString.call(e)==="[object Boolean]"}XA.exports=new oQ.Type("tag:yaml.org,2002:bool",{kind:"scalar",resolve:iQ,construct:sQ,predicate:aQ,represent:{lowercase:function(e){return e?"true":"false"},uppercase:function(e){return e?"TRUE":"FALSE"},camelcase:function(e){return e?"True":"False"}},defaultStyle:"lowercase"})});var tT=S((Lde,eT)=>{"use strict";var cQ=jo(),pQ=ct();function lQ(e){return 48<=e&&e<=57||65<=e&&e<=70||97<=e&&e<=102}function uQ(e){return 48<=e&&e<=55}function dQ(e){return 48<=e&&e<=57}function fQ(e){if(e===null)return!1;var t=e.length,r=0,n=!1,o;if(!t)return!1;if(o=e[r],(o==="-"||o==="+")&&(o=e[++r]),o==="0"){if(r+1===t)return!0;if(o=e[++r],o==="b"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(o!=="0"&&o!=="1")return!1;n=!0}return n}if(o==="x"){for(r++;r<t;r++)if(o=e[r],o!=="_"){if(!lQ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(!uQ(e.charCodeAt(r)))return!1;n=!0}return n}for(;r<t;r++)if(o=e[r],o!=="_"){if(o===":")break;if(!dQ(e.charCodeAt(r)))return!1;n=!0}return n?o!==":"?!0:/^(:[0-5]?[0-9])+$/.test(e.slice(r)):!1}function mQ(e){var t=e,r=1,n,o,i=[];return t.indexOf("_")!==-1&&(t=t.replace(/_/g,"")),n=t[0],(n==="-"||n==="+")&&(n==="-"&&(r=-1),t=t.slice(1),n=t[0]),t==="0"?0:n==="0"?t[1]==="b"?r*parseInt(t.slice(2),2):t[1]==="x"?r*parseInt(t,16):r*parseInt(t,8):t.indexOf(":")!==-1?(t.split(":").forEach(function(s){i.unshift(parseInt(s,10))}),t=0,o=1,i.forEach(function(s){t+=s*o,o*=60}),r*t):r*parseInt(t,10)}function hQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&e%1===0&&!cQ.isNegativeZero(e)}eT.exports=new pQ.Type("tag:yaml.org,2002:int",{kind:"scalar",resolve:fQ,construct:mQ,predicate:hQ,represent:{binary:function(e){return"0b"+e.toString(2)},octal:function(e){return"0"+e.toString(8)},decimal:function(e){return e.toString(10)},hexadecimal:function(e){return"0x"+e.toString(16).toUpperCase()}},defaultStyle:"decimal",styleAliases:{binary:[2,"bin"],octal:[8,"oct"],decimal:[10,"dec"],hexadecimal:[16,"hex"]}})});var oT=S((Ude,nT)=>{"use strict";var rT=jo(),yQ=ct(),gQ=new RegExp("^(?:[-+]?(?:[0-9][0-9_]*)\\.[0-9_]*(?:[eE][-+][0-9]+)?|\\.[0-9_]+(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function bQ(e){if(e===null)return!1;var t,r,n,o;return!!gQ.test(e)}function vQ(e){var t,r,n,o;return t=e.replace(/_/g,"").toLowerCase(),r=t[0]==="-"?-1:1,o=[],0<="+-".indexOf(t[0])&&(t=t.slice(1)),t===".inf"?r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY:t===".nan"?NaN:0<=t.indexOf(":")?(t.split(":").forEach(function(i){o.unshift(parseFloat(i,10))}),t=0,n=1,o.forEach(function(i){t+=i*n,n*=60}),r*t):r*parseFloat(t,10)}function SQ(e,t){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(rT.isNegativeZero(e))return"-0.0";return e.toString(10)}function xQ(e){return Object.prototype.toString.call(e)==="[object Number]"&&(e%1!==0||rT.isNegativeZero(e))}nT.exports=new yQ.Type("tag:yaml.org,2002:float",{kind:"scalar",resolve:bQ,construct:vQ,predicate:xQ,represent:SQ,defaultStyle:"lowercase"})});var sT=S((zde,iT)=>{"use strict";var wQ=is();iT.exports=new wQ.Schema({include:[WA()],implicit:[JA(),ZA(),tT(),oT()]})});var cT=S((Fde,aT)=>{"use strict";var _Q=is();aT.exports=new _Q.Schema({include:[sT()]})});var uT=S((Vde,lT)=>{"use strict";var PQ=ct(),pT=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]))?))?)?$");function EQ(e){if(e===null)return!1;var t,r,n,o,i,s,a,c=0,p=null,l,u,m;return t=pT.exec(e),t!==null}function $Q(e){var t,r,n,o,i,s,a,c=0,p=null,l,u,m;if(t=pT.exec(e),t===null)throw new Error("Date resolve error");if(r=+t[1],n=+t[2]-1,o=+t[3],!t[4])return new Date(Date.UTC(r,n,o));if(i=+t[4],s=+t[5],a=+t[6],t[7]){for(c=t[7].slice(0,3);c.length<3;)c=c+"0";c=+c}return t[9]&&(l=+t[10],u=+(t[11]||0),p=(l*60+u)*6e4,t[9]==="-"&&(p=-p)),m=new Date(Date.UTC(r,n,o,i,s,a,c)),p&&m.setTime(m.getTime()-p),m}function AQ(e){return e.toISOString()}lT.exports=new PQ.Type("tag:yaml.org,2002:timestamp",{kind:"scalar",resolve:EQ,construct:$Q,instanceOf:Date,represent:AQ})});var fT=S((Bde,dT)=>{"use strict";var TQ=ct();function RQ(e){return e==="<<"||e===null}dT.exports=new TQ.Type("tag:yaml.org,2002:merge",{kind:"scalar",resolve:RQ})});var hT=S((Hde,mT)=>{"use strict";var zl=Zl("buffer").Buffer,OQ=ct(),ug=`ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=
|
|
26
|
-
\r`;function kQ(e){if(e===null)return!1;var t,r,n=0,o=0,i=e.length,s=ug;for(r=0;r<i;r++)if(t=s.indexOf(e.charAt(r)),!(t>64)){if(t<0)return!1;n+=6}return n%8===0}function IQ(e){var t,r,n,o=e.replace(/[\r\n=]/g,""),i=o.length,s=ug,a=0,c=[];for(r=0;r<i;r++)r%4===0&&r&&(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)),a=a<<6|s.indexOf(o.charAt(r));return n=i%4*6,n===0?(c.push(a>>16&255),c.push(a>>8&255),c.push(a&255)):n===18?(c.push(a>>10&255),c.push(a>>2&255)):n===12&&c.push(a>>4&255),zl?new zl(c):c}function CQ(e){var t="",r=0,n,o,i=e.length,s=ug;for(n=0;n<i;n++)n%3===0&&n&&(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]),r=(r<<8)+e[n];return o=i%3,o===0?(t+=s[r>>18&63],t+=s[r>>12&63],t+=s[r>>6&63],t+=s[r&63]):o===2?(t+=s[r>>10&63],t+=s[r>>4&63],t+=s[r<<2&63],t+=s[64]):o===1&&(t+=s[r>>2&63],t+=s[r<<4&63],t+=s[64],t+=s[64]),t}function qQ(e){return zl&&zl.isBuffer(e)}mT.exports=new OQ.Type("tag:yaml.org,2002:binary",{kind:"scalar",resolve:kQ,construct:IQ,predicate:qQ,represent:CQ})});var gT=S((Kde,yT)=>{"use strict";var NQ=ct(),MQ=Object.prototype.hasOwnProperty,jQ=Object.prototype.toString;function DQ(e){if(e===null)return!0;var t=[],r,n,o,i,s,a=e;for(r=0,n=a.length;r<n;r+=1){if(o=a[r],s=!1,jQ.call(o)!=="[object Object]")return!1;for(i in o)if(MQ.call(o,i))if(!s)s=!0;else return!1;if(!s)return!1;if(t.indexOf(i)===-1)t.push(i);else return!1}return!0}function LQ(e){return e!==null?e:[]}yT.exports=new NQ.Type("tag:yaml.org,2002:omap",{kind:"sequence",resolve:DQ,construct:LQ})});var vT=S((Gde,bT)=>{"use strict";var UQ=ct(),dg=Va(),zQ=Object.prototype.toString;function FQ(e){if(e===null)return!0;if(e.kind!=dg.Kind.SEQ)return!1;var t,r,n,o,i,s=e.items;for(t=0,r=s.length;t<r;t+=1)if(n=s[t],zQ.call(n)!=="[object Object]"||!Array.isArray(n.mappings)||n.mappings.length!==1)return!1;return!0}function VQ(e){if(e===null||!Array.isArray(e.items))return[];var t,r,n,o,i=e.items;for(o=dg.newItems(),o.parent=e.parent,o.startPosition=e.startPosition,o.endPosition=e.endPosition,t=0,r=i.length;t<r;t+=1){var s=i[t],a=s.mappings[0],c=dg.newItems();c.parent=o,c.startPosition=a.key.startPosition,c.endPosition=a.value.startPosition,a.key.parent=c,a.value.parent=c,c.items=[a.key,a.value],o.items.push(c)}return o}bT.exports=new UQ.Type("tag:yaml.org,2002:pairs",{kind:"sequence",resolve:FQ,construct:VQ})});var xT=S((Yde,ST)=>{"use strict";var BQ=ct(),HQ=Va();function KQ(e){return e===null?!0:e.kind==HQ.Kind.MAP}function GQ(e){return e!==null?e:{}}ST.exports=new BQ.Type("tag:yaml.org,2002:set",{kind:"mapping",resolve:KQ,construct:GQ})});var Fl=S((Wde,wT)=>{"use strict";var YQ=is(),WQ=new YQ.Schema({include:[cT()],implicit:[uT(),fT()],explicit:[hT(),gT(),vT(),xT()]});wT.exports=WQ});var PT=S((Qde,_T)=>{"use strict";var QQ=ct();function JQ(){return!0}function XQ(){}function ZQ(){return""}function e6(e){return typeof e>"u"}_T.exports=new QQ.Type("tag:yaml.org,2002:js/undefined",{kind:"scalar",resolve:JQ,construct:XQ,predicate:e6,represent:ZQ})});var $T=S((Jde,ET)=>{"use strict";var t6=ct();function r6(e){if(e===null||e.length===0)return!1;var t=e,r=/\/([gim]*)$/.exec(e),n="";if(t[0]==="/"){if(r&&(n=r[1]),n.length>3||t[t.length-n.length-1]!=="/")return!1;t=t.slice(1,t.length-n.length-1)}try{var o=new RegExp(t,n);return!0}catch{return!1}}function n6(e){var t=e,r=/\/([gim]*)$/.exec(e),n="";return t[0]==="/"&&(r&&(n=r[1]),t=t.slice(1,t.length-n.length-1)),new RegExp(t,n)}function o6(e){var t="/"+e.source+"/";return e.global&&(t+="g"),e.multiline&&(t+="m"),e.ignoreCase&&(t+="i"),t}function i6(e){return Object.prototype.toString.call(e)==="[object RegExp]"}ET.exports=new t6.Type("tag:yaml.org,2002:js/regexp",{kind:"scalar",resolve:r6,construct:n6,predicate:i6,represent:o6})});var fg=S((Xde,RT)=>{"use strict";var AT=is(),TT=new AT.Schema({include:[Fl()],explicit:[PT(),$T()]});AT.Schema.DEFAULT=TT;RT.exports=TT});var FT=S((ps,Ha)=>{"use strict";Object.defineProperty(ps,"__esModule",{value:!0});var Bt=Va(),Qn=jo(),Sg=os(),xg=LA(),CT=Fl(),s6=fg(),Hl=Object.prototype.hasOwnProperty,Vl=1,qT=2,NT=3,Bl=4,mg=1,a6=2,OT=3,c6=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,p6=/[\x85\u2028\u2029]/,l6=/[,\[\]\{\}]/,MT=/^(?:!|!!|![a-z\-]+!)$/i,jT=/^(?:!|[^,\[\]\{\}])(?:%[0-9a-f]{2}|[0-9a-z\-#;\/\?:@&=\+\$,_\.!~\*'\(\)\[\]])*$/i;function xr(e){return e===10||e===13}function Do(e){return e===9||e===32}function jt(e){return e===9||e===32||e===10||e===13}function ss(e){return e===44||e===91||e===93||e===123||e===125}function u6(e){var t;return 48<=e&&e<=57?e-48:(t=e|32,97<=t&&t<=102?t-97+10:-1)}function d6(e){return e===120?2:e===117?4:e===85?8:0}function f6(e){return 48<=e&&e<=57?e-48:-1}function m6(e){return e===48?"\0":e===97?"\x07":e===98?"\b":e===116||e===9?" ":e===110?`
|
|
27
|
-
`:e===118?"\v":e===102?"\f":e===114?"\r":e===101?"\x1B":e===32?" ":e===34?'"':e===47?"/":e===92?"\\":e===78?"\x85":e===95?"\xA0":e===76?"\u2028":e===80?"\u2029":""}function h6(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}var hg=new Array(256),yg=new Array(256),DT=new Array(256),gg=new Array(256);for(ir=0;ir<256;ir++)gg[ir]=yg[ir]=m6(ir),hg[ir]=yg[ir]?1:0,DT[ir]=1,hg[ir]||(gg[ir]="\\"+String.fromCharCode(ir));var ir,y6=(function(){function e(t,r){this.errorMap={},this.errors=[],this.lines=[],this.input=t,this.filename=r.filename||null,this.schema=r.schema||s6,this.onWarning=r.onWarning||null,this.legacy=r.legacy||!1,this.allowAnyEscape=r.allowAnyEscape||!1,this.ignoreDuplicateKeys=r.ignoreDuplicateKeys||!1,this.implicitTypes=this.schema.compiledImplicit,this.typeMap=this.schema.compiledTypeMap,this.length=t.length,this.position=0,this.line=0,this.lineStart=0,this.lineIndent=0,this.documents=[]}return e})();function wg(e,t,r){return r===void 0&&(r=!1),new Sg(t,new xg(e.filename,e.input,e.position,e.line,e.position-e.lineStart),r)}function bg(e,t,r,n,o){n===void 0&&(n=!1),o===void 0&&(o=!1);var i=g6(e,t);if(i){var s=r+t;if(!e.errorMap[s]){var a=new xg(e.filename,e.input,t,i.line,t-i.start);o&&(a.toLineEnd=!0);var c=new Sg(r,a,n);e.errors.push(c)}}}function B(e,t){var r=wg(e,t),n=r.message+r.mark.position;if(!e.errorMap[n]){e.errors.push(r),e.errorMap[n]=1;for(var o=e.position;;){if(e.position>=e.input.length-1)return;var i=e.input.charAt(e.position);if(i==`
|
|
28
|
-
`){e.position--,e.position==o&&(e.position+=1);return}if(i=="\r"){e.position--,e.position==o&&(e.position+=1);return}e.position++}}}function vg(e,t){var r=wg(e,t);e.onWarning&&e.onWarning.call(null,r)}var kT={YAML:function(t,r,n){var o,i,s;t.version!==null&&B(t,"duplication of %YAML directive"),n.length!==1&&B(t,"YAML directive accepts exactly one argument"),o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]),o===null&&B(t,"ill-formed argument of the YAML directive"),i=parseInt(o[1],10),s=parseInt(o[2],10),i!==1&&B(t,"found incompatible YAML document (version 1.2 is required)"),t.version=n[0],t.checkLineBreaks=s<2,s!==2&&B(t,"found incompatible YAML document (version 1.2 is required)")},TAG:function(t,r,n){var o,i;n.length!==2&&B(t,"TAG directive accepts exactly two arguments"),o=n[0],i=n[1],MT.test(o)||B(t,"ill-formed tag handle (first argument) of the TAG directive"),Hl.call(t.tagMap,o)&&B(t,'there is a previously declared suffix for "'+o+'" tag handle'),jT.test(i)||B(t,"ill-formed tag prefix (second argument) of the TAG directive"),t.tagMap[o]=i}};function Jn(e,t,r,n){var o,i,s,a,c=e.result;if(c.startPosition==-1&&(c.startPosition=t),t<=r){if(a=e.input.slice(t,r),n)for(o=0,i=a.length;o<i;o+=1)s=a.charCodeAt(o),s===9||32<=s&&s<=1114111||B(e,"expected valid JSON character");else c6.test(a)&&B(e,"the stream contains non-printable characters");c.value+=a,c.endPosition=r}}function as(e,t,r,n,o){var i,s;if(n!=null){t===null&&(t={startPosition:n.startPosition,endPosition:o.endPosition,parent:null,errors:[],mappings:[],kind:Bt.Kind.MAP});var a=Bt.newMapping(n,o);return a.parent=t,n.parent=a,o!=null&&(o.parent=a),!e.ignoreDuplicateKeys&&t.mappings.forEach(function(c){c.key&&c.key.value===(a.key&&a.key.value)&&(bg(e,a.key.startPosition,"duplicate key"),bg(e,c.key.startPosition,"duplicate key"))}),t.mappings.push(a),t.endPosition=o?o.endPosition:n.endPosition+1,t}}function _g(e){var t;t=e.input.charCodeAt(e.position),t===10?e.position++:t===13?(e.position++,e.input.charCodeAt(e.position)===10&&e.position++):B(e,"a line break is expected"),e.line+=1,e.lineStart=e.position,e.lines.push({start:e.lineStart,line:e.line})}function g6(e,t){for(var r,n=0;n<e.lines.length&&!(e.lines[n].start>t);n++)r=e.lines[n];return r||{start:0,line:0}}function He(e,t,r){for(var n=0,o=e.input.charCodeAt(e.position);o!==0;){for(;Do(o);)o===9&&e.errors.push(wg(e,"Using tabs can lead to unpredictable results",!0)),o=e.input.charCodeAt(++e.position);if(t&&o===35)do o=e.input.charCodeAt(++e.position);while(o!==10&&o!==13&&o!==0);if(xr(o))for(_g(e),o=e.input.charCodeAt(e.position),n++,e.lineIndent=0;o===32;)e.lineIndent++,o=e.input.charCodeAt(++e.position);else break}return r!==-1&&n!==0&&e.lineIndent<r&&vg(e,"deficient indentation"),n}function Ba(e){var t=e.position,r;return r=e.input.charCodeAt(t),!!((r===45||r===46)&&e.input.charCodeAt(t+1)===r&&e.input.charCodeAt(t+2)===r&&(t+=3,r=e.input.charCodeAt(t),r===0||jt(r)))}function Pg(e,t,r){r===1?t.value+=" ":r>1&&(t.value+=Qn.repeat(`
|
|
29
|
-
`,r-1))}function b6(e,t,r){var n,o,i,s,a,c,p,l,u=e.kind,m=e.result,d,f=Bt.newScalar();if(f.plainScalar=!0,e.result=f,d=e.input.charCodeAt(e.position),jt(d)||ss(d)||d===35||d===38||d===42||d===33||d===124||d===62||d===39||d===34||d===37||d===64||d===96||(d===63||d===45)&&(o=e.input.charCodeAt(e.position+1),jt(o)||r&&ss(o)))return!1;for(e.kind="scalar",i=s=e.position,a=!1;d!==0;){if(d===58){if(o=e.input.charCodeAt(e.position+1),jt(o)||r&&ss(o))break}else if(d===35){if(n=e.input.charCodeAt(e.position-1),jt(n))break}else{if(e.position===e.lineStart&&Ba(e)||r&&ss(d))break;if(xr(d))if(c=e.line,p=e.lineStart,l=e.lineIndent,He(e,!1,-1),e.lineIndent>=t){a=!0,d=e.input.charCodeAt(e.position);continue}else{e.position=s,e.line=c,e.lineStart=p,e.lineIndent=l;break}}if(a&&(Jn(e,i,s,!1),Pg(e,f,e.line-c),i=s=e.position,a=!1),Do(d)||(s=e.position+1),d=e.input.charCodeAt(++e.position),e.position>=e.input.length)return!1}return Jn(e,i,s,!1),e.result.startPosition!=-1?(f.rawValue=e.input.substring(f.startPosition,f.endPosition),!0):(e.kind=u,e.result=m,!1)}function v6(e,t){var r,n,o;if(r=e.input.charCodeAt(e.position),r!==39)return!1;var i=Bt.newScalar();for(i.singleQuoted=!0,e.kind="scalar",e.result=i,i.startPosition=e.position,e.position++,n=o=e.position;(r=e.input.charCodeAt(e.position))!==0;)if(r===39)if(Jn(e,n,e.position,!0),r=e.input.charCodeAt(++e.position),i.endPosition=e.position,r===39)n=o=e.position,e.position++;else return!0;else xr(r)?(Jn(e,n,o,!0),Pg(e,i,He(e,!1,t)),n=o=e.position):e.position===e.lineStart&&Ba(e)?B(e,"unexpected end of the document within a single quoted scalar"):(e.position++,o=e.position,i.endPosition=e.position);B(e,"unexpected end of the stream within a single quoted scalar")}function S6(e,t){var r,n,o,i,s,a,c;if(c=e.input.charCodeAt(e.position),c!==34)return!1;e.kind="scalar";var p=Bt.newScalar();for(p.doubleQuoted=!0,e.result=p,p.startPosition=e.position,e.position++,r=n=e.position;(c=e.input.charCodeAt(e.position))!==0;){if(c===34)return Jn(e,r,e.position,!0),e.position++,p.endPosition=e.position,p.rawValue=e.input.substring(p.startPosition,p.endPosition),!0;if(c===92){if(Jn(e,r,e.position,!0),c=e.input.charCodeAt(++e.position),xr(c))He(e,!1,t);else if(c<256&&(e.allowAnyEscape?DT[c]:hg[c]))p.value+=e.allowAnyEscape?gg[c]:yg[c],e.position++;else if((s=d6(c))>0){for(o=s,i=0;o>0;o--)c=e.input.charCodeAt(++e.position),(s=u6(c))>=0?i=(i<<4)+s:B(e,"expected hexadecimal character");p.value+=h6(i),e.position++}else B(e,"unknown escape sequence");r=n=e.position}else xr(c)?(Jn(e,r,n,!0),Pg(e,p,He(e,!1,t)),r=n=e.position):e.position===e.lineStart&&Ba(e)?B(e,"unexpected end of the document within a double quoted scalar"):(e.position++,n=e.position)}B(e,"unexpected end of the stream within a double quoted scalar")}function x6(e,t){var r=!0,n,o=e.tag,i,s=e.anchor,a,c,p,l,u,m,d,f,h;if(h=e.input.charCodeAt(e.position),h===91)c=93,u=!1,i=Bt.newItems(),i.startPosition=e.position;else if(h===123)c=125,u=!0,i=Bt.newMap(),i.startPosition=e.position;else return!1;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),h=e.input.charCodeAt(++e.position);h!==0;){if(He(e,!0,t),h=e.input.charCodeAt(e.position),h===c)return e.position++,e.tag=o,e.anchor=s,e.kind=u?"mapping":"sequence",e.result=i,i.endPosition=e.position,!0;if(!r){var y=e.position;B(e,"missed comma between flow collection entries"),e.position=y+1}if(d=m=f=null,p=l=!1,h===63&&(a=e.input.charCodeAt(e.position+1),jt(a)&&(p=l=!0,e.position++,He(e,!0,t))),n=e.line,cs(e,t,Vl,!1,!0),d=e.tag,m=e.result,He(e,!0,t),h=e.input.charCodeAt(e.position),(l||e.line===n)&&h===58&&(p=!0,h=e.input.charCodeAt(++e.position),He(e,!0,t),cs(e,t,Vl,!1,!0),f=e.result),u)as(e,i,d,m,f);else if(p){var g=as(e,null,d,m,f);g.parent=i,i.items.push(g)}else m&&(m.parent=i),i.items.push(m);i.endPosition=e.position+1,He(e,!0,t),h=e.input.charCodeAt(e.position),h===44?(r=!0,h=e.input.charCodeAt(++e.position)):r=!1}B(e,"unexpected end of the stream within a flow collection")}function w6(e,t){var r,n,o=mg,i=!1,s=t,a=0,c=!1,p,l;if(l=e.input.charCodeAt(e.position),l===124)n=!1;else if(l===62)n=!0;else return!1;var u=Bt.newScalar();for(e.kind="scalar",e.result=u,u.startPosition=e.position;l!==0;)if(l=e.input.charCodeAt(++e.position),l===43||l===45)mg===o?o=l===43?OT:a6:B(e,"repeat of a chomping mode identifier");else if((p=f6(l))>=0)p===0?B(e,"bad explicit indentation width of a block scalar; it cannot be less than one"):i?B(e,"repeat of an indentation width identifier"):(s=t+p-1,i=!0);else break;if(Do(l)){do l=e.input.charCodeAt(++e.position);while(Do(l));if(l===35)do l=e.input.charCodeAt(++e.position);while(!xr(l)&&l!==0)}for(;l!==0;){for(_g(e),e.lineIndent=0,l=e.input.charCodeAt(e.position);(!i||e.lineIndent<s)&&l===32;)e.lineIndent++,l=e.input.charCodeAt(++e.position);if(!i&&e.lineIndent>s&&(s=e.lineIndent),xr(l)){a++;continue}if(e.lineIndent<s){o===OT?u.value+=Qn.repeat(`
|
|
30
|
-
`,a):o===mg&&i&&(u.value+=`
|
|
31
|
-
`);break}for(n?Do(l)?(c=!0,u.value+=Qn.repeat(`
|
|
32
|
-
`,a+1)):c?(c=!1,u.value+=Qn.repeat(`
|
|
33
|
-
`,a+1)):a===0?i&&(u.value+=" "):u.value+=Qn.repeat(`
|
|
34
|
-
`,a):i&&(u.value+=Qn.repeat(`
|
|
35
|
-
`,a+1)),i=!0,a=0,r=e.position;!xr(l)&&l!==0;)l=e.input.charCodeAt(++e.position);Jn(e,r,e.position,!1)}u.endPosition=e.position;for(var m=e.position-1,d=!1;;){var f=e.input[m];if(f=="\r"||f==`
|
|
36
|
-
`){d&&m--;break}if(f!=" "&&f!=" ")break;m--}return u.endPosition=m,u.rawValue=e.input.substring(u.startPosition,u.endPosition),!0}function IT(e,t){var r,n=e.tag,o=e.anchor,i=Bt.newItems(),s,a=!1,c;for(e.anchor!==null&&(i.anchorId=e.anchor,e.anchorMap[e.anchor]=i),i.startPosition=e.position,c=e.input.charCodeAt(e.position);c!==0&&!(c!==45||(s=e.input.charCodeAt(e.position+1),!jt(s)));){if(a=!0,e.position++,He(e,!0,-1)&&e.lineIndent<=t){i.items.push(null),c=e.input.charCodeAt(e.position);continue}if(r=e.line,cs(e,t,NT,!1,!0),e.result&&(e.result.parent=i,i.items.push(e.result)),He(e,!0,-1),c=e.input.charCodeAt(e.position),(e.line===r||e.lineIndent>t)&&c!==0)B(e,"bad indentation of a sequence entry");else if(e.lineIndent<t)break}return i.endPosition=e.position,a?(e.tag=n,e.anchor=o,e.kind="sequence",e.result=i,i.endPosition=e.position,!0):!1}function _6(e,t,r){var n,o,i,s=e.tag,a=e.anchor,c=Bt.newMap(),p=null,l=null,u=null,m=!1,d=!1,f;for(c.startPosition=e.position,e.anchor!==null&&(c.anchorId=e.anchor,e.anchorMap[e.anchor]=c),f=e.input.charCodeAt(e.position);f!==0;){if(n=e.input.charCodeAt(e.position+1),i=e.line,(f===63||f===58)&&jt(n))f===63?(m&&(as(e,c,p,l,null),p=l=u=null),d=!0,m=!0,o=!0):m?(m=!1,o=!0):B(e,"incomplete explicit mapping pair; a key node is missed"),e.position+=1,f=n;else if(cs(e,r,qT,!1,!0))if(e.line===i){for(f=e.input.charCodeAt(e.position);Do(f);)f=e.input.charCodeAt(++e.position);if(f===58)f=e.input.charCodeAt(++e.position),jt(f)||B(e,"a whitespace character is expected after the key-value separator within a block mapping"),m&&(as(e,c,p,l,null),p=l=u=null),d=!0,m=!1,o=!1,p=e.tag,l=e.result;else{if(e.position==e.lineStart&&Ba(e))break;if(d)B(e,"can not read an implicit mapping pair; a colon is missed");else return e.tag=s,e.anchor=a,!0}}else if(d){for(B(e,"can not read a block mapping entry; a multiline key may not be an implicit key");e.position>0;)if(f=e.input.charCodeAt(--e.position),xr(f)){e.position++;break}}else return e.tag=s,e.anchor=a,!0;else break;if((e.line===i||e.lineIndent>t)&&(cs(e,t,Bl,!0,o)&&(m?l=e.result:u=e.result),m||(as(e,c,p,l,u),p=l=u=null),He(e,!0,-1),f=e.input.charCodeAt(e.position)),e.lineIndent>t&&f!==0)B(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return m&&as(e,c,p,l,null),d&&(e.tag=s,e.anchor=a,e.kind="mapping",e.result=c),d}function P6(e){var t,r=!1,n=!1,o,i,s;if(s=e.input.charCodeAt(e.position),s!==33)return!1;if(e.tag!==null&&B(e,"duplication of a tag property"),s=e.input.charCodeAt(++e.position),s===60?(r=!0,s=e.input.charCodeAt(++e.position)):s===33?(n=!0,o="!!",s=e.input.charCodeAt(++e.position)):o="!",t=e.position,r){do s=e.input.charCodeAt(++e.position);while(s!==0&&s!==62);e.position<e.length?(i=e.input.slice(t,e.position),s=e.input.charCodeAt(++e.position)):B(e,"unexpected end of the stream within a verbatim tag")}else{for(;s!==0&&!jt(s);)s===33&&(n?B(e,"tag suffix cannot contain exclamation marks"):(o=e.input.slice(t-1,e.position+1),MT.test(o)||B(e,"named tag handle cannot contain such characters"),n=!0,t=e.position+1)),s=e.input.charCodeAt(++e.position);i=e.input.slice(t,e.position),l6.test(i)&&B(e,"tag suffix cannot contain flow indicator characters")}return i&&!jT.test(i)&&B(e,"tag name cannot contain such characters: "+i),r?e.tag=i:Hl.call(e.tagMap,o)?e.tag=e.tagMap[o]+i:o==="!"?e.tag="!"+i:o==="!!"?e.tag="tag:yaml.org,2002:"+i:B(e,'undeclared tag handle "'+o+'"'),!0}function E6(e){var t,r;if(r=e.input.charCodeAt(e.position),r!==38)return!1;for(e.anchor!==null&&B(e,"duplication of an anchor property"),r=e.input.charCodeAt(++e.position),t=e.position;r!==0&&!jt(r)&&!ss(r);)r=e.input.charCodeAt(++e.position);return e.position===t&&B(e,"name of an anchor node must contain at least one character"),e.anchor=e.input.slice(t,e.position),!0}function $6(e){var t,r,n=e.length,o=e.input,i;if(i=e.input.charCodeAt(e.position),i!==42)return!1;for(i=e.input.charCodeAt(++e.position),t=e.position;i!==0&&!jt(i)&&!ss(i);)i=e.input.charCodeAt(++e.position);return e.position<=t&&(B(e,"name of an alias node must contain at least one character"),e.position=t+1),r=e.input.slice(t,e.position),e.anchorMap.hasOwnProperty(r)||(B(e,'unidentified alias "'+r+'"'),e.position<=t&&(e.position=t+1)),e.result=Bt.newAnchorRef(r,t,e.position,e.anchorMap[r]),He(e,!0,-1),!0}function cs(e,t,r,n,o){var i,s,a,c=1,p=!1,l=!1,u,m,d,f,h,y;e.tag=null,e.anchor=null,e.kind=null,e.result=null,i=s=a=Bl===r||NT===r,n&&He(e,!0,-1)&&(p=!0,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1));var g=e.position,v=e.position-e.lineStart;if(c===1)for(;P6(e)||E6(e);)He(e,!0,-1)?(p=!0,a=i,e.lineIndent>t?c=1:e.lineIndent===t?c=0:e.lineIndent<t&&(c=-1)):a=!1;if(a&&(a=p||o),(c===1||Bl===r)&&(Vl===r||qT===r?f=t:f=t+1,h=e.position-e.lineStart,c===1?a&&(IT(e,h)||_6(e,h,f))||x6(e,f)?l=!0:(s&&w6(e,f)||v6(e,f)||S6(e,f)?l=!0:$6(e)?(l=!0,(e.tag!==null||e.anchor!==null)&&B(e,"alias node should not have any properties")):b6(e,f,Vl===r)&&(l=!0,e.tag===null&&(e.tag="?")),e.anchor!==null&&(e.anchorMap[e.anchor]=e.result,e.result.anchorId=e.anchor)):c===0&&(l=a&&IT(e,h))),e.tag!==null&&e.tag!=="!")if(e.tag=="!include")e.result||(e.result=Bt.newScalar(),e.result.startPosition=e.position,e.result.endPosition=e.position,B(e,"!include without value")),e.result.kind=Bt.Kind.INCLUDE_REF;else if(e.tag==="?")for(u=0,m=e.implicitTypes.length;u<m;u+=1){d=e.implicitTypes[u];var b=e.result.value;if(d.resolve(b)){e.result.valueObject=d.construct(e.result.value),e.tag=d.tag,e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result);break}}else Hl.call(e.typeMap,e.tag)?(d=e.typeMap[e.tag],e.result!==null&&d.kind!==e.kind&&B(e,"unacceptable node kind for !<"+e.tag+'> tag; it should be "'+d.kind+'", not "'+e.kind+'"'),d.resolve(e.result)?(e.result=d.construct(e.result),e.anchor!==null&&(e.result.anchorId=e.anchor,e.anchorMap[e.anchor]=e.result)):B(e,"cannot resolve a node with !<"+e.tag+"> explicit tag")):bg(e,g,"unknown tag <"+e.tag+">",!1,!0);return e.tag!==null||e.anchor!==null||l}function A6(e){var t=e.position,r,n,o,i=!1,s;for(e.version=null,e.checkLineBreaks=e.legacy,e.tagMap={},e.anchorMap={};(s=e.input.charCodeAt(e.position))!==0&&(He(e,!0,-1),s=e.input.charCodeAt(e.position),!(e.lineIndent>0||s!==37));){for(i=!0,s=e.input.charCodeAt(++e.position),r=e.position;s!==0&&!jt(s);)s=e.input.charCodeAt(++e.position);for(n=e.input.slice(r,e.position),o=[],n.length<1&&B(e,"directive name must not be less than one character in length");s!==0;){for(;Do(s);)s=e.input.charCodeAt(++e.position);if(s===35){do s=e.input.charCodeAt(++e.position);while(s!==0&&!xr(s));break}if(xr(s))break;for(r=e.position;s!==0&&!jt(s);)s=e.input.charCodeAt(++e.position);o.push(e.input.slice(r,e.position))}s!==0&&_g(e),Hl.call(kT,n)?kT[n](e,n,o):(vg(e,'unknown document directive "'+n+'"'),e.position++)}if(He(e,!0,-1),e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45?(e.position+=3,He(e,!0,-1)):i&&B(e,"directives end mark is expected"),cs(e,e.lineIndent-1,Bl,!1,!0),He(e,!0,-1),e.checkLineBreaks&&p6.test(e.input.slice(t,e.position))&&vg(e,"non-ASCII line breaks are interpreted as content"),e.documents.push(e.result),e.position===e.lineStart&&Ba(e)){e.input.charCodeAt(e.position)===46&&(e.position+=3,He(e,!0,-1));return}if(e.position<e.length-1)B(e,"end of the stream or a document separator is expected");else return}function LT(e,t){e=String(e),t=t||{};var r=e.length;r!==0&&(e.charCodeAt(r-1)!==10&&e.charCodeAt(r-1)!==13&&(e+=`
|
|
37
|
-
`),e.charCodeAt(0)===65279&&(e=e.slice(1)));var n=new y6(e,t);for(n.input+="\0";n.input.charCodeAt(n.position)===32;)n.lineIndent+=1,n.position+=1;for(;n.position<n.length-1;){var o=n.position;if(A6(n),n.position<=o)for(;n.position<n.length-1;n.position++){var i=n.input.charAt(n.position);if(i==`
|
|
38
|
-
`)break}}var s=n.documents,a=s.length;a>0&&(s[a-1].endPosition=r);for(var c=0,p=s;c<p.length;c++){var l=p[c];l.errors=n.errors,l.startPosition>l.endPosition&&(l.startPosition=l.endPosition)}return s}function Eg(e,t,r){r===void 0&&(r={});var n=LT(e,r),o,i;for(o=0,i=n.length;o<i;o+=1)t(n[o])}ps.loadAll=Eg;function $g(e,t){t===void 0&&(t={});var r=LT(e,t),n,o;if(r.length!==0){if(r.length===1)return r[0];var i=new Sg("expected a single document in the stream, but found more");return i.mark=new xg("","",0,0,0),i.mark.position=r[0].endPosition,r[0].errors.push(i),r[0]}}ps.load=$g;function UT(e,t,r){r===void 0&&(r={}),Eg(e,t,Qn.extend({schema:CT},r))}ps.safeLoadAll=UT;function zT(e,t){return t===void 0&&(t={}),$g(e,Qn.extend({schema:CT},t))}ps.safeLoad=zT;Ha.exports.loadAll=Eg;Ha.exports.load=$g;Ha.exports.safeLoadAll=UT;Ha.exports.safeLoad=zT});var WT=S(Gl=>{"use strict";Object.defineProperty(Gl,"__esModule",{value:!0});var Ka=jo(),Ig=os(),T6=fg(),R6=Fl(),Cg=Object.prototype.toString,KT=Object.prototype.hasOwnProperty,O6=9,Lo=10,k6=13,Ag=32,I6=33,Tg=34,C6=35,q6=37,N6=38,Rg=39,M6=42,j6=44,D6=45,L6=58,U6=62,z6=63,F6=64,V6=91,B6=93,H6=96,K6=123,G6=124,Y6=125,Ze={};Ze[0]="\\0";Ze[7]="\\a";Ze[8]="\\b";Ze[9]="\\t";Ze[10]="\\n";Ze[11]="\\v";Ze[12]="\\f";Ze[13]="\\r";Ze[27]="\\e";Ze[34]='\\"';Ze[92]="\\\\";Ze[133]="\\N";Ze[160]="\\_";Ze[8232]="\\L";Ze[8233]="\\P";var W6=["y","Y","yes","Yes","YES","on","On","ON","n","N","no","No","NO","off","Off","OFF"];function Q6(e,t){var r,n,o,i,s,a,c;if(t===null)return{};for(r={},n=Object.keys(t),o=0,i=n.length;o<i;o+=1)s=n[o],a=String(t[s]),s.slice(0,2)==="!!"&&(s="tag:yaml.org,2002:"+s.slice(2)),c=e.compiledTypeMap[s],c&&KT.call(c.styleAliases,a)&&(a=c.styleAliases[a]),r[s]=a;return r}function J6(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)r="U",n=8;else throw new Ig("code point within a string may not be greater than 0xFFFFFFFF");return"\\"+r+Ka.repeat("0",n-t.length)+t}function X6(e){this.schema=e.schema||T6,this.indent=Math.max(1,e.indent||2),this.skipInvalid=e.skipInvalid||!1,this.flowLevel=Ka.isNothing(e.flowLevel)?-1:e.flowLevel,this.styleMap=Q6(this.schema,e.styles||null),this.implicitTypes=this.schema.compiledImplicit,this.explicitTypes=this.schema.compiledExplicit,this.tag=null,this.result="",this.duplicates=[],this.usedDuplicates=null}function VT(e,t){for(var r=Ka.repeat(" ",t),n=0,o=-1,i="",s,a=e.length;n<a;)o=e.indexOf(`
|
|
39
|
-
`,n),o===-1?(s=e.slice(n),n=a):(s=e.slice(n,o+1),n=o+1),s.length&&s!==`
|
|
40
|
-
`&&(i+=r),i+=s;return i}function Og(e,t){return`
|
|
41
|
-
`+Ka.repeat(" ",e.indent*t)}function Z6(e,t){var r,n,o;for(r=0,n=e.implicitTypes.length;r<n;r+=1)if(o=e.implicitTypes[r],o.resolve(t))return!0;return!1}function Kl(e){this.source=e,this.result="",this.checkpoint=0}Kl.prototype.takeUpTo=function(e){var t;if(e<this.checkpoint)throw t=new Error("position should be > checkpoint"),t.position=e,t.checkpoint=this.checkpoint,t;return this.result+=this.source.slice(this.checkpoint,e),this.checkpoint=e,this};Kl.prototype.escapeChar=function(){var e,t;return e=this.source.charCodeAt(this.checkpoint),t=Ze[e]||J6(e),this.result+=t,this.checkpoint+=1,this};Kl.prototype.finish=function(){this.source.length>this.checkpoint&&this.takeUpTo(this.source.length)};function eJ(e,t,r){var n,o,i,s,a,c,p,l,u,m,d,f,h,y,g,v,b,x,w,_,T;if(t.length===0){e.dump="''";return}if(t.indexOf("!include")==0){e.dump=""+t;return}if(t.indexOf("!$$$novalue")==0){e.dump="";return}if(W6.indexOf(t)!==-1){e.dump="'"+t+"'";return}for(n=!0,o=t.length?t.charCodeAt(0):0,i=Ag===o||Ag===t.charCodeAt(t.length-1),(D6===o||z6===o||F6===o||H6===o)&&(n=!1),i?(n=!1,s=!1,a=!1):(s=!0,a=!0),c=!0,p=new Kl(t),l=!1,u=0,m=0,d=e.indent*r,f=80,d<40?f-=d:f=40,y=0;y<t.length;y++){if(h=t.charCodeAt(y),n)if(!rJ(h))n=!1;else continue;c&&h===Rg&&(c=!1),g=Ze[h],v=GT(h),!(!g&&!v)&&(h!==Lo&&h!==Tg&&h!==Rg?(s=!1,a=!1):h===Lo&&(l=!0,c=!1,y>0&&(b=t.charCodeAt(y-1),b===Ag&&(a=!1,s=!1)),s&&(x=y-u,u=y,x>m&&(m=x))),h!==Tg&&(c=!1),p.takeUpTo(y),p.escapeChar())}if(n&&Z6(e,t)&&(n=!1),w="",(s||a)&&(_=0,t.charCodeAt(t.length-1)===Lo&&(_+=1,t.charCodeAt(t.length-2)===Lo&&(_+=1)),_===0?w="-":_===2&&(w="+")),a&&m<f&&(s=!1),l||(a=!1),n)e.dump=t;else if(c)e.dump="'"+t+"'";else if(s)T=tJ(t,f),e.dump=">"+w+`
|
|
42
|
-
`+VT(T,d);else if(a)w||(t=t.replace(/\n$/,"")),e.dump="|"+w+`
|
|
43
|
-
`+VT(t,d);else if(p)p.finish(),e.dump='"'+p.result+'"';else throw new Error("Failed to dump scalar value")}function tJ(e,t){var r="",n=0,o=e.length,i=/\n+$/.exec(e),s;for(i&&(o=i.index+1);n<o;)s=e.indexOf(`
|
|
44
|
-
`,n),s>o||s===-1?(r&&(r+=`
|
|
45
|
-
|
|
46
|
-
`),r+=BT(e.slice(n,o),t),n=o):(r&&(r+=`
|
|
47
|
-
|
|
48
|
-
`),r+=BT(e.slice(n,s),t),n=s+1);return i&&i[0]!==`
|
|
49
|
-
`&&(r+=i[0]),r}function BT(e,t){if(e==="")return e;for(var r=/[^\s] [^\s]/g,n="",o=0,i=0,s=r.exec(e),a,c,p;s;)a=s.index,a-i>t&&(o!==i?c=o:c=a,n&&(n+=`
|
|
50
|
-
`),p=e.slice(i,c),n+=p,i=c+1),o=a+1,s=r.exec(e);return n&&(n+=`
|
|
51
|
-
`),i!==o&&e.length-i>t?n+=e.slice(i,o)+`
|
|
52
|
-
`+e.slice(o+1):n+=e.slice(i),n}function rJ(e){return O6!==e&&Lo!==e&&k6!==e&&j6!==e&&V6!==e&&B6!==e&&K6!==e&&Y6!==e&&C6!==e&&N6!==e&&M6!==e&&I6!==e&&G6!==e&&U6!==e&&Rg!==e&&Tg!==e&&q6!==e&&L6!==e&&!Ze[e]&&!GT(e)}function GT(e){return!(32<=e&&e<=126||e===133||160<=e&&e<=55295||57344<=e&&e<=65533||65536<=e&&e<=1114111)}function nJ(e,t,r){var n="",o=e.tag,i,s;for(i=0,s=r.length;i<s;i+=1)Uo(e,t,r[i],!1,!1)&&(i!==0&&(n+=", "),n+=e.dump);e.tag=o,e.dump="["+n+"]"}function oJ(e,t,r,n){var o="",i=e.tag,s,a;for(s=0,a=r.length;s<a;s+=1)Uo(e,t+1,r[s],!0,!0)&&((!n||s!==0)&&(o+=Og(e,t)),o+="- "+e.dump);e.tag=i,e.dump=o||"[]"}function iJ(e,t,r){var n="",o=e.tag,i=Object.keys(r),s,a,c,p,l;for(s=0,a=i.length;s<a;s+=1)l="",s!==0&&(l+=", "),c=i[s],p=r[c],Uo(e,t,c,!1,!1)&&(e.dump.length>1024&&(l+="? "),l+=e.dump+": ",Uo(e,t,p,!1,!1)&&(l+=e.dump,n+=l));e.tag=o,e.dump="{"+n+"}"}function sJ(e,t,r,n){var o="",i=e.tag,s=Object.keys(r),a,c,p,l,u,m;for(a=0,c=s.length;a<c;a+=1)m="",(!n||a!==0)&&(m+=Og(e,t)),p=s[a],l=r[p],Uo(e,t+1,p,!0,!0)&&(u=e.tag!==null&&e.tag!=="?"||e.dump&&e.dump.length>1024,u&&(e.dump&&Lo===e.dump.charCodeAt(0)?m+="?":m+="? "),m+=e.dump,u&&(m+=Og(e,t)),Uo(e,t+1,l,!0,u)&&(e.dump&&Lo===e.dump.charCodeAt(0)?m+=":":m+=": ",m+=e.dump,o+=m));e.tag=i,e.dump=o||"{}"}function HT(e,t,r){var n,o,i,s,a,c;for(o=r?e.explicitTypes:e.implicitTypes,i=0,s=o.length;i<s;i+=1)if(a=o[i],(a.instanceOf||a.predicate)&&(!a.instanceOf||typeof t=="object"&&t instanceof a.instanceOf)&&(!a.predicate||a.predicate(t))){if(e.tag=r?a.tag:"?",a.represent){if(c=e.styleMap[a.tag]||a.defaultStyle,Cg.call(a.represent)==="[object Function]")n=a.represent(t,c);else if(KT.call(a.represent,c))n=a.represent[c](t,c);else throw new Ig("!<"+a.tag+'> tag resolver accepts not "'+c+'" style');e.dump=n}return!0}return!1}function Uo(e,t,r,n,o){e.tag=null,e.dump=r,HT(e,r,!1)||HT(e,r,!0);var i=Cg.call(e.dump);n&&(n=0>e.flowLevel||e.flowLevel>t),(e.tag!==null&&e.tag!=="?"||e.indent!==2&&t>0)&&(o=!1);var s=i==="[object Object]"||i==="[object Array]",a,c;if(s&&(a=e.duplicates.indexOf(r),c=a!==-1),c&&e.usedDuplicates[a])e.dump="*ref_"+a;else{if(s&&c&&!e.usedDuplicates[a]&&(e.usedDuplicates[a]=!0),i==="[object Object]")n&&Object.keys(e.dump).length!==0?(sJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
53
|
-
`:"")+e.dump)):(iJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object Array]")n&&e.dump.length!==0?(oJ(e,t,e.dump,o),c&&(e.dump="&ref_"+a+(t===0?`
|
|
54
|
-
`:"")+e.dump)):(nJ(e,t,e.dump),c&&(e.dump="&ref_"+a+" "+e.dump));else if(i==="[object String]")e.tag!=="?"&&eJ(e,e.dump,t);else{if(e.skipInvalid)return!1;throw new Ig("unacceptable kind of an object to dump "+i)}e.tag!==null&&e.tag!=="?"&&(e.dump="!<"+e.tag+"> "+e.dump)}return!0}function aJ(e,t){var r=[],n=[],o,i;for(kg(e,r,n),o=0,i=n.length;o<i;o+=1)t.duplicates.push(r[n[o]]);t.usedDuplicates=new Array(i)}function kg(e,t,r){var n=Cg.call(e),o,i,s;if(e!==null&&typeof e=="object")if(i=t.indexOf(e),i!==-1)r.indexOf(i)===-1&&r.push(i);else if(t.push(e),Array.isArray(e))for(i=0,s=e.length;i<s;i+=1)kg(e[i],t,r);else for(o=Object.keys(e),i=0,s=o.length;i<s;i+=1)kg(e[o[i]],t,r)}function YT(e,t){t=t||{};var r=new X6(t);return aJ(e,r),Uo(r,0,e,!0,!0)?r.dump+`
|
|
55
|
-
`:""}Gl.dump=YT;function cJ(e,t){return YT(e,Ka.extend({schema:R6},t))}Gl.safeDump=cJ});var QT=S(Xn=>{"use strict";Object.defineProperty(Xn,"__esModule",{value:!0});function pJ(e){if(["true","True","TRUE"].lastIndexOf(e)>=0)return!0;if(["false","False","FALSE"].lastIndexOf(e)>=0)return!1;throw'Invalid boolean "'+e+'"'}Xn.parseYamlBoolean=pJ;function lJ(e){return e.lastIndexOf("0o",0)===0?parseInt(e.substring(2),8):parseInt(e)}function uJ(e){var t=lJ(e);if(isNaN(t))throw'Invalid integer "'+e+'"';return t}Xn.parseYamlInteger=uJ;function dJ(e){if([".nan",".NaN",".NAN"].lastIndexOf(e)>=0)return NaN;var t=/^([-+])?(?:\.inf|\.Inf|\.INF)$/,r=t.exec(e);if(r)return r[1]==="-"?-1/0:1/0;var n=parseFloat(e);if(!isNaN(n))return n;throw'Invalid float "'+e+'"'}Xn.parseYamlFloat=dJ;var mn;(function(e){e[e.null=0]="null",e[e.bool=1]="bool",e[e.int=2]="int",e[e.float=3]="float",e[e.string=4]="string"})(mn=Xn.ScalarType||(Xn.ScalarType={}));function fJ(e){if(e===void 0)return mn.null;if(e.doubleQuoted||!e.plainScalar||e.singleQuoted)return mn.string;var t=e.value;if(["null","Null","NULL","~",""].indexOf(t)>=0||t==null)return mn.null;if(["true","True","TRUE","false","False","FALSE"].indexOf(t)>=0)return mn.bool;var r=/^[-+]?[0-9]+$/,n=/^0o[0-7]+$/,o=/^0x[0-9a-fA-F]+$/;if(r.test(t)||n.test(t)||o.test(t))return mn.int;var i=/^[-+]?(\.[0-9]+|[0-9]+(\.[0-9]*)?)([eE][-+]?[0-9]+)?$/,s=/^[-+]?(\.inf|\.Inf|\.INF)$/;return i.test(t)||s.test(t)||[".nan",".NaN",".NAN"].indexOf(t)>=0?mn.float:mn.string}Xn.determineScalarType=fJ});var ZT=S(wr=>{"use strict";function JT(e){for(var t in e)wr.hasOwnProperty(t)||(wr[t]=e[t])}Object.defineProperty(wr,"__esModule",{value:!0});var Yl=FT();wr.load=Yl.load;wr.loadAll=Yl.loadAll;wr.safeLoad=Yl.safeLoad;wr.safeLoadAll=Yl.safeLoadAll;var XT=WT();wr.dump=XT.dump;wr.safeDump=XT.safeDump;wr.YAMLException=os();JT(Va());JT(QT())});import*as Vo from"node:path";function O(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}function Ge(e){return!!e}function Wr(e,t){return e===""&&(e="#/"),e[e.length-1]==="/"?e+t:e+"/"+t}function D(e){return O(e)&&typeof e.$ref=="string"}function Ga(e){return O(e)&&typeof e.externalValue=="string"}var sr=class e{source;pointer;constructor(t,r){this.source=t,this.pointer=r}child(t){return new e(this.source,Wr(this.pointer,(Array.isArray(t)?t:[t]).map(Rr).join("/")))}key(){return{...this,reportOnKey:!0}}get absolutePointer(){return this.source.absoluteRef+(this.pointer==="#/"?"":this.pointer)}};function jg(e){let t=e.indexOf("~")===-1?e:e.replaceAll("~1","/").replaceAll("~0","~");try{return decodeURIComponent(t)}catch{return t}}function Rr(e){return typeof e=="number"||e.indexOf("/")===-1&&e.indexOf("~")===-1?e:e.replaceAll("~","~0").replaceAll("/","~1")}function yn(e){let[t,r=""]=e.split("#/");return{uri:(t.endsWith("#")?t.slice(0,-1):t)||null,pointer:eu(r)}}function eu(e){return e.split("/").map(jg).filter(Ge)}function Dg(e){let t=e.split("/");return t[t.length-1]}function Lg(e){let t=e.split(/[\/\\]/);return t[t.length-1].replace(/\.[^.]+$/,"")}function pe(e){return e.startsWith("http://")||e.startsWith("https://")||e.startsWith("file://")||e.startsWith("data:")}function tu(e){return Vo.extname(e)?pe(e)?e.substring(0,e.lastIndexOf("/")):Vo.dirname(e):e}function Ya(e,t){return pe(e)?new URL(t,e.endsWith("/")?e:`${e}/`).href:Vo.resolve(e,t)}function Or(e){return typeof e=="string"&&(e.startsWith("#")||pe(e)||e.startsWith("./")||e.startsWith("../")||e.indexOf("/")>-1||/\.(ya?ml|json)$/i.test(e))}function Ug(e){return/^#[A-Za-z][A-Za-z0-9\-_:.]*$/.test(e)}function us(e,t,r){if(!O(t.node))r.parent[r.key]=t.node;else{delete e.$ref;let n=Object.assign({},t.node,e);Object.assign(e,n)}}var he=Symbol("NOT_RESOLVED"),Pu=Symbol("MERGE_KEY");function pt(e,t){return{tagName:e,nodeKind:"scalar",implicit:t.implicit??!1,matchByTagPrefix:t.matchByTagPrefix??!1,implicitFirstChars:t.implicitFirstChars??null,resolve:t.resolve,identify:t.identify??null,represent:t.represent??(r=>String(r)),representTagName:t.representTagName??null}}function Eu(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"sequence",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addItem:t.addItem,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}function rc(e,t){let r=t.finalize===void 0;return{tagName:e,nodeKind:"mapping",implicit:!1,matchByTagPrefix:t.matchByTagPrefix??!1,create:t.create,addPair:t.addPair,has:t.has,keys:t.keys,get:t.get,finalize:t.finalize??(n=>n),carrierIsResult:r,identify:t.identify??null,represent:t.represent??(n=>n),representTagName:t.representTagName??null}}var lR=pt("tag:yaml.org,2002:str",{resolve:e=>e,identify:e=>typeof e=="string"}),uR=["","~","null","Null","NULL"],dR=pt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>uR.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),fR=pt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["n"],resolve:(e,t)=>e==="null"||t&&e===""?null:he,identify:e=>e===null,represent:()=>"null"}),mR=["","~","null","Null","NULL"],hR=pt("tag:yaml.org,2002:null",{implicit:!0,implicitFirstChars:["","~","n","N"],resolve:e=>mR.indexOf(e)!==-1?null:he,identify:e=>e===null,represent:()=>"null"}),yR=["true","True","TRUE"],gR=["false","False","FALSE"],bR=pt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","T","f","F"],resolve:e=>yR.indexOf(e)!==-1?!0:gR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),vR=["true"],SR=["false"],xR=pt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["t","f"],resolve:e=>vR.indexOf(e)!==-1?!0:SR.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),wR=["true","True","TRUE","y","Y","yes","Yes","YES","on","On","ON"],_R=["false","False","FALSE","n","N","no","No","NO","off","Off","OFF"],PR=pt("tag:yaml.org,2002:bool",{implicit:!0,implicitFirstChars:["y","Y","n","N","t","T","f","F","o","O"],resolve:e=>wR.indexOf(e)!==-1?!0:_R.indexOf(e)!==-1?!1:he,identify:e=>Object.prototype.toString.call(e)==="[object Boolean]",represent:e=>e?"true":"false"}),ER=new RegExp("^(?:0o[0-7]+|0x[0-9a-fA-F]+|[-+]?[0-9]+)$"),$R=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function AR(e){let t=e,r=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b")?r*parseInt(t.slice(2),2):t.startsWith("0o")?r*parseInt(t.slice(2),8):t.startsWith("0x")?r*parseInt(t.slice(2),16):r*parseInt(t,10)}function TR(e,t){if(t){if(!$R.test(e))return he}else if(!ER.test(e))return he;let r=AR(e);return Number.isFinite(r)?r:he}var ib=pt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:TR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),RR=new RegExp("^-?(?:0|[1-9][0-9]*)$"),OR=new RegExp("^(?:[-+]?0b[0-1]+|[-+]?0o[0-7]+|[-+]?0x[0-9a-fA-F]+|[-+]?[0-9]+)$");function kR(e){let t=e,r=1;return(t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b")?r*parseInt(t.slice(2),2):t.startsWith("0o")?r*parseInt(t.slice(2),8):t.startsWith("0x")?r*parseInt(t.slice(2),16):r*parseInt(t,10)}function IR(e,t){if(t){if(!OR.test(e))return he}else if(!RR.test(e))return he;let r=kR(e);return Number.isFinite(r)?r:he}var CR=pt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:IR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),qR=new RegExp("^(?:[-+]?0b[0-1_]+|[-+]?0[0-7_]+|[-+]?0x[0-9a-fA-F_]+|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+|[-+]?(?:0|[1-9][0-9_]*))$");function NR(e){let t=e.replace(/_/g,""),r=1;if((t[0]==="-"||t[0]==="+")&&(t[0]==="-"&&(r=-1),t=t.slice(1)),t.startsWith("0b"))return r*parseInt(t.slice(2),2);if(t.startsWith("0x"))return r*parseInt(t.slice(2),16);if(t.includes(":")){let n=0;for(let o of t.split(":"))n=n*60+Number(o);return r*n}return t!=="0"&&t[0]==="0"?r*parseInt(t,8):r*parseInt(t,10)}function MR(e){if(!qR.test(e))return he;let t=NR(e);return Number.isFinite(t)?t:he}var cu=pt("tag:yaml.org,2002:int",{implicit:!0,implicitFirstChars:["-","+",..."0123456789"],resolve:MR,identify:e=>Number.isInteger(e)&&!Object.is(e,-0)&&e.toString(10).indexOf("e")<0,represent:e=>e.toString(10)}),jR=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),DR=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function LR(e){if(!jR.test(e))return he;let t=e.toLowerCase(),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=r*parseFloat(t);return Number.isFinite(n)||DR.test(e)?n:he}function UR(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var sb=pt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:LR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:UR}),zR=new RegExp("^-?(?:0|[1-9][0-9]*)(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$"),FR=new RegExp("^(?:[-+]?[0-9]+(?:\\.[0-9]*)?(?:[eE][-+]?[0-9]+)?|[-+]?\\.[0-9]+(?:[eE][-+]?[0-9]+)?|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function VR(e,t){if(t){if(!FR.test(e))return he;let n=e.toLowerCase(),o=n[0]==="-"?-1:1;if("+-".includes(n[0])&&(n=n.slice(1)),n===".inf")return o===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(n===".nan")return NaN;let i=o*parseFloat(n);return Number.isFinite(i)?i:he}if(!zR.test(e))return he;let r=Number(e);return Number.isFinite(r)?r:he}function BR(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var HR=pt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-",..."0123456789"],resolve:VR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:BR}),KR=new RegExp("^(?:[-+]?(?:(?:[0-9][0-9_]*)?\\.[0-9_]*)(?:[eE][-+][0-9]+)?|[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\\.[0-9_]*|[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$"),GR=new RegExp("^(?:[-+]?\\.(?:inf|Inf|INF)|\\.(?:nan|NaN|NAN))$");function YR(e){if(!KR.test(e))return he;let t=e.toLowerCase().replace(/_/g,""),r=t[0]==="-"?-1:1;if("+-".includes(t[0])&&(t=t.slice(1)),t===".inf")return r===1?Number.POSITIVE_INFINITY:Number.NEGATIVE_INFINITY;if(t===".nan")return NaN;let n=0;if(t.includes(":")){for(let o of t.split(":"))n=n*60+Number(o);n*=r}else n=r*parseFloat(t);return Number.isFinite(n)||GR.test(e)?n:he}function WR(e){if(isNaN(e))return".nan";if(e===Number.POSITIVE_INFINITY)return".inf";if(e===Number.NEGATIVE_INFINITY)return"-.inf";if(Object.is(e,-0))return"-0.0";let t=e.toString(10);return/^[-+]?[0-9]+e/.test(t)?t.replace("e",".e"):t}var pu=pt("tag:yaml.org,2002:float",{implicit:!0,implicitFirstChars:["-","+",".",..."0123456789"],resolve:YR,identify:e=>typeof e=="number"&&(!Number.isInteger(e)||Object.is(e,-0)||e.toString(10).indexOf("e")>=0),represent:WR}),$u=pt("tag:yaml.org,2002:merge",{implicit:!0,implicitFirstChars:["<"],resolve:(e,t)=>e==="<<"||t&&e===""?Pu:he}),QR=/^[A-Za-z0-9+/]*={0,2}$/;function JR(e){let t=e.replace(/\s/g,"");if(t.length%4!==0||!QR.test(t))return he;let r=atob(t),n=new Uint8Array(r.length);for(let o=0;o<r.length;o++)n[o]=r.charCodeAt(o);return n}function XR(e){let t="";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return btoa(t)}var Au=pt("tag:yaml.org,2002:binary",{resolve:JR,identify:e=>Object.prototype.toString.call(e)==="[object Uint8Array]",represent:XR}),ZR=new RegExp("^([0-9][0-9][0-9][0-9])-([0-9][0-9])-([0-9][0-9])$"),eO=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]))?))?$");function tO(e){let t=ZR.exec(e);if(t===null&&(t=eO.exec(e)),t===null)return he;let r=+t[1],n=+t[2]-1,o=+t[3];if(!t[4]){let l=new Date(Date.UTC(r,n,o));return l.getUTCFullYear()!==r||l.getUTCMonth()!==n||l.getUTCDate()!==o?he:l}let i=+t[4],s=+t[5],a=+t[6],c=0;if(i>23||s>59||a>59)return he;if(t[7]){let l=t[7].slice(0,3);for(;l.length<3;)l+="0";c=+l}let p=new Date(Date.UTC(r,n,o,i,s,a,c));if(p.getUTCFullYear()!==r||p.getUTCMonth()!==n||p.getUTCDate()!==o)return he;if(t[9]){let l=+t[10],u=+(t[11]||0);if(l>23||u>59)return he;let m=(l*60+u)*6e4;p.setTime(p.getTime()-(t[9]==="-"?-m:m))}return p}var rO=pt("tag:yaml.org,2002:timestamp",{implicit:!0,implicitFirstChars:[..."0123456789"],resolve:tO,identify:e=>e instanceof Date,represent:e=>e.toISOString()}),nO=Eu("tag:yaml.org,2002:seq",{create:()=>[],addItem:(e,t)=>{e.push(t)},identify:Array.isArray});function nc(e){if(e===null||typeof e!="object"||Array.isArray(e))return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function lu(e,t){let r={};for(let n of t)e[n]!==void 0&&(r[n]=e[n]);return r}var Tu=Eu("tag:yaml.org,2002:omap",{create:()=>({list:[],seen:new Set}),addItem:(e,t)=>{let r;if(t instanceof Map){if(t.size!==1)return"cannot resolve an ordered map item";r=t.keys().next().value}else if(nc(t)){let n=Object.keys(t);if(n.length!==1)return"cannot resolve an ordered map item";r=n[0]}else return"cannot resolve an ordered map item";return e.seen.has(r)?"duplicate key in ordered map":(e.seen.add(r),e.list.push(t),"")},finalize:e=>e.list}),Ru=Eu("tag:yaml.org,2002:pairs",{create:()=>[],addItem:(e,t)=>{if(t instanceof Map)return t.size!==1?"cannot resolve a pairs item":(e.push(t.entries().next().value),"");if(Object.prototype.toString.call(t)!=="[object Object]")return"cannot resolve a pairs item";let r=t,n=Object.keys(r);return n.length!==1?"cannot resolve a pairs item":(e.push([n[0],r[n[0]]]),"")}}),oO=rc("tag:yaml.org,2002:map",{create:()=>({}),identify:nc,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{if(t!==null&&typeof t=="object")return"object-based map does not support complex keys";let n=String(t);return n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,""},has:(e,t)=>t!==null&&typeof t=="object"?!1:Object.prototype.hasOwnProperty.call(e,String(t)),keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),Ou=rc("tag:yaml.org,2002:set",{create:()=>new Set,identify:e=>e instanceof Set,represent:e=>{let t=new Map;for(let r of e)t.set(r,null);return t},addPair:(e,t,r)=>r!==null?"cannot resolve a set item":(e.add(t),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:()=>null});function iO(){return{scalar:{},sequence:{},mapping:{}}}function sO(){return{scalar:[],sequence:[],mapping:[]}}function aO(e){let t=[];for(let r of e){let n=t.length;for(let o=0;o<t.length;o++){let i=t[o];if(i.nodeKind===r.nodeKind&&i.tagName===r.tagName&&i.matchByTagPrefix===r.matchByTagPrefix){n=o;break}}t[n]=r}return t}var oc=class ab{tags;implicitScalarTags;implicitScalarByFirstChar;implicitScalarAnyFirstChar;defaultScalarTag;defaultSequenceTag;defaultMappingTag;exact;prefix;constructor(t){let r=aO(t),n=[],o=iO(),i=sO();for(let l of r){if(l.nodeKind==="scalar"&&l.implicit){if(l.matchByTagPrefix)throw new Error("Implicit scalar tags cannot match by tag prefix");n.push(l)}switch(l.nodeKind){case"scalar":l.matchByTagPrefix?i.scalar.push(l):o.scalar[l.tagName]=l;break;case"sequence":l.matchByTagPrefix?i.sequence.push(l):o.sequence[l.tagName]=l;break;case"mapping":l.matchByTagPrefix?i.mapping.push(l):o.mapping[l.tagName]=l;break}}let s=n.filter(l=>l.implicitFirstChars===null),a=new Set;for(let l of n)if(l.implicitFirstChars!==null)for(let u of l.implicitFirstChars)a.add(u);let c=new Map;for(let l of a)c.set(l,n.filter(u=>u.implicitFirstChars===null||u.implicitFirstChars.indexOf(l)!==-1));let p=o.scalar["tag:yaml.org,2002:str"];if(!p)throw new Error("schema does not define the default scalar tag (tag:yaml.org,2002:str)");this.tags=r,this.implicitScalarTags=n,this.implicitScalarByFirstChar=c,this.implicitScalarAnyFirstChar=s,this.defaultScalarTag=p,this.defaultSequenceTag=o.sequence["tag:yaml.org,2002:seq"],this.defaultMappingTag=o.mapping["tag:yaml.org,2002:map"],this.exact=o,this.prefix=i}withTags(...t){let r=[];for(let n of t)r=r.concat(n);return new ab([...this.tags,...r])}},ku=new oc([lR,nO,oO]),jJ=new oc([...ku.tags,fR,xR,CR,HR]),Iu=new oc([...ku.tags,dR,bR,ib,sb]),cO=new oc([...ku.tags,hR,PR,cu,pu,rO,$u,Au,Tu,Ru,Ou]),DJ=rc("tag:yaml.org,2002:map",{create:()=>new Map,addPair:(e,t,r)=>(e.set(t,r),""),has:(e,t)=>e.has(t),keys:e=>e.keys(),get:(e,t)=>e.get(t),identify:e=>e instanceof Map||nc(e),represent:e=>{if(e instanceof Map)return e;let t=new Map,r=e;for(let n of Object.keys(r))t.set(n,r[n]);return t}});function zg(e){if(Array.isArray(e)){let t=Array.prototype.slice.call(e);for(let r=0;r<t.length;r++){if(Array.isArray(t[r]))return null;typeof t[r]=="object"&&Object.prototype.toString.call(t[r])==="[object Object]"&&(t[r]="[object Object]")}return String(t)}return typeof e=="object"&&Object.prototype.toString.call(e)==="[object Object]"?"[object Object]":String(e)}var LJ=rc("tag:yaml.org,2002:map",{create:()=>({}),identify:nc,represent:e=>{let t=new Map;for(let r of Object.keys(e))t.set(r,e[r]);return t},addPair:(e,t,r)=>{let n=zg(t);return n===null?"nested arrays are not supported inside keys":(n==="__proto__"?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,"")},has:(e,t)=>{let r=zg(t);return r!==null&&Object.prototype.hasOwnProperty.call(e,r)},keys:e=>Object.keys(e),get:(e,t)=>e[String(t)]}),pO={maxLength:79,indent:1,linesBefore:3,linesAfter:2};function ru(e,t,r,n,o){let i="",s="",a=Math.floor(o/2)-1;return n-t>a&&(i=" ... ",t=n-a+i.length),r-n>a&&(s=" ...",r=n+a-s.length),{str:i+e.slice(t,r).replace(/\t/g,"\u2192")+s,pos:n-t+i.length}}function nu(e,t){return" ".repeat(Math.max(t-e.length,0))+e}function lO(e,t){if(!e.buffer)return null;let r={...pO,...t},n=/\r?\n|\r|\0/g,o=[0],i=[],s,a=-1;for(;s=n.exec(e.buffer);)i.push(s.index),o.push(s.index+s[0].length),e.position<=s.index&&a<0&&(a=o.length-2);a<0&&(a=o.length-1);let c="",p=Math.min(e.line+r.linesAfter,i.length).toString().length,l=r.maxLength-(r.indent+p+3);for(let m=1;m<=r.linesBefore&&!(a-m<0);m++){let d=ru(e.buffer,o[a-m],i[a-m],e.position-(o[a]-o[a-m]),l);c=`${" ".repeat(r.indent)}${nu((e.line-m+1).toString(),p)} | ${d.str}
|
|
56
|
-
${c}`}let u=ru(e.buffer,o[a],i[a],e.position,l);c+=`${" ".repeat(r.indent)}${nu((e.line+1).toString(),p)} | ${u.str}
|
|
57
|
-
`,c+=`${"-".repeat(r.indent+p+3+u.pos)}^
|
|
58
|
-
`;for(let m=1;m<=r.linesAfter&&!(a+m>=i.length);m++){let d=ru(e.buffer,o[a+m],i[a+m],e.position-(o[a]-o[a+m]),l);c+=`${" ".repeat(r.indent)}${nu((e.line+m+1).toString(),p)} | ${d.str}
|
|
59
|
-
`}return c.replace(/\n$/,"")}function Fg(e,t){let r="";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+=`
|
|
60
|
-
|
|
61
|
-
${e.mark.snippet}`),`${e.reason} ${r}`):e.reason}var vs=class extends Error{reason;mark;constructor(e,t){super(),this.name="YAMLException",this.reason=e,this.mark=t,this.message=Fg(this,!1),Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}toString(e){return`${this.name}: ${Fg(this,e)}`}};function ic(e,t,r,n=""){let o=0,i=0;for(let a=0;a<t;a++){let c=e.charCodeAt(a);c===10?(o++,i=a+1):c===13&&(o++,e.charCodeAt(a+1)===10&&a++,i=a+1)}let s={name:n,buffer:e,position:t,line:o,column:t-i};throw s.snippet=lO(s),new vs(r,s)}var uO=-1;function Vg(e){switch(e){case 48:return"\0";case 97:return"\x07";case 98:return"\b";case 116:return" ";case 9:return" ";case 110:return`
|
|
62
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 101:return"\x1B";case 32:return" ";case 34:return'"';case 47:return"/";case 92:return"\\";case 78:return"\x85";case 95:return"\xA0";case 76:return"\u2028";case 80:return"\u2029";default:return""}}var cb=new Array(256),pb=new Array(256);for(let e=0;e<256;e++)cb[e]=Vg(e)?1:0,pb[e]=Vg(e);function dO(e){return e<=65535?String.fromCharCode(e):String.fromCharCode((e-65536>>10)+55296,(e-65536&1023)+56320)}function fO(e){return e>=48&&e<=57?e-48:(e|32)-97+10}function mO(e){return e===120?2:e===117?4:8}function Za(e,t,r){let n=0;for(;t<r;){let o=e.charCodeAt(t);if(o===10)n++,t++;else if(o===13)n++,t++,e.charCodeAt(t)===10&&t++;else if(o===32||o===9)t++;else break}return{position:t,breaks:n}}function Cu(e){return e===1?" ":`
|
|
63
|
-
`.repeat(e-1)}function hO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===10||a===13){n+=e.slice(i,s);let c=Za(e,o,r);n+=Cu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,s)}function yO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===39)n+=e.slice(i,o)+"'",o+=2,i=s=o;else if(a===10||a===13){n+=e.slice(i,s);let c=Za(e,o,r);n+=Cu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function gO(e,t,r){let n="",o=t,i=t,s=t;for(;o<r;){let a=e.charCodeAt(o);if(a===92){n+=e.slice(i,o),o++;let c=e.charCodeAt(o);if(c===10||c===13)o=Za(e,o,r).position;else if(c<256&&cb[c])n+=pb[c],o++;else{let p=mO(c),l=0;for(;p>0;p--){o++;let u=fO(e.charCodeAt(o));l=(l<<4)+u}n+=dO(l),o++}i=s=o}else if(a===10||a===13){n+=e.slice(i,s);let c=Za(e,o,r);n+=Cu(c.breaks),o=i=s=c.position}else o++,a!==32&&a!==9&&(s=o)}return n+e.slice(i,r)}function Bg(e,t,r,n,o,i){let s=n<0?0:n,a=e.slice(t,r).replace(/\r\n?/g,`
|
|
64
|
-
`),c=a===""?[]:(a.endsWith(`
|
|
65
|
-
`)?a.slice(0,-1):a).split(`
|
|
66
|
-
`),p="",l=!1,u=0,m=!1;for(let d of c){let f=0;for(;f<s&&d.charCodeAt(f)===32;)f++;if(n<0||f>=d.length){u++;continue}let h=d.slice(s),y=h.charCodeAt(0);i?y===32||y===9?(m=!0,p+=`
|
|
67
|
-
`.repeat(l?1+u:u)):m?(m=!1,p+=`
|
|
68
|
-
`.repeat(u+1)):u===0?l&&(p+=" "):p+=`
|
|
69
|
-
`.repeat(u):p+=`
|
|
70
|
-
`.repeat(l?1+u:u),p+=h,l=!0,u=0}return o===3?p+=`
|
|
71
|
-
`.repeat(l?1+u:u):o!==2&&l&&(p+=`
|
|
72
|
-
`),p}function bO(e,t){if(t.valueStart===uO)return"";let{valueStart:r,valueEnd:n}=t;if(t.fast)return e.slice(r,n);switch(t.style){case 2:return yO(e,r,n);case 3:return gO(e,r,n);case 4:return Bg(e,r,n,t.indent,t.chomping,!1);case 5:return Bg(e,r,n,t.indent,t.chomping,!0);default:return hO(e,r,n)}}var vO={"!":"!","!!":"tag:yaml.org,2002:"};function ou(e){return encodeURI(e).replace(/!/g,"%21")}function lb(e,t){if(e.startsWith("!<")&&e.endsWith(">"))return decodeURIComponent(e.slice(2,-1));let r=e.indexOf("!",1),n=r===-1?"!":e.slice(0,r+1),o=t?.[n]??vO[n]??n;return decodeURIComponent(o)+decodeURIComponent(e.slice(n.length))}function ub(e){let t=e;return t.charCodeAt(0)===33?(t=t.slice(1),`!${ou(t)}`):t.slice(0,18)==="tag:yaml.org,2002:"?`!!${ou(t.slice(18))}`:`!<${ou(t)}>`}var Bo=-1,qu={filename:"",schema:Iu,json:!1,maxTotalMergeKeys:1e4,maxAliases:-1};function SO(e){return"tagStart"in e&&e.tagStart!==Bo?e.tagStart:"anchorStart"in e&&e.anchorStart!==Bo?e.anchorStart:"valueStart"in e&&e.valueStart!==Bo?e.valueStart:"start"in e?e.start:0}function $t(e,t){ic(e.source,e.position,t,e.filename)}function db(e,t,r,n){try{return r.finalize(n)}catch(o){if(o instanceof vs)throw o;ic(e.source,t,o instanceof Error?o.message:String(o),e.filename)}}function Ja(e,t,r){let n=e[r];if(n)return n;for(let o of t)if(r.startsWith(o.tagName))return o}function xO(e,t,r,n,o){let i=Ja(t,r,n);if(i)return i;$t(e,`unknown ${o} tag !<${n}>`)}function wO(e,t){let r=bO(e.source,t),n=t.tagStart===Bo?"":e.source.slice(t.tagStart,t.tagEnd),o=e.schema.defaultScalarTag;if(n!==""){if(n==="!")return{value:r,tag:o};let i=lb(n,e.tagHandlers),s=Ja(e.schema.exact.scalar,e.schema.prefix.scalar,i);if(s){let c=s.resolve(r,!0,i);return c===he&&$t(e,`cannot resolve a node with !<${i}> explicit tag`),{value:c,tag:s}}let a=Ja(e.schema.exact.mapping,e.schema.prefix.mapping,i)??Ja(e.schema.exact.sequence,e.schema.prefix.sequence,i);if(a){r!==""&&$t(e,`cannot resolve a node with !<${i}> explicit tag`);let c=a.create(i);return{value:a.carrierIsResult?c:db(e,e.position,a,c),tag:a}}$t(e,`unknown scalar tag !<${i}>`)}if(t.style===1){let i=e.schema.implicitScalarByFirstChar.get(r.charAt(0))??e.schema.implicitScalarAnyFirstChar;for(let s of i){let a=s.resolve(r,!1,s.tagName);if(a!==he)return{value:a,tag:s}}}return{value:o.resolve(r,!1,o.tagName),tag:o}}function Hg(e,t,r,n,o,i){let s=t.tagStart===Bo?"":e.source.slice(t.tagStart,t.tagEnd),a=s===""||s==="!"?o:lb(s,e.tagHandlers);return{tagName:a,tag:xO(e,r,n,a,i)}}function fb(e){return e.nodeKind==="mapping"}function Kg(e,t,r,n){for(let o of n.keys(r)){if(e.maxTotalMergeKeys!==-1&&++e.totalMergeKeys>e.maxTotalMergeKeys&&$t(e,`merge keys exceeded maxTotalMergeKeys (${e.maxTotalMergeKeys})`),t.tag.has(t.value,o))continue;let i=t.tag.addPair(t.value,o,n.get(r,o));i&&$t(e,i),(t.overridable??=new Set).add(o)}}function _O(e,t,r,n){if(e.position=t.keyPosition,fb(n))Kg(e,t,r,n);else if(n.nodeKind==="sequence"&&Array.isArray(r))for(let o of r)Kg(e,t,o,t.tag);else $t(e,"cannot merge mappings; the provided source object is unacceptable")}function PO(e,t,r,n,o){if(e.position=t.keyPosition,r===Pu){_O(e,t,n,o);return}!e.json&&t.tag.has(t.value,r)&&!t.overridable?.has(r)&&$t(e,"duplicated mapping key");let i=t.tag.addPair(t.value,r,n);i&&$t(e,i),t.overridable?.delete(r)}function iu(e,t,r){let n=e.frames[e.frames.length-1];if(n.kind==="document")n.value=t,n.hasValue=!0;else if(n.kind==="sequence"){n.merge&&(fb(r)||$t(e,"cannot merge mappings; the provided source object is unacceptable"));let o=n.tag.addItem(n.value,t,n.index++);o&&$t(e,o)}else if(n.hasKey){let o=n.key;n.key=void 0,n.hasKey=!1,PO(e,n,o,t,r)}else n.key=t,n.keyPosition=e.position,n.hasKey=!0}function su(e,t,r,n,o){if(t.anchorStart!==Bo){let i={value:r,tag:n,isValueFinal:o};return e.anchors.set(e.source.slice(t.anchorStart,t.anchorEnd),i),i}return null}function EO(e,t){let r={...qu,...t,events:e,documents:[],eventIndex:0,position:0,frames:[],anchors:new Map,tagHandlers:Object.create(null),totalMergeKeys:0,aliasCount:0};for(;r.eventIndex<r.events.length;){let n=r.events[r.eventIndex++];switch(r.position=SO(n),n.type){case 1:r.anchors=new Map,r.aliasCount=0,r.tagHandlers=Object.create(null);for(let o of n.directives)o.kind==="tag"&&(r.tagHandlers[o.handle]=o.prefix);r.frames.push({kind:"document",position:r.position,value:void 0,hasValue:!1});break;case 4:{let{value:o,tag:i}=wO(r,n);su(r,n,o,i,!0),iu(r,o,i);break}case 2:{let o=Hg(r,n,r.schema.exact.sequence,r.schema.prefix.sequence,"tag:yaml.org,2002:seq","sequence"),i=o.tag.create(o.tagName),s=su(r,n,i,o.tag,o.tag.carrierIsResult),a=r.frames[r.frames.length-1],c=a!==void 0&&a.kind==="mapping"&&a.hasKey&&a.key===Pu;r.frames.push({kind:"sequence",position:r.position,value:i,tag:o.tag,anchor:s,index:0,merge:c});break}case 3:{let o=Hg(r,n,r.schema.exact.mapping,r.schema.prefix.mapping,"tag:yaml.org,2002:map","mapping"),i=o.tag.create(o.tagName),s=su(r,n,i,o.tag,o.tag.carrierIsResult);r.frames.push({kind:"mapping",position:r.position,value:i,tag:o.tag,anchor:s,key:void 0,keyPosition:r.position,hasKey:!1,overridable:null});break}case 5:{r.maxAliases!==-1&&++r.aliasCount>r.maxAliases&&$t(r,`aliases exceeded maxAliases (${r.maxAliases})`);let o=r.source.slice(n.anchorStart,n.anchorEnd),i=r.anchors.get(o);i||$t(r,`unidentified alias "${o}"`),i.isValueFinal||$t(r,`recursive alias "${o}" is not supported for tag ${i.tag.tagName} because it uses finalize()`),iu(r,i.value,i.tag);break}case 6:{let o=r.frames.pop();if(o.kind==="document")r.documents.push(o.value);else{let i=o.tag.carrierIsResult?o.value:db(r,o.position,o.tag,o.value);o.anchor&&(o.anchor.value=i,o.anchor.isValueFinal=!0),iu(r,i,o.tag)}break}}}return r.documents}var we=-1,mb=Object.prototype.hasOwnProperty,Yo=1,uu=2,hb=3,ec=4,$O=/[\x00-\x08\x0B\x0C\x0E-\x1F\x7F-\x84\x86-\x9F\uFFFE\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/,AO=/[,\[\]{}]/,yb=/^(?:!|!!|![0-9A-Za-z-]+!)$/,du=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$,_.!~*'()\[\]])`,gb=String.raw`(?:%[0-9A-Fa-f]{2}|[0-9A-Za-z\-#;/?:@&=+$.~*'()_])`,TO=new RegExp(`^(?:${du})*$`),RO=new RegExp(`^(?:${gb})+$`),OO=new RegExp(`^(?:!(?:${du})*|${gb}(?:${du})*)$`),Nu={filename:"",maxDepth:100};function kO(e,t,r){e.events.push({type:1,explicitStart:t,explicitEnd:r,directives:e.directives})}function bb(e,t,r,n,o,i,s){e.events.push({type:2,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function fu(e,t,r,n,o,i,s){e.events.push({type:3,start:t,anchorStart:r,anchorEnd:n,tagStart:o,tagEnd:i,style:s})}function Gg(e,t){e.events.splice(t.eventsLength,0,{type:3,start:t.position,anchorStart:we,anchorEnd:we,tagStart:we,tagEnd:we,style:2})}function Qo(e,t,r,n,o,i,s,a,c=1,p=-1,l=!1){e.events.push({type:4,valueStart:t,valueEnd:r,anchorStart:n,anchorEnd:o,tagStart:i,tagEnd:s,style:a,chomping:c,indent:p,fast:l})}function IO(e,t,r){e.events.push({type:5,anchorStart:t,anchorEnd:r})}function Ho(e){e.events.push({type:6})}function yt(e){Qo(e,we,we,we,we,we,we,1)}function Yg(){return{anchorStart:we,anchorEnd:we,tagStart:we,tagEnd:we}}function ms(e){return{position:e.position,line:e.line,lineStart:e.lineStart,lineIndent:e.lineIndent,firstTabInLine:e.firstTabInLine,eventsLength:e.events.length}}function Ko(e,t){e.position=t.position,e.line=t.line,e.lineStart=t.lineStart,e.lineIndent=t.lineIndent,e.firstTabInLine=t.firstTabInLine,e.events.length=t.eventsLength}function L(e,t){ic(e.input.slice(0,e.length),e.position,t,e.filename)}function Qe(e){return e===10||e===13}function to(e){return e===9||e===32}function ar(e){return to(e)||Qe(e)}function Qr(e){return e===0||ar(e)}function ro(e){return e===44||e===91||e===93||e===123||e===125}function CO(e){return e>=48&&e<=57?e-48:-1}function qO(e){if(e>=48&&e<=57)return e-48;let t=e|32;return t>=97&&t<=102?t-97+10:-1}function NO(e){return e===120?2:e===117?4:e===85?8:0}function MO(e){return e===48||e===97||e===98||e===116||e===9||e===110||e===118||e===102||e===114||e===101||e===32||e===34||e===47||e===92||e===78||e===95||e===76||e===80}function tc(e){e.input.charCodeAt(e.position)===10?e.position++:(e.position++,e.input.charCodeAt(e.position)===10&&e.position++),e.line++,e.lineStart=e.position,e.lineIndent=0,e.firstTabInLine=-1}function gt(e,t){let r=0,n=e.input.charCodeAt(e.position),o=e.position===e.lineStart||ar(e.input.charCodeAt(e.position-1));for(;n!==0;){for(;to(n);)o=!0,n===9&&e.firstTabInLine===-1&&(e.firstTabInLine=e.position),n=e.input.charCodeAt(++e.position);if(t&&o&&n===35)do n=e.input.charCodeAt(++e.position);while(!Qe(n)&&n!==0);if(!Qe(n))break;for(tc(e),r++,o=!0,n=e.input.charCodeAt(e.position);n===32;)e.lineIndent++,n=e.input.charCodeAt(++e.position)}return r}function bn(e,t=e.position){let r=e.input.charCodeAt(t);if((r===45||r===46)&&r===e.input.charCodeAt(t+1)&&r===e.input.charCodeAt(t+2)){let n=e.input.charCodeAt(t+3);return n===0||ar(n)}return!1}function Wg(e){let t=e.input.charCodeAt(e.position);for(;t!==0&&!Qe(t);)t=e.input.charCodeAt(++e.position)}function vb(e,t,r){$O.test(e.input.slice(t,r))&&L(e,"the stream contains non-printable characters")}function jO(e,t,r){if(e.input.charCodeAt(e.position)!==33)return!1;t.tagStart!==we&&L(e,"duplication of a tag property");let n=e.position,o=!1,i=!1,s="!",a=e.input.charCodeAt(++e.position);a===60?(o=!0,a=e.input.charCodeAt(++e.position)):a===33&&(i=!0,s="!!",a=e.input.charCodeAt(++e.position));let c=e.position,p;if(o){for(;a!==0&&a!==62;)a=e.input.charCodeAt(++e.position);a!==62&&L(e,"unexpected end of the stream within a verbatim tag"),p=e.input.slice(c,e.position),e.position++}else{for(;a!==0&&!ar(a)&&!(r&&ro(a));)a===33&&(i?L(e,"tag suffix cannot contain exclamation marks"):(s=e.input.slice(c-1,e.position+1),yb.test(s)||L(e,"named tag handle cannot contain such characters"),i=!0,c=e.position+1)),a=e.input.charCodeAt(++e.position);p=e.input.slice(c,e.position),AO.test(p)&&L(e,"tag suffix cannot contain flow indicator characters")}return p&&!(o?TO.test(p):RO.test(p))&&L(e,`tag name cannot contain such characters: ${p}`),!o&&s!=="!"&&s!=="!!"&&!mb.call(e.tagHandlers,s)&&L(e,`undeclared tag handle "${s}"`),t.tagStart=n,t.tagEnd=e.position,!0}function DO(e,t){if(e.input.charCodeAt(e.position)!==38)return!1;t.anchorStart!==we&&L(e,"duplication of an anchor property"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position))&&!ro(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&L(e,"name of an anchor node must contain at least one character"),t.anchorStart=r,t.anchorEnd=e.position,!0}function LO(e,t){if(e.input.charCodeAt(e.position)!==42)return!1;(t.anchorStart!==we||t.tagStart!==we)&&L(e,"alias node should not have any properties"),e.position++;let r=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position))&&!ro(e.input.charCodeAt(e.position));)e.position++;return e.position===r&&L(e,"name of an alias node must contain at least one character"),IO(e,r,e.position),!0}function mu(e,t){gt(e,!1),e.lineIndent<t&&L(e,"deficient indentation")}function UO(e,t,r){if(e.input.charCodeAt(e.position)!==39)return!1;e.position++;let n=e.position,o=!0;for(;e.input.charCodeAt(e.position)!==0;){let i=e.input.charCodeAt(e.position);if(i===39){if(e.input.charCodeAt(e.position+1)===39){o=!1,e.position+=2;continue}let s=e.position;return e.position++,Qo(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2,1,-1,o),!0}Qe(i)?(o=!1,mu(e,t)):e.position===e.lineStart&&bn(e)?L(e,"unexpected end of the document within a single quoted scalar"):i!==9&&i<32?L(e,"expected valid JSON character"):e.position++}L(e,"unexpected end of the stream within a single quoted scalar")}function zO(e,t,r){if(e.input.charCodeAt(e.position)!==34)return!1;e.position++;let n=e.position,o=!0;for(;e.input.charCodeAt(e.position)!==0;){let i=e.input.charCodeAt(e.position);if(i===34){let s=e.position;return e.position++,Qo(e,n,s,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,3,1,-1,o),!0}if(i===92){o=!1;let s=e.input.charCodeAt(++e.position);if(Qe(s))mu(e,t);else if(MO(s))e.position++;else{let a=NO(s);for(a===0&&L(e,"unknown escape sequence");a-- >0;)e.position++,qO(e.input.charCodeAt(e.position))<0&&L(e,"expected hexadecimal character");e.position++}}else Qe(i)?(o=!1,mu(e,t)):e.position===e.lineStart&&bn(e)?L(e,"unexpected end of the document within a double quoted scalar"):i!==9&&i<32?L(e,"expected valid JSON character"):e.position++}L(e,"unexpected end of the stream within a double quoted scalar")}function FO(e,t,r){let n=e.input.charCodeAt(e.position),o=1,i=-1,s=!1;if(n!==124&&n!==62)return!1;let a=n===124?4:5;for(e.position++;e.input.charCodeAt(e.position)!==0;){let d=e.input.charCodeAt(e.position),f=CO(d);if(d===43||d===45)o!==1&&L(e,"repeat of a chomping mode identifier"),o=d===43?3:2,e.position++;else if(f>=0)f===0&&L(e,"bad explicit indentation width of a block scalar; it cannot be less than one"),s&&L(e,"repeat of an indentation width identifier"),i=t+f-1,s=!0,e.position++;else break}let c=!1;for(;to(e.input.charCodeAt(e.position));)c=!0,e.position++;c&&e.input.charCodeAt(e.position)===35&&Wg(e),Qe(e.input.charCodeAt(e.position))?tc(e):e.input.charCodeAt(e.position)!==0&&L(e,"a line break is expected");let p=s?i:-1,l=0,u=e.position,m=e.position;for(;e.input.charCodeAt(e.position)!==0;){let d=e.position,f=0;for(;e.input.charCodeAt(d+f)===32;)f++;let h=e.input.charCodeAt(d+f);if(h===0){p>=0?f>p&&(m=d+f):f>0&&(m=d+f);break}if(d===e.lineStart&&bn(e,d))break;if(!s&&p===-1&&Qe(h)&&(l=Math.max(l,f)),!s&&p===-1&&!Qe(h)&&(h===9&&f<t&&(e.position=d+f,L(e,"tab characters must not be used in indentation")),f<l&&(e.position=d+f,L(e,"bad indentation of a mapping entry"))),p===-1&&h!==0&&!Qe(h)&&f<t){e.lineIndent=f,e.position=d+f;break}!s&&h!==0&&!Qe(h)&&p===-1&&(p=f);let y=p===-1?t+1:p;if(h!==0&&!Qe(h)&&f<y){e.lineIndent=f,e.position=d+f;break}Wg(e),m=e.position,Qe(e.input.charCodeAt(e.position))&&(tc(e),m=e.position)}return vb(e,u,m),Qo(e,u,m,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,a,o,p),!0}function VO(e,t){let r=e.input.charCodeAt(e.position),n=t===Yo;if(r===0||ar(r)||r===35||r===38||r===42||r===33||r===124||r===62||r===39||r===34||r===37||r===64||r===96||n&&ro(r))return!1;if(r===63||r===45){let o=e.input.charCodeAt(e.position+1);if(Qr(o)||n&&ro(o))return!1}return!0}function BO(e,t,r,n){if(!VO(e,r))return!1;let o=e.position,i=e.position,s=e.input.charCodeAt(e.position),a=r===Yo,c=!1;for(;s!==0&&!(e.position===e.lineStart&&bn(e));){if(s===58){let p=e.input.charCodeAt(e.position+1);if(Qr(p)||a&&ro(p))break}else if(s===35){if(ar(e.input.charCodeAt(e.position-1)))break}else{if(a&&ro(s))break;if(Qe(s)){let p=e.position,l=e.line,u=e.lineStart,m=e.lineIndent;if(gt(e,!1),e.lineIndent>=t){c=!0,s=e.input.charCodeAt(e.position);continue}e.position=p,e.line=l,e.lineStart=u,e.lineIndent=m;break}}to(s)||(i=e.position+1),s=e.input.charCodeAt(++e.position)}return i===o?!1:(vb(e,o,i),Qo(e,o,i,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1,1,-1,!c),!0)}function ds(e,t){let r=e.line;gt(e,!0),(e.line>r&&e.lineIndent<t||e.firstTabInLine!==-1&&e.lineIndent<t)&&L(e,"deficient indentation")}function HO(e,t,r){let n=e.input.charCodeAt(e.position),o=n===123,i=e.position,s=!0;if(n!==91&&n!==123)return!1;let a=o?125:93;for(o?fu(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2):bb(e,i,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,2),e.position++;e.input.charCodeAt(e.position)!==0;){ds(e,t);let c=e.input.charCodeAt(e.position);if(c===a)return e.position++,Ho(e),!0;s?c===44&&L(e,"expected the node content, but found ','"):L(e,"missed comma between flow collection entries");let p=!1,l=!1;c===63&&ar(e.input.charCodeAt(e.position+1))&&(p=l=!0,e.position+=1,ds(e,t));let u=e.line,m=ms(e),d=eo(e,t,Yo,!1,!0);ds(e,t),c=e.input.charCodeAt(e.position),(o||l||e.line===u)&&c===58?(p=!0,e.position++,ds(e,t),o||Gg(e,m),d||yt(e),eo(e,t,Yo,!1,!0)||yt(e),ds(e,t),o||Ho(e)):o&&p?(d||yt(e),yt(e)):o?yt(e):p&&(Gg(e,m),d||yt(e),yt(e),Ho(e)),c=e.input.charCodeAt(e.position),c===44?(s=!0,e.position++):s=!1}L(e,"unexpected end of the stream within a flow collection")}function Qg(e,t,r){if(e.firstTabInLine!==-1||e.input.charCodeAt(e.position)!==45||!Qr(e.input.charCodeAt(e.position+1)))return!1;for(bb(e,e.position,r.anchorStart,r.anchorEnd,r.tagStart,r.tagEnd,1);e.input.charCodeAt(e.position)===45&&Qr(e.input.charCodeAt(e.position+1));){e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,L(e,"tab characters must not be used in indentation"));let n=e.line;e.position++;let o=gt(e,!0)>0;if(e.firstTabInLine!==-1&&e.input.charCodeAt(e.position)===45&&Qr(e.input.charCodeAt(e.position+1))&&L(e,"bad indentation of a sequence entry"),o&&e.lineIndent<=t?yt(e):eo(e,t,hb,!1,!0),gt(e,!0),e.lineIndent<t||e.position>=e.length)break;e.lineIndent>t&&L(e,"bad indentation of a sequence entry"),e.line===n&&e.input.charCodeAt(e.position)===45&&Qr(e.input.charCodeAt(e.position+1))&&L(e,"bad indentation of a sequence entry")}return Ho(e),!0}function au(e,t,r,n){let o=!1,i=!1,s=!1,a=!1;if(e.firstTabInLine!==-1)return!1;let c=e.input.charCodeAt(e.position);for(;c!==0;){!o&&e.firstTabInLine!==-1&&(e.position=e.firstTabInLine,L(e,"tab characters must not be used in indentation"));let p=e.input.charCodeAt(e.position+1),l=e.line;if((c===63||c===58)&&Qr(p))s||(fu(e,e.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0),c===63?(o&&yt(e),i=!0,o=!0):(o||(yt(e),i=!0),o=!1),e.position+=1,a=!0;else{o&&(yt(e),o=!1);let u=ms(e);if(!eo(e,r,uu,!1,!0))break;if(e.line===l){for(c=e.input.charCodeAt(e.position);to(c);)c=e.input.charCodeAt(++e.position);if(c===58){if(c=e.input.charCodeAt(++e.position),Qr(c)||L(e,"a whitespace character is expected after the key-value separator within a block mapping"),!s){for(Ko(e,u),fu(e,u.position,n.anchorStart,n.anchorEnd,n.tagStart,n.tagEnd,1),s=!0,eo(e,r,uu,!1,!0),c=e.input.charCodeAt(e.position);to(c);)c=e.input.charCodeAt(++e.position);e.position++}i=!0,o=!1,a=!1}else if(i)L(e,"expected ':' after a mapping key");else return n.anchorStart!==we||n.tagStart!==we?(Ko(e,u),!1):!0}else if(i)L(e,"can not read a block mapping entry; a multiline key may not be an implicit key");else return n.anchorStart!==we||n.tagStart!==we?(Ko(e,u),!1):!0}if(eo(e,t,ec,!0,a)&&(a=!1),o||a&&(yt(e),a=!1),gt(e,!0),c=e.input.charCodeAt(e.position),(e.line===l||e.lineIndent>t)&&c!==0)L(e,"bad indentation of a mapping entry");else if(e.lineIndent<t)break}return i?(o&&yt(e),s&&Ho(e),!0):!1}function eo(e,t,r,n,o,i=!0){e.depth>=e.maxDepth&&L(e,`nesting exceeded maxDepth (${e.maxDepth})`),e.depth++;let s=1,a=!1,c=!1,p=null,l=Yg(),u=r===ec||r===hb,m=u,d=u;if(n&>(e,!0)&&(a=!0,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1),e.position===e.lineStart&&bn(e))return e.depth--,!1;if(s===1)for(;;){let f=e.input.charCodeAt(e.position),h=ms(e);if(a&&s!==1&&(f===33||f===38))break;if(a&&d&&(l.tagStart!==we||l.anchorStart!==we)&&(f===33||f===38)){let y=ms(e),g=t+1;if(au(e,e.position-e.lineStart,g,l)&&e.events[y.eventsLength]?.type===3)return e.depth--,!0;Ko(e,y)}if(a&&(f===33&&l.tagStart!==we||f===38&&l.anchorStart!==we)||!jO(e,l,r===Yo)&&!DO(e,l))break;p===null&&(p=h),gt(e,!0)?(a=!0,m=d,e.lineIndent>t?s=1:e.lineIndent===t?s=0:s=-1):m=!1}if(m&&(m=a||o),s===1||r===ec){let f=r===Yo||r===uu?t:t+1,h=e.position-e.lineStart;if(s===1)if(m&&(Qg(e,h,l)||au(e,h,f,l))||HO(e,f,l))c=!0;else{let y=e.input.charCodeAt(e.position);if(p!==null&&i&&d&&!m&&y!==124&&y!==62){let g=ms(e),v=p.position-p.lineStart;Ko(e,p),au(e,v,f,Yg())&&e.events[g.eventsLength]?.type===3?c=!0:Ko(e,g)}!c&&(u&&FO(e,f,l)||UO(e,f,l)||zO(e,f,l)||LO(e,l)||BO(e,f,r,l))&&(c=!0)}else s===0&&(c=m&&Qg(e,h,l))}return u=u&&!c,!c&&(l.anchorStart!==we||l.tagStart!==we||u)&&(Qo(e,we,we,l.anchorStart,l.anchorEnd,l.tagStart,l.tagEnd,1),c=!0),e.depth--,c||l.anchorStart!==we||l.tagStart!==we}function KO(e){if(e.lineIndent>0||e.input.charCodeAt(e.position)!==37)return!1;e.position++;let t=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position));)e.position++;let r=e.input.slice(t,e.position),n=[];for(r.length===0&&L(e,"directive name must not be less than one character in length");e.input.charCodeAt(e.position)!==0&&!Qe(e.input.charCodeAt(e.position));){for(;to(e.input.charCodeAt(e.position));)e.position++;if(e.input.charCodeAt(e.position)===35||Qe(e.input.charCodeAt(e.position))||e.input.charCodeAt(e.position)===0)break;let o=e.position;for(;e.input.charCodeAt(e.position)!==0&&!ar(e.input.charCodeAt(e.position));)e.position++;n.push(e.input.slice(o,e.position))}if(Qe(e.input.charCodeAt(e.position))&&tc(e),r==="YAML"){e.directives.some(i=>i.kind==="yaml")&&L(e,"duplication of %YAML directive"),n.length!==1&&L(e,"YAML directive accepts exactly one argument");let o=/^([0-9]+)\.([0-9]+)$/.exec(n[0]);o===null&&L(e,"ill-formed argument of the YAML directive"),parseInt(o[1],10)!==1&&L(e,"unacceptable YAML version of the document"),e.directives.push({kind:"yaml",version:n[0]})}else if(r==="TAG"){n.length!==2&&L(e,"TAG directive accepts exactly two arguments");let[o,i]=n;yb.test(o)||L(e,"ill-formed tag handle (first argument) of the TAG directive"),mb.call(e.tagHandlers,o)&&L(e,`there is a previously declared suffix for "${o}" tag handle`),OO.test(i)||L(e,"ill-formed tag prefix (second argument) of the TAG directive"),e.tagHandlers[o]=i,e.directives.push({kind:"tag",handle:o,prefix:i})}return!0}function GO(e){e.directives=[],e.tagHandlers=Object.create(null);let t=!1;for(gt(e,!0);KO(e);)t=!0,gt(e,!0);let r=!1,n=!1,o=!0;if(e.lineIndent===0&&e.input.charCodeAt(e.position)===45&&e.input.charCodeAt(e.position+1)===45&&e.input.charCodeAt(e.position+2)===45&&Qr(e.input.charCodeAt(e.position+3))){r=!0;let a=e.line;e.position+=3,gt(e,!0),o=e.line>a}else t&&L(e,"directives end mark is expected");let i=e.events.length;if(!r&&e.position===e.lineStart&&e.input.charCodeAt(e.position)===46&&bn(e)){e.position+=3,gt(e,!0);return}if(kO(e,r,!1),eo(e,e.lineIndent-1,ec,!1,o,o)||yt(e),gt(e,!0),e.position===e.lineStart&&bn(e)&&(n=e.input.charCodeAt(e.position)===46,n)){let a=e.line;e.position+=3,gt(e,!0),e.line===a&&e.position<e.length&&L(e,"end of the stream or a document separator is expected")}let s=e.events[i];s?.type===1&&(s.explicitEnd=n),Ho(e),!n&&e.position<e.length&&!(e.position===e.lineStart&&bn(e))&&L(e,"end of the stream or a document separator is expected")}function YO(e,t){let r=e.length,n={...Nu,...t,input:`${e}\0`,length:r,position:0,line:0,lineStart:0,lineIndent:0,firstTabInLine:-1,depth:0,directives:[],tagHandlers:Object.create(null),events:[]},o=e.indexOf("\0");for(o!==-1&&ic(e,o,"null byte is not allowed in input",n.filename),n.input.charCodeAt(n.position)===65279&&n.position++;n.position<n.length&&(gt(n,!0),!(n.position>=n.length));){let i=n.position;GO(n),n.position===i&&L(n,"can not read a document")}return n.events}var WO={...Nu,...qu};function QO(e,t={}){let r={...WO,...t},n=String(e),o=Object.keys(Nu),i=Object.keys(qu);return EO(YO(n,lu(r,o)),{...lu(r,i),source:n})}function Sb(e,t,r){let n=null;typeof t=="function"?n=t:t!==null&&typeof t=="object"&&(r=t);let o=QO(e,r);if(n===null)return o;for(let i of o)n(i)}var Wa=class{tagged=!1;flow=!1;singleQuoted=!1;doubleQuoted=!1;literal=!1;folded=!1},Zn=Symbol("INVALID");function JO(e){let t=new Set([e.defaultScalarTag,e.defaultSequenceTag,e.defaultMappingTag].filter(i=>i!==void 0)),r=e.implicitScalarTags,n=e.tags.filter(i=>!(i.nodeKind==="scalar"&&i.implicit)&&!t.has(i)),o=e.tags.filter(i=>t.has(i));return[...r.map(i=>({tag:i,implicitTag:!0})),...n.map(i=>({tag:i,implicitTag:!1})),...o.map(i=>({tag:i,implicitTag:!0}))]}function XO(e,t){for(let r=0,n=e.representTypes.length;r<n;r+=1){let{tag:o,implicitTag:i}=e.representTypes[r];if(o.identify&&o.identify(t)){let s;return o.matchByTagPrefix&&o.representTagName?s=o.representTagName(t):s=o.tagName,{tag:o,tagName:s,implicitTag:i}}}return null}function fs(e,t){if(!e.noRefs&&t!==null&&typeof t=="object"){let l=e.refs.get(t);if(l)return l.anchor===void 0&&(l.anchor=`ref_${e.refCounter++}`),{kind:"alias",tag:"",style:new Wa,anchor:l.anchor}}let r=XO(e,t);if(!r){if(t===void 0||e.skipInvalid)return Zn;throw new vs(`unacceptable kind of an object to dump ${Object.prototype.toString.call(t)}`)}let{tag:n,tagName:o,implicitTag:i}=r,s=i?o:ub(o);if(n.nodeKind==="scalar"){let l=new Wa;return l.tagged=!i,{kind:"scalar",tag:s,style:l,value:n.represent(t)}}if(n.nodeKind==="sequence"){let l=n.represent(t),u=new Wa;u.tagged=!i;let m={kind:"sequence",tag:s,style:u,items:[]};e.noRefs||e.refs.set(t,m);for(let d=0,f=l.length;d<f;d+=1){let h=fs(e,l[d]);h===Zn&&l[d]===void 0&&(h=fs(e,null)),h!==Zn&&m.items.push(h)}return m}let a=n.represent(t),c=new Wa;c.tagged=!i;let p={kind:"mapping",tag:s,style:c,items:[]};e.noRefs||e.refs.set(t,p);for(let[l,u]of a){let m=fs(e,l);if(m===Zn)continue;let d=fs(e,u);d!==Zn&&p.items.push({key:m,value:d})}return p}function ZO(e,t,r={}){let n=fs({representTypes:JO(t),noRefs:r.noRefs??!1,skipInvalid:r.skipInvalid??!1,refs:new Map,refCounter:0},e);return[{contents:n===Zn?null:n,directives:[]}]}var e1=Symbol("visit:break"),xb=Symbol("visit:skip");function Xa(e,t,r){let n=t(e,r);if(n===e1)return!0;if(n===xb)return!1;let o=r.depth+1;switch(e.kind){case"sequence":for(let i of e.items)if(Xa(i,t,{depth:o,parent:e,isKey:!1}))return!0;break;case"mapping":for(let{key:i,value:s}of e.items)if(Xa(i,t,{depth:o,parent:e,isKey:!0})||Xa(s,t,{depth:o,parent:e,isKey:!1}))return!0;break}return!1}function t1(e,t){for(let r of e)if(r.contents&&Xa(r.contents,t,{depth:0,parent:null,isKey:!1}))return}var Mu=65279,r1=9,no=10,wb=13,n1=32,o1=33,_b=34,hu=35,i1=37,s1=38,Pb=39,a1=42,yu=44,ju=45,ys=58,c1=61,p1=62,Eb=63,l1=64,gu=91,bu=93,u1=96,vu=123,d1=124,Su=125,lt={};lt[0]="\\0";lt[7]="\\a";lt[8]="\\b";lt[9]="\\t";lt[10]="\\n";lt[11]="\\v";lt[12]="\\f";lt[13]="\\r";lt[27]="\\e";lt[34]='\\"';lt[92]="\\\\";lt[133]="\\N";lt[160]="\\_";lt[8232]="\\L";lt[8233]="\\P";var Du={indent:2,seqNoIndent:!1,seqInlineFirst:!0,sortKeys:!1,lineWidth:80,flowBracketPadding:!1,flowSkipCommaSpace:!1,flowSkipColonSpace:!1,quoteFlowKeys:!1,quoteStyle:"single",forceQuotes:!1,tagBeforeAnchor:!1};function f1(e){return e.style.tagged?e.tag:ub(e.tag)}function m1(e){let t={...Du,...e};return{...t,defaultScalarTagName:t.schema.defaultScalarTag.tagName,implicitResolvers:t.schema.implicitScalarTags}}function h1(e){let t=e.toString(16).toUpperCase(),r=e<=255?"x":"u",n=e<=255?2:4;return`\\${r}${"0".repeat(n-t.length)}${t}`}function Jg(e,t){let r=" ".repeat(t),n=0,o="",i=e.length;for(;n<i;){let s,a=e.indexOf(`
|
|
73
|
-
`,n);a===-1?(s=e.slice(n),n=i):(s=e.slice(n,a+1),n=a+1),s.length&&s!==`
|
|
74
|
-
`&&(o+=r),o+=s}return o}function xu(e,t){return`
|
|
75
|
-
${" ".repeat(e.indent*t)}`}function y1(e,t){let r=e.indent*Math.max(1,t);return{indent:r,blockIndent:t===0?e.indent+1:e.indent,lineWidth:e.lineWidth===-1?-1:Math.max(Math.min(e.lineWidth,40),e.lineWidth-r)}}function Xg(e,t){for(let r=0,n=e.implicitResolvers.length;r<n;r+=1){let o=e.implicitResolvers[r];if(o.resolve(t,!1,o.tagName)!==he)return o.tagName}return e.defaultScalarTagName}function Wo(e){return e===n1||e===r1}function g1(e){let t=e.charCodeAt(0);if(t!==ju&&t!==46||e.charCodeAt(1)!==t||e.charCodeAt(2)!==t)return!1;if(e.length===3)return!0;let r=e.charCodeAt(3);return Wo(r)||r===wb||r===no}function gs(e){return e>=32&&e<=126||e>=161&&e<=55295&&e!==8232&&e!==8233||e>=57344&&e<=65533&&e!==Mu||e>=65536&&e<=1114111}function Zg(e){return gs(e)&&e!==Mu&&e!==wb&&e!==no}function wu(e,t,r){let n=Zg(e),o=n&&!Wo(e);return(r?n:n&&e!==yu&&e!==gu&&e!==bu&&e!==vu&&e!==Su)&&e!==hu&&!(t===ys&&!o)||Zg(t)&&!Wo(t)&&e===hu||t===ys&&o&&(r||e!==yu&&e!==gu&&e!==bu&&e!==vu&&e!==Su)}function b1(e){return gs(e)&&e!==Mu&&!Wo(e)&&e!==ju&&e!==Eb&&e!==ys&&e!==yu&&e!==gu&&e!==bu&&e!==vu&&e!==Su&&e!==hu&&e!==s1&&e!==a1&&e!==o1&&e!==d1&&e!==c1&&e!==p1&&e!==Pb&&e!==_b&&e!==i1&&e!==l1&&e!==u1}function v1(e,t){let r=Go(e,0);if(b1(r))return!0;if(e.length>1&&(r===ju||r===Eb||r===ys)){let n=Go(e,1);return!Wo(n)&&wu(n,r,t)}return!1}function S1(e){return!Wo(e)&&e!==ys}function Go(e,t){let r=e.charCodeAt(t),n;return r>=55296&&r<=56319&&t+1<e.length&&(n=e.charCodeAt(t+1),n>=56320&&n<=57343)?(r-55296)*1024+n-56320+65536:r}function $b(e){return/^\n* /.test(e)}var bs=1,hs=2,Lu=3,Uu=4,gn=5;function x1(e,t,r,n,o,i){let{blockIndent:s,lineWidth:a}=r,c,p=0,l=-1,u=!1,m=!1,d=a!==-1,f=-1,h=!g1(t)&&v1(t,i)&&S1(Go(t,t.length-1));if(n||o)for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Go(t,c),!gs(p))return gn;h=h&&wu(p,l,i),l=p}else{for(c=0;c<t.length;p>=65536?c+=2:c++){if(p=Go(t,c),p===no)u=!0,d&&(m=m||c-f-1>a&&t[f+1]!==" ",f=c);else if(!gs(p))return gn;h=h&&wu(p,l,i),l=p}m=m||d&&c-f-1>a&&t[f+1]!==" "}return!u&&!m?h&&!o?bs:e.quoteStyle==="double"?gn:hs:s>9&&$b(t)?gn:m?Uu:Lu}function w1(e,t,r){let{indent:n,blockIndent:o,lineWidth:i}=r;switch(t){case bs:return tb(e,n);case hs:return`'${tb(e,n).replace(/'/g,"''")}'`;case Lu:return"|"+eb(e,o)+rb(Jg(e,n));case Uu:return">"+eb(e,o)+rb(Jg(P1(e,i),n));case gn:return`"${E1(e)}"`}}function _1(e,t,r,n,o){let i=n||!o;if(t.style.singleQuoted)return hs;if(t.style.doubleQuoted)return gn;if(!i){if(t.style.literal)return Lu;if(t.style.folded)return Uu}let s=t.value;if(s.length===0)return t.style.tagged||Xg(e,s)===t.tag?bs:e.quoteStyle==="double"?gn:hs;let a=x1(e,s,r,i,e.forceQuotes&&!n,o);return a===bs&&!t.style.tagged&&Xg(e,s)!==t.tag?e.quoteStyle==="double"?gn:hs:a}function eb(e,t){let r=$b(e)?String(t):"",n=e[e.length-1]===`
|
|
76
|
-
`;return`${r}${n&&(e[e.length-2]===`
|
|
77
|
-
`||e===`
|
|
78
|
-
`)?"+":n?"":"-"}
|
|
79
|
-
`}function tb(e,t){let r=e.indexOf(`
|
|
80
|
-
`);if(r===-1)return e;let n=" ".repeat(t),o=e.slice(0,r),i=/(\n+)([^\n]*)/g;i.lastIndex=r;let s;for(;s=i.exec(e);){let a=s[1].length,c=s[2];o+=`
|
|
81
|
-
`.repeat(a+1)+n+c}return o}function rb(e){return e[e.length-1]===`
|
|
82
|
-
`?e.slice(0,-1):e}function P1(e,t){let r=/(\n+)([^\n]*)/g,n=e.indexOf(`
|
|
83
|
-
`);n===-1&&(n=e.length),r.lastIndex=n;let o=nb(e.slice(0,n),t),i=e[0]===`
|
|
84
|
-
`||e[0]===" ",s,a;for(;a=r.exec(e);){let c=a[1],p=a[2];s=p[0]===" ",o+=c+(!i&&!s&&p!==""?`
|
|
85
|
-
`:"")+nb(p,t),i=s}return o}function nb(e,t){if(e===""||e[0]===" ")return e;let r=/ [^ ]/g,n,o=0,i,s=0,a=0,c="";for(;n=r.exec(e);)a=n.index,a-o>t&&(i=s>o?s:a,c+=`
|
|
86
|
-
${e.slice(o,i)}`,o=i+1),s=a;return c+=`
|
|
87
|
-
`,e.length-o>t&&s>o?c+=`${e.slice(o,s)}
|
|
88
|
-
${e.slice(s+1)}`:c+=e.slice(o),c.slice(1)}function E1(e){let t="",r=0;for(let n=0;n<e.length;r>=65536?n+=2:n++){r=Go(e,n);let o=lt[r];if(o){t+=o;continue}if(gs(r)){t+=e[n],r>=65536&&(t+=e[n+1]);continue}t+=h1(r)}return t}function $1(e,t,r){let n="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Jr(e,t,r.items[i],{});n!==""&&(n+=`,${e.flowSkipCommaSpace?"":" "}`),n+=a}let o=e.flowBracketPadding&&n!==""?" ":"";return`[${o}${n}${o}]`}function ob(e,t,r,n){let o="";for(let i=0,s=r.items.length;i<s;i+=1){let a=Jr(e,t+1,r.items[i],{block:!0,compact:e.seqInlineFirst,isblockseq:!0});(!n||o!=="")&&(o+=xu(e,t)),a===""||no===a.charCodeAt(0)?o+="-":o+="- ",o+=a}return o}function A1(e,t,r){let n="",o=Ab(e,r.items);for(let{key:s,value:a}of o){let c="";n!==""&&(c+=`,${e.flowSkipCommaSpace?"":" "}`);let p=Jr(e,t,s,{iskey:!0}),l=p.length>1024;l?c+="? ":e.quoteFlowKeys&&(c+='"');let u=Jr(e,t,a,{}),m=e.flowSkipColonSpace||u===""?"":" ";c+=`${p}${e.quoteFlowKeys&&!l?'"':""}:${m}${u}`,n+=c}let i=e.flowBracketPadding&&n!==""?" ":"";return`{${i}${n}${i}}`}function Qa(e){return e.kind==="scalar"?e.value:e}function Ab(e,t){if(!e.sortKeys)return t;let r=t.slice();if(e.sortKeys===!0)r.sort((n,o)=>{let i=Qa(n.key),s=Qa(o.key);return i<s?-1:i>s?1:0});else{let n=e.sortKeys;r.sort((o,i)=>n(Qa(o.key),Qa(i.key)))}return r}function T1(e,t,r,n){let o="",i=Ab(e,r.items);for(let s=0,a=i.length;s<a;s+=1){let c="";(!n||o!=="")&&(c+=xu(e,t));let{key:p,value:l}=i[s],u=(p.kind==="mapping"||p.kind==="sequence")&&!p.style.flow&&p.items.length!==0||p.kind==="scalar"&&(p.style.literal||p.style.folded),m=u?Jr(e,t+1,p,{block:!0,compact:!0,isblockseq:!_u(e,p,t+1)}):Jr(e,t+1,p,{block:!0,compact:!0,iskey:!0}),d=p.kind==="scalar"&&p.value.indexOf(`
|
|
89
|
-
`)!==-1,f=u||d||m.length>1024;f&&(m&&no===m.charCodeAt(0)?c+="?":c+="? "),c+=m,f&&(c+=xu(e,t));let h=Jr(e,t+1,l,{block:!0,compact:f,isblockseq:f&&!_u(e,l,t+1)}),y=p.kind==="scalar"&&p.value===""&&m!==""&&m.charCodeAt(m.length-1)!==Pb&&m.charCodeAt(m.length-1)!==_b,g=!f&&(p.kind==="alias"||y)?" ":"";h===""||no===h.charCodeAt(0)?c+=`${g}:`:c+=`${g}: `,c+=h,o+=c}return o}function _u(e,t,r){return t.style.tagged||t.anchor!==void 0||e.indent<2&&r>0}function Jr(e,t,r,n){if(r.kind==="alias")return`*${r.anchor}`;let{block:o=!1,iskey:i=!1,isblockseq:s=!1}=n,a=n.compact??!1,c=r.anchor!==void 0;_u(e,r,t)&&(a=!1);let p,l=r.style.tagged,u=o&&(r.kind==="mapping"||r.kind==="sequence")&&!r.style.flow&&r.items.length!==0;if(r.kind==="mapping")u?p=T1(e,t,r,a):p=A1(e,t,r);else if(r.kind==="sequence")u?e.seqNoIndent&&!s&&t>0?p=ob(e,t-1,r,a):p=ob(e,t,r,a):p=$1(e,t,r);else{let m=y1(e,t),d=_1(e,r,m,i,o);p=w1(r.value,d,m),l=r.style.tagged||d!==bs&&r.tag!==e.defaultScalarTagName}if(u&&a&&t>0&&e.indent>2&&(p=`${" ".repeat(e.indent-2)}${p}`),l||c){let m=[],d=l?f1(r):null,f=c?`&${r.anchor}`:null;e.tagBeforeAnchor?(d!==null&&m.push(d),f!==null&&m.push(f)):(f!==null&&m.push(f),d!==null&&m.push(d));let h=p===""||p.charCodeAt(0)===no?"":" ";p=`${m.join(" ")}${h}${p}`}return p}function R1(e){return(e.kind==="sequence"||e.kind==="mapping")&&!e.style.flow&&e.items.length!==0&&!e.style.tagged&&e.anchor===void 0}function O1(e){let t=e;for(;(t.kind==="sequence"||t.kind==="mapping")&&!t.style.flow&&t.items.length!==0;)t=t.kind==="sequence"?t.items[t.items.length-1]:t.items[t.items.length-1].value;if(t.kind!=="scalar"||!(t.style.literal||t.style.folded))return!1;let{value:r}=t;return r.endsWith(`
|
|
90
|
-
|
|
91
|
-
`)||r===`
|
|
92
|
-
`}function k1(e){let t="";for(let r of e.directives){if(r.kind==="yaml"){t+=`%YAML ${r.version}
|
|
93
|
-
`;continue}let{handle:n,prefix:o}=r;t+=`%TAG ${n} ${o}
|
|
94
|
-
`}return t}function I1(e,t){let r=m1(t),n="",o=!1;for(let i=0;i<e.length;i+=1){let s=e[i],a=k1(s),c=a!=="",p=s.explicitStart||c||i>0&&!o;if(n+=a,s.contents===null)p&&(n+=`---
|
|
95
|
-
`);else if(p){let l=Jr(r,0,s.contents,{block:!0,compact:!0}),u=l===""?"":c||R1(s.contents)?`
|
|
96
|
-
`:" ";n+=`---${u}${l}
|
|
97
|
-
`}else n+=Jr(r,0,s.contents,{block:!0,compact:!0})+`
|
|
98
|
-
`;o=s.explicitEnd||s.contents!==null&&O1(s.contents),o&&(n+=`...
|
|
99
|
-
`)}return n}var C1=cO.withTags({...cu,resolve:(e,t,r)=>{let n=cu.resolve(e,t,r);return n===he?ib.resolve(e,t,r):n}},{...pu,resolve:(e,t,r)=>{let n=pu.resolve(e,t,r);return n===he?sb.resolve(e,t,r):n}}),q1={...Du,schema:C1,skipInvalid:!1,noRefs:!1,flowLevel:-1,transform:()=>{}};function Tb(e,t={}){let r={...q1,...t},n=ZO(e,r.schema,{noRefs:r.noRefs,skipInvalid:r.skipInvalid});return r.flowLevel>=0&&t1(n,(o,i)=>{if(!(i.depth<r.flowLevel))return o.style.flow=!0,xb}),r.transform(n),I1(n,{...lu(r,Object.keys(Du)),schema:r.schema})}var N1=Iu.withTags($u,Au,Tu,Ru,Ou),oo=(e,t)=>{let r=Sb(e,{schema:N1,...t});if(r.length===0)return e.trim()===""?void 0:null;if(r.length>1)throw new vs("expected a single document in the stream, but found more");return r[0]},sc=(e,t)=>Tb(e,t);var Hu={};cR(Hu,{bgBlack:()=>ok,bgBlackBright:()=>Sk,bgBlue:()=>ck,bgBlueBright:()=>Pk,bgCyan:()=>lk,bgCyanBright:()=>$k,bgGreen:()=>sk,bgGreenBright:()=>wk,bgMagenta:()=>pk,bgMagentaBright:()=>Ek,bgRed:()=>ik,bgRedBright:()=>xk,bgWhite:()=>uk,bgWhiteBright:()=>Ak,bgYellow:()=>ak,bgYellowBright:()=>_k,black:()=>W1,blackBright:()=>dk,blue:()=>Z1,blueBright:()=>yk,bold:()=>F1,cyan:()=>tk,cyanBright:()=>bk,dim:()=>V1,gray:()=>nk,green:()=>J1,greenBright:()=>mk,hidden:()=>G1,inverse:()=>K1,italic:()=>B1,magenta:()=>ek,magentaBright:()=>gk,options:()=>Bu,red:()=>Q1,redBright:()=>fk,reset:()=>z1,strikethrough:()=>Y1,underline:()=>H1,white:()=>rk,whiteBright:()=>vk,yellow:()=>X1,yellowBright:()=>hk});import*as Fu from"tty";var vn=process.env,M1="NO_COLOR"in vn,j1="FORCE_COLOR"in vn,D1=process.platform==="win32",L1=Fu&&Fu.isatty(1)&&vn.TERM&&vn.TERM!=="dumb",U1="CI"in vn&&("GITHUB_ACTIONS"in vn||"GITLAB_CI"in vn||"CIRCLECI"in vn),zu=!M1&&(j1||D1||L1||U1),Vu=(e,t,r,n)=>o=>zu?e+(~(o+="").indexOf(t,4)?o.replace(r,n):o)+t:o,te=(e,t)=>Vu(`\x1B[${e}m`,`\x1B[${t}m`,new RegExp(`\\x1b\\[${t}m`,"g"),`\x1B[${e}m`),Bu=Object.defineProperty({},"enabled",{get:()=>zu,set:e=>zu=e}),z1=te(0,0),F1=Vu("\x1B[1m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[1m"),V1=Vu("\x1B[2m","\x1B[22m",/\x1b\[22m/g,"\x1B[22m\x1B[2m"),B1=te(3,23),H1=te(4,24),K1=te(7,27),G1=te(8,28),Y1=te(9,29),W1=te(30,39),Q1=te(31,39),J1=te(32,39),X1=te(33,39),Z1=te(34,39),ek=te(35,39),tk=te(36,39),rk=te(37,39),nk=te(90,39),ok=te(40,49),ik=te(41,49),sk=te(42,49),ak=te(43,49),ck=te(44,49),pk=te(45,49),lk=te(46,49),uk=te(47,49),dk=te(90,39),fk=te(91,39),mk=te(92,39),hk=te(93,39),yk=te(94,39),gk=te(95,39),bk=te(96,39),vk=te(97,39),Sk=te(100,49),xk=te(101,49),wk=te(102,49),_k=te(103,49),Pk=te(104,49),Ek=te(105,49),$k=te(106,49),Ak=te(107,49);var Je=typeof window<"u"||typeof process>"u"||process?.platform==="browser",Ss=Je?{}:process.env||{};function Rb(e){return e}var xs=Bu,G=new Proxy(Hu,{get(e,t){return Je?Rb:e[t]}}),Ku=class{info(t){return Je?console.info(t):process.stderr.write(t)}warn(t){return Je?console.warn(t):process.stderr.write(G.yellow(t))}error(t){return Je?console.error(t):process.stderr.write(G.red(t))}output(t){return Je?console.log(t):process.stdout.write(t)}printNewLine(){Je?console.log(`
|
|
100
|
-
`):process.stdout.write(`
|
|
101
|
-
`)}printSeparator(t){let r=process.stdout.columns||80,n=t.repeat(Math.ceil(r/t.length)).slice(0,r),o=Je?n:G.gray(n);return Je?console.log(o):process.stdout.write(o)}indent(t,r){let n=Je?" ":"\xA0";return t.split(`
|
|
102
|
-
`).map(o=>n.repeat(r)+o).join(`
|
|
103
|
-
`)}},Y=new Ku;import*as Tk from"node:fs";import*as Gu from"node:path";function Rk(e){return(Gu.extname(e)===".yaml"||Gu.extname(e)===".yml")&&!!Tk?.existsSync?.(e)}function Jo(e,t){let r,n;if(e===t)return!0;if(e&&t&&(r=e.constructor)===t.constructor){if(r===Date)return e.getTime()===t.getTime();if(r===RegExp)return e.toString()===t.toString();if(r===Array){if((n=e.length)===t.length)for(;n--&&Jo(e[n],t[n]););return n===-1}if(!r||typeof e=="object"){n=0;for(r in e)if(Object.prototype.hasOwnProperty.call(e,r)&&++n&&!Object.prototype.hasOwnProperty.call(t,r)||!(r in t)||!Jo(e[r],t[r]))return!1;return Object.keys(t).length===n}}return e!==e&&t!==t}function Lt(e){return O(e)&&Object.keys(e).length===0}function ac(e){return Array.isArray(e)&&e.length>0}function Ok(e){return O(e)&&!Lt(e)}function De(e){return typeof e=="string"}function ws(e){return e?Object.keys(e):[]}async function kk(e){return new Promise(t=>setTimeout(t,e))}var Ob=Tr(Qu(),1);function Ik(e,t,r){return e.split(" ").map(n=>(0,Ob.default)(n,t,r)).join(" ")}var rv=Tr(tv(),1);async function ad(e,t){let r={};for(let o of t.headers)fI(e,o.matches)&&(r[o.name]=o.envVariable!==void 0?Ss[o.envVariable]||"":o.value);let n=await(t.customFetch||fetch)(e,{headers:r});if(!n.ok)throw new Error(`Failed to load ${e}: ${n.status} ${n.statusText}`);return{body:await n.text(),mimeType:n.headers.get("content-type")}}function fI(e,t){return t.match(/^https?:\/\//)||(e=e.replace(/^https?:\/\//,"")),rv.default.isMatch(e,t)}function cd(e){return/^\\\\\?\\/.test(e)?e:e.replace(/\\/g,"/")}function io(e){let t=e.match(/^\/(.*)\/(.*)|(.*)/);return t&&new RegExp(t[1]||t[3],t[2])}function C(e,t={}){return{name:`${e}List`,properties:{},items:e,...t}}function q(e,t={}){return{name:`${e}Map`,properties:{},additionalProperties:()=>e,...t}}var cr={name:"SpecExtension",properties:{},additionalProperties:{resolvable:!0}};function Xr(e,t={}){let r={};for(let i of Object.keys(e))r[i]={...e[i],name:i};for(let i of Object.values(r))n(i);return r.SpecExtension=cr,r;function n(i){if(i.additionalProperties&&(i.additionalProperties=o(i.additionalProperties)),i.items&&(i.items=o(i.items)),i.properties){let s={};for(let[a,c]of Object.entries(i.properties))s[a]=o(c),t.doNotResolveExamples&&c&&c.isExample&&(s[a]={...c,resolvable:!1});i.properties=s}}function o(i){if(typeof i=="string"){if(!r[i])throw new Error(`Unknown type name found: ${i}`);return r[i]}else return typeof i=="function"?(s,a)=>o(i(s,a)):pr(i)?(i={...i},n(i),i):i?.directResolveAs!==void 0?{...i,directResolveAs:o(i.directResolveAs)??void 0}:i}}function pr(e){return typeof e?.name=="string"}var mI=/^[0-9][0-9Xx]{2}$/,hI={properties:{swagger:{type:"string"},info:"Info",host:{type:"string"},basePath:{type:"string"},schemes:{type:"array",items:{type:"string"}},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},paths:"Paths",definitions:"NamedSchemas",parameters:"NamedParameters",responses:"NamedResponses",securityDefinitions:"NamedSecuritySchemes",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs","x-servers":"XServerList","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["swagger","paths","info"],extensionsPrefix:"x-"},yI={properties:{title:{type:"string"},description:{type:"string"},termsOfService:{type:"string"},contact:"Contact",license:"License",version:{type:"string"},"x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-"},gI={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},extensionsPrefix:"x-"},bI={properties:{name:{type:"string"},url:{type:"string"},email:{type:"string"}},extensionsPrefix:"x-"},vI={properties:{name:{type:"string"},url:{type:"string"}},required:["name"],extensionsPrefix:"x-"},SI={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0},xI={properties:{$ref:{type:"string"},parameters:"ParameterList",get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation"},extensionsPrefix:"x-"},wI={properties:{tags:{type:"array",items:{type:"string"}},summary:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs",operationId:{type:"string"},consumes:{type:"array",items:{type:"string"}},produces:{type:"array",items:{type:"string"}},parameters:"ParameterList",responses:"Responses",schemes:{type:"array",items:{type:"string"}},deprecated:{type:"boolean"},security:"SecurityRequirementList","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-"},_I={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}}},PI={properties:{url:{type:"string"},description:{type:"string"}},required:["url"]},EI={properties:{description:{type:"string"},url:{type:"string"}},required:["url"],extensionsPrefix:"x-"},$I={properties:{name:{type:"string"},in:{type:"string",enum:["query","header","path","formData","body"]},description:{type:"string"},required:{type:"boolean"},schema:"Schema",type:{type:"string",enum:["string","number","integer","boolean","array","file"]},format:{type:"string"},allowEmptyValue:{type:"boolean"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"},"x-example":{},"x-examples":"ExamplesMap"},required(e){return!e||!e.in?["name","in"]:e.in==="body"?["name","in","schema"]:e.type==="array"?["name","in","type","items"]:["name","in","type"]},extensionsPrefix:"x-"},AI={properties:{type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return e&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},TI={properties:{default:"Response"},additionalProperties:(e,t)=>mI.test(t)?"Response":void 0},RI={properties:{description:{type:"string"},schema:"Schema",headers:q("Header"),examples:"Examples","x-summary":{type:"string"}},required:["description"],extensionsPrefix:"x-"},OI={properties:{},additionalProperties:{isExample:!0}},kI={properties:{description:{type:"string"},type:{type:"string",enum:["string","number","integer","boolean","array"]},format:{type:"string"},items:"ParameterItems",collectionFormat:{type:"string",enum:["csv","ssv","tsv","pipes","multi"]},default:null,maximum:{type:"integer"},exclusiveMaximum:{type:"boolean"},minimum:{type:"integer"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer"},minLength:{type:"integer"},pattern:{type:"string"},maxItems:{type:"integer"},minItems:{type:"integer"},uniqueItems:{type:"boolean"},enum:{type:"array"},multipleOf:{type:"number"}},required(e){return O(e)&&e.type==="array"?["type","items"]:["type"]},extensionsPrefix:"x-"},II={properties:{name:{type:"string"},description:{type:"string"},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-"},CI={properties:{name:{type:"string"},tags:{type:"array",items:{type:"string"}}}},qI={properties:{format:{type:"string"},title:{type:"string"},description:{type:"string"},default:null,multipleOf:{type:"number"},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"number"},minLength:{type:"number"},pattern:{type:"string"},maxItems:{type:"number"},minItems:{type:"number"},uniqueItems:{type:"boolean"},maxProperties:{type:"number"},minProperties:{type:"number"},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{type:"string",enum:["object","array","string","number","integer","boolean","null"]},items:e=>Array.isArray(e)?C("Schema"):"Schema",allOf:C("Schema"),properties:"SchemaProperties",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",discriminator:{type:"string"},readOnly:{type:"boolean"},xml:"Xml",externalDocs:"ExternalDocs",example:{isExample:!0},"x-tags":{type:"array",items:{type:"string"}},"x-nullable":{type:"boolean"},"x-extendedDiscriminator":{type:"string"},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"},"x-enumDescriptions":"EnumDescriptions"},extensionsPrefix:"x-"},NI={properties:{},additionalProperties:{type:"string"}},MI={properties:{},additionalProperties:"Schema"},jI={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-"},DI={properties:{type:{enum:["basic","apiKey","oauth2"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header"]},flow:{enum:["implicit","password","application","accessCode"]},authorizationUrl:{type:"string"},tokenUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","scopes"];case"application":case"password":return["type","flow","tokenUrl","scopes"];default:return["type","flow","scopes"]}default:return["type"]}},allowed(e){switch(e?.type){case"basic":return["type","description"];case"apiKey":return["type","name","in","description"];case"oauth2":switch(e?.flow){case"implicit":return["type","flow","authorizationUrl","description","scopes"];case"accessCode":return["type","flow","authorizationUrl","tokenUrl","description","scopes"];case"application":case"password":return["type","flow","tokenUrl","description","scopes"];default:return["type","flow","tokenUrl","authorizationUrl","description","scopes"]}default:return["type","description"]}},extensionsPrefix:"x-"},LI={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},UI={properties:{value:{isExample:!0},summary:{type:"string"},description:{type:"string"},externalValue:{type:"string"}},extensionsPrefix:"x-"},pd={Root:hI,Tag:II,TagList:C("Tag"),TagGroups:C("TagGroup"),TagGroup:CI,ExternalDocs:EI,Example:UI,ExamplesMap:q("Example"),EnumDescriptions:NI,SecurityRequirement:LI,SecurityRequirementList:C("SecurityRequirement"),Info:yI,Contact:bI,License:vI,Logo:gI,Paths:SI,PathItem:xI,Parameter:$I,ParameterItems:AI,ParameterList:C("Parameter"),Operation:wI,Examples:OI,Header:kI,Responses:TI,Response:RI,Schema:qI,Xml:jI,SchemaProperties:MI,NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),SecurityScheme:DI,XCodeSample:_I,XCodeSampleList:C("XCodeSample"),XServerList:C("XServer"),XServer:PI};var zI=/^[0-9][0-9Xx]{2}$/,FI={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",components:"Components","x-webhooks":"WebhooksMap","x-tagGroups":"TagGroups","x-ignoredHeaderParameters":{type:"array",items:{type:"string"}}},required:["openapi","paths","info"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},VI={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A description for the tag."},externalDocs:"ExternalDocs","x-traitTag":{type:"boolean"},"x-displayName":{type:"string"}},required:["name"],extensionsPrefix:"x-",description:"The Tag Object represents a tag used by the OAS. It is not mandatory to have a tag object per tag used by the OAS but each tag object can contain additional metadata."},BI={properties:{name:{type:"string",description:"The display name for the tag, used in the navigation bar and as a section heading."},tags:{type:"array",description:"List of tags to include in this group.",items:{type:"string"}}},extensionsPrefix:"x-",description:"The x-tagGroups extension is used at the top level of an OpenAPI description.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-tag-groups#taggroup-object"},HI={properties:{description:{type:"string",description:"A description of the target documentation. Used as the link anchor text in Redocly. If not provided, the url is used as the link anchor text."},url:{type:"string",description:"REQUIRED. The URL for the target documentation."}},required:["url"],extensionsPrefix:"x-",description:"Additional external documentation for this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/external-docs"},KI={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenAPI document is being served. Variable substitutions are made when a variable is named in { curly braces }."},description:{type:"string",description:"An optional string describing the host designated by the URL."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"A server object to be used by the target operation."},GI={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set. The array MUST NOT be empty. If defined, the array MUST contain the default value."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object's treatment of default values, because in those cases parameter values are optional. If the enum is defined, the value MUST exist in the enum's values."},description:{type:"string",description:"An optional description for the server variable."}},required:["default"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/server-variables#server-variables",description:"Server variables are used when you need to make a substitution into the server URL such as when the subdomain is unique per tenant."},YI={properties:{},additionalProperties:{type:"array",items:{type:"string"}},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/security#security-requirement-object",description:"A declaration of which security mechanisms can be used across the API. The list of values includes alternative security requirement objects that can be used. Only one of the security requirement objects need to be satisfied to authorize a request. Individual operations can override this definition. To make security optional, an empty security requirement ({}) can be included in the array."},WI={properties:{title:{type:"string",description:"REQUIRED. The title of the API."},version:{type:"string",description:"REQUIRED. The version of the OpenAPI document (which is distinct from the OpenAPI Specification version or the API implementation version)."},description:{type:"string",description:"RECOMMENDED. A description of the API (Markdown may be used)."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API."},contact:"Contact",license:"License","x-logo":"Logo"},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/info#info"},QI={properties:{url:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"},href:{type:"string"}},documentationLink:"https://redocly.com/docs-legacy/api-reference-docs/specification-extensions/x-logo#x-logo",description:"A commonly used specification extension containing the information about the API logo."},JI={properties:{name:{type:"string",description:"The identifying name of the contact person or organization."},url:{type:"string",description:"The URL pointing to the contact information."},email:{type:"string",description:"The email address of the contact person or organization."}},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/contact",description:"The contact information for the exposed API."},XI={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"The URL pointing to the contact information."}},required:["name"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/license#license",description:"The license information for the exposed API."},ZI={properties:{},additionalProperties:(e,t)=>t.startsWith("/")?"PathItem":void 0,description:"The Paths Object is a map of a paths to the path item object. A path starts with a /.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/paths#paths-object"},eC={properties:{},additionalProperties:()=>"PathItem",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/webhooks#types"},tC={properties:{$ref:{type:"string",description:"Allows for a referenced definition of this path item. The referenced structure MUST be in the form of a Path Item Object. In case a Path Item Object field appears both in the defined object and the referenced object, the behavior is undefined. See the rules for resolving Relative References.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/reference"},servers:"ServerList",parameters:"ParameterList",summary:{type:"string",description:"An optional, string summary, intended to apply to all operations in this path."},description:{type:"string",description:"An optional, string description, intended to apply to all operations in this path."},get:"Operation",put:"Operation",post:"Operation",delete:"Operation",options:"Operation",head:"Operation",patch:"Operation",trace:"Operation","x-query":"Operation"},extensionsPrefix:"x-",description:"Describes the operations available on a single path. A Path Item MAY be empty, due to ACL constraints. The path itself is still exposed to the documentation viewer but they will not know which operations and parameters are available.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/path-item#path-item-object"},rC={properties:{name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},in:{enum:["query","header","path","cookie"],description:'REQUIRED. The location of the parameter. Possible values are "query", "header", "path", or "cookie".'},description:{type:"string",description:"A brief description of the parameter. This could contain examples of use."},required:{type:"boolean",description:'Determines whether this parameter is mandatory. If the parameter location is "path", this property is REQUIRED and its value MUST be true. Otherwise, the property MAY be included and its default value is false.'},deprecated:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},allowEmptyValue:{type:"boolean",description:"Sets the ability to pass empty-valued parameters. This is valid only for query parameters and allows sending a parameter with an empty value. Default value is false. If style is used, and if behavior is n/a (cannot be serialized), the value of allowEmptyValue SHALL be ignored. Use of this property is NOT RECOMMENDED, as it is likely to be removed in a later revision."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how the parameter value will be serialized depending on the type of the parameter value. Default values (based on value of in): for query - form; for path - simple; for header - simple; for cookie - form."},explode:{type:"boolean",description:"When this is true, parameter values of type array or object generate separate parameters for each value of the array or key-value pair of the map. For other types of parameters this property has no effect. When style is form, the default value is true. For all other styles, the default value is false."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by RFC3986 :/?#[]@!$&'()*+,;= to be included without percent-encoding. This property only applies to parameters with an in value of query. The default value is false."},schema:"Schema",example:{isExample:!0},examples:"ExamplesMap",content:"MediaTypesMap"},required:["name","in"],requiredOneOf:["schema","content"],extensionsPrefix:"x-",description:"Describes a request parameter, which excludes the request body. A unique parameter is defined by a unique combination of the name and in values.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/parameter"},nC={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},required:["responses"],extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation"},oC={properties:{lang:{type:"string"},label:{type:"string"},source:{type:"string"}},documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-code-samples",description:"Code samples are snippets of code shown alongside API operations in reference documentation, giving users a quick way to start to interact with an API from their own code. The x-codeSamples addition to OpenAPI allows you to add or override any existing code samples for a particular language or endpoint."},iC={properties:{description:{type:"string",description:"A brief description of the request body. This could contain examples of use."},required:{type:"boolean",description:"Determines if the request body is required in the request. Defaults to false."},content:"MediaTypesMap"},required:["content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/request-body",description:"The request body is defined inside of operations (including paths and webhooks). The request body can also be defined inside of the named requestBodies object in components."},sC={properties:{},additionalProperties:"MediaType",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type#types"},aC={properties:{schema:"Schema",example:{isExample:!0,description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema."},examples:"ExamplesMap",encoding:"EncodingMap"},extensionsPrefix:"x-",description:"The Media Type Object is one of the important building blocks of OpenAPI.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/media-type"},cC={properties:{value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON or YAML, use a string value to contain the example, escaping where necessary."},summary:{type:"string"},description:{type:"string",description:"Long description for the example."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON or YAML documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"Example of the media type. The example object SHOULD be in the correct format as specified by the media type. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema which contains an example, the example value SHALL override the example provided by the schema.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/example"},pC={properties:{contentType:{type:"string",description:"The Content-Type for encoding a specific property. Default value depends on the property type: for string with format being binary \u2013 application/octet-stream; for other primitive types \u2013 text/plain; for object - application/json; for array \u2013 the default is defined based on the inner type. The value can be a specific media type (e.g. application/json), a wildcard media type (e.g. image/*), or a comma-separated list of the two types."},headers:"HeadersMap",style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"],description:"Describes how a specific property value will be serialized depending on its type. See Parameter Object for details on the style property. The behavior follows the same values as query parameters, including default values. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},explode:{type:"boolean",description:"When this is true, property values of type array or object generate separate parameters for each value of the array, or key-value-pair of the map. For other types of properties this property has no effect. When style is form, the default value is true. For all other styles, the default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."},allowReserved:{type:"boolean",description:"Determines whether the parameter value SHOULD allow reserved characters, as defined by [RFC3986] Section 2.2 :/?#[]@!$&'()*+,;= to be included without percent-encoding. The default value is false. This property SHALL be ignored if the request body media type is not application/x-www-form-urlencoded."}},extensionsPrefix:"x-",description:"A single encoding definition applied to a single schema property.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/encoding#types"},lC={properties:{},additionalProperties:{type:"string"},description:'The enum (short for "enumeration") fields in OpenAPI allow you to restrict the value of a field to a list of allowed values. These values need to be short and machine-readable, but that can make them harder for humans to parse and work with.',documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-enum-descriptions"},uC={properties:{description:{type:"string",description:"A brief description of the parameter. This could contain examples of use. CommonMark syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines whether this parameter is mandatory. Its default value is false."},deprecated:{type:"boolean"},allowEmptyValue:{type:"boolean",description:"Specifies that a parameter is deprecated and SHOULD be transitioned out of usage. Default value is false."},style:{enum:["form","simple","label","matrix","spaceDelimited","pipeDelimited","deepObject"]},explode:{type:"boolean"},allowReserved:{type:"boolean"},schema:"Schema",example:{isExample:!0,description:"Example of the header's potential value. The example SHOULD match the specified schema and encoding properties if present. The example field is mutually exclusive of the examples field. Furthermore, if referencing a schema that contains an example, the example value SHALL override the example provided by the schema. To represent examples of media types that cannot naturally be represented in JSON or YAML, a string value can contain the example with escaping where necessary."},examples:"ExamplesMap",content:"MediaTypesMap"},requiredOneOf:["schema","content"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/header#header-object",description:"The header object is used to describe a response header in the headers map."},dC={properties:{default:"Response"},additionalProperties:(e,t)=>zI.test(t)?"Response":void 0,description:"The list of possible responses as they are returned from executing this operation.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/named-responses"},fC={properties:{description:{type:"string"},headers:"HeadersMap",content:"MediaTypesMap",links:"LinksMap","x-summary":{type:"string",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-summary#openapi-extension-x-summary",description:"Use x-summary to add a short custom text to describe the response in the API documentation."}},required:["description"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/response",description:"The response object describes a single response in the Responses Map."},mC={properties:{operationRef:{type:"string",description:"A relative or absolute reference to an OAS operation. This field is mutually exclusive of the operationId field, and MUST point to an Operation Object. Relative operationRef values MAY be used to locate an existing Operation Object in the OpenAPI definition."},operationId:{type:"string",description:"The name of an existing, resolvable OAS operation, as defined with a unique operationId. This field is mutually exclusive of the operationRef field."},parameters:null,requestBody:null,description:{type:"string",description:"A description of the link."},server:"Server"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/links",description:"The Link object represents a possible design-time link for a response. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between responses and other operations."},hC={properties:{externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string",description:"Value MUST be a string. Multiple types via an array are not supported."},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"boolean"},exclusiveMinimum:{type:"boolean"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string",description:"(This string SHOULD be a valid regular expression, according to the Ecma-262 Edition 5.1 regular expression dialect)"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:{enum:["object","array","string","number","integer","boolean"],description:"Value MUST be a string. Multiple types via an array are not supported."},allOf:C("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),anyOf:C("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),oneOf:C("Schema",{description:"Inline or referenced schema MUST be of a Schema Object and not a standard JSON Schema."}),not:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?C("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string",description:"CommonMark syntax MAY be used for rich text representation."},format:{type:"string",description:"See Data Type Formats for further details. While relying on JSON Schema's defined formats, the OAS offers a few additional predefined formats."},default:null,nullable:{type:"boolean"},readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",example:{isExample:!0},deprecated:{type:"boolean"},"x-tags":{type:"array",items:{type:"string"}},"x-additionalPropertiesName":{type:"string"},"x-explicitMappingOnly":{type:"boolean"}},extensionsPrefix:"x-",description:"The schema defining the content of the request, response, or parameter.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/schemas"},yC={properties:{name:{type:"string"},namespace:{type:"string"},prefix:{type:"string"},attribute:{type:"boolean"},wrapped:{type:"boolean"}},extensionsPrefix:"x-",description:"This MAY be used only on properties schemas. It has no effect on root schemas. Adds additional metadata to describe the XML representation of this property."},gC={properties:{},additionalProperties:"Schema"},bC={properties:{},additionalProperties:e=>typeof e=="string"&&Or(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"},documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#types"},vC={properties:{propertyName:{type:"string",description:"REQUIRED. The name of the property in the payload that will hold the discriminator value."},mapping:"DiscriminatorMapping"},required:["propertyName"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/discriminator#discriminator-object",description:"When request bodies or response payloads may be one of a number of different schemas, a discriminator object can be used to aid in serialization, deserialization, and validation. The discriminator is a specific object in a schema which is used to inform the consumer of the document of an alternative schema based on the value associated with it."},SC={properties:{parameters:"NamedParameters",schemas:"NamedSchemas",responses:"NamedResponses",examples:"NamedExamples",requestBodies:"NamedRequestBodies",headers:"NamedHeaders",securitySchemes:"NamedSecuritySchemes",links:"NamedLinks",callbacks:"NamedCallbacks"},extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/components#components"},xC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Implicit flow."},wC={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Object Configuration for the OAuth Resource Owner Password flow."},_C={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Client Credentials flow. Previously called application in OpenAPI 2.0."},PC={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"},"x-usePkce":e=>typeof e=="boolean"?{type:"boolean"}:"XUsePkce"},required:["authorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Authorization Code flow. Previously called accessCode in OpenAPI 2.0."},EC={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"},extensionsPrefix:"x-",description:"Configuration details for a supported OAuth Flow."},$C={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect"],description:'REQUIRED. The type of the security scheme. Valid values are "apiKey", "http", "oauth2", "openIdConnect".'},description:{type:"string",description:"A short description for security scheme."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie"],description:'REQUIRED. The location of the API key. Valid values are "query", "header" or "cookie".'},scheme:{type:"string",description:"A short description for security scheme."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"OAuth2Flows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of a URL."},"x-defaultClientId":{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-"},AC={properties:{disableManualConfiguration:{type:"boolean"},hideClientSecretInput:{type:"boolean"}},description:"The x-usePkce allows you to enable Proof Key for Code Exchange (PKCE) for the Oauth2 or OpenID Connect authorization code flow in the Replay.",documentationLink:"https://redocly.com/docs/realm/content/api-docs/openapi-extensions/x-use-pkce#openapi-extension-x-usepkce"},Tt={Root:FI,Tag:VI,TagList:C("Tag",{documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/tags",description:"A list of tags used by the document with additional metadata. The order of the tags can be used to reflect on their order by the parsing tools. Not all tags that are used by the Operation Object must be declared. The tags that are not declared MAY be organized randomly or based on the tools' logic. Each tag name in the list MUST be unique."}),TagGroups:C("TagGroup"),TagGroup:BI,ExternalDocs:HI,Server:KI,ServerList:C("Server",{description:"A list of servers available to the API.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/servers#servers"}),ServerVariable:GI,ServerVariablesMap:q("ServerVariable",{description:"A map between a variable name and its value. The value is used for substitution in the server's URL template."}),SecurityRequirement:YI,SecurityRequirementList:C("SecurityRequirement"),Info:WI,Contact:JI,License:XI,Paths:ZI,PathItem:tC,Parameter:rC,ParameterList:C("Parameter",{description:"A list of parameters that are applicable for this operation. If a parameter is already defined at the Path Item, the new definition will override it but can never remove it. The list MUST NOT include duplicated parameters. A unique parameter is defined by a combination of a name and location. The list can use the Reference Object to link to parameters that are defined at the OpenAPI Object\u2019s components/parameters."}),Operation:nC,Callback:q("PathItem",{description:"https://redocly.com/learn/openapi/openapi-visual-reference/callbacks#callback-object"}),CallbacksMap:q("Callback"),RequestBody:iC,MediaTypesMap:sC,MediaType:aC,Example:cC,ExamplesMap:q("Example"),Encoding:pC,EncodingMap:q("Encoding"),EnumDescriptions:lC,Header:uC,HeadersMap:q("Header"),Responses:dC,Response:fC,Link:mC,Logo:QI,Schema:hC,Xml:yC,SchemaProperties:gC,DiscriminatorMapping:bC,Discriminator:vC,Components:SC,LinksMap:q("Link"),NamedSchemas:q("Schema"),NamedResponses:q("Response"),NamedParameters:q("Parameter"),NamedExamples:q("Example"),NamedRequestBodies:q("RequestBody"),NamedHeaders:q("Header"),NamedSecuritySchemes:q("SecurityScheme"),NamedLinks:q("Link"),NamedCallbacks:q("Callback"),ImplicitFlow:xC,PasswordFlow:wC,ClientCredentials:_C,AuthorizationCode:PC,OAuth2Flows:EC,SecurityScheme:$C,XCodeSample:oC,XCodeSampleList:C("XCodeSample"),XUsePkce:AC,WebhooksMap:eC};var TC={properties:{openapi:null,info:"Info",servers:"ServerList",security:"SecurityRequirementList",tags:"TagList",externalDocs:"ExternalDocs",paths:"Paths",webhooks:"WebhooksMap",components:"Components",jsonSchemaDialect:{type:"string",description:"The default value for the $schema keyword within Schema Objects contained within this OAS document. This MUST be in the form of a URI."}},required:["openapi","info"],requiredOneOf:["paths","components","webhooks"],extensionsPrefix:"x-",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/openapi#openapi",description:"REQUIRED. This string MUST be the semantic version number of the OpenAPI Specification version that the OpenAPI document uses. The openapi field SHOULD be used by tooling specifications and clients to interpret the OpenAPI document. This is not related to the API info.version string."},RC={...Tt.License,properties:{...Tt.License.properties,identifier:{type:"string",description:"An [SPDX-Licenses] expression for the API. The identifier field is mutually exclusive of the url field."}}},OC={...Tt.Info,properties:{...Tt.Info.properties,summary:{type:"string",description:"A short summary of the API. This field MAY be used by tooling as required."}}},kC={...Tt.Components,properties:{...Tt.Components.properties,pathItems:"NamedPathItems"}},IC={properties:{tags:{type:"array",items:{type:"string"},description:"A list of tags for API documentation control. Tags can be used for logical grouping of operations by resources or any other qualifier."},summary:{type:"string",description:"A short summary of what the operation does.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#summary"},description:{type:"string",description:"A verbose explanation of the operation behavior.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#description"},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive.",documentationLink:"https://redocly.com/learn/openapi/openapi-visual-reference/operation#operationid"},parameters:"ParameterList",security:"SecurityRequirementList",servers:"ServerList",requestBody:"RequestBody",responses:"Responses",deprecated:{type:"boolean"},callbacks:"CallbacksMap","x-codeSamples":"XCodeSampleList","x-code-samples":"XCodeSampleList","x-hideTryItPanel":{type:"boolean"}},extensionsPrefix:"x-",description:"The Operation Object describes a single API operation on a path, including its parameters, responses, and request body (if applicable). Each path can support more than one operation, but those operations must be unique. A unique operation is a combination of a path and an HTTP method, so two GET or two POST methods for the same path are not allowed."},CC={properties:{$id:{type:"string"},$anchor:{type:"string"},id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",$defs:"NamedSchemas",$vocabulary:{type:"string"},externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:C("Schema"),anyOf:C("Schema"),oneOf:C("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",dependentSchemas:q("Schema"),dependentRequired:"DependentRequired",prefixItems:C("Schema"),contains:"Schema",minContains:{type:"integer",minimum:0},maxContains:{type:"integer",minimum:0},patternProperties:"PatternProperties",propertyNames:"Schema",unevaluatedItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",unevaluatedProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",summary:{type:"string"},properties:"SchemaProperties",items:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},contentSchema:"Schema",default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},xml:"Xml",examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},"x-tags":{type:"array",items:{type:"string"}},$dynamicAnchor:{type:"string"},$dynamicRef:{type:"string"}},extensionsPrefix:"x-"},nv={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},qC={properties:{type:{enum:["apiKey","http","oauth2","openIdConnect","mutualTLS"]},description:{type:"string"},name:{type:"string"},in:{type:"string",enum:["query","header","cookie"]},scheme:{type:"string"},bearerFormat:{type:"string"},flows:"OAuth2Flows",openIdConnectUrl:{type:"string"}},required(e){switch(e?.type){case"apiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes"]}case"openIdConnect":return["type","openIdConnectUrl","description"];case"mutualTLS":return["type","description"];default:return["type","description"]}},extensionsPrefix:"x-"},NC={properties:{},additionalProperties:{type:"array",items:{type:"string"}}},Ee={...Tt,Info:OC,Root:TC,Schema:CC,SchemaProperties:nv,PatternProperties:nv,License:RC,Components:kC,NamedPathItems:q("PathItem"),SecurityScheme:qC,Operation:IC,DependentRequired:NC};var MC={...Ee.Root,properties:{...Ee.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1. Implementations MUST support identifying the targets of API description URIs using the URI defined by this field when it is present. See Establishing the Base URI for the base URI behavior when $self is absent or relative, and see Appendix F for examples of using $self to resolve references."}}},jC={...Ee.Tag,properties:{...Ee.Tag.properties,kind:{type:"string",description:"A machine-readable string to categorize what sort of tag it is. Any string value can be used; common uses are nav for Navigation, badge for visible badges, audience for APIs used by different groups. A registry of the most commonly used values is available."},parent:{type:"string",description:"The name of a tag that this tag is nested under. The named tag MUST exist in the API description, and circular references between parent and child tags MUST NOT be used."},summary:{type:"string",description:"A short summary of the tag, used for display purposes."}},description:"Adds metadata to a single tag that is used by the Operation Object. It is not mandatory to have a Tag Object per tag defined in the Operation Object instances."},DC={...Ee.Server,properties:{...Ee.Server.properties,name:{type:"string",description:"An optional unique string to refer to the host designated by the URL."}},description:"An object representing a Server."},LC={...Ee.SecurityScheme,properties:{...Ee.SecurityScheme.properties,deprecated:{type:"boolean",description:"Declares this security scheme to be deprecated. Consumers SHOULD refrain from usage of the declared scheme. Default value is false."},oauth2MetadataUrl:{type:"string",description:"URL to the OAuth2 authorization server metadata [RFC8414]. TLS is required."}},allowed(e){switch(e?.type){case"apiKey":return["type","name","in","description","deprecated"];case"http":return["type","scheme","bearerFormat","description","deprecated"];case"oauth2":switch(e?.flows){case"implicit":return["type","flows","authorizationUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"password":case"clientCredentials":return["type","flows","tokenUrl","refreshUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"authorizationCode":return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"];case"deviceAuthorization":return["type","flows","deviceAuthorizationUrl","tokenUrl"];default:return["type","flows","authorizationUrl","refreshUrl","tokenUrl","description","scopes","oauth2MetadataUrl","deprecated"]}case"openIdConnect":return["type","openIdConnectUrl","description","deprecated"];case"mutualTLS":return["type","description","deprecated"];default:return["type","description","deprecated"]}},description:"Defines a security scheme that can be used by the operations."},UC={...Ee.OAuth2Flows,properties:{...Ee.OAuth2Flows.properties,deviceAuthorization:"DeviceAuthorization"}},zC={properties:{deviceAuthorizationUrl:{type:"string",description:"REQUIRED. The device authorization URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},tokenUrl:{type:"string",description:"REQUIRED. The token URL to be used for this flow. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},refreshUrl:{type:"string",description:"The URL to be used for obtaining refresh tokens. This MUST be in the form of a URL. The OAuth2 standard requires the use of TLS."},scopes:q("string",{description:"REQUIRED. The available scopes for the OAuth2 security scheme. A map between the scope name and a short description for it. The map MAY be empty."})},required:["deviceAuthorizationUrl","tokenUrl","scopes"],extensionsPrefix:"x-",description:"Configuration for the OAuth Device Authorization flow."},FC={...Tt.PathItem,properties:{...Tt.PathItem.properties,query:"Operation",additionalOperations:q("Operation")}},VC={...Ee.Parameter,properties:{...Ee.Parameter.properties,in:{description:'REQUIRED. The location of the parameter. Possible values are "query", "querystring", "header", "path" or "cookie".',enum:["query","header","path","cookie","querystring"]}}},BC={...Ee.Response,properties:{...Ee.Response.properties,summary:{type:"string",description:"A short summary of the meaning of the response."}}},HC={...Ee.MediaType,properties:{...Ee.MediaType.properties,itemSchema:"Schema",prefixEncoding:C("Encoding",{description:"A map between a property name and its encoding information, as defined under Encoding By Name. The encoding field SHALL only apply when the media type is multipart or application/x-www-form-urlencoded. If no Encoding Object is provided for a property, the behavior is determined by the default values documented for the Encoding Object. This field MUST NOT be present if prefixEncoding or itemEncoding are present."}),itemEncoding:"Encoding"}},KC={...Ee.Discriminator,properties:{...Ee.Discriminator.properties,defaultMapping:e=>{let t="The schema name or URI reference to a schema that is expected to validate the structure of the model when the discriminating property is not present in the payload or contains a value for which there is no explicit or implicit mapping.";return Or(e)?{type:"string",directResolveAs:"Schema",description:t}:{type:"string",description:t}}}},GC={properties:{...Ee.Components.properties,mediaTypes:"NamedMediaTypes"}},YC={...Ee.Example,properties:{...Ee.Example.properties,dataValue:{resolvable:!1,description:"An example of the data structure that MUST be valid according to the relevant Schema Object. If this field is present, value MUST be absent."},serializedValue:{type:"string",description:"An example of the serialized form of the value, including encoding and escaping as described under Validating Examples. If dataValue is present, then this field SHOULD contain the serialization of the given data. Otherwise, it SHOULD be the valid serialization of a data value that itself MUST be valid as described for dataValue. This field SHOULD NOT be used if the serialization format is JSON, as the data form is easier to work with. If this field is present, value, and externalValue MUST be absent."}}},WC={properties:{nodeType:{type:"string",enum:["element","attribute","text","cdata","none"],description:'One of element, attribute, text, cdata, or none, as explained under XML Node Types. The default value is none if $ref, $dynamicRef, or type: "array" is present in the Schema Object containing the XML Object, and element otherwise.'},name:{type:"string",description:"Sets the name of the element/attribute corresponding to the schema, replacing the name that was inferred as described under XML Node Names. This field SHALL be ignored if the nodeType is text, cdata, or none."},namespace:{type:"string",description:"The IRI ([RFC3987]) of the namespace definition. Value MUST be in the form of a non-relative IRI."},prefix:{type:"string",description:"The prefix to be used for the name."},attribute:{type:"boolean",description:'Declares whether the property definition translates to an attribute instead of an element. Default value is false. If nodeType is present, this field MUST NOT be present.Deprecated: Use nodeType: "attribute" instead of attribute: true.'},wrapped:{type:"boolean",description:'MAY be used only for an array definition. Signifies whether the array is wrapped (for example, <books><book/><book/></books>) or unwrapped (<book/><book/>). Default value is false. The definition takes effect only when defined alongside type being "array" (outside the items). If nodeType is present, this field MUST NOT be present. Deprecated: Use nodeType: "element" instead of wrapped: true.'}},extensionsPrefix:"x-",description:"A metadata object that allows for more fine-tuned XML model definitions. When using a Schema Object with XML, if no XML Object is present, the behavior is determined by the XML Object\u2019s default field values."},QC={...Ee.Schema,properties:{...Ee.Schema.properties,xml:"Xml"}},Ye={...Ee,Root:MC,Tag:jC,Server:DC,SecurityScheme:LC,OAuth2Flows:UC,DeviceAuthorization:zC,PathItem:FC,Parameter:VC,Response:BC,MediaType:HC,Discriminator:KC,Example:YC,Xml:WC,Schema:QC,Components:GC,NamedMediaTypes:q("MediaTypesMap")};var JC={properties:{},description:"Protocol-specific information for an HTTP channel."},XC={properties:{},description:"Protocol-specific information for an HTTP server."},ZC={properties:{headers:"Schema",statusCode:{type:"number"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP message, i.e., a request or a response."},eq={properties:{type:{type:"string"},method:{type:"string",enum:["GET","POST","PUT","PATCH","DELETE","HEAD","OPTIONS","CONNECT","TRACE"]},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an HTTP operation."},tq={properties:{method:{type:"string"},query:"Schema",headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a WebSockets channel."},rq={properties:{},description:"Protocol-specific information for a WebSockets server."},nq={properties:{},description:"Protocol-specific information for a WebSockets message."},oq={properties:{},description:"Protocol-specific information for a WebSockets operation."},iq={properties:{"cleanup.policy":{type:"array",items:{enum:["delete","compact"]}},"retention.ms":{type:"integer"},"retention.bytes":{type:"integer"},"delete.retention.ms":{type:"integer"},"max.message.bytes":{type:"integer"},"confluent.key.schema.validation":{type:"boolean"},"confluent.key.subject.name.strategy":{type:"string"},"confluent.value.schema.validation":{type:"boolean"},"confluent.value.subject.name.strategy":{type:"string"}}},sq={properties:{topic:{type:"string"},partitions:{type:"integer"},replicas:{type:"integer"},topicConfiguration:"KafkaTopicConfiguration",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka channel."},aq={properties:{schemaRegistryUrl:{type:"string"},schemaRegistryVendor:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka server."},cq={properties:{key:"Schema",schemaIdLocation:{type:"string"},schemaIdPayloadEncoding:{type:"string"},schemaLookupStrategy:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka message."},pq={properties:{groupId:"Schema",clientId:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Kafka operation."},lq={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ channel."},uq={properties:{},description:"Protocol-specific information for an Anypoint MQ server."},dq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for an Anypoint MQ message."},fq={properties:{},description:"Protocol-specific information for an Anypoint MQ operation."},mq={properties:{name:{type:"string"},type:{type:"string",enum:["topic","direct","fanout","default","headers"]},durable:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP exchange the channel is bound to."},hq={properties:{name:{type:"string"},durable:{type:"boolean"},exclusive:{type:"boolean"},autoDelete:{type:"boolean"},vhost:{type:"string"}},description:"The AMQP queue the channel is bound to."},yq={properties:{is:{type:"string",enum:["queue","routingKey"]},exchange:"AmqpChannelExchange",queue:"AmqpChannelQueue",bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 channel."},gq={properties:{},description:"Protocol-specific information for an AMQP 0-9-1 server."},bq={properties:{contentEncoding:{type:"string"},messageType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 message."},vq={properties:{expiration:{type:"integer"},userId:{type:"string"},cc:{type:"array",items:{type:"string"}},priority:{type:"integer"},deliveryMode:{type:"integer"},mandatory:{type:"boolean"},bcc:{type:"array",items:{type:"string"}},replyTo:{type:"string"},timestamp:{type:"boolean"},ack:{type:"boolean"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an AMQP 0-9-1 operation."},Sq={properties:{},description:"Protocol-specific information for an AMQP 1.0 channel."},xq={properties:{},description:"Protocol-specific information for an AMQP 1.0 server."},wq={properties:{},description:"Protocol-specific information for an AMQP 1.0 message."},_q={properties:{},description:"Protocol-specific information for an AMQP 1.0 operation."},Pq={properties:{},description:"Protocol-specific information for an MQTT channel."},Eq={properties:{topic:{type:"string"},qos:{type:"integer"},message:{type:"string"},retain:{type:"boolean"}}},$q={properties:{clientId:{type:"string"},cleanSession:{type:"boolean"},lastWill:"MqttServerBindingLastWill",keepAlive:{type:"integer"},sessionExpiryInterval:e=>O(e)?"Schema":{type:"integer"},maximumPacketSize:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT server."},Aq={properties:{payloadFormatIndicator:{type:"integer"},correlationData:"Schema",contentType:{type:"string"},responseTopic:e=>O(e)?"Schema":{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT message."},Tq={properties:{qos:{type:"integer"},retain:{type:"boolean"},messageExpiryInterval:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT operation."},Rq={properties:{},description:"Protocol-specific information for an MQTT 5 channel."},Oq={properties:{sessionExpiryInterval:e=>O(e)?"Schema":{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an MQTT 5 server."},kq={properties:{},description:"Protocol-specific information for an MQTT 5 message."},Iq={properties:{},description:"Protocol-specific information for an MQTT 5 operation."},Cq={properties:{},description:"Protocol-specific information for a NATS channel."},qq={properties:{},description:"Protocol-specific information for a NATS server."},Nq={properties:{},description:"Protocol-specific information for a NATS message."},Mq={properties:{queue:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a NATS operation."},jq={properties:{destination:{type:"string"},destinationType:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS channel."},Dq={properties:{name:{type:"string"},value:{}},required:["name","value"],description:"A name-value pair to set on the JMS ConnectionFactory implementation."},Lq={properties:{jmsConnectionFactory:{type:"string"},properties:C("JmsServerBindingProperty"),clientID:{type:"string"},bindingVersion:{type:"string"}},required:["jmsConnectionFactory"],description:"Protocol-specific information for a JMS server."},Uq={properties:{headers:"Schema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a JMS message."},zq={properties:{},description:"Protocol-specific information for a JMS operation."},Fq={properties:{},description:"Protocol-specific information for a Solace channel."},Vq={properties:{bindingVersion:{type:"string"},msgVpn:{type:"string"},clientName:{type:"string"}},description:"Protocol-specific information for a Solace server."},Bq={properties:{},description:"Protocol-specific information for a Solace message."},Hq={properties:{destinationType:{type:"string",enum:["queue","topic"]},deliveryMode:{type:"string",enum:["direct","persistent"]},"queue.name":{type:"string"},"queue.topicSubscriptions":{type:"array",items:{type:"string"}},"queue.accessType":{type:"string",enum:["exclusive","nonexclusive"]},"queue.maxMsgSpoolSize":{type:"string"},"queue.maxMsgSpoolUsage":{type:"string"},"queue.maxTtl":{type:"string"},"topic.topicSubscriptions":{type:"array",items:{type:"string"}}}},Kq={properties:{bindingVersion:{type:"string"},destinations:C("SolaceDestination"),dmqEligible:{type:"boolean"},priority:{type:"integer",minimum:0},timeToLive:{type:"integer"}},description:"Protocol-specific information for a Solace operation."},Gq={properties:{url:{type:"string"},email:{type:"string"},phone:{type:"string"},arn:{type:"string"},name:{type:"string"}},description:"Identifies an SNS resource: exactly one of url, email, phone, arn, or name."},Yq={properties:{type:{type:"string",enum:["standard","FIFO"]},contentBasedDeduplication:{type:"boolean"}},required:["type"],description:"Defines the ordering and deduplication properties of an SNS topic."},Wq={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SNS access-policy statement."},Qq={properties:{statements:C("SnsStatement")},required:["statements"],description:"The security policy for an SNS topic."},Jq={properties:{name:{type:"string"},ordering:"SnsOrdering",policy:"SnsPolicy",tags:{type:"object"},bindingVersion:{type:"string"}},required:["name"],description:"Protocol-specific information for an SNS channel."},Xq={properties:{deadLetterQueue:"SnsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SNS messages are moved."},Zq={properties:{minDelayTarget:{type:"integer"},maxDelayTarget:{type:"integer"},numRetries:{type:"integer"},numNoDelayRetries:{type:"integer"},numMinDelayRetries:{type:"integer"},numMaxDelayRetries:{type:"integer"},backoffFunction:{type:"string",enum:["arithmetic","exponential","geometric","linear"]},maxReceivesPerSecond:{type:"integer"}},description:"Defines how SNS retries the delivery of messages to a subscription endpoint."},eN={properties:{protocol:{type:"string",enum:["http","https","email","email-json","sms","sqs","application","lambda","firehose"]},endpoint:"SnsIdentifier",filterPolicy:{type:"object"},filterPolicyScope:{type:"string",enum:["MessageAttributes","MessageBody"]},rawMessageDelivery:{type:"boolean"},redrivePolicy:"SnsRedrivePolicy",deliveryPolicy:"SnsDeliveryPolicy",displayName:{type:"string"}},required:["protocol","endpoint","rawMessageDelivery"],description:"Describes an SNS subscription consuming messages from a topic."},tN={properties:{topic:"SnsIdentifier",consumers:C("SnsConsumer"),deliveryPolicy:"SnsDeliveryPolicy",bindingVersion:{type:"string"}},required:["consumers"],description:"Protocol-specific information for an SNS operation."},rN={properties:{arn:{type:"string"},name:{type:"string"}},description:"Identifies an SQS queue: exactly one of arn or name."},nN={properties:{deadLetterQueue:"SqsIdentifier",maxReceiveCount:{type:"integer"}},required:["deadLetterQueue"],description:"Defines where unprocessable SQS messages are moved."},oN={properties:{effect:{type:"string",enum:["Allow","Deny"]},principal:{},action:{},resource:{},condition:{type:"object"}},required:["effect","principal","action"],description:"An SQS access-policy statement."},iN={properties:{statements:C("SqsStatement")},required:["statements"],description:"The security policy for an SQS queue."},ov={properties:{name:{type:"string"},fifoQueue:{type:"boolean"},deduplicationScope:{type:"string",enum:["queue","messageGroup"]},fifoThroughputLimit:{type:"string",enum:["perQueue","perMessageGroupId"]},deliveryDelay:{type:"integer"},visibilityTimeout:{type:"integer"},receiveMessageWaitTime:{type:"integer"},messageRetentionPeriod:{type:"integer"},redrivePolicy:"SqsRedrivePolicy",policy:"SqsPolicy",tags:{type:"object"}},required:["name","fifoQueue"],description:"Describes an SQS queue (channel-level definition)."},sN={...ov,required:["name"],description:"Describes an SQS queue (operation-level definition)."},aN={properties:{queue:"SqsQueue",deadLetterQueue:"SqsQueue",bindingVersion:{type:"string"}},required:["queue"],description:"Protocol-specific information for an SQS channel."},cN={properties:{queues:C("SqsOperationQueue"),bindingVersion:{type:"string"}},required:["queues"],description:"Protocol-specific information for an SQS operation."},pN={properties:{},description:"Protocol-specific information for a STOMP channel."},lN={properties:{},description:"Protocol-specific information for a STOMP server."},uN={properties:{},description:"Protocol-specific information for a STOMP message."},dN={properties:{},description:"Protocol-specific information for a STOMP operation."},fN={properties:{},description:"Protocol-specific information for a Redis channel."},mN={properties:{},description:"Protocol-specific information for a Redis server."},hN={properties:{},description:"Protocol-specific information for a Redis message."},yN={properties:{},description:"Protocol-specific information for a Redis operation."},gN={properties:{},description:"Protocol-specific information for a Mercure channel."},bN={properties:{},description:"Protocol-specific information for a Mercure server."},vN={properties:{},description:"Protocol-specific information for a Mercure message."},SN={properties:{},description:"Protocol-specific information for a Mercure operation."},xN={properties:{groupId:{type:"string"},ccdtQueueManagerName:{type:"string"},cipherSpec:{type:"string"},multiEndpointServer:{type:"boolean"},heartBeatInterval:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ server."},wN={properties:{objectName:{type:"string"},isPartitioned:{type:"boolean"},exclusive:{type:"boolean"}},required:["objectName"],description:"Defines the properties of an IBM MQ queue."},_N={properties:{string:{type:"string"},objectName:{type:"string"},durablePermitted:{type:"boolean"},lastMsgRetained:{type:"boolean"}},description:"Defines the properties of an IBM MQ topic."},PN={properties:{destinationType:{type:"string",enum:["topic","queue"]},queue:"IbmmqChannelQueue",topic:"IbmmqChannelTopic",maxMsgLength:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ channel."},EN={properties:{type:{type:"string",enum:["string","jms","binary"]},headers:{type:"string"},description:{type:"string"},expiry:{type:"integer"},bindingVersion:{type:"string"}},description:"Protocol-specific information for an IBM MQ message."},$N={properties:{allowedPersistenceRegions:{type:"array",items:{type:"string"}}},description:"Policy constraining the regions where Google Cloud Pub/Sub messages are stored."},AN={properties:{encoding:{type:"string"},firstRevisionId:{type:"string"},lastRevisionId:{type:"string"},name:{type:"string"}},required:["encoding","name"],description:"Settings for validating Google Cloud Pub/Sub messages against a schema."},TN={properties:{labels:{type:"object"},messageRetentionDuration:{type:"string"},messageStoragePolicy:"GooglepubsubMessageStoragePolicy",schemaSettings:"GooglepubsubSchemaSettings",topic:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub channel."},RN={properties:{name:{type:"string"},type:{type:"string"}},required:["name"],description:"Identifies the Google Cloud Pub/Sub schema a message is validated against."},ON={properties:{attributes:{type:"object"},orderingKey:{type:"string"},schema:"GooglepubsubSchema",bindingVersion:{type:"string"}},description:"Protocol-specific information for a Google Cloud Pub/Sub message."},kN={properties:{tenant:{type:"string"},bindingVersion:{type:"string"}},description:"Protocol-specific information for a Pulsar server."},IN={properties:{time:{type:"integer"},size:{type:"integer"}},description:"The retention policy of a Pulsar topic."},CN={properties:{namespace:{type:"string"},persistence:{type:"string",enum:["persistent","non-persistent"]},compaction:{type:"integer"},"geo-replication":{type:"array",items:{type:"string"}},retention:"PulsarRetention",ttl:{type:"integer"},deduplication:{type:"boolean"},bindingVersion:{type:"string"}},required:["namespace","persistence"],description:"Protocol-specific information for a Pulsar channel."},qN={properties:{rmwImplementation:{type:"string"},domainId:{type:"integer",minimum:0}},description:"Protocol-specific information for a ROS 2 server."},NN={properties:{},description:"Protocol-specific information for a ROS 2 channel."},MN={properties:{reliability:{type:"string",enum:["best_effort","reliable"]},history:{type:"string",enum:["keep_last","keep_all","unknown"]},durability:{type:"string",enum:["transient_local","volatile"]},lifespan:{type:"integer"},deadline:{type:"integer"},liveliness:{type:"string",enum:["automatic","manual"]},leaseDuration:{type:"integer"}},description:"Quality of Service settings for a ROS 2 operation."},jN={properties:{role:{type:"string",enum:["publisher","subscriber","service_client","service_server","action_client","action_server"]},node:{type:"string"},qosPolicies:"Ros2QosPolicies",bindingVersion:{type:"string"}},description:"Protocol-specific information for a ROS 2 operation."},DN={properties:{},description:"Protocol-specific information for a ROS 2 message."},LN={properties:{http:"HttpServerBinding",ws:"WsServerBinding",kafka:"KafkaServerBinding",anypointmq:"AnypointmqServerBinding",amqp:"AmqpServerBinding",amqp1:"Amqp1ServerBinding",mqtt:"MqttServerBinding",mqtt5:"Mqtt5ServerBinding",nats:"NatsServerBinding",jms:"JmsServerBinding",solace:"SolaceServerBinding",stomp:"StompServerBinding",redis:"RedisServerBinding",mercure:"MercureServerBinding",ibmmq:"IbmmqServerBinding",pulsar:"PulsarServerBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a server."},UN={properties:{http:"HttpChannelBinding",ws:"WsChannelBinding",kafka:"KafkaChannelBinding",anypointmq:"AnypointmqChannelBinding",amqp:"AmqpChannelBinding",amqp1:"Amqp1ChannelBinding",mqtt:"MqttChannelBinding",mqtt5:"Mqtt5ChannelBinding",nats:"NatsChannelBinding",jms:"JmsChannelBinding",solace:"SolaceChannelBinding",stomp:"StompChannelBinding",redis:"RedisChannelBinding",mercure:"MercureChannelBinding",sns:"SnsChannelBinding",sqs:"SqsChannelBinding",ibmmq:"IbmmqChannelBinding",googlepubsub:"GooglepubsubChannelBinding",pulsar:"PulsarChannelBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a channel."},zN={properties:{http:"HttpOperationBinding",ws:"WsOperationBinding",kafka:"KafkaOperationBinding",anypointmq:"AnypointmqOperationBinding",amqp:"AmqpOperationBinding",amqp1:"Amqp1OperationBinding",mqtt:"MqttOperationBinding",mqtt5:"Mqtt5OperationBinding",nats:"NatsOperationBinding",jms:"JmsOperationBinding",solace:"SolaceOperationBinding",stomp:"StompOperationBinding",redis:"RedisOperationBinding",mercure:"MercureOperationBinding",sns:"SnsOperationBinding",sqs:"SqsOperationBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for an operation."},FN={properties:{http:"HttpMessageBinding",ws:"WsMessageBinding",kafka:"KafkaMessageBinding",anypointmq:"AnypointmqMessageBinding",amqp:"AmqpMessageBinding",amqp1:"Amqp1MessageBinding",mqtt:"MqttMessageBinding",mqtt5:"Mqtt5MessageBinding",nats:"NatsMessageBinding",jms:"JmsMessageBinding",solace:"SolaceMessageBinding",stomp:"StompMessageBinding",redis:"RedisMessageBinding",mercure:"MercureMessageBinding",ibmmq:"IbmmqMessageBinding",googlepubsub:"GooglepubsubMessageBinding"},additionalProperties:{type:"object"},description:"Map describing protocol-specific definitions for a message."},Kt={HttpServerBinding:XC,HttpChannelBinding:JC,HttpMessageBinding:ZC,HttpOperationBinding:eq,WsServerBinding:rq,WsChannelBinding:tq,WsMessageBinding:nq,WsOperationBinding:oq,KafkaServerBinding:aq,KafkaTopicConfiguration:iq,KafkaChannelBinding:sq,KafkaMessageBinding:cq,KafkaOperationBinding:pq,AnypointmqServerBinding:uq,AnypointmqChannelBinding:lq,AnypointmqMessageBinding:dq,AnypointmqOperationBinding:fq,AmqpServerBinding:gq,AmqpChannelExchange:mq,AmqpChannelQueue:hq,AmqpChannelBinding:yq,AmqpMessageBinding:bq,AmqpOperationBinding:vq,Amqp1ServerBinding:xq,Amqp1ChannelBinding:Sq,Amqp1MessageBinding:wq,Amqp1OperationBinding:_q,MqttServerBindingLastWill:Eq,MqttServerBinding:$q,MqttChannelBinding:Pq,MqttMessageBinding:Aq,MqttOperationBinding:Tq,Mqtt5ServerBinding:Oq,Mqtt5ChannelBinding:Rq,Mqtt5MessageBinding:kq,Mqtt5OperationBinding:Iq,NatsServerBinding:qq,NatsChannelBinding:Cq,NatsMessageBinding:Nq,NatsOperationBinding:Mq,JmsServerBindingProperty:Dq,JmsServerBinding:Lq,JmsChannelBinding:jq,JmsMessageBinding:Uq,JmsOperationBinding:zq,SolaceServerBinding:Vq,SolaceChannelBinding:Fq,SolaceMessageBinding:Bq,SolaceDestination:Hq,SolaceOperationBinding:Kq,StompServerBinding:lN,StompChannelBinding:pN,StompMessageBinding:uN,StompOperationBinding:dN,RedisServerBinding:mN,RedisChannelBinding:fN,RedisMessageBinding:hN,RedisOperationBinding:yN,MercureServerBinding:bN,MercureChannelBinding:gN,MercureMessageBinding:vN,MercureOperationBinding:SN,SnsIdentifier:Gq,SnsOrdering:Yq,SnsStatement:Wq,SnsPolicy:Qq,SnsChannelBinding:Jq,SnsRedrivePolicy:Xq,SnsDeliveryPolicy:Zq,SnsConsumer:eN,SnsOperationBinding:tN,SqsIdentifier:rN,SqsRedrivePolicy:nN,SqsStatement:oN,SqsPolicy:iN,SqsQueue:ov,SqsOperationQueue:sN,SqsChannelBinding:aN,SqsOperationBinding:cN,IbmmqServerBinding:xN,IbmmqChannelQueue:wN,IbmmqChannelTopic:_N,IbmmqChannelBinding:PN,IbmmqMessageBinding:EN,GooglepubsubMessageStoragePolicy:$N,GooglepubsubSchemaSettings:AN,GooglepubsubChannelBinding:TN,GooglepubsubSchema:RN,GooglepubsubMessageBinding:ON,PulsarServerBinding:kN,PulsarRetention:IN,PulsarChannelBinding:CN,ServerBindings:LN,ChannelBindings:UN,MessageBindings:FN,OperationBindings:zN},iv={Ros2ServerBinding:qN,Ros2ChannelBinding:NN,Ros2OperationBinding:jN,Ros2QosPolicies:MN,Ros2MessageBinding:DN};var Zo={properties:{$id:{type:"string"},$schema:{type:"string"},definitions:"NamedSchemas",externalDocs:"ExternalDocs",discriminator:"Discriminator",title:{type:"string"},multipleOf:{type:"number",minimum:0},maximum:{type:"number"},minimum:{type:"number"},exclusiveMaximum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{type:"integer",minimum:0},minLength:{type:"integer",minimum:0},pattern:{type:"string"},maxItems:{type:"integer",minimum:0},minItems:{type:"integer",minimum:0},uniqueItems:{type:"boolean"},maxProperties:{type:"integer",minimum:0},minProperties:{type:"integer",minimum:0},required:{type:"array",items:{type:"string"}},enum:{type:"array"},type:e=>Array.isArray(e)?{type:"array",items:{enum:["object","array","string","number","integer","boolean","null"]}}:{enum:["object","array","string","number","integer","boolean","null"]},allOf:C("Schema"),anyOf:C("Schema"),oneOf:C("Schema"),not:"Schema",if:"Schema",then:"Schema",else:"Schema",contains:"Schema",patternProperties:{type:"object"},propertyNames:"Schema",properties:"SchemaProperties",items:e=>Array.isArray(e)?C("Schema"):"Schema",additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",description:{type:"string"},format:{type:"string"},contentEncoding:{type:"string"},contentMediaType:{type:"string"},default:null,readOnly:{type:"boolean"},writeOnly:{type:"boolean"},examples:{type:"array"},example:{isExample:!0},deprecated:{type:"boolean"},const:null,$comment:{type:"string"},additionalItems:e=>typeof e=="boolean"?{type:"boolean"}:"Schema",dependencies:"Dependencies"}},ei={properties:{},additionalProperties:e=>typeof e=="boolean"?{type:"boolean"}:"Schema"},ti={properties:{},additionalProperties:e=>Array.isArray(e)?{type:"array",items:{type:"string"}}:"Schema"},ri={properties:{},additionalProperties:e=>typeof e=="string"&&Or(e)?{type:"string",directResolveAs:"Schema"}:{type:"string"}},ni={properties:{propertyName:{type:"string"},mapping:"DiscriminatorMapping"},required:["propertyName"]};var VN={properties:{asyncapi:null,info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"ChannelMap",components:"Components",tags:"TagList",externalDocs:"ExternalDocs",defaultContentType:{type:"string"}},required:["asyncapi","channels","info"]},BN={properties:{description:{type:"string",description:"An optional description of this channel item. CommonMark syntax can be used for rich text representation."},subscribe:"Operation",publish:"Operation",parameters:"ParametersMap",bindings:"ChannelBindings",servers:{type:"array",items:{type:"string"},description:"The servers on which this channel is available, specified as an optional unordered list of names (string keys) of Server Objects defined in the Servers Object (a map)."}},description:"Describes the operations available on a single channel."},HN={properties:{},additionalProperties:"Channel"},ld={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},description:{type:"string",description:"A short description for the tag. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],description:"Allows adding meta data to a single tag."},ud={properties:{description:{type:"string",description:"A short description of the target documentation. CommonMark syntax can be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. This MUST be in the form of an absolute URL."}},required:["url"],description:"Allows referencing an external resource for extended documentation."},KN={properties:{},additionalProperties:{type:"array",items:{type:"string"}},description:"Lists the required security schemes to execute this operation. The name used for each property MUST correspond to a security scheme declared in the Security Schemes under the Components Object."},GN={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the AsyncAPI document is being served. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this URL supports for connection. Supported protocol include, but are not limited to: amqp, amqps, http, https, ibmmq, jms, kafka, kafka-secure, anypointmq, mqtt, secure-mqtt, solace, stomp, stomps, ws, wss, mercure, googlepubsub, pulsar."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the host designated by the URL. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecurityRequirementList",bindings:"ServerBindings",tags:"TagList"},required:["url","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},dd={properties:{},additionalProperties:(e,t)=>t.match(/^[A-Za-z0-9_\-]+$/)?"Server":void 0},fd={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},description:{type:"string",description:"An optional description for the server variable. CommonMark syntax MAY be used for rich text representation."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the server variable."}},required:[],description:"An object representing a Server Variable for server URL template substitution."},YN={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},md={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. This MUST be in the form of an absolute URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},description:"Contact information for the exposed API."},hd={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. This MUST be in the form of an absolute URL."}},required:["name"],description:"License information for the exposed API."},WN={properties:{description:{type:"string",description:"A verbose explanation of the parameter. CommonMark syntax can be used for rich text representation."},schema:"Schema",location:{type:"string",description:"A runtime expression that specifies the location of the parameter value. Even when a definition for the target field exists, it MUST NOT be used to validate this parameter but, instead, the schema property MUST be used."}},description:"Describes a parameter included in a channel name."},yd={properties:{description:{type:"string",description:"An optional description of the identifier. CommonMark syntax can be used for rich text representation."},location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the correlation ID."}},required:["location"],description:"An object that specifies an identifier at design time that can used for message tracing and correlation."},QN={properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",payload:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format used to define the message payload. If omitted, implementations should parse the payload as a Schema object. When the payload is defined using a $ref to a remote file, it is RECOMMENDED the schema format includes the file encoding type to allow implementations to parse the file correctly."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},JN={properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except message and traits."},XN={properties:{messageId:{type:"string",description:"Unique string used to identify the message. The id MUST be unique among all messages described in the API. The messageId value is case-sensitive. Tools and libraries MAY use the messageId to uniquely identify a message, therefore, it is RECOMMENDED to follow common programming naming conventions."},headers:"Schema",correlationId:"CorrelationId",schemaFormat:{type:"string",description:"A string containing the name of the schema format/language used to define the message payload. If omitted, implementations should parse the payload as a Schema object."},contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},ZN={properties:{tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string",description:"Unique string used to identify the operation. The id MUST be unique among all operations described in the API. The operationId value is case-sensitive. Tools and libraries MAY use the operationId to uniquely identify an operation, therefore, it is RECOMMENDED to follow common programming naming conventions."},security:"SecurityRequirementList",bindings:"OperationBindings",traits:"OperationTraitList",message:"Message"},required:[],description:"Describes a publish or a subscribe operation. This provides a place to document how and why messages are sent and received."},gd={properties:{payload:{isExample:!0,description:"The value of this field MUST validate against the Message Object's payload field."},summary:{type:"string",description:"A short summary of what the example is about."},name:{type:"string",description:"A machine-friendly name."},headers:{type:"object",description:"The value of this field MUST validate against the Message Object's headers field."}},description:"Message Example Object represents an example of a Message Object and MUST contain either headers and/or payload fields."},eM={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"ChannelMap",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"}},tM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","scopes"],description:"Configuration for the OAuth Implicit flow."},rM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Password flow."},nM={properties:{refreshUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","scopes"],description:"Configuration for the OAuth Client Credentials flow."},oM={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},scopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","scopes"],description:"Configuration for the OAuth Authorization Code flow."},bd={properties:{implicit:"ImplicitFlow",password:"PasswordFlow",clientCredentials:"ClientCredentials",authorizationCode:"AuthorizationCode"}},iM={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"]},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description"];case"openIdConnect":return["type","openIdConnectUrl","description"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},vd={...Kt,Root:VN,Tag:ld,TagList:C("Tag"),ServerMap:dd,ExternalDocs:ud,Server:GN,ServerVariable:fd,ServerVariablesMap:q("ServerVariable"),SecurityRequirement:KN,SecurityRequirementList:C("SecurityRequirement"),Info:YN,Contact:md,License:hd,ChannelMap:HN,Channel:BN,Parameter:WN,ParametersMap:q("Parameter"),Operation:ZN,Schema:Zo,MessageExample:gd,SchemaProperties:ei,DiscriminatorMapping:ri,Discriminator:ni,Components:eM,NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ImplicitFlow:tM,PasswordFlow:rM,ClientCredentials:nM,AuthorizationCode:oM,SecuritySchemeFlows:bd,SecurityScheme:iM,Message:QN,OperationTrait:JN,OperationTraitList:C("OperationTrait"),MessageTrait:XN,MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),CorrelationId:yd,Dependencies:ti};var sM={properties:{asyncapi:{type:"string",description:"REQUIRED. Specifies the AsyncAPI Specification version being used. It can be used by tooling Specifications and clients to interpret the version. The structure shall be major.minor.patch, where patch versions must be compatible with the existing major.minor tooling. Typically patch versions will be introduced to address errors in the documentation, and tooling should typically be compatible with the corresponding major.minor (1.0.*). Patch versions will correspond to patches of this document."},info:"Info",id:{type:"string",description:"Identifier of the application the AsyncAPI document is defining."},servers:"ServerMap",channels:"NamedChannels",components:"Components",operations:"NamedOperations",defaultContentType:{type:"string",description:"Default content type to use when encoding/decoding a message's payload."}},required:["asyncapi","info"],description:"This is the root document object for the API specification. It combines resource listing and API declaration together into one document."},aM={properties:{address:{type:"string",description:`An optional string representation of this channel's address. The address is typically the "topic name", "routing key", "event type", or "path". When null or absent, it MUST be interpreted as unknown. This is useful when the address is generated dynamically at runtime or can't be known upfront. It MAY contain Channel Address Expressions. Query parameters and fragments SHALL NOT be used, instead use bindings to define them.`},messages:"NamedMessages",title:{type:"string",description:"A human-friendly title for the channel."},summary:{type:"string",description:"A short summary of the channel."},description:{type:"string",description:"An optional description of this channel. CommonMark syntax can be used for rich text representation."},servers:"ServerList",parameters:"ParametersMap",bindings:"ChannelBindings",tags:"TagList",externalDocs:"ExternalDocs"},description:"Describes a shared communication channel."},cM={properties:{host:{type:"string",description:"REQUIRED. The server host name. It MAY include the port. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},pathname:{type:"string",description:"The path to a resource in the host. This field supports Server Variables. Variable substitutions will be made when a variable is named in {braces}."},protocol:{type:"string",description:"REQUIRED. The protocol this server supports for connection."},protocolVersion:{type:"string",description:"The version of the protocol used for connection. For instance: AMQP 0.9.1, HTTP 2.0, Kafka 1.0.0, etc."},description:{type:"string",description:"An optional string describing the server. CommonMark syntax MAY be used for rich text representation."},variables:"ServerVariablesMap",security:"SecuritySchemeList",bindings:"ServerBindings",externalDocs:"ExternalDocs",tags:"TagList"},required:["host","protocol"],description:"An object representing a message broker, a server or any other kind of computer program capable of sending and/or receiving data. This object is used to capture details such as URIs, protocols and security configuration. Variable substitution can be used so that some details, for example usernames and passwords, can be injected by code generation tools."},pM={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},version:{type:"string",description:"REQUIRED Provides the version of the application API (not to be confused with the specification version)."},description:{type:"string",description:"A short description of the application. CommonMark syntax can be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. This MUST be in the form of an absolute URL."},contact:"Contact",license:"License",tags:"TagList",externalDocs:"ExternalDocs"},required:["title","version"],description:"The object provides metadata about the API. The metadata can be used by the clients if needed."},lM={properties:{description:{type:"string",description:"An optional description for the parameter. CommonMark syntax MAY be used for rich text representation."},enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"The default value to use for substitution, and to send, if an alternate value is not supplied."},examples:{type:"array",items:{type:"string"},description:"An array of examples of the parameter value."},location:{type:"string",description:"A runtime expression that specifies the location of the parameter value."}},description:"Describes a parameter included in a channel address."},uM={properties:{headers:"Schema",payload:e=>e&&e?.schemaFormat?{properties:{schema:"Schema",schemaFormat:{type:"string"}},required:["schema","schemaFormat"]}:"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList",traits:"MessageTraitList"},additionalProperties:{},description:"Describes a message received on a given channel and operation."},dM={properties:{tags:"TagList",title:{type:"string",description:"A human-friendly title for the operation."},summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",security:"SecuritySchemeList",bindings:"OperationBindings"},required:[],description:"Describes a trait that MAY be applied to an Operation Object. This object MAY contain any property from the Operation Object, except the action, channel, messages and traits ones."},fM={properties:{headers:e=>typeof e=="function"||O(e)?{properties:{schema:"Schema",schemaFormat:{type:"string"}}}:"Schema",correlationId:"CorrelationId",contentType:{type:"string",description:"The content type to use when encoding/decoding a message's payload. The value MUST be a specific media type (e.g. application/json). When omitted, the value MUST be the one specified on the defaultContentType field."},name:{type:"string",description:"A machine-friendly name for the message."},title:{type:"string",description:"A human-friendly title for the message."},summary:{type:"string",description:"A short summary of what the message is about."},description:{type:"string",description:"A verbose explanation of the message. CommonMark syntax can be used for rich text representation."},tags:"TagList",externalDocs:"ExternalDocs",bindings:"MessageBindings",examples:"MessageExampleList"},additionalProperties:{},description:"Describes a trait that MAY be applied to a Message Object. This object MAY contain any property from the Message Object, except payload and traits."},mM={properties:{action:{type:"string",enum:["send","receive"],description:"Required. Use send when it's expected that the application will send a message to the given channel, and receive when the application should expect receiving messages from the given channel."},channel:"Channel",title:{type:"string",description:"A human-friendly title for the operation."},tags:"TagList",summary:{type:"string",description:"A short summary of what the operation is about."},description:{type:"string",description:"A verbose explanation of the operation. CommonMark syntax can be used for rich text representation."},externalDocs:"ExternalDocs",operationId:{type:"string"},security:"SecuritySchemeList",bindings:"OperationBindings",traits:"OperationTraitList",messages:"MessageList",reply:"OperationReply"},required:["action","channel"]},hM={properties:{channel:"Channel",messages:"MessageList",address:"OperationReplyAddress"},description:"Describes the reply part that MAY be applied to an Operation Object. If an operation implements the request/reply pattern, the reply object represents the response message."},yM={properties:{location:{type:"string",description:"REQUIRED. A runtime expression that specifies the location of the reply address."},description:{type:"string",description:"An optional description of the address. CommonMark syntax can be used for rich text representation."}},required:["location"],description:"An object that specifies where an operation has to send the reply."},gM={properties:{messages:"NamedMessages",parameters:"NamedParameters",schemas:"NamedSchemas",replies:"NamedOperationReplies",replyAddresses:"NamedOperationRelyAddresses",correlationIds:"NamedCorrelationIds",messageTraits:"NamedMessageTraits",operationTraits:"NamedOperationTraits",tags:"NamedTags",externalDocs:"NamedExternalDocs",securitySchemes:"NamedSecuritySchemes",servers:"ServerMap",serverVariables:"ServerVariablesMap",channels:"NamedChannels",operations:"NamedOperations",serverBindings:"ServerBindings",channelBindings:"ChannelBindings",operationBindings:"OperationBindings",messageBindings:"MessageBindings"},description:"Holds a set of reusable objects for different aspects of the AsyncAPI specification. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},bM={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},authorizationUrl:{type:"string"}},required:["authorizationUrl","availableScopes"],description:"Configuration for the OAuth Implicit flow."},vM={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Resource Owner Protected Credentials flow."},SM={properties:{refreshUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["tokenUrl","availableScopes"],description:"Configuration for the OAuth Client Credentials flow."},xM={properties:{refreshUrl:{type:"string"},authorizationUrl:{type:"string"},availableScopes:{type:"object",additionalProperties:{type:"string"}},tokenUrl:{type:"string"}},required:["authorizationUrl","tokenUrl","availableScopes"],description:"Configuration for the OAuth Authorization Code flow."},wM={properties:{type:{enum:["userPassword","apiKey","X509","symmetricEncryption","asymmetricEncryption","httpApiKey","http","oauth2","openIdConnect","plain","scramSha256","scramSha512","gssapi"],description:'REQUIRED. The type of the security scheme. Valid values are "userPassword", "apiKey", "X509", "symmetricEncryption", "asymmetricEncryption", "httpApiKey", "http", "oauth2", "openIdConnect", "plain", "scramSha256", "scramSha512", and "gssapi".'},description:{type:"string",description:"A short description for security scheme. CommonMark syntax MAY be used for rich text representation."},name:{type:"string",description:"REQUIRED. The name of the header, query or cookie parameter to be used."},in:{type:"string",enum:["query","header","cookie","user","password"],description:'REQUIRED. The location of the API key. Valid values are "user" and "password" for apiKey and "query", "header" or "cookie" for httpApiKey.'},scheme:{type:"string",description:"REQUIRED. The name of the HTTP Authorization scheme to be used in the Authorization header as defined in RFC7235."},bearerFormat:{type:"string",description:"A hint to the client to identify how the bearer token is formatted. Bearer tokens are usually generated by an authorization server, so this information is primarily for documentation purposes."},flows:"SecuritySchemeFlows",openIdConnectUrl:{type:"string",description:"REQUIRED. OpenId Connect URL to discover OAuth2 configuration values. This MUST be in the form of an absolute URL."},scopes:{type:"array",items:{type:"string"},description:"List of the needed scope names. An empty array means no scopes are needed."}},required(e){switch(e?.type){case"apiKey":return["type","in"];case"httpApiKey":return["type","name","in"];case"http":return["type","scheme"];case"oauth2":return["type","flows"];case"openIdConnect":return["type","openIdConnectUrl"];default:return["type"]}},allowed(e){switch(e?.type){case"apiKey":return["type","in","description"];case"httpApiKey":return["type","name","in","description"];case"http":return["type","scheme","bearerFormat","description"];case"oauth2":return["type","flows","description","scopes"];case"openIdConnect":return["type","openIdConnectUrl","description","scopes"];default:return["type","description"]}},extensionsPrefix:"x-",description:"Defines a security scheme that can be used by the operations."},_M={...Kt.ServerBindings,properties:{...Kt.ServerBindings.properties,ros2:"Ros2ServerBinding"}},PM={...Kt.ChannelBindings,properties:{...Kt.ChannelBindings.properties,ros2:"Ros2ChannelBinding"}},EM={...Kt.OperationBindings,properties:{...Kt.OperationBindings.properties,ros2:"Ros2OperationBinding"}},$M={...Kt.MessageBindings,properties:{...Kt.MessageBindings.properties,ros2:"Ros2MessageBinding"}},Sd={...Kt,...iv,ServerBindings:_M,ChannelBindings:PM,OperationBindings:EM,MessageBindings:$M,CorrelationId:yd,SecuritySchemeFlows:bd,ServerVariable:fd,Contact:md,License:hd,MessageExample:gd,Tag:ld,Dependencies:ti,Schema:Zo,Discriminator:ni,DiscriminatorMapping:ri,SchemaProperties:ei,ServerMap:dd,ExternalDocs:ud,Root:sM,Channel:aM,Parameter:lM,Info:pM,Server:cM,MessageTrait:fM,Operation:mM,OperationReply:hM,OperationReplyAddress:yM,Components:gM,ImplicitFlow:bM,PasswordFlow:vM,ClientCredentials:SM,AuthorizationCode:xM,SecurityScheme:wM,Message:uM,OperationTrait:dM,ServerVariablesMap:q("ServerVariable"),NamedTags:q("Tag"),NamedExternalDocs:q("ExternalDocs"),NamedChannels:q("Channel"),ParametersMap:q("Parameter"),NamedOperations:q("Operation"),NamedOperationReplies:q("OperationReply"),NamedOperationRelyAddresses:q("OperationReplyAddress"),NamedSchemas:q("Schema"),NamedMessages:q("Message"),NamedMessageTraits:q("MessageTrait"),NamedOperationTraits:q("OperationTrait"),NamedParameters:q("Parameter"),NamedSecuritySchemes:q("SecurityScheme"),NamedCorrelationIds:q("CorrelationId"),ServerList:C("Server"),SecuritySchemeList:C("SecurityScheme"),MessageList:C("Message"),OperationTraitList:C("OperationTrait"),MessageTraitList:C("MessageTrait"),MessageExampleList:C("MessageExample"),TagList:C("Tag")};var AM={properties:{arazzo:{type:"string",description:"REQUIRED. This string MUST be the version number of the Arazzo Specification that the Arazzo Description uses. The arazzo field MUST be used by tooling to interpret the Arazzo Description."},info:"Info",sourceDescriptions:"SourceDescriptions",workflows:"Workflows",components:"Components"},required:["arazzo","info","sourceDescriptions","workflows"],extensionsPrefix:"x-"},TM={properties:{},additionalProperties:"Parameter"},RM={properties:{},additionalProperties:"SuccessActionObject"},OM={properties:{},additionalProperties:"FailureActionObject"},kM={properties:{inputs:"NamedInputs",parameters:"NamedParameters",successActions:"NamedSuccessActions",failureActions:"NamedFailureActions"},extensionsPrefix:"x-"},IM=q("Schema"),CM={properties:{title:{type:"string",description:"REQUIRED. A human readable title of the Arazzo Description."},description:{type:"string",description:"A description of the purpose of the workflows defined. CommonMark syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of the Arazzo Description."},version:{type:"string",description:"REQUIRED. The version identifier of the Arazzo document (which is distinct from the Arazzo Specification version)."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about API workflows defined in this Arazzo document. The metadata MAY be used by the clients if needed."},qM={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":"ArazzoSourceDescription"},NM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["openapi"],description:'The type of source description. Possible values are "openapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."},"x-serverUrl":{type:"string"}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},MM={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["arazzo"],description:'The type of source description. Possible values are "arazzo".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an OpenAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},jM={properties:{reference:{type:"string",description:"REQUIRED. A Runtime Expression used to reference the desired object."},value:{}},required:["reference"],extensionsPrefix:"x-",description:"A simple object to allow referencing of objects contained within the Components Object. It can be used from locations within steps or workflows in the Arazzo Description. Note - Input Objects MUST use standard JSON Schema referencing via the $ref keyword while all non JSON Schema objects use this object and its expression based referencing mechanism."},DM={properties:{in:{type:"string",enum:["header","query","path","cookie"],description:'The location of the parameter. Possible values are "path", "query", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'},name:{type:"string",description:"REQUIRED. The name of the parameter. Parameter names are case sensitive."},value:{}},required:["name","value"],extensionsPrefix:"x-",description:"Describes a single step parameter. A unique parameter is defined by the combination of a name and in fields."},LM={properties:{},items:e=>e?.reference?"ReusableObject":"Parameter"},UM={properties:{workflowId:{type:"string",description:"REQUIRED. The unique identifier of the workflow."},summary:{type:"string",description:"A short summary of what the workflow does."},description:{type:"string",description:"A verbose explanation of the workflow behavior. CommonMark syntax MAY be used for rich text representation."},parameters:"Parameters",dependsOn:{type:"array",items:{type:"string"},description:"A list of workflows that MUST be completed before this workflow can be processed. Each value provided MUST be a workflowId."},inputs:"Schema",outputs:"Outputs",steps:"Steps",successActions:"OnSuccessActionList",failureActions:"OnFailureActionList","x-security":"ExtendedSecurityList"},required:["workflowId","steps"],extensionsPrefix:"x-",description:"Describes the steps to be taken across one or more APIs to achieve an objective. The workflow object MAY define inputs needed in order to execute workflow steps, where the defined steps represent a call to an API operation or another workflow, and a set of outputs."},zM=C("Workflow"),FM=C("Step"),VM={properties:{stepId:{type:"string",description:"REQUIRED. Unique string to represent the step. The stepId MUST be unique amongst all steps described in the workflow. The stepId value is case-sensitive. Tools and libraries MAY use the stepId to uniquely identify a workflow step, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},description:{type:"string",description:"A description of the step. CommonMark syntax MAY be used for rich text representation."},operationId:{type:"string",description:"The name of an existing, resolvable operation, as defined with a unique operationId and existing within one of the sourceDescriptions. The referenced operation will be invoked by this workflow step. If multiple (non arazzo type) sourceDescriptions are defined, then the operationId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<operationId>) to avoid ambiguity or potential clashes. This field is mutually exclusive of the operationPath and workflowId fields respectively."},operationPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an operation. This field is mutually exclusive of the operationId and workflowId fields respectively. The operation being referenced MUST be described within one of the sourceDescriptions descriptions. A Runtime Expression syntax MUST be used to identify the source description document. If the referenced operation has an operationId defined then the operationId SHOULD be preferred over the operationPath."},workflowId:{type:"string",description:"The workflowId referencing an existing workflow within the Arazzo Description. If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. The field is mutually exclusive of the operationId and operationPath fields respectively."},parameters:"Parameters",successCriteria:C("CriterionObject",{description:"A list of assertions to determine the success of the step. Each assertion is described using a Criterion Object. All assertions MUST be satisfied for the step to be deemed successful."}),onSuccess:"OnSuccessActionList",onFailure:"OnFailureActionList",outputs:"Outputs","x-operation":"ExtendedOperation","x-security":"ExtendedSecurityList",requestBody:"RequestBody"},required:["stepId"],requiredOneOf:["x-operation","operationId","operationPath","workflowId"],extensionsPrefix:"x-",description:"Describes a single workflow step which MAY be a call to an API operation (OpenAPI Operation Object) or another Workflow Object."},BM={properties:{},additionalProperties:{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},HM={properties:{contentType:{type:"string",description:"The Content-Type for the request content. If omitted then refer to Content-Type specified at the targeted operation to understand serialization requirements."},payload:{},replacements:C("Replacement",{description:"A list of locations and values to set within a payload."})},required:["payload"],extensionsPrefix:"x-",description:"A single request body describing the Content-Type and request body content to be passed by a step to an operation."},KM={properties:{target:{type:"string",description:"REQUIRED. A JSON Pointer or XPath Expression which MUST be resolved against the request body. Used to identify the location to inject the value."},value:{}},required:["target","value"],extensionsPrefix:"x-",description:"Describes a location within a payload (e.g., a request body) and a value to set within the location."},GM={properties:{schemeName:{type:"string",description:"REQUIRED. Name of the security scheme from your OpenAPI specification. Use with operationId or operationPath at the step level."},values:{},scheme:"SecurityScheme"},required:["values"],requiredOneOf:["schemeName","scheme"],description:"Use the x-security extension to define authorization flows based on OpenAPI security schemes. Respect automatically constructs appropriate authorization headers, queries, or cookies based on your parameters."},YM={properties:{url:{type:"string",description:"REQUIRED. A valid url including the protocol (such as http://localhost:4000/my-api or https://example.com/api/my-api)."},method:{enum:["get","post","put","delete","patch","head","options","trace","connect","query","GET","POST","PUT","DELETE","PATCH","OPTIONS","HEAD","TRACE","CONNECT","QUERY"],description:"REQUIRED. HTTP operation method. Possible values: GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS, CONNECT, TRACE. You can also use their lowercase equivalents."}},required:["url","method"],description:"x-operation enables you to specify a URL and HTTP method for an operation that is not described in the Arazzo sourceDescriptions section. The primary application of the x-operation extension is to facilitate calls to third-party APIs or other endpoints that are needed in a sequence of API calls."},WM={properties:{condition:{type:"string",description:"REQUIRED. The condition to apply. Conditions can be simple (e.g. $statusCode == 200 which applies an operator on a value obtained from a runtime expression), or a regex, or a JSONPath expression. For regex or JSONPath, the type and context MUST be specified."},context:{type:"string",description:"A Runtime Expression used to set the context for the condition to be applied on. If type is specified, then the context MUST be provided (e.g. $response.body would set the context that a JSONPath query expression could be applied to)."},type:e=>{if(e)return typeof e=="string"?{enum:["regex","jsonpath","simple","xpath"],description:"The type of condition to be applied."}:e?.type==="jsonpath"?"JSONPathCriterion":"XPathCriterion"}},required:["condition"],description:"An object used to specify the context, conditions, and condition types that can be used to prove or satisfy assertions specified in Step Object successCriteria, Success Action Object criteria, and Failure Action Object criteria."},QM={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["draft-goessner-dispatch-jsonpath-00"]}}},JM={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-30","xpath-20","xpath-10"]}}},XM={properties:{name:{type:"string",description:"REQUIRED. The name of the success action. Names are case sensitive."},type:{type:"string",enum:["goto","end"],description:'REQUIRED. The type of action to take. Possible values are "end" or "goto".'},stepId:{type:"string",description:'The stepId to transfer to upon success of the step. This field is only relevant when the type field value is "goto". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId.'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon success of the step. This field is only relevant when the type field value is "goto". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId.'},criteria:C("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object. All criteria assertions MUST be satisfied for the action to be executed."})},required:["type","name"],description:"A single success action which describes an action to take upon success of a workflow step."},ZM={properties:{},items:e=>e?.type&&e?.name?"SuccessActionObject":"ReusableObject"},ej={properties:{name:{type:"string",description:"REQUIRED. The name of the failure action. Names are case sensitive."},type:{type:"string",enum:["goto","retry","end"],description:'REQUIRED. The type of action to take. Possible values are "end", "retry", or "goto".'},workflowId:{type:"string",description:'The workflowId referencing an existing workflow within the Arazzo Description to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". If the referenced workflow is contained within an arazzo type sourceDescription, then the workflowId MUST be specified using a Runtime Expression (e.g., $sourceDescriptions.<name>.<workflowId>) to avoid ambiguity or potential clashes. This field is mutually exclusive to stepId. When used with "retry", context transfers back upon completion of the specified workflow.'},stepId:{type:"string",description:'The stepId to transfer to upon failure of the step. This field is only relevant when the type field value is "goto" or "retry". The referenced stepId MUST be within the current workflow. This field is mutually exclusive to workflowId. When used with "retry", context transfers back upon completion of the specified step.'},retryAfter:{type:"number",minimum:0,description:'A non-negative decimal indicating the seconds to delay after the step failure before another attempt SHALL be made. Note: if an HTTP Retry-After response header was returned to a step from a targeted operation, then it SHOULD overrule this particular field value. This field only applies when the type field value is "retry".'},retryLimit:{type:"number",minimum:0,description:'A non-negative integer indicating how many attempts to retry the step MAY be attempted before failing the overall step. If not specified then a single retry SHALL be attempted. This field only applies when the type field value is "retry". The retryLimit MUST be exhausted prior to executing subsequent failure actions.'},criteria:C("CriterionObject",{description:"A list of assertions to determine if this action SHALL be executed. Each assertion is described using a Criterion Object."})},required:["type","name"],description:"A single failure action which describes an action to take upon failure of a workflow step."},tj={properties:{},items:e=>e?.type&&e?.name?"FailureActionObject":"ReusableObject"},We={Root:AM,Info:CM,SourceDescriptions:qM,OpenAPISourceDescription:NM,ArazzoSourceDescription:MM,Parameters:LM,Parameter:DM,ReusableObject:jM,Workflows:zM,Workflow:UM,Steps:FM,Step:VM,RequestBody:HM,Replacement:KM,ExtendedOperation:YM,ExtendedSecurityList:C("ExtendedSecurity"),ExtendedSecurity:GM,Outputs:BM,CriterionObject:WM,XPathCriterion:JM,JSONPathCriterion:QM,SuccessActionObject:XM,OnSuccessActionList:ZM,FailureActionObject:ej,OnFailureActionList:tj,Schema:Ye.Schema,NamedSchemas:q("Schema"),ExternalDocs:Ye.ExternalDocs,DiscriminatorMapping:Ye.DiscriminatorMapping,Discriminator:Ye.Discriminator,DependentRequired:Ye.DependentRequired,SchemaProperties:Ye.SchemaProperties,PatternProperties:Ye.SchemaProperties,Components:kM,NamedInputs:IM,NamedParameters:TM,NamedSuccessActions:RM,NamedFailureActions:OM,Xml:Ye.Xml,SecurityScheme:Ye.SecurityScheme,OAuth2Flows:Ye.OAuth2Flows,ImplicitFlow:Ye.ImplicitFlow,PasswordFlow:Ye.PasswordFlow,ClientCredentials:Ye.ClientCredentials,AuthorizationCode:Ye.AuthorizationCode,DeviceAuthorization:Ye.DeviceAuthorization};var rj={...We.Root,properties:{...We.Root.properties,$self:{type:"string",description:"This string MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.1. The $self field provides the self-assigned URI of this document, which also serves as its base URI in accordance with [RFC3986] Section 5.1.1."}}},nj={properties:{},items:e=>e?.type==="openapi"?"OpenAPISourceDescription":e?.type==="asyncapi"?"AsyncAPISourceDescription":"ArazzoSourceDescription"},oj={properties:{name:{type:"string",description:"REQUIRED. A unique name for the source description. Tools and libraries MAY use the name to uniquely identify a source description, therefore, it is RECOMMENDED to follow common programming naming conventions. SHOULD conform to the regular expression [A-Za-z0-9_-]+."},type:{type:"string",enum:["asyncapi"],description:'The type of source description. Possible values are "asyncapi".'},url:{type:"string",description:"REQUIRED. A URL to a source description to be used by a workflow. If a relative reference is used, it MUST be in the form of a URI-reference as defined by [RFC3986] Section 4.2."}},required:["name","type","url"],extensionsPrefix:"x-",description:"Describes a source description (such as an AsyncAPI description) that will be referenced by one or more workflows described within an Arazzo Description."},ij={...We.Parameter,properties:{...We.Parameter.properties,in:{type:"string",enum:["header","query","path","cookie","querystring"],description:'The location of the parameter. Possible values are "path", "query", "querystring", "header", or "cookie". When the step in context specifies a workflowId, then all parameters map to workflow inputs. In all other scenarios (e.g., a step specifies an operationId), the in field MUST be specified.'}}},sj={...We.Step,properties:{...We.Step.properties,channelPath:{type:"string",description:"A reference to a Source Description Object combined with a JSON Pointer to reference an AsyncAPI channel. This field is mutually exclusive of the operationId, operationPath, and workflowId fields respectively. A Runtime Expression syntax MUST be used to identify the source description document."},action:{type:"string",enum:["send","receive"],description:'Describes the intent of the message flow for an AsyncAPI operation. Possible values are "send" or "receive".'},correlationId:{type:"string",description:'A Runtime Expression used to correlate a request with a response when interacting with asynchronous APIs. Applies to "receive" steps.'},timeout:{type:"integer",minimum:0,description:"A non-negative integer indicating the maximum amount of time (in milliseconds) to wait before timing out."},dependsOn:{type:"array",items:{type:"string"},description:"A list of steps that MUST be completed before this step can be executed. Each value provided MUST be a stepId."}},requiredOneOf:["x-operation","operationId","operationPath","channelPath","workflowId"]},aj={properties:{type:{type:"string",enum:["jsonpath"]},version:{type:"string",enum:["rfc9535","draft-goessner-dispatch-jsonpath-00"]}},required:["type","version"]},cj={properties:{type:{type:"string",enum:["xpath"]},version:{type:"string",enum:["xpath-31","xpath-30","xpath-20","xpath-10"]}},required:["type","version"]},pj={properties:{type:{type:"string",enum:["jsonpointer"]},version:{type:"string",enum:["rfc6901"]}},required:["type","version"]},lj={properties:{type:{type:"string",enum:["jsonpath","xpath","jsonpointer"],description:"REQUIRED. The selector type. The options allowed are jsonpath, xpath, or jsonpointer."},version:{type:"string",description:"REQUIRED. A short hand string representing the version of the expression type being used."}},required:["type","version"]},uj=e=>e?.type==="jsonpath"?"JSONPathExpression":e?.type==="xpath"?"XPathExpression":e?.type==="jsonpointer"?"JSONPointerExpression":"ExpressionType",xd=(e,t,{optional:r=!0}={})=>n=>{if(!(r&&!n))return typeof n=="string"?{enum:e,description:t}:uj(n)},dj={...We.CriterionObject,properties:{...We.CriterionObject.properties,type:xd(["regex","jsonpath","simple","xpath"],"The type of condition to be applied.")}},fj={properties:{context:{type:"string",description:"REQUIRED. A Runtime Expression that evaluates to structured data (e.g., $response.body) the selector is applied to."},selector:{type:"string",description:"REQUIRED. The selector expression (JSONPath, XPath, or JSON Pointer) used to extract data from the context."},type:xd(["jsonpath","xpath","jsonpointer"],"The type of selector to be applied.",{optional:!1})},required:["context","selector","type"],extensionsPrefix:"x-",description:"An object used to extract specific data from structured content using JSONPath, XPath, or JSON Pointer expressions."},mj={properties:{},additionalProperties:e=>O(e)?"SelectorObject":{type:"string"},description:"A map between a friendly name and a dynamic output value defined using a Runtime Expression or a Selector Object. The name MUST use keys that match the regular expression: ^[a-zA-Z0-9_.-]+$."},hj={...We.Replacement,properties:{...We.Replacement.properties,value:e=>O(e)&&"selector"in e?"SelectorObject":{},targetSelectorType:xd(["jsonpath","xpath","jsonpointer"],"The type of selector used in the target field.")}},yj={...We.SuccessActionObject,properties:{...We.SuccessActionObject.properties,parameters:"Parameters"}},gj={...We.FailureActionObject,properties:{...We.FailureActionObject.properties,parameters:"Parameters"}},wd={...We,Root:rj,SourceDescriptions:nj,AsyncAPISourceDescription:oj,Parameter:ij,Step:sj,CriterionObject:dj,JSONPathExpression:aj,XPathExpression:cj,JSONPointerExpression:pj,ExpressionType:lj,SelectorObject:fj,Outputs:mj,Replacement:hj,SuccessActionObject:yj,FailureActionObject:gj};var bj={properties:{overlay:{type:"string",description:"REQUIRED. This string MUST be the version number of the Overlay Specification that the Overlay document uses. The overlay field SHOULD be used by tooling to interpret the Overlay document."},info:"Info",extends:{type:"string",description:"URI reference that identifies the target document (such as an [OpenAPI] document) this overlay applies to."},actions:"Actions"},required:["overlay","info","actions"],extensionsPrefix:"x-",description:"This is the root object of the Overlay."},vj={properties:{title:{type:"string",description:"REQUIRED. A human readable description of the purpose of the overlay."},version:{type:"string",description:"REQUIRED. A version identifer for indicating changes to the Overlay document."}},required:["title","version"],extensionsPrefix:"x-",description:"The object provides metadata about the Overlay. The metadata MAY be used by the clients if needed."},Sj=C("Action"),xj={properties:{target:{type:"string",description:"REQUIRED A JSONPath expression selecting nodes in the target document."},description:{type:"string",description:"A description of the action. [CommonMark] syntax MAY be used for rich text representation."},update:{},remove:{type:"boolean",description:"A boolean value that indicates that the target object or array MUST be removed from the the map or array it is contained in. The default value is false."}},required:["target"],extensionsPrefix:"x-",description:"This object represents one or more changes to be applied to the target document at the location defined by the target JSONPath expression"},_d={Root:bj,Info:vj,Actions:Sj,Action:xj};var wj={properties:{openrpc:{type:"string",description:"REQUIRED. This string MUST be the semantic version number of the OpenRPC Specification version that the OpenRPC document uses. The openrpc field SHOULD be used by tooling specifications and clients to interpret the OpenRPC document. This is not related to the API info.version string."},info:"Info",servers:"ServerList",methods:"MethodList",components:"Components",externalDocs:"ExternalDocs"},required:["openrpc","info","methods"],extensionsPrefix:"x-",description:"This is the root object of the OpenRPC document. The contents of this object represent a whole OpenRPC document. How this object is constructed or stored is outside the scope of the OpenRPC Specification."},_j={properties:{title:{type:"string",description:"REQUIRED. The title of the application."},description:{type:"string",description:"A verbose description of the application. GitHub Flavored Markdown syntax MAY be used for rich text representation."},termsOfService:{type:"string",description:"A URL to the Terms of Service for the API. MUST be in the format of a URL."},contact:"Contact",license:"License",version:{type:"string",description:"REQUIRED. The version of the OpenRPC document (which is distinct from the OpenRPC Specification version or the API implementation version)."}},required:["title","version"],extensionsPrefix:"x-",description:"REQUIRED. Provides metadata about the API. The metadata MAY be used by tooling as required."},Pj={properties:{name:{type:"string",description:"The identifying name of the contact person/organization."},url:{type:"string",description:"The URL pointing to the contact information. MUST be in the format of a URL."},email:{type:"string",description:"The email address of the contact person/organization. MUST be in the format of an email address."}},extensionsPrefix:"x-",description:"Contact information for the exposed API."},Ej={properties:{name:{type:"string",description:"REQUIRED. The license name used for the API."},url:{type:"string",description:"A URL to the license used for the API. MUST be in the format of a URL."}},required:["name"],extensionsPrefix:"x-",description:"License information for the exposed API."},$j={properties:{url:{type:"string",description:"REQUIRED. A URL to the target host. This URL supports Server Variables and MAY be relative, to indicate that the host location is relative to the location where the OpenRPC document is being served. Server Variables are passed into the Runtime Expression to produce a server URL."},name:{type:"string",description:"REQUIRED. A name to be used as the canonical name for the server."},description:{type:"string",description:"An optional string describing the host designated by the URL. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"A short summary of what the server is."},variables:"ServerVariablesMap"},required:["url"],extensionsPrefix:"x-",description:"An object representing a Server."},Aj={properties:{enum:{type:"array",items:{type:"string"},description:"An enumeration of string values to be used if the substitution options are from a limited set."},default:{type:"string",description:"REQUIRED. The default value to use for substitution, which SHALL be sent if an alternate value is not supplied. Note this behavior is different than the Schema Object\u2019s treatment of default values, because in those cases parameter values are optional."},description:{type:"string",description:"An optional description for the server variable. GitHub Flavored Markdown syntax MAY be used for rich text representation."}},required:["default"],extensionsPrefix:"x-",description:"An object representing a Server Variable for server URL template substitution."},Tj={properties:{name:{type:"string",description:"REQUIRED. The cannonical name for the method. The name MUST be unique within the methods array."},tags:"TagList",summary:{type:"string",description:"A short summary of what the method does."},description:{type:"string",description:"A verbose explanation of the method behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs",params:"ContentDescriptorList",result:"ContentDescriptor",deprecated:{type:"boolean",description:"Declares this method to be deprecated. Consumers SHOULD refrain from usage of the declared method. Default value is false."},servers:"ServerList",errors:"ErrorList",links:"LinkList",paramStructure:{enum:["by-name","by-position","either"]},examples:"ExamplePairingList"},required:["name","params"],extensionsPrefix:"x-",description:"Describes the interface for the given method name. The method name is used as the method field of the JSON-RPC body. It therefore MUST be unique."},Rj={properties:{name:{type:"string",description:"REQUIRED. Name of the content that is being described. If the content described is a method parameter assignable by-name, this field SHALL define the parameter\u2019s key (ie name)."},summary:{type:"string",description:"A short summary of the content that is being described."},description:{type:"string",description:"A verbose explanation of the content descriptor behavior. GitHub Flavored Markdown syntax MAY be used for rich text representation."},required:{type:"boolean",description:"Determines if the content is a required field. Default value is false."},schema:"Schema",deprecated:{type:"boolean",description:"Specifies that the content is deprecated and SHOULD be transitioned out of usage. Default value is false."}},required:["name","schema"],extensionsPrefix:"x-",description:"Content Descriptors are objects that do just as they suggest - describe content. They are reusable ways of describing either parameters or result. They MUST have a schema."},Oj={properties:{name:{type:"string",description:"REQUIRED Name for the example pairing."},description:{type:"string",description:"A verbose explanation of the example pairing."},summary:{type:"string",description:"Short description for the example pairing."},params:"ExampleList",result:"Example"},extensionsPrefix:"x-",description:"The Example Pairing object consists of a set of example params and result. The result is what you can expect from the JSON-RPC service given the exact params."},kj={properties:{name:{type:"string",description:"Cannonical name of the example."},summary:{type:"string",description:"Short description for the example."},description:{type:"string",description:"A verbose explanation of the example. GitHub Flavored Markdown syntax MAY be used for rich text representation."},value:{resolvable:!1,description:"Embedded literal example. The value field and externalValue field are mutually exclusive. To represent examples of media types that cannot naturally represented in JSON, use a string value to contain the example, escaping where necessary."},externalValue:{type:"string",description:"A URL that points to the literal example. This provides the capability to reference examples that cannot easily be included in JSON documents. The value field and externalValue field are mutually exclusive."}},extensionsPrefix:"x-",description:"The Example object is an object that defines an example that is intended to match the schema of a given Content Descriptor."},Ij={properties:{name:{type:"string",description:"REQUIRED. Canonical name of the link."},description:{type:"string",description:"A description of the link. GitHub Flavored Markdown syntax MAY be used for rich text representation."},summary:{type:"string",description:"Short description for the link."},method:{type:"string",description:"The name of an existing, resolvable OpenRPC method, as defined with a unique method. This field MUST resolve to a unique Method Object. As opposed to Open Api, Relative method values ARE NOT permitted."},params:{type:"object",description:"A map representing parameters to pass to a method as specified with method. The key is the parameter name to be used, whereas the value can be a constant or a runtime expression to be evaluated and passed to the linked method."},server:"Server"},required:["name"],extensionsPrefix:"x-",description:"The Link object represents a possible design-time link for a result. The presence of a link does not guarantee the caller\u2019s ability to successfully invoke it, rather it provides a known relationship and traversal mechanism between results and other methods."},Cj={properties:{code:{type:"integer",description:"REQUIRED. A Number that indicates the error type that occurred. This MUST be an integer. The error codes from and including -32768 to -32000 are reserved for pre-defined errors. These pre-defined errors SHOULD be assumed to be returned from any JSON-RPC api."},message:{type:"string",description:"REQUIRED. A String providing a short description of the error. The message SHOULD be limited to a concise single sentence."},data:{resolvable:!1,description:"A Primitive or Structured value that contains additional information about the error. This may be omitted. The value of this member is defined by the Server (e.g. detailed error information, nested errors etc.)."}},required:["code","message"],extensionsPrefix:"x-",description:"Defines an application level error."},qj={properties:{contentDescriptors:"NamedContentDescriptors",schemas:"NamedSchemas",examples:"NamedExamples",links:"NamedLinks",errors:"NamedErrors",examplePairingObjects:"NamedExamplePairingObjects",tags:"NamedTags"},extensionsPrefix:"x-",description:"Holds a set of reusable objects for different aspects of the OpenRPC. All objects defined within the components object will have no effect on the API unless they are explicitly referenced from properties outside the components object."},Nj={properties:{name:{type:"string",description:"REQUIRED. The name of the tag."},summary:{type:"string",description:"A short summary of the tag."},description:{type:"string",description:"A verbose explanation for the tag. GitHub Flavored Markdown syntax MAY be used for rich text representation."},externalDocs:"ExternalDocs"},required:["name"],extensionsPrefix:"x-",description:"Adds metadata to a single tag that is used by the Method Object. It is not mandatory to have a Tag Object per tag defined in the Method Object instances."},Mj={properties:{description:{type:"string",description:"A verbose explanation of the target documentation. GitHub Flavored Markdown syntax MAY be used for rich text representation."},url:{type:"string",description:"REQUIRED. The URL for the target documentation. Value MUST be in the format of a URL."}},required:["url"],extensionsPrefix:"x-",description:"Allows referencing an external resource for extended documentation."},Pd={Root:wj,Info:_j,Contact:Pj,License:Ej,Server:$j,ServerList:C("Server"),ServerVariable:Aj,ServerVariablesMap:q("ServerVariable"),Method:Tj,MethodList:C("Method"),ContentDescriptor:Rj,ContentDescriptorList:C("ContentDescriptor"),ExamplePairing:Oj,ExamplePairingList:C("ExamplePairing"),Example:kj,ExampleList:C("Example"),Link:Ij,LinkList:C("Link"),ErrorObject:Cj,ErrorList:C("ErrorObject"),Components:qj,Tag:Nj,TagList:C("Tag"),ExternalDocs:Mj,Schema:Zo,SchemaProperties:ei,Dependencies:ti,DiscriminatorMapping:ri,Discriminator:ni,NamedContentDescriptors:q("ContentDescriptor"),NamedSchemas:q("Schema"),NamedExamples:q("Example"),NamedLinks:q("Link"),NamedErrors:q("ErrorObject"),NamedExamplePairingObjects:q("ExamplePairing"),NamedTags:q("Tag")};var vv={hide:{type:"boolean"},component:{type:"string",enum:["radio","checkbox"]},label:{type:"string"},items:{type:"array",items:{type:"string"}}},As={type:"object",properties:vv,additionalProperties:!1},jj={type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},placeholder:{type:"string"}},additionalProperties:!1},Ts={type:"object",properties:{hide:{type:"boolean"},type:{type:"string",enum:["rating","sentiment","comment","reasons","mood","scale"]},settings:{type:"object",properties:{label:{type:"string"},submitText:{type:"string"},buttonText:{type:"string"},component:{type:"string",enum:["radio","checkbox"]},items:{type:"array",items:{type:"string"},minItems:1},leftScaleLabel:{type:"string"},rightScaleLabel:{type:"string"},reasons:{type:"object",properties:{...vv,like:As,dislike:As,satisfied:As,neutral:As,dissatisfied:As},additionalProperties:!1},comment:{type:"object",properties:{hide:{type:"boolean"},label:{type:"string"},likeLabel:{type:"string"},dislikeLabel:{type:"string"},satisfiedLabel:{type:"string"},neutralLabel:{type:"string"},dissatisfiedLabel:{type:"string"}},additionalProperties:!1},optionalEmail:jj},additionalProperties:!1}},additionalProperties:!1},Dj={type:"object",properties:{languages:{type:"array",items:{type:"object",properties:{lang:{type:"string"},label:{type:"string"},options:{type:"object",properties:{indent:{type:"string"},withImports:{type:"boolean"},withComments:{type:"boolean"},binary:{type:"boolean"},credentials:{type:"string",enum:["omit","same-origin","include"]}},additionalProperties:!1}},required:["lang"],additionalProperties:!1}},skipOptionalParameters:{type:"boolean"},withOAuth2Call:{type:"boolean"}},additionalProperties:!1},Td={type:"array",items:{type:"object",properties:{title:{type:"string"},url:{type:"string"}},required:["url"],additionalProperties:!1}},fc={type:"object",properties:{licenseKey:{type:"string"},hideLoading:{type:"boolean"},hideSidebar:{type:"boolean"},feedback:Ts,hideReplay:{type:"boolean"},oAuth2RedirectURI:{type:"string"},corsProxyUrl:{type:"string"},sortRequiredPropsFirst:{type:"boolean"},sanitize:{type:"boolean"},hideDownloadButtons:{type:"boolean"},downloadUrls:Td,onlyRequiredInSamples:{type:"boolean"},generatedSamplesMaxDepth:{oneOf:[{type:"number"},{type:"string"}]},showExtensions:{oneOf:[{type:"boolean"},{type:"string"},{type:"array",items:{type:"string"}}]},hideSchemaTitles:{type:"boolean"},jsonSamplesExpandLevel:{oneOf:[{type:"number"},{type:"string"}]},schemasExpansionLevel:{oneOf:[{type:"number"},{type:"string"}]},mockServer:{type:"object",properties:{url:{type:"string"},position:{type:"string",enum:["first","last","replace","off"]},description:{type:"string"}}},maxDisplayedEnumValues:{type:"number"},schemaDefinitionsTagName:{type:"string"},layout:{type:"string",enum:["stacked","three-panel"]},hideInfoMetadata:{type:"boolean"},events:{type:"object"},skipBundle:{type:"boolean"},routingBasePath:{type:"string"},codeSamples:Dj,ignoreNamedSchemas:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},hidePropertiesPrefix:{type:"boolean"},excludeFromSearch:{type:"boolean"},showSchemaCatalogLinks:{type:"boolean"}},additionalProperties:!1},oi={type:"object",properties:{includeByName:{type:"array",items:{type:"string"}},excludeByName:{type:"array",items:{type:"string"}}},additionalProperties:!1},Lj={type:"object",properties:{name:{type:"string"},items:oi,queries:oi,mutations:oi,subscriptions:oi,types:oi,directives:oi},required:["name"],additionalProperties:!1},Uj={type:"object",properties:{requireExactGroups:{type:"boolean"},groups:{type:"array",items:Lj},otherItemsGroupName:{type:"string"}},required:["requireExactGroups","groups","otherItemsGroupName"],additionalProperties:!1},zj={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},email:{type:"string",format:"email"}},additionalProperties:!1},Fj={type:"object",properties:{name:{type:"string"},url:{type:"string",format:"uri"},identifier:{type:"string"}},additionalProperties:!1},Vj={type:"object",properties:{title:{type:"string"},version:{type:"string"},description:{type:"string"},termsOfService:{type:"string",format:"uri"},contact:zj,license:Fj},additionalProperties:!1},mc={type:"object",properties:{menu:{type:"object",properties:{...Uj.properties},additionalProperties:!1},sidebar:{type:"object",properties:{hide:{type:"boolean"}}},downloadUrls:Td,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},samplesMaxInlineArgs:{type:"number"},licenseKey:{type:"string"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},metadata:{type:"object",properties:{apiId:{type:"string"}},additionalProperties:!0},feedback:Ts,layout:{type:"string",enum:["stacked","three-panel"]},showBuiltInScalars:{type:"boolean"},showBuiltInDirectives:{type:"boolean"},excludeFromSearch:{type:"boolean"},info:Vj},additionalProperties:!1},Bj={type:"object",properties:{downloadUrls:Td,apiLogo:{type:"object",properties:{imageUrl:{type:"string"},href:{type:"string"},altText:{type:"string"},backgroundColor:{type:"string"}}},jsonSamplesDepth:{type:"number"},excludeFromSearch:{type:"boolean"},samplesMaxInlineArgs:{type:"number"},fieldExpandLevel:{type:"number"},baseUrlPath:{type:"string"},feedback:Ts,layout:{type:"string",enum:["stacked","three-panel"]}},additionalProperties:!1},Hj={type:"object",properties:{label:{type:"string"},lang:{type:"string",enum:["curl","C#","Go","Java","Java8+Apache","JavaScript","Node.js","PHP","Python","R","Ruby"]}},required:["lang"]},Kj={type:"object",properties:{enum:{type:"string"},enumSingleValue:{type:"string"},enumArray:{type:"string"},default:{type:"string"},deprecated:{type:"string"},example:{type:"string"},examples:{type:"string"},nullable:{type:"string"},recursive:{type:"string"},arrayOf:{type:"string"},webhook:{type:"string"},authorizations:{type:"string"},tryItAuthBasicUsername:{type:"string"},tryItAuthBasicPassword:{type:"string"}}},sv={type:"object",properties:{label:{type:"string"},link:{type:"string"},target:{type:"string"}},required:["label","link"]},Gj={type:"object",properties:{beforeInfo:{type:"array",items:sv},end:{type:"array",items:sv}}},so={type:"object",properties:{main:{type:"string"},light:{type:"string"},dark:{type:"string"},contrastText:{type:"string"}}},pc={type:"object",properties:{backgroundColor:{type:"string"},borderColor:{type:"string"},color:{type:"string"},tabTextColor:{type:"string"}}},Yj={type:"object",properties:Sc(so.properties,["light","dark"])},Wj={type:"object",properties:{basic:{type:"string"},delete:{type:"string"},get:{type:"string"},head:{type:"string"},link:{type:"string"},options:{type:"string"},patch:{type:"string"},post:{type:"string"},put:{type:"string"}}},Qj={type:"object",properties:{error:pc,info:pc,redirect:pc,success:pc}},Jj={type:"object",properties:ii(so.properties,["dark"])},Xj={type:"object",properties:{primary:{type:"string"},secondary:{type:"string"},light:{type:"string"}}},Zj={type:"object",properties:{accent:so,border:Yj,error:so,http:Wj,primary:so,responses:Qj,secondary:Jj,success:so,text:Xj,tonalOffset:{type:"number"},warning:so}},lc={type:"object",properties:{fontSize:{type:"string"},padding:{type:"string"},minWidth:{type:"string"}}},eD={type:"object",properties:{small:lc,medium:lc,large:lc,xlarge:lc}},Ir={type:"object",properties:{fontFamily:{type:"string"},fontSize:{type:"string"},fontWeight:{type:"string"},lineHeight:{type:"string"}}},tD={type:"object",properties:{...ii(Ir.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},hoverStyle:{type:"string"},boxShadow:{type:"string"},hoverBoxShadow:{type:"string"},sizes:eD}},av={type:"object",properties:Sc(Ir.properties,["fontSize","lineHeight"])},rD={type:"object",properties:{medium:av,small:av}},nD={type:"object",properties:{...ii(Ir.properties,["fontSize","lineHeight"]),borderRadius:{type:"string"},color:{type:"string"},sizes:rD}},oD={type:"object",properties:{top:{type:"string"},width:{type:"string"},height:{type:"string"}}},iD={type:"object",properties:{borderRadius:{type:"string"},backgroundColor:{type:"string"}}},cv={type:"object",properties:{fullWidth:{type:"boolean"}}},sD={type:"object",properties:{buttons:tD,httpBadges:nD,layoutControls:oD,panels:iD,tryItButton:cv,tryItSendButton:cv}},hc={type:"object",properties:{small:{type:"string"},medium:{type:"string"},large:{type:"string"}}},aD={type:"object",properties:{maxWidth:hc}},cD={type:"object",properties:{maxWidth:hc,middlePanelMaxWidth:hc}},pD={type:"object",properties:{showDarkRightPanel:{type:"boolean"},stacked:aD,"three-panel":cD}},pv={type:"object",properties:{backgroundColor:{type:"string"},border:{type:"string"}}},lD={type:"object",properties:{breakFieldNames:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},constraints:pv,defaultDetailsWidth:{type:"string"},examples:pv,labelsTextSize:{type:"string"},linesColor:{type:"string"},nestedBackground:{type:"string"},nestingSpacing:{type:"string"},requireLabelColor:{type:"string"},typeNameColor:{type:"string"},typeTitleColor:{type:"string"}}},Sv={type:"object",properties:{subItemsColor:{type:"string"},textTransform:{type:"string"},fontWeight:{type:"string"}}},uD={type:"object",properties:Sc(Sv.properties,["textTransform"])},dD={type:"object",properties:{unit:{type:"number"},paddingHorizontal:{type:"string"},paddingVertical:{type:"string"},offsetTop:{type:"string"},offsetLeft:{type:"string"},offsetNesting:{type:"string"}}},fD={type:"object",properties:{...ii(Ir.properties,["fontWeight","lineHeight"]),activeBgColor:{type:"string"},activeTextColor:{type:"string"},backgroundColor:{type:"string"},borderRadius:{type:"string"},breakPath:{type:"boolean"},caretColor:{type:"string"},caretSize:{type:"string"},groupItems:Sv,level1items:uD,rightLineColor:{type:"string"},separatorLabelColor:{type:"string"},showAtBreakpoint:{type:"string"},spacing:dD,textColor:{type:"string"},width:{type:"string"}}},uc={type:"object",properties:{...Ir.properties,color:{type:"string"},transform:{type:"string"}}},mD={type:"object",properties:{...Ir.properties,backgroundColor:{type:"string"},color:{type:"string"},wordBreak:{type:"string",enum:["break-all","break-word","keep-all","normal","revert","unset","inherit","initial"]},wrap:{type:"boolean"}}},hD={type:"object",properties:ii(Ir.properties,["fontSize"])},yD={type:"object",properties:{color:{type:"string"},hover:{type:"string"},textDecoration:{type:"string"},hoverTextDecoration:{type:"string"},visited:{type:"string"}}},gD={type:"object",properties:{code:mD,fieldName:Ir,...Sc(Ir.properties,["fontSize","fontFamily"]),fontWeightBold:{type:"string"},fontWeightLight:{type:"string"},fontWeightRegular:{type:"string"},heading1:uc,heading2:uc,heading3:uc,headings:hD,lineHeight:{type:"string"},links:yD,optimizeSpeed:{type:"boolean"},rightPanelHeading:uc,smoothing:{type:"string",enum:["auto","none","antialiased","subpixel-antialiased","grayscale"]}}},bD={type:"object",properties:{color:{type:"string"},...ii(Ir.properties,["fontWeight"])}},vD={type:"object",properties:{backgroundColor:{type:"string"},borderRadius:{type:"string"},tokens:bD}},SD={type:"object",properties:{gutter:{type:"string"},maxHeight:{type:"string"},maxWidth:{type:"string"}}},xD={type:"object",properties:{backgroundColor:{type:"string"},color:{type:"string"}}},lv={type:"object",properties:{custom:{type:"string"}}},wD={type:"object",properties:{DownloadButton:lv,NextSectionButton:lv}},_D={type:"object",properties:{backgroundColor:{type:"string"},panelBackgroundColor:{type:"string"},panelControlsBackgroundColor:{type:"string"},showAtBreakpoint:{type:"string"},textColor:{type:"string"},width:{type:"string"}}},PD={type:"object",properties:{borderRadius:{type:"string"}}},ED={type:"object",properties:{sectionHorizontal:{type:"number"},sectionVertical:{type:"number"},unit:{type:"number"}}},$D={type:"object",properties:{breakpoints:hc,codeBlock:vD,colors:Zj,components:sD,layout:pD,logo:SD,fab:xD,overrides:wD,rightPanel:_D,schema:lD,shape:PD,sidebar:fD,spacing:ED,typography:gD,links:{type:"object",properties:{color:{type:"string"}}},codeSample:{type:"object",properties:{backgroundColor:{type:"string"}}}}},AD={type:"object",properties:{skipOptionalParameters:{type:"boolean"},languages:{type:"array",items:Hj}},required:["languages"]},xv={type:"object",properties:{theme:$D,ctrlFHijack:{type:"boolean"},defaultSampleLanguage:{type:"string"},disableDeepLinks:{type:"boolean"},disableSearch:{type:"boolean"},disableSidebar:{type:"boolean"},downloadDefinitionUrl:{type:"string"},expandDefaultServerVariables:{type:"boolean"},enumSkipQuotes:{type:"boolean"},expandDefaultRequest:{type:"boolean"},expandDefaultResponse:{type:"boolean"},expandResponses:{type:"string"},expandSingleSchemaField:{type:"boolean"},generateCodeSamples:AD,generatedPayloadSamplesMaxDepth:{type:"number"},hideDownloadButton:{type:"boolean"},hideHostname:{type:"boolean"},hideInfoSection:{type:"boolean"},hideLogo:{type:"boolean"},hideRequestPayloadSample:{type:"boolean"},hideRightPanel:{type:"boolean"},hideSchemaPattern:{type:"boolean"},hideSingleRequestSampleTab:{type:"boolean"},hideSecuritySection:{type:"boolean"},hideTryItPanel:{type:"boolean"},hideFab:{type:"boolean"},hideOneOfDescription:{type:"boolean"},htmlTemplate:{type:"string"},jsonSampleExpandLevel:{oneOf:[{type:"number",minimum:1},{type:"string"}]},labels:Kj,menuToggle:{type:"boolean"},nativeScrollbars:{type:"boolean"},noAutoAuth:{type:"boolean"},onDeepLinkClick:{type:"object"},pagination:{type:"string",enum:["none","section","item"]},pathInMiddlePanel:{type:"boolean"},payloadSampleIdx:{type:"number",minimum:0},requiredPropsFirst:{type:"boolean"},routingStrategy:{type:"string"},samplesTabsMaxCount:{type:"number"},schemaExpansionLevel:{oneOf:[{type:"number",minimum:0},{type:"string"}]},minCharacterLengthToInitSearch:{type:"number",minimum:1},maxResponseHeadersToShowInTryIt:{type:"number",minimum:0},scrollYOffset:{oneOf:[{type:"number"},{type:"string"}]},searchAutoExpand:{type:"boolean"},searchFieldLevelBoost:{type:"number",minimum:0},searchMaxDepth:{type:"number",minimum:1},searchMode:{type:"string",enum:["default","path-only"]},searchOperationTitleBoost:{type:"number"},searchTagTitleBoost:{type:"number"},sendXUserAgentInTryIt:{type:"boolean"},showChangeLayoutButton:{type:"boolean"},showConsole:{type:"boolean"},showNextButton:{type:"boolean"},showRightPanelToggle:{type:"boolean"},showSecuritySchemeType:{type:"boolean"},showWebhookVerb:{type:"boolean"},showObjectSchemaExamples:{type:"boolean"},disableTryItRequestUrlEncoding:{type:"boolean"},sidebarLinks:Gj,sideNavStyle:{type:"string",enum:["summary-only","path-first","id-only","path-only"]},simpleOneOfTypeLabel:{type:"boolean"},sortEnumValuesAlphabetically:{type:"boolean"},sortOperationsAlphabetically:{type:"boolean"},sortPropsAlphabetically:{type:"boolean"},sortTagsAlphabetically:{type:"boolean"},suppressWarnings:{type:"boolean"},unstable_externalDescription:{type:"boolean"},unstable_ignoreMimeParameters:{type:"boolean"},untrustedDefinition:{type:"boolean"},showAccessMode:{type:"boolean"},preserveOriginalExtensionsName:{type:"boolean"},markdownHeadingsAnchorLevel:{type:"number"}},additionalProperties:!1};function Sc(e,t){return Object.fromEntries(t.filter(r=>r in e).map(r=>[r,e[r]]))}function ii(e,t){return Object.fromEntries(Object.entries(e).filter(([r])=>!t.includes(r)))}var Gt={nodeTypeName:void 0,type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object"}]},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules"};var TD={rules:Gt,oas2Rules:Gt,oas3_0Rules:Gt,oas3_1Rules:Gt,oas3_2Rules:Gt,async2Rules:Gt,async3Rules:Gt,arazzo1Rules:Gt,arazzo1_1Rules:Gt,overlay1Rules:Gt,openrpc1Rules:Gt,graphqlRules:Gt};var lr={nodeTypeName:void 0,type:"object",additionalProperties:!0},RD={preprocessors:lr,oas2Preprocessors:lr,oas3_0Preprocessors:lr,oas3_1Preprocessors:lr,oas3_2Preprocessors:lr,async2Preprocessors:lr,async3Preprocessors:lr,arazzo1Preprocessors:lr,arazzo1_1Preprocessors:lr,overlay1Preprocessors:lr,openrpc1Preprocessors:lr},ur={nodeTypeName:void 0,type:"object",additionalProperties:!0};var OD={decorators:ur,oas2Decorators:ur,oas3_0Decorators:ur,oas3_1Decorators:ur,oas3_2Decorators:ur,async2Decorators:ur,async3Decorators:ur,arazzo1Decorators:ur,arazzo1_1Decorators:ur,overlay1Decorators:ur,openrpc1Decorators:ur},kD={nodeTypeName:void 0,type:"array",items:{type:"string"},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends"},xc={...TD,...OD,...RD,extends:kD},wv=e=>e,et=wv({RedirectSource:"RedirectSource",Redirects:"Redirects",ScorecardClassic:"ScorecardClassic",ScorecardClassicLevelList:"ScorecardClassicLevelList",ScorecardClassicLevel:"ScorecardClassicLevel",ScorecardClassicTargetList:"ScorecardClassicTargetList",ScorecardClassicTarget:"ScorecardClassicTarget",ScorecardClassicTargetWhere:"ScorecardClassicTargetWhere",ScorecardClassicTargetWhereMetadata:"ScorecardClassicTargetWhereMetadata",ScorecardClassicTeamMetadataProperty:"ScorecardClassicTeamMetadataProperty"}),Xe={type:"object",properties:{hide:{type:"boolean"}},additionalProperties:!1},uv={type:"object",properties:{src:{type:"string"},async:{type:"boolean"},crossorigin:{type:"string"},defer:{type:"boolean"},fetchpriority:{type:"string"},integrity:{type:"string"},module:{type:"boolean"},nomodule:{type:"boolean"},nonce:{type:"string"},referrerpolicy:{type:"string"},type:{type:"string"}},required:["src"],additionalProperties:!0},Ed={type:"object",properties:{page:{type:"string"},directory:{type:"string"},disconnect:{type:"boolean"},group:{type:"string"},label:{type:"string"},href:{type:"string"},external:{type:"boolean"},labelTranslationKey:{type:"string"},groupTranslationKey:{type:"string"},icon:{oneOf:[{type:"string"},{type:"object",properties:{srcSet:{type:"string"}},required:["srcSet"]}]},separator:{type:"string"},separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},version:{type:"string"},menuStyle:{type:"string",enum:["drilldown"]},expanded:{type:"string",const:"always"},selectFirstItemOnExpand:{type:"boolean"},flatten:{type:"boolean"},linkedSidebars:{type:"array",items:{type:"string"}},items:{type:"array",items:{type:"object",additionalProperties:!0}},rbac:{type:"object",additionalProperties:{type:"string"}},additionalProps:{type:"object",additionalProperties:!0}}},Rd={type:"array",items:{...Ed,properties:{...Ed.properties,items:{type:"array",items:Ed}}}},ID={type:"object",properties:{name:{type:"string"},icon:{type:"string"},folder:{type:"string"}},additionalProperties:!1,required:["name","folder"]},CD={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"}},additionalProperties:!1},qD={type:"array",items:{type:"object",required:["name","field","type"],properties:{name:{type:"string"},field:{type:"string"},type:{type:"string",enum:["multi-select","select","tags"]}},additionalProperties:!1}},ND={type:"object",properties:{facets:qD,...Xe.properties},additionalProperties:!1},MD={type:"object",properties:{page:{type:"string"},label:{type:"string"},labelTranslationKey:{type:"string"}},required:["page"]},_v={type:"object",properties:{image:{type:"string"},srcSet:{type:"string"},altText:{type:"string"},link:{type:"string"},favicon:{type:"string"}},additionalProperties:!1},Pv={type:"object",properties:{items:Rd,...Xe.properties},additionalProperties:!1},Ev={type:"object",additionalProperties:ID},$v={type:"object",properties:{items:Rd,copyrightText:{type:"string"},logo:Xe,...Xe.properties},additionalProperties:!1},Av={type:"object",properties:{separatorLine:{type:"boolean"},linePosition:{type:"string",enum:["top","bottom"]},...Xe.properties},additionalProperties:!1},Tv={type:"object",properties:{head:{type:"array",items:uv},body:{type:"array",items:uv}},additionalProperties:!1},Rv={type:"array",items:{type:"object",properties:{href:{type:"string"},as:{type:"string"},crossorigin:{type:"string"},fetchpriority:{type:"string"},hreflang:{type:"string"},imagesizes:{type:"string"},imagesrcset:{type:"string"},integrity:{type:"string"},media:{type:"string"},prefetch:{type:"string"},referrerpolicy:{type:"string"},rel:{type:"string"},sizes:{type:"string"},title:{type:"string"},type:{type:"string"}},required:["href"],additionalProperties:!0}},Ov={type:"object",properties:{engine:{type:"string",enum:["flexsearch","typesense"]},ai:CD,filters:ND,placement:{type:"string"},shortcuts:{type:"array",items:{type:"string"}},suggestedPages:{type:"array",items:MD},...Xe.properties},additionalProperties:!1},kv={type:"object",properties:{hide:{type:"boolean"},suggestions:{type:"array",items:{type:"string"}},prompt:{type:"string"},trigger:{type:"object",properties:{hide:{type:"boolean"},inputType:{type:"string",enum:["button","icon"]},inputIcon:{type:"string",enum:["chat","sparkles","redocly"]}},additionalProperties:!1}},additionalProperties:!1},Iv={type:"object",properties:{ignoreDetection:{type:"boolean"},modes:{type:"array",items:{type:"string"}},...Xe.properties},additionalProperties:!1},Od={type:"string",enum:["slate","pink","coral","amber","jade","cyan","ocean","indigo","iris"]},jD={type:"object",properties:{...Xe.properties,items:{type:"array",items:{type:"string",enum:["copy","view","chatgpt","claude","docs-mcp-cursor","docs-mcp-vscode"]}}},additionalProperties:!1},Cv={type:"object",properties:{nextButton:{type:"object",properties:{text:{type:"string"},...Xe.properties},additionalProperties:!1},previousButton:{type:"object",properties:{text:{type:"string"},...Xe.properties},additionalProperties:!1},actions:jD},additionalProperties:!1},qv={type:"object",properties:{elementFormat:{type:"string"},copy:{type:"object",properties:{...Xe.properties},additionalProperties:!1},report:{type:"object",properties:{tooltipText:{type:"string"},buttonText:{type:"string"},label:{type:"string"},...Xe.properties},additionalProperties:!1},expand:{type:"object",properties:{...Xe.properties},additionalProperties:!1},collapse:{type:"object",properties:{...Xe.properties},additionalProperties:!1}},additionalProperties:!1},Nv={type:"object",properties:{frontMatterKeysToResolve:{type:"array",items:{type:"string"}},partialsFolders:{type:"array",items:{type:"string"}},lastUpdatedBlock:{type:"object",properties:{format:{type:"string",enum:["timeago","iso","long","short"]},locale:{type:"string"},...Xe.properties},additionalProperties:!1},toc:{type:"object",properties:{header:{type:"string"},depth:{type:"integer",minimum:1},...Xe.properties},additionalProperties:!1},editPage:{type:"object",properties:{baseUrl:{type:"string"},...Xe.properties},additionalProperties:!1},template:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},yc={...fc,properties:{...fc.properties,...xv.properties}},a7={...fc,properties:{...fc.properties,...xv.properties}},DD={type:"object",properties:{includeInDevelopment:{type:"boolean"},scriptUrl:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["scriptUrl"]},LD={type:"object",properties:{includeInDevelopment:{type:"boolean"},apiKey:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},outboundClickEventName:{type:"string"},pageViewEventName:{type:"string"},amplitudeConfig:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["apiKey"]},UD={type:"object",properties:{includeInDevelopment:{type:"boolean"},orgId:{type:"string"}},additionalProperties:!1,required:["orgId"]},zD={type:"object",properties:{includeInDevelopment:{type:"boolean"},appId:{type:"string"}},additionalProperties:!1,required:["appId"]},FD={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},dataPlaneUrl:{type:"string"},controlPlaneUrl:{type:"string"},sdkUrl:{type:"string"},loadOptions:{type:"object",additionalProperties:!0}},additionalProperties:!1,required:["writeKey"]},VD={type:"object",properties:{includeInDevelopment:{type:"boolean"},writeKey:{type:"string",minLength:10},trackPage:{type:"boolean"},includeTitleInPageCall:{type:"boolean"},host:{type:"string"}},additionalProperties:!1,required:["writeKey"]},BD={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},gtmAuth:{type:"string"},gtmPreview:{type:"string"},defaultDataLayer:{type:"object",additionalProperties:!0},dataLayerName:{type:"string"},enableWebVitalsTracking:{type:"boolean"},selfHostedOrigin:{type:"string"},pageViewEventName:{type:"string"}},additionalProperties:!1,required:["trackingId"]},Mv={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},optimizeId:{type:"string"},exclude:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["trackingId"]},HD={type:"object",properties:{includeInDevelopment:{type:"boolean"},trackingId:{type:"string"},conversionId:{type:"string"},floodlightId:{type:"string"},head:{type:"boolean"},respectDNT:{type:"boolean"},exclude:{type:"array",items:{type:"string"}},optimizeId:{type:"string"},anonymizeIp:{type:"boolean"},cookieExpires:{type:"number"},trackers:{type:"object",additionalProperties:Mv}},additionalProperties:!1,required:["trackingId"]},jv={type:"object",properties:{adobe:DD,amplitude:LD,fullstory:UD,heap:zD,rudderstack:FD,segment:VD,gtm:BD,ga:HD}},Dv={type:"object",properties:{items:{type:"array",items:{type:"object",properties:{label:{type:"string"},external:{type:"boolean"},link:{type:"string"},separatorLine:{type:"boolean"}},additionalProperties:!0}},hideLoginButton:{type:"boolean"},...Xe.properties},additionalProperties:!1},Lv={type:"object",properties:{hide:{type:"boolean"},showForUnversioned:{type:"boolean"}}},Uv={type:"object",properties:{hide:{type:"boolean"},prefixItems:{type:"array",items:{type:"object",properties:{label:{type:"string"},labelTranslationKey:{type:"string"},page:{type:"string"},icon:{type:"string"}},additionalProperties:!1}}},additionalProperties:!1},KD={type:"object",additionalProperties:!1,required:["title","property"],properties:{type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},property:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}},missingCategoryName:{type:"string"},missingCategoryNameTranslationKey:{type:"string"},options:{type:"array",items:{type:"string"}}}},GD={type:"object",additionalProperties:!0,required:["slug","items"],properties:{show:{type:"boolean"},slug:{type:"string"},filters:{type:"array",items:KD},groupByFirstFilter:{type:"boolean"},filterValuesCasing:{type:"string",enum:["sentence","original","lowercase","uppercase"]},items:Rd,requiredPermission:{type:"string"},separateVersions:{type:"boolean"},title:{type:"string"},titleTranslationKey:{type:"string"},description:{type:"string"},descriptionTranslationKey:{type:"string"}}},gc={type:"object",patternProperties:{".*":GD}},bc={nodeTypeName:et.ScorecardClassic,description:"Add and create sets of rules and test your API description files against them. With these rules you can maintain quality across your existing APIs and ensure that newly-added or updated APIs match your criteria. An API scorecard can include multiple sets of rules, corresponding to different quality levels.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic",type:"object",additionalProperties:!0,required:[],properties:{ignoreNonCompliant:{type:"boolean"},teamMetadataProperty:{nodeTypeName:et.ScorecardClassicTeamMetadataProperty,description:"Provide custom team label and team metadata property.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#team-metadata-object",type:"object",properties:{property:{type:"string"},label:{type:"string"},default:{type:"string"}}},levels:{nodeTypeName:et.ScorecardClassicLevelList,description:"List of levels to score against.",type:"array",items:{nodeTypeName:et.ScorecardClassicLevel,documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#level-object",type:"object",required:["name"],properties:{name:{type:"string"},color:{type:"string"},...xc},additionalProperties:!1}},targets:{nodeTypeName:et.ScorecardClassicTargetList,description:"Provide custom `minimumLevel` for specific targets.",type:"array",items:{nodeTypeName:et.ScorecardClassicTarget,type:"object",required:["where"],properties:{minimumLevel:{type:"string"},rules:{type:"object",additionalProperties:!0},where:{nodeTypeName:et.ScorecardClassicTargetWhere,description:"Specify which API descriptions to apply the `minimumLevel` to based on the metadata.",documentationLink:"https://redocly.com/docs/realm/config/scorecard-classic#where-object",type:"object",required:["metadata"],properties:{metadata:{nodeTypeName:et.ScorecardClassicTargetWhereMetadata,type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1}},ignore:{type:"array",items:{type:"string"}},fromProjectUrl:{type:"string",format:"uri"}}},YD={type:"object",required:["key"],properties:{key:{type:"string"}},additionalProperties:!1},WD={type:"object",required:["type"],properties:{type:{type:"string"}},additionalProperties:!1},QD={type:"object",required:["property","title"],properties:{property:{type:"string"},hide:{type:"boolean"},label:{type:"string"},options:{type:"array",items:{type:"string"}},type:{type:"string",enum:["select","checkboxes","date-range"]},title:{type:"string"},titleTranslationKey:{type:"string"},parentFilter:{type:"string"},valuesMapping:{type:"object",additionalProperties:{type:"string"}}},additionalProperties:!1},Zr={type:"object",properties:{slug:{type:"string"},hide:{type:"boolean"},includes:{type:"array",items:WD},excludes:{type:"array",items:YD},filters:{type:"array",items:QD},titleTranslationKey:{type:"string"},descriptionTranslationKey:{type:"string"},catalogSwitcherLabelTranslationKey:{type:"string"}},additionalProperties:!1},JD={type:"object",properties:{type:{type:"string",enum:["string","number","boolean","array","object"]},description:{type:"string"},example:{oneOf:[{type:"string"},{type:"number"},{type:"boolean"},{type:"array"},{type:"object"}]},enum:{type:"array",items:{type:"string"}},pattern:{type:"string"},format:{type:"string"},minimum:{type:"number"},maximum:{type:"number"},items:{type:"object"}},additionalProperties:!0},XD={type:"object",required:["type","properties"],properties:{type:{type:"string",enum:["object"]},description:{type:"string"},properties:{type:"object",additionalProperties:JD},required:{type:"array",items:{type:"string"}},additionalProperties:{type:"boolean"}},additionalProperties:!0},ZD={type:"object",required:["name","description","metadataSchema"],properties:{name:{type:"string",description:"Display name of the entity type"},description:{type:"string",description:"Description of the entity type"},metadataSchema:XD,icon:{type:"object",properties:{src:{type:"string"},srcSet:{type:"string"}},additionalProperties:!1}},additionalProperties:!1},eL={type:"object",additionalProperties:ZD},zv={type:"object",properties:{show:{type:"boolean"},entityTypes:eL,catalogs:{type:"object",properties:{all:Zr,services:Zr,domains:Zr,teams:Zr,users:Zr,apiDescriptions:Zr,dataSchemas:Zr,apiOperations:Zr},additionalProperties:Zr}},additionalProperties:!1},dv={type:"string",enum:["eq","in","gt","gte","lt","lte","contains","startsWith","endsWith","exists","isEmpty","between","matches","some","every","none"]},kd={type:"string",enum:["and","or"]},$d={type:"object",properties:{field:{type:"string"},operator:dv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]},match:{type:"array",items:{type:"object",properties:{field:{type:"string"},operator:dv,value:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},modifier:{type:"string",enum:["not"]}}}}}},tL={type:"object",properties:{operator:kd,conditions:{type:"array",items:$d}},required:["operator","conditions"],additionalProperties:!1},fv={type:"array",items:{oneOf:[$d,{type:"object",properties:{operator:kd,conditions:{type:"array",items:{oneOf:[$d,tL]}}},required:["operator","conditions"],additionalProperties:!1}]}},Fv={type:"object",properties:{defined:{type:"boolean"},nonEmpty:{type:"boolean"},eq:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]},gt:{type:"number"},gte:{type:"number"},lt:{type:"number"},lte:{type:"number"},const:{oneOf:[{type:"boolean"},{type:"string"},{type:"number"}]}},additionalProperties:!1},rL={type:"array",items:{type:"object",properties:{subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},assertions:Fv},required:["subject","assertions"],additionalProperties:!1}},nL={type:"object",properties:{title:{type:"string"},subject:{type:"object",properties:{type:{type:"string",enum:["Entity","EntityMetadata","EntityRelations","EntityRelation"]},property:{type:"string"}},required:["type","property"],additionalProperties:!1},severity:{type:"string",enum:["error","warn","off"]},message:{type:"string"},assertions:Fv,where:rL,weight:{type:"number"}},required:["subject","assertions"],additionalProperties:!1},oL={type:"object",additionalProperties:{oneOf:[{type:"string"},{type:"object",properties:{severity:{type:"string",enum:["error","warn","off"]},weight:{type:"number"}},additionalProperties:!0},nL]}},iL={type:"object",properties:{name:{type:"string"},extends:xc.extends,rules:oL},required:["name"],additionalProperties:!1},mv={type:"object",properties:{event:{type:"string",enum:["runtime","manual"]}},required:["event"],additionalProperties:!1},sL={oneOf:[mv,{type:"array",items:mv}]},aL={type:"object",properties:{name:{type:"string"},key:{type:"string"},description:{type:"string"},entities:{oneOf:[fv,{type:"object",properties:{operator:kd,conditions:fv},required:["operator","conditions"],additionalProperties:!1}]},levels:{type:"array",items:iL,minItems:1},trigger:sL},required:["name","key","entities","levels"],additionalProperties:!1},Vv={type:"array",items:aL},kr={type:"object",properties:{imports:{type:"array",items:{type:"string"}},logo:_v,navbar:Pv,products:Ev,footer:$v,sidebar:Av,scripts:Tv,links:Rv,feedback:Ts,search:Ov,aiAssistant:kv,colorMode:Iv,palette:Od,navigation:Cv,codeSnippet:qv,markdown:Nv,openapi:yc,asyncapi:Bj,graphql:mc,analytics:jv,userMenu:Dv,versionPicker:Lv,breadcrumbs:Uv,catalog:gc,entitiesCatalog:zv,catalogClassic:gc,scorecard:bc,scorecardClassic:bc,scorecards:Vv},additionalProperties:!0};var cL=(e=>(e.OIDC="OIDC",e.SAML2="SAML2",e))(cL||{}),pL=(e=>(e.SERVICE_ACCOUNT="SERVICE_ACCOUNT",e.OAUTH2="OAUTH2",e))(pL||{});var lL=(e=>(e.STACKED="stacked",e.THREE_PANEL="three-panel",e))(lL||{});var Bv="^[a-z0-9]+(?:-[a-z0-9]+)*$",c7=new RegExp(Bv);var uL=63,p7=`Unique ID cannot exceed ${uL} characters`,Hv="redocly",Kv=[Hv,"corporate","guest"],l7=`Unique ID cannot be a reserved word (${Kv.join(", ")})`,hv=["REDOCLY","CORPORATE","GUEST"],dL={type:"object",additionalProperties:{type:"string"}},fL={type:"object",additionalProperties:!1,patternProperties:{"^[a-zA-Z0-9_-]+$":{type:"string",pattern:"^https?://[^\\s/$.?#].[^\\s]*$"}}},dc={type:"string",enum:["error","warn","off"]},mL={type:"object",additionalProperties:!1,properties:{schemaCheck:dc,statusCodeCheck:dc,contentTypeCheck:dc,successCriteriaCheck:dc}},hL={type:"object",properties:{event:{type:"string",enum:["schedule"]},interval:{type:"string",enum:["1m","2m","5m","10m","15m","30m","1h","3h","6h","12h","1d","7d"]}},required:["event"],additionalProperties:!1},yL={type:"object",properties:{event:{type:"string",enum:["build"]}},required:["event"],additionalProperties:!1},gL={type:"object",properties:{warn:{type:"number"},error:{type:"number"}},additionalProperties:!1},bL={type:"object",properties:{ignoreLint:{oneOf:[{type:"boolean"},{type:"object",additionalProperties:{type:"boolean"}}]},ignoreLinkChecker:{type:"boolean"},ignoreMarkdocErrors:{type:"boolean"},ignoreRespectMonitoring:{type:"boolean"},jobs:{type:"array",items:{type:"object",properties:{path:{type:"string",pattern:"^(?!\\/|\\.\\./)"},agent:{type:"string",enum:["respect"]},trigger:{oneOf:[hL,yL]},inputs:dL,servers:fL,severity:mL,slo:gL},required:["path","trigger","agent"],additionalProperties:!1}}},additionalProperties:!1},vL={type:"object",properties:{end_session_endpoint:{type:"string"},token_endpoint:{type:"string"},authorization_endpoint:{type:"string"},jwks_uri:{type:"string"}},required:["token_endpoint","authorization_endpoint"],additionalProperties:!0},SL={type:"object",properties:{type:{type:"string",const:"OIDC"},title:{type:"string"},pkce:{type:"boolean"},configurationUrl:{type:"string",minLength:1},configuration:vL,clientId:{type:"string",minLength:1},clientSecret:{type:"string"},teamsClaimName:{type:"string"},teamsClaimMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}},scopes:{type:"array",items:{type:"string"}},tokenExpirationTime:{type:"number"},authorizationRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},introspectEndpoint:{type:"string"},tokenRequestCustomParams:{type:"object",additionalProperties:{type:"string"}},audience:{type:"array",items:{type:"string"}}},required:["type","clientId"],oneOf:[{required:["configurationUrl"]},{required:["configuration"]}],additionalProperties:!1},xL={type:"object",properties:{type:{type:"string",const:"SAML2"},title:{type:"string"},issuerId:{type:"string"},entityId:{type:"string"},ssoUrl:{type:"string"},x509PublicCert:{type:"string"},teamsAttributeName:{type:"string"},teamsAttributeMap:{type:"object",additionalProperties:{type:"string"}},defaultTeams:{type:"array",items:{type:"string"}}},additionalProperties:!1,required:["type","issuerId","ssoUrl","x509PublicCert"]},wL={oneOf:[SL,xL],discriminator:{propertyName:"type"}},_L={type:"object",additionalProperties:wL},Gv={oneOf:[{type:"array",items:{type:"string",enum:hv},uniqueItems:!0},{type:"string",enum:hv}]},yv={type:"string",pattern:Bv,not:{enum:Kv.filter(e=>e!==Hv)}},Yv={oneOf:[{type:"array",items:yv,uniqueItems:!0},yv]},Wv={type:"boolean"},Qv={type:"string",pattern:"^https?://.*"},Jv={type:"string",pattern:"^https?://.*"},PL={type:"object",properties:{to:{type:"string"},type:{type:"number"}},additionalProperties:!1,nodeTypeName:et.RedirectSource,description:"Source is an absolute path that must start with a forward slash.",documentationLink:"https://redocly.com/docs/realm/config/redirects#sources-map"},EL={type:"object",additionalProperties:PL,nodeTypeName:et.Redirects,description:"Use redirects to change which resource a URL points to, maintaining working links when you move, rename, or restructure content.",documentationLink:"https://redocly.com/docs/realm/config/redirects"},$L={type:"string",enum:["info","success","warning","error"]},Pe={type:"object",additionalProperties:{type:"string"}},AL={type:"object",properties:{trackingId:{type:"string"},content:{type:"string"},dismissible:{type:"boolean"},target:{type:"string"},color:$L,rbac:Pe,startAt:{type:"string",format:"date-time"},endAt:{type:"string",format:"date-time"}},required:["content"],additionalProperties:!1},TL={type:"array",items:AL},Xv={type:"object",properties:{root:{type:"string"},output:{type:"string",pattern:"(.ya?ml|.json)$"},rbac:Pe,openapi:yc,graphql:mc,theme:{type:"object",properties:{openapi:yc,graphql:mc},additionalProperties:!1},title:{type:"string"},metadata:{type:"object",additionalProperties:!0},...xc},required:["root"]},RL={type:"object",additionalProperties:!0},OL={type:"object",additionalProperties:{type:"object",additionalProperties:!0}},kL={type:"object",properties:{hide:{type:"boolean"},title:{type:"string"},description:{type:"string"},details:{type:"object",properties:{path:{type:"string"},content:{type:"string"}},additionalProperties:!1},excludeFiles:{type:"array",items:{type:"string"}},sections:{type:"array",items:{type:"object",properties:{title:{type:"string"},description:{type:"string"},includeFiles:{type:"array",items:{type:"string"}},excludeFiles:{type:"array",items:{type:"string"}}},required:["title"],additionalProperties:!1}}},additionalProperties:!1},IL={type:"object",properties:{title:{type:"string"},projectTitle:{type:"string"},description:{type:"string"},siteUrl:{type:"string"},image:{type:"string"},keywords:{oneOf:[{type:"array",items:{type:"string"}},{type:"string"}]},lang:{type:"string"},jsonLd:{type:"object"},meta:{type:"array",items:{type:"object",properties:{name:{type:"string"},content:{type:"string"}},required:["name","content"],additionalProperties:!1}},llmstxt:kL},additionalProperties:!1},CL={type:"object",properties:{folders:{type:"array",items:{type:"string"}}},additionalProperties:!1},qL={type:"object",properties:{catalogs:{type:"object",properties:{all:Pe,services:Pe,domains:Pe,teams:Pe,users:Pe,apiDescriptions:Pe,dataSchemas:Pe,apiOperations:Pe},additionalProperties:Pe},entitiesTypes:{type:"object",properties:{service:Pe,domain:Pe,team:Pe,user:Pe,apiDescription:Pe,apiOperation:Pe,dataSchema:Pe},additionalProperties:Pe},entitiesGroups:{type:"array",items:{type:"object",properties:{entities:{type:"array",items:{type:"string"}},config:Pe},additionalProperties:!1}},entities:{type:"object",properties:{"**":Pe},additionalProperties:Pe}},additionalProperties:!1},Zv={type:"object",properties:{teamNamePatterns:{type:"array",items:{type:"string"}},teamFolders:{type:"array",items:{type:"string"}},teamFoldersBaseRoles:Pe,cms:Pe,reunite:Pe,features:{type:"object",properties:{aiSearch:Pe,mcp:Pe},additionalProperties:!1},content:{type:"object",properties:{"**":Pe},additionalProperties:Pe},entitiesCatalog:qL},additionalProperties:Pe},NL={type:"object",properties:{static:{type:"string"}},additionalProperties:!1,required:["static"]},ML={type:"object",properties:{idp:{type:"string"}},additionalProperties:!1,required:["idp"]},jL={type:"object",properties:{type:{type:"string",const:"GRAVITEE"},apiBaseUrl:{type:"string"},env:{type:"string"},allowApiProductsOutsideCatalog:{type:"boolean"},stage:{type:"string"},auth:{oneOf:[NL,ML]}},additionalProperties:!1,required:["type","apiBaseUrl"]},DL={type:"object",properties:{type:{type:"string",const:"OAUTH2"},tokenEndpoint:{type:"string"},clientId:{type:"string"},clientSecret:{type:"string"}},additionalProperties:!1,required:["type","tokenEndpoint","clientId","clientSecret"]},LL={type:"object",properties:{type:{type:"string",const:"SERVICE_ACCOUNT"},serviceAccountEmail:{type:"string"},serviceAccountPrivateKey:{type:"string"}},additionalProperties:!1,required:["type","serviceAccountEmail","serviceAccountPrivateKey"]},Ad={type:"object",properties:{type:{type:"string",const:"APIGEE_X"},apiUrl:{type:"string"},stage:{type:"string"},organizationName:{type:"string"},ignoreApiProducts:{type:"array",items:{type:"string"}},allowApiProductsOutsideCatalog:{type:"boolean"},auth:{type:"object",oneOf:[DL,LL],discriminator:{propertyName:"type"}}},additionalProperties:!1,required:["type","organizationName","auth"]},UL={...Ad,properties:{...Ad.properties,type:{type:"string",const:"APIGEE_EDGE"}}},zL={type:"object",oneOf:[Ad,UL,jL],discriminator:{propertyName:"type"}},FL={type:"object",required:["adapters"],additionalProperties:!1,properties:{adapters:{type:"array",items:zL}}},gv={type:"object",properties:{defaultLocale:{type:"string"},locales:{type:"array",items:{type:"object",properties:{code:{type:"string"},name:{type:"string"}},required:["code"]}}},additionalProperties:!1,required:["defaultLocale"]},VL={type:"object",properties:{name:{type:"string"},value:{type:"string"}},additionalProperties:!1,required:["name","value"]},BL={type:"object",properties:{hide:{type:"boolean"},docs:{type:"object",properties:{hide:{type:"boolean"},name:{type:"string"},ignore:{type:"array",items:{type:"string"}}},additionalProperties:!1}},additionalProperties:!1},HL={type:"object",properties:{hide:{type:"boolean"},excludeFiles:{type:"array",items:{type:"string"}}},additionalProperties:!1},KL={type:"object",properties:{requiresLogin:Wv,logoutReturnUrl:Qv,residency:Jv,sso:Gv,idps:Yv,rbac:Zv},additionalProperties:!1,not:{required:["sso","idps"]},description:"Use either `access.sso` (filter by category) or `access.idps` (filter by slug), not both."},vc={type:"object",properties:{imports:{type:"array",items:{type:"string"}},licenseKey:{type:"string"},redirects:EL,seo:IL,rbac:Zv,apiFunctions:CL,requiresLogin:Wv,responseHeaders:{type:"object",additionalProperties:{type:"array",items:VL}},mockServer:{type:"object",properties:{off:{type:"boolean"},position:{type:"string",enum:["first","last","replace","off"]},strictExamples:{type:"boolean"},errorIfForcedExampleNotFound:{type:"boolean"},description:{type:"string"}}},apis:{type:"object",additionalProperties:Xv},...xc,ssoDirect:_L,sso:Gv,idps:Yv,residency:Jv,logoutReturnUrl:Qv,access:KL,developerOnboarding:FL,removeAttribution:{type:"boolean"},i18n:gv,l10n:gv,metadata:RL,metadataGlobs:OL,ignore:{type:"array",items:{type:"string"}},theme:kr,reunite:bL,logo:_v,navbar:Pv,products:Ev,footer:$v,sidebar:Av,scripts:Tv,links:Rv,feedback:Ts,search:Ov,aiAssistant:kv,colorMode:Iv,palette:Od,navigation:Cv,codeSnippet:qv,markdown:Nv,openapi:yc,graphql:mc,analytics:jv,userMenu:Dv,versionPicker:Lv,breadcrumbs:Uv,catalog:gc,entitiesCatalog:zv,catalogClassic:gc,scorecard:bc,scorecardClassic:bc,scorecards:Vv,mcp:BL,skills:HL,corsProxy:{type:"object",properties:{allowedTargets:{type:"array",items:{type:"string"}}},additionalProperties:!1},banner:TL},not:{required:["sso","idps"]},additionalProperties:!0},GL={...vc,additionalProperties:!1},si={$id:"root-redocly-config",...vc,properties:{plugins:{type:"array",items:{type:"string"}},...vc.properties,env:{type:"object",additionalProperties:GL}},additionalProperties:!1},bv={type:"object",properties:{logo:kr.properties.logo,navbar:kr.properties.navbar,footer:kr.properties.footer,sidebar:kr.properties.sidebar,search:kr.properties.search,codeSnippet:kr.properties.codeSnippet,breadcrumbs:kr.properties.breadcrumbs,openapi:kr.properties.openapi,feedback:kr.properties.feedback,palette:Od,mockServer:vc.properties.mockServer,analytics:{type:"object",properties:{ga:Mv}}},additionalProperties:!0},u7={$id:"product-config-override",type:"object",properties:{...bv.properties,apis:{type:"object",additionalProperties:Xv},theme:bv},additionalProperties:!1},YL=["partOf","hasParts","creates","createdBy","owns","ownedBy","implements","implementedBy","dependsOn","dependencyOf","uses","usedBy","produces","consumes","linksTo","supersedes","supersededBy","compatibleWith","extends","extendedBy","relatesTo","hasMember","memberOf","triggers","triggeredBy","returns","returnedBy"],ze=wv({UserEntity:"UserEntity",UserEntityMetadata:"UserEntityMetadata",ApiDescriptionEntity:"ApiDescriptionEntity",ApiDescriptionEntityMetadata:"ApiDescriptionEntityMetadata",ApiOperationEntity:"ApiOperationEntity",ApiOperationEntityMetadata:"ApiOperationEntityMetadata",DataSchemaEntity:"DataSchemaEntity",DataSchemaEntityMetadata:"DataSchemaEntityMetadata",ServiceEntity:"ServiceEntity",DomainEntity:"DomainEntity",TeamEntity:"TeamEntity",Entity:"Entity",EntityMetadata:"EntityMetadata",EntityLinkList:"EntityLinkList",EntityLink:"EntityLink",EntityRelation:"EntityRelation",EntityRelationList:"EntityRelationList",EntityContact:"EntityContact",EntitySlackContact:"EntitySlackContact",EntitySlackChannel:"EntitySlackChannel"}),WL={type:"object",nodeTypeName:ze.UserEntityMetadata,properties:{email:{type:"string",description:"Email of the user"}},required:["email"],additionalProperties:!0},QL={type:"object",nodeTypeName:ze.ApiDescriptionEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Type of the API description"},descriptionFile:{type:"string",description:"Path to the file containing the API description"}},required:["specType","descriptionFile"],additionalProperties:!0},JL={type:"object",nodeTypeName:ze.ApiOperationEntityMetadata,properties:{method:{type:"string",enum:["GET","POST","PUT","DELETE","PATCH","MUTATION","QUERY","SUBSCRIBE","PUBLISH"],description:"HTTP method of the API operation"},path:{type:"string",description:"Path of the API operation"},payload:{type:"array",items:{type:"string",description:"Related dataSchema name"}},responses:{type:"array",items:{type:"string",description:"Related dataSchema name"}}},required:["method","path"],additionalProperties:!0},XL={type:"object",nodeTypeName:ze.DataSchemaEntityMetadata,properties:{specType:{type:"string",enum:["jsonschema","openapi","asyncapi","avro","zod","graphql","protobuf","arazzo"],description:"Specification type of the data schema"},schema:{type:"string",description:"Inline schema of the data structure"},sdl:{type:"string",description:"SDL of the data structure"}},required:["specType"],additionalProperties:!0},ZL={type:"object",properties:{},nodeTypeName:ze.EntityMetadata,additionalProperties:!0},e2={type:"object",nodeTypeName:ze.EntitySlackChannel,properties:{name:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["name"],additionalProperties:!1},t2={type:"object",nodeTypeName:ze.EntitySlackContact,properties:{channels:{type:"array",items:e2}},required:["channels"],additionalProperties:!1},r2={type:"object",nodeTypeName:ze.EntityContact,properties:{slack:t2},additionalProperties:!1},n2={type:"object",nodeTypeName:ze.EntityLink,properties:{label:{type:"string",minLength:2,maxLength:150},url:{type:"string"}},required:["label","url"],additionalProperties:!1},o2={type:"object",nodeTypeName:ze.EntityRelation,properties:{type:{type:"string",enum:YL},key:{type:"string",minLength:2,maxLength:100},version:{type:"string"},revision:{type:"string"}},required:["type","key"],additionalProperties:!1},Sn={version:{type:"string"},key:{type:"string",pattern:"^[a-z0-9]+(?:-[a-z0-9]+)*$",minLength:2,maxLength:150},type:{type:"string",enum:["user","data-schema","api-operation","api-description","service","domain","team"]},title:{type:"string",minLength:2,maxLength:200},summary:{type:"string",minLength:1,maxLength:500},tags:{type:"array",items:{type:"string",minLength:1,maxLength:50}},git:{type:"array",items:{type:"string"}},contact:r2,links:{type:"array",nodeTypeName:ze.EntityLinkList,items:n2},relations:{type:"array",nodeTypeName:ze.EntityRelationList,items:o2},metadata:ZL},i2={type:"object",discriminator:{propertyName:"type"},oneOf:[{type:"object",properties:{...Sn,type:{type:"string",const:"user"},metadata:WL},required:["key","title","type","metadata"],additionalProperties:!1,nodeTypeName:ze.UserEntity},{type:"object",nodeTypeName:ze.ApiOperationEntity,properties:{...Sn,type:{type:"string",const:"api-operation"},metadata:JL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DataSchemaEntity,properties:{...Sn,type:{type:"string",const:"data-schema"},metadata:XL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ApiDescriptionEntity,properties:{...Sn,type:{type:"string",const:"api-description"},metadata:QL},required:["key","title","type","metadata"],additionalProperties:!1},{type:"object",nodeTypeName:ze.ServiceEntity,properties:{...Sn,type:{type:"string",const:"service"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.DomainEntity,properties:{...Sn,type:{type:"string",const:"domain"}},required:["key","title","type"],additionalProperties:!1},{type:"object",nodeTypeName:ze.TeamEntity,properties:{...Sn,type:{type:"string",const:"team"}},required:["key","title","type"],additionalProperties:!1}]},s2={type:"object",nodeTypeName:ze.Entity,properties:{...Sn},required:["key","title","type"],additionalProperties:!1};import nH from"node:path";var e0=["Name","Document","OperationDefinition","VariableDefinition","SelectionSet","Field","Argument","FragmentSpread","InlineFragment","FragmentDefinition","Variable","IntValue","FloatValue","StringValue","BooleanValue","NullValue","EnumValue","ListValue","ObjectValue","ObjectField","Directive","NamedType","ListType","NonNullType","SchemaDefinition","OperationTypeDefinition","ScalarTypeDefinition","ObjectTypeDefinition","FieldDefinition","InputValueDefinition","InterfaceTypeDefinition","UnionTypeDefinition","EnumTypeDefinition","EnumValueDefinition","InputObjectTypeDefinition","DirectiveDefinition","SchemaExtension","DirectiveExtension","ScalarTypeExtension","ObjectTypeExtension","InterfaceTypeExtension","UnionTypeExtension","EnumTypeExtension","InputObjectTypeExtension","TypeCoordinate","MemberCoordinate","ArgumentCoordinate","DirectiveCoordinate","DirectiveArgumentCoordinate"];var ai=["oas2","oas3_0","oas3_1","oas3_2","async2","async3","arazzo1","arazzo1_1","overlay1","openrpc1","graphql"],wc="a-zA-Z0-9\\.\\-_",a2={oas2:pd,oas3_0:Tt,oas3_1:Ee,oas3_2:Ye,async2:vd,async3:Sd,arazzo1:We,arazzo1_1:wd,overlay1:_d,openrpc1:Pd};function ao(e){return e==="graphql"?{}:a2[e]}function _c(e){return e.includes("/")}function Pc(e,t){let r={...e};return t.forEach(n=>{delete r[n]}),r}var Zx=Tr(Km(),1);var tH=new Zx.default({strictSchema:!1,allowUnionTypes:!0,useDefaults:!0,allErrors:!0,discriminator:!0,strictTypes:!1,verbose:!0});function Xx(e,t){if(t.some(r=>typeof r=="function"))throw new Error("Unexpected oneOf inside oneOf.");return r=>{let n=e.findIndex(o=>tH.validate(o,r));return n===-1&&(n=0),t[n]}}function Ei(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);if(t.type==="string"||t.type==="number"||t.type==="integer"||t.type==="boolean"){let{default:n,format:o,...i}=t;return i}if(t.type==="object"&&!t.properties&&!t.oneOf){if(t.additionalProperties===void 0||t.additionalProperties===!0)return{type:"object"};if(t.additionalProperties===!1)return{type:"object",properties:{}}}if(t.allOf)throw new Error(`Unexpected allOf in ${e}.`);if(t.anyOf)throw new Error(`Unexpected anyOf in ${e}.`);if(O(t.properties)||O(t.additionalProperties)||O(t.items)&&(O(t.items.properties)||O(t.items.additionalProperties)||t.items.oneOf))return rH(e,t,r);if(t.oneOf)if(t.discriminator){let n=t.discriminator?.propertyName;if(!n)throw new Error(`Unexpected discriminator without a propertyName in ${e}.`);let o={},i=t.oneOf.map((s,a)=>{if(typeof s=="boolean")throw new Error(`Unexpected boolean schema in ${e} at position ${a} in oneOf.`);let c=s?.properties?.[n];if(!c||typeof c=="boolean")throw new Error(`Unexpected property '${c}' schema in ${e} at position ${a} in oneOf.`);let p=c.const,l=Ei(p,s,r);return typeof l=="string"&&(o[p]=l),l});return(s,a)=>{if(O(s)){let c=s[n];if(typeof c=="string"){let p=o[c];if(p&&r[p])return p}}return Xx(t.oneOf,i)(s,a)}}else{let n=t.oneOf.map((o,i)=>Ei(e+"_"+i,o,r));return Xx(t.oneOf,n)}return t}function rH(e,t,r){if(!t||typeof t=="boolean")throw new Error(`Unexpected schema in ${e}.`);if(t instanceof Array)throw new Error(`Unexpected array schema in ${e}. Try using oneOf instead.`);if(t.type==="null")throw new Error(`Unexpected null schema type in ${e} schema.`);if(t.type instanceof Array)throw new Error(`Unexpected array schema type in ${e} schema. Try using oneOf instead.`);let n=t.nodeTypeName??e,o={};for(let[c,p]of Object.entries(t.properties||{}))o[c]=Ei(n+"."+c,p,r);let i;O(t.additionalProperties)&&(i=Ei(e+"_additionalProperties",t.additionalProperties,r)),t.additionalProperties===!0&&(i={});let s;O(t.items)&&(O(t.items.properties)||O(t.items.additionalProperties)||t.items.oneOf)&&(s=Ei(e+"_items",t.items,r));let a=t.required;return t.oneOf&&t.oneOf.every(c=>!!c.required)&&(a=c=>{let p=t.oneOf.map(u=>[...t.required||[],...u.required]),l=p.findIndex(u=>u.every(m=>c[m]!==void 0));return l===-1&&(l=0),p[l]}),r[n]={properties:o,additionalProperties:i,items:s,required:a,description:t.description,documentationLink:t.documentationLink},n}function Gm(e,t){let r={},n=Ei(e,t,r);return{ctx:r,discriminatorResolver:typeof n=="function"?n:void 0}}var oH=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","request-mime-type","response-contains-property","response-mime-type","no-duplicated-tag-names"],iH=["info-contact","operation-operationId","tag-description","tags-alphabetical","info-license-strict","info-license","no-ambiguous-paths","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-http-verbs-in-paths","no-identical-paths","no-invalid-parameter-examples","no-invalid-schema-examples","no-path-trailing-slash","operation-2xx-response","operation-4xx-response","operation-description","operation-operationId-unique","operation-operationId-url-safe","operation-parameters-unique","operation-singular-tag","operation-summary","operation-tag-defined","parameter-description","path-declaration-must-exist","path-http-verbs-order","path-not-include-query","path-params-defined","path-parameters-defined","path-segment-plural","paths-kebab-case","required-string-property-missing-min-length","response-contains-header","scalar-property-missing-example","security-defined","security-scopes-defined","spec-strict-refs","no-required-schema-properties-undefined","no-schema-type-mismatch","boolean-parameter-prefixes","component-name-unique","no-empty-servers","no-example-value-and-externalValue","no-invalid-media-type-examples","no-server-example.com","no-server-trailing-slash","no-server-variables-empty-enum","no-undefined-server-variable","no-unused-components","no-mixed-number-range-constraints","operation-4xx-problem-details-rfc7807","request-mime-type","response-contains-property","response-mime-type","spec-components-invalid-map-name","array-parameter-serialization","no-duplicated-tag-names","nullable-type-sibling","spec-no-invalid-tag-parents","spec-no-invalid-encoding-combinations","spec-discriminator-defaultMapping","spec-example-values","spec-querystring-parameters"],sH=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","security-scopes-defined"],aH=["info-contact","info-license-strict","operation-operationId","security-defined","tag-description","tags-alphabetical","channels-kebab-case","no-channel-trailing-slash","no-duplicated-tag-names","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","security-scopes-defined"],cH=["sourceDescription-type","workflowId-unique","stepId-unique","sourceDescription-name-unique","sourceDescriptions-not-empty","spec-step-mutually-exclusive-fields","workflow-dependsOn","outputs-defined","parameters-unique","step-onSuccess-unique","step-onFailure-unique","requestBody-replacements-unique","no-criteria-xpath","criteria-unique","no-x-security-scheme-name-without-openapi","x-security-scheme-required-values","no-x-security-both-scheme-and-scheme-name","no-required-schema-properties-undefined","no-duplicated-enum-values","no-enum-type-mismatch","no-unsafe-markdown","no-mixed-number-range-constraints","no-schema-type-mismatch","x-security-scheme-name-reference"],pH=["info-contact"],lH=["info-contact","info-license","no-unused-components","spec-no-duplicated-method-params","spec-no-required-params-after-optional"],uH=["no-unused-types","type-description"],dH=["struct","no-unresolved-refs"],fH=[...oH,...iH,...sH,...aH,...cH,...pH,...lH,...uH,...dH],mH=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","remove-unused-components"],hH=["operation-description-override","tag-description-override","info-description-override","info-override","remove-x-internal","filter-in","filter-out","media-type-examples-override","remove-unused-components"],ew=[...hH,...mH],tw={extends:{name:"Extends",properties:{},items:e=>typeof e=="string"&&!pe(e)&&!nH.extname(e)?{type:"string"}:{...sa,directResolveAs:{name:"ConfigGovernance",...sa}},description:"Use extends to inherit rules and their configurations from other rulesets.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/extends#extends"},plugins:{type:"array",items:{type:"string"}},rules:"Rules",oas2Rules:"Rules",oas3_0Rules:"Rules",oas3_1Rules:"Rules",oas3_2Rules:"Rules",async2Rules:"Rules",async3Rules:"Rules",arazzo1Rules:"Rules",arazzo1_1Rules:"Rules",overlay1Rules:"Rules",openrpc1Rules:"Rules",graphqlRules:"Rules",preprocessors:"Preprocessors",oas2Preprocessors:"Preprocessors",oas3_0Preprocessors:"Preprocessors",oas3_1Preprocessors:"Preprocessors",oas3_2Preprocessors:"Preprocessors",async2Preprocessors:"Preprocessors",async3Preprocessors:"Preprocessors",arazzo1Preprocessors:"Preprocessors",arazzo1_1Preprocessors:"Preprocessors",overlay1Preprocessors:"Preprocessors",openrpc1Preprocessors:"Preprocessors",decorators:"Decorators",oas2Decorators:"Decorators",oas3_0Decorators:"Decorators",oas3_1Decorators:"Decorators",oas3_2Decorators:"Decorators",async2Decorators:"Decorators",async3Decorators:"Decorators",arazzo1Decorators:"Decorators",arazzo1_1Decorators:"Decorators",overlay1Decorators:"Decorators",openrpc1Decorators:"Decorators"},sa={properties:tw},yH=e=>({...e.rootRedoclyConfigSchema,properties:{...e.rootRedoclyConfigSchema.properties,...sa.properties,apis:"ConfigApis",client:"Client",telemetry:{enum:["on","off"]},resolve:{properties:{http:"ConfigHTTP",doNotResolveExamples:{type:"boolean"}}}}}),gH={properties:{},additionalProperties:"ConfigApisProperties",description:"The `apis` configuration section is used when a project contains multiple API descriptions to set up different rules and settings for individual APIs. It allows defining specific configurations for each API, which must be identified by a unique name.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/apis"},bH=e=>({...e["rootRedoclyConfigSchema.apis_additionalProperties"],properties:{...e["rootRedoclyConfigSchema.apis_additionalProperties"]?.properties,...Pc(sa.properties,["plugins"]),client:"Client",clientOutput:{type:"string"}}}),vH={properties:{headers:{type:"array",items:{type:"string"}}}},SH={properties:{generators:{type:"array",items:{type:"string"}},argsStyle:{enum:["flat","grouped"]},serverUrl:{type:"string"},outputMode:{enum:["single","split"]},runtime:{enum:["inline","package"]},importExt:{enum:["js","ts"]},errorMode:{enum:["throw","result"]},dateType:{enum:["string","Date"]},mockData:{enum:["static","faker"]},mockSeed:{type:"number"},queryKeyPrefix:{type:"string"},setup:{type:"string"},pagination:"ClientPagination"}},rw={properties:{style:{enum:["cursor","offset","page","link"]},cursorParam:{type:"string"},nextCursor:{type:"string"},hasMore:{type:"string"},offsetParam:{type:"string"},limitParam:{type:"string"},items:{type:"string"}}},xH={properties:{...rw.properties,exclude:{type:"array",items:{type:"string"}},operations:q("ClientPaginationRule")}},wH={properties:{},description:"The rules configuration blocks set up linting rules and their severity. You can configure built-in rules, add configurable rules, and rules from plugins.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/rules#rules",additionalProperties:(e,t)=>{if(t.startsWith("rule/"))return typeof e=="string"?{enum:["error","warn","off"]}:"ConfigurableRule";if(fH.includes(t))return typeof e=="string"?{enum:["error","warn","off"]}:"BuiltinRule";if(_c(t))return typeof e=="string"?{enum:["error","warn","off"]}:"CustomRule";if(t==="metadata-schema"||t==="custom-fields-schema")return"Schema"}},_H={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Built-in rules are the default linting rules included with Redocly CLI. They enforce widely accepted API design standards and best practices. Each built-in rule has a default severity of error, but you can change the severity or turn off any built-in rule in your configuration file.",documentationLink:"https://redocly.com/docs/cli/rules/built-in-rules"},PH={properties:{severity:{enum:["error","warn","off"]}},additionalProperties:{},required:["severity"],description:"Custom rules are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-rules"},EH={properties:{},description:"Decorators define transformations that can be applied to the API document during the bundle step.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/decorators",additionalProperties:(e,t)=>{if(ew.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinDecorator";if(_c(t))return typeof e=="string"?{type:"string"}:"CustomDecorator"}},$H={properties:{},additionalProperties:{},description:"Built-in decorators are the default decorators included with Redocly CLI.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},AH={properties:{},additionalProperties:{},description:"Custom decorators are defined by users via plugins.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},TH={properties:{},description:"Preprocessors define transformations that can be applied to the API document before bundling.",documentationLink:"https://redocly.com/docs/cli/configuration/reference/preprocessors",additionalProperties:(e,t)=>{if(ew.includes(t))return typeof e=="string"?{type:"string"}:"BuiltinPreprocessor";if(_c(t))return typeof e=="string"?{type:"string"}:"CustomPreprocessor"}},RH={properties:{},additionalProperties:{},description:"Built-in preprocessors are the default preprocessors included with Redocly CLI. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/decorators#list-of-decorators"},OH={properties:{},additionalProperties:{},description:"Custom preprocessors are defined by users via plugins. The available options are the same for decorators and preprocessors.",documentationLink:"https://redocly.com/docs/cli/custom-plugins/custom-decorators"},kH={properties:{properties:q("Schema")},additionalProperties:{}};function IH(e){return{properties:{type:{enum:[...new Set(["any",...e,"SpecExtension"])],description:"REQUIRED. Locates the API node type that the lint command evaluates.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"},property:t=>Array.isArray(t)?{type:"array",items:{type:"string"},description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"}:t===null?null:{type:"string",description:"Property name corresponding to the API node type. If a list of properties is provided, assertions evaluate against each property in the sequence. If not provided (or null), assertions evaluate against the key names for the subject node type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#property-example"},filterInParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that locates where assertions run. An example value given the subject Operation could be filterInParentKeys: [get, put] means that only GET and PUT operations are evaluated for the assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},filterOutParentKeys:{type:"array",items:{type:"string"},description:"The name of the subject's parent key that excludes where assertions run. An example value given the subject Operation could be filterOutParentKeys: [delete] means that all operations except DELETE operations are evaluated for the assertions."},matchParentKeys:{type:"string",description:"Applies a regex pattern to the subject's parent keys to determine where assertions run. An example value given the subject Operation could be matchParentKeys: /^p/ means that POST, PUT, and PATCH operations are evaluated for the assertions."}},required:["type"],description:"REQUIRED. Narrows the subject further by specifying its type, and optionally property, filterParentKeys, etc.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#subject-object"}}function CH(e){return{...e[et.ScorecardClassicLevel],properties:{...e[et.ScorecardClassicLevel]?.properties,...tw}}}var qH={properties:{enum:{type:"array",items:{type:"string"},description:"Asserts a value is within a predefined list of values. Providing a single value in a list is an equality check.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#enum-example"},pattern:{type:"string",description:"Asserts a value matches a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#pattern-example"},notPattern:{type:"string",description:"Asserts a value doesn't match a regex pattern.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#notpattern-example"},casing:{enum:["camelCase","kebab-case","snake_case","PascalCase","MACRO_CASE","COBOL-CASE","flatcase"],description:"Asserts a casing style. Supported styles are: camelCase, kebab-case, snake_case, PascalCase, MACRO_CASE, COBOL-CASE, flatcase.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#casing-example"},mutuallyExclusive:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually exclusive.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyexclusive-example"},mutuallyRequired:{type:"array",items:{type:"string"},description:"Asserts that listed properties (key names only) are mutually required.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#mutuallyrequired-example"},required:{type:"array",items:{type:"string"},description:"Asserts all listed values are defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#required-example"},requireAny:{type:"array",items:{type:"string"},description:"Asserts that at least one of the listed properties (key names only) is defined. ",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#requireany-example"},contains:{type:"array",items:{type:"string"},description:"Asserts that all listed strings are included in the value array.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#contains-example"},disallowed:{type:"array",items:{type:"string"},description:"Asserts all listed values are not defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#disallowed-example"},defined:{type:"boolean",description:"Asserts a property is defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#defined-example"},nonEmpty:{type:"boolean",description:"Asserts a property is not empty.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#nonempty-example"},minLength:{type:"integer",description:"Asserts a minimum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#minlength-example"},maxLength:{type:"integer",description:"Asserts a maximum length (inclusive) of a string or list (array).",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#maxlength-example"},ref:e=>typeof e=="string"?{type:"string",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"}:{type:"boolean",description:"Asserts a reference object presence in object's property. A boolean value of true means the property has a $ref defined. A boolean value of false means the property has not defined a $ref (it has an in-place value). A string value means that the $ref is defined and the unresolved value must match the pattern (for example, '/paths/.*.yaml$/').",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#ref-example"},const:e=>{if(typeof e=="string")return{type:"string",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="number")return{type:"number",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"};if(typeof e=="boolean")return{type:"boolean",description:"Asserts equality of a value. The behavior is the same as the enum assertion with exactly one value.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#const-example"}}},additionalProperties:(e,t)=>{if(/^\w+\/\w+$/.test(t))return{}},description:"A minimum of one assertion property is required to be defined.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#assertion-object"},NH={properties:{subject:"Subject",assertions:"Assertions"},required:["subject","assertions"],description:"The where object is part of a where list which must be defined in order from the root node. Each node can only be used in one where object for each assertion. Each subsequent node must be a descendant of the previous one. Rules that use multiple where objects must target each one on a different node. However, the same node could be used in the last where object and in the root subject object. Nodes may be skipped in between the subject node types of the where list and those defined in the root subject type.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#where-object"},MH={properties:{subject:"Subject",assertions:"Assertions",where:C("Where"),message:{type:"string"},suggest:{type:"array",items:{type:"string"}},reference:{type:"string"},severity:{enum:["error","warn","off"]}},required:["subject","assertions"],description:"Configurable rule definitions enforce your custom API design standards. Add or edit your configurable rules in the configuration file. A configurable rule is a rule that starts with a rule/ prefix followed by a unique rule name. Rule names display in the lint log if the assertions fail. More than one configurable rule may be defined, and any configurable rule may have multiple assertions.",documentationLink:"https://redocly.com/docs/cli/rules/configurable-rules#configurable-rule-object"};function sp(e,t){let r=ai.flatMap(o=>{let i=ao(o),s=t?t.extendTypes(i,o):i;return Object.keys(s)}),{ctx:n}=Gm("rootRedoclyConfigSchema",e);return{...jH,ConfigRoot:yH(n),ConfigApisProperties:bH(n),Subject:IH([...r,...e0]),...n,[et.ScorecardClassicLevel]:CH(n)}}var jH={ConfigurableRule:MH,ConfigApis:gH,ConfigGovernance:sa,ConfigHTTP:vH,Client:SH,ClientPagination:xH,ClientPaginationRule:rw,Where:NH,BuiltinRule:_H,CustomRule:PH,BuiltinDecorator:$H,CustomDecorator:AH,BuiltinPreprocessor:RH,CustomPreprocessor:OH,Schema:kH,Rules:wH,Decorators:EH,Preprocessors:TH,Assertions:qH},{theme:xZ,...DH}=si.properties,LH={...si,properties:DH},nw=sp(LH),An=Xr(nw);var UH=e=>({ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},Link:{leave(t){e.links.items.add(t.operationId)}},WebhooksMap:{Operation:{leave(t){if(e.webhooks.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},Paths:{PathItem:{leave(){e.pathItems.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.links.total=e.links.items.size,e.tags.total=e.tags.items.size}}}),zH=e=>({ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},ChannelMap:{Channel:{leave(){e.channels.total++},Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}},Parameter:{leave(t){t.name&&e.parameters.items.add(t.name)}}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.tags.total=e.tags.items.size}}}),FH=e=>({ExternalDocs:{leave(){e.externalDocs.total++}},ref:{enter(t){e.refs.items.add(t.$ref)}},Tag:{leave(t){e.tags.items.add(t.name)}},NamedChannels:{Channel:{leave(){e.channels.total++},Parameter:{leave(t){t.name&&e.parameters.items.add(t.name)}}}},NamedOperations:{Operation:{leave(t){if(e.operations.total++,t.tags)for(let r of t.tags)e.tags.items.add(r)}}},NamedSchemas:{Schema:{leave(){e.schemas.total++}}},Root:{leave(){e.parameters.total=e.parameters.items.size,e.refs.total=e.refs.items.size,e.tags.total=e.tags.items.size}}});import*as uw from"node:fs";import*as sn from"node:path";var $i="redocly.yaml",ow={extends:["recommended"]},aa=".redocly.lint-ignore.yaml",iw=`# This file instructs Redocly's linter to ignore the rules contained for specific parts of your API.
|
|
104
|
-
# See https://redocly.com/docs/cli/ for more information.
|
|
105
|
-
`,ap="configBundler",cp="pluginsCollector",sw=["@theme/plugin.js","@theme/plugin.cjs","@theme/plugin.mjs"];function pp(e){return{http:{headers:e?.http?.headers??[],customFetch:void 0}}}function ca(e,t){let r=new Set(t),n=0;for(let o of e)r.has(o)&&n++;return n}function aw(e,t){let r=t.direction||t,n=t.property;for(let o=1;o<e.length;o++){let i=e[o],s=e[o-1];if(n){let c=e[o][n],p=e[o-1][n];if(!c||!p)return!1;i=c,s=p}if(typeof i=="string"&&typeof s=="string"&&(i=i.toLowerCase(),s=s.toLowerCase()),!(r==="asc"?i>=s:i<=s))return!1}return!0}var lp=new Set(["mutuallyExclusive","mutuallyRequired","enum","pattern","notPattern","minLength","maxLength","casing","sortOrder","disallowed","required","requireAny","ref","const","defined"]),up=new Set(["pattern","notPattern","enum","defined","nonEmpty","minLength","maxLength","casing","sortOrder","ref","const","contains"]),Mr={pattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||O(e))return[];let o=Array.isArray(e)?e:[e],i=io(t);return o.map(s=>!i?.test(s)&&{message:`"${s}" should match a regex ${t}`,location:De(e)?r:O(n)?r.child(s).key():r.key()}).filter(Ge)},notPattern:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof e>"u"||O(e))return[];let o=Array.isArray(e)?e:[e],i=io(t);return o.map(s=>i?.test(s)&&{message:`"${s}" should not match a regex ${t}`,location:De(e)?r:O(n)?r.child(s).key():r.key()}).filter(Ge)},enum:(e,t,{baseLocation:r})=>typeof e>"u"||O(e)?[]:(Array.isArray(e)?e:[e]).map(o=>!t.includes(o)&&{message:`"${o}" should be one of the predefined values`,location:De(e)?r:r.child(o).key()}).filter(Ge),defined:(e,t=!0,{baseLocation:r})=>{let n=typeof e<"u";return(t?n:!n)?[]:[{message:t?"Should be defined":"Should be not defined",location:r}]},required:(e,t,{baseLocation:r})=>t.map(n=>!e.includes(n)&&{message:`${n} is required`,location:r.key()}).filter(Ge),contains:(e,t,{baseLocation:r})=>{if(typeof e>"u"||O(e))return[];let n=Array.isArray(e)?e:[e];return t.map(o=>!n.includes(o)&&{message:`${o} should be in the list`,location:r}).filter(Ge)},disallowed:(e,t,{baseLocation:r})=>typeof e>"u"||O(e)?[]:(Array.isArray(e)?e:[e]).map(o=>t.includes(o)&&{message:`"${o}" is disallowed`,location:De(e)?r:r.child(o).key()}).filter(Ge),const:(e,t,{baseLocation:r})=>typeof e>"u"?[]:Array.isArray(e)?e.map(n=>t!==n&&{message:`"${n}" should be equal ${t} `,location:De(e)?r:r.child(n).key()}).filter(Ge):e!==t?[{message:`${e} should be equal ${t}`,location:r}]:[],nonEmpty:(e,t=!0,{baseLocation:r})=>{let n=typeof e>"u"||e===null||e===""||Array.isArray(e)&&e.length===0;return(t?!n:n)?[]:[{message:t?"Should not be empty":"Should be empty",location:r}]},minLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length>=t?[]:[{message:`Should have at least ${t} characters`,location:r}],maxLength:(e,t,{baseLocation:r})=>typeof e>"u"||e.length<=t?[]:[{message:`Should have at most ${t} characters`,location:r}],casing:(e,t,{baseLocation:r})=>{if(typeof e>"u"||O(e))return[];let n=Array.isArray(e)?e:[e],o={camelCase:/^[a-z][a-zA-Z0-9]*$/g,"kebab-case":/^([a-z][a-z0-9]*)(-[a-z0-9]+)*$/g,snake_case:/^([a-z][a-z0-9]*)(_[a-z0-9]+)*$/g,PascalCase:/^[A-Z][a-zA-Z0-9]+$/g,MACRO_CASE:/^([A-Z][A-Z0-9]*)(_[A-Z0-9]+)*$/g,"COBOL-CASE":/^([A-Z][A-Z0-9]*)(-[A-Z0-9]+)*$/g,flatcase:/^[a-z][a-z0-9]+$/g};return n.map(i=>!i.match(o[t])&&{message:`"${i}" should use ${t}`,location:De(e)?r:r.child(i).key()}).filter(Ge)},sortOrder:(e,t,{baseLocation:r})=>{let n=t.direction||t,o=t.property;return Array.isArray(e)&&e.length>0&&O(e[0])&&!o?[{message:"Please define a property to sort objects by",location:r}]:typeof e>"u"||aw(e,t)?[]:[{message:`Should be sorted in ${n==="asc"?"an ascending":"a descending"} order${o?` by property ${o}`:""}`,location:r}]},mutuallyExclusive:(e,t,{baseLocation:r})=>ca(e,t)<2?[]:[{message:`${t.join(", ")} keys should be mutually exclusive`,location:r.key()}],mutuallyRequired:(e,t,{baseLocation:r})=>(ca(e,t)>0?ca(e,t)===t.length:!0)?[]:[{message:`Properties ${t.join(", ")} are mutually required`,location:r.key()}],requireAny:(e,t,{baseLocation:r})=>ca(e,t)>=1?[]:[{message:`Should have any of ${t.join(", ")}`,location:r.key()}],ref:(e,t,{baseLocation:r,rawValue:n})=>{if(typeof n>"u")return[];let o=n.hasOwnProperty("$ref");if(typeof t=="boolean")return(t?o:!o)?[]:[{message:t?"should use $ref":"should not use $ref",location:o?r:r.key()}];let i=io(t);return o&&i?.test(n.$ref)?[]:[{message:`$ref value should match ${t}`,location:o?r:r.key()}]}};function cw(e){return(t,r,n)=>e.call(null,t,r,n)}function lw(e,t){if(!e.rules)return{};let r={},n=[];for(let[o,i]of Object.entries(e.rules))if(o.startsWith("rule/")&&O(i)){let s=i;if(t){pw(t,s);for(let a of s.where||[])pw(t,a)}n.push({...s,assertionId:o})}else r[o]=i;return n.length>0&&(r.assertions=n),r}function pw(e,t){for(let r of Object.keys(t.assertions||{})){let[n,o]=r.split("/");if(!n||!o)continue;let i=e.find(s=>s.id===n);if(!i)throw Error(`Plugin ${n} isn't found.`);if(!i.assertions||!i.assertions[o])throw Error(`Plugin ${n} doesn't export assertions function with name ${o}.`);Mr[r]=cw(i.assertions[o])}}var Ai=class e{resolvedConfig;configPath;document;resolvedRefMap;resolve;_alias;plugins;ignore={};doNotResolveExamples;rules;preprocessors;decorators;_usedRules=new Set;_usedVersions=new Set;constructor(t,r={}){this.resolvedConfig=t,this.configPath=r.configPath,this.document=r.document,this.resolvedRefMap=r.resolvedRefMap,this.resolve=pp(this.resolvedConfig.resolve),this._alias=r.alias,this.plugins=r.plugins||[],this.doNotResolveExamples=!!t.resolve?.doNotResolveExamples;let n=o=>lw({rules:o},this.plugins);this.rules={oas2:n({...t.rules,...t.oas2Rules}),oas3_0:n({...t.rules,...t.oas3_0Rules}),oas3_1:n({...t.rules,...t.oas3_1Rules}),oas3_2:n({...t.rules,...t.oas3_2Rules}),async2:n({...t.rules,...t.async2Rules}),async3:n({...t.rules,...t.async3Rules}),arazzo1:n({...t.rules,...t.arazzo1Rules}),arazzo1_1:n({...t.rules,...t.arazzo1_1Rules}),overlay1:n({...t.rules,...t.overlay1Rules}),openrpc1:n({...t.rules,...t.openrpc1Rules}),graphql:n({...Pc(t.rules??{},["no-unresolved-refs"]),...t.graphqlRules})},this.preprocessors={oas2:{...t.preprocessors,...t.oas2Preprocessors},oas3_0:{...t.preprocessors,...t.oas3_0Preprocessors},oas3_1:{...t.preprocessors,...t.oas3_1Preprocessors},oas3_2:{...t.preprocessors,...t.oas3_2Preprocessors},async2:{...t.preprocessors,...t.async2Preprocessors},async3:{...t.preprocessors,...t.async3Preprocessors},arazzo1:{...t.preprocessors,...t.arazzo1Preprocessors},arazzo1_1:{...t.preprocessors,...t.arazzo1_1Preprocessors},overlay1:{...t.preprocessors,...t.overlay1Preprocessors},openrpc1:{...t.preprocessors,...t.openrpc1Preprocessors},graphql:{}},this.decorators={oas2:{...t.decorators,...t.oas2Decorators},oas3_0:{...t.decorators,...t.oas3_0Decorators},oas3_1:{...t.decorators,...t.oas3_1Decorators},oas3_2:{...t.decorators,...t.oas3_2Decorators},async2:{...t.decorators,...t.async2Decorators},async3:{...t.decorators,...t.async3Decorators},arazzo1:{...t.decorators,...t.arazzo1Decorators},arazzo1_1:{...t.decorators,...t.arazzo1_1Decorators},overlay1:{...t.decorators,...t.overlay1Decorators},openrpc1:{...t.decorators,...t.openrpc1Decorators},graphql:{}},this.ignore=r.ignore??{}}forAlias(t){if(t===void 0||!O(this.resolvedConfig?.apis?.[t]))return this;let{apis:r,...n}=this.resolvedConfig,{root:o,output:i,...s}=r[t];return new e({...n,...s},{configPath:this.configPath,document:this.document,resolvedRefMap:this.resolvedRefMap,alias:t,plugins:this.plugins,ignore:this.ignore})}clearIgnoreForRef(t){let r=this.configPath?sn.dirname(this.configPath):process.cwd(),n=pe(t)?t:sn.resolve(r,t);delete this.ignore[n]}saveIgnore(){let t=this.configPath?sn.dirname(this.configPath):process.cwd(),r=sn.join(t,aa),n={};for(let o of Object.keys(this.ignore)){let i=pe(o)?o:cd(sn.relative(t,o)),s=n[i]=this.ignore[o];for(let a of Object.keys(s))s[a]=Array.from(s[a])}uw.writeFileSync(r,iw+sc(n))}addIgnore(t){let r=this.ignore,n=t.location[0];if(n.pointer===void 0)return;let o=r[n.source.absoluteRef]=r[n.source.absoluteRef]||{};(o[t.ruleId]=o[t.ruleId]||new Set).add(n.pointer)}addProblemToIgnore(t){let r=t.location[0];if(r.pointer===void 0)return t;let o=(this.ignore[r.source.absoluteRef]||{})[t.ruleId],i=o&&o.has(r.pointer);return i?{...t,ignored:i}:t}extendTypes(t,r){let n=t;for(let o of this.plugins)if(o.typeExtension!==void 0)switch(r){case"oas3_0":case"oas3_1":case"oas3_2":if(!o.typeExtension.oas3)continue;n=o.typeExtension.oas3(n,r);break;case"oas2":if(!o.typeExtension.oas2)continue;n=o.typeExtension.oas2(n,r);break;case"async2":if(!o.typeExtension.async2)continue;n=o.typeExtension.async2(n,r);break;case"async3":if(!o.typeExtension.async3)continue;n=o.typeExtension.async3(n,r);break;case"arazzo1":case"arazzo1_1":if(!o.typeExtension.arazzo1)continue;n=o.typeExtension.arazzo1(n,r);break;case"overlay1":if(!o.typeExtension.overlay1)continue;n=o.typeExtension.overlay1(n,r);break;case"openrpc1":if(!o.typeExtension.openrpc1)continue;n=o.typeExtension.openrpc1(n,r);break;case"graphql":break;default:throw new Error("Not implemented")}return n}getRuleSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.rules[r][t]||"off";return typeof n=="string"?{severity:n}:{severity:"error",...n}}getPreprocessorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.preprocessors[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getDecoratorSettings(t,r){this._usedRules.add(t),this._usedVersions.add(r);let n=this.decorators[r][t]||"off";return typeof n=="string"?{severity:n==="on"?"error":n}:{severity:"error",...n}}getUnusedRules(){let t=[],r=[],n=[];for(let o of Array.from(this._usedVersions))t.push(...Object.keys(this.rules[o]).filter(i=>!this._usedRules.has(i))),r.push(...Object.keys(this.decorators[o]).filter(i=>!this._usedRules.has(i))),n.push(...Object.keys(this.preprocessors[o]).filter(i=>!this._usedRules.has(i)));return{rules:t,preprocessors:n,decorators:r}}getRulesForSpecVersion(t){switch(t){case"oas3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas3&&r.push(n.preprocessors.oas3)),this.plugins.forEach(n=>n.rules?.oas3&&r.push(n.rules.oas3)),this.plugins.forEach(n=>n.decorators?.oas3&&r.push(n.decorators.oas3)),r}case"oas2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.oas2&&r.push(n.preprocessors.oas2)),this.plugins.forEach(n=>n.rules?.oas2&&r.push(n.rules.oas2)),this.plugins.forEach(n=>n.decorators?.oas2&&r.push(n.decorators.oas2)),r}case"async2":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async2&&r.push(n.preprocessors.async2)),this.plugins.forEach(n=>n.rules?.async2&&r.push(n.rules.async2)),this.plugins.forEach(n=>n.decorators?.async2&&r.push(n.decorators.async2)),r}case"async3":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.async3&&r.push(n.preprocessors.async3)),this.plugins.forEach(n=>n.rules?.async3&&r.push(n.rules.async3)),this.plugins.forEach(n=>n.decorators?.async3&&r.push(n.decorators.async3)),r}case"arazzo1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1&&r.push(n.preprocessors.arazzo1)),this.plugins.forEach(n=>n.rules?.arazzo1&&r.push(n.rules.arazzo1)),this.plugins.forEach(n=>n.decorators?.arazzo1&&r.push(n.decorators.arazzo1)),r}case"arazzo1_1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.arazzo1_1&&r.push(n.preprocessors.arazzo1_1)),this.plugins.forEach(n=>n.rules?.arazzo1_1&&r.push(n.rules.arazzo1_1)),this.plugins.forEach(n=>n.decorators?.arazzo1_1&&r.push(n.decorators.arazzo1_1)),r}case"overlay1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.overlay1&&r.push(n.preprocessors.overlay1)),this.plugins.forEach(n=>n.rules?.overlay1&&r.push(n.rules.overlay1)),this.plugins.forEach(n=>n.decorators?.overlay1&&r.push(n.decorators.overlay1)),r}case"openrpc1":{let r=[];return this.plugins.forEach(n=>n.preprocessors?.openrpc1&&r.push(n.preprocessors.openrpc1)),this.plugins.forEach(n=>n.rules?.openrpc1&&r.push(n.rules.openrpc1)),this.plugins.forEach(n=>n.decorators?.openrpc1&&r.push(n.decorators.openrpc1)),r}case"graphql":{let r=[];return this.plugins.forEach(n=>n.rules?.graphql&&r.push(n.rules.graphql)),r}}}skipRules(t){for(let r of t||[])for(let n of ai)if(this.rules[n][r])this.rules[n][r]="off";else if(Array.isArray(this.rules[n].assertions))for(let o of this.rules[n].assertions)o.assertionId===r&&(o.severity="off")}skipPreprocessors(t){for(let r of t||[])for(let n of ai)this.preprocessors[n][r]&&(this.preprocessors[n][r]="off")}skipDecorators(t){for(let r of t||[])for(let n of ai)this.decorators[n][r]&&(this.decorators[n][r]="off")}};var dw={};var fw={};var mw={};function dp(e){return Array.isArray(e)&&e.length===0}function fp(e,t,r){let{parent:n,key:o}=t,i=!1;if(Array.isArray(e))for(let s=0;s<e.length;s++){if(D(e[s])){let a=t.resolve(e[s]);r(a.node)&&(e.splice(s,1),i=!0,s--)}r(e[s])&&(e.splice(s,1),i=!0,s--)}else if(O(e))for(let s of Object.keys(e)){if(D(e[s])){let a=t.resolve(e[s]);r(a.node)&&(delete e[s],i=!0)}r(e[s])&&(delete e[s],i=!0)}i&&(Lt(e)||dp(e))&&delete n[o]}function Tn(e,t,r){return e===void 0||t===void 0?!1:!Array.isArray(t)&&!Array.isArray(e)?e===t:(t=hw(t),e=hw(e),r==="any"?t.some(n=>e.includes(n)):r==="all"?t.every(n=>e.includes(n)):!1)}function hw(e){return Array.isArray(e)?e:[e]}var VH="any",mp=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||VH;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let l of s){let u=D(a[l])?c.resolve(a[l]).node:a[l];if(O(u)){let m=u[e];Tn(m,t,o)||delete a[l]}}s.some(l=>a[l])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];Tn(c,t,o)||delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>s?.[e]&&!Tn(s?.[e],t,o);return{any:{enter:(s,a)=>{fp(s,a,i)}}}};var BH="any",hp=({property:e,value:t,matchStrategy:r,applyTo:n})=>{let o=r||BH;if(n!==void 0){if(n==="Operation"){let s=["get","post","put","delete","patch","options","head","trace","query"];return{PathItem:{enter(a,c){for(let l of s){let u=D(a[l])?c.resolve(a[l]).node:a[l];if(O(u)){let m=u[e];Tn(m,t,o)&&delete a[l]}}s.some(l=>a[l])||a.additionalOperations||delete c.parent[c.key]}}}}if(n==="PathItem")return{PathItem:{enter(s,a){let c=s[e];Tn(c,t,o)&&delete a.parent[a.key]}}};throw new Error("The 'target' option must be 'Operation' or 'PathItem' when provided.")}let i=s=>Tn(s?.[e],t,o);return{any:{enter:(s,a)=>{fp(s,a,i)}}}};import*as yp from"node:fs";import*as gp from"node:path";function Ym(e){let t=yp.readFileSync(e,"utf-8");return oo(t)}function an(e,t){return pe(e)||t===void 0?e:gp.resolve(gp.dirname(t),e)}function Ti(e){return yp.readFileSync(e,"utf-8")}var bp=({filePath:e})=>({Info:{leave(t,{report:r,location:n,config:o}){if(!e)throw new Error('Parameter "filePath" is not provided for "info-description-override" rule');try{t.description=Ti(an(e,o?.configPath))}catch(i){r({message:`Failed to read markdown override file for "info.description".
|
|
106
|
-
${i.message}`,location:n.child("description")})}}}});var vp=e=>({Info:{leave(t){if(!O(e))throw new Error('"info-override" decorator should be called with an object');let{severity:r,...n}=e;Object.assign(t,n)}}});var Sp=({operationIds:e})=>({Operation:{leave(t,{report:r,location:n,config:o}){if(!t.operationId)return;if(!e)throw new Error('Parameter "operationIds" is not provided for "operation-description-override" rule');let i=t.operationId;if(e[i])try{let s=e[i];t.description=Ti(an(s,o?.configPath))}catch(s){r({message:`Failed to read markdown override file for operation "${i}".
|
|
107
|
-
${s.message}`,location:n.child("operationId").key()})}}}});var HH="x-internal",xp=({internalFlagProperty:e=HH})=>{function t(n,o,i){let{parent:s,key:a}=o,c=!1;if(Array.isArray(n))for(let p=0;p<n.length;p++){if(D(n[p])&&o.resolve(n[p]).node?.[e]){if(O(s.discriminator?.mapping))for(let u in s.discriminator.mapping)i?.[u]===n[p].$ref&&delete s.discriminator.mapping[u];n.splice(p,1),c=!0,p--}n[p]?.[e]&&(n.splice(p,1),c=!0,p--)}else if(O(n))for(let p of Object.keys(n)){if(D(n[p])){let l=o.resolve(n[p]);O(l.node)&&l.node?.[e]&&(delete n[p],c=!0)}O(n[p])&&n[p]?.[e]&&(delete n[p],c=!0)}c&&(Lt(n)||dp(n))&&delete s[a]}let r={};return{DiscriminatorMapping:{enter:n=>{r=JSON.parse(JSON.stringify(n))}},any:{enter:(n,o)=>{t(n,o,r)}}}};var wp=({tagNames:e})=>({Tag:{leave(t,{report:r,config:n}){if(!e)throw new Error('Parameter "tagNames" is not provided for "tag-description-override" rule');let o=e[t.name];if(o)try{t.description=Ti(an(o,n?.configPath))}catch(i){r({message:`Failed to read markdown override file for tag "${t.name}".
|
|
108
|
-
${i.message}`})}}}});var KH=["definitions","parameters","responses","securityDefinitions"],_p=()=>{let e=new Map;function t(o,i){let s=`${o}/${i}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:o,name:i})}function r(o){if(!o.startsWith("#/"))return;let[i,s]=yn(o).pointer;if(!(!i||!s)&&KH.includes(i))return`${i}/${s}`}function n(o,i=new Set){let s=i.size;for(let[a,{usedIn:c,name:p,componentType:l}]of e)!c.some(m=>m!==a&&!i.has(m))&&l&&(i.add(a),delete o[l][p],e.delete(a),Lt(o[l])&&delete o[l]);return i.size>s?n(o,i):i.size}return{ref:{leave(o,{location:i,type:s,key:a}){if(["Schema","Parameter","Response","SecurityScheme"].includes(s.name)){let c=r(o.$ref);if(!c)return;let p=r(i.pointer)??i.pointer,l=e.get(c);l?l.usedIn.push(p):e.set(c,{usedIn:[p],name:a.toString()})}}},Root:{leave(o,i){let s=i.getVisitorData();s.removedCount=n(o)}},NamedSchemas:{Schema(o,{key:i}){o.allOf||t("definitions",i.toString())}},NamedParameters:{Parameter(o,{key:i}){t("parameters",i.toString())}},NamedResponses:{Response(o,{key:i}){t("responses",i.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{key:i}){t("securityDefinitions",i.toString())}},SecurityRequirement(o){for(let i of Object.keys(o)){let s=`securityDefinitions/${i}`,a=e.get(s);a?a.usedIn.push("SecurityRequirement"):e.set(s,{usedIn:["SecurityRequirement"],name:i})}}}};var yw={"operation-description-override":Sp,"tag-description-override":wp,"info-description-override":bp,"info-override":vp,"remove-x-internal":xp,"filter-in":mp,"filter-out":hp,"remove-unused-components":_p};var bw=({operationIds:e})=>({Operation:{enter(t,r){let n=t.operationId;if(!n)return;let o=e[n];if(o){if(o.responses&&t.responses)for(let i of Object.keys(o.responses)){let s=gw(t.responses[i],r.resolve);s&&(s.content=s.content?s.content:{},Object.keys(o.responses[i]).forEach(a=>{let c=o.responses[i][a];s.content[a]={...s.content[a],examples:Ym(an(c,r.config?.configPath))}}),t.responses[i]=s)}if(o.request&&t.requestBody){let i=gw(t.requestBody,r.resolve);if(!i)return;i.content=i.content?i.content:{},Object.keys(o.request).forEach(s=>{let a=o.request[s];i.content[s]={...i.content[s],examples:Ym(an(a,r.config?.configPath))}}),t.requestBody=i}}}}});function gw(e,t){if(!D(e))return e;let r=t(e);return r.error?void 0:JSON.parse(JSON.stringify(r.node))}function vw(e,t){return t in e}function Sw(e){if(!e.startsWith("#/components/"))return;let[t,r,n]=yn(e).pointer;if(!(!r||!n))return`${r}/${n}`}var Pp=()=>{let e=new Map;function t(n,o,i=!1){let s=`${n}/${o}`;e.set(s,{usedIn:e.get(s)?.usedIn??[],componentType:n,name:o,referencesDiscriminator:i})}function r(n,o=new Set){let i=o.size;for(let[s,{usedIn:a,name:c,componentType:p,referencesDiscriminator:l}]of e)if(!(a.some(m=>m!==s&&!o.has(m))||l)&&p&&n.components&&vw(n.components,p)){o.add(s);let m=n.components[p];delete m[c],e.delete(s),Lt(m)&&delete n.components[p]}return o.size>i?r(n,o):o.size}return{ref:{leave(n,{location:o,type:i,key:s}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap","SecurityScheme"].includes(i.name)){let a=Sw(n.$ref);if(!a)return;let c=Sw(o.pointer)??o.pointer,p=e.get(a);p?p.usedIn.push(c):e.set(a,{usedIn:[c],name:s.toString()})}}},Root:{leave(n,o){let i=o.getVisitorData();i.removedCount=r(n),Lt(n.components)&&delete n.components}},NamedSchemas:{Schema(n,o){let i=n.allOf?.some(s=>D(s)&&o.resolve(s)?.node?.discriminator);t("schemas",o.key.toString(),i)}},NamedParameters:{Parameter(n,{key:o}){t("parameters",o.toString())}},NamedResponses:{Response(n,{key:o}){t("responses",o.toString())}},NamedExamples:{Example(n,{key:o}){t("examples",o.toString())}},NamedRequestBodies:{RequestBody(n,{key:o}){t("requestBodies",o.toString())}},NamedHeaders:{Header(n,{key:o}){t("headers",o.toString())}},NamedMediaTypes:{MediaTypesMap(n,{key:o}){t("mediaTypes",o.toString())}},NamedSecuritySchemes:{SecurityScheme(n,{key:o}){t("securitySchemes",o.toString())}},SecurityRequirement(n){for(let o of Object.keys(n)){let i=`securitySchemes/${o}`,s=e.get(i);s?s.usedIn.push("SecurityRequirement"):e.set(i,{usedIn:["SecurityRequirement"],name:o})}}}};var xw={"operation-description-override":Sp,"tag-description-override":wp,"info-description-override":bp,"info-override":vp,"remove-x-internal":xp,"filter-in":mp,"filter-out":hp,"media-type-examples-override":bw,"remove-unused-components":Pp};var ww={};var _w={};var Pw=()=>({SourceDescriptions:{enter(e,{report:t,location:r,specVersion:n}){if(!e.length)return;let o=n==="arazzo1"?["openapi","arazzo"]:["openapi","arazzo","asyncapi"];for(let i of e)o.includes(i?.type)||t({message:`The \`type\` property of the \`sourceDescription\` object must be either ${o.map(s=>`\`${s}\``).join(" or ")}.`,location:r.child([e.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-type"})}}});var Wm={problems:"{{problems}}",assertionName:"{{assertionName}}",nodeType:"{{nodeType}}",key:"{{key}}",property:"{{property}}",file:"{{file}}",pointer:"{{pointer}}"};function Ew(e){let{filterInParentKeys:t,filterOutParentKeys:r,matchParentKeys:n}=e,o=n&&io(n),i=o&&(c=>o.test(c.toString())),s=Array.isArray(t)&&(c=>t.includes(c.toString())),a=Array.isArray(r)&&(c=>!r.includes(c.toString()));return[i,s,a].filter(Ge)}function Aw(e){let t=ws(Mr).filter(o=>e.assertions[o]!==void 0).map(o=>({name:o,conditions:e.assertions[o],runsOnKeys:lp.has(o),runsOnValues:up.has(o)})),r=t.find(o=>o.runsOnKeys&&!o.runsOnValues),n=t.find(o=>o.runsOnValues&&!o.runsOnKeys);if(n&&!e.subject.property)throw new Error(`The '${n.name}' assertion can't be used on all keys. Please provide a single property.`);if(r&&e.subject.property)throw new Error(`The '${r.name}' assertion can't be used on properties. Please remove the 'property' key.`);return t}function Tw({subject:e}){return(Array.isArray(e.property)?e.property:[e?.property]).filter(Boolean)}function Rw(e,t,r){let n=Tw(e),o=[];for(let i of t)if(n.length)for(let s of n)o.push($w({assert:i,ctx:r,assertionProperty:s}));else o.push($w({assert:i,ctx:r}));return o.flat()}function Ow(e,t){let r=Ew(e.subject),n=r.length?(c,p)=>!r.every(l=>l(p)):void 0,o={[e.subject.type]:{enter:t,...n&&{skip:n}}};if(!Array.isArray(e.where))return o;let i={},s=i,a=e.where;for(let c=0;c<a.length;c++){let p=a[c];if(!De(p.subject?.type))throw new Error(`${e.assertionId} -> where -> [${c}]: 'type' (String) is required`);let l=Ew(p.subject),u=Aw(p),m=(f,h,y)=>!l.every(g=>g(h))||!!Rw(p,u,{...y,node:f}).length,d={...(l.length||u.length)&&{skip:m}};p.subject.type===e.subject.type&&c===a.length-1?o[e.subject.type]={enter:t,...d.skip&&{skip:d.skip}||n&&{skip:(f,h,y)=>!!(d.skip?.(f,h,y)||n?.(f,h))}}:i=i[p.subject?.type]=d}return i[e.subject.type]=o[e.subject.type],s}function kw(e,t){return(r,n)=>{let o=Tw(t),i=`${G.blue(e)} failed because the ${G.blue(t.subject.type)} ${G.blue(o.join(", "))} didn't meet the assertions: ${Wm.problems}`.replace(/ +/g," "),s=Rw(t,Aw(t),{...n,node:r});if(s.length)for(let a of GH(s)){let c=t.message||i,l={problems:Qm(a),assertionName:e,nodeType:t.subject.type,property:o.join(", "),key:String(n.key),pointer:n.location.pointer,file:Jm(n.location.source.absoluteRef)};n.report({message:Xm(c,l),location:YH(a)||n.location,forceSeverity:t.severity||"error",suggest:t.suggest||[],...t.reference&&{reference:t.reference},ruleId:e})}}}function GH(e){let t={};for(let r of e){if(!r.location)continue;let n=r.location.pointer;t[n]=t[n]||[],t[n].push(r)}return Object.values(t)}function YH(e){return e.length?e[0].location:void 0}function Qm(e){return e.length===1?e[0].message??"":e.map(t=>`
|
|
109
|
-
- ${t.message??""}`).join("")}function Jm(e){return pe(e)?e.split("/").at(-1)||e:e.split(/[/\\]/).at(-1)||e}function Xm(e,t){let r=e;for(let n of Object.keys(Wm)){let o=Wm[n],i=t[n];o&&(r=r.split(o).join(i))}return r}function $w({assert:e,ctx:t,assertionProperty:r}){let n=e.name==="ref"?t.rawLocation:t.location;if(r){let o=D(t.node[r])?t.resolve(t.node[r])?.node:t.node[r],i=t.rawNode[r],s=n.child(r);return Mr[e.name](o,e.conditions,{...t,baseLocation:s,rawValue:i})}else{let o=Array.isArray(t.node)?t.node:Object.keys(t.node);return Mr[e.name](o,e.conditions,{...t,rawValue:t.rawNode,baseLocation:n})}}var xt=e=>{let t=[],r=Object.values(e).filter(n=>O(n));for(let[n,o]of r.entries()){if(!De(o.subject.type))throw new Error(`${o.assertionId}: 'type' (String) is required`);let i=kw(o.assertionId,o),s=Ow(o,i);t.push(s)}return t};var jr=()=>({Schema(e,{report:t,location:r}){if(!Array.isArray(e.enum))return;let n=new Set;for(let[o,i]of e.enum.entries())n.has(i)&&t({message:`Duplicated enum value found: '${i}'.`,location:r.child(["enum",o]),reference:"https://redocly.com/docs/cli/rules/common/no-duplicated-enum-values"}),n.add(i)}});var qw=Tr(Cw(),1);function zt(e,t){return e.hasOwnProperty(t)?e[t]:void 0}var wo=(e,t,r)=>{if(D(e)){let n=t.resolve(e,r?.source.absoluteRef);return n?{schema:n.node,location:n.location}:{schema:void 0,location:r}}return{schema:e,location:r}},Rn=(e,t,r,n=new Set,o)=>{let{schema:i,location:s}=wo(e,r,o);return!i||n.has(i)?!1:(n.add(i),!!(i.properties&&zt(i.properties,t)!==void 0||i.allOf?.some(a=>Rn(a,t,r,n,s))||ac(i.anyOf)&&i.anyOf.every(a=>Rn(a,t,r,new Set(n),s))||ac(i.oneOf)&&i.oneOf.every(a=>Rn(a,t,r,new Set(n),s))))};function Oi(e){return Array.isArray(e)?"array":e===null?"null":Number.isInteger(e)?"integer":typeof e}function Ri(e){let t=e?.security;return Array.isArray(t)&&t.length>0}function Ep(e,t,r){if(Ri(e))return!0;if(!Array.isArray(e?.traits))return!1;for(let n of e.traits){let o=D(n)?t(n,r).node:n;if(Ri(o))return!0}return!1}function ki(e,t,r){if(r&&e===null)return!0;switch(t){case"array":return Array.isArray(e);case"object":return O(e);case"null":return e===null;case"integer":return Number.isInteger(e);default:return typeof e===t}}function _o(e,t){return`${e} object should contain \`${t}\` field.`}function WH(e,t){return`${e} object should contain one of the fields: ${t.map(r=>`\`${r}\``).join(", ")}.`}function Nw(e,t){return`${e} object \`${t}\` must be non-empty string.`}function Xt({fieldName:e,value:t,ctx:r,reference:n}){O(t)&&(t[e]===void 0?r.report({message:_o(r.type.name,e),location:r.location.child([e]).key(),reference:n}):t[e]||r.report({message:Nw(r.type.name,e),location:r.location.child([e]).key(),reference:n}))}function Mw({fieldNames:e,value:t,ctx:r,reference:n}){if(O(t)){e.some(o=>t.hasOwnProperty(o))||r.report({message:WH(r.type.name,e),location:r.location.key(),reference:n});for(let o of e)t.hasOwnProperty(o)&&!t[o]&&r.report({message:Nw(r.type.name,o),location:r.location.child([o]).key(),reference:n})}}function Po(e,t){if(e===null)return t;if(typeof e!="string"||!t.length)return[];let r=[];for(let n=0;n<t.length;n++){let o=(0,qw.default)(e,t[n]);o<4&&r.push({distance:o,variant:t[n]})}return r.sort((n,o)=>n.distance-o.distance),r.map(n=>n.variant)}function $p(e){if(O(e)){if(Dt(e.dataValue))return{value:e.dataValue,field:"dataValue"};if(Dt(e.value))return{value:e.value,field:"value"}}}function On({example:e,schema:t,options:r,reference:n}){let{location:o,ctx:i,validator:s,allowAdditionalProperties:a,ajvContext:c}=r,{resolve:p,location:l,report:u,specVersion:m}=i;try{let{valid:d,errors:f}=s.validate(e,t,{schemaLoc:l.child("schema"),instancePath:o.pointer,resolve:p,allowAdditionalProperties:a,ajvContext:c,specVersion:m});if(!d)for(let h of f)u({message:`Example value must conform to the schema: ${h.message}.`,location:{...new sr(o.source,h.instancePath),reportOnKey:h.keyword==="unevaluatedProperties"||h.keyword==="additionalProperties"},from:l,suggest:h.suggest,reference:n})}catch(d){if(d.message==="discriminator: requires oneOf or anyOf composite keyword")return;u({message:`Example validation errored: ${d.message}.`,location:l.child("schema"),from:l,reference:n})}}var QH=10;function Zm(e,t,r,n,{report:o,location:i},s){if(e&&!e.includes(t)){let a=e.length>QH?`\`${r}\` "${t}" is not a valid value.${s?` See the supported values: ${s}.`:""}`:`\`${r}\` can be one of the following only: ${e.map(c=>`"${c}"`).join(", ")}.`;o({location:i,message:a,from:n,suggest:Po(t,e)})}}function Ii({responseCodes:e,codeRange:t,report:r,reference:n}){let o=new RegExp(`^${t[0]}[0-9Xx]{2}$`);e.some(s=>t==="2XX"&&s==="default"||o.test(s))||r({message:`Operation must have at least one \`${t}\` response.`,location:{reportOnKey:!0},reference:n})}function pa(e,t){return t?e.name.toLowerCase():e.name}var Dr=()=>({Schema(e,{report:t,location:r}){if(!(e.enum&&!Array.isArray(e.enum))){if(e.enum&&e.type&&!Array.isArray(e.type)){let n=e.enum.filter(o=>!ki(o,e.type,e.nullable));for(let o of n)t({message:`All values of \`enum\` field must be of the same type as the \`type\` field: expected "${e.type}" but received "${Oi(o)}".`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}if(e.enum&&e.type&&Array.isArray(e.type)){let n={};for(let o of e.enum){n[o]=[];for(let i of e.type)ki(o,i,e.nullable)||n[o].push(i);n[o].length!==e.type.length&&delete n[o]}for(let o of Object.keys(n))t({message:`Enum value \`${o}\` must be of allowed types: \`${e.type}\`.`,location:r.child(["enum",e.enum.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/common/no-enum-type-mismatch"})}}}});var kn=()=>({Schema(e,{report:t,location:r}){typeof e.maximum=="number"&&typeof e.exclusiveMaximum=="number"&&t({message:"Schema should not have both `maximum` and `exclusiveMaximum`. Use one or the other.",location:r.child(["exclusiveMaximum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"}),typeof e.minimum=="number"&&typeof e.exclusiveMinimum=="number"&&t({message:"Schema should not have both `minimum` and `exclusiveMinimum`. Use one or the other.",location:r.child(["exclusiveMinimum"]).key(),reference:"https://redocly.com/docs/cli/rules/common/no-mixed-number-range-constraints"})}});var Lr=()=>{let e=[];return{Schema:{leave(t){e.pop()},enter(t,r){if(e.push(t),!t.required)return;let n=(s,a)=>{let c=p=>wo(p,r).schema===a;return!!(s.allOf?.some(c)||s.anyOf?.some(c)||s.oneOf?.some(c))},o=(s,a)=>{if(s<0)return;let c=e[s];return n(c,a)?o(s-1,c)??c:void 0},i=o(e.length-2,t);for(let[s,a]of t.required.entries())!Rn(t,a,r)&&!Rn(i,a,r)&&r.report({message:`Required property '${a}' is not defined.`,location:r.location.child(["required",s]),reference:"https://redocly.com/docs/cli/rules/common/no-required-schema-properties-undefined"})}}}};var Ur=()=>({Schema(e,{report:t,location:r}){e.type==="object"&&e.items&&t({message:"Schema type mismatch: 'object' type should not contain 'items' field.",location:r.child("items"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"}),e.type==="array"&&e.properties&&t({message:"Schema type mismatch: 'array' type should not contain 'properties' field.",location:r.child("properties"),reference:"https://redocly.com/docs/cli/rules/common/no-schema-type-mismatch"})}});var JH=/\((\d+):(\d+)\)$/,zr=class e extends Error{originalError;source;col;line;constructor(t,r){super(t.message.split(`
|
|
110
|
-
`)[0]),this.originalError=t,this.source=r,Object.setPrototypeOf(this,e.prototype);let[,n,o]=this.message.match(JH)||[];this.line=parseInt(n,10),this.col=parseInt(o,10)}};var ot=()=>({ref:{leave(e,{report:t,location:r},n){n.node===void 0&&Eo(n,t,r)}},DiscriminatorMapping(e,{report:t,resolve:r,location:n}){for(let o of Object.keys(e)){let i=r({$ref:e[o]});if(i.node!==void 0)return;Eo(i,t,n.child(o))}}});function Eo(e,t,r){let n=e.error;n instanceof zr&&t({message:"Failed to parse: "+n.message,location:{source:n.source,pointer:void 0,start:{col:n.col,line:n.line}}});let o=e.error?.message;t({location:r,message:`Can't resolve $ref${o?": "+o:""}`,reference:"https://redocly.com/docs/cli/rules/oas/no-unresolved-refs"})}var Fr=()=>({any(e,{report:t,location:r}){typeof e.description=="string"&&(/<script\b/i.test(e.description)&&t({message:"Markdown descriptions must not contain '<script>' tags.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/<[a-z][^>]*\bon[a-z]+\s*=/i.test(e.description)&&t({message:"Markdown descriptions must not contain HTML event handler attributes.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}),/(?:\]\(\s*|\b(?:href|src)\s*=\s*["']?\s*)javascript:/i.test(e.description)&&t({message:"Markdown descriptions must not contain 'javascript:' URLs.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/common/no-unsafe-markdown"}))}});var it=()=>({any(e,{report:t,type:r,location:n,rawLocation:o,key:i,resolve:s,ignoreNextVisitorsOnNode:a}){let c=Oi(e),p=o!==n?o:void 0;if(r.items){c!=="array"&&(t({message:`Expected type \`${r.name}\` (array) but got \`${c}\``,from:p}),a());return}else if(c!=="object"){r!==cr&&t({message:`Expected type \`${r.name}\` (object) but got \`${c}\``,from:p}),a();return}let l=typeof r.required=="function"?r.required(e,i):r.required;for(let d of l||[])e.hasOwnProperty(d)||t({message:`The field \`${d}\` must be present on this level.`,from:p,location:[{reportOnKey:!0}]});let u=r.allowed?.(e);if(u&&O(e))for(let d in e)u.includes(d)||r.extensionsPrefix&&d.startsWith(r.extensionsPrefix)||!Object.keys(r.properties).includes(d)||t({message:`The field \`${d}\` is not allowed here.`,from:p,location:n.child([d]).key()});let m=r.requiredOneOf||null;if(m){let d=!1;for(let f of m||[])e.hasOwnProperty(f)&&(d=!0);d||t({message:`Must contain at least one of the following fields: ${r.requiredOneOf?.join(", ")}.`,from:p,location:[{reportOnKey:!0}]})}for(let d of Object.keys(e)){let f=n.child([d]),h=e[d],y=zt(r.properties,d);if(y===void 0&&(y=r.additionalProperties),typeof y=="function"&&(y=y(h,d)),pr(y))continue;let g=y,v=Oi(h);if(g===void 0){if(d.startsWith("x-"))continue;t({message:`Property \`${d}\` is not expected here.`,suggest:Po(d,Object.keys(r.properties)),from:p,location:f.key()});continue}if(g!==null){if(g.resolvable!==!1&&D(h)&&(h=s(h).node),g.items&&g.items?.enum&&Array.isArray(h))for(let b=0;b<h.length;b++)Zm(g.items?.enum,h[b],d,p,{report:t,location:n.child([d,b])},g.items?.documentationLink);if(g.enum)Zm(g.enum,h,d,p,{report:t,location:n.child([d])},g.documentationLink);else if(g.type&&!ki(h,g.type,!1))t({message:`Expected type \`${g.type}\` but got \`${v}\`.`,from:p,location:f}),a();else if(v==="array"&&g.items?.type){let b=g.items?.type;for(let x=0;x<h.length;x++){let w=h[x];ki(w,b,!1)||t({message:`Expected type \`${b}\` but got \`${Oi(w)}\`.`,from:p,location:f.child([x])})}}typeof g.minimum=="number"&&g.minimum>e[d]&&t({message:`The value of the ${d} field must be greater than or equal to ${g.minimum}`,from:p,location:n.child([d])})}}}});var jw=()=>({CriterionObject:{enter(e,{report:t,location:r}){e.type&&(e.type==="xpath"||O(e.type)&&e.type.type==="xpath")&&t({message:"The `xpath` type criteria is not supported by Respect.",location:r.child(["type"]),reference:"https://redocly.com/docs/cli/rules/respect/no-criteria-xpath"})}}});var Dw=()=>{function e(t,{report:r,location:n}){if(Array.isArray(t))for(let o of t){let i=zt(o,"scheme"),s=zt(o,"schemeName");i&&s&&r({message:"`x-security` item must not contain both `scheme` and `schemeName`.",location:n.child(["x-security",t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-both-scheme-and-scheme-name"})}}return{Workflow:{enter(t,r){e(t?.["x-security"],r)}},Step:{enter(t,r){e(t?.["x-security"],r)}}}};var Lw=()=>({Step:{enter(e,{report:t,location:r}){if(!e?.["x-operation"])return;let o=e?.["x-security"];if(o)for(let i of o)"schemeName"in i&&t({message:"The `schemeName` can be only used in Step with OpenAPI operation, please use `scheme` instead.",location:r.child(["x-security",o.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/respect/no-x-security-scheme-name-without-openapi"})}}});var Uw=()=>{let e=0;return{SourceDescriptions:{enter(t){e=Array.isArray(t)?t.length:0}},Workflow:{leave(t,{report:r,location:n}){let o=t?.["x-security"];if(!(!o||e<=1)){for(let i of o)if("schemeName"in i){let s=i.schemeName;typeof s=="string"&&s.startsWith("$sourceDescriptions.")||r({message:"When multiple `sourceDescriptions` exist, `workflow.x-security.schemeName` must be a reference to a source description (e.g. `$sourceDescriptions.{name}.{schemeName}`)",location:n.child(["x-security",o.indexOf(i),"schemeName"]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-name-reference"})}}}}}};var XH={apiKey:["apiKey"],basic:["username","password"],digest:["username","password"],bearer:["token"],oauth2:["accessToken"],openIdConnect:["accessToken"],mutualTLS:[]};function zw(e,{report:t,location:r}){if(e)for(let n of e){if("schemeName"in n)continue;let{scheme:o,values:i}=n,s=o?.type==="http"?o.scheme:o?.type;if(s==="mutualTLS"){Y.warn("Please use CLI option to provide mutualTLS certificates for mutualTls authentication security schema.");continue}let a=XH[s];if(a)for(let c of a)(!i||!(c in i))&&t({message:`The \`${c}\` is required when using the ${s} authentication security schema.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"});else t({message:`The \`${s}\` authentication security schema is not supported.`,location:r.child(["x-security",e.indexOf(n)]),reference:"https://redocly.com/docs/cli/rules/respect/x-security-scheme-required-values"})}}var Fw=()=>({Step:{enter(e,t){zw(e?.["x-security"],t)}},Workflow:{enter(e,t){zw(e?.["x-security"],t)}}});var Vw=()=>({FailureActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The FailureAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},SuccessActionObject:{enter(e,{report:t,location:r}){let n=e?.criteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The SuccessAction criteria items must be unique.",location:r.child(["criteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}},Step:{enter(e,{report:t,location:r}){let n=e?.successCriteria;if(!Array.isArray(n))return;let o=new Set;for(let i of n){let s=JSON.stringify(i);o.has(s)?t({message:"The Step SuccessCriteria items must be unique.",location:r.child(["successCriteria",n.indexOf(i)]),reference:"https://redocly.com/docs/cli/rules/arazzo/criteria-unique"}):o.add(s)}}}});var Bw=()=>{let e=new Map,t=new Map,r=[];function n({value:s,report:a,location:c,path:p,definedWorkflowOutputs:l}){let u=/\$workflows\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,m;for(;(m=u.exec(s))!==null;){let[d,f,h]=m,y=l.get(f);y?y.includes(h)||a({message:`Output key "${h}" is not defined in workflow "${f}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Workflow "${f}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function o({value:s,report:a,location:c,path:p,definedStepOutputs:l}){let u=/\$steps\.([^.\s]+)\.outputs\.([^.\s}\]#]+)/g,m;for(;(m=u.exec(s))!==null;){let[d,f,h]=m,y=l.get(f);y?y.includes(h)||a({message:`Output key "${h}" is not defined in step "${f}". Available outputs: [ ${y.join(", ")} ].`,location:c.child(p)}):a({message:`Step "${f}" referenced in runtime expression "${d}" is not defined or has no outputs.`,location:c.child(p)})}}function i(s,a,c=[]){if(typeof s=="string")n({value:s,report:a.report,location:a.location,path:c,definedWorkflowOutputs:e}),o({value:s,report:a.report,location:a.location,path:c,definedStepOutputs:t});else if(O(s)||Array.isArray(s))for(let[p,l]of Object.entries(s))i(l,a,[...c,p])}return{Step:{enter(s,{report:a,location:c}){s.outputs&&t.set(s.stepId,Object.keys(s.outputs))}},Workflow:{enter(s,{report:a,location:c}){s.outputs&&e.set(s.workflowId,Object.keys(s.outputs))}},Parameters:{enter(s,a){r.push(()=>{i(s,a)})}},RequestBody:{enter(s,a){r.push(()=>{i(s,a)})}},CriterionObject:{enter(s,a){r.push(()=>{i(s.condition,a)})}},Outputs:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedSecurity:{enter(s,a){r.push(()=>{i(s,a)})}},ExtendedOperation:{enter(s,a){r.push(()=>{i(s,a)})}},Root:{leave(){for(let s of r)s()}}}};var Hw=()=>({Parameters:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The parameter `name` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.has(o?.reference)&&t({message:"The parameter `reference` must be unique amongst listed parameters.",location:r.child([e.indexOf(o)])}),n.add(o?.name??o?.reference)}}});var Kw=()=>{let e=new Set;return{Step:{leave(){e.clear()},RequestBody:{enter(t,{report:r,location:n}){if(t.replacements)for(let o of t.replacements)e.has(o.target)&&r({message:"Every `replacement` in `requestBody` must be unique.",location:n.child(["replacements",t.replacements.indexOf(o),"target"]),reference:"https://redocly.com/docs/cli/rules/arazzo/requestbody-replacements-unique"}),e.add(o.target)}}}}};var Gw=()=>{let e=new Set;return{SourceDescriptions:{enter(t,{report:r,location:n}){if(t.length)for(let o of t)e.has(o.name)&&r({message:"The `name` must be unique amongst all SourceDescriptions.",location:n.child([t.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/sourcedescription-name-unique"}),e.add(o.name)}}}};var Yw=()=>({SourceDescriptions:{enter(e,{report:t,location:r}){e?.length||t({message:"The `sourceDescriptions` list must have at least one entry.",location:r})}}});var ZH=["x-operation","operationId","operationPath","channelPath","workflowId"],Ww=()=>({Step:{enter(e,{report:t,location:r}){let n=ZH.filter(o=>Object.hasOwn(e,o));n.length>1&&t({message:`A step can only use one of the following mutually exclusive fields: ${n.map(o=>`\`${o}\``).join(", ")}.`,location:n.map(o=>r.child([o]).key()),reference:"https://redocly.com/docs/cli/rules/arazzo/spec-step-mutually-exclusive-fields"})}}});var Qw=()=>({OnFailureActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onFailure` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onfailure-unique"}),n.add(o.name??o.reference)}}});var Jw=()=>({OnSuccessActionList:{enter(e,{report:t,location:r}){if(!e)return;let n=new Set;for(let o of e)n.has(o?.name)&&t({message:"The action `name` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.has(o?.reference)&&t({message:"The action `reference` must be unique amongst listed `onSuccess` actions.",location:r.child([e.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/step-onsuccess-unique"}),n.add(o?.name??o?.reference)}}});var Xw=()=>({Workflow:{enter(e,{report:t,location:r}){if(!e.steps)return;let n=new Set;for(let o of e.steps){if(!o.stepId)return;n.has(o.stepId)&&t({message:"The `stepId` must be unique amongst all steps described in the workflow.",location:r.child(["steps",e.steps.indexOf(o)]),reference:"https://redocly.com/docs/cli/rules/arazzo/stepid-unique"}),n.add(o.stepId)}}}});var Zw=()=>{let e=new Set,t=new Set,r=new Set;return{SourceDescriptions:{enter(n){for(let o of n)t.add(o.name)}},Workflows:{enter(n){for(let o of n)r.add(o.workflowId)}},Workflow:{leave(n,{report:o,location:i}){if(n.dependsOn)for(let s of n.dependsOn){if(s.startsWith("$sourceDescriptions.")){let a=s.split(".")[1];t.has(a)||o({message:`SourceDescription ${a} must be defined in sourceDescriptions.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"})}!s.startsWith("$sourceDescriptions")&&!r.has(s)&&o({message:`Workflow ${s} must be defined in workflows.`,location:i.child(["dependsOn",n.dependsOn.indexOf(s)]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.has(s)&&o({message:"Every workflow in dependsOn must be unique.",location:i.child(["dependsOn"]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflow-dependson"}),e.add(s)}}}}};var e_=()=>{let e=new Set;return{Workflow:{enter(t,{report:r,location:n}){t.workflowId&&(e.has(t.workflowId)&&r({message:"Every workflow must have a unique `workflowId`.",location:n.child([t.workflowId]),reference:"https://redocly.com/docs/cli/rules/arazzo/workflowid-unique"}),e.add(t.workflowId))}}}};var t_={assertions:xt,"criteria-unique":Vw,"no-criteria-xpath":jw,"no-duplicated-enum-values":jr,"no-unsafe-markdown":Fr,"no-enum-type-mismatch":Dr,"no-mixed-number-range-constraints":kn,"no-required-schema-properties-undefined":Lr,"no-schema-type-mismatch":Ur,"no-unresolved-refs":ot,"no-x-security-both-scheme-and-scheme-name":Dw,"no-x-security-scheme-name-without-openapi":Lw,"outputs-defined":Bw,"parameters-unique":Hw,"requestBody-replacements-unique":Kw,"sourceDescription-name-unique":Gw,"sourceDescription-type":Pw,"sourceDescriptions-not-empty":Yw,"spec-step-mutually-exclusive-fields":Ww,"step-onFailure-unique":Qw,"step-onSuccess-unique":Jw,"stepId-unique":Xw,struct:it,"workflow-dependsOn":Zw,"workflowId-unique":e_,"x-security-scheme-name-reference":Uw,"x-security-scheme-required-values":Fw},r_={};var Zt=()=>({Info(e,{report:t,location:r}){e.contact||t({message:_o("Info","contact"),location:r.child("contact").key(),reference:"https://redocly.com/docs/cli/rules/oas/info-contact"})}});var n_=/^1\.0\.\d+(-.+)?$/;function la(e){return e.startsWith("oas3")?"oas3":e==="oas2"?"oas2":e==="async2"?"async2":e==="async3"?"async3":e==="arazzo1"||e==="arazzo1_1"?"arazzo1":e==="overlay1"?"overlay1":e==="openrpc1"?"openrpc1":e==="graphql"?"graphql":"oas3"}function cn(e){if(!O(e))throw new Error(`Document must be JSON object, got ${typeof e}`);if(typeof e.openrpc=="string"&&e.openrpc.startsWith("1."))return"openrpc1";if(e.openapi&&typeof e.openapi!="string")throw new Error(`Invalid OpenAPI version: should be a string but got "${typeof e.openapi}"`);if(typeof e.openapi=="string"&&e.openapi.startsWith("3.0."))return"oas3_0";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.1."))return"oas3_1";if(typeof e.openapi=="string"&&e.openapi.startsWith("3.2."))return"oas3_2";if(e.swagger&&e.swagger==="2.0")return"oas2";if(e.openapi||e.swagger)throw new Error(`Unsupported OpenAPI version: ${e.openapi||e.swagger}`);if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("2."))return"async2";if(typeof e.asyncapi=="string"&&e.asyncapi.startsWith("3."))return"async3";if(e.asyncapi)throw new Error(`Unsupported AsyncAPI version: ${e.asyncapi}`);if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.0."))return"arazzo1";if(typeof e.arazzo=="string"&&e.arazzo.startsWith("1.1."))return"arazzo1_1";if(e.arazzo)throw new Error(`Unsupported Arazzo version: ${e.arazzo}`);if(typeof e.overlay=="string"&&n_.test(e.overlay))return"overlay1";throw new Error("Unsupported specification")}var In=()=>{let e;return{Root:{enter(t){e=cn(t)},License:{leave(t,r){e==="oas3_1"||e==="oas3_2"?Mw({fieldNames:["url","identifier"],value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"}):Xt({fieldName:"url",value:t,ctx:r,reference:"https://redocly.com/docs/cli/rules/oas/info-license-strict"})}}}}};var Cn=({ignoreCase:e=!1})=>{let t=new Set;return{Tag:{leave(r,n){let o=pa(r,e);t.has(o)?n.report({message:`Duplicate tag name found: '${r.name}'.`,location:n.location}):t.add(o)}}}};var qn=()=>({Root:{PathItem:{Operation(e,t){Xt({fieldName:"operationId",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId"})}}}});function e9(e,t,r){if("flows"in e&&e.flows){let{node:n,location:o}=D(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=D(a)?t(a,i).node:a;return Object.keys(c?.scopes||{})});return[...new Set(s)]}return Object.keys(e.scopes||{})}var Ci=e=>{let t=new Map,r=[];return{Root:{leave(n,{report:o}){for(let{schemeName:i,scopes:s,location:a}of r){let c=t.get(i);if(c?.type==="oauth2"){if(e.requireScopes&&s.length===0){o({message:`The "${i}" security requirement must list at least one scope.`,location:a.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}for(let p=0;p<s.length;p++){let l=s[p];c.definedScopes.includes(l)||o({message:`The "${l}" scope is not defined in the "${i}" security scheme.`,location:a.child([p]),suggest:Po(l,c.definedScopes),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}},SecurityScheme(n,{key:o,resolve:i,location:s}){t.set(o.toString(),{type:n.type,definedScopes:n.type==="oauth2"?e9(n,i,s):[]})},SecurityRequirement(n,{location:o}){for(let[i,s]of Object.entries(n))r.push({schemeName:i,scopes:s||[],location:o.child([i])})}}};var Nn=()=>({Tag(e,t){Xt({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/tag-description"})}});var Mn=({ignoreCase:e=!1})=>({Root(t,{report:r,location:n}){if(t.tags)for(let o=0;o<t.tags.length-1;o++)pa(t.tags[o],e)>pa(t.tags[o+1],e)&&r({message:"The `tags` array should be in alphabetical order.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/tags-alphabetical"})}});var o_=()=>({Channel(e,{report:t,key:r}){r.split(/[/.:]/).filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var i_=()=>({Channel(e,{report:t,key:r,location:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var s_="https://redocly.com/docs/cli/rules/async/security-defined",a_=()=>{let e=new Map,t=new Map,r=[],n,o=!1;return{Root:{leave(i,{report:s}){for(let[c,p]of e.entries())if(!p.defined)for(let l of p.from)s({message:`There is no \`${c}\` security scheme defined.`,location:l.key(),reference:s_});let a=[...t.keys()];for(let{location:c,channelServers:p}of r){let l=p??a;l.length>0&&l.every(m=>t.get(m))||s({message:"Every operation should have security defined on it.",location:c.key(),reference:s_})}}},SecurityScheme(i,{key:s}){i!=null&&e.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=e.get(a),p=s.child([a]);c?c.from.push(p):e.set(a,{from:[p]})}},Components:{enter(){o=!0},leave(){o=!1}},Server(i,{key:s}){o||t.set(s.toString(),Ri(i))},Channel:{skip(){return o},enter(i){n=Array.isArray(i?.servers)&&i.servers.length>0?i.servers:void 0},Operation(i,{location:s,resolve:a}){Ep(i,a)||r.push({location:s,channelServers:n})}}}};var c_={struct:it,"no-unresolved-refs":ot,assertions:xt,"info-contact":Zt,"info-license-strict":In,"operation-operationId":qn,"security-defined":a_,"channels-kebab-case":o_,"no-channel-trailing-slash":i_,"tag-description":Nn,"tags-alphabetical":Mn,"no-duplicated-enum-values":jr,"no-unsafe-markdown":Fr,"no-duplicated-tag-names":Cn,"no-required-schema-properties-undefined":Lr,"no-enum-type-mismatch":Dr,"no-mixed-number-range-constraints":kn,"no-schema-type-mismatch":Ur,"security-scopes-defined":Ci},p_={};var l_=()=>({Channel(e,{report:t}){(e.address||"").split(/[/.:]/).filter(n=>n!=="").every(n=>/^{.+}$/.test(n)||/^[a-z0-9-.]+$/.test(n))||t({message:`\`${e.address}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/async/channels-kebab-case"})}});var u_=()=>({Channel(e,{report:t,location:r}){e?.address?.endsWith("/")&&e?.address!=="/"&&t({message:`\`${e.address}\` should not have a trailing slash.`,location:r.key(),reference:"https://redocly.com/docs/cli/rules/async/no-channel-trailing-slash"})}});var d_="#/components/securitySchemes/",t9="#/components/",eh="https://redocly.com/docs/cli/rules/async/security-defined";function r9(e){let t=e.indexOf("#");return t===-1?e:e.slice(t)}function n9(e){if(!e.startsWith(d_))return!1;let t=e.slice(d_.length);return t!==""&&!t.includes("/")}var f_=()=>{let e=[],t,r,n,o,i,s=(a,c,p)=>{let l=a.channel,u=D(l)?c(l,p):void 0,d=(D(l)?u?.node:l)?.servers,f,h;return d&&d.length>0?(f=d,h=u?.location?.source.absoluteRef??p):(f=t?Object.values(t):[],h=r),f.length===0?!1:f.every(y=>{let g=D(y)?c(y,h).node:y;return Ri(g)})};return{Root:{enter(a,{location:c,resolve:p}){let l=a?.servers;if(D(l)){let m=p(l);t=m.node??void 0,r=m.location?.source.absoluteRef}else t=l,r=void 0;let u=a?.operations;if(D(u)){let m=p(u);n=m.node??void 0,o=m.location?.source.absoluteRef,i=m.location}else n=u,o=void 0,i=c.child(["operations"])},leave(a,{report:c,resolve:p}){for(let l of e){if((l.local||l.refPointer.startsWith(t9))&&!n9(l.refPointer)){c({message:"Security scheme `$ref` must point to `#/components/securitySchemes`.",location:l.location.key(),reference:eh});continue}l.resolved||c({message:`There is no \`${l.name}\` security scheme defined.`,location:l.location.key(),reference:eh})}if(n&&i){let l=i;for(let[u,m]of Object.entries(n)){let d,f;if(D(m)){let h=p(m,o);d=h.node,f=h.location?.source.absoluteRef}else d=m,f=o;d&&(Ep(d,p,f)||s(d,p,f)||c({message:"Every operation should have security defined on it.",location:l.child([u]).key(),reference:eh}))}}}},SecuritySchemeList:{enter(a,{location:c,resolve:p}){if(a)for(let l=0;l<a.length;l++){let u=a[l];if(!D(u))continue;let m=c.child([l]),d=p(u),f=r9(u.$ref),h=f.split("/").pop()??u.$ref;e.push({location:m,name:h,refPointer:f,resolved:d.node!=null,local:u.$ref.startsWith("#")})}}}}};function o9(e,t,r){if(!e.flows)return[];let{node:n,location:o}=D(e.flows)?t(e.flows,r.source.absoluteRef):{node:e.flows,location:r},i=(o??r).source.absoluteRef,s=Object.values(n??{}).flatMap(a=>{let c=D(a)?t(a,i).node:a;return Object.keys(c?.availableScopes||{})});return[...new Set(s)]}var m_=e=>{let t=new Map;return{SecuritySchemeList(r,{resolve:n,location:o}){for(let i=0;i<r.length;i++){let s=r[i],a=D(s)?n(s):{node:s,location:o.child([i])};!a.node||!a.location||t.set(a.location.absolutePointer,{scheme:a.node,location:a.location,availableScopes:a.node.type==="oauth2"?o9(a.node,n,a.location):[]})}},Root:{leave(r,{report:n}){for(let{scheme:o,location:i,availableScopes:s}of t.values()){if(o.type!=="oauth2")continue;if(e.requireScopes&&!o.scopes?.length){n({message:"The security scheme must list at least one scope.",location:i.key(),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"});continue}let a=o.scopes||[];for(let c=0;c<a.length;c++){let p=a[c];s.includes(p)||n({message:`The "${p}" scope is not defined in the available scopes of the security scheme flows.`,location:i.child(["scopes",c]),suggest:Po(p,s),reference:"https://redocly.com/docs/cli/rules/common/security-scopes-defined"})}}}}}};var h_={struct:it,"no-unresolved-refs":ot,assertions:xt,"info-contact":Zt,"info-license-strict":In,"operation-operationId":qn,"security-defined":f_,"channels-kebab-case":l_,"no-channel-trailing-slash":u_,"tag-description":Nn,"tags-alphabetical":Mn,"no-duplicated-enum-values":jr,"no-unsafe-markdown":Fr,"no-duplicated-tag-names":Cn,"no-required-schema-properties-undefined":Lr,"no-enum-type-mismatch":Dr,"no-mixed-number-range-constraints":kn,"no-schema-type-mismatch":Ur,"security-scopes-defined":m_},y_={};function b_(e){return ws(Mr).filter(t=>e.assertions[t]!==void 0).map(t=>({name:t,conditions:e.assertions[t],runsOnKeys:lp.has(t),runsOnValues:up.has(t)}))}var v_=e=>{let t=Object.values(e).filter(O),r=[];for(let n of t){if(n.severity==="off")continue;let o=n.subject?.type;if(!o)continue;let i=b_(n),s=i9(n);r.push({[o]:(a,c)=>{s9(a,c,s)&&a9(a,c,n,i)}})}return r};function i9(e){return Array.isArray(e.where)?e.where.map((t,r)=>{if(!De(t.subject?.type))throw new Error(`${e.assertionId} -> where -> [${r}]: 'type' (String) is required`);return{kind:t.subject.type,definition:t,assertsToApply:b_(t)}}):[]}function s9(e,t,r){let n=r,o=r.at(-1);if(o&&o.kind===e.kind){if(!g_(e,o,t))return!1;n=r.slice(0,-1)}let i=0;for(let s of n){let a=!1;for(;i<t.ancestors.length;){let c=t.ancestors[i++];if(c.kind===s.kind&&g_(c,s,t)){a=!0;break}}if(!a)return!1}return!0}function g_(e,t,r){let{value:n}=S_(e,t.definition.subject.property),o=new sr(r.source,"#/");return t.assertsToApply.every(i=>Mr[i.name](n,i.conditions,{baseLocation:o,rawValue:n}).length===0)}function a9(e,t,r,n){let o=x_(r.subject.property),{value:i,locNode:s}=S_(e,r.subject.property),a=new sr(t.source,"#/"),c=n.flatMap(l=>Mr[l.name](i,l.conditions,{baseLocation:a,rawValue:i}));if(!c.length)return;let p=`${G.blue(r.assertionId)} failed because the ${G.blue(r.subject.type)} ${G.blue(o??"")} didn't meet the assertions: {{problems}}`.replace(/ +/g," ");t.report({message:Xm(r.message??p,{problems:Qm(c),assertionName:r.assertionId,nodeType:r.subject.type,property:o??"",key:"",pointer:"",file:Jm(t.source.absoluteRef)}),node:s,suggest:r.suggest,ruleId:r.assertionId,severity:r.severity})}function th(e){return e?.name?.value!==void 0?{value:e.name.value,locNode:e.name}:e?.value!==void 0?{value:e.value,locNode:e}:{value:e,locNode:e}}function S_(e,t){let r=x_(t);if(r===void 0)return th(e);let n=e[r];if(Array.isArray(n))return{value:n.map(i=>th(i).value),locNode:e};let o=th(n);return{value:o.value,locNode:c9(o.locNode)?o.locNode:e}}function c9(e){return O(e)&&"kind"in e}function x_(e){return Array.isArray(e)?e[0]:e}var p9=["Query","Mutation","Subscription"];function l9(e){let t=e;for(;t.kind==="ListType"||t.kind==="NonNullType";)t=t.type;return t.name.value}var w_=()=>{let e=new Map,t=new Set,r=new Set,n=!1,o=l=>t.add(l9(l)),i=l=>e.set(l.name.value,l.name),s=l=>{for(let u of l.interfaces??[])o(u);for(let u of l.fields??[]){o(u.type);for(let m of u.arguments??[])o(m.type)}},a=l=>{for(let u of l.types??[])o(u)},c=l=>{for(let u of l.fields??[])o(u.type)},p=l=>{for(let u of l.operationTypes??[])r.add(u.type.name.value)};return{SchemaDefinition:l=>{n=!0,p(l)},SchemaExtension:p,DirectiveDefinition:l=>{for(let u of l.arguments??[])o(u.type)},ObjectTypeDefinition:l=>{i(l),s(l)},ObjectTypeExtension:s,InterfaceTypeDefinition:l=>{i(l),s(l)},InterfaceTypeExtension:s,UnionTypeDefinition:l=>{i(l),a(l)},UnionTypeExtension:a,InputObjectTypeDefinition:l=>{i(l),c(l)},InputObjectTypeExtension:c,EnumTypeDefinition:i,ScalarTypeDefinition:i,Document:{leave:(l,u)=>{if(!n)for(let m of p9)e.has(m)&&r.add(m);if(r.size!==0)for(let[m,d]of e)t.has(m)||r.has(m)||u.report({message:`Type \`${m}\` is declared but never used.`,node:d})}}}};var qi=Tr(pR(),1),__=()=>({Document:{enter:(e,t)=>{let r;try{r=(0,qi.buildASTSchema)(e,{assumeValidSDL:!1})}catch(n){u9(n,t);return}for(let n of(0,qi.validateSchema)(r))P_(n,t)}}});function u9(e,t){if(e instanceof qi.GraphQLError)P_(e,t);else if(e instanceof Error)t.report({message:e.message});else throw e}function P_(e,t){let r=e.locations?.[0];t.report({message:e.message,node:e.nodes?.[0],loc:r?{start:{line:r.line,col:r.column}}:void 0})}var E_=()=>{let e=(t,r)=>{(!t.description||t.description.value.trim()==="")&&r.report({message:`Type \`${t.name.value}\` should have a non-empty description.`,node:t.name})};return{ObjectTypeDefinition:e,InterfaceTypeDefinition:e,EnumTypeDefinition:e,InputObjectTypeDefinition:e,UnionTypeDefinition:e,ScalarTypeDefinition:e}};var $_={struct:__,assertions:v_,"no-unused-types":w_,"type-description":E_};var Ni=()=>({Info(e,{report:t}){e.license||t({message:_o("Info","license"),location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/info-license"})}});var Ap=()=>({Paths(e,{report:t,location:r}){let n=[];for(let o of Object.keys(e)){let i=n.find(s=>d9(s,o));i&&t({message:`Paths should resolve unambiguously. Found two ambiguous paths: \`${i}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-ambiguous-paths"}),n.push(o)}}});function d9(e,t){let r=e.split("/"),n=t.split("/");if(r.length!==n.length)return!1;let o=0,i=0,s=!0;for(let a=0;a<r.length;a++){let c=r[a].match(/^{.+?}$/),p=n[a].match(/^{.+?}$/);if(c||p){c&&o++,p&&i++;continue}else r[a]!==n[a]&&(s=!1)}return s&&o===i}function Tp(e){return e.startsWith("{")&&e.endsWith("}")}function A_(e){let t=e.split(/(?:[-._])|([A-Z][a-z]+)/).filter(Ge).map(n=>n.toLocaleLowerCase()),r=e.split(/([A-Z]{2,})/).filter(n=>n&&n===n.toUpperCase()).map(n=>n.toLocaleLowerCase());return new Set([...t,...r])}var f9=["get","head","post","put","patch","delete","options","trace"],Rp=({splitIntoWords:e,excludedPaths:t})=>({PathItem(r,{key:n,report:o,location:i}){let s=n.toString();if(!s.startsWith("/")||t?.some(c=>s===c))return;let a=s.split("/");for(let c of a){if(!c||Tp(c))continue;let p=l=>e?A_(c).has(l):c.toLocaleLowerCase().includes(l);for(let l of f9)p(l)&&o({message:`path \`${s}\` should not contain http verb ${l}`,location:i.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-http-verbs-in-paths"})}}});var Op=()=>({Paths(e,{report:t,location:r}){let n=new Map;for(let o of Object.keys(e)){let i=o.replace(/{.+?}/g,"{VARIABLE}"),s=n.get(i);s?t({message:`The path already exists which differs only by path parameter name(s): \`${s}\` and \`${o}\`.`,location:r.child([o]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-identical-paths"}):n.set(i,o)}}});var c$=Tr(Km(),1),p$=Tr(N_(),1),l$=Tr(s$(),1);function a$(e){return e==="draft4"?"id":"$id"}function YY(e){return e==="oas2"||e==="oas3_0"?"draft4":"2020"}var Hn=class{instances={};validate(t,r,n){let{schemaLoc:o,instancePath:i,resolve:s,allowAdditionalProperties:a,ajvContext:c,specVersion:p}=n,l=YY(p),u=this.getValidator(r,o,s,a,l);if(!u)return{valid:!0,errors:[]};let m={instancePath:i,parentData:{fake:{}},parentDataProperty:"fake",rootData:{},dynamicAnchors:{}};return{valid:!!u.call(c??{},t,m),errors:(u.errors||[]).map(f)};function f(h){let y=h.message,g=h.keyword==="enum"?h.params.allowedValues:void 0;g&&(y+=` ${g.map(x=>`"${x}"`).join(", ")}`),h.keyword==="type"&&(y=`type ${y}`);let v=h.instancePath.substring(i.length+1),b=v.substring(v.lastIndexOf("/")+1);if(b&&(y=`\`${b}\` property ${y}`),h.keyword==="additionalProperties"||h.keyword==="unevaluatedProperties"){let x=h.params.additionalProperty||h.params.unevaluatedProperty;y=`${y} \`${x}\``,h.instancePath+="/"+Rr(x)}return{...h,message:y,suggest:g}}}getAjv(t,r){if(!this.instances[r]){let n=a$(r),o={schemaId:n,meta:!0,allErrors:!0,strictSchema:!1,inlineRefs:!1,validateSchema:!1,discriminator:!0,allowUnionTypes:!0,validateFormats:!0,passContext:!0,logger:!1,loadSchemaSync(i,s,a){let c=decodeURI(i.split("#")[0]),p=t({$ref:s},c);return!p||!p.location?!1:{[n]:encodeURI(p.location.source.absoluteRef)+"#"+a,...p.node}}};this.instances[r]=r==="2020"?new c$.default(o):new p$.default(o),(0,l$.default)(this.instances[r])}return this.instances[r]}getValidator(t,r,n,o,i){let s=this.getAjv(n,i),a=encodeURI(r.absolutePointer),c=a$(i);return s.getSchema(a)||(s.setDefaultUnevaluatedProperties(o),s.addSchema({[c]:a,...t},a)),s.getSchema(a)}};var pl=e=>{let t=new Hn;return{Parameter:{leave(r,n){if(Dt(r.example)&&On({example:r.example,schema:r.schema,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"}),O(r.examples))for(let[o,i]of Object.entries(r.examples)){let s=$p(i);s&&On({example:s.value,schema:r.schema,options:{location:n.location.child(["examples",o,s.field]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:{apiContext:"request"}},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-parameter-examples"})}}}}};var ll=e=>{let t=new Hn;return{Schema:{leave(r,n){let o=r.examples;if(Array.isArray(o))for(let i of o)On({example:i,schema:r,options:{location:n.location.child(["examples",o.indexOf(i)]),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"});if(Dt(r.example)){if(r.nullable===!0&&r.example===null&&r.type!==void 0)return;On({example:r.example,schema:r,options:{location:n.location.child("example"),ctx:n,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-schema-examples"})}}}}};var ul=()=>({PathItem(e,{report:t,key:r,rawLocation:n}){r.endsWith("/")&&r!=="/"&&t({message:`\`${r}\` should not have a trailing slash.`,location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-path-trailing-slash"})}});var dl=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ii({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Ii({responseCodes:n,codeRange:"2XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-2xx-response"})}}});var fl=({validateWebhooks:e})=>({Paths:{Responses(t,{report:r}){let n=Object.keys(t||{});Ii({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}},WebhooksMap:{Responses(t,{report:r}){if(!e)return;let n=Object.keys(t||{});Ii({responseCodes:n,codeRange:"4XX",report:r,reference:"https://redocly.com/docs/cli/rules/oas/operation-4xx-response"})}}});var ml=()=>({Operation(e,t){Xt({fieldName:"description",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-description"})}});var hl=()=>{let e=new Set;return{Operation(t,{report:r,location:n}){t.operationId&&(e.has(t.operationId)&&r({message:"Every operation must have a unique `operationId`.",location:n.child([t.operationId]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-unique"}),e.add(t.operationId))}}};var WY=/^[A-Za-z0-9-._~:/?#\[\]@!\$&'()*+,;=]*$/,yl=()=>({Operation(e,{report:t,location:r}){e.operationId&&!WY.test(e.operationId)&&t({message:"Operation `operationId` should not have URL invalid characters.",location:r.child(["operationId"]),reference:"https://redocly.com/docs/cli/rules/oas/operation-operationId-url-safe"})}});var gl=()=>{let e,t;return{PathItem:{enter(){e=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;e.has(s)&&n({message:`Paths must have unique \`name\` + \`in\` parameters.
|
|
111
|
-
Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.PathItem.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),e.add(`${r.in}___${r.name}`)},Operation:{enter(){t=new Set},Parameter(r,{report:n,key:o,parentLocations:i}){let s=`${r.in}___${r.name}`;t.has(s)&&n({message:`Operations must have unique \`name\` + \`in\` parameters. Repeats of \`in:${r.in}\` + \`name:${r.name}\`.`,location:i.Operation.child(["parameters",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-parameters-unique"}),t.add(s)}}}}};var bl=()=>({Operation(e,{report:t,location:r}){e.tags&&e.tags.length>1&&t({message:"Operation `tags` object should have only one tag.",location:r.child(["tags"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-singular-tag"})}});var vl=()=>({Operation(e,t){Xt({fieldName:"summary",value:e,ctx:t,reference:"https://redocly.com/docs/cli/rules/oas/operation-summary"})}});var Sl=()=>{let e;return{Root(t){e=new Set((t.tags??[]).map(r=>r.name))},Operation(t,{report:r,location:n}){if(t?.tags)for(let o=0;o<t.tags.length;o++)e.has(t.tags[o])||r({message:"Operation tags should be defined in global tags.",location:n.child(["tags",o]),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"});else r({message:"Operation tags should be defined",location:n.key(),reference:"https://redocly.com/docs/cli/rules/oas/operation-tag-defined"})}}};var xl=()=>({Parameter(e,{report:t,location:r}){e.description===void 0?t({message:"Parameter object description must be present.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"}):e.description||t({message:"Parameter object description must be non-empty string.",location:r.child(["description"]),reference:"https://redocly.com/docs/cli/rules/oas/parameter-description"})}});var wl=()=>({PathItem(e,{report:t,key:r}){r.indexOf("{}")!==-1&&t({message:"Path parameter declarations must be non-empty. `{}` is invalid.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-declaration-must-exist"})}});var QY=["get","head","post","put","patch","delete","options","query","trace"],_l=e=>{let t=e&&e.order||QY;if(!Array.isArray(t))throw new Error("path-http-verbs-order `order` option must be an array");return{PathItem(r,{report:n,location:o}){let i=Object.keys(r).filter(s=>t.includes(s));for(let s=0;s<i.length-1;s++){let a=t.indexOf(i[s]);t.indexOf(i[s+1])<a&&n({message:"Operation http verbs must be ordered.",location:{reportOnKey:!0,...o.child(i[s+1])},reference:"https://redocly.com/docs/cli/rules/oas/path-http-verbs-order"})}}}};var Pl=()=>({Paths:{PathItem(e,{report:t,key:r}){r.toString().includes("?")&&t({message:"Don't put query string items in the path, they belong in parameters with `in: query`.",location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/path-not-include-query"})}}});var JY=/\{([a-zA-Z0-9_.-]+)\}+/g,XY=2,es=()=>{let e={current:null};return{PathItem:{enter(r,{key:n}){u$(e,n)},leave(){ZY(e)},Parameter(r,{report:n,location:o,rawLocation:i}){d$({parameter:r,pathContext:e,report:n,location:o,rawLocation:i})},Operation:f$(e,new Set)}}},u$=(e,t)=>{e.current={path:t,templateParams:eW(t),definedParams:new Set}},ZY=e=>{e.current=null},d$=({parameter:e,pathContext:t,report:r,location:n,rawLocation:o})=>{e.in==="path"&&e.name&&t.current&&(t.current.definedParams.add(e.name),m$({paramName:e.name,templateParams:t.current.templateParams,path:t.current.path,report:r,location:n,rawLocation:o}))},f$=(e,t,r=0)=>{let n=(i,s,a)=>{i({message:`Maximum callback nesting depth (${a}) reached. Path parameter validation is limited beyond this depth to prevent infinite recursion.`,location:s,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};if(r>=XY)return{enter:()=>{},leave:(i,{report:s,location:a})=>{n(s,a,r)},Parameter:()=>{},Callback:void 0};let o=()=>{let i=null;return{enter(s,{key:a}){i=e.current,u$(e,a)},leave(){e.current=i},Parameter(s,{report:a,location:c,rawLocation:p}){d$({parameter:s,pathContext:e,report:a,location:c,rawLocation:p})},get Operation(){return f$(e,t,r+1)}}};return{enter(){t=new Set},leave(i,{report:s,location:a}){!e.current||!t||rW({templateParams:e.current.templateParams,definedOperationParams:t,definedPathParams:e.current.definedParams,path:e.current.path,report:s,location:a})},Parameter(i,{report:s,location:a,rawLocation:c}){tW(i,t),i.in==="path"&&i.name&&e.current&&(t.add(i.name),m$({paramName:i.name,templateParams:e.current.templateParams,path:e.current.path,report:s,location:a,rawLocation:c}))},Callback:{get PathItem(){return o()}}}},eW=e=>new Set(Array.from(e.matchAll(JY)).map(t=>t[1])),tW=(e,t)=>{O(e)&&"in"in e&&"name"in e&&e.in==="path"&&e.name&&t.add(e.name)},m$=({paramName:e,templateParams:t,path:r,report:n,location:o,rawLocation:i})=>{if(!t.has(e)){let s=`Path parameter \`${e}\` is not used in the path \`${r}\`.`,a=i===o?void 0:i;n({message:s,location:o.child(["name"]),from:a,reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})}},rW=({templateParams:e,definedOperationParams:t,definedPathParams:r,path:n,report:o,location:i})=>{let s=new Set([...t,...r]);for(let a of e)s.has(a)||o({message:`The operation does not define the path parameter \`{${a}}\` expected by path \`${n}\`.`,location:i.child(["parameters"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/path-parameters-defined"})};var h$=Tr(Qu(),1);var El=e=>{let{ignoreLastPathSegment:t,exceptions:r}=e;return{PathItem:{leave(n,{report:o,key:i,location:s}){let a=i.toString();if(a.startsWith("/")){let c=a.split("/");c.shift(),t&&c.length>0&&c.pop();for(let p of c)r&&r.includes(p)||!Tp(p)&&h$.default.isSingular(p)&&o({message:`path segment \`${p}\` should be plural.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/path-segment-plural"})}}}}};var $l=()=>({PathItem(e,{report:t,key:r}){r.substr(1).split("/").filter(o=>o!=="").every(o=>/^{.+}$/.test(o)||/^[a-z0-9-.]+$/.test(o))||t({message:`\`${r}\` does not use kebab-case.`,location:{reportOnKey:!0},reference:"https://redocly.com/docs/cli/rules/oas/paths-kebab-case"})}});var Al=()=>{let e,t;return{Schema:{enter(r){if(!r?.required){e=!0;return}t=new Set(r.required),e=!1},SchemaProperties:{skip(){return e},Schema:{enter(r,{key:n,location:o,report:i}){t.has(n)&&r.type==="string"&&(r?.minLength||i({message:"Property minLength is required.",location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/required-string-property-missing-min-length"}))}}}}}};function fn(e){return`${e}`.replace(/^(\d)\d\d$/,(t,r)=>`${r}XX`)}var Tl=e=>{let t=e.names||{};return{Operation:{Response:{enter:(r,{report:n,location:o,key:i})=>{let s=t[i]||t[fn(i)]||t[fn(i).toLowerCase()]||[];for(let a of s)(!r?.headers||!Object.keys(r?.headers).some(c=>c.toLowerCase()===a.toLowerCase()))&&n({message:`Response object must contain a "${a}" header.`,location:o.child("headers").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-header"})}}}}};var y$=["string","integer","number","boolean","null"],Rl=()=>({SchemaProperties(e,{report:t,location:r,specVersion:n,resolve:o}){for(let i of Object.keys(e)){let s=o(zt(e,i)).node;!s||!nW(s)||s.example===void 0&&s.examples===void 0&&t({message:`Scalar property should have "example"${n==="oas3_1"||n==="oas3_2"?' or "examples"':""} defined.`,location:r.child(i).key(),reference:"https://redocly.com/docs/cli/rules/oas/scalar-property-missing-example"})}}});function nW(e){return!e.type||e.allOf||e.anyOf||e.oneOf||e.format==="binary"?!1:Array.isArray(e.type)?e.type.every(t=>y$.includes(t)):y$.includes(e.type)}var Ol=e=>{let t=new Map,r=[],n=!0,o;return{Root:{leave(i,{report:s}){for(let[a,c]of t.entries())if(!c.defined)for(let p of c.from)s({message:`There is no \`${a}\` security scheme defined.`,location:p.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"});if(!(i.security||n))for(let a of r)s({message:"Every operation should have security defined on it or on the root level.",location:a.key(),reference:"https://redocly.com/docs/cli/rules/oas/security-defined"})}},SecurityScheme(i,{key:s}){t.set(s.toString(),{defined:!0,from:[]})},SecurityRequirement(i,{location:s}){for(let a of Object.keys(i)){let c=t.get(a),p=s.child([a]);c?c.from.push(p):t.set(a,{from:[p]})}},PathItem:{enter(i,{key:s}){o=s},Operation(i,{location:s,key:a}){let c=e.exceptions?.some(p=>p.path===o&&(!p.methods||p.methods?.some(l=>l.toLowerCase()===a)));!i?.security&&!c&&(n=!1,r.push(s))}}}};var kl=()=>{let e=["Schema","Response","Parameter","RequestBody","Example","Header","SecurityScheme","Link","Callback","PathItem"];return{any(t,{report:r,rawNode:n,rawLocation:o,type:i}){!e.includes(i.name)&&D(n)&&r({message:"Field $ref is not expected here.",location:o.child("$ref").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-strict-refs"})}}};var g$=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter(i,{report:s,location:a}){i.type==="boolean"&&!r.test(i.name)&&s({message:`Boolean parameter \`${i.name}\` should have ${o} prefix.`,location:a.child("name"),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}};function ts({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t[e])for(let c of t[e])n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child(t[e].indexOf(c)).key(),reference:o})}function Kn({type:e,value:t,ctx:r,allowedValues:n,reference:o}){let{report:i,location:s}=r,a=e==="consumes"?"request":"response";if(!n)throw new Error(`Parameter "allowedValues" is not provided for "${a}-mime-type" rule`);if(t.content)for(let c of Object.keys(t.content))n.includes(c)||i({message:`Mime type "${c}" is not allowed`,location:s.child("content").child(c).key(),reference:o})}var b$=({allowedValues:e})=>({Root(t,r){ts({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})},Operation:{leave(t,r){ts({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}});var v$=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[fn(r)]||t[fn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}};var S$=({allowedValues:e})=>({Root(t,r){ts({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})},Operation:{leave(t,r){ts({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}});var x$={struct:it,"no-invalid-schema-examples":ll,"no-invalid-parameter-examples":pl,"info-contact":Zt,"info-license":Ni,"info-license-strict":In,"tag-description":Nn,"tags-alphabetical":Mn,"paths-kebab-case":$l,"no-enum-type-mismatch":Dr,"boolean-parameter-prefixes":g$,"no-path-trailing-slash":ul,"operation-2xx-response":dl,"operation-4xx-response":fl,assertions:xt,"operation-operationId-unique":hl,"operation-parameters-unique":gl,"path-parameters-defined":es,"operation-tag-defined":Sl,"path-declaration-must-exist":wl,"operation-operationId-url-safe":yl,"operation-operationId":qn,"operation-summary":vl,"operation-description":ml,"path-not-include-query":Pl,"path-params-defined":es,"parameter-description":xl,"operation-singular-tag":bl,"security-defined":Ol,"security-scopes-defined":Ci,"no-unresolved-refs":ot,"no-identical-paths":Op,"no-ambiguous-paths":Ap,"path-http-verbs-order":_l,"no-http-verbs-in-paths":Rp,"request-mime-type":b$,"response-mime-type":S$,"path-segment-plural":El,"response-contains-header":Tl,"response-contains-property":v$,"scalar-property-missing-example":Rl,"required-string-property-missing-min-length":Al,"spec-strict-refs":kl,"no-required-schema-properties-undefined":Lr,"no-schema-type-mismatch":Ur,"no-duplicated-enum-values":jr,"no-unsafe-markdown":Fr,"no-duplicated-tag-names":Cn},w$={};var _$=e=>({Parameter:{leave(t,r){if(!t.schema)return;let n=D(t.schema)?r.resolve(t.schema).node:t.schema;n&&oW(t,n,e)&&r.report({message:`Parameter \`${t.name}\` should have \`style\` and \`explode \` fields`,location:r.location,reference:"https://redocly.com/docs/cli/rules/oas/array-parameter-serialization"})}}});function oW(e,t,r){return(t.type==="array"||t.items||t.prefixItems)&&(e.style===void 0||e.explode===void 0)&&(!r.in||e.in&&r.in?.includes(e.in))}var P$=e=>{let t=e.prefixes||["is","has"],r=new RegExp(`^(${t.join("|")})[A-Z-_]`),n=t.map(i=>`\`${i}\``),o=n.length===1?n[0]:n.slice(0,-1).join(", ")+" or "+n[t.length-1];return{Parameter:{Schema(i,{report:s,parentLocations:a},c){i.type==="boolean"&&!r.test(c.Parameter.name)&&s({message:`Boolean parameter \`${c.Parameter.name}\` should have ${o} prefix.`,location:a.Parameter.child(["name"]),reference:"https://redocly.com/docs/cli/rules/oas/boolean-parameter-prefixes"})}}}};function Ua(e){return e.endsWith(".yaml")||e.endsWith(".yml")||e.endsWith(".json")}var Ky="Schema",Gy="Parameter",Yy="Response",Wy="RequestBody",iW={[Ky]:"schemas",[Gy]:"parameters",[Yy]:"responses",[Wy]:"requestBodies"},E$=e=>{let t=new Map,r=[];e.schemas!=="off"&&r.push(Ky),e.parameters!=="off"&&r.push(Gy),e.responses!=="off"&&r.push(Yy),e.requestBodies!=="off"&&r.push(Wy);let n={ref:{leave(a,{type:c,resolve:p}){let l=c.name;if(r.includes(l)){let u=p(a);if(!u.location)return;s(l,u.location)}}},Root:{leave(a,c){t.forEach((p,l,u)=>{if(p.absolutePointers.size>1){let m=cW(l),d=sW(m.typeName),f=d?e[d]:null;for(let h of p.locations){let y=Array.from(p.absolutePointers).filter(v=>v!==h.absolutePointer.toString()).map(v=>`- ${v}`).join(`
|
|
112
|
-
`),g={message:`Component '${d}/${m.componentName}' is not unique. It is also defined at:
|
|
113
|
-
${y}`,location:h,reference:"https://redocly.com/docs/cli/rules/oas/component-name-unique"};f&&(g.forceSeverity=f),c.report(g)}}})}}};return e.schemas!="off"&&(n.NamedSchemas={Schema(a,{location:c}){s(Ky,c)}}),e.responses!="off"&&(n.NamedResponses={Response(a,{location:c}){s(Yy,c)}}),e.parameters!="off"&&(n.NamedParameters={Parameter(a,{location:c}){s(Gy,c)}}),e.requestBodies!="off"&&(n.NamedRequestBodies={RequestBody(a,{location:c}){s(Wy,c)}}),n;function o(a){let c=a.split("/").slice(-1)[0];return Ua(c)?c.slice(0,c.lastIndexOf(".")):c}function i(a,c,p){let l=aW(a,c),u=t.get(l)??{absolutePointers:new Set,locations:[]},m=p.absolutePointer.toString();u.absolutePointers.has(m)||(u.absolutePointers.add(m),u.locations.push(p)),t.set(l,u)}function s(a,c){let p=o(c.absolutePointer.toString());i(a,p,c)}};function sW(e){return iW[e]??null}function aW(e,t){return`${e}/${t}`}function cW(e){let[t,r]=e.split("/");return{typeName:t,componentName:r}}var $$=()=>({Root(e,{report:t,location:r}){if(!e.hasOwnProperty("servers")){t({message:"Servers must be present.",location:r.child(["openapi"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"});return}(!Array.isArray(e.servers)||e.servers.length===0)&&t({message:"Servers must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-empty-servers"})}});var A$=()=>({Example(e,{report:t,location:r}){e.value&&e.externalValue&&t({message:"Example object can have either `value` or `externalValue` fields.",location:r.child(["value"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-example-value-and-externalValue"})}});var T$=e=>{let t=new Hn,r=o=>o.schema===void 0,n=o=>(i,s)=>{let{location:a,resolve:c}=s;if(Dt(i.example))p(i.example,a.child("example"));else if(O(i.examples))for(let l of Object.keys(i.examples))p(i.examples[l],a.child(["examples",l]),!0);function p(l,u,m){if(D(l)){let f=c(l);if(!f.location)return;u=f.location,l=f.node}let d=l;if(m){let f=$p(l);if(!f)return;d=f.value,u=u.child(f.field)}On({example:d,schema:i.schema,options:{location:u,ctx:s,validator:t,allowAdditionalProperties:!!e.allowAdditionalProperties,ajvContext:o},reference:"https://redocly.com/docs/cli/rules/oas/no-invalid-media-type-examples"})}};return{Parameter:{MediaType:{skip:r,leave:n({apiContext:"request"})}},RequestBody:{MediaType:{skip:r,leave:n({apiContext:"request"})}},Response:{MediaType:{skip:r,leave:n({apiContext:"response"})}}}};var R$=()=>({Server(e,{report:t,location:r}){let n=/^(.*[\/.])?(example\.com|localhost)([\/:?].*|$)/;e.url&&n.test(e.url)&&t({message:"Server `url` should not point to example.com or localhost.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-example-com"})}});var O$=()=>({Server(e,{report:t,location:r}){e.url&&e.url.endsWith("/")&&e.url!=="/"&&t({message:"Server `url` should not have a trailing slash.",location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-server-trailing-slash"})}});var I$=()=>({Root(e,{report:t,location:r}){if(!e.servers||e.servers.length===0)return;let n=[];if(Array.isArray(e.servers))for(let o of e.servers){let i=k$(o);i&&n.push(...i)}else{let o=k$(e.servers);if(!o)return;n.push(...o)}for(let o of n)o==="empty"&&t({message:"Server variable with `enum` must be a non-empty array.",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"}),o==="invalidDefaultValue"&&t({message:"Server variable define `enum` and `default`. `enum` must include default value",location:r.child(["servers"]).key(),reference:"https://redocly.com/docs/cli/rules/oas/no-server-variables-empty-enum"})}});function k$(e){if(e.variables&&Object.keys(e.variables).length===0)return;let t=[];for(let r in e.variables){let n=e.variables[r];if(!n.enum||(Array.isArray(n.enum)&&n.enum?.length===0&&t.push("empty"),!n.default))continue;let o=e.variables[r].default;n.enum&&!n.enum.includes(o)&&t.push("invalidDefaultValue")}if(t.length)return t}var C$=()=>({Server(e,{report:t,location:r}){if(!e?.url)return;let n=e.url.match(/{[^}]+}/g)?.map(i=>i.slice(1,i.length-1))||[],o=e?.variables&&Object.keys(e.variables)||[];for(let i of n)o.includes(i)||t({message:`The \`${i}\` variable is not defined in the \`variables\` objects.`,location:r.child(["url"]),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"});for(let i of o)n.includes(i)||t({message:`The \`${i}\` variable is not used in the server's \`url\` field.`,location:r.child(["variables",i]).key(),from:r.child("url"),reference:"https://redocly.com/docs/cli/rules/oas/no-undefined-server-variable"})}});var q$=()=>{let e=new Map,t=new Map,r=new Set;function n(o,i,s=!1){e.set(o.absolutePointer,{used:e.get(o.absolutePointer)?.used||!1,referencesDiscriminator:s,location:o,name:i})}return{ref(o,{type:i,resolve:s,key:a,location:c}){if(["Schema","Header","Parameter","Response","Example","RequestBody","MediaTypesMap"].includes(i.name)){let p=s(o);if(!p.location)return;e.set(p.location.absolutePointer,{used:!0,name:a.toString(),location:c})}},Root:{leave(o,{report:i}){e.forEach(s=>{!s.used&&!s.referencesDiscriminator&&i({message:`Component: "${s.name}" is never used.`,location:s.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})}),t.forEach((s,a)=>{r.has(a)||i({message:`Security scheme: "${a}" is never used.`,location:s.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(o,{location:i,key:s,resolve:a}){let c=o.allOf?.some(p=>D(p)&&a(p)?.node?.discriminator);n(i,s.toString(),c)}},NamedParameters:{Parameter(o,{location:i,key:s}){n(i,s.toString())}},NamedResponses:{Response(o,{location:i,key:s}){n(i,s.toString())}},NamedExamples:{Example(o,{location:i,key:s}){n(i,s.toString())}},NamedRequestBodies:{RequestBody(o,{location:i,key:s}){n(i,s.toString())}},NamedHeaders:{Header(o,{location:i,key:s}){n(i,s.toString())}},NamedMediaTypes:{MediaTypesMap(o,{location:i,key:s}){n(i,s.toString())}},NamedSecuritySchemes:{SecurityScheme(o,{rawLocation:i,key:s}){t.set(s.toString(),i)}},SecurityRequirement(o){for(let i of Object.keys(o))r.add(i)}}};var N$=()=>({Schema:{leave(e,t){"nullable"in e&&!("type"in e)&&t.report({message:"The `type` field must be defined when the `nullable` field is used.",location:t.location.child(["nullable"]),reference:"https://redocly.com/docs/cli/rules/oas/nullable-type-sibling"})}}});var Qy="https://redocly.com/docs/cli/rules/oas/operation-4xx-problem-details-rfc7807",M$=()=>({Response:{skip(e,t){return!/4[Xx0-9]{2}/.test(`${t}`)},enter(e,{report:t,location:r}){(!e.content||!e.content["application/problem+json"])&&t({message:"Response `4xx` must have content-type `application/problem+json`.",location:r.key(),reference:Qy})},MediaType:{skip(e,t){return t!=="application/problem+json"},enter(e,t){if(Xt({fieldName:"schema",value:e,ctx:t,reference:Qy}),!e.schema)return;let{schema:r,location:n}=wo(e.schema,t,t.location.child("schema"));if(!(!r||!n))for(let o of["type","title"])Rn(e.schema,o,t)||t.report({message:_o("SchemaProperties",o),location:r.properties?n.child(["properties",o]).key():n.key(),reference:Qy})}}}});var j$=({allowedValues:e})=>({Paths:{RequestBody:{leave(t,r){Kn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}},Callback:{RequestBody(){},Response:{leave(t,r){Kn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}},WebhooksMap:{Response:{leave(t,r){Kn({type:"consumes",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/request-mime-type"})}}}});var D$=e=>{let t=e.names||{},r;return{Operation:{Response:{skip:(n,o)=>`${o}`=="204",enter:(n,o)=>{r=o.key},MediaType:{Schema(n,{report:o,location:i}){if(n.type!=="object")return;let s=t[r]||t[fn(r)]||t[fn(r).toLowerCase()]||[];for(let a of s)n.properties?.[a]||o({message:`Response object must contain a top-level "${a}" property.`,location:i.child("properties").key(),reference:"https://redocly.com/docs/cli/rules/oas/response-contains-property"})}}}}}};var L$=({allowedValues:e})=>({Paths:{Response:{leave(t,r){Kn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}},Callback:{Response(){},RequestBody:{leave(t,r){Kn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}},WebhooksMap:{RequestBody:{leave(t,r){Kn({type:"produces",value:t,ctx:r,allowedValues:e,reference:"https://redocly.com/docs/cli/rules/oas/response-mime-type"})}}}});var U$=()=>{let e=`^[${wc}]+$`;function t(r,n,o,i){new RegExp(e).test(r)||n({message:`The map key in ${i} "${r}" does not match the regular expression "${e}"`,location:o.key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-components-invalid-map-name"})}return{NamedSchemas:{Schema(r,{key:n,report:o,location:i}){t(n,o,i,"schemas")}},NamedParameters:{Parameter(r,{key:n,report:o,location:i}){t(n,o,i,"parameters")}},NamedResponses:{Response(r,{key:n,report:o,location:i}){t(n,o,i,"responses")}},NamedExamples:{Example(r,{key:n,report:o,location:i}){t(n,o,i,"examples")}},NamedRequestBodies:{RequestBody(r,{key:n,report:o,location:i}){t(n,o,i,"requestBodies")}},NamedHeaders:{Header(r,{key:n,report:o,location:i}){t(n,o,i,"headers")}},NamedSecuritySchemes:{SecurityScheme(r,{key:n,report:o,location:i}){t(n,o,i,"securitySchemes")}},NamedLinks:{Link(r,{key:n,report:o,location:i}){t(n,o,i,"links")}},NamedCallbacks:{Callback(r,{key:n,report:o,location:i}){t(n,o,i,"callbacks")}}}};var z$=()=>{let e=[];return{Root:{enter(t){e=Object.keys(t.components?.schemas||{})}},Schema:{leave(t,r){let n=t.discriminator?.propertyName;if(!n)return;let o=t.discriminator?.defaultMapping;if(o===void 0){let i=new Set,s=(a,c)=>{let p=wo(a,r,c);return!!(!p.schema||i.has(p.schema)||(i.add(p.schema),p.schema.required?.includes(n)||p.schema.allOf?.some(l=>s(l,p.location))||p.schema.oneOf?.every(l=>s(l,p.location))||p.schema.anyOf?.every(l=>s(l,p.location))))};s(t)||r.report({message:`Discriminator with optional property '${n}' must include a defaultMapping field.`,location:r.location.child("discriminator"),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}else r.resolve({$ref:o}).node===void 0&&!e.includes(o)&&r.report({message:`defaultMapping value '${o}' does not point to an existing schema component.`,location:r.location.child(["discriminator","defaultMapping"]),reference:"https://redocly.com/docs/cli/rules/oas/spec-discriminator-defaultMapping"})}}}};var F$=()=>({Example({value:e,externalValue:t,dataValue:r,serializedValue:n},{report:o,location:i}){e!==void 0&&t!==void 0&&o({message:"The 'value' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),n!==void 0&&t!==void 0&&o({message:"The 'serializedValue' and 'externalValue' fields of an example object are mutually exclusive.",location:i,reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&r!==void 0&&o({message:"The 'value' filed must be absent if 'dataValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"}),e!==void 0&&n!==void 0&&o({message:"The 'value' filed must be absent if 'serializedValue' is present in an example object.",location:i.child("value").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-example-values"})}});var V$=()=>({MediaType:{leave(e,t){("prefixEncoding"in e&&"encoding"in e||"itemEncoding"in e&&"encoding"in e)&&t.report({message:"The 'encoding' field cannot be used together with 'prefixEncoding' or 'itemEncoding'.",location:t.location.child("encoding").key(),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-encoding-combinations"})}}});var B$=()=>{let e;return{Root:{enter(t){e=t.tags??[]}},Tag:{leave(t,{report:r,location:n}){if(t?.parent===void 0)return;if(!e.find(s=>s.name===t.parent)){r({message:`Tag parent '${t.parent}' is not defined in the API description.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}let o=new Set(t.name),i=t.parent;for(;i!==void 0;){if(o.has(i)){r({message:`Circular reference detected in tag parent hierarchy for tag '${t.name}'.`,location:n.child("parent"),reference:"https://redocly.com/docs/cli/rules/oas/spec-no-invalid-tag-parents"});return}o.add(i),i=e.find(s=>s.name===i)?.parent}}}}};function H$(e){return e.filter(t=>!("$ref"in t)&&t.in==="querystring").length}function K$(e,t){let r=t.location.child("parameters");e>1&&t.report({message:"Parameters with `in: querystring` should be defined only once per path/operation parameter set.",location:r,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"})}function G$(e,t,r,n){if(e.in==="query"){r.querystringLocation&&n.report({message:"Parameters with `in: query` cannot be used together with `in: querystring` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.queryLocation??=t;return}e.in==="querystring"&&(r.queryLocation&&n.report({message:"Parameters with `in: querystring` cannot be used together with `in: query` in the same operation/path parameter set.",location:t,reference:"https://redocly.com/docs/cli/rules/oas/spec-querystring-parameters"}),r.querystringLocation??=t)}var Y$=()=>{let e={},t={},r=0;return{PathItem:{enter(n,o){e={},t={},r=0,K$(H$(n.parameters||[]),o)},Parameter(n,o){G$(n,o.location,e,o),n.in==="querystring"&&(r+=1)},Operation:{enter(n,o){t={...e};let i=r+H$(n.parameters||[]);K$(i,o)},Parameter(n,o){G$(n,o.location,t,o)}}}}};var W$={struct:it,"info-contact":Zt,"info-license":Ni,"info-license-strict":In,"operation-2xx-response":dl,"operation-4xx-response":fl,"operation-4xx-problem-details-rfc7807":M$,assertions:xt,"operation-operationId-unique":hl,"operation-parameters-unique":gl,"operation-tag-defined":Sl,"no-example-value-and-externalValue":A$,"no-mixed-number-range-constraints":kn,"no-enum-type-mismatch":Dr,"no-path-trailing-slash":ul,"no-empty-servers":$$,"path-declaration-must-exist":wl,"operation-operationId-url-safe":yl,"operation-operationId":qn,"operation-summary":vl,"tags-alphabetical":Mn,"no-server-example.com":R$,"no-server-trailing-slash":O$,"tag-description":Nn,"operation-description":ml,"no-unused-components":q$,"path-not-include-query":Pl,"path-parameters-defined":es,"path-params-defined":es,"parameter-description":xl,"operation-singular-tag":bl,"security-defined":Ol,"security-scopes-defined":Ci,"no-unresolved-refs":ot,"paths-kebab-case":$l,"boolean-parameter-prefixes":P$,"path-http-verbs-order":_l,"no-invalid-media-type-examples":T$,"no-identical-paths":Op,"no-ambiguous-paths":Ap,"no-undefined-server-variable":C$,"no-server-variables-empty-enum":I$,"no-http-verbs-in-paths":Rp,"request-mime-type":j$,"response-mime-type":L$,"path-segment-plural":El,"no-invalid-schema-examples":ll,"no-invalid-parameter-examples":pl,"response-contains-header":Tl,"response-contains-property":D$,"scalar-property-missing-example":Rl,"spec-components-invalid-map-name":U$,"required-string-property-missing-min-length":Al,"spec-strict-refs":kl,"component-name-unique":E$,"array-parameter-serialization":_$,"no-required-schema-properties-undefined":Lr,"no-schema-type-mismatch":Ur,"no-duplicated-enum-values":jr,"no-unsafe-markdown":Fr,"no-duplicated-tag-names":Cn,"nullable-type-sibling":N$,"spec-no-invalid-tag-parents":B$,"spec-no-invalid-encoding-combinations":V$,"spec-discriminator-defaultMapping":z$,"spec-example-values":F$,"spec-querystring-parameters":Y$},Q$={};var J$=()=>{let e=new Map;function t(r,n){e.set(r.absolutePointer,{used:e.get(r.absolutePointer)?.used||!1,location:r,name:n})}return{ref(r,{type:n,resolve:o,key:i,location:s}){if(["Schema","ContentDescriptor","Example","Link","ErrorObject","ExamplePairing","Tag"].includes(n.name)){let a=o(r);if(!a.location)return;e.set(a.location.absolutePointer,{used:!0,name:i.toString(),location:s})}},Root:{leave(r,{report:n}){e.forEach(o=>{o.used||n({message:`Component: "${o.name}" is never used.`,location:o.location.key(),reference:"https://redocly.com/docs/cli/rules/oas/no-unused-components"})})}},NamedSchemas:{Schema(r,{location:n,key:o}){t(n,o.toString())}},NamedContentDescriptors:{ContentDescriptor(r,{location:n,key:o}){t(n,o.toString())}},NamedExamples:{Example(r,{location:n,key:o}){t(n,o.toString())}},NamedLinks:{Link(r,{location:n,key:o}){t(n,o.toString())}},NamedErrors:{ErrorObject(r,{location:n,key:o}){t(n,o.toString())}},NamedExamplePairingObjects:{ExamplePairing(r,{location:n,key:o}){t(n,o.toString())}},NamedTags:{Tag(r,{location:n,key:o}){t(n,o.toString())}}}};var X$=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=new Set;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node,p=c.name;p&&(o.has(p)&&t({message:`Parameter names must be unique. Duplicate parameter name '${c.name}' found.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-duplicated-method-params"}),o.add(p))})}}});var Z$=()=>({Method:{leave(e,{report:t,resolve:r,location:n}){if(!e.params||!Array.isArray(e.params))return;let o=!1;e.params.forEach((i,s)=>{let a=r(i);if(!a.node)return;let c=a.node;if(!c.name)return;c.required===!0?o&&t({message:`Required parameter '${c.name}' must be positioned before optional parameters.`,location:n.child([s,"name"]),reference:"https://redocly.com/docs/cli/rules/openrpc/spec-no-required-params-after-optional"}):o=!0})}}});var eA={struct:it,"no-unresolved-refs":ot,assertions:xt,"info-license":Ni,"no-unused-components":J$,"info-contact":Zt,"spec-no-duplicated-method-params":X$,"spec-no-required-params-after-optional":Z$},tA={};var rA={"info-contact":Zt,struct:it,"no-unresolved-refs":ot,assertions:xt},nA={};var pW={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error"},oas3_0Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","nullable-type-sibling":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_1Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-example-value-and-externalValue":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-example-values":"error"},oas3_2Rules:{"array-parameter-serialization":"error","boolean-parameter-prefixes":"error","component-name-unique":"error","info-contact":"error","info-license":"error","info-license-strict":"error","no-duplicated-enum-values":"error","no-path-trailing-slash":"error","no-identical-paths":"error","no-ambiguous-paths":"error","no-invalid-schema-examples":"error","no-invalid-parameter-examples":"error","no-http-verbs-in-paths":"error","no-enum-type-mismatch":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-invalid-media-type-examples":"error","no-mixed-number-range-constraints":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-empty-servers":"error","no-unsafe-markdown":"error","no-unused-components":"error","no-undefined-server-variable":"error","no-server-variables-empty-enum":"error","parameter-description":"error","path-declaration-must-exist":"error","path-not-include-query":"error","path-parameters-defined":"error","paths-kebab-case":"error","path-http-verbs-order":"error","path-params-defined":"error","path-segment-plural":"error","operation-summary":"error","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-description":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-4xx-problem-details-rfc7807":"error","operation-parameters-unique":"error","operation-tag-defined":"error","operation-singular-tag":"error","required-string-property-missing-min-length":"error","response-contains-header":"error","request-mime-type":{severity:"error",allowedValues:["application/json"]},"response-mime-type":{severity:"error",allowedValues:["application/json"]},"response-contains-property":"error","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"error","scalar-property-missing-example":"error","spec-components-invalid-map-name":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","spec-no-invalid-tag-parents":"error","spec-no-invalid-encoding-combinations":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-querystring-parameters":"error"},async2Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},async3Rules:{"channels-kebab-case":"error","info-contact":"error","info-license-strict":"error","no-channel-trailing-slash":"error","no-duplicated-enum-values":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"error","no-duplicated-tag-names":"error","no-required-schema-properties-undefined":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-schema-type-mismatch":"error"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"error"},openrpc1Rules:{"info-contact":"error","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"error"}},oA=pW;var lW={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-2xx-response":"warn","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","nullable-type-sibling":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-example-value-and-externalValue":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"warn","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-empty-servers":"warn","no-enum-type-mismatch":"warn","no-http-verbs-in-paths":"off","no-identical-paths":"warn","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"warn","no-unsafe-markdown":"off","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"warn","operation-operationId-url-safe":"warn","operation-parameters-unique":"warn","operation-singular-tag":"off","operation-summary":"warn","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"warn","path-http-verbs-order":"off","path-not-include-query":"warn","path-params-defined":"off","path-parameters-defined":"warn","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"warn","security-scopes-defined":"off","spec-components-invalid-map-name":"warn","spec-discriminator-defaultMapping":"off","spec-example-values":"off","spec-no-invalid-encoding-combinations":"warn","spec-no-invalid-tag-parents":"warn","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","operation-operationId":"warn","security-defined":"warn","security-scopes-defined":"off","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"off","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"warn","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"warn","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"off","parameters-unique":"off","requestBody-replacements-unique":"off","sourceDescription-name-unique":"off","sourceDescription-type":"off","sourceDescriptions-not-empty":"off","spec-step-mutually-exclusive-fields":"warn","step-onFailure-unique":"off","step-onSuccess-unique":"off","stepId-unique":"error","workflow-dependsOn":"off","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},graphqlRules:{"no-unused-types":"off","type-description":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"}},iA=lW;var uW={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-2xx-response":"error","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"error",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","nullable-type-sibling":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"error","info-license-strict":"error","no-ambiguous-paths":"error","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"error","no-invalid-parameter-examples":"error","no-invalid-schema-examples":"error","no-mixed-number-range-constraints":"error","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-server-example.com":"error","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"error","no-unused-components":"error","operation-2xx-response":"error","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"error","operation-description":"off","operation-operationId":"error","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"error","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"error","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"error","no-channel-trailing-slash":"off","no-duplicated-enum-values":"error","no-duplicated-tag-names":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","operation-operationId":"error","security-defined":"error","security-scopes-defined":"error","tag-description":"error","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"error","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"error","no-required-schema-properties-undefined":"error","no-schema-type-mismatch":"error","no-unsafe-markdown":"error","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"error","no-unused-components":"error","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"error","type-description":"off"}},sA=uW;var dW={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-2xx-response":"warn","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"warn",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","nullable-type-sibling":"error","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"warn","info-license-strict":"warn","no-ambiguous-paths":"warn","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-empty-servers":"error","no-enum-type-mismatch":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"warn","no-invalid-parameter-examples":"warn","no-invalid-schema-examples":"warn","no-mixed-number-range-constraints":"warn","no-path-trailing-slash":"error","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-server-example.com":"warn","no-server-trailing-slash":"error","no-server-variables-empty-enum":"error","no-undefined-server-variable":"error","no-unsafe-markdown":"warn","no-unused-components":"warn","operation-2xx-response":"warn","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"warn","operation-description":"off","operation-operationId":"warn","operation-operationId-unique":"error","operation-operationId-url-safe":"error","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"error","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"error","security-scopes-defined":"warn","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"warn","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"off","tag-description":"warn","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"error","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"warn","no-channel-trailing-slash":"off","no-duplicated-enum-values":"warn","no-duplicated-tag-names":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","operation-operationId":"warn","security-defined":"error","security-scopes-defined":"warn","tag-description":"warn","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"warn","no-criteria-xpath":"off","no-duplicated-enum-values":"warn","no-enum-type-mismatch":"error","no-mixed-number-range-constraints":"warn","no-required-schema-properties-undefined":"warn","no-schema-type-mismatch":"error","no-unsafe-markdown":"warn","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"warn","parameters-unique":"error","requestBody-replacements-unique":"warn","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"warn","step-onSuccess-unique":"warn","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-license":"warn","no-unused-components":"warn","info-contact":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"warn","type-description":"off"}},aA=dW;var fW={rules:{struct:"error","no-unresolved-refs":"error"},oas2Rules:{"boolean-parameter-prefixes":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-2xx-response":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_0Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":{severity:"off",allowAdditionalProperties:!1},"no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","nullable-type-sibling":"error","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_1Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-example-value-and-externalValue":"error","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-example-values":"off","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},oas3_2Rules:{"array-parameter-serialization":"off","boolean-parameter-prefixes":"off","component-name-unique":"off","info-contact":"off","info-license":"off","info-license-strict":"off","no-ambiguous-paths":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"error","no-empty-servers":"off","no-enum-type-mismatch":"off","no-http-verbs-in-paths":"off","no-identical-paths":"error","no-invalid-media-type-examples":"off","no-invalid-parameter-examples":"off","no-invalid-schema-examples":"off","no-mixed-number-range-constraints":"off","no-path-trailing-slash":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-server-example.com":"off","no-server-trailing-slash":"off","no-server-variables-empty-enum":"off","no-undefined-server-variable":"error","no-unsafe-markdown":"off","no-unused-components":"off","operation-2xx-response":"off","operation-4xx-problem-details-rfc7807":"off","operation-4xx-response":"off","operation-description":"off","operation-operationId":"off","operation-operationId-unique":"error","operation-operationId-url-safe":"off","operation-parameters-unique":"error","operation-singular-tag":"off","operation-summary":"off","operation-tag-defined":"off","parameter-description":"off","path-declaration-must-exist":"error","path-http-verbs-order":"off","path-not-include-query":"error","path-params-defined":"off","path-parameters-defined":"error","path-segment-plural":"off","paths-kebab-case":"off","request-mime-type":"off","required-string-property-missing-min-length":"off","response-contains-header":"off","response-contains-property":"off","response-mime-type":"off","scalar-property-missing-example":"off","security-defined":"off","security-scopes-defined":"off","spec-components-invalid-map-name":"error","spec-discriminator-defaultMapping":"error","spec-example-values":"error","spec-no-invalid-encoding-combinations":"error","spec-no-invalid-tag-parents":"error","spec-querystring-parameters":"error","spec-strict-refs":"error","tag-description":"off","tags-alphabetical":"off"},async2Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},async3Rules:{"channels-kebab-case":"off","info-contact":"off","info-license-strict":"off","no-channel-trailing-slash":"off","no-duplicated-enum-values":"off","no-duplicated-tag-names":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","operation-operationId":"off","security-defined":"off","security-scopes-defined":"off","tag-description":"off","tags-alphabetical":"off"},arazzo1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},arazzo1_1Rules:{"criteria-unique":"error","no-criteria-xpath":"off","no-duplicated-enum-values":"off","no-enum-type-mismatch":"off","no-mixed-number-range-constraints":"off","no-required-schema-properties-undefined":"off","no-schema-type-mismatch":"off","no-unsafe-markdown":"off","no-x-security-both-scheme-and-scheme-name":"off","no-x-security-scheme-name-without-openapi":"off","outputs-defined":"error","parameters-unique":"error","requestBody-replacements-unique":"error","sourceDescription-name-unique":"error","sourceDescription-type":"error","sourceDescriptions-not-empty":"error","spec-step-mutually-exclusive-fields":"error","step-onFailure-unique":"error","step-onSuccess-unique":"error","stepId-unique":"error","workflow-dependsOn":"error","workflowId-unique":"error","x-security-scheme-name-reference":"off","x-security-scheme-required-values":"off"},overlay1Rules:{"info-contact":"off"},openrpc1Rules:{"info-contact":"off","info-license":"off","no-unused-components":"off","spec-no-duplicated-method-params":"error","spec-no-required-params-after-optional":"error"},graphqlRules:{"no-unused-types":"off","type-description":"off"}},cA=fW;var mW={recommended:aA,"recommended-strict":sA,minimal:iA,all:oA,spec:cA},Jy={id:"",rules:{oas3:W$,oas2:x$,async2:c_,async3:h_,arazzo1:t_,overlay1:rA,openrpc1:eA,graphql:$_},preprocessors:{oas3:Q$,oas2:w$,async2:p_,async3:y_,arazzo1:r_,overlay1:nA,openrpc1:tA},decorators:{oas3:xw,oas2:yw,async2:fw,async3:mw,arazzo1:dw,overlay1:_w,openrpc1:ww},configs:mW};import*as Fa from"node:fs";import*as RA from"node:path";import*as Cl from"node:fs";import*as ql from"node:path";var hW=[".graphql",".gql"];function rs(e){let t=e.toLowerCase();return hW.some(r=>t.endsWith(r))}function Gn(e,t){return e+"::"+t}function pA(){return new Promise(e=>{setTimeout(e)})}var Yn=class{absoluteRef;body;mimeType;constructor(t,r,n){this.absoluteRef=t,this.body=r,this.mimeType=n}#e;#t;getAst(t){return this.#e===void 0&&(this.#e=t(this.body,{filename:this.absoluteRef})??void 0,this.#e&&this.#e.kind===0&&this.#e.value===""&&this.#e.startPosition!==1&&(this.#e.startPosition=1,this.#e.endPosition=1)),this.#e}getLines(){return this.#t===void 0&&(this.#t=this.body.split(/\r\n|[\n\r]/g)),this.#t}},Il=class e extends Error{originalError;constructor(t){super(t.message),this.originalError=t,Object.setPrototypeOf(this,e.prototype)}};function Mo(e,t){let r=new Yn(t,e);if(rs(t))return{source:r,parsed:e};try{return{source:r,parsed:oo(e,{filename:t})}}catch(n){throw new zr(n,r)}}var Mt=class{config;cache=new Map;constructor(t={http:{headers:[]}}){this.config=t}getFiles(){return new Set(Array.from(this.cache.keys()))}resolveExternalRef(t,r){return pe(r)?r:t&&pe(t)?new URL(r,t).href:ql.resolve(t?ql.dirname(t):process.cwd(),r)}async loadExternalRef(t){try{if(pe(t)){let{body:r,mimeType:n}=await ad(t,this.config.http);return new Yn(t,r,n)}else{if(Cl.lstatSync(t).isDirectory())throw new Error(`Expected a file but received a folder at ${t}.`);let r=await Cl.promises.readFile(t,"utf-8");return new Yn(t,r.replace(/\r\n/g,`
|
|
114
|
-
`))}}catch(r){throw r.message=r.message.replace(", lstat",""),new Il(r)}}parseDocument(t,r=!1){if(rs(t.absoluteRef))return{source:t,parsed:t.body};if(!Ua(t.absoluteRef)&&!t.mimeType?.match(/(json|yaml|openapi)/)&&!r)return{source:t,parsed:t.body};try{return{source:t,parsed:oo(t.body,{filename:t.absoluteRef})}}catch(n){throw new zr(n,t)}}async resolveDocument(t,r,n=!1){let o=this.resolveExternalRef(t,r),i=this.cache.get(o);if(i)return i;let s=this.loadExternalRef(o).then(a=>this.parseDocument(a,n));return this.cache.set(o,s),s}};function lA(e,t){return{prev:e,node:t}}function yW(e,t){for(;e;){if(e.node===t)return!0;e=e.prev}return!1}var za={name:"unknown",properties:{}},gW={name:"scalar",properties:{}};async function or(e){let{rootDocument:t,externalRefResolver:r,rootType:n}=e,o=new Map,i=new Set,s=[];c(t.parsed,t,"#/",n);let a;do a=await Promise.all(s);while(s.length!==a.length);return o;function c(p,l,u,m){let d=l.source.absoluteRef,f=new Map;h(p,m,d+u);function h(g,v,b){if(!O(g)&&!Array.isArray(g))return;let x=`${v.name}::${b}`;if(i.has(x))return;if(i.add(x),Array.isArray(g)){let T=v.items;if(T===void 0&&v!==za&&v!==cr)return;let A=typeof T=="function";for(let R=0;R<g.length;R++){let P=A?T(g[R],Wr(b,R)):T;if(P===void 0&&v!==za&&v!==cr)continue;let J=P?.directResolveAs?{$ref:g[R]}:g[R];P=P?.directResolveAs||P,h(J,pr(P)?P:za,Wr(b,R))}return}let[w,_]=Object.entries(g).find(([T])=>T==="$anchor")||[];_&&f.set(`#${_}`,g);for(let T of Object.keys(g)){let A=g[T],R=zt(v.properties,T);R===void 0&&(R=v.additionalProperties),typeof R=="function"&&(R=R(A,T)),R===void 0&&(R=za),v.extensionsPrefix&&T.startsWith(v.extensionsPrefix)&&R===za&&(R=cr),!pr(R)&&R?.directResolveAs&&(R=R.directResolveAs,A={$ref:A}),R&&R.name===void 0&&R.resolvable!==!1&&(R=gW),!(!pr(R)||!(O(A)||Array.isArray(A)))&&h(A,R,Wr(b,Rr(T)))}if(D(g)){let T=y(l,g,{prev:null,node:g}).then(A=>{A.resolved&&c(A.node,A.document,A.nodePointer,v)});s.push(T)}if(Ga(g)){let T=y(l,{$ref:g.externalValue},{prev:null,node:g}).then(A=>{A.resolved&&c(A.node,A.document,A.nodePointer,v)});s.push(T)}}async function y(g,v,b){if(yW(b.prev,v))throw new Error("Self-referencing circular pointer");if(Ug(v.$ref)){await pA();let H={resolved:!0,isRemote:!1,node:f.get(v.$ref),document:g,nodePointer:v.$ref},z=Gn(g.source.absoluteRef,v.$ref);return o.set(z,H),H}let{uri:x,pointer:w}=yn(v.$ref),_=x!==null&&r.resolveExternalRef(g.source.absoluteRef,x)!==g.source.absoluteRef,T;try{T=_?await r.resolveDocument(g.source.absoluteRef,x):g}catch(H){let z={resolved:!1,isRemote:_,document:void 0,error:H},E=Gn(g.source.absoluteRef,v.$ref);return o.set(E,z),z}let A={resolved:!0,document:T,isRemote:_,node:g.parsed,nodePointer:"#/"},R=T.parsed,P=w;for(let H of P)if(O(R)&&R[H]!==void 0)R=R[H],A.nodePointer=Wr(A.nodePointer,Rr(H));else if(Array.isArray(R)&&R[+H]!==void 0)R=R[+H],A.nodePointer=Wr(A.nodePointer,Rr(H));else if(D(R))if(A=await y(T,R,lA(b,R)),T=A.document||T,O(A.node))R=A.node[H],A.nodePointer=Wr(A.nodePointer,Rr(H));else if(Array.isArray(A.node))R=A.node[+H],A.nodePointer=Wr(A.nodePointer,Rr(H));else{R=void 0;break}else{R=void 0;break}A.node=R,A.document=T;let J=Gn(g.source.absoluteRef,v.$ref);return A.document&&D(R)&&(A=await y(A.document,R,lA(b,R))),o.set(J,A),{...A}}}}import*as sg from"node:fs";import EW from"node:module";import*as Pt from"node:path";import*as AA from"node:url";var bW={Root:"DefinitionRoot",ServerVariablesMap:"ServerVariableMap",Paths:["PathMap","PathsMap"],CallbacksMap:"CallbackMap",MediaTypesMap:"MediaTypeMap",ExamplesMap:"ExampleMap",EncodingMap:"EncodingsMap",HeadersMap:"HeaderMap",LinksMap:"LinkMap",OAuth2Flows:"SecuritySchemeFlows",Responses:"ResponsesMap"};function Ft(e,t){let r={};r.any={enter:[],leave:[]};for(let s of Object.keys(t))r[s]={enter:[],leave:[]};r.ref={enter:[],leave:[]};for(let{ruleId:s,severity:a,message:c,visitor:p}of e)i({ruleId:s,severity:a,message:c},p,null);for(let s of Object.keys(r))r[s].enter.sort((a,c)=>c.depth-a.depth),r[s].leave.sort((a,c)=>a.depth-c.depth);return r;function n(s,a,c,p,l=[]){if(l.includes(a))return;l=[...l,a];let u=new Set;for(let d of Object.values(a.properties)){if(d===c){m(s,l);continue}O(d)&&d.name!==void 0&&u.add(d)}a.additionalProperties&&typeof a.additionalProperties!="function"&&(a.additionalProperties===c?m(s,l):a.additionalProperties.name!==void 0&&u.add(a.additionalProperties)),a.items&&typeof a.items!="function"&&(a.items===c?m(s,l):a.items.name!==void 0&&u.add(a.items)),a.extensionsPrefix&&u.add(cr);for(let d of Array.from(u.values()))n(s,d,c,p,l);function m(d,f){for(let h of f.slice(1))r[h.name]=r[h.name]||{enter:[],leave:[]},r[h.name].enter.push({...d,visit:()=>{},depth:0,context:{isSkippedLevel:!0,seen:new Set,parent:p}})}}function o(s,a){if(Array.isArray(a)){let c=a.find(p=>s[p])||void 0;return c&&s[c]}return s[a]}function i(s,a,c,p=0){let l=Object.keys(t);if(p===0)l.push("any"),l.push("ref");else{if(a.any)throw new Error("any() is allowed only on top level");if(a.ref)throw new Error("ref() is allowed only on top level")}for(let u of l){let m=a[u]||o(a,bW[u]),d=r[u];if(!m)continue;let f,h,y,g=O(m);if(u==="ref"&&g&&m.skip)throw new Error("ref() visitor does not support skip");typeof m=="function"?f=m:g&&(f=m.enter,h=m.leave,y=m.skip);let v=(f?1:0)+(h?1:0)+(y?1:0),b=g&&Object.keys(m).length>v,x={activatedOn:null,type:t[u],parent:c,isSkippedLevel:!1};if(b&&i(s,m,x,p+1),c&&n(s,c.type,t[u],c),f||g){if(f&&typeof f!="function")throw new Error("DEV: should be function");d.enter.push({...s,visit:f||(()=>{}),skip:y,depth:p,context:x})}if(h){if(typeof h!="function")throw new Error("DEV: should be function");d.leave.push({...s,visit:h,depth:p,context:x})}}}}import vW from"node:path";var me=(e,t)=>{if(t)for(let r of Object.keys(t))O(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r]};function _e(e,t){if(t)for(let r of Object.keys(t))e.hasOwnProperty(r)&&(O(e[r])&&typeof t[r]=="string"?e[r]={...e[r],severity:t[r]}:e[r]=t[r])}function uA(e){if(e.indexOf("/")>-1){let[t,r]=e.split("/");return{pluginId:t,configName:r}}else return{pluginId:"",configName:e}}function Le(e,t){if(!t)return e;let r={};for(let n of Object.keys(e))r[`${t}/${n}`]=e[n];return r}function Nl(e){let t={rules:{},oas2Rules:{},oas3_0Rules:{},oas3_1Rules:{},oas3_2Rules:{},async2Rules:{},async3Rules:{},arazzo1Rules:{},arazzo1_1Rules:{},overlay1Rules:{},openrpc1Rules:{},graphqlRules:{},preprocessors:{},oas2Preprocessors:{},oas3_0Preprocessors:{},oas3_1Preprocessors:{},oas3_2Preprocessors:{},async2Preprocessors:{},async3Preprocessors:{},arazzo1Preprocessors:{},arazzo1_1Preprocessors:{},overlay1Preprocessors:{},openrpc1Preprocessors:{},decorators:{},oas2Decorators:{},oas3_0Decorators:{},oas3_1Decorators:{},oas3_2Decorators:{},async2Decorators:{},async3Decorators:{},arazzo1Decorators:{},arazzo1_1Decorators:{},overlay1Decorators:{},openrpc1Decorators:{}};for(let r of e){if(O(r)&&"extends"in r&&r.extends!==void 0)throw new Error(`'extends' is not supported in shared configs yet:
|
|
115
|
-
${JSON.stringify(r,null,2)}`);me(t.rules,r.rules),me(t.oas2Rules,r.oas2Rules),_e(t.oas2Rules,r.rules),me(t.oas3_0Rules,r.oas3_0Rules),_e(t.oas3_0Rules,r.rules),me(t.oas3_1Rules,r.oas3_1Rules),_e(t.oas3_1Rules,r.rules),me(t.oas3_2Rules,r.oas3_2Rules),_e(t.oas3_2Rules,r.rules),me(t.async2Rules,r.async2Rules),_e(t.async2Rules,r.rules),me(t.async3Rules,r.async3Rules),_e(t.async3Rules,r.rules),me(t.arazzo1Rules,r.arazzo1Rules),_e(t.arazzo1Rules,r.rules),me(t.arazzo1_1Rules,r.arazzo1_1Rules),_e(t.arazzo1_1Rules,r.rules),me(t.overlay1Rules,r.overlay1Rules),_e(t.overlay1Rules,r.rules),me(t.openrpc1Rules,r.openrpc1Rules),_e(t.openrpc1Rules,r.rules),me(t.graphqlRules,r.graphqlRules),_e(t.graphqlRules,r.rules),me(t.preprocessors,r.preprocessors),me(t.oas2Preprocessors,r.oas2Preprocessors),_e(t.oas2Preprocessors,r.preprocessors),me(t.oas3_0Preprocessors,r.oas3_0Preprocessors),_e(t.oas3_0Preprocessors,r.preprocessors),me(t.oas3_1Preprocessors,r.oas3_1Preprocessors),_e(t.oas3_1Preprocessors,r.preprocessors),me(t.oas3_2Preprocessors,r.oas3_2Preprocessors),_e(t.oas3_2Preprocessors,r.preprocessors),me(t.async2Preprocessors,r.async2Preprocessors),_e(t.async2Preprocessors,r.preprocessors),me(t.async3Preprocessors,r.async3Preprocessors),_e(t.async3Preprocessors,r.preprocessors),me(t.arazzo1Preprocessors,r.arazzo1Preprocessors),_e(t.arazzo1Preprocessors,r.preprocessors),me(t.arazzo1_1Preprocessors,r.arazzo1_1Preprocessors),_e(t.arazzo1_1Preprocessors,r.preprocessors),me(t.overlay1Preprocessors,r.overlay1Preprocessors),_e(t.overlay1Preprocessors,r.preprocessors),me(t.openrpc1Preprocessors,r.openrpc1Preprocessors),_e(t.openrpc1Preprocessors,r.preprocessors),me(t.decorators,r.decorators),me(t.oas2Decorators,r.oas2Decorators),_e(t.oas2Decorators,r.decorators),me(t.oas3_0Decorators,r.oas3_0Decorators),_e(t.oas3_0Decorators,r.decorators),me(t.oas3_1Decorators,r.oas3_1Decorators),_e(t.oas3_1Decorators,r.decorators),me(t.oas3_2Decorators,r.oas3_2Decorators),_e(t.oas3_2Decorators,r.decorators),me(t.async2Decorators,r.async2Decorators),_e(t.async2Decorators,r.decorators),me(t.async3Decorators,r.async3Decorators),_e(t.async3Decorators,r.decorators),me(t.arazzo1Decorators,r.arazzo1Decorators),_e(t.arazzo1Decorators,r.decorators),me(t.arazzo1_1Decorators,r.arazzo1_1Decorators),_e(t.arazzo1_1Decorators,r.decorators),me(t.overlay1Decorators,r.overlay1Decorators),_e(t.overlay1Decorators,r.decorators),me(t.openrpc1Decorators,r.openrpc1Decorators),_e(t.openrpc1Decorators,r.decorators)}return t}var Xy=class extends Error{};function dA(e){return new Map(JSON.parse(JSON.stringify([...e])))}function Zy(e){return O(e)&&"id"in e}function fA(e){return typeof e=="function"}function eg({node:e,ctx:t,plugins:r}){if(!e.extends)return e;let n=(e.extends||[]).filter(Ge).map(o=>{if(!pe(o)&&!vW.extname(o))return mA(o,r);let i=t.resolve({$ref:o});return i.location&&i.node!==void 0?i.node:null}).filter(Ge);return Nl([...n.map(o=>eg({node:o,ctx:t,plugins:r})),{...e,extends:void 0}])}function Ml(e,t){if(O(e)&&Array.isArray(e.plugins)){let{plugins:r,rootConfigDir:n}=t.getVisitorData();r.push(...e.plugins.map(o=>Dl(o,t.location.source.absoluteRef.replace(/^file:\/\//,""),n)))}}var hA=Ft([{severity:"error",ruleId:cp,visitor:{ref:{},ConfigGovernance:{leave(e,t){Ml(e,t)}},ConfigApisProperties:{leave(e,t){Ml(e,t)}},[et.ScorecardClassicLevel]:{leave(e,t){Ml(e,t)}},ConfigRoot:{leave(e,t){Ml(e,t)}}}}],An);function jl(e,t){if(O(e)&&e.extends){let{plugins:r,skipPluginEval:n}=t.getVisitorData();if(n)return;let o=eg({node:e,ctx:t,plugins:r});Object.assign(e,o),delete e.extends}}var yA=Ft([{severity:"error",ruleId:ap,visitor:{ref:{leave(e,t,r){us(e,r,t)}},ConfigGovernance:{leave(e,t){jl(e,t)}},ConfigApisProperties:{leave(e,t){jl(e,t)}},[et.ScorecardClassicLevel]:{leave(e,t){jl(e,t)}},ConfigRoot:{leave(e,t){jl(e,t)}}}}],An);function tg(e,t){return{prev:e,value:t}}function rg(e){return e?.prev??null}function SW(e){let t={};for(;e.parent;)t[e.parent.type.name]=e.parent.activatedOn?.value.node,e=e.parent;return t}function xW(e){let t={};for(;e.parent;)e.parent.activatedOn?.value.location&&(t[e.parent.type.name]=e.parent.activatedOn?.value.location),e=e.parent;return t}function Vt(e){let{document:t,rootType:r,normalizedVisitors:n,resolvedRefMap:o,ctx:i}=e,s={},a=new Set,c=n.any.enter,p=n.any.leave,l={},u={};for(let d of Object.keys(n))d==="any"||d==="ref"||(l[d]=c.concat(n[d]?.enter||[]),u[d]=(n[d]?.leave||[]).concat(p));m(t.parsed,r,new sr(t.source,"#/"),void 0,"");function m(d,f,h,y,g){let v=(z,E=x.source.absoluteRef)=>{if(!D(z))return{location:h,node:z};let $=Gn(E,z.$ref),oe=o.get($);if(!oe)return{location:void 0,node:void 0};let{resolved:X,node:le,document:N,nodePointer:U,error:ve}=oe;return{location:X?new sr(N.source,U):ve instanceof zr?new sr(ve.source,""):void 0,node:le,error:ve}},b=h,x=h,w=D(d),{node:_,location:T,error:A}=v(d),R=new Set;if(w){let z=n.ref.enter;for(let{visit:E,ruleId:$,severity:oe,message:X,context:le}of z)R.add(le),E(d,{report:U=>J($,oe,X,U),resolve:v,rawNode:d,rawLocation:b,location:h,type:f,parent:y,key:g,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>H($)},{node:_,location:T,error:A}),T?.source.absoluteRef&&i.refTypes&&i.refTypes.set(T?.source.absoluteRef,f)}if(_!==void 0&&T&&f.name!=="scalar"){x=T;let z=s[f.name]?.has?.(_),E=!1,$=l[f.name]||c.concat(n[f.name]?.enter||[]),oe=[],X=`${x.absolutePointer}${x.pointer}`;for(let{context:N,visit:U,skip:ve,ruleId:Ht,severity:ue,message:Et}of $){if(a.has(X))break;if(N.isSkippedLevel)N.parent.activatedOn&&!N.parent.activatedOn.value.nextLevelTypeActivated&&!N.seen.has(d)&&(N.seen.add(d),E=!0,oe.push(N));else if(N.parent&&N.parent.activatedOn&&N.activatedOn?.value.withParentNode!==N.parent.activatedOn.value.node&&N.parent.activatedOn.value.nextLevelTypeActivated?.value!==f||!N.parent&&!z){oe.push(N);let Z={node:_,location:T,nextLevelTypeActivated:null,withParentNode:N.parent?.activatedOn?.value.node,skipped:(N.parent?.activatedOn?.value.skipped||ve?.(_,g,{location:h,rawLocation:b,resolve:v,rawNode:d}))??!1};N.activatedOn=tg(N.activatedOn,Z);let Er=N.parent;for(;Er;)Er.activatedOn.value.nextLevelTypeActivated=tg(Er.activatedOn.value.nextLevelTypeActivated,f),Er=Er.parent;Z.skipped||(E=!0,R.add(N),P(U,_,d,N,Ht,ue,Et))}}if(E||!z){if(s[f.name]=s[f.name]||new Set,s[f.name].add(_),Array.isArray(_)){let N=f.items;if(N!==void 0){let U=typeof N=="function";for(let ve=0;ve<_.length;ve++){let Ht=T.child([ve]),ue=U?N(_[ve],Ht.absolutePointer):N,Et=_[ve];ue?.directResolveAs&&(ue=ue.directResolveAs,Et={$ref:Et}),pr(ue)&&m(Et,ue,Ht,_,ve)}}}else if(O(_)){let N=Object.keys(f.properties);f.additionalProperties?N.push(...Object.keys(_).filter(U=>!N.includes(U))):f.extensionsPrefix&&N.push(...Object.keys(_).filter(U=>U.startsWith(f.extensionsPrefix))),w&&N.push(...Object.keys(d).filter(U=>U!=="$ref"&&!N.includes(U)));for(let U of N){let ve=_[U],Ht=T;ve===void 0&&(ve=d[U],Ht=h);let ue=zt(f.properties,U);if(ue===void 0&&(ue=f.additionalProperties),typeof ue=="function"&&(ue=ue(ve,U)),ue===void 0&&f.extensionsPrefix&&U.startsWith(f.extensionsPrefix)&&(ue=cr),!pr(ue)&&ue?.directResolveAs&&(ue=ue.directResolveAs,ve={$ref:ve}),ue&&ue.name===void 0&&ue.resolvable!==!1&&(ue={name:"scalar",properties:{}}),D(d[U])&&ue?.name==="scalar"){m(d[U],ue,h.child([U]),d,U);continue}!pr(ue)||ue.name==="scalar"&&!D(ve)||m(ve,ue,Ht.child([U]),_,U)}}}let le=u[f.name]||(n[f.name]?.leave||[]).concat(p);for(let N of oe.reverse())if(N.isSkippedLevel)N.seen.delete(_);else if(N.activatedOn=rg(N.activatedOn),N.parent){let U=N.parent;for(;U;)U.activatedOn.value.nextLevelTypeActivated=rg(U.activatedOn.value.nextLevelTypeActivated),U=U.parent}for(let{context:N,visit:U,ruleId:ve,severity:Ht,message:ue}of le)!N.isSkippedLevel&&R.has(N)&&P(U,_,d,N,ve,Ht,ue)}if(x=h,w){let z=n.ref.leave;for(let{visit:E,ruleId:$,severity:oe,context:X,message:le}of z)R.has(X)&&E(d,{report:U=>J($,oe,le,U),resolve:v,rawNode:d,rawLocation:b,location:h,type:f,parent:y,key:g,parentLocations:{},specVersion:i.specVersion,config:i.config,getVisitorData:()=>H($)},{node:_,location:T,error:A})}function P(z,E,$,oe,X,le,N){z(E,{report:ve=>J(X,le,N,ve),resolve:v,rawNode:$,location:x,rawLocation:b,type:f,parent:y,key:g,parentLocations:xW(oe),specVersion:i.specVersion,config:i.config,ignoreNextVisitorsOnNode:()=>{a.add(`${x.absolutePointer}${x.pointer}`)},getVisitorData:()=>H(X)},SW(oe),oe)}function J(z,E,$,oe){let le=(oe.location?Array.isArray(oe.location)?oe.location:[oe.location]:[{...x,reportOnKey:!1}]).map(U=>({...x,reportOnKey:!1,...U})),N=oe.forceSeverity||E;N!=="off"&&i.problems.push({ruleId:oe.ruleId||z,severity:N,...oe,message:$?$.replace("{{message}}",oe.message):oe.message,suggest:oe.suggest||[],location:le})}function H(z){return i.visitorsData[z]=i.visitorsData[z]||{},i.visitorsData[z]}}}function gA(e){return e.trim().split(/\s+/).map(t=>t.replace(/^[a-z]/,r=>r.toUpperCase())).join("")}function ng(e,t){switch(t){case"oas3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";case"Response":return"responses";case"Example":return"examples";case"RequestBody":return"requestBodies";case"Header":return"headers";case"SecuritySchema":return"securitySchemes";case"Link":return"links";case"Callback":return"callbacks";case"MediaTypesMap":return"mediaTypes";default:return null}case"oas2":switch(e){case"Schema":return"definitions";case"Parameter":return"parameters";case"Response":return"responses";default:return null}case"async2":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"async3":switch(e){case"Schema":return"schemas";case"Parameter":return"parameters";default:return null}case"arazzo1":switch(e){case"Root.workflows_items.parameters_items":case"Root.workflows_items.steps_items.parameters_items":return"parameters";default:return null}case"overlay1":return null;case"openrpc1":switch(e){case"ContentDescriptor":return"contentDescriptors";case"Schema":return"schemas";case"Example":return"examples";case"Link":return"links";case"ErrorObject":return"errors";case"ExamplePairing":return"examplePairingObjects";case"Tag":return"tags";default:return null}default:return null}}function bA({version:e,dereference:t,rootDocument:r,resolvedRefMap:n,keepUrlRefs:o,componentRenamingConflicts:i="warn",componentNamesStrategy:s="basename"}){let a,c,p=new Map,l=ng("Schema",e),u={ref:{leave(v,b,x){if(!x.location||x.node===void 0){Eo(x,b.report,b.location);return}if(x.location.source===r.source&&x.location.source===b.location.source&&b.type.name!=="scalar"&&!t){yn(v.$ref).uri!==null&&v.$ref!==x.location.pointer&&(v.$ref=x.location.pointer);return}if(o&&pe(v.$ref))return;let w=ng(b.type.name,e);w?t?(d(w,x,b),us(v,x,b)):(v.$ref=d(w,x,b),m(v,x,b)):us(v,x,b)}},Example:{leave(v,b){if(Ga(v)&&v.value===void 0){let x=b.resolve({$ref:v.externalValue});if(!x.location||x.node===void 0){Eo(x,b.report,b.location);return}if(o&&pe(v.externalValue))return;v.value=b.resolve({$ref:v.externalValue}).node,delete v.externalValue}}},Root:{enter(v,b){c=b.location,e==="oas3"?a=v.components=v.components||{}:e==="oas2"?a=v:e==="async2"?a=v.components=v.components||{}:e==="async3"?a=v.components=v.components||{}:e==="arazzo1"?a=v.components=v.components||{}:e==="openrpc1"&&(a=v.components=v.components||{})}}};e==="oas3"&&(u.Discriminator={leave(v,b){if(typeof v.defaultMapping!="string"||!Or(v.defaultMapping))return;let x=b.resolve({$ref:v.defaultMapping});if(!x.location||x.node===void 0){Eo(x,b.report,b.location.child("defaultMapping"));return}v.defaultMapping=d(l,x,b)},DiscriminatorMapping:{leave(v,b){for(let x of Object.keys(v)){let w=v[x];if(!Or(w))continue;let _=b.resolve({$ref:w});if(!_.location||_.node===void 0){Eo(_,b.report,b.location.child(x));return}v[x]=d(l,_,b)}}}});function m(v,b,x){let w=Gn(x.location.source.absoluteRef,v.$ref);n.set(w,{document:r,isRemote:!1,node:b.node,nodePointer:v.$ref,resolved:!0})}function d(v,b,x){a[v]=a[v]||{};let w=g(b,v,x);return a[v][w]=b.node,e==="oas3"||e==="async2"||e==="async3"||e==="openrpc1"?`#/components/${v}/${w}`:`#/${v}/${w}`}function f(v,b,x){return D(v)&&x.resolve(v,c.absolutePointer).location?.absolutePointer===b.location.absolutePointer?!0:Jo(v,b.node)}function h(v,b,x){let{node:w}=v,_=O(w)&&De(w.title)?w.title.trim():"",T=gA(_).replace(new RegExp(`[^${wc}]`,"g"),"-"),A=v.location.child("title");return _===""?{key:T,problem:{message:"Schema must define a `title` when using `--component-names-strategy title`.",location:v.location,forceSeverity:"error"}}:b[T]&&!f(b[T],v,x)?{key:T,problem:{message:`Title "${_}" maps to component name \`${T}\`, already used by another schema. Rename one of the titles.`,location:A,from:p.get(T),forceSeverity:i}}:{key:T}}function y(v,b,x){let w=Dg(v.location.pointer)||Lg(v.location.source.absoluteRef),_=w;for(let T=2;b[_]&&!f(b[_],v,x);T++)_=`${w}-${T}`;return{name:_,prevName:w}}function g(v,b,x){let w=a[b];if(s==="title"&&b===l){let{key:A,problem:R}=h(v,w,x);if(!R)return p.set(A,v.location.child("title")),A;let{name:P}=y(v,w,x);return w[P]||(x.report(R),p.set(P,v.location)),P}let{name:_,prevName:T}=y(v,w,x);return!w[_]&&T!==_&&x.report({message:`Two schemas are referenced with the same name but different content. Renamed ${T} to ${_}.`,location:x.location,forceSeverity:i}),_}return u}async function og(e){let{document:t,config:r,types:n,externalRefResolver:o,dereference:i=!1,removeUnusedComponents:s=!1,keepUrlRefs:a=!1,componentRenamingConflicts:c,componentNamesStrategy:p="basename"}=e,l=cn(t.parsed),u=la(l),m=r.getRulesForSpecVersion(u),d=Xr(r.extendTypes(n,l),r),f=Fo(m,r,"preprocessors",l),h=Fo(m,r,"decorators",l),y={problems:[],specVersion:l,config:r,refTypes:new Map,visitorsData:{}},g=await or({rootDocument:t,rootType:d.Root,externalRefResolver:o});f.length>0&&(Vt({document:t,rootType:d.Root,normalizedVisitors:Ft(f,d),resolvedRefMap:g,ctx:y}),g=await or({rootDocument:t,rootType:d.Root,externalRefResolver:o}));let v=Ft([{severity:"error",ruleId:"bundler",visitor:bA({version:u,dereference:i,rootDocument:t,resolvedRefMap:g,keepUrlRefs:a,componentRenamingConflicts:c,componentNamesStrategy:p})},...h.filter(b=>b.ruleId!=="remove-unused-components")],d);if(Vt({document:t,rootType:d.Root,normalizedVisitors:v,resolvedRefMap:g,ctx:y}),s||r.getDecoratorSettings("remove-unused-components",l).severity!=="off"){let b=await or({rootDocument:t,rootType:d.Root,externalRefResolver:o}),x=Ft([{severity:"error",ruleId:"remove-unused-components",visitor:u==="oas2"?_p({}):Pp({})}],d);Vt({document:t,rootType:d.Root,normalizedVisitors:x,resolvedRefMap:b,ctx:y})}return{bundle:t,problems:y.problems.map(b=>r.addProblemToIgnore(b)),fileDependencies:o.getFiles(),rootType:d.Root,refTypes:y.refTypes,visitorsData:y.visitorsData}}function vA(e,t,r){let n={plugins:[],rootConfigDir:r},o={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[cp]:n}};return Vt({document:e,rootType:An.ConfigRoot,normalizedVisitors:hA,resolvedRefMap:t,ctx:o}),n.plugins}function SA(e,t,r,n=!1){let o={plugins:r,skipPluginEval:n},i={problems:[],specVersion:"config",refTypes:new Map,visitorsData:{[ap]:o}};return Vt({document:e,rootType:An.ConfigRoot,normalizedVisitors:yA,resolvedRefMap:t,ctx:i}),e.parsed??{}}async function wW(e){let{ref:t,doc:r,externalRefResolver:n=new Mt(e.config.resolve),base:o=null}=e;if(!(t||r))throw new Error(`Document or reference is required.
|
|
116
|
-
`);let i=r===void 0?await n.resolveDocument(o,t,!0):r;if(i instanceof Error)throw i;return e.collectSpecData?.(i),og({document:i,...e,externalRefResolver:n,types:ao(cn(i.parsed))})}function Ll(e){return!De(e)}import*as xA from"node:url";var ig=new Map,_W="v",PW=0;function wA(e){return ig.has(e)}function _A(e){return ig.get(e)}function PA(e,t){ig.set(e,t)}async function EA(e){let t=xA.pathToFileURL(e);return t.searchParams.set(_W,String(PW)),import(t.href)}async function ag({rawConfigDocument:e,configPath:t,externalRefResolver:r,customExtends:n,skipPluginEval:o}){let i=e===void 0?ow:e.parsed;if(n!==void 0&&O(i)&&(i.extends=n),O(i)&&(i?.extends?.some(Ll)||i?.scorecardClassic?.levels?.some(d=>d?.extends?.some(Ll))||i?.scorecard?.levels?.some(d=>d?.extends?.some(Ll))))throw new Error("Configuration format not detected in extends: values must be strings.");let s=e??{source:new Yn(t??"",JSON.stringify(i)),parsed:i},a=await or({rootDocument:s,rootType:An.ConfigRoot,externalRefResolver:r??new Mt(pp(i?.resolve))}),c=[],p,l="";Je?p=[...(i?.plugins||[]).filter(f=>!De(f)),Jy]:(l=Pt.dirname(t??""),c=vA(s,a,l),p=[...await TA(c.map(f=>$A(f)?f.absolutePath:f),l,o),Jy]);let u=SA(s,dA(a),p,o);u.apis&&!o&&(u.apis=Object.fromEntries(Object.entries(u.apis).map(([d,f])=>{let h=Nl([u,f]);return[d,{...f,...h}]})));let m=c.length?c.map(d=>$A(d)&&d.isModule?d.rawPath:d.absolutePath&&Pt.relative(l,d.absolutePath)).filter(Dt):void 0;return{resolvedConfig:{...u,plugins:m},resolvedRefMap:a,plugins:p}}function $W(e){for(let t of sw){let r=Pt.resolve(e,t);if(sg.existsSync(r))return t}}function $A(e){return"isModule"in e}var Dl=(e,t,r)=>{if(!De(e))return e;let n=Pt.resolve(Pt.dirname(t),e);if(sg.existsSync(n))return{absolutePath:n,rawPath:e,isModule:!1};try{return{absolutePath:EW.createRequire(import.meta.url??__dirname).resolve(e,{paths:[r,import.meta.url?Pt.dirname(AA.fileURLToPath(import.meta.url)):__dirname]}),isModule:!0,rawPath:e}}catch{throw new Error(`Plugin "${e}" not found.`)}};async function TA(e,t,r=!1){if(!e)return[];let n=async c=>{if(!De(c))return c;try{let p=Pt.isAbsolute(c)?c:Dl(c,Pt.join(t,$i),t).absolutePath;if(!wA(p)){let l=await EA(p),u=l.default||l,m={contentDir:t},d=Array.isArray(u)?u:[u];for(let y of d)y?.id&&Zy(y)&&Y.info(`Deprecated plugin format detected: ${y.id}
|
|
117
|
-
`);let f=Zy(u)?u:fA(u)?await u(m):await u?.default?.(m),h=Array.isArray(f)?f:[f];f&&PA(p,h.map(y=>({...y,path:c,absolutePath:p})))}return _A(p)}catch(p){throw new Error(`Failed to load plugin "${c}": ${p.message}
|
|
118
|
-
|
|
119
|
-
${p.stack}`)}},o=new Map,i=$W(t);i&&e.push(i);let s=new Set;if(r){let c=[];for(let p of e){if(!De(p)){c.push(p);continue}let l=Pt.isAbsolute(p)?p:Dl(p,Pt.join(t,$i),t).absolutePath;s.has(l)||(s.add(l),c.push({absolutePath:l}))}return c}return(await Promise.all(e.map(async c=>{if(De(c)){if(pe(c))throw new Error(G.red("We don't support remote plugins yet."));if(s.has(c))return;s.add(c)}let p=await n(c);if(!p)return;let l=Array.isArray(p)?p:[p];return(await Promise.all(l.map(async u=>{if(!u)return;let m=u.id;if(typeof m!="string")throw new Error(G.red(`Plugin must define \`id\` property in ${G.blue(c.toString())}.`));let d=u.absolutePath??c.toString(),f=o.get(m);if(f){if(d!==f)throw new Error(G.red(`Plugin "id" must be unique. Plugin ${G.blue(d)} uses id "${G.blue(m)}" already seen in ${G.blue(d)}`));return}o.set(m,d);let h={id:m,...u.configs?{configs:u.configs}:{},...u.typeExtension?{typeExtension:u.typeExtension}:{}};if(u.rules){if(!u.rules.oas3&&!u.rules.oas2&&!u.rules.async2&&!u.rules.async3&&!u.rules.arazzo1&&!u.rules.overlay1&&!u.rules.openrpc1&&!u.rules.graphql)throw new Error(`Plugin rules must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo\`, \`overlay1\`, \`openrpc1\`, or \`graphql\` rules "${c}.`);h.rules={},u.rules.oas3&&(h.rules.oas3=Le(u.rules.oas3,m)),u.rules.oas2&&(h.rules.oas2=Le(u.rules.oas2,m)),u.rules.async2&&(h.rules.async2=Le(u.rules.async2,m)),u.rules.async3&&(h.rules.async3=Le(u.rules.async3,m)),u.rules.arazzo1&&(h.rules.arazzo1=Le(u.rules.arazzo1,m)),u.rules.overlay1&&(h.rules.overlay1=Le(u.rules.overlay1,m)),u.rules.openrpc1&&(h.rules.openrpc1=Le(u.rules.openrpc1,m)),u.rules.graphql&&(h.rules.graphql=Le(u.rules.graphql,m))}if(u.preprocessors){if(!u.preprocessors.oas3&&!u.preprocessors.oas2&&!u.preprocessors.async2&&!u.preprocessors.async3&&!u.preprocessors.arazzo1&&!u.preprocessors.overlay1&&!u.preprocessors.openrpc1)throw new Error(`Plugin \`preprocessors\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` preprocessors "${c}.`);h.preprocessors={},u.preprocessors.oas3&&(h.preprocessors.oas3=Le(u.preprocessors.oas3,m)),u.preprocessors.oas2&&(h.preprocessors.oas2=Le(u.preprocessors.oas2,m)),u.preprocessors.async2&&(h.preprocessors.async2=Le(u.preprocessors.async2,m)),u.preprocessors.async3&&(h.preprocessors.async3=Le(u.preprocessors.async3,m)),u.preprocessors.arazzo1&&(h.preprocessors.arazzo1=Le(u.preprocessors.arazzo1,m)),u.preprocessors.overlay1&&(h.preprocessors.overlay1=Le(u.preprocessors.overlay1,m)),u.preprocessors.openrpc1&&(h.preprocessors.openrpc1=Le(u.preprocessors.openrpc1,m))}if(u.decorators){if(!u.decorators.oas3&&!u.decorators.oas2&&!u.decorators.async2&&!u.decorators.async3&&!u.decorators.arazzo1&&!u.decorators.overlay1&&!u.decorators.openrpc1)throw new Error(`Plugin \`decorators\` must have \`oas3\`, \`oas2\`, \`async2\`, \`async3\`, \`arazzo1\`, \`overlay1\`, or \`openrpc1\` decorators "${c}.`);h.decorators={},u.decorators.oas3&&(h.decorators.oas3=Le(u.decorators.oas3,m)),u.decorators.oas2&&(h.decorators.oas2=Le(u.decorators.oas2,m)),u.decorators.async2&&(h.decorators.async2=Le(u.decorators.async2,m)),u.decorators.async3&&(h.decorators.async3=Le(u.decorators.async3,m)),u.decorators.arazzo1&&(h.decorators.arazzo1=Le(u.decorators.arazzo1,m)),u.decorators.overlay1&&(h.decorators.overlay1=Le(u.decorators.overlay1,m)),u.decorators.openrpc1&&(h.decorators.openrpc1=Le(u.decorators.openrpc1,m))}return u.assertions&&(h.assertions=u.assertions),{...u,...h}}))).filter(Dt)}))).filter(Dt).flat()}function mA(e,t){let{pluginId:r,configName:n}=uA(e),o=t.find(s=>s.id===r);if(!o)throw new Error(`Invalid config ${G.red(e)}: plugin ${r} is not included.`);let i=o.configs?.[n];if(!i)throw new Error(r?`Invalid config ${G.red(e)}: plugin ${r} doesn't export config with name ${n}.`:`Invalid config ${G.red(e)}: there is no such built-in config.`);return i}function AW(e,t){let r=Object.create(null);for(let n of Object.keys(e)){let o=e[n],i=pe(n)?n:Ya(t,n);r[i]=Object.create(null);for(let s of Object.keys(o))r[i][s]=new Set(o[s])}return r}async function OA(e,t){let r=e?tu(e):Je?"":process.cwd(),n=r?Ya(r,aa):aa;if(Fa?.existsSync&&!pe(n)&&!Fa.existsSync(n))return{};let o=await t.resolveDocument(null,n,!0);return o instanceof Error||!o.parsed?{}:AW(o.parsed||{},r)}async function TW(e={}){let{configPath:t=kA(),customExtends:r,externalRefResolver:n,skipPluginEval:o}=e,i=n??new Mt,s=t?await i.resolveDocument(null,t,!0):void 0;if(s instanceof Error)throw s;let{resolvedConfig:a,resolvedRefMap:c,plugins:p}=await ag({rawConfigDocument:s?CA(s):void 0,customExtends:r,configPath:t,externalRefResolver:n,skipPluginEval:o}),l=await OA(t,i);return new Ai(a,{configPath:t,document:s,resolvedRefMap:c,plugins:p,ignore:l})}function kA(e){if(!Fa?.existsSync)return;let t=e?RA.resolve(e,$i):$i;return Fa.existsSync(t)?t:void 0}async function IA(e,{configPath:t,externalRefResolver:r,ignore:n}={}){let i=Mo(typeof e=="string"?e:"",t??"");typeof e!="string"&&e&&(i.parsed=e);let{resolvedConfig:s,resolvedRefMap:a,plugins:c}=await ag({rawConfigDocument:CA(i),configPath:t,externalRefResolver:r});return new Ai(s,{configPath:t,document:i,resolvedRefMap:a,plugins:c,ignore:n})}function CA(e){if(!e.parsed)return e;let{plugins:t,resolve:r,...n}=e.parsed,o={...structuredClone(n),plugins:t?.slice(),...r&&{resolve:{...r}}};return{...e,parsed:o}}var zo=Tr(ZT(),1);var mJ=150,hJ=3;function Ql(e,t){xs.enabled=t;let{start:r,end:n={line:r.line,col:r.col+1},source:o}=e,i=o.getLines(),s=r.line,a=Math.max(Math.min(n.line,i.length),r.line),c=Math.max(a-s-hJ+1,0);c<2&&(c=0);let p=[],l=0;for(let m=s;m<=a&&!(c>0&&m>=a-c);m++){let d=i[m-1]||"";d!==""&&(l=Wl(d));let f=m===s?r.col-1:l,h=m===a?n.col-1:d.length;p.push([`${m}`,u(d,f,h,G.red)]),t||p.push(["",eR(d,f,h)])}return c>0&&(p.push(["\u2026",`${qg(l)}${G.gray(`< ${c} more lines >`)}`]),p.push([`${a}`,u(i[a-1],-1,n.col-1,G.red)]),t||p.push(["",eR(i[a-1],-1,n.col-1)])),yJ([[`${s-2}`,u(i[s-1-2])],[`${s-1}`,u(i[s-1-1])],...p,[`${a+1}`,u(i[a-1+1])],[`${a+2}`,u(i[a-1+2])]]);function u(m,d=-1,f=1/0,h=G.gray){return!t||!m?m:(d===-1&&(d=Wl(m)),f=Math.min(f,m.length),m.substr(0,d)+h(m.substring(d,f))+m.substr(f))}}function yJ(e){let t=e.filter(([o,i])=>i!==void 0),r=Math.max(...t.map(([o])=>o.length)),n=Math.min(...t.map(([o,i])=>i===""?1/0:Wl(i)));return t.map(([o,i])=>G.gray(bJ(r,o)+" |")+(i?" "+gJ(i.substring(n)):"")).join(`
|
|
120
|
-
`)}function gJ(e,t=mJ){let r=e.length-t;if(r>0){let n=G.gray(`...<${r} chars>`);return e.substring(0,t-n.length)+n}else return e}function eR(e,t=-1,r=1/0){return t===-1&&(t=Wl(e)),r=Math.min(r,e.length),qg(t)+"^".repeat(Math.max(r-t,1))}function qg(e){return" ".repeat(e)}function bJ(e,t){return qg(e-t.length)+t}function Wl(e){for(let t=0;t<e.length;t++)if(e[t]!==" ")return t;return e.length}function hn(e){if(e.pointer===void 0)return e;let{source:t,pointer:r,reportOnKey:n}=e,o=t.getAst(zo.safeLoad),i=tR(o,r,!!n);return{...e,pointer:void 0,...vJ(t.body,i?.startPosition??1,i?.endPosition??1)}}function vJ(e,t,r){let n=1,o=1,i={line:1,col:1};for(let a=0;a<r-1;a++){if(a===t-1&&(i={line:n,col:o+1}),e[a]===`
|
|
121
|
-
`){n++,o=1,a===t-1&&(i={line:n,col:o}),e[a+1]==="\r"&&a++;continue}o++}let s=t===r?{...i}:{line:n,col:o+1};return{start:i,end:s}}function tR(e,t,r){let n=eu(t.substr(2));if(e===void 0)return;let o=e;for(let i of n)if(o.kind===zo.Kind.MAP){let s=o.mappings.find(a=>a.key.value===i);if(!s||(o=s,!s?.value))break;o=s.value}else if(o.kind===zo.Kind.SEQ){let s=o.items[parseInt(i,10)];if(!s)break;o=s}if(r){let i=o.parent;return!i||i.kind===zo.Kind.SEQ?o:i.kind===zo.Kind.MAPPING?i.key:o}else return o}import*as Pr from"node:path";var SJ={INVALID_SEVERITY_LEVEL:"Invalid severity level; accepted values: error or warn"},rR={warn:e=>G.bgYellow(G.black(e)),error:G.bgRed},nR={warn:G.yellow,error:G.red},ls={warn:"Warning",error:"Error"},xJ={error:"critical",warn:"minor"},wJ=+(Ss.REDOCLY_CLI_LINT_MAX_SUGGESTIONS??5);function Jl(e){return e==="error"?1:2}function oR(e){let t=0,r=0,n=0;for(let o of e){if(o.ignored){n++;continue}o.severity==="error"&&t++,o.severity==="warn"&&r++}return{errors:t,warnings:r,ignored:n}}function _J(e,t){let{maxProblems:r=100,cwd:n=Je?"":process.cwd(),format:o="codeframe",color:i=xs.enabled,totals:s=oR(e),version:a="2.0",command:c}=t;xs.enabled=i;let p=e.length;e=e.filter(b=>!b.ignored);let l=p-e.length;if(e=e.sort((b,x)=>Jl(b.severity)-Jl(x.severity)).slice(0,r),!p&&o!=="json"&&o!=="junit")return;switch(o){case"json":m();break;case"codeframe":for(let b=0;b<e.length;b++){let x=e[b];c==="bundle"?Y.info(`${f(x,b)}
|
|
122
|
-
`):Y.output(`${f(x,b)}
|
|
123
|
-
`)}break;case"stylish":{let b=Ng(e);for(let[x,{ruleIdPad:w,locationPad:_,fileProblems:T}]of Object.entries(b)){Y.output(`${G.blue(pe(x)?x:Pr.relative(n,x))}:
|
|
124
|
-
`);for(let A=0;A<T.length;A++){let R=T[A];Y.output(`${h(R,_,w)}
|
|
125
|
-
`)}Y.output(`
|
|
126
|
-
`)}break}case"markdown":{let b=Ng(e);for(let[x,{fileProblems:w}]of Object.entries(b)){Y.output(`## Lint: ${pe(x)?x:Pr.relative(n,x)}
|
|
127
|
-
|
|
128
|
-
`),Y.output(`| Severity | Location | Problem | Message |
|
|
129
|
-
`),Y.output(`|---|---|---|---|
|
|
130
|
-
`);for(let _=0;_<w.length;_++){let T=w[_];Y.output(`${y(T)}
|
|
131
|
-
`)}Y.output(`
|
|
132
|
-
`),s.errors>0?Y.output(`Validation failed
|
|
133
|
-
Errors: ${s.errors}
|
|
134
|
-
`):Y.output(`Validation successful
|
|
135
|
-
`),s.warnings>0&&Y.output(`Warnings: ${s.warnings}
|
|
136
|
-
`),Y.output(`
|
|
137
|
-
`)}break}case"checkstyle":{let b=Ng(e);Y.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
138
|
-
`),Y.output(`<checkstyle version="4.3">
|
|
139
|
-
`);for(let[x,{fileProblems:w}]of Object.entries(b))Y.output(`<file name="${_r(pe(x)?x:Pr.relative(n,x))}">
|
|
140
|
-
`),w.forEach(g),Y.output(`</file>
|
|
141
|
-
`);Y.output(`</checkstyle>
|
|
142
|
-
`);break}case"junit":{let b=e.filter(_=>_.severity==="error").length,x=e.filter(_=>_.severity==="warn").length,w={};for(let _ of e){let T=_.location[0].source.absoluteRef;w[T]||(w[T]=[]),w[T].push(_)}Y.output(`<?xml version="1.0" encoding="UTF-8"?>
|
|
143
|
-
`),Y.output(`<testsuites name="redocly lint" tests="${e.length}" errors="${b}" failures="${x}" skipped="0">
|
|
144
|
-
`);for(let[_,T]of Object.entries(w)){let A=pe(_)?_:Pr.relative(n,_),R=T.filter(J=>J.severity==="error").length,P=T.filter(J=>J.severity==="warn").length;Y.output(`<testsuite name="${_r(A)}" tests="${T.length}" errors="${R}" failures="${P}">
|
|
145
|
-
`),T.forEach(J=>v(J,A)),Y.output(`</testsuite>
|
|
146
|
-
`)}Y.output(`</testsuites>
|
|
147
|
-
`);break}case"codeclimate":u();break;case"summary":PJ(e);break;case"github-actions":$J(e,n)}p-l>r&&Y.info(`< ... ${p-r} more problems hidden > ${G.gray("increase with `--max-problems N`")}
|
|
148
|
-
`);function u(){let b=e.map(x=>{let w=x.location[0],_=hn(w);return{description:x.message,location:{path:pe(w.source.absoluteRef)?w.source.absoluteRef:Pr.relative(n,w.source.absoluteRef),lines:{begin:_.start.line}},severity:xJ[x.severity],fingerprint:`${x.ruleId}${x.location.length>0?"-"+x.location[0].pointer:""}`}});Y.output(JSON.stringify(b,null,2))}function m(){let b={totals:s,version:a,problems:e.map(x=>{let w={...x,location:x.location.map(_=>({..._,source:{ref:pe(_.source.absoluteRef)?_.source.absoluteRef:Pr.relative(n,_.source.absoluteRef)}})),from:x.from?{...x.from,source:{ref:pe(x.from?.source.absoluteRef)?x.from?.source.absoluteRef:Pr.relative(n,x.from?.source.absoluteRef||n)}}:void 0};if(Ss.FORMAT_JSON_WITH_CODEFRAMES){let _=x.location[0],T=hn(_);w.codeframe=Ql(T,i)}return w})};Y.output(JSON.stringify(b,null,2))}function d(b){let{severity:x}=b;if(!rR[x])throw new Error(SJ.INVALID_SEVERITY_LEVEL);return rR[x]}function f(b,x){let w=d(b),_=b.location[0],T=pe(_.source.absoluteRef)?_.source.absoluteRef:Pr.relative(n,_.source.absoluteRef),A=hn(_),R=_.pointer?G.gray(`at ${_.pointer}`):"",P=`${T}:${A.start.line}:${A.start.col}`;return`[${x+1}] ${w(P)} ${R}
|
|
149
|
-
|
|
150
|
-
${b.message}
|
|
151
|
-
|
|
152
|
-
`+iR(b)+Ql(A,i)+`
|
|
153
|
-
|
|
154
|
-
`+EJ(n,b.from)+`${ls[b.severity]} was generated by the ${G.blue(b.ruleId)} rule.
|
|
155
|
-
|
|
156
|
-
`+(b.reference?`Reference: ${G.blue(b.reference)}
|
|
157
|
-
|
|
158
|
-
`:"")}function h(b,x,w){let _=nR[b.severity];if(!ls[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let T=_(ls[b.severity].toLowerCase().padEnd(7)),{start:A}=b.location[0];return` ${`${A.line}:${A.col}`.padEnd(x)} ${T} ${b.ruleId.padEnd(w)} ${b.message}`}function y(b){if(!ls[b.severity])return"Error not found severity. Please check your config file. Allowed values: `warn,error,off`";let x=ls[b.severity].toLowerCase(),{start:w}=b.location[0];return`| ${x} | line ${`${w.line}:${w.col}`} | [${b.ruleId}](https://redocly.com/docs/cli/rules/${b.ruleId}/) | ${b.message.replaceAll(`
|
|
159
|
-
`,"<br>")} |`}function g(b){let{line:x,col:w}=b.location[0].start,_=b.severity=="warn"?"warning":"error",T=_r(b.message),A=_r(b.ruleId);Y.output(`<error line="${x}" column="${w}" severity="${_}" message="${T}" source="${A}" />
|
|
160
|
-
`)}function v(b,x){let w=b.location[0],{start:_}=hn(w),T=b.severity==="error"?"error":"failure",A=_r(b.ruleId),R=_r(b.message),P=[`Rule: ${A}`,`Severity: ${_r(b.severity)}`,`File: ${_r(x)}`,`Line: ${_.line}`,`Column: ${_.col}`];w.pointer&&P.push(`Pointer: ${_r(w.pointer)}`),P.push(`Message: ${R}`),Y.output(`<testcase classname="${A}" name="${A}" file="${_r(x)}" line="${_.line}">
|
|
161
|
-
`),Y.output(`<${T} message="${R}" type="${A}">${P.join(`
|
|
162
|
-
`)}</${T}>
|
|
163
|
-
`),Y.output(`</testcase>
|
|
164
|
-
`)}}function PJ(e){let t={};for(let n of e)t[n.ruleId]=t[n.ruleId]||{count:0,severity:n.severity},t[n.ruleId].count++;let r=Object.entries(t).sort(([,n],[,o])=>Jl(n.severity)-Jl(o.severity)||o.count-n.count);for(let[n,o]of r){let i=nR[o.severity],s=i(ls[o.severity].toLowerCase().padEnd(7));Y.output(`${s} ${n}: ${o.count}
|
|
165
|
-
`)}Y.output(`
|
|
166
|
-
`)}function EJ(e,t){if(!t)return"";let r=Pr.relative(e,t.source.absoluteRef),n=hn(t),o=`${r}:${n.start.line}:${n.start.col}`,i=t.pointer?G.gray(`at ${t.pointer}`):"";return`referenced from ${G.blue(o)} ${i}
|
|
167
|
-
|
|
168
|
-
`}function iR(e){return e.suggest.length===0?"":e.suggest.length===1?`Did you mean: ${e.suggest[0]} ?
|
|
169
|
-
|
|
170
|
-
`:`Did you mean:
|
|
171
|
-
- ${e.suggest.slice(0,wJ).join(`
|
|
172
|
-
- `)}
|
|
173
|
-
|
|
174
|
-
`}var Ng=e=>{let t={};for(let r of e){let n=r.location[0].source.absoluteRef;t[n]=t[n]||{fileProblems:[],ruleIdPad:0,locationPad:0};let o={...r,location:r.location.map(hn)};t[n].fileProblems.push(o),t[n].ruleIdPad=Math.max(r.ruleId.length,t[n].ruleIdPad),t[n].locationPad=Math.max(Math.max(...o.location.map(i=>`${i.start.line}:${i.start.col}`.length)),t[n].locationPad)}return t};function _r(e){return e.replace(/[<>&"'\x00-\x1F\x7F\u0080-\uFFFF]/gu,t=>{switch(t){case"<":return"<";case">":return">";case"&":return"&";case'"':return""";case"'":return"'";default:return`&#${t.charCodeAt(0)};`}})}function $J(e,t){for(let s of e)for(let a of s.location.map(hn)){let c;switch(s.severity){case"error":c="error";break;case"warn":c="warning";break}let p=iR(s),l=s.reference?`Reference: ${s.reference}
|
|
175
|
-
|
|
176
|
-
`:"",u=s.message+(p!==""||l!==""?`
|
|
177
|
-
|
|
178
|
-
`:"")+p+l,m={title:s.ruleId,file:pe(a.source.absoluteRef)?a.source.absoluteRef:Pr.relative(t,a.source.absoluteRef),line:a.start.line,col:a.start.col,endLine:a.end?.line,endColumn:a.end?.col};Y.output(`::${c} ${r(m)}::${o(u)}
|
|
179
|
-
`)}function r(s){return Object.entries(s).filter(([,a])=>a!=null).map(([a,c])=>`${a}=${i(c)}`).join(",")}function n(s){return s==null?"":typeof s=="string"||s instanceof String?s:JSON.stringify(s)}function o(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A")}function i(s){return n(s).replace(/%/g,"%25").replace(/\r/g,"%0D").replace(/\n/g,"%0A").replace(/:/g,"%3A").replace(/,/g,"%2C")}}var{theme:wfe,...AJ}=si.properties,TJ={...si,properties:AJ};async function sR(e){let{ref:t,externalRefResolver:r=new Mt(e.config.resolve)}=e,n=await r.resolveDocument(null,t,!0);return e.collectSpecData?.(n),Xl({document:n,...e,externalRefResolver:r})}async function RJ(e){let{source:t,absoluteRef:r,externalRefResolver:n=new Mt(e.config.resolve)}=e,o=Mo(t,r||"/");return Xl({document:o,...e,externalRefResolver:n})}async function Xl(e){let{document:t,customTypes:r,externalRefResolver:n,config:o}=e;if(rs(t.source.absoluteRef)){let{lintGraphqlDocument:d}=await import("./UYZXI3NO.js");return d({document:t,config:o})}let i=cn(t.parsed),s=o.getRulesForSpecVersion(la(i)),a=Xr(o.extendTypes(r??ao(i),i),o),c={problems:[],specVersion:i,config:o,visitorsData:{}},p=Fo(s,o,"preprocessors",i),l=Fo(s,o,"rules",i),u=await or({rootDocument:t,rootType:a.Root,externalRefResolver:n});p.length>0&&(Vt({document:t,rootType:a.Root,normalizedVisitors:Ft(p,a),resolvedRefMap:u,ctx:c}),u=await or({rootDocument:t,rootType:a.Root,externalRefResolver:n}));let m=Ft(l,a);return Vt({document:t,rootType:a.Root,normalizedVisitors:m,resolvedRefMap:u,ctx:c}),c.problems.map(d=>o.addProblemToIgnore(d))}async function OJ(e){let{severity:t,externalRefResolver:r=new Mt,config:n}=e;if(!n.document)throw new Error("Config document is not set.");let o={problems:[],specVersion:"config",config:n,visitorsData:{}},i=Xr(e.externalConfigTypes||sp(TJ,n)),s=[{severity:t||"error",ruleId:"configuration struct",visitor:it({severity:"error"})},{severity:t||"error",ruleId:"configuration no-unresolved-refs",visitor:ot({severity:"error"})}],a=Ft(s,i),c=n.resolvedRefMap||await or({rootDocument:n.document,rootType:i.ConfigRoot,externalRefResolver:r});return Vt({document:n.document,rootType:i.ConfigRoot,normalizedVisitors:a,resolvedRefMap:c,ctx:o}),o.problems}var Mg=class extends Error{};export{Rk as a,Jo as b,O as c,Lt as d,ac as e,Ok as f,De as g,Ge as h,ws as i,kk as j,Qu as k,Ik as l,Je as m,cd as n,io as o,Xr as p,D as q,jg as r,pe as s,Or as t,ao as u,Ls as v,lf as w,Km as x,UH as y,zH as z,FH as A,oo as B,sc as C,F1 as D,V1 as E,Q1 as F,J1 as G,X1 as H,Z1 as I,ek as J,tk as K,rk as L,nk as M,Hu as N,Y as O,zr as P,la as Q,cn as R,s$ as S,Ua as T,rs as U,Il as V,Mt as W,or as X,Ft as Y,Xy as Z,Vt as _,og as $,wW as aa,TW as ba,IA as ca,hn as da,oR as ea,_J as fa,_r as ga,sR as ha,RJ as ia,Xl as ja,OJ as ka,Mg as la};
|
|
180
|
-
/*! Bundled license information:
|
|
181
|
-
|
|
182
|
-
js-yaml/dist/js-yaml.mjs:
|
|
183
|
-
(*! js-yaml 5.2.2 https://github.com/nodeca/js-yaml @license MIT *)
|
|
184
|
-
*/
|